Home
last modified time | relevance | path

Searched refs:isCameraActive (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/services/core/java/com/android/server/wm/
DDisplayRotationCompatPolicy.java256 && isCameraActive(activity, /* mustBeFullscreen */ true) in isActivityEligibleForOrientationOverride()
274 boolean isCameraActive(@NonNull ActivityRecord activity, boolean mustBeFullscreen) { in isCameraActive() method in DisplayRotationCompatPolicy
283 return activity != null && isCameraActive(activity, mustBeFullscreen) in isTreatmentEnabledForActivity()
DLetterboxUiController.java479 return mActivityRecord.isCameraActive() in shouldOverrideMinAspectRatioForCamera()
570 && !mActivityRecord.isCameraActive()) { in overrideOrientationIfNeeded()
611 && !mActivityRecord.isCameraActive()) { in overrideOrientationIfNeeded()
DActivityRecord.java9924 boolean isCameraActive() {
9928 .isCameraActive(this, /* mustBeFullscreen */ true);
/frameworks/base/packages/SystemUI/src/com/android/systemui/log/
DScreenDecorationsLogger.kt141 isCameraActive: Boolean, in cameraProtectionShownOrHidden()
152 bool3 = isCameraActive in cameraProtectionShownOrHidden()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DDisplayCutoutBaseView.kt212 open fun enableShowProtection(isCameraActive: Boolean) { in <lambda>()
213 if (showProtection == isCameraActive) { in <lambda>()
216 showProtection = isCameraActive in <lambda>()
DFaceScanningOverlay.kt89 override fun enableShowProtection(isCameraActive: Boolean) { in enableShowProtection()
93 val showScanningAnimationNow = scanningAnimationRequiredWhenCameraActive && isCameraActive in enableShowProtection()
102 isCameraActive, in enableShowProtection()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayRotationCompatPolicyTests.java551 mDisplayRotationCompatPolicy.isCameraActive(mActivity, /* mustBeFullscreen*/ true)); in testIsCameraActiveWhenCallbackInvokedNoMultiWindow_returnTrue()
559 mDisplayRotationCompatPolicy.isCameraActive(mActivity, /* mustBeFullscreen*/ true)); in testIsCameraActiveWhenCallbackNotInvokedNoMultiWindow_returnFalse()
568 mDisplayRotationCompatPolicy.isCameraActive(mActivity, /* mustBeFullscreen*/ true)); in testIsCameraActiveWhenCallbackNotInvokedMultiWindow_returnFalse()
578 mDisplayRotationCompatPolicy.isCameraActive(mActivity, /* mustBeFullscreen*/ true)); in testIsCameraActiveWhenCallbackInvokedMultiWindow_returnFalse()
DLetterboxUiControllerTest.java925 .isCameraActive(mActivity, /* mustBeFullscreen= */ true); in testOverrideOrientationIfNeeded_userFullscreenOverride_cameraActivity_noChange()
945 .isCameraActive(mActivity, /* mustBeFullscreen= */ true); in testOverrideOrientationIfNeeded_systemFullscreenOverride_cameraActivity_noChange()
1365 doReturn(true).when(mActivity).isCameraActive(); in shouldOverrideMinAspectRatioForCamera_overrideEnabled_returnsTrue()
1375 doReturn(true).when(mActivity).isCameraActive(); in shouldOverrideMinAspectRatioForCamera_propertyTrue_overrideEnabled_returnsTrue()
1386 doReturn(false).when(mActivity).isCameraActive(); in shouldOverrideMinAspectRatioForCamera_propertyTrue_overrideEnabled_returnsFalse()
1397 doReturn(true).when(mActivity).isCameraActive(); in shouldOverrideMinAspectRatioForCamera_propertyTrue_overrideDisabled_returnsFalse()
1407 doReturn(true).when(mActivity).isCameraActive(); in shouldOverrideMinAspectRatioForCamera_overrideDisabled_returnsFalse()
1428 doReturn(true).when(mActivity).isCameraActive(); in shouldOverrideMinAspectRatioForCamera_propertyFalse_noOverride_returnsFalse()
DActivityRecordTests.java3497 when(displayRotationCompatPolicy.isCameraActive(any(ActivityRecord.class), in testIsCameraActive()
3499 assertFalse(app.mActivityRecord.isCameraActive()); in testIsCameraActive()
3501 when(displayRotationCompatPolicy.isCameraActive(any(ActivityRecord.class), in testIsCameraActive()
3503 assertTrue(app.mActivityRecord.isCameraActive()); in testIsCameraActive()