/cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/ |
D | MainInteractionSession.java | 79 void assertPromptFromTestApp(CharSequence prompt, Bundle extras) { in assertPromptFromTestApp() argument 84 Utils.addErrorResult(extras, "Invalid prompt received: " + str); in assertPromptFromTestApp() 107 Bundle extras = request.getExtras(); in onRequestConfirmation() local 110 ", extras=" + Utils.toBundleString(extras)); in onRequestConfirmation() 111 assertPromptFromTestApp(prompt, extras); in onRequestConfirmation() 112 AsyncTaskArg asyncTaskArg = new AsyncTaskArg().setRequest(request).setExtras(extras); in onRequestConfirmation() 113 if (isTestTypeCancel(extras)) { in onRequestConfirmation() 119 Utils.toBundleString(extras)); in onRequestConfirmation() 127 Bundle extras = request.getExtras(); in onRequestCompleteVoice() local 130 prompt + ", extras=" + Utils.toBundleString(extras)); in onRequestCompleteVoice() [all …]
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | CallDetailsTest.java | 444 Bundle extras = mCall.getDetails().getExtras(); in testConnectionPutExtras() local 445 assertEquals(2, extras.size()); in testConnectionPutExtras() 446 assertTrue(extras.containsKey(TEST_EXTRA_KEY)); in testConnectionPutExtras() 447 assertEquals(TEST_SUBJECT, extras.getString(TEST_EXTRA_KEY)); in testConnectionPutExtras() 448 assertTrue(extras.containsKey(TEST_EXTRA_KEY2)); in testConnectionPutExtras() 449 assertEquals(TEST_EXTRA_VALUE, extras.getInt(TEST_EXTRA_KEY2)); in testConnectionPutExtras() 490 Bundle extras = mCall.getDetails().getExtras(); in verifyRemoveConnectionExtras() local 491 assertEquals(1, extras.size()); in verifyRemoveConnectionExtras() 492 assertFalse(extras.containsKey(TEST_EXTRA_KEY)); in verifyRemoveConnectionExtras() 493 assertTrue(extras.containsKey(TEST_EXTRA_KEY2)); in verifyRemoveConnectionExtras() [all …]
|
D | OutgoingCallTest.java | 59 final Bundle extras = new Bundle(); in testStartCallWithSpeakerphoneTrue_SpeakerphoneOnInCall() local 60 extras.putBoolean(TelecomManager.EXTRA_START_CALL_WITH_SPEAKERPHONE, true); in testStartCallWithSpeakerphoneTrue_SpeakerphoneOnInCall() 61 placeAndVerifyCall(extras); in testStartCallWithSpeakerphoneTrue_SpeakerphoneOnInCall() 71 final Bundle extras = new Bundle(); in testStartCallWithSpeakerphoneFalse_SpeakerphoneOffInCall() local 72 extras.putBoolean(TelecomManager.EXTRA_START_CALL_WITH_SPEAKERPHONE, false); in testStartCallWithSpeakerphoneFalse_SpeakerphoneOffInCall() 73 placeAndVerifyCall(extras); in testStartCallWithSpeakerphoneFalse_SpeakerphoneOffInCall()
|
D | ConferenceTest.java | 183 Bundle extras = new Bundle(); in testConferenceSetters() local 184 extras.putString(TelecomManager.EXTRA_CALL_DISCONNECT_MESSAGE, "Test"); in testConferenceSetters() 186 mConferenceObject.setExtras(extras); in testConferenceSetters() 260 Bundle extras = new Bundle(); in testConferencePutExtras() local 261 extras.putString(TEST_EXTRA_KEY_1, TEST_EXTRA_VALUE_1); in testConferencePutExtras() 262 extras.putInt(TEST_EXTRA_KEY_2, TEST_EXTRA_VALUE_2); in testConferencePutExtras() 263 mConferenceObject.putExtras(extras); in testConferencePutExtras() 267 assertTrue(areBundlesEqual(extras, conf.getDetails().getExtras())); in testConferencePutExtras() 285 Bundle extras = mConferenceObject.getExtras(); in testConferenceRemoveExtras() local 287 assertFalse(extras.containsKey(TEST_EXTRA_KEY_1)); in testConferenceRemoveExtras() [all …]
|
D | ConnectionTest.java | 233 final Bundle extras = new Bundle(); in testSetAndGetExtras() local 234 extras.putBoolean("test-extra-key", true); in testSetAndGetExtras() 235 connection.setExtras(extras); in testSetAndGetExtras() 239 assertTrue(extras.getBoolean("test-extra-key")); in testSetAndGetExtras() 260 final Bundle extras = new Bundle(); in testPutExtras() local 261 extras.putBoolean("test-extra-key", true); in testPutExtras() 262 connection.putExtras(extras); in testPutExtras() 266 assertTrue(extras.getBoolean("test-extra-key")); in testPutExtras() 287 final Bundle extras = new Bundle(); in testRemoveExtras() local 288 extras.putBoolean("test-extra-key", true); in testRemoveExtras() [all …]
|
/cts/hostsidetests/services/activityandwindowmanager/activitymanager/app/src/android/server/cts/tools/ |
D | ActivityLauncher.java | 37 public static void launchActivityFromExtras(final Context context, Bundle extras) { in launchActivityFromExtras() argument 38 if (extras == null || !extras.getBoolean("launch_activity")) { in launchActivityFromExtras() 42 Log.i(TAG, "launchActivityFromExtras: extras=" + extras); in launchActivityFromExtras() 45 final String targetActivity = extras.getString("target_activity"); in launchActivityFromExtras() 47 final String extraPackageName = extras.getString("package_name"); in launchActivityFromExtras() 56 if (extras.getBoolean("launch_to_the_side")) { in launchActivityFromExtras() 58 if (extras.getBoolean("random_data")) { in launchActivityFromExtras() 65 if (extras.getBoolean("multiple_task")) { in launchActivityFromExtras() 68 if (extras.getBoolean("new_task")) { in launchActivityFromExtras() 72 if (extras.getBoolean("reorder_to_front")) { in launchActivityFromExtras() [all …]
|
/cts/hostsidetests/services/activityandwindowmanager/activitymanager/app/src/android/server/cts/ |
D | BroadcastReceiverActivity.java | 60 final Bundle extras = intent.getExtras(); in onReceive() local 61 Log.i(TAG, "onReceive: extras=" + extras); in onReceive() 63 if (extras == null) { in onReceive() 66 if (extras.getBoolean("finish")) { in onReceive() 69 if (extras.getBoolean("moveToBack")) { in onReceive() 72 if (extras.containsKey("orientation")) { in onReceive() 73 setRequestedOrientation(extras.getInt("orientation")); in onReceive() 75 if (extras.getBoolean("dismissKeyguard")) { in onReceive() 78 if (extras.getBoolean("dismissKeyguardMethod")) { in onReceive() 83 ActivityLauncher.launchActivityFromExtras(BroadcastReceiverActivity.this, extras); in onReceive()
|
D | VirtualDisplayActivity.java | 54 public final Bundle extras; field in VirtualDisplayActivity.VirtualDisplayRequest 56 public VirtualDisplayRequest(SurfaceView surfaceView, Bundle extras) { in VirtualDisplayRequest() argument 58 this.extras = extras; in VirtualDisplayRequest() 94 final Bundle extras = intent.getExtras(); in onNewIntent() local 95 if (extras == null) { in onNewIntent() 99 String command = extras.getString("command"); in onNewIntent() 102 createVirtualDisplay(extras); in onNewIntent() 119 private void createVirtualDisplay(Bundle extras) { in createVirtualDisplay() argument 120 final int requestedCount = extras.getInt(KEY_COUNT, 1); in createVirtualDisplay() 130 new VirtualDisplayRequest(surfaceView, extras)); in createVirtualDisplay() [all …]
|
D | AssistantVoiceInteractionService.java | 47 Bundle extras = intent.getExtras() != null ? intent.getExtras() : new Bundle(); in onStartCommand() local 48 showSession(extras, 0); in onStartCommand() 57 public static void launchAssistantActivity(Context context, Bundle extras) { in launchAssistantActivity() argument 59 if (extras != null) { in launchAssistantActivity() 60 i.putExtras(extras); in launchAssistantActivity()
|
D | TranslucentAssistantActivity.java | 33 static void launchActivityIntoAssistantStack(Activity caller, Bundle extras) { in launchActivityIntoAssistantStack() argument 36 if (extras != null) { in launchActivityIntoAssistantStack() 37 intent.putExtras(extras); in launchActivityIntoAssistantStack()
|
/cts/hostsidetests/inputmethodservice/common/src/android/inputmethodservice/cts/common/test/ |
D | ShellCommandUtils.java | 73 final String... extras) { in broadcastIntent() argument 74 if (extras.length % 3 != 0) { in broadcastIntent() 76 "extras must be triplets: " + Arrays.toString(extras)); in broadcastIntent() 80 for (int index = 0; index < extras.length; index += 3) { in broadcastIntent() 81 final String optionFlag = extras[index]; in broadcastIntent() 82 final String extraKey = extras[index + 1]; in broadcastIntent() 83 final String extraValue = extras[index + 2]; in broadcastIntent()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaControllerTest.java | 76 final Bundle extras = new Bundle(); in testSendCommand() local 77 extras.putString(EXTRAS_KEY, EXTRAS_VALUE); in testSendCommand() 78 mController.sendCommand(command, extras, new ResultReceiver(null)); in testSendCommand() 206 final Bundle extras = new Bundle(); in testTransportControlsAndMediaSessionCallback() local 207 extras.putString(EXTRAS_KEY, EXTRAS_VALUE); in testTransportControlsAndMediaSessionCallback() 208 controls.playFromMediaId(mediaId, extras); in testTransportControlsAndMediaSessionCallback() 218 controls.playFromSearch(query, extras); in testTransportControlsAndMediaSessionCallback() 228 controls.playFromUri(uri, extras); in testTransportControlsAndMediaSessionCallback() 238 controls.sendCustomAction(action, extras); in testTransportControlsAndMediaSessionCallback() 249 new CustomAction.Builder(action, action, -1).setExtras(extras).build(); in testTransportControlsAndMediaSessionCallback() [all …]
|
D | PlaybackStateTest.java | 78 Bundle extras = new Bundle(); in testBuilder_setterMethods() local 79 extras.putString(EXTRAS_KEY, EXTRAS_VALUE); in testBuilder_setterMethods() 87 .setExtras(extras) in testBuilder_setterMethods() 138 Bundle extras = new Bundle(); in testBuilder_addCustomActionWithCustomActionObject() local 139 extras.putString(EXTRAS_KEY, EXTRAS_VALUE); in testBuilder_addCustomActionWithCustomActionObject() 147 .setExtras(extras) in testBuilder_addCustomActionWithCustomActionObject() 151 .setExtras(extras) in testBuilder_addCustomActionWithCustomActionObject() 166 Bundle extras = new Bundle(); in testWriteToParcel() local 167 extras.putString(EXTRAS_KEY, EXTRAS_VALUE); in testWriteToParcel() 171 .setExtras(extras) in testWriteToParcel() [all …]
|
D | ResourceManagerTestActivity1.java | 34 Bundle extras = getIntent().getExtras(); in onCreate() local 35 if (extras != null) { in onCreate() 36 mWaitForReclaim = extras.getBoolean("wait-for-reclaim", mWaitForReclaim); in onCreate()
|
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
D | CommonDatabaseUtils.java | 82 public static void extrasVarArgsToValues(ContentValues values, String... extras) { in extrasVarArgsToValues() argument 83 Assert.assertNotNull(extras); in extrasVarArgsToValues() 85 Assert.assertEquals(0, extras.length % 2); in extrasVarArgsToValues() 86 for (int i = 0; i < extras.length; i += 2) { in extrasVarArgsToValues() 87 values.put(extras[i], extras[i + 1]); in extrasVarArgsToValues()
|
D | ContactsContract_ContactCountsTest.java | 64 final Bundle extras = cursor.getExtras(); in testContactCounts_noExtraNoExtrasReturned() local 65 assertFalse(extras.containsKey(Contacts.EXTRA_ADDRESS_BOOK_INDEX_COUNTS)); in testContactCounts_noExtraNoExtrasReturned() 66 assertFalse(extras.containsKey(Contacts.EXTRA_ADDRESS_BOOK_INDEX_TITLES)); in testContactCounts_noExtraNoExtrasReturned() 79 final Bundle extras = cursor.getExtras(); in testContactCounts_correctCountsReturned() local 80 assertTrue(extras.containsKey(Contacts.EXTRA_ADDRESS_BOOK_INDEX_COUNTS)); in testContactCounts_correctCountsReturned() 81 assertTrue(extras.containsKey(Contacts.EXTRA_ADDRESS_BOOK_INDEX_TITLES)); in testContactCounts_correctCountsReturned() 85 extras.getStringArray(Contacts.EXTRA_ADDRESS_BOOK_INDEX_TITLES); in testContactCounts_correctCountsReturned() 89 final int counts[] = extras.getIntArray(Contacts.EXTRA_ADDRESS_BOOK_INDEX_COUNTS); in testContactCounts_correctCountsReturned()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ContentResolverSyncTestCase.java | 125 Bundle extras = new Bundle(); in cancelSync() local 126 extras.putBoolean(ContentResolver.SYNC_EXTRAS_MANUAL, true); in cancelSync() 141 Bundle extras = new Bundle(); in requestSync() local 142 extras.putBoolean(ContentResolver.SYNC_EXTRAS_MANUAL, true); in requestSync() 144 ContentResolver.requestSync(account, authority, extras); in requestSync() 314 Bundle extras = new Bundle(); 315 extras.putInt("Integer", 20); 316 extras.putLong("Long", 10l); 317 extras.putBoolean("Boolean", true); 318 extras.putFloat("Float", 5.5f); [all …]
|
/cts/hostsidetests/services/activityandwindowmanager/activitymanager/appSecondUid/src/android/server/cts/second/ |
D | LaunchBroadcastReceiver.java | 33 final Bundle extras = intent.getExtras(); in onReceive() local 36 final String targetActivity = extras != null ? extras.getString("target_activity") : null; in onReceive() 38 String packageName = extras.getString("package_name"); in onReceive() 46 int displayId = extras.getInt("target_display", -1); in onReceive()
|
/cts/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/ |
D | BatteryStatsSyncAdapter.java | 54 public void onPerformSync(Account account, Bundle extras, String authority, in onPerformSync() argument 104 final Bundle extras = new Bundle(); in requestSync() local 105 extras.putBoolean(ContentResolver.SYNC_EXTRAS_EXPEDITED, true); in requestSync() 106 extras.putBoolean(ContentResolver.SYNC_EXTRAS_IGNORE_BACKOFF, true); in requestSync() 107 extras.putBoolean(ContentResolver.SYNC_EXTRAS_IGNORE_SETTINGS, true); in requestSync() 109 ContentResolver.requestSync(account, BatteryStatsProvider.AUTHORITY, extras); in requestSync()
|
/cts/hostsidetests/services/activityandwindowmanager/activitymanager/appDisplaySize/src/android/displaysize/app/ |
D | SmallestWidthActivity.java | 30 final Bundle extras = intent.getExtras(); in onNewIntent() local 31 if (extras != null && extras.getBoolean("launch_another_activity")) { in onNewIntent()
|
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/ |
D | MyNotificationListenerService.java | 69 sender.send("notification extras", notification.extras); in onNotificationPosted() 105 private void send(String reason, Bundle extras) { in send() argument 106 if (extras != null) { in send() 107 for (String key : extras.keySet()) { in send() 108 Object value = extras.get(key); in send()
|
/cts/tests/tests/content/src/android/content/res/cts/ |
D | AssetFileDescriptorTest.java | 76 Bundle extras; in testConstructor() local 82 extras = null; in testConstructor() 83 assetFileDes = new AssetFileDescriptor(fd, START_OFFSET, LENGTH, extras); in testConstructor() 84 assertEquals(extras, assetFileDes.getExtras()); in testConstructor() 88 extras = new Bundle(); in testConstructor() 89 assetFileDes = new AssetFileDescriptor(fd, START_OFFSET, LENGTH, extras); in testConstructor() 90 assertEquals(extras, assetFileDes.getExtras()); in testConstructor()
|
/cts/hostsidetests/content/test-apps/CtsSyncAccountAccessSameCertTests/src/com/android/cts/content/ |
D | SyncAdapter.java | 32 void onPerformSync(Account account, Bundle extras, String authority, in onPerformSync() argument 47 public void onPerformSync(Account account, Bundle extras, String authority, in onPerformSync() argument 54 delegate.onPerformSync(account, extras, authority, provider, syncResult); in onPerformSync()
|
/cts/tests/tests/voicesettings/service/src/android/voicesettings/service/ |
D | MainInteractionSession.java | 121 Bundle extras = intent.getExtras(); in onTaskFinished() local 123 intent.toString() + BroadcastUtils.toBundleString(extras)); in onTaskFinished() 126 if (extras == null) { in onTaskFinished() 127 extras = new Bundle(); in onTaskFinished() 129 extras.putString(BroadcastUtils.TESTCASE_TYPE, mTestType.toString()); in onTaskFinished() 130 broadcastIntent.putExtras(extras); in onTaskFinished() 131 Log.i(TAG, "sending_broadcast: Bundle = " + BroadcastUtils.toBundleString(extras) + in onTaskFinished()
|
/cts/tests/JobScheduler/jobperm/src/android/jobscheduler/cts/jobperm/ |
D | JobPermProvider.java | 37 public Bundle call(@NonNull String method, @Nullable String arg, @Nullable Bundle extras) { in call() argument 43 Uri uri = extras.getParcelable("uri"); in call() 50 Uri uri = extras.getParcelable("uri"); in call() 58 return super.call(method, arg, extras); in call()
|