/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/usb/ |
D | UsbBackendTest.java | 81 final UsbBackend usbBackend = new UsbBackend(mContext, mUserManager); in setDataRole_allRolesSupported_shouldSetDataRole() 104 final UsbBackend usbBackend = new UsbBackend(mContext, mUserManager); in setDataRole_notAllRolesSupported_shouldSetDataAndPowerRole() 121 final UsbBackend usbBackend = new UsbBackend(mContext, mUserManager); in setPowerRole_allRolesSupported_shouldSetPowerRole() 144 final UsbBackend usbBackend = new UsbBackend(mContext, mUserManager); in setPowerRole_notAllRolesSupported_shouldSetDataAndPowerRole() 167 final UsbBackend usbBackend = new UsbBackend(mContext, mUserManager); in areFunctionsSupported_fileTransferDisallowed_shouldReturnFalse() 180 final UsbBackend usbBackend = new UsbBackend(mContext, mUserManager); in areFunctionsSupported_fileTransferAllowed_shouldReturnTrue() 189 final UsbBackend usbBackend = new UsbBackend(mContext, mUserManager); in areFunctionsDisallowedByNonAdminUser_isAdminUser_returnFalse() 199 final UsbBackend usbBackend = new UsbBackend(mContext, mUserManager); in areFunctionsDisallowedByNonAdminUser_isNotAdminUser_returnTrue()
|
D | UsbDetailsFunctionsControllerTest.java | 80 private UsbBackend mUsbBackend; 123 assertThat(pref.getKey()).isEqualTo(UsbBackend.usbFunctionsToString(iter.next())); in displayRefresh_allAllowed_shouldCreatePrefs() 148 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_MIDI)); in displayRefresh_onlyMidiAllowed_shouldCreateOnlyMidiPref() 160 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_MTP)); in displayRefresh_mtpEnabled_shouldCheckSwitches() 173 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_MTP)); in displayRefresh_accessoryEnabled_shouldCheckSwitches() 186 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_RNDIS)); in displayRefresh_ncmEnabled_checksSwitches() 201 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_MTP)); in onClickMtp_noneEnabled_shouldEnableMtp() 219 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_MTP)); in onClickMtp_ptpEnabled_shouldEnableMtp() 225 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_PTP)); in onClickMtp_ptpEnabled_shouldEnableMtp() 241 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_NONE)); in onClickNone_mtpEnabled_shouldDisableMtp() [all …]
|
D | UsbDefaultFragmentTest.java | 53 private UsbBackend mUsbBackend; 74 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_NONE)); in getDefaultKey_isNone_shouldReturnNone() 81 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_MTP)); in getDefaultKey_isMtp_shouldReturnMtp() 88 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_PTP)); in getDefaultKey_isPtp_shouldReturnPtp() 95 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_RNDIS)); in getDefaultKey_isRndis_shouldReturnRndis() 102 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_MIDI)); in getDefaultKey_isMidi_shouldReturnMidi() 110 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_RNDIS)); in getDefaultKey_isNcm_returnsRndis() 115 mFragment.setDefaultKey(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_NONE)); in setDefaultKey_isNone_shouldSetNone() 121 mFragment.setDefaultKey(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_MTP)); in setDefaultKey_isMtp_shouldSetMtp() 127 mFragment.setDefaultKey(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_PTP)); in setDefaultKey_isPtp_shouldSetPtp() [all …]
|
D | UsbDetailsDataRoleControllerTest.java | 74 private UsbBackend mUsbBackend; 234 mPreference.findPreference(UsbBackend.dataRoleToString(role)); in getRadioPreference()
|
D | UsbDetailsControllerTest.java | 56 private UsbBackend mUsbBackend;
|
D | ConnectedUsbDeviceUpdaterTest.java | 63 private UsbBackend mUsbBackend;
|
D | UsbDetailsHeaderControllerTest.java | 70 private UsbBackend mUsbBackend;
|
D | UsbConnectionBroadcastReceiverTest.java | 53 private UsbBackend mUsbBackend;
|
D | UsbDetailsTranscodeMtpControllerTest.java | 68 private UsbBackend mUsbBackend;
|
D | UsbDetailsPowerRoleControllerTest.java | 72 private UsbBackend mUsbBackend;
|
/packages/apps/Settings/src/com/android/settings/connecteddevice/usb/ |
D | UsbDetailsDataRoleController.java | 53 UsbBackend backend) { in UsbDetailsDataRoleController() 61 mHostPref = makeRadioPreference(UsbBackend.dataRoleToString(DATA_ROLE_HOST), in displayPreference() 63 mDevicePref = makeRadioPreference(UsbBackend.dataRoleToString(DATA_ROLE_DEVICE), in displayPreference() 87 if (UsbBackend.dataRoleFromString(mNextRolePref.getKey()) == dataRole) { in refresh() 102 int role = UsbBackend.dataRoleFromString(preference.getKey()); in onRadioButtonClicked() 110 mUsbBackend.areAllRolesSupported() ? UsbBackend.PD_ROLE_SWAP_TIMEOUT_MS in onRadioButtonClicked() 111 : UsbBackend.NONPD_ROLE_SWAP_TIMEOUT_MS); in onRadioButtonClicked()
|
D | UsbDefaultFragment.java | 55 UsbBackend mUsbBackend; 99 mUsbBackend = new UsbBackend(context); in onAttach() 131 final String key = UsbBackend.usbFunctionsToString(option); in getCandidates() 161 return UsbBackend.usbFunctionsToString(defaultUsbFunctions == UsbManager.FUNCTION_NCM in getDefaultKey() 167 long functions = UsbBackend.usbFunctionsFromString(key); in setDefaultKey() 224 screen.findPreference(UsbBackend.usbFunctionsToString(option)); in refresh()
|
D | UsbDetailsFragment.java | 47 private UsbBackend mUsbBackend; 97 mUsbBackend = new UsbBackend(context); in createPreferenceControllers() 107 UsbBackend usbBackend, UsbDetailsFragment fragment) { in createControllerList() 132 createControllerList(context, new UsbBackend(context), null));
|
D | UsbDetailsFunctionsController.java | 68 UsbBackend backend) { in UsbDetailsFunctionsController() 115 pref = getProfilePreference(UsbBackend.usbFunctionsToString(option), title); in refresh() 134 final long function = UsbBackend.usbFunctionsFromString(preference.getKey()); in onRadioButtonClicked() 149 UsbBackend.usbFunctionsToString(mPreviousFunction)); in onRadioButtonClicked()
|
D | UsbDetailsPowerRoleController.java | 55 UsbBackend backend) { in UsbDetailsPowerRoleController() 118 mUsbBackend.areAllRolesSupported() ? UsbBackend.PD_ROLE_SWAP_TIMEOUT_MS in onPreferenceClick() 119 : UsbBackend.NONPD_ROLE_SWAP_TIMEOUT_MS); in onPreferenceClick()
|
D | ConnectedUsbDeviceUpdater.java | 49 private UsbBackend mUsbBackend; 70 this(context, fragment, devicePreferenceCallback, new UsbBackend(context)); in ConnectedUsbDeviceUpdater() 75 DevicePreferenceCallback devicePreferenceCallback, UsbBackend usbBackend) { in ConnectedUsbDeviceUpdater()
|
D | UsbDetailsController.java | 38 protected final UsbBackend mUsbBackend; 43 public UsbDetailsController(Context context, UsbDetailsFragment fragment, UsbBackend backend) { in UsbDetailsController()
|
D | UsbBackend.java | 42 public class UsbBackend { class 66 public UsbBackend(Context context) { in UsbBackend() method in UsbBackend 71 public UsbBackend(Context context, UserManager userManager) { in UsbBackend() method in UsbBackend
|
D | UsbConnectionBroadcastReceiver.java | 41 private UsbBackend mUsbBackend; 49 UsbConnectionListener usbConnectionListener, UsbBackend backend) { in UsbConnectionBroadcastReceiver()
|
D | UsbDetailsHeaderController.java | 36 UsbBackend backend) { in UsbDetailsHeaderController()
|
D | UsbDetailsTranscodeMtpController.java | 48 UsbBackend backend) { in UsbDetailsTranscodeMtpController()
|