/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | NetworkPolicyEditor.java | 98 final NetworkPolicy policy = getPolicy(template); in hasLimitedPolicy() 103 NetworkPolicy policy = getPolicy(template); in getOrCreatePolicy() 111 public NetworkPolicy getPolicy(NetworkTemplate template) { in getPolicy() method in NetworkPolicyEditor 121 NetworkPolicy policy = getPolicy(template); in getPolicyMaybeUnquoted() 125 return getPolicy(template); in getPolicyMaybeUnquoted() 150 final NetworkPolicy policy = getPolicy(template); in getPolicyCycleDay() 168 final NetworkPolicy policy = getPolicy(template); in getPolicyWarningBytes() 190 final NetworkPolicy policy = getPolicy(template); in getPolicyLimitBytes()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | BaseAppStateTracker.java | 181 T getPolicy() { in getPolicy() method in BaseAppStateTracker 182 return mInjector.getPolicy(); in getPolicy() 239 getPolicy().onPropertiesChanged(name); in onPropertiesChanged() 272 mInjector.getPolicy().dump(pw, " " + prefix); in dump() 322 getPolicy().onSystemReady(); in onSystemReady() 337 T getPolicy() { in getPolicy() method in BaseAppStateTracker.Injector
|
D | BaseAppStateTimeSlotEventsTracker.java | 82 if (mInjector.getPolicy().shouldExempt(packageName, uid) != REASON_DENIED) { in handleNewEvent() 96 notify = totalEvents >= mInjector.getPolicy().getNumOfEventsThreshold(); in handleNewEvent() 99 mInjector.getPolicy().onExcessiveEvents( in handleNewEvent() 130 mInjector.getPolicy().onExcessiveEvents( in onNumOfEventsThresholdChanged() 147 trim(Math.max(0, now - mInjector.getPolicy().getMaxTrackingDuration())); in trimEvents() 152 mInjector.getPolicy().onUserInteractionStarted(packageName, uid); in onUserInteractionStarted()
|
D | AppBroadcastEventsTracker.java | 59 if (mInjector.getPolicy().isEnabled()) { in onSendingBroadcast() 78 mInjector.getPolicy().getTimeSlotSize(), TAG, mInjector.getPolicy()); in createAppStateEvents()
|
D | AppBindServiceEventsTracker.java | 60 if (mInjector.getPolicy().isEnabled()) { in onBindingService() 79 mInjector.getPolicy().getTimeSlotSize(), TAG, mInjector.getPolicy()); in createAppStateEvents()
|
D | AppFGSTracker.java | 215 return new PackageDurations(uid, packageName, mInjector.getPolicy(), this); in createAppStateEvents() 225 if (!mInjector.getPolicy().isEnabled()) { in handleForegroundServicesChanged() 230 final int exemptReason = mInjector.getPolicy().shouldExemptUid(uid); in handleForegroundServicesChanged() 254 mInjector.getPolicy().onLongRunningFgsGone(packageName, uid); in handleForegroundServicesChanged() 389 + Math.max(0, mInjector.getPolicy().getFgsLongRunningThreshold() - longest); in scheduleDurationCheckLocked() 401 final AppFGSPolicy policy = mInjector.getPolicy(); in checkLongRunningFgs() 457 if (!mInjector.getPolicy().isEnabled()) { in handleForegroundServicesChanged() 460 final int exemptReason = mInjector.getPolicy().shouldExemptUid(uid); in handleForegroundServicesChanged() 470 pkg = new PackageDurations(uid, packageName, mInjector.getPolicy(), this); in handleForegroundServicesChanged() 505 if (mInjector.getPolicy().isEnabled()) { in onBgFgsLongRunningThresholdChanged()
|
D | AppPermissionTracker.java | 120 final Pair[] permissions = mInjector.getPolicy().getBgPermissionsInMonitor(); in handleAppOpsInit() 134 final Pair[] permissions = mInjector.getPolicy().getBgPermissionsInMonitor(); in handlePermissionsInit() 203 final Pair[] permissions = mInjector.getPolicy().getBgPermissionsInMonitor(); in handleOpChanged() 224 final Pair[] permissions = mInjector.getPolicy().getBgPermissionsInMonitor(); in handlePermissionsChanged() 454 onPermissionTrackerEnabled(mInjector.getPolicy().isEnabled()); in onLockedBootCompleted() 461 final Pair[] permissions = mInjector.getPolicy().getBgPermissionsInMonitor(); in dump()
|
D | AppBatteryExemptionTracker.java | 103 return new UidBatteryStates(uid, TAG, mInjector.getPolicy()); in createAppStateEvents() 113 if (!mInjector.getPolicy().isEnabled()) { in onStateChange() 207 if (!mInjector.getPolicy().isEnabled()) { in getUidBatteryExemptedUsageSince() 383 trim(Math.max(0, now - mInjector.getPolicy().getMaxTrackingDuration())); in trimDurations() 389 mInjector.getPolicy().dump(pw, prefix); in dump()
|
D | AppMediaSessionTracker.java | 76 return new SimplePackageDurations(uid, packageName, mInjector.getPolicy()); in createAppStateEvents() 161 trim(Math.max(0, now - mInjector.getPolicy().getMaxTrackingDuration())); in trimDurations()
|
D | AppBatteryTracker.java | 235 if (mInjector.getPolicy().isEnabled()) { in scheduleBatteryUsageStatsUpdateIfNecessary() 252 final AppBatteryPolicy bgPolicy = mInjector.getPolicy(); in logAppBatteryTrackerIfNeeded() 301 final BatteryUsage bgUsage = temp.calcPercentage(uid, mInjector.getPolicy()); in getTrackerInfoForStatsd() 366 mInjector.getPolicy().onUserRemovedLocked(userId); in onUserRemoved() 375 mInjector.getPolicy().onUidRemovedLocked(uid); in onUidRemoved() 381 mInjector.getPolicy().onUserInteractionStarted(packageName, uid); in onUserInteractionStarted() 386 mInjector.getPolicy().onBackgroundRestrictionChanged(uid, pkgName, restricted); in onBackgroundRestrictionChanged() 437 final AppBatteryPolicy bgPolicy = mInjector.getPolicy(); in checkBatteryUsageStats() 520 final AppBatteryPolicy bgPolicy = mInjector.getPolicy(); in updateBatteryUsageStatsOnce() 710 final AppBatteryPolicy bgPolicy = mInjector.getPolicy(); in updateBatteryUsageStatsOnceInternal() [all …]
|
D | BaseAppStateDurationsTracker.java | 62 uidStateDurations = new UidStateDurations(uid, mInjector.getPolicy()); in onUidProcStateChanged()
|
D | BaseAppStateEventsTracker.java | 172 final T policy = mInjector.getPolicy(); in dump()
|
/frameworks/base/libs/input/ |
D | MouseCursorController.cpp | 295 const PointerIconStyle iconId = mContext.getPolicy()->getCustomPointerIconId(); in setCustomPointerIcon() 376 mContext.getPolicy()->getDefaultPointerIconId(); in updatePointerLocked() 379 ? mContext.getPolicy()->getDefaultStylusIconId() in updatePointerLocked() 415 sp<PointerControllerPolicyInterface> policy = mContext.getPolicy(); in loadResourcesLocked() 439 mContext.getPolicy()->loadAdditionalMouseResources(&mLocked.additionalMouseResources, in getAdditionalMouseResources()
|
D | TouchSpotController.cpp | 75 mContext.getPolicy()->loadPointerResources(&mResources, mDisplayId); in TouchSpotController() 218 mContext.getPolicy()->loadPointerResources(&mResources, mDisplayId); in reloadSpotResources()
|
D | PointerControllerContext.h | 111 sp<PointerControllerPolicyInterface> getPolicy();
|
D | PointerControllerContext.cpp | 92 sp<PointerControllerPolicyInterface> PointerControllerContext::getPolicy() { in getPolicy() function in android::PointerControllerContext
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | LowPowerStandbyController.java | 192 final LowPowerStandbyPolicy policy = getPolicy(); 774 final Message msg = mHandler.obtainMessage(MSG_NOTIFY_POLICY_CHANGED, getPolicy()); in enqueueNotifyPolicyChangedLocked() 918 LowPowerStandbyPolicy getPolicy() { in getPolicy() method in LowPowerStandbyController 954 return (getPolicy().getAllowedReasons() & reason) != 0; in isAllowed() 964 return !isEnabled() || getPolicy().getAllowedFeatures().contains(feature); in isAllowed() 1092 final LowPowerStandbyPolicy policy = getPolicy(); in dump() 1157 final LowPowerStandbyPolicy policy = getPolicy(); in dumpProto() 1251 if ((getPolicy().getAllowedReasons() & allowedReason) != 0) { in addToAllowlistInternal() 1269 if ((getPolicy().getAllowedReasons() & allowedReason) != 0) { in removeFromAllowlistInternal() 1280 final LowPowerStandbyPolicy policy = getPolicy(); in getExemptPackageAppIdsLocked() [all …]
|
/frameworks/base/cmds/incidentd/src/ |
D | Privacy.h | 84 uint8_t getPolicy() const;
|
/frameworks/native/services/inputflinger/reader/mapper/ |
D | InputMapper.h | 72 inline InputReaderPolicyInterface* getPolicy() { return getContext()->getPolicy(); } in getPolicy() function
|
D | KeyboardInputMapper.cpp | 210 ->getPolicy() in updateKeyboardLayoutOverlay() 499 if (shouldHideCursor && context.getPolicy()->isInputMethodConnectionActive()) { in onKeyDownProcessed()
|
/frameworks/native/services/inputflinger/reader/include/ |
D | InputReaderContext.h | 55 virtual InputReaderPolicyInterface* getPolicy() = 0;
|
/frameworks/native/services/inputflinger/tests/ |
D | KeyboardInputMapper_test.cpp | 67 EXPECT_CALL(mMockInputReaderContext, getPolicy).WillRepeatedly(Return(mFakePolicy.get())); in SetUp()
|
D | InterfaceMocks.h | 67 MOCK_METHOD(InputReaderPolicyInterface*, getPolicy, (), (override));
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/ |
D | NetworkCycleDataLoader.java | 58 mPolicy = policyEditor.getPolicy(mNetworkTemplate); in NetworkCycleDataLoader()
|
/frameworks/base/services/tests/powerservicetests/src/com/android/server/power/ |
D | LowPowerStandbyControllerTest.java | 521 assertThat(mController.getPolicy()).isEqualTo(EMPTY_POLICY); in testSetPolicy() 529 assertThat(mController.getPolicy()).isNotNull(); in testSetDefaultPolicy() 530 assertThat(mController.getPolicy()).isEqualTo(LowPowerStandbyController.DEFAULT_POLICY); in testSetDefaultPolicy()
|