Home
last modified time | relevance | path

Searched refs:policyType (Results 1 – 25 of 30) sorted by relevance

12

/frameworks/av/services/audioflinger/afutils/
DPropertyUtils.cpp30 std::string getMmapPolicyProperty(AudioMMapPolicyType policyType) { in getMmapPolicyProperty() argument
31 switch (policyType) { in getMmapPolicyProperty()
41 int getDefaultPolicyFromType(AudioMMapPolicyType policyType) { in getDefaultPolicyFromType() argument
42 switch (policyType) { in getDefaultPolicyFromType()
68 AudioMMapPolicyType policyType, std::vector<AudioMMapPolicyInfo> *policyInfos) { in getMmapPolicyInfosFromSystemProperty() argument
70 const std::string propertyStr = getMmapPolicyProperty(policyType); in getMmapPolicyInfosFromSystemProperty()
75 property_get_int32(propertyStr.c_str(), getDefaultPolicyFromType(policyType))); in getMmapPolicyInfosFromSystemProperty()
DPropertyUtils.h25 media::audio::common::AudioMMapPolicyType policyType,
/frameworks/base/core/java/android/app/admin/
DPackagePolicy.java98 public PackagePolicy(@PackagePolicyType int policyType) { in PackagePolicy() argument
99 this(policyType, Collections.emptySet()); in PackagePolicy()
107 public PackagePolicy(@PackagePolicyType int policyType, @NonNull Set<String> packageNames) { in PackagePolicy() argument
108 if (policyType != PACKAGE_POLICY_BLOCKLIST in PackagePolicy()
109 && policyType != PACKAGE_POLICY_ALLOWLIST_AND_SYSTEM in PackagePolicy()
110 && policyType != PACKAGE_POLICY_ALLOWLIST) { in PackagePolicy()
113 mPolicyType = policyType; in PackagePolicy()
DWifiSsidPolicy.java84 public WifiSsidPolicy(@WifiSsidPolicyType int policyType, @NonNull Set<WifiSsid> ssids) { in WifiSsidPolicy() argument
88 if (policyType != WIFI_SSID_POLICY_TYPE_ALLOWLIST in WifiSsidPolicy()
89 && policyType != WIFI_SSID_POLICY_TYPE_DENYLIST) { in WifiSsidPolicy()
92 mPolicyType = policyType; in WifiSsidPolicy()
DManagedSubscriptionsPolicy.java69 public ManagedSubscriptionsPolicy(@ManagedSubscriptionsPolicyType int policyType) { in ManagedSubscriptionsPolicy() argument
70 if (policyType != TYPE_ALL_PERSONAL_SUBSCRIPTIONS in ManagedSubscriptionsPolicy()
71 && policyType != TYPE_ALL_MANAGED_SUBSCRIPTIONS) { in ManagedSubscriptionsPolicy()
74 mPolicyType = policyType; in ManagedSubscriptionsPolicy()
/frameworks/base/core/java/android/companion/virtualnative/
DIVirtualDeviceManagerNative.aidl66 int getDevicePolicy(int deviceId, int policyType); in getDevicePolicy() argument
/frameworks/base/core/tests/coretests/src/android/app/admin/
DPackagePolicyTest.java55 final int policyType = PACKAGE_POLICY_BLOCKLIST; in testParceling() local
60 PackagePolicy packagePolicy = new PackagePolicy(policyType, packageNames); in testParceling()
69 assertEquals(policyType, packagePolicy.getPolicyType()); in testParceling()
/frameworks/av/services/audioflinger/datapath/
DAudioHwDevice.cpp176 AudioMMapPolicyType policyType, std::vector<AudioMMapPolicyInfo> *policyInfos) const { in getMmapPolicyInfos() argument
177 return mHwDevice->getMmapPolicyInfos(policyType, policyInfos); in getMmapPolicyInfos()
DAudioHwDevice.h108 media::audio::common::AudioMMapPolicyType policyType,
/frameworks/base/core/java/android/companion/virtual/
DIVirtualDevice.aidl79 int getDevicePolicy(int policyType); in getDevicePolicy() argument
96 void setDevicePolicy(int policyType, int devicePolicy); in setDevicePolicy() argument
DIVirtualDeviceManager.aidl96 int getDevicePolicy(int deviceId, int policyType); in getDevicePolicy() argument
DVirtualDeviceManager.java341 int deviceId, @VirtualDeviceParams.PolicyType int policyType) { in getDevicePolicy() argument
351 return mService.getDevicePolicy(deviceId, policyType); in getDevicePolicy()
740 public void setDevicePolicy(@VirtualDeviceParams.DynamicPolicyType int policyType, in setDevicePolicy() argument
742 mVirtualDeviceInternal.setDevicePolicy(policyType, devicePolicy); in setDevicePolicy()
DVirtualDeviceParams.java498 public @DevicePolicy int getDevicePolicy(@PolicyType int policyType) { in getDevicePolicy() argument
499 return mDevicePolicies.get(policyType, DEVICE_POLICY_DEFAULT); in getDevicePolicy()
996 public Builder setDevicePolicy(@PolicyType int policyType, @DevicePolicy int devicePolicy) { in setDevicePolicy() argument
997 mDevicePolicies.put(policyType, devicePolicy); in setDevicePolicy()
DVirtualDeviceInternal.java251 void setDevicePolicy(@VirtualDeviceParams.DynamicPolicyType int policyType, in setDevicePolicy() argument
254 mVirtualDevice.setDevicePolicy(policyType, devicePolicy); in setDevicePolicy()
/frameworks/base/services/companion/java/com/android/server/companion/virtual/
DVirtualDeviceImpl.java423 @VirtualDeviceParams.PolicyType int policyType) {
426 return mDevicePolicies.get(policyType, DEVICE_POLICY_DEFAULT);
429 return mParams.getDevicePolicy(policyType);
656 public void setDevicePolicy(@VirtualDeviceParams.DynamicPolicyType int policyType,
663 switch (policyType) {
666 mDevicePolicies.put(policyType, devicePolicy);
675 mDevicePolicies.put(policyType, devicePolicy);
686 mDevicePolicies.put(policyType, devicePolicy);
691 throw new IllegalArgumentException("Device policy " + policyType
DVirtualDeviceManagerService.java557 public int getDevicePolicy(int deviceId, @VirtualDeviceParams.PolicyType int policyType) { in getDevicePolicy() argument
561 ? virtualDevice.getDevicePolicy(policyType) : DEVICE_POLICY_DEFAULT; in getDevicePolicy()
710 public int getDevicePolicy(int deviceId, int policyType) { in getDevicePolicy() argument
711 return mImpl.getDevicePolicy(deviceId, policyType); in getDevicePolicy()
/frameworks/av/media/libaudiohal/include/media/audiohal/
DDeviceHalInterface.h141 media::audio::common::AudioMMapPolicyType policyType,
/frameworks/av/media/libaudioclient/aidl/android/media/
DIAudioFlingerService.aidl227 AudioMMapPolicyInfo[] getMmapPolicyInfos(AudioMMapPolicyType policyType); in getMmapPolicyInfos() argument
/frameworks/av/media/libaudiohal/impl/
DDeviceHalHidl.h115 media::audio::common::AudioMMapPolicyType policyType __unused, in getMmapPolicyInfos()
DDeviceHalAidl.h161 status_t getMmapPolicyInfos(media::audio::common::AudioMMapPolicyType policyType __unused,
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/
DStandardWifiEntry.java1011 int policyType = policy.getPolicyType(); in updateAdminRestrictions() local
1014 if (policyType == WifiSsidPolicy.WIFI_SSID_POLICY_TYPE_ALLOWLIST in updateAdminRestrictions()
1020 if (policyType == WifiSsidPolicy.WIFI_SSID_POLICY_TYPE_DENYLIST in updateAdminRestrictions()
/frameworks/av/media/libaudioclient/include/media/
DIAudioFlinger.h359 media::audio::common::AudioMMapPolicyType policyType,
493 media::audio::common::AudioMMapPolicyType policyType,
736 media::audio::common::AudioMMapPolicyType policyType,
DAudioSystem.h793 media::audio::common::AudioMMapPolicyType policyType,
/frameworks/av/media/libaudioclient/
DIAudioFlinger.cpp792 AudioMMapPolicyType policyType, std::vector<AudioMMapPolicyInfo> *policyInfos) { in getMmapPolicyInfos() argument
793 return statusTFromBinderStatus(mDelegate->getMmapPolicyInfos(policyType, policyInfos)); in getMmapPolicyInfos()
1397 AudioMMapPolicyType policyType, std::vector<AudioMMapPolicyInfo> *_aidl_return) { in getMmapPolicyInfos() argument
1398 return Status::fromStatusT(mDelegate->getMmapPolicyInfos(policyType, _aidl_return)); in getMmapPolicyInfos()
/frameworks/av/services/audioflinger/
DAudioFlinger.cpp353 AudioMMapPolicyType policyType, std::vector<AudioMMapPolicyInfo> *policyInfos) { in getMmapPolicyInfos() argument
355 if (const auto it = mPolicyInfos.find(policyType); it != mPolicyInfos.end()) { in getMmapPolicyInfos()
364 status_t status = dev->getMmapPolicyInfos(policyType, &infos); in getMmapPolicyInfos()
372 mPolicyInfos[policyType] = *policyInfos; in getMmapPolicyInfos()
374 getMmapPolicyInfosFromSystemProperty(policyType, policyInfos); in getMmapPolicyInfos()
375 mPolicyInfos[policyType] = *policyInfos; in getMmapPolicyInfos()

12