/cts/tests/tests/time/shell_utils/common/android/app/time/cts/shell/ |
D | DeviceConfigShellHelper.java | 93 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/ |
D | PhotoPickerCloudUtils.java | 146 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/ |
D | CVE_2023_40117.java | 68 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/ |
D | UserSettings.java | 63 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()
|
D | OneTimeDeviceConfigListener.java | 46 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()
|
D | DeviceConfigStateKeeperRule.java | 37 public DeviceConfigStateKeeperRule(@NonNull Context context, @NonNull String namespace, in DeviceConfigStateKeeperRule() argument 39 super(new DeviceConfigStateManager(context, namespace, key)); in DeviceConfigStateKeeperRule()
|
D | SettingsStateKeeperRule.java | 47 public SettingsStateKeeperRule(Context context, Namespace namespace, String key) { in SettingsStateKeeperRule() argument 48 super(new SettingsStateManager(context, namespace, key)); in SettingsStateKeeperRule()
|
D | DeviceConfigStateChangerRule.java | 40 public DeviceConfigStateChangerRule(@NonNull Context context, @NonNull String namespace, in DeviceConfigStateChangerRule() argument 42 this(new DeviceConfigStateManager(context, namespace, key), value); in DeviceConfigStateChangerRule()
|
D | SettingsStateChangerRule.java | 52 public SettingsStateChangerRule(Context context, Namespace namespace, String key, in SettingsStateChangerRule() argument 54 super(new SettingsStateManager(context, namespace, key), value); in SettingsStateChangerRule()
|
D | DeviceConfigStateManager.java | 50 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()
|
D | OneTimeSettingsListener.java | 49 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()
|
D | SettingsStateManager.java | 55 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/ |
D | ICommandReceiver.aidl | 24 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/ |
D | android.cts.flags.tests.aconfig | 5 namespace: "cts" 12 namespace: "cts" 19 namespace: "cts"
|
/cts/tests/appsearch/helper-app/src/com/android/cts/appsearch/helper/ |
D | AppSearchTestService.java | 105 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/ |
D | InputDeviceInfo.kt | 36 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/ |
D | BaseMultiUserTest.java | 263 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/ |
D | version.h | 17 namespace StaticSharedLib {
|
/cts/tests/appsearch/src/com/android/cts/appsearch/external/app/customer/ |
D | CustomerDocumentTest.java | 97 private Builder(@NonNull String namespace, @NonNull String id) { in Builder() argument 98 super(namespace, id, "customerDocument"); in Builder()
|
/cts/tests/tests/media/audio/jni/ |
D | WaveTableGenerator.h | 20 namespace ndkaudio {
|
D | AudioSink.h | 20 namespace ndkaudio {
|
D | SystemParams.h | 20 namespace ndkaudio {
|
D | PeriodicAudioSource.h | 22 namespace ndkaudio {
|
/cts/tests/tests/deviceconfig/src/android/deviceconfig/cts/ |
D | DeviceConfigApiTests.java | 1392 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/ |
D | BroadcastOptionsTest.java | 255 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()
|