Home
last modified time | relevance | path

Searched refs:locks (Results 1 – 25 of 211) sorted by relevance

123456789

/external/nos/test/system-test-harness/src/
Davb_tests.cc120 uint8_t locks[4]; in SetUp() local
134 GetState(client.get(), &bootloader, &production, locks); in SetUp()
137 EXPECT_EQ(locks[BOOT], 0x00); in SetUp()
138 EXPECT_EQ(locks[CARRIER], 0x00); in SetUp()
139 EXPECT_EQ(locks[DEVICE], 0x00); in SetUp()
140 EXPECT_EQ(locks[OWNER], 0x00); in SetUp()
317 uint8_t locks[4]; in TEST_F() local
326 GetState(client.get(), NULL, NULL, locks); in TEST_F()
327 ASSERT_EQ(locks[CARRIER], 0x12); in TEST_F()
342 GetState(client.get(), NULL, NULL, locks); in TEST_F()
[all …]
/external/libese/apps/boot/card/src/com/android/verifiedboot/storage/
DStorage.java68 private LockInterface[] locks; field in Storage
140 locks = new LockInterface[4]; in Storage()
143 locks[LOCK_CARRIER] = new CarrierLock(); in Storage()
145 locks[LOCK_CARRIER]); in Storage()
149 locks[LOCK_DEVICE] = new BasicLock(NO_METADATA, NO_REQ_LOCKS); in Storage()
150 BasicLock lockRef = (BasicLock)locks[LOCK_DEVICE]; in Storage()
157 locks[LOCK_BOOT] = new BasicLock(NO_METADATA, (short) 2); in Storage()
158 lockRef = (BasicLock)locks[LOCK_BOOT]; in Storage()
159 lockRef.addRequiredLock(locks[LOCK_CARRIER]); in Storage()
160 lockRef.addRequiredLock(locks[LOCK_DEVICE]); in Storage()
[all …]
/external/guava/guava-tests/benchmark/com/google/common/util/concurrent/
DCycleDetectingLockFactoryBenchmark.java23 import java.util.concurrent.locks.Lock;
24 import java.util.concurrent.locks.ReentrantLock;
76 private void lockAndUnlockNested(Lock[] locks, int reps) { in lockAndUnlockNested() argument
78 for (int j = 0; j < locks.length; j++) { in lockAndUnlockNested()
79 locks[j].lock(); in lockAndUnlockNested()
81 for (int j = locks.length - 1; j >= 0; j--) { in lockAndUnlockNested()
82 locks[j].unlock(); in lockAndUnlockNested()
DStripedBenchmark.java35 import java.util.concurrent.locks.Lock;
36 import java.util.concurrent.locks.ReentrantLock;
94 final List<Lock> locks = new ArrayList<Lock>(numStripes); field in StripedBenchmark
97 locks.clear(); in sizeOfPopulatedStriped()
100 locks.add(striped.getAt(i)); in sizeOfPopulatedStriped()
/external/guava/guava/src/com/google/common/util/concurrent/
DStriped.java40 import java.util.concurrent.locks.Lock;
41 import java.util.concurrent.locks.ReadWriteLock;
42 import java.util.concurrent.locks.ReentrantLock;
43 import java.util.concurrent.locks.ReentrantReadWriteLock;
342 final AtomicReferenceArray<ArrayReference<? extends L>> locks;
350 this.locks = new AtomicReferenceArray<ArrayReference<? extends L>>(size);
358 ArrayReference<? extends L> existingRef = locks.get(index);
365 while (!locks.compareAndSet(index, existingRef, newRef)) {
367 existingRef = locks.get(index);
387 locks.compareAndSet(arrayRef.index, arrayRef, null);
[all …]
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/test/validation/
DStructuredLockingTest.java142 Set<Integer> locks; field in StructuredLockingTest.LockFrame
146 locks = new HashSet<Integer>(); in LockFrame()
155 locks = new HashSet<Integer>(((LockFrame) src).locks); in init()
177 locks.add(Integer.valueOf(lock))); in enter()
182 locks.remove(Integer.valueOf(lock))); in exit()
188 this.locks.addAll(((LockFrame) frame).locks); in merge()
193 assertEquals(message, Collections.emptySet(), locks); in assertNoLock()
/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_deadlock_detector_test.cc165 set<uptr> locks; in RunRemoveNodeTest() local
166 locks.insert(l0); in RunRemoveNodeTest()
167 locks.insert(l1); in RunRemoveNodeTest()
168 locks.insert(l2); in RunRemoveNodeTest()
169 locks.insert(l3); in RunRemoveNodeTest()
170 locks.insert(l4); in RunRemoveNodeTest()
171 locks.insert(l5); in RunRemoveNodeTest()
174 locks.insert(lt); in RunRemoveNodeTest()
179 EXPECT_EQ(locks.size(), d.size()); in RunRemoveNodeTest()
195 locks.clear(); in RunRemoveNodeTest()
[all …]
/external/nos/test/system-test-harness/tools/
Davb_tools.cc50 bool *production, uint8_t *locks) { in GetState() argument
63 auto response_locks = response.locks(); in GetState()
64 if (locks != NULL) { in GetState()
66 locks[i] = response_locks[i]; in GetState()
147 uint8_t locks[4]; in ResetProduction() local
148 GetState(client, &bootloader, &production, locks); in ResetProduction()
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DStripedTest.java38 import java.util.concurrent.locks.Lock;
39 import java.util.concurrent.locks.ReadWriteLock;
40 import java.util.concurrent.locks.ReentrantLock;
41 import java.util.concurrent.locks.ReentrantReadWriteLock;
151 Iterable<?> locks = striped.bulkGet(objects); in testBulkGetReturnsSorted() local
152 assertTrue(Ordering.natural().onResultOf(Functions.forMap(indexByLock)).isOrdered(locks)); in testBulkGetReturnsSorted()
156 assertEquals(Lists.newArrayList(locks), Lists.newArrayList(locks2)); in testBulkGetReturnsSorted()
/external/cldr/tools/java/org/unicode/cldr/util/
DLockSupportMap.java17 private final ConcurrentMap<E, Object> locks = new ConcurrentHashMap<>(); field in LockSupportMap
34 Object newLock = locks.putIfAbsent(item, oldLock); in getItemLock()
50 return locks.remove(itemToRemove); in removeItemLock()
/external/mockito/src/main/java/org/mockito/internal/matchers/
DCapturingMatcher.java14 import java.util.concurrent.locks.Lock;
15 import java.util.concurrent.locks.ReadWriteLock;
16 import java.util.concurrent.locks.ReentrantReadWriteLock;
/external/tensorflow/tensorflow/core/kernels/
Dtraining_op_helpers.h76 std::vector<Var*> vars, std::unique_ptr<std::vector<mutex_lock>> locks, in VariableInputLockHolder()
79 locks_(std::move(locks)), in VariableInputLockHolder()
170 std::unique_ptr<std::vector<mutex_lock>> locks = in MaybeLockVariableInputMutexesInOrder() local
174 locks->reserve(acquire_order.size()); in MaybeLockVariableInputMutexesInOrder()
182 locks->emplace_back(*mu); in MaybeLockVariableInputMutexesInOrder()
188 return VariableInputLockHolder(std::move(vars), std::move(locks), in MaybeLockVariableInputMutexesInOrder()
/external/curl/tests/libtest/
Dlib506.c40 static int locks[3]; variable
72 if(locks[locknum]) { in my_lock()
76 locks[locknum]++; in my_lock()
108 if(!locks[locknum]) { in my_unlock()
112 locks[locknum]--; in my_unlock()
/external/python/cpython3/Lib/asyncio/
D__init__.py12 from .locks import *
29 locks.__all__ +
/external/tensorflow/tensorflow/contrib/tensor_forest/kernels/
Dstats_ops.cc152 std::unordered_map<int32, std::unique_ptr<mutex>>* locks, in UpdateStats() argument
175 const std::unique_ptr<mutex>& leaf_lock = (*locks)[leaf_id]; in UpdateStats()
276 std::unordered_map<int, std::unique_ptr<mutex>> locks; in Compute() local
285 if (FindOrNull(locks, id) == nullptr) { in Compute()
287 locks[id] = std::unique_ptr<mutex>(new mutex); in Compute()
311 fertile_stats_resource, &locks, &set_lock, &ready_to_split, in Compute()
316 leaf_ids_tensor, &locks, &set_lock, static_cast<int32>(start), in Compute()
/external/python/cpython3/Lib/test/test_importlib/
Dtest_locks.py56 locks = [self.LockType(str(i)) for i in range(NLOCKS)]
57 pairs = [(locks[i], locks[(i+1)%NLOCKS]) for i in range(NLOCKS)]
/external/subsampling-scale-image-view/library/src/main/java/com/davemorrissey/labs/subscaleview/decoder/
DSkiaImageRegionDecoder.java18 import java.util.concurrent.locks.Lock;
19 import java.util.concurrent.locks.ReadWriteLock;
20 import java.util.concurrent.locks.ReentrantReadWriteLock;
/external/python/cpython2/Demo/pdist/
Dcvslock.py233 locks = []
236 locks.append(WriteLock(r, 0))
238 del locks
/external/compiler-rt/lib/builtins/
Datomic.c74 static Lock locks[SPINLOCK_COUNT] = { [0 ... SPINLOCK_COUNT-1] = {0,1,0} }; variable
87 static Lock locks[SPINLOCK_COUNT]; // initialized to OS_SPINLOCK_INIT which is 0 variable
104 static Lock locks[SPINLOCK_COUNT]; variable
122 return locks + (hash & SPINLOCK_MASK); in lock_for_pointer()
/external/jsilver/src/org/clearsilver/
DFactoryLoader.java20 import java.util.concurrent.locks.ReadWriteLock;
21 import java.util.concurrent.locks.ReentrantReadWriteLock;
/external/syzkaller/pkg/report/testdata/linux/report/
D11522 [ 76.895105] but there are no more locks to release!
25 [ 76.906710] 2 locks held by syz-executor2/14420:
D1179 [ 163.474487] but there are no more locks to release!
12 [ 163.486133] 2 locks held by syz-executor3/19522:
/external/googletest/googletest/include/gtest/internal/custom/
DREADME.md42 * `GTEST_EXCLUSIVE_LOCK_REQUIRED_(locks)`
43 * `GTEST_LOCK_EXCLUDED_(locks)`
/external/jsilver/src/com/google/clearsilver/jsilver/adaptor/
DLoadPathToFileCache.java22 import java.util.concurrent.locks.ReadWriteLock;
23 import java.util.concurrent.locks.ReentrantReadWriteLock;
/external/libvpx/libvpx/third_party/googletest/src/include/gtest/internal/custom/
DREADME.md42 * `GTEST_EXCLUSIVE_LOCK_REQUIRED_(locks)`
43 * `GTEST_LOCK_EXCLUDED_(locks)`

123456789