Searched refs:Policy (Results 1 - 25 of 59) sorted by relevance

123

/frameworks/base/core/java/android/app/
H A DNotificationManager.aidl19 parcelable NotificationManager.Policy;
H A DNotificationManager.java229 * {@link Policy#priorityCallSenders}, {@link Policy#priorityCategories},
230 * {@link Policy#priorityMessageSenders} to define or query this criteria. Users can
941 public Policy getNotificationPolicy() {
959 public void setNotificationPolicy(@NonNull Policy policy) {
1022 public static class Policy implements android.os.Parcelable { class in class:NotificationManager
1193 * {@link Policy#PRIORITY_CATEGORY_ALARMS}, {@link Policy#PRIORITY_CATEGORY_SYSTEM}, and
1194 * {@link Policy#PRIORITY_CATEGORY_MEDIA} from bypassing dnd.
1200 public Policy(in method in class:NotificationManager.Policy
1234 public Policy(int priorityCategories, int priorityCallSenders, int priorityMessageSenders, method in class:NotificationManager.Policy
1244 public Policy(int priorityCategories, int priorityCallSenders, int priorityMessageSenders, method in class:NotificationManager.Policy
1254 public Policy(Parcel source) { method in class:NotificationManager.Policy
[all...]
/frameworks/base/wifi/java/android/net/wifi/hotspot2/pps/
H A DPolicy.aidl19 parcelable Policy;
H A DPolicy.java34 * Class representing Policy subtree in PerProviderSubscription (PPS)
37 * The Policy specifies additional criteria for Passpoint network selections, such as preferred
46 public final class Policy implements Parcelable { class in inherits:Parcelable
47 private static final String TAG = "Policy";
154 * Policy associated with a roaming provider. This specifies a priority associated
157 * Contains field under PerProviderSubscription/Policy/PreferredRoamingPartnerList.
320 * Constructor for creating Policy with default values.
322 public Policy() {} method in class:Policy
329 public Policy(Policy sourc method in class:Policy
[all...]
/frameworks/base/wifi/tests/src/android/net/wifi/hotspot2/pps/
H A DPolicyTest.java37 * Unit tests for {@link android.net.wifi.hotspot2.pps.Policy}.
46 * Helper function for creating a {@link Policy} for testing.
48 * @return {@link Policy}
50 private static Policy createPolicy() {
51 Policy policy = new Policy();
63 List<Policy.RoamingPartner> preferredRoamingPartnerList = new ArrayList<>();
64 Policy.RoamingPartner partner1 = new Policy.RoamingPartner();
69 Policy
[all...]
/frameworks/ml/nn/driver/cache/nnCache/
H A DnnCache.h36 typedef BlobCache::Policy Policy; typedef in class:android::NNCache
38 static Policy defaultPolicy() { return BlobCache::defaultPolicy(); }
54 Policy policy = defaultPolicy());
126 Policy mPolicy;
H A DnnCache_test.cpp40 class NNCacheTest : public ::testing::TestWithParam<NNCache::Policy> {
54 INSTANTIATE_TEST_CASE_P(Policy, NNCacheTest,
55 ::testing::Values(NNCache::Policy(NNCache::Select::RANDOM, NNCache::Capacity::HALVE),
56 NNCache::Policy(NNCache::Select::LRU, NNCache::Capacity::HALVE),
58 NNCache::Policy(NNCache::Select::RANDOM, NNCache::Capacity::FIT),
59 NNCache::Policy(NNCache::Select::LRU, NNCache::Capacity::FIT),
61 NNCache::Policy(NNCache::Select::RANDOM, NNCache::Capacity::FIT_HALVE),
62 NNCache::Policy(NNCache::Select::LRU, NNCache::Capacity::FIT_HALVE)));
108 // The purpose of this test here is to ensure that Policy
/frameworks/base/tools/preload/
H A DPolicy.java22 * Policy that governs which classes are preloaded.
24 public class Policy { class
29 private Policy() {} method in class:Policy
H A DWritePreloadedClassFile.java58 new FileOutputStream(Policy.PRELOADED_CLASS_FILE),
82 if (!Policy.isPreloadable(loadedClass)) {
99 if (proc.fromZygote() && !Policy.isService(proc.name)) {
139 = Policy.isPreloadable(operation.loadedClass);
152 return Policy.isPreloadable(clazz)
H A DAndroid.mk10 Policy.java \
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A DZenModeExtractorTest.java20 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_NOTIFICATION_LIST;
21 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_PEEK;
63 new NotificationManager.Policy(0,0,0));
78 new NotificationManager.Policy(0,0,0));
93 new NotificationManager.Policy(0,0,0, SUPPRESSED_EFFECT_PEEK
98 assertEquals(NotificationManager.Policy.SUPPRESSED_EFFECT_PEEK
99 | NotificationManager.Policy.SUPPRESSED_EFFECT_NOTIFICATION_LIST,
H A DZenModeFilteringTest.java19 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_STATUS_BAR;
125 config.suppressedVisualEffects = NotificationManager.Policy.getAllSuppressedVisualEffects()
137 config.suppressedVisualEffects = NotificationManager.Policy.getAllSuppressedVisualEffects();
148 config.suppressedVisualEffects = NotificationManager.Policy.getAllSuppressedVisualEffects();
159 config.suppressedVisualEffects = NotificationManager.Policy.getAllSuppressedVisualEffects();
/frameworks/base/core/proto/android/os/
H A Dps.proto102 enum Policy {
110 optional Policy pcy = 15;
H A Dcpuinfo.proto95 // TODO: use PsDumpProto.Process.Policy instead once we extern variables
97 enum Policy {
103 optional Policy pcy = 10; // Policy of the task
/frameworks/base/services/core/java/com/android/server/pm/
H A DSELinuxMMAC.java60 private static List<Policy> sPolicies = new ArrayList<>();
126 List<Policy> policies = new ArrayList<>();
187 for (Policy policy : sPolicies) {
188 Slog.d(TAG, "Policy: " + policy.toString());
197 * Loop over a signer tag looking for seinfo, package and cert tags. A {@link Policy}
202 * @return the constructed {@link Policy} instance
208 * the {@link Policy} instance.
210 private static Policy readSignerOrThrow(XmlPullParser parser) throws IOException,
214 Policy.PolicyBuilder pb = new Policy
401 final class Policy { class
408 private Policy(PolicyBuilder builder) { method in class:Policy
[all...]
/frameworks/base/services/core/java/com/android/server/notification/
H A DZenModeExtractor.java19 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_SCREEN_OFF;
20 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_SCREEN_ON;
/frameworks/base/wifi/tests/src/android/net/wifi/hotspot2/omadm/
H A DPpsMoParserTest.java26 import android.net.wifi.hotspot2.pps.Policy;
164 // Policy configuration.
165 Policy policy = new Policy();
166 List<Policy.RoamingPartner> preferredRoamingPartnerList = new ArrayList<>();
167 Policy.RoamingPartner partner1 = new Policy.RoamingPartner();
172 Policy.RoamingPartner partner2 = new Policy.RoamingPartner();
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
H A DPasspointXmlUtilsTest.java25 import android.net.wifi.hotspot2.pps.Policy;
137 // Policy configuration.
138 Policy policy = new Policy();
139 List<Policy.RoamingPartner> preferredRoamingPartnerList = new ArrayList<>();
140 Policy.RoamingPartner partner1 = new Policy.RoamingPartner();
145 Policy.RoamingPartner partner2 = new Policy.RoamingPartner();
H A DPasspointConfigStoreDataTest.java25 import android.net.wifi.hotspot2.pps.Policy;
161 // Policy configuration.
162 Policy policy = new Policy();
163 List<Policy.RoamingPartner> preferredRoamingPartnerList = new ArrayList<>();
164 Policy.RoamingPartner partner1 = new Policy.RoamingPartner();
169 Policy.RoamingPartner partner2 = new Policy.RoamingPartner();
/frameworks/base/wifi/tests/src/android/net/wifi/hotspot2/
H A DPasspointConfigurationTest.java25 import android.net.wifi.hotspot2.pps.Policy;
81 * Helper function for creating a {@link Policy} for testing.
83 * @return {@link Policy}
85 private static Policy createPolicy() {
86 Policy policy = new Policy();
98 List<Policy.RoamingPartner> preferredRoamingPartnerList = new ArrayList<>();
99 Policy.RoamingPartner partner1 = new Policy.RoamingPartner();
104 Policy
[all...]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
H A DZenModeControllerImplTest.java83 NotificationManager.Policy.SUPPRESSED_EFFECT_NOTIFICATION_LIST;
93 NotificationManager.Policy.SUPPRESSED_EFFECT_STATUS_BAR;
103 NotificationManager.Policy.SUPPRESSED_EFFECT_NOTIFICATION_LIST;
/frameworks/ml/nn/driver/cache/BlobCache/
H A DBlobCache.h63 typedef std::pair<Select, Capacity> Policy; typedef in class:android::BlobCache
65 static Policy defaultPolicy() { return Policy(Select::DEFAULT, Capacity::DEFAULT); }
72 Policy policy = defaultPolicy());
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/
H A DAndroid.mk4 # Audio Policy Engine configurable example for generic device build
22 ######### Policy PFW top level file #########
43 ########## Policy PFW Structures #########
49 LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/parameter-framework/Structure/Policy
62 LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/parameter-framework/Structure/Policy
70 LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/parameter-framework/Structure/Policy
74 ######### Policy PFW Settings #########
79 LOCAL_MODULE_RELATIVE_PATH := parameter-framework/Settings/Policy
110 ######### Policy PFW Settings - No Output #########
115 LOCAL_MODULE_RELATIVE_PATH := parameter-framework/Settings/Policy
[all...]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/notification/
H A DEnableZenModeDialogTest.java82 NotificationManager.Policy alarmsEnabledPolicy = new NotificationManager.Policy(
83 NotificationManager.Policy.PRIORITY_CATEGORY_ALARMS, 0, 0, 0);
170 new NotificationManager.Policy(
171 NotificationManager.Policy.PRIORITY_CATEGORY_ALARMS, 0, 0, 0));
186 new NotificationManager.Policy(0, 0, 0, 0));
/frameworks/base/core/java/android/service/notification/
H A DZenModeConfig.java19 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_FULL_SCREEN_INTENT;
20 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_LIGHTS;
21 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_PEEK;
26 import android.app.NotificationManager.Policy;
744 public Policy toNotificationPolicy() {
746 int priorityCallSenders = Policy.PRIORITY_SENDERS_CONTACTS;
747 int priorityMessageSenders = Policy.PRIORITY_SENDERS_CONTACTS;
749 priorityCategories |= Policy.PRIORITY_CATEGORY_CALLS;
752 priorityCategories |= Policy.PRIORITY_CATEGORY_MESSAGES;
755 priorityCategories |= Policy
[all...]

Completed in 417 milliseconds

123