Home
last modified time | relevance | path

Searched refs:getPolicy (Results 1 – 25 of 42) sorted by relevance

12

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DNetworkPolicyEditor.java98 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/
DBaseAppStateTracker.java181 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
DBaseAppStateTimeSlotEventsTracker.java82 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()
DAppBroadcastEventsTracker.java59 if (mInjector.getPolicy().isEnabled()) { in onSendingBroadcast()
78 mInjector.getPolicy().getTimeSlotSize(), TAG, mInjector.getPolicy()); in createAppStateEvents()
DAppBindServiceEventsTracker.java60 if (mInjector.getPolicy().isEnabled()) { in onBindingService()
79 mInjector.getPolicy().getTimeSlotSize(), TAG, mInjector.getPolicy()); in createAppStateEvents()
DAppFGSTracker.java215 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()
DAppPermissionTracker.java120 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()
DAppBatteryExemptionTracker.java103 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()
DAppMediaSessionTracker.java76 return new SimplePackageDurations(uid, packageName, mInjector.getPolicy()); in createAppStateEvents()
161 trim(Math.max(0, now - mInjector.getPolicy().getMaxTrackingDuration())); in trimDurations()
DAppBatteryTracker.java235 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 …]
DBaseAppStateDurationsTracker.java62 uidStateDurations = new UidStateDurations(uid, mInjector.getPolicy()); in onUidProcStateChanged()
DBaseAppStateEventsTracker.java172 final T policy = mInjector.getPolicy(); in dump()
/frameworks/base/libs/input/
DMouseCursorController.cpp295 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()
DTouchSpotController.cpp75 mContext.getPolicy()->loadPointerResources(&mResources, mDisplayId); in TouchSpotController()
218 mContext.getPolicy()->loadPointerResources(&mResources, mDisplayId); in reloadSpotResources()
DPointerControllerContext.h111 sp<PointerControllerPolicyInterface> getPolicy();
DPointerControllerContext.cpp92 sp<PointerControllerPolicyInterface> PointerControllerContext::getPolicy() { in getPolicy() function in android::PointerControllerContext
/frameworks/base/services/core/java/com/android/server/power/
DLowPowerStandbyController.java192 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/
DPrivacy.h84 uint8_t getPolicy() const;
/frameworks/native/services/inputflinger/reader/mapper/
DInputMapper.h72 inline InputReaderPolicyInterface* getPolicy() { return getContext()->getPolicy(); } in getPolicy() function
DKeyboardInputMapper.cpp210 ->getPolicy() in updateKeyboardLayoutOverlay()
499 if (shouldHideCursor && context.getPolicy()->isInputMethodConnectionActive()) { in onKeyDownProcessed()
/frameworks/native/services/inputflinger/reader/include/
DInputReaderContext.h55 virtual InputReaderPolicyInterface* getPolicy() = 0;
/frameworks/native/services/inputflinger/tests/
DKeyboardInputMapper_test.cpp67 EXPECT_CALL(mMockInputReaderContext, getPolicy).WillRepeatedly(Return(mFakePolicy.get())); in SetUp()
DInterfaceMocks.h67 MOCK_METHOD(InputReaderPolicyInterface*, getPolicy, (), (override));
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DNetworkCycleDataLoader.java58 mPolicy = policyEditor.getPolicy(mNetworkTemplate); in NetworkCycleDataLoader()
/frameworks/base/services/tests/powerservicetests/src/com/android/server/power/
DLowPowerStandbyControllerTest.java521 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()

12