Home
last modified time | relevance | path

Searched refs:asUserCtx (Results 1 – 3 of 3) sorted by relevance

/packages/modules/Connectivity/tests/integration/src/com/android/server/net/integrationtests/
DConnectivityServiceIntegrationTest.kt160 val asUserCtx = mock(Context::class.java, AdditionalAnswers.delegatesTo<Context>(context)) in <lambda>() constant
161 doReturn(UserHandle.ALL).`when`(asUserCtx).user in <lambda>()
162 doReturn(asUserCtx).`when`(context).createContextAsUser(eq(UserHandle.ALL), anyInt()) in <lambda>()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DNetworkNotificationManagerTest.java168 final Context asUserCtx = mock(Context.class, AdditionalAnswers.delegatesTo(mCtx)); in setUp() local
169 doReturn(UserHandle.ALL).when(asUserCtx).getUser(); in setUp()
170 when(mCtx.createContextAsUser(eq(UserHandle.ALL), anyInt())).thenReturn(asUserCtx); in setUp()
DPermissionMonitorTest.java152 final Context asUserCtx = mock(Context.class, AdditionalAnswers.delegatesTo(mContext)); in setUp() local
153 doReturn(UserHandle.ALL).when(asUserCtx).getUser(); in setUp()
154 when(mContext.createContextAsUser(eq(UserHandle.ALL), anyInt())).thenReturn(asUserCtx); in setUp()