/packages/apps/Car/libs/car-arch-common/tests/robotests/src/com/android/car/arch/common/ |
D | LiveDataFunctionsTest.java | 93 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/ |
D | SiteMapManager.java | 72 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/ |
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/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeCertReqPayloadTest.java | 42 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/ |
D | LiveDataFunctions.java | 498 public static <T, U> LiveData<Pair<T, U>> pair( 522 return (pair) -> { 523 if (pair == null) { 526 consumer.accept(pair.first, pair.second); 539 return (pair) -> { 540 if (pair == null) { 543 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; 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/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeMessage.java | 165 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/Dialer/src/com/android/car/dialer/ui/dialpad/ |
D | InCallDialpadFragment.java | 62 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/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/simaka/ |
D | EapSimTypeDataTest.java | 73 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/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 | 155 final Pair<Drawable, String> pair = in onDeviceAttributesChanged() local 157 if (pair.first != null) { in onDeviceAttributesChanged() 158 setIcon(pair.first); in onDeviceAttributesChanged() 159 contentDescription = pair.second; in onDeviceAttributesChanged() 254 pair(); in onClicked() 278 private void pair() { in pair() method in BluetoothDevicePreference
|
D | BluetoothDetailsHeaderController.java | 75 final Pair<Drawable, String> pair = in setHeaderProperties() local 86 mHeaderController.setIcon(pair.first); in setHeaderProperties() 87 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/modules/DnsResolver/ |
D | ResolverController.cpp | 258 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()
|
D | PrivateDnsConfiguration.h | 44 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/ |
D | LineupSelectionFragment.java | 101 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/ |
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/TV/jni/ |
D | tunertvinput_jni.cpp | 62 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/ |
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/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()
|