Home
last modified time | relevance | path

Searched refs:mockAdapter (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/uninstall/
DUninstallCompleteCallbackTest.kt45 lateinit var mockAdapter: PackageDeleteObserver variable in com.android.server.pm.test.uninstall.UninstallCompleteCallbackTest
49 mockAdapter.onUserActionRequired(intent) in onUserActionRequired()
52 mockAdapter.onPackageDeleted(basePackageName, returnCode, msg) in onPackageDeleted()
63 doReturn(mockBinder).`when`(mockAdapter).binder in testCallDelegation()
65 val callback = UninstallCompleteCallback(mockAdapter.binder.asBinder()) in testCallDelegation()
68 verify(mockAdapter, times(1)).onPackageDeleted(PACKAGE_NAME, in testCallDelegation()
74 doReturn(mockBinder).`when`(mockAdapter).binder in testClassIsParcelable()
76 val callback = UninstallCompleteCallback(mockAdapter.binder.asBinder()) in testClassIsParcelable()
87 verify(mockAdapter, times(1)).onPackageDeleted(PACKAGE_NAME, in testClassIsParcelable()
/frameworks/base/services/tests/servicestests/src/com/android/server/audio/
DAudioDeviceBrokerTest.java88 SettingsAdapter mockAdapter = mock(SettingsAdapter.class); in setUp() local
89 when(mMockAudioService.getSettings()).thenReturn(mockAdapter); in setUp()
90 when(mockAdapter.getSecureStringForUser(any(), any(), anyInt())).thenReturn(""); in setUp()