Home
last modified time | relevance | path

Searched refs:action (Results 1 – 25 of 95) sorted by relevance

1234

/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DBleClientStartActivity.java110 String action = intent.getAction();
111 if (action == BleClientService.BLE_BLUETOOTH_CONNECTED) {
114 } else if (action == BleClientService.BLE_SERVICES_DISCOVERED) {
117 } else if (action == BleClientService.BLE_CHARACTERISTIC_READ) {
120 } else if (action == BleClientService.BLE_CHARACTERISTIC_WRITE) {
123 } else if (action == BleClientService.BLE_RELIABLE_WRITE_COMPLETED) {
126 } else if (action == BleClientService.BLE_CHARACTERISTIC_CHANGED) {
129 } else if (action == BleClientService.BLE_DESCRIPTOR_READ) {
132 } else if (action == BleClientService.BLE_DESCRIPTOR_WRITE) {
135 } else if (action == BleClientService.BLE_READ_REMOTE_RSSI) {
[all …]
DBleServerStartActivity.java106 String action = intent.getAction();
107 if (action == BleServerService.BLE_SERVICE_ADDED) {
110 } else if (action == BleServerService.BLE_SERVER_CONNECTED) {
113 } else if (action == BleServerService.BLE_CHARACTERISTIC_READ_REQUEST) {
116 } else if (action == BleServerService.BLE_CHARACTERISTIC_WRITE_REQUEST) {
119 } else if (action == BleServerService.BLE_DESCRIPTOR_READ_REQUEST) {
122 } else if (action == BleServerService.BLE_DESCRIPTOR_WRITE_REQUEST) {
125 } else if (action == BleServerService.BLE_EXECUTE_WRITE) {
128 } else if (action == BleServerService.BLE_SERVER_DISCONNECTED) {
131 } else if (action == BleServerService.BLE_OPEN_FAIL) {
/cts/tests/app/src/android/app/cts/
DLaunchpadActivity.java180 final String action = getIntent().getAction(); in onCreate() local
181 if (LIFECYCLE_BASIC.equals(action)) { in onCreate()
185 } else if (LIFECYCLE_SCREEN.equals(action)) { in onCreate()
194 } else if (LIFECYCLE_DIALOG.equals(action)) { in onCreate()
277 final String action = getIntent().getAction(); in onResume() local
281 if (LAUNCH.equals(action)) { in onResume()
287 } else if (FORWARD_RESULT.equals(action)) { in onResume()
292 } else if (BAD_PARCELABLE.equals(action)) { in onResume()
298 } else if (BROADCAST_REGISTERED.equals(action)) { in onResume()
305 } else if (BROADCAST_LOCAL.equals(action)) { in onResume()
[all …]
DIntentServiceStub.java71 String action = intent.getAction(); in onHandleIntent() local
72 if (action != null && action.equals(ISS_ADD)) { in onHandleIntent()
DMockAlarmReceiver.java41 final String action = intent.getAction(); in onReceive() local
42 if (action.equals(mTargetAction)) { in onReceive()
/cts/tests/tests/os/src/android/os/cts/
DLaunchpadActivity.java180 final String action = getIntent().getAction(); in onCreate() local
181 if (LIFECYCLE_BASIC.equals(action)) { in onCreate()
185 } else if (LIFECYCLE_SCREEN.equals(action)) { in onCreate()
194 } else if (LIFECYCLE_DIALOG.equals(action)) { in onCreate()
277 final String action = getIntent().getAction(); in onResume() local
281 if (LAUNCH.equals(action)) { in onResume()
287 } else if (FORWARD_RESULT.equals(action)) { in onResume()
292 } else if (BAD_PARCELABLE.equals(action)) { in onResume()
298 } else if (BROADCAST_REGISTERED.equals(action)) { in onResume()
305 } else if (BROADCAST_LOCAL.equals(action)) { in onResume()
[all …]
/cts/suite/audio_quality/test/
DTaskProcessTest.cpp29 TaskGeneric* action = NULL; in SetUp() local
30 mTestCase = getTaskCase(setup, action); in SetUp()
33 ASSERT_TRUE(action != NULL); in SetUp()
41 ASSERT_TRUE(action->addChild(mSequential)); in SetUp()
DTaskCaseCommon.h31 inline TaskCase* getTaskCase(TaskGeneric*& setup, TaskGeneric*& action) in getTaskCase() argument
37 action = factory.createTask(TaskGeneric::ETaskAction); in getTaskCase()
38 taskCase->addChild(action); in getTaskCase()
DTaskSequentialTest.cpp26 TaskGeneric* action = NULL; in SetUp() local
27 mTestCase = getTaskCase(setup, action); in SetUp()
30 ASSERT_TRUE(action != NULL); in SetUp()
32 action->addChild(mSequential); in SetUp()
/cts/hostsidetests/appsecurity/test-apps/PermissionDeclareApp/src/com/android/cts/permissiondeclareapp/
DGrantUriPermission.java46 final String action = intent.getAction(); in onReceive() local
47 if (ACTION_GRANT_URI.equals(action)) { in onReceive()
52 } else if (ACTION_REVOKE_URI.equals(action)) { in onReceive()
56 } else if (ACTION_START_ACTIVITY.equals(action)) { in onReceive()
61 } else if (ACTION_START_SERVICE.equals(action)) { in onReceive()
65 } else if (ACTION_VERIFY_OUTGOING_PERSISTED.equals(action)) { in onReceive()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DMockListener.java93 String action = intent.getAction(); in onCreate()
94 if (SERVICE_CHECK.equals(action)) { in onCreate()
97 } else if (SERVICE_POSTED.equals(action)) { in onCreate()
103 } else if (SERVICE_DND.equals(action)) { in onCreate()
109 } else if (SERVICE_ORDER.equals(action)) { in onCreate()
115 } else if (SERVICE_PAYLOADS.equals(action)) { in onCreate()
125 } else if (SERVICE_REMOVED.equals(action)) { in onCreate()
131 } else if (SERVICE_CLEAR_ONE.equals(action)) { in onCreate()
140 } else if (SERVICE_CLEAR_ALL.equals(action)) { in onCreate()
143 } else if (SERVICE_RESET.equals(action)) { in onCreate()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DByodHelperActivity.java132 String action = intent.getAction(); in onCreate() local
133 Log.d(TAG, "ByodHelperActivity.onCreate: " + action); in onCreate()
136 if (action.equals(ACTION_PROFILE_PROVISIONED)) { in onCreate()
142 } else if (action.equals(ACTION_QUERY_PROFILE_OWNER)) { in onCreate()
147 } else if (action.equals(ACTION_REMOVE_PROFILE_OWNER)) { in onCreate()
152 } else if (action.equals(ACTION_INSTALL_APK)) { in onCreate()
170 } else if (action.equals(ACTION_CHECK_INTENT_FILTERS)) { in onCreate()
175 } else if (action.equals(ACTION_CAPTURE_AND_CHECK_IMAGE)) { in onCreate()
189 } else if (action.equals(ACTION_CAPTURE_AND_CHECK_VIDEO)) { in onCreate()
203 } else if (action.equals(ACTION_CAPTURE_AND_CHECK_AUDIO)) { in onCreate()
[all …]
DWorkNotificationTestActivity.java55 final String action = getIntent().getAction(); in onCreate() local
57 if (ACTION_WORK_NOTIFICATION.equals(action)) { in onCreate()
59 } else if (ACTION_WORK_NOTIFICATION_ON_LOCKSCREEN.equals(action)) { in onCreate()
64 } else if (ACTION_CLEAR_WORK_NOTIFICATION.equals(action)) { in onCreate()
DWorkStatusTestActivity.java53 String action = getIntent().getAction(); in onStart() local
55 if (ACTION_WORK_STATUS_ICON.equals(action)) { in onStart()
57 } else if (ACTION_WORK_STATUS_TOAST.equals(action)) { in onStart()
/cts/hostsidetests/devicepolicy/app/WifiConfigCreator/src/com/android/cts/deviceowner/wificonfigcreator/
DWifiConfigCreatorActivity.java47 String action = intent.getAction(); in onCreate() local
48 if (ACTION_CREATE_WIFI_CONFIG.equals(action)) { in onCreate()
53 } else if (ACTION_UPDATE_WIFI_CONFIG.equals(action)) { in onCreate()
59 } else if (ACTION_REMOVE_WIFI_CONFIG.equals(action)) { in onCreate()
65 Log.i(TAG, "Unknown command: " + action); in onCreate()
/cts/hostsidetests/devicepolicy/app/IntentReceiver/src/com/android/cts/intent/receiver/
DIntentReceiverActivity.java63 final String action = received.getAction(); in onCreate() local
66 if (ACTION_COPY_TO_CLIPBOARD.equals(action)) { in onCreate()
74 } else if (ACTION_READ_FROM_URI.equals(action)) { in onCreate()
88 } else if (ACTION_TAKE_PERSISTABLE_URI_PERMISSION.equals(action)) { in onCreate()
93 } else if (ACTION_WRITE_TO_URI.equals(action)) { in onCreate()
106 } else if (ACTION_JUST_CREATE.equals(action)) { in onCreate()
/cts/tests/tests/assist/src/android/assist/cts/
DLifecycleTest.java113 String action = intent.getAction(); in onReceive() local
114 if (action.equals(action_hasResumed) && mHasResumedLatch != null) { in onReceive()
116 } else if (action.equals(action_onPause) && mActivityLifecycleLatch != null) { in onReceive()
118 } else if (action.equals(action_onStop) && mActivityLifecycleLatch != null) { in onReceive()
120 } else if (action.equals(action_onDestroy) && mActivityLifecycleLatch != null) { in onReceive()
122 } else if (action.equals(Utils.ASSIST_RECEIVER_REGISTERED)) { in onReceive()
/cts/tests/tests/permission2/src/android/permission2/cts/
DProtectedBroadcastsTest.java91 for (String action : BROADCASTS) { in testSendProtectedBroadcasts()
93 Intent intent = new Intent(action); in testSendProtectedBroadcasts()
95 fail("expected security exception broadcasting action: " + action); in testSendProtectedBroadcasts()
/cts/tests/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityWindowQueryActivity.java56 public boolean performAccessibilityAction(View host, int action, Bundle args) { in onCreate()
57 if (action == R.id.foo_custom_action) { in onCreate()
60 return super.performAccessibilityAction(host, action, args); in onCreate()
/cts/tests/tests/content/src/android/content/cts/
DImageCaptureActivity.java41 String action = intent.getAction(); in onCreate() local
42 if ((MediaStore.ACTION_IMAGE_CAPTURE.equals(action) in onCreate()
43 || MediaStore.ACTION_IMAGE_CAPTURE_SECURE.equals(action) in onCreate()
44 || MediaStore.ACTION_VIDEO_CAPTURE.equals(action))) { in onCreate()
/cts/tests/tests/drm/lib/
DTestPlugin.h31 DrmConstraints* onGetConstraints(int uniqueId, const String8* path, int action);
54 int onCheckRightsStatus(int uniqueId, const String8& path, int action);
56 status_t onConsumeRights(int uniqueId, DecryptHandle* decryptHandle, int action, bool reserve);
62 int uniqueId, const String8& path, int action, const ActionDescription& description);
/cts/apps/PermissionApp/src/com/android/cts/permission/permissionapp/
DPermissionActivity.java54 final String action = received.getAction(); in onCreate() local
56 if (ACTION_REQUEST_PERMISSION.equals(action)) { in onCreate()
59 } else if (ACTION_CHECK_HAS_PERMISSION.equals(action)) { in onCreate()
/cts/hostsidetests/devicepolicy/app/CertInstaller/src/com/android/cts/certinstaller/
DCertInstallerActivity.java77 String action = intent.getAction(); in onCreate() local
83 if (ACTION_INSTALL_CERT.equals(action)) { in onCreate()
101 } else if (ACTION_REMOVE_CERT.equals(action)) { in onCreate()
113 } else if (ACTION_VERIFY_CERT.equals(action)) { in onCreate()
121 } else if (ACTION_INSTALL_KEYPAIR.equals(action)) { in onCreate()
/cts/tests/tests/app/src/android/app/cts/
DSearchManagerTest.java24 private void setupActivity(String action) { in setupActivity() argument
26 intent.setAction(action); in setupActivity()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DTestActivity.java33 public void startActivity(String action) { in startActivity() argument
34 startActivityForResult(new Intent(action), /* requestCode= */ 0); in startActivity()

1234