/cts/tests/tests/os/src/android/os/cts/ |
ConditionVariableTest.java | 2 * Copyright (C) 2008 The Android Open Source Project 43 // test open then block(long) 44 mConditionVariable.open(); 55 // test block then open 65 mConditionVariable.open(); 84 mConditionVariable.open();
|
/external/libcxx/test/std/input.output/file.streams/fstreams/filebuf.members/ |
open_pointer.pass.cpp | 5 // This file is dual licensed under the MIT and the University of Illinois Open 12 // basic_filebuf<charT,traits>* open(const char* s, ios_base::openmode mode); 23 assert(f.open(temp.c_str(), std::ios_base::out) != 0); 29 assert(f.open(temp.c_str(), std::ios_base::in) != 0); 38 assert(f.open(temp.c_str(), std::ios_base::out) != 0); 44 assert(f.open(temp.c_str(), std::ios_base::in) != 0);
|
/external/llvm/utils/ |
UpdateCMakeLists.pl | 64 open(IN, $cmakeList); 65 open(OUT, ">", $cmakeListNew); 87 open(FILE, $cmakeList) or 88 die("Cannot open $cmakeList when computing digest\n"); 93 open(FILE, $cmakeListNew) or 94 die("Cannot open $cmakeListNew when computing digest\n");
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/serializer/ |
SerializerTest.java | 41 serializer.open(); 43 serializer.open(); 51 serializer.open(); 54 serializer.open(); 62 serializer.open(); 73 serializer.open();
|
/frameworks/av/media/img_utils/src/ |
FileInput.cpp | 2 * Copyright 2014 The Android Open Source Project 34 status_t FileInput::open() { function in class:android::img_utils::FileInput 36 ALOGW("%s: Open called when file %s already open.", __FUNCTION__, mPath.string()); 41 ALOGE("%s: Could not open file %s", __FUNCTION__, mPath.string()); 50 ALOGE("%s: Could not read file %s, file not open.", __FUNCTION__, mPath.string());
|
/hardware/libhardware/tests/vehicle/ |
vehicle_test_fixtures.h | 2 * Copyright (C) 2015 The Android Open Source Project 72 ASSERT_TRUE(NULL != vehicle_module()->common.methods->open) 73 << "Vehicle open() is unimplemented"; 74 ASSERT_EQ(0, vehicle_module()->common.methods->open( 76 << "Can't open vehicle device"; 78 << "Vehicle open() returned a NULL device";
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/input.output/file.streams/fstreams/filebuf.members/ |
open_pointer.pass.cpp | 5 // This file is dual licensed under the MIT and the University of Illinois Open 12 // basic_filebuf<charT,traits>* open(const char* s, ios_base::openmode mode); 23 assert(f.open(temp.c_str(), std::ios_base::out) != 0); 29 assert(f.open(temp.c_str(), std::ios_base::in) != 0); 38 assert(f.open(temp.c_str(), std::ios_base::out) != 0); 44 assert(f.open(temp.c_str(), std::ios_base::in) != 0);
|
/prebuilts/gdb/darwin-x86/lib/python2.7/ |
anydbm.py | 6 d = dbm.open(file, 'w', 0666) 11 d = anydbm.open(file, 'w') 57 def open(file, flag='r', mode=0666): function 58 """Open or create database at path given by *file*. 79 raise error, "need 'c' or 'n' flag to open new db" 85 return mod.open(file, flag, mode)
|
/prebuilts/gdb/linux-x86/lib/python2.7/ |
anydbm.py | 6 d = dbm.open(file, 'w', 0666) 11 d = anydbm.open(file, 'w') 57 def open(file, flag='r', mode=0666): function 58 """Open or create database at path given by *file*. 79 raise error, "need 'c' or 'n' flag to open new db" 85 return mod.open(file, flag, mode)
|
/prebuilts/go/darwin-x86/src/debug/plan9obj/ |
file_test.go | 47 f, err := Open(tt.file) 53 t.Errorf("open %s:\n\thave %#v\n\twant %#v\n", tt.file, f.FileHeader, tt.hdr) 64 t.Errorf("open %s, section %d:\n\thave %#v\n\twant %#v\n", tt.file, i, have, want) 70 t.Errorf("open %s: len(Sections) = %d, want %d", tt.file, fn, tn) 77 _, err := Open(filename) // don't crash 79 t.Errorf("open %s: succeeded unexpectedly", filename)
|
/prebuilts/go/linux-x86/src/debug/plan9obj/ |
file_test.go | 47 f, err := Open(tt.file) 53 t.Errorf("open %s:\n\thave %#v\n\twant %#v\n", tt.file, f.FileHeader, tt.hdr) 64 t.Errorf("open %s, section %d:\n\thave %#v\n\twant %#v\n", tt.file, i, have, want) 70 t.Errorf("open %s: len(Sections) = %d, want %d", tt.file, fn, tn) 77 _, err := Open(filename) // don't crash 79 t.Errorf("open %s: succeeded unexpectedly", filename)
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
anydbm.py | 6 d = dbm.open(file, 'w', 0666) 11 d = anydbm.open(file, 'w') 57 def open(file, flag='r', mode=0666): function 58 """Open or create database at path given by *file*. 79 raise error, "need 'c' or 'n' flag to open new db" 85 return mod.open(file, flag, mode)
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
anydbm.py | 6 d = dbm.open(file, 'w', 0666) 11 d = anydbm.open(file, 'w') 57 def open(file, flag='r', mode=0666): function 58 """Open or create database at path given by *file*. 79 raise error, "need 'c' or 'n' flag to open new db" 85 return mod.open(file, flag, mode)
|
/system/sepolicy/ |
isolated_app.te | 15 # Access already open app data files received over Binder or local socket IPC. 33 # Do not allow isolated_app to directly open tun_device 34 neverallow isolated_app tun_device:chr_file open; 40 # Isolated apps should not directly open app data files themselves. 41 neverallow isolated_app app_data_file:file open; 46 neverallow isolated_app anr_data_file:file ~{ open append };
|
/toolchain/binutils/binutils-2.25/libiberty/ |
fdmatch.c | 1 /* Compare two open file descriptors to see if they refer to the same file. 25 Check to see if two open file descriptors refer to the same file. 26 This is useful, for example, when we have an open file descriptor for 28 to that fd. This can happen when we are exec'd with an already open 30 that return open file descriptors for mapped address spaces. All we 31 have to do is open the file by name and check the two file descriptors
|
/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
test_aifc.py | 31 self.f = aifc.open(self.sndfilepath) 34 f = self.f = aifc.open(self.sndfilepath) 44 f = self.f = aifc.open(self.sndfilepath) 60 f = self.f = aifc.open(self.sndfilepath) 61 fout = self.fout = aifc.open(TESTFN, 'wb') 67 fout = self.fout = aifc.open(TESTFN, 'rb') 73 f = self.f = aifc.open(self.sndfilepath) 74 fout = self.fout = aifc.open(TESTFN, 'wb') 87 fout = self.fout = aifc.open(TESTFN, 'rb') 98 self.file = open(file, 'rb' [all...] |
test_file.py | 22 self.f = self.open(TESTFN, 'wb') 50 self.f = self.open(TESTFN, 'rb') 58 self.f = self.open(TESTFN, 'r') 67 self.f = self.open(TESTFN, 'rb') 138 open = io.open variable in class:CAutoFileTests 141 open = staticmethod(pyio.open) variable in class:PyAutoFileTests 150 f = self.open(TESTFN, mode) 171 f = self.open(TESTFN, bad_mode 330 open = io.open variable in class:COtherFileTests 333 open = staticmethod(pyio.open) variable in class:PyOtherFileTests [all...] |
test_tarfile.py | 45 self.tar = tarfile.open(self.tarname, mode=self.mode, encoding="iso8859-1") 63 fobj1 = open(os.path.join(TEMPDIR, "ustar/regtype"), "rU") 79 fobj1 = open(os.path.join(TEMPDIR, "ustar/regtype"), "rU") 88 fobj = open(os.path.join(TEMPDIR, "ustar/regtype"), "rb") 165 # This test checks if tarfile.open() is able to open an empty tar 168 tarfile.open(tmpname, self.mode.replace("r", "w")).close() 170 tar = tarfile.open(tmpname, self.mode) 173 self.fail("tarfile.open() failed on empty archive") 178 # This test guarantees that tarfile.open() does not treat an empt [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
test_aifc.py | 31 self.f = aifc.open(self.sndfilepath) 34 f = self.f = aifc.open(self.sndfilepath) 44 f = self.f = aifc.open(self.sndfilepath) 60 f = self.f = aifc.open(self.sndfilepath) 61 fout = self.fout = aifc.open(TESTFN, 'wb') 67 fout = self.fout = aifc.open(TESTFN, 'rb') 73 f = self.f = aifc.open(self.sndfilepath) 74 fout = self.fout = aifc.open(TESTFN, 'wb') 87 fout = self.fout = aifc.open(TESTFN, 'rb') 98 self.file = open(file, 'rb' [all...] |
test_file.py | 22 self.f = self.open(TESTFN, 'wb') 50 self.f = self.open(TESTFN, 'rb') 58 self.f = self.open(TESTFN, 'r') 67 self.f = self.open(TESTFN, 'rb') 138 open = io.open variable in class:CAutoFileTests 141 open = staticmethod(pyio.open) variable in class:PyAutoFileTests 150 f = self.open(TESTFN, mode) 171 f = self.open(TESTFN, bad_mode 330 open = io.open variable in class:COtherFileTests 333 open = staticmethod(pyio.open) variable in class:PyOtherFileTests [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_aifc.py | 31 self.f = aifc.open(self.sndfilepath) 34 f = self.f = aifc.open(self.sndfilepath) 44 f = self.f = aifc.open(self.sndfilepath) 60 f = self.f = aifc.open(self.sndfilepath) 61 fout = self.fout = aifc.open(TESTFN, 'wb') 67 fout = self.fout = aifc.open(TESTFN, 'rb') 73 f = self.f = aifc.open(self.sndfilepath) 74 fout = self.fout = aifc.open(TESTFN, 'wb') 87 fout = self.fout = aifc.open(TESTFN, 'rb') 98 self.file = open(file, 'rb' [all...] |
test_file.py | 22 self.f = self.open(TESTFN, 'wb') 50 self.f = self.open(TESTFN, 'rb') 58 self.f = self.open(TESTFN, 'r') 67 self.f = self.open(TESTFN, 'rb') 138 open = io.open variable in class:CAutoFileTests 141 open = staticmethod(pyio.open) variable in class:PyAutoFileTests 150 f = self.open(TESTFN, mode) 171 f = self.open(TESTFN, bad_mode 330 open = io.open variable in class:COtherFileTests 333 open = staticmethod(pyio.open) variable in class:PyOtherFileTests [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_aifc.py | 31 self.f = aifc.open(self.sndfilepath) 34 f = self.f = aifc.open(self.sndfilepath) 44 f = self.f = aifc.open(self.sndfilepath) 60 f = self.f = aifc.open(self.sndfilepath) 61 fout = self.fout = aifc.open(TESTFN, 'wb') 67 fout = self.fout = aifc.open(TESTFN, 'rb') 73 f = self.f = aifc.open(self.sndfilepath) 74 fout = self.fout = aifc.open(TESTFN, 'wb') 87 fout = self.fout = aifc.open(TESTFN, 'rb') 98 self.file = open(file, 'rb' [all...] |
test_file.py | 22 self.f = self.open(TESTFN, 'wb') 50 self.f = self.open(TESTFN, 'rb') 58 self.f = self.open(TESTFN, 'r') 67 self.f = self.open(TESTFN, 'rb') 138 open = io.open variable in class:CAutoFileTests 141 open = staticmethod(pyio.open) variable in class:PyAutoFileTests 150 f = self.open(TESTFN, mode) 171 f = self.open(TESTFN, bad_mode 330 open = io.open variable in class:COtherFileTests 333 open = staticmethod(pyio.open) variable in class:PyOtherFileTests [all...] |
/system/update_engine/payload_consumer/ |
file_descriptor.h | 2 // Copyright (C) 2012 The Android Open Source Project 34 // * Providing two flavors of Open() 37 // as long as open/close preconditions are respected. 43 // * Provides a Reset() method, which will force to abandon a currently open 63 virtual bool Open(const char* path, int flags, mode_t mode) = 0; 64 virtual bool Open(const char* path, int flags) = 0; 67 // open prior to this call. Returns the number of bytes read, or -1 on error. 71 // Writes to a file descriptor. The descriptor must be open prior to this 96 // Closes a file descriptor. The descriptor must be open prior to this call. 101 // Resets the file descriptor, abandoning a currently open file and returnin [all...] |