Home
last modified time | relevance | path

Searched refs:mUsbPortStatus (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/services/usb/java/com/android/server/usb/
DUsbPortManager.java211 contaminantStatus = portInfo.mUsbPortStatus.getContaminantDetectionStatus(); in updateContaminantNotification()
243 intent.putExtra(UsbManager.EXTRA_PORT_STATUS, currentPortInfo.mUsbPortStatus); in updateContaminantNotification()
317 return portInfo != null ? portInfo.mUsbPortStatus : null; in getPortStatus()
351 if ((enable && portInfo.mUsbPortStatus.getContaminantDetectionStatus() in enableContaminantDetection()
353 && portInfo.mUsbPortStatus.getContaminantDetectionStatus() in enableContaminantDetection()
355 || (portInfo.mUsbPortStatus.getContaminantDetectionStatus() in enableContaminantDetection()
583 if (!portInfo.mUsbPortStatus.isRoleCombinationSupported(newPowerRole, newDataRole)) { in setPortRoles()
592 final int currentDataRole = portInfo.mUsbPortStatus.getCurrentDataRole(); in setPortRoles()
593 final int currentPowerRole = portInfo.mUsbPortStatus.getCurrentPowerRole(); in setPortRoles()
610 final int currentMode = portInfo.mUsbPortStatus.getCurrentMode(); in setPortRoles()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DBatteryControllerTest.java78 @Mock private UsbPortStatus mUsbPortStatus; field in BatteryControllerTest
285 when(mUsbPortStatus.getComplianceWarnings()).thenReturn(new int[1]); in complianceChanged_emptyComplianceWarnings_outputsFalse()
315 when(mUsbPort.getStatus()).thenReturn(mUsbPortStatus); in setupIncompatibleCharging()
317 when(mUsbPortStatus.isConnected()).thenReturn(true); in setupIncompatibleCharging()
318 when(mUsbPortStatus.getComplianceWarnings()) in setupIncompatibleCharging()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DUtilsTest.java83 @Mock private UsbPortStatus mUsbPortStatus; field in UtilsTest
515 when(mUsbPortStatus.getComplianceWarnings()).thenReturn(new int[1]); in containsIncompatibleChargers_emptyComplianceWarnings_returnFalse()
530 when(mUsbPortStatus.isConnected()).thenReturn(false); in containsIncompatibleChargers_usbNotConnected_returnFalse()
552 when(mUsbPort.getStatus()).thenReturn(mUsbPortStatus); in setupIncompatibleCharging()
554 when(mUsbPortStatus.isConnected()).thenReturn(true); in setupIncompatibleCharging()
555 when(mUsbPortStatus.getComplianceWarnings()).thenReturn(new int[] {complianceWarningType}); in setupIncompatibleCharging()
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DKeyguardUpdateMonitorTest.java271 private UsbPortStatus mUsbPortStatus; field in KeyguardUpdateMonitorTest
2381 when(mUsbPort.getStatus()).thenReturn(mUsbPortStatus); in setupIncompatibleCharging()
2383 when(mUsbPortStatus.isConnected()).thenReturn(true); in setupIncompatibleCharging()
2384 when(mUsbPortStatus.getComplianceWarnings()) in setupIncompatibleCharging()