Home
last modified time | relevance | path

Searched full:restrictions (Results 1 – 25 of 7340) sorted by relevance

12345678910>>...294

/aosp_15_r20/external/webrtc/call/adaptation/
H A Dresource_adaptation_processor_unittest.cc50 VideoSourceRestrictions restrictions() const { in restrictions() function in webrtc::__anonf971821a0111::VideoSourceRestrictionsListenerForTesting
65 VideoSourceRestrictions restrictions, in OnVideoSourceRestrictionsUpdated() argument
71 restrictions_ = restrictions; in OnVideoSourceRestrictionsUpdated()
114 void RestrictSource(VideoSourceRestrictions restrictions) { in RestrictSource() argument
116 true, restrictions.max_frame_rate().value_or(kDefaultFrameRate), in RestrictSource()
117 restrictions.target_pixels_per_frame().has_value() in RestrictSource()
118 ? restrictions.target_pixels_per_frame().value() in RestrictSource()
119 : restrictions.max_pixels_per_frame().value_or(kDefaultFrameSize)); in RestrictSource()
173 // These tests verify that restrictions are applied, but not exactly how much
176 // restrictions. For that, see video_stream_adapter_unittest.cc.
[all …]
H A Dvideo_stream_adapter.cc66 const VideoSourceRestrictions& restrictions) { in CanDecreaseResolutionTo() argument
68 rtc::dchecked_cast<int>(restrictions.max_pixels_per_frame().value_or( in CanDecreaseResolutionTo()
75 const VideoSourceRestrictions& restrictions) { in CanIncreaseResolutionTo() argument
78 rtc::dchecked_cast<int>(restrictions.max_pixels_per_frame().value_or( in CanIncreaseResolutionTo()
84 const VideoSourceRestrictions& restrictions) { in CanDecreaseFrameRateTo() argument
87 rtc::dchecked_cast<int>(restrictions.max_frame_rate().value_or( in CanDecreaseFrameRateTo()
92 const VideoSourceRestrictions& restrictions) { in CanIncreaseFrameRateTo() argument
94 rtc::dchecked_cast<int>(restrictions.max_frame_rate().value_or( in CanIncreaseFrameRateTo()
174 VideoSourceRestrictions restrictions, in Adaptation() argument
180 restrictions_(std::move(restrictions)), in Adaptation()
[all …]
/aosp_15_r20/packages/services/Car/car-lib/src/android/car/drivingstate/
DCarUxRestrictionsConfiguration.java61 * Configuration for Car UX Restrictions service.
82 private static final String JSON_NAME_RESTRICTIONS = "restrictions";
91 * Mapping of a restriction mode name to its restrictions.
137 * Returns the restrictions for
152 * Returns the restrictions based on current driving state and restriction mode.
154 * <p>Restriction mode allows a different set of restrictions to be applied in the same driving
183 String.format("No restrictions specified for (mode: %s, drive state: %s)", in getUxRestrictions()
197 throw new IllegalStateException("No restrictions for driving state " in getUxRestrictions()
261 * Returns the restrictions based on current driving state and speed.
265 List<RestrictionsPerSpeedRange> restrictions) { in findUxRestrictionsInList() argument
[all …]
/aosp_15_r20/frameworks/base/packages/SettingsLib/SpaPrivileged/tests/src/com/android/settingslib/spaprivileged/template/scaffold/
H A DRestrictedMenuItemTest.kt30 import com.android.settingslib.spaprivileged.model.enterprise.Restrictions in <lambda>()
53 val restrictions = Restrictions(userId = USER_ID, keys = emptyList()) in <lambda>() constant
55 setContent(restrictions, enabled = false) in <lambda>()
62 val restrictions = Restrictions(userId = USER_ID, keys = emptyList()) in <lambda>() constant
64 setContent(restrictions) in <lambda>()
71 val restrictions = Restrictions(userId = USER_ID, keys = emptyList()) in <lambda>() constant
73 setContent(restrictions) in <lambda>()
81 val restrictions = Restrictions(userId = USER_ID, keys = listOf(RESTRICTION_KEY)) in <lambda>() constant
84 setContent(restrictions) in <lambda>()
91 val restrictions = Restrictions(userId = USER_ID, keys = listOf(RESTRICTION_KEY)) in <lambda>() constant
[all …]
/aosp_15_r20/frameworks/base/packages/SettingsLib/SpaPrivileged/tests/src/com/android/settingslib/spaprivileged/template/preference/
H A DRestrictedSwitchPreferenceTest.kt33 import com.android.settingslib.spaprivileged.model.enterprise.Restrictions in <lambda>()
61 val restrictions = Restrictions(userId = USER_ID, keys = emptyList()) in <lambda>() constant
63 setContent(restrictions) in <lambda>()
71 val restrictions = Restrictions(userId = USER_ID, keys = emptyList()) in <lambda>() constant
73 setContent(restrictions) in <lambda>()
81 val restrictions = Restrictions(userId = USER_ID, keys = listOf(RESTRICTION_KEY)) in <lambda>() constant
84 setContent(restrictions) in <lambda>()
92 val restrictions = Restrictions(userId = USER_ID, keys = listOf(RESTRICTION_KEY)) in <lambda>() constant
95 setContent(restrictions) in <lambda>()
103 val restrictions = Restrictions(userId = USER_ID, keys = listOf(RESTRICTION_KEY)) in <lambda>() constant
[all …]
H A DRestrictedTwoTargetSwitchPreferenceTest.kt34 import com.android.settingslib.spaprivileged.model.enterprise.Restrictions in <lambda>()
62 val restrictions = Restrictions(userId = USER_ID, keys = emptyList()) in <lambda>() constant
64 setContent(restrictions) in <lambda>()
72 val restrictions = Restrictions(userId = USER_ID, keys = emptyList()) in <lambda>() constant
74 setContent(restrictions) in <lambda>()
82 val restrictions = Restrictions(userId = USER_ID, keys = listOf(RESTRICTION_KEY)) in <lambda>() constant
85 setContent(restrictions) in <lambda>()
93 val restrictions = Restrictions(userId = USER_ID, keys = listOf(RESTRICTION_KEY)) in <lambda>() constant
96 setContent(restrictions) in <lambda>()
104 val restrictions = Restrictions(userId = USER_ID, keys = listOf(RESTRICTION_KEY)) in <lambda>() constant
[all …]
H A DRestrictedPreferenceTest.kt30 import com.android.settingslib.spaprivileged.model.enterprise.Restrictions in <lambda>()
56 val restrictions = Restrictions(userId = USER_ID, keys = emptyList()) in <lambda>() constant
58 setContent(restrictions) in <lambda>()
65 val restrictions = Restrictions(userId = USER_ID, keys = emptyList()) in <lambda>() constant
67 setContent(restrictions) in <lambda>()
75 val restrictions = Restrictions(userId = USER_ID, keys = listOf(RESTRICTION_KEY)) in <lambda>() constant
78 setContent(restrictions) in <lambda>()
85 val restrictions = Restrictions(userId = USER_ID, keys = listOf(RESTRICTION_KEY)) in <lambda>() constant
88 setContent(restrictions) in <lambda>()
96 val restrictions = Restrictions(userId = USER_ID, keys = listOf(RESTRICTION_KEY)) in <lambda>() constant
[all …]
H A DRestrictedMainSwitchPreferenceTest.kt33 import com.android.settingslib.spaprivileged.model.enterprise.Restrictions in <lambda>()
59 val restrictions = Restrictions(userId = USER_ID, keys = emptyList()) in <lambda>() constant
61 setContent(restrictions) in <lambda>()
69 val restrictions = Restrictions(userId = USER_ID, keys = emptyList()) in <lambda>() constant
71 setContent(restrictions) in <lambda>()
79 val restrictions = Restrictions(userId = USER_ID, keys = listOf(RESTRICTION_KEY)) in <lambda>() constant
82 setContent(restrictions) in <lambda>()
90 val restrictions = Restrictions(userId = USER_ID, keys = listOf(RESTRICTION_KEY)) in <lambda>() constant
93 setContent(restrictions) in <lambda>()
101 val restrictions = Restrictions(userId = USER_ID, keys = listOf(RESTRICTION_KEY)) in <lambda>() constant
[all …]
/aosp_15_r20/out/soong/raw-aosp_shiba/c3/
Dc30bc31cdfe12f92ba8559d8dbb39595afbce3b263 …tes/frameworks/base/services/restrictions/services.restrictions/android_common/repackaged-jarjar/j…
64 …tes/frameworks/base/services/restrictions/services.restrictions/android_common/repackaged-jarjar/j…
91restrictions/services.restrictions/android_common/lint-srcs.list.rsp __SBOX_SANDBOX_DIR__/out/lint…
94 …to: "out/soong/.intermediates/frameworks/base/services/restrictions/services.restrictions/android_…
98 …to: "out/soong/.intermediates/frameworks/base/services/restrictions/services.restrictions/android_…
102 …to: "out/soong/.intermediates/frameworks/base/services/restrictions/services.restrictions/android_…
106 …to: "out/soong/.intermediates/frameworks/base/services/restrictions/services.restrictions/android_…
110 …to: "out/soong/.intermediates/frameworks/base/services/restrictions/services.restrictions/android_…
114 …to: "out/soong/.intermediates/frameworks/base/services/restrictions/services.restrictions/android_…
118 …file: "out/soong/.intermediates/frameworks/base/services/restrictions/services.restrictions/androi…
[all …]
/aosp_15_r20/out/soong/.intermediates/frameworks/base/services/restrictions/services.restrictions/android_common/javac/
Dservices.restrictions.jar ... android/server/ com/android/server/restrictions/ com/android/server/restrictions/RestrictionsManagerService ...
/aosp_15_r20/out/soong/.intermediates/frameworks/base/services/restrictions/services.restrictions/android_common/repackaged-jarjar/javac/
Dservices.restrictions.jar ... .restrictions public final com.android.server.restrictions.RestrictionsManagerService extends com.android.server.SystemService ...
/aosp_15_r20/external/google-cloud-java/java-apikeys/proto-google-cloud-apikeys-v2/src/main/java/com/google/api/apikeys/v2/
H A DRestrictions.java25 * Describes the restrictions on the key.
28 * Protobuf type {@code google.api.apikeys.v2.Restrictions}
30 public final class Restrictions extends com.google.protobuf.GeneratedMessageV3 class
32 // @@protoc_insertion_point(message_implements:google.api.apikeys.v2.Restrictions)
35 // Use Restrictions.newBuilder() to construct.
36 private Restrictions(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { in Restrictions() method in Restrictions
40 private Restrictions() { in Restrictions() method in Restrictions
47 return new Restrictions(); in newInstance()
66 com.google.api.apikeys.v2.Restrictions.class, in internalGetFieldAccessorTable()
67 com.google.api.apikeys.v2.Restrictions.Builder.class); in internalGetFieldAccessorTable()
[all …]
/aosp_15_r20/development/samples/browseable/AppRestrictionSchema/src/com.example.android.apprestrictionschema/
H A DAppRestrictionSchemaFragment.java41 * disabled according to the restrictions set by device/profile owner. You can use the
102 Bundle restrictions = manager.getApplicationRestrictions(); in resolveRestrictions() local
109 updateCanSayHello(entry, restrictions); in resolveRestrictions()
111 updateMessage(entry, restrictions); in resolveRestrictions()
113 updateNumber(entry, restrictions); in resolveRestrictions()
115 updateRank(entry, restrictions); in resolveRestrictions()
117 updateApprovals(entry, restrictions); in resolveRestrictions()
119 updateItems(restrictions); in resolveRestrictions()
124 private void updateCanSayHello(RestrictionEntry entry, Bundle restrictions) { in updateCanSayHello() argument
126 if (restrictions == null || !restrictions.containsKey(KEY_CAN_SAY_HELLO)) { in updateCanSayHello()
[all …]
/aosp_15_r20/developers/samples/android/admin/AppRestrictionSchema/Application/src/main/java/com/example/android/apprestrictionschema/
DAppRestrictionSchemaFragment.java44 * disabled according to the restrictions set by device/profile owner. You can use the
130 Bundle restrictions = manager.getApplicationRestrictions(); in resolveRestrictions() local
137 updateCanSayHello(entry, restrictions); in resolveRestrictions()
139 updateMessage(entry, restrictions); in resolveRestrictions()
141 updateNumber(entry, restrictions); in resolveRestrictions()
143 updateRank(entry, restrictions); in resolveRestrictions()
145 updateApprovals(entry, restrictions); in resolveRestrictions()
147 updateItems(restrictions); in resolveRestrictions()
152 private void updateCanSayHello(RestrictionEntry entry, Bundle restrictions) { in updateCanSayHello() argument
154 if (restrictions == null || !restrictions.containsKey(KEY_CAN_SAY_HELLO)) { in updateCanSayHello()
[all …]
/aosp_15_r20/developers/build/prebuilts/gradle/AppRestrictionSchema/Application/src/main/java/com/example/android/apprestrictionschema/
H A DAppRestrictionSchemaFragment.java44 * disabled according to the restrictions set by device/profile owner. You can use the
130 Bundle restrictions = manager.getApplicationRestrictions(); in resolveRestrictions() local
137 updateCanSayHello(entry, restrictions); in resolveRestrictions()
139 updateMessage(entry, restrictions); in resolveRestrictions()
141 updateNumber(entry, restrictions); in resolveRestrictions()
143 updateRank(entry, restrictions); in resolveRestrictions()
145 updateApprovals(entry, restrictions); in resolveRestrictions()
147 updateItems(restrictions); in resolveRestrictions()
152 private void updateCanSayHello(RestrictionEntry entry, Bundle restrictions) { in updateCanSayHello() argument
154 if (restrictions == null || !restrictions.containsKey(KEY_CAN_SAY_HELLO)) { in updateCanSayHello()
[all …]
/aosp_15_r20/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
H A DUserRestrictionsTest.java100 // Clear all restrictions restrictions on user 0. in testUserRestrictions_deviceOwnerOnly()
119 // Clear all restrictions restrictions on the main user. in testUserRestrictions_primaryProfileOwnerOnly()
125 // Checks restrictions for managed user (NOT managed profile).
141 // Clear all restrictions restrictions on secondary user. in testUserRestrictions_secondaryProfileOwnerOnly()
147 // Checks restrictions for managed profile.
167 // Clear all restrictions restrictions on profile. in testUserRestrictions_managedProfileOwnerOnly()
174 * DO + PO combination. Make sure global DO restrictions are visible on secondary users.
189 // Ensure that UserManager differentiates its own restrictions from DO restrictions. in testUserRestrictions_layering()
193 // Let DO set all restrictions. in testUserRestrictions_layering()
197 // Make sure the global restrictions are visible to secondary users. in testUserRestrictions_layering()
[all …]
/aosp_15_r20/device/generic/car/emulator/multi-display-dynamic/CarServiceMultiDisplayOverlayEmulator/res/xml/
Dcar_ux_restrictions_map.xml20 <!-- Map the driving states to UX restrictions here -->
27 So if we don't want any restrictions, requiresDistractionOptimization should be explicitly
32 <Restrictions requiresDistractionOptimization="false" uxr="baseline"/>
36 <Restrictions requiresDistractionOptimization="true" uxr="no_video"/>
39 <!-- This is restrictions for moving and speed [0,5m/s) -->
41 …<Restrictions requiresDistractionOptimization="true" uxr="no_dialpad|no_filtering|limit_string_len…
44 <!-- Restrictions for speed >=5 -->
46 …<Restrictions requiresDistractionOptimization="true" uxr="no_dialpad|no_filtering|limit_string_len…
51 <!--Setting baseline restrictions for all dynamically added virtual displays -->
54 <Restrictions requiresDistractionOptimization="false" uxr="baseline"/>
[all …]
/aosp_15_r20/frameworks/base/services/core/java/com/android/server/pm/
H A DRestrictionsSet.java42 * Data structure that contains the mapping of users to user restrictions.
49 private static final String TAG_RESTRICTIONS = "restrictions";
53 * Mapping of user restrictions.
63 public RestrictionsSet(@UserIdInt int userId, @NonNull Bundle restrictions) { in RestrictionsSet() argument
64 if (restrictions.isEmpty()) { in RestrictionsSet()
67 mUserRestrictions.put(userId, restrictions); in RestrictionsSet()
74 * @return whether restrictions bundle is different from the old one.
76 public boolean updateRestrictions(@UserIdInt int userId, @Nullable Bundle restrictions) { in updateRestrictions() argument
78 !UserRestrictionsUtils.areEqual(mUserRestrictions.get(userId), restrictions); in updateRestrictions()
82 if (!BundleUtils.isEmpty(restrictions)) { in updateRestrictions()
[all …]
H A DUserRestrictionsUtils.java63 * Utility methods for user restrictions.
176 * User restrictions that can only be set by profile owners on the main user, or by device
198 * User restrictions that cannot be set by profile owners. Applied to all users.
217 * User restrictions that can't be changed by device owner or profile owner.
226 * Special user restrictions that can be applied to a user as well as to all users globally,
243 * Special user restrictions that profile owner of an organization-owned managed profile can
264 * Special user restrictions that profile owner of an organization-owned managed profile can
273 * Special user restrictions that profile owner of an organization-owned managed profile can
305 * User restrictions that default to {@code true} for managed profile owners.
316 * Special user restrictions that are always applied to all users no matter who sets them.
[all …]
/aosp_15_r20/packages/services/Car/service/res/xml/
Dcar_ux_restrictions_map.xml4 This XML allows OEMs to configure a driving state to UX restrictions. There are 2 major classes
7 2. Restriction Parameters for restrictions that can be parametrized as defined by
14 - UxRestrictions (Starting tag, defines the UX restrictions to be imposed for different
18 to a display. Restrictions defined will apply to the display that connects to this
22 UX restrictions. The combination of 'occupantZoneId' and 'displayType' is another way
44 useful to provide different restrictions for different speed ranges)
45 - Restrictions (Tag 1.b. UX restriction types)
50 - uxr (Attribute. These are the additional UX restrictions that OEMs can configure in
51 addition to the baseline restrictions defined in the above
53 Restrictions defined in
[all …]
/aosp_15_r20/packages/services/Car/tests/CarServiceTest/src/com/android/car/drivingstate/
DCarDrivingRestrictionsTest.java53 // Currently set restrictions currently set in car_ux_restrictions_map.xml
133 CarUxRestrictions restrictions; in testDrivingStateChange() local
136 // Test Parked state and corresponding restrictions based on car_ux_restrictions_map.xml in testDrivingStateChange()
147 // Switch gear to drive. Driving state changes to Idling but the UX restrictions don't in testDrivingStateChange()
157 // Test Moving state and corresponding restrictions based on car_ux_restrictions_map.xml in testDrivingStateChange()
164 restrictions = mDrivingStateListener.waitForUxRestrictionsChange(UX_RESTRICTIONS_MOVING); in testDrivingStateChange()
165 assertNotNull(restrictions); in testDrivingStateChange()
166 assertTrue(restrictions.isRequiresDistractionOptimization()); in testDrivingStateChange()
167 assertThat(restrictions.getActiveRestrictions()).isEqualTo(UX_RESTRICTIONS_MOVING); in testDrivingStateChange()
169 // Test Idling state and corresponding restrictions based on car_ux_restrictions_map.xml in testDrivingStateChange()
[all …]
/aosp_15_r20/external/gmmlib/Source/GmmLib/Resource/
H A DGmmRestrictions.cpp68 /// Returns the restrictions that a particular resource must follow on a particular
71 /// @param[out] Restrictions: restrictions that this resource must adhere to
73 void GmmLib::GmmResourceInfoCommon::GetRestrictions(__GMM_BUFFER_TYPE &Restrictions) in GetRestrictions() argument
81 pTextureCalc->GetResRestrictions(&Surf, Restrictions); in GetRestrictions()
92 // Desc: This routine returns resource restrictions
97 // pRestrictions: ptr to restrictions
110 /// Returns the best restrictions by comparing two buffer types. Each buffer type
111 /// carries alignment and size restrictions.
113 /// @param[in] pFirstBuffer: Contains surface alignment and size restrictions
114 /// @param[in] pSecondBuffer: Contains surface alignment and size restrictions
[all …]
/aosp_15_r20/external/coreboot/
H A Dgnat.adc3 pragma Restrictions (No_Access_Subprograms);
4 pragma Restrictions (No_Allocators);
5 pragma Restrictions (No_Calendar);
6 pragma Restrictions (No_Dispatch);
7 pragma Restrictions (No_Exception_Handlers);
8 pragma Restrictions (No_Fixed_Point);
9 pragma Restrictions (No_Floating_Point);
10 pragma Restrictions (No_Implicit_Dynamic_Code);
11 pragma Restrictions (No_Implicit_Heap_Allocations);
12 pragma Restrictions (No_Implicit_Loops);
[all …]
/aosp_15_r20/frameworks/base/core/java/android/content/
H A DRestrictionsManager.java38 import android.service.restrictions.RestrictionsReceiver;
55 * Provides a mechanism for apps to query restrictions imposed by an entity that
57 * device administrator to override default app-specific restrictions or any other
60 * Apps can expose a set of restrictions via an XML file specified in the manifest.
62 * If the user has an active Restrictions Provider, dynamic requests can be made in
63 * addition to the statically imposed restrictions. Dynamic requests are app-specific
67 * Restrictions Provider. The Restrictions Provider can respond back to requests by calling
73 * Static restrictions are specified by an XML file referenced by a meta-data attribute
75 * to be able to read the list of available restrictions from the apk.
80 * &lt;restrictions xmlns:android="http://schemas.android.com/apk/res/android" &gt;
[all …]
/aosp_15_r20/device/generic/car/emulator/cluster/rro_overlays/CarServiceOverlay_MdOsDouble/res/xml/
Dcar_ux_restrictions_map.xml4 <!-- Map the driving states to UX restrictions here -->
11 So if we don't want any restrictions, requiresDistractionOptimization should be explicitly
16 <Restrictions requiresDistractionOptimization="false" uxr="baseline"/>
20 <Restrictions requiresDistractionOptimization="true" uxr="no_video"/>
23 <!-- This is restrictions for moving and speed [0,5m/s) -->
25 …<Restrictions requiresDistractionOptimization="true" uxr="no_dialpad|no_filtering|limit_string_len…
28 <!-- Restrictions for speed >=5 -->
30 …<Restrictions requiresDistractionOptimization="true" uxr="no_dialpad|no_filtering|limit_string_len…
35 <!--Setting baseline restrictions for all passenger displays -->
38 <Restrictions requiresDistractionOptimization="false" uxr="baseline"/>
[all …]

12345678910>>...294