Home
last modified time | relevance | path

Searched refs:firstOrNull (Results 1 – 25 of 130) sorted by relevance

123456

/frameworks/base/packages/SettingsLib/DeviceStateRotationLock/src/com.android.settingslib.devicestate/
DPosturesHelper.kt53 DEVICE_STATE_ROTATION_KEY_FOLDED -> foldedDeviceStates.firstOrNull() in postureToDeviceState()
54 DEVICE_STATE_ROTATION_KEY_HALF_FOLDED -> halfFoldedDeviceStates.firstOrNull() in postureToDeviceState()
55 DEVICE_STATE_ROTATION_KEY_UNFOLDED -> unfoldedDeviceStates.firstOrNull() in postureToDeviceState()
56 DEVICE_STATE_ROTATION_KEY_REAR_DISPLAY -> rearDisplayDeviceStates.firstOrNull() in postureToDeviceState()
/frameworks/base/libs/WindowManager/Shell/tests/flicker/splitscreen/src/com/android/wm/shell/flicker/splitscreen/benchmark/
DSwitchAppByDoubleTapDividerBenchmark.kt66 it.wmState.visibleWindows.firstOrNull { window -> in <lambda>()
71 it.wmState.visibleWindows.firstOrNull { window -> in <lambda>()
98 it.layerState.visibleLayers.firstOrNull { window -> in <lambda>()
103 it.layerState.visibleLayers.firstOrNull { window -> in <lambda>()
/frameworks/base/libs/WindowManager/Shell/tests/flicker/service/src/com/android/wm/shell/flicker/service/splitscreen/scenarios/
DSwitchAppByDoubleTapDivider.kt79 it.wmState.visibleWindows.firstOrNull { window -> in <lambda>()
84 it.wmState.visibleWindows.firstOrNull { window -> in <lambda>()
111 it.layerState.visibleLayers.firstOrNull { window -> in <lambda>()
116 it.layerState.visibleLayers.firstOrNull { window -> in <lambda>()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/extensions/
DLazyGridStateExt.kt30 firstOrNull { item -> in <lambda>()
40 firstOrNull { item -> in firstItemAtOffset()
/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/utils/
DNotificationListener.kt81 return notifications.values.firstOrNull(predicate) in findNotification()
90 return waitForResult(extractor = { it.notifications.values.firstOrNull(predicate) }) in waitForNotificationToAppear()
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DCollectionUtilsTest.java45 assertNull(CollectionUtils.firstOrNull(res)); in testList()
52 assertEquals(RED, CollectionUtils.firstOrNull(res)); in testList()
59 assertEquals(RED, CollectionUtils.firstOrNull(res)); in testList()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/policy/
DWorkProfilePolicy.kt50 content.rootTasks.firstOrNull()?.also { in <lambda>()
64 .firstOrNull { (_, child) -> in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/interruption/
DVisualInterruptionDecisionProviderImpl.kt327 .firstOrNull { it.suppressInterruptions(entry) } in checkSuppressInterruptions()
332 .firstOrNull { it.suppressAwakeInterruptions(entry) } in checkSuppressAwakeInterruptions()
337 .firstOrNull { it.suppressAwakeHeadsUp(entry) } in checkSuppressAwakeHeadsUp()
342 .firstOrNull { it.types.contains(type) && it.shouldSuppress() } in checkConditions()
347 .firstOrNull { it.types.contains(type) && it.shouldSuppress(entry) } in checkFilters()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/udfps/
DSinglePointerTouchProcessor.kt95 val pointerOnSensorId = touch.pointersOnSensor.firstOrNull() ?: INVALID_POINTER_ID in processActionMove()
108 ?: touch.data.firstOrNull() ?: NormalizedTouchData() in processActionMove()
123 ?: touch.data.firstOrNull() ?: NormalizedTouchData() in processActionUp()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/smartspace/
DSmartspaceViewModelTest.kt31 import kotlinx.coroutines.flow.firstOrNull
99 val isAwake = withTimeoutOrNull(100) { underTest.isAwake.firstOrNull() } in weatherView_isAwakeTrue_doesNotEmit()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/custom/domain/interactor/
DCustomTileInteractor.kt33 import kotlinx.coroutines.flow.firstOrNull
108 customTileRepository.getTiles(user).firstOrNull() in getTiles()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/
DAllModel.kt55 val control = controls.firstOrNull { it.control.controlId == id }?.control in <lambda>()
69 val toChange = elements.firstOrNull { in <lambda>()
/frameworks/base/tests/FlickerTests/ActivityEmbedding/src/com/android/server/wm/flicker/activityembedding/open/
DOpenThirdActivityOverSplitTest.kt84 this.entry.displays.firstOrNull { it.isOn && !it.isVirtual } in mainActivityLayersAlwaysVisible()
95 this.entry.displays.firstOrNull { it.isOn && !it.isVirtual } in mainActivityLayersAlwaysVisible()
/frameworks/base/packages/CredentialManager/src/com/android/credentialmanager/getflow/
DGetModel.kt78 val firstEntry = singleAccountEntryList.firstOrNull() in <lambda>()
93 val entryList = sortedUserNameToCredentialEntryList.firstOrNull() ?: return null in getCredentialEntryListIffSingleAccount()
114 val entry = entryList.firstOrNull() ?: return null in findAutoSelectEntry()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DScreenOffAnimationController.kt54 animations.firstOrNull { it.startAnimation() } in onStartedGoingToSleep()
95 animations.firstOrNull { in animateInKeyguard()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ui/binder/
DCredentialPasswordViewBinder.kt23 import kotlinx.coroutines.flow.firstOrNull in <lambda>()
46 viewModel.inputFlags.firstOrNull()?.let { flags -> passwordField.inputType = flags } in <lambda>()
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/clocks/
DZenData.kt19 fun fromInt(zenMode: Int) = values().firstOrNull { it.zenMode == zenMode } in <lambda>()
/frameworks/base/tests/FlickerTests/test-apps/app-helpers/src/com/android/server/wm/flicker/helpers/
DPipAppHelper.kt51 mediaSessionManager.getActiveSessions(null).firstOrNull { in <lambda>()
390 it.wmState.visibleWindows.firstOrNull { window -> in <lambda>()
408 it.wmState.visibleWindows.firstOrNull { window -> in <lambda>()
433 it.wmState.visibleWindows.firstOrNull { window -> in <lambda>()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/test/
DTestExceptionDeferrer.kt50 deferredErrors.firstOrNull()?.let { firstError -> in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/start/
DControlsStartable.kt145 panels.firstOrNull { it.componentName.packageName == name } in <lambda>()
180 panels.firstOrNull { it.componentName == currentSelection.componentName } != null in <lambda>()
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/
DDialogTransitionAnimator.kt260 openedDialogs.firstOrNull { in <lambda>()
311 openedDialogs.firstOrNull { it.dialog == animateFrom }?.dialogContentWithBackground in <lambda>()
347 openedDialogs.firstOrNull { in <lambda>()
370 val animatedDialog = openedDialogs.firstOrNull { it.dialog == dialog } ?: return null in <lambda>()
474 openedDialogs.firstOrNull { it.dialog == dialog }?.prepareForStackDismiss() in <lambda>()
/frameworks/base/tools/lint/common/src/main/java/com/google/android/lint/
DPermissionMethodUtils.kt36 ?.firstOrNull { it.qualifiedName == ANNOTATION_PERMISSION_METHOD } in hasPermissionMethodAnnotation()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/unfold/system/
DActivityManagerActivityTypeProvider.kt59 return getRunningTasks(/* maxNum= */ 1)?.firstOrNull()?.isHomeActivity() in isHomeActivity()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSysUICutoutProvider.kt58 cameraProtectionList.firstOrNull { it.displayUniqueId == displayUniqueId } in getCameraProtectionForDisplay()
/frameworks/base/tools/hoststubgen/hoststubgen/src/com/android/hoststubgen/asm/
DClassNodes.kt73 return findClass(className)?.fields?.firstOrNull { it.name == fieldName }?.let { fn -> in <lambda>()
85 ?.firstOrNull { it.name == methodName && it.desc == descriptor }?.let { mn -> in <lambda>()

123456