Home
last modified time | relevance | path

Searched refs:findFirst (Results 1 – 25 of 85) sorted by relevance

1234

/frameworks/base/core/tests/coretests/src/android/os/
DBluetoothBatteryStatsTest.java52 .filter(s->s.uid == 42).findFirst().get(); in parcelability()
61 .filter(s->s.uid == 99).findFirst().get(); in parcelability()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DTopPriority.java46 .filter(a -> a.hasAuthority(authority)).findFirst(); in resolve()
53 adminPolicies.entrySet().stream().findFirst().get(); in resolve()
/frameworks/base/media/tests/MtpTests/src/android/mtp/
DMtpStorageManagerTest.java941 .stream().filter(MtpStorageManager.MtpObject::isDir).findFirst().get(); in testCopyObjectSuccess()
944 .filter(o -> !o.isDir()).findFirst().get(); in testCopyObjectSuccess()
968 .filter(o -> o.getName().equals(newDirTo.getName())).findFirst().get(); in testCopyObjectSuccessRecursive()
971 .filter(o -> o.getName().equals(newDirFrom.getName())).findFirst().get(); in testCopyObjectSuccessRecursive()
1013 .filter(MtpStorageManager.MtpObject::isDir).findFirst().get(); in testCopyObjectFailed()
1016 .filter(o -> !o.isDir()).findFirst().get(); in testCopyObjectFailed()
1036 .filter(MtpStorageManager.MtpObject::isDir).findFirst().get(); in testCopyObjectFailedAdded()
1039 .filter(o -> !o.isDir()).findFirst().get(); in testCopyObjectFailedAdded()
1066 .filter(MtpStorageManager.MtpObject::isDir).findFirst().get(); in testCopyObjectFailedDeleted()
1069 .filter(o -> !o.isDir()).findFirst().get(); in testCopyObjectFailedDeleted()
[all …]
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DTestModelEnrollmentDatabase.java122 .findFirst() in getKeyphraseSoundModel()
135 .findFirst() in getKeyphraseSoundModel()
/frameworks/base/core/java/android/hardware/fingerprint/
DFingerprintSensorConfigurations.java137 (instanceName) -> !instanceName.equals(instance)).findFirst(); in getSensorNameNotForInstance()
146 Optional<String> optionalInstance = mSensorPropsMap.keySet().stream().findFirst(); in getSensorInstance()
/frameworks/base/core/java/android/hardware/face/
DFaceSensorConfigurations.java136 (instanceName) -> !instanceName.equals(instance)).findFirst(); in getSensorNameNotForInstance()
145 Optional<String> optionalInstance = mSensorPropsMap.keySet().stream().findFirst(); in getSensorInstance()
/frameworks/base/services/tests/servicestests/src/com/android/server/appop/
DAppOpsDeviceAwareServiceTest.java138 .findFirst() in noteProxyOpWithDeviceId()
144 .findFirst() in noteProxyOpWithDeviceId()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/
DHotspotNetworkDetailsTracker.java120 .findFirst().orElse(null); in handleServiceConnected()
135 == mChosenEntry.getHotspotNetworkEntryKey().getDeviceId()).findFirst().orElse( in handleHotspotNetworksUpdated()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/data/
DDataProfileManager.java322 .findFirst() in updateDataProfiles()
338 .findFirst() in updateDataProfiles()
351 .findFirst() in updateDataProfiles()
451 defaultProfile = internetNetworks.stream().findFirst().get().getDataProfile(); in onInternetDataNetworkConnected()
502 .findFirst() in getPreferredDataProfileFromDb()
522 .findFirst() in getPreferredDataProfileFromConfig()
571 .findFirst() in updatePreferredDataProfile()
621 .findFirst() in updateInitialAttachDataProfileAtModem()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
DAnnotationLinkSpan.java64 && info.mAnnotation.get().equals(key)).findFirst(); in linkify()
/frameworks/base/packages/SystemUI/src/com/android/systemui/clipboardoverlay/
DClipboardOverlayUtils.java75 }).findFirst(); in getAction() method in ClipboardOverlayUtils
/frameworks/layoutlib/bridge/src/android/view/
DChoreographer_Delegate.java105 .findFirst(); in findCallingClassLoader()
/frameworks/base/tools/app_metadata_bundles/src/test/java/com/android/asllib/testutils/
DTestUtils.java75 .findFirst() in getElementsFromResource()
107 .findFirst(); in removeOdChildEleWithName()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DCsipDeviceManager.java269 .findFirst().orElse(null); in getPreferredMainDevice()
296 .findFirst() in getPreferredMainDevice()
/frameworks/base/services/tests/apexsystemservices/src/com/android/server/
DApexSystemServicesTestCases.java134 .findFirst() in getDebugMessage()
/frameworks/base/core/java/android/widget/
DRemoteCollectionItemsAdapter.java131 .findFirst() in initLayoutIdToViewType()
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DPowerStatsExporterTest.java194 .filter(us -> us.getUid() == APP_UID1).findFirst().orElse(null); in combinedProcessStates()
294 .filter(us -> us.getUid() == uid).findFirst().orElse(null); in assertUidPowerEstimate()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/d2d/
DRtpTransport.java442 .findFirst(); in extractMessage()
624 .findFirst().get().getLocalIdentifier(); in getRtpHeaderExtensionIdentifier()
/frameworks/base/packages/SystemUI/src/com/android/systemui/lifecycle/
DRepeatWhenAttached.kt205 stream.filter(::isFrameInteresting).limit(5).findFirst() in isFrameInteresting()
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger_middleware/
DSoundTriggerDuplicateModelHandler.java199 var model = mModelList.stream().filter(x -> x.getUuid().equals(uuid)).findFirst(); in checkDuplicateModelUuid()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DApexManagerTest.java153 .findFirst() in findActive()
163 .findFirst() in findFactory()
223 assertThat(services.stream().map(ApexSystemServiceInfo::getName).findFirst().orElse(null)) in testGetApexSystemServices()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DKernelCpuThreadReaderEndToEndTest.java140 .findFirst(); in getAverageWorkTime()
/frameworks/base/core/java/android/view/contentprotection/
DContentProtectionEventProcessor.java134 .findFirst() in processViewAppearedEvent()
/frameworks/base/core/java/android/app/slice/
DSliceQuery.java146 && (item.hasHints(hints) && !item.hasAnyHints(nonHints))).findFirst().orElse(null); in find()
/frameworks/base/media/java/android/media/soundtrigger/
DSoundTriggerManager.java109 .findFirst() in SoundTriggerManager()
160 .findFirst() in getTestModuleProperties()

1234