Home | History | Annotate | Download | only in android

Lines Matching full:args

299 static int  control_vwrite( ControlClient  client, const char*  format, va_list args )
302 int ret = vsnprintf( temp, sizeof(temp), format, args );
312 va_list args;
313 va_start(args, format);
314 ret = control_vwrite(client, format, args);
315 va_end(args);
348 int (*handler)( ControlClient client, char* args );
359 char* args = strchr(input, ' ');
361 if (args != NULL) {
362 while (*args == ' ')
363 args++;
365 if (args[0] == 0)
366 args = NULL;
386 *pargs = args;
425 char* args = NULL;
428 CommandDef cmd = find_command( line, commands, &cmdend, &args );
439 if ( !cmd->handler( client, args ) ) {
453 if ( !args ) {
459 line = args;
461 subcmd = find_command( line, commands, &cmdend, &args );
473 do_help( ControlClient client, char* args )
476 char* start = args;
481 if (args == NULL) {
494 line = args;
495 subcmd = find_command( line, cmd, &end, &args );
506 if ( !args || !subcmd->subcommands ) {
672 do_quit( ControlClient client, char* args )
687 do_network_status( ControlClient client, char* args )
716 do_network_speed( ControlClient client, char* args )
718 if ( !args ) {
722 if ( android_parse_network_speed( args ) < 0 ) {
732 android_parse_network_type( args ) );
747 do_network_delay( ControlClient client, char* args )
749 if ( !args ) {
753 if ( android_parse_network_latency( args ) < 0 ) {
771 do_network_capture_start( ControlClient client, char* args )
773 if ( !args ) {
777 if ( qemu_tcpdump_start(args) < 0) {
785 do_network_capture_stop( ControlClient client, char* args )
837 do_redir_list( ControlClient client, char* args )
858 redir_parse_proto_port( char* args, int *pport, int *pproto )
864 if ( !memcmp( args, "tcp:", 4 ) ) {
868 else if ( !memcmp( args, "udp:", 4 ) ) {
875 args += len;
877 *pport = strtol( args, &end, 10 );
878 if (end == args)
881 len += end - args;
913 do_redir_add( ControlClient client, char* args )
919 if ( !args )
927 len = redir_parse_proto_port( args, &host_port, &host_proto );
928 if (len == 0 || args[len] != ':')
931 args += len + 1;
932 len = redir_parse_guest_port( args, &guest_port );
933 if (len == 0 || args[len] != 0)
970 do_redir_del( ControlClient client, char* args )
975 if ( !args )
977 len = redir_parse_proto_port( args, &port, &proto );
978 if ( len == 0 || args[len] != 0 )
1064 do_cdma_ssource( ControlClient client, char* args )
1067 if (!args) {
1079 if (!strcasecmp( args, name )) {
1084 control_write( client, "KO: Don't know source %s\r\n", args );
1089 do_cdma_prl_version( ControlClient client, char * args )
1094 if (!args) {
1099 version = strtol(args, &endptr, 0);
1100 if (endptr != args) {
1140 do_gsm_status( ControlClient client, char* args )
1142 if (args) {
1181 do_gsm_data( ControlClient client, char* args )
1185 if (!args) {
1197 if ( !strcmp( args, name ) ) {
1233 do_gsm_voice( ControlClient client, char* args )
1237 if (!args) {
1249 if ( !strcmp( args, name ) ) {
1264 gsm_check_number( char* args )
1268 for (nn = 0; args[nn] != 0; nn++) {
1269 int c = args[nn];
1281 do_gsm_call( ControlClient client, char* args )
1284 if (!args) {
1289 if (gsm_check_number(args)) {
1298 amodem_add_inbound_call( android_modem, args );
1303 do_gsm_cancel( ControlClient client, char* args )
1305 if (!args) {
1309 if (gsm_check_number(args)) {
1317 if ( amodem_disconnect_call( android_modem, args ) < 0 ) {
1339 do_gsm_list( ControlClient client, char* args )
1363 do_gsm_busy( ControlClient client, char* args )
1367 if (!args) {
1371 call = amodem_find_call_by_number( android_modem, args );
1373 control_write( client, "KO: no current outbound call to number '%s' (call %p)\r\n", args, call );
1376 if ( amodem_disconnect_call( android_modem, args ) < 0 ) {
1384 do_gsm_hold( ControlClient client, char* args )
1388 if (!args) {
1392 call = amodem_find_call_by_number( android_modem, args );
1394 control_write( client, "KO: no current call to/from number '%s'\r\n", args );
1397 if ( amodem_update_call( android_modem, args, A_CALL_HELD ) < 0 ) {
1406 do_gsm_accept( ControlClient client, char* args )
1410 if (!args) {
1414 call = amodem_find_call_by_number( android_modem, args );
1416 control_write( client, "KO: no current call to/from number '%s'\r\n", args );
1419 if ( amodem_update_call( android_modem, args, A_CALL_ACTIVE ) < 0 ) {
1427 do_gsm_signal( ControlClient client, char* args )
1430 char* p = args;
1576 do_sms_send( ControlClient client, char* args )
1585 if (!args) {
1590 p = strchr( args, ' ' );
1595 if ( sms_address_from_str( &sender, args, p - args ) < 0 ) {
1636 do_sms_sendpdu( ControlClient client, char* args )
1641 if (!args) {
1651 pdu = smspdu_create_from_hex( args, strlen(args) );
1684 do_power_display( ControlClient client, char* args )
1691 do_ac_state( ControlClient client, char* args )
1693 if (args) {
1694 if (strcasecmp(args, "on") == 0) {
1698 if (strcasecmp(args, "off") == 0) {
1709 do_battery_status( ControlClient client, char* args )
1711 if (args) {
1712 if (strcasecmp(args, "unknown") == 0) {
1716 if (strcasecmp(args, "charging") == 0) {
1720 if (strcasecmp(args, "discharging") == 0) {
1724 if (strcasecmp(args, "not-charging") == 0) {
1728 if (strcasecmp(args, "full") == 0) {
1739 do_battery_present( ControlClient client, char* args )
1741 if (args) {
1742 if (strcasecmp(args, "true") == 0) {
1746 if (strcasecmp(args, "false") == 0) {
1757 do_battery_health( ControlClient client, char* args )
1759 if (args) {
1760 if (strcasecmp(args, "unknown") == 0) {
1764 if (strcasecmp(args, "good") == 0) {
1768 if (strcasecmp(args, "overheat") == 0) {
1772 if (strcasecmp(args, "dead") == 0) {
1776 if (strcasecmp(args, "overvoltage") == 0) {
1780 if (strcasecmp(args, "failure") == 0) {
1791 do_battery_capacity( ControlClient client, char* args )
1793 if (args) {
1796 if (sscanf(args, "%d", &capacity) == 1 && capacity >= 0 && capacity <= 100) {
1846 do_event_send( ControlClient client, char* args )
1850 if (!args) {
1855 p = args;
1896 do_event_types( ControlClient client, char* args )
1920 do_event_codes( ControlClient client, char* args )
1925 if (!args) {
1930 if ( android_event_from_str( args, &type, &dummy, &dummy ) < 0 ) {
1940 args );
1978 do_event_text( ControlClient client, char* args )
1981 unsigned char* p = (unsigned char*) args;
1982 unsigned char* end = p + strlen(args);
1986 if (!args) {
2002 textlen = sms_utf8_from_message_str( args, textlen, (unsigned char*)p, textlen );
2080 do_snapshot_list( ControlClient client, char* args )
2094 do_snapshot_save( ControlClient client, char* args )
2098 if (args == NULL) {
2104 do_savevm(err, args);
2112 do_snapshot_load( ControlClient client, char* args )
2116 if (args == NULL) {
2122 do_loadvm(err, args);
2130 do_snapshot_del( ControlClient client, char* args )
2134 if (args == NULL) {
2140 do_delvm(err, args);
2179 do_avd_stop( ControlClient client, char* args )
2190 do_avd_start( ControlClient client, char* args )
2201 do_avd_status( ControlClient client, char* args )
2208 do_avd_name( ControlClient client, char* args )
2248 do_geo_nmea( ControlClient client, char* args )
2250 if (!args) {
2258 android_gps_send_nmea( args );
2263 do_geo_fix( ControlClient client, char* args )
2267 char* p = args;
2424 do_sensors_get( ControlClient client, char* args )
2426 if (! args) {
2432 char sensor[strlen(args) + 1];
2433 if (1 != sscanf( args, "%s", &sensor[0] ))
2474 do_sensors_set( ControlClient client, char* args )
2476 if (! args) {
2484 char* args_dup = strdup( args );
2491 /* Parsing the args to get sensor name string */
2497 /* Parsing the args to get value string */
2572 do_sensors_status( ControlClient client, char* args )
2614 do_window_scale( ControlClient client, char* args )
2620 if (!args) {
2625 scale = strtol( args, &end, 10 );
2626 if (end > args && !memcmp( end, "dpi", 4 )) {
2630 scale = strtod( args, &end );
2631 if (end == args || end[0]) {
2661 do_qemu_monitor( ControlClient client, char* args )
2667 if (args != NULL) {
2690 do_attach_ui( ControlClient client, char* args )
2723 do_create_framebuffer_service( ControlClient client, char* args )
2731 if (args != NULL && *args != '\0') {
2733 const char* param_end = strchr(args, ' ');
2735 param_end = args + strlen(args);
2737 token_len = param_end - args;
2738 protocol = args;
2765 do_create_user_events_service( ControlClient client, char* args )
2797 do_create_ui_core_ctl_service( ControlClient client, char* args )
2837 do_create_core_ui_ctl_service( ControlClient client, char* args )
2919 do_kill( ControlClient client, char* args )