Home
last modified time | relevance | path

Searched refs:extconInfo (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/core/java/com/android/server/
DExtconStateObserver.java45 public S parseStateFromFile(ExtconInfo extconInfo) throws IOException { in parseStateFromFile() argument
46 String statePath = extconInfo.getStatePath(); in parseStateFromFile()
48 extconInfo, in parseStateFromFile()
53 public void onUEvent(ExtconInfo extconInfo, UEvent event) { in onUEvent() argument
54 if (LOG) Slog.d(TAG, extconInfo.getName() + " UEVENT: " + event); in onUEvent()
56 S state = parseState(extconInfo, event.get("STATE")); in onUEvent()
58 updateState(extconInfo, name, state); in onUEvent()
70 public abstract void updateState(ExtconInfo extconInfo, String eventName, @NonNull S state); in updateState() argument
81 public abstract S parseState(ExtconInfo extconInfo, String state); in parseState() argument
DWiredAccessoryManager.java502 for (ExtconInfo extconInfo : mExtconInfos) { in init()
505 state = parseStateFromFile(extconInfo); in init()
507 Slog.w(TAG, extconInfo.getStatePath() in init()
512 "Error reading " + extconInfo.getStatePath() in init()
517 updateState(extconInfo, extconInfo.getName(), state); in init()
519 if (LOG) Slog.d(TAG, "observing " + extconInfo.getName()); in init()
520 startObserving(extconInfo); in init()
526 public Pair<Integer, Integer> parseState(ExtconInfo extconInfo, String status) { in parseState() argument
531 if (extconInfo.hasCableType(ExtconInfo.EXTCON_HEADPHONE)) { in parseState()
534 if (extconInfo.hasCableType(ExtconInfo.EXTCON_MICROPHONE)) { in parseState()
[all …]
DExtconUEventObserver.java75 protected abstract void onUEvent(ExtconInfo extconInfo, UEvent event); in onUEvent() argument
78 public void startObserving(ExtconInfo extconInfo) { in startObserving() argument
79 String devicePath = extconInfo.getDevicePath(); in startObserving()
81 Slog.wtf(TAG, "Unable to start observing " + extconInfo.getName() in startObserving()
84 mExtconInfos.put(devicePath, extconInfo); in startObserving()
DDockObserver.java376 public void onUEvent(ExtconInfo extconInfo, UEventObserver.UEvent event) {
/frameworks/base/services/core/java/com/android/server/policy/
DPhoneWindowManager.java6950 public void updateState(ExtconInfo extconInfo, String eventName, Boolean state) {