/packages/modules/Connectivity/thread/tests/unit/src/android/net/thread/ |
D | ThreadNetworkControllerTest.java | 141 invoke -> { in registerStateCallback_callbackIsInvokedWithCallingAppIdentity() 142 getStateCallback(invoke).onDeviceRoleChanged(DEVICE_ROLE_CHILD); in registerStateCallback_callbackIsInvokedWithCallingAppIdentity() 165 invoke -> { in registerOperationalDatasetCallback_callbackIsInvokedWithCallingAppIdentity() 166 getOperationalDatasetCallback(invoke) in registerOperationalDatasetCallback_callbackIsInvokedWithCallingAppIdentity() 168 getOperationalDatasetCallback(invoke) in registerOperationalDatasetCallback_callbackIsInvokedWithCallingAppIdentity() 210 invoke -> { in createRandomizedDataset_callbackIsInvokedWithCallingAppIdentity() 211 getCreateDatasetReceiver(invoke).onSuccess(DEFAULT_DATASET); in createRandomizedDataset_callbackIsInvokedWithCallingAppIdentity() 221 invoke -> { in createRandomizedDataset_callbackIsInvokedWithCallingAppIdentity() 222 getCreateDatasetReceiver(invoke).onError(ERROR_UNSUPPORTED_CHANNEL, ""); in createRandomizedDataset_callbackIsInvokedWithCallingAppIdentity() 253 invoke -> { in join_callbackIsInvokedWithCallingAppIdentity() [all …]
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/additionalaccess/ |
D | LoadExerciseRoutePermissionUseCaseTest.kt | 70 whenever(loadDeclaredHealthPermissionUseCase.invoke(safeEq(TEST_APP_PACKAGE_NAME))).then { in setup() 73 whenever(getHealthPermissionsFlagsUseCase.invoke(any(), any())).then { in setup() 85 val state = useCase.invoke(TEST_APP_PACKAGE_NAME) in <lambda>() 96 whenever(loadDeclaredHealthPermissionUseCase.invoke(safeEq(TEST_APP_PACKAGE_NAME))).then { in <lambda>() 100 val state = useCase.invoke(safeEq(TEST_APP_PACKAGE_NAME)) in <lambda>() 112 whenever(getHealthPermissionsFlagsUseCase.invoke(any(), any())).then { flags } in <lambda>() 114 val state = useCase.invoke(TEST_APP_PACKAGE_NAME) in <lambda>() 123 whenever(getHealthPermissionsFlagsUseCase.invoke(any(), any())).then { in <lambda>() 127 val state = useCase.invoke(TEST_APP_PACKAGE_NAME) in <lambda>() 137 whenever(getHealthPermissionsFlagsUseCase.invoke(any(), any())).then { in <lambda>() [all …]
|
D | AdditionalAccessViewModelTest.kt | 110 whenever(loadAccessDateUseCase.invoke(anyString())).thenReturn(NOW) in setup() 115 whenever(loadDeclaredHealthPermissionUseCase.invoke(TEST_APP_PACKAGE_NAME)) in setup() 124 whenever(getHealthPermissionsFlagsUseCase.invoke(any(), any())).then { in setup() 129 whenever(getAdditionalPermissionUseCase.invoke(TEST_APP_PACKAGE_NAME)) in setup() 150 whenever(loadAccessDateUseCase.invoke(TEST_APP_PACKAGE_NAME)).thenReturn(accessDate) in loadAccessDate_returnsCorrectDate() 157 whenever(getGrantedHealthPermissionsUseCase.invoke(TEST_APP_PACKAGE_NAME)) in <lambda>() 196 whenever(getGrantedHealthPermissionsUseCase.invoke(TEST_APP_PACKAGE_NAME)) in <lambda>() 235 whenever(getGrantedHealthPermissionsUseCase.invoke(TEST_APP_PACKAGE_NAME)) in loadAdditionalAccessPreferences_backgroundReadNotEnabled_doesNotReturnBackgroundRead() 274 whenever(getGrantedHealthPermissionsUseCase.invoke(TEST_APP_PACKAGE_NAME)) in loadAdditionalAccessPreferences_noReadPermissionsGranted_additionalPermissionsDisabled() 315 whenever(getGrantedHealthPermissionsUseCase.invoke(TEST_APP_PACKAGE_NAME)) in <lambda>() [all …]
|
/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/api/cantrip/ |
D | Cantrip.kt | 25 operator fun invoke(datum: Data): Data? method 33 operator fun <Data> Cantrip<Data>.invoke(sequence: Sequence<Data>): Sequence<Data> = method 34 sequence.mapNotNull(::invoke) 37 operator fun <Data> Cantrip<Data>.invoke(list: List<Data>): List<Data> = method 38 invoke(list.asSequence()).toList() 41 operator fun <Data> Cantrip<Data>.invoke(set: Set<Data>): Set<Data> = method 42 invoke(set.asSequence()).toSet()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/migration/api/ |
D | LoadMigrationRestoreStateUseCaseTest.kt | 51 assertThat(useCase.invoke()) in <lambda>() 65 assertThat(useCase.invoke()) in invoke_migrationStateAllowedMigratorDisabled_mapsStateToAllowedMigratorDisabled() 78 assertThat(useCase.invoke()) in <lambda>() 91 assertThat(useCase.invoke()) in <lambda>() 104 assertThat(useCase.invoke()) in <lambda>() 117 assertThat(useCase.invoke()) in <lambda>() 130 assertThat(useCase.invoke()) in <lambda>() 143 assertThat(useCase.invoke()) in invoke_migrationStateModuleUpgradeRequired_mapsStateToModuleUpgradeRequired() 156 assertThat(useCase.invoke()) in <lambda>() 169 assertThat(useCase.invoke()) in <lambda>() [all …]
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utils/di/ |
D | FakeComponents.kt | 74 override suspend fun invoke(): List<AccessLog> { in invoke() method in com.android.healthconnect.controller.tests.utils.di.FakeRecentAccessUseCase 86 override suspend fun invoke(): List<ConnectedAppMetadata> { in invoke() method in com.android.healthconnect.controller.tests.utils.di.FakeHealthPermissionAppsUseCase 98 override suspend fun invoke(input: LoadDataEntriesInput): UseCaseResults<List<FormattedEntry>> { in invoke() method in com.android.healthconnect.controller.tests.utils.di.FakeLoadDataEntriesUseCase 114 override suspend fun invoke( in invoke() method in com.android.healthconnect.controller.tests.utils.di.FakeLoadMenstruationDataUseCase 148 override suspend fun invoke( in invoke() method in com.android.healthconnect.controller.tests.utils.di.FakeLoadDataAggregationsUseCase 181 override suspend fun invoke( in invoke() method in com.android.healthconnect.controller.tests.utils.di.FakeLoadMostRecentAggregationsUseCase 231 override suspend fun invoke( in invoke() method in com.android.healthconnect.controller.tests.utils.di.FakeLoadPriorityEntriesUseCase 260 override suspend fun invoke( in invoke() method in com.android.healthconnect.controller.tests.utils.di.FakeLoadPotentialPriorityListUseCase 281 override suspend fun invoke( in invoke() method in com.android.healthconnect.controller.tests.utils.di.FakeLoadPriorityListUseCase 313 override suspend fun invoke(priorityList: List<String>, category: Int) { in invoke() method in com.android.healthconnect.controller.tests.utils.di.FakeUpdatePriorityListUseCase [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/ |
D | CompatUtils.java | 93 public static Object invoke(final Object receiver, final Object defaultValue, in invoke() method in CompatUtils 99 return method.invoke(receiver, args); in invoke() 178 public T invoke(final Object receiver, final Object... args) { in invoke() method in CompatUtils.ToObjectMethodWrapper 179 return (T) CompatUtils.invoke(receiver, mDefaultValue, mMethod, args); in invoke() 190 public int invoke(final Object receiver, final Object... args) { in invoke() method in CompatUtils.ToIntMethodWrapper 191 return (int) CompatUtils.invoke(receiver, mDefaultValue, mMethod, args); in invoke() 202 public float invoke(final Object receiver, final Object... args) { in invoke() method in CompatUtils.ToFloatMethodWrapper 203 return (float) CompatUtils.invoke(receiver, mDefaultValue, mMethod, args); in invoke() 214 public boolean invoke(final Object receiver, final Object... args) { in invoke() method in CompatUtils.ToBooleanMethodWrapper 215 return (boolean) CompatUtils.invoke(receiver, mDefaultValue, mMethod, args); in invoke()
|
D | NotificationCompatUtils.java | 59 CompatUtils.invoke(builder, null, METHOD_setColor, color); in setColor() 63 CompatUtils.invoke(builder, null, METHOD_setVisibility, VISIBILITY_SECRET); in setVisibilityToSecret() 67 CompatUtils.invoke(builder, null, METHOD_setCategory, CATEGORY_RECOMMENDATION); in setCategoryToRecommendation() 71 CompatUtils.invoke(builder, null, METHOD_setPriority, PRIORITY_LOW); in setPriorityToLow() 78 return (Notification) CompatUtils.invoke(builder, null, METHOD_build); in build()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/datasources/api/ |
D | LoadMostRecentAggregationsUseCaseTest.kt | 97 val result = loadMostRecentAggregationsUseCase.invoke(HealthDataCategory.ACTIVITY) in <lambda>() 134 val result = loadMostRecentAggregationsUseCase.invoke(HealthDataCategory.ACTIVITY) in loadMostRecentAggregations_forActivity_whenNoStepsData_returnsInOrder_DistanceCalories() 167 val result = loadMostRecentAggregationsUseCase.invoke(HealthDataCategory.ACTIVITY) in loadMostRecentAggregations_forActivity_whenNoDistanceData_returnsInOrder_StepsCalories() 200 val result = loadMostRecentAggregationsUseCase.invoke(HealthDataCategory.ACTIVITY) in loadMostRecentAggregations_forActivity_whenNoCaloriesData_returnsInOrder_StepsDistance() 217 val result = loadMostRecentAggregationsUseCase.invoke(HealthDataCategory.ACTIVITY) in <lambda>() 233 val result = loadMostRecentAggregationsUseCase.invoke(HealthDataCategory.SLEEP) in loadMostRecentAggregations_forSleep_sessionsSpanOneDay_returnsAggregationInfoForOneDay() 259 val result = loadMostRecentAggregationsUseCase.invoke(HealthDataCategory.SLEEP) in loadMostRecentAggregations_forSleep_sessionsSpanTwoDays_returnsAggregationInfoWithStartAndEndTime() 273 val result = loadMostRecentAggregationsUseCase.invoke(HealthDataCategory.SLEEP) in <lambda>() 283 val result = loadMostRecentAggregationsUseCase.invoke(HealthDataCategory.ACTIVITY) in loadMostRecentAggregations_whenLoadLastDateWithPriorityDataFails_returnsFailure() 297 val result = loadMostRecentAggregationsUseCase.invoke(HealthDataCategory.ACTIVITY) in <lambda>() [all …]
|
D | LoadLastDateWithPriorityDataUseCaseTest.kt | 101 val result = loadLastDateWithPriorityDataUseCase.invoke(HealthPermissionType.STEPS) in <lambda>() 120 val result = loadLastDateWithPriorityDataUseCase.invoke(HealthPermissionType.STEPS) in <lambda>() 139 val result = loadLastDateWithPriorityDataUseCase.invoke(HealthPermissionType.STEPS) in <lambda>() 159 val result = loadLastDateWithPriorityDataUseCase.invoke(HealthPermissionType.STEPS) in <lambda>() 184 val result = loadLastDateWithPriorityDataUseCase.invoke(HealthPermissionType.STEPS) in <lambda>() 238 val result = loadLastDateWithPriorityDataUseCase.invoke(HealthPermissionType.STEPS) in <lambda>() 277 val result = loadLastDateWithPriorityDataUseCase.invoke(HealthPermissionType.STEPS) in <lambda>() 324 val result = loadLastDateWithPriorityDataUseCase.invoke(healthPermissionType) in <lambda>() 371 val result = loadLastDateWithPriorityDataUseCase.invoke(healthPermissionType) in <lambda>() 418 val result = loadLastDateWithPriorityDataUseCase.invoke(healthPermissionType) in <lambda>() [all …]
|
/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/api/policy/contextrules/ |
D | PolicyContextRule.kt | 32 operator fun invoke(context: TypedMap): Boolean in invoke() method 42 override fun invoke(context: TypedMap): Boolean = true in invoke() method 53 override fun invoke(context: TypedMap): Boolean = lhs(context) && rhs(context) in and() method in com.android.libraries.pcc.chronicle.api.policy.contextrules.And 64 override fun invoke(context: TypedMap): Boolean = lhs(context) || rhs(context) in or() method in com.android.libraries.pcc.chronicle.api.policy.contextrules.Or 74 override fun invoke(context: TypedMap): Boolean = !inner(context) in not() method in com.android.libraries.pcc.chronicle.api.policy.contextrules.Not
|
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/widget/ |
D | BatchPreviewLoaderTest.kt | 81 verify(onCompletion, times(1)).invoke() in <lambda>() 82 val list = withArgCaptor { verify(onUpdate, times(1)).invoke(capture()) }.map { it.uri } in <lambda>() 104 verify(onCompletion, times(1)).invoke() in <lambda>() 105 val list = withArgCaptor { verify(onUpdate, times(1)).invoke(capture()) }.map { it.uri } in <lambda>() 129 verify(onCompletion, times(1)).invoke() in <lambda>() 131 captureMany { verify(onUpdate, atLeast(1)).invoke(capture()) } in <lambda>() 158 verify(onCompletion, times(1)).invoke() in <lambda>() 160 captureMany { verify(onUpdate, atLeast(1)).invoke(capture()) } in <lambda>() 206 override suspend fun invoke(uri: Uri, cache: Boolean): Bitmap? { in invoke() method
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/datasources/api/ |
D | LoadMostRecentAggregationsUseCase.kt | 49 override suspend operator fun invoke( in <lambda>() method in com.android.healthconnect.controller.datasources.api.LoadMostRecentAggregationsUseCase 65 loadLastDateWithPriorityDataUseCase.invoke(permissionType)) { in <lambda>() 83 loadLastDateWithPriorityDataUseCase.invoke(HealthPermissionType.SLEEP)) { in <lambda>() 123 return when (val useCaseResult = loadDataAggregationsUseCase.invoke(input)) { in <lambda>() 171 return when (val useCaseResult = loadDataAggregationsUseCase.invoke(aggregationInput)) { in <lambda>() 185 suspend fun invoke( method
|
/packages/services/Car/tests/CustomizationTool/src/com/android/car/customization/tool/ui/ |
D | MainLayoutView.kt | 45 if (event.action == MotionEvent.ACTION_DOWN) touchListener?.invoke(/* inside = */true) in onTouchEvent() 46 if (event.action == MotionEvent.ACTION_OUTSIDE) touchListener?.invoke(/* inside = */false) in onTouchEvent() 51 if (event.action == MotionEvent.ACTION_DOWN) touchListener?.invoke(/* inside = */true) in onInterceptTouchEvent() 52 if (event.action == MotionEvent.ACTION_OUTSIDE) touchListener?.invoke(/* inside = */false) in onInterceptTouchEvent()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissiontypes/ |
D | HealthPermissionTypesViewModel.kt | 109 val permissionTypes = loadPermissionTypesUseCase.invoke(category) in loadData() 112 when (val result = loadPriorityListUseCase.invoke(category)) { in loadData() 132 val appsWithHealthPermissions = loadContributingAppsUseCase.invoke(category) in loadAppsWithData() 144 filterPermissionTypesUseCase.invoke(category, selectedAppPackageName) in filterPermissionTypes() 148 val allPermissionTypes = loadPermissionTypesUseCase.invoke(category) in filterPermissionTypes() 158 updatePriorityListUseCase.invoke(newPriorityList, category) in updatePriorityList()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/app/ |
D | AppPermissionViewModel.kt | 156 permissionsList = loadAppPermissionsStatusUseCase.invoke(packageName) in <lambda>() 179 loadAppPermissionsStatusUseCase.invoke(packageName).filter { it.isGranted } in <lambda>() 198 return loadAccessDateUseCase.invoke(packageName) in <lambda>() 226 grantPermissionsStatusUseCase.invoke(packageName, fitnessPermission.toString()) in <lambda>() 251 revokePermissionsStatusUseCase.invoke(packageName, permission) in <lambda>() 256 revokePermissionsStatusUseCase.invoke(packageName, fitnessPermission.toString()) in <lambda>() 278 grantPermissionsStatusUseCase.invoke(packageName, it.toString()) in <lambda>() 314 revokeAllHealthPermissionsUseCase.invoke(packageName) in <lambda>() 336 deleteAppDataUseCase.invoke(appData, timeRangeFilter) in <lambda>()
|
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/model/grid/ui/viewmodel/ |
D | GridScreenViewModelTest.kt | 83 var optionItemsValue = checkNotNull(optionItemsValueProvider.invoke()) in <lambda>() 90 item1OnClickedValue?.invoke() in <lambda>() 92 optionItemsValue = checkNotNull(optionItemsValueProvider.invoke()) in <lambda>() 103 collectLastValue(optionItem.isSelected).invoke() == true in <lambda>() 110 return collectLastValue(optionItem.onClicked).invoke() in <lambda>()
|
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/ |
D | CellBroadcastReceiverAppTest.java | 97 method.invoke(null); in clearNewMessageList() 107 return (ArrayList<SmsCbMessage>) method.invoke(null, message); in addNewMessageToList() 119 return (ArrayList<SmsCbMessage>) method.invoke(null, message); in removeReadMessage() 125 return (SmsCbMessage) method.invoke(null); in getLatestMessage() 131 return (ArrayList<SmsCbMessage>) method.invoke(null); in getNewMessageList()
|
/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/api/operation/ |
D | Operation.kt | 37 abstract override fun invoke(value: A): Action<out B> in invoke() method in com.android.libraries.pcc.chronicle.api.operation.Operation 70 override fun invoke(value: A): Action<out Nothing> { in createNonUpdating() method 83 override fun invoke(value: A): Action<out A> = block(value) in create() method 99 override fun invoke(value: A): Action<out B> = block(value) in createTransform() method
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/deletion/ |
D | DeletionViewModel.kt | 123 _deletionParameters.value?.let { deleteEntryUseCase.invoke(deletionType) } in delete() 127 deleteAllDataUseCase.invoke(timeRangeFilter) in delete() 133 deleteCategoryUseCase.invoke(deletionType, timeRangeFilter) in delete() 139 deletePermissionTypeUseCase.invoke(deletionType, timeRangeFilter) in delete() 144 deleteAppDataUseCase.invoke( in delete()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/connectedapps/ |
D | LoadHealthPermissionApps.kt | 44 override suspend operator fun invoke(): List<ConnectedAppMetadata> = in <lambda>() method in com.android.healthconnect.controller.permissions.connectedapps.LoadHealthPermissionApps 47 val appsWithData = getContributorAppInfoUseCase.invoke() in <lambda>() 49 val recentAccess = queryRecentAccessLogsUseCase.invoke() in <lambda>() 89 suspend fun invoke(): List<ConnectedAppMetadata> method
|
/packages/modules/IntentResolver/java/src/com/android/intentresolver/contentpreview/ |
D | ImageLoader.kt | 42 override suspend fun invoke(uri: Uri) = invoke(uri, true) method 50 override suspend fun invoke(uri: Uri, caching: Boolean): Bitmap? method
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/autodelete/api/ |
D | LoadAutoDeleteUseCaseTest.kt | 55 val result = loadAutoDeleteUseCase.invoke() in <lambda>() 64 val result = loadAutoDeleteUseCase.invoke() in loadAutoDeleteUseCase_whenRecordRetention540days_returns18months() 73 val result = loadAutoDeleteUseCase.invoke() in loadAutoDeleteUseCase_whenRecordRetention0days_returns0months() 83 val result = loadAutoDeleteUseCase.invoke() in <lambda>()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/view/ |
D | PreviewTabs.kt | 92 onTabSelected?.invoke(0) in onTransitionCompleted() 97 onTabSelected?.invoke(1) in onTransitionCompleted() 126 onTabSelected?.invoke(0) in onInterceptTouchEvent() 129 onTabSelected?.invoke(1) in onInterceptTouchEvent() 220 onTabSelected?.invoke(0) in setCustomAccessibilityDelegate() 250 onTabSelected?.invoke(1) in setCustomAccessibilityDelegate()
|
/packages/apps/WallpaperPicker2/tests/robotests/src/com/android/wallpaper/picker/customization/ui/viewmodel/ |
D | CustomizationPickerViewModelTest.kt | 117 collectLastValue(underTest.lockScreenTab)()?.onClicked?.invoke() in setInitialScreen - home screen - but lock screen already selected from before() 140 homeScreenTab()?.onClicked?.invoke() in switching to the home screen() 154 homeScreenTab()?.onClicked?.invoke() in switching to the home screen and back to the lock screen() 155 lockScreenTab()?.onClicked?.invoke() in switching to the home screen and back to the lock screen() 168 oldHomeScreenTab()?.onClicked?.invoke() in restores saved state()
|