API tweaks round 2
Add nullability annotations and change a static constant to a method that returns a value. Fixes: 126702861 Fixes: 126699926 Fixes: 126698717 Fixes: 126699057 Fixes: 126701443 Fixes: 126700882 Test: compiles Change-Id: I96396eb8890b8b5148cf74447e08c31983398e47
This commit is contained in:
@@ -1344,12 +1344,7 @@ public class TelephonyManager {
|
||||
*/
|
||||
public static final String EXTRA_RECOVERY_ACTION = "recoveryAction";
|
||||
|
||||
/**
|
||||
* The max value for the timeout passed in {@link #requestNumberVerification}.
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
public static final long MAX_NUMBER_VERIFICATION_TIMEOUT_MILLIS = 60000;
|
||||
private static final long MAX_NUMBER_VERIFICATION_TIMEOUT_MILLIS = 60000;
|
||||
|
||||
/**
|
||||
* Intent sent when an error occurs that debug tools should log and possibly take further
|
||||
@@ -1992,6 +1987,15 @@ public class TelephonyManager {
|
||||
return cmdline;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The max value for the timeout passed in {@link #requestNumberVerification}.
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
public static long getMaxNumberVerificationTimeoutMillis() {
|
||||
return MAX_NUMBER_VERIFICATION_TIMEOUT_MILLIS;
|
||||
}
|
||||
|
||||
/** Kernel command line */
|
||||
private static final String sKernelCmdLine = getProcCmdLine();
|
||||
|
||||
@@ -5718,8 +5722,8 @@ public class TelephonyManager {
|
||||
*
|
||||
* @hide
|
||||
* @param range The range of phone numbers the caller expects a phone call from.
|
||||
* @param timeoutMillis The amount of time to wait for such a call, or
|
||||
* {@link #MAX_NUMBER_VERIFICATION_TIMEOUT_MILLIS}, whichever is lesser.
|
||||
* @param timeoutMillis The amount of time to wait for such a call, or the value of
|
||||
* {@link #getMaxNumberVerificationTimeoutMillis()}, whichever is lesser.
|
||||
* @param executor The {@link Executor} that callbacks should be executed on.
|
||||
* @param callback The callback to use for delivering results.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user