Home
last modified time | relevance | path

Searched refs:getValue (Results 1 – 25 of 1024) sorted by relevance

12345678910>>...41

/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/theme/
H A DThemeOverlayControllerTest.java197 registrationRunnable.getValue().run(); in start_checksWallpaper()
234 mBroadcastReceiver.getValue().onReceive(null, intent); in onWallpaperColorsChanged_setsTheme_whenForeground()
352 assertThat(updatedSetting.getValue().contains( in onWallpaperColorsChanged_resetThemeWithNewHomeWallpapers()
400 mColorsListener.getValue().onColorsChanged(mainColors, in onWallpaperColorsChanged_resetLockScreenThemeWhenBothSet()
408 assertThat(updatedSetting.getValue().contains( in onWallpaperColorsChanged_resetLockScreenThemeWhenBothSet()
476 assertThat(updatedSetting.getValue().contains( in onWallpaperColorsChanged_resetThemeWithNewHomeAndLockWallpaper()
506 assertThat(updatedSetting.getValue().contains( in onWallpaperColorsChanged_changeLockWallpaper()
537 assertThat(updatedSetting.getValue().contains( in onWallpaperColorsChanged_changeHomeWallpaper()
674 mBroadcastReceiver.getValue().onReceive(null, in onProfileAdded_setsTheme()
683 mBroadcastReceiver.getValue().onReceive(null, in onUserAdded_appliesTheme_ifNotManagedProfile()
[all …]
/aosp14/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DFrameValues.java31 Object value = super.getValue(); in getCount()
35 return Array.getLength(super.getValue()); in getCount()
49 Object value = super.getValue(); in getValues()
51 return super.getValue(); in getValues()
70 Object value = super.getValue(); in getValueAtIndex()
120 Object curValue = super.getValue(); in setValueAtIndex()
142 Object value = frame.getValue(); in setFrameValueAtIndex()
/aosp14/frameworks/base/tests/utils/testutils/java/android/os/test/
H A DTestLooperTest.java89 collector.checkThat("1: messageA", messageA, equalTo(messageCaptor.getValue().what)); in testNoTimeMovement()
91 collector.checkThat("2: messageA", messageA, equalTo(messageCaptor.getValue().what)); in testNoTimeMovement()
93 collector.checkThat("3: messageB", messageB, equalTo(messageCaptor.getValue().what)); in testNoTimeMovement()
95 collector.checkThat("4: messageC", messageC, equalTo(messageCaptor.getValue().what)); in testNoTimeMovement()
147 collector.checkThat("1: messageA", messageA, equalTo(messageCaptor.getValue().what)); in testDelayedDispatchNoTimeMove()
149 collector.checkThat("2: messageB", messageB, equalTo(messageCaptor.getValue().what)); in testDelayedDispatchNoTimeMove()
176 collector.checkThat("1: messageA", messageA, equalTo(messageCaptor.getValue().what)); in testDelayedDispatchAdvanceTimeOnce()
178 collector.checkThat("2: messageB", messageB, equalTo(messageCaptor.getValue().what)); in testDelayedDispatchAdvanceTimeOnce()
180 collector.checkThat("3: messageC", messageC, equalTo(messageCaptor.getValue().what)); in testDelayedDispatchAdvanceTimeOnce()
210 collector.checkThat("1: messageA", messageA, equalTo(messageCaptor.getValue().what)); in testDelayedDispatchAdvanceTimeTwice()
[all …]
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/
H A DFakeSettingsHelper.java72 public <T> T getValue(Class<T> clazz) { in getValue() method in FakeSettingsHelper.Setting
73 return getValue(UserHandle.USER_NULL, clazz); in getValue()
76 public <T> T getValue(int userId, Class<T> clazz) { in getValue() method in FakeSettingsHelper.Setting
97 return mLocationEnabledSetting.getValue(userId, Boolean.class); in isLocationEnabled()
117 return mBackgroundThrottleIntervalSetting.getValue(Long.class); in getBackgroundThrottleIntervalMs()
158 return mBackgroundThrottlePackageWhitelistSetting.getValue(Set.class); in getBackgroundThrottlePackageWhitelist()
179 return mGnssMeasurementsFullTrackingSetting.getValue(Boolean.class); in isGnssMeasurementsFullTrackingEnabled()
200 return mAdasPackageAllowlist.getValue(PackageTagsList.class); in getAdasAllowlist()
215 return mIgnoreSettingsAllowlist.getValue(PackageTagsList.class); in getIgnoreSettingsAllowlist()
240 return mBackgroundThrottleProximityAlertIntervalSetting.getValue(Long.class); in getBackgroundThrottleProximityAlertIntervalMs()
[all …]
/aosp14/frameworks/base/core/java/android/content/
H A DDefaultDataHandler.java100 String uriStr = atts.getValue(URI_STR); in parseRow()
107 atts.getValue(URI_STR) + " parsing failure"); in parseRow()
112 String postfix = atts.getValue(POSTFIX); in parseRow()
165 String key = atts.getValue(0); in startElement()
166 String value = atts.getValue(1); in startElement()
176 Uri u = Uri.parse(atts.getValue(URI_STR)); in startElement()
179 atts.getValue(URI_STR) + " parsing failure"); in startElement()
185 selectionArgs[i] = atts.getValue(i+2); in startElement()
187 mContentResolver.delete(u, atts.getValue(1), selectionArgs); in startElement()
189 mContentResolver.delete(u, atts.getValue(1), null); in startElement()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/appclips/
H A DAppClipsViewModelTest.java83 assertThat(mViewModel.getErrorLiveData().getValue()) in performScreenshot_fails_shouldUpdateErrorWithFailed()
85 assertThat(mViewModel.getResultLiveData().getValue()).isNull(); in performScreenshot_fails_shouldUpdateErrorWithFailed()
96 assertThat(mViewModel.getErrorLiveData().getValue()).isNull(); in performScreenshot_succeeds_shouldUpdateScreenshotWithBitmap()
97 assertThat(mViewModel.getScreenshot().getValue()).isEqualTo(FAKE_BITMAP); in performScreenshot_succeeds_shouldUpdateScreenshotWithBitmap()
109 assertThat(mViewModel.getErrorLiveData().getValue()) in saveScreenshot_throwsError_shouldUpdateErrorWithFailed()
111 assertThat(mViewModel.getResultLiveData().getValue()).isNull(); in saveScreenshot_throwsError_shouldUpdateErrorWithFailed()
122 assertThat(mViewModel.getErrorLiveData().getValue()) in saveScreenshot_failsSilently_shouldUpdateErrorWithFailed()
124 assertThat(mViewModel.getResultLiveData().getValue()).isNull(); in saveScreenshot_failsSilently_shouldUpdateErrorWithFailed()
137 assertThat(mViewModel.getErrorLiveData().getValue()).isNull(); in saveScreenshot_succeeds_shouldUpdateResultWithUri()
138 assertThat(mViewModel.getResultLiveData().getValue()).isEqualTo(FAKE_URI); in saveScreenshot_succeeds_shouldUpdateResultWithUri()
/aosp14/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
H A DCSVWriterFilter.java75 float sharpness = ((Float)sharpnessValue.getValue()).floatValue(); in onProcess()
79 float overExposure = ((Float)overExposureValue.getValue()).floatValue(); in onProcess()
83 float underExposure = ((Float)underExposureValue.getValue()).floatValue(); in onProcess()
87 float colorfulness = ((Float)colorfulnessValue.getValue()).floatValue(); in onProcess()
91 float contrast = ((Float)contrastValue.getValue()).floatValue(); in onProcess()
95 float brightness = ((Float)brightnessValue.getValue()).floatValue(); in onProcess()
99 float[] motionValues = (float[]) motionValuesFrameValue.getValue(); in onProcess()
105 String imageFileName = ((String)imageFileNameFrameValue.getValue()); in onProcess()
109 String csvFilePath = ((String)csvFilePathFrameValue.getValue()); in onProcess()
/aosp14/frameworks/base/core/java/android/app/admin/
H A DStringSetPolicyValue.java54 return Objects.equals(getValue(), other.getValue()); in equals()
59 return Objects.hash(getValue()); in hashCode()
64 return "StringSetPolicyValue { " + getValue() + " }"; in toString()
74 dest.writeInt(getValue().size()); in writeToParcel()
75 for (String entry : getValue()) { in writeToParcel()
H A DBooleanPolicyValue.java43 return Objects.equals(getValue(), other.getValue()); in equals()
48 return Objects.hash(getValue()); in hashCode()
53 return "BooleanPolicyValue { mValue= " + getValue() + " }"; in toString()
63 dest.writeBoolean(getValue()); in writeToParcel()
H A DIntegerPolicyValue.java43 return Objects.equals(getValue(), other.getValue()); in equals()
48 return Objects.hash(getValue()); in hashCode()
53 return "IntegerPolicyValue { mValue= " + getValue() + " }"; in toString()
63 dest.writeInt(getValue()); in writeToParcel()
H A DLongPolicyValue.java43 return Objects.equals(getValue(), other.getValue()); in equals()
48 return Objects.hash(getValue()); in hashCode()
53 return "LongPolicyValue { mValue= " + getValue() + " }"; in toString()
63 dest.writeLong(getValue()); in writeToParcel()
H A DStringPolicyValue.java43 return Objects.equals(getValue(), other.getValue()); in equals()
48 return Objects.hash(getValue()); in hashCode()
58 return "StringPolicyValue { " + getValue() + " }"; in toString()
63 dest.writeString(getValue()); in writeToParcel()
H A DBundlePolicyValue.java44 return Objects.equals(getValue(), other.getValue()); in equals()
49 return Objects.hash(getValue()); in hashCode()
54 return "BundlePolicyValue { mValue= " + getValue() + " }"; in toString()
64 dest.writeBundle(getValue()); in writeToParcel()
H A DComponentNamePolicyValue.java44 return Objects.equals(getValue(), other.getValue()); in equals()
49 return Objects.hash(getValue()); in hashCode()
54 return "ComponentNamePolicyValue { mValue= " + getValue() + " }"; in toString()
64 dest.writeParcelable(getValue(), flags); in writeToParcel()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
H A DTileLayoutTest.java172 assertTrue(left1.getValue() <= right1.getValue()); in testMeasureLayout_CallsLayoutOnTilesWithNeighboredBounds()
173 assertTrue(top1.getValue() <= bottom1.getValue()); in testMeasureLayout_CallsLayoutOnTilesWithNeighboredBounds()
174 assertTrue(left2.getValue() <= right2.getValue()); in testMeasureLayout_CallsLayoutOnTilesWithNeighboredBounds()
175 assertTrue(top2.getValue() <= bottom2.getValue()); in testMeasureLayout_CallsLayoutOnTilesWithNeighboredBounds()
179 assertTrue(left1.getValue() > right2.getValue() || right1.getValue() < left2.getValue()); in testMeasureLayout_CallsLayoutOnTilesWithNeighboredBounds()
182 assertEquals(top1.getValue().intValue(), top2.getValue().intValue()); in testMeasureLayout_CallsLayoutOnTilesWithNeighboredBounds()
183 assertEquals(bottom1.getValue().intValue(), bottom2.getValue().intValue()); in testMeasureLayout_CallsLayoutOnTilesWithNeighboredBounds()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/log/
H A DALSProbeTest.java95 mSensorEventListenerCaptor.getValue().onSensorChanged( in testEnable()
97 mSensorEventListenerCaptor.getValue().onSensorChanged( in testEnable()
140 mSensorEventListenerCaptor.getValue().onSensorChanged( in testDisabledReportsNegativeValue()
152 mSensorEventListenerCaptor.getValue().onSensorChanged( in testWatchDog()
226 mSensorEventListenerCaptor.getValue().onSensorChanged( in testNextLuxWhenAlreadyEnabled()
235 mSensorEventListenerCaptor.getValue().onSensorChanged( in testNextLuxWhenAlreadyEnabled()
264 mSensorEventListenerCaptor.getValue().onSensorChanged( in testNextLuxWhenNotEnabled()
289 mSensorEventListenerCaptor.getValue().onSensorChanged( in testNextLuxIsNotCanceledByDisableOrDestroy()
294 mSensorEventListenerCaptor.getValue().onSensorChanged( in testNextLuxIsNotCanceledByDisableOrDestroy()
315 mSensorEventListenerCaptor.getValue().onSensorChanged( in testMultipleNextConsumers()
[all …]
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
H A DShortcutManagerTest11.java75 assertWith(shortcuts.getValue()) in testShortcutChangeCallback_setDynamicShortcuts()
168 assertWith(shortcuts.getValue()) in testShortcutChangeCallback_pinShortcuts()
236 assertWith(shortcuts.getValue()) in testShortcutChangeCallback_cacheShortcuts()
269 assertWith(shortcuts.getValue()) in testShortcutChangeCallback_cacheShortcuts_alreadyCached()
298 assertWith(shortcuts.getValue()) in testShortcutChangeCallback_uncacheShortcuts()
374 assertWith(shortcuts.getValue()) in testShortcutChangeCallback_updateShortcuts()
402 assertWith(shortcuts.getValue()) in testShortcutChangeCallback_addDynamicShortcuts()
425 assertWith(shortcuts.getValue()) in testShortcutChangeCallback_pushDynamicShortcut()
455 assertWith(shortcuts.getValue()) in testShortcutChangeCallback_pushDynamicShortcut_existingId()
528 assertWith(shortcuts.getValue()) in testShortcutChangeCallback_pushDynamicShortcut_causeDeletionButCached()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
H A DLightsOutNotifControllerTest.java84 when(mHasActiveNotifs.getValue()).thenReturn(false); in setUp()
96 mHaActiveNotifsObserver = Objects.requireNonNull(mObserverCaptor.getValue()); in setUp()
100 mCallbacks = Objects.requireNonNull(mCallbacksCaptor.getValue()); in setUp()
148 when(mHasActiveNotifs.getValue()).thenReturn(true); in testLightsOut_withNotifs_onSystemBarAttributesChanged()
169 when(mHasActiveNotifs.getValue()).thenReturn(false); in testLightsOut_withoutNotifs_onSystemBarAttributesChanged()
190 when(mHasActiveNotifs.getValue()).thenReturn(true); in testLightsOn_afterLightsOut_onSystemBarAttributesChanged()
211 when(mHasActiveNotifs.getValue()).thenReturn(false); in testEntryAdded()
217 when(mHasActiveNotifs.getValue()).thenReturn(true); in testEntryAdded()
228 when(mHasActiveNotifs.getValue()).thenReturn(true); in testEntryRemoved()
234 when(mHasActiveNotifs.getValue()).thenReturn(false); in testEntryRemoved()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/
H A DBiometricNotificationDialogFactoryTest.java95 mOnClickListenerArgumentCaptor.getValue(); in testFingerprintReEnrollDialog_onRemovalSucceeded()
102 removalCallbackArgumentCaptor.getValue().onRemovalSucceeded(null /* fp */, in testFingerprintReEnrollDialog_onRemovalSucceeded()
106 assertThat(mIntentArgumentCaptor.getValue().getAction()).isEqualTo( in testFingerprintReEnrollDialog_onRemovalSucceeded()
118 mOnClickListenerArgumentCaptor.getValue(); in testFingerprintReEnrollDialog_onRemovalError()
125 removalCallbackArgumentCaptor.getValue().onRemovalError(null /* fp */, in testFingerprintReEnrollDialog_onRemovalError()
139 mOnClickListenerArgumentCaptor.getValue(); in testFaceReEnrollDialog_onRemovalSucceeded()
146 removalCallbackArgumentCaptor.getValue().onRemovalSucceeded(null /* fp */, in testFaceReEnrollDialog_onRemovalSucceeded()
150 assertThat(mIntentArgumentCaptor.getValue().getAction()).isEqualTo( in testFaceReEnrollDialog_onRemovalSucceeded()
162 mOnClickListenerArgumentCaptor.getValue(); in testFaceReEnrollDialog_onRemovalError()
169 removalCallbackArgumentCaptor.getValue().onRemovalError(null /* face */, in testFaceReEnrollDialog_onRemovalError()
/aosp14/frameworks/base/core/tests/coretests/src/android/text/
H A DPackedIntVectorTest.java71 assertEquals(0, p.getValue(at, j)); in testBasic()
73 assertEquals(p.getValue(at, j), i + j); in testBasic()
84 assertEquals(p.getValue(i, j), i * j); in testBasic()
102 assertEquals(p.getValue(i, j), expect); in testBasic()
121 assertEquals(p.getValue(i, j), expect); in testBasic()
134 assertEquals(p.getValue(i, j), i * j); in testBasic()
155 assertEquals(p.getValue(i, j), i * j); in testBasic()
161 assertEquals(p.getValue(i, j), (i + height - p.size()) * j); in testBasic()
/aosp14/frameworks/base/core/java/android/animation/
H A DKeyframeSet.java196 public Object getValue(float fraction) { in getValue() method in KeyframeSet
202 return mEvaluator.evaluate(fraction, mFirstKeyframe.getValue(), in getValue()
203 mLastKeyframe.getValue()); in getValue()
214 return mEvaluator.evaluate(intervalFraction, mFirstKeyframe.getValue(), in getValue()
215 nextKeyframe.getValue()); in getValue()
225 return mEvaluator.evaluate(intervalFraction, prevKeyframe.getValue(), in getValue()
226 mLastKeyframe.getValue()); in getValue()
240 return mEvaluator.evaluate(intervalFraction, prevKeyframe.getValue(), in getValue()
241 nextKeyframe.getValue()); in getValue()
246 return mLastKeyframe.getValue(); in getValue()
[all …]
/aosp14/frameworks/base/core/tests/coretests/src/android/content/integrity/
H A DIntegrityFormulaTest.java39 assertThat(stringAtomicFormula.getValue()).isEqualTo(packageName); in createEqualsFormula_packageName()
52 assertThat(stringAtomicFormula.getValue()).matches(appCertificate); in createEqualsFormula_appCertificate()
66 assertThat(stringAtomicFormula.getValue()).matches(appCertificate); in createEqualsFormula_appCertificateLineage()
79 assertThat(stringAtomicFormula.getValue()).isEqualTo(installerName); in createEqualsFormula_installerName()
93 assertThat(stringAtomicFormula.getValue()).matches(installerCertificate); in createEqualsFormula_installerCertificate()
106 assertThat(stringAtomicFormula.getValue()).isEqualTo(versionCode); in createEqualsFormula_versionCode()
119 assertThat(stringAtomicFormula.getValue()).isEqualTo(versionCode); in createGreaterThanFormula_versionCode()
133 assertThat(stringAtomicFormula.getValue()).isEqualTo(versionCode); in createGreaterThanOrEqualsToFormula_versionCode()
145 assertThat(booleanAtomicFormula.getValue()).isTrue(); in createIsTrueFormula_preInstalled()
196 assertThat(booleanAtomicFormula.getValue()).isFalse(); in createIsTrueFormula_stampNotTrusted()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/firewall/
H A DStringFilter.java137 public abstract String getValue(ComponentName resolvedComponent, Intent intent, in getValue() method in StringFilter.ValueProvider
232 public String getValue(ComponentName resolvedComponent, Intent intent,
243 public String getValue(ComponentName resolvedComponent, Intent intent,
254 public String getValue(ComponentName resolvedComponent, Intent intent,
265 public String getValue(ComponentName resolvedComponent, Intent intent,
273 public String getValue(ComponentName resolvedComponent, Intent intent,
285 public String getValue(ComponentName resolvedComponent, Intent intent,
293 public String getValue(ComponentName resolvedComponent, Intent intent,
305 public String getValue(ComponentName resolvedComponent, Intent intent,
317 public String getValue(ComponentName resolvedComponent, Intent intent,
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/animation/
H A DFloatProperties.kt45 override fun getValue(rect: Rect?): Float {
64 override fun getValue(rect: Rect?): Float {
77 override fun getValue(rect: Rect): Float {
94 override fun getValue(rect: Rect): Float {
117 override fun getValue(rect: RectF?): Float {
136 override fun getValue(rect: RectF?): Float {
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shade/
H A DNotificationShadeWindowControllerImplTest.java146 int flag = captor.getValue().privateFlags in testSetDozing_hidesSystemOverlays()
153 flag = captor.getValue().privateFlags in testSetDozing_hidesSystemOverlays()
245 assertThat((mLayoutParameters.getValue().flags & FLAG_NOT_FOCUSABLE) == 0).isTrue(); in setBouncerShowing_isFocusable_whenNeedsInput()
256 assertThat((mLayoutParameters.getValue().flags & FLAG_NOT_FOCUSABLE) == 0).isTrue(); in setKeyguardShowing_focusable_notAltFocusable_whenNeedsInput()
269 assertThat((mLayoutParameters.getValue().flags & FLAG_NOT_FOCUSABLE) == 0).isTrue(); in setPanelExpanded_notFocusable_altFocusable_whenPanelIsOpen()
287 assertThat((mLayoutParameters.getValue().flags & FLAG_SECURE) != 0).isTrue(); in setKeyguardShowing_enablesSecureFlag()
295 assertThat((mLayoutParameters.getValue().flags & FLAG_SECURE) == 0).isTrue(); in setKeyguardNotShowing_disablesSecureFlag()
309 assertThat(mLayoutParameters.getValue().screenOrientation) in rotationBecameAllowed_layoutParamsUpdated()
324 assertThat(mLayoutParameters.getValue().screenOrientation) in rotationBecameNotAllowed_layoutParamsUpdated()
352 assertThat(mLayoutParameters.getValue().screenOrientation) in bouncerShowing_OrientationNoSensor()
[all …]

12345678910>>...41