Home
last modified time | relevance | path

Searched refs:NAMESPACE (Results 1 – 25 of 64) sorted by relevance

123

/frameworks/base/core/tests/coretests/src/android/provider/
DDeviceConfigTest.java58 private static final String NAMESPACE = "namespace1"; field in DeviceConfigTest
71 deleteViaContentProvider(NAMESPACE, KEY); in cleanUp()
72 deleteViaContentProvider(NAMESPACE, KEY2); in cleanUp()
73 deleteViaContentProvider(NAMESPACE, KEY3); in cleanUp()
83 DeviceConfig.setLocalOverride(NAMESPACE, KEY, VALUE); in testAddStickyLocalOverridePreventsWrites()
85 String key1Value = DeviceConfig.getProperty(NAMESPACE, KEY); in testAddStickyLocalOverridePreventsWrites()
88 DeviceConfig.setProperty(NAMESPACE, KEY, VALUE2, /* makeDefault= */ false); in testAddStickyLocalOverridePreventsWrites()
89 key1Value = DeviceConfig.getProperty(NAMESPACE, KEY); in testAddStickyLocalOverridePreventsWrites()
98 DeviceConfig.setLocalOverride(NAMESPACE, KEY, VALUE); in testAddStickyLocalOverrideDoesNotAffectOtherFlags()
99 DeviceConfig.setProperty(NAMESPACE, KEY2, VALUE2, /* makeDefault= */ false); in testAddStickyLocalOverrideDoesNotAffectOtherFlags()
[all …]
DNameValueCacheTest.java63 private static final String NAMESPACE = "namespace"; field in NameValueCacheTest
116 if (prefix.equals(NAMESPACE + "/")) { in setUp()
149 int index = prefix.equals(NAMESPACE + "/") ? 0 : 1; in setUp()
244 Settings.Config.setStrings(mMockContentResolver, NAMESPACE, keyValues); in testCaching_singleNamespace()
249 NAMESPACE, Collections.emptyList()); in testCaching_singleNamespace()
255 NAMESPACE, Collections.emptyList()); in testCaching_singleNamespace()
261 Settings.Config.setStrings(mMockContentResolver, NAMESPACE, keyValues); in testCaching_singleNamespace()
266 NAMESPACE, Collections.emptyList()); in testCaching_singleNamespace()
272 NAMESPACE, Collections.emptyList()); in testCaching_singleNamespace()
282 Settings.Config.setStrings(mMockContentResolver, NAMESPACE, keyValues); in testCaching_multipleNamespaces()
[all …]
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/serialization/
DKeyChainSnapshotSerializer.java21 …com.android.server.locksettings.recoverablekeystore.serialization.KeyChainSnapshotSchema.NAMESPACE;
77 xmlSerializer.startTag(NAMESPACE, TAG_KEY_CHAIN_SNAPSHOT); in serialize()
83 xmlSerializer.endTag(NAMESPACE, TAG_KEY_CHAIN_SNAPSHOT); in serialize()
90 xmlSerializer.startTag(NAMESPACE, TAG_APPLICATION_KEYS); in writeApplicationKeys()
92 xmlSerializer.startTag(NAMESPACE, TAG_APPLICATION_KEY); in writeApplicationKeys()
94 xmlSerializer.endTag(NAMESPACE, TAG_APPLICATION_KEY); in writeApplicationKeys()
96 xmlSerializer.endTag(NAMESPACE, TAG_APPLICATION_KEYS); in writeApplicationKeys()
109 xmlSerializer.startTag(NAMESPACE, TAG_KEY_CHAIN_PROTECTION_PARAMS_LIST); in writeKeyChainProtectionParams()
111 xmlSerializer.startTag(NAMESPACE, TAG_KEY_CHAIN_PROTECTION_PARAMS); in writeKeyChainProtectionParams()
113 xmlSerializer.endTag(NAMESPACE, TAG_KEY_CHAIN_PROTECTION_PARAMS); in writeKeyChainProtectionParams()
[all …]
DKeyChainSnapshotDeserializer.java20 …com.android.server.locksettings.recoverablekeystore.serialization.KeyChainSnapshotSchema.NAMESPACE;
91 parser.require(XmlPullParser.START_TAG, NAMESPACE, TAG_KEY_CHAIN_SNAPSHOT); in deserializeInternal()
151 parser.require(XmlPullParser.END_TAG, NAMESPACE, TAG_KEY_CHAIN_SNAPSHOT); in deserializeInternal()
161 parser.require(XmlPullParser.START_TAG, NAMESPACE, TAG_APPLICATION_KEYS); in readWrappedApplicationKeys()
169 parser.require(XmlPullParser.END_TAG, NAMESPACE, TAG_APPLICATION_KEYS); in readWrappedApplicationKeys()
175 parser.require(XmlPullParser.START_TAG, NAMESPACE, TAG_APPLICATION_KEY); in readWrappedApplicationKey()
202 parser.require(XmlPullParser.END_TAG, NAMESPACE, TAG_APPLICATION_KEY); in readWrappedApplicationKey()
214 parser.require(XmlPullParser.START_TAG, NAMESPACE, TAG_KEY_CHAIN_PROTECTION_PARAMS_LIST); in readKeyChainProtectionParamsList()
224 parser.require(XmlPullParser.END_TAG, NAMESPACE, TAG_KEY_CHAIN_PROTECTION_PARAMS_LIST); in readKeyChainProtectionParamsList()
230 parser.require(XmlPullParser.START_TAG, NAMESPACE, TAG_KEY_CHAIN_PROTECTION_PARAMS); in readKeyChainProtectionParams()
[all …]
/frameworks/opt/car/services/updatableServices/src/com/android/server/wm/
DCarDisplayCompatConfig.java48 private static final String NAMESPACE = null; field in CarDisplayCompatConfig
98 xmlSerializer.startTag(NAMESPACE, CONFIG); in dump()
102 xmlSerializer.startTag(NAMESPACE, SCALE); in dump()
103 xmlSerializer.attribute(NAMESPACE, DISPLAY, String.valueOf(key.mDisplayId)); in dump()
105 xmlSerializer.attribute(NAMESPACE, PACKAGE, key.mPackageName); in dump()
108 xmlSerializer.attribute(NAMESPACE, USER, String.valueOf(key.mUserId)); in dump()
111 xmlSerializer.endTag(NAMESPACE, SCALE); in dump()
113 xmlSerializer.endTag(NAMESPACE, CONFIG); in dump()
140 parser.require(XmlPullParser.START_TAG, NAMESPACE, CONFIG); in readConfig()
156 parser.require(XmlPullParser.START_TAG, NAMESPACE, SCALE); in readScale()
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/
DBackupAndRestoreFeatureFlags.java34 private static final String NAMESPACE = "backup_and_restore"; field in BackupAndRestoreFeatureFlags
42 NAMESPACE, in getBackupTransportFutureTimeoutMillis()
51 NAMESPACE, in getBackupTransportCallbackTimeoutMillis()
63 NAMESPACE, in getFullBackupWriteToTransportBufferSizeBytes()
76 NAMESPACE, in getFullBackupUtilsRouteBufferSizeBytes()
90 NAMESPACE, in getUnifiedRestoreContinueAfterTransportFailureInKvRestore()
/frameworks/base/core/java/com/android/internal/vibrator/persistence/
DSerializedAmplitudeStepWaveform.java21 import static com.android.internal.vibrator.persistence.XmlConstants.NAMESPACE;
64 serializer.startTag(NAMESPACE, TAG_WAVEFORM_EFFECT); in write()
68 serializer.startTag(NAMESPACE, TAG_REPEATING); in write()
74 serializer.endTag(NAMESPACE, TAG_REPEATING); in write()
76 serializer.endTag(NAMESPACE, TAG_WAVEFORM_EFFECT); in write()
81 serializer.startTag(NAMESPACE, TAG_WAVEFORM_ENTRY); in writeWaveformEntry()
84 serializer.attribute(NAMESPACE, ATTRIBUTE_AMPLITUDE, VALUE_AMPLITUDE_DEFAULT); in writeWaveformEntry()
86 serializer.attributeInt(NAMESPACE, ATTRIBUTE_AMPLITUDE, mAmplitudes[index]); in writeWaveformEntry()
89 serializer.attributeLong(NAMESPACE, ATTRIBUTE_DURATION_MS, mTimings[index]); in writeWaveformEntry()
90 serializer.endTag(NAMESPACE, TAG_WAVEFORM_ENTRY); in writeWaveformEntry()
[all …]
DSerializedPredefinedEffect.java21 import static com.android.internal.vibrator.persistence.XmlConstants.NAMESPACE;
59 serializer.startTag(NAMESPACE, TAG_PREDEFINED_EFFECT); in write()
60 serializer.attribute(NAMESPACE, ATTRIBUTE_NAME, mEffectName.toString()); in write()
62 serializer.attributeBoolean(NAMESPACE, ATTRIBUTE_FALLBACK, mShouldFallback); in write()
64 serializer.endTag(NAMESPACE, TAG_PREDEFINED_EFFECT); in write()
91 String nameAttr = parser.getAttributeValue(NAMESPACE, ATTRIBUTE_NAME); in parseNext()
102 ? parser.getAttributeBoolean(NAMESPACE, ATTRIBUTE_FALLBACK, defaultFallback) in parseNext()
DSerializedCompositionPrimitive.java22 import static com.android.internal.vibrator.persistence.XmlConstants.NAMESPACE;
64 serializer.startTag(NAMESPACE, TAG_PRIMITIVE_EFFECT); in write()
65 serializer.attribute(NAMESPACE, ATTRIBUTE_NAME, mPrimitiveName.toString()); in write()
68 serializer.attributeFloat(NAMESPACE, ATTRIBUTE_SCALE, mPrimitiveScale); in write()
72 serializer.attributeInt(NAMESPACE, ATTRIBUTE_DELAY_MS, mPrimitiveDelayMs); in write()
75 serializer.endTag(NAMESPACE, TAG_PRIMITIVE_EFFECT); in write()
98 parser.getAttributeValue(NAMESPACE, ATTRIBUTE_NAME)); in parseNext()
DXmlReader.java20 import static com.android.internal.vibrator.persistence.XmlConstants.NAMESPACE;
163 if (parser.getAttributeIndex(NAMESPACE, attrName) < 0) { in readAttributeIntNonNegative()
202 if (parser.getAttributeIndex(NAMESPACE, attrName) < 0) { in readAttributeFloatInRange()
218 return parser.getAttributeInt(NAMESPACE, attrName); in readAttributeInt()
220 String rawValue = parser.getAttributeValue(NAMESPACE, attrName); in readAttributeInt()
229 return parser.getAttributeFloat(NAMESPACE, attrName); in readAttributeFloat()
231 String rawValue = parser.getAttributeValue(NAMESPACE, attrName); in readAttributeFloat()
/frameworks/base/services/core/java/com/android/server/slice/
DSliceProviderPermissions.java41 private static final String NAMESPACE = null; field in SliceProviderPermissions
84 out.startTag(NAMESPACE, TAG_PROVIDER); in writeTo()
85 out.attribute(NAMESPACE, ATTR_PKG, mPkg.toString()); in writeTo()
89 out.startTag(NAMESPACE, TAG_AUTHORITY); in writeTo()
90 out.attribute(NAMESPACE, ATTR_AUTHORITY, mAuths.valueAt(i).mAuthority); in writeTo()
94 out.endTag(NAMESPACE, TAG_AUTHORITY); in writeTo()
97 out.endTag(NAMESPACE, TAG_PROVIDER); in writeTo()
108 PkgUser pkgUser = new PkgUser(parser.getAttributeValue(NAMESPACE, ATTR_PKG)); in createFrom()
117 parser.getAttributeValue(NAMESPACE, ATTR_AUTHORITY), provider); in createFrom()
172 out.startTag(NAMESPACE, TAG_PKG); in writeTo()
[all …]
DSliceClientPermissions.java47 private static final String NAMESPACE = null; field in SliceClientPermissions
140 out.startTag(NAMESPACE, TAG_CLIENT); in writeTo()
141 out.attribute(NAMESPACE, ATTR_PKG, mPkg.toString()); in writeTo()
142 out.attribute(NAMESPACE, ATTR_FULL_ACCESS, mHasFullAccess ? "1" : "0"); in writeTo()
146 out.startTag(NAMESPACE, TAG_AUTHORITY); in writeTo()
147 out.attribute(NAMESPACE, ATTR_AUTHORITY, mAuths.valueAt(i).mAuthority); in writeTo()
148 out.attribute(NAMESPACE, ATTR_PKG, mAuths.valueAt(i).mPkg.toString()); in writeTo()
152 out.endTag(NAMESPACE, TAG_AUTHORITY); in writeTo()
155 out.endTag(NAMESPACE, TAG_CLIENT); in writeTo()
169 PkgUser pkgUser = new PkgUser(parser.getAttributeValue(NAMESPACE, ATTR_PKG)); in createFrom()
[all …]
/frameworks/base/apct-tests/perftests/settingsprovider/src/android/provider/
DSettingsProviderPerfTest.java39 private static final String NAMESPACE = "test@namespace"; field in SettingsProviderPerfTest
57 Settings.Config.putString(NAMESPACE, SETTING_NAME1, "1", true); in setUp()
58 Settings.Config.putString(NAMESPACE, SETTING_NAME2, "2", true); in setUp()
64 Settings.Config.deleteString(NAMESPACE, SETTING_NAME1); in destroy()
65 Settings.Config.deleteString(NAMESPACE, SETTING_NAME2); in destroy()
110 Settings.Config.getStrings(mContentResolver, NAMESPACE, names); in testSettingsNamespaceConsecutiveRead()
123 Settings.Config.putString(NAMESPACE, SETTING_NAME2, Integer.toString(i), true); in testSettingsNamespaceConsecutiveReadAfterWrite()
126 Settings.Config.getStrings(mContentResolver, NAMESPACE, names); in testSettingsNamespaceConsecutiveReadAfterWrite()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/
DDeviceConfigProxyFakeTest.java40 private static final String NAMESPACE = "foobar"; field in DeviceConfigProxyFakeTest
58 NAMESPACE, mFakeExecutor, onPropertiesChangedListener); in testOnPropertiesChanged()
60 mDeviceConfigProxyFake.setProperty(NAMESPACE, key, value, false); in testOnPropertiesChanged()
76 NAMESPACE, mFakeExecutor, onPropertiesChangedListener); in testOnMultiplePropertiesChanged()
77 mDeviceConfigProxyFake.setProperty(NAMESPACE, keyA, valueA, false); in testOnMultiplePropertiesChanged()
83 mDeviceConfigProxyFake.setProperty(NAMESPACE, keyB, valueB, false); in testOnMultiplePropertiesChanged()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/flags/
DServerFlagReaderImplTest.kt39 private val NAMESPACE = "test" constant in com.android.systemui.flags.ServerFlagReaderImplTest
51 serverFlagReader = ServerFlagReaderImpl(NAMESPACE, deviceConfig, executor, false) in setup()
59 deviceConfig.setProperty(NAMESPACE, "flag_1", "1", false) in testChange_alertsListener()
67 val serverFlagReader = ServerFlagReaderImpl(NAMESPACE, deviceConfig, executor, true) in testChange_ignoresListenersDuringTest()
71 deviceConfig.setProperty(NAMESPACE, "flag_override_1", "1", false) in testChange_ignoresListenersDuringTest()
/frameworks/base/services/core/java/com/android/server/wm/
DActivitySecurityModelFeatureFlags.java46 private static final String NAMESPACE = NAMESPACE_WINDOW_MANAGER; field in ActivitySecurityModelFeatureFlags
64 DeviceConfig.addOnPropertiesChangedListener(NAMESPACE, executor, in initialize()
91 sAsmToastsEnabled = DeviceConfig.getInt(NAMESPACE, KEY_ASM_TOASTS_ENABLED, in updateFromDeviceConfig()
93 sAsmRestrictionsEnabled = DeviceConfig.getInt(NAMESPACE, KEY_ASM_RESTRICTIONS_ENABLED, in updateFromDeviceConfig()
/frameworks/opt/net/ims/tests/src/com/android/ims/rcs/uce/presence/pidfparser/capabilities/
DAudioTest.java62 assertEquals(CapsConstant.NAMESPACE, audio.getNamespace()); in testElementName()
82 .append(" xmlns=\"").append(PidfConstant.NAMESPACE).append("\"") in testSerializing()
83 .append(" xmlns:caps=\"").append(CapsConstant.NAMESPACE).append("\">") in testSerializing()
131 serializer.setPrefix("", PidfConstant.NAMESPACE); in getXmlSerializer()
132 serializer.setPrefix("caps", CapsConstant.NAMESPACE); in getXmlSerializer()
DVideoTest.java62 assertEquals(CapsConstant.NAMESPACE, video.getNamespace()); in testElementName()
83 .append(" xmlns=\"").append(PidfConstant.NAMESPACE).append("\"") in testSerializing()
84 .append(" xmlns:caps=\"").append(CapsConstant.NAMESPACE).append("\">") in testSerializing()
131 serializer.setPrefix("", PidfConstant.NAMESPACE); in getXmlSerializer()
132 serializer.setPrefix("caps", CapsConstant.NAMESPACE); in getXmlSerializer()
DDuplexTest.java63 assertEquals(CapsConstant.NAMESPACE, duplex.getNamespace()); in testElementName()
86 .append(" xmlns=\"").append(PidfConstant.NAMESPACE).append("\"") in testSerializing()
87 .append(" xmlns:caps=\"").append(CapsConstant.NAMESPACE).append("\">") in testSerializing()
143 serializer.setPrefix("", PidfConstant.NAMESPACE); in getXmlSerializer()
144 serializer.setPrefix("caps", CapsConstant.NAMESPACE); in getXmlSerializer()
/frameworks/opt/net/ims/tests/src/com/android/ims/rcs/uce/presence/pidfparser/omapres/
DServiceIdTest.java62 assertEquals(OmaPresConstant.NAMESPACE, serviceId.getNamespace()); in testElementName()
85 .append(" xmlns=\"").append(PidfConstant.NAMESPACE).append("\"") in testSerializing()
86 .append(" xmlns:op=\"").append(OmaPresConstant.NAMESPACE).append("\">") in testSerializing()
135 serializer.setPrefix("", PidfConstant.NAMESPACE); in getXmlSerializer()
136 serializer.setPrefix("op", OmaPresConstant.NAMESPACE); in getXmlSerializer()
DVersionTest.java62 assertEquals(OmaPresConstant.NAMESPACE, version.getNamespace()); in testElementName()
86 .append(" xmlns=\"").append(PidfConstant.NAMESPACE).append("\"") in testSerializing()
87 .append(" xmlns:op=\"").append(OmaPresConstant.NAMESPACE).append("\">") in testSerializing()
136 serializer.setPrefix("", PidfConstant.NAMESPACE); in getXmlSerializer()
137 serializer.setPrefix("op", OmaPresConstant.NAMESPACE); in getXmlSerializer()
DDescriptionTest.java62 assertEquals(OmaPresConstant.NAMESPACE, description.getNamespace()); in testElementName()
85 .append(" xmlns=\"").append(PidfConstant.NAMESPACE).append("\"") in testSerializing()
86 .append(" xmlns:op=\"").append(OmaPresConstant.NAMESPACE).append("\">") in testSerializing()
135 serializer.setPrefix("", PidfConstant.NAMESPACE); in getXmlSerializer()
136 serializer.setPrefix("op", OmaPresConstant.NAMESPACE); in getXmlSerializer()
/frameworks/base/packages/SystemUI/customization/src/com/android/systemui/shared/customization/data/content/
DCustomizationProviderContract.kt35 const val NAMESPACE = "lockscreen_quickaffordance" constant
38 BASE_URI.buildUpon().path(NAMESPACE).build()
41 return "$NAMESPACE/$tableName" in qualifiedTablePath()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/
DMagnificationThumbnailFeatureFlag.java28 private static final String NAMESPACE = DeviceConfig.NAMESPACE_ACCESSIBILITY; field in MagnificationThumbnailFeatureFlag
34 return NAMESPACE; in getNamespace()
/frameworks/opt/net/ims/tests/src/com/android/ims/rcs/uce/presence/pidfparser/pidf/
DBasicTest.java61 assertEquals(PidfConstant.NAMESPACE, basic.getNamespace()); in testElementName()
80 "<basic xmlns=\"" + PidfConstant.NAMESPACE + "\">open</basic>"; in testSerializingWithBasicOpen()
99 "<basic xmlns=\"" + PidfConstant.NAMESPACE + "\">closed</basic>"; in testSerializingWithBasicClosed()
142 serializer.setPrefix("", PidfConstant.NAMESPACE); in getXmlSerializer()

123