/libcore/luni/src/test/java/libcore/java/io/ |
OldAndroidFileTest.java | 5 * you may not use this file except in compliance with the License. 19 import java.io.File; 23 * Checks creation and deletion of a file. 28 File file = File.createTempFile(String.valueOf(System.currentTimeMillis()), null, null); local 30 assertTrue(file.exists()); 31 assertTrue(file.delete()); 32 assertFalse(file.exists());
|
/build/core/combo/ |
HOST_linux-x86.mk | 5 # you may not use this file except in compliance with the License. 55 # $(1): The file to check 56 define get-file-size
|
/external/elfutils/src/libdwfl/ |
dwfl_lineinfo.c | 3 This file is part of elfutils. 5 This file is free software; you can redistribute it and/or modify 49 struct Dwarf_Fileinfo_s *file = &info->files->info[info->file]; local 51 *mtime = file->mtime; 53 *length = file->length; 54 return file->name;
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
brw_eu_debug.c | 39 static const char *file[] = { local 61 if (hwreg.file == BRW_GENERAL_REGISTER_FILE && 71 else if (hwreg.file == BRW_GENERAL_REGISTER_FILE && 79 else if (hwreg.file == BRW_IMMEDIATE_VALUE) { 84 file[hwreg.file],
|
/frameworks/base/tools/aapt/ |
SourcePos.h | 12 String8 file; member in class:SourcePos 27 static void printErrors(FILE* to);
|
/external/nanopb-c/tests/basic_stream/ |
encode_stream.c | 12 FILE *file = (FILE*) stream->state; local 13 return fwrite(buf, 1, count, file) == count;
|
/external/vogar/src/vogar/commands/ |
Rm.java | 5 * you may not use this file except in compliance with the License. 19 import java.io.File; 32 public void file(File file) { method in class:Rm 33 new Command(log, "rm", "-rf", file.getPath()).execute();
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
EntropyMixerTest.java | 5 * you may not use this file except in compliance with the License. 23 import java.io.File; 31 File dir = getContext().getDir("testInitialWrite", Context.MODE_PRIVATE); 32 File file = File.createTempFile("testInitialWrite", "dat", dir); local 33 file.deleteOnExit(); 34 assertEquals(0, FileUtils.readTextFile(file, 0, null).length()); 36 // The constructor has the side effect of writing to file 37 new EntropyMixer(getContext(), "/dev/null", file.getCanonicalPath(), "/dev/null") [all...] |
/cts/tests/tests/net/src/android/net/cts/ |
VpnServiceTest.java | 5 * you may not use this file except in compliance with the License. 23 import java.io.File; 112 File file = new File("/dev/tun"); local 113 assertTrue(file.exists()); 114 assertFalse(file.isFile()); 115 assertFalse(file.isDirectory()); 116 assertFalse(file.canExecute()); 117 assertFalse(file.canRead()) [all...] |
/cts/libs/vogar-expect/src/vogar/commands/ |
Rm.java | 5 * you may not use this file except in compliance with the License. 19 import java.io.File; 26 public void file(File file) { method in class:Rm 27 new Command("rm", "-f", file.getPath()).execute(); 30 public void directoryTree(File directory) {
|
/external/droiddriver/src/io/appium/droiddriver/util/ |
FileUtils.java | 5 * you may not use this file except in compliance with the License. 24 import java.io.File; 35 * Opens file at {@code path} to output. If any directories on {@code path} do 36 * not exist, they will be created. The file will be readable and writable to 41 File file = getAbsoluteFile(path); local 43 Logs.log(Log.INFO, "opening file " + file.getAbsolutePath()); 44 BufferedOutputStream stream = new BufferedOutputStream(new FileOutputStream(file)); 46 file.setReadable(true /* readable */, false/* ownerOnly */) 60 File file = new File(path); local [all...] |
/external/elfutils/src/tests/ |
debuglink.c | 3 This file is part of elfutils. 5 This file is free software; you can redistribute it and/or modify 36 error (EXIT_FAILURE, 0, "No input file given"); 42 const char *file = argv[i]; local 43 int fd = open (file, O_RDONLY); 45 error (EXIT_FAILURE, errno, "couldn't open file '%s'", file); 50 file, elf_errmsg (-1)); 55 printf ("%s: <no gnu_debuglink file>\n", file); [all...] |
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/file/ |
FileResource.java | 1 package com.bumptech.glide.load.resource.file; 5 import java.io.File; 8 * A simple {@link com.bumptech.glide.load.engine.Resource} that wraps a {@link File}. 10 public class FileResource extends SimpleResource<File> { 11 public FileResource(File file) { 12 super(file);
|
/external/iproute2/tc/ |
tc_monitor.c | 40 FILE *fp = (FILE*)arg; 70 char *file = NULL; local 74 if (matches(*argv, "file") == 0) { 76 file = *argv; 88 if (file) { 89 FILE *fp; 90 fp = fopen(file, "r");
|
/external/junit/src/org/junit/rules/ |
TemporaryFolder.java | 3 import java.io.File; 20 * File createdFile= folder.newFile("myfile.txt"); 21 * File createdFolder= folder.newFolder("subfolder"); 28 private File folder; 49 * Returns a new fresh file with the given name under the temporary folder. 51 public File newFile(String fileName) throws IOException { 52 File file= new File(getRoot(), fileName); local 53 file.createNewFile() 68 File file = getRoot(); local [all...] |
/external/libmtp/examples/ |
getfile.c | 2 * \file getfile.c 3 * Example program to retrieve a file off the device. 48 printf("\nError getting file from MTP device.\n"); 60 char *file; local 62 // We need file ID and filename 74 fprintf(stderr, "bad file/track id %u\n", id); 79 file = argv[2]; 80 printf("Getting file/track %d to local file %s\n", id, file); [all...] |
/external/libvpx/libvpx/ |
vpxstats.h | 5 * that can be found in the LICENSE file in the root of the source 7 * in the file PATENTS. All contributing project authors may 8 * be found in the AUTHORS file in the root of the source tree. 28 FILE *file; member in struct:__anon13946
|
/external/toybox/toys/other/ |
chcon.c | 1 /* chcon.c - Change file security context 12 usage: chcon [-hRv] CONTEXT FILE... 14 Change the SELinux security context of listed file[s]. 41 char **file; local 43 for (file = toys.optargs+1; *file; file++) dirtree_read(*file, do_chcon);
|
/external/toybox/toys/posix/ |
chmod.c | 1 /* chmod.c - Change file mode bits 13 usage: chmod [-R] MODE FILE... 15 Change mode of listed file[s] (recursively with -R). 23 suid/sgid: execute as the user/group who owns the file. 31 chmod u+w file - allow owner of "file" to write to it. 32 chmod 744 file - user can read/write/execute, everyone else read only 62 char **file; local 64 for (file = toys.optargs+1; *file; file++) dirtree_read(*file, do_chmod) [all...] |
comm.c | 44 int file[2]; local 51 file[i] = strcmp("-", toys.optargs[i]) 53 line[i] = get_line(file[i]); 63 line[i] = get_line(file[i]); 69 line[i] = get_line(file[i]); 73 /* print rest of the longer file */ 77 line[i] = get_line(file[i]); 80 if (CFG_TOYBOX_FREE) for (i = 0; i < 2; i++) xclose(file[i]);
|
/external/valgrind/none/tests/ |
mmap_fcntl_bug.c | 3 * mmap. Feed it a r/w file, such as its own source code. */ 19 const char *file = /* argv[1]; */ local 24 if (!file) 25 errx(1, "Usage: %s <normal-file>", argv[0]); 27 fd = open(file, O_RDWR); 29 err(1, "Opening %s", file); 45 err(1, "Locking %s", file); 47 /* If under valgrind, mmap re-opens and closes file, screwing us */ 49 err(1, "mmap of %s", file);
|
/external/vogar/src/vogar/tasks/ |
RmTask.java | 5 * you may not use this file except in compliance with the License. 19 import java.io.File; 25 private final File file; field in class:RmTask 27 public RmTask(Rm rm, File file) { 28 super("rm " + file); 30 this.file = file; 34 rm.file(file) [all...] |
/frameworks/support/v17/leanback/ |
generatev4.py | 6 # you may not use this file except in compliance with the License. 28 file = open('src/android/support/v17/leanback/app/{}Fragment.java'.format(w), 'r') variable 31 outfile.write("/* This file is auto-generated from {}Fragment.java. DO NOT MODIFY. */\n\n".format(w)) 33 for line in file: 39 file.close()
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/ |
vpxstats.h | 5 * that can be found in the LICENSE file in the root of the source 7 * in the file PATENTS. All contributing project authors may 8 * be found in the AUTHORS file in the root of the source tree. 28 FILE *file; member in struct:__anon24287
|
/art/tools/dexfuzz/src/dexfuzz/rawdex/formats/ |
Format20bc.java | 5 * you may not use this file except in compliance with the License. 30 public void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException { 31 file.writeByte((byte) insn.info.value); 32 file.writeByte((byte) insn.vregA); 33 file.writeUShort((short) insn.vregB);
|