/packages/apps/Settings/tests/robotests/src/com/android/settings/network/ |
D | MultiNetworkHeaderControllerTest.java | 70 private MultiNetworkHeaderController mHeaderController; field in MultiNetworkHeaderControllerTest 84 mHeaderController = spy(new MultiNetworkHeaderController(mContext, KEY_HEADER)); in setUp() 85 doReturn(mWifiController).when(mHeaderController).createWifiController(mLifecycle); in setUp() 86 doReturn(mSubscriptionsController).when(mHeaderController).createSubscriptionsController( in setUp() 92 assertThat(mHeaderController.isAvailable()).isFalse(); in isAvailable_beforeInitIsCalled_notAvailable() 102 mHeaderController.init(mLifecycle); in displayPreferenceTest() 103 mHeaderController.displayPreference(mPreferenceScreen); in displayPreferenceTest() 131 mHeaderController.init(mLifecycle); in onChildUpdated_subscriptionsBecameAvailable_categoryIsVisible() 132 mHeaderController.displayPreference(mPreferenceScreen); in onChildUpdated_subscriptionsBecameAvailable_categoryIsVisible() 135 mHeaderController.onChildrenUpdated(); in onChildUpdated_subscriptionsBecameAvailable_categoryIsVisible() [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 | 44 private EntityHeaderController mHeaderController; field in BluetoothDetailsHeaderController 68 mHeaderController = EntityHeaderController.newInstance(mFragment.getActivity(), mFragment, in init() 79 mHeaderController.setSecondSummary( in setHeaderProperties() 81 mHeaderController.setLabel(mCachedDevice.getName()); in setHeaderProperties() 82 mHeaderController.setIcon(pair.first); in setHeaderProperties() 83 mHeaderController.setIconContentDescription(pair.second); in setHeaderProperties() 84 mHeaderController.setSummary(summaryText); in setHeaderProperties() 91 mHeaderController.done(mFragment.getActivity(), true /* rebindActions */); in refresh()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/ |
D | AppDataUsageTest.java | 88 private EntityHeaderController mHeaderController; field in AppDataUsageTest 162 ShadowEntityHeaderController.setUseMock(mHeaderController); in bindAppHeader_allWorkApps_shouldNotShowAppInfoLink() 163 when(mHeaderController.setRecyclerView(any(), any())).thenReturn(mHeaderController); in bindAppHeader_allWorkApps_shouldNotShowAppInfoLink() 164 when(mHeaderController.setUid(anyInt())).thenReturn(mHeaderController); in bindAppHeader_allWorkApps_shouldNotShowAppInfoLink() 175 verify(mHeaderController).setHasAppInfoLink(false); in bindAppHeader_allWorkApps_shouldNotShowAppInfoLink() 195 ShadowEntityHeaderController.setUseMock(mHeaderController); in bindAppHeader_workApp_shouldSetWorkAppUid() 196 when(mHeaderController.setRecyclerView(any(), any())).thenReturn(mHeaderController); in bindAppHeader_workApp_shouldSetWorkAppUid() 197 when(mHeaderController.setUid(fakeUserId)).thenReturn(mHeaderController); in bindAppHeader_workApp_shouldSetWorkAppUid() 198 when(mHeaderController.setHasAppInfoLink(anyBoolean())).thenReturn(mHeaderController); in bindAppHeader_workApp_shouldSetWorkAppUid() 206 verify(mHeaderController).setHasAppInfoLink(true); in bindAppHeader_workApp_shouldSetWorkAppUid() [all …]
|
D | DataUsageSummaryPreferenceControllerTest.java | 93 private EntityHeaderController mHeaderController; field in DataUsageSummaryPreferenceControllerTest 120 ShadowEntityHeaderController.setUseMock(mHeaderController); in setUp() 416 mActivity, mLifecycle, mHeaderController, mPreferenceFragment, in testMobileData_entityHeaderSet() 423 verify(mHeaderController) in testMobileData_entityHeaderSet() 425 verify(mHeaderController).styleActionBar(any(Activity.class)); 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/ |
D | HeaderPreferenceController.java | 43 private EntityHeaderController mHeaderController; field in HeaderPreferenceController 76 mHeaderController = EntityHeaderController.newInstance( in updateState() 78 pref = mHeaderController.setIcon(mAppRow.icon) in updateState() 123 if (mHeaderController != null) { in onStart() 124 mHeaderController.styleActionBar(mFragment.getActivity()); in onStart()
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | HeaderPreferenceController.java | 44 private EntityHeaderController mHeaderController; field in HeaderPreferenceController 77 mHeaderController = EntityHeaderController.newInstance( in updateState() 79 pref = mHeaderController.setIcon(mAppRow.icon) in updateState() 118 if (mHeaderController != null) { in onStart() 119 mHeaderController.styleActionBar(mFragment.getActivity()); in onStart()
|
/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/tests/robotests/src/com/android/settings/applications/ |
D | AppInfoWithHeaderTest.java | 65 private EntityHeaderController mHeaderController; field in AppInfoWithHeaderTest 77 ShadowEntityHeaderController.setUseMock(mHeaderController); in setUp()
|