Home
last modified time | relevance | path

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

/packages/modules/Connectivity/staticlibs/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>()
/packages/modules/Connectivity/staticlibs/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
273 return getOrNull(index) in newReadHead()
306 fun peek(): E? = checkThread { getOrNull(readHead) } in newReadHead()
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/data/paging/
DFakeInMemoryAlbumPagingSource.kt88 if (DATA.getOrNull(startIndex) == null) { in <lambda>()
95 val nextRow = DATA.getOrNull(endIndex + 1) in <lambda>()
107 val prevPageRow = DATA.getOrNull((startIndex) - params.loadSize) in <lambda>()
DFakeInMemoryMediaPagingSource.kt91 if (DATA.getOrNull(startIndex) == null) { in <lambda>()
98 val nextRow = DATA.getOrNull(endIndex + 1) in <lambda>()
108 val prevPageRow = DATA.getOrNull((startIndex) - params.loadSize) in <lambda>()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/contentpreview/
DCachingImagePreviewImageLoader.kt100 .getOrNull() in <lambda>()
106 runCatching { cache[uri].await() }.getOrNull() in <lambda>()
110 kotlin.runCatching { cache[uri].getCompleted() }.getOrNull() in <lambda>()
DUriMetadataHelpers.kt87 .getOrNull()
104 .getOrNull() in Cursor()
DIsHttpUri.kt30 .getOrNull() != null
/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/api/
DDataTypeDescriptorSet.kt28 requireNotNull(getOrNull(name)) { "Could not find a DataTypeDescriptor for name: \"$name\"" } in get()
31 fun getOrNull(name: String): DataTypeDescriptor? method
/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/api/integration/
DDefaultDataTypeDescriptorSet.kt39 override fun getOrNull(name: String): DataTypeDescriptor? = dtdsByName[name] in <lambda>() method in com.android.libraries.pcc.chronicle.api.integration.DefaultDataTypeDescriptorSet
62 is FieldType.Nested -> getOrNull(fieldType.name) in <lambda>()
63 is FieldType.Reference -> getOrNull(fieldType.name) in <lambda>()
/packages/modules/IntentResolver/tests/activity/src/com/android/intentresolver/
DTestContentProvider.kt34 runCatching { uri.getQueryParameter(PARAM_MIME_TYPE) }.getOrNull() in query()
48 .getOrNull() in getStreamTypes()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/contentpreview/payloadtoggle/domain/cursor/
DPayloadToggleCursorResolver.kt57 .getOrNull() in <lambda>()
67 .getOrNull() in <lambda>()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/icon/
DComposeIcon.kt73 .getOrNull() in PackageManager()
86 .getOrNull() in Icon()
/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageList.kt43 import kotlin.jvm.optionals.getOrNull in <lambda>()
154 ) ?: DataUsageUtils.getMobileNetworkTemplateFromSubId(context, intent).getOrNull() in <lambda>()
DAppDataUsageCycleController.kt100 usageDetailsDataList.getOrNull(position)?.let(onUsageDataUpdated) in onItemSelected()
DDataUsageListHeaderController.kt115 cycles.getOrNull(position)?.let(updateSelectedCycle) in setSelectedCycle()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/
DTaskbarInsetsController.kt58 import kotlin.jvm.optionals.getOrNull in <lambda>()
163 .getOrNull() in <lambda>()
417 controllers.bubbleControllers.getOrNull()?.let { bubbleControllers -> in <lambda>()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/util/
DLazyStringResource.kt54 fun valueOrNull(context: Context): String? = runCatching { value(context) }.getOrNull() in <lambda>()
/packages/modules/Connectivity/tests/integration/src/com/android/server/net/integrationtests/
DNetworkStatsIntegrationTest.kt177 it.lp.stackedLinks.getOrNull(0)?.linkAddresses?.getOrNull(0) != null in <lambda>()
/packages/apps/Settings/src/com/android/settings/spa/app/
DAllAppList.kt118 when (SpinnerItem.entries.getOrNull(option)) { in transform()
/packages/apps/Settings/src/com/android/settings/spa/app/battery/
DBatteryOptimizationModeAppListPageProvider.kt111 when (OptimizationModeSpinnerItem.entries.getOrNull(option)) { in transform()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/
DCollapsableIssuesCardHelper.kt415 issueCardPreferences.getOrNull(indexOfFirstHiddenIssue) in <lambda>()
/packages/apps/Settings/src/com/android/settings/spa/app/appcompat/
DUserAspectRatioAppsPageProvider.kt194 when (SpinnerItem.entries.getOrNull(option)) { in filter()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/widget/
DScrollableImagePreviewView.kt497 .getOrNull() in <lambda>()