Home
last modified time | relevance | path

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

123

/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/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapMessageListingElement.java273 xmlMsgElement.attribute(null, "handle", BluetoothMapUtils.getMapHandle(mCpHandle, mType)); in encode()
286 xmlMsgElement.attribute(null, "subject", in encode()
291 xmlMsgElement.attribute(null, "datetime", in encode()
295 xmlMsgElement.attribute(null, "sender_name", in encode()
299 xmlMsgElement.attribute(null, "sender_addressing", mSenderAddressing); in encode()
302 xmlMsgElement.attribute(null, "replyto_addressing", mReplytoAddressing); in encode()
305 xmlMsgElement.attribute(null, "recipient_name", 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.java201 xmlConvoElement.attribute(null, XML_ATT_UCI, mUci); in encode()
204 xmlConvoElement.attribute(null, XML_ATT_DISPLAY_NAME, in encode()
208 xmlConvoElement.attribute(null, XML_ATT_NAME, in encode()
212 xmlConvoElement.attribute(null, XML_ATT_CHAT_STATE, String.valueOf(mChatState)); in encode()
215 xmlConvoElement.attribute(null, XML_ATT_LAST_ACTIVITY, this.getLastActivityString()); in encode()
218 xmlConvoElement.attribute(null, XML_ATT_X_BT_UID, mBtUid.toHexString()); in encode()
221 xmlConvoElement.attribute(null, XML_ATT_PRESENCE_AVAILABILITY, in encode()
225 xmlConvoElement.attribute(null, XML_ATT_PRESENCE_STATUS, mPresenceStatus); in encode()
228 xmlConvoElement.attribute(null, XML_ATT_PRIORITY, String.valueOf(mPriority)); in encode()
DBluetoothMapConvoListingElement.java266 xmlConvoElement.attribute(null, XML_ATT_ID, mId.toHexString()); in encode()
268 xmlConvoElement.attribute(null, XML_ATT_NAME, in encode()
272 xmlConvoElement.attribute(null, XML_ATT_LAST_ACTIVITY, getLastActivityString()); in encode()
276 xmlConvoElement.attribute(null, XML_ATT_READ, getRead()); in encode()
279 xmlConvoElement.attribute(null, XML_ATT_VERSION_COUNTER, in encode()
283 xmlConvoElement.attribute(null, XML_ATT_SUMMARY, getSummary()); in encode()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/bip/
DBipImageProperties.java314 if (mVersion != null) xmlMsgElement.attribute(null, "version", mVersion); in toString()
315 if (mImageHandle != null) xmlMsgElement.attribute(null, "handle", mImageHandle); in toString()
317 xmlMsgElement.attribute(null, "friendly-name", mFriendlyName); in toString()
329 xmlMsgElement.attribute(null, "encoding", encoding.toString()); in toString()
330 xmlMsgElement.attribute(null, "pixel", pixel.toString()); in toString()
332 xmlMsgElement.attribute(null, "size", Integer.toString(size)); in toString()
347 xmlMsgElement.attribute(null, "encoding", encoding.toString()); in toString()
348 xmlMsgElement.attribute(null, "pixel", pixel.toString()); in toString()
350 xmlMsgElement.attribute(null, "maxsize", Integer.toString(maxSize)); in toString()
353 xmlMsgElement.attribute(null, "transformation", trans.toString()); in toString()
[all …]
DBipImageDescriptor.java299 xmlMsgElement.attribute(null, "version", sVersion); in toString()
301 xmlMsgElement.attribute(null, "encoding", mEncoding.toString()); in toString()
302 xmlMsgElement.attribute(null, "pixel", mPixel.toString()); in toString()
304 xmlMsgElement.attribute(null, "size", Integer.toString(mSize)); in toString()
307 xmlMsgElement.attribute(null, "maxsize", Integer.toString(mMaxSize)); in toString()
310 xmlMsgElement.attribute(null, "transformation", mTransformation.toString()); in toString()
/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/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()
DLeanbackKeyboardContainer.java727 public void onStartInput(EditorInfo attribute) { in onStartInput() argument
728 setImeOptions(mContext.getResources(), attribute); in onStartInput() local
800 private void setImeOptions(Resources resources, EditorInfo attribute) { in setImeOptions() argument
809 switch (LeanbackUtils.getInputTypeClass(attribute)) { in setImeOptions()
819 switch (LeanbackUtils.getInputTypeVariation(attribute)) { in setImeOptions()
842 mSuggestionsEnabled = (attribute.inputType in setImeOptions()
848 mCapSentences = (attribute.inputType in setImeOptions()
850 mCapWords = ((attribute.inputType & EditorInfo.TYPE_TEXT_FLAG_CAP_WORDS) != 0) || in setImeOptions()
851 (LeanbackUtils.getInputTypeVariation(attribute) in setImeOptions()
853 mCapCharacters = (attribute.inputType in setImeOptions()
[all …]
/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/modules/Permission/service/java/com/android/permission/persistence/
DRuntimePermissionsPersistenceImpl.java206 serializer.attribute(null, ATTRIBUTE_VERSION, Integer.toString(version)); in serializeRuntimePermissions()
209 serializer.attribute(null, ATTRIBUTE_FINGERPRINT, fingerprint); in serializeRuntimePermissions()
218 serializer.attribute(null, ATTRIBUTE_NAME, packageName); in serializeRuntimePermissions()
229 serializer.attribute(null, ATTRIBUTE_NAME, sharedUserName); in serializeRuntimePermissions()
244 serializer.attribute(null, ATTRIBUTE_NAME, permissionState.getName()); in serializePermissions()
245 serializer.attribute(null, ATTRIBUTE_GRANTED, Boolean.toString( in serializePermissions()
248 serializer.attribute(null, ATTRIBUTE_FLAGS, Integer.toHexString( in serializePermissions()
/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/apps/CarrierConfig/tests/src/com/android/carrierconfig/
DCarrierConfigTest.java78 String attribute = parser.getAttributeName(i); in testFilterValidAttributes()
79 switch (attribute) { in testFilterValidAttributes()
94 fail("Unknown attribute '" + attribute in testFilterValidAttributes()
129 String attribute = parser.getAttributeName(i); in testCarrierConfigFileNaming()
130 switch (attribute) { in testCarrierConfigFileNaming()
150 fail("Unknown attribute '" + attribute in testCarrierConfigFileNaming()
/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/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/service/
DBackupHelper.java259 serializer.attribute(null, ATTR_PLATFORM_VERSION, in writePkgsAsXml()
262 serializer.attribute(null, ATTR_PLATFORM_VERSION, in writePkgsAsXml()
532 serializer.attribute(null, ATTR_PERMISSION_NAME, mPermissionName); in writeAsXml()
535 serializer.attribute(null, ATTR_IS_GRANTED, "true"); in writeAsXml()
539 serializer.attribute(null, ATTR_USER_SET, "true"); in writeAsXml()
543 serializer.attribute(null, ATTR_USER_FIXED, "true"); in writeAsXml()
547 serializer.attribute(null, ATTR_WAS_REVIEWED, "true"); in writeAsXml()
710 serializer.attribute(null, ATTR_PACKAGE_NAME, mPackageName); in writeAsXml()
/packages/modules/common/proto/
Dclasspaths.proto38 // attribute, the jar will not be included in the classpath.
39 // Not setting this attribute, defaults the value to zero and implies the jar
44 // Not setting this attribute implies unbound maximum; otherwise set value
47 // attribute, the jar will not be included in the classpath.
/packages/modules/IPsec/src/java/android/net/ipsec/ike/
DTunnelModeChildSessionParams.java528 public Builder addConfigRequest(@NonNull TunnelModeChildConfigAttribute attribute) { in addConfigRequest() argument
529 if (attribute instanceof ConfigAttributeIpv4Address) { in addConfigRequest()
531 } else if (attribute instanceof ConfigAttributeIpv4Netmask) { in addConfigRequest()
532 if (((ConfigAttributeIpv4Netmask) attribute).address != null) { in addConfigRequest()
540 mConfigRequestList.add(attribute); in addConfigRequest()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/
DContentUriAsset.java182 String attribute = mExifCompat.getAttribute(tagId); in readExifTag() local
183 if (attribute == null || attribute.trim().isEmpty()) { in readExifTag()
187 return attribute.trim(); in readExifTag()
/packages/modules/Permission/service/java/com/android/role/persistence/
DRolesPersistenceImpl.java179 serializer.attribute(null, ATTRIBUTE_VERSION, Integer.toString(version)); in serializeRoles()
182 serializer.attribute(null, ATTRIBUTE_PACKAGES_HASH, packagesHash); in serializeRoles()
190 serializer.attribute(null, ATTRIBUTE_NAME, roleName); in serializeRoles()
202 serializer.attribute(null, ATTRIBUTE_NAME, roleHolder); in serializeRoleHolders()
/packages/inputmethods/LeanbackIME/src/com/android/inputmethod/leanback/service/
DLeanbackImeService.java158 public void onStartInput(EditorInfo attribute, boolean restarting) { in onStartInput() argument
159 super.onStartInput(attribute, restarting); in onStartInput()
161 mSuggestionsFactory.onStartInput(attribute); in onStartInput()
162 mKeyboardController.onStartInput(attribute); in onStartInput()
/packages/apps/LegacyCamera/src/com/android/camera/panorama/
DMosaicRendererSurfaceView.java204 EGLConfig config, int attribute, int defaultValue) { in findConfigAttrib() argument
206 if (egl.eglGetConfigAttrib(display, config, attribute, mValue)) { in findConfigAttrib()
296 int attribute = attributes[i]; in printConfig() local
298 if (egl.eglGetConfigAttrib(display, config, attribute, value)) { in printConfig()

123