Home | History | Annotate | Download | only in usb

Lines Matching refs:portId

163     public UsbPortStatus getPortStatus(String portId) {
165 final PortInfo portInfo = mPorts.get(portId);
170 public void setPortRoles(String portId, int newPowerRole, int newDataRole,
173 final PortInfo portInfo = mPorts.get(portId);
176 pw.println("No such USB port: " + portId);
184 + "role combination: portId=" + portId
231 logAndPrint(Log.INFO, pw, "Setting USB port mode and role: portId=" + portId
239 RawPortInfo sim = mSimulatedPorts.get(portId);
256 + "portId=" + portId
262 mProxy.switchRole(portId, newRole);
265 + "portId=" + portId
275 mProxy.switchRole(portId, newRole);
278 + "portId=" + portId
290 mProxy.switchRole(portId, newRole);
293 + "portId=" + portId
304 public void addSimulatedPort(String portId, int supportedModes, IndentingPrintWriter pw) {
306 if (mSimulatedPorts.containsKey(portId)) {
311 pw.println("Adding simulated port: portId=" + portId
313 mSimulatedPorts.put(portId,
314 new RawPortInfo(portId, supportedModes));
319 public void connectSimulatedPort(String portId, int mode, boolean canChangeMode,
323 final RawPortInfo portInfo = mSimulatedPorts.get(portId);
340 pw.println("Connecting simulated port: portId=" + portId
357 public void disconnectSimulatedPort(String portId, IndentingPrintWriter pw) {
359 final RawPortInfo portInfo = mSimulatedPorts.get(portId);
365 pw.println("Disconnecting simulated port: portId=" + portId);
376 public void removeSimulatedPort(String portId, IndentingPrintWriter pw) {
378 final int index = mSimulatedPorts.indexOfKey(portId);
384 pw.println("Disconnecting simulated port: portId=" + portId);
558 addOrUpdatePortLocked(portInfo.portId, portInfo.supportedModes,
565 addOrUpdatePortLocked(currentPortInfo.portId, currentPortInfo.supportedModes,
596 private void addOrUpdatePortLocked(String portId, int supportedModes,
648 PortInfo portInfo = mPorts.get(portId);
650 portInfo = new PortInfo(portId, supportedModes);
655 mPorts.put(portId, portInfo);
751 public PortInfo(String portId, int supportedModes) {
752 mUsbPort = new UsbPort(portId, supportedModes);
803 public final String portId;
812 RawPortInfo(String portId, int supportedModes) {
813 this.portId = portId;
817 RawPortInfo(String portId, int supportedModes,
821 this.portId = portId;
838 dest.writeString(portId);