/external/nos/test/system-test-harness/src/ |
D | avb_tests.cc | 120 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/ |
D | Storage.java | 68 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/ |
D | CycleDetectingLockFactoryBenchmark.java | 23 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()
|
D | StripedBenchmark.java | 35 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/ |
D | Striped.java | 40 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/ |
D | StructuredLockingTest.java | 142 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/ |
D | sanitizer_deadlock_detector_test.cc | 165 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/ |
D | avb_tools.cc | 50 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/ |
D | StripedTest.java | 38 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/ |
D | LockSupportMap.java | 17 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/ |
D | CapturingMatcher.java | 14 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/ |
D | training_op_helpers.h | 76 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/ |
D | lib506.c | 40 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__.py | 12 from .locks import * 29 locks.__all__ +
|
/external/tensorflow/tensorflow/contrib/tensor_forest/kernels/ |
D | stats_ops.cc | 152 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/ |
D | test_locks.py | 56 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/ |
D | SkiaImageRegionDecoder.java | 18 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/ |
D | cvslock.py | 233 locks = [] 236 locks.append(WriteLock(r, 0)) 238 del locks
|
/external/compiler-rt/lib/builtins/ |
D | atomic.c | 74 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/ |
D | FactoryLoader.java | 20 import java.util.concurrent.locks.ReadWriteLock; 21 import java.util.concurrent.locks.ReentrantReadWriteLock;
|
/external/syzkaller/pkg/report/testdata/linux/report/ |
D | 115 | 22 [ 76.895105] but there are no more locks to release! 25 [ 76.906710] 2 locks held by syz-executor2/14420:
|
D | 117 | 9 [ 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/ |
D | README.md | 42 * `GTEST_EXCLUSIVE_LOCK_REQUIRED_(locks)` 43 * `GTEST_LOCK_EXCLUDED_(locks)`
|
/external/jsilver/src/com/google/clearsilver/jsilver/adaptor/ |
D | LoadPathToFileCache.java | 22 import java.util.concurrent.locks.ReadWriteLock; 23 import java.util.concurrent.locks.ReentrantReadWriteLock;
|
/external/libvpx/libvpx/third_party/googletest/src/include/gtest/internal/custom/ |
D | README.md | 42 * `GTEST_EXCLUSIVE_LOCK_REQUIRED_(locks)` 43 * `GTEST_LOCK_EXCLUDED_(locks)`
|