/cts/tests/tests/os/src/android/os/cts/ |
D | BundleTest.java | 56 private Bundle mBundle; field in BundleTest 62 mBundle = new Bundle(); in setUp() 85 mBundle.putBoolean("android", true); in testEmptyStream() 87 mBundle.readFromParcel(p); in testEmptyStream() 88 assertTrue(mBundle.isEmpty()); in testEmptyStream() 93 mBundle.putBoolean("android", true); in testClear() 94 mBundle.putBoolean(KEY, true); in testClear() 95 assertFalse(mBundle.isEmpty()); in testClear() 96 mBundle.clear(); in testClear() 97 assertTrue(mBundle.isEmpty()); in testClear() [all …]
|
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/ |
D | ImeSettings.java | 59 private final PersistableBundle mBundle; field in ImeSettings 64 mBundle = bundle.getParcelable(DATA_KEY); in ImeSettings() 78 return mBundle.getBoolean(FULLSCREEN_MODE_ALLOWED, defaultValue); in fullscreenModeAllowed() 83 return mBundle.getInt(BACKGROUND_COLOR_KEY, defaultColor); in getBackgroundColor() 87 return mBundle.keySet().contains(NAVIGATION_BAR_COLOR_KEY); in hasNavigationBarColor() 92 return mBundle.getInt(NAVIGATION_BAR_COLOR_KEY); in getNavigationBarColor() 96 return mBundle.getInt(INPUT_VIEW_HEIGHT, defaultHeight); in getInputViewHeight() 100 return mBundle.getBoolean(DRAWS_BEHIND_NAV_BAR, false); in getDrawsBehindNavBar() 104 return mBundle.getInt(WINDOW_FLAGS, defaultFlags); in getWindowFlags() 108 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 | 40 private final Bundle mBundle = new Bundle(); field in BundleKeyQueryHelperTest 50 assertThat(bundleKeyQueryHelper.matches(mBundle, KEY)).isTrue(); in matches_noRestrictions_returnsTrue() 55 mBundle.putString(KEY, STRING_VALUE); in matches_stringValueRestriction_meetsRestriction_returnsTrue() 61 assertThat(bundleKeyQueryHelper.matches(mBundle, KEY)).isTrue(); in matches_stringValueRestriction_meetsRestriction_returnsTrue() 66 mBundle.putString(KEY, STRING_VALUE); in matches_stringValueRestriction_doesNotMeetRestriction_returnsFalse() 72 assertThat(bundleKeyQueryHelper.matches(mBundle, KEY)).isFalse(); in matches_stringValueRestriction_doesNotMeetRestriction_returnsFalse() 77 mBundle.putBundle(KEY, mBundle2); in matches_bundleValueRestriction_meetsRestriction_returnsTrue() 84 assertThat(bundleKeyQueryHelper.matches(mBundle, KEY)).isTrue(); in matches_bundleValueRestriction_meetsRestriction_returnsTrue() 89 mBundle.putBundle(KEY, mBundle2); in matches_bundleValueRestriction_doesNotMeetRestriction_returnsFalse() 96 assertThat(bundleKeyQueryHelper.matches(mBundle, KEY)).isFalse(); in matches_bundleValueRestriction_doesNotMeetRestriction_returnsFalse() [all …]
|
D | BundleQueryHelperTest.java | 37 private final Bundle mBundle = new Bundle(); field in BundleQueryHelperTest 44 assertThat(bundleQueryHelper.matches(mBundle)).isTrue(); in matches_noRestrictions_returnsTrue() 49 mBundle.putString(KEY, STRING_VALUE); in matches_restrictionOnOneKey_restrictionIsMet_returnsTrue() 55 assertThat(bundleQueryHelper.matches(mBundle)).isTrue(); in matches_restrictionOnOneKey_restrictionIsMet_returnsTrue() 60 mBundle.putString(KEY, STRING_VALUE); in matches_restrictionOnOneKey_restrictionIsNotMet_returnsFalse() 66 assertThat(bundleQueryHelper.matches(mBundle)).isFalse(); in matches_restrictionOnOneKey_restrictionIsNotMet_returnsFalse() 71 mBundle.putString(KEY, STRING_VALUE); in matches_restrictionOnMultipleKeys_oneRestrictionIsNotMet_returnsFalse() 72 mBundle.remove(KEY2); in matches_restrictionOnMultipleKeys_oneRestrictionIsNotMet_returnsFalse() 79 assertThat(bundleQueryHelper.matches(mBundle)).isFalse(); in matches_restrictionOnMultipleKeys_oneRestrictionIsNotMet_returnsFalse() 84 mBundle.remove(KEY); in matches_restrictionOnNonExistingKey_returnsFalse() [all …]
|
/cts/tests/tests/assist/src/android/assist/cts/ |
D | AssistantContentViewTest.java | 37 private Bundle mBundle; field in AssistantContentViewTest 47 mBundle = null; in customTearDown() 67 int height = mBundle.getInt(Utils.EXTRA_CONTENT_VIEW_HEIGHT, 0); in testAssistantContentViewDimens() 68 int width = mBundle.getInt(Utils.EXTRA_CONTENT_VIEW_WIDTH, 0); in testAssistantContentViewDimens() 69 Point displayPoint = mBundle.getParcelable(Utils.EXTRA_DISPLAY_POINT); in testAssistantContentViewDimens() 82 mBundle = bundle; in onAction()
|
/cts/common/device-side/bedstead/queryable/src/test/java/com/android/queryable/util/ |
D | SerializableParcelWrapperTest.java | 41 private final Bundle mBundle = new Bundle(); field in SerializableParcelWrapperTest 45 mBundle.putString(KEY, STRING_VALUE); in serialize_deserialize_isEqual() 47 = new SerializableParcelWrapper<>(mBundle); in serialize_deserialize_isEqual() 102 = new SerializableParcelWrapper<>(mBundle); in hashcode_matchesContainedHashcode() 104 assertThat(serializableParcelWrapper.hashCode()).isEqualTo(mBundle.hashCode()); in hashcode_matchesContainedHashcode()
|
/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/tests/text/src/android/text/style/cts/ |
D | TtsSpanTest.java | 35 private PersistableBundle mBundle; field in TtsSpanTest 39 mBundle = new PersistableBundle(); in setup() 40 mBundle.putString("argument.one", "value.one"); in setup() 41 mBundle.putString("argument.two", "value.two"); in setup() 42 mBundle.putLong("argument.three", 3); in setup() 43 mBundle.putLong("argument.four", 4); in setup() 48 TtsSpan t = new TtsSpan("test.type.one", mBundle); in testGetArgs() 59 TtsSpan t = new TtsSpan("test.type.two", mBundle); in testGetType() 65 TtsSpan span = new TtsSpan("test.type.three", mBundle); in testDescribeContents() 71 TtsSpan span = new TtsSpan("test.type.four", mBundle); in testGetSpanTypeId() [all …]
|
/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/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 | 96 private static final Bundle mBundle = InstrumentationRegistry.getArguments(); field in Camera2AndroidTestRule 97 private static final String mOverrideCameraId = mBundle.getString(CAMERA_ID_INSTR_ARG_KEY); 98 private static final String mPerfMeasure = mBundle.getString(CAMERA_PERF_MEASURE); 99 private static final String mPerfClassTest = mBundle.getString(CAMERA_PERF_CLASS_TEST);
|