Home
last modified time | relevance | path

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

12

/external/python/google-api-python-client/tests/
Dtest_discovery.py107 def datafile(filename): function
119 with open(datafile("zoo.json"), "r") as fh:
415 self.http = HttpMock(datafile("malformed.json"), {"status": "200"})
425 ({"status": "404"}, open(datafile("zoo.json"), "rb").read()),
426 ({"status": "404"}, open(datafile("zoo.json"), "rb").read()),
433 http = HttpMock(datafile("plus.json"), {"status": "200"})
442 discovery = open(datafile("plus.json")).read()
452 discovery = open(datafile("plus.json")).read()
463 discovery = open(datafile("plus.json")).read()
472 discovery = open(datafile("plus.json")).read()
[all …]
Dtest_http.py189 def datafile(filename): function
220 upload = MediaFileUpload(datafile("test_close"), mimetype="text/plain")
223 upload = MediaFileUpload(datafile("test_close"), mimetype="text/plain")
229 upload = MediaFileUpload(datafile("small.png"))
232 upload = MediaFileUpload(datafile("empty"))
236 upload = MediaFileUpload(datafile("small.png"), chunksize=500, resumable=True)
256 datafile("small.png"),
275 datafile("small.png"), chunksize=500, resumable=True
306 fd = FileIO(datafile("small.png"), "r")
317 f = open(datafile("small.png"), "rb")
[all …]
Dtest_mocks.py40 def datafile(filename): function
46 self.http = HttpMock(datafile("plus.json"), {"status": "200"})
47 self.zoo_http = HttpMock(datafile("zoo.json"), {"status": "200"})
Dtest_schema.py30 def datafile(filename): function
53 f = open(datafile("zoo.json"))
/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/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/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/icu4c/source/test/perf/perldriver/
DPerfFramework.pm101 my $datafile = shift;
106 if($datafile) {
107 $locAndData .= " -f $datafile";
/external/icu/icu4j/perf-tests/perldriver/
DPerfFramework4j.pm104 my $datafile = shift;
110 if($datafile) {
111 $locAndData .= " -f $datafile";
/external/protobuf/benchmarks/php/
DPhpBenchmark.php98 $datafile = fopen($file, "r") or die("Unable to open file " . $file);
99 $bytes = fread($datafile, filesize($file));
/external/iperf3/contrib/
Diperf3.gp28 set datafile missing '0'
/external/fonttools/Tests/misc/
Dpy23_test.py38 datafile = self.make_temp(data)
40 with open(datafile, 'rb') as infile, \
50 os.remove(datafile)
/external/tensorflow/tensorflow/core/util/tensor_bundle/
Dtensor_bundle_test.cc913 const string& datafile = DataFilename(Prefix(prefix), 0, 1); in TEST() local
915 TF_ASSERT_OK(ReadFileToString(Env::Default(), datafile, &data)); in TEST()
926 TF_ASSERT_OK(WriteStringToFile(Env::Default(), datafile, data)); in TEST()
982 const string datafile = DataFilename(Prefix("end"), 0, 1); in TEST() local
984 TF_ASSERT_OK(ReadFileToString(env, datafile, &data)); in TEST()
986 TF_ASSERT_OK(WriteStringToFile(env, datafile, in TEST()
/external/python/cpython2/Doc/library/
Dtime.rst540 variable to the path of the required timezone datafile, relative to the root of
/external/python/cpython3/Doc/library/
Dtime.rst691 variable to the path of the required timezone datafile, relative to the root of
/external/python/cpython3/Doc/whatsnew/
D2.3.rst788 input = open('datafile', 'rb')
/external/python/cpython2/Doc/whatsnew/
D2.3.rst788 input = open('datafile', 'rb')

12