/packages/modules/Wifi/framework/tests/src/android/net/wifi/hotspot2/pps/ |
D | PolicyTest.java | 52 private static Policy createPolicy() { in createPolicy() 53 Policy policy = new Policy(); in createPolicy() 65 List<Policy.RoamingPartner> preferredRoamingPartnerList = new ArrayList<>(); in createPolicy() 66 Policy.RoamingPartner partner1 = new Policy.RoamingPartner(); in createPolicy() 71 Policy.RoamingPartner partner2 = new Policy.RoamingPartner(); in createPolicy() 100 private static void verifyParcel(Policy policyToWrite) throws Exception { in verifyParcel() 105 Policy policyFromRead = Policy.CREATOR.createFromParcel(parcel); in verifyParcel() 116 verifyParcel(new Policy()); in verifyParcelWithEmptyPolicy() 136 Policy policy = createPolicy(); in verifyParcelWithoutProtoPortMap() 148 Policy policy = createPolicy(); in verifyParcelWithoutPreferredRoamingPartnerList() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/zen/ |
D | ZenModeSettingsTest.java | 24 import android.app.NotificationManager.Policy; 54 Policy policy = new Policy(0, 0, 0, 0); in testBlockedEffectsSummary_none() 61 Policy policy = new Policy(0, 0, 0, NotificationManager.Policy.SUPPRESSED_EFFECT_PEEK); in testBlockedEffectsSummary_some() 68 Policy policy = new Policy(0, 0, 0, 511); in testBlockedEffectsSummary_all() 76 Policy policy = new Policy(0, 0, 0, 0); in testGetCallsSettingSummary_none() 82 Policy policy = new Policy(Policy.PRIORITY_CATEGORY_ALARMS | Policy.PRIORITY_CATEGORY_CALLS, in testGetCallsSettingSummary_contacts() 83 Policy.PRIORITY_SENDERS_CONTACTS, 0, 0); in testGetCallsSettingSummary_contacts() 89 Policy policy = new Policy(Policy.PRIORITY_CATEGORY_REPEAT_CALLERS, 0, 0, 0); in testGetCallsSettingSummary_repeatCallers() 95 Policy policy = new Policy( in testGetCallsSettingSummary_starredRepeatCallers() 96 Policy.PRIORITY_CATEGORY_REPEAT_CALLERS | Policy.PRIORITY_CATEGORY_CALLS, in testGetCallsSettingSummary_starredRepeatCallers() [all …]
|
D | ZenOnboardingActivityTest.java | 19 import static android.app.NotificationManager.Policy.PRIORITY_CATEGORY_ALARMS; 20 import static android.app.NotificationManager.Policy.PRIORITY_CATEGORY_REPEAT_CALLERS; 21 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_SCREEN_ON; 38 import android.app.NotificationManager.Policy; 98 Policy policy = new Policy(PRIORITY_CATEGORY_ALARMS, 0, 0, SUPPRESSED_EFFECT_SCREEN_ON); in saveNewSetting() 106 ArgumentCaptor<Policy> captor = ArgumentCaptor.forClass(Policy.class); in saveNewSetting() 113 Policy actual = captor.getValue(); in saveNewSetting() 116 assertThat(actual.priorityCallSenders).isEqualTo(Policy.PRIORITY_SENDERS_STARRED); in saveNewSetting() 117 assertThat(actual.priorityMessageSenders).isEqualTo(Policy.PRIORITY_SENDERS_ANY); in saveNewSetting() 119 Policy.getAllSuppressedVisualEffects()); in saveNewSetting() [all …]
|
D | ZenModeBackendTest.java | 3 import static android.app.NotificationManager.Policy.CONVERSATION_SENDERS_ANYONE; 4 import static android.app.NotificationManager.Policy.CONVERSATION_SENDERS_IMPORTANT; 5 import static android.app.NotificationManager.Policy.CONVERSATION_SENDERS_NONE; 6 import static android.app.NotificationManager.Policy.PRIORITY_CATEGORY_ALARMS; 7 import static android.app.NotificationManager.Policy.PRIORITY_CATEGORY_CALLS; 8 import static android.app.NotificationManager.Policy.PRIORITY_CATEGORY_CONVERSATIONS; 9 import static android.app.NotificationManager.Policy.PRIORITY_CATEGORY_MESSAGES; 10 import static android.app.NotificationManager.Policy.PRIORITY_SENDERS_ANY; 11 import static android.app.NotificationManager.Policy.PRIORITY_SENDERS_CONTACTS; 12 import static android.app.NotificationManager.Policy.PRIORITY_SENDERS_STARRED; [all …]
|
D | ZenModeVisEffectsCustomPreferenceControllerTest.java | 19 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_AMBIENT; 20 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_BADGE; 21 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_FULL_SCREEN_INTENT; 22 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_LIGHTS; 23 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_NOTIFICATION_LIST; 24 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_PEEK; 25 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_SCREEN_OFF; 26 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_SCREEN_ON; 27 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_STATUS_BAR; 79 mock(NotificationManager.Policy.class)); in setup() [all …]
|
D | ZenFooterPreferenceControllerTest.java | 19 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_AMBIENT; 20 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_BADGE; 21 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_FULL_SCREEN_INTENT; 22 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_LIGHTS; 23 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_NOTIFICATION_LIST; 24 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_PEEK; 25 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_SCREEN_OFF; 26 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_SCREEN_ON; 27 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_STATUS_BAR; 79 mock(NotificationManager.Policy.class)); in setup() [all …]
|
D | ZenModeVisEffectsNonePreferenceControllerTest.java | 19 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_AMBIENT; 20 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_BADGE; 21 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_FULL_SCREEN_INTENT; 22 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_LIGHTS; 23 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_NOTIFICATION_LIST; 24 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_PEEK; 25 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_SCREEN_OFF; 26 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_SCREEN_ON; 27 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_STATUS_BAR; 82 mock(NotificationManager.Policy.class)); in setup() [all …]
|
D | ZenModeVisEffectsAllPreferenceControllerTest.java | 19 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_AMBIENT; 20 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_BADGE; 21 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_FULL_SCREEN_INTENT; 22 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_LIGHTS; 23 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_NOTIFICATION_LIST; 24 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_PEEK; 25 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_SCREEN_OFF; 26 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_SCREEN_ON; 27 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_STATUS_BAR; 82 mock(NotificationManager.Policy.class)); in setup() [all …]
|
D | ZenModeRepeatCallersPreferenceControllerTest.java | 64 private NotificationManager.Policy mPolicy; 114 NotificationManager.Policy.PRIORITY_CATEGORY_REPEAT_CALLERS)). in updateState_Priority() 126 when(mBackend.isPriorityCategoryEnabled(NotificationManager.Policy.PRIORITY_CATEGORY_CALLS)) in updateState_Priority_anyCallers() 129 NotificationManager.Policy.PRIORITY_SENDERS_ANY); in updateState_Priority_anyCallers() 131 NotificationManager.Policy.PRIORITY_CATEGORY_REPEAT_CALLERS)) in updateState_Priority_anyCallers() 146 .saveSoundPolicy(NotificationManager.Policy.PRIORITY_CATEGORY_REPEAT_CALLERS, in onPreferenceChanged_EnableRepeatCallers() 156 .saveSoundPolicy(NotificationManager.Policy.PRIORITY_CATEGORY_REPEAT_CALLERS, in onPreferenceChanged_DisableRepeatCallers()
|
/packages/apps/Settings/src/com/android/settings/notification/zen/ |
D | ZenModeSettings.java | 19 import static android.app.NotificationManager.Policy.PRIORITY_CATEGORY_ALARMS; 20 import static android.app.NotificationManager.Policy.PRIORITY_CATEGORY_CALLS; 21 import static android.app.NotificationManager.Policy.PRIORITY_CATEGORY_CONVERSATIONS; 22 import static android.app.NotificationManager.Policy.PRIORITY_CATEGORY_EVENTS; 23 import static android.app.NotificationManager.Policy.PRIORITY_CATEGORY_MEDIA; 24 import static android.app.NotificationManager.Policy.PRIORITY_CATEGORY_MESSAGES; 25 import static android.app.NotificationManager.Policy.PRIORITY_CATEGORY_REMINDERS; 26 import static android.app.NotificationManager.Policy.PRIORITY_CATEGORY_REPEAT_CALLERS; 27 import static android.app.NotificationManager.Policy.PRIORITY_CATEGORY_SYSTEM; 33 import android.app.NotificationManager.Policy; [all …]
|
D | ZenModeVisEffectsAllPreferenceController.java | 19 import android.app.NotificationManager.Policy; 35 protected static final int EFFECTS = Policy.SUPPRESSED_EFFECT_SCREEN_OFF 36 | Policy.SUPPRESSED_EFFECT_SCREEN_ON 37 | Policy.SUPPRESSED_EFFECT_FULL_SCREEN_INTENT 38 | Policy.SUPPRESSED_EFFECT_LIGHTS 39 | Policy.SUPPRESSED_EFFECT_PEEK 40 | Policy.SUPPRESSED_EFFECT_STATUS_BAR 41 | Policy.SUPPRESSED_EFFECT_BADGE 42 | Policy.SUPPRESSED_EFFECT_AMBIENT 43 | Policy.SUPPRESSED_EFFECT_NOTIFICATION_LIST; [all …]
|
D | ZenModeVisEffectsNonePreferenceController.java | 19 import android.app.NotificationManager.Policy; 35 protected static final int EFFECTS = Policy.SUPPRESSED_EFFECT_SCREEN_OFF 36 | Policy.SUPPRESSED_EFFECT_SCREEN_ON 37 | Policy.SUPPRESSED_EFFECT_FULL_SCREEN_INTENT 38 | Policy.SUPPRESSED_EFFECT_LIGHTS 39 | Policy.SUPPRESSED_EFFECT_PEEK 40 | Policy.SUPPRESSED_EFFECT_STATUS_BAR 41 | Policy.SUPPRESSED_EFFECT_BADGE 42 | Policy.SUPPRESSED_EFFECT_AMBIENT 43 | Policy.SUPPRESSED_EFFECT_NOTIFICATION_LIST;
|
D | ZenModeBackend.java | 19 import static android.app.NotificationManager.Policy.PRIORITY_CATEGORY_CONVERSATIONS; 20 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_SCREEN_OFF; 21 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_SCREEN_ON; 65 protected NotificationManager.Policy mPolicy; 152 if (isPriorityCategoryEnabled(NotificationManager.Policy.PRIORITY_CATEGORY_CALLS)) { in getPriorityCallSenders() 161 NotificationManager.Policy.PRIORITY_CATEGORY_MESSAGES)) { in getPriorityMessageSenders() 194 mPolicy = new NotificationManager.Policy(priorityCategories, priorityCallSenders, in savePolicy() 233 if (category == NotificationManager.Policy.PRIORITY_CATEGORY_CALLS) { in saveSenders() 238 if (category == NotificationManager.Policy.PRIORITY_CATEGORY_MESSAGES) { in saveSenders() 264 if (category == NotificationManager.Policy.PRIORITY_CATEGORY_CALLS) { in getPrioritySenders() [all …]
|
D | ZenModeBlockedEffectsSettings.java | 19 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_AMBIENT; 20 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_BADGE; 21 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_FULL_SCREEN_INTENT; 22 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_LIGHTS; 23 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_NOTIFICATION_LIST; 24 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_PEEK; 25 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_STATUS_BAR;
|
D | ZenOnboardingActivity.java | 22 import android.app.NotificationManager.Policy; 126 NotificationManager.Policy policy = mNm.getNotificationPolicy(); in save() 129 NotificationManager.Policy newPolicy = new NotificationManager.Policy( in save() 130 Policy.PRIORITY_CATEGORY_REPEAT_CALLERS | policy.priorityCategories, in save() 131 Policy.PRIORITY_SENDERS_STARRED, in save() 133 NotificationManager.Policy.getAllSuppressedVisualEffects()); in save() 167 if (NotificationManager.Policy.areAllVisualEffectsSuppressed( in wasZenUpdated()
|
D | ZenModeVisEffectsCustomPreferenceController.java | 37 NotificationManager.Policy.SUPPRESSED_EFFECT_AMBIENT 38 | NotificationManager.Policy.SUPPRESSED_EFFECT_PEEK 39 | NotificationManager.Policy.SUPPRESSED_EFFECT_LIGHTS 40 | NotificationManager.Policy.SUPPRESSED_EFFECT_FULL_SCREEN_INTENT; 75 NotificationManager.Policy.areAllVisualEffectsSuppressed( in areCustomOptionsSelected()
|
D | ZenModePeoplePreferenceController.java | 19 import static android.app.NotificationManager.Policy.CONVERSATION_SENDERS_ANYONE; 20 import static android.app.NotificationManager.Policy.CONVERSATION_SENDERS_NONE; 21 import static android.app.NotificationManager.Policy.PRIORITY_CATEGORY_REPEAT_CALLERS; 22 import static android.app.NotificationManager.Policy.PRIORITY_SENDERS_ANY; 67 NotificationManager.Policy.PRIORITY_CATEGORY_MESSAGES)); in updateState()
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/hotspot2/ |
D | PasspointTestUtils.java | 22 import android.net.wifi.hotspot2.pps.Policy; 75 private static Policy createPolicy() { in createPolicy() 76 Policy policy = new Policy(); in createPolicy() 88 List<Policy.RoamingPartner> preferredRoamingPartnerList = new ArrayList<>(); in createPolicy() 89 Policy.RoamingPartner partner1 = new Policy.RoamingPartner(); in createPolicy() 94 Policy.RoamingPartner partner2 = new Policy.RoamingPartner(); in createPolicy()
|
/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/analysis/ |
D | DefaultPolicySet.kt | 21 import com.android.libraries.pcc.chronicle.api.policy.Policy in <lambda>() 27 data class DefaultPolicySet(private val policies: Set<Policy>) : PolicySet { in <lambda>() 36 override fun findByName(policyName: String): Policy? = policies.find { it.name == policyName } in <lambda>() 38 override fun contains(policy: Policy): Boolean = policy in policies in <lambda>() 44 override fun toSet(): Set<Policy> { in <lambda>()
|
D | PolicySet.kt | 21 import com.android.libraries.pcc.chronicle.api.policy.Policy 29 fun findByName(policyName: String): Policy? 32 operator fun contains(policy: Policy): Boolean 41 fun toSet(): Set<Policy>
|
/packages/modules/Wifi/framework/java/android/net/wifi/hotspot2/pps/ |
D | Policy.java | 49 public final class Policy implements Parcelable { class 333 public Policy() {} in Policy() method in Policy 340 public Policy(Policy source) { in Policy() method in Policy 388 if (!(thatObject instanceof Policy)) { in equals() 391 Policy that = (Policy) thatObject; in equals() 499 public static final @android.annotation.NonNull Creator<Policy> CREATOR = 500 new Creator<Policy>() { 502 public Policy createFromParcel(Parcel in) { 503 Policy policy = new Policy(); 517 public Policy[] newArray(int size) { [all …]
|
/packages/apps/Dialer/java/com/android/voicemail/impl/scheduling/ |
D | BaseTask.java | 57 @NonNull private final List<Policy> policies = new ArrayList<>(); 101 public BaseTask addPolicy(Policy policy) { in addPolicy() 165 for (Policy policy : policies) { in onCreate() 186 for (Policy policy : policies) { in onBeforeExecute() 196 for (Policy policy : policies) { in onCompleted() 201 for (Policy policy : policies) { in onCompleted() 208 for (Policy policy : policies) { in onDuplicatedTaskAdded()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/modes/ |
D | ZenModesBackendTest.java | 38 import android.app.NotificationManager.Policy; 150 Policy dndPolicy = new Policy(Policy.PRIORITY_CATEGORY_ALARMS, in getModes_containsManualDndAndZenRules() 151 Policy.PRIORITY_SENDERS_CONTACTS, Policy.PRIORITY_SENDERS_CONTACTS); in getModes_containsManualDndAndZenRules() 179 Policy dndPolicy = new Policy(Policy.PRIORITY_CATEGORY_ALARMS, in getMode_manualDnd_returnsMode() 180 Policy.PRIORITY_SENDERS_CONTACTS, Policy.PRIORITY_SENDERS_CONTACTS); in getMode_manualDnd_returnsMode() 224 Policy dndPolicy = new Policy(0, 0, 0); in getMode_manualDnd_returnsCorrectActiveState()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/conditional/ |
D | DndConditionalCardControllerTest.java | 94 config.applyNotificationPolicy(new NotificationManager.Policy( in getCustomConfig() 95 NotificationManager.Policy.PRIORITY_CATEGORY_ALARMS in getCustomConfig() 96 | NotificationManager.Policy.PRIORITY_CATEGORY_REPEAT_CALLERS in getCustomConfig() 97 | NotificationManager.Policy.PRIORITY_CATEGORY_CALLS, in getCustomConfig() 98 NotificationManager.Policy.PRIORITY_SENDERS_ANY, 0)); in getCustomConfig() 104 config.applyNotificationPolicy(new NotificationManager.Policy(0, 0, 0)); in getMutedAllConfig()
|
/packages/modules/NeuralNetworks/driver/cache/nnCache/ |
D | nnCache.h | 35 typedef BlobCache::Policy Policy; typedef 37 static Policy defaultPolicy() { return BlobCache::defaultPolicy(); } in defaultPolicy() 53 Policy policy = defaultPolicy()); 123 Policy mPolicy;
|