/external/python/google-api-python-client/tests/ |
D | test_discovery.py | 107 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 …]
|
D | test_http.py | 189 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 …]
|
D | test_mocks.py | 40 def datafile(filename): function 46 self.http = HttpMock(datafile("plus.json"), {"status": "200"}) 47 self.zoo_http = HttpMock(datafile("zoo.json"), {"status": "200"})
|
D | test_schema.py | 30 def datafile(filename): function 53 f = open(datafile("zoo.json"))
|
/external/python/oauth2client/tests/ |
D | test_jwt.py | 45 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 …]
|
D | test_service_account.py | 41 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')},
|
D | test_client.py | 71 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 …]
|
D | test_crypt.py | 31 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/ |
D | sched_tc1.c | 163 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()
|
D | sched_tc0.c | 176 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()
|
D | sched_driver.c | 431 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/ |
D | afblue.pl | 29 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/ |
D | SampleCppLinq.cpp | 100 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/ |
D | test__appengine_ndb.py | 30 def datafile(filename): function 53 datafile('client_secrets.json'), 'foo', redirect_uri='oob'), 65 datafile('client_secrets.json'), 'foo', redirect_uri='oob')
|
D | test_appengine.py | 52 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/ |
D | PerfFramework.pm | 101 my $datafile = shift; 106 if($datafile) { 107 $locAndData .= " -f $datafile";
|
/external/icu/icu4j/perf-tests/perldriver/ |
D | PerfFramework4j.pm | 104 my $datafile = shift; 110 if($datafile) { 111 $locAndData .= " -f $datafile";
|
/external/protobuf/benchmarks/php/ |
D | PhpBenchmark.php | 98 $datafile = fopen($file, "r") or die("Unable to open file " . $file); 99 $bytes = fread($datafile, filesize($file));
|
/external/iperf3/contrib/ |
D | iperf3.gp | 28 set datafile missing '0'
|
/external/fonttools/Tests/misc/ |
D | py23_test.py | 38 datafile = self.make_temp(data) 40 with open(datafile, 'rb') as infile, \ 50 os.remove(datafile)
|
/external/tensorflow/tensorflow/core/util/tensor_bundle/ |
D | tensor_bundle_test.cc | 913 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/ |
D | time.rst | 540 variable to the path of the required timezone datafile, relative to the root of
|
/external/python/cpython3/Doc/library/ |
D | time.rst | 691 variable to the path of the required timezone datafile, relative to the root of
|
/external/python/cpython3/Doc/whatsnew/ |
D | 2.3.rst | 788 input = open('datafile', 'rb')
|
/external/python/cpython2/Doc/whatsnew/ |
D | 2.3.rst | 788 input = open('datafile', 'rb')
|