Home
last modified time | relevance | path

Searched refs:devPath (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/services/core/java/com/android/server/
DExtconUEventObserver.java60 String devPath = event.get("DEVPATH"); in onUEvent() local
61 ExtconInfo info = mExtconInfos.get(devPath); in onUEvent()
253 File devPath = new File(extconPath); in getDevicePath() local
254 if (devPath.exists()) { in getDevicePath()
255 String canonicalPath = devPath.getCanonicalPath(); in getDevicePath()
DWiredAccessoryManager.java427 String devPath = event.get("DEVPATH"); in onUEvent() local
431 updateStateLocked(devPath, name, state); in onUEvent()
438 private void updateStateLocked(String devPath, String name, int state) { in updateStateLocked() argument
441 if (devPath.equals(uei.getDevPath())) { in updateStateLocked()
/frameworks/base/services/core/java/com/android/server/input/
DKeyboardBacklightController.java465 final String devPath = event.get("DEVPATH"); in onKeyboardBacklightUEvent() local
466 if (isValidBacklightNodePath(devPath)) { in onKeyboardBacklightUEvent()
467 mNative.sysfsNodeChanged("/sys" + devPath); in onKeyboardBacklightUEvent()
491 private static boolean isValidBacklightNodePath(String devPath) { in isValidBacklightNodePath() argument
492 if (TextUtils.isEmpty(devPath)) { in isValidBacklightNodePath()
495 int index = devPath.lastIndexOf('/'); in isValidBacklightNodePath()
499 String backlightNode = devPath.substring(index + 1); in isValidBacklightNodePath()
500 devPath = devPath.substring(0, index); in isValidBacklightNodePath()
501 if (!devPath.endsWith("leds") || !backlightNode.contains("kbd_backlight")) { in isValidBacklightNodePath()
504 index = devPath.lastIndexOf('/'); in isValidBacklightNodePath()