Home
last modified time | relevance | path

Searched refs:datafile (Results 1 – 25 of 42) sorted by relevance

12

/external/python/google-api-python-client/tests/
Dtest_discovery.py107 def datafile(filename): function
121 with open(datafile('zoo.json'), 'r') as fh:
381 self.http = HttpMock(datafile('malformed.json'), {'status': '200'})
390 ({'status': '404'}, open(datafile('zoo.json'), 'rb').read()),
391 ({'status': '404'}, open(datafile('zoo.json'), 'rb').read()),
397 http = HttpMock(datafile('plus.json'), {'status': '200'})
407 discovery = open(datafile('plus.json')).read()
415 discovery = open(datafile('plus.json')).read()
424 discovery = open(datafile('plus.json')).read()
432 discovery = open(datafile('plus.json')).read()
[all …]
Dtest_http.py181 def datafile(filename): function
213 upload = MediaFileUpload(datafile('small.png'))
216 upload = MediaFileUpload(datafile('empty'))
221 datafile('small.png'), chunksize=500, resumable=True)
239 datafile('small.png'), mimetype='image/png', chunksize=-2,
254 datafile('small.png'), chunksize=500, resumable=True)
283 fd = FileIO(datafile('small.png'), 'r')
293 f = open(datafile('small.png'), 'rb')
304 f = open(datafile('small.png'), 'rb')
315 f = open(datafile('small.png'), 'rb')
[all …]
Dtest_mocks.py39 def datafile(filename): function
45 self.http = HttpMock(datafile('plus.json'), {'status': '200'})
46 self.zoo_http = HttpMock(datafile('zoo.json'), {'status': '200'})
Dtest_schema.py30 def datafile(filename): function
51 f = open(datafile('zoo.json'))
/external/u-boot/tools/
Dmkimage.c142 char *datafile = NULL; in process_args() local
182 params.datafile = optarg; in process_args()
201 datafile = optarg; in process_args()
202 params.auto_its = !strcmp(datafile, "auto"); in process_args()
299 params.datafile = datafile; in process_args()
300 else if (!params.datafile) in process_args()
303 if (type == IH_TYPE_SCRIPT && !params.datafile) in process_args()
421 dfd = open(params.datafile, O_RDONLY | O_BINARY); in main()
424 params.cmdname, params.datafile, in main()
431 params.cmdname, params.datafile, in main()
[all …]
Daisimage.c182 char *datafile = params->datafile; in ais_alloc_buffer() local
185 dfd = open(datafile, O_RDONLY|O_BINARY); in ais_alloc_buffer()
188 params->cmdname, datafile, strerror(errno)); in ais_alloc_buffer()
194 params->cmdname, datafile, strerror(errno)); in ais_alloc_buffer()
224 char *datafile = params->datafile; in ais_copy_image() local
227 dfd = open(datafile, O_RDONLY|O_BINARY); in ais_copy_image()
230 params->cmdname, datafile, strerror(errno)); in ais_copy_image()
236 params->cmdname, datafile, strerror(errno)); in ais_copy_image()
Dpblimage.c199 if (params->datafile) { in pbl_load_uboot()
200 fp_uboot = fopen(params->datafile, "r"); in pbl_load_uboot()
202 printf("Error: %s open failed\n", params->datafile); in pbl_load_uboot()
270 if (params->datafile) { in pblimage_check_params()
271 fp_uboot = fopen(params->datafile, "r"); in pblimage_check_params()
273 printf("Error: %s open failed\n", params->datafile); in pblimage_check_params()
Ddumpimage.c125 params.datafile = argv[optind]; in main()
129 params.outfile = params.datafile; in main()
Dfit_image.c53 if (params->datafile) { in fit_add_file_data()
85 size = imagetool_get_filesize(params, params->datafile); in fit_calc_size()
217 ret = fdt_property_file(params, fdt, "data", params->datafile); in fit_write_images()
651 } else if (params->datafile) { in fit_handle_file()
654 MKIMAGE_DTC, params->dtc, tmpfile, params->datafile); in fit_handle_file()
Dsocfpgaimage.c322 if (params->datafile && in sfp_vrec_header()
323 stat(params->datafile, &sbuf) == 0 && in sfp_vrec_header()
/external/python/oauth2client/tests/
Dtest_jwt.py45 def datafile(filename): function
67 private_key = datafile(private_key_file)
68 public_key = datafile('public_cert.pem')
84 public_key = datafile('public_cert.pem')
95 private_key = datafile('privatekey.' + self.format_)
110 public_key = datafile('public_cert.pem')
121 ({'status': '200'}, datafile('certs.json')),
134 ({'status': '200'}, datafile('certs.json')),
149 ({'status': '404'}, datafile('certs.json')),
156 private_key = datafile('privatekey.' + self.format_)
[all …]
Dtest_service_account.py41 def datafile(filename): function
52 self.private_key = datafile('pem_from_pkcs12.pem')
84 datafile('publickey_openssl.pem'))
388 self.private_key = datafile('pem_from_pkcs12.pem')
405 {'key': datafile('public_cert.pem')}, audience=self.url)
417 {'key': datafile('public_cert.pem')}, audience=self.url)
428 {'key': datafile('public_cert.pem')}, audience=self.url)
446 {'key': datafile('public_cert.pem')},
483 {'key': datafile('public_cert.pem')},
518 {'key': datafile('public_cert.pem')},
Dtest_client.py71 def datafile(filename): function
76 client_type, client_info = clientsecrets._loadfile(datafile(existing_file))
447 environment_variable_file = datafile(
455 nonexistent_file = datafile('nonexistent')
472 well_known_file = datafile(
496 credentials_file = datafile(
503 credential_file = datafile(
507 temp_credential_file = datafile(
522 credential_file = datafile(
532 credentials_file = datafile(os.path.join(
[all …]
Dtest_crypt.py31 def datafile(filename): function
62 pkcs12_key_as_pem = datafile('pem_from_pkcs12.pem')
64 alternate_pem = datafile('pem_from_pkcs12_alternate.pem')
/external/ltp/testcases/kernel/sched/sched_stress/
Dsched_tc1.c163 FILE *datafile; /* file pointer to the open file */ in process_file() local
168 if ((datafile = fopen(filename, "r")) == NULL) in process_file()
174 while (fgets(record, 80, datafile)) { in process_file()
175 if (feof(datafile)) in process_file()
182 if (fclose(datafile)) in process_file()
Dsched_tc0.c176 FILE *datafile; /* file pointer to the open file */ in process_file() local
181 if ((datafile = fopen(filename, "r")) == NULL) in process_file()
187 while (fgets(record, 80, datafile)) { in process_file()
188 if (feof(datafile)) in process_file()
195 if (fclose(datafile)) in process_file()
Dsched_driver.c431 FILE *datafile; /* file pointer for temporary file */ local
455 if ((datafile = fopen("sch.measure", "r")) == NULL) {
462 fgets(temp, 50, datafile);
472 fgets(t2asc, 50, datafile);
479 if (fclose(datafile) != 0) {
/external/v8/tools/
Dgc-nvp-trace-processor.py74 args = ['"%s"' % context.datafile,
107 def __init__(self, datafile, field_to_index): argument
108 self.datafile = datafile
144 with open(datafile_name, 'w') as datafile:
147 datafile.write('\t'.join(data_line))
148 datafile.write('\n')
150 def generate_script_and_datafile(plot, trace, datafile, output): argument
152 generate_datafile(datafile, trace, fields)
166 context = Context(datafile, field_to_index)
/external/freetype/src/tools/
Dafblue.pl29 my $datafile = $ARGV[0];
89 warn "$datafile:$INPUT_LINE_NUMBER: warning: $message\n";
96 die "$datafile:$INPUT_LINE_NUMBER: error: $message\n";
234 open(DATA, $datafile) || die "$prog: can't open \`$datafile': $OS_ERROR\n";
537 my $s2 = "using data from file \`$datafile'.";
/external/Reactive-Extensions/RxCpp/Ix/CPP/samples/SampleCppLinq/
DSampleCppLinq.cpp100 ifstream datafile("data.txt"); in load_data() local
104 if (datafile.fail()) in load_data()
107 while(getline(datafile, line)) in load_data()
/external/icu/icu4c/source/test/perf/perldriver/
DPerfFramework.pm101 my $datafile = shift;
106 if($datafile) {
107 $locAndData .= " -f $datafile";
/external/python/oauth2client/tests/contrib/
Dtest__appengine_ndb.py30 def datafile(filename): function
53 datafile('client_secrets.json'), 'foo', redirect_uri='oob'),
65 datafile('client_secrets.json'), 'foo', redirect_uri='oob')
Dtest_appengine.py52 def datafile(filename): function
57 client_type, client_info = clientsecrets._loadfile(datafile(existing_file))
287 datafile('client_secrets.json'),
863 datafile('client_secrets.json'),
885 filename = datafile('client_secrets.json')
912 datafile('client_secrets.json'),
927 datafile('client_secrets.json'),
942 datafile('client_secrets.json'),
957 datafile('unfilled_client_secrets.json'),
966 datafile('unfilled_client_secrets.json'),
/external/icu/icu4j/perf-tests/perldriver/
DPerfFramework4j.pm104 my $datafile = shift;
110 if($datafile) {
111 $locAndData .= " -f $datafile";
/external/v8/src/arm64/
Dinstrument-arm64.cc97 Instrument::Instrument(const char* datafile, uint64_t sample_period) in Instrument() argument
101 if (datafile != nullptr) { in Instrument()
102 output_stream_ = fopen(datafile, "w"); in Instrument()
104 fprintf(stderr, "Can't open output file %s. Using stderr.\n", datafile); in Instrument()

12