Home
last modified time | relevance | path

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

1234567891011

/frameworks/base/core/tests/coretests/src/android/app/admin/
DPasswordPolicyTest.java55 PasswordPolicy policy = testPolicy(PASSWORD_QUALITY_UNSPECIFIED); in testGetMinMetrics_unspecified() local
64 PasswordPolicy policy = testPolicy(PASSWORD_QUALITY_SOMETHING); in testGetMinMetrics_something() local
73 PasswordPolicy policy = testPolicy(PASSWORD_QUALITY_BIOMETRIC_WEAK); in testGetMinMetrics_biometricWeak() local
82 PasswordPolicy policy = testPolicy(PASSWORD_QUALITY_NUMERIC); in testGetMinMetrics_numeric() local
98 PasswordPolicy policy = testPolicy(PASSWORD_QUALITY_NUMERIC); in testGetMinMetrics_numericDefaultLength() local
106 PasswordPolicy policy = testPolicy(PASSWORD_QUALITY_NUMERIC_COMPLEX); in testGetMinMetrics_numericComplex() local
122 PasswordPolicy policy = testPolicy(PASSWORD_QUALITY_ALPHABETIC); in testGetMinMetrics_alphabetic() local
138 PasswordPolicy policy = testPolicy(PASSWORD_QUALITY_ALPHANUMERIC); in testGetMinMetrics_alphanumeric() local
154 PasswordPolicy policy = testPolicy(PASSWORD_QUALITY_COMPLEX); in testGetMinMetrics_complex() local
170 PasswordPolicy policy = new PasswordPolicy(); in testGetMinMetrics_complexDefault() local
DPackagePolicyTest.java77 PackagePolicy policy = new PackagePolicy(PACKAGE_POLICY_BLOCKLIST); in testEmptyBlocklistCreation() local
85 PackagePolicy policy = new PackagePolicy(PACKAGE_POLICY_ALLOWLIST); in testEmptyAllowlistCreation() local
93 PackagePolicy policy = new PackagePolicy(PACKAGE_POLICY_ALLOWLIST_AND_SYSTEM); in testEmptyAllowlistAndSystemCreation() local
103 PackagePolicy policy = new PackagePolicy(PACKAGE_POLICY_BLOCKLIST, packageNames); in testSuppliedBlocklistCreation() local
114 PackagePolicy policy = new PackagePolicy(PACKAGE_POLICY_ALLOWLIST, packageNames); in testSuppliedAllowlistCreation() local
125 PackagePolicy policy = new PackagePolicy(PACKAGE_POLICY_ALLOWLIST_AND_SYSTEM, packageNames); in testSuppliedAllowlistAndSystemCreation() local
139 PackagePolicy policy = new PackagePolicy(PACKAGE_POLICY_BLOCKLIST, packageNames); in testBlocklist_isPackageAllowed() local
155 PackagePolicy policy = new PackagePolicy(PACKAGE_POLICY_ALLOWLIST, packageNames); in testAllowlist_isPackageAllowed() local
171 PackagePolicy policy = new PackagePolicy(PACKAGE_POLICY_ALLOWLIST_AND_SYSTEM, packageNames); in testAllowlistAndSystem_isPackageAllowed() local
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DZenAdaptersTest.java48 Policy policy = new Policy(Policy.PRIORITY_CATEGORY_CALLS, Policy.PRIORITY_SENDERS_ANY, 0); in notificationPolicyToZenPolicy_allCallers() local
58 Policy policy = new Policy(Policy.PRIORITY_CATEGORY_CALLS, Policy.PRIORITY_SENDERS_STARRED, in notificationPolicyToZenPolicy_starredCallers() local
69 Policy policy = new Policy(Policy.PRIORITY_CATEGORY_REPEAT_CALLERS, 0, 0); in notificationPolicyToZenPolicy_repeatCallers() local
80 Policy policy = new Policy(0, 0, 0); in notificationPolicyToZenPolicy_noCallers() local
90 Policy policy = new Policy(Policy.PRIORITY_CATEGORY_CONVERSATIONS, 0, 0); in notificationPolicyToZenPolicy_conversationsAllowedSendersUnset() local
99 Policy policy = new Policy(0, 0, 0); in notificationPolicyToZenPolicy_conversationsNotAllowedSendersUnset() local
109 Policy policy = new Policy(0, 0, 0, in notificationPolicyToZenPolicy_setEffects() local
126 Policy policy = new Policy(0, 0, 0); in notificationPolicyToZenPolicy_unsetEffects() local
142 Policy policy = new Policy(0, 0, 0, 0, in notificationPolicyToZenPolicy_modesApi_priorityChannels() local
158 Policy policy = new Policy(0, 0, 0, 0, in notificationPolicyToZenPolicy_noModesApi_priorityChannelsUnset() local
DZenPolicyTest.java348 ZenPolicy policy = builder.build(); in testZenPolicyMessagesInvalid() local
360 ZenPolicy policy = builder.build(); in testZenPolicyCallsInvalid() local
370 ZenPolicy policy = builder.build(); in testEmptyZenPolicy() local
381 ZenPolicy policy = builder.build(); in testEmptyZenPolicy_emptyChannels() local
390 ZenPolicy policy = builder.build(); in testAllowReminders() local
409 ZenPolicy policy = builder.build(); in testAllowEvents() local
428 ZenPolicy policy = builder.build(); in testAllowMessages() local
471 ZenPolicy policy = builder.build(); in testAllowCalls() local
514 ZenPolicy policy = builder.build(); in testAllowRepeatCallers() local
533 ZenPolicy policy = builder.build(); in testAllowAlarms() local
[all …]
DZenModeFilteringTest.java195 Policy policy = new Policy(0, 0, 0, Policy.getAllSuppressedVisualEffects() in testSuppressDNDInfo_yes_VisEffectsAllowed() local
206 Policy policy = new Policy(0, 0, 0, Policy.getAllSuppressedVisualEffects(), 0); in testSuppressDNDInfo_yes_WrongId() local
216 Policy policy = new Policy(0, 0, 0, Policy.getAllSuppressedVisualEffects(), 0); in testSuppressDNDInfo_yes_WrongPackage() local
226 Policy policy = new Policy(0, 0, 0, Policy.getAllSuppressedVisualEffects(), 0); in testSuppressDNDInfo_no() local
237 Policy policy = new Policy(0, 0, 0, Policy.getAllSuppressedVisualEffects()); in testSuppressAnything_yes_ZenModeOff() local
247 Policy policy = new Policy(0, 0, 0, Policy.getAllSuppressedVisualEffects(), 0); in testSuppressAnything_bypass_ZenModeOn() local
267 Policy policy = new Policy( in testConversation_allAllowed() local
285 Policy policy = new Policy( in testConversation_importantAllowed_isImportant() local
302 Policy policy = new Policy( in testConversation_importantAllowed_isNotImportant() local
319 Policy policy = in testConversation_noneAllowed_notCallOrMsg() local
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DNetworkPolicyEditor.java98 final NetworkPolicy policy = getPolicy(template); in hasLimitedPolicy() local
103 NetworkPolicy policy = getPolicy(template); in getOrCreatePolicy() local
121 NetworkPolicy policy = getPolicy(template); in getPolicyMaybeUnquoted() local
150 final NetworkPolicy policy = getPolicy(template); in getPolicyCycleDay() local
160 final NetworkPolicy policy = getOrCreatePolicy(template); in setPolicyCycleDay() local
168 final NetworkPolicy policy = getPolicy(template); in getPolicyWarningBytes() local
173 final NetworkPolicy policy = getOrCreatePolicy(template); in setPolicyWarningBytesInner() local
190 final NetworkPolicy policy = getPolicy(template); in getPolicyLimitBytes() local
202 final NetworkPolicy policy = getOrCreatePolicy(template); in setPolicyLimitBytes() local
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DFactoryResetProtectionPolicyTest.java65 FactoryResetProtectionPolicy policy = new FactoryResetProtectionPolicy.Builder() in testNonDefaultFactoryResetProtectionPolicyObject() local
80 FactoryResetProtectionPolicy policy = new FactoryResetProtectionPolicy.Builder() in testInvalidXmlFactoryResetProtectionPolicyObject() local
89 private void testParcelAndUnparcel(FactoryResetProtectionPolicy policy) { in testParcelAndUnparcel()
99 private void testSerializationAndDeserialization(FactoryResetProtectionPolicy policy) in testSerializationAndDeserialization()
110 private void testInvalidXmlSerializationAndDeserialization(FactoryResetProtectionPolicy policy) in testInvalidXmlSerializationAndDeserialization()
122 private ByteArrayOutputStream serialize(FactoryResetProtectionPolicy policy) in serialize()
/frameworks/native/services/surfaceflinger/tests/
DBinder_test.cpp97 const int policy = SCHED_FIFO; in TEST_F() local
108 const int policy = SCHED_FIFO; in TEST_F() local
121 const int policy = SCHED_FIFO; in TEST_F() local
134 const int policy = SCHED_FIFO; in TEST_F() local
155 const int policy = SCHED_FIFO; in SetUp() local
178 const int policy = SCHED_FIFO; in TEST_F() local
189 const int policy = SCHED_FIFO; in TEST_F() local
202 const int policy = SCHED_FIFO; in TEST_F() local
215 const int policy = SCHED_FIFO; in TEST_F() local
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/utils/
DTarBackupReaderTest.java237 RestorePolicy policy = tarBackupReader.chooseRestorePolicy(mPackageManagerStub, in chooseRestorePolicy_signaturesIsNull_returnsIgnore() local
258 RestorePolicy policy = tarBackupReader.chooseRestorePolicy(mPackageManagerStub, in chooseRestorePolicy_packageDoesNotExistAndAllowApksAndHasApk_returnsAcceptIfApk() local
283 RestorePolicy policy = tarBackupReader.chooseRestorePolicy(mPackageManagerStub, in chooseRestorePolicy_packageDoesNotExistAndAllowApksAndDoesNotHaveApk_returnsAcceptIfApkLogsCannotRestore() local
309 RestorePolicy policy = tarBackupReader.chooseRestorePolicy(mPackageManagerStub, in chooseRestorePolicy_packageDoesNotExistAndDoesNotAllowApks_returnsIgnore() local
334 RestorePolicy policy = tarBackupReader.chooseRestorePolicy(mPackageManagerStub, in chooseRestorePolicy_doesNotAllowsBackup_returnsIgnore() local
361 RestorePolicy policy = tarBackupReader.chooseRestorePolicy(mPackageManagerStub, in chooseRestorePolicy_systemAppWithNoAgent_returnsIgnore() local
396 RestorePolicy policy = tarBackupReader.chooseRestorePolicy(mPackageManagerStub, in chooseRestorePolicy_nonSystemAppSignaturesDoNotMatch_returnsIgnore() local
435 RestorePolicy policy = tarBackupReader.chooseRestorePolicy(mPackageManagerStub, in chooseRestorePolicy_systemAppWithBackupAgentAndRestoreAnyVersion_returnsAccept() local
473 RestorePolicy policy = tarBackupReader.chooseRestorePolicy(mPackageManagerStub, in chooseRestorePolicy_restoreAnyVersion_returnsAccept() local
515 RestorePolicy policy = tarBackupReader.chooseRestorePolicy(mPackageManagerStub, in chooseRestorePolicy_notRestoreAnyVersionButVersionMatch_returnsAccept() local
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayAreaPolicyBuilderTest.java141 DisplayAreaPolicyBuilder.Result policy = new DisplayAreaPolicyBuilder() in testBuilder() local
271 DisplayAreaPolicyBuilder.Result policy = new DisplayAreaPolicyBuilder() in testBuilder_createCustomizedDisplayAreaForFeature() local
501 final DisplayAreaPolicyBuilder.Result policy = new DisplayAreaPolicyBuilder() in testBuilder_displayAreaGroup_attachDisplayAreas() local
535 final DisplayAreaPolicyBuilder.Result policy = new DisplayAreaPolicyBuilder() in testBuilder_displayAreaGroup_createFeatureOnGroup() local
563 final DisplayAreaPolicyBuilder.Result policy = new DisplayAreaPolicyBuilder() in testBuilder_addWindow_selectContainerForWindowFunc_defaultFunc() local
613 final DisplayAreaPolicyBuilder.Result policy = new DisplayAreaPolicyBuilder() in testBuilder_addWindow_selectContainerForWindowFunc_selectBasedOnType() local
659 final DisplayAreaPolicyBuilder.Result policy = new DisplayAreaPolicyBuilder() in testBuilder_addWindow_selectContainerForWindowFunc_selectBasedOnOptions() local
732 final DisplayAreaPolicyBuilder.Result policy = new DisplayAreaPolicyBuilder() in testGetTaskDisplayArea_DefaultFunction_NullOptions_ReturnsDefaultTda() local
756 final DisplayAreaPolicyBuilder.Result policy = new DisplayAreaPolicyBuilder() in testGetTaskDisplayArea_DefaultFunction_NotContainsLunchedTda_ReturnsDefaultTda() local
780 final DisplayAreaPolicyBuilder.Result policy = new DisplayAreaPolicyBuilder() in testGetTaskDisplayArea_DefaultFunction_InvalidTdaToken_ReturnsDefaultTda() local
[all …]
DDisplayAreaPolicyTests.java66 final DisplayAreaPolicy policy = result.first; in testGetDefaultTaskDisplayArea() local
75 final DisplayAreaPolicy policy = result.first; in testTaskDisplayArea_taskPositionChanged_updatesTaskDisplayAreaPosition() local
128 final DisplayAreaPolicy policy = new DisplayAreaPolicyBuilder() in testDisplayAreaGroup_taskPositionChanged_updatesDisplayAreaGroupPosition() local
187 final DisplayAreaPolicy policy = new DisplayAreaPolicyBuilder() in testTaskDisplayAreasCanHostHomeTask() local
202 private void assertTaskDisplayAreaPresentAndCanHaveHome(DisplayAreaPolicy policy, in assertTaskDisplayAreaPresentAndCanHaveHome()
216 private void assertTaskDisplayAreasOrder(DisplayAreaPolicy policy, in assertTaskDisplayAreasOrder()
/frameworks/base/tools/aapt2/xml/
DXmlActionExecutor.cpp25 const XmlActionExecutorPolicy& policy, android::SourcePathDiagnostics*) { in wrapper_one()
30 const XmlActionExecutorPolicy& policy, in wrapper_two()
36 const XmlActionExecutorPolicy& policy, in wrapper_three()
64 bool XmlNodeAction::Execute(XmlActionExecutorPolicy policy, std::vector<StringPiece>* bread_crumb, in Execute()
104 bool XmlActionExecutor::Execute(XmlActionExecutorPolicy policy, android::IDiagnostics* diag, in Execute()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/
DScreenshotPolicyImplTest.kt69 val policy = in <lambda>() constant
82 val policy = in <lambda>() constant
95 val policy = fakeTasksPolicyImpl(mContext, shadeExpanded = false, tasks = listOf()) in <lambda>() constant
103 val policy = in <lambda>() constant
/frameworks/base/tools/hoststubgen/hoststubgen/src/com/android/hoststubgen/filters/
DSubclassFilter.kt54 mPolicies[cn.superName]?.let { policy -> in <lambda>() method
58 mPolicies[iface]?.let { policy -> in <lambda>() method
65 findPolicyForClass(superName)?.let { policy -> in <lambda>() method
70 findPolicyForClass(iface)?.let { policy -> in <lambda>() method
DTextFileFilterPolicyParser.kt129 val policy = parsePolicy(fields[2]) in createFilterFromTextPolicyFile() constant
188 val policy = parsePolicy(fields[2]) in createFilterFromTextPolicyFile() constant
204 val policy = parsePolicy(fields[3]) in createFilterFromTextPolicyFile() constant
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/strategy/
DAutomaticBrightnessStrategy2Test.java104 int policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_BRIGHT; in testAutoBrightnessState_AutoBrightnessDisabled() local
128 int policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_OFF; in testAutoBrightnessState_DisplayIsOff() local
152 int policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_DOZE; in testAutoBrightnessState_DisplayIsInDoze_ConfigDoesNotAllow() local
176 int policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_BRIGHT; in testAutoBrightnessState_BrightnessReasonIsOverride() local
200 int policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_DOZE; in testAutoBrightnessState_DisplayIsInDoze_ConfigDoesAllow() local
228 int policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_BRIGHT; in testAutoBrightnessState_DisplayIsOn() local
253 int policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_BRIGHT; in accommodateUserBrightnessChangesWorksAsExpected() local
DAutomaticBrightnessStrategyTest.java114 int policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_BRIGHT; in testAutoBrightnessState_AutoBrightnessDisabled() local
138 int policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_OFF; in testAutoBrightnessState_DisplayIsOff() local
162 int policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_DOZE; in testAutoBrightnessState_DisplayIsInDoze_ConfigDoesNotAllow() local
186 int policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_BRIGHT; in testAutoBrightnessState_BrightnessReasonIsOverride() local
210 int policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_DOZE; in testAutoBrightnessState_DisplayIsInDoze_ConfigDoesAllow() local
238 int policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_BRIGHT; in testAutoBrightnessState_DisplayIsOn() local
266 int policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_BRIGHT; in testAutoBrightnessState_modeSwitch() local
306 int policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_BRIGHT; in accommodateUserBrightnessChangesWorksAsExpected() local
/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/data/repository/
DZenModeRepositoryImplTest.kt77 val policy by collectLastValue(underTest.consolidatedNotificationPolicy) in policy_reflectsCurrentControllerState() constant
84 val policy by collectLastValue(underTest.consolidatedNotificationPolicy) in <lambda>() constant
/frameworks/base/services/permission/java/com/android/server/permission/access/permission/
DPermissionManagerLocalImpl.kt28 private val policy = constant
/frameworks/base/cmds/idmap2/libidmap2/
DPolicyUtils.cpp33 for (const std::string& policy : policies) { in PoliciesToBitmaskResult() local
54 for (const auto& policy : kPolicyStringToFlag) { in BitmaskToPolicies() 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/core/java/android/net/
DINetworkPolicyManager.aidl35 void setUidPolicy(int uid, int policy); in setUidPolicy()
37 void addUidPolicy(int uid, int policy); in addUidPolicy()
39 void removeUidPolicy(int uid, int policy); in removeUidPolicy()
44 int[] getUidsWithPolicy(int policy); in getUidsWithPolicy()
/frameworks/base/core/java/com/android/internal/os/
DCpuScalingPolicies.java68 public int[] getRelatedCpus(int policy) { in getRelatedCpus()
76 public int[] getFrequencies(int policy) { in getFrequencies()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/policy/
DCapturePolicy.kt34 val policy: String, in interface() constant in com.android.systemui.screenshot.policy.CapturePolicy.PolicyResult.Matched
44 val policy: String, in interface() constant in com.android.systemui.screenshot.policy.CapturePolicy.PolicyResult.NotMatched

1234567891011