/cts/tests/tests/os/src/android/os/cts/ |
D | BundleTest.java | 77 private Bundle mBundle; field in BundleTest 82 mBundle = new Bundle(); in setUp() 83 mBundle.setClassLoader(getClass().getClassLoader()); in setUp() 117 mBundle.putBoolean("android", true); in testEmptyStream() 119 mBundle.readFromParcel(p); in testEmptyStream() 120 assertTrue(mBundle.isEmpty()); in testEmptyStream() 126 mBundle.putBoolean("android", true); in testClear() 127 mBundle.putBoolean(KEY1, true); in testClear() 128 assertFalse(mBundle.isEmpty()); in testClear() 129 mBundle.clear(); in testClear() [all …]
|
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/ |
D | ImeSettings.java | 85 private final PersistableBundle mBundle; field in ImeSettings 124 mBundle = bundle.getParcelable(DATA_KEY); in ImeSettings() 144 return mBundle.getInt(FULLSCREEN_MODE_POLICY); in fullscreenModePolicy() 149 return mBundle.getInt(BACKGROUND_COLOR_KEY, defaultColor); in getBackgroundColor() 153 return mBundle.keySet().contains(NAVIGATION_BAR_COLOR_KEY); in hasNavigationBarColor() 158 return mBundle.getInt(NAVIGATION_BAR_COLOR_KEY); in getNavigationBarColor() 162 return mBundle.getInt(INPUT_VIEW_HEIGHT, defaultHeight); in getInputViewHeight() 166 return mBundle.getBoolean(DRAWS_BEHIND_NAV_BAR, false); in getDrawsBehindNavBar() 170 return mBundle.getInt(WINDOW_FLAGS, defaultFlags); in getWindowFlags() 174 return mBundle.getInt(WINDOW_FLAGS_MASK, defaultFlags); in getWindowFlagsMask() [all …]
|
/cts/common/device-side/bedstead/queryable/src/test/java/com/android/queryable/queries/ |
D | BundleKeyQueryHelperTest.java | 63 private final Bundle mBundle = new Bundle(); field in BundleKeyQueryHelperTest 73 assertThat(bundleKeyQueryHelper.matches(mBundle, KEY)).isTrue(); in matches_noRestrictions_returnsTrue() 78 mBundle.putString(KEY, STRING_VALUE); in matches_stringValueRestriction_meetsRestriction_returnsTrue() 84 assertThat(bundleKeyQueryHelper.matches(mBundle, KEY)).isTrue(); in matches_stringValueRestriction_meetsRestriction_returnsTrue() 89 mBundle.putString(KEY, STRING_VALUE); in matches_stringValueRestriction_doesNotMeetRestriction_returnsFalse() 95 assertThat(bundleKeyQueryHelper.matches(mBundle, KEY)).isFalse(); in matches_stringValueRestriction_doesNotMeetRestriction_returnsFalse() 100 mBundle.putBundle(KEY, mBundle2); in matches_bundleValueRestriction_meetsRestriction_returnsTrue() 107 assertThat(bundleKeyQueryHelper.matches(mBundle, KEY)).isTrue(); in matches_bundleValueRestriction_meetsRestriction_returnsTrue() 112 mBundle.putBundle(KEY, mBundle2); in matches_bundleValueRestriction_doesNotMeetRestriction_returnsFalse() 119 assertThat(bundleKeyQueryHelper.matches(mBundle, KEY)).isFalse(); in matches_bundleValueRestriction_doesNotMeetRestriction_returnsFalse() [all …]
|
D | BundleQueryHelperTest.java | 47 private final Bundle mBundle = new Bundle(); field in BundleQueryHelperTest 54 assertThat(bundleQueryHelper.matches(mBundle)).isTrue(); in matches_noRestrictions_returnsTrue() 59 mBundle.putString(KEY, STRING_VALUE); in matches_restrictionOnOneKey_restrictionIsMet_returnsTrue() 65 assertThat(bundleQueryHelper.matches(mBundle)).isTrue(); in matches_restrictionOnOneKey_restrictionIsMet_returnsTrue() 70 mBundle.putString(KEY, STRING_VALUE); in matches_restrictionOnOneKey_restrictionIsNotMet_returnsFalse() 76 assertThat(bundleQueryHelper.matches(mBundle)).isFalse(); in matches_restrictionOnOneKey_restrictionIsNotMet_returnsFalse() 81 mBundle.putString(KEY, STRING_VALUE); in matches_restrictionOnMultipleKeys_oneRestrictionIsNotMet_returnsFalse() 82 mBundle.remove(KEY2); in matches_restrictionOnMultipleKeys_oneRestrictionIsNotMet_returnsFalse() 89 assertThat(bundleQueryHelper.matches(mBundle)).isFalse(); in matches_restrictionOnMultipleKeys_oneRestrictionIsNotMet_returnsFalse() 94 mBundle.remove(KEY); in matches_restrictionOnNonExistingKey_returnsFalse() [all …]
|
/cts/tests/inputmethod/mocka11yime/common/src/com/android/cts/mocka11yime/ |
D | MockA11yImeSettings.java | 28 private final PersistableBundle mBundle; field in MockA11yImeSettings 31 mBundle = bundle; in MockA11yImeSettings() 36 return mBundle; in getRawBundle() 43 private final PersistableBundle mBundle = new PersistableBundle(); field in MockA11yImeSettings.Builder 49 return new MockA11yImeSettings(mBundle.deepCopy()); in build()
|
/cts/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/events/deviceadminreceivers/ |
D | DeviceAdminTransferOwnershipCompleteEvent.java | 59 PersistableBundleQueryHelper<DeviceAdminTransferOwnershipCompleteEventQuery> mBundle = field in DeviceAdminTransferOwnershipCompleteEvent.DeviceAdminTransferOwnershipCompleteEventQuery 78 return mBundle; in whereBundle() 86 if (!mBundle.matches(event.mBundle)) { in filter() 96 .field("bundle", mBundle) in describeQuery() 116 mEvent.mBundle = new SerializableParcelWrapper<>(bundle); in DeviceAdminTransferOwnershipCompleteEventLogger() 145 mEvent.mBundle = new SerializableParcelWrapper<>(bundle); in setBundle() 151 protected SerializableParcelWrapper<PersistableBundle> mBundle; field in DeviceAdminTransferOwnershipCompleteEvent 163 if (mBundle == null) { in bundle() 166 return mBundle.get(); in bundle()
|
/cts/common/device-side/bedstead/queryable/src/test/java/com/android/queryable/util/ |
D | SerializableParcelWrapperTest.java | 49 private final Bundle mBundle = new Bundle(); field in SerializableParcelWrapperTest 53 mBundle.putString(KEY, STRING_VALUE); in serialize_deserialize_isEqual() 55 = new SerializableParcelWrapper<>(mBundle); in serialize_deserialize_isEqual() 111 = new SerializableParcelWrapper<>(mBundle); in hashcode_matchesContainedHashcode() 113 assertThat(serializableParcelWrapper.hashCode()).isEqualTo(mBundle.hashCode()); in hashcode_matchesContainedHashcode() 118 mBundle.putString(KEY, STRING_VALUE); in parcel_parcelsCorrectly() 120 new SerializableParcelWrapper<>(mBundle); in parcel_parcelsCorrectly()
|
/cts/tests/tests/car/src/android/car/cts/ |
D | SyncResultCallbackTest.java | 40 private final Bundle mBundle = new Bundle(); field in SyncResultCallbackTest 44 mBundle.putDouble(KEY, VALUE); in setup() 49 mCallback.onResult(mBundle); in testGet() 56 mCallback.onResult(mBundle); in testGetWithTimeout()
|
/cts/tests/camera/utils/src/android/hardware/cts/helpers/ |
D | CameraParameterizedTestCase.java | 48 private static final Bundle mBundle = InstrumentationRegistry.getArguments(); field in CameraParameterizedTestCase 49 protected static final String mOverrideCameraId = mBundle.getString(CAMERA_ID_INSTR_ARG_KEY); 50 protected static final String mPerfMeasure = mBundle.getString(CAMERA_PERF_MEASURE);
|
/cts/tests/app/app/src/android/app/stubs/ |
D | InstrumentationTestActivity.java | 56 private Bundle mBundle; field in InstrumentationTestActivity 148 mBundle = outState; in onSaveInstanceState() 345 return mBundle; in getBundle()
|
/cts/tests/tests/text/src/android/text/style/cts/ |
D | TtsSpanTest.java | 38 private PersistableBundle mBundle; field in TtsSpanTest 42 mBundle = new PersistableBundle(); in setup() 43 mBundle.putString("argument.one", "value.one"); in setup() 44 mBundle.putString("argument.two", "value.two"); in setup() 45 mBundle.putLong("argument.three", 3); in setup() 46 mBundle.putLong("argument.four", 4); in setup() 51 TtsSpan t = new TtsSpan("test.type.one", mBundle); in testGetArgs() 62 TtsSpan t = new TtsSpan("test.type.two", mBundle); in testGetType() 68 TtsSpan span = new TtsSpan("test.type.three", mBundle); in testDescribeContents() 74 TtsSpan span = new TtsSpan("test.type.four", mBundle); in testGetSpanTypeId() [all …]
|
/cts/tests/apppredictionservice/src/android/apppredictionservice/cts/ |
D | ServiceReporter.java | 307 private Bundle mBundle; field in ServiceReporter.RequestServiceFeaturesVerifier 311 mBundle = bundle; in accept() 327 assertEquals(bundle, mBundle); in awaitTargets()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/ |
D | MockTvInputService.java | 445 sResumeAfterPauseCallback.mBundle.putBoolean(PAUSE_CALLED, true); in onTimeShiftPause() 456 && sResumeAfterPauseCallback.mBundle.getBoolean(PAUSE_CALLED)) { in onTimeShiftResume() 534 private final Bundle mBundle = new Bundle(); field in MockTvInputService.Callback 546 return mBundle; in getBundle()
|
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/ |
D | Camera2AndroidTestRule.java | 97 private static final Bundle mBundle = InstrumentationRegistry.getArguments(); field in Camera2AndroidTestRule 98 private static final String mOverrideCameraId = mBundle.getString(CAMERA_ID_INSTR_ARG_KEY); 99 private static final String mPerfMeasure = mBundle.getString(CAMERA_PERF_MEASURE); 100 private static final String mPerfClassTest = mBundle.getString(CAMERA_PERF_CLASS_TEST);
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | TelephonyManagerTest.java | 480 private Bundle mBundle; field in TelephonyManagerTest.CountryChangedReceiver 484 return mBundle; in getExtras() 491 mBundle = intent.getExtras(); in onReceive()
|