/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/usb/ |
D | UsbDetailsPowerRoleControllerTest.java | 104 mDetailsPowerRoleController.refresh(true, UsbManager.FUNCTION_NONE, POWER_ROLE_SINK, in displayRefresh_sink_shouldUncheck() 116 mDetailsPowerRoleController.refresh(true, UsbManager.FUNCTION_NONE, in displayRefresh_source_shouldCheck() 128 mDetailsPowerRoleController.refresh(false, UsbManager.FUNCTION_NONE, in displayRefresh_disconnected_shouldDisable() 141 mDetailsPowerRoleController.refresh(true, UsbManager.FUNCTION_NONE, POWER_ROLE_SINK, in displayRefresh_notSupported_shouldRemove() 186 mDetailsPowerRoleController.refresh(false /* connected */, UsbManager.FUNCTION_NONE, in onClickDeviceAndRefresh_success_shouldClearSubtext() 188 mDetailsPowerRoleController.refresh(true /* connected */, UsbManager.FUNCTION_NONE, in onClickDeviceAndRefresh_success_shouldClearSubtext() 204 mDetailsPowerRoleController.refresh(false /* connected */, UsbManager.FUNCTION_NONE, in onClickDeviceAndRefresh_failed_shouldShowFailureText() 206 mDetailsPowerRoleController.refresh(true /* connected */, UsbManager.FUNCTION_NONE, in onClickDeviceAndRefresh_failed_shouldShowFailureText() 225 mDetailsPowerRoleController.refresh(false /* connected */, UsbManager.FUNCTION_NONE, in onClickDevice_timedOut_shouldShowFailureText()
|
D | UsbDetailsDataRoleControllerTest.java | 100 mDetailsDataRoleController.refresh(true, UsbManager.FUNCTION_NONE, POWER_ROLE_SINK, in displayRefresh_deviceRole_shouldCheckDevice() 113 mDetailsDataRoleController.refresh(true, UsbManager.FUNCTION_NONE, POWER_ROLE_SINK, in displayRefresh_hostRole_shouldCheckHost() 126 mDetailsDataRoleController.refresh(false, UsbManager.FUNCTION_NONE, POWER_ROLE_SINK, in displayRefresh_disconnected_shouldDisable() 170 mDetailsDataRoleController.refresh(false /* connected */, UsbManager.FUNCTION_NONE, in onClickDeviceAndRefresh_success_shouldClearSubtext() 172 mDetailsDataRoleController.refresh(true /* connected */, UsbManager.FUNCTION_NONE, in onClickDeviceAndRefresh_success_shouldClearSubtext() 188 mDetailsDataRoleController.refresh(false /* connected */, UsbManager.FUNCTION_NONE, in onClickDeviceAndRefresh_failed_shouldShowFailureText() 190 mDetailsDataRoleController.refresh(true /* connected */, UsbManager.FUNCTION_NONE, in onClickDeviceAndRefresh_failed_shouldShowFailureText() 209 mDetailsDataRoleController.refresh(false /* connected */, UsbManager.FUNCTION_NONE, in onClickDevice_timedOut_shouldShowFailureText()
|
D | UsbDefaultFragmentTest.java | 67 when(mUsbBackend.getDefaultUsbFunctions()).thenReturn(UsbManager.FUNCTION_NONE); in getDefaultKey_isNone_shouldReturnNone() 69 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_NONE)); in getDefaultKey_isNone_shouldReturnNone() 102 mFragment.setDefaultKey(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_NONE)); in setDefaultKey_isNone_shouldSetNone() 103 verify(mUsbBackend).setDefaultUsbFunctions(UsbManager.FUNCTION_NONE); in setDefaultKey_isNone_shouldSetNone() 181 UsbManager.FUNCTION_NONE, POWER_ROLE_SINK, DATA_ROLE_DEVICE); in onPause_receivedNone_shouldSetNone() 185 verify(mUsbBackend).setDefaultUsbFunctions(UsbManager.FUNCTION_NONE); in onPause_receivedNone_shouldSetNone() 186 assertThat(mFragment.mCurrentFunctions).isEqualTo(UsbManager.FUNCTION_NONE); in onPause_receivedNone_shouldSetNone()
|
D | UsbDetailsFunctionsControllerTest.java | 109 mDetailsFunctionsController.refresh(true, UsbManager.FUNCTION_NONE, POWER_ROLE_SINK, in displayRefresh_allAllowed_shouldCreatePrefs() 123 mDetailsFunctionsController.refresh(false, UsbManager.FUNCTION_NONE, in displayRefresh_disconnected_shouldDisable() 135 mDetailsFunctionsController.refresh(true, UsbManager.FUNCTION_NONE, POWER_ROLE_SINK, in displayRefresh_onlyMidiAllowed_shouldCreateOnlyMidiPref() 160 mDetailsFunctionsController.refresh(true, UsbManager.FUNCTION_NONE, POWER_ROLE_SINK, in onClickMtp_noneEnabled_shouldEnableMtp() 162 when(mUsbBackend.getCurrentFunctions()).thenReturn(UsbManager.FUNCTION_NONE); in onClickMtp_noneEnabled_shouldEnableMtp() 206 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_NONE)); in onClickNone_mtpEnabled_shouldDisableMtp() 207 verify(mUsbBackend).setCurrentFunctions(UsbManager.FUNCTION_NONE); in onClickNone_mtpEnabled_shouldDisableMtp() 208 mDetailsFunctionsController.refresh(true, UsbManager.FUNCTION_NONE, POWER_ROLE_SINK, in onClickNone_mtpEnabled_shouldDisableMtp()
|
D | UsbConnectionBroadcastReceiverTest.java | 71 verify(mListener).onUsbConnectionChanged(true /* connected */, UsbManager.FUNCTION_NONE, in onReceive_usbConnected_invokeCallback() 83 verify(mListener).onUsbConnectionChanged(false /* connected */, UsbManager.FUNCTION_NONE, in onReceive_usbDisconnected_invokeCallback() 112 verify(mListener).onUsbConnectionChanged(false /* connected */, UsbManager.FUNCTION_NONE, in onReceive_usbPortStatus_invokeCallback()
|
D | ConnectedUsbDeviceUpdaterTest.java | 85 UsbManager.FUNCTION_NONE, POWER_ROLE_SINK, DATA_ROLE_DEVICE); in initUsbPreference_usbConnected_preferenceAdded() 94 UsbManager.FUNCTION_NONE, POWER_ROLE_NONE, DATA_ROLE_NONE); in initUsbPreference_usbDisconnected_preferenceRemoved()
|
D | UsbDetailsHeaderControllerTest.java | 107 mDetailsHeaderController.refresh(true, UsbManager.FUNCTION_NONE, POWER_ROLE_SINK, in displayRefresh_charging_shouldSetHeader()
|
/packages/apps/Settings/src/com/android/settings/connecteddevice/usb/ |
D | UsbConnectionBroadcastReceiver.java | 50 mFunctions = UsbManager.FUNCTION_NONE; in UsbConnectionBroadcastReceiver() 60 long functions = UsbManager.FUNCTION_NONE; in onReceive()
|
D | ConnectedUsbDeviceUpdater.java | 57 ? functions : UsbManager.FUNCTION_NONE, powerRole));
|
D | UsbDetailsFunctionsController.java | 50 FUNCTIONS_MAP.put(UsbManager.FUNCTION_NONE, R.string.usb_use_charging_only); in FUNCTIONS_MAP.put() argument
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/connecteddevice/usb/ |
D | UsbConnectionBroadcastReceiver.java | 50 mFunctions = UsbManager.FUNCTION_NONE; in UsbConnectionBroadcastReceiver() 61 long functions = UsbManager.FUNCTION_NONE; in onReceive()
|
D | ConnectedUsbDeviceUpdater.java | 50 ? functions : UsbManager.FUNCTION_NONE, powerRole));
|
D | UsbDetailsFunctionsController.java | 50 FUNCTIONS_MAP.put(UsbManager.FUNCTION_NONE, R.string.usb_use_charging_only); in FUNCTIONS_MAP.put() argument
|