Home
last modified time | relevance | path

Searched refs:getPolicy (Results 1 – 25 of 31) 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()
320 getPolicy().onSystemReady(); in onSystemReady()
335 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.java210 return new PackageDurations(uid, packageName, mInjector.getPolicy(), this); in createAppStateEvents()
220 if (!mInjector.getPolicy().isEnabled()) { in handleForegroundServicesChanged()
225 final int exemptReason = mInjector.getPolicy().shouldExemptUid(uid); in handleForegroundServicesChanged()
249 mInjector.getPolicy().onLongRunningFgsGone(packageName, uid); in handleForegroundServicesChanged()
384 + Math.max(0, mInjector.getPolicy().getFgsLongRunningThreshold() - longest); in scheduleDurationCheckLocked()
396 final AppFGSPolicy policy = mInjector.getPolicy(); in checkLongRunningFgs()
452 if (!mInjector.getPolicy().isEnabled()) { in handleForegroundServicesChanged()
455 final int exemptReason = mInjector.getPolicy().shouldExemptUid(uid); in handleForegroundServicesChanged()
465 pkg = new PackageDurations(uid, packageName, mInjector.getPolicy(), this); in handleForegroundServicesChanged()
500 if (mInjector.getPolicy().isEnabled()) { in onBgFgsLongRunningThresholdChanged()
DAppPermissionTracker.java119 final Pair[] permissions = mInjector.getPolicy().getBgPermissionsInMonitor(); in handleAppOpsInit()
133 final Pair[] permissions = mInjector.getPolicy().getBgPermissionsInMonitor(); in handlePermissionsInit()
202 final Pair[] permissions = mInjector.getPolicy().getBgPermissionsInMonitor(); in handleOpChanged()
223 final Pair[] permissions = mInjector.getPolicy().getBgPermissionsInMonitor(); in handlePermissionsChanged()
453 onPermissionTrackerEnabled(mInjector.getPolicy().isEnabled()); in onLockedBootCompleted()
460 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.java233 if (mInjector.getPolicy().isEnabled()) { in scheduleBatteryUsageStatsUpdateIfNecessary()
250 final AppBatteryPolicy bgPolicy = mInjector.getPolicy(); in logAppBatteryTrackerIfNeeded()
299 final BatteryUsage bgUsage = temp.calcPercentage(uid, mInjector.getPolicy()); in getTrackerInfoForStatsd()
364 mInjector.getPolicy().onUserRemovedLocked(userId); in onUserRemoved()
373 mInjector.getPolicy().onUidRemovedLocked(uid); in onUidRemoved()
379 mInjector.getPolicy().onUserInteractionStarted(packageName, uid); in onUserInteractionStarted()
384 mInjector.getPolicy().onBackgroundRestrictionChanged(uid, pkgName, restricted); in onBackgroundRestrictionChanged()
435 final AppBatteryPolicy bgPolicy = mInjector.getPolicy(); in checkBatteryUsageStats()
518 final AppBatteryPolicy bgPolicy = mInjector.getPolicy(); in updateBatteryUsageStatsOnce()
671 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()
DAppRestrictionController.java1815 @RestrictionLevel int l = mAppStateTrackers.get(i).getPolicy() in calcAppRestrictionLevelFromTackers()
/frameworks/base/libs/input/
DMouseCursorController.cpp55 mLocked.requestedPointerType = mContext.getPolicy()->getDefaultPointerIconId(); in MouseCursorController()
308 const int32_t iconId = mContext.getPolicy()->getCustomPointerIconId(); in setCustomPointerIcon()
386 if (mLocked.requestedPointerType == mContext.getPolicy()->getDefaultPointerIconId()) { in updatePointerLocked()
418 sp<PointerControllerPolicyInterface> policy = mContext.getPolicy(); in loadResourcesLocked()
442 mContext.getPolicy()->loadAdditionalMouseResources(&mLocked.additionalMouseResources, in getAdditionalMouseResources()
DTouchSpotController.cpp66 mContext.getPolicy()->loadPointerResources(&mResources, mDisplayId); in TouchSpotController()
209 mContext.getPolicy()->loadPointerResources(&mResources, mDisplayId); in reloadSpotResources()
DPointerController.cpp109 mContext.getPolicy()->onPointerDisplayIdChanged(ADISPLAY_ID_NONE, 0, 0); in ~PointerController()
262 mContext.getPolicy()->onPointerDisplayIdChanged(viewport.displayId, xPos, yPos); in setDisplayViewport()
DPointerControllerContext.h109 sp<PointerControllerPolicyInterface> getPolicy();
DPointerControllerContext.cpp92 sp<PointerControllerPolicyInterface> PointerControllerContext::getPolicy() { in getPolicy() function in android::PointerControllerContext
/frameworks/native/services/inputflinger/reader/mapper/
DInputMapper.h51 inline InputReaderPolicyInterface* getPolicy() { return getContext()->getPolicy(); } in getPolicy() function
/frameworks/base/cmds/incidentd/src/
DPrivacy.h84 uint8_t getPolicy() const;
/frameworks/native/services/inputflinger/reader/include/
DInputReaderContext.h57 virtual InputReaderPolicyInterface* getPolicy() = 0;
DInputReader.h146 InputReaderPolicyInterface* getPolicy() REQUIRES(mReader->mLock) override;
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DNetworkCycleDataLoader.java58 mPolicy = policyEditor.getPolicy(mNetworkTemplate); in NetworkCycleDataLoader()
/frameworks/native/services/inputflinger/reader/
DInputDevice.cpp276 mContext->getPolicy()->getKeyboardLayoutOverlay(mIdentifier); in configure()
292 std::string alias = mContext->getPolicy()->getDeviceAlias(mIdentifier); in configure()
DInputReader.cpp953 InputReaderPolicyInterface* InputReader::ContextImpl::getPolicy() { in getPolicy() function in android::InputReader::ContextImpl

12