/external/ltp/testcases/kernel/security/tomoyo/ |
D | tomoyo_new_file_test.c | 101 char *filename = ""; in stage_file_test() local 239 filename = "/tmp/mknod_fifo_test"; in stage_file_test() 240 show_result(mknod(filename, S_IFIFO | 0644, 0), 1); in stage_file_test() 242 unlink2(filename); in stage_file_test() 243 show_result(mknod(filename, S_IFIFO | 0644, 0), 0); in stage_file_test() 247 filename = "/dev/null"; in stage_file_test() 248 stat(filename, &sbuf); in stage_file_test() 249 snprintf(pbuffer, sizeof(pbuffer) - 1, "allow_write %s", filename); in stage_file_test() 252 fd = open(filename, O_WRONLY); in stage_file_test() 257 fd = open(filename, O_WRONLY); in stage_file_test() [all …]
|
/external/wpa_supplicant_8/wpa_supplicant/wpa_gui-qt4/lang/ |
D | wpa_gui_de.ts | 7 <location filename="../addinterface.cpp" line="38"/> 12 <location filename="../addinterface.cpp" line="47"/> 17 <location filename="../addinterface.cpp" line="48"/> 22 <location filename="../addinterface.cpp" line="49"/> 27 <location filename="../addinterface.cpp" line="221"/> 32 <location filename="../addinterface.cpp" line="229"/> 37 <location filename="../addinterface.cpp" line="238"/> 45 <location filename="../wpagui.cpp" line="1621"/> 53 <location filename="../eventhistory.ui" line="13"/> 58 <location filename="../eventhistory.ui" line="48"/> [all …]
|
/external/doclava/src/com/google/doclava/ |
D | DocFile.java | 31 public static String readFile(String filename) { in readFile() argument 33 File f = new File(filename); in readFile() 58 public static String getPathRoot(String filename) { in getPathRoot() argument 62 int langStart = filename.indexOf("/" + t + "/"); in getPathRoot() 64 int langEnd = filename.indexOf("/", langStart + 1); in getPathRoot() 65 filename = filename.substring(langEnd + 1); in getPathRoot() 69 return filename; in getPathRoot() 183 String filename = outfile; in writePage() local 187 filename = filename.replaceFirst("^en/", ""); in writePage() 191 filename = getPathRoot(filename); in writePage() [all …]
|
/external/autotest/client/site_tests/firmware_TouchMTB/tests/ |
D | validators_unittest.py | 55 def _test_count_tracking_id(self, filename, criteria, device): argument 56 packets = parse_tests_data(filename) 66 filename = 'two_finger_id_change.dat' 67 score = self._test_count_tracking_id(filename, '== 2', lumpy) 75 filename = 'one_finger_fast_swipe_id_split.dat' 76 score = self._test_count_tracking_id(filename, '== 1', lumpy) 84 filename = 'two_finger_fast_flick_id_split.dat' 85 score = self._test_count_tracking_id(filename, '== 2', lumpy) 95 def _test_drumroll(self, filename, criteria, device): argument 96 packets = parse_tests_data(filename) [all …]
|
/external/compiler-rt/lib/sanitizer_common/scripts/ |
D | cpplint.py | 360 def ParseNolintSuppressions(filename, raw_line, linenum, error): argument 385 error(filename, linenum, 'readability/nolint', 5, 700 def Check(self, error, filename, linenum): argument 719 error(filename, linenum, 'readability/fn_size', error_level, 742 def __init__(self, filename): argument 743 self._filename = filename 852 def Error(filename, linenum, category, confidence, message): argument 878 filename, linenum, message, category, confidence)) 881 filename, linenum, message, category, confidence)) 884 filename, linenum, message, category, confidence)) [all …]
|
/external/libvpx/libvpx/tools/ |
D | cpplint.py | 455 def ParseNolintSuppressions(filename, raw_line, linenum, error): argument 480 error(filename, linenum, 'readability/nolint', 5, 825 def Check(self, error, filename, linenum): argument 844 error(filename, linenum, 'readability/fn_size', error_level, 867 def __init__(self, filename): argument 868 self._filename = filename 977 def Error(filename, linenum, category, confidence, message): argument 1003 filename, linenum, message, category, confidence)) 1006 filename, linenum, message, category, confidence)) 1009 filename, linenum, message, category, confidence)) [all …]
|
/external/iptables/ |
D | iptables-test.py | 42 def print_error(reason, filename=None, lineno=None): argument 46 print (filename + ": " + Colors.RED + "ERROR" + 50 def delete_rule(iptables, rule, filename, lineno): argument 55 ret = execute_cmd(cmd, filename, lineno) 58 print_error(reason, filename, lineno) 64 def run_test(iptables, rule, rule_save, res, filename, lineno): argument 79 ret = execute_cmd(cmd, filename, lineno) 87 print_error(reason, filename, lineno) 95 print_error(reason, filename, lineno) 96 delete_rule(iptables, rule, filename, lineno) [all …]
|
/external/ppp/pppd/plugins/radius/ |
D | config.c | 53 static int set_option_str(char *filename, int line, OPTION *option, char *p) in set_option_str() argument 63 static int set_option_int(char *filename, int line, OPTION *option, char *p) in set_option_int() argument 68 error("%s: line %d: bogus option value", filename, line); in set_option_int() 83 static int set_option_srv(char *filename, int line, OPTION *option, char *p) in set_option_srv() argument 91 error("%s: line %d: bogus option value", filename, line); in set_option_srv() 120 error("%s: line %d: no default port for %s", filename, line, option->name); in set_option_srv() 133 static int set_option_auo(char *filename, int line, OPTION *option, char *p) in set_option_auo() argument 138 warn("%s: line %d: bogus option value", filename, line); in set_option_auo() 155 error("%s: auth_order: unknown keyword: %s", filename, p); in set_option_auo() 167 error("%s: auth_order: unknown or unexpected keyword: %s", filename, p); in set_option_auo() [all …]
|
/external/google-benchmark/tools/gbench/ |
D | util.py | 15 def is_executable_file(filename): argument 21 if not os.path.isfile(filename): 23 with open(filename, 'r') as f: 40 def is_json_file(filename): argument 46 with open(filename, 'r') as f: 54 def classify_input_file(filename): argument 62 if not os.path.exists(filename): 63 err_msg = "'%s' does not exist" % filename 64 elif not os.path.isfile(filename): 65 err_msg = "'%s' does not name a file" % filename [all …]
|
/external/libcxx/utils/google-benchmark/tools/gbench/ |
D | util.py | 15 def is_executable_file(filename): argument 21 if not os.path.isfile(filename): 23 with open(filename, 'r') as f: 40 def is_json_file(filename): argument 46 with open(filename, 'r') as f: 54 def classify_input_file(filename): argument 62 if not os.path.exists(filename): 63 err_msg = "'%s' does not exist" % filename 64 elif not os.path.isfile(filename): 65 err_msg = "'%s' does not name a file" % filename [all …]
|
/external/ImageMagick/coders/ |
D | html.c | 212 filename[MagickPathExtent], in WriteHTMLImage() local 240 image_info->filename); in WriteHTMLImage() 255 p=strrchr(image->filename,'/'); in WriteHTMLImage() 261 url[strlen(url)+p-image->filename]='\0'; in WriteHTMLImage() 262 (void) ConcatenateMagickString(url,image->filename, in WriteHTMLImage() 263 p-image->filename+2); in WriteHTMLImage() 264 (void) CopyMagickString(image->filename,p,MagickPathExtent); in WriteHTMLImage() 270 (void) CopyMagickString(filename,image->filename,MagickPathExtent); in WriteHTMLImage() 271 AppendImageFormat("map",filename); in WriteHTMLImage() 272 GetPathComponent(filename,BasePath,basename); in WriteHTMLImage() [all …]
|
D | xtrn.c | 131 if (clone_info->filename == NULL) in ReadXTRNImage() 151 (void) sscanf(clone_info->filename,"%lx,%lx",¶m1,¶m2); in ReadXTRNImage() 170 filename[MagickPathExtent]; in ReadXTRNImage() local 172 (void) sscanf(clone_info->filename,"%lx,%lx,%2048s",¶m1,¶m2, in ReadXTRNImage() 173 filename); in ReadXTRNImage() 183 filename[MagickPathExtent]; in ReadXTRNImage() local 198 *filename='\0'; in ReadXTRNImage() 199 (void) sscanf(clone_info->filename,"%lx,%2048s",¶m1,filename); in ReadXTRNImage() 214 *clone_info->filename='\0'; in ReadXTRNImage() 216 if (*filename != '\0') in ReadXTRNImage() [all …]
|
D | url.c | 136 filename[MagickPathExtent]; in ReadURLImage() local 154 (void) CopyMagickString(read_info->filename,image_info->filename+2, in ReadURLImage() 162 unique_file=AcquireUniqueFileResource(read_info->filename); in ReadURLImage() 168 read_info->filename); in ReadURLImage() 172 (void) CopyMagickString(filename,image_info->magick,MagickPathExtent); in ReadURLImage() 173 (void) ConcatenateMagickString(filename,":",MagickPathExtent); in ReadURLImage() 174 LocaleLower(filename); in ReadURLImage() 175 (void) ConcatenateMagickString(filename,image_info->filename, in ReadURLImage() 180 if (URLDownloadToFile(NULL,filename,read_info->filename,0,NULL) != S_OK) in ReadURLImage() 183 filename); in ReadURLImage() [all …]
|
/external/antlr/antlr-3.4/runtime/Perl5/tools/ |
D | port.pl | 41 my ($filename) = @_; 43 open my $in, '<', $filename or croak "Can't open $filename: $!"; 44 if (filetype($filename) =~ /^text\//xms) { 48 croak "Can't binmode $filename: $!"; 54 close $in or warn "Can't close $filename: $!"; 64 my ($filename) = @_; 67 if (-e $filename) { 68 $resolved_file = $filename; 73 map { File::Spec->catfile($_, $filename) } 114 my ($filename) = @_; [all …]
|
/external/slf4j/slf4j-migrator/src/main/java/org/slf4j/migrator/helper/ |
D | Abbreviator.java | 40 public String abbreviate(String filename) { in abbreviate() argument 41 if (filename.length() <= desiredLength) { in abbreviate() 42 return filename; in abbreviate() 45 int firstIndex = filename.indexOf(folderSeparator, invariantPrefixLength); in abbreviate() 48 return filename; in abbreviate() 51 buf.append(filename.substring(0, firstIndex + 1)); in abbreviate() 53 int nextIndex = computeNextIndex(filename, firstIndex); in abbreviate() 55 buf.append(filename.substring(nextIndex)); in abbreviate() 58 return filename; in abbreviate() 61 if (buf.length() < filename.length()) { in abbreviate() [all …]
|
/external/ltp/testcases/kernel/io/direct_io/ |
D | diotest2.c | 133 char filename[LEN]; variable 146 sprintf(filename, "testdata-2.%ld", syscall(__NR_gettid)); in main() 173 strcpy(filename, optarg); in main() 184 if ((fd_w = open(filename, O_WRONLY | O_CREAT, 0666)) < 0) in main() 186 "open(%s, O_WRONLY..) failed", filename); in main() 187 if ((fd_r = open(filename, O_DIRECT | O_RDONLY, 0666)) < 0) in main() 189 "open(%s, O_DIRECT|O_RDONLY..) failed", filename); in main() 198 unlink(filename); in main() 203 if ((fd_w = open(filename, O_DIRECT | O_WRONLY | O_CREAT, 0666)) == -1) in main() 205 "open(%s, O_DIRECT|O_WRONLY..) failed", filename); in main() [all …]
|
/external/ltp/testcases/kernel/syscalls/swapon/ |
D | swapon03.c | 48 static int check_and_swapoff(const char *filename); 59 char *filename; member 85 TEST(ltp_syscall(__NR_swapon, swap_testfiles[0].filename, 0)); in main() 102 (__NR_swapon, swap_testfiles[1].filename, 0)); in main() 112 (__NR_swapon, swap_testfiles[2].filename, in main() 156 char filename[15]; in setup_swap() local 206 if (sprintf(filename, "swapfile%02d", j + 2) < 0) { in setup_swap() 213 make_swapfile(cleanup, filename); in setup_swap() 216 res = ltp_syscall(__NR_swapon, filename, 0); in setup_swap() 227 "swapfile: %s\n", filename); in setup_swap() [all …]
|
/external/vboot_reference/host/lib/ |
D | host_misc.c | 27 uint8_t* ReadFile(const char* filename, uint64_t* sizeptr) { in ReadFile() argument 32 f = fopen(filename, "rb"); in ReadFile() 34 VBDEBUG(("Unable to open file %s\n", filename)); in ReadFile() 49 VBDEBUG(("Unable to read from file %s\n", filename)); in ReadFile() 62 char* ReadFileString(char* dest, int size, const char* filename) { in ReadFileString() argument 66 f = fopen(filename, "rt"); in ReadFileString() 76 int ReadFileInt(const char* filename, unsigned* value) { in ReadFileInt() argument 80 if (!ReadFileString(buf, sizeof(buf), filename)) in ReadFileInt() 92 int ReadFileBit(const char* filename, int bitmask) { in ReadFileBit() argument 94 if (ReadFileInt(filename, &value) < 0) in ReadFileBit() [all …]
|
/external/syslinux/gpxe/src/util/ |
D | padimg.pl | 22 while ( my $filename = shift ) { 23 die "$filename is not a file\n" unless -f $filename; 24 my $oldsize = -s $filename; 30 $filename, $oldsize, $newsize, $padsize, $byte; 33 sysopen ( my $fh, $filename, ( O_WRONLY | O_APPEND ) ) 34 or die "Could not open $filename for appending: $!\n"; 36 or die "Could not append to $filename: $!\n"; 39 truncate $filename, $newsize 40 or die "Could not resize $filename: $!\n"; 42 die "Failed to pad $filename\n" [all …]
|
/external/skia/tests/ |
D | OSPathTest.cpp | 23 SkString filename) { in test_dir_with_file() argument 25 SkASSERT(!filename.contains(SkOSPath::SEPARATOR)); in test_dir_with_file() 30 SkString fullName = SkOSPath::Join(dir.c_str(), filename.c_str()); in test_dir_with_file() 34 size_t expectedSize = dir.size() + filename.size(); in test_dir_with_file() 44 REPORTER_ASSERT(reporter, basename.equals(filename)); in test_dir_with_file() 61 basename = SkOSPath::Basename(filename.c_str()); in test_dir_with_file() 62 REPORTER_ASSERT(reporter, basename.equals(filename)); in test_dir_with_file() 67 SkString filename("file"); in DEF_TEST() local 68 test_dir_with_file(reporter, dir, filename); in DEF_TEST() 72 test_dir_with_file(reporter, dir, filename); in DEF_TEST() [all …]
|
D | PathOpsSimplifyTest.cpp | 11 static void testLine1(skiatest::Reporter* reporter, const char* filename) { in testLine1() argument 17 testSimplify(reporter, path, filename); in testLine1() 20 static void testLine1x(skiatest::Reporter* reporter, const char* filename) { in testLine1x() argument 27 testSimplify(reporter, path, filename); in testLine1x() 58 static void testLine2(skiatest::Reporter* reporter, const char* filename) { in testLine2() argument 62 testSimplify(reporter, path, filename); in testLine2() 65 static void testLine2x(skiatest::Reporter* reporter, const char* filename) { in testLine2x() argument 70 testSimplify(reporter, path, filename); in testLine2x() 73 static void testLine3(skiatest::Reporter* reporter, const char* filename) { in testLine3() argument 77 testSimplify(reporter, path, filename); in testLine3() [all …]
|
/external/libmojo/mojo/public/tools/bindings/pylib/mojom/parse/ |
D | parser.py | 40 def __init__(self, filename, message, lineno=None, snippet=None): argument 41 Error.__init__(self, filename, message, lineno=lineno, 49 def __init__(self, lexer, source, filename): argument 52 self.filename = filename 80 raise ParseError(self.filename, 85 self.filename, 94 raise ParseError(self.filename, 109 p[0] = ast.Import(eval(p[2]), filename=self.filename, lineno=p.lineno(2)) 113 p[0] = ast.Module(p[3], p[1], filename=self.filename, lineno=p.lineno(2)) 151 p[0] = ast.Attribute(p[1], p[3], filename=self.filename, lineno=p.lineno(1)) [all …]
|
/external/ImageMagick/MagickCore/ |
D | constitute.c | 222 image_info->filename); in PingImage() 264 MagickExport Image *PingImages(ImageInfo *image_info,const char *filename, in PingImages() argument 284 image_info->filename); in PingImages() 286 (void) SetImageOption(image_info,"filename",filename); in PingImages() 287 (void) CopyMagickString(image_info->filename,filename,MagickPathExtent); in PingImages() 288 (void) InterpretImageFilename(image_info,(Image *) NULL,image_info->filename, in PingImages() 290 if (LocaleCompare(ping_filename,image_info->filename) != 0) in PingImages() 311 (void) CopyMagickString(ping_filename,read_info->filename,MagickPathExtent); in PingImages() 317 (int) scene,read_info->filename,exception); in PingImages() 361 filename[MagickPathExtent], in ReadImage() local [all …]
|
/external/icu/icu4c/source/tools/gensprep/ |
D | gensprep.c | 58 parseMappings(const char *filename, UBool reportError, UErrorCode *pErrorCode); 61 parseNormalizationCorrections(const char *filename, UErrorCode *pErrorCode); 140 char* filename = NULL; in main() local 206 …filename = (char* ) uprv_malloc(uprv_strlen(srcDir) + uprv_strlen(inputFileName) + (icuUniDataDir … in main() 210 filename[0] = '.'; in main() 211 filename[1] = U_FILE_SEP_CHAR; in main() 212 uprv_strcpy(filename+2,srcDir); in main() 214 uprv_strcpy(filename, srcDir); in main() 217 basename=filename+uprv_strlen(filename); in main() 218 if(basename>filename && *(basename-1)!=U_FILE_SEP_CHAR) { in main() [all …]
|
/external/opencv/otherlibs/highgui/ |
D | loadsave.cpp | 64 static int Preprocess( const char* filename, char* buffer ); 76 const char* Find( const char* filename, char* buffer ) const; 186 const char* CvFilePath::Find( const char* filename, char* buffer ) const 189 int len = Preprocess( filename, path0 ); 224 filename = 0; 228 filename = (const char*)buffer; 232 return filename; 282 GrFmtReader* FindReader( const char* filename ) const; 283 GrFmtWriter* FindWriter( const char* filename ) const; 324 GrFmtReader* CvImageFilters::FindReader( const char* filename ) const in FindReader() [all …]
|