Home
last modified time | relevance | path

Searched full:environment (Results 1 – 25 of 456) sorted by relevance

12345678910>>...19

/frameworks/base/core/tests/coretests/src/android/os/
DEnvironmentTest.java19 import static android.os.Environment.HAS_ANDROID;
20 import static android.os.Environment.HAS_DCIM;
21 import static android.os.Environment.HAS_DOWNLOADS;
22 import static android.os.Environment.HAS_OTHER;
23 import static android.os.Environment.classifyExternalStorageDirectory;
65 Environment.buildPath(dir, "DCIM").mkdirs(); in testClassify_emptyDirs()
66 Environment.buildPath(dir, "DCIM", "January").mkdirs(); in testClassify_emptyDirs()
67 Environment.buildPath(dir, "Downloads").mkdirs(); in testClassify_emptyDirs()
68 Environment.buildPath(dir, "LOST.DIR").mkdirs(); in testClassify_emptyDirs()
74 Environment.buildPath(dir, "autorun.inf").createNewFile(); in testClassify_emptyFactory()
[all …]
/frameworks/base/media/mca/filterfw/native/core/
Dgl_env.h59 // The GLEnv class provides functionality related to the EGL environment, which
61 // a new environment or base it off the currently active EGL environment. In
62 // order to do the latter, an EGL environment must be setup already (though not
75 // Inits a new GL environment, including a new surface and context. You
79 // Inits the GL environment from the current GL environment. Use this when
85 // Activates the environment, and makes the associated GL context the
86 // current context. Creates the environment, if it has not been created
90 // Deactivates the environment. Returns true if the deactivation was
103 // Add a surface to the environment. This surface will now be managed (and
107 // Add a window surface to the environment. The window is passed in as
[all …]
/frameworks/base/media/mca/filterfw/java/android/filterfw/
DMffEnvironment.java37 * Protected constructor to initialize the environment's essential components. These are the
49 // Setup the environment in MffEnvironment()
56 * Returns the environment's filter-context.
63 * Set the environment's GL environment to the specified environment. This does not activate
64 * the environment.
71 * Create and activate a new GL environment for use in this filter context.
80 * Activate the GL environment for use in the current thread. A GL environment must have been
94 * Deactivate the GL environment from use in the current thread. A GL environment must have been
DGraphEnvironment.java39 * 2. Perform any configuration, such as adding graph references and setting a GL environment.
68 public AsyncRunner getAsyncRunner(FilterContext environment) { in getAsyncRunner() argument
70 mAsyncRunner = new AsyncRunner(environment, RoundRobinScheduler.class); in getAsyncRunner()
76 public GraphRunner getSyncRunner(FilterContext environment) { in getSyncRunner() argument
78 mSyncRunner = new SyncRunner(environment, mGraph, RoundRobinScheduler.class); in getSyncRunner()
128 * Loads a graph file from the specified resource and adds it to this environment.
149 * Add a graph to the environment. Consider using loadGraph() if you are loading a graph from
152 * @param graph The graph to add to the environment.
162 * Access a specific graph of this environment given a graph ID (previously returned from
/frameworks/base/core/java/android/os/storage/
DStorageVolume.java27 import android.os.Environment;
58 * <li>To get access to standard directories (like the {@link Environment#DIRECTORY_PICTURES}), they
77 * See {@link Environment#getExternalStorageDirectory()} for more info about shared/external
208 * backed by {@link Environment#getExternalStorageDirectory()}.
303 * @return one of {@link Environment#MEDIA_UNKNOWN}, {@link Environment#MEDIA_REMOVED},
304 * {@link Environment#MEDIA_UNMOUNTED}, {@link Environment#MEDIA_CHECKING},
305 * {@link Environment#MEDIA_NOFS}, {@link Environment#MEDIA_MOUNTED},
306 * {@link Environment#MEDIA_MOUNTED_READ_ONLY}, {@link Environment#MEDIA_SHARED},
307 * {@link Environment#MEDIA_BAD_REMOVAL}, or {@link Environment#MEDIA_UNMOUNTABLE}.
336 * @param directoryName must be one of {@link Environment#DIRECTORY_MUSIC},
[all …]
DVolumeInfo.java26 import android.os.Environment;
124 sStateToEnvironment.put(VolumeInfo.STATE_UNMOUNTED, Environment.MEDIA_UNMOUNTED); in sStateToEnvironment.put()
125 sStateToEnvironment.put(VolumeInfo.STATE_CHECKING, Environment.MEDIA_CHECKING); in sStateToEnvironment.put()
126 sStateToEnvironment.put(VolumeInfo.STATE_MOUNTED, Environment.MEDIA_MOUNTED); in sStateToEnvironment.put()
127 … sStateToEnvironment.put(VolumeInfo.STATE_MOUNTED_READ_ONLY, Environment.MEDIA_MOUNTED_READ_ONLY); in sStateToEnvironment.put()
128 sStateToEnvironment.put(VolumeInfo.STATE_FORMATTING, Environment.MEDIA_UNMOUNTED); in sStateToEnvironment.put()
129 sStateToEnvironment.put(VolumeInfo.STATE_EJECTING, Environment.MEDIA_EJECTING); in sStateToEnvironment.put()
130 sStateToEnvironment.put(VolumeInfo.STATE_UNMOUNTABLE, Environment.MEDIA_UNMOUNTABLE); in sStateToEnvironment.put()
131 sStateToEnvironment.put(VolumeInfo.STATE_REMOVED, Environment.MEDIA_REMOVED); in sStateToEnvironment.put()
132 sStateToEnvironment.put(VolumeInfo.STATE_BAD_REMOVAL, Environment.MEDIA_BAD_REMOVAL); in sStateToEnvironment.put()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DUserDataPreparer.java23 import android.os.Environment;
169 .listFilesOrEmpty(Environment.getDataUserDeDirectory(volumeUuid))); in reconcileUsers()
171 .listFilesOrEmpty(Environment.getDataUserCeDirectory(volumeUuid))); in reconcileUsers()
173 .listFilesOrEmpty(Environment.getDataSystemDeDirectory())); in reconcileUsers()
175 .listFilesOrEmpty(Environment.getDataSystemCeDirectory())); in reconcileUsers()
177 .listFilesOrEmpty(Environment.getDataMiscCeDirectory())); in reconcileUsers()
230 return Environment.getDataMiscCeDirectory(userId); in getDataMiscCeDirectory()
235 return Environment.getDataSystemCeDirectory(userId); in getDataSystemCeDirectory()
240 return Environment.getDataMiscDeDirectory(userId); in getDataMiscDeDirectory()
245 return Environment.getUserSystemDirectory(userId); in getUserSystemDirectory()
[all …]
/frameworks/compile/libbcc/tests/debuginfo/host-tests/
Dlit.cfg42 ## Set up environment variables
46 config.environment['LD_LIBRARY_PATH'] = \
48 config.environment['LD_LIBRARY_PATH']
51 config.environment['DEBUGGER'] = config.gdb
52 config.environment['DEBUGGER_ARGS'] = '-q -batch -n --args ' \
58 lit.note('LD_LIBRARY_PATH is %r' % config.environment['LD_LIBRARY_PATH'])
/frameworks/base/core/java/com/android/server/
DSystemConfig.java26 import android.os.Environment;
350 readPermissions(Environment.buildPath( in SystemConfig()
351 Environment.getRootDirectory(), "etc", "sysconfig"), ALLOW_ALL); in SystemConfig()
354 readPermissions(Environment.buildPath( in SystemConfig()
355 Environment.getRootDirectory(), "etc", "permissions"), ALLOW_ALL); in SystemConfig()
364 readPermissions(Environment.buildPath( in SystemConfig()
365 Environment.getVendorDirectory(), "etc", "sysconfig"), vendorPermissionFlag); in SystemConfig()
366 readPermissions(Environment.buildPath( in SystemConfig()
367 Environment.getVendorDirectory(), "etc", "permissions"), vendorPermissionFlag); in SystemConfig()
372 readPermissions(Environment.buildPath( in SystemConfig()
[all …]
/frameworks/compile/libbcc/tests/debuginfo/target-tests/
Dlit.cfg69 ## Set up environment variables
72 # Propagate ANDROID_PRODUCT_OUT to child environment
73 config.environment['ANDROID_PRODUCT_OUT'] = os.getenv('ANDROID_PRODUCT_OUT')
74 config.environment['ANDROID_BUILD_TOP'] = os.getenv('ANDROID_BUILD_TOP')
76 config.environment['DEBUGGER'] = config.gdb
77 config.environment['DEBUGGER_ARGS'] = "-d " + config.gdb_plugin_directory + ' '
/frameworks/compile/libbcc/tests/debuginfo/
Dlit.site.cfg29 # If the user set the overriding environment variable, use it
38 , try setting " + env_var + " in your environment")
42 # Get the base build directory for the android source tree from environment.
62 config.environment['PATH'])
71 config.perl = inferTool(lit, 'perl', 'PERL', config.environment['PATH'])
72 config.sh = inferTool(lit, 'bash', 'BASH', config.environment['PATH'])
/frameworks/base/core/java/android/nfc/cardemulation/
DOffHostApduService.java60 * <p>In some cases, an off-host environment may need to register multiple AIDs
69 * <li>All AIDs in the group are routed to the off-host execution environment
70 * <li>No AIDs in the group are routed to the off-host execution environment
73 * in the group can be routed to this off-host execution environment,
129 * routing the AIDs to the off-host execution environment,
134 * the off-host execution environment.
162 * execution environment (in case the user preferred a {@link OffHostApduService}.
166 * the off-host execution environment. Such implementations
/frameworks/base/services/backup/java/com/android/server/backup/
DUserBackupManagerFiles.java19 import android.os.Environment;
31 return Environment.getDataSystemCeDirectory(userId); in getBaseDir()
40 return new File(Environment.getDataDirectory(), BACKUP_PERSISTENT_DIR); in getBaseStateDir()
49 return new File(Environment.getDownloadCacheDirectory(), BACKUP_STAGING_DIR); in getDataDir()
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DGraphRunner.java63 * Helper function for subclasses to activate the GL environment before running.
64 * @return true, if the GL environment was activated. Returns false, if the GL environment
77 * Helper function for subclasses to deactivate the GL environment after running.
DFilterContext.java62 public void initGLEnvironment(GLEnvironment environment) { in initGLEnvironment() argument
64 mGLEnvironment = environment; in initGLEnvironment()
66 throw new RuntimeException("Attempting to re-initialize GL Environment for " + in initGLEnvironment()
/frameworks/compile/slang/lit-tests/
Dlit.cfg15 # Get the base build directory for the android source tree from environment.
33 # If the user set the overriding environment variable, use it
43 + env_var + " in your environment")
50 config.filecheck = inferTool('FileCheck', 'FILECHECK', config.environment['PATH'])
/frameworks/base/services/core/java/com/android/server/storage/
DDiskStatsLoggingService.java29 import android.os.Environment;
30 import android.os.Environment.UserEnvironment;
74 UserEnvironment environment = new UserEnvironment(userId); in onStartJob() local
77 environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS)); in onStartJob()
/frameworks/base/core/java/com/android/server/backup/
DSystemBackupAgent.java27 import android.os.Environment;
68 Environment.getUserSystemDirectory(UserHandle.USER_SYSTEM).getAbsolutePath();
70 new File(Environment.getUserSystemDirectory(UserHandle.USER_SYSTEM),
76 Environment.getUserSystemDirectory(UserHandle.USER_SYSTEM).getAbsolutePath();
78 new File(Environment.getUserSystemDirectory(UserHandle.USER_SYSTEM),
/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/packages/SettingsLib/src/com/android/settingslib/deviceinfo/
DStorageMeasurement.java25 import android.os.Environment;
73 * {@link Environment#DIRECTORY_PICTURES}.
191 mediaMap.put(Environment.DIRECTORY_MUSIC, stats.getAudioBytes()); in measureExactStorage()
192 mediaMap.put(Environment.DIRECTORY_MOVIES, stats.getVideoBytes()); in measureExactStorage()
193 mediaMap.put(Environment.DIRECTORY_PICTURES, stats.getImageBytes()); in measureExactStorage()
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
DMediaStoreSaver.java24 import android.os.Environment;
39 File folder = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES); in savePNG()
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/
DMediaStoreSaver.java24 import android.os.Environment;
40 File folder = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES); in save()
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/
DMediaStoreSaver.java24 import android.os.Environment;
40 File folder = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES); in save()
/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/opt/telephony/src/java/com/android/internal/telephony/uicc/
DVoiceMailConstants.java20 import android.os.Environment;
78 final File vmFile = new File(Environment.getRootDirectory(), in loadVoiceMail()
85 Environment.getRootDirectory() + "/" + PARTNER_VOICEMAIL_PATH); in loadVoiceMail()

12345678910>>...19