Home
last modified time | relevance | path

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

12

/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DSettingsUtils.java48 public static void set(@NonNull String namespace, @NonNull String key, @Nullable String value) { in set() argument
50 delete(namespace, key); in set()
54 Log.w(TAG, "Value of " + namespace + ":" + key + " is empty; deleting it instead"); in set()
55 delete(namespace, key); in set()
58 runShellCommand("settings put %s %s %s default", namespace, key, value); in set()
71 public static void syncSet(@NonNull Context context, @NonNull String namespace, in syncSet() argument
74 syncDelete(context, namespace, key); in syncSet()
78 final String currentValue = get(namespace, key); in syncSet()
85 new OneTimeSettingsListener(context, namespace, key); in syncSet()
86 set(namespace, key, value); in syncSet()
[all …]
DOneTimeDeviceConfigListener.java47 public OneTimeDeviceConfigListener(@NonNull String namespace, @NonNull String key) { in OneTimeDeviceConfigListener() argument
48 this(namespace, key, DEFAULT_TIMEOUT_MS); in OneTimeDeviceConfigListener()
51 public OneTimeDeviceConfigListener(@NonNull String namespace, @NonNull String key, in OneTimeDeviceConfigListener() argument
53 mNamespace = Preconditions.checkNotNull(namespace); in OneTimeDeviceConfigListener()
DOneTimeSettingsListener.java48 public OneTimeSettingsListener(Context context, String namespace, String key) { in OneTimeSettingsListener() argument
54 switch (namespace) { in OneTimeSettingsListener()
62 throw new IllegalArgumentException("invalid namespace: " + namespace); in OneTimeSettingsListener()
DDeviceConfigStateManager.java51 public DeviceConfigStateManager(@NonNull Context context, @NonNull String namespace, in DeviceConfigStateManager() argument
53 debug("DeviceConfigStateManager", "namespace=%s, key=%s", namespace, key); in DeviceConfigStateManager()
56 mNamespace = Preconditions.checkNotNull(namespace); in DeviceConfigStateManager()
DDeviceConfigStateKeeperRule.java37 public DeviceConfigStateKeeperRule(@NonNull Context context, @NonNull String namespace, in DeviceConfigStateKeeperRule() argument
39 super(new DeviceConfigStateManager(context, namespace, key)); in DeviceConfigStateKeeperRule()
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(@NonNull Context context, @NonNull String namespace, in SettingsStateChangerRule() argument
54 super(new SettingsStateManager(context, namespace, key), value); in SettingsStateChangerRule()
DSettingsStateManager.java43 public SettingsStateManager(@NonNull Context context, @NonNull String namespace, in SettingsStateManager() argument
46 mNamespace = Preconditions.checkNotNull(namespace); in SettingsStateManager()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DSettingsUtils.java49 public static void set(@NonNull String namespace, @NonNull String key, @Nullable String value) { in set() argument
51 delete(namespace, key); in set()
55 Log.w(TAG, "Value of " + namespace + ":" + key + " is empty; deleting it instead"); in set()
56 delete(namespace, key); in set()
59 runShellCommand("settings put %s %s %s default", namespace, key, value); in set()
72 public static void syncSet(@NonNull Context context, @NonNull String namespace, in syncSet() argument
75 syncDelete(context, namespace, key); in syncSet()
79 final String currentValue = get(namespace, key); in syncSet()
86 new OneTimeSettingsListener(context, namespace, key); in syncSet()
87 set(namespace, key, value); in syncSet()
[all …]
DOneTimeDeviceConfigListener.java47 public OneTimeDeviceConfigListener(@NonNull String namespace, @NonNull String key) { in OneTimeDeviceConfigListener() argument
48 this(namespace, key, DEFAULT_TIMEOUT_MS); in OneTimeDeviceConfigListener()
51 public OneTimeDeviceConfigListener(@NonNull String namespace, @NonNull String key, in OneTimeDeviceConfigListener() argument
53 mNamespace = Preconditions.checkNotNull(namespace); in OneTimeDeviceConfigListener()
DOneTimeSettingsListener.java48 public OneTimeSettingsListener(Context context, String namespace, String key) { in OneTimeSettingsListener() argument
54 switch (namespace) { in OneTimeSettingsListener()
62 throw new IllegalArgumentException("invalid namespace: " + namespace); in OneTimeSettingsListener()
DDeviceConfigStateManager.java51 public DeviceConfigStateManager(@NonNull Context context, @NonNull String namespace, in DeviceConfigStateManager() argument
53 debug("DeviceConfigStateManager", "namespace=%s, key=%s", namespace, key); in DeviceConfigStateManager()
56 mNamespace = Preconditions.checkNotNull(namespace); in DeviceConfigStateManager()
DDeviceConfigStateKeeperRule.java37 public DeviceConfigStateKeeperRule(@NonNull Context context, @NonNull String namespace, in DeviceConfigStateKeeperRule() argument
39 super(new DeviceConfigStateManager(context, namespace, key)); in DeviceConfigStateKeeperRule()
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(@NonNull Context context, @NonNull String namespace, in SettingsStateChangerRule() argument
54 super(new SettingsStateManager(context, namespace, key), value); in SettingsStateChangerRule()
DSettingsStateManager.java43 public SettingsStateManager(@NonNull Context context, @NonNull String namespace, in SettingsStateManager() argument
46 mNamespace = Preconditions.checkNotNull(namespace); in SettingsStateManager()
/cts/tests/tests/deviceconfig/src/android/deviceconfig/cts/
DDeviceConfigApiTests.java956 private void nullifyProperty(String namespace, String key) { in nullifyProperty() argument
957 if (DeviceConfig.getString(namespace, key, null) != null) { in nullifyProperty()
958 setPropertiesAndAssertSuccessfulChange(namespace, key, null); in nullifyProperty()
962 private static void deletePropertyThrowShell(String namespace, String key) { in deletePropertyThrowShell() argument
964 "device_config delete " + namespace + " " + key); in deletePropertyThrowShell()
968 String namespace; field in DeviceConfigApiTests.PropertyUpdate
973 PropertyUpdate(String namespace, String name, String value) { in PropertyUpdate() argument
975 this.namespace = namespace; in PropertyUpdate()
984 this.namespace = properties.getNamespace(); in PropertyUpdate()
990 void assertEqual(String namespace, String name, String value) { in assertEqual() argument
[all …]
/cts/hostsidetests/media/src/android/media/cts/
DBaseMultiUserTest.java314 protected @Nonnull String getSettings(@Nonnull String namespace, @Nonnull String name, in getSettings() argument
318 "settings" + userFlag + " get " + namespace + " " + name); in getSettings()
335 protected void putSettings(@Nonnull String namespace, @Nonnull String name, in putSettings() argument
341 executeShellCommand("settings delete " + namespace + " " + name); in putSettings()
344 executeShellCommand("settings" + userFlag + " put " + namespace + " " + name in putSettings()
/cts/tests/sensor/jni/
DSensorTest.h30 namespace android {
31 namespace SensorTest {
/cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider/native/
Dversion.h17 namespace StaticSharedLib {
/cts/tests/tests/media/libndkaudio/
DWaveTableGenerator.h20 namespace ndkaudio {
DAudioSink.h20 namespace ndkaudio {
DSystemParams.h20 namespace ndkaudio {
DPeriodicAudioSource.h22 namespace ndkaudio {
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/settings/
DSettingsSession.java161 final String namespace = segments.get(0); in delete() local
166 SystemUtil.runShellCommand("settings delete " + namespace + " " + key); in delete()

12