Home
last modified time | relevance | path

Searched refs:mockThrowOnUnmocked (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/
DDomainVerificationSettingsMutationTest.kt35 import com.android.server.testutils.mockThrowOnUnmocked in <lambda>()
63 val context: Context = mockThrowOnUnmocked { in <lambda>()
89 val proxy: DomainVerificationProxy = mockThrowOnUnmocked { in <lambda>()
98 mockThrowOnUnmocked { whenever(linkedApps) { ArraySet<String>() } }, in <lambda>()
99 mockThrowOnUnmocked { in <lambda>()
191 fun mockPkg() = mockThrowOnUnmocked<AndroidPackageInternal> { in <lambda>()
216 fun mockPkgState() = mockThrowOnUnmocked<PackageStateInternal> { in <lambda>()
245 mockThrowOnUnmocked { in <lambda>()
249 mockThrowOnUnmocked { in <lambda>()
DDomainVerificationUserSelectionOverrideTest.kt35 import com.android.server.testutils.mockThrowOnUnmocked
68 DomainVerificationService(mockThrowOnUnmocked { in makeService()
74 }, mockThrowOnUnmocked { in makeService()
76 }, mockThrowOnUnmocked { in <lambda>()
79 setConnection(mockThrowOnUnmocked { in <lambda>()
89 mockThrowOnUnmocked { in <lambda>()
110 mockThrowOnUnmocked<PackageStateInternal> { in mockPkgState()
111 val pkg = mockThrowOnUnmocked<AndroidPackageInternal> { in mockPkgState()
DDomainVerificationEnforcerTest.kt41 import com.android.server.testutils.mockThrowOnUnmocked in <lambda>()
85 setCallback(mockThrowOnUnmocked { in <lambda>()
101 mockThrowOnUnmocked { in <lambda>()
105 mockThrowOnUnmocked { in <lambda>()
125 mockThrowOnUnmocked { whenever(linkedApps) { ArraySet<String>() } }, in <lambda>()
126 mockThrowOnUnmocked { in <lambda>()
321 fun mockPkg(packageName: String) = mockThrowOnUnmocked<AndroidPackageInternal> { in <lambda>()
348 mockThrowOnUnmocked<PackageStateInternal> { in <lambda>()
368 private val proxy: DomainVerificationProxy = mockThrowOnUnmocked { in <lambda>()
391 val context: Context = mockThrowOnUnmocked() in <lambda>()
[all …]
DDomainVerificationManagerApiTest.kt45 import com.android.server.testutils.mockThrowOnUnmocked in <lambda>()
352 mockThrowOnUnmocked { in <lambda>()
503 val context = mockThrowOnUnmocked<Context>() in <lambda>()
504 val binderInterface = mockThrowOnUnmocked<IDomainVerificationManager>() in <lambda>()
543 DomainVerificationService(mockThrowOnUnmocked { in <lambda>()
550 }, mockThrowOnUnmocked { in <lambda>()
552 }, mockThrowOnUnmocked { in <lambda>()
555 setConnection(mockThrowOnUnmocked { in <lambda>()
566 mockThrowOnUnmocked { in <lambda>()
583 ) = mockThrowOnUnmocked<PackageStateInternal> { in <lambda>()
[all …]
DDomainVerificationCollectorTest.kt31 import com.android.server.testutils.mockThrowOnUnmocked
44 private val platformCompat: PlatformCompat = mockThrowOnUnmocked { in <lambda>()
91 val pkg = mockThrowOnUnmocked<AndroidPackageInternal> { in verifyV1NoValidIntentFilter()
184 val systemConfig = mockThrowOnUnmocked<SystemConfig> { in mockCollector()
266 return mockThrowOnUnmocked { in mockPkg()
DDomainVerificationProxyTest.kt38 import com.android.server.testutils.mockThrowOnUnmocked in <lambda>()
88 context = mockThrowOnUnmocked { in <lambda>()
97 manager = mockThrowOnUnmocked { in <lambda>()
126 collector = mockThrowOnUnmocked { in <lambda>()
508 mockThrowOnUnmocked<Connection> { in <lambda>()
516 mockThrowOnUnmocked<DeviceIdleInternal> { in <lambda>()
529 return mockThrowOnUnmocked { whenever(packageName) { pkgName } } in <lambda>()
DDomainVerificationPackageTest.kt48 import com.android.server.testutils.mockThrowOnUnmocked in <lambda>()
1075 ) = DomainVerificationService(mockThrowOnUnmocked { in <lambda>()
1081 }, mockThrowOnUnmocked { in <lambda>()
1083 }, mockThrowOnUnmocked { in <lambda>()
1086 setConnection(mockThrowOnUnmocked { in <lambda>()
1104 mockThrowOnUnmocked<Computer> { in <lambda>()
1117 ) = mockThrowOnUnmocked<PackageStateInternal> { in <lambda>()
1118 val pkg = mockThrowOnUnmocked<AndroidPackageInternal> { in <lambda>()
/frameworks/base/services/tests/PackageManagerComponentOverrideTests/src/com/android/server/pm/test/override/
DPackageManagerComponentLabelIconOverrideTest.kt48 import com.android.server.testutils.mockThrowOnUnmocked in <lambda>()
354 val mockComponentResolver: ComponentResolver = mockThrowOnUnmocked { in <lambda>()
359 whenever(this.snapshot()) { this@mockThrowOnUnmocked } in <lambda>()
362 val mockUserManagerService: UserManagerService = mockThrowOnUnmocked { in <lambda>()
366 val mockUserManagerInternal: UserManagerInternal = mockThrowOnUnmocked { in <lambda>()
370 val mockActivityTaskManager: ActivityTaskManagerInternal = mockThrowOnUnmocked { in <lambda>()
373 val mockAppsFilter: AppsFilterImpl = mockThrowOnUnmocked { in <lambda>()
376 whenever(this.snapshot()) { this@mockThrowOnUnmocked } in <lambda>()
379 val mockContext: Context = mockThrowOnUnmocked { in <lambda>()
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/
DPackageManagerLocalSnapshotTest.kt27 import com.android.server.testutils.mockThrowOnUnmocked
39 private val service = mockThrowOnUnmocked<PackageManagerService> { in <lambda>()
152 private fun mockSnapshot() = mockThrowOnUnmocked<Computer> { in pmLocal()
180 private fun mockPackageState(packageName: String) = mockThrowOnUnmocked<PackageStateInternal> { in <lambda>()
/frameworks/base/services/tests/servicestests/src/com/android/server/om/
DOverlayReferenceMapperTests.kt21 import com.android.server.testutils.mockThrowOnUnmocked in <lambda>()
235 private fun mockTarget(increment: Int = 0) = mockThrowOnUnmocked<AndroidPackage> { in <lambda>()
242 private fun mockOverlay(increment: Int = 0) = mockThrowOnUnmocked<AndroidPackage> { in <lambda>()
DOverlayActorEnforcerTests.kt26 import com.android.server.testutils.mockThrowOnUnmocked in <lambda>()
282 ) = mockThrowOnUnmocked<PackageState> { in <lambda>()
285 val androidPackage = mockThrowOnUnmocked<AndroidPackage> { in <lambda>()
/frameworks/base/services/tests/servicestests/utils-mockito/com/android/server/testutils/
DMockitoUtils.kt92 inline fun <reified T> mockThrowOnUnmocked(block: T.() -> Unit = {}) = in <lambda>() method
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/parsing/parcelling/
DAndroidPackageTest.kt48 import com.android.server.testutils.mockThrowOnUnmocked in <lambda>()
577 mockThrowOnUnmocked { in <lambda>()