/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | RefreshRatePolicyTest.java | 58 private RefreshRatePolicy mPolicy; field in RefreshRatePolicyTest 86 mPolicy = new RefreshRatePolicy(mWm, mDisplayInfo, mDenylist); in setUp() 100 assertEquals(0, mPolicy.getPreferredModeId(cameraUsingWindow)); in testCamera() 101 assertEquals(0, mPolicy.getPreferredRefreshRate(cameraUsingWindow), FLOAT_TOLERANCE); in testCamera() 102 assertEquals(0, mPolicy.getPreferredMinRefreshRate(cameraUsingWindow), FLOAT_TOLERANCE); in testCamera() 103 assertEquals(0, mPolicy.getPreferredMaxRefreshRate(cameraUsingWindow), FLOAT_TOLERANCE); in testCamera() 104 mPolicy.addNonHighRefreshRatePackage("com.android.test"); in testCamera() 105 assertEquals(0, mPolicy.getPreferredModeId(cameraUsingWindow)); in testCamera() 106 assertEquals(0, mPolicy.getPreferredRefreshRate(cameraUsingWindow), FLOAT_TOLERANCE); in testCamera() 107 assertEquals(0, mPolicy.getPreferredMinRefreshRate(cameraUsingWindow), FLOAT_TOLERANCE); in testCamera() [all …]
|
D | DisplayAreaPolicyBuilderTest.java | 88 private TestWindowManagerPolicy mPolicy = new TestWindowManagerPolicy(null, null); field in DisplayAreaPolicyBuilderTest 124 .addFeature(foo = new Feature.Builder(mPolicy, "Foo", in testBuilder() 129 .addFeature(bar = new Feature.Builder(mPolicy, "Bar", in testBuilder() 273 .addFeature(dimmable = new Feature.Builder(mPolicy, "Dimmable", in testBuilder_createCustomizedDisplayAreaForFeature() 279 .addFeature(other = new Feature.Builder(mPolicy, "Other", in testBuilder_createCustomizedDisplayAreaForFeature() 409 .addFeature(new Feature.Builder(mPolicy, "testFeature", mRoot.mFeatureId) in testBuilder_rootHasUniqueId() 437 .addFeature(new Feature.Builder(mPolicy, "testFeature", mTda1.mFeatureId) in testBuilder_taskDisplayAreaHasUniqueId() 451 .addFeature(new Feature.Builder(mPolicy, "feature1", FEATURE_VENDOR_FIRST + 10) in testBuilder_featureHasUniqueId() 454 .addFeature(new Feature.Builder(mPolicy, "feature2", FEATURE_VENDOR_FIRST + 10) in testBuilder_featureHasUniqueId() 465 .addFeature(new Feature.Builder(mPolicy, "feature1", FEATURE_VENDOR_FIRST + 10) in testBuilder_featureHasUniqueId() [all …]
|
D | DualDisplayAreaGroupPolicyTest.java | 499 wmService.mPolicy, in instantiate() 506 wmService.mPolicy, in instantiate() 522 wmService.mPolicy, in instantiate() 538 wmService.mPolicy, in instantiate()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/draganddrop/ |
D | DragAndDropPolicyTest.java | 101 private DragAndDropPolicy mPolicy; field in DragAndDropPolicyTest 131 mPolicy = spy(new DragAndDropPolicy( in setUp() 203 mPolicy.start(mLandscapeDisplayLayout, mActivityClipData); in testDragAppOverFullscreenHome_expectOnlyFullscreenTarget() 205 mPolicy.getTargets(mInsets), TYPE_FULLSCREEN); in testDragAppOverFullscreenHome_expectOnlyFullscreenTarget() 207 mPolicy.handleDrop(filterTargetByType(targets, TYPE_FULLSCREEN), mActivityClipData); in testDragAppOverFullscreenHome_expectOnlyFullscreenTarget() 215 mPolicy.start(mLandscapeDisplayLayout, mActivityClipData); in testDragAppOverFullscreenApp_expectSplitScreenAndFullscreenTargets() 217 mPolicy.getTargets(mInsets), TYPE_FULLSCREEN, TYPE_SPLIT_LEFT, TYPE_SPLIT_RIGHT); in testDragAppOverFullscreenApp_expectSplitScreenAndFullscreenTargets() 219 mPolicy.handleDrop(filterTargetByType(targets, TYPE_FULLSCREEN), mActivityClipData); in testDragAppOverFullscreenApp_expectSplitScreenAndFullscreenTargets() 224 mPolicy.handleDrop(filterTargetByType(targets, TYPE_SPLIT_RIGHT), mActivityClipData); in testDragAppOverFullscreenApp_expectSplitScreenAndFullscreenTargets() 232 mPolicy.start(mPortraitDisplayLayout, mActivityClipData); in testDragAppOverFullscreenAppPhone_expectVerticalSplitScreenAndFullscreenTargets() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicestate/ |
D | DeviceStateManagerServiceTest.java | 63 private TestDeviceStatePolicy mPolicy; field in DeviceStateManagerServiceTest 70 mPolicy = new TestDeviceStatePolicy(mProvider); in setup() 71 mService = new DeviceStateManagerService(InstrumentationRegistry.getContext(), mPolicy); in setup() 79 assertEquals(mPolicy.getMostRecentRequestedStateToConfigure(), in baseStateChanged() 86 assertEquals(mPolicy.getMostRecentRequestedStateToConfigure(), in baseStateChanged() 92 mPolicy.blockConfigure(); in baseStateChanged_withStatePendingPolicyCallback() 98 assertEquals(mPolicy.getMostRecentRequestedStateToConfigure(), in baseStateChanged_withStatePendingPolicyCallback() 105 assertEquals(mPolicy.getMostRecentRequestedStateToConfigure(), in baseStateChanged_withStatePendingPolicyCallback() 108 mPolicy.resumeConfigure(); in baseStateChanged_withStatePendingPolicyCallback() 112 assertEquals(mPolicy.getMostRecentRequestedStateToConfigure(), in baseStateChanged_withStatePendingPolicyCallback() [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/base/services/core/java/com/android/server/wm/ |
D | DisplayAreaPolicy.java | 121 rootHierarchy.addFeature(new Feature.Builder(wmService.mPolicy, "WindowedMagnification", in configureTrustedHierarchyBuilder() 131 rootHierarchy.addFeature(new Feature.Builder(wmService.mPolicy, "HideDisplayCutout", in configureTrustedHierarchyBuilder() 137 .addFeature(new Feature.Builder(wmService.mPolicy, in configureTrustedHierarchyBuilder() 142 .addFeature(new Feature.Builder(wmService.mPolicy, "OneHanded", in configureTrustedHierarchyBuilder() 149 .addFeature(new Feature.Builder(wmService.mPolicy, "FullscreenMagnification", in configureTrustedHierarchyBuilder() 156 .addFeature(new Feature.Builder(wmService.mPolicy, "ImePlaceholder", in configureTrustedHierarchyBuilder()
|
D | InputManagerCallback.java | 134 mService.mPolicy.notifyLidSwitchChanged(whenNanos, lidOpen); in notifyLidSwitchChanged() 140 mService.mPolicy.notifyCameraLensCoverSwitchChanged(whenNanos, lensCovered); in notifyCameraLensCoverSwitchChanged() 149 return mService.mPolicy.interceptKeyBeforeQueueing(event, policyFlags); in interceptKeyBeforeQueueing() 156 return mService.mPolicy.interceptMotionBeforeQueueingNonInteractive( in interceptMotionBeforeQueueingNonInteractive() 167 return mService.mPolicy.interceptKeyBeforeDispatching(focusedToken, event, policyFlags); in interceptKeyBeforeDispatching() 177 return mService.mPolicy.dispatchUnhandledKey(focusedToken, event, policyFlags); in dispatchUnhandledKey() 183 return mService.mPolicy.getWindowLayerFromTypeLw(WindowManager.LayoutParams.TYPE_POINTER) in getPointerLayer()
|
D | InsetsPolicy.java | 66 private final DisplayPolicy mPolicy; field in InsetsPolicy 115 mPolicy = displayContent.getDisplayPolicy(); in InsetsPolicy() 116 mRemoteInsetsControllerControlsSystemBars = mPolicy.getContext().getResources().getBoolean( in InsetsPolicy() 170 mPolicy.getStatusBarManagerInternal().showTransient(mDisplayContent.getDisplayId(), in showTransient() 286 mPolicy.getStatusBarManagerInternal().abortTransient(mDisplayContent.getDisplayId(), in checkAbortTransient() 297 mPolicy.getStatusBarManagerInternal().abortTransient(mDisplayContent.getDisplayId(), in abortTransient() 312 final WindowState notificationShade = mPolicy.getNotificationShade(); in getStatusControlTarget() 334 if (!canBeTopFullscreenOpaqueWindow(focusedWin) && mPolicy.topAppHidesStatusBar() in getStatusControlTarget() 338 return mPolicy.getTopFullscreenOpaqueWindow(); in getStatusControlTarget() 363 if (focusedWin == mPolicy.getNotificationShade()) { in getNavControlTarget() [all …]
|
D | RootDisplayArea.java | 123 int windowLayerFromType = mWmService.mPolicy.getWindowLayerFromTypeLw(windowType, in findAreaForWindowTypeInLayer() 145 final WindowManagerPolicy policy = mWmService.mPolicy; in updateImeContainerForLayers()
|
D | DisplayAreaPolicyBuilder.java | 426 final WindowManagerPolicy policy = mRoot.mWmService.mPolicy; in build() 617 private final WindowManagerPolicy mPolicy; field in DisplayAreaPolicyBuilder.Feature.Builder 638 mPolicy = policy; in Builder() 641 mLayers = new boolean[mPolicy.getMaxWindowLayer() + 1]; in Builder() 706 mLayers[mPolicy.getMaxWindowLayer()] = false; in build() 722 return mPolicy.getWindowLayerFromTypeLw(type, internalWindows); in layerFromType()
|
D | WindowAnimator.java | 53 final WindowManagerPolicy mPolicy; field in WindowAnimator 97 mPolicy = service.mPolicy; in WindowAnimator()
|
D | DisplayPolicy.java | 875 if (mService.mPolicy.isKeyguardOccluded()) { in adjustWindowParamsLw() 1075 mService.mPolicy.setKeyguardCandidateLw(win); in addWindowLw() 1240 mService.mPolicy.setKeyguardCandidateLw(null); 1304 if (mService.mPolicy.isKeyguardShowingAndNotOccluded()) { 1846 mDreamingLockscreen = mService.mPolicy.isKeyguardShowingAndNotOccluded(); 1896 mService.mPolicy.setAllowLockscreenWhenOn(getDisplayId(), mAllowLockscreenWhenOn); 1907 if (mService.mPolicy.canBeHiddenByKeyguardLw(win)) { 1936 || !mService.mPolicy.canBeHiddenByKeyguardLw(imeTarget)); 1987 final int uiMode = mService.mPolicy.getUiMode(); 2303 final int uiMode = mService.mPolicy.getUiMode(); [all …]
|
D | WindowManagerService.java | 570 WindowManagerPolicy mPolicy; field in WindowManagerService 1193 mPolicy.init(mContext, WindowManagerService.this, WindowManagerService.this); in initPolicy() 1247 mPolicy = policy; in WindowManagerService() 1263 LocalServices.addService(WindowManagerPolicy.class, mPolicy); in WindowManagerService() 1267 mKeyguardDisableHandler = KeyguardDisableHandler.create(mContext, mPolicy, mH); in WindowManagerService() 1465 int res = mPolicy.checkAddPermission(attrs.type, isRoundedCornerOverlay, attrs.packageName, in addWindow() 3169 mPolicy.exitKeyguardSecurely(new WindowManagerPolicy.OnKeyguardExitResult() { in exitKeyguardSecurely() 3183 return mPolicy.isKeyguardLocked(); in isKeyguardLocked() 3187 return mPolicy.isKeyguardShowingAndNotOccluded(); in isKeyguardShowingAndNotOccluded() 3200 return mPolicy.isKeyguardSecure(userId); in isKeyguardSecure() [all …]
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/draganddrop/ |
D | DragLayout.java | 54 private final DragAndDropPolicy mPolicy; field in DragLayout 66 mPolicy = new DragAndDropPolicy(context, splitscreen); in DragLayout() 102 mPolicy.start(displayLayout, initialData); in prepare() 119 final ArrayList<DragAndDropPolicy.Target> targets = mPolicy.getTargets(mInsets); in recomputeDropTargets() 134 DragAndDropPolicy.Target target = mPolicy.getTargetAtLocation( in update() 196 mPolicy.handleDrop(mCurrentTarget, event.getClipData()); in drop()
|
/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/layoutlib/bridge/src/android/util/imagepool/ |
D | ImagePoolImpl.java | 42 private final ImagePoolPolicy mPolicy; field in ImagePoolImpl 49 mPolicy = policy; in ImagePoolImpl() 63 ImagePoolHelper.getBucketCreationMetaData(w, h, type, mPolicy, mImagePoolStats); in acquire() 68 final Bucket existingBucket = ImagePoolHelper.getBucket(mPool, metaData, mPolicy); in acquire() 111 mPolicy.mBucketMaxCacheSize)) { in prepareImage()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | KeyboardInterceptor.java | 36 private final WindowManagerPolicy mPolicy; field in KeyboardInterceptor 48 mPolicy = policy; in KeyboardInterceptor() 61 mPolicy = policy; in KeyboardInterceptor() 145 return mPolicy.interceptKeyBeforeDispatching(null, event, policyFlags); in getEventDelay()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/ |
D | NetworkCycleDataLoader.java | 53 private final NetworkPolicy mPolicy; field in NetworkCycleDataLoader 69 mPolicy = policyEditor.getPolicy(mNetworkTemplate); in NetworkCycleDataLoader() 81 } else if (mPolicy == null) { in loadInBackground() 92 NetworkPolicyManager.cycleIterator(mPolicy); in loadPolicyData()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/net/ |
D | NetworkCycleDataLoaderTest.java | 63 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/base/libs/input/tests/ |
D | PointerController_test.cpp | 137 sp<MockPointerControllerPolicyInterface> mPolicy; member in android::PointerControllerTest 158 mPolicy = new MockPointerControllerPolicyInterface(); in PointerControllerTest() 163 mPointerController = PointerController::create(mPolicy, mLooper, mSpriteController); in PointerControllerTest() 253 EXPECT_TRUE(mPolicy->noResourcesAreLoaded()); in TEST_F()
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | Notifier.java | 121 private final WindowManagerPolicy mPolicy; field in Notifier 175 mPolicy = policy; in Notifier() 460 mHandler.post(() -> mPolicy.startedWakingUp(mInteractiveChangeReason)); in handleEarlyInteractiveChange() 469 mHandler.post(() -> mPolicy.startedGoingToSleep(mInteractiveChangeReason)); in handleEarlyInteractiveChange() 495 mPolicy.finishedWakingUp(mInteractiveChangeReason); in handleLateInteractiveChange() 523 mPolicy.finishedGoingToSleep(mInteractiveChangeReason); in handleLateInteractiveChange() 660 mPolicy.userActivity(); in sendUserActivity()
|
/frameworks/base/libs/input/ |
D | PointerControllerContext.cpp | 36 : mPolicy(policy), in PointerControllerContext() 93 return mPolicy; in getPolicy()
|
/frameworks/native/libs/binder/ |
D | Binder.cpp | 148 int mPolicy = SCHED_NORMAL; member in android::BBinder::Extras 325 e->mPolicy = policy; in setMinSchedulerPolicy() 332 return e->mPolicy; in getMinSchedulerPolicy()
|