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.java69 private BugReportHandlerUtil mBugReportHandlerUtil; field in BugReportHandlerPickerTest
96 mBugReportHandlerUtil = mock(BugReportHandlerUtil.class); in setUp()
97 mPicker.setBugReportHandlerUtil(mBugReportHandlerUtil); in setUp()
135 when(mBugReportHandlerUtil.getValidBugReportHandlerInfos(any())) in testClickingItemSuccess()
138 when(mBugReportHandlerUtil.setCurrentBugReportHandlerAppAndUser(any(), eq(PACKAGE_NAME), in testClickingItemSuccess()
146 verify(mBugReportHandlerUtil, times(1)).setCurrentBugReportHandlerAppAndUser(any(), in testClickingItemSuccess()
150 verify(mBugReportHandlerUtil, never()).showInvalidChoiceToast(any()); in testClickingItemSuccess()
154 when(mBugReportHandlerUtil.getValidBugReportHandlerInfos(any())) in testClickingItemFail()
157 when(mBugReportHandlerUtil.setCurrentBugReportHandlerAppAndUser(any(), eq(PACKAGE_NAME), in testClickingItemFail()
165 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.java55 private BugReportHandlerUtil mBugReportHandlerUtil; field in BugReportHandlerPicker
118 if (mBugReportHandlerUtil == null) { in getBugReportHandlerUtil()
121 return mBugReportHandlerUtil; in getBugReportHandlerUtil()
126 mBugReportHandlerUtil = bugReportHandlerUtil; in setBugReportHandlerUtil()