Home
last modified time | relevance | path

Searched refs:PermissionControllerApplication (Results 1 – 25 of 86) sorted by relevance

1234

/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/permission/service/v33/
DPermissionDecisionStorageImplTest.kt26 import com.android.permissioncontroller.PermissionControllerApplication
48 private val application = Mockito.mock(PermissionControllerApplication::class.java)
73 .mockStatic(PermissionControllerApplication::class.java) in setup()
77 Mockito.`when`(PermissionControllerApplication.get()).thenReturn(application) in setup()
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/permission/service/
DPersistedStoragePackageUninstalledReceiverTest.kt28 import com.android.permissioncontroller.PermissionControllerApplication
53 val application = Mockito.mock(PermissionControllerApplication::class.java)
74 .mockStatic(PermissionControllerApplication::class.java) in setup()
77 `when`(PermissionControllerApplication.get()).thenReturn(application) in setup()
DPermissionEventCleanupJobServiceTest.kt27 import com.android.permissioncontroller.PermissionControllerApplication
47 val application = Mockito.mock(PermissionControllerApplication::class.java)
62 .mockStatic(PermissionControllerApplication::class.java) in setup()
66 Mockito.`when`(PermissionControllerApplication.get()).thenReturn(application) in setup()
DPermissionChangeStorageImplTest.kt26 import com.android.permissioncontroller.PermissionControllerApplication
50 private val application = Mockito.mock(PermissionControllerApplication::class.java)
72 .mockStatic(PermissionControllerApplication::class.java) in setup()
76 Mockito.`when`(PermissionControllerApplication.get()).thenReturn(application) in setup()
DPermissionStorageTimeChangeReceiverTest.kt29 import com.android.permissioncontroller.PermissionControllerApplication
62 val application = mock(PermissionControllerApplication::class.java)
85 .mockStatic(PermissionControllerApplication::class.java) in setup()
89 `when`(PermissionControllerApplication.get()).thenReturn(application) in setup()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/
DLauncherPackagesLiveData.kt24 import com.android.permissioncontroller.PermissionControllerApplication
43 PermissionControllerApplication.get().packageManager.hasSystemFeature(FEATURE_LEANBACK) in loadDataAndPostValue()
52 PermissionControllerApplication.get() in loadPkgsFromIntent()
DPermGroupsPackagesLiveData.kt24 import com.android.permissioncontroller.PermissionControllerApplication in <lambda>()
129 PermissionControllerApplication.get(), in <lambda>()
134 PermissionControllerApplication.get(), in <lambda>()
DCarrierPrivilegedStatusLiveData.kt21 import com.android.permissioncontroller.PermissionControllerApplication
52 return CarrierPrivilegedStatusLiveData(PermissionControllerApplication.get(), key) in newValue()
DMicMutedLiveData.kt24 import com.android.permissioncontroller.PermissionControllerApplication
30 private val app = PermissionControllerApplication.get()
DSelectedAutofillServiceLiveData.kt22 import com.android.permissioncontroller.PermissionControllerApplication
56 return SelectedAutofillServiceLiveData(PermissionControllerApplication.get(), key) in newValue()
DAppOpLiveData.kt21 import com.android.permissioncontroller.PermissionControllerApplication
62 PermissionControllerApplication.get(), in newValue()
DSelectedWallpaperServiceLiveData.kt22 import com.android.permissioncontroller.PermissionControllerApplication
60 return SelectedWallpaperServiceLiveData(PermissionControllerApplication.get(), key) in newValue()
DEnabledDeviceAdminsLiveData.kt22 import com.android.permissioncontroller.PermissionControllerApplication in <lambda>()
57 return EnabledDeviceAdminsLiveData(PermissionControllerApplication.get(), key) in <lambda>()
DSelectedVoiceInteractionServiceLiveData.kt23 import com.android.permissioncontroller.PermissionControllerApplication
64 PermissionControllerApplication.get(), in newValue()
DUsersLiveData.kt26 import com.android.permissioncontroller.PermissionControllerApplication
35 @SuppressLint("StaticFieldLeak") private val app = PermissionControllerApplication.get()
DEnabledInputMethodsLiveData.kt23 import com.android.permissioncontroller.PermissionControllerApplication in <lambda>()
57 return EnabledInputMethodsLiveData(PermissionControllerApplication.get(), key) in <lambda>()
DEnabledNotificationListenersLiveData.kt23 import com.android.permissioncontroller.PermissionControllerApplication in <lambda>()
71 return EnabledNotificationListenersLiveData(PermissionControllerApplication.get(), key) in <lambda>()
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/appops/data/repository/
DAppOpRepositoryTest.kt26 import com.android.permissioncontroller.PermissionControllerApplication
51 @Mock private lateinit var application: PermissionControllerApplication
69 .mockStatic(PermissionControllerApplication::class.java) in setup()
72 whenever(PermissionControllerApplication.get()).thenReturn(application) in setup()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/
DPermissionControllerApplication.java39 public final class PermissionControllerApplication extends Application { class
41 private static PermissionControllerApplication sInstance;
63 public static PermissionControllerApplication get() { in get()
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/safetylabel/
DSafetyLabelChangesJobServiceTest.kt34 import com.android.permissioncontroller.PermissionControllerApplication
65 @Mock private lateinit var application: PermissionControllerApplication
82 .mockStatic(PermissionControllerApplication::class.java) in setUp()
90 whenever(PermissionControllerApplication.get()).thenReturn(application) in setUp()
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/hibernation/
DHibernationControllerTest.kt31 import com.android.permissioncontroller.PermissionControllerApplication
58 val application = mock(PermissionControllerApplication::class.java)
83 .mockStatic(PermissionControllerApplication::class.java) in setUp()
86 whenever(PermissionControllerApplication.get()).thenReturn(application) in setUp()
DHibernationPolicyTest.kt33 import com.android.permissioncontroller.PermissionControllerApplication
62 private val application = Mockito.mock(PermissionControllerApplication::class.java)
80 .mockStatic(PermissionControllerApplication::class.java) in setup()
84 `when`(PermissionControllerApplication.get()).thenReturn(application) in setup()
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/privacysources/
DSafetyCenterReceiverTest.kt34 import com.android.permissioncontroller.PermissionControllerApplication
74 val application = Mockito.mock(PermissionControllerApplication::class.java)
101 .mockStatic(PermissionControllerApplication::class.java) in privacySourceMap()
106 whenever(PermissionControllerApplication.get()).thenReturn(application) in privacySourceMap()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/
DLocationUtils.java44 import com.android.permissioncontroller.PermissionControllerApplication;
246 PermissionControllerApplication.get().getApplicationContext()
250 PermissionControllerApplication.get().getApplicationContext()
263 PermissionControllerApplication.get().getApplicationContext()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/service/
DPermissionEventStorageImpls.kt20 import com.android.permissioncontroller.PermissionControllerApplication
36 val context = PermissionControllerApplication.get().applicationContext in createInstance()

1234