/frameworks/base/wifi/tests/src/android/net/wifi/hotspot2/pps/ |
D | PolicyTest.java | 51 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/core/tests/coretests/src/android/app/admin/ |
D | PasswordPolicyTest.java | 54 PasswordPolicy policy = testPolicy(PASSWORD_QUALITY_UNSPECIFIED); in testGetMinMetrics_unspecified() local 63 PasswordPolicy policy = testPolicy(PASSWORD_QUALITY_SOMETHING); in testGetMinMetrics_something() local 72 PasswordPolicy policy = testPolicy(PASSWORD_QUALITY_BIOMETRIC_WEAK); in testGetMinMetrics_biometricWeak() local 81 PasswordPolicy policy = testPolicy(PASSWORD_QUALITY_NUMERIC); in testGetMinMetrics_numeric() local 97 PasswordPolicy policy = testPolicy(PASSWORD_QUALITY_NUMERIC); in testGetMinMetrics_numericDefaultLength() local 105 PasswordPolicy policy = testPolicy(PASSWORD_QUALITY_NUMERIC_COMPLEX); in testGetMinMetrics_numericComplex() local 121 PasswordPolicy policy = testPolicy(PASSWORD_QUALITY_ALPHABETIC); in testGetMinMetrics_alphabetic() local 137 PasswordPolicy policy = testPolicy(PASSWORD_QUALITY_ALPHANUMERIC); in testGetMinMetrics_alphanumeric() local 153 PasswordPolicy policy = testPolicy(PASSWORD_QUALITY_COMPLEX); in testGetMinMetrics_complex() local 169 PasswordPolicy policy = new PasswordPolicy(); in testGetMinMetrics_complexDefault() local
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ZenPolicyTest.java | 194 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 …]
|
D | ZenModeFilteringTest.java | 145 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/ |
D | NetworkPolicyEditor.java | 100 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/ |
D | FactoryResetProtectionPolicyTest.java | 63 FactoryResetProtectionPolicy policy = new FactoryResetProtectionPolicy.Builder() in testNonDefaultFactoryResetProtectionPolicyObject() local 78 FactoryResetProtectionPolicy policy = new FactoryResetProtectionPolicy.Builder() in testInvalidXmlFactoryResetProtectionPolicyObject() local 87 private void testParcelAndUnparcel(FactoryResetProtectionPolicy policy) { in testParcelAndUnparcel() 97 private void testSerializationAndDeserialization(FactoryResetProtectionPolicy policy) in testSerializationAndDeserialization() 108 private void testInvalidXmlSerializationAndDeserialization(FactoryResetProtectionPolicy policy) in testInvalidXmlSerializationAndDeserialization() 120 private ByteArrayOutputStream serialize(FactoryResetProtectionPolicy policy) in serialize()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/utils/ |
D | TarBackupReaderTest.java | 227 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/ |
D | SetPersistentVrThreadTest.java | 93 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/ |
D | ZenModeControllerImplTest.java | 97 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/ |
D | PolicyUtils.cpp | 31 for (const std::string& policy : policies) { in PoliciesToBitmaskResult() local 52 for (const auto& policy : kPolicyStringToFlag) { in BitmaskToPolicies() local
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
D | AlwaysOnDisplayPolicyTest.java | 63 AlwaysOnDisplayPolicy policy = new AlwaysOnDisplayPolicy(mContext); in testPolicy_valueNull_containsDefaultValue() local 79 AlwaysOnDisplayPolicy policy = new AlwaysOnDisplayPolicy(mContext); in testPolicy_valueNotNull_containsValue() local
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | InsetsPolicyTest.java | 234 final InsetsPolicy policy = spy(mDisplayContent.getInsetsPolicy()); in testShowTransientBars_bothCanBeTransient_appGetsBothFakeControls() local 268 final InsetsPolicy policy = spy(mDisplayContent.getInsetsPolicy()); in testShowTransientBars_statusBarCanBeTransient_appGetsStatusBarFakeControl() local 297 final InsetsPolicy policy = spy(mDisplayContent.getInsetsPolicy()); in testAbortTransientBars_bothCanBeAborted_appGetsBothRealControls() local 336 final InsetsPolicy policy = spy(mDisplayContent.getInsetsPolicy()); in testShowTransientBars_abortsWhenControlTargetChanges() local
|
D | DisplayPolicyTests.java | 230 final DisplayPolicy policy = mDisplayContent.getDisplayPolicy(); in testComputeTopFullscreenOpaqueWindow() local 239 final DisplayPolicy policy = mDisplayContent.getDisplayPolicy(); in testShouldShowToastWhenScreenLocked() local 251 final DisplayPolicy policy = mDisplayContent.getDisplayPolicy(); in testMainAppWindowDisallowFitSystemWindowTypes() local
|
/frameworks/base/core/java/android/net/ |
D | INetworkPolicyManager.aidl | 35 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()
|
D | NetworkPolicyManager.java | 213 public void setUidPolicy(int uid, int policy) { in setUidPolicy() 230 public void addUidPolicy(int uid, int policy) { in addUidPolicy() 247 public void removeUidPolicy(int uid, int policy) { in removeUidPolicy() 267 public int[] getUidsWithPolicy(int policy) { in getUidsWithPolicy() 435 public static Iterator<Pair<ZonedDateTime, ZonedDateTime>> cycleIterator(NetworkPolicy policy) { in cycleIterator()
|
/frameworks/base/cmds/incidentd/src/ |
D | Privacy.cpp | 53 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/base/core/java/com/android/internal/os/ |
D | KernelCpuSpeedReader.java | 67 StrictMode.ThreadPolicy policy = StrictMode.allowThreadDiskReads(); in readDelta() local 101 StrictMode.ThreadPolicy policy = StrictMode.allowThreadDiskReads(); in readAbsolute() local
|
/frameworks/native/services/inputflinger/dispatcher/ |
D | InputDispatcherFactory.cpp | 23 const sp<InputDispatcherPolicyInterface>& policy) { in createInputDispatcher()
|
/frameworks/native/services/inputflinger/reader/ |
D | InputReaderFactory.cpp | 23 sp<InputReaderInterface> createInputReader(const sp<InputReaderPolicyInterface>& policy, in createInputReader()
|
/frameworks/layoutlib/bridge/src/android/util/imagepool/ |
D | ImagePoolProvider.java | 31 ImagePoolPolicy policy = new ImagePoolPolicy( in get() local
|
/frameworks/native/libs/cputimeinstate/ |
D | cputimeinstate.h | 35 std::vector<std::vector<uint64_t>> policy; member
|
/frameworks/base/tools/aapt2/xml/ |
D | XmlActionExecutor.cpp | 51 bool XmlNodeAction::Execute(XmlActionExecutorPolicy policy, std::vector<StringPiece>* bread_crumb, in Execute() 91 bool XmlActionExecutor::Execute(XmlActionExecutorPolicy policy, IDiagnostics* diag, in Execute()
|
/frameworks/base/core/java/com/android/internal/content/om/ |
D | OverlayConfigParser.java | 92 public final String policy; field in OverlayConfigParser.ParsedConfiguration 99 @NonNull String policy, @NonNull ParsedOverlayInfo parsedInfo) { in ParsedConfiguration() 126 public final String policy; field in OverlayConfigParser.OverlayPartition
|
/frameworks/layoutlib/validator/src/com/android/tools/idea/validator/ |
D | LayoutValidator.java | 61 public static void updatePolicy(@NotNull ValidatorData.Policy policy) { in updatePolicy()
|
/frameworks/av/media/libmedia/ |
D | MediaResourcePolicy.cpp | 42 String8 toString(const MediaResourcePolicyParcel &policy) { in toString()
|