Package com.android.prefs
Class AndroidLocation
- java.lang.Object
-
- com.android.prefs.AndroidLocation
-
@Deprecated public final class AndroidLocation extends java.lang.ObjectDeprecated.UseAndroidLocationsExceptionorAndroidLocationsSingleton. Inside Gradle, use the build service instead of the singleton.Manages the location of the android files (including emulator files, ddms config, debug keystore)This does not manages the SDK location. For that see [SdkLocator]
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAndroidLocation.AndroidLocationExceptionDeprecated.Throw when the location of the android folder couldn't be found.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringANDROID_PREFS_ROOTDeprecated.static java.lang.StringFOLDER_AVDDeprecated.Virtual Device folder inside the path returned bygetFolder()static java.lang.StringFOLDER_DOT_ANDROIDDeprecated.The name of the .android folder returned bygetFolder().
-
Constructor Summary
Constructors Constructor Description AndroidLocation()Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static java.lang.StringgetAvdFolder()Deprecated.Returns the folder where the users AVDs are stored.static java.lang.StringgetFolder()Deprecated.Returns the folder used to store android related files.static java.lang.StringgetFolder(EnvironmentProvider environmentProvider, ILogger logger)Deprecated.Returns the folder used to store android related files.static java.lang.StringgetFolderWithoutWrites()Deprecated.Returns the folder used to store android related files.static java.lang.StringgetUserHomeFolder()Deprecated.static voidresetFolder()Deprecated.Resets the folder used to store android related files.
-
-
-
Field Detail
-
FOLDER_DOT_ANDROID
public static final java.lang.String FOLDER_DOT_ANDROID
Deprecated.The name of the .android folder returned bygetFolder().- See Also:
- Constant Field Values
-
FOLDER_AVD
public static final java.lang.String FOLDER_AVD
Deprecated.Virtual Device folder inside the path returned bygetFolder()- See Also:
- Constant Field Values
-
ANDROID_PREFS_ROOT
public static final java.lang.String ANDROID_PREFS_ROOT
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
getFolder
public static java.lang.String getFolder() throws AndroidLocation.AndroidLocationExceptionDeprecated.Returns the folder used to store android related files. If the folder is not created yet, it will be created here.- Returns:
- an OS specific path, terminated by a separator.
- Throws:
AndroidLocation.AndroidLocationException
-
getFolder
public static java.lang.String getFolder(@NonNull EnvironmentProvider environmentProvider, @NonNull ILogger logger) throws AndroidLocation.AndroidLocationExceptionDeprecated.Returns the folder used to store android related files. If the folder is not created yet, it will be created here.- Returns:
- an OS specific path, terminated by a separator.
- Throws:
AndroidLocation.AndroidLocationException- if the location is not found
-
getFolderWithoutWrites
public static java.lang.String getFolderWithoutWrites()
Deprecated.Returns the folder used to store android related files. This method will not create the folder if it doesn't exist yet.\- Returns:
- an OS specific path, terminated by a separator or null if no path is found or an error occurred.
-
getAvdFolder
@NonNull public static java.lang.String getAvdFolder() throws AndroidLocation.AndroidLocationExceptionDeprecated.Returns the folder where the users AVDs are stored.- Returns:
- an OS specific path, terminated by a separator.
- Throws:
AndroidLocation.AndroidLocationException
-
getUserHomeFolder
public static java.lang.String getUserHomeFolder() throws AndroidLocation.AndroidLocationExceptionDeprecated.
-
resetFolder
public static void resetFolder()
Deprecated.Resets the folder used to store android related files. For testing.
-
-