Debian Codegraph @

frameworks/opt/telephony/tools/tdi

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2 # Telephony Debug Intents
3 #set -x
4
5 file_name='tdi'
6
7 # Get the command as the first parameter
8 cmd=$1
9 shift
10
11 function dc_errorsscip-shell shell android-framework-23 6.0.1+r72-6 dc_errors().()
12 {
13 if [scip-shell system . . `[`. "$1" == "" ]; then
14 echoscip-shell system . . echo. "Usage: $file_name $cmd <dc> <count> <cause> <retry-time>"
15 echoscip-shell system . . echo. " <dc> must specifiy the DataConnection such as DC or GsmDC-1"
16 echoscip-shell system . . echo. " <count> := number of times to retry"
17 echoscip-shell system . . echo. " <cause> := From DataConnection.FailCause; such as -3 for SIGNAL_LOST"
18 echoscip-shell system . . echo. " <retry-time> := suggested retry time in milli-seconds"
19 exit
20 fi
21 the_DC=$1
22 echoscip-shell system . . echo. "the_DC=$the_DC"
23
24 if [scip-shell system . . `[`. "$2" != "" ]; then
25 counter="--ei counter $2";
26 fi
27 echoscip-shell system . . echo. "counter=$counter"
28
29 if [scip-shell system . . `[`. "$3" != "" ]; then
30 fail_cause="--ei fail_cause $3";
31 fi
32 echoscip-shell system . . echo. "fail_cause=$fail_cause"
33
34 if [scip-shell system . . `[`. "$4" != "" ]; then
35 suggested_retry_time="--ei suggested_retry_time $4";
36 fi
37 echoscip-shell system . . echo. "suggested_retry_time=$suggested_retry_time"
38
39
40 adb shell am broadcast -a com.android.internal.telephony.$the_DC.action_fail_bringup $counter $fail_cause $suggested_retry_time
41 }
42
43
44 case ${cmd} in
45 dce) dc_errorsscip-shell shell android-framework-23 6.0.1+r72-6 dc_errors(). "$@";;
46 # Add more commands in the future
47 *) echoscip-shell system . . echo. 'Broadcast telephony debug intents'; echoscip-shell system . . echo. 'usage: tdi [dce]'; echoscip-shell system . . echo. ' dce=DC errors';;
48 esac