Searched refs:devPath (Results 1 – 3 of 3) sorted by relevance
60 String devPath = event.get("DEVPATH"); in onUEvent() local61 ExtconInfo info = mExtconInfos.get(devPath); in onUEvent()253 File devPath = new File(extconPath); in getDevicePath() local254 if (devPath.exists()) { in getDevicePath()255 String canonicalPath = devPath.getCanonicalPath(); in getDevicePath()
427 String devPath = event.get("DEVPATH"); in onUEvent() local431 updateStateLocked(devPath, name, state); in onUEvent()438 private void updateStateLocked(String devPath, String name, int state) { in updateStateLocked() argument441 if (devPath.equals(uei.getDevPath())) { in updateStateLocked()
465 final String devPath = event.get("DEVPATH"); in onKeyboardBacklightUEvent() local466 if (isValidBacklightNodePath(devPath)) { in onKeyboardBacklightUEvent()467 mNative.sysfsNodeChanged("/sys" + devPath); in onKeyboardBacklightUEvent()491 private static boolean isValidBacklightNodePath(String devPath) { in isValidBacklightNodePath() argument492 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()