Home
last modified time | relevance | path

Searched refs:getOrNull (Results 1 – 25 of 35) sorted by relevance

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DNotificationTargetsHelper.kt53 visibleGroupChildren.getOrNull(indexOfParentSwipedView - 1) in findRoundableTargets()
57 visibleGroupChildren.getOrNull(indexOfParentSwipedView + 1) in findRoundableTargets()
59 visibleStackChildren.getOrNull(it + 1) in findRoundableTargets()
67 visibleStackChildren.getOrNull(indexOfSwipedView - 1)?.takeIf { in findRoundableTargets()
72 visibleStackChildren.getOrNull(indexOfSwipedView + 1)?.takeIf { in findRoundableTargets()
/frameworks/base/packages/SystemUI/src/com/android/systemui/unfold/
DSysUIUnfoldModule.kt26 import com.android.systemui.util.kotlin.getOrNull
62 val p1 = provider.getOrNull() in provideSysUIUnfoldComponent()
63 val p2 = rotationProvider.getOrNull() in provideSysUIUnfoldComponent()
64 val p3 = scopedProvider.getOrNull() in provideSysUIUnfoldComponent()
DUnfoldKeyguardVisibilityListener.kt7 import com.android.systemui.util.kotlin.getOrNull
28 unfoldComponent.getOrNull()?.getUnfoldKeyguardVisibilityManager()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/mediator/
DScreenOnCoordinator.kt26 import com.android.systemui.util.kotlin.getOrNull
43 SysUIUnfoldComponent::getUnfoldLightRevealOverlayAnimation).getOrNull()
45 SysUIUnfoldComponent::getFoldAodAnimationController).getOrNull()
/frameworks/libs/net/common/tests/unit/src/com/android/net/module/util/
DTrackRecordTest.kt65 assertEquals(11, record.getOrNull(9)) in <lambda>()
67 assertEquals(2, record.getOrNull(record.size - 1)) in <lambda>()
72 assertNull(record.getOrNull(800)) in <lambda>()
73 assertNull(record.getOrNull(-1)) in <lambda>()
74 assertNull(record.getOrNull(repeats + 1)) in <lambda>()
75 assertNull(record.getOrNull(800) { true }) in <lambda>()
76 assertNull(record.getOrNull(-1) { true }) in <lambda>()
77 assertNull(record.getOrNull(repeats + 1) { true }) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/data/quickaffordance/
DHomeControlsKeyguardQuickAffordanceConfig.kt39 import com.android.systemui.util.kotlin.getOrNull in <lambda>()
66 stateInternal(component.getControlsListingController().getOrNull()) in <lambda>()
78 component.getControlsListingController().getOrNull()?.getCurrentServices() in <lambda>()
80 component.getControlsController().getOrNull()?.getFavorites()?.isNotEmpty() == true in <lambda>()
152 component.getControlsController().getOrNull()?.getFavorites() in <lambda>()
/frameworks/libs/net/common/testutils/hostdevice/com/android/net/module/util/
DTrackRecord.kt104 elements.getOrNull(pollForIndexReadLocked(timeoutMs, pos, predicate)) in <lambda>()
108 fun getOrNull(pos: Int, predicate: (E) -> Boolean) = lock.withLock { in <lambda>() method
268 return getOrNull(index) in newReadHead()
282 fun peek(): E? = checkThread { getOrNull(readHead) } in newReadHead()
/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/appselector/data/
DRecentTaskListProvider.kt22 import com.android.systemui.util.kotlin.getOrNull in <lambda>()
47 private val recents by lazy { recentTasks.getOrNull() } in <lambda>()
/frameworks/base/tools/xmlpersistence/src/main/kotlin/
DParser.kt97 val name = typeDeclaration.fullyQualifiedName.getOrNull() ?: continue in parse()
114 val annotation = classDeclaration.getAnnotationByName("XmlPersistence").getOrNull() in parsePersistenceInfo()
119 val rootXmlName = classDeclaration.getAnnotationByName("XmlName").getOrNull() in parsePersistenceInfo()
199 private fun <T> Optional<T>.getOrNull(): T? = orElse(null) in getOrNull() method
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/kotlin/
Dnullability.kt30 inline fun <T> Optional<T>.getOrNull(): T? = orElse(null) method
/frameworks/base/services/flags/java/com/android/server/flags/
DDynamicFlagBinderDelegate.java80 DynamicFlagData data = mDynamicFlags.getOrNull(namespace, name);
135 DynamicFlagData data = mDynamicFlags.getOrNull(ns, name); in syncDynamicFlag()
189 DynamicFlagData data = mDynamicFlags.getOrNull(namespace, name); in getFlagValue()
DFeatureFlagsBinder.java91 String value = mFlagCache.getOrNull(ns, name); in syncFlags()
131 value = mFlagCache.getOrNull(ns, name); in queryFlags()
DFlagCache.java94 V getOrNull(String namespace, String name) { in getOrNull() method in FlagCache
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPhoneStatusBarViewController.kt41 import com.android.systemui.util.kotlin.getOrNull in <lambda>()
258 unfoldComponent.getOrNull()?.getStatusBarMoveFromCenterAnimationController() in <lambda>()
265 progressProvider.getOrNull(), in <lambda>()
/frameworks/base/tools/codegen/src/com/android/codegen/
DClassInfo.kt14 val superClass = classAst.extendedTypes.getOrNull(0) in <lambda>()
DUtils.kt114 action(t, getOrNull(index + 1)) in forEachSequentialPair()
DFileInfo.kt217 nextNestedClass = classBounds.nestedDataClasses.getOrNull(0)))) in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/common/coroutine/
DCoroutineResultTest.kt38 assertThat(actual.getOrNull()).isEqualTo("Placeholder") in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/view/layout/
DKeyguardBlueprintCommandListener.kt42 val arg = args.getOrNull(0) in execute()
/frameworks/base/services/tests/servicestests/src/com/android/server/flags/
DFlagCacheTest.java34 assertThat(mFlagCache.getOrNull(NS, NAME)).isNull(); in testGetOrNull_unset()
/frameworks/base/packages/SystemUI/src/com/android/systemui/notetask/
DNoteTaskRoleManagerExt.kt86 .getOrNull() in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/commandline/
DParameters.kt148 wrapped.getValue(thisRef, property).getOrNull(0) in getValue()
/frameworks/base/packages/SystemUI/compose/core/src/com/android/compose/animation/scene/
DSceneTransitionLayoutImpl.kt123 val newKey = channel.tryReceive().getOrNull() ?: newKey in <lambda>()
/frameworks/base/tools/lint/framework/checks/src/main/java/com/google/android/lint/parcel/
DCallMigrators.kt67 val itemType = containerType.parameters.getOrNull(0) ?: return null in <lambda>()
/frameworks/base/packages/CredentialManager/src/com/android/credentialmanager/getflow/
DGetModel.kt252 remoteEntry = remoteEntryList.getOrNull(0), in toProviderDisplayInfo()

12