Searched refs:asUserCtx (Results 1 – 3 of 3) sorted by relevance
160 val asUserCtx = mock(Context::class.java, AdditionalAnswers.delegatesTo<Context>(context)) in <lambda>() constant161 doReturn(UserHandle.ALL).`when`(asUserCtx).user in <lambda>()162 doReturn(asUserCtx).`when`(context).createContextAsUser(eq(UserHandle.ALL), anyInt()) in <lambda>()
168 final Context asUserCtx = mock(Context.class, AdditionalAnswers.delegatesTo(mCtx)); in setUp() local169 doReturn(UserHandle.ALL).when(asUserCtx).getUser(); in setUp()170 when(mCtx.createContextAsUser(eq(UserHandle.ALL), anyInt())).thenReturn(asUserCtx); in setUp()
152 final Context asUserCtx = mock(Context.class, AdditionalAnswers.delegatesTo(mContext)); in setUp() local153 doReturn(UserHandle.ALL).when(asUserCtx).getUser(); in setUp()154 when(mContext.createContextAsUser(eq(UserHandle.ALL), anyInt())).thenReturn(asUserCtx); in setUp()