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.java1242 final String modeStr = getNextArg(); in handleNightMode() local
1243 if (modeStr == null) { in handleNightMode()
1248 final int mode = strToNightMode(modeStr); in handleNightMode()
1280 private static int strToNightMode(String modeStr) { in strToNightMode() argument
1281 switch (modeStr) { in strToNightMode()
/frameworks/base/services/core/java/com/android/server/appop/
DAppOpsService.java3255 String modeStr; field in AppOpsService.Shell
3301 static int strModeToMode(String modeStr, PrintWriter err) { in strModeToMode() argument
3303 if (AppOpsManager.MODE_NAMES[i].equals(modeStr)) { in strModeToMode()
3308 return Integer.parseInt(modeStr); in strModeToMode()
3311 err.println("Error: Mode " + modeStr + " is not valid"); in strModeToMode()
3318 modeStr = null; in parseUserOpMode()
3325 } else if (modeStr == null) { in parseUserOpMode()
3326 modeStr = argument; in parseUserOpMode()
3339 if (modeStr != null) { in parseUserOpMode()
3340 if ((mode=strModeToMode(modeStr, err)) < 0) { in parseUserOpMode()
[all …]