Home
last modified time | relevance | path

Searched refs:Environment (Results 1 – 25 of 146) sorted by relevance

123456

/frameworks/base/core/tests/coretests/src/android/os/storage/
DAsecTests.java20 import android.os.Environment;
140 String mPath = Environment.getExternalStorageDirectory().toString(); in isMediaMounted()
142 return Environment.MEDIA_MOUNTED.equals(state); in isMediaMounted()
151 if (Environment.isExternalStorageEmulated()) { in test_Fat_External_Create_Success()
161 if (Environment.isExternalStorageEmulated()) { in test_Ext4_External_Create_Success()
188 if (Environment.isExternalStorageEmulated()) { in test_Fat_External_CreateMinSize_Success()
198 if (Environment.isExternalStorageEmulated()) { in test_Ext4_External_CreateMinSize_Success()
225 if (Environment.isExternalStorageEmulated()) { in test_Fat_External_CreateZeroSize_Failure()
234 if (Environment.isExternalStorageEmulated()) { in test_Ext4_External_CreateZeroSize_Failure()
258 if (Environment.isExternalStorageEmulated()) { in test_Fat_External_CreateDuplicate_Failure()
[all …]
/frameworks/base/core/java/com/android/internal/os/storage/
DExternalStorageFormatter.java9 import android.os.Environment;
125 Environment.getExternalStorageDirectory().toString() : in onCancel()
145 Environment.getExternalStorageState() : in updateProgressState()
147 if (Environment.MEDIA_MOUNTED.equals(status) in updateProgressState()
148 || Environment.MEDIA_MOUNTED_READ_ONLY.equals(status)) { in updateProgressState()
152 Environment.getExternalStorageDirectory().toString() : in updateProgressState()
160 } else if (Environment.MEDIA_NOFS.equals(status) in updateProgressState()
161 || Environment.MEDIA_UNMOUNTED.equals(status) in updateProgressState()
162 || Environment.MEDIA_UNMOUNTABLE.equals(status)) { in updateProgressState()
166 Environment.getExternalStorageDirectory().toString() : in updateProgressState()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
DStorageNotification.java25 import android.os.Environment;
73 Environment.getExternalStorageState())); in StorageNotification()
101 String st = Environment.getExternalStorageState(); in onUsbMassStorageConnectionChangedAsync()
106 Environment.MEDIA_REMOVED) || st.equals(Environment.MEDIA_CHECKING))) { in onUsbMassStorageConnectionChangedAsync()
131 if (newState.equals(Environment.MEDIA_SHARED)) { in onStorageStateChangedAsync()
143 } else if (newState.equals(Environment.MEDIA_CHECKING)) { in onStorageStateChangedAsync()
153 } else if (newState.equals(Environment.MEDIA_MOUNTED)) { in onStorageStateChangedAsync()
160 } else if (newState.equals(Environment.MEDIA_UNMOUNTED)) { in onStorageStateChangedAsync()
167 if (oldState.equals(Environment.MEDIA_SHARED)) { in onStorageStateChangedAsync()
179 if (Environment.isExternalStorageRemovable()) { in onStorageStateChangedAsync()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageManagerTests.java31 import android.os.Environment;
75 mOrigState = checkMediaState(Environment.MEDIA_MOUNTED); in setUp()
84 boolean newState = checkMediaState(Environment.MEDIA_MOUNTED); in tearDown()
285 String status = Environment.getExternalStorageState(); in checkSd()
286 if (!status.equals(Environment.MEDIA_MOUNTED)) { in checkSd()
291 Environment.getExternalStorageDirectory().getPath()); in checkSd()
299 StatFs intStats = new StatFs(Environment.getDataDirectory().getPath()); in checkInt()
372 File dataDir = Environment.getDataDirectory(); in assertInstall()
653 if (Environment.isExternalStorageEmulated()) { in testInstallSdcard()
755 if (Environment.isExternalStorageEmulated()) { in testReplaceFailSdcard()
[all …]
/frameworks/base/services/java/com/android/server/
DMountService.java40 import android.os.Environment;
520 if (state.equals(Environment.MEDIA_UNMOUNTED)) {
526 } else if (state.equals(Environment.MEDIA_SHARED)) {
539 Environment.getExternalStorageDirectory().getPath(),
609 if (Environment.MEDIA_UNMOUNTED.equals(state)) { in updatePublicVolumeState()
619 } else if (Environment.MEDIA_MOUNTED.equals(state)) { in updatePublicVolumeState()
662 String state = Environment.MEDIA_REMOVED; in onDaemonConnected()
666 state = Environment.MEDIA_REMOVED; in onDaemonConnected()
668 state = Environment.MEDIA_UNMOUNTED; in onDaemonConnected()
670 state = Environment.MEDIA_MOUNTED; in onDaemonConnected()
[all …]
DDiskStatsService.java21 import android.os.Environment;
53 File tmp = new File(Environment.getDataDirectory(), "system/perftest.tmp"); in dump()
79 reportFreeSpace(Environment.getDataDirectory(), "Data", pw); in dump()
80 reportFreeSpace(Environment.getDownloadCacheDirectory(), "Cache", pw); in dump()
/frameworks/ex/carousel/java/com/android/ex/carousel/
DCarouselViewUtilities.java11 import android.os.Environment;
24 File path = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES); in writeBitmapToFile()
/frameworks/base/packages/DefaultContainerService/src/com/android/defcontainer/
DDefaultContainerService.java36 import android.os.Environment;
274 eraseFiles(Environment.getExternalStorageAppDataDirectory(pkg)); in onHandleIntent()
275 eraseFiles(Environment.getExternalStorageAppMediaDirectory(pkg)); in onHandleIntent()
276 eraseFiles(Environment.getExternalStorageAppObbDirectory(pkg)); in onHandleIntent()
304 String status = Environment.getExternalStorageState(); in copyResourceInner()
305 if (!status.equals(Environment.MEDIA_MOUNTED)) { in copyResourceInner()
688 final boolean emulated = Environment.isExternalStorageEmulated(); in recommendAppInstallLocation()
734 && !Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState())) { in recommendAppInstallLocation()
760 final StatFs internalStats = new StatFs(Environment.getDataDirectory().getPath()); in isUnderInternalThreshold()
777 if (Environment.isExternalStorageEmulated()) { in isUnderExternalThreshold()
[all …]
/frameworks/base/tests/LowStorageTest/src/com/android/lowstoragetest/
DLowStorageTest.java23 import android.os.Environment;
51 File path = Environment.getDataDirectory(); in onCreate()
79 File path = Environment.getDataDirectory(); in fillupdisk()
121 File path = Environment.getDataDirectory(); in updateInfo()
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/
DSpnOverride.java28 import android.os.Environment;
57 final File spnFile = new File(Environment.getRootDirectory(), in loadSpnOverrides()
64 Environment.getRootDirectory() + "/" + PARTNER_SPN_OVERRIDE_PATH); in loadSpnOverrides()
DVoiceMailConstants.java19 import android.os.Environment;
76 final File vmFile = new File(Environment.getRootDirectory(), in loadVoiceMail()
83 Environment.getRootDirectory() + "/" + PARTNER_VOICEMAIL_PATH); in loadVoiceMail()
/frameworks/base/media/mca/tests/src/android/camera/mediaeffects/tests/functional/
DEffectsVideoCapture.java28 import android.os.Environment;
64 intent.putExtra("OUTPUT_FILENAME", Environment.getExternalStorageDirectory().toString() in testBackEffectsVideoCapture()
71 File file = new File(Environment.getExternalStorageDirectory(), in testBackEffectsVideoCapture()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerTest.java23 import android.os.Environment;
35 mUserManager = new UserManager(Environment.getExternalStorageDirectory(), in setUp()
36 Environment.getExternalStorageDirectory()); in setUp()
/frameworks/testing/uiautomator/cmds/uiautomator/src/com/android/commands/uiautomator/
DDumpCommand.java20 import android.os.Environment;
35 Environment.getExternalStorageDirectory(), "window_dump.xml");
/frameworks/base/tests/TileBenchmark/src/com/test/tilebenchmark/
DPerformanceTest.java27 import android.os.Environment;
200 File sdFile = Environment.getExternalStorageDirectory(); in runIteration()
258 String state = Environment.getExternalStorageState(); in checkMedia()
260 if (!Environment.MEDIA_MOUNTED.equals(state) in checkMedia()
261 && !Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)) { in checkMedia()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/power/
DMediaPlayerPowerTest.java22 import android.os.Environment;
34 Environment.getExternalStorageDirectory().toString() + "/power_sample_mp3.mp3";
/frameworks/base/tests/RenderScriptTests/ImageProcessing/src/com/android/rs/image/
DImageProcessingTest.java20 import android.os.Environment;
70 File externalStorage = Environment.getExternalStorageDirectory(); in testImageProcessingBench()
/frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/
DMenu.java21 import android.os.Environment;
33 Environment.getExternalStorageDirectory() + "/android/layout_tests_list.txt";
/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/
DDownloadManagerTestApp.java22 import android.os.Environment;
103 String path = Environment.getExternalStorageDirectory().getPath(); in getDownloadStartedFilePath()
272 String localDownloadDirectory = Environment.getExternalStorageDirectory().getPath(); in runDownloadMultipleSwitching()
347 String localDownloadDirectory = Environment.getExternalStorageDirectory().getPath(); in runDownloadMultipleWiFiEnableDisable()
417 String localDownloadDirectory = Environment.getExternalStorageDirectory().getPath(); in runDownloadMultipleAirplaneModeEnableDisable()
/frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/forwarder/
DForwardService.java24 import android.os.Environment;
38 Environment.getExternalStorageDirectory() + "/drt_forward_host.txt";
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DGetBitmapActivity.java24 import android.os.Environment;
57 Environment.getExternalStorageDirectory() + "/textureview.png"); in onCreate()
/frameworks/base/media/mca/samples/CameraEffectsRecordingSample/java/android/media/filterfw/samples/
DCameraEffectsRecordingSample.java22 import android.os.Environment;
42 private String mOutFileName = Environment.getExternalStorageDirectory().toString() +
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/
DScreenshotTest.java20 import android.os.Environment;
125 return new File(Environment.getExternalStorageDirectory(), "Pictures" + File.separator + in getScreenshotDir()
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/
DRsBenchRS.java27 import android.os.Environment;
151 String state = Environment.getExternalStorageState(); in saveTestResults()
152 if (!Environment.MEDIA_MOUNTED.equals(state)) { in saveTestResults()
156 File sdCard = Environment.getExternalStorageDirectory(); in saveTestResults()
/frameworks/base/core/tests/coretests/src/android/app/
DDownloadManagerFunctionalTest.java23 import android.os.Environment;
39 Environment.getDownloadCacheDirectory().getAbsolutePath();
41 Environment.getRootDirectory().getAbsolutePath();
184 String localDownloadDirectory = Environment.getExternalStorageDirectory().getPath(); in testDownloadToExternal()

123456