Searched refs:mSideLoadedAppDetector (Results 1 – 4 of 4) sorted by relevance
62 private SideLoadedAppDetector mSideLoadedAppDetector; field in SideLoadedAppListenerTest74 mSideLoadedAppListener = new SideLoadedAppListener(mSideLoadedAppDetector, in setUp()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()[all …]
59 private SideLoadedAppDetector mSideLoadedAppDetector; field in SideLoadedAppDetectorTest75 mSideLoadedAppDetector = new SideLoadedAppDetector(testableResources.getResources(), in setUp()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()
40 private SideLoadedAppDetector mSideLoadedAppDetector; field in SideLoadedAppListener48 mSideLoadedAppDetector = sideLoadedAppDetector; in SideLoadedAppListener()65 if (!mSideLoadedAppDetector.isSafe(taskInfo)) { in onTaskCreated()88 if (mSideLoadedAppDetector.isSafe(taskInfo)) { in onTaskStackChanged()
38 private SideLoadedAppDetector mSideLoadedAppDetector; field in SideLoadedAppController49 mSideLoadedAppDetector = sideLoadedAppDetector; in SideLoadedAppController()69 if (mSideLoadedAppDetector.hasUnsafeInstalledApps()) { in onBootCompleted()