Home
last modified time | relevance | path

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

12345678910>>...33

/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/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/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/samples/android/background/JobScheduler/kotlinApp/app/src/main/java/com/example/android/jobscheduler/
DConstants.kt17 @file:JvmName("Constants")
18 @file:Suppress("PropertyName")
/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/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/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/admin/NfcProvisioning/
Dnfcprovisioning.txt1 # Sample configuration file for NfcProvisioning
2 # Place this file in the SD card:
/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/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/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/samples/android/ui/views/NavigationDrawer/
DREADME.md27 If you've found an error in this sample, please file an issue:
39 license agreements. See the NOTICE file distributed with this work for
41 file to you under the Apache License, Version 2.0 (the "License"); you may not
42 use this file except in compliance with the License. You may obtain a copy of
/developers/samples/android/ui/views/CardView/kotlinApp/
DREADME.md26 If you've found an error in this sample, please file an issue:
38 license agreements. See the NOTICE file distributed with this work for
40 file to you under the Apache License, Version 2.0 (the "License"); you may not
41 use this file except in compliance with the License. You may obtain a copy of
/developers/samples/android/background/alarms/RepeatingAlarm/
DREADME.md27 If you've found an error in this sample, please file an issue:
39 license agreements. See the NOTICE file distributed with this work for
41 file to you under the Apache License, Version 2.0 (the "License"); you may not
42 use this file except in compliance with the License. You may obtain a copy of
/developers/samples/android/background/JobScheduler/
DREADME.md27 If you've found an error in this sample, please file an issue:
39 license agreements. See the NOTICE file distributed with this work for
41 file to you under the Apache License, Version 2.0 (the "License"); you may not
42 use this file except in compliance with the License. You may obtain a copy of
/developers/samples/android/ui/views/CardView/
DREADME.md27 If you've found an error in this sample, please file an issue:
39 license agreements. See the NOTICE file distributed with this work for
41 file to you under the Apache License, Version 2.0 (the "License"); you may not
42 use this file except in compliance with the License. You may obtain a copy of
/developers/samples/android/ui/transition/FragmentTransition/
DREADME.md25 If you've found an error in this sample, please file an issue:
37 license agreements. See the NOTICE file distributed with this work for
39 file to you under the Apache License, Version 2.0 (the "License"); you may not
40 use this file except in compliance with the License. You may obtain a copy of
/developers/samples/android/media/MediaRouter/
DREADME.md26 If you've found an error in this sample, please file an issue:
38 license agreements. See the NOTICE file distributed with this work for
40 file to you under the Apache License, Version 2.0 (the "License"); you may not
41 use this file except in compliance with the License. You may obtain a copy of
/developers/samples/android/ui/views/NavigationDrawer/kotlinApp/
DREADME.md26 If you've found an error in this sample, please file an issue:
38 license agreements. See the NOTICE file distributed with this work for
40 file to you under the Apache License, Version 2.0 (the "License"); you may not
41 use this file except in compliance with the License. You may obtain a copy of
/developers/samples/android/ui/graphics/PdfRendererBasic/kotlinApp/Application/src/main/java/com/example/android/pdfrendererbasic/
DPdfRendererBasicViewModel.kt115 val file = File(application.cacheDir, FILENAME) in <lambda>() constant
116 if (!file.exists()) { in <lambda>()
118 file.writeBytes(asset.readBytes()) in <lambda>()
121 fileDescriptor = ParcelFileDescriptor.open(file, ParcelFileDescriptor.MODE_READ_ONLY).also { in <lambda>()
/developers/samples/android/testing/ActivityInstrumentation/
DREADME.md27 If you've found an error in this sample, please file an issue:
39 license agreements. See the NOTICE file distributed with this work for
41 file to you under the Apache License, Version 2.0 (the "License"); you may not
42 use this file except in compliance with the License. You may obtain a copy of
/developers/samples/android/ui/text/
DREADME.md21 If you've found an error in this sample, please file an issue:
33 license agreements. See the NOTICE file distributed with this work for
35 file to you under the Apache License, Version 2.0 (the "License"); you may not
36 use this file except in compliance with the License. You may obtain a copy of
/developers/samples/android/ui/views/SlidingTabs/SlidingTabsBasic/
DREADME.md27 If you've found an error in this sample, please file an issue:
39 license agreements. See the NOTICE file distributed with this work for
41 file to you under the Apache License, Version 2.0 (the "License"); you may not
42 use this file except in compliance with the License. You may obtain a copy of
/developers/samples/android/ui/transition/AdapterTransition/
DREADME.md25 If you've found an error in this sample, please file an issue:
37 license agreements. See the NOTICE file distributed with this work for
39 file to you under the Apache License, Version 2.0 (the "License"); you may not
40 use this file except in compliance with the License. You may obtain a copy of

12345678910>>...33