| /external/zstd/tests/cli-tests/compression/ |
| D | levels.sh | 3 set -e 4 set -v 6 datagen > file 9 zstd --fast=10 file -o file-f10.zst -q 10 zstd --fast=1 file -o file-f1.zst -q 11 zstd -1 file -o file-1.zst -q 12 zstd -19 file -o file-19.zst -q 14 zstd -t file-f10.zst file-f1.zst file-1.zst file-19.zst 16 cmp_size -lt file-19.zst file-1.zst 17 cmp_size -lt file-1.zst file-f1.zst [all …]
|
| D | levels.sh.stderr.exact | 2 datagen > file 5 zstd --fast=10 file -o file-f10.zst -q 6 zstd --fast=1 file -o file-f1.zst -q 7 zstd -1 file -o file-1.zst -q 8 zstd -19 file -o file-19.zst -q 10 zstd -t file-f10.zst file-f1.zst file-1.zst file-19.zst 13 cmp_size -lt file-19.zst file-1.zst 14 cmp_size -lt file-1.zst file-f1.zst 15 cmp_size -lt file-f1.zst file-f10.zst 18 zstd --fast file -f -q [all …]
|
| /external/tensorflow/tensorflow/core/lib/io/ |
| D | buffered_inputstream_test.cc | 4 you may not use this file except in compliance with the License. 7 http://www.apache.org/licenses/LICENSE-2.0 20 #include "tensorflow/core/platform/env.h" 65 Env* env = Env::Default(); in TEST() local 67 ASSERT_TRUE(env->LocalTempFilename(&fname)); in TEST() 68 TF_ASSERT_OK(WriteStringToFile(env, fname, "")); in TEST() 69 std::unique_ptr<RandomAccessFile> file; in TEST() local 70 TF_ASSERT_OK(env->NewRandomAccessFile(fname, &file)); in TEST() 74 new RandomAccessInputStream(file.get())); in TEST() 82 Env* env = Env::Default(); in TEST() local [all …]
|
| D | inputbuffer_test.cc | 4 you may not use this file except in compliance with the License. 7 http://www.apache.org/licenses/LICENSE-2.0 26 #include "tensorflow/core/platform/env.h" 39 Env* env = Env::Default(); in TEST() local 41 ASSERT_TRUE(env->LocalTempFilename(&fname)); in TEST() 42 TF_ASSERT_OK(WriteStringToFile(env, fname, "")); in TEST() 45 std::unique_ptr<RandomAccessFile> file; in TEST() local 46 TF_CHECK_OK(env->NewRandomAccessFile(fname, &file)); in TEST() 48 io::InputBuffer in(file.get(), buf_size); in TEST() 54 Env* env = Env::Default(); in TEST() local [all …]
|
| D | record_reader_writer_test.cc | 4 you may not use this file except in compliance with the License. 7 http://www.apache.org/licenses/LICENSE-2.0 21 #include "tensorflow/core/platform/env.h" 48 Env* env = Env::Default(); in GetFileSize() local 50 TF_CHECK_OK(env->GetFileSize(fname, &fsize)); in GetFileSize() 62 Env* env = Env::Default(); in VerifyFlush() local 65 std::unique_ptr<WritableFile> file; in VerifyFlush() local 66 TF_CHECK_OK(env->NewWritableFile(fname, &file)); in VerifyFlush() 67 io::RecordWriter writer(file.get(), options); in VerifyFlush() 70 TF_CHECK_OK(env->NewRandomAccessFile(fname, &read_file)); in VerifyFlush() [all …]
|
| /external/cronet/third_party/libc++/src/test/std/input.output/filesystems/fs.op.funcs/fs.op.create_directory/ |
| D | create_directory_with_attributes.pass.cpp | 1 //===----------------------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 10 // UNSUPPORTED: no-filesystem 11 // UNSUPPORTED: availability-filesystem-missing 14 // XFAIL: stdlib=apple-libc++ && target={{.+}}-apple-macosx{{10.15|11.0}} 42 scoped_test_env env; in create_existing_directory() local 43 const path dir = env.create_dir("dir1"); in create_existing_directory() 44 const path dir2 = env.create_dir("dir2"); in create_existing_directory() 64 scoped_test_env env; in create_directory_one_level() local [all …]
|
| /external/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.copy/ |
| D | copy.pass.cpp | 1 //===----------------------------------------------------------------------===// 5 // This file is dual licensed under the MIT and the University of Illinois Open 8 //===----------------------------------------------------------------------===// 26 #include "rapid-cxx-test.hpp" 67 scoped_test_env env; in TEST_CASE() local 68 const path file = env.create_file("file1", 42); in TEST_CASE() local 69 const path dir = env.create_dir("dir"); in TEST_CASE() 70 const path fifo = env.create_fifo("fifo"); in TEST_CASE() 79 const path t = env.test_root; in TEST_CASE() 87 fs::copy(file, file, ec); in TEST_CASE() [all …]
|
| /external/leveldb/util/ |
| D | env.cc | 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. See the AUTHORS file for names of contributors. 5 #include "leveldb/env.h" 9 // This workaround can be removed when leveldb::Env::DeleteFile is removed. 10 // See env.h for justification. 17 Env::Env() = default; 19 Env::~Env() = default; 21 Status Env::NewAppendableFile(const std::string& fname, WritableFile** result) { in NewAppendableFile() 25 Status Env::RemoveDir(const std::string& dirname) { return DeleteDir(dirname); } in RemoveDir() 26 Status Env::DeleteDir(const std::string& dirname) { return RemoveDir(dirname); } in DeleteDir() [all …]
|
| /external/cronet/third_party/libc++/src/test/std/input.output/filesystems/fs.op.funcs/fs.op.copy/ |
| D | copy.pass.cpp | 1 //===----------------------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 10 // UNSUPPORTED: no-filesystem 11 // UNSUPPORTED: availability-filesystem-missing 14 // creating a FIFO file. 15 // XFAIL: LIBCXX-ANDROID-FIXME && !android-device-api={{21|22|23}} 70 scoped_test_env env; in test_error_reporting() local 71 const path file = env.create_file("file1", 42); in test_error_reporting() local 72 const path dir = env.create_dir("dir"); in test_error_reporting() [all …]
|
| /external/leveldb/include/leveldb/ |
| D | env.h | 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. See the AUTHORS file for names of contributors. 5 // An Env is an interface used by the leveldb implementation to access 7 // may wish to provide a custom Env object when opening a database to 8 // get fine gain control; e.g., to rate limit file system operations. 10 // All Env implementations are safe for concurrent access from 24 // This workaround can be removed when leveldb::Env::DeleteFile is removed. 28 // declarations of the Env class in different translation units. 30 // This is because <windows.h>, a fairly popular header file for Windows 32 // header before this header will contain an altered Env declaration. [all …]
|
| /external/tensorflow/tensorflow/core/platform/ |
| D | env.cc | 4 you may not use this file except in compliance with the License. 7 http://www.apache.org/licenses/LICENSE-2.0 16 #include "tensorflow/core/platform/env.h" 33 #include <mach-o/dyld.h> 76 return errors::AlreadyExists("File factory for ", scheme, in Register() 86 return errors::AlreadyExists("File system for ", scheme, in Register() 98 return found->second.get(); in Lookup() 105 schemes->push_back(e.first); in GetRegisteredFileSystemSchemes() 110 Env::Env() : file_system_registry_(new FileSystemRegistryImpl) {} in Env() function in tensorflow::Env 112 Status Env::GetFileSystemForFile(const std::string& fname, in GetFileSystemForFile() [all …]
|
| D | env_test.cc | 4 you may not use this file except in compliance with the License. 7 http://www.apache.org/licenses/LICENSE-2.0 16 #include "tensorflow/core/platform/env.h" 36 string CreateTestFile(Env* env, const string& filename, int length) { in CreateTestFile() argument 39 TF_EXPECT_OK(WriteStringToFile(env, filename, input)); in CreateTestFile() 46 node->set_name("name1"); in CreateTestProto() 47 node->set_op("op1"); in CreateTestProto() 49 node->set_name("name2"); in CreateTestProto() 50 node->set_op("op2"); in CreateTestProto() 65 void SetUp() override { TF_CHECK_OK(env_->CreateDir(BaseDir())); } in SetUp() [all …]
|
| /external/oj-libjdwp/src/share/javavm/export/ |
| D | jvm.h | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 8 * particular file as subject to the "Classpath" exception as provided 9 * by Oracle in the LICENSE file that accompanied this code. 14 * version 2 for more details (a copy is included in the LICENSE file that 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 39 * This file contains additional functions exported from the VM. 41 * There are three parts to this file: 43 * First, this file contains the VM-related functions needed by native 45 * class needs VM-level functions that wait for and notify monitors. 47 * Second, this file contains the functions and constant definitions [all …]
|
| /external/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.copy_file/ |
| D | copy_file.pass.cpp | 1 //===----------------------------------------------------------------------===// 5 // This file is dual licensed under the MIT and the University of Illinois Open 8 //===----------------------------------------------------------------------===// 26 #include "rapid-cxx-test.hpp" 56 scoped_test_env env; in TEST_CASE() local 57 const path file = env.create_file("file1", 42); in TEST_CASE() local 58 const path file2 = env.create_file("file2", 55); in TEST_CASE() 59 const path non_regular_file = env.create_fifo("non_reg"); in TEST_CASE() 60 const path dne = env.make_env_path("dne"); in TEST_CASE() 64 TEST_CHECK(fs::copy_file(file, file, copy_options::overwrite_existing, in TEST_CASE() [all …]
|
| /external/ComputeLibrary/tests/ |
| D | SConscript | 2 # -*- coding: utf-8 -*- 4 # Copyright (c) 2017-2022 Arm Limited. 6 # SPDX-License-Identifier: MIT 27 Import('env') 49 test_env = env.Clone() 70 # Disable floating-point expression contraction (e.g. fused multiply-add operations) 71 if not 'windows' in env['os']: 72 test_env.Append(CXXFLAGS = ['-ffp-contract=off']) 74 # Remove -Wnoexcept from tests 75 if 'g++' in test_env['CXX'] and '-Wnoexcept' in test_env['CXXFLAGS']: [all …]
|
| /external/cronet/third_party/libc++/src/test/std/input.output/filesystems/fs.op.funcs/fs.op.create_directories/ |
| D | create_directories.pass.cpp | 1 //===----------------------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 10 // UNSUPPORTED: no-filesystem 11 // UNSUPPORTED: availability-filesystem-missing 14 // XFAIL: stdlib=apple-libc++ && target={{.+}}-apple-macosx{{10.15|11.0}} 43 scoped_test_env env; in create_existing_directory() local 44 const path dir = env.create_dir("dir1"); in create_existing_directory() 53 scoped_test_env env; in create_directory_one_level() local 54 const path dir = env.make_env_path("dir1"); in create_directory_one_level() [all …]
|
| /external/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.remove_all/ |
| D | remove_all.pass.cpp | 1 //===----------------------------------------------------------------------===// 5 // This file is dual licensed under the MIT and the University of Illinois Open 8 //===----------------------------------------------------------------------===// 20 #include "rapid-cxx-test.hpp" 56 scoped_test_env env; in TEST_CASE() local 57 const path non_empty_dir = env.create_dir("dir"); in TEST_CASE() 58 env.create_file(non_empty_dir / "file1", 42); in TEST_CASE() 59 const path bad_perms_dir = env.create_dir("bad_dir"); in TEST_CASE() 60 const path file_in_bad_dir = env.create_file(bad_perms_dir / "file", 42); in TEST_CASE() 62 const path bad_perms_file = env.create_file("file2", 42); in TEST_CASE() [all …]
|
| /external/curl/tests/http/ |
| D | test_04_stuttered.py | 1 #!/usr/bin/env python3 2 # -*- coding: utf-8 -*- 12 # This software is licensed as described in the file COPYING, which 18 # furnished to do so, under the terms of the COPYING file. 23 # SPDX-License-Identifier: curl 32 from testenv import Env, CurlClient 38 @pytest.mark.skipif(condition=Env().slow_network, reason="not suitable for slow network tests") 39 @pytest.mark.skipif(condition=Env().ci_run, reason="not suitable for CI runs") 43 def _class_scope(self, env, httpd, nghttpx): argument 44 if env.have_h3(): [all …]
|
| D | test_16_info.py | 1 #!/usr/bin/env python3 2 # -*- coding: utf-8 -*- 12 # This software is licensed as described in the file COPYING, which 18 # furnished to do so, under the terms of the COPYING file. 23 # SPDX-License-Identifier: curl 34 from testenv import Env, CurlClient, LocalClient, ExecResult 43 def _class_scope(self, env, httpd, nghttpx): argument 44 if env.have_h3(): 50 def _class_scope(self, env, httpd): argument 52 env.make_data_file(indir=indir, fname="data-10k", fsize=10*1024) [all …]
|
| /external/linux-kselftest/tools/testing/selftests/bpf/ |
| D | veristat.c | 1 // SPDX-License-Identifier: GPL-2.0 34 NUM_STATS_CNT = FILE_NAME - VERDICT, 53 RESFMT_TABLE_CALCLEN, /* fake format to pre-calculate table's column widths */ 62 static struct env { struct 90 } env; argument 94 if (!env.verbose) in libbpf_print_fn() 96 if (level == LIBBPF_DEBUG /* && !env.verbose */) in libbpf_print_fn() 106 "USAGE: veristat <obj-file> [<obj-file>...]\n" 107 " OR: veristat -C <baseline.csv> <comparison.csv>\n"; 112 …{ "log-level", 'l', "LEVEL", 0, "Verifier log level (default 0 for normal mode, 1 for verbose mode… [all …]
|
| /external/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.create_directory/ |
| D | create_directory_with_attributes.pass.cpp | 1 //===----------------------------------------------------------------------===// 5 // This file is dual licensed under the MIT and the University of Illinois Open 8 //===----------------------------------------------------------------------===// 22 #include "rapid-cxx-test.hpp" 41 scoped_test_env env; in TEST_CASE() local 42 const path dir = env.create_dir("dir1"); in TEST_CASE() 43 const path dir2 = env.create_dir("dir2"); in TEST_CASE() 61 scoped_test_env env; in TEST_CASE() local 63 permissions(env.test_root, perms::set_gid, perm_options::remove); in TEST_CASE() 65 const path dir = env.make_env_path("dir1"); in TEST_CASE() [all …]
|
| /external/deqp/framework/platform/android/ |
| D | tcuAndroidExecService.cpp | 1 /*------------------------------------------------------------------------- 3 * ---------------------------------------- 8 * you may not use this file except in compliance with the License. 11 * http://www.apache.org/licenses/LICENSE-2.0 20 * \file 22 *//*--------------------------------------------------------------------*/ 39 static const char *LOG_FILE_NAME = "/sdcard/dEQP-log.qpa"; 47 static void checkJniException(JNIEnv *env, const char *file, int line) in checkJniException() argument 49 if (env->ExceptionOccurred()) in checkJniException() 51 env->ExceptionDescribe(); in checkJniException() [all …]
|
| /external/cronet/third_party/libc++/src/test/std/input.output/filesystems/fs.op.funcs/fs.op.rename/ |
| D | rename.pass.cpp | 1 //===----------------------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 10 // UNSUPPORTED: no-filesystem 11 // UNSUPPORTED: availability-filesystem-missing 54 scoped_test_env env; in test_error_reporting() local 55 const path dne = env.make_env_path("dne"); in test_error_reporting() 56 const path file = env.create_file("file1", 42); in test_error_reporting() local 57 const path dir = env.create_dir("dir1"); in test_error_reporting() 63 {file, dir}, in test_error_reporting() [all …]
|
| /external/cronet/third_party/libc++/src/test/std/input.output/filesystems/fs.op.funcs/fs.op.copy_file/ |
| D | copy_file.pass.cpp | 1 //===----------------------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 10 // UNSUPPORTED: no-filesystem 11 // UNSUPPORTED: availability-filesystem-missing 14 // against already-released libc++'s. 15 // XFAIL: stdlib=apple-libc++ && target={{.+}}-apple-macosx{{10.15|11.0}} 18 // creating a FIFO file. 19 // XFAIL: LIBCXX-ANDROID-FIXME && !android-device-api={{21|22|23}} 60 scoped_test_env env; in test_error_reporting() local [all …]
|
| /external/grpc-grpc/src/ruby/ext/grpc/ |
| D | extconf.rb | 4 # you may not use this file except in compliance with the License. 7 # http://www.apache.org/licenses/LICENSE-2.0 24 cross_compiling = ENV['RCD_HOST_RUBY_VERSION'] # set by rake-compiler-dock in build containers 28 grpc_root = File.expand_path(File.join(File.dirname(__FILE__), '../../../..')) 30 grpc_config = ENV['GRPC_CONFIG'] || 'opt' 32 ENV['MACOSX_DEPLOYMENT_TARGET'] = '10.10' 35 d = ENV['GRPC_RUBY_DEBUG_SYMBOLS_OUTPUT_DIR'] 43 # rake-compiler-dock sets the -s LDFLAG when building rubies for 44 # cross compilation, and this -s flag propagates into RbConfig. Stripping 49 flags = flags.reject {|flag| flag == '-s'} [all …]
|