HomeSort by relevance Sort by last modified time
    Searched refs:getExternalStorageState (Results 1 - 25 of 49) sorted by null

1 2

  /cts/common/device-side/preconditions/src/com/android/compatibility/common/preconditions/
ExternalStorageHelper.java 29 String state = Environment.getExternalStorageState();
35 String state = Environment.getExternalStorageState();
  /developers/build/prebuilts/gradle/AutoBackupForApps/Application/src/main/java/com/example/android/autobackupsample/
Utils.java 30 String state = Environment.getExternalStorageState();
  /developers/samples/android/content/AutoBackupForApps/Application/src/main/java/com/example/android/autobackupsample/
Utils.java 30 String state = Environment.getExternalStorageState();
  /development/samples/browseable/AutoBackupForApps/src/com.example.android.autobackupsample/
Utils.java 30 String state = Environment.getExternalStorageState();
  /cts/tests/tests/mediastress/src/android/mediastress/cts/
WorkDir.java 33 Assert.assertEquals(Environment.getExternalStorageState(), Environment.MEDIA_MOUNTED);
  /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
ShadowEnvironmentTest.java 32 assertThat(Environment.getExternalStorageState()).isEqualTo(Environment.MEDIA_REMOVED);
34 assertThat(Environment.getExternalStorageState()).isEqualTo(Environment.MEDIA_MOUNTED);
151 assertThat(ShadowEnvironment.getExternalStorageState()).isEqualTo("blah");
169 assertThat(ShadowEnvironment.getExternalStorageState()).isEqualTo("blah");
174 public void getExternalStorageState() throws Exception {
181 assertThat(ShadowEnvironment.getExternalStorageState(storageDir1))
185 assertThat(ShadowEnvironment.getExternalStorageState(storageDir2))
189 assertThat(ShadowEnvironment.getExternalStorageState(new File(storageDir1, "subpath")))
193 assertThat(ShadowEnvironment.getExternalStorageState()).isEqualTo("blah");
  /cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/
WriteExternalStorageTest.java 84 assertEquals(Environment.MEDIA_MOUNTED, Environment.getExternalStorageState());
153 Environment.getExternalStorageState(path));
158 while (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState(path))) {
190 assertEquals(Environment.MEDIA_MOUNTED, Environment.getExternalStorageState(path));
205 assertEquals(Environment.MEDIA_UNKNOWN, Environment.getExternalStorageState(path));
213 Environment.getExternalStorageState(new File("/meow-should-never-exist")));
217 Environment.getExternalStorageState(getContext().getCacheDir()));
231 Environment.getExternalStorageState(path));
243 if (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState(path))) {
271 Environment.getExternalStorageState(path))
    [all...]
  /cts/hostsidetests/appsecurity/test-apps/ReadExternalStorageApp/src/com/android/cts/readexternalstorageapp/
ReadExternalStorageTest.java 53 Environment.getExternalStorageState(path));
65 if (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState(path))) {
  /cts/common/device-side/util/src/com/android/compatibility/common/util/
DynamicConfigDeviceSide.java 48 if (!Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) {
  /cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DynamicConfigDeviceSide.java 48 if (!Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) {
  /cts/tests/tests/os/src/android/os/cts/
EnvironmentTest.java 32 assertNotNull(Environment.getExternalStorageState());
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Utils/
ReportExporter.java 55 if (!Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState())) {
  /cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
VintfFilesCollector.java 52 Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED));
DeviceInfo.java 81 if (!Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) {
  /development/samples/browseable/BasicMediaDecoder/src/com.example.android.common.media/
CameraHelper.java 156 // using Environment.getExternalStorageState() before doing this.
157 if (!Environment.getExternalStorageState().equalsIgnoreCase(Environment.MEDIA_MOUNTED)) {
  /development/samples/browseable/BasicRenderScript/src/com.example.android.common.media/
CameraHelper.java 156 // using Environment.getExternalStorageState() before doing this.
157 if (!Environment.getExternalStorageState().equalsIgnoreCase(Environment.MEDIA_MOUNTED)) {
  /development/samples/browseable/MediaRecorder/src/com.example.android.common.media/
CameraHelper.java 156 // using Environment.getExternalStorageState() before doing this.
157 if (!Environment.getExternalStorageState().equalsIgnoreCase(Environment.MEDIA_MOUNTED)) {
  /external/walt/android/WALT/app/src/main/java/org/chromium/latency/walt/
TraceLogger.java 97 String state = Environment.getExternalStorageState();
  /cts/hostsidetests/appsecurity/test-apps/MultiUserStorageApp/src/com/android/cts/multiuserstorageapp/
MultiUserStorageTest.java 78 Environment.getExternalStorageState(path));
102 Environment.getExternalStorageState(path));
  /external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
ShadowEnvironment.java 37 protected static String getExternalStorageState() {
42 * Sets the return value of {@link #getExternalStorageState()}.
44 * @param externalStorageState Value to return from {@link #getExternalStorageState()}.
115 protected static String getExternalStorageState(File directory) {
206 * Sets the {@link #getExternalStorageState(File)} for given directory.
208 * @param externalStorageState Value to return from {@link #getExternalStorageState(File)}.
  /developers/build/prebuilts/gradle/BasicMediaDecoder/Application/src/main/java/com/example/android/common/media/
CameraHelper.java 157 // using Environment.getExternalStorageState() before doing this.
158 if (!Environment.getExternalStorageState().equalsIgnoreCase(Environment.MEDIA_MOUNTED)) {
  /developers/build/prebuilts/gradle/MediaRecorder/Application/src/main/java/com/example/android/common/media/
CameraHelper.java 157 // using Environment.getExternalStorageState() before doing this.
158 if (!Environment.getExternalStorageState().equalsIgnoreCase(Environment.MEDIA_MOUNTED)) {
  /developers/build/prebuilts/gradle/RuntimePermissionsWear/Application/src/main/java/com/example/android/wearable/runtimepermissions/
IncomingRequestPhoneService.java 171 String state = Environment.getExternalStorageState();
  /developers/samples/android/common/src/java/com/example/android/common/media/
CameraHelper.java 157 // using Environment.getExternalStorageState() before doing this.
158 if (!Environment.getExternalStorageState().equalsIgnoreCase(Environment.MEDIA_MOUNTED)) {
  /developers/samples/android/wearable/wear/RuntimePermissionsWear/Application/src/main/java/com/example/android/wearable/runtimepermissions/
IncomingRequestPhoneService.java 164 String state = Environment.getExternalStorageState();

Completed in 890 milliseconds

1 2