Home
last modified time | relevance | path

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

12345678

/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
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DZenPolicyTest.java194 ZenPolicy policy = builder.build(); in testZenPolicyMessagesInvalid() local
206 ZenPolicy policy = builder.build(); in testZenPolicyCallsInvalid() local
216 ZenPolicy policy = builder.build(); in testEmptyZenPolicy() local
227 ZenPolicy policy = builder.build(); in testAllowReminders() local
246 ZenPolicy policy = builder.build(); in testAllowEvents() local
265 ZenPolicy policy = builder.build(); in testAllowMessages() local
308 ZenPolicy policy = builder.build(); in testAllowCalls() local
351 ZenPolicy policy = builder.build(); in testAllowRepeatCallers() local
370 ZenPolicy policy = builder.build(); in testAllowAlarms() local
389 ZenPolicy policy = builder.build(); in testAllowMedia() local
[all …]
DZenModeFilteringTest.java145 Policy policy = new Policy(0, 0, 0, Policy.getAllSuppressedVisualEffects() in testSuppressDNDInfo_yes_VisEffectsAllowed() local
156 Policy policy = new Policy(0, 0, 0, Policy.getAllSuppressedVisualEffects(), 0); in testSuppressDNDInfo_yes_WrongId() local
166 Policy policy = new Policy(0, 0, 0, Policy.getAllSuppressedVisualEffects(), 0); in testSuppressDNDInfo_yes_WrongPackage() local
176 Policy policy = new Policy(0, 0, 0, Policy.getAllSuppressedVisualEffects(), 0); in testSuppressDNDInfo_no() local
187 Policy policy = new Policy(0, 0, 0, Policy.getAllSuppressedVisualEffects()); in testSuppressAnything_yes_ZenModeOff() local
197 Policy policy = new Policy(0, 0, 0, Policy.getAllSuppressedVisualEffects(), 0); in testSuppressAnything_bypass_ZenModeOn() local
217 Policy policy = new Policy( in testConversation_allAllowed() local
235 Policy policy = new Policy( in testConversation_importantAllowed_isImportant() local
252 Policy policy = new Policy( in testConversation_importantAllowed_isNotImportant() local
269 Policy policy = in testConversation_noneAllowed_notCallOrMsg() local
[all …]
/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/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/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayAreaPolicyTests.java69 final DisplayAreaPolicy policy = result.first; in testGetDefaultTaskDisplayArea() local
78 final DisplayAreaPolicy policy = result.first; in testTaskDisplayArea_taskPositionChanged_updatesTaskDisplayAreaPosition() local
141 final DisplayAreaPolicy policy = new DisplayAreaPolicyBuilder() in testDisplayAreaGroup_taskPositionChanged_updatesDisplayAreaGroupPosition() local
200 final DisplayAreaPolicy policy = new DisplayAreaPolicyBuilder() in testTaskDisplayAreasCanHostHomeTask() local
215 private void assertTaskDisplayAreaPresentAndCanHaveHome(DisplayAreaPolicy policy, in assertTaskDisplayAreaPresentAndCanHaveHome()
225 private void assertTaskDisplayAreasOrder(DisplayAreaPolicy policy, in assertTaskDisplayAreasOrder()
DDisplayAreaPolicyBuilderTest.java136 DisplayAreaPolicyBuilder.Result policy = new DisplayAreaPolicyBuilder() in testBuilder() local
285 DisplayAreaPolicyBuilder.Result policy = new DisplayAreaPolicyBuilder() in testBuilder_createCustomizedDisplayAreaForFeature() local
515 final DisplayAreaPolicyBuilder.Result policy = new DisplayAreaPolicyBuilder() in testBuilder_displayAreaGroup_attachDisplayAreas() local
549 final DisplayAreaPolicyBuilder.Result policy = new DisplayAreaPolicyBuilder() in testBuilder_displayAreaGroup_createFeatureOnGroup() local
577 final DisplayAreaPolicyBuilder.Result policy = new DisplayAreaPolicyBuilder() in testBuilder_addWindow_selectContainerForWindowFunc_defaultFunc() local
627 final DisplayAreaPolicyBuilder.Result policy = new DisplayAreaPolicyBuilder() in testBuilder_addWindow_selectContainerForWindowFunc_selectBasedOnType() local
673 final DisplayAreaPolicyBuilder.Result policy = new DisplayAreaPolicyBuilder() in testBuilder_addWindow_selectContainerForWindowFunc_selectBasedOnOptions() local
755 DisplayAreaPolicyBuilder.Result policy, in calculateZSets()
DInsetsPolicyTest.java276 final InsetsPolicy policy = spy(mDisplayContent.getInsetsPolicy()); in testShowTransientBars_bothCanBeTransient_appGetsBothFakeControls() local
316 final InsetsPolicy policy = spy(mDisplayContent.getInsetsPolicy()); in testShowTransientBars_statusBarCanBeTransient_appGetsStatusBarFakeControl() local
348 final InsetsPolicy policy = spy(mDisplayContent.getInsetsPolicy()); in testAbortTransientBars_bothCanBeAborted_appGetsBothRealControls() local
396 final InsetsPolicy policy = spy(mDisplayContent.getInsetsPolicy()); in testShowTransientBars_abortsWhenControlTargetChanges() local
/frameworks/base/tools/aapt2/xml/
DXmlActionExecutor.cpp25 const XmlActionExecutorPolicy& policy, SourcePathDiagnostics*) { in wrapper_one()
30 const XmlActionExecutorPolicy& policy, SourcePathDiagnostics* diag) { in wrapper_two()
35 const XmlActionExecutorPolicy& policy, SourcePathDiagnostics* diag) { in wrapper_three()
62 bool XmlNodeAction::Execute(XmlActionExecutorPolicy policy, std::vector<StringPiece>* bread_crumb, in Execute()
102 bool XmlActionExecutor::Execute(XmlActionExecutorPolicy policy, IDiagnostics* diag, in Execute()
/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/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.java97 NotificationManager.Policy policy = new NotificationManager.Policy(0, 0, 0, in testAreNotificationsHiddenInShade_zenOnShadeNotSuppressed() local
108 NotificationManager.Policy policy = new NotificationManager.Policy(0, 0, 0, in testAreNotificationsHiddenInShade_zenOnShadeSuppressed() local
/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.aidl34 void setUidPolicy(int uid, int policy); in setUidPolicy()
35 void addUidPolicy(int uid, int policy); in addUidPolicy()
36 void removeUidPolicy(int uid, int policy); in removeUidPolicy()
39 int[] getUidsWithPolicy(int policy); in getUidsWithPolicy()
DNetworkPolicyManager.java304 public void setUidPolicy(int uid, int policy) { in setUidPolicy()
321 public void addUidPolicy(int uid, int policy) { in addUidPolicy()
338 public void removeUidPolicy(int uid, int policy) { in removeUidPolicy()
358 public int[] getUidsWithPolicy(int policy) { in getUidsWithPolicy()
601 public static Iterator<Pair<ZonedDateTime, ZonedDateTime>> cycleIterator(NetworkPolicy policy) { in cycleIterator()
/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()
/frameworks/native/services/inputflinger/dispatcher/
DInputDispatcherFactory.cpp23 const sp<InputDispatcherPolicyInterface>& policy) { in createInputDispatcher()
/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/hardware/interfaces/automotive/powerpolicy/aidl/aidl_api/android.frameworks.automotive.powerpolicy/1/android/frameworks/automotive/powerpolicy/
DICarPowerPolicyChangeCallback.aidl37 oneway void onPolicyChanged(in android.frameworks.automotive.powerpolicy.CarPowerPolicy policy); in onPolicyChanged()
/frameworks/hardware/interfaces/automotive/powerpolicy/aidl/android/frameworks/automotive/powerpolicy/
DICarPowerPolicyChangeCallback.aidl32 void onPolicyChanged(in CarPowerPolicy policy); in onPolicyChanged()
/frameworks/hardware/interfaces/automotive/powerpolicy/aidl/aidl_api/android.frameworks.automotive.powerpolicy/current/android/frameworks/automotive/powerpolicy/
DICarPowerPolicyChangeCallback.aidl36 oneway void onPolicyChanged(in android.frameworks.automotive.powerpolicy.CarPowerPolicy policy); in onPolicyChanged()
/frameworks/native/services/inputflinger/reader/
DInputReaderFactory.cpp23 sp<InputReaderInterface> createInputReader(const sp<InputReaderPolicyInterface>& policy, in createInputReader()
/frameworks/layoutlib/bridge/src/android/util/imagepool/
DImagePoolProvider.java31 ImagePoolPolicy policy = new ImagePoolPolicy( in get() local
/frameworks/native/libs/cputimeinstate/
Dcputimeinstate.h37 std::vector<std::vector<uint64_t>> policy; member

12345678