Home
last modified time | relevance | path

Searched refs:Pair (Results 1 – 25 of 48) sorted by relevance

12

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DInputLogicTestsReorderingMyanmar.java21 import android.util.Pair;
93 private static final Pair[][] TESTS = {
96 new Pair[] { // Type : U+1031 U+1000 U+101F ေ က ဟ
97 Pair.create(new int[] { 0x1031 }, "\u1031"), // ေ
98 Pair.create(new int[] { 0x1000 }, "\u1000\u1031"), // ကေ
99 Pair.create(new int[] { 0x101F }, "\u1000\u1031\u101F") // ကေဟ
102 new Pair[] { // Type : U+1000 U+1031 U+101F က ေ ဟ
103 Pair.create(new int[] { 0x1000 }, "\u1000"), // က
104 Pair.create(new int[] { 0x1031 }, "\u1000\u200B\u1031"), // က‌ေ
105 Pair.create(new int[] { 0x101F }, "\u1000\u101F\u1031") // ကဟေ
[all …]
DBinaryDictionaryTests.java22 import android.util.Pair;
410 final ArrayList<Pair<String, String>> bigramWords = new ArrayList<>(); in testRandomlyAddBigramWords()
413 final HashMap<Pair<String, String>, Integer> bigramProbabilities = new HashMap<>(); in testRandomlyAddBigramWords()
429 final Pair<String, String> bigram = new Pair<>(word0, word1); in testRandomlyAddBigramWords()
438 for (final Pair<String, String> bigram : bigramWords) { in testRandomlyAddBigramWords()
633 final ArrayList<Pair<String, String>> bigramWords = new ArrayList<>(); in testAddBigramWordsAndFlashWithGC()
636 final HashMap<Pair<String, String>, Integer> bigramProbabilities = new HashMap<>(); in testAddBigramWordsAndFlashWithGC()
652 final Pair<String, String> bigram = new Pair<>(word0, word1); in testAddBigramWordsAndFlashWithGC()
668 for (final Pair<String, String> bigram : bigramWords) { in testAddBigramWordsAndFlashWithGC()
710 final ArrayList<Pair<String, String>> bigramWords = new ArrayList<>(); in testRandomOperationsAndFlashWithGC()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DDeferredHandler.java23 import android.util.Pair;
36 private LinkedList<Pair<Runnable, Integer>> mQueue = new LinkedList<Pair<Runnable, Integer>>();
42 Pair<Runnable, Integer> p; in handleMessage()
84 mQueue.add(new Pair<Runnable, Integer>(runnable, type)); in post()
106 ListIterator<Pair<Runnable, Integer>> iter = mQueue.listIterator(); in cancelAllRunnablesOfType()
107 Pair<Runnable, Integer> p; in cancelAllRunnablesOfType()
125 LinkedList<Pair<Runnable, Integer>> queue = new LinkedList<Pair<Runnable, Integer>>(); in flush()
130 for (Pair<Runnable, Integer> p : queue) { in flush()
137 Pair<Runnable, Integer> p = mQueue.getFirst(); in scheduleNextLocked()
DFocusIndicatorView.java24 import android.util.Pair;
47 private Pair<View, Boolean> mPendingCall;
66 mPendingCall = Pair.create(mLastFocusedView, Boolean.TRUE); in onSizeChanged()
77 mPendingCall = Pair.create(v, hasFocus); in onFocusChange()
/packages/apps/Launcher2/src/com/android/launcher2/
DDeferredHandler.java23 import android.util.Pair;
35 private LinkedList<Pair<Runnable, Integer>> mQueue = new LinkedList<Pair<Runnable, Integer>>();
41 Pair<Runnable, Integer> p; in handleMessage()
83 mQueue.add(new Pair<Runnable, Integer>(runnable, type)); in post()
105 ListIterator<Pair<Runnable, Integer>> iter = mQueue.listIterator(); in cancelAllRunnablesOfType()
106 Pair<Runnable, Integer> p; in cancelAllRunnablesOfType()
124 LinkedList<Pair<Runnable, Integer>> queue = new LinkedList<Pair<Runnable, Integer>>(); in flush()
129 for (Pair<Runnable, Integer> p : queue) { in flush()
136 Pair<Runnable, Integer> p = mQueue.getFirst(); in scheduleNextLocked()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DWifiNetworksBrowseInfo.java33 import android.util.Pair;
65 private final HashMap<Pair<String, WifiSecurity>, Integer> mIdToSsidMap;
77 mIdToSsidMap = new HashMap<Pair<String, WifiSecurity>, Integer>(); in WifiNetworksBrowseInfo()
159 Pair<String, WifiSecurity> key = Pair.create(network.SSID, security); in getItemId()
306 final HashMap<Pair<String, WifiSecurity>, ScanResult> consolidatedScanResults = in getAvailableNetworks()
307 new HashMap<Pair<String, WifiSecurity>, ScanResult>(); in getAvailableNetworks()
308 HashMap<Pair<String, WifiSecurity>, Boolean> specialNetworks = new HashMap< in getAvailableNetworks()
309 Pair<String, WifiSecurity>, Boolean>(); in getAvailableNetworks()
315 Pair<String, WifiSecurity> key = Pair.create( in getAvailableNetworks()
DConnectivityListener.java36 import android.util.Pair;
297 final HashMap<Pair<String, WifiSecurity>, ScanResult> consolidatedScanResults = in getAvailableNetworks()
298 new HashMap<Pair<String, WifiSecurity>, ScanResult>(); in getAvailableNetworks()
299 HashMap<Pair<String, WifiSecurity>, Boolean> specialNetworks = new HashMap< in getAvailableNetworks()
300 Pair<String, WifiSecurity>, Boolean>(); in getAvailableNetworks()
306 Pair<String, WifiSecurity> key = Pair.create( in getAvailableNetworks()
/packages/apps/Calendar/src/com/android/calendar/alerts/
DGlobalDismissManager.java33 import android.util.Pair;
224 Map<Long, Pair<String, String>> calendarsToAccounts = in processEventIds()
234 for (Pair<String, String> accountPair : calendarsToAccounts.values()) { in processEventIds()
361 Map<Long, Pair<String, String>> calendarsToAccounts = in dismissGlobally()
371 Pair<String, String> account = calendarsToAccounts.get(calendar); in dismissGlobally()
447 private static Map<Long, Pair<String, String>> lookupCalendarToAccountMap(Context context, in lookupCalendarToAccountMap()
449 Map<Long, Pair<String, String>> calendarsToAccounts = in lookupCalendarToAccountMap()
450 new HashMap<Long, Pair<String, String>>(); in lookupCalendarToAccountMap()
466 calendarsToAccounts.put(id, new Pair<String, String>(type, name)); in lookupCalendarToAccountMap()
527 new AsyncTask<Pair<Context, Intent>, Void, Void>() { in onReceive()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DInputsActivity.java30 import android.util.Pair;
276 HashMap<Integer, ArrayList<Pair<String, TvInputInfo>>> externalInputs =
277 new HashMap<Integer, ArrayList<Pair<String, TvInputInfo>>>();
291 list = new ArrayList<Pair<String, TvInputInfo>>();
296 list.add(Pair.create(info.loadLabel(this).toString(), info));
300 for (ArrayList<Pair<String, TvInputInfo>> list : externalInputs.values()) {
301 Collections.sort(list, new Comparator<Pair<String, TvInputInfo>>() {
303 public int compare(Pair<String, TvInputInfo> a, Pair<String, TvInputInfo> b) {
311 ArrayList<Pair<String, TvInputInfo>> list = externalInputs.get(state.getKey());
317 for (Pair<String, TvInputInfo> input : list) {
DAccessibilityActivity.java49 import android.util.Pair;
726 ArrayList<Pair<String, Locale>> entryPairs = in updateDefaultLocalePref()
727 new ArrayList<Pair<String, Locale>>(availableLangs.size()); in updateDefaultLocalePref()
731 entryPairs.add(new Pair<String, Locale>( in updateDefaultLocalePref()
737 Collections.sort(entryPairs, new Comparator<Pair<String, Locale>>() { in updateDefaultLocalePref()
739 public int compare(Pair<String, Locale> lhs, Pair<String, Locale> rhs) { in updateDefaultLocalePref()
747 for (Pair<String, Locale> entry : entryPairs) { in updateDefaultLocalePref()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppManager.java49 import android.util.Pair;
115 private List<Pair<String,Long> > mWhitelist = new ArrayList<Pair<String, Long> >();
159 for (Iterator<Pair<String,Long>> iter = mWhitelist.iterator(); iter.hasNext(); ) { in cleanupWhitelist()
160 Pair<String,Long> entry = iter.next(); in cleanupWhitelist()
171 for (Iterator<Pair<String,Long>> iter = mWhitelist.iterator(); iter.hasNext(); ) { in addToWhitelist()
172 Pair<String,Long> entry = iter.next(); in addToWhitelist()
177 mWhitelist.add(new Pair<String, Long>(address, SystemClock.elapsedRealtime())); in addToWhitelist()
182 for (Pair<String,Long> entry : mWhitelist) { in isWhitelisted()
/packages/apps/Settings/src/com/android/settings/tts/
DTtsEngineSettingsFragment.java34 import android.util.Pair;
240 ArrayList<Pair<String, Locale>> entryPairs = in updateDefaultLocalePref()
241 new ArrayList<Pair<String, Locale>>(availableLangs.size()); in updateDefaultLocalePref()
245 entryPairs.add(new Pair<String, Locale>( in updateDefaultLocalePref()
251 Collections.sort(entryPairs, new Comparator<Pair<String, Locale>>() { in updateDefaultLocalePref()
253 public int compare(Pair<String, Locale> lhs, Pair<String, Locale> rhs) { in updateDefaultLocalePref()
267 for (Pair<String, Locale> entry : entryPairs) { in updateDefaultLocalePref()
/packages/apps/Camera2/src/com/android/camera/one/v2/
DImageCaptureManager.java30 import android.util.Pair;
296 private final Map<Key<?>, Pair<Long, Object>>
297 mMetadata = new ConcurrentHashMap<CaptureResult.Key<?>, Pair<Long, Object>>();
385 Pair<Long, Object> oldEntry = mMetadata.get(key); in onCaptureProgressed()
395 mMetadata.put(key, new Pair<Long, Object>(frameNumber, newValue)); in onCaptureProgressed()
566 final Pair<Long, CapturedImage> pinnedImage = mCapturedImageBuffer.tryPin(
652 final Pair<Long, CapturedImage> toCapture = mCapturedImageBuffer.tryPinGreatestSelected(
668 private boolean tryExecuteCaptureOrRelease(final Pair<Long, CapturedImage> toCapture,
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DConversationItemViewModel.java28 import android.util.Pair;
51 static LruCache<Pair<String, Long>, ConversationItemViewModel> sConversationHeaderMap
52 = new LruCache<Pair<String, Long>, ConversationItemViewModel>(MAX_CACHE_SIZE);
146 final Pair<String, Long> key = new Pair<String, Long>(account, conversationId); in forConversationIdOrNull()
183 final Pair<String, Long> key = new Pair<String, Long>(account, conversationId); in forConversationId()
/packages/apps/Camera2/src/com/android/camera/util/
DConcurrentSharedRingBuffer.java20 import android.util.Pair;
283 public Pair<Long, E> tryPin(long key) { in tryPin()
328 return Pair.create(key, entry.getElement()); in tryPin()
372 public Pair<Long, E> tryPinGreatest() { in tryPinGreatest()
392 public Pair<Long, E> tryPinGreatestSelected(Selector<E> selector) { in tryPinGreatestSelected()
413 Pair<Long, E> pinnedCandidate = tryPin(keys.get(i)); in tryPinGreatestSelected()
DCaptureDataSerializer.java25 import android.util.Pair;
160 } else if (object instanceof Pair) { in metadataValueToString()
161 return toString((Pair<?, ?>) object); in metadataValueToString()
235 private static String toString(Pair<?, ?> pair) { in toString() argument
/packages/inputmethods/LatinIME/tools/dicttool/compat/android/util/
DPair.java21 public class Pair<T1, T2> { class
25 public Pair(final T1 first, final T2 second) { in Pair() method in Pair
38 if (!(o instanceof Pair)) return false; in equals()
39 Pair<?, ?> p = (Pair<?, ?>)o; in equals()
/packages/services/Telecomm/src/com/android/server/telecom/
DConnectionServiceRepository.java22 import android.util.Pair;
33 private final HashMap<Pair<ComponentName, UserHandle>, ConnectionServiceWrapper> mServiceCache =
44 Pair<ComponentName, UserHandle> cacheKey = Pair.create(componentName, userHandle); in getService()
77 for (Pair<ComponentName, UserHandle> cacheKey : mServiceCache.keySet()) { in dump()
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/
DContactsUtilsTests.java26 import android.util.Pair;
90 final Pair<Intent, Intent> intents = ContactsUtils.buildImIntent(getContext(), im); in testImIntentCustom()
112 final Pair<Intent, Intent> intents = ContactsUtils.buildImIntent(getContext(), im); in testImIntent()
131 final Pair<Intent, Intent> intents = ContactsUtils.buildImIntent(getContext(), im); in testImIntentWithAudio()
153 final Pair<Intent, Intent> intents = ContactsUtils.buildImIntent(getContext(), im); in testImIntentWithVideo()
178 final Pair<Intent, Intent> intents = ContactsUtils.buildImIntent(getContext(), im); in testImEmailIntent()
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DThreadingTest.java23 import android.util.Pair;
63 final List<Pair<Download, String>> downloads = Lists.newArrayList(); in testFilenameRace()
74 downloads.add(Pair.create(d, body)); in testFilenameRace()
82 for (Pair<Download,String> d : downloads) { in testFilenameRace()
90 for (Pair<Download, String> d : downloads) { in testFilenameRace()
/packages/apps/UnifiedEmail/src/com/android/mail/
DMailLogService.java26 import android.util.Pair;
67 final Queue<Pair<Long, String>> mList = new LinkedList<Pair<Long, String>>();
97 mList.add(new Pair<Long, String>(System.currentTimeMillis(), message)); in put()
103 for (final Pair<Long, String> s : mList) { in toString()
/packages/apps/Exchange/src/com/android/exchange/provider/
DExchangeDirectoryProvider.java40 import android.util.Pair;
475 Pair<String, Integer> displayName = getDisplayName(galDataRow, phones); in buildGalResultCursor()
579 … private static Pair<String, Integer> getDisplayName(GalData galDataRow, List<PhoneInfo> phones) { in getDisplayName()
582 return Pair.create(displayName, DisplayNameSources.STRUCTURED_NAME); in getDisplayName()
596 return Pair.create(displayName, DisplayNameSources.STRUCTURED_NAME); in getDisplayName()
602 return Pair.create(emailAddress, DisplayNameSources.EMAIL); in getDisplayName()
609 return Pair.create(phone.mNumber, DisplayNameSources.PHONE); in getDisplayName()
612 return Pair.create(null, null); in getDisplayName()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DAdapterProperties.java27 import android.util.Pair;
51 private HashMap<Integer, Pair<Integer, Integer>> mProfileConnectionState;
80 mProfileConnectionState = new HashMap<Integer, Pair<Integer, Integer>>(); in init()
328 Pair<Integer, Integer> p = mProfileConnectionState.get(profile); in getProfileConnectionState()
452 Pair<Integer, Integer> stateNumDev = mProfileConnectionState.get(profile); in updateProfileConnectionState()
478 mProfileConnectionState.put(profile, new Pair<Integer, Integer>(newHashState, in updateProfileConnectionState()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/data/
DFilterStackSource.java24 import android.util.Pair;
168 public List<Pair<String, byte[]>> getAllStacks() { in getAllStacks()
169 List<Pair<String, byte[]>> ret = new ArrayList<Pair<String, byte[]>>(); in getAllStacks()
181 ret.add(new Pair<String, byte[]>(name, b)); in getAllStacks()
/packages/apps/ContactsCommon/src/com/android/contacts/common/
DContactsUtils.java27 import android.util.Pair;
181 public static Pair<Intent, Intent> buildImIntent(Context context, ImDataItem im) { in buildImIntent()
187 return new Pair<>(null, null); in buildImIntent()
192 return new Pair<>(null, null); in buildImIntent()
218 return new Pair<>(intent, secondaryIntent); in buildImIntent()

12