Home
last modified time | relevance | path

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

123

/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeConfigPayloadTest.java345 ConfigAttribute attribute, int expectedAttributeType, byte[] expectedEncodedAttribute) { in verifyBuildAndEncodeAttributeCommon() argument
346 assertEquals(expectedAttributeType, attribute.attributeType); in verifyBuildAndEncodeAttributeCommon()
348 ByteBuffer buffer = ByteBuffer.allocate(attribute.getAttributeLen()); in verifyBuildAndEncodeAttributeCommon()
349 attribute.encodeAttributeToByteBuffer(buffer); in verifyBuildAndEncodeAttributeCommon()
354 TunnelModeChildConfigAttrIpv4AddressBase attribute, in verifyEncodeIpv4AddressBaseAttribute() argument
359 attribute, expectedAttributeType, expectedEncodedAttribute); in verifyEncodeIpv4AddressBaseAttribute()
360 assertEquals(expectedAddress, attribute.address); in verifyEncodeIpv4AddressBaseAttribute()
364 IkeConfigAttrIpv4AddressBase attribute, in verifyEncodeIpv4AddressBaseAttribute() argument
369 attribute, expectedAttributeType, expectedEncodedAttribute); in verifyEncodeIpv4AddressBaseAttribute()
370 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.java271 xmlMsgElement.attribute(null, "version", mVersion); in toString()
272 xmlMsgElement.attribute(null, "handle", mImageHandle); in toString()
283 xmlMsgElement.attribute(null, "encoding", encoding.toString()); in toString()
284 xmlMsgElement.attribute(null, "pixel", pixel.toString()); in toString()
286 xmlMsgElement.attribute(null, "size", Integer.toString(size)); in toString()
301 xmlMsgElement.attribute(null, "encoding", encoding.toString()); in toString()
302 xmlMsgElement.attribute(null, "pixel", pixel.toString()); in toString()
304 xmlMsgElement.attribute(null, "maxsize", Integer.toString(maxSize)); in toString()
307 xmlMsgElement.attribute(null, "transformation", trans.toString()); in toString()
324 xmlMsgElement.attribute(null, "content-type", contentType.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.java64 for (EapSimAkaAttribute attribute : attributeMap.values()) { in encode()
65 lengthInBytes += attribute.lengthInBytes; in encode()
74 for (EapSimAkaAttribute attribute : attributeMap.values()) { in encode()
75 attribute.encode(output); in encode()
126 EapSimAkaAttribute attribute = mAttributeFactory.getAttribute(byteBuffer); in decode() local
128 if (attributeMap.containsKey(attribute.attributeType)) { in decode()
134 if (attribute instanceof EapSimAkaUnsupportedAttribute) { in decode()
136 + attribute.attributeType); in decode()
138 attributeMap.put(attribute.attributeType, attribute); in decode()
DEapSimTypeData.java77 for (EapSimAkaAttribute attribute : attributes) { in EapSimTypeData()
78 if (attributeMap.containsKey(attribute.attributeType)) { in EapSimTypeData()
80 "Duplicate attribute in attributes: " + attribute.attributeType); in EapSimTypeData()
82 attributeMap.put(attribute.attributeType, attribute); in EapSimTypeData()
DEapAkaTypeData.java89 for (EapSimAkaAttribute attribute : attributes) { in EapAkaTypeData()
90 if (attributeMap.containsKey(attribute.attributeType)) { in EapAkaTypeData()
92 "Duplicate attribute in attributes: " + attribute.attributeType); in EapAkaTypeData()
94 attributeMap.put(attribute.attributeType, attribute); in EapAkaTypeData()
/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()
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 …]
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/apps/WallpaperPicker2/src/com/android/wallpaper/model/
DImageWallpaperInfo.java122 String attribute = asset.readExifTag(tag); in getAttributions() local
124 if (attribute == null) { in getAttributions()
129 attribute = formatDate(attribute); in getAttributions()
132 attributes.add(attribute); in getAttributions()
/packages/apps/CarrierConfig/tests/src/com/android/carrierconfig/
DCarrierConfigTest.java78 String attribute = parser.getAttributeName(i); in testFilterValidAttributes()
79 switch (attribute) { in testFilterValidAttributes()
93 fail("Unknown attribute '" + attribute in testFilterValidAttributes()
128 String attribute = parser.getAttributeName(i); in testCarrierConfigFileNaming()
129 switch (attribute) { in testCarrierConfigFileNaming()
149 fail("Unknown attribute '" + attribute in testCarrierConfigFileNaming()
/packages/apps/PermissionController/src/com/android/packageinstaller/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/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/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()
/packages/apps/Dialer/java/com/android/dialer/theme/
DREADME.md13 What is an attribute? There are three types (depending on how you want to define
26 AppCompat attribute in a style, be sure to also define the Legacy version as
32 provide an attribute to tint all of your ImageViews (why would it?), so we
33 created the colorIcon attribute to apply to all ImageViews that show quantum
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DRegisteredNfcFServicesCache.java500 out.attribute(null, "component", entry.getKey().flattenToString()); in writeDynamicSystemCodeNfcid2Locked()
501 out.attribute(null, "uid", Integer.toString(entry.getValue().uid)); in writeDynamicSystemCodeNfcid2Locked()
502 out.attribute(null, "system-code", entry.getValue().systemCode); in writeDynamicSystemCodeNfcid2Locked()
504 out.attribute(null, "nfcid2", in writeDynamicSystemCodeNfcid2Locked()
513 out.attribute(null, "component", entry.getKey().flattenToString()); in writeDynamicSystemCodeNfcid2Locked()
514 out.attribute(null, "uid", Integer.toString(entry.getValue().uid)); in writeDynamicSystemCodeNfcid2Locked()
515 out.attribute(null, "nfcid2", entry.getValue().nfcid2); in writeDynamicSystemCodeNfcid2Locked()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/archives/
DArchiveFileTestRule.java33 import java.nio.file.attribute.FileAttribute;
34 import java.nio.file.attribute.PosixFilePermission;
35 import java.nio.file.attribute.PosixFilePermissions;
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/
DAudioFocusTest.java440 private void requestAndLoseFocusForAttribute(AudioAttributes attribute) throws Exception { in requestAndLoseFocusForAttribute() argument
444 .setAudioAttributes(attribute) in requestAndLoseFocusForAttribute()
452 + AudioAttributes.usageToString(attribute.getUsage()); in requestAndLoseFocusForAttribute()
458 + AudioAttributes.usageToString(attribute.getUsage()); in requestAndLoseFocusForAttribute()
464 + AudioAttributes.usageToString(attribute.getUsage()); in requestAndLoseFocusForAttribute()
/packages/modules/ExtServices/src/android/ext/services/notification/
DChannelImpressions.java188 out.attribute(null, ATT_DISMISSALS, String.valueOf(mDismissals)); in writeXml()
191 out.attribute(null, ATT_STREAK, String.valueOf(mStreak)); in writeXml()
194 out.attribute(null, ATT_VIEWS, String.valueOf(mViews)); in writeXml()
/packages/apps/Launcher3/src/com/android/launcher3/
DAutoInstallsLayout.java687 protected static String getAttributeValue(XmlPullParser parser, String attribute) { in getAttributeValue() argument
689 "http://schemas.android.com/apk/res-auto/com.android.launcher3", attribute); in getAttributeValue()
691 value = parser.getAttributeValue(null, attribute); in getAttributeValue()
700 protected static int getAttributeResourceValue(XmlPullParser parser, String attribute, in getAttributeResourceValue() argument
704 "http://schemas.android.com/apk/res-auto/com.android.launcher3", attribute, in getAttributeResourceValue()
707 value = attrs.getAttributeResourceValue(null, attribute, defaultValue); in getAttributeResourceValue()
/packages/apps/CarrierConfig/src/com/android/carrierconfig/
DDefaultCarrierConfigService.java266 String attribute = parser.getAttributeName(i); in checkFilters() local
268 switch (attribute) { in checkFilters()
306 Log.e(TAG, "Unknown attribute " + attribute + "=" + value); in checkFilters()

123