Home
last modified time | relevance | path

Searched refs:mBugReportHandlerUtil (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/bugreporthandler/
DBugReportHandlerPickerTest.java73 private BugReportHandlerUtil mBugReportHandlerUtil; field in BugReportHandlerPickerTest
100 mBugReportHandlerUtil = mock(BugReportHandlerUtil.class); in setUp()
101 mPicker.setBugReportHandlerUtil(mBugReportHandlerUtil); in setUp()
139 when(mBugReportHandlerUtil.getValidBugReportHandlerInfos(any())) in testClickingItemSuccess()
142 when(mBugReportHandlerUtil.setCurrentBugReportHandlerAppAndUser(any(), eq(PACKAGE_NAME), in testClickingItemSuccess()
150 verify(mBugReportHandlerUtil, times(1)).setCurrentBugReportHandlerAppAndUser(any(), in testClickingItemSuccess()
154 verify(mBugReportHandlerUtil, never()).showInvalidChoiceToast(any()); in testClickingItemSuccess()
158 when(mBugReportHandlerUtil.getValidBugReportHandlerInfos(any())) in testClickingItemFail()
161 when(mBugReportHandlerUtil.setCurrentBugReportHandlerAppAndUser(any(), eq(PACKAGE_NAME), in testClickingItemFail()
169 verify(mBugReportHandlerUtil, times(1)).setCurrentBugReportHandlerAppAndUser(any(), in testClickingItemFail()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DBugReportHandlerPreferenceControllerTest.java54 private BugReportHandlerUtil mBugReportHandlerUtil; field in BugReportHandlerPreferenceControllerTest
65 ReflectionHelpers.setField(mController, "mBugReportHandlerUtil", mBugReportHandlerUtil); in setUp()
71 doReturn(true).when(mBugReportHandlerUtil).isBugReportHandlerEnabled(any(Context.class)); in isAvailable_hasDebugRestriction_notAvailable()
78 doReturn(false).when(mBugReportHandlerUtil).isBugReportHandlerEnabled(any(Context.class)); in isAvailable_bugReportHandlerDisabled_notAvailable()
87 doReturn(true).when(mBugReportHandlerUtil).isBugReportHandlerEnabled(any(Context.class)); in isAvailable_noDebugRestrictionAndBugReportHandlerEnabled_available()
/packages/apps/Settings/src/com/android/settings/development/
DBugReportHandlerPreferenceController.java42 private final BugReportHandlerUtil mBugReportHandlerUtil; field in BugReportHandlerPreferenceController
47 mBugReportHandlerUtil = new BugReportHandlerUtil(); in BugReportHandlerPreferenceController()
53 && mBugReportHandlerUtil.isBugReportHandlerEnabled(mContext); in isAvailable()
73 final String handlerApp = mBugReportHandlerUtil.getCurrentBugReportHandlerAppAndUser( in getCurrentBugReportHandlerAppLabel()
/packages/apps/Settings/src/com/android/settings/bugreporthandler/
DBugReportHandlerPicker.java58 private BugReportHandlerUtil mBugReportHandlerUtil; field in BugReportHandlerPicker
121 if (mBugReportHandlerUtil == null) { in getBugReportHandlerUtil()
124 return mBugReportHandlerUtil; in getBugReportHandlerUtil()
129 mBugReportHandlerUtil = bugReportHandlerUtil; in setBugReportHandlerUtil()