Home
last modified time | relevance | path

Searched refs:Map (Results 1 – 25 of 760) sorted by relevance

12345678910>>...31

/packages/apps/Dialer/java/com/android/contacts/common/model/
DAccountTypeManager.java64 import java.util.Map;
142 public abstract Map<AccountTypeWithDataSet, AccountType> getUsableInvitableAccountTypes(); in getUsableInvitableAccountTypes()
177 private static final Map<AccountTypeWithDataSet, AccountType>
247 private Map<AccountTypeWithDataSet, AccountType> mAccountTypesWithDataSets = new ArrayMap<>();
248 private Map<AccountTypeWithDataSet, AccountType> mInvitableAccountTypes =
332 static Map<AccountTypeWithDataSet, AccountType> findAllInvitableAccountTypes( in findAllInvitableAccountTypes()
335 Map<AccountTypeWithDataSet, AccountType> accountTypesByTypeAndDataSet) { in findAllInvitableAccountTypes()
336 Map<AccountTypeWithDataSet, AccountType> result = new ArrayMap<>(); in findAllInvitableAccountTypes()
409 final Map<AccountTypeWithDataSet, AccountType> accountTypesByTypeAndDataSet = new ArrayMap<>(); in loadAccountsInBackground()
414 final Map<String, List<AccountType>> accountTypesByType = new ArrayMap<>(); in loadAccountsInBackground()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DZenModeBackendTest.java32 import java.util.Map;
59 Map.Entry<String, AutomaticZenRule>[] rules = populateAutoZenRulesDescendingCreationTime( in updateState_checkRuleOrderingDescending()
72 Map.Entry<String, AutomaticZenRule>[] rules = populateAutoZenRulesAscendingCreationTime( in updateState_checkRuleOrderingAscending()
86Map.Entry<String, AutomaticZenRule>[] rules = populateAutoZenRulesDescendingCreationTime(NUM_RULES, in updateState_checkRuleOrderingDescending_withDefaultRules()
131 private Map.Entry<String, AutomaticZenRule>[] populateAutoZenRulesAscendingCreationTime( in populateAutoZenRulesAscendingCreationTime()
133 Map<String, AutomaticZenRule> ruleMap = new HashMap<>(); in populateAutoZenRulesAscendingCreationTime()
148 Map.Entry<String, AutomaticZenRule>[] toReturn = new Map.Entry[ruleMap.size()]; in populateAutoZenRulesAscendingCreationTime()
153 private Map.Entry<String, AutomaticZenRule>[] populateAutoZenRulesDescendingCreationTime( in populateAutoZenRulesDescendingCreationTime()
155 Map<String, AutomaticZenRule> ruleMap = new HashMap<>(); in populateAutoZenRulesDescendingCreationTime()
170 Map.Entry<String, AutomaticZenRule>[] toReturn = new Map.Entry[ruleMap.size()]; in populateAutoZenRulesDescendingCreationTime()
DZenModeAutomaticRulesPreferenceControllerTest.java48 import java.util.Map;
80 Map<String, AutomaticZenRule> rMap = new HashMap<>(); in testUpdateState_clearsPreferencesWhenAddingNewPreferences()
107 Map<String, AutomaticZenRule> rMap = new HashMap<>(); in testUpdateState_clearsPreferencesWhenRemovingPreferences()
131 Map<String, AutomaticZenRule> rMap = new HashMap<>(); in testUpdateState_updateEnableState()
150 private void mockGetAutomaticZenRules(int numRules, Map<String, AutomaticZenRule> rules) { in mockGetAutomaticZenRules()
151 Map.Entry<String, AutomaticZenRule>[] arr = new Map.Entry[numRules]; in mockGetAutomaticZenRules()
/packages/apps/Car/Settings/src/com/android/car/settings/datetime/
DTimeZonePickerScreenPreferenceController.java38 import java.util.Map;
75 List<Map<String, Object>> zones = ZoneGetter.getZonesList(getContext()); in constructTimeZoneList()
80 void setZonesList(List<Map<String, Object>> zones) { in setZonesList()
83 for (Map<String, Object> zone : zones) { in setZonesList()
89 private Preference createTimeZonePreference(Map<String, Object> timeZone) { in createTimeZonePreference()
112 private static final class TimeZonesComparator implements Comparator<Map<String, Object>> {
119 public int compare(Map<String, Object> map1, Map<String, Object> map2) { in compare()
130 private int compareWithKey(Map<String, Object> map1, Map<String, Object> map2, in compareWithKey()
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DAdvertiseManager.java35 import java.util.Map;
49 Map<IBinder, AdvertiserInfo> mAdvertisers = Collections.synchronizedMap(new HashMap<>());
127 Map.Entry<IBinder, AdvertiserInfo> findAdvertiser(int advertiserId) { in findAdvertiser()
128 Map.Entry<IBinder, AdvertiserInfo> entry = null; in findAdvertiser()
129 for (Map.Entry<IBinder, AdvertiserInfo> e : mAdvertisers.entrySet()) { in findAdvertiser()
146 Map.Entry<IBinder, AdvertiserInfo> entry = findAdvertiser(regId); in onAdvertisingSetStarted()
174 Map.Entry<IBinder, AdvertiserInfo> entry = findAdvertiser(advertiserId); in onAdvertisingEnabled()
218 Map.Entry<IBinder, AdvertiserInfo> entry = findAdvertiser(advertiserId); in onOwnAddressRead()
303 Map.Entry<IBinder, AdvertiserInfo> entry = findAdvertiser(advertiserId); in onAdvertisingDataSet()
319 Map.Entry<IBinder, AdvertiserInfo> entry = findAdvertiser(advertiserId); in onScanResponseDataSet()
[all …]
DPeriodicScanManager.java32 import java.util.Map;
44 Map<IBinder, SyncInfo> mSyncs = Collections.synchronizedMap(new HashMap<>());
105 Map.Entry<IBinder, SyncInfo> findSync(int syncHandle) { in findSync()
106 Map.Entry<IBinder, SyncInfo> entry = null; in findSync()
107 for (Map.Entry<IBinder, SyncInfo> e : mSyncs.entrySet()) { in findSync()
124 Map.Entry<IBinder, SyncInfo> entry = findSync(regId); in onSyncStarted()
151 Map.Entry<IBinder, SyncInfo> entry = findSync(syncHandle); in onSyncReport()
169 Map.Entry<IBinder, SyncInfo> entry = findSync(syncHandle); in onSyncLost()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapMasInstance.java37 import java.util.Map;
96 private Map<Long, Msg> mMsgListSms = null;
97 private Map<Long, Msg> mMsgListMms = null;
98 private Map<Long, Msg> mMsgListMsg = null;
100 private Map<String, BluetoothMapConvoContactElement> mContactList;
199 /* package */ Map<Long, Msg> getMsgListSms() { in getMsgListSms()
203 /* package */ void setMsgListSms(Map<Long, Msg> msgListSms) { in setMsgListSms()
207 /* package */ Map<Long, Msg> getMsgListMms() { in getMsgListMms()
211 /* package */ void setMsgListMms(Map<Long, Msg> msgListMms) { in setMsgListMms()
215 /* package */ Map<Long, Msg> getMsgListMsg() { in getMsgListMsg()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/system/
DLicenseHtmlGeneratorFromXml.java38 import java.util.Map;
84 private final Map<String, String> mFileNameToContentIdMap = new HashMap();
92 private final Map<String, String> mContentIdToFileContentMap = new HashMap();
183 private static void parse(InputStreamReader in, Map<String, String> outFileNameToContentIdMap, in parse()
184 Map<String, String> outContentIdToFileContentMap) in parse()
186 Map<String, String> fileNameToContentIdMap = new HashMap<String, String>(); in parse()
187 Map<String, String> contentIdToFileContentMap = new HashMap<String, String>(); in parse()
236 private static void generateHtml(Map<String, String> fileNameToContentIdMap, in generateHtml()
237 Map<String, String> contentIdToFileContentMap, PrintWriter writer) { in generateHtml()
245 Map<String, Integer> contentIdToOrderMap = new HashMap(); in generateHtml()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/util/
DImageLoader.java36 import java.util.Map;
47 private final Set<Map.Entry<Executor, Callback>> mCallbacks = new ArraySet<>();
48 private final Map<Uri, List<Map.Entry<Executor, Callback>>> mLoadCallbacks = new ArrayMap<>();
94 List<Map.Entry<Executor, Callback>> callbacks = mLoadCallbacks.get(uri); in loadImage()
133 Set<Map.Entry<Executor, Callback>> callbacks; in run()
134 List<Map.Entry<Executor, Callback>> loadCallbacks; in run()
143 for (Map.Entry<Executor, Callback> callback : callbacks) { in run()
147 for (Map.Entry<Executor, Callback> callback : loadCallbacks) { in run()
/packages/apps/Car/libs/car-telephony-common/src/com/android/car/telephony/common/
DInMemoryPhoneBook.java35 import java.util.Map;
51 private final Map<I18nPhoneNumberWrapper, Contact> mPhoneNumberContactMap = new HashMap<>();
56 private final Map<String, Map<String, Contact>> mLookupKeyContactMap = new HashMap<>();
201 for (Map<String, Contact> subMap : mLookupKeyContactMap.values()) { in lookupContactByKey()
211 Map<String, Map<String, Contact>> contactMap = new LinkedHashMap<>(); in onCursorLoaded()
225 Map<String, Contact> subMap = contactMap.get(accountName); in onCursorLoaded()
229 for (Map<String, Contact> subMap : contactMap.values()) { in onCursorLoaded()
/packages/apps/Settings/src/com/android/settings/dashboard/
DCategoryManager.java36 import java.util.Map;
37 import java.util.Map.Entry;
48 private final Map<Pair<String, String>, Tile> mTileByComponentCache;
51 private final Map<String, DashboardCategory> mCategoryByKeyMap;
126 Map<Pair<String, String>, Tile> tileByComponentCache, in backwardCompatCleanupForCategory()
127 Map<String, DashboardCategory> categoryByKeyMap) { in backwardCompatCleanupForCategory()
133 final Map<String, List<Tile>> packageToTileMap = new HashMap<>(); in backwardCompatCleanupForCategory()
184 Map<String, DashboardCategory> categoryByKeyMap) { in sortCategories()
195 synchronized void filterDuplicateTiles(Map<String, DashboardCategory> categoryByKeyMap) { in filterDuplicateTiles()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/dashboard/
DCategoryManager.java36 import java.util.Map;
37 import java.util.Map.Entry;
48 private final Map<Pair<String, String>, Tile> mTileByComponentCache;
51 private final Map<String, DashboardCategory> mCategoryByKeyMap;
126 Map<Pair<String, String>, Tile> tileByComponentCache, in backwardCompatCleanupForCategory()
127 Map<String, DashboardCategory> categoryByKeyMap) { in backwardCompatCleanupForCategory()
133 final Map<String, List<Tile>> packageToTileMap = new HashMap<>(); in backwardCompatCleanupForCategory()
184 Map<String, DashboardCategory> categoryByKeyMap) { in sortCategories()
195 synchronized void filterDuplicateTiles(Map<String, DashboardCategory> categoryByKeyMap) { in filterDuplicateTiles()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarDebug.java33 import java.util.Map;
61 private class FetchInfoTask extends AsyncTask<Void, Void, List<Map<String, String>>> {
79 protected List<Map<String, String>> doInBackground(Void... params) { in doInBackground()
82 List<Map<String, String>> items = new ArrayList<Map<String, String>>(); in doInBackground()
158 protected void onPostExecute(List<Map<String, String>> items) { in onPostExecute()
186 protected void addItem(List<Map<String, String>> items, String title, String text) { in addItem()
187 Map<String, String> itemMap = new HashMap<String, String>(); in addItem()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/specialaccess/
DAppStateAppOpsBridge.java38 import java.util.Map;
79 SparseArray<Map<String, PermissionState>> packageToStatesMapByProfileId = in loadExtraInfo()
84 Map<String, PermissionState> packageStatesMap = packageToStatesMapByProfileId.get( in loadExtraInfo()
91 private SparseArray<Map<String, PermissionState>> getPackageToStateMapsByProfileId() { in getPackageToStateMapsByProfileId()
92 SparseArray<Map<String, PermissionState>> entries = new SparseArray<>(); in getPackageToStateMapsByProfileId()
97 Map<String, PermissionState> entriesForProfile = new ArrayMap<>(); in getPackageToStateMapsByProfileId()
134 SparseArray<Map<String, PermissionState>> packageToStateMapsByProfileId) { in loadAppOpModes()
143 Map<String, PermissionState> packageStateMap = packageToStateMapsByProfileId.get( in loadAppOpModes()
/packages/apps/TV/src/com/android/tv/data/
DPreviewDataManager.java46 import java.util.Map;
76 private final Map<Long, CreatePreviewChannelTask> mCreatePreviewChannelTasks = new HashMap<>();
77 private final Map<Long, UpdatePreviewProgramTask> mUpdatePreviewProgramTasks = new HashMap<>();
379 private Map<Long, Long> mCurrentProgramId2PreviewProgramId;
417 Map<Long, Long> uncheckedPrograms = new HashMap<>(mCurrentProgramId2PreviewProgramId); in doInBackground()
493 private Map<Long, Long> mPreviewChannelType2Id = new HashMap<>();
494 private Map<Long, Map<Long, Long>> mProgramId2PreviewProgramId = new HashMap<>();
508 Map<Long, Long> programId2PreviewProgram = in addPreviewProgram()
526 public Map<Long, Long> getAllPreviewChannelIds() { in getAllPreviewChannelIds()
543 public Map<Long, Long> getPreviewProgramIds(long previewChannelId) { in getPreviewProgramIds()
[all …]
/packages/apps/TV/tests/common/src/com/android/tv/testing/
DFakeTvInputManager.java27 import java.util.Map;
32 private final Map<String, Integer> mInputStateMap = new HashMap<>();
33 private final Map<String, TvInputInfo> mInputMap = new HashMap<>();
34 private final Map<TvInputManager.TvInputCallback, Handler> mCallbacks = new HashMap<>();
43 for (final Map.Entry<TvInputManager.TvInputCallback, Handler> e : mCallbacks.entrySet()) { in add()
60 for (final Map.Entry<TvInputManager.TvInputCallback, Handler> e : mCallbacks.entrySet()) { in setInputState()
75 for (final Map.Entry<TvInputManager.TvInputCallback, Handler> e : mCallbacks.entrySet()) { in remove()
/packages/apps/ThemePicker/src/com/android/customization/model/theme/
DOverlayManagerCompat.java31 import java.util.Map;
40 private Map<Integer, Map<String, List<OverlayInfo>>> mOverlayByUser;
90 public Map<String, String> getEnabledOverlaysForTargets(String... targetPackages) { in getEnabledOverlaysForTargets()
91 Map<String, String> overlays = new HashMap<>(); in getEnabledOverlaysForTargets()
118 Map<String, List<OverlayInfo>> overlaysByTarget = new HashMap<>(); in ensureCategoryMapForUser()
131 private void addAllEnabledOverlaysForTarget(Map<String, String> overlays, String target) { in addAllEnabledOverlaysForTarget()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/datetime/
DTimeZonePickerScreenPreferenceControllerTest.java48 import java.util.Map;
75 List<Map<String, Object>> testTimeZones = new ArrayList<>(); in testOnCreate_hasElements()
91 List<Map<String, Object>> testTimeZone = new ArrayList<>(); in testOnPreferenceClick_setTimeZoneCalled()
104 List<Map<String, Object>> testTimeZone = new ArrayList<>(); in testOnPreferenceClick_fragmentControllerGoBack()
115 List<Map<String, Object>> testTimeZone = new ArrayList<>(); in testOnPreferenceClick_broadcastFired()
130 List<Map<String, Object>> testTimeZones = new ArrayList<>(); in testTimeZonesComparator()
155 private Map<String, Object> createTimeZoneMap(String key, String timeZone, String offset, in createTimeZoneMap()
157 Map<String, Object> map = new HashMap<>(); in createTimeZoneMap()
/packages/apps/Car/Cluster/src/android/car/cluster/
DImageResolver.java27 import java.util.Map;
132 public CompletableFuture<Map<ImageReference, Bitmap>> getBitmaps( in getBitmaps()
148 public CompletableFuture<Map<ImageReference, Bitmap>> getBitmaps( in getBitmaps()
150 CompletableFuture<Map<ImageReference, Bitmap>> future = new CompletableFuture<>(); in getBitmaps()
152 Map<ImageReference, CompletableFuture<Bitmap>> bitmapFutures = imgs.stream().collect( in getBitmaps()
159 Map<ImageReference, Bitmap> bitmaps = bitmapFutures.entrySet().stream() in getBitmaps()
160 .collect(Collectors.toMap(Map.Entry::getKey, entry -> entry in getBitmaps()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/ranking/
DSuggestionRanker.java30 import java.util.Map;
43 private static final Map<String, Double> WEIGHTS = new HashMap<String, Double>() {{
55 private final Map<Suggestion, Double> mRelevanceMetrics;
78 Map<String, Map<String, Double>> features = mSuggestionFeaturizer.featurize(suggestions); in rankRelevantSuggestions()
98 double getRelevanceMetric(Map<String, Double> features) { in getRelevanceMetric()
DSuggestionFeaturizer.java25 import java.util.Map;
63 public Map<String, Map<String, Double>> featurize(List<Suggestion> suggestions) { in featurize()
64 Map<String, Map<String, Double>> features = new HashMap<>(); in featurize()
71 Map<String, Double> featureMap = new HashMap<>(); in featurize()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/conditional/
DConditionContextualCardControllerTest.java49 import java.util.Map;
122 final Map<Integer, List<ContextualCard>> conditionalCards = in getConditionalCards_hasEmptyConditionCards_shouldReturnThreeEmptyList()
134 final Map<Integer, List<ContextualCard>> conditionalCards = in getConditionalCards_hasOneConditionCardAndExpanded_shouldGetOneFullWidthCard()
148 final Map<Integer, List<ContextualCard>> conditionalCards = in getConditionalCards_hasOneConditionCardAndCollapsed_shouldGetConditionalHeader()
160 final Map<Integer, List<ContextualCard>> conditionalCards = in getConditionalCards_hasTwoConditionCardsAndExpanded_shouldGetTwoHalfWidthCards()
176 final Map<Integer, List<ContextualCard>> conditionalCards = in getConditionalCards_hasTwoConditionCardsAndCollapsed_shouldGetConditionalHeader()
188 final Map<Integer, List<ContextualCard>> conditionalCards = in getConditionalCards_hasThreeCardsAndExpanded_shouldGetThreeCardsWithFooter()
200 final Map<Integer, List<ContextualCard>> conditionalCards = in getConditionalCards_hasThreeCardsAndCollapsed_shouldGetOneConditionalHeader()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/common/
DExtraSettingsLoaderTest.java47 import java.util.Map;
92 Map<Preference, Bundle> preferenceToBundleMap = mExtraSettingsLoader.loadPreferences( in testLoadPreference_stringResources_shouldLoadResources()
126 Map<Preference, Bundle> preferenceToBundleMap = mExtraSettingsLoader.loadPreferences( in testLoadPreference_metadataBundleIsValue()
166 Map<Preference, Bundle> preferenceToBundleMap = mExtraSettingsLoader.loadPreferences( in testLoadPreference_integerResources_shouldLoadResources()
197 Map<Preference, Bundle> preferenceToBundleMap = mExtraSettingsLoader.loadPreferences( in testLoadPreference_noDefaultSummary()
225 Map<Preference, Bundle> preferenceToBundleMap = mExtraSettingsLoader.loadPreferences( in testLoadPreference_noCategory_shouldSetToDeviceCategory()
254 Map<Preference, Bundle> preferenceToBundleMap = mExtraSettingsLoader.loadPreferences( in testLoadPreference_noCategoryMatched_shouldNotReturnPreferences()
279 Map<Preference, Bundle> preferenceToBundleMap = mExtraSettingsLoader.loadPreferences( in testLoadPreference_shouldLoadDefaultIcon()
309 Map<Preference, Bundle> preferenceToBundleMap = mExtraSettingsLoader.loadPreferences( in testLoadPreference_noSystemApp_returnsNoPreferences()
344 Map<Preference, Bundle> preferenceToBundleMap = mExtraSettingsLoader.loadPreferences( in testLoadPreference_systemApp_returnsPreferences()
/packages/apps/Dialer/java/com/android/dialer/phonelookup/cp2/
DCp2DefaultDirectoryPhoneLookup.java59 import java.util.Map;
60 import java.util.Map.Entry;
486 Map<DialerPhoneNumber, Cp2Info> existingInfoMapToProcess = existingInfoMap;
496 ListenableFuture<Map<DialerPhoneNumber, Set<Cp2ContactInfo>>>
584 Map<DialerPhoneNumber, Cp2Info> existingInfoMap,
685 private ListenableFuture<Map<DialerPhoneNumber, Set<Cp2ContactInfo>>>
687 Map<DialerPhoneNumber, Cp2Info> existingInfoMap,
708 ListenableFuture<Map<String, Set<Cp2ContactInfo>>> validNumbersFuture =
719 Callable<Map<DialerPhoneNumber, Set<Cp2ContactInfo>>> computeMap =
722 Map<String, Set<Cp2ContactInfo>> validNumbersResult = validNumbersFuture.get();
[all …]
/packages/apps/Dialer/java/com/android/incallui/incall/impl/
DButtonChooserFactory.java23 import java.util.Map;
56 Map<Integer, MappingInfo> mapping = createCommonMapping(); in newImsAndWiFiButtonChooser()
73 Map<Integer, MappingInfo> mapping = createCommonMapping(); in newCdmaButtonChooser()
95 Map<Integer, MappingInfo> mapping = createCommonMapping(); in newGsmButtonChooser()
115 private static Map<Integer, MappingInfo> createCommonMapping() { in createCommonMapping()
116 Map<Integer, MappingInfo> mapping = new ArrayMap<>(); in createCommonMapping()

12345678910>>...31