Searched refs:modeStr (Results 1 – 2 of 2) sorted by relevance
782 final String modeStr = getNextArg(); in handleNightMode() local783 if (modeStr == null) { in handleNightMode()788 final int mode = strToNightMode(modeStr); in handleNightMode()820 private static int strToNightMode(String modeStr) { in strToNightMode() argument821 switch (modeStr) { in strToNightMode()
2501 String modeStr; field in AppOpsService.Shell2546 static int strModeToMode(String modeStr, PrintWriter err) { in strModeToMode() argument2548 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 …]