Home
last modified time | relevance | path

Searched refs:pair (Results 1 – 25 of 87) sorted by relevance

1234

/packages/apps/Car/libs/car-arch-common/tests/robotests/src/com/android/car/arch/common/
DLiveDataFunctionsTest.java93 pair(trueLiveData(), false), in testNot()
94 pair(falseLiveData(), true), in testNot()
95 pair(nullLiveData(), null)); in testNot()
104 pair(dataOf(new Object()), false), in testEmitsNull()
105 pair(nullLiveData(), true)); in testEmitsNull()
170 pair(pair(trueLiveData(), trueLiveData()), true), in testAnd_truthTable()
171 pair(pair(trueLiveData(), falseLiveData()), false), in testAnd_truthTable()
172 pair(pair(trueLiveData(), nullLiveData()), null), in testAnd_truthTable()
173 pair(pair(falseLiveData(), trueLiveData()), false), in testAnd_truthTable()
174 pair(pair(falseLiveData(), falseLiveData()), false), in testAnd_truthTable()
[all …]
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/sitemap/
DSiteMapManager.java72 final SiteMapPair pair = lookUpParent(currentClass, currentTitle); in buildBreadCrumb() local
73 if (pair == null) { in buildBreadCrumb()
79 final String parentTitle = pair.getParentTitle(); in buildBreadCrumb()
83 currentClass = pair.getParentClass(); in buildBreadCrumb()
84 currentTitle = pair.getParentTitle(); in buildBreadCrumb()
105 final SiteMapPair pair = new SiteMapPair( in init() local
110 mPairs.add(pair); in init()
122 for (SiteMapPair pair : mPairs) { in lookUpParent()
123 if (TextUtils.equals(pair.getChildClass(), clazz) in lookUpParent()
124 && TextUtils.equals(title, pair.getChildTitle())) { in lookUpParent()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/
DMetadataUtils.java96 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/
DTestMmTelFeatureImpl.java81 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/
DAudioTrackMonitor.java92 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/
DConcurrentState.java68 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/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeCertReqPayloadTest.java42 Pair<IkePayload, Integer> pair = in testDecode() local
48 IkeCertReqPayload certPayload = (IkeCertReqPayload) pair.first; in testDecode()
53 assertEquals(NEXT_PAYLOAD_TYPE, (int) pair.second); in testDecode()
58 Pair<IkePayload, Integer> pair = in testEncode() local
63 IkeCertReqPayload certPayload = (IkeCertReqPayload) pair.first; in testEncode()
/packages/apps/Car/libs/car-arch-common/src/com/android/car/arch/common/
DLiveDataFunctions.java499 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/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeMessage.java165 Pair<IkePayload, Integer> pair = in decodePayloadList() local
167 IkePayload payload = pair.first; in decodePayloadList()
184 currentPayloadType = pair.second; in decodePayloadList()
607 Pair<IkeSkPayload, Integer> pair; in decode() local
609 pair = in decode()
641 + ((IkeSkfPayload) pair.first).fragmentNum in decode()
643 + ((IkeSkfPayload) pair.first).totalFragments in decode()
658 byte[] decryptedBytes = pair.first.getUnencryptedData(); in decode()
659 int firstPayloadType = pair.second; in decode()
670 (IkeSkfPayload) (pair.first), in decode()
[all …]
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/
DMetadataController.java20 import static com.android.car.arch.common.LiveDataFunctions.pair;
176 pair(playbackViewModel.getMetadata(), playbackViewModel.getProgress()).observe( in MetadataController()
177 lifecycleOwner, pair -> { in MetadataController()
179 pair.first == null ? null : pair.first.getAlbumTitle(); in MetadataController()
183 boolean hasTime = pair.second.hasTime(); in MetadataController()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/dialpad/
DInCallDialpadFragment.java62 viewModel.getCallStateAndConnectTime().observe(this, (pair) -> { in onCreateView()
67 if (pair == null) { in onCreateView()
72 if (pair.first == Call.STATE_ACTIVE) { in onCreateView()
73 mCallStateView.setBase(pair.second in onCreateView()
79 getContext(), pair.first)); in onCreateView()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/
DBluetoothDevicePreference.java136 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/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/simaka/
DEapSimTypeDataTest.java73 Entry<Integer, EapSimAkaAttribute> pair = itr.next(); in testConstructor() local
74 assertEquals(EAP_AT_VERSION_LIST, (int) pair.getKey()); in testConstructor()
75 assertEquals(Arrays.asList(1), ((AtVersionList) pair.getValue()).versions); in testConstructor()
77 pair = itr.next(); in testConstructor()
78 assertEquals(EAP_AT_PERMANENT_ID_REQ, (int) pair.getKey()); in testConstructor()
79 assertTrue(pair.getValue() instanceof AtPermanentIdReq); in testConstructor()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothDevicePreference.java137 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
DBluetoothDetailsHeaderController.java74 final Pair<Drawable, String> pair = in setHeaderProperties() local
82 mHeaderController.setIcon(pair.first); in setHeaderProperties()
83 mHeaderController.setIconContentDescription(pair.second); in setHeaderProperties()
/packages/modules/DnsResolver/tests/
Dtun_forwarder.cpp70 v4pair pair; in makePair() local
71 if (inet_pton(AF_INET, addrs[0].c_str(), &pair.src) != 1 || in makePair()
72 inet_pton(AF_INET, addrs[1].c_str(), &pair.dst) != 1) { in makePair()
75 return pair; in makePair()
88 v6pair pair; in makePair() local
89 if (inet_pton(AF_INET6, addrs[0].c_str(), &pair.src) != 1 || in makePair()
90 inet_pton(AF_INET6, addrs[1].c_str(), &pair.dst) != 1) { in makePair()
93 return pair; in makePair()
/packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/
DVhalEventVerifier.java88 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/
DIndexDataConverter.java139 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/modules/DnsResolver/
DResolverController.cpp258 for (const auto& pair : privateDnsStatus.serversMap) { in getResolverInfo() local
259 tlsServers->push_back(addrToString(&pair.first.ss)); in getResolverInfo()
358 for (const auto& pair : privateDnsStatus.serversMap) { in dump() local
359 dw.println("%s name{%s} status{%s}", addrToString(&pair.first.ss).c_str(), in dump()
360 pair.first.name.c_str(), validationStatusToString(pair.second)); in dump()
DPrivateDnsConfiguration.h44 for (const auto& pair : serversMap) { in validatedServers() local
45 if (pair.second == Validation::success) { in validatedServers()
46 servers.push_back(pair.first); in validatedServers()
/packages/apps/TV/partner_support/samples/src/com/example/partnersupportsampletvinput/
DLineupSelectionFragment.java101 for (Pair<Lineup, Integer> pair : result) { in onCreate()
102 Lineup lineup = pair.first; in onCreate()
111 .description(pair.second + " channels match") in onCreate()
189 public int compare(Pair<Lineup, Integer> pair, Pair<Lineup, Integer> other) { in lineupChannelMatchCount()
190 return Integer.compare(other.second, pair.second); in lineupChannelMatchCount()
/packages/apps/Dialer/java/com/android/incallui/disconnectdialog/
DDisconnectMessage.java46 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/
DCallLogPullRequest.java109 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/TV/jni/
Dtunertvinput_jni.cpp62 sDvbManagers.insert(std::pair<jlong, DvbManager *>(deviceId, dvbManager)); in Java_com_android_tv_tuner_TunerHal_nativeTune__JILjava_lang_String_2I()
85 std::pair<jlong, DvbManager *>(deviceId, dvbManager)); in Java_com_android_tv_tuner_TunerHal_nativeTune__JIILjava_lang_String_2I()
214 sDvbManagers.insert(std::pair<jlong, DvbManager *>(deviceId, dvbManager)); in Java_com_android_tv_tuner_TunerHal_nativeGetDeliverySystemType()
240 std::pair<jlong, DvbManager *>(deviceId, dvbManager)); in Java_com_android_tv_tuner_TunerHal_nativeGetDeliverySystemTypes()
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothDevicePreference.java81 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()

1234