Home
last modified time | relevance | path

Searched defs:policy (Results 1 – 25 of 139) sorted by relevance

123456

/frameworks/base/wifi/tests/src/android/net/wifi/hotspot2/pps/
DPolicyTest.java51 Policy policy = new Policy(); in createPolicy() local
134 Policy policy = createPolicy(); in verifyParcelWithoutProtoPortMap() local
146 Policy policy = createPolicy(); in verifyParcelWithoutPreferredRoamingPartnerList() local
158 Policy policy = createPolicy(); in verifyParcelWithoutPolicyUpdate() local
184 Policy policy = createPolicy(); in verifyCopyConstructionWithFullPolicy() local
196 Policy policy = new Policy(); in validatePolicyWithDefault() local
218 Policy policy = createPolicy(); in validatePolicyWithoutPolicyUpdate() local
230 Policy policy = createPolicy(); in validatePolicyWithInvalidPolicyUpdate() local
242 Policy policy = createPolicy(); in validatePolicyWithRoamingPartnerWithoutFQDN() local
259 Policy policy = createPolicy(); in validatePolicyWithRoamingPartnerWithoutCountries() local
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DZenPolicyTest.java190 ZenPolicy policy = builder.build(); in testZenPolicyMessagesInvalid() local
201 ZenPolicy policy = builder.build(); in testZenPolicyCallsInvalid() local
210 ZenPolicy policy = builder.build(); in testEmptyZenPolicy() local
220 ZenPolicy policy = builder.build(); in testAllowReminders() local
237 ZenPolicy policy = builder.build(); in testAllowEvents() local
254 ZenPolicy policy = builder.build(); in testAllowMessages() local
292 ZenPolicy policy = builder.build(); in testAllowCalls() local
330 ZenPolicy policy = builder.build(); in testAllowRepeatCallers() local
347 ZenPolicy policy = builder.build(); in testAllowAlarms() local
364 ZenPolicy policy = builder.build(); in testAllowMedia() local
[all …]
DZenModeFilteringTest.java126 Policy policy = new Policy(0, 0, 0, Policy.getAllSuppressedVisualEffects() in testSuppressDNDInfo_yes_VisEffectsAllowed() local
137 Policy policy = new Policy(0, 0, 0, Policy.getAllSuppressedVisualEffects()); in testSuppressDNDInfo_yes_WrongId() local
147 Policy policy = new Policy(0, 0, 0, Policy.getAllSuppressedVisualEffects()); in testSuppressDNDInfo_yes_WrongPackage() local
157 Policy policy = new Policy(0, 0, 0, Policy.getAllSuppressedVisualEffects()); in testSuppressDNDInfo_no() local
168 Policy policy = new Policy(0, 0, 0, Policy.getAllSuppressedVisualEffects()); in testSuppressAnything_yes_ZenModeOff() local
178 Policy policy = new Policy(0, 0, 0, Policy.getAllSuppressedVisualEffects()); in testSuppressAnything_bypass_ZenModeOn() local
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DNetworkPolicyEditor.java100 final NetworkPolicy policy = getPolicy(template); in hasLimitedPolicy() local
105 NetworkPolicy policy = getPolicy(template); in getOrCreatePolicy() local
123 NetworkPolicy policy = getPolicy(template); in getPolicyMaybeUnquoted() local
152 final NetworkPolicy policy = getPolicy(template); in getPolicyCycleDay() local
162 final NetworkPolicy policy = getOrCreatePolicy(template); in setPolicyCycleDay() local
170 final NetworkPolicy policy = getPolicy(template); in getPolicyWarningBytes() local
175 final NetworkPolicy policy = getOrCreatePolicy(template); in setPolicyWarningBytesInner() local
192 final NetworkPolicy policy = getPolicy(template); in getPolicyLimitBytes() local
204 final NetworkPolicy policy = getOrCreatePolicy(template); in setPolicyLimitBytes() local
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/utils/
DTarBackupReaderTest.java227 RestorePolicy policy = tarBackupReader.chooseRestorePolicy(mPackageManagerStub, in chooseRestorePolicy_signaturesIsNull_returnsIgnore() local
248 RestorePolicy policy = tarBackupReader.chooseRestorePolicy(mPackageManagerStub, in chooseRestorePolicy_packageDoesNotExistAndAllowApksAndHasApk_returnsAcceptIfApk() local
273 RestorePolicy policy = tarBackupReader.chooseRestorePolicy(mPackageManagerStub, in chooseRestorePolicy_packageDoesNotExistAndAllowApksAndDoesNotHaveApk_returnsAcceptIfApkLogsCannotRestore() local
299 RestorePolicy policy = tarBackupReader.chooseRestorePolicy(mPackageManagerStub, in chooseRestorePolicy_packageDoesNotExistAndDoesNotAllowApks_returnsIgnore() local
324 RestorePolicy policy = tarBackupReader.chooseRestorePolicy(mPackageManagerStub, in chooseRestorePolicy_doesNotAllowsBackup_returnsIgnore() local
351 RestorePolicy policy = tarBackupReader.chooseRestorePolicy(mPackageManagerStub, in chooseRestorePolicy_systemAppWithNoAgent_returnsIgnore() local
386 RestorePolicy policy = tarBackupReader.chooseRestorePolicy(mPackageManagerStub, in chooseRestorePolicy_nonSystemAppSignaturesDoNotMatch_returnsIgnore() local
425 RestorePolicy policy = tarBackupReader.chooseRestorePolicy(mPackageManagerStub, in chooseRestorePolicy_systemAppWithBackupAgentAndRestoreAnyVersion_returnsAccept() local
463 RestorePolicy policy = tarBackupReader.chooseRestorePolicy(mPackageManagerStub, in chooseRestorePolicy_restoreAnyVersion_returnsAccept() local
505 RestorePolicy policy = tarBackupReader.chooseRestorePolicy(mPackageManagerStub, in chooseRestorePolicy_notRestoreAnyVersionButVersionMatch_returnsAccept() local
[all …]
/frameworks/base/core/java/android/net/
DNetworkPolicyManager.java139 public void setUidPolicy(int uid, int policy) { in setUidPolicy()
155 public void addUidPolicy(int uid, int policy) { in addUidPolicy()
171 public void removeUidPolicy(int uid, int policy) { in removeUidPolicy()
189 public int[] getUidsWithPolicy(int policy) { in getUidsWithPolicy()
265 public static Iterator<Pair<ZonedDateTime, ZonedDateTime>> cycleIterator(NetworkPolicy policy) { in cycleIterator()
DINetworkPolicyManager.aidl35 void setUidPolicy(int uid, int policy); in setUidPolicy()
36 void addUidPolicy(int uid, int policy); in addUidPolicy()
37 void removeUidPolicy(int uid, int policy); in removeUidPolicy()
40 int[] getUidsWithPolicy(int policy); in getUidsWithPolicy()
/frameworks/base/core/tests/coretests/src/android/os/
DSetPersistentVrThreadTest.java93 int vr_thread = 0, policy = 0; in testSetPersistentVrThreadAPISuccess() local
129 int vr_thread = 0, policy = 0; in testSetPersistentVrThreadAPIFailure() local
142 int vr_thread = 0, policy = 0; in testSetVrThreadAPIFailsInPersistentMode() local
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DZenModeControllerImplTest.java93 NotificationManager.Policy policy = new NotificationManager.Policy(0, 0, 0, in testAreNotificationsHiddenInShade_zenOnShadeNotSuppressed() local
104 NotificationManager.Policy policy = new NotificationManager.Policy(0, 0, 0, in testAreNotificationsHiddenInShade_zenOnShadeSuppressed() local
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DAlwaysOnDisplayPolicyTest.java63 AlwaysOnDisplayPolicy policy = new AlwaysOnDisplayPolicy(mContext); in testPolicy_valueNull_containsDefaultValue() local
79 AlwaysOnDisplayPolicy policy = new AlwaysOnDisplayPolicy(mContext); in testPolicy_valueNotNull_containsValue() local
/frameworks/base/cmds/incidentd/src/
DPrivacy.cpp53 static bool isAllowed(const uint8_t policy, const uint8_t check) { in isAllowed()
97 uint8_t cleanup_privacy_policy(uint8_t policy) { in cleanup_privacy_policy()
DPrivacy.h52 uint8_t policy; member
/frameworks/base/core/java/com/android/internal/os/
DKernelCpuSpeedReader.java67 StrictMode.ThreadPolicy policy = StrictMode.allowThreadDiskReads(); in readDelta() local
101 StrictMode.ThreadPolicy policy = StrictMode.allowThreadDiskReads(); in readAbsolute() local
/frameworks/native/services/inputflinger/
DInputReaderFactory.cpp23 const sp<InputReaderPolicyInterface>& policy, in createInputReader()
/frameworks/layoutlib/bridge/src/android/util/imagepool/
DImagePoolProvider.java31 ImagePoolPolicy policy = new ImagePoolPolicy( in get() local
/frameworks/base/tools/aapt2/xml/
DXmlActionExecutor.cpp51 bool XmlNodeAction::Execute(XmlActionExecutorPolicy policy, std::vector<StringPiece>* bread_crumb, in Execute()
91 bool XmlActionExecutor::Execute(XmlActionExecutorPolicy policy, IDiagnostics* diag, in Execute()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayPolicyTests.java214 final DisplayPolicy policy = mDisplayContent.getDisplayPolicy(); in testShouldRotateSeamlessly() local
243 final DisplayPolicy policy = mDisplayContent.getDisplayPolicy(); in testShouldShowToastWhenScreenLocked() local
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DSystemUpdatePolicyTest.java443 private void setFreezePeriods(SystemUpdatePolicy policy, String... dates) throws Exception { in setFreezePeriods()
459 private void testSerialization(SystemUpdatePolicy policy, in testSerialization()
487 private void checkFreezePeriods(SystemUpdatePolicy policy, in checkFreezePeriods()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java1153 final NetworkPolicy policy = mNetworkPolicy.valueAt(i); local
1331 private void enqueueNotification(NetworkPolicy policy, int type, long totalBytes, in enqueueNotification()
1531 final NetworkPolicy policy = mNetworkPolicy.valueAt(i); in maybeUpdateMobilePolicyCycleAL() local
1704 final NetworkPolicy policy = mNetworkPolicy.valueAt(i); in updateNetworkEnabledNL() local
2058 final NetworkPolicy policy = buildDefaultMobilePolicy(subId, subscriberId); in ensureActiveMobilePolicyAL() local
2082 final NetworkPolicy policy = new NetworkPolicy(template, cycleRule, in buildDefaultMobilePolicy() local
2101 private boolean updateDefaultMobilePolicyAL(int subId, NetworkPolicy policy) { in updateDefaultMobilePolicyAL()
2297 final int policy = readIntAttribute(in, ATTR_POLICY); in readPolicyAL() local
2306 final int policy = readIntAttribute(in, ATTR_POLICY); in readPolicyAL() local
2336 final int policy = mUidPolicy.get(uid, POLICY_NONE); in readPolicyAL() local
[all …]
/frameworks/base/media/java/android/media/
DAudioManagerInternal.java54 int ringerModeInternal, VolumePolicy policy); in onSetRingerModeExternal()
58 int ringerModeExternal, VolumePolicy policy); in onSetRingerModeInternal()
/frameworks/base/cmds/idmap2/libidmap2/
DPolicies.cpp42 for (const std::string& policy : policies) { in PoliciesToBitmask() local
/frameworks/base/core/java/android/app/admin/
DSystemUpdatePolicy.java318 SystemUpdatePolicy policy = new SystemUpdatePolicy(); in createAutomaticInstallPolicy() local
348 SystemUpdatePolicy policy = new SystemUpdatePolicy(); in createWindowedInstallPolicy() local
365 SystemUpdatePolicy policy = new SystemUpdatePolicy(); in createPostponeInstallPolicy() local
746 SystemUpdatePolicy policy = new SystemUpdatePolicy(); in restoreFromXml() local
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DKeyboardInterceptor.java46 public KeyboardInterceptor(AccessibilityManagerService service, WindowManagerPolicy policy) { in KeyboardInterceptor()
57 public KeyboardInterceptor(AccessibilityManagerService service, WindowManagerPolicy policy, in KeyboardInterceptor()
/frameworks/base/tools/aapt2/test/
DContext.h72 void SetNameManglerPolicy(const NameManglerPolicy& policy) { in SetNameManglerPolicy()
115 ContextBuilder& SetNameManglerPolicy(const NameManglerPolicy& policy) { in SetNameManglerPolicy()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozePauser.java34 AlwaysOnDisplayPolicy policy) { in DozePauser()

123456