Home
last modified time | relevance | path

Searched refs:modeStr (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/core/java/com/android/server/
DUiModeManagerService.java782 final String modeStr = getNextArg(); in handleNightMode() local
783 if (modeStr == null) { in handleNightMode()
788 final int mode = strToNightMode(modeStr); in handleNightMode()
820 private static int strToNightMode(String modeStr) { in strToNightMode() argument
821 switch (modeStr) { in strToNightMode()
DAppOpsService.java2501 String modeStr; field in AppOpsService.Shell
2546 static int strModeToMode(String modeStr, PrintWriter err) { in strModeToMode() argument
2548 if (AppOpsManager.MODE_NAMES[i].equals(modeStr)) { in strModeToMode()
2553 return Integer.parseInt(modeStr); in strModeToMode()
2556 err.println("Error: Mode " + modeStr + " is not valid"); in strModeToMode()
2563 modeStr = null; in parseUserOpMode()
2570 } else if (modeStr == null) { in parseUserOpMode()
2571 modeStr = argument; in parseUserOpMode()
2584 if (modeStr != null) { in parseUserOpMode()
2585 if ((mode=strModeToMode(modeStr, err)) < 0) { in parseUserOpMode()
[all …]