/cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/ |
D | MainInteractionSession.java | 81 void assertPromptFromTestApp(CharSequence prompt, Bundle extras) { in assertPromptFromTestApp() argument 86 Utils.addErrorResult(extras, "Invalid prompt received: " + str); in assertPromptFromTestApp() 109 Bundle extras = request.getExtras(); in onRequestConfirmation() local 112 ", extras=" + Utils.toBundleString(extras)); in onRequestConfirmation() 113 assertPromptFromTestApp(prompt, extras); in onRequestConfirmation() 114 AsyncTaskArg asyncTaskArg = new AsyncTaskArg().setRequest(request).setExtras(extras); in onRequestConfirmation() 115 if (isTestTypeCancel(extras)) { in onRequestConfirmation() 121 Utils.toBundleString(extras)); in onRequestConfirmation() 129 Bundle extras = request.getExtras(); in onRequestCompleteVoice() local 132 prompt + ", extras=" + Utils.toBundleString(extras)); in onRequestCompleteVoice() [all …]
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | TestJournalProvider.java | 89 public Bundle call(String method, String arg, Bundle extras) { in call() argument 92 ensureExtras(method, extras); in call() 94 extras.getString(EXTRA_KEY_OWNER), extras.getParcelable(method)); in call() 98 ensureExtras(method, extras); in call() 100 extras.getString(EXTRA_KEY_OWNER), extras.getParcelable(method)); in call() 104 ensureExtras(method, extras); in call() 106 extras.getString(EXTRA_KEY_OWNER), extras); in call() local 112 private static void ensureExtras(String method, Bundle extras) { in ensureExtras() argument 113 if (extras == null) { in ensureExtras() 117 extras.setClassLoader(TestJournal.class.getClassLoader()); in ensureExtras() [all …]
|
D | ActivityLauncher.java | 129 public static void launchActivityFromExtras(final Context context, Bundle extras) { in launchActivityFromExtras() argument 130 launchActivityFromExtras(context, extras, null /* launchInjector */); in launchActivityFromExtras() 133 public static void launchActivityFromExtras(final Context context, Bundle extras, in launchActivityFromExtras() argument 135 if (extras == null || !extras.getBoolean(KEY_LAUNCH_ACTIVITY)) { in launchActivityFromExtras() 139 Log.i(TAG, "launchActivityFromExtras: extras=" + extras); in launchActivityFromExtras() 141 final String targetComponent = extras.getString(KEY_TARGET_COMPONENT); in launchActivityFromExtras() 145 if (extras.getBoolean(KEY_LAUNCH_TO_SIDE)) { in launchActivityFromExtras() 147 if (extras.getBoolean(KEY_RANDOM_DATA)) { in launchActivityFromExtras() 154 if (extras.getBoolean(KEY_MULTIPLE_TASK)) { in launchActivityFromExtras() 157 if (extras.getBoolean(KEY_NEW_TASK)) { in launchActivityFromExtras() [all …]
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | CallDetailsTest.java | 484 Bundle extras = mCall.getDetails().getExtras(); in testConnectionPutExtras() local 485 assertTrue(extras.containsKey(TEST_EXTRA_KEY)); in testConnectionPutExtras() 486 assertEquals(TEST_SUBJECT, extras.getString(TEST_EXTRA_KEY)); in testConnectionPutExtras() 487 assertTrue(extras.containsKey(TEST_EXTRA_KEY2)); in testConnectionPutExtras() 488 assertEquals(TEST_EXTRA_VALUE, extras.getInt(TEST_EXTRA_KEY2)); in testConnectionPutExtras() 528 Bundle extras = mCall.getDetails().getExtras(); in verifyRemoveConnectionExtras() local 529 assertFalse(extras.containsKey(TEST_EXTRA_KEY)); in verifyRemoveConnectionExtras() 530 assertTrue(extras.containsKey(TEST_EXTRA_KEY2)); in verifyRemoveConnectionExtras() 531 assertEquals(TEST_EXTRA_VALUE, extras.getInt(TEST_EXTRA_KEY2)); in verifyRemoveConnectionExtras() 549 Bundle extras = mConnection.getExtras(); in testCallPutExtras() local [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 | 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 …]
|
D | ConferenceTest.java | 201 Bundle extras = new Bundle(); in testConferenceSetters() local 202 extras.putString(TelecomManager.EXTRA_CALL_DISCONNECT_MESSAGE, "Test"); in testConferenceSetters() 205 mConferenceObject.setExtras(extras); in testConferenceSetters() 279 Bundle extras = new Bundle(); in testConferencePutExtras() local 280 extras.putString(TEST_EXTRA_KEY_1, TEST_EXTRA_VALUE_1); in testConferencePutExtras() 281 extras.putInt(TEST_EXTRA_KEY_2, TEST_EXTRA_VALUE_2); in testConferencePutExtras() 283 mConferenceObject.putExtras(extras); in testConferencePutExtras() 309 Bundle extras = mConferenceObject.getExtras(); in testConferenceRemoveExtras() local 311 assertFalse(extras.containsKey(TEST_EXTRA_KEY_1)); in testConferenceRemoveExtras() 312 assertTrue(extras.containsKey(TEST_EXTRA_KEY_2)); in testConferenceRemoveExtras() [all …]
|
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/ |
D | VirtualDisplayActivity.java | 67 final Bundle extras; field in VirtualDisplayActivity.VirtualDisplayRequest 69 VirtualDisplayRequest(SurfaceView surfaceView, Bundle extras) { in VirtualDisplayRequest() argument 71 this.extras = extras; in VirtualDisplayRequest() 106 final Bundle extras = intent.getExtras(); in onNewIntent() local 107 if (extras == null) { in onNewIntent() 111 String command = extras.getString(KEY_COMMAND); in onNewIntent() 114 createVirtualDisplay(extras); in onNewIntent() 131 private void createVirtualDisplay(Bundle extras) { in createVirtualDisplay() argument 132 final int requestedCount = extras.getInt(KEY_COUNT, 1); in createVirtualDisplay() 144 new VirtualDisplayRequest(surfaceView, extras)); in createVirtualDisplay() [all …]
|
D | LaunchBroadcastReceiver.java | 39 final Bundle extras = intent.getExtras(); in onReceive() local 40 Log.i(TAG, "onReceive: extras=" + extras); in onReceive() 41 if (extras == null) { in onReceive() 48 ActivityLauncher.launchActivityFromExtras(context, extras, in onReceive() 49 CommandSession.handleForward(extras)); in onReceive() 54 final ComponentName componentName = extras.getParcelable(EXTRA_COMPONENT_NAME); in onReceive() 55 final int displayId = extras.getInt(EXTRA_TARGET_DISPLAY); in onReceive()
|
D | BroadcastReceiverActivity.java | 89 final Bundle extras = intent.getExtras(); in onReceive() local 90 Log.i(TAG, "onReceive: extras=" + extras); in onReceive() 92 if (extras == null) { in onReceive() 95 if (extras.getBoolean(EXTRA_FINISH_BROADCAST)) { in onReceive() 98 if (extras.getBoolean(EXTRA_MOVE_BROADCAST_TO_BACK)) { in onReceive() 101 if (extras.containsKey(EXTRA_BROADCAST_ORIENTATION)) { in onReceive() 102 setRequestedOrientation(extras.getInt(EXTRA_BROADCAST_ORIENTATION)); in onReceive() 104 if (extras.getBoolean(EXTRA_DISMISS_KEYGUARD)) { in onReceive() 107 if (extras.getBoolean(EXTRA_DISMISS_KEYGUARD_METHOD)) { in onReceive() 113 ActivityLauncher.launchActivityFromExtras(BroadcastReceiverActivity.this, extras); in onReceive()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaControllerTest.java | 83 final Bundle extras = new Bundle(); in testGetPlaybackState() local 84 extras.putString(EXTRAS_KEY, EXTRAS_VALUE); in testGetPlaybackState() 94 .setExtras(extras) in testGetPlaybackState() 134 final Bundle extras = new Bundle(); in testSendCommand() local 135 extras.putString(EXTRAS_KEY, EXTRAS_VALUE); in testSendCommand() 136 mController.sendCommand(command, extras, new ResultReceiver(null)); in testSendCommand() 275 final Bundle extras = new Bundle(); in testTransportControlsAndMediaSessionCallback() local 276 extras.putString(EXTRAS_KEY, EXTRAS_VALUE); in testTransportControlsAndMediaSessionCallback() 277 controls.playFromMediaId(mediaId, extras); in testTransportControlsAndMediaSessionCallback() 286 controls.playFromSearch(query, extras); in testTransportControlsAndMediaSessionCallback() [all …]
|
D | PlaybackStateTest.java | 80 Bundle extras = new Bundle(); in testBuilder_setterMethods() local 81 extras.putString(EXTRAS_KEY, EXTRAS_VALUE); in testBuilder_setterMethods() 89 .setExtras(extras) in testBuilder_setterMethods() 140 Bundle extras = new Bundle(); in testBuilder_addCustomActionWithCustomActionObject() local 141 extras.putString(EXTRAS_KEY, EXTRAS_VALUE); in testBuilder_addCustomActionWithCustomActionObject() 149 .setExtras(extras) in testBuilder_addCustomActionWithCustomActionObject() 153 .setExtras(extras) in testBuilder_addCustomActionWithCustomActionObject() 168 Bundle extras = new Bundle(); in testWriteToParcel() local 169 extras.putString(EXTRAS_KEY, EXTRAS_VALUE); in testWriteToParcel() 173 .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/hostsidetests/statsd/apps/statsdapp/src/com/android/server/cts/device/statsd/ |
D | StatsdSyncAdapter.java | 53 public void onPerformSync(Account account, Bundle extras, String authority, in onPerformSync() argument 74 final Bundle extras = new Bundle(); in requestSync() local 75 extras.putBoolean(ContentResolver.SYNC_EXTRAS_EXPEDITED, true); in requestSync() 76 extras.putBoolean(ContentResolver.SYNC_EXTRAS_IGNORE_BACKOFF, true); in requestSync() 77 extras.putBoolean(ContentResolver.SYNC_EXTRAS_IGNORE_SETTINGS, true); in requestSync() 79 ContentResolver.requestSync(account, StatsdProvider.AUTHORITY, extras); in requestSync()
|
/cts/hostsidetests/inputmethodservice/common/src/android/inputmethodservice/cts/common/test/ |
D | ShellCommandUtils.java | 173 public static String broadcastIntent(String action, String targetComponent, String... extras) { in broadcastIntent() argument 174 if (extras.length % 3 != 0) { in broadcastIntent() 176 "extras must be triplets: " + Arrays.toString(extras)); in broadcastIntent() 180 for (int index = 0; index < extras.length; index += 3) { in broadcastIntent() 181 final String optionFlag = extras[index]; in broadcastIntent() 182 final String extraKey = extras[index + 1]; in broadcastIntent() 183 final String extraValue = extras[index + 2]; in broadcastIntent()
|
/cts/tests/tests/syncmanager/apps/app1/src/android/content/syncmanager/cts/app/ |
D | SyncManagerCtsSyncAdapter.java | 57 SyncResult onPerformSync(Account account, Bundle extras, String authority, in onPerformSync() argument 64 public void onPerformSync(Account account, Bundle extras, String authority, in onPerformSync() argument 67 extras.size(); // Force unparcel extras. in onPerformSync() 69 + " extras=" + extras); in onPerformSync() 77 .setExtras(ByteString.copyFrom(ParcelUtils.toBytes(extras))).build()); in onPerformSync() 80 if (extras.getBoolean(ContentResolver.SYNC_EXTRAS_INITIALIZE)) { in onPerformSync() 84 sSyncInterceptor.onPerformSync(account, extras, authority, syncResult); in onPerformSync() 102 + " extras=" + extras + " result=" + syncResult); in onPerformSync()
|
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/ |
D | ShortcutManagerRequestPinTest.java | 77 final PersistableBundle extras = new PersistableBundle(); in testRequestPinShortcut() 78 extras.putString(Constants.EXTRA_REPLY_ACTION, replyAction); in testRequestPinShortcut() 79 extras.putString(Constants.LABEL, "label1"); in testRequestPinShortcut() 84 .setExtras(extras) in testRequestPinShortcut() 145 final PersistableBundle extras = new PersistableBundle(); in testRequestPinShortcut_multiLaunchers() 146 extras.putString(Constants.EXTRA_REPLY_ACTION, replyAction); in testRequestPinShortcut_multiLaunchers() 147 extras.putString(Constants.LABEL, "label1"); in testRequestPinShortcut_multiLaunchers() 150 .setExtras(extras) in testRequestPinShortcut_multiLaunchers() 205 final PersistableBundle extras = new PersistableBundle(); in testRequestPinShortcut_multiLaunchers_withDynamic() 206 extras.putString(Constants.EXTRA_REPLY_ACTION, replyAction); in testRequestPinShortcut_multiLaunchers_withDynamic() [all …]
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ContentResolverSyncTestCase.java | 131 Bundle extras = new Bundle(); in cancelSync() local 132 extras.putBoolean(ContentResolver.SYNC_EXTRAS_MANUAL, true); in cancelSync() 161 Bundle extras = new Bundle(); in requestSync() local 162 extras.putBoolean(ContentResolver.SYNC_EXTRAS_MANUAL, true); in requestSync() 164 ContentResolver.requestSync(account, authority, extras); in requestSync() 334 Bundle extras = new Bundle(); 335 extras.putInt("Integer", 20); 336 extras.putLong("Long", 10l); 337 extras.putBoolean("Boolean", true); 338 extras.putFloat("Float", 5.5f); [all …]
|
/cts/tests/framework/base/windowmanager/appSecondUid/src/android/server/wm/second/ |
D | EmbeddingActivity.java | 56 final Bundle extras = intent.getExtras(); in onReceive() local 57 Log.i(TAG, "onReceive: extras=" + extras); in onReceive() 59 if (extras == null) { in onReceive() 64 extras.getParcelable(EXTRA_EMBEDDING_COMPONENT_NAME); in onReceive() 65 final int displayId = extras.getInt(EXTRA_EMBEDDING_TARGET_DISPLAY); 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/tests/framework/base/windowmanager/src/android/server/wm/lifecycle/ |
D | LifecycleLog.java | 140 final Bundle extras = new Bundle(); in onActivityCallback() local 141 extras.putInt(METHOD_ADD_CALLBACK, callback.ordinal()); in onActivityCallback() 142 extras.putString(EXTRA_KEY_ACTIVITY, mOwner); in onActivityCallback() 144 mClient.call(METHOD_ADD_CALLBACK, EMPTY_ARG, extras); in onActivityCallback() 166 public Bundle call(String method, String arg, Bundle extras) { in call() argument 170 onActivityCallback(extras.getString(EXTRA_KEY_ACTIVITY), in call() 171 ActivityCallback.values()[extras.getInt(method)]); in call()
|
/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/tests/tests/assist/service/src/android/assist/service/ |
D | MainInteractionService.java | 117 Bundle extras = intent.getExtras(); in onReceive() local 118 if (extras == null) { in onReceive() 119 extras = new Bundle(); in onReceive() 122 extras.putString(Utils.TESTCASE_TYPE, mIntent.getStringExtra(Utils.TESTCASE_TYPE)); in onReceive() 123 extras.putParcelable(Utils.EXTRA_REMOTE_CALLBACK, mRemoteCallback); in onReceive() 125 extras, SHOW_WITH_ASSIST | SHOW_WITH_SCREENSHOT); in onReceive()
|