/packages/apps/Settings/tests/unit/src/com/android/settings/network/ |
D | MultiNetworkHeaderControllerTest.java | 63 private MultiNetworkHeaderController mHeaderController; field in MultiNetworkHeaderControllerTest 71 mHeaderController = new MultiNetworkHeaderController(mContext, KEY_HEADER) { in setUp() 96 assertThat(mHeaderController.isAvailable()).isFalse(); in isAvailable_beforeInitIsCalled_notAvailable() 106 mHeaderController.init(mLifecycle); in displayPreferenceTest() 107 mHeaderController.displayPreference(mPreferenceScreen); in displayPreferenceTest() 134 mHeaderController.init(mLifecycle); in onChildUpdated_subscriptionsBecameAvailable_categoryIsVisible() 135 mHeaderController.displayPreference(mPreferenceScreen); in onChildUpdated_subscriptionsBecameAvailable_categoryIsVisible() 138 mHeaderController.onChildrenUpdated(); in onChildUpdated_subscriptionsBecameAvailable_categoryIsVisible() 148 mHeaderController.init(mLifecycle); in onChildUpdated_subscriptionsBecameUnavailable_categoryIsNotVisible() 149 mHeaderController.displayPreference(mPreferenceScreen); in onChildUpdated_subscriptionsBecameUnavailable_categoryIsNotVisible() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | BluetoothDetailsHeaderControllerTest.java | 56 private EntityHeaderController mHeaderController; field in BluetoothDetailsHeaderControllerTest 68 ShadowEntityHeaderController.setUseMock(mHeaderController); in setUp() 99 verify(mHeaderController).setLabel(mDeviceConfig.getName()); in header() 100 verify(mHeaderController).setIcon(any(Drawable.class)); in header() 101 verify(mHeaderController).setIconContentDescription(any(String.class)); in header() 102 verify(mHeaderController).setSummary(any(String.class)); in header() 103 verify(mHeaderController).setSecondSummary(any(String.class)); in header() 104 verify(mHeaderController).done(mActivity, true); in header() 109 InOrder inOrder = inOrder(mHeaderController); in connectionStatusChangesWhileScreenOpen() 113 inOrder.verify(mHeaderController) in connectionStatusChangesWhileScreenOpen() [all …]
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | BluetoothDetailsHeaderController.java | 42 private EntityHeaderController mHeaderController; field in BluetoothDetailsHeaderController 62 mHeaderController = EntityHeaderController.newInstance(mFragment.getActivity(), mFragment, in init() 73 mHeaderController.setSecondSummary((CharSequence)null); in setHeaderProperties() 76 mHeaderController.setSecondSummary(mDeviceManager.getSubDeviceSummary(mCachedDevice)); in setHeaderProperties() 78 mHeaderController.setLabel(mCachedDevice.getName()); in setHeaderProperties() 79 mHeaderController.setIcon(pair.first); in setHeaderProperties() 80 mHeaderController.setIconContentDescription(pair.second); in setHeaderProperties() 81 mHeaderController.setSummary(summaryText); in setHeaderProperties() 88 mHeaderController.done(mFragment.getActivity(), true /* rebindActions */); in refresh()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/ |
D | AppDataUsageTest.java | 90 private EntityHeaderController mHeaderController; field in AppDataUsageTest 166 ShadowEntityHeaderController.setUseMock(mHeaderController); in bindAppHeader_allWorkApps_shouldNotShowAppInfoLink() 167 when(mHeaderController.setRecyclerView(any(), any())).thenReturn(mHeaderController); in bindAppHeader_allWorkApps_shouldNotShowAppInfoLink() 168 when(mHeaderController.setUid(anyInt())).thenReturn(mHeaderController); in bindAppHeader_allWorkApps_shouldNotShowAppInfoLink() 179 verify(mHeaderController).setHasAppInfoLink(false); in bindAppHeader_allWorkApps_shouldNotShowAppInfoLink() 199 ShadowEntityHeaderController.setUseMock(mHeaderController); in bindAppHeader_workApp_shouldSetWorkAppUid() 200 when(mHeaderController.setRecyclerView(any(), any())).thenReturn(mHeaderController); in bindAppHeader_workApp_shouldSetWorkAppUid() 201 when(mHeaderController.setUid(fakeUserId)).thenReturn(mHeaderController); in bindAppHeader_workApp_shouldSetWorkAppUid() 202 when(mHeaderController.setHasAppInfoLink(anyBoolean())).thenReturn(mHeaderController); in bindAppHeader_workApp_shouldSetWorkAppUid() 210 verify(mHeaderController).setHasAppInfoLink(true); in bindAppHeader_workApp_shouldSetWorkAppUid() [all …]
|
D | DataUsageSummaryPreferenceControllerTest.java | 101 private EntityHeaderController mHeaderController; field in DataUsageSummaryPreferenceControllerTest 132 ShadowEntityHeaderController.setUseMock(mHeaderController); in setUp() 379 mActivity, mLifecycle, mHeaderController, mPreferenceFragment, in testMobileData_entityHeaderSet() 386 verify(mHeaderController) in testMobileData_entityHeaderSet()
|
/packages/apps/Settings/src/com/android/settings/connecteddevice/usb/ |
D | UsbDetailsHeaderController.java | 33 private EntityHeaderController mHeaderController; field in UsbDetailsHeaderController 44 mHeaderController = EntityHeaderController.newInstance(mFragment.getActivity(), mFragment, in displayPreference() 51 mHeaderController.setLabel(mContext.getString(R.string.usb_pref)); in refresh() 52 mHeaderController.setIcon(mContext.getDrawable(R.drawable.ic_usb)); in refresh() 53 mHeaderController.done(mFragment.getActivity(), true /* rebindActions */); in refresh()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/usb/ |
D | UsbDetailsHeaderControllerTest.java | 74 private EntityHeaderController mHeaderController; field in UsbDetailsHeaderControllerTest 92 ShadowEntityHeaderController.setUseMock(mHeaderController); in setUp() 109 verify(mHeaderController).setLabel(mContext.getString(R.string.usb_pref)); in displayRefresh_charging_shouldSetHeader() 110 verify(mHeaderController).setIcon(argThat((ArgumentMatcher<Drawable>) t -> { in displayRefresh_charging_shouldSetHeader() 114 verify(mHeaderController).done(mActivity, true); in displayRefresh_charging_shouldSetHeader()
|
/packages/apps/Settings/src/com/android/settings/notification/app/ |
D | HeaderPreferenceController.java | 44 private EntityHeaderController mHeaderController; field in HeaderPreferenceController 82 mHeaderController = EntityHeaderController.newInstance( in updateState() 84 pref = mHeaderController.setIcon(mAppRow.icon) in updateState()
|
D | ConversationHeaderPreferenceController.java | 44 private EntityHeaderController mHeaderController; field in ConversationHeaderPreferenceController 82 mHeaderController = EntityHeaderController.newInstance( in updateState() 84 pref = mHeaderController.setIcon(mConversationDrawable) in updateState()
|
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/notificationaccess/ |
D | HeaderPreferenceController.java | 44 private EntityHeaderController mHeaderController; field in HeaderPreferenceController 109 mHeaderController = EntityHeaderController.newInstance( in displayPreference() 111 pref = mHeaderController in displayPreference()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | AppInfoWithHeaderTest.java | 66 private EntityHeaderController mHeaderController; field in AppInfoWithHeaderTest 78 ShadowEntityHeaderController.setUseMock(mHeaderController); in setUp()
|