Home
last modified time | relevance | path

Searched refs:mAttributes (Results 1 – 22 of 22) sorted by relevance

/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/statemachine/
DEapSimStartStateTest.java80 private LinkedHashMap<Integer, EapSimAkaAttribute> mAttributes; field in EapSimStartStateTest
96 mAttributes = new LinkedHashMap<>(); in setUp()
129 mAttributes.put(EAP_AT_VERSION_LIST, new AtVersionList(8, 1)); in testIsValidStartAttributes()
130 mAttributes.put(EAP_AT_PERMANENT_ID_REQ, new AtPermanentIdReq()); in testIsValidStartAttributes()
131 EapSimTypeData eapSimTypeData = new EapSimTypeData(EAP_SIM_START, mAttributes); in testIsValidStartAttributes()
137 mAttributes.put(EAP_AT_PERMANENT_ID_REQ, new AtPermanentIdReq()); in testIsValidStartAttributesMissingVersionList()
138 EapSimTypeData eapSimTypeData = new EapSimTypeData(EAP_SIM_START, mAttributes); in testIsValidStartAttributesMissingVersionList()
144 mAttributes.put(EAP_AT_VERSION_LIST, new AtVersionList(8, 1)); in testIsValidStartAttributesMultipleIdRequests()
145 mAttributes.put(EAP_AT_PERMANENT_ID_REQ, new AtPermanentIdReq()); in testIsValidStartAttributesMultipleIdRequests()
146 mAttributes.put(EAP_AT_ANY_ID_REQ, new AtAnyIdReq()); in testIsValidStartAttributesMultipleIdRequests()
[all …]
/packages/apps/Camera2/src/com/android/camera/data/
DFilmstripItemAttributes.java39 private final EnumSet<Attributes> mAttributes; field in FilmstripItemAttributes
45 mAttributes = attributes; in FilmstripItemAttributes()
49 return mAttributes.contains(Attributes.HAS_DETAILED_CAPTURE_INFO); in hasDetailedCaptureInfo()
54 return mAttributes.contains(Attributes.CAN_SHARE); in canShare()
59 return mAttributes.contains(Attributes.CAN_EDIT); in canEdit()
64 return mAttributes.contains(Attributes.CAN_DELETE); in canDelete()
68 return mAttributes.contains(Attributes.CAN_SWIPE_AWAY); in canSwipeAway()
72 return mAttributes.contains(Attributes.CAN_ZOOM_IN_PLACE); in canZoomInPlace()
76 return mAttributes.contains(Attributes.IS_RENDERING); in isRendering()
81 return mAttributes.contains(Attributes.IS_IMAGE); in isImage()
[all …]
DPlaceholderItem.java47 private final FilmstripItemAttributes mAttributes; field in PlaceholderItem
76 mAttributes = PLACEHOLDER_ITEM_ATTRIBUTES; in PlaceholderItem()
86 return mAttributes; in getAttributes()
DFilmstripItemBase.java49 protected final FilmstripItemAttributes mAttributes; field in FilmstripItemBase
59 mAttributes = attributes; in FilmstripItemBase()
116 return mAttributes; in getAttributes()
DSessionItem.java44 private final FilmstripItemAttributes mAttributes; field in SessionItem
79 mAttributes = new FilmstripItemAttributes.Builder() in SessionItem()
169 return mAttributes; in getAttributes()
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
DDiff.java79 if (null == dict0.mOptions.mAttributes.get("locale")) return false; in languageDiffers()
80 if (null == dict1.mOptions.mAttributes.get("locale")) return false; in languageDiffers()
81 final String dict0Lang = dict0.mOptions.mAttributes.get("locale").split("_", 3)[0]; in languageDiffers()
82 final String dict1Lang = dict1.mOptions.mAttributes.get("locale").split("_", 3)[0]; in languageDiffers()
88 final HashMap<String, String> options1 = new HashMap<>(dict1.mOptions.mAttributes); in diffHeaders()
89 for (final String optionKey : dict0.mOptions.mAttributes.keySet()) { in diffHeaders()
90 if (!dict0.mOptions.mAttributes.get(optionKey).equals( in diffHeaders()
91 dict1.mOptions.mAttributes.get(optionKey))) { in diffHeaders()
93 + dict0.mOptions.mAttributes.get(optionKey) + " <=> " in diffHeaders()
94 + dict1.mOptions.mAttributes.get(optionKey)); in diffHeaders()
DCombinedInputOutput.java205 destination.write(CombinedFormatUtils.formatAttributeMap(dict.mOptions.mAttributes)); in writeDictionaryCombined()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DBinaryDictUtils.java41 options.mAttributes.put(DictionaryHeader.DICTIONARY_LOCALE_KEY, "en_US"); in makeDictionaryOptions()
42 options.mAttributes.put(DictionaryHeader.DICTIONARY_ID_KEY, id); in makeDictionaryOptions()
43 options.mAttributes.put(DictionaryHeader.DICTIONARY_VERSION_KEY, version); in makeDictionaryOptions()
45 options.mAttributes.put(DictionaryHeader.HAS_HISTORICAL_INFO_KEY, in makeDictionaryOptions()
47 options.mAttributes.put(DictionaryHeader.USES_FORGETTING_CURVE_KEY, in makeDictionaryOptions()
DVer4DictEncoder.java61 dict.mOptions.mAttributes.get(DictionaryHeader.DICTIONARY_LOCALE_KEY)), in writeDictionary()
62 dict.mOptions.mAttributes)) { in writeDictionary()
68 LocaleUtils.constructLocaleFromString(dict.mOptions.mAttributes.get( in writeDictionary()
DBinaryDictEncoderUtils.java784 for (final String key : dict.mOptions.mAttributes.keySet()) { in writeDictionaryHeader()
785 final String value = dict.mOptions.mAttributes.get(key); in writeDictionaryHeader()
DBinaryDictDecoderEncoderTests.java304 fileHeader.mDictionaryOptions.mAttributes.containsKey(codePointTableAttribute)); in testCharacterTableIsPresent()
306 fileHeader.mDictionaryOptions.mAttributes.get(codePointTableAttribute); in testCharacterTableIsPresent()
DFusionDictionary.java239 mOptions.mAttributes.put(key, value); in addOptionAttribute()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
DFormatSpec.java272 public final HashMap<String, String> mAttributes; field in FormatSpec.DictionaryOptions
274 mAttributes = attributes; in DictionaryOptions()
290 for (final String optionKey : mAttributes.keySet()) { in toString()
297 1000 * Long.parseLong(mAttributes.get(optionKey))).toString()); in toString()
299 s.append(mAttributes.get(optionKey)); in toString()
DDictionaryHeader.java66 final String localeString = dictionaryOptions.mAttributes.get(DICTIONARY_LOCALE_KEY); in DictionaryHeader()
70 final String versionString = dictionaryOptions.mAttributes.get(DICTIONARY_VERSION_KEY); in DictionaryHeader()
75 final String idString = dictionaryOptions.mAttributes.get(DICTIONARY_ID_KEY); in DictionaryHeader()
89 return mDictionaryOptions.mAttributes.get(DICTIONARY_DESCRIPTION_KEY);
/packages/inputmethods/LatinIME/tools/dicttool/tests/com/android/inputmethod/latin/dicttool/
DBinaryDictOffdeviceUtilsTests.java84 testOptions.mAttributes.put(DictionaryHeader.DICTIONARY_VERSION_KEY, VERSION); in testGetRawDictWorks()
85 testOptions.mAttributes.put(DictionaryHeader.DICTIONARY_LOCALE_KEY, LOCALE); in testGetRawDictWorks()
86 testOptions.mAttributes.put(DictionaryHeader.DICTIONARY_ID_KEY, ID); in testGetRawDictWorks()
115 assertEquals("Wrong version attribute", VERSION, resultDict.mOptions.mAttributes.get( in testGetRawDictWorks()
117 assertEquals("Wrong locale attribute", LOCALE, resultDict.mOptions.mAttributes.get( in testGetRawDictWorks()
119 assertEquals("Wrong id attribute", ID, resultDict.mOptions.mAttributes.get( in testGetRawDictWorks()
204 assertEquals(header.mDictionaryOptions.mAttributes, options); in runTestHeaderReaderProcessorWithOneSpec()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DDownloadRecord.java29 public final ContentValues mAttributes; field in DownloadRecord
32 mAttributes = attributes; in DownloadRecord()
35 return null == mAttributes; in isMetadata()
DUpdateHandler.java453 db, record.mAttributes, record.mClientId); in downloadFinished()
530 final int wordListStatus = downloadRecord.mAttributes.getAsInteger( in handleDownloadedFile()
626 DebugLogUtils.l("Downloaded a new word list :", downloadRecord.mAttributes.getAsString( in handleWordList()
629 + downloadRecord.mAttributes.getAsString(MetadataDbHelper.DESCRIPTION_COLUMN) in handleWordList()
633 downloadRecord.mAttributes.getAsString(MetadataDbHelper.LOCALE_COLUMN); in handleWordList()
635 downloadRecord.mAttributes.put(MetadataDbHelper.LOCAL_FILENAME_COLUMN, destinationFile); in handleWordList()
664 if (!md5sum.equals(downloadRecord.mAttributes.getAsString( in handleWordList()
668 + downloadRecord.mAttributes.getAsString(MetadataDbHelper.CHECKSUM_COLUMN) in handleWordList()
/packages/services/BuiltInPrintService/src/com/android/bips/
DImageToPdfTask.java46 private final PrintAttributes mAttributes; field in ImageToPdfTask
53 mAttributes = attributes; in ImageToPdfTask()
56 mDocument = new PrintedPdfDocument(context, mAttributes); in ImageToPdfTask()
78 if (mAttributes.getMediaSize().isPortrait() == mBitmap.getWidth() < mBitmap.getHeight()) { in writeBitmapToDocument()
DImagePrintActivity.java219 private PrintAttributes mAttributes; field in ImagePrintActivity.ImageAdapter
237 mAttributes = newAttributes; in onLayout()
241 PrintAttributes.MediaSize mediaSize = mAttributes.getMediaSize(); in onLayout()
262 mTask = new ImageToPdfTask(ImagePrintActivity.this, getBitmap(mAttributes), mAttributes, in onWrite()
/packages/modules/ExtServices/src/android/ext/services/notification/
DNotificationEntry.java63 private final AudioAttributes mAttributes; field in NotificationEntry
79 mAttributes = calculateAudioAttributes(); in NotificationEntry()
247 return mAttributes != null && mAttributes.getUsage() == usage; in isAudioAttributesUsage()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DBinaryDictionaryGetter.java209 final String version = header.mDictionaryOptions.mAttributes.get(VERSION_KEY); in hackCanUseDictionaryFile()
DExpandableBinaryDictionary.java703 header.mDictionaryOptions.mAttributes)); in dumpAllWordsForDebug()