/cts/tests/tests/binder_ndk/libbinder_ndk_test/ |
D | test_persistable_bundle.cpp | 26 APersistableBundle* bundle = APersistableBundle_new(); in TEST_F() local 27 EXPECT_NE(nullptr, bundle); in TEST_F() 28 APersistableBundle_delete(bundle); in TEST_F() 32 APersistableBundle* bundle = APersistableBundle_new(); in TEST_F() local 33 ASSERT_NE(nullptr, bundle); in TEST_F() 34 APersistableBundle* dup = APersistableBundle_dup(bundle); in TEST_F() 36 EXPECT_NE(bundle, dup); in TEST_F() 40 APersistableBundle* bundle = APersistableBundle_new(); in TEST_F() local 41 ASSERT_NE(nullptr, bundle); in TEST_F() 44 APersistableBundle_putBoolean(bundle, "a", true); in TEST_F() [all …]
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-35676/src/android/security/cts/CVE_2023_35676/com/google/android/apps/miphone/aiai/matchnaker/overview/api/generatedv2/ |
D | SuggestParcelables.java | 40 public Action(Bundle bundle) { in Action() argument 41 if (bundle.containsKey(context.getString(R.string.id))) { in Action() 42 this.id = bundle.getString(context.getString(R.string.id)); in Action() 44 if (bundle.containsKey(context.getString(R.string.displayName))) { in Action() 45 this.displayName = bundle.getString(context.getString(R.string.displayName)); in Action() 47 if (bundle.containsKey(context.getString(R.string.fullDisplayName))) { in Action() 49 bundle.getString(context.getString(R.string.fullDisplayName)); in Action() 54 Bundle bundle = new Bundle(); in writeToBundle() local 55 bundle.putString(context.getString(R.string.id), this.id); in writeToBundle() 56 bundle.putString(context.getString(R.string.displayName), this.displayName); in writeToBundle() [all …]
|
/cts/tests/inputmethod/mocka11yime/common/src/com/android/cts/mocka11yime/ |
D | MockA11yImeEvent.java | 132 final Bundle bundle = new Bundle(); in toBundle() local 133 bundle.putString("mEventName", mEventName); in toBundle() 134 bundle.putInt("mNestLevel", mNestLevel); in toBundle() 135 bundle.putString("mThreadName", mThreadName); in toBundle() 136 bundle.putInt("mThreadId", mThreadId); in toBundle() 137 bundle.putBoolean("mIsMainThread", mIsMainThread); in toBundle() 138 bundle.putLong("mEnterTimestamp", mEnterTimestamp); in toBundle() 139 bundle.putLong("mExitTimestamp", mExitTimestamp); in toBundle() 140 bundle.putLong("mEnterWallTime", mEnterWallTime); in toBundle() 141 bundle.putLong("mExitWallTime", mExitWallTime); in toBundle() [all …]
|
D | MockA11yImeCommand.java | 49 private MockA11yImeCommand(@NonNull Bundle bundle) { in MockA11yImeCommand() argument 50 mName = bundle.getString(NAME_KEY); in MockA11yImeCommand() 51 mId = bundle.getLong(ID_KEY); in MockA11yImeCommand() 52 mDispatchToMainThread = bundle.getBoolean(DISPATCH_TO_MAIN_THREAD_KEY); in MockA11yImeCommand() 53 mExtras = bundle.getBundle(EXTRA_KEY); in MockA11yImeCommand() 56 static MockA11yImeCommand fromBundle(@NonNull Bundle bundle) { in fromBundle() argument 57 return new MockA11yImeCommand(bundle); in fromBundle() 61 final Bundle bundle = new Bundle(); in toBundle() local 62 bundle.putString(NAME_KEY, mName); in toBundle() 63 bundle.putLong(ID_KEY, mId); in toBundle() [all …]
|
/cts/tests/devicepolicy/src/android/devicepolicy/cts/utils/ |
D | BundleUtils.java | 66 Bundle bundle = new Bundle(); in createBundle() local 67 bundle.putString("bundle_string", "bundle_string"); in createBundle() 68 bundle.putInt("bundle_int", 1); in createBundle() 69 result.putBundle("bundle", bundle); in createBundle() 76 bundleArray[0].putBundle("bundle_array_bundle", bundle); in createBundle() 88 public static void assertEqualToBundle(String id, Bundle bundle) { in assertEqualToBundle() argument 90 .that(bundle.size()).isEqualTo(8); in assertEqualToBundle() 91 assertBooleanKey(bundle, "boolean_0", false); in assertEqualToBundle() 92 assertBooleanKey(bundle, "boolean_1", true); in assertEqualToBundle() 93 assertIntKey(bundle, "integer", 0xfffff); in assertEqualToBundle() [all …]
|
/cts/tests/tests/media/misc/src/android/media/misc/cts/ |
D | MediaMetricsTest.java | 57 final Bundle bundle = item.toBundle(); in testBasicItem() local 59 assertEquals(1, bundle.getInt("int")); in testBasicItem() 60 assertEquals(2, bundle.getLong("long")); in testBasicItem() 61 assertEquals("ABCD", bundle.getString("string")); in testBasicItem() 62 assertEquals(3.1, bundle.getDouble("double"), 1e-6 /* delta */); in testBasicItem() 64 assertEquals("Key", bundle.getString(MediaMetrics.Item.BUNDLE_KEY)); in testBasicItem() 65 assertEquals(-1, bundle.getInt(MediaMetrics.Item.BUNDLE_PID)); // default PID in testBasicItem() 66 assertEquals(-1, bundle.getInt(MediaMetrics.Item.BUNDLE_UID)); // default UID in testBasicItem() 67 assertEquals(0, bundle.getChar(MediaMetrics.Item.BUNDLE_VERSION)); in testBasicItem() 68 assertEquals(key.length() + 1, bundle.getChar(MediaMetrics.Item.BUNDLE_KEY_SIZE)); in testBasicItem() [all …]
|
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/ |
D | ImeEvent.java | 137 final Bundle bundle = new Bundle(); in toBundle() local 138 bundle.putString("mEventName", mEventName); in toBundle() 139 bundle.putInt("mNestLevel", mNestLevel); in toBundle() 140 bundle.putString("mThreadName", mThreadName); in toBundle() 141 bundle.putInt("mThreadId", mThreadId); in toBundle() 142 bundle.putBoolean("mIsMainThread", mIsMainThread); in toBundle() 143 bundle.putLong("mEnterTimestamp", mEnterTimestamp); in toBundle() 144 bundle.putLong("mExitTimestamp", mExitTimestamp); in toBundle() 145 bundle.putLong("mEnterWallTime", mEnterWallTime); in toBundle() 146 bundle.putLong("mExitWallTime", mExitWallTime); in toBundle() [all …]
|
D | ImeCommand.java | 45 private ImeCommand(@NonNull Bundle bundle) { in ImeCommand() argument 46 mName = bundle.getString(NAME_KEY); in ImeCommand() 47 mId = bundle.getLong(ID_KEY); in ImeCommand() 48 mDispatchToMainThread = bundle.getBoolean(DISPATCH_TO_MAIN_THREAD_KEY); in ImeCommand() 49 mExtras = bundle.getParcelable(EXTRA_KEY); in ImeCommand() 52 static ImeCommand fromBundle(@NonNull Bundle bundle) { in fromBundle() argument 53 return new ImeCommand(bundle); in fromBundle() 57 final Bundle bundle = new Bundle(); in toBundle() local 58 bundle.putString(NAME_KEY, mName); in toBundle() 59 bundle.putLong(ID_KEY, mId); in toBundle() [all …]
|
D | ImeState.java | 54 final Bundle bundle = new Bundle(); in toBundle() local 55 bundle.putBoolean("mHasInputBinding", mHasInputBinding); in toBundle() 56 bundle.putBoolean("mHasFallbackInputConnection", mHasFallbackInputConnection); in toBundle() 57 return bundle; in toBundle() 61 static ImeState fromBundle(@Nullable Bundle bundle) { in fromBundle() argument 62 if (bundle == null) { in fromBundle() 65 final boolean hasInputBinding = bundle.getBoolean("mHasInputBinding"); in fromBundle() 66 final boolean hasFallbackInputConnection = bundle.getBoolean("mHasFallbackInputConnection"); in fromBundle()
|
D | ImeLayoutInfo.java | 75 void writeToBundle(@NonNull Bundle bundle) { in writeToBundle() argument 76 bundle.putParcelable(NEW_LAYOUT_KEY, mNewLayout); in writeToBundle() 77 bundle.putParcelable(OLD_LAYOUT_KEY, mOldLayout); in writeToBundle() 78 bundle.putParcelable(VIEW_ORIGIN_ON_SCREEN_KEY, mViewOriginOnScreen); in writeToBundle() 79 bundle.putParcelable(DISPLAY_SIZE_KEY, mDisplaySize); in writeToBundle() 82 static ImeLayoutInfo readFromBundle(@NonNull Bundle bundle) { in readFromBundle() argument 83 final Rect newLayout = bundle.getParcelable(NEW_LAYOUT_KEY); in readFromBundle() 84 final Rect oldLayout = bundle.getParcelable(OLD_LAYOUT_KEY); in readFromBundle() 85 final Point viewOrigin = bundle.getParcelable(VIEW_ORIGIN_ON_SCREEN_KEY); in readFromBundle() 86 final Point displaySize = bundle.getParcelable(DISPLAY_SIZE_KEY); in readFromBundle()
|
D | SessionChannel.kt | 26 private var local: RemoteCallback? = RemoteCallback { bundle -> in <lambda>() method 27 checkNotNull(bundle) in <lambda>() 28 if (bundle.containsKey(ESTABLISH_KEY)) { in <lambda>() 29 val remote = bundle.getParcelable(ESTABLISH_KEY, RemoteCallback::class.java)!! in <lambda>() 37 listener.accept(bundle) in <lambda>() 55 fun send(bundle: Bundle): Boolean { in <lambda>() 59 remote.sendResult(bundle) in <lambda>()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | PersistableBundleTest.java | 38 PersistableBundle bundle = new PersistableBundle(); in testWriteToStreamAndReadFromStream() local 39 bundle.putBoolean("boolean", true); in testWriteToStreamAndReadFromStream() 40 bundle.putBooleanArray("boolean_array", new boolean[] {false}); in testWriteToStreamAndReadFromStream() 41 bundle.putDouble("double", 1.23); in testWriteToStreamAndReadFromStream() 42 bundle.putDoubleArray("double_array", new double[] {2.34, 3.45}); in testWriteToStreamAndReadFromStream() 43 bundle.putInt("int", 1); in testWriteToStreamAndReadFromStream() 44 bundle.putIntArray("int_array", new int[] {2}); in testWriteToStreamAndReadFromStream() 45 bundle.putLong("long", 12345L); in testWriteToStreamAndReadFromStream() 46 bundle.putLongArray("long_array", new long[] {1234567L, 2345678L}); in testWriteToStreamAndReadFromStream() 47 bundle.putString("string", "abc123"); in testWriteToStreamAndReadFromStream() [all …]
|
D | SecurityStateManagerTest.java | 96 Bundle bundle = mSecurityStateManager.getGlobalSecurityState(); in testGetGlobalSecurityState() local 98 assertEquals(bundle.getString(KEY_SYSTEM_SPL), Build.VERSION.SECURITY_PATCH); in testGetGlobalSecurityState() 99 assertEquals(bundle.getString(KEY_VENDOR_SPL), in testGetGlobalSecurityState() 101 assertEquals(bundle.getString(KEY_KERNEL_VERSION), kernelVersion); in testGetGlobalSecurityState() 102 packageVersionNameCheck(bundle, defaultModuleMetadata); in testGetGlobalSecurityState() 103 webViewPackages.forEach(p -> packageVersionNameCheck(bundle, p)); in testGetGlobalSecurityState() 104 securityStatePackages.forEach(p -> packageVersionNameCheck(bundle, p)); in testGetGlobalSecurityState() 107 private void packageVersionNameCheck(Bundle bundle, String packageName) { in packageVersionNameCheck() argument 108 if (bundle.containsKey(packageName)) { in packageVersionNameCheck() 110 assertEquals(bundle.getString(packageName), in packageVersionNameCheck() [all …]
|
/cts/tests/framework/base/biometrics/src/android/server/biometrics/fingerprint/util/ |
D | FingerprintCallbackHelper.java | 58 final Bundle bundle = new Bundle(); in toBundle() local 59 bundle.putIntegerArrayList(KEY_ERRORS_RECEIVED, mErrorsReceived); in toBundle() 60 bundle.putIntegerArrayList(KEY_ACQUIRED_RECEIVED, mAcquiredReceived); in toBundle() 61 bundle.putInt(KEY_NUM_ACCEPTED, mNumAuthAccepted); in toBundle() 62 bundle.putInt(KEY_NUM_REJECTED, mNumAuthRejected); in toBundle() 63 return bundle; in toBundle() 74 public static State fromBundle(@NonNull Bundle bundle) { in fromBundle() argument 76 bundle.getIntegerArrayList(KEY_ERRORS_RECEIVED), in fromBundle() 77 bundle.getIntegerArrayList(KEY_ACQUIRED_RECEIVED), in fromBundle() 78 bundle.getInt(KEY_NUM_ACCEPTED), in fromBundle() [all …]
|
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/ |
D | EmergencyCallDomainSelectionTestOnMockModem.java | 307 PersistableBundle bundle = getDefaultPersistableBundle(); in testDefaultCombinedImsRegisteredBarredSelectCs() local 308 overrideCarrierConfig(bundle); in testDefaultCombinedImsRegisteredBarredSelectCs() 323 PersistableBundle bundle = getDefaultPersistableBundle(); in testDefaultCombinedImsRegisteredSelectPs() local 324 overrideCarrierConfig(bundle); in testDefaultCombinedImsRegisteredSelectPs() 339 PersistableBundle bundle = getDefaultPersistableBundle(); in testDefaultCombinedImsNotRegisteredSelectCs() local 340 overrideCarrierConfig(bundle); in testDefaultCombinedImsNotRegisteredSelectCs() 357 PersistableBundle bundle = getDefaultPersistableBundle(); in testDefaultCombinedImsNotRegisteredBarredSelectCs() local 358 overrideCarrierConfig(bundle); in testDefaultCombinedImsNotRegisteredBarredSelectCs() 375 PersistableBundle bundle = getDefaultPersistableBundle(); in testDefaultCombinedImsRegisteredEmsOffBarredSelectCs() local 376 overrideCarrierConfig(bundle); in testDefaultCombinedImsRegisteredEmsOffBarredSelectCs() [all …]
|
D | ImsCallingTestOnMockModem.java | 222 PersistableBundle bundle = new PersistableBundle(); in testSrvccActiveCall() local 223 bundle.putIntArray( in testSrvccActiveCall() 235 verifySrvccTypeFiltered(bundle, profiles, effectiveProfiles); in testSrvccActiveCall() 344 PersistableBundle bundle = new PersistableBundle(); in testSrvccIncomingCall() local 345 bundle.putIntArray( in testSrvccIncomingCall() 356 verifySrvccTypeFiltered(bundle, profiles, effectiveProfiles); in testSrvccIncomingCall() 358 bundle = new PersistableBundle(); in testSrvccIncomingCall() 359 bundle.putIntArray( in testSrvccIncomingCall() 367 verifySrvccTypeFiltered(bundle, profiles, effectiveProfiles); in testSrvccIncomingCall() 400 PersistableBundle bundle = new PersistableBundle(); in testSrvccPreAlertingIncomingCall() local [all …]
|
/cts/tests/ondeviceintelligence/src/android/ondeviceintelligence/cts/ |
D | CtsIsolatedInferenceService.java | 130 Bundle bundle = new Bundle(); in processRequestStreaming() local 131 bundle.putBoolean(OnDeviceIntelligenceManagerTest.TEST_KEY, true); in processRequestStreaming() 132 callback.onResult(bundle); in processRequestStreaming() 166 Bundle bundle = new Bundle(); in processRequest() local 167 bundle.putString(TEST_KEY, getFileContentFromFdMap(feature).get()); in processRequest() 168 callback.onResult(bundle); in processRequest() 177 Bundle bundle = new Bundle(); in processRequest() local 179 bundle.putString(TEST_KEY, fetchFileContent()); in processRequest() 180 callback.onResult(bundle); in processRequest() 189 Bundle bundle = new Bundle(); in processRequest() local [all …]
|
/cts/tests/framework/base/biometrics/src/android/server/biometrics/util/ |
D | BiometricCallbackHelper.java | 53 final Bundle bundle = new Bundle(); in toBundle() local 54 bundle.putIntegerArrayList(KEY_ERRORS_RECEIVED, mErrorsReceived); in toBundle() 55 bundle.putIntegerArrayList(KEY_ACQUIRED_RECEIVED, mAcquiredReceived); in toBundle() 56 bundle.putInt(KEY_NUM_ACCEPTED, mNumAuthAccepted); in toBundle() 57 bundle.putInt(KEY_NUM_REJECTED, mNumAuthRejected); in toBundle() 58 bundle.putBoolean(KEY_NEGATIVE_BUTTON_PRESSED, mNegativeButtonPressed); in toBundle() 59 return bundle; in toBundle() 71 public static BiometricCallbackHelper.State fromBundle(@NonNull Bundle bundle) { in fromBundle() argument 73 bundle.getIntegerArrayList(KEY_ERRORS_RECEIVED), in fromBundle() 74 bundle.getIntegerArrayList(KEY_ACQUIRED_RECEIVED), in fromBundle() [all …]
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | BlockedNumberService.java | 68 Bundle bundle; in onHandleIntent() local 72 bundle = insertBlockedNumber(intent.getStringExtra(PHONE_NUMBER_EXTRA)); in onHandleIntent() 75 bundle = deleteBlockedNumber(Uri.parse(intent.getStringExtra(URI_EXTRA))); in onHandleIntent() 78 bundle = new Bundle(); in onHandleIntent() 82 receiver.send(0, bundle); in onHandleIntent() 92 Bundle bundle = new Bundle(); in insertBlockedNumber() local 93 bundle.putString(URI_EXTRA, uri.toString()); in insertBlockedNumber() 99 bundle.putBoolean(FAIL_EXTRA, true); in insertBlockedNumber() 103 bundle.putBoolean(FAIL_EXTRA, true); in insertBlockedNumber() 105 return bundle; in insertBlockedNumber() [all …]
|
D | BroadcastUtils.java | 36 public static final String toBundleString(Bundle bundle) { in toBundleString() argument 37 if (bundle == null) { in toBundleString() 41 if (bundle != null) { in toBundleString() 43 for (String s : bundle.keySet()) { in toBundleString() 44 buf.append("(" + s + " = " + bundle.get(s) + "), "); in toBundleString()
|
/cts/tests/tests/assist/common/src/android/assist/common/ |
D | BaseRemoteCallbackActivity.java | 42 Bundle bundle = new Bundle(); in notify() local 43 bundle.putString(Utils.EXTRA_REMOTE_CALLBACK_ACTION, action); in notify() 44 callback.sendResult(bundle); in notify() 66 Bundle bundle = new Bundle(); in registerReceivingCallback() local 67 …bundle.putString(Utils.EXTRA_REMOTE_CALLBACK_ACTION, Utils.EXTRA_REMOTE_CALLBACK_RECEIVING_ACTION); in registerReceivingCallback() 68 bundle.putParcelable(Utils.EXTRA_REMOTE_CALLBACK_RECEIVING, mRemoteCallback); in registerReceivingCallback() 69 remoteCallback.sendResult(bundle); in registerReceivingCallback()
|
/cts/tests/app/src/android/app/cts/ |
D | ActivityOptionsTest.java | 37 Bundle bundle = options.toBundle(); in testActivityOptionsBundle_makeBasic() local 39 assertNotNull(bundle); in testActivityOptionsBundle_makeBasic() 94 Bundle bundle = options.toBundle(); in checkPendingIntentBackgroundActivityStartModeBeforeAndAfterBundle() local 98 assertThat(bundle.containsKey(key)).isFalse(); in checkPendingIntentBackgroundActivityStartModeBeforeAndAfterBundle() 100 assertThat(bundle.containsKey(key)).isTrue(); in checkPendingIntentBackgroundActivityStartModeBeforeAndAfterBundle() 101 assertThat(bundle.getInt(key)).isEqualTo(mode); in checkPendingIntentBackgroundActivityStartModeBeforeAndAfterBundle() 138 Bundle bundle = options.toBundle(); in checkPendingIntentCreatorBackgroundActivityStartModeBeforeAndAfterBundle() local 142 assertThat(bundle.containsKey(key)).isFalse(); in checkPendingIntentCreatorBackgroundActivityStartModeBeforeAndAfterBundle() 144 assertThat(bundle.containsKey(key)).isTrue(); in checkPendingIntentCreatorBackgroundActivityStartModeBeforeAndAfterBundle() 145 assertThat(bundle.getInt(key)).isEqualTo(mode); in checkPendingIntentCreatorBackgroundActivityStartModeBeforeAndAfterBundle()
|
/cts/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/events/deviceadminreceivers/ |
D | DeviceAdminTransferOwnershipCompleteEvent.java | 104 Context context, PersistableBundle bundle) { in logger() argument 106 deviceAdminReceiver, context, bundle); in logger() 114 Context context, PersistableBundle bundle) { in DeviceAdminTransferOwnershipCompleteEventLogger() argument 116 mEvent.mBundle = new SerializableParcelWrapper<>(bundle); in DeviceAdminTransferOwnershipCompleteEventLogger() 144 public DeviceAdminTransferOwnershipCompleteEventLogger setBundle(PersistableBundle bundle) { in setBundle() argument 145 mEvent.mBundle = new SerializableParcelWrapper<>(bundle); in setBundle() 162 public PersistableBundle bundle() { in bundle() method in DeviceAdminTransferOwnershipCompleteEvent 172 + ", bundle=" + bundle() in toString()
|
/cts/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/events/deviceadminreceivers/ |
D | DeviceAdminTransferOwnershipCompleteEventTest.java | 59 PersistableBundle bundle = new PersistableBundle(); in whereBundle_works() local 60 bundle.putString("STRING", STRING_VALUE); in whereBundle_works() 62 DEVICE_ADMIN_RECEIVER, sContext, bundle).log(); in whereBundle_works() 68 assertThat(eventLogs.poll().bundle()).isEqualTo(bundle); in whereBundle_works() 77 PersistableBundle bundle = new PersistableBundle(); in whereBundle_skipsNonMatching() local 78 bundle.putString("STRING", STRING_VALUE); in whereBundle_skipsNonMatching() 80 DEVICE_ADMIN_RECEIVER, sContext, bundle).log(); in whereBundle_skipsNonMatching() 86 assertThat(eventLogs.poll().bundle()).isEqualTo(bundle); in whereBundle_skipsNonMatching()
|
/cts/tests/framework/base/windowmanager/appBackLegacy/src/android/server/wm/backlegacyapp/ |
D | BackNavigationLegacyActivity.java | 36 bundle -> bundle.putBoolean(Components.KEY_ON_BACK_INVOKED_CALLED, true)); in onCreate() 46 bundle -> bundle.putBoolean(Components.KEY_ON_BACK_PRESSED_CALLED, true)); in onBackPressed()
|