Home
last modified time | relevance | path

Searched refs:extconInfo (Results 1 – 4 of 4) 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
DExtconUEventObserver.java73 protected abstract void onUEvent(ExtconInfo extconInfo, UEvent event); in onUEvent() argument
76 public void startObserving(ExtconInfo extconInfo) { in startObserving() argument
77 String devicePath = extconInfo.getDevicePath(); in startObserving()
79 Slog.wtf(TAG, "Unable to start observing " + extconInfo.getName() in startObserving()
82 mExtconInfos.put(devicePath, extconInfo); in startObserving()
DWiredAccessoryManager.java498 for (ExtconInfo extconInfo : mExtconInfos) { in init()
501 state = parseStateFromFile(extconInfo); in init()
503 Slog.w(TAG, extconInfo.getStatePath() in init()
508 "Error reading " + extconInfo.getStatePath() in init()
513 updateState(extconInfo, extconInfo.getName(), state); in init()
515 if (LOG) Slog.d(TAG, "observing " + extconInfo.getName()); in init()
516 startObserving(extconInfo); in init()
522 public Pair<Integer, Integer> parseState(ExtconInfo extconInfo, String status) { in parseState() argument
536 public void updateState(ExtconInfo extconInfo, String name, in updateState() argument
/frameworks/base/services/core/java/com/android/server/policy/
DPhoneWindowManager.java5731 public void updateState(ExtconInfo extconInfo, String eventName, Boolean state) { in updateState() argument