Home
last modified time | relevance | path

Searched defs:mockContext (Results 1 – 25 of 44) sorted by relevance

12

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/controller/
DControlsProviderLifecycleManagerTest.kt138 val mockContext = mock<Context>() in testNullBinding() constant
283 val mockContext = mock<Context> { in testOnPackageUpdateWhileBound_unbound_thenBindAgain() constant
310 val mockContext = mock<Context> { in testOnPackageUpdateWhenNotBound_nothingHappens() constant
338 val mockContext = mock<Context> { in testRebindForPanelWithSameFlags() constant
366 val mockContext = mock<Context> { in testBindAfterSecurityExceptionWorks() constant
/frameworks/base/tests/vcn/java/com/android/server/vcn/
DVcnTestUtils.java29 Context mockContext, Object service, String name, Class<?> serviceClass) { in setupSystemService()
35 public static IpSecManager setupIpSecManager(Context mockContext, IpSecService service) { in setupIpSecManager()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DValidateNotificationPeopleTest.java210 final Context mockContext = mock(Context.class); in testSearchContacts_workContact_queriesWorkContactProvider() local
241 final Context mockContext = mock(Context.class); in testSearchContacts_personalContact_queriesPersonalContactProvider() local
268 final Context mockContext = mock(Context.class); in testMergePhoneNumbers_noPhoneNumber() local
300 final Context mockContext = mock(Context.class); in testMergePhoneNumbers_hasNumber() local
339 final Context mockContext = mock(Context.class); in testValidatePeople_needsLookupWhenNoCache() local
361 final Context mockContext = mock(Context.class); in testValidatePeople_noLookupWhenCached_andPopulatesContactInfo() local
401 final Context mockContext = mock(Context.class); in validatePeople_reconsiderationWillNotBeDelayed() local
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DDisplayPowerStateTest.kt50 private val mockContext = mock<Context>() constant in com.android.server.display.DisplayPowerStateTest
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DAudioManagerUnitTest.java91 MockContext mockContext = mock(MockContext.class); in getVirtualDeviceMockContext() local
DAudioRecordUnitTest.java132 MockContext mockContext = mock(MockContext.class); in getVirtualDeviceMockContext() local
DAudioTrackUnitTest.java130 MockContext mockContext = mock(MockContext.class); in getVirtualDeviceMockContext() local
DMediaPlayerUnitTest.java145 MockContext mockContext = mock(MockContext.class); in getVirtualDeviceMockContext() local
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DBluetoothEventManagerTest.java134 Context mockContext = mock(Context.class); in ifUserHandleIsNull_registerReceiverIsCalled() local
150 Context mockContext = mock(Context.class); in ifUserHandleSpecified_registerReceiverAsUserIsCalled() local
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/mediaprojection/appselector/view/
DTaskPreviewSizeProviderTest.kt46 private val mockContext = mock<Context>() constant
/frameworks/base/core/tests/coretests/src/android/content/pm/
DCrossProfileAppsTest.java97 public void mockContext() { in mockContext() method in CrossProfileAppsTest
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/additionalviewcontainer/
DAdditionalSystemViewContainerTest.kt52 private lateinit var mockContext: Context variable in com.android.wm.shell.windowdecor.additionalviewcontainer.AdditionalSystemViewContainerTest
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/display/data/repository/
DDisplayMetricsRepositoryTest.kt47 private val mockContext: Context = mock() constant in com.android.systemui.display.data.repository.DisplayMetricsRepositoryTest
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/clipboardoverlay/
DClipboardImageLoaderTest.kt41 @Mock private lateinit var mockContext: Context variable in com.android.systemui.clipboardoverlay.ClipboardImageLoaderTest
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiNetworkScoreCacheTest.java66 @Mock private Context mockContext; // isn't used, can be null field in WifiNetworkScoreCacheTest
/frameworks/base/services/tests/media/mediarouterservicetest/src/com/android/server/media/
DAudioManagerRouteControllerTest.java116 Context mockContext = Mockito.mock(Context.class); in setUp() local
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DFlashlightTileTest.kt34 @Mock private lateinit var mockContext: Context variable in com.android.systemui.qs.tiles.FlashlightTileTest
DLocationTileTest.kt56 private lateinit var mockContext: Context variable in com.android.systemui.qs.tiles.LocationTileTest
DUiModeNightTileTest.kt55 @Mock private lateinit var mockContext: Context variable in com.android.systemui.qs.tiles.UiModeNightTileTest
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/unfold/
DDisplaySwitchLatencyTrackerTest.kt74 private val mockContext = mock<Context>() constant
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/
DCustomTileStatePersisterTest.kt69 private lateinit var mockContext: Context variable in com.android.systemui.qs.external.CustomTileStatePersisterTest
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DScreenDecorHwcLayerTest.kt48 @Mock private lateinit var mockContext: Context variable in com.android.systemui.ScreenDecorHwcLayerTest
DDisplayCutoutBaseViewTest.kt52 @Mock private lateinit var mockContext: Context variable in com.android.systemui.DisplayCutoutBaseViewTest
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/broadcast/
DBroadcastSenderTest.kt42 private lateinit var mockContext: Context variable in com.android.systemui.broadcast.BroadcastSenderTest
/frameworks/base/services/tests/servicestests/src/com/android/server/people/prediction/
DShareTargetPredictorTest.java423 Context mockContext = mock(Context.class); in buildShortcut() local

12