Lines Matching refs:portId

156     public UsbPortStatus getPortStatus(String portId) {
158 final PortInfo portInfo = mPorts.get(portId);
163 public void setPortRoles(String portId, int newPowerRole, int newDataRole,
166 final PortInfo portInfo = mPorts.get(portId);
169 pw.println("No such USB port: " + portId);
177 + "role combination: portId=" + portId
224 logAndPrint(Log.INFO, pw, "Setting USB port mode and role: portId=" + portId
232 RawPortInfo sim = mSimulatedPorts.get(portId);
249 + "portId=" + portId
255 mProxy.switchRole(portId, newRole);
258 + "portId=" + portId
268 mProxy.switchRole(portId, newRole);
271 + "portId=" + portId
283 mProxy.switchRole(portId, newRole);
286 + "portId=" + portId
297 public void addSimulatedPort(String portId, int supportedModes, IndentingPrintWriter pw) {
299 if (mSimulatedPorts.containsKey(portId)) {
304 pw.println("Adding simulated port: portId=" + portId
306 mSimulatedPorts.put(portId,
307 new RawPortInfo(portId, supportedModes));
312 public void connectSimulatedPort(String portId, int mode, boolean canChangeMode,
316 final RawPortInfo portInfo = mSimulatedPorts.get(portId);
333 pw.println("Connecting simulated port: portId=" + portId
350 public void disconnectSimulatedPort(String portId, IndentingPrintWriter pw) {
352 final RawPortInfo portInfo = mSimulatedPorts.get(portId);
358 pw.println("Disconnecting simulated port: portId=" + portId);
369 public void removeSimulatedPort(String portId, IndentingPrintWriter pw) {
371 final int index = mSimulatedPorts.indexOfKey(portId);
377 pw.println("Disconnecting simulated port: portId=" + portId);
551 addOrUpdatePortLocked(portInfo.portId, portInfo.supportedModes,
558 addOrUpdatePortLocked(currentPortInfo.portId, currentPortInfo.supportedModes,
589 private void addOrUpdatePortLocked(String portId, int supportedModes,
641 PortInfo portInfo = mPorts.get(portId);
643 portInfo = new PortInfo(portId, supportedModes);
648 mPorts.put(portId, portInfo);
744 public PortInfo(String portId, int supportedModes) {
745 mUsbPort = new UsbPort(portId, supportedModes);
782 public final String portId;
791 RawPortInfo(String portId, int supportedModes) {
792 this.portId = portId;
796 RawPortInfo(String portId, int supportedModes,
800 this.portId = portId;
817 dest.writeString(portId);