Home
last modified time | relevance | path

Searched refs:attribute (Results 1 – 25 of 148) sorted by relevance

123456

/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeConfigPayloadTest.java346 ConfigAttribute attribute, int expectedAttributeType, byte[] expectedEncodedAttribute) { in verifyBuildAndEncodeAttributeCommon() argument
347 assertEquals(expectedAttributeType, attribute.attributeType); in verifyBuildAndEncodeAttributeCommon()
349 ByteBuffer buffer = ByteBuffer.allocate(attribute.getAttributeLen()); in verifyBuildAndEncodeAttributeCommon()
350 attribute.encodeAttributeToByteBuffer(buffer); in verifyBuildAndEncodeAttributeCommon()
355 TunnelModeChildConfigAttrIpv4AddressBase attribute, in verifyEncodeIpv4AddressBaseAttribute() argument
360 attribute, expectedAttributeType, expectedEncodedAttribute); in verifyEncodeIpv4AddressBaseAttribute()
361 assertEquals(expectedAddress, attribute.address); in verifyEncodeIpv4AddressBaseAttribute()
365 IkeConfigAttrIpv4AddressBase attribute, in verifyEncodeIpv4AddressBaseAttribute() argument
370 attribute, expectedAttributeType, expectedEncodedAttribute); in verifyEncodeIpv4AddressBaseAttribute()
371 assertEquals(expectedAddress, attribute.address); in verifyEncodeIpv4AddressBaseAttribute()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/map/
DBluetoothMapMessageListingElement.java271 xmlMsgElement.attribute(null, "handle", BluetoothMapUtils.getMapHandle(mCpHandle, mType)); in encode()
284 xmlMsgElement.attribute( in encode()
291 xmlMsgElement.attribute( in encode()
295 xmlMsgElement.attribute( in encode()
299 xmlMsgElement.attribute(null, "sender_addressing", mSenderAddressing); in encode()
302 xmlMsgElement.attribute(null, "replyto_addressing", mReplytoAddressing); in encode()
305 xmlMsgElement.attribute( in encode()
309 xmlMsgElement.attribute(null, "recipient_addressing", mRecipientAddressing); in encode()
313 xmlMsgElement.attribute(null, "type", mType.name()); in encode()
316 xmlMsgElement.attribute(null, "size", Integer.toString(mSize)); in encode()
[all …]
DBluetoothMapConvoContactElement.java215 xmlConvoElement.attribute(null, XML_ATT_UCI, mUci); in encode()
218 xmlConvoElement.attribute( in encode()
222 xmlConvoElement.attribute( in encode()
226 xmlConvoElement.attribute(null, XML_ATT_CHAT_STATE, String.valueOf(mChatState)); in encode()
229 xmlConvoElement.attribute(null, XML_ATT_LAST_ACTIVITY, this.getLastActivityString()); in encode()
232 xmlConvoElement.attribute(null, XML_ATT_X_BT_UID, mBtUid.toHexString()); in encode()
235 xmlConvoElement.attribute( in encode()
239 xmlConvoElement.attribute(null, XML_ATT_PRESENCE_STATUS, mPresenceStatus); in encode()
242 xmlConvoElement.attribute(null, XML_ATT_PRIORITY, String.valueOf(mPriority)); in encode()
DBluetoothMapConvoListingElement.java264 xmlConvoElement.attribute(null, XML_ATT_ID, mId.toHexString()); in encode()
266 xmlConvoElement.attribute( in encode()
270 xmlConvoElement.attribute(null, XML_ATT_LAST_ACTIVITY, getLastActivityString()); in encode()
274 xmlConvoElement.attribute(null, XML_ATT_READ, getRead()); in encode()
277 xmlConvoElement.attribute( in encode()
281 xmlConvoElement.attribute(null, XML_ATT_SUMMARY, getSummary()); in encode()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/utils/
DAttributeResolver.kt25 fun getDrawable(context: Context, @AttrRes attribute: Int): Drawable? { in getDrawable()
26 return AppCompatResources.getDrawable(context, getResource(context, attribute)) in getDrawable()
29 fun getNullableDrawable(context: Context, @AttrRes attribute: Int): Drawable? { in getNullableDrawable()
30 if (!(hasAttribute(context, attribute))) { in getNullableDrawable()
33 val resourceId = getResource(context, attribute) in getNullableDrawable()
39 fun getResource(context: Context, @AttrRes attribute: Int): Int { in getResource()
41 check(context.theme.resolveAttribute(attribute, outValue, true)) in getResource()
44 fun hasAttribute(context: Context, @AttrRes attribute: Int): Boolean { in hasAttribute()
45 return context.theme.resolveAttribute(attribute, TypedValue(), true) in hasAttribute()
/packages/modules/Permission/framework-s/java/android/safetycenter/config/
DBuilderUtils.java38 @Nullable Object attribute, in validateAttribute()
43 if (attribute == null && required) { in validateAttribute()
46 boolean nonDefaultValueProvided = !Objects.equals(attribute, defaultValue); in validateAttribute()
48 if (attribute != null && checkProhibited) { in validateAttribute()
54 @Nullable Object attribute, in validateAttribute()
58 validateAttribute(attribute, name, required, prohibited, null); in validateAttribute()
157 static void throwRequiredAttributeMissing(@NonNull String attribute) { in throwRequiredAttributeMissing() argument
158 throw new IllegalStateException("Required attribute " + attribute + " missing"); in throwRequiredAttributeMissing()
161 static void throwProhibitedAttributePresent(@NonNull String attribute) { in throwProhibitedAttributePresent() argument
162 throw new IllegalStateException("Prohibited attribute " + attribute + " present"); in throwProhibitedAttributePresent()
[all …]
/packages/modules/Bluetooth/system/rust/src/gatt/server/test/
Dtest_att_db.rs20 attribute: AttAttribute, field
30 .map(|(attribute, data)| { in new()
31 (attribute.handle, TestAttributeWithData { attribute, data: data.into() }) in new()
44 Some(TestAttributeWithData { attribute: AttAttribute { permissions, .. }, .. }) in read_attribute()
55 Some(TestAttributeWithData { attribute: AttAttribute { permissions, .. }, .. }) in write_attribute()
70 attribute: AttAttribute { permissions, .. }, in write_no_response_attribute()
81 self.attributes.values().map(|attr| attr.attribute).collect() in list_attributes()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcpcontroller/bip/
DBipImageProperties.java308 if (mVersion != null) xmlMsgElement.attribute(null, "version", mVersion); in toString()
309 if (mImageHandle != null) xmlMsgElement.attribute(null, "handle", mImageHandle); in toString()
311 xmlMsgElement.attribute(null, "friendly-name", mFriendlyName); in toString()
323 xmlMsgElement.attribute(null, "encoding", encoding.toString()); in toString()
324 xmlMsgElement.attribute(null, "pixel", pixel.toString()); in toString()
326 xmlMsgElement.attribute(null, "size", Integer.toString(size)); in toString()
341 xmlMsgElement.attribute(null, "encoding", encoding.toString()); in toString()
342 xmlMsgElement.attribute(null, "pixel", pixel.toString()); in toString()
344 xmlMsgElement.attribute(null, "maxsize", Integer.toString(maxSize)); in toString()
347 xmlMsgElement.attribute(null, "transformation", trans.toString()); in toString()
[all …]
DBipImageDescriptor.java284 xmlMsgElement.attribute(null, "version", sVersion); in toString()
286 xmlMsgElement.attribute(null, "encoding", mEncoding.toString()); in toString()
287 xmlMsgElement.attribute(null, "pixel", mPixel.toString()); in toString()
289 xmlMsgElement.attribute(null, "size", Integer.toString(mSize)); in toString()
292 xmlMsgElement.attribute(null, "maxsize", Integer.toString(mMaxSize)); in toString()
295 xmlMsgElement.attribute(null, "transformation", mTransformation.toString()); in toString()
/packages/inputmethods/LeanbackIME/src/com/android/inputmethod/leanback/
DLeanbackUtils.java48 public static int getImeAction(EditorInfo attribute) { in getImeAction() argument
49 return attribute.imeOptions in getImeAction()
56 public static int getInputTypeClass(EditorInfo attribute) { in getInputTypeClass() argument
57 return attribute.inputType & EditorInfo.TYPE_MASK_CLASS; in getInputTypeClass()
63 public static int getInputTypeVariation(EditorInfo attribute) { in getInputTypeVariation() argument
64 return attribute.inputType & EditorInfo.TYPE_MASK_VARIATION; in getInputTypeVariation()
DLeanbackSuggestionsFactory.java54 public void onStartInput(EditorInfo attribute) { in onStartInput() argument
57 if ((attribute.inputType & EditorInfo.TYPE_TEXT_FLAG_AUTO_COMPLETE) != 0) { in onStartInput()
61 switch (LeanbackUtils.getInputTypeClass(attribute)) { in onStartInput()
63 switch (LeanbackUtils.getInputTypeVariation(attribute)) { in onStartInput()
/packages/modules/IPsec/src/java/com/android/internal/net/eap/message/simaka/
DEapSimAkaTypeData.java75 for (EapSimAkaAttribute attribute : attributeMap.values()) { in encode()
76 lengthInBytes += attribute.lengthInBytes; in encode()
85 for (EapSimAkaAttribute attribute : attributeMap.values()) { in encode()
86 attribute.encode(output); in encode()
138 EapSimAkaAttribute attribute = mAttributeFactory.getAttribute(byteBuffer); in decode() local
140 if (attributeMap.containsKey(attribute.attributeType)) { in decode()
146 if (attribute instanceof EapSimAkaUnsupportedAttribute) { in decode()
148 + attribute.attributeType); in decode()
150 attributeMap.put(attribute.attributeType, attribute); in decode()
DEapSimTypeData.java84 for (EapSimAkaAttribute attribute : attributes) { in EapSimTypeData()
85 if (attributeMap.containsKey(attribute.attributeType)) { in EapSimTypeData()
87 "Duplicate attribute in attributes: " + attribute.attributeType); in EapSimTypeData()
89 attributeMap.put(attribute.attributeType, attribute); in EapSimTypeData()
DEapAkaTypeData.java96 for (EapSimAkaAttribute attribute : attributes) { in EapAkaTypeData()
97 if (attributeMap.containsKey(attribute.attributeType)) { in EapAkaTypeData()
99 "Duplicate attribute in attributes: " + attribute.attributeType); in EapAkaTypeData()
101 attributeMap.put(attribute.attributeType, attribute); in EapAkaTypeData()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DXmlUtilHelper.java282 out.attribute(null, "name", name); in writeMapXml()
345 out.attribute(null, "name", name); in writeListXml()
368 out.attribute(null, "name", name); in writeSetXml()
402 out.attribute(null, "name", name); in writeByteArrayXml()
406 out.attribute(null, "num", Integer.toString(N)); in writeByteArrayXml()
438 out.attribute(null, "name", name); in writeIntArrayXml()
442 out.attribute(null, "num", Integer.toString(N)); in writeIntArrayXml()
446 out.attribute(null, "value", Integer.toString(val[i])); in writeIntArrayXml()
477 out.attribute(null, "name", name); in writeLongArrayXml()
481 out.attribute(null, "num", Integer.toString(N)); in writeLongArrayXml()
[all …]
/packages/services/Car/car_product/occupant_awareness/sepolicy/public/
Dattributes2 attribute hal_occupant_awareness;
4 attribute hal_occupant_awareness_client;
6 attribute hal_occupant_awareness_server;
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/model/
DImageWallpaperInfo.java123 String attribute = asset.readExifTag(tag); in getAttributions() local
125 if (attribute == null) { in getAttributions()
130 attribute = formatDate(attribute); in getAttributions()
133 attributes.add(attribute); in getAttributions()
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/protocol/sdp/
DSdpMedia.java85 for (Map.Entry<String, String> attribute : attributes().entrySet()) { in encode()
86 builder.append("a=").append(attribute.getKey()); in encode()
87 if (!TextUtils.isEmpty(attribute.getValue())) { in encode()
88 builder.append(":").append(attribute.getValue()); in encode()
/packages/modules/Bluetooth/system/profile/avrcp/
Ddevice.cc96 if (it->attribute() == Attribute::DEFAULT_COVER_ART) { in filter_cover_art()
263 PlayerAttribute attribute = in VendorPacketHandler() local
265 if (attribute < PlayerAttribute::EQUALIZER || in VendorPacketHandler()
266 attribute > PlayerAttribute::SCAN) { in VendorPacketHandler()
275 attribute, in VendorPacketHandler()
302 for (auto attribute : attributes) { in VendorPacketHandler() local
303 if (attribute < PlayerAttribute::EQUALIZER || in VendorPacketHandler()
304 attribute > PlayerAttribute::SCAN) { in VendorPacketHandler()
840 for (const auto& attribute : attributes_requested) { in GetElementAttributesResponse() local
841 if (info.attributes.find(attribute) != info.attributes.end()) { in GetElementAttributesResponse()
[all …]
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/
DPersistentIntTest.kt32 import java.nio.file.attribute.PosixFilePermission
33 import java.nio.file.attribute.PosixFilePermission.OWNER_EXECUTE
34 import java.nio.file.attribute.PosixFilePermission.OWNER_READ
35 import java.nio.file.attribute.PosixFilePermission.OWNER_WRITE
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/permission/
DGrantTimeXmlHelper.java131 serializer.attribute( in writeGrantTimes()
142 serializer.attribute(/* namespace= */ null, ATTRIBUTE_NAME, packageName); in writeGrantTimes()
143 serializer.attribute( in writeGrantTimes()
154 serializer.attribute(/* namespace= */ null, ATTRIBUTE_NAME, sharedUserName); in writeGrantTimes()
155 serializer.attribute( in writeGrantTimes()
/packages/apps/CarrierConfig/tests/src/com/android/carrierconfig/
DCarrierConfigTest.java78 String attribute = parser.getAttributeName(i); in testFilterValidAttributes()
79 switch (attribute) { in testFilterValidAttributes()
95 fail("Unknown attribute '" + attribute in testFilterValidAttributes()
130 String attribute = parser.getAttributeName(i); in testCarrierConfigFileNaming()
131 switch (attribute) { in testCarrierConfigFileNaming()
151 fail("Unknown attribute '" + attribute in testCarrierConfigFileNaming()
/packages/modules/Permission/SafetyCenter/Persistence/java/com/android/safetycenter/persistence/
DSafetyCenterIssuesPersistence.java273 serializer.attribute(null, ATTRIBUTE_VERSION, Integer.toString(CURRENT_VERSION)); in serializeIssues()
280 serializer.attribute(null, ATTRIBUTE_KEY, persistedSafetyCenterIssue.getKey()); in serializeIssues()
281 serializer.attribute( in serializeIssues()
287 serializer.attribute( in serializeIssues()
292 serializer.attribute(null, ATTRIBUTE_DISMISS_COUNT, Integer.toString(dismissCount)); in serializeIssues()
297 serializer.attribute( in serializeIssues()
/packages/modules/Bluetooth/android/pandora/test/
Dsdp_test.py138 for attribute in attributes: # type: ignore
139 print(' ', attribute.to_string(with_colors=True)) # type: ignore
181 for attribute in attributes: # type: ignore
182 if attribute.id == SDP_SERVICE_CLASS_ID_LIST_ATTRIBUTE_ID: # type: ignore
183 … if ServiceAttribute.is_uuid_in_value(BT_AUDIO_SOURCE_SERVICE, attribute.value): # type: ignore
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/service/v33/
DPermissionDecisionStorageImpl.kt118 out.attribute(/* namespace= */ null, ATTR_VERSION, DB_VERSION.toString()) in serialize()
121 out.attribute(ns, ATTR_PACKAGE_NAME, decision.packageName) in serialize()
122 out.attribute(ns, ATTR_PERMISSION_GROUP, decision.permissionGroupName) in serialize()
124 out.attribute(ns, ATTR_DECISION_TIME, date) in serialize()
125 out.attribute(ns, ATTR_IS_GRANTED, decision.isGranted.toString()) in serialize()

123456