Home
last modified time | relevance | path

Searched refs:file (Results 1 – 25 of 1067) sorted by relevance

12345678910>>...43

/developers/build/prebuilts/gradle/StorageProvider/Application/src/main/java/com/example/android/storageprovider/
DMyCloudProvider.java185 final File file = pending.removeFirst(); in queryRecentDocuments() local
186 if (file.isDirectory()) { in queryRecentDocuments()
188 Collections.addAll(pending, file.listFiles()); in queryRecentDocuments()
191 lastModifiedFiles.add(file); in queryRecentDocuments()
197 final File file = lastModifiedFiles.remove(); in queryRecentDocuments() local
198 includeFile(result, null, file); in queryRecentDocuments()
229 final File file = pending.removeFirst(); in querySearchDocuments() local
230 if (file.isDirectory()) { in querySearchDocuments()
232 Collections.addAll(pending, file.listFiles()); in querySearchDocuments()
235 if (file.getName().toLowerCase().contains(query)) { in querySearchDocuments()
[all …]
/developers/samples/android/content/documentsUi/StorageProvider/Application/src/main/java/com/example/android/storageprovider/
DMyCloudProvider.java185 final File file = pending.removeFirst(); in queryRecentDocuments() local
186 if (file.isDirectory()) { in queryRecentDocuments()
188 Collections.addAll(pending, file.listFiles()); in queryRecentDocuments()
191 lastModifiedFiles.add(file); in queryRecentDocuments()
197 final File file = lastModifiedFiles.remove(); in queryRecentDocuments() local
198 includeFile(result, null, file); in queryRecentDocuments()
229 final File file = pending.removeFirst(); in querySearchDocuments() local
230 if (file.isDirectory()) { in querySearchDocuments()
232 Collections.addAll(pending, file.listFiles()); in querySearchDocuments()
235 if (file.getName().toLowerCase().contains(query)) { in querySearchDocuments()
[all …]
/developers/build/prebuilts/gradle/DirectorySelection/Application/tests/src/com/example/android/directoryselection/
DDirectoryEntryAdapterTest.java66 DirectoryEntry file = new DirectoryEntry(); in setUp() local
67 file.fileName = FILE1; in setUp()
68 file.mimeType = MIME_TYPE1; in setUp()
69 mDirectoryEntries.add(file); in setUp()
/developers/build/buildSrc/src/main/groovy/com/example/android/samples/build/
DApplyTemplates.groovy5 * you may not use this file except in compliance with the License.
25 import org.gradle.api.file.FileVisitDetails
39 * The root directory for output files. All output file paths
50 def include = project.file("$project.projectDir/templates/include")
53 * List of file extensions that indicate a file to be processed, rather
59 * List of file extensions that should be completely ignored by this
82 * The main action for this task. Visits each file in the source directories and
83 * either processes, copies, or ignores it. The action taken for each file depends
90 // file system for freemarker templates; the template language can
98 loaders.add(0, new FileTemplateLoader(project.file(src.dir)))
[all …]
DSampleGenProperties.groovy5 * you may not use this file except in compliance with the License.
22 import org.gradle.api.file.FileTree
90 * The name of this sample (and also of the corresponding .iml file)
93 return project.file(targetProjectPath).getName()
104 * The path to the template parameters file
151 * Returns the output file that will be generated for a particular
155 * @param relativeInputPath Input file as a relative path from the template directory
156 * @return Relative output file path
169 // Any file beginning with a dot won't get picked up, so rename them as necessary here.
182 def xmlFile = project.file(templateXml())
[all …]
/developers/build/prebuilts/gradle/JobScheduler/kotlinApp/app/src/main/java/com/example/android/jobscheduler/
DConstants.kt17 @file:JvmName("Constants")
18 @file:Suppress("PropertyName")
/developers/samples/android/background/JobScheduler/kotlinApp/app/src/main/java/com/example/android/jobscheduler/
DConstants.kt17 @file:JvmName("Constants")
18 @file:Suppress("PropertyName")
/developers/samples/android/content/AutoBackupForApps/Application/src/main/java/com/example/android/autobackupsample/
DAddFileActivity.java225 File file = null; in createFileWithRandomDataAndFinishActivity() local
231 file = getInternalFile(fileName); in createFileWithRandomDataAndFinishActivity()
232 out = openFileOutput(file.getName(), Context.MODE_PRIVATE); in createFileWithRandomDataAndFinishActivity()
238 file = new File(externalAppDir, fileName); in createFileWithRandomDataAndFinishActivity()
239 out = new FileOutputStream(file); in createFileWithRandomDataAndFinishActivity()
242 file = new File(getNoBackupFilesDir(), fileName); in createFileWithRandomDataAndFinishActivity()
243 out = new FileOutputStream(file); in createFileWithRandomDataAndFinishActivity()
247 if (file == null || out == null) { in createFileWithRandomDataAndFinishActivity()
262 file.getAbsolutePath(), sizeInBytes); in createFileWithRandomDataAndFinishActivity()
289 File file = getInternalFile(fileName); in isFileExists() local
[all …]
/developers/build/prebuilts/gradle/AutoBackupForApps/Application/src/main/java/com/example/android/autobackupsample/
DAddFileActivity.java225 File file = null; in createFileWithRandomDataAndFinishActivity() local
231 file = getInternalFile(fileName); in createFileWithRandomDataAndFinishActivity()
232 out = openFileOutput(file.getName(), Context.MODE_PRIVATE); in createFileWithRandomDataAndFinishActivity()
238 file = new File(externalAppDir, fileName); in createFileWithRandomDataAndFinishActivity()
239 out = new FileOutputStream(file); in createFileWithRandomDataAndFinishActivity()
242 file = new File(getNoBackupFilesDir(), fileName); in createFileWithRandomDataAndFinishActivity()
243 out = new FileOutputStream(file); in createFileWithRandomDataAndFinishActivity()
247 if (file == null || out == null) { in createFileWithRandomDataAndFinishActivity()
262 file.getAbsolutePath(), sizeInBytes); in createFileWithRandomDataAndFinishActivity()
289 File file = getInternalFile(fileName); in isFileExists() local
[all …]
/developers/build/prebuilts/gradle/BeamLargeFiles/
DREADME.md6 handshake over NFC, file transfer will take place over a secondary high-speed
12 will save the file to disk and display a notification that the user can select to open
13 the file using a standard ACTION_VIEW Intent.
34 If you've found an error in this sample, please file an issue:
46 license agreements. See the NOTICE file distributed with this work for
48 file to you under the Apache License, Version 2.0 (the "License"); you may not
49 use this file except in compliance with the License. You may obtain a copy of
/developers/samples/android/renderScript/BasicRenderScript/Application/
Dproject.properties1 # This file is automatically generated by Android Tools.
2 # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
4 # This file must be checked in Version Control Systems.
/developers/build/prebuilts/gradle/BasicRenderScript/Application/
Dproject.properties1 # This file is automatically generated by Android Tools.
2 # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
4 # This file must be checked in Version Control Systems.
/developers/build/templates/base/_MODULE_/src/template/
Dproject.properties.ftl2 # This file is automatically generated by Android Tools.
3 # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
5 # This file must be checked in Version Control Systems.
/developers/build/prebuilts/androidtv/visual-game-controller/
Dproject.properties1 # This file is automatically generated by Android Tools.
2 # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
4 # This file must be checked in Version Control Systems.
/developers/samples/android/admin/NfcProvisioning/
Dnfcprovisioning.txt1 # Sample configuration file for NfcProvisioning
2 # Place this file in the SD card:
/developers/build/prebuilts/gradle/NfcProvisioning/
Dnfcprovisioning.txt1 # Sample configuration file for NfcProvisioning
2 # Place this file in the SD card:
/developers/build/prebuilts/gradle/StorageClient/
DREADME.md6 on the device, and choose a file from any of them.
12 application to access a list of Document Providers on the devices and choose a file from
15 This sample first fires an intent to spin up the "file chooser" UI and select an image.
47 If you've found an error in this sample, please file an issue:
59 license agreements. See the NOTICE file distributed with this work for
61 file to you under the Apache License, Version 2.0 (the "License"); you may not
62 use this file except in compliance with the License. You may obtain a copy of
/developers/samples/android/content/documentsUi/StorageClient/
DREADME.md6 on the device, and choose a file from any of them.
12 application to access a list of Document Providers on the devices and choose a file from
15 This sample first fires an intent to spin up the "file chooser" UI and select an image.
47 If you've found an error in this sample, please file an issue:
59 license agreements. See the NOTICE file distributed with this work for
61 file to you under the Apache License, Version 2.0 (the "License"); you may not
62 use this file except in compliance with the License. You may obtain a copy of
/developers/samples/android/experimental/ndkSampleGen/
Dbuild.gradle83 if (fcd.file.isFile()) {
85 String collapsed = collapsedPaths.get(fcd.file.path);
121 eachFile { file ->
122 if (file.name.endsWith(".gradle") || file.name.endsWith(".java")) {
148 def outDir = project.file(outputPath)
194 File current = f.file;
197 // Starting at this file, walk back to the root of the path and
202 // path and the filename, even if there's only one file in the directory.
221 current.list().each { file ->
222 if (!file.startsWith("."))
[all …]
/developers/build/prebuilts/gradle/WearSpeakerSample/
DREADME.md6 play the recorded voice or an mp3 file, if the wearable device has a built-in speaker.
30 If you've found an error in this sample, please file an issue:
42 license agreements. See the NOTICE file distributed with this work for
44 file to you under the Apache License, Version 2.0 (the "License"); you may not
45 use this file except in compliance with the License. You may obtain a copy of
/developers/build/prebuilts/gradle/NfcProvisioning/Application/src/main/java/com/example/android/nfcprovisioning/
DProvisioningValuesLoader.java101 File file = new File(directory, FILENAME); in loadFromDisk() local
102 if (!file.exists()) { in loadFromDisk()
107 loadFromFile(values, file); in loadFromDisk()
110 Log.e(TAG, "Error loading data from " + file, e); in loadFromDisk()
114 private void loadFromFile(HashMap<String, String> values, File file) throws IOException { in loadFromFile() argument
115 try (BufferedReader reader = new BufferedReader(new FileReader(file))) { in loadFromFile()
/developers/samples/android/admin/NfcProvisioning/Application/src/main/java/com/example/android/nfcprovisioning/
DProvisioningValuesLoader.java101 File file = new File(directory, FILENAME); in loadFromDisk() local
102 if (!file.exists()) { in loadFromDisk()
107 loadFromFile(values, file); in loadFromDisk()
110 Log.e(TAG, "Error loading data from " + file, e); in loadFromDisk()
114 private void loadFromFile(HashMap<String, String> values, File file) throws IOException { in loadFromFile() argument
115 try (BufferedReader reader = new BufferedReader(new FileReader(file))) { in loadFromFile()
/developers/build/prebuilts/gradle/AutoBackupForApps/
DREADME.md7 files are stored or by using a custom XML configuration file.
14 custom XML configuration file.
50 If you've found an error in this sample, please file an issue:
62 license agreements. See the NOTICE file distributed with this work for
64 file to you under the Apache License, Version 2.0 (the "License"); you may not
65 use this file except in compliance with the License. You may obtain a copy of
/developers/samples/android/media/Camera2Basic/kotlinApp/Application/src/main/java/com/example/android/camera2basic/
DImageSaver.kt23 private val file: File constant in com.example.android.camera2basic.ImageSaver
32 output = FileOutputStream(file).apply { in run()
/developers/build/prebuilts/gradle/Camera2Basic/kotlinApp/Application/src/main/java/com/example/android/camera2basic/
DImageSaver.kt23 private val file: File constant in com.example.android.camera2basic.ImageSaver
32 output = FileOutputStream(file).apply { in run()

12345678910>>...43