Home
last modified time | relevance | path

Searched refs:getMode (Results 1 – 25 of 320) sorted by relevance

12345678910>>...13

/aosp12/system/chre/core/tests/
H A Dsensor_request_test.cc30 EXPECT_EQ(request.getMode(), SensorMode::Off); in TEST()
43 EXPECT_EQ(mergedRequest.getMode(), SensorMode::ActiveContinuous); in TEST()
56 EXPECT_EQ(mergedRequest.getMode(), SensorMode::ActiveOneShot); in TEST()
69 EXPECT_EQ(mergedRequest.getMode(), SensorMode::PassiveContinuous); in TEST()
81 EXPECT_EQ(mergedRequest.getMode(), SensorMode::PassiveOneShot); in TEST()
94 EXPECT_EQ(mergedRequest.getMode(), SensorMode::ActiveContinuous); in TEST()
107 EXPECT_EQ(mergedRequest.getMode(), SensorMode::ActiveContinuous); in TEST()
119 EXPECT_EQ(mergedRequest.getMode(), SensorMode::ActiveContinuous); in TEST()
133 EXPECT_EQ(mergedRequest.getMode(), SensorMode::ActiveContinuous); in TEST()
192 EXPECT_EQ(request.getMode(), SensorMode::ActiveContinuous); in TEST()
[all …]
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
H A DBiometricsUnlockControllerTest.java142 assertThat(mBiometricUnlockController.getMode()) in onBiometricAuthenticated_whenFingerprintAndBiometricsDisallowed_showBouncer()
155 assertThat(mBiometricUnlockController.getMode()) in onBiometricAuthenticated_whenFingerprint_nonStrongBioDisallowed_showBouncer()
174 assertThat(mBiometricUnlockController.getMode()) in onBiometricAuthenticated_whenFingerprintAndNotInteractive_wakeAndUnlock()
188 assertThat(mBiometricUnlockController.getMode()) in onBiometricAuthenticated_whenFingerprint_notifyKeyguardAuthenticated()
202 assertThat(mBiometricUnlockController.getMode()) in onBiometricAuthenticated_whenFingerprintOnBouncer_dismissBouncer()
217 assertThat(mBiometricUnlockController.getMode()) in onBiometricAuthenticated_whenFace_dontDismissKeyguard()
235 assertThat(mBiometricUnlockController.getMode()) in onBiometricAuthenticated_whenFace_andBypass_dismissKeyguard()
254 assertThat(mBiometricUnlockController.getMode()) in onBiometricAuthenticated_whenFace_andNonBypassAndUdfps_dismissKeyguard()
275 assertThat(mBiometricUnlockController.getMode()) in onBiometricAuthenticated_whenFace_andBypass_encrypted_showBouncer()
313 assertThat(mBiometricUnlockController.getMode()) in onBiometricAuthenticated_whenFace_noBypass_encrypted_doNothing()
[all …]
/aosp12/frameworks/base/services/core/java/com/android/server/locksettings/
H A DPasswordSlotManager.java88 if (entry.getValue().equals(getMode())) { in refreshActiveSlots()
98 mSlotMap.put(slot, getMode()); in refreshActiveSlots()
111 if (mSlotMap.containsKey(slot) && !mSlotMap.get(slot).equals(getMode())) { in markSlotInUse()
114 mSlotMap.put(slot, getMode()); in markSlotInUse()
125 if (mSlotMap.containsKey(slot) && !mSlotMap.get(slot).equals(getMode())) { in markSlotDeleted()
146 private String getMode() { in getMode() method in PasswordSlotManager
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/
H A DMagnificationGestureHandlerTest.java90 verify(mCallback).onTouchInteractionStart(eq(DISPLAY_0), eq(mMgh.getMode())); in onMotionEvent_downEvent_handleInteractionStart()
104 verify(mCallback).onTouchInteractionEnd(eq(DISPLAY_0), eq(mMgh.getMode())); in onMotionEvent_upEvent_handleInteractionEnd()
118 verify(mCallback).onTouchInteractionEnd(eq(DISPLAY_0), eq(mMgh.getMode())); in onMotionEvent_cancelEvent_handleInteractionEnd()
129 verify(mCallback).onShortcutTriggered(eq(DISPLAY_0), eq(mMgh.getMode())); in notifyShortcutTriggered_callsOnShortcutTriggered()
157 public int getMode() { in getMode() method in MagnificationGestureHandlerTest.TestMagnificationGestureHandler
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/legacysplitscreen/
H A DLegacySplitScreenTransitions.java218 if (change.getMode() == TRANSIT_OPEN || change.getMode() == TRANSIT_TO_FRONT) { in startAnimation()
220 } else if (change.getMode() == TRANSIT_CLOSE in startAnimation()
221 || change.getMode() == TRANSIT_TO_BACK) { in startAnimation()
237 final int mode = info.getChanges().get(i).getMode(); in startAnimation()
308 homeIsVisible = change.getMode() == TRANSIT_OPEN in startAnimation()
309 || change.getMode() == TRANSIT_TO_FRONT in startAnimation()
310 || change.getMode() == TRANSIT_CHANGE; in startAnimation()
/aosp12/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/
H A DMagnificationGestureHandler.java142 mCallback.onTouchInteractionStart(mDisplayId, getMode()); in onMotionEvent()
144 mCallback.onTouchInteractionEnd(mDisplayId, getMode()); in onMotionEvent()
195 mCallback.onShortcutTriggered(mDisplayId, getMode()); in notifyShortcutTriggered()
211 public abstract int getMode(); in getMode() method in MagnificationGestureHandler
/aosp12/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/
H A DFlowLayout.java48 if (MeasureSpec.getMode(heightMeasureSpec) == MeasureSpec.AT_MOST) { in onMeasure()
72 if (MeasureSpec.getMode(heightMeasureSpec) == MeasureSpec.UNSPECIFIED) { in onMeasure()
74 } else if (MeasureSpec.getMode(heightMeasureSpec) == MeasureSpec.AT_MOST) { in onMeasure()
/aosp12/packages/modules/Connectivity/tests/cts/net/src/android/net/rtp/cts/
H A DAudioGroupTest.java124 assertEquals(mGroup.getMode(), AudioGroup.MODE_NORMAL); in testSetMode()
127 assertEquals(mGroup.getMode(), AudioGroup.MODE_MUTED); in testSetMode()
133 assertEquals(mGroup.getMode(), AudioGroup.MODE_NORMAL); in testSetMode()
136 assertEquals(mGroup.getMode(), AudioGroup.MODE_MUTED); in testSetMode()
/aosp12/packages/apps/Gallery2/src/com/android/photos/views/
H A DSquareImageView.java40 int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure()
41 int heightMode = MeasureSpec.getMode(heightMeasureSpec); in onMeasure()
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/transition/
H A DDefaultTransitionHandler.java155 if (change.getMode() != TRANSIT_CHANGE) continue; in isRotationSeamless()
236 if (change.getMode() != TRANSIT_CHANGE) continue; in getRotationAnimation()
299 if (change.getMode() == TRANSIT_CHANGE && (change.getFlags() & FLAG_IS_DISPLAY) != 0) { in startAnimation()
318 if (!Transitions.isClosingType(innerChange.getMode()) in startAnimation()
340 if (change.getMode() == TRANSIT_CHANGE) { in startAnimation()
391 final int changeMode = change.getMode(); in loadAnimation()
555 final boolean isOpen = Transitions.isOpeningType(change.getMode()); in attachThumbnail()
556 final boolean isClose = Transitions.isClosingType(change.getMode()); in attachThumbnail()
631 if (Transitions.isOpeningType(change.getMode())) { in getWallpaperTransitType()
633 } else if (Transitions.isClosingType(change.getMode())) { in getWallpaperTransitType()
/aosp12/frameworks/base/core/tests/coretests/src/android/transition/
H A DAutoTransitionTest.java39 assertEquals(Visibility.MODE_OUT, ((Fade)fadeOut).getMode()); in testFadeOutMoveFadeIn()
48 assertEquals(Visibility.MODE_IN, ((Fade)fadeIn).getMode()); in testFadeOutMoveFadeIn()
/aosp12/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
H A DSysUINavigationMode.java60 public static Mode getMode(Context context) { in getMode() method in SysUINavigationMode
61 return INSTANCE.get(context).getMode(); in getMode()
185 public Mode getMode() { in getMode() method in SysUINavigationMode
/aosp12/system/chre/core/
H A Dsensor_request_manager.cc33 bool isRequestOneShot = sensorModeIsOneShot(sensorRequest.getMode()); in isSensorRequestValid()
34 bool isRequestOff = sensorRequest.getMode() == SensorMode::Off; in isSensorRequestValid()
36 bool isRequestPassive = sensorModeIsPassive(sensorRequest.getMode()); in isSensorRequestValid()
69 sensor->getMaximalRequest().getMode() != SensorMode::Off) { in updateLastEvent()
189 if (request.getMode() == SensorMode::Off) { in setSensorRequest()
569 mSensors[i].getSensorTypeName(), static_cast<int>(request.getMode()), in logStateToBuffer()
684 sensorRequest.getMode(), sensorRequest.getInterval(), in addSensorRequestLog()
872 bool enable = (request.getMode() != SensorMode::Off); in configurePlatformSensor()
893 if (request.getMode() == SensorMode::Off) { in configurePlatformSensor()
/aosp12/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/dashboard/
H A DPreferenceImageView.java47 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure()
57 final int heightMode = MeasureSpec.getMode(heightMeasureSpec); in onMeasure()
/aosp12/frameworks/base/core/java/com/android/internal/widget/
H A DPreferenceImageView.java50 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure()
60 final int heightMode = MeasureSpec.getMode(heightMeasureSpec); in onMeasure()
H A DOrientationHelper.java212 public abstract int getMode(); in getMode() method in OrientationHelper
331 public int getMode() { in createHorizontalHelper() method in OrientationHelper
429 public int getMode() {
/aosp12/packages/apps/LegacyCamera/src/com/android/camera/ui/
H A DControlPanelLayout.java50 mode = MeasureSpec.getMode(widthSpec); in onMeasure()
55 mode = MeasureSpec.getMode(heightSpec); in onMeasure()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DKeyboardShortcutKeysLayout.java54 if (MeasureSpec.getMode(heightMeasureSpec) == MeasureSpec.AT_MOST) { in onMeasure()
79 if (MeasureSpec.getMode(heightMeasureSpec) == MeasureSpec.UNSPECIFIED) { in onMeasure()
81 } else if (MeasureSpec.getMode(heightMeasureSpec) == MeasureSpec.AT_MOST) { in onMeasure()
/aosp12/frameworks/base/core/tests/coretests/src/android/widget/
H A DLabelView.java132 int specMode = MeasureSpec.getMode(measureSpec); in measureWidth()
158 int specMode = MeasureSpec.getMode(measureSpec); in measureHeight()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/util/animation/
H A DUniqueObjectHostView.kt46 val widthSpec = MeasureSpec.makeMeasureSpec(width, MeasureSpec.getMode(widthMeasureSpec))
48 val heightSpec = MeasureSpec.makeMeasureSpec(height, MeasureSpec.getMode(heightMeasureSpec))
/aosp12/packages/apps/DeskClock/src/com/android/deskclock/widget/
H A DTextSizeHelper.kt47 if (MeasureSpec.getMode(widthMeasureSpec) != MeasureSpec.UNSPECIFIED) {
53 if (MeasureSpec.getMode(heightMeasureSpec) != MeasureSpec.UNSPECIFIED) {
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/
H A DNavigationBarTransitions.java112 applyModeBackground(-1, getMode(), false /*animate*/); in init()
162 applyLightsOut(isLightsOut(getMode()), animate, force); in applyLightsOut()
240 pw.println(" mMode: " + getMode()); in dump()
/aosp12/frameworks/rs/tests/java_api/RsCameraDemo/src/com/android/example/rscamera/
H A DFixedAspectSurfaceView.java88 int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure()
89 int heightMode = MeasureSpec.getMode(heightMeasureSpec); in onMeasure()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DPhoneStatusBarTransitions.java47 applyModeBackground(-1, getMode(), false /*animate*/); in PhoneStatusBarTransitions()
48 applyMode(getMode(), false /*animate*/); in PhoneStatusBarTransitions()
/aosp12/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/
H A DFixedAspectSurfaceView.java88 int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure()
89 int heightMode = MeasureSpec.getMode(heightMeasureSpec); in onMeasure()

12345678910>>...13