Home
last modified time | relevance | path

Searched refs:namespace (Results 1 – 25 of 56) sorted by relevance

123

/cts/tests/tests/time/shell_utils/common/android/app/time/cts/shell/
DDeviceConfigShellHelper.java93 public NamespaceEntries list(String namespace) throws Exception { in list() argument
94 Objects.requireNonNull(namespace); in list()
96 String cmd = String.format(SHELL_CMD_PREFIX + "list %s", namespace); in list()
108 return new NamespaceEntries(namespace, keyValues); in list()
112 public void put(String namespace, String key, String value) throws Exception { in put() argument
113 put(namespace, key, value, /*makeDefault=*/false); in put()
117 public void put(String namespace, String key, String value, boolean makeDefault) in put() argument
119 String cmd = String.format(SHELL_CMD_PREFIX + "put %s %s %s", namespace, key, value); in put()
127 public void delete(String namespace, String key) throws Exception { in delete() argument
128 String cmd = String.format(SHELL_CMD_PREFIX + "delete %s %s", namespace, key); in delete()
[all …]
/cts/tests/PhotoPicker/src/android/photopicker/cts/
DPhotoPickerCloudUtils.java146 public static boolean isCloudMediaEnabled(@NonNull String namespace) { in isCloudMediaEnabled() argument
147 return Boolean.parseBoolean(readDeviceConfigProp(namespace, in isCloudMediaEnabled()
155 static String getAllowedProvidersDeviceConfig(@NonNull String namespace) { in getAllowedProvidersDeviceConfig() argument
156 return readDeviceConfigProp(namespace, KEY_ALLOWED_CLOUD_PROVIDERS); in getAllowedProvidersDeviceConfig()
172 static void enableCloudMediaAndSetAllowedCloudProviders(@NonNull String namespace, in enableCloudMediaAndSetAllowedCloudProviders() argument
174 writeDeviceConfigProp(namespace, KEY_ALLOWED_CLOUD_PROVIDERS, allowedPackagesJoined); in enableCloudMediaAndSetAllowedCloudProviders()
176 .that(getAllowedProvidersDeviceConfig(namespace)) in enableCloudMediaAndSetAllowedCloudProviders()
179 writeDeviceConfigProp(namespace, KEY_CLOUD_MEDIA_FEATURE_ENABLED, true); in enableCloudMediaAndSetAllowedCloudProviders()
181 .that(isCloudMediaEnabled(namespace)) in enableCloudMediaAndSetAllowedCloudProviders()
188 static void disableCloudMediaAndClearAllowedCloudProviders(@NonNull String namespace) { in disableCloudMediaAndClearAllowedCloudProviders() argument
[all …]
/cts/hostsidetests/securitybulletin/src/android/security/cts/
DCVE_2023_40117.java68 for (String namespace : namespaces) { in testPocCVE_2023_40117()
72 String.format("settings reset %s %s", namespace, resetMode)); in testPocCVE_2023_40117()
102 for (String namespace : namespaces) { in withPreservedSettings()
103 Map<String, String> namespaceSettings = device.getAllSettings(namespace); in withPreservedSettings()
104 allSettingsOld.put(namespace, namespaceSettings); in withPreservedSettings()
109 for (String namespace : namespaces) { in withPreservedSettings()
110 Map<String, String> settingsWithValue = allSettingsOld.get(namespace); in withPreservedSettings()
112 device.setSetting(namespace, entry.getKey(), entry.getValue()); in withPreservedSettings()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DUserSettings.java63 public UserSettings(Context context, Namespace namespace) { in UserSettings() argument
64 this(context, namespace, context.getUser().getIdentifier()); in UserSettings()
102 public UserSettings(Namespace namespace) { in UserSettings() argument
103 this(InstrumentationRegistry.getTargetContext(), namespace); in UserSettings()
109 public UserSettings(Context context, Namespace namespace, int userId) { in UserSettings() argument
111 mNamespace = namespace; in UserSettings()
235 public static Namespace of(String namespace) { in of() argument
236 switch (namespace.toLowerCase()) { in of()
244 throw new IllegalArgumentException("Unknown namespace: " + namespace); in of()
DOneTimeDeviceConfigListener.java46 public OneTimeDeviceConfigListener(@NonNull String namespace, @NonNull String key) { in OneTimeDeviceConfigListener() argument
47 this(namespace, key, DEFAULT_TIMEOUT_MS); in OneTimeDeviceConfigListener()
50 public OneTimeDeviceConfigListener(@NonNull String namespace, @NonNull String key, in OneTimeDeviceConfigListener() argument
52 mNamespace = Objects.requireNonNull(namespace); in OneTimeDeviceConfigListener()
DDeviceConfigStateKeeperRule.java37 public DeviceConfigStateKeeperRule(@NonNull Context context, @NonNull String namespace, in DeviceConfigStateKeeperRule() argument
39 super(new DeviceConfigStateManager(context, namespace, key)); in DeviceConfigStateKeeperRule()
DSettingsStateKeeperRule.java47 public SettingsStateKeeperRule(Context context, Namespace namespace, String key) { in SettingsStateKeeperRule() argument
48 super(new SettingsStateManager(context, namespace, key)); in SettingsStateKeeperRule()
DDeviceConfigStateChangerRule.java40 public DeviceConfigStateChangerRule(@NonNull Context context, @NonNull String namespace, in DeviceConfigStateChangerRule() argument
42 this(new DeviceConfigStateManager(context, namespace, key), value); in DeviceConfigStateChangerRule()
DSettingsStateChangerRule.java52 public SettingsStateChangerRule(Context context, Namespace namespace, String key, in SettingsStateChangerRule() argument
54 super(new SettingsStateManager(context, namespace, key), value); in SettingsStateChangerRule()
DDeviceConfigStateManager.java50 public DeviceConfigStateManager(@NonNull Context context, @NonNull String namespace, in DeviceConfigStateManager() argument
52 debug("DeviceConfigStateManager", "namespace=%s, key=%s", namespace, key); in DeviceConfigStateManager()
55 mNamespace = Objects.requireNonNull(namespace); in DeviceConfigStateManager()
DOneTimeSettingsListener.java49 public OneTimeSettingsListener(Context context, String namespace, String key) { in OneTimeSettingsListener() argument
55 switch (namespace) { in OneTimeSettingsListener()
66 throw new IllegalArgumentException("invalid namespace: " + namespace); in OneTimeSettingsListener()
DSettingsStateManager.java55 public SettingsStateManager(Context context, Namespace namespace, String key) { in SettingsStateManager() argument
57 Objects.requireNonNull(namespace)); in SettingsStateManager()
/cts/tests/appsearch/aidl/com/android/cts/appsearch/
DICommandReceiver.aidl24 List<String> globalGet(in String packageName, in String databaseName, in String namespace, in globalGet() argument
29 boolean indexGloballySearchableDocument(in String databaseName, in String namespace, in indexGloballySearchableDocument() argument
33 in String namespace, in String id, in List<Bundle> packageBundles, in indexGloballySearchableDocumentVisibleToConfig() argument
36 boolean indexNotGloballySearchableDocument(in String databaseName, in String namespace, in indexNotGloballySearchableDocument() argument
39 boolean indexAction(in String databaseName, in String namespace, in String id, in indexAction() argument
/cts/flags/tests/aconfig/
Dandroid.cts.flags.tests.aconfig5 namespace: "cts"
12 namespace: "cts"
19 namespace: "cts"
/cts/tests/appsearch/helper-app/src/com/android/cts/appsearch/helper/
DAppSearchTestService.java105 String packageName, String databaseName, String namespace, String id) { in globalGet() argument
111 new GetByDocumentIdRequest.Builder(namespace) in globalGet()
148 String databaseName, String namespace, String id, List<Bundle> permissionBundles) { in indexGloballySearchableDocument() argument
172 new AppSearchEmail.Builder(namespace, id) in indexGloballySearchableDocument()
204 String databaseName, String namespace, String id, List<Bundle> packageBundles, in indexGloballySearchableDocumentVisibleToConfig() argument
241 new AppSearchEmail.Builder(namespace, id) in indexGloballySearchableDocumentVisibleToConfig()
261 String databaseName, String namespace, String id) { in indexNotGloballySearchableDocument() argument
280 new AppSearchEmail.Builder(namespace, id) in indexNotGloballySearchableDocument()
300 String databaseName, String namespace, String id, String entityId, in indexAction() argument
338 new GenericDocument.Builder<>(namespace, id, "PlayAction") in indexAction()
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DInputDeviceInfo.kt36 private fun readDeviceConfig(namespace: String, name: String, default: String): String { in readDeviceConfig()
38 val stateManager = DeviceConfigStateManager(context, namespace, name) in readDeviceConfig()
/cts/hostsidetests/media/src/android/media/cts/
DBaseMultiUserTest.java263 protected @Nonnull String getSettings(@Nonnull String namespace, @Nonnull String name, in getSettings() argument
267 "settings" + userFlag + " get " + namespace + " " + name); in getSettings()
284 protected void putSettings(@Nonnull String namespace, @Nonnull String name, in putSettings() argument
290 executeShellCommand("settings delete " + namespace + " " + name); in putSettings()
293 executeShellCommand("settings" + userFlag + " put " + namespace + " " + name in putSettings()
/cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider/native/
Dversion.h17 namespace StaticSharedLib {
/cts/tests/appsearch/src/com/android/cts/appsearch/external/app/customer/
DCustomerDocumentTest.java97 private Builder(@NonNull String namespace, @NonNull String id) { in Builder() argument
98 super(namespace, id, "customerDocument"); in Builder()
/cts/tests/tests/media/audio/jni/
DWaveTableGenerator.h20 namespace ndkaudio {
DAudioSink.h20 namespace ndkaudio {
DSystemParams.h20 namespace ndkaudio {
DPeriodicAudioSource.h22 namespace ndkaudio {
/cts/tests/tests/deviceconfig/src/android/deviceconfig/cts/
DDeviceConfigApiTests.java1392 public void onDeviceConfigAccess(String callingPackage, String namespace) { in onDeviceConfigAccess() argument
1475 private Properties deletePropertyAndAssertSuccessfulChange(String namespace, String name) { in deletePropertyAndAssertSuccessfulChange() argument
1479 DeviceConfig.addOnPropertiesChangedListener(namespace, EXECUTOR, changeListener); in deletePropertyAndAssertSuccessfulChange()
1481 assertTrue(DeviceConfig.deleteProperty(namespace, name)); in deletePropertyAndAssertSuccessfulChange()
1483 DeviceConfig.getProperty(namespace, name)); in deletePropertyAndAssertSuccessfulChange()
1490 propertiesUpdate.assertEqual(namespace, name, null); in deletePropertyAndAssertSuccessfulChange()
1495 private Properties deletePropertyAndAssertNoChange(String namespace, String name) { in deletePropertyAndAssertNoChange() argument
1500 DeviceConfig.addOnPropertiesChangedListener(namespace, EXECUTOR, changeListener); in deletePropertyAndAssertNoChange()
1502 assertTrue(DeviceConfig.deleteProperty(namespace, name)); in deletePropertyAndAssertNoChange()
1504 DeviceConfig.getProperty(namespace, name)); in deletePropertyAndAssertNoChange()
[all …]
/cts/tests/app/src/android/app/cts/
DBroadcastOptionsTest.java255 final String namespace = "test_namespace"; in testSetGetDeliveryGroupMatchingKey() local
257 options.setDeliveryGroupMatchingKey(namespace, key); in testSetGetDeliveryGroupMatchingKey()
258 assertEquals(String.join(":", namespace, key), in testSetGetDeliveryGroupMatchingKey()
262 assertEquals(String.join(":", namespace, key), in testSetGetDeliveryGroupMatchingKey()

123