/frameworks/base/tests/HierarchyViewerTest/src/com/android/test/hierarchyviewer/ |
D | ViewDumpParser.java | 8 import java.util.Map; 11 private Map<String, Short> mIds; 12 private List<Map<Short,Object>> mViews; 31 if (o instanceof Map) { in parse() 33 mViews.add((Map<Short, Object>) o); in parse() 47 Map<Short,Object> idMap = mViews.remove(mViews.size() - 1); in parse() 56 Map<Short, Object> props = mViews.get(0); in getFirstView() 67 private Object getProperty(Map<Short, Object> props, String key) { in getProperty() 71 private static Map<String, Short> reverse(Map<Short, Object> m) { in reverse() 72 Map<String, Short> r = new HashMap<String, Short>(m.size()); in reverse() [all …]
|
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/create/ |
D | AsmAnalyzer.java | 42 import java.util.Map; 43 import java.util.Map.Entry; 62 private final Map<String, ClassReader> mFound; 63 private final Map<String, ClassReader> mDeps; 64 private final Map<String, InputStream> mFilesFound; 67 private Result(Map<String, ClassReader> found, Map<String, ClassReader> deps, in Result() 68 Map<String, InputStream> filesFound, Set<String> replaceMethodCallClasses) { in Result() 75 public Map<String, ClassReader> getFound() { in getFound() 79 public Map<String, ClassReader> getDeps() { in getDeps() 83 public Map<String, InputStream> getFilesFound() { in getFilesFound() [all …]
|
D | DependencyFinder.java | 37 import java.util.Map; 38 import java.util.Map.Entry; 73 public List<Map<String, Set<String>>> findDeps(List<String> osJarPath) throws IOException { in findDeps() 75 Map<String, ClassReader> zipClasses = parseZip(osJarPath); in findDeps() 80 Map<String, Set<String>> deps = findClassesDeps(zipClasses); in findDeps() 82 Map<String, Set<String>> missing = findMissingClasses(deps, zipClasses.keySet()); in findDeps() 84 List<Map<String, Set<String>>> result = new ArrayList<>(2); in findDeps() 93 public void printAllDeps(List<Map<String, Set<String>>> result) { in printAllDeps() 95 Map<String, Set<String>> deps = result.get(0); in printAllDeps() 96 Map<String, Set<String>> missing = result.get(1); in printAllDeps() [all …]
|
/frameworks/base/tests/VectorDrawableTest/src/com/android/test/dynamic/ |
D | VectorDrawableTest.java | 33 import java.util.Map; 57 protected List<Map<String, Object>> getData(String prefix) { in getData() 58 List<Map<String, Object>> myData = new ArrayList<Map<String, Object>>(); in getData() 81 Map<String, Boolean> entries = new HashMap<String, Boolean>(); in getData() 115 private final static Comparator<Map<String, Object>> sDisplayNameComparator = 116 new Comparator<Map<String, Object>>() { 119 public int compare(Map<String, Object> map1, Map<String, Object> map2) { 137 protected void addItem(List<Map<String, Object>> data, String name, Intent intent) { in addItem() 138 Map<String, Object> temp = new HashMap<String, Object>(); in addItem() 147 Map<String, Object> map = (Map<String, Object>)l.getItemAtPosition(position); in onListItemClick()
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | HwTests.java | 34 import java.util.Map; 58 protected List<Map<String, Object>> getData(String prefix) { in getData() 59 List<Map<String, Object>> myData = new ArrayList<Map<String, Object>>(); in getData() 82 Map<String, Boolean> entries = new HashMap<String, Boolean>(); in getData() 116 private final static Comparator<Map<String, Object>> sDisplayNameComparator = 117 new Comparator<Map<String, Object>>() { 120 public int compare(Map<String, Object> map1, Map<String, Object> map2) { 138 protected void addItem(List<Map<String, Object>> data, String name, Intent intent) { in addItem() 139 Map<String, Object> temp = new HashMap<String, Object>(); in addItem() 148 Map<String, Object> map = (Map<String, Object>)l.getItemAtPosition(position); in onListItemClick()
|
/frameworks/base/identity/java/android/security/identity/ |
D | CredstoreResultData.java | 26 import java.util.Map; 38 private Map<String, Map<String, EntryData>> mData = new LinkedHashMap<>(); 75 Map<String, EntryData> innerMap = mData.get(namespaceName); in getEntryNames() 84 Map<String, EntryData> innerMap = mData.get(namespaceName); in getRetrievedEntryNames() 89 for (Map.Entry<String, EntryData> entry : innerMap.entrySet()) { in getRetrievedEntryNames() 98 Map<String, EntryData> innerMap = mData.get(namespaceName); in getEntryData() 136 private Map<String, EntryData> getOrCreateInnerMap(String namespaceName) { in getOrCreateInnerMap() 137 Map<String, EntryData> innerMap = mResultData.mData.get(namespaceName); in getOrCreateInnerMap() 146 Map<String, EntryData> innerMap = getOrCreateInnerMap(namespaceName); in addEntry() 152 Map<String, EntryData> innerMap = getOrCreateInnerMap(namespaceName); in addErrorStatus()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/ |
D | TestOnlyInsecureCertificateHelperTest.java | 17 import java.util.Map; 68 Map<String, Pair<SecretKey, byte[]>> rawKeys = new HashMap<>(); in testKeepOnlyWhitelistedInsecureKeys_emptyKeysList() 69 Map<String, Pair<SecretKey, byte[]>> expectedResult = new HashMap<>(); in testKeepOnlyWhitelistedInsecureKeys_emptyKeysList() 71 Map<String, Pair<SecretKey, byte[]>> filteredKeys = in testKeepOnlyWhitelistedInsecureKeys_emptyKeysList() 79 Map<String, Pair<SecretKey, byte[]>> rawKeys = new HashMap<>(); in testKeepOnlyWhitelistedInsecureKeys_singleNonWhitelistedKey() 80 Map<String, Pair<SecretKey, byte[]>> expectedResult = new HashMap<>(); in testKeepOnlyWhitelistedInsecureKeys_singleNonWhitelistedKey() 85 Map<String, Pair<SecretKey, byte[]>> filteredKeys = in testKeepOnlyWhitelistedInsecureKeys_singleNonWhitelistedKey() 93 Map<String, Pair<SecretKey, byte[]>> rawKeys = new HashMap<>(); in testKeepOnlyWhitelistedInsecureKeys_singleWhitelistedKey() 94 Map<String, Pair<SecretKey, byte[]>> expectedResult = new HashMap<>(); in testKeepOnlyWhitelistedInsecureKeys_singleWhitelistedKey() 100 Map<String, Pair<SecretKey, byte[]>> filteredKeys = in testKeepOnlyWhitelistedInsecureKeys_singleWhitelistedKey() [all …]
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
D | MainActivity.java | 35 import java.util.Map; 45 Map<String, Object> map = (Map<String, Object>)l.getItemAtPosition(position); in onListItemClick() 82 protected List<Map<String, Object>> getData(String prefix) { in getData() 83 List<Map<String, Object>> myData = new ArrayList<>(); in getData() 106 Map<String, Boolean> entries = new HashMap<>(); in getData() 140 private final static Comparator<Map<String, Object>> sDisplayNameComparator = 141 new Comparator<Map<String, Object>>() { 144 public int compare(Map<String, Object> map1, Map<String, Object> map2) { 162 protected void addItem(List<Map<String, Object>> data, String name, Intent intent) { in addItem() 163 Map<String, Object> temp = new HashMap<>(); in addItem()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/ |
D | Bridge.java | 61 import java.util.Map; 98 private final static Map<Integer, Pair<ResourceType, String>> sRMap = new HashMap<>(); 104 …private final static Map<ResourceType, Map<String, Integer>> sRevRMap = new EnumMap<>(ResourceType… 112 private final static Map<Object, Map<String, SoftReference<Bitmap>>> sProjectBitmapCache = 114 … private final static Map<Object, Map<String, SoftReference<NinePatchChunk>>> sProject9PatchCache = 117 private final static Map<String, SoftReference<Bitmap>> sFrameworkBitmapCache = new HashMap<>(); 118 private final static Map<String, SoftReference<NinePatchChunk>> sFramework9PatchCache = 121 private static Map<String, Map<String, Integer>> sEnumValueMap; 122 private static Map<String, String> sPlatformProperties; 173 public boolean init(Map<String,String> platformProperties, in init() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/license/ |
D | LicenseHtmlGeneratorFromXmlTest.java | 34 import java.util.Map; 107 Map<String, Set<String>> fileNameToContentIdMap = new HashMap<>(); in testParseValidXmlStream() 108 Map<String, String> contentIdToFileContentMap = new HashMap<>(); in testParseValidXmlStream() 122 Map<String, Set<String>> fileNameToContentIdMap = new HashMap<>(); in testParseInvalidXmlStream() 123 Map<String, String> contentIdToFileContentMap = new HashMap<>(); in testParseInvalidXmlStream() 132 Map<String, Set<String>> fileNameToContentIdMap = new HashMap<>(); in testGenerateHtml() 133 Map<String, String> contentIdToFileContentMap = new HashMap<>(); in testGenerateHtml() 148 Map<String, Set<String>> fileNameToContentIdMap = new HashMap<>(); in testGenerateHtmlWithCustomHeading() 149 Map<String, String> contentIdToFileContentMap = new HashMap<>(); in testGenerateHtmlWithCustomHeading()
|
/frameworks/base/core/java/android/util/ |
D | MapCollections.java | 22 import java.util.Map; 74 final class MapIterator implements Iterator<Map.Entry<K, V>>, Map.Entry<K, V> { 90 public Map.Entry<K, V> next() { in next() 141 if (!(o instanceof Map.Entry)) { in equals() 144 Map.Entry<?, ?> e = (Map.Entry<?, ?>) o; in equals() 167 final class EntrySet implements Set<Map.Entry<K, V>> { 169 public boolean add(Map.Entry<K, V> object) { in add() 174 public boolean addAll(Collection<? extends Map.Entry<K, V>> collection) { in addAll() 176 for (Map.Entry<K, V> entry : collection) { in addAll() 189 if (!(o instanceof Map.Entry)) in contains() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | SimpleExpandableListAdapter.java | 25 import java.util.Map; 40 private List<? extends Map<String, ?>> mGroupData; 46 private List<? extends List<? extends Map<String, ?>>> mChildData; 91 List<? extends Map<String, ?>> groupData, int groupLayout, in SimpleExpandableListAdapter() 93 List<? extends List<? extends Map<String, ?>>> childData, in SimpleExpandableListAdapter() 139 List<? extends Map<String, ?>> groupData, int expandedGroupLayout, in SimpleExpandableListAdapter() 141 List<? extends List<? extends Map<String, ?>>> childData, in SimpleExpandableListAdapter() 193 List<? extends Map<String, ?>> groupData, int expandedGroupLayout, in SimpleExpandableListAdapter() 195 List<? extends List<? extends Map<String, ?>>> childData, in SimpleExpandableListAdapter() 243 private void bindView(View view, Map<String, ?> data, String[] from, int[] to) { in bindView()
|
D | SimpleAdapter.java | 33 import java.util.Map; 64 private List<? extends Map<String, ?>> mData; 73 private ArrayList<Map<String, ?>> mUnfilteredData; 90 public SimpleAdapter(Context context, List<? extends Map<String, ?>> data, in SimpleAdapter() 186 final Map dataSet = mData.get(position); in bindView() 369 mUnfilteredData = new ArrayList<Map<String, ?>>(mData); in performFiltering() 373 ArrayList<Map<String, ?>> list = mUnfilteredData; in performFiltering() 379 ArrayList<Map<String, ?>> unfilteredValues = mUnfilteredData; in performFiltering() 382 ArrayList<Map<String, ?>> newValues = new ArrayList<Map<String, ?>>(count); in performFiltering() 385 Map<String, ?> h = unfilteredValues.get(i); in performFiltering() [all …]
|
/frameworks/base/services/core/java/com/android/server/signedconfig/ |
D | SignedConfig.java | 29 import java.util.Map; 71 public final Map<String, String> values; 73 public PerSdkConfig(int minSdk, int maxSdk, Map<String, String> values) { in PerSdkConfig() 125 Map<String, Map<String, String>> keyValueMappers) in parse() 155 Map<String, Map<String, String>> keyValueMappers) in parsePerSdkConfig() 160 Map<String, String> values = new HashMap<>(); in parsePerSdkConfig() 170 Map<String, String> mapper = keyValueMappers.get(key); in parsePerSdkConfig()
|
/frameworks/ex/common/tests/src/com/android/common/ |
D | Rfc822ValidatorTest.java | 24 import java.util.Map; 92 Map<String, String> fixes = new HashMap<String, String>(); in testEmailValidator() 98 for (Map.Entry<String, String> e : fixes.entrySet()) { in testEmailValidator() 107 Map<String, String> fixes = new HashMap<String, String>(); in testEmailValidatorNullDomain() 113 for (Map.Entry<String, String> e : fixes.entrySet()) { in testEmailValidatorNullDomain() 123 Map<String, String> fixes = new HashMap<String, String>(); in testEmailValidatorRemoveInvalid() 129 for (Map.Entry<String, String> e : fixes.entrySet()) { in testEmailValidatorRemoveInvalid()
|
/frameworks/base/core/java/android/hardware/radio/ |
D | Utils.java | 29 import java.util.Map; 36 static void writeStringMap(@NonNull Parcel dest, @Nullable Map<String, String> map) { in writeStringMap() 42 for (Map.Entry<String, String> entry : map.entrySet()) { in writeStringMap() 48 static @NonNull Map<String, String> readStringMap(@NonNull Parcel in) { in readStringMap() 50 Map<String, String> map = new HashMap<>(size); in readStringMap() 59 static void writeStringIntMap(@NonNull Parcel dest, @Nullable Map<String, Integer> map) { in writeStringIntMap() 65 for (Map.Entry<String, Integer> entry : map.entrySet()) { in writeStringIntMap() 71 static @NonNull Map<String, Integer> readStringIntMap(@NonNull Parcel in) { in readStringIntMap() 73 Map<String, Integer> map = new HashMap<>(size); in readStringIntMap()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | TelephonyRegistryTest.java | 60 import java.util.Map; 76 private static final Map<Integer, String> READ_PHONE_STATE_EVENTS = Map.of( 87 private static final Map<Integer, String> READ_PRECISE_PHONE_STATE_EVENTS = Map.of( 101 private static final Map<Integer, String> READ_PREVILIGED_PHONE_STATE_EVENTS = Map.of( 112 private static final Map<Integer, String> READ_ACTIVE_EMERGENCY_SESSION_EVENTS = Map.of( 360 for (Map.Entry<Integer, String> entry : READ_PHONE_STATE_EVENTS.entrySet()) { in testReadPhoneStatePermission() 366 for (Map.Entry<Integer, String> entry : READ_PHONE_STATE_EVENTS.entrySet()) { in testReadPhoneStatePermission() 382 for (Map.Entry<Integer, String> entry : READ_PRECISE_PHONE_STATE_EVENTS.entrySet()) { in testReadPrecisePhoneStatePermission() 389 for (Map.Entry<Integer, String> entry : READ_PRECISE_PHONE_STATE_EVENTS.entrySet()) { in testReadPrecisePhoneStatePermission() 401 for (Map.Entry<Integer, String> entry : READ_PREVILIGED_PHONE_STATE_EVENTS.entrySet()) { in testReadPrivilegedPhoneStatePermission() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/autofill/ |
D | AutofillManagerServiceTest.java | 26 import java.util.Map; 54 final Map<String, String[]> result = in testGetWhitelistedCompatModePackages_onePackageOneUrl() 62 final Map<String, String[]> result = in testGetWhitelistedCompatModePackages_onePackageMultipleUrls() 71 final Map<String, String[]> result = getWhitelistedCompatModePackages("one:two["); in testGetWhitelistedCompatModePackages_multiplePackagesOneInvalid() 78 final Map<String, String[]> result = in testGetWhitelistedCompatModePackages_multiplePackagesMultipleUrls() 88 final Map<String, String[]> result = in testGetWhitelistedCompatModePackages_threePackagesOneInvalid()
|
/frameworks/base/media/java/android/media/ |
D | AudioPresentation.java | 27 import java.util.Map; 72 private final Map<ULocale, CharSequence> mLabels; 137 @NonNull Map<ULocale, CharSequence> labels) { in AudioPresentation() 169 public Map<Locale, String> getLabels() { in getLabels() 170 Map<Locale, String> localeLabels = new HashMap<Locale, String>(mLabels.size()); in getLabels() 171 for (Map.Entry<ULocale, CharSequence> entry : mLabels.entrySet()) { in getLabels() 177 private Map<ULocale, CharSequence> getULabels() { in getULabels() 287 private Map<ULocale, CharSequence> mLabels = new HashMap<ULocale, CharSequence>(); 347 public @NonNull Builder setLabels(@NonNull Map<ULocale, CharSequence> labels) { in setLabels()
|
D | MediaExtractor.java | 45 import java.util.Map; 107 @NonNull Context context, @NonNull Uri uri, @Nullable Map<String, String> headers) in setDataSource() 157 public final void setDataSource(@NonNull String path, @Nullable Map<String, String> headers) in setDataSource() 167 for (Map.Entry<String, String> entry: headers.entrySet()) { in setDataSource() 342 Map<String, Object> formatMap = getTrackFormatNative(index); in getCasInfo() 390 Map<String, Object> formatMap = getFileFormatNative(); in getDrmInitData() 395 Map<UUID, byte[]> psshMap = getPsshInfo(); in getDrmInitData() 396 final Map<UUID, DrmInitData.SchemeInitData> initDataMap = in getDrmInitData() 398 for (Map.Entry<UUID, byte[]> e: psshMap.entrySet()) { in getDrmInitData() 411 Map<String, Object> trackFormatMap = getTrackFormatNative(i); in getDrmInitData() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | DeletedEphemeralSsidsStoreData.java | 30 import java.util.Map; 43 private Map<String, Long> mSsidToTimeMap; 83 } else if (value instanceof Map) { in deserializeData() 84 mSsidToTimeMap = (Map<String, Long>) value; in deserializeData() 122 public Map<String, Long> getSsidToTimeMap() { in getSsidToTimeMap() 129 public void setSsidToTimeMap(Map<String, Long> ssidMap) { in setSsidToTimeMap()
|
/frameworks/layoutlib/bridge/src/android/os/ |
D | SystemProperties_Delegate.java | 23 import java.util.Map; 43 Map<String, String> properties = Bridge.getPlatformProperties(); in native_get() 53 Map<String, String> properties = Bridge.getPlatformProperties(); in native_get_int() 64 Map<String, String> properties = Bridge.getPlatformProperties(); in native_get_long() 79 Map<String, String> properties = Bridge.getPlatformProperties(); in native_get_boolean() 97 Map<String, String> properties = Bridge.getPlatformProperties(); in native_set()
|
/frameworks/base/services/core/java/com/android/server/pm/dex/ |
D | PackageDexUsage.java | 46 import java.util.Map; 103 private final Map<String, PackageUseInfo> mPackageUseInfoMap; 268 Map<String, PackageUseInfo> packageUseInfoMapClone = clonePackageUseInfoMap(); in write() 276 for (Map.Entry<String, PackageUseInfo> pEntry : packageUseInfoMapClone.entrySet()) { in write() 283 for (Map.Entry<String, Set<String>> codeEntry : in write() 292 for (Map.Entry<String, DexUseInfo> dEntry : packageUseInfo.mDexUseInfoMap.entrySet()) { in write() 327 Map<String, PackageUseInfo> data = new HashMap<>(); in read() 511 /*package*/ void syncData(Map<String, Set<Integer>> packageToUsersMap, in syncData() 512 Map<String, Set<String>> packageToCodePaths) { in syncData() 514 Iterator<Map.Entry<String, PackageUseInfo>> pIt = in syncData() [all …]
|
/frameworks/layoutlib/create/tests/com/android/tools/layoutlib/create/ |
D | AsmAnalyzerTest.java | 32 import java.util.Map; 63 Map<String, ClassReader> map = new TreeMap<>(); in testParseZip() 64 Map<String, InputStream> filesFound = new TreeMap<>(); in testParseZip() 104 Map<String, ClassReader> zipClasses = new TreeMap<>(); in testFindClass() 105 Map<String, InputStream> filesFound = new TreeMap<>(); in testFindClass() 154 Map<String, ClassReader> zipClasses = new TreeMap<>(); in testFindClassesDerivingFrom() 155 Map<String, InputStream> filesFound = new TreeMap<>(); in testFindClassesDerivingFrom() 179 Map<String, ClassReader> zipClasses = new TreeMap<>(); in testDependencyVisitor() 180 Map<String, InputStream> filesFound = new TreeMap<>(); in testDependencyVisitor()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
D | AnqpEvent.java | 23 import java.util.Map; 30 private static final Map<String, Constants.ANQPElementType> sWpsNames = new HashMap<>(); 54 private final Map<Constants.ANQPElementType, ANQPElement> mElements; 56 public AnqpEvent(long bssid, Map<Constants.ANQPElementType, ANQPElement> elements) { in AnqpEvent() 71 public Map<Constants.ANQPElementType, ANQPElement> getElements() { in getElements()
|