Searched refs:mUsbPortStatus (Results 1 – 4 of 4) sorted by relevance
211 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 …]
78 @Mock private UsbPortStatus mUsbPortStatus; field in BatteryControllerTest285 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()
83 @Mock private UsbPortStatus mUsbPortStatus; field in UtilsTest515 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()
271 private UsbPortStatus mUsbPortStatus; field in KeyguardUpdateMonitorTest2381 when(mUsbPort.getStatus()).thenReturn(mUsbPortStatus); in setupIncompatibleCharging()2383 when(mUsbPortStatus.isConnected()).thenReturn(true); in setupIncompatibleCharging()2384 when(mUsbPortStatus.getComplianceWarnings()) in setupIncompatibleCharging()