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.java906 final String modeStr = getNextArg(); in handleNightMode() local
907 if (modeStr == null) { in handleNightMode()
912 final int mode = strToNightMode(modeStr); in handleNightMode()
944 private static int strToNightMode(String modeStr) { in strToNightMode() argument
945 switch (modeStr) { in strToNightMode()
/frameworks/base/services/core/java/com/android/server/appop/
DAppOpsService.java3109 String modeStr; field in AppOpsService.Shell
3155 static int strModeToMode(String modeStr, PrintWriter err) { in strModeToMode() argument
3157 if (AppOpsManager.MODE_NAMES[i].equals(modeStr)) { in strModeToMode()
3162 return Integer.parseInt(modeStr); in strModeToMode()
3165 err.println("Error: Mode " + modeStr + " is not valid"); in strModeToMode()
3172 modeStr = null; in parseUserOpMode()
3179 } else if (modeStr == null) { in parseUserOpMode()
3180 modeStr = argument; in parseUserOpMode()
3193 if (modeStr != null) { in parseUserOpMode()
3194 if ((mode=strModeToMode(modeStr, err)) < 0) { in parseUserOpMode()
[all …]