Home
last modified time | relevance | path

Searched refs:extras (Results 1 – 25 of 157) sorted by relevance

1234567

/cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/
DMainInteractionSession.java81 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/
DTestJournalProvider.java89 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 …]
DActivityLauncher.java129 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/
DCallDetailsTest.java552 Bundle extras = mCall.getDetails().getExtras(); in testConnectionPutExtras() local
553 assertTrue(extras.containsKey(TEST_EXTRA_KEY)); in testConnectionPutExtras()
554 assertEquals(TEST_SUBJECT, extras.getString(TEST_EXTRA_KEY)); in testConnectionPutExtras()
555 assertTrue(extras.containsKey(TEST_EXTRA_KEY2)); in testConnectionPutExtras()
556 assertEquals(TEST_EXTRA_VALUE, extras.getInt(TEST_EXTRA_KEY2)); in testConnectionPutExtras()
557 assertTrue(extras.getBoolean(Connection.EXTRA_DISABLE_ADD_CALL)); in testConnectionPutExtras()
608 Bundle extras = mCall.getDetails().getExtras(); in verifyRemoveConnectionExtras() local
609 assertFalse(extras.containsKey(TEST_EXTRA_KEY)); in verifyRemoveConnectionExtras()
610 assertTrue(extras.containsKey(TEST_EXTRA_KEY2)); in verifyRemoveConnectionExtras()
611 assertEquals(TEST_EXTRA_VALUE, extras.getInt(TEST_EXTRA_KEY2)); in verifyRemoveConnectionExtras()
[all …]
DConferenceTest.java204 Bundle extras = new Bundle(); in testConferenceSetters() local
205 extras.putString(TelecomManager.EXTRA_CALL_DISCONNECT_MESSAGE, "Test"); in testConferenceSetters()
208 mConferenceObject.setExtras(extras); in testConferenceSetters()
282 Bundle extras = new Bundle(); in testConferencePutExtras() local
283 extras.putString(TEST_EXTRA_KEY_1, TEST_EXTRA_VALUE_1); in testConferencePutExtras()
284 extras.putInt(TEST_EXTRA_KEY_2, TEST_EXTRA_VALUE_2); in testConferencePutExtras()
286 mConferenceObject.putExtras(extras); in testConferencePutExtras()
312 Bundle extras = mConferenceObject.getExtras(); in testConferenceRemoveExtras() local
314 assertFalse(extras.containsKey(TEST_EXTRA_KEY_1)); in testConferenceRemoveExtras()
315 assertTrue(extras.containsKey(TEST_EXTRA_KEY_2)); in testConferenceRemoveExtras()
[all …]
DConnectionTest.java233 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 …]
DOutgoingCallTest.java82 final Bundle extras = new Bundle(); in testStartCallWithSpeakerphoneTrue_SpeakerphoneOnInCall() local
83 extras.putBoolean(TelecomManager.EXTRA_START_CALL_WITH_SPEAKERPHONE, true); in testStartCallWithSpeakerphoneTrue_SpeakerphoneOnInCall()
84 placeAndVerifyCall(extras); in testStartCallWithSpeakerphoneTrue_SpeakerphoneOnInCall()
94 final Bundle extras = new Bundle(); in testStartCallWithSpeakerphoneFalse_SpeakerphoneOffInCall() local
95 extras.putBoolean(TelecomManager.EXTRA_START_CALL_WITH_SPEAKERPHONE, false); in testStartCallWithSpeakerphoneFalse_SpeakerphoneOffInCall()
96 placeAndVerifyCall(extras); in testStartCallWithSpeakerphoneFalse_SpeakerphoneOffInCall()
153 final Bundle extras = new Bundle(); in testPhoneStateChangeAsExpected() local
154 extras.putBoolean(TelecomManager.EXTRA_START_CALL_WITH_SPEAKERPHONE, true); in testPhoneStateChangeAsExpected()
161 placeAndVerifyCall(extras); in testPhoneStateChangeAsExpected()
DBaseTelecomTestWithMockServices.java381 public void onConnectionEvent(Call call, String event, Bundle extras) { in setupCallbacks()
382 mOnConnectionEventCounter.invoke(call, event, extras); in setupCallbacks()
445 void addAndVerifyNewFailedIncomingCall(Uri incomingHandle, Bundle extras) { in addAndVerifyNewFailedIncomingCall() argument
452 if (extras == null) { in addAndVerifyNewFailedIncomingCall()
453 extras = new Bundle(); in addAndVerifyNewFailedIncomingCall()
455 extras.putParcelable(TelecomManager.EXTRA_INCOMING_CALL_ADDRESS, incomingHandle); in addAndVerifyNewFailedIncomingCall()
456 mTelecomManager.addNewIncomingCall(TestUtils.TEST_PHONE_ACCOUNT_HANDLE, extras); in addAndVerifyNewFailedIncomingCall()
482 void addAndVerifyNewIncomingCall(Uri incomingHandle, Bundle extras) { in addAndVerifyNewIncomingCall() argument
489 if (extras == null) { in addAndVerifyNewIncomingCall()
490 extras = new Bundle(); in addAndVerifyNewIncomingCall()
[all …]
DThirdPartyCallScreeningServiceTest.java320 Bundle extras = new Bundle(); in testNoPostCallActivityWhenAudioProcessing() local
321 extras.putParcelable(TelecomManager.EXTRA_INCOMING_CALL_ADDRESS, testNumber); in testNoPostCallActivityWhenAudioProcessing()
322 mTelecomManager.addNewIncomingCall(TestUtils.TEST_PHONE_ACCOUNT_HANDLE, extras); in testNoPostCallActivityWhenAudioProcessing()
342 Bundle extras = new Bundle(); in testNoPostCallActivityForOutgoingEmergencyCall() local
343 extras.putParcelable(TestUtils.EXTRA_PHONE_NUMBER, TEST_EMERGENCY_URI); in testNoPostCallActivityForOutgoingEmergencyCall()
344 placeAndVerifyCall(extras); in testNoPostCallActivityForOutgoingEmergencyCall()
360 Bundle extras = new Bundle(); in testNoPostCallActivityForIncomingEmergencyCall() local
361 extras.putParcelable(TelecomManager.EXTRA_INCOMING_CALL_ADDRESS, TEST_EMERGENCY_URI); in testNoPostCallActivityForIncomingEmergencyCall()
362 extras.putBoolean(EXTRA_NETWORK_IDENTIFIED_EMERGENCY_CALL, true); in testNoPostCallActivityForIncomingEmergencyCall()
363 mTelecomManager.addNewIncomingCall(TestUtils.TEST_PHONE_ACCOUNT_HANDLE, extras); in testNoPostCallActivityForIncomingEmergencyCall()
[all …]
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/
DVirtualDisplayActivity.java67 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 …]
DBroadcastReceiverActivity.java89 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()
DLaunchBroadcastReceiver.java39 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()
/cts/tests/tests/media/src/android/media/cts/
DMediaControllerTest.java84 final Bundle extras = new Bundle(); in testGetPlaybackState() local
85 extras.putString(EXTRAS_KEY, EXTRAS_VALUE); in testGetPlaybackState()
95 .setExtras(extras) in testGetPlaybackState()
135 final Bundle extras = new Bundle(); in testSendCommand() local
136 extras.putString(EXTRAS_KEY, EXTRAS_VALUE); in testSendCommand()
137 mController.sendCommand(command, extras, new ResultReceiver(null)); in testSendCommand()
276 final Bundle extras = new Bundle(); in testTransportControlsAndMediaSessionCallback() local
277 extras.putString(EXTRAS_KEY, EXTRAS_VALUE); in testTransportControlsAndMediaSessionCallback()
278 controls.playFromMediaId(mediaId, extras); in testTransportControlsAndMediaSessionCallback()
287 controls.playFromSearch(query, extras); in testTransportControlsAndMediaSessionCallback()
[all …]
DPlaybackStateTest.java80 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 …]
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerRequestPinTest.java77 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/
DContentResolverSyncTestCase.java131 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/tests/syncmanager/apps/app1/src/android/content/syncmanager/cts/app/
DSyncManagerCtsSyncAdapter.java57 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/provider/src/android/provider/cts/contacts/
DCommonDatabaseUtils.java82 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()
DContactsContract_ContactCountsTest.java64 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/inputmethodservice/common/src/android/inputmethodservice/cts/common/test/
DShellCommandUtils.java173 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/hostsidetests/statsd/apps/statsdapp/src/com/android/server/cts/device/statsd/
DStatsdSyncAdapter.java53 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/tests/tests/net/src/android/net/cts/
DConnectivityDiagnosticsManagerTest.java325 final PersistableBundle extras = new PersistableBundle(); in testOnDataStallSuspected_DnsEvents() local
326 extras.putInt(KEY_DNS_CONSECUTIVE_TIMEOUTS, DNS_CONSECUTIVE_TIMEOUTS); in testOnDataStallSuspected_DnsEvents()
328 verifyOnDataStallSuspected(DETECTION_METHOD_DNS_EVENTS, TIMESTAMP, extras); in testOnDataStallSuspected_DnsEvents()
333 final PersistableBundle extras = new PersistableBundle(); in testOnDataStallSuspected_TcpMetrics() local
334 extras.putInt(KEY_TCP_METRICS_COLLECTION_PERIOD_MILLIS, COLLECTION_PERIOD_MILLIS); in testOnDataStallSuspected_TcpMetrics()
335 extras.putInt(KEY_TCP_PACKET_FAIL_RATE, FAIL_RATE_PERCENTAGE); in testOnDataStallSuspected_TcpMetrics()
337 verifyOnDataStallSuspected(DETECTION_METHOD_TCP_METRICS, TIMESTAMP, extras); in testOnDataStallSuspected_TcpMetrics()
350 int detectionMethod, long timestampMillis, @NonNull PersistableBundle extras) in verifyOnDataStallSuspected() argument
353 verifyOnDataStallSuspected(detectionMethod, detectionMethod, timestampMillis, extras); in verifyOnDataStallSuspected()
360 @NonNull PersistableBundle extras) in verifyOnDataStallSuspected() argument
[all …]
/cts/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/
DBatteryStatsSyncAdapter.java54 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/appSecondUid/src/android/server/wm/second/
DEmbeddingActivity.java56 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/tests/framework/base/windowmanager/src/android/server/wm/lifecycle/
DLifecycleLog.java140 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()

1234567