/packages/apps/Car/libs/car-arch-common/tests/robotests/src/com/android/car/arch/common/ |
D | LiveDataFunctionsTest.java | 95 pair(trueLiveData(), false), in testNot() 96 pair(falseLiveData(), true), in testNot() 97 pair(nullLiveData(), null)); in testNot() 106 pair(dataOf(new Object()), false), in testEmitsNull() 107 pair(nullLiveData(), true)); in testEmitsNull() 172 pair(pair(trueLiveData(), trueLiveData()), true), in testAnd_truthTable() 173 pair(pair(trueLiveData(), falseLiveData()), false), in testAnd_truthTable() 174 pair(pair(trueLiveData(), nullLiveData()), null), in testAnd_truthTable() 175 pair(pair(falseLiveData(), trueLiveData()), false), in testAnd_truthTable() 176 pair(pair(falseLiveData(), falseLiveData()), false), in testAnd_truthTable() [all …]
|
/packages/apps/Email/tests/src/com/android/email/mail/transport/ |
D | MockTransport.java | 127 Transaction pair = new Transaction(pattern, responses); in expect() local 128 mPairs.add(pair); in expect() 156 private void sendResponse(Transaction pair) { in sendResponse() argument 157 switch (pair.mAction) { in sendResponse() 159 for (String s : pair.mResponses) { in sendResponse() 167 Assert.fail("Invalid action for sendResponse: " + pair.mAction); in sendResponse() 260 Transaction pair = mPairs.get(0); in readLine() local 261 if (pair.mPattern == null) { in readLine() 263 sendResponse(pair); in readLine() 318 Transaction pair = mPairs.remove(0); in writeLine() local [all …]
|
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/sitemap/ |
D | SiteMapManager.java | 70 final SiteMapPair pair = lookUpParent(currentClass, currentTitle); in buildBreadCrumb() local 71 if (pair == null) { in buildBreadCrumb() 77 breadcrumbs.add(0, pair.getParentTitle()); in buildBreadCrumb() 78 currentClass = pair.getParentClass(); in buildBreadCrumb() 79 currentTitle = pair.getParentTitle(); in buildBreadCrumb() 100 final SiteMapPair pair = new SiteMapPair( in init() local 105 mPairs.add(pair); in init() 117 for (SiteMapPair pair : mPairs) { in lookUpParent() 118 if (TextUtils.equals(pair.getChildClass(), clazz) in lookUpParent() 119 && TextUtils.equals(title, pair.getChildTitle())) { in lookUpParent() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/ |
D | MetadataUtils.java | 96 String [] pair; in convertRationalLatLonToFloat() local 97 pair = parts[0].split("/"); in convertRationalLatLonToFloat() 98 double degrees = Double.parseDouble(pair[0].trim()) in convertRationalLatLonToFloat() 99 / Double.parseDouble(pair[1].trim()); in convertRationalLatLonToFloat() 101 pair = parts[1].split("/"); in convertRationalLatLonToFloat() 102 double minutes = Double.parseDouble(pair[0].trim()) in convertRationalLatLonToFloat() 103 / Double.parseDouble(pair[1].trim()); in convertRationalLatLonToFloat() 105 pair = parts[2].split("/"); in convertRationalLatLonToFloat() 106 double seconds = Double.parseDouble(pair[0].trim()) in convertRationalLatLonToFloat() 107 / Double.parseDouble(pair[1].trim()); in convertRationalLatLonToFloat()
|
/packages/services/Telephony/testapps/ImsTestService/src/com/android/phone/testapps/imstestapp/ |
D | TestMmTelFeatureImpl.java | 81 for (CapabilityChangeRequest.CapabilityPair pair : request.getCapabilitiesToEnable()) { in changeEnabledCapabilities() 82 mEnabledCapabilities.get(pair.getRadioTech()).addCapabilities(pair.getCapability()); in changeEnabledCapabilities() 84 for (CapabilityChangeRequest.CapabilityPair pair : request.getCapabilitiesToDisable()) { in changeEnabledCapabilities() 85 mEnabledCapabilities.get(pair.getRadioTech()).removeCapabilities(pair.getCapability()); in changeEnabledCapabilities()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/audio/ |
D | AudioTrackMonitor.java | 92 Pair<Long, Integer> pair = mPtsList.get(mPtsList.size() - 1); in addPts() local 93 mPtsList.set(mPtsList.size() - 1, Pair.create(pair.first, pair.second + 1)); in addPts() 119 for (Pair<Long, Integer> pair : mPtsList) { in maybeLog() 122 .append(pair.first) in maybeLog() 124 .append(pair.second) in maybeLog()
|
/packages/apps/Camera2/src/com/android/camera/async/ |
D | ConcurrentState.java | 68 for (ExecutorListenerPair pair : mListeners) { in update() 69 pair.run(); in update() 77 final ExecutorListenerPair pair = new ExecutorListenerPair(executor, callback); in addCallback() local 78 mListeners.add(pair); in addCallback() 82 mListeners.remove(pair); in addCallback()
|
/packages/apps/Car/libs/car-arch-common/src/com/android/car/arch/common/ |
D | LiveDataFunctions.java | 499 public static <T, U> LiveData<Pair<T, U>> pair( 523 return (pair) -> { 524 if (pair == null) { 527 consumer.accept(pair.first, pair.second); 540 return (pair) -> { 541 if (pair == null) { 544 return function.apply(pair.first, pair.second);
|
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/ |
D | MetadataController.java | 20 import static com.android.car.arch.common.LiveDataFunctions.pair; 181 pair(playbackViewModel.getMetadata(), playbackViewModel.getProgress()).observe( in MetadataController() 182 lifecycleOwner, pair -> { in MetadataController() 184 pair.first == null ? null : pair.first.getAlbumTitle(); in MetadataController() 188 boolean hasTime = pair.second.hasTime(); in MetadataController()
|
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/dialpad/ |
D | InCallDialpadFragment.java | 60 viewModel.getCallStateAndConnectTime().observe(this, (pair) -> { in onCreateView() 61 if (pair == null) { in onCreateView() 66 if (pair.first == Call.STATE_ACTIVE) { in onCreateView() 67 mCallStateView.setBase(pair.second in onCreateView() 73 getContext(), pair.first)); in onCreateView()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/ |
D | BluetoothDevicePreference.java | 136 final Pair<Drawable, String> pair = in onDeviceAttributesChanged() local 138 if (pair.first != null) { in onDeviceAttributesChanged() 139 setIcon(pair.first); in onDeviceAttributesChanged() 140 contentDescription = pair.second; in onDeviceAttributesChanged() 226 pair(); in onClicked() 250 private void pair() { in pair() method in BluetoothDevicePreference
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | BluetoothDevicePreference.java | 137 final Pair<Drawable, String> pair = in onDeviceAttributesChanged() local 139 if (pair.first != null) { in onDeviceAttributesChanged() 140 setIcon(pair.first); in onDeviceAttributesChanged() 141 contentDescription = pair.second; in onDeviceAttributesChanged() 229 pair(); in onClicked() 253 private void pair() { in pair() method in BluetoothDevicePreference
|
D | BluetoothDetailsHeaderController.java | 74 final Pair<Drawable, String> pair = in setHeaderProperties() local 82 mHeaderController.setIcon(pair.first); in setHeaderProperties() 83 mHeaderController.setIconContentDescription(pair.second); in setHeaderProperties()
|
/packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/ |
D | VhalEventVerifier.java | 88 for (MismatchedEventPair pair : mMismatchedEvents) { in getResultString() 89 resultBuilder.append("Index " + pair.idx + ": Expected " in getResultString() 90 + pair.expectedEvent + ", Received " in getResultString() 91 + pair.mismatchedEvent + "\n"); in getResultString()
|
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/indexing/ |
D | IndexDataConverter.java | 139 for (Pair<String, String> pair : siteMapClassNames) { in convertSiteMapPairs() 140 final String parentName = classToTitleMap.get(pair.first); in convertSiteMapPairs() 141 final String childName = classToTitleMap.get(pair.second); in convertSiteMapPairs() 144 + pair + parentName + childName); in convertSiteMapPairs() 146 pairs.add(new SiteMapPair(pair.first, parentName, pair.second, childName)); in convertSiteMapPairs()
|
/packages/apps/TV/partner_support/samples/src/com/example/partnersupportsampletvinput/ |
D | LineupSelectionFragment.java | 98 for (Pair<Lineup, Integer> pair : result) { in onCreate() 99 Lineup lineup = pair.first; in onCreate() 108 .description(pair.second + " channels match") in onCreate() 186 public int compare(Pair<Lineup, Integer> pair, Pair<Lineup, Integer> other) { in lineupChannelMatchCount() 187 return Integer.compare(other.second, pair.second); in lineupChannelMatchCount()
|
/packages/apps/Dialer/java/com/android/incallui/disconnectdialog/ |
D | DisconnectMessage.java | 46 Pair<Dialog, CharSequence> pair = disconnectDialog.createDialog(context, call); in DisconnectMessage() local 47 dialog = pair.first; in DisconnectMessage() 48 toastMessage = pair.second; in DisconnectMessage()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/ |
D | CallLogPullRequest.java | 109 for (Pair<String, String> pair : irmc) { in onPullComplete() 110 if (pair.first.startsWith(TIMESTAMP_PROPERTY)) { in onPullComplete() 112 values.put(CallLog.Calls.DATE, parser.parse(pair.second).getTime()); in onPullComplete() 116 Log.d(TAG, pair.second); in onPullComplete()
|
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/ |
D | BluetoothDevicePreference.java | 81 final Pair<Drawable, String> pair = com.android.settingslib.bluetooth.BluetoothUtils in refreshUi() local 83 if (pair.first != null) { in refreshUi() 84 setIcon(pair.first); in refreshUi()
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastChannelManager.java | 126 for (String pair : pairs) { in CellBroadcastChannelRange() 127 pair = pair.trim(); in CellBroadcastChannelRange() 128 String[] tokens = pair.split("="); in CellBroadcastChannelRange()
|
/packages/services/Car/service/src/com/android/car/pm/ |
D | VendorServiceInfo.java | 130 String[] pair = keyValueStr.split("="); in parse() local 131 String key = pair[0]; in parse() 132 String val = pair[1]; in parse()
|
/packages/apps/Camera2/src/com/android/camera/util/ |
D | CaptureDataSerializer.java | 222 private static String toString(Pair<?, ?> pair) { in toString() argument 223 return "Pair: " + metadataValueToString(pair.first) + " / " in toString() 224 + metadataValueToString(pair.second); in toString()
|
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/browse/ |
D | MediaBrowserViewModelImpl.java | 23 import static com.android.car.arch.common.LiveDataFunctions.pair; 80 loadingSwitchMap(pair(mConnectedMediaBrowser, mCurrentBrowseId), in MediaBrowserViewModelImpl() 86 loadingSwitchMap(pair(mConnectedMediaBrowser, mCurrentSearchQuery), in MediaBrowserViewModelImpl()
|
/packages/apps/Car/Dialer/tests/robotests/src/com/android/car/dialer/ui/activecall/ |
D | InCallViewModelTest.java | 160 Pair<Integer, Long> pair = mInCallViewModel.getCallStateAndConnectTime().getValue(); in testGetCallStateAndConnectTime() local 161 assertThat(pair.first).isEqualTo(Call.STATE_DIALING); in testGetCallStateAndConnectTime() 162 assertThat(pair.second).isEqualTo(CONNECT_TIME_MILLIS); in testGetCallStateAndConnectTime()
|
/packages/apps/Dialer/java/com/android/incallui/calllocation/impl/ |
D | HttpFetcher.java | 168 for (Pair<String, String> pair : headers) { in setMethodAndHeaders() 169 conn.setRequestProperty(pair.first, pair.second); in setMethodAndHeaders()
|