/frameworks/base/packages/SettingsLib/DeviceStateRotationLock/src/com.android.settingslib.devicestate/ |
D | PosturesHelper.kt | 53 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/ |
D | SwitchAppByDoubleTapDividerBenchmark.kt | 66 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/ |
D | SwitchAppByDoubleTapDivider.kt | 79 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/ |
D | LazyGridStateExt.kt | 30 firstOrNull { item -> in <lambda>() 40 firstOrNull { item -> in firstItemAtOffset()
|
/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/utils/ |
D | NotificationListener.kt | 81 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/ |
D | CollectionUtilsTest.java | 45 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/ |
D | WorkProfilePolicy.kt | 50 content.rootTasks.firstOrNull()?.also { in <lambda>() 64 .firstOrNull { (_, child) -> in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/interruption/ |
D | VisualInterruptionDecisionProviderImpl.kt | 327 .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/ |
D | SinglePointerTouchProcessor.kt | 95 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/ |
D | SmartspaceViewModelTest.kt | 31 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/ |
D | CustomTileInteractor.kt | 33 import kotlinx.coroutines.flow.firstOrNull 108 customTileRepository.getTiles(user).firstOrNull() in getTiles()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/ |
D | AllModel.kt | 55 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/ |
D | OpenThirdActivityOverSplitTest.kt | 84 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/ |
D | GetModel.kt | 78 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/ |
D | ScreenOffAnimationController.kt | 54 animations.firstOrNull { it.startAnimation() } in onStartedGoingToSleep() 95 animations.firstOrNull { in animateInKeyguard()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ui/binder/ |
D | CredentialPasswordViewBinder.kt | 23 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/ |
D | ZenData.kt | 19 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/ |
D | PipAppHelper.kt | 51 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/ |
D | TestExceptionDeferrer.kt | 50 deferredErrors.firstOrNull()?.let { firstError -> in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/start/ |
D | ControlsStartable.kt | 145 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/ |
D | DialogTransitionAnimator.kt | 260 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/ |
D | PermissionMethodUtils.kt | 36 ?.firstOrNull { it.qualifiedName == ANNOTATION_PERMISSION_METHOD } in hasPermissionMethodAnnotation()
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/unfold/system/ |
D | ActivityManagerActivityTypeProvider.kt | 59 return getRunningTasks(/* maxNum= */ 1)?.firstOrNull()?.isHomeActivity() in isHomeActivity()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | SysUICutoutProvider.kt | 58 cameraProtectionList.firstOrNull { it.displayUniqueId == displayUniqueId } in getCameraProtectionForDisplay()
|
/frameworks/base/tools/hoststubgen/hoststubgen/src/com/android/hoststubgen/asm/ |
D | ClassNodes.kt | 73 return findClass(className)?.fields?.firstOrNull { it.name == fieldName }?.let { fn -> in <lambda>() 85 ?.firstOrNull { it.name == methodName && it.desc == descriptor }?.let { mn -> in <lambda>()
|