Home
last modified time | relevance | path

Searched refs:isSafe (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/sideloaded/
DSideLoadedAppListenerTest.java94 when(mSideLoadedAppDetector.isSafe(taskInfo2)).thenReturn(true); in onTaskCreated_safeTask_callsNoMethods()
98 verify(mSideLoadedAppDetector, never()).isSafe(taskInfo1); in onTaskCreated_safeTask_callsNoMethods()
99 verify(mSideLoadedAppDetector).isSafe(taskInfo2); in onTaskCreated_safeTask_callsNoMethods()
122 when(mSideLoadedAppDetector.isSafe(taskInfo2)).thenReturn(false); in onTaskCreated_unsafeTask_callsUnsafeTaskCreated()
127 verify(mSideLoadedAppDetector, never()).isSafe(taskInfo1); in onTaskCreated_unsafeTask_callsUnsafeTaskCreated()
128 verify(mSideLoadedAppDetector).isSafe(taskInfo2); in onTaskCreated_unsafeTask_callsUnsafeTaskCreated()
145 when(mSideLoadedAppDetector.isSafe(taskInfo2)).thenReturn(true); in onTaskStackChanged_safeTask_callsSafeTaskDisplayed()
150 verify(mSideLoadedAppDetector, never()).isSafe(taskInfo1); in onTaskStackChanged_safeTask_callsSafeTaskDisplayed()
151 verify(mSideLoadedAppDetector).isSafe(taskInfo2); in onTaskStackChanged_safeTask_callsSafeTaskDisplayed()
152 verify(mSideLoadedAppDetector, never()).isSafe(taskInfo3); in onTaskStackChanged_safeTask_callsSafeTaskDisplayed()
[all …]
DSideLoadedAppDetectorTest.java92 assertThat(mSideLoadedAppDetector.isSafe(taskInfo)).isTrue(); in isSafe_systemApp_returnsTrue()
107 assertThat(mSideLoadedAppDetector.isSafe(taskInfo)).isTrue(); in isSafe_updatedSystemApp_returnsTrue()
126 assertThat(mSideLoadedAppDetector.isSafe(taskInfo)).isTrue(); in isSafe_nonSystemApp_withSafeSource_returnsTrue()
145 assertThat(mSideLoadedAppDetector.isSafe(taskInfo)).isFalse(); in isSafe_nonSystemApp_withUnsafeSource_returnsFalse()
164 assertThat(mSideLoadedAppDetector.isSafe(taskInfo)).isFalse(); in isSafe_nonSystemApp_withoutSource_returnsFalse()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/sideloaded/
DSideLoadedAppDetector.java74 if (!isSafe(info.applicationInfo)) { in hasUnsafeInstalledApps()
81 boolean isSafe(@NonNull RootTaskInfo taskInfo) { in isSafe() method in SideLoadedAppDetector
87 return isSafe(componentName.getPackageName()); in isSafe()
90 private boolean isSafe(@NonNull String packageName) { in isSafe() method in SideLoadedAppDetector
112 return isSafe(applicationInfo); in isSafe()
115 private boolean isSafe(@NonNull ApplicationInfo applicationInfo) { in isSafe() method in SideLoadedAppDetector
DSideLoadedAppListener.java65 if (!mSideLoadedAppDetector.isSafe(taskInfo)) { in onTaskCreated()
88 if (mSideLoadedAppDetector.isSafe(taskInfo)) { in onTaskStackChanged()
/packages/services/Car/service/src/com/android/car/user/
DCarUserService.java909 boolean isSafe = !restricted; in updateSafetyMode()
911 helper.setSafetyMode(isSafe); in updateSafetyMode()
913 Slog.e(TAG, "Exception calling helper.setDpmSafetyMode(" + isSafe + ")", e); in updateSafetyMode()