/external/llvm/unittests/Support/ |
D | SwapByteOrderTest.cpp | 30 sys::getSwappedBytes(sys::getSwappedBytes(original_uint8))); in TEST() 34 sys::getSwappedBytes(sys::getSwappedBytes(original_uint16))); in TEST() 38 sys::getSwappedBytes(sys::getSwappedBytes(original_uint32))); in TEST() 42 sys::getSwappedBytes(sys::getSwappedBytes(original_uint64))); in TEST() 55 sys::getSwappedBytes(sys::getSwappedBytes(original_int8))); in TEST() 59 sys::getSwappedBytes(sys::getSwappedBytes(original_int16))); in TEST() 63 sys::getSwappedBytes(sys::getSwappedBytes(original_int32))); in TEST() 67 sys::getSwappedBytes(sys::getSwappedBytes(original_int64))); in TEST() 74 sys::getSwappedBytes(sys::getSwappedBytes(original_int8))); in TEST() 78 sys::getSwappedBytes(sys::getSwappedBytes(original_int16))); in TEST() [all …]
|
D | LockFileManagerTest.cpp | 23 EC = sys::fs::createUniqueDirectory("LockFileManagerTestDir", TmpDir); in TEST() 27 sys::path::append(LockedFile, "file.lock"); in TEST() 41 EXPECT_FALSE(sys::fs::exists(StringRef(LockedFile))); in TEST() 43 EC = sys::fs::remove(StringRef(TmpDir)); in TEST() 50 EC = sys::fs::createUniqueDirectory("LockFileManagerTestDir", TmpDir); in TEST() 54 sys::path::append(LockedFile, "file"); in TEST() 57 sys::path::append(FileLocK, "file.lock"); in TEST() 60 sys::path::append(TmpFileLock, "file.lock-000"); in TEST() 63 EC = sys::fs::openFileForWrite(StringRef(TmpFileLock), FD, sys::fs::F_None); in TEST() 69 EC = sys::fs::create_link(TmpFileLock.str(), FileLocK.str()); in TEST() [all …]
|
/external/llvm/lib/Object/ |
D | SymbolicFile.cpp | 30 sys::fs::file_magic Type, in createSymbolicFile() 32 if (Type == sys::fs::file_magic::unknown) in createSymbolicFile() 33 Type = sys::fs::identify_magic(Object->getBuffer()); in createSymbolicFile() 36 case sys::fs::file_magic::bitcode: in createSymbolicFile() 40 case sys::fs::file_magic::unknown: in createSymbolicFile() 41 case sys::fs::file_magic::archive: in createSymbolicFile() 42 case sys::fs::file_magic::macho_universal_binary: in createSymbolicFile() 43 case sys::fs::file_magic::windows_resource: in createSymbolicFile() 45 case sys::fs::file_magic::elf_relocatable: in createSymbolicFile() 46 case sys::fs::file_magic::elf_executable: in createSymbolicFile() [all …]
|
D | Binary.cpp | 43 sys::fs::file_magic Type = sys::fs::identify_magic(Buffer->getBuffer()); in createBinary() 46 case sys::fs::file_magic::archive: in createBinary() 48 case sys::fs::file_magic::elf_relocatable: in createBinary() 49 case sys::fs::file_magic::elf_executable: in createBinary() 50 case sys::fs::file_magic::elf_shared_object: in createBinary() 51 case sys::fs::file_magic::elf_core: in createBinary() 52 case sys::fs::file_magic::macho_object: in createBinary() 53 case sys::fs::file_magic::macho_executable: in createBinary() 54 case sys::fs::file_magic::macho_fixed_virtual_memory_shared_lib: in createBinary() 55 case sys::fs::file_magic::macho_core: in createBinary() [all …]
|
D | ObjectFile.cpp | 50 sys::fs::file_magic Type) { in createObjectFile() 51 if (Type == sys::fs::file_magic::unknown) in createObjectFile() 52 Type = sys::fs::identify_magic(Object->getBuffer()); in createObjectFile() 55 case sys::fs::file_magic::unknown: in createObjectFile() 56 case sys::fs::file_magic::bitcode: in createObjectFile() 57 case sys::fs::file_magic::archive: in createObjectFile() 58 case sys::fs::file_magic::macho_universal_binary: in createObjectFile() 59 case sys::fs::file_magic::windows_resource: in createObjectFile() 61 case sys::fs::file_magic::elf_relocatable: in createObjectFile() 62 case sys::fs::file_magic::elf_executable: in createObjectFile() [all …]
|
/external/llvm/lib/Support/ |
D | Atomic.cpp | 29 void sys::MemoryFence() { in MemoryFence() 43 sys::cas_flag sys::CompareAndSwap(volatile sys::cas_flag* ptr, in CompareAndSwap() 44 sys::cas_flag new_value, in CompareAndSwap() 45 sys::cas_flag old_value) { in CompareAndSwap() 47 sys::cas_flag result = *ptr; in CompareAndSwap() 60 sys::cas_flag sys::AtomicIncrement(volatile sys::cas_flag* ptr) { in AtomicIncrement() 73 sys::cas_flag sys::AtomicDecrement(volatile sys::cas_flag* ptr) { in AtomicDecrement() 86 sys::cas_flag sys::AtomicAdd(volatile sys::cas_flag* ptr, sys::cas_flag val) { in AtomicAdd() 99 sys::cas_flag sys::AtomicMul(volatile sys::cas_flag* ptr, sys::cas_flag val) { in AtomicMul() 100 sys::cas_flag original, result; in AtomicMul() [all …]
|
/external/chromium_org/build/ |
D | gyp_chromium | 17 import sys 23 sys.path.insert(0, os.path.join(chrome_src, 'tools', 'gyp', 'pylib')) 30 sys.path.insert(1, os.path.join(chrome_src, 'tools')) 31 sys.path.insert(1, os.path.join(chrome_src, 'tools', 'generate_shim_headers')) 32 sys.path.insert(1, os.path.join(chrome_src, 'tools', 'grit')) 33 sys.path.insert(1, os.path.join(chrome_src, 'chrome', 'tools', 'build')) 34 sys.path.insert(1, os.path.join(chrome_src, 'native_client', 'build')) 35 sys.path.insert(1, os.path.join(chrome_src, 'native_client_sdk', 'src', 37 sys.path.insert(1, os.path.join(chrome_src, 'remoting', 'tools', 'build')) 38 sys.path.insert(1, os.path.join(chrome_src, 'third_party', 'liblouis')) [all …]
|
/external/chromium-trace/trace-viewer/build/ |
D | gjslint | 3 import sys 7 sys.path.append(os.path.join(src_dir, 'third_party/python_gflags')) 8 sys.path.append(os.path.join(src_dir, 'third_party/closure_linter')) 14 if sys.argv[1:] == ['--help']: 15 sys.exit(gjslint.main()) 17 if len(sys.argv) > 1: 18 sys.stderr.write('No arguments allowed') 19 sys.exit(1) 20 sys.argv.append('--strict') 21 sys.argv.append('--unix_mode') [all …]
|
/external/oprofile/ |
D | opimport_pull | 5 import sys 8 print "Usage:" + sys.argv[0] + " [-s serial_number] [-r] dir" 13 if (len(sys.argv) <= 1 or len(sys.argv) > 5): 15 sys.exit(1) 25 sys.exit(1) 29 if sys.argv[1] == "-s": 30 if len(sys.argv) < 4: 32 sys.exit(1) 33 device = " -s %s" % sys.argv[2] 38 if sys.argv[argv_next] == "-r" : [all …]
|
/external/protobuf/python/ |
D | ez_setup.py | 21 import sys 23 DEFAULT_URL = "http://pypi.python.org/packages/%s/s/setuptools/" % sys.version[:3] 62 import sys, os 70 print >>sys.stderr, ( 74 sys.exit(2) 92 was_imported = 'pkg_resources' in sys.modules or 'setuptools' in sys.modules 95 sys.path.insert(0, egg) 105 print >>sys.stderr, ( 111 sys.exit(2) 113 del pkg_resources, sys.modules['pkg_resources'] # reload ok [all …]
|
/external/chromium_org/third_party/protobuf/python/ |
D | ez_setup.py | 21 import sys 23 DEFAULT_URL = "http://pypi.python.org/packages/%s/s/setuptools/" % sys.version[:3] 70 import sys, os 78 print >>sys.stderr, ( 82 sys.exit(2) 100 was_imported = 'pkg_resources' in sys.modules or 'setuptools' in sys.modules 103 sys.path.insert(0, egg) 113 print >>sys.stderr, ( 119 sys.exit(2) 123 del pkg_resources, sys.modules['pkg_resources'] # reload ok [all …]
|
/external/chromium_org/v8/tools/ |
D | test-server.py | 33 import sys 37 ROOT = os.path.abspath(os.path.dirname(sys.argv[0])) 51 """ % sys.argv[0]) 62 sys.exit(code) 91 sys.exit(1) 124 scriptname = os.path.abspath(sys.argv[0]) 139 if __name__ == "__main__" and len(sys.argv) == 2: 140 if sys.argv[1] in ("setup", "update"): 143 sys.exit(1) 145 sys.exit(0) [all …]
|
/external/chromium_org/tools/telemetry/third_party/pyserial/serial/tools/ |
D | miniterm.py | 11 import sys, os, serial, threading 77 if sys.version_info >= (3, 0): 119 import termios, sys, os 122 self.fd = sys.stdin.fileno() 146 sys.exitfunc = cleanup_console # terminal modes have to be restored on exit... 149 …raise NotImplementedError("Sorry no implementation for your platform (%s) available." % sys.platfo… 154 sys.stderr.write('\n--- Available ports:\n') 157 sys.stderr.write('--- %-20s %s\n' % (port, desc)) 215 sys.stderr.write("\n--- Settings: %s %s,%s,%s,%s\n" % ( 221 sys.stderr.write('--- RTS: %-8s DTR: %-8s BREAK: %-8s\n' % ( [all …]
|
/external/llvm/utils/lit/tests/Inputs/googletest-format/DummySubDir/ |
D | OneTest | 3 import sys 5 if len(sys.argv) != 2: 8 if sys.argv[1] == "--gtest_list_tests": 17 sys.exit(0) 18 elif not sys.argv[1].startswith("--gtest_filter="): 19 raise ValueError("unexpected argument: %r" % (sys.argv[1])) 21 test_name = sys.argv[1].split('=',1)[1] 24 sys.exit(0) 28 sys.exit(1) 32 sys.exit(0)
|
/external/chromium_org/tools/gyp/ |
D | gyptest.py | 14 import sys 63 sys.stdout.write(s) 64 sys.stdout.flush() 82 if stdout is sys.stdout: 88 if stderr is sys.stderr: 98 shell=(sys.platform == 'win32'), 104 elif stdout is not sys.stdout: 106 if stderr not in (None, sys.stderr): 129 sys.stdout = Unbuffered(sys.stdout) 130 sys.stderr = Unbuffered(sys.stderr) [all …]
|
/external/antlr/antlr-3.4/runtime/Python/ |
D | ez_setup.py | 16 import sys 18 DEFAULT_URL = "http://cheeseshop.python.org/packages/%s/s/setuptools/" % sys.version[:3] 44 import sys, os 51 print >>sys.stderr, ( 55 sys.exit(2) 77 print >>sys.stderr, ( 81 sys.exit(2) 84 sys.path.insert(0, egg) 93 print >>sys.stderr, ( 98 sys.exit(2) [all …]
|
/external/chromium_org/tools/gyp/test/intermediate_dir/src/ |
D | script.py | 12 import sys 14 if len(sys.argv) == 3 and ' ' in sys.argv[2]: 15 sys.argv[2], fourth = shlex.split(sys.argv[2].replace('\\', '\\\\')) 16 sys.argv.append(fourth) 20 with open(sys.argv[2], 'w') as f: 21 f.write(sys.argv[1]) 23 with open(sys.argv[3], 'w') as f: 24 f.write(os.path.abspath(sys.argv[2]))
|
/external/chromium_org/third_party/simplejson/ |
D | tool.py | 13 import sys 17 if len(sys.argv) == 1: 18 infile = sys.stdin 19 outfile = sys.stdout 20 elif len(sys.argv) == 2: 21 infile = open(sys.argv[1], 'rb') 22 outfile = sys.stdout 23 elif len(sys.argv) == 3: 24 infile = open(sys.argv[1], 'rb') 25 outfile = open(sys.argv[2], 'wb') [all …]
|
/external/compiler-rt/lib/sanitizer_common/scripts/ |
D | sancov.py | 8 import sys 15 print >> sys.stderr, "Usage: \n" + \ 28 print >>sys.stderr, "%s: read %d PCs from %s" % (prog_name, size / 4, path) 35 print >> sys.stderr, "%s: %d files merged; %d PCs total" % \ 45 if sys.stdout.isatty(): 49 a.tofile(sys.stdout) 54 print >> sys.stderr, "%s: unpacking %s" % (prog_name, path) 66 print >> sys.stderr, "%s: extracting %s" % \ 83 print >> sys.stderr, "%s: reading map %s" % (prog_name, map_path) 95 print >> sys.stderr, "%s: unpacking %s" % (prog_name, path) [all …]
|
/external/chromium_org/tools/telemetry/telemetry/ |
D | test_runner.py | 13 import sys 32 main_module = sys.modules['__main__'] 52 print >> sys.stderr, ('usage: %s <command> [<options>]' % _ScriptName()) 53 print >> sys.stderr, 'Available commands are:' 55 print >> sys.stderr, ' %-10s %s' % ( 57 print >> sys.stderr, ('"%s help <command>" to see usage information ' 112 for arg in sys.argv[1:]: 127 sys.exit(-1) 132 print >> sys.stderr, 'No test named "%s".' % input_test_name 133 print >> sys.stderr [all …]
|
/external/chromium_org/third_party/skia/ |
D | make.py | 18 import sys 38 sys.exit(1) 48 sys.exit(1) 86 sys.exit(1) 144 sys.exit(0) 149 sys.exit(0) 151 if sys.platform == 'darwin': 154 sys.exit(1) 155 elif sys.platform == 'cygwin': 158 sys.exit(1) [all …]
|
/external/skia/ |
D | make.py | 18 import sys 38 sys.exit(1) 48 sys.exit(1) 86 sys.exit(1) 144 sys.exit(0) 149 sys.exit(0) 151 if sys.platform == 'darwin': 154 sys.exit(1) 155 elif sys.platform == 'cygwin': 158 sys.exit(1) [all …]
|
/external/lldb/test/types/ |
D | TestIntegerTypes.py | 8 import sys 22 @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") 28 @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") 39 @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") 45 @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") 56 @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") 62 @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") 73 @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") 79 @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") 90 @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") [all …]
|
D | TestIntegerTypesExpr.py | 8 import sys 22 @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") 28 @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") 39 @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") 45 @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") 56 @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") 62 @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") 73 @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") 79 @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") 90 @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") [all …]
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/coverage/ |
D | execfile.py | 3 import imp, os, sys 11 BUILTINS = sys.modules['__builtin__'] 14 BUILTINS = sys.modules['builtins'] 61 _, err, _ = sys.exc_info() 81 old_main_mod = sys.modules['__main__'] 83 sys.modules['__main__'] = main_mod 89 old_argv = sys.argv 90 old_path0 = sys.path[0] 91 sys.argv = args 92 sys.path[0] = os.path.abspath(os.path.dirname(filename)) [all …]
|