/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | RefreshRatePolicyTest.java | 60 private RefreshRatePolicy mPolicy; field in RefreshRatePolicyTest 88 mPolicy = new RefreshRatePolicy(mWm, mDisplayInfo, mDenylist); in setUp() 102 assertEquals(0, mPolicy.getPreferredModeId(cameraUsingWindow)); in testCamera() 103 assertEquals(0, mPolicy.getPreferredRefreshRate(cameraUsingWindow), FLOAT_TOLERANCE); in testCamera() 104 assertEquals(0, mPolicy.getPreferredMinRefreshRate(cameraUsingWindow), FLOAT_TOLERANCE); in testCamera() 105 assertEquals(0, mPolicy.getPreferredMaxRefreshRate(cameraUsingWindow), FLOAT_TOLERANCE); in testCamera() 106 mPolicy.addRefreshRateRangeForPackage("com.android.test", in testCamera() 108 assertEquals(0, mPolicy.getPreferredModeId(cameraUsingWindow)); in testCamera() 109 assertEquals(0, mPolicy.getPreferredRefreshRate(cameraUsingWindow), FLOAT_TOLERANCE); in testCamera() 111 mPolicy.getPreferredMinRefreshRate(cameraUsingWindow), FLOAT_TOLERANCE); in testCamera() [all …]
|
D | DisplayRotationImmersiveAppCompatPolicyTests.java | 60 private DisplayRotationImmersiveAppCompatPolicy mPolicy; field in DisplayRotationImmersiveAppCompatPolicyTests 91 mPolicy = DisplayRotationImmersiveAppCompatPolicy.createIfNeeded( in setUp() 125 assertTrue(mPolicy.isRotationLockEnforced(Surface.ROTATION_0)); in testIsRotationLockEnforced_landscapeActivity_lockedWhenRotatingToPortrait() 127 assertFalse(mPolicy.isRotationLockEnforced(Surface.ROTATION_90)); in testIsRotationLockEnforced_landscapeActivity_lockedWhenRotatingToPortrait() 129 assertTrue(mPolicy.isRotationLockEnforced(Surface.ROTATION_180)); in testIsRotationLockEnforced_landscapeActivity_lockedWhenRotatingToPortrait() 131 assertFalse(mPolicy.isRotationLockEnforced(Surface.ROTATION_270)); in testIsRotationLockEnforced_landscapeActivity_lockedWhenRotatingToPortrait() 140 assertFalse(mPolicy.isRotationLockEnforced(Surface.ROTATION_0)); in testIsRotationLockEnforced_portraitActivity_lockedWhenRotatingToLandscape() 142 assertTrue(mPolicy.isRotationLockEnforced(Surface.ROTATION_90)); in testIsRotationLockEnforced_portraitActivity_lockedWhenRotatingToLandscape() 144 assertFalse(mPolicy.isRotationLockEnforced(Surface.ROTATION_180)); in testIsRotationLockEnforced_portraitActivity_lockedWhenRotatingToLandscape() 146 assertTrue(mPolicy.isRotationLockEnforced(Surface.ROTATION_270)); in testIsRotationLockEnforced_portraitActivity_lockedWhenRotatingToLandscape() [all …]
|
D | DisplayAreaPolicyBuilderTest.java | 92 private TestWindowManagerPolicy mPolicy = new TestWindowManagerPolicy(); field in DisplayAreaPolicyBuilderTest 129 .addFeature(foo = new Feature.Builder(mPolicy, "Foo", in testBuilder() 134 .addFeature(bar = new Feature.Builder(mPolicy, "Bar", in testBuilder() 259 .addFeature(dimmable = new Feature.Builder(mPolicy, "Dimmable", in testBuilder_createCustomizedDisplayAreaForFeature() 265 .addFeature(other = new Feature.Builder(mPolicy, "Other", in testBuilder_createCustomizedDisplayAreaForFeature() 395 .addFeature(new Feature.Builder(mPolicy, "testFeature", mRoot.mFeatureId) in testBuilder_rootHasUniqueId() 423 .addFeature(new Feature.Builder(mPolicy, "testFeature", mTda1.mFeatureId) in testBuilder_taskDisplayAreaHasUniqueId() 437 .addFeature(new Feature.Builder(mPolicy, "feature1", FEATURE_VENDOR_FIRST + 10) in testBuilder_featureHasUniqueId() 440 .addFeature(new Feature.Builder(mPolicy, "feature2", FEATURE_VENDOR_FIRST + 10) in testBuilder_featureHasUniqueId() 451 .addFeature(new Feature.Builder(mPolicy, "feature1", FEATURE_VENDOR_FIRST + 10) in testBuilder_featureHasUniqueId() [all …]
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/draganddrop/ |
D | DragAndDropPolicyTest.java | 107 private DragAndDropPolicy mPolicy; field in DragAndDropPolicyTest 136 mPolicy = spy(new DragAndDropPolicy( in setUp() 209 mPolicy.start(mLandscapeDisplayLayout, mActivityClipData, mLoggerSessionId); in testDragAppOverFullscreenHome_expectOnlyFullscreenTarget() 211 mPolicy.getTargets(mInsets), TYPE_FULLSCREEN); in testDragAppOverFullscreenHome_expectOnlyFullscreenTarget() 213 mPolicy.handleDrop(filterTargetByType(targets, TYPE_FULLSCREEN), mActivityClipData); in testDragAppOverFullscreenHome_expectOnlyFullscreenTarget() 221 mPolicy.start(mLandscapeDisplayLayout, mActivityClipData, mLoggerSessionId); in testDragAppOverFullscreenApp_expectSplitScreenTargets() 223 mPolicy.getTargets(mInsets), TYPE_SPLIT_LEFT, TYPE_SPLIT_RIGHT); in testDragAppOverFullscreenApp_expectSplitScreenTargets() 225 mPolicy.handleDrop(filterTargetByType(targets, TYPE_SPLIT_LEFT), mActivityClipData); in testDragAppOverFullscreenApp_expectSplitScreenTargets() 230 mPolicy.handleDrop(filterTargetByType(targets, TYPE_SPLIT_RIGHT), mActivityClipData); in testDragAppOverFullscreenApp_expectSplitScreenTargets() 238 mPolicy.start(mPortraitDisplayLayout, mActivityClipData, mLoggerSessionId); in testDragAppOverFullscreenAppPhone_expectVerticalSplitScreenTargets() [all …]
|
/frameworks/base/cmds/incidentd/src/ |
D | Privacy.cpp | 76 mPolicy = argPolicy; in PrivacySpec() 79 mPolicy = android::os::PRIVACY_POLICY_AUTOMATIC; in PrivacySpec() 85 return mPolicy < that.mPolicy; in operator <() 90 return isAllowed(mPolicy, check); in CheckPremission() 94 return mPolicy == android::os::PRIVACY_POLICY_LOCAL; in RequireAll()
|
D | Privacy.h | 90 uint8_t mPolicy; variable
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | Scheduler.cpp | 113 mPolicy = {}; in setRefreshRateConfigs() 289 mPolicy.cachedModeChangedParams = {handle, mode}; in onPrimaryDisplayModeChanged() 293 mPolicy.contentRequirements.clear(); in onPrimaryDisplayModeChanged() 300 if (!mPolicy.mode) { in dispatchCachedReportedMode() 304 if (!mPolicy.cachedModeChangedParams) { in dispatchCachedReportedMode() 313 mRefreshRateConfigs->getActiveMode() != mPolicy.mode) { in dispatchCachedReportedMode() 318 if (mPolicy.mode == mPolicy.cachedModeChangedParams->mode) { in dispatchCachedReportedMode() 322 mPolicy.cachedModeChangedParams->mode = mPolicy.mode; in dispatchCachedReportedMode() 323 onNonPrimaryDisplayModeChanged(mPolicy.cachedModeChangedParams->handle, in dispatchCachedReportedMode() 324 mPolicy.cachedModeChangedParams->mode); in dispatchCachedReportedMode() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicestate/ |
D | DeviceStateManagerServiceTest.java | 76 private TestDeviceStatePolicy mPolicy; field in DeviceStateManagerServiceTest 84 mPolicy = new TestDeviceStatePolicy(mProvider); in setup() 86 mService = new DeviceStateManagerService(InstrumentationRegistry.getContext(), mPolicy, in setup() 116 assertEquals(mPolicy.getMostRecentRequestedStateToConfigure(), in baseStateChanged() 126 assertEquals(mPolicy.getMostRecentRequestedStateToConfigure(), in baseStateChanged() 132 mPolicy.blockConfigure(); in baseStateChanged_withStatePendingPolicyCallback() 141 assertEquals(mPolicy.getMostRecentRequestedStateToConfigure(), in baseStateChanged_withStatePendingPolicyCallback() 151 assertEquals(mPolicy.getMostRecentRequestedStateToConfigure(), in baseStateChanged_withStatePendingPolicyCallback() 154 mPolicy.resumeConfigure(); in baseStateChanged_withStatePendingPolicyCallback() 159 assertEquals(mPolicy.getMostRecentRequestedStateToConfigure(), in baseStateChanged_withStatePendingPolicyCallback() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
D | DozePauser.java | 36 private final AlwaysOnDisplayPolicy mPolicy; field in DozePauser 42 mPolicy = policy; in DozePauser() 54 mPauseTimeout.schedule(mPolicy.proxScreenOffDelayMs, in transitionTo()
|
/frameworks/base/libs/input/tests/ |
D | PointerController_test.cpp | 147 sp<MockPointerControllerPolicyInterface> mPolicy; member in android::PointerControllerTest 168 mPolicy = new MockPointerControllerPolicyInterface(); in PointerControllerTest() 173 mPointerController = PointerController::create(mPolicy, mLooper, mSpriteController); in PointerControllerTest() 263 EXPECT_TRUE(mPolicy->noResourcesAreLoaded()); in TEST_F() 269 EXPECT_FALSE(mPolicy->getLastReportedPointerDisplayId()) in TEST_F() 274 const auto lastReportedPointerDisplayId = mPolicy->getLastReportedPointerDisplayId(); in TEST_F() 282 EXPECT_EQ(42, *mPolicy->getLastReportedPointerDisplayId()) in TEST_F() 288 EXPECT_EQ(ADISPLAY_ID_NONE, *mPolicy->getLastReportedPointerDisplayId()) in TEST_F()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | InsetsPolicy.java | 85 private final DisplayPolicy mPolicy; field in InsetsPolicy 135 mPolicy = displayContent.getDisplayPolicy(); in InsetsPolicy() 136 final Resources r = mPolicy.getContext().getResources(); in InsetsPolicy() 164 final WindowState notificationShade = mPolicy.getNotificationShade(); in updateBarControlTarget() 165 final WindowState topApp = mPolicy.getTopFullscreenOpaqueWindow(); in updateBarControlTarget() 205 mPolicy.getStatusBarManagerInternal(); in showTransient() 514 mPolicy.getStatusBarManagerInternal(); in checkAbortTransient() 527 StatusBarManagerInternal statusBarManagerInternal = mPolicy.getStatusBarManagerInternal(); in abortTransient() 545 final WindowState notificationShade = mPolicy.getNotificationShade(); in getStatusControlTarget() 557 if (mPolicy.areSystemBarsForcedShownLw()) { in getStatusControlTarget() [all …]
|
D | DisplayAreaPolicy.java | 124 rootHierarchy.addFeature(new Feature.Builder(wmService.mPolicy, "WindowedMagnification", in configureTrustedHierarchyBuilder() 134 rootHierarchy.addFeature(new Feature.Builder(wmService.mPolicy, "HideDisplayCutout", in configureTrustedHierarchyBuilder() 140 .addFeature(new Feature.Builder(wmService.mPolicy, "OneHanded", in configureTrustedHierarchyBuilder() 148 .addFeature(new Feature.Builder(wmService.mPolicy, "FullscreenMagnification", in configureTrustedHierarchyBuilder() 155 .addFeature(new Feature.Builder(wmService.mPolicy, "ImePlaceholder", in configureTrustedHierarchyBuilder()
|
D | InputManagerCallback.java | 131 mService.mPolicy.notifyLidSwitchChanged(whenNanos, lidOpen); in notifyLidSwitchChanged() 137 mService.mPolicy.notifyCameraLensCoverSwitchChanged(whenNanos, lensCovered); in notifyCameraLensCoverSwitchChanged() 146 return mService.mPolicy.interceptKeyBeforeQueueing(event, policyFlags); in interceptKeyBeforeQueueing() 153 return mService.mPolicy.interceptMotionBeforeQueueingNonInteractive( in interceptMotionBeforeQueueingNonInteractive() 164 return mService.mPolicy.interceptKeyBeforeDispatching(focusedToken, event, policyFlags); in interceptKeyBeforeDispatching() 174 return mService.mPolicy.dispatchUnhandledKey(focusedToken, event, policyFlags); in dispatchUnhandledKey() 180 return mService.mPolicy.getWindowLayerFromTypeLw(WindowManager.LayoutParams.TYPE_POINTER) in getPointerLayer()
|
D | RootDisplayArea.java | 123 int windowLayerFromType = mWmService.mPolicy.getWindowLayerFromTypeLw(windowType, in findAreaForWindowTypeInLayer() 145 final WindowManagerPolicy policy = mWmService.mPolicy; in updateImeContainerForLayers()
|
D | WindowAnimator.java | 53 final WindowManagerPolicy mPolicy; field in WindowAnimator 97 mPolicy = service.mPolicy; in WindowAnimator()
|
D | DisplayAreaPolicyBuilder.java | 487 final WindowManagerPolicy policy = mRoot.mWmService.mPolicy; in build() 678 private final WindowManagerPolicy mPolicy; field in DisplayAreaPolicyBuilder.Feature.Builder 699 mPolicy = policy; in Builder() 702 mLayers = new boolean[mPolicy.getMaxWindowLayer() + 1]; in Builder() 767 mLayers[mPolicy.getMaxWindowLayer()] = false; in build() 783 return mPolicy.getWindowLayerFromTypeLw(type, internalWindows); in layerFromType()
|
/frameworks/opt/car/services/builtInServices/src/com/android/server/wm/ |
D | CarDisplayAreaPolicyProvider.java | 108 .addFeature(new DisplayAreaPolicyBuilder.Feature.Builder(wmService.mPolicy, in instantiate() 114 .addFeature(new DisplayAreaPolicyBuilder.Feature.Builder(wmService.mPolicy, in instantiate() 132 .addFeature(new DisplayAreaPolicyBuilder.Feature.Builder(wmService.mPolicy, in instantiate() 136 .addFeature(new DisplayAreaPolicyBuilder.Feature.Builder(wmService.mPolicy, in instantiate()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | KeyboardInterceptor.java | 38 private final WindowManagerPolicy mPolicy; field in KeyboardInterceptor 50 mPolicy = policy; in KeyboardInterceptor() 63 mPolicy = policy; in KeyboardInterceptor() 151 return mPolicy.interceptKeyBeforeDispatching(null, event, policyFlags); in getEventDelay()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/ |
D | NetworkCycleDataLoader.java | 46 private final NetworkPolicy mPolicy; field in NetworkCycleDataLoader 58 mPolicy = policyEditor.getPolicy(mNetworkTemplate); in NetworkCycleDataLoader() 70 } else if (mPolicy == null) { in loadInBackground() 81 NetworkPolicyManager.cycleIterator(mPolicy); in loadPolicyData()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/draganddrop/ |
D | DragLayout.java | 73 private final DragAndDropPolicy mPolicy; field in DragLayout 96 mPolicy = new DragAndDropPolicy(context, splitScreenController); in DragLayout() 187 mPolicy.start(displayLayout, initialData, loggerSessionId); in prepare() 194 ActivityManager.RunningTaskInfo taskInfo1 = mPolicy.getLatestRunningTask(); in prepare() 294 final ArrayList<DragAndDropPolicy.Target> targets = mPolicy.getTargets(mInsets); in recomputeDropTargets() 312 DragAndDropPolicy.Target target = mPolicy.getTargetAtLocation( in update() 320 if (mPolicy.getNumTargets() == 1) { in update() 376 mPolicy.handleDrop(mCurrentTarget, event.getClipData()); in drop()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/net/ |
D | NetworkCycleDataLoaderTest.java | 65 private NetworkPolicy mPolicy; field in NetworkCycleDataLoaderTest 78 when(mPolicy.cycleIterator()).thenReturn(mIterator); in setUp() 95 ReflectionHelpers.setField(mLoader, "mPolicy", mPolicy); in loadInBackground_hasNetworkPolicy_shouldLoadPolicyData() 128 ReflectionHelpers.setField(mLoader, "mPolicy", mPolicy); in loadPolicyData_shouldRecordUsageFromPolicyCycle()
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | TestableScheduler.h | 93 return mPolicy.touch == Scheduler::TouchState::Active; in isTouchActive() 103 mPolicy.cachedModeChangedParams.reset(); in clearCachedReportedMode()
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | Notifier.java | 125 private final WindowManagerPolicy mPolicy; field in Notifier 185 mPolicy = policy; in Notifier() 483 mPolicy.startedWakingUp(mInteractiveChangeReason); in handleEarlyInteractiveChange() 495 mPolicy.startedGoingToSleep(mInteractiveChangeReason); in handleEarlyInteractiveChange() 523 mPolicy.finishedWakingUp(mInteractiveChangeReason); in handleLateInteractiveChange() 551 mPolicy.finishedGoingToSleep(mInteractiveChangeReason); in handleLateInteractiveChange() 567 mHandler.post(() -> mPolicy.onPowerGroupWakefulnessChanged(groupId, groupWakefulness, in onPowerGroupWakefulnessChanged() 716 mPolicy.userActivity(displayGroupId, event); in sendUserActivity()
|
/frameworks/base/libs/input/ |
D | PointerControllerContext.cpp | 36 : mPolicy(policy), in PointerControllerContext() 93 return mPolicy; in getPolicy()
|
/frameworks/native/services/inputflinger/reader/ |
D | InputReader.cpp | 48 mPolicy(policy), in InputReader() 132 mPolicy->notifyInputDevicesChanged(inputDevices); in loopOnce() 341 mPolicy->getReaderConfiguration(&mConfig); in refreshConfigurationLocked() 440 controller = mPolicy->obtainPointerController(deviceId); in getPointerControllerLocked() 954 return mReader->mPolicy.get(); in getPolicy()
|