Searched refs:isSafe (Results 1 – 5 of 5) sorted by relevance
94 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 …]
92 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()
74 if (!isSafe(info.applicationInfo)) { in hasUnsafeInstalledApps()81 boolean isSafe(@NonNull RootTaskInfo taskInfo) { in isSafe() method in SideLoadedAppDetector87 return isSafe(componentName.getPackageName()); in isSafe()90 private boolean isSafe(@NonNull String packageName) { in isSafe() method in SideLoadedAppDetector112 return isSafe(applicationInfo); in isSafe()115 private boolean isSafe(@NonNull ApplicationInfo applicationInfo) { in isSafe() method in SideLoadedAppDetector
65 if (!mSideLoadedAppDetector.isSafe(taskInfo)) { in onTaskCreated()88 if (mSideLoadedAppDetector.isSafe(taskInfo)) { in onTaskStackChanged()
909 boolean isSafe = !restricted; in updateSafetyMode()911 helper.setSafetyMode(isSafe); in updateSafetyMode()913 Slog.e(TAG, "Exception calling helper.setDpmSafetyMode(" + isSafe + ")", e); in updateSafetyMode()