Home
last modified time | relevance | path

Searched refs:intent (Results 1 – 10 of 10) sorted by relevance

/tools/tradefederation/core/util-apps/DeviceSetupUtil/src/com/android/tradefed/utils/
DDeviceSetupIntentReceiver.java34 private final Intent intent = new Intent(); field in DeviceSetupIntentReceiver
37 public void onReceive(Context context, Intent intent) { in onReceive() argument
38 if (DEVICE_SETUP_INTENT.equals(intent.getAction())) { in onReceive()
40 intent.setClass(context, DeviceSetupService.class); in onReceive()
41 context.startService(intent); in onReceive()
42 } else if (Intent.ACTION_POWER_DISCONNECTED.equals(intent.getAction())) { in onReceive()
46 intent.setClass(context, DeviceSetupService.class); in onReceive()
47 context.stopService(intent); in onReceive()
48 } else if (Intent.ACTION_POWER_CONNECTED.equals(intent.getAction())) { in onReceive()
52 intent.setClass(context, DeviceSetupService.class); in onReceive()
[all …]
DDeviceSetupService.java54 public int onStartCommand(Intent intent, int flags, int startId) { in onStartCommand() argument
66 public IBinder onBind(Intent intent) { in onBind() argument
/tools/tradefederation/core/util-apps/WifiUtil/src/com/android/tradefed/utils/wifi/
DWifiMonitorService.java72 protected void onHandleIntent(Intent intent) { in onHandleIntent() argument
73 final String action = intent.getAction(); in onHandleIntent()
75 monitor(intent); in onHandleIntent()
77 reconnect(intent); in onHandleIntent()
81 private static String getStringExtra(Intent intent, String name, String defValue) { in getStringExtra() argument
82 if (intent.hasExtra(name)) { in getStringExtra()
83 return intent.getStringExtra(name); in getStringExtra()
88 private void monitor(Intent intent) { in monitor() argument
97 final String urlToCheck = getStringExtra(intent, EXTRA_URL_TO_CHECK, in monitor()
111 private void reconnect(Intent intent) { in reconnect() argument
[all …]
/tools/test/graphicsbenchmark/performance_tests/deviceside/src/com/android/game/qualification/device/
DGameQualificationTest.java88 Intent intent = in startApp() local
92 intent.setClassName(apk.getPackageName(), apk.getActivityName()); in startApp()
98 intent.putExtra(argument.getKey(), argument.getValue()); in startApp()
102 intent.putExtra(argument.getKey(), value); in startApp()
107 intent.putExtra(argument.getKey(), value); in startApp()
112 intent.putExtra(argument.getKey(), value); in startApp()
117 intent.putExtra(argument.getKey(), value); in startApp()
122 intent.putExtra(argument.getKey(), value); in startApp()
127 intent.putExtra(argument.getKey(), value); in startApp()
134 InstrumentationRegistry.getContext().startActivity(intent); in startApp()
[all …]
/tools/test/graphicsbenchmark/benchmark_libs/
Dagq.cpp57 jobject intent = env->NewObject(intentClass, constructor, env->NewStringUTF(INTENT_START)); in createIntent() local
63 env->CallObjectMethod(intent, set_type, env->NewStringUTF("text/plain")); in createIntent()
71 env->CallObjectMethod(intent, put_extra, env->NewStringUTF("timestamp"), timestamp); in createIntent()
74 return intent; in createIntent()
/tools/test/connectivity/acts/tests/google/tel/live/
DTelLiveProjectFiTest.py183 intent = ad.droid.makeIntent(action_type, None, None, extras,
187 ad.droid.startServiceIntent(intent)
199 intent = ad.droid.makeIntent(ActionTypeId.MAIN, None, None, extras,
203 ad.droid.startActivityIntent(intent, False)
/tools/test/connectivity/acts/tests/google/tel/lab/
DTelLabProjectFiTest.py279 intent = ad.droid.makeIntent(action_type, None, None, extras,
283 ad.droid.startServiceIntent(intent)
295 intent = ad.droid.makeIntent(ActionTypeId.MAIN, None, None, extras,
299 ad.droid.startActivityIntent(intent, False)
/tools/test/connectivity/acts/tests/google/net/
DDataUsageTest.py139 intent = ad.droid.createIntentForClassName(conn_test_class)
141 ad.droid.launchForResultWithIntent(intent, json_obj)
/tools/external/fat32lib/
DNOTICE71 Thus, it is not the intent of this section to claim rights or contest your rights to work written e…
/tools/test/connectivity/acts/framework/acts/test_utils/tel/
Dtel_test_utils.py7700 intent = ad.droid.makeIntent(
7710 ad.droid.sendBroadcastIntent(intent)