/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 | 146 public static void launchActivityFromExtras(final Context context, Bundle extras) { in launchActivityFromExtras() argument 147 launchActivityFromExtras(context, extras, null /* launchInjector */); in launchActivityFromExtras() 157 private static boolean getBoolean(Bundle extras, String key) { in getBoolean() argument 158 return extras != null && extras.getBoolean(key); in getBoolean() 161 public static void launchActivityFromExtras(final Context context, Bundle extras, in launchActivityFromExtras() argument 163 if (!getBoolean(extras, KEY_LAUNCH_ACTIVITY)) { in launchActivityFromExtras() 166 Log.i(TAG, "launchActivityFromExtras: extras=" + extras); in launchActivityFromExtras() 170 if (getBoolean(extras, KEY_LAUNCH_IMPLICIT)) { in launchActivityFromExtras() 171 newIntent.setAction(extras.getString(KEY_ACTION, IMPLICIT_TARGET_SECOND_TEST_ACTION)); in launchActivityFromExtras() 173 final String targetComponent = extras.getString(KEY_TARGET_COMPONENT); in launchActivityFromExtras() [all …]
|
/cts/tests/tests/content/src/android/content/cts/ |
D | SyncRequestTest.java | 37 Bundle extras = new Bundle(); in testBuilder_normal() local 38 extras.putBoolean(ContentResolver.SYNC_EXTRAS_DO_NOT_RETRY, true); in testBuilder_normal() 39 extras.putBoolean(ContentResolver.SYNC_EXTRAS_PRIORITY, true); in testBuilder_normal() 40 extras.putBoolean(ContentResolver.SYNC_EXTRAS_IGNORE_SETTINGS, true); in testBuilder_normal() 44 .setExtras(extras) in testBuilder_normal() 70 final Bundle extras = new Bundle(); in testBuilder_throwsException() local 71 extras.putBoolean(ContentResolver.SYNC_EXTRAS_SCHEDULE_AS_EXPEDITED_JOB, true); in testBuilder_throwsException() 76 .setExtras(extras) in testBuilder_throwsException() 86 .setExtras(extras) in testBuilder_throwsException()
|
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/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 | 131 final Bundle extras = intent.getExtras(); in onReceive() local 132 if (extras == null) { in onReceive() 136 extras.size(); in onReceive() 137 Log.i(TAG, "onReceive: extras=" + extras); in onReceive() 144 if (extras.getBoolean(EXTRA_FINISH_BROADCAST)) { in onReceive() 147 if (extras.getBoolean(EXTRA_MOVE_BROADCAST_TO_BACK)) { in onReceive() 150 if (extras.containsKey(EXTRA_BROADCAST_ORIENTATION)) { in onReceive() 151 activity.setRequestedOrientation(extras.getInt(EXTRA_BROADCAST_ORIENTATION)); in onReceive() 153 if (extras.getBoolean(EXTRA_DISMISS_KEYGUARD)) { in onReceive() 156 if (extras.getBoolean(EXTRA_DISMISS_KEYGUARD_METHOD)) { in onReceive() [all …]
|
D | LandscapeOrientationActivity.java | 42 final Bundle extras = new Bundle(); in onCreate() 46 extras.putParcelable(EXTRA_CONFIG_INFO_IN_ON_CREATE, new ConfigInfo(this, display)); in onCreate() 47 extras.putParcelable(EXTRA_DISPLAY_REAL_SIZE, size); in onCreate() 50 extras.putParcelable(EXTRA_APP_CONFIG_INFO, new ConfigInfo(app, in onCreate() 55 extras.putParcelable(EXTRA_SYSTEM_RESOURCES_CONFIG_INFO, in onCreate() 57 client.putExtras(extras); in onCreate()
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | CallDetailsTest.java | 599 Bundle extras = mCall.getDetails().getExtras(); in testConnectionPutExtras() local 600 assertTrue(extras.containsKey(TEST_EXTRA_KEY)); in testConnectionPutExtras() 601 assertEquals(TEST_SUBJECT, extras.getString(TEST_EXTRA_KEY)); in testConnectionPutExtras() 602 assertTrue(extras.containsKey(TEST_EXTRA_KEY2)); in testConnectionPutExtras() 603 assertEquals(TEST_EXTRA_VALUE, extras.getInt(TEST_EXTRA_KEY2)); in testConnectionPutExtras() 604 assertTrue(extras.getBoolean(Connection.EXTRA_DISABLE_ADD_CALL)); in testConnectionPutExtras() 655 Bundle extras = mCall.getDetails().getExtras(); in verifyRemoveConnectionExtras() local 656 assertFalse(extras.containsKey(TEST_EXTRA_KEY)); in verifyRemoveConnectionExtras() 657 assertTrue(extras.containsKey(TEST_EXTRA_KEY2)); in verifyRemoveConnectionExtras() 658 assertEquals(TEST_EXTRA_VALUE, extras.getInt(TEST_EXTRA_KEY2)); in verifyRemoveConnectionExtras() [all …]
|
D | CallDiagnosticServiceTest.java | 119 final Bundle extras = new Bundle(); in testAddMultipleCalls() local 120 extras.putParcelable(TelecomManager.EXTRA_PHONE_ACCOUNT_HANDLE, in testAddMultipleCalls() 124 placeAndVerifyCall(extras); in testAddMultipleCalls() 238 Bundle extras = (Bundle) (counter.getArgs(0)[1]); in testSendD2DMessage() local 240 assertNotNull(extras); in testSendD2DMessage() 241 int messageType = extras.getInt(Connection.EXTRA_DEVICE_TO_DEVICE_MESSAGE_TYPE); in testSendD2DMessage() 242 int messageValue = extras.getInt(Connection.EXTRA_DEVICE_TO_DEVICE_MESSAGE_VALUE); in testSendD2DMessage() 262 Bundle extras = (Bundle) (mOnConnectionEventCounter.getArgs(0)[2]); in testDisplayDiagnosticMessage() local 264 assertNotNull(extras); in testDisplayDiagnosticMessage() 265 CharSequence message = extras.getCharSequence(Call.EXTRA_DIAGNOSTIC_MESSAGE); in testDisplayDiagnosticMessage() [all …]
|
D | OutgoingCallTest.java | 87 final Bundle extras = new Bundle(); in testStartCallWithSpeakerphoneTrue_SpeakerphoneOnInCall() local 88 extras.putBoolean(TelecomManager.EXTRA_START_CALL_WITH_SPEAKERPHONE, true); in testStartCallWithSpeakerphoneTrue_SpeakerphoneOnInCall() 89 placeAndVerifyCall(extras); in testStartCallWithSpeakerphoneTrue_SpeakerphoneOnInCall() 99 final Bundle extras = new Bundle(); in testStartCallWithSpeakerphoneFalse_SpeakerphoneOffInCall() local 100 extras.putBoolean(TelecomManager.EXTRA_START_CALL_WITH_SPEAKERPHONE, false); in testStartCallWithSpeakerphoneFalse_SpeakerphoneOffInCall() 101 placeAndVerifyCall(extras); in testStartCallWithSpeakerphoneFalse_SpeakerphoneOffInCall() 148 Bundle extras = new Bundle(); in testPhoneStateListenerInvokedOnOutgoingEmergencyCall() local 149 extras.putParcelable(TelecomManager.EXTRA_PHONE_ACCOUNT_HANDLE, in testPhoneStateListenerInvokedOnOutgoingEmergencyCall() 151 mTelecomManager.placeCall(Uri.fromParts("tel", TEST_EMERGENCY_NUMBER, null), extras); in testPhoneStateListenerInvokedOnOutgoingEmergencyCall() 190 final Bundle extras = new Bundle(); in testPhoneStateChangeAsExpected() local [all …]
|
/cts/tests/tests/permission3/UsePermissionApp22CalendarOnly/src/android/permission3/cts/usepermission/ |
D | CheckPermissionService.kt | 32 val extras = intent!!.extras!! in onHandleIntent() constant 37 extras.classLoader = testContext.classLoader in onHandleIntent() 38 val result = extras.getParcelable<ResultReceiver>("$packageName.RESULT")!! in onHandleIntent() 39 val permission = extras.getString("$packageName.PERMISSION")!! in onHandleIntent()
|
/cts/tests/translation/src/android/translation/cts/unittests/ |
D | TranslationValueTest.java | 70 final Bundle extras = new Bundle(); in testTranslationResponseValue_validDictionary() local 71 extras.putBundle(TranslationResponseValue.EXTRA_DEFINITIONS, definitions); in testTranslationResponseValue_validDictionary() 74 .setExtras(extras) in testTranslationResponseValue_validDictionary() 95 final Bundle extras = new Bundle(); in testTranslationResponseValue_extrasEqualityWhenSameInstance() local 97 new TranslationResponseValue.Builder(STATUS_SUCCESS).setExtras(extras).build(); in testTranslationResponseValue_extrasEqualityWhenSameInstance() 99 new TranslationResponseValue.Builder(STATUS_SUCCESS).setExtras(extras).build(); in testTranslationResponseValue_extrasEqualityWhenSameInstance() 108 final Bundle extras = new Bundle(); in testTranslationResponseValue_extrasEqualityWhenEmpty() local 110 new TranslationResponseValue.Builder(STATUS_SUCCESS).setExtras(extras).build(); in testTranslationResponseValue_extrasEqualityWhenEmpty() 119 final Bundle extras = new Bundle(); in testTranslationResponseValue_extrasEqualityWhenUnequal() local 120 extras.putString("k", "v"); in testTranslationResponseValue_extrasEqualityWhenUnequal() [all …]
|
/cts/tests/suspendapps/tests/src/android/suspendapps/cts/ |
D | SuspendTestUtils.java | 100 final Bundle extras = new Bundle(1); in createSingleKeyBundle() local 101 extras.putString(key, value); in createSingleKeyBundle() 102 return extras; in createSingleKeyBundle() 119 static boolean requestDpmAction(String action, @Nullable Bundle extras, Handler resultHandler) in requestDpmAction() argument 124 if (extras != null) { in requestDpmAction() 125 requestIntent.putExtras(extras); in requestDpmAction() 164 static void startTestAppActivity(@Nullable Bundle extras) { in startTestAppActivity() argument 169 if (extras != null) { in startTestAppActivity() 170 testActivity.putExtras(extras); in startTestAppActivity() 177 final PersistableBundle extras = new PersistableBundle(3); in createExtras() local [all …]
|
/cts/tests/tests/contactsprovider/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()
|
/cts/tests/tests/provider/src/android/provider/cts/media/ |
D | MediaStoreMatchTest.java | 101 final Bundle extras = new Bundle(); in verifyMatch() local 102 extras.putInt(queryArg, MediaStore.MATCH_INCLUDE); in verifyMatch() 103 assertTrue(containsId(mExternalImages, extras, posId)); in verifyMatch() 104 assertTrue(containsId(mExternalImages, extras, negId)); in verifyMatch() 106 extras.putInt(queryArg, MediaStore.MATCH_EXCLUDE); in verifyMatch() 107 assertFalse(containsId(mExternalImages, extras, posId)); in verifyMatch() 108 assertTrue(containsId(mExternalImages, extras, negId)); in verifyMatch() 110 extras.putInt(queryArg, MediaStore.MATCH_ONLY); in verifyMatch() 111 assertTrue(containsId(mExternalImages, extras, posId)); in verifyMatch() 112 assertFalse(containsId(mExternalImages, extras, negId)); in verifyMatch()
|
/cts/hostsidetests/statsdatom/apps/statsdapp/src/com/android/server/cts/device/statsdatom/ |
D | StatsdSyncAdapter.java | 53 public void onPerformSync(Account account, Bundle extras, String authority, in onPerformSync() argument 73 final Bundle extras = new Bundle(); in requestSync() local 74 extras.putBoolean(ContentResolver.SYNC_EXTRAS_EXPEDITED, true); in requestSync() 75 extras.putBoolean(ContentResolver.SYNC_EXTRAS_IGNORE_BACKOFF, true); in requestSync() 76 extras.putBoolean(ContentResolver.SYNC_EXTRAS_IGNORE_SETTINGS, true); in requestSync() 78 ContentResolver.requestSync(account, StatsdProvider.AUTHORITY, extras); in requestSync()
|
/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/hostsidetests/inputmethodservice/common/src/android/inputmethodservice/cts/common/test/ |
D | ShellCommandUtils.java | 210 public static String broadcastIntent(String action, String targetComponent, String... extras) { in broadcastIntent() argument 211 if (extras.length % 3 != 0) { in broadcastIntent() 213 "extras must be triplets: " + Arrays.toString(extras)); in broadcastIntent() 217 for (int index = 0; index < extras.length; index += 3) { in broadcastIntent() 218 final String optionFlag = extras[index]; in broadcastIntent() 219 final String extraKey = extras[index + 1]; in broadcastIntent() 220 final String extraValue = extras[index + 2]; in broadcastIntent()
|
/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/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/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/inputmethod/src/android/view/inputmethod/cts/util/ |
D | MockTestActivityUtil.java | 82 private static Uri formatStringIntentParam(@NonNull Uri uri, Map<String, String> extras) { in formatStringIntentParam() argument 83 if (extras == null) { in formatStringIntentParam() 87 extras.forEach(builder::appendQueryParameter); in formatStringIntentParam() 111 @Nullable Map<String, String> extras) { in launchSync() argument 118 final Uri uri = formatStringIntentParam(TEST_ACTIVITY_URI, extras); in launchSync() 124 if (extras != null) { in launchSync() 125 extras.forEach((key, value) -> commandBuilder.append(" --es ") in launchSync()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaRoute2InfoTest.java | 110 Bundle extras = new Bundle(); in testBuilderAndGettersOfMediaRoute2Info() local 111 extras.putString(TEST_KEY, TEST_VALUE); in testBuilderAndGettersOfMediaRoute2Info() 123 .setExtras(extras) in testBuilderAndGettersOfMediaRoute2Info() 186 Bundle extras = new Bundle(); in testEqualsCreatedWithSameArguments() local 187 extras.putString(TEST_KEY, TEST_VALUE); in testEqualsCreatedWithSameArguments() 199 .setExtras(extras) in testEqualsCreatedWithSameArguments() 212 .setExtras(extras) in testEqualsCreatedWithSameArguments() 221 Bundle extras = new Bundle(); in testEqualsCreatedWithBuilderCopyConstructor() local 222 extras.putString(TEST_KEY, TEST_VALUE); in testEqualsCreatedWithBuilderCopyConstructor() 234 .setExtras(extras) in testEqualsCreatedWithBuilderCopyConstructor() [all …]
|
/cts/tests/tests/assist/service/src/android/assist/service/ |
D | MainInteractionService.java | 118 Bundle extras = intent.getExtras(); in onReceive() local 119 if (extras == null) { in onReceive() 120 extras = new Bundle(); in onReceive() 122 int showSessionFlags = extras.getInt(SHOW_SESSION_FLAGS_TO_SET, in onReceive() 124 extras.putString(Utils.TESTCASE_TYPE, mIntent.getStringExtra(Utils.TESTCASE_TYPE)); in onReceive() 125 extras.putParcelable(Utils.EXTRA_REMOTE_CALLBACK, mRemoteCallback); in onReceive() 127 extras, showSessionFlags); in onReceive()
|