/external/vboot_reference/tests/ |
D | tlcl_tests.c | 40 static struct srcall calls[MAXCALLS]; variable 53 memset(calls, 0, sizeof(calls)); in ResetMocks() 55 calls[i].rsp = calls[i].rsp_buf; in ResetMocks() 64 struct srcall *c = calls + call_idx; in SetResponse() 86 struct srcall *c = calls + ncalls++; in VbExTpmSendReceive() 133 TEST_PTR_EQ(calls[0].req, buf, "SendReceive req ptr"); in TlclTest() 134 TEST_EQ(calls[0].req_size, 10, "SendReceive size"); in TlclTest() 137 calls[0].retval = VBERROR_SIMULATED; in TlclTest() 161 TEST_EQ(calls[0].req_cmd, TPM_ORD_Startup, " cmd"); in SendCommandTest() 165 TEST_EQ(calls[0].req_cmd, TPM_ORD_SaveState, " cmd"); in SendCommandTest() [all …]
|
/external/mockito/src/test/java/org/mockitousage/verification/ |
D | VerificationInOrderWithCallsTest.java | 32 verifier.verify( mockOne, calls(1)).oneArg( 1 ); in shouldFailWhenMethodNotCalled() 40 verifier.verify( mockOne, calls(1)).oneArg( 2 ); in shouldFailWhenMethodNotCalled() 52 verifier.verify( mockOne, calls(1)).oneArg( 1 ); in shouldFailWhenMethodCalledTooFewTimes() 61 verifier.verify( mockOne, calls(2)).oneArg( 2 ); in shouldFailWhenMethodCalledTooFewTimes() 73 verifier.verify( mockOne, calls(1)).oneArg( 2 ); in shouldFailWhenSingleMethodCallsAreOutOfSequence() 81 verifier.verify( mockOne, calls(1)).oneArg( 1 ); in shouldFailWhenSingleMethodCallsAreOutOfSequence() 93 verifier.verify( mockOne, calls(1)).voidMethod(); in shouldFailWhenDifferentMethodCallsAreOutOfSequence() 101 verifier.verify( mockOne, calls(1)).oneArg( 1 ); in shouldFailWhenDifferentMethodCallsAreOutOfSequence() 113 verifier.verify( mockTwo, calls(1)).voidMethod(); in shouldFailWhenMethodCallsOnDifferentMocksAreOutOfSequence() 121 verifier.verify( mockOne, calls(1)).voidMethod(); in shouldFailWhenMethodCallsOnDifferentMocksAreOutOfSequence() [all …]
|
/external/tensorflow/tensorflow/core/platform/cloud/ |
D | file_block_cache_test.cc | 44 int calls = 0; in TEST() local 45 auto fetcher = [&calls, want_filename, want_offset, want_n]( in TEST() 51 calls++; in TEST() 62 EXPECT_EQ(calls, 1); in TEST() 64 EXPECT_EQ(calls, 2); in TEST() 66 EXPECT_EQ(calls, 3); in TEST() 122 std::set<size_t> calls; in TEST() local 123 auto fetcher = [&calls, block_size](const string& filename, size_t offset, in TEST() 128 EXPECT_EQ(calls.find(offset), calls.end()) << "at offset " << offset; in TEST() 129 calls.insert(offset); in TEST() [all …]
|
/external/valgrind/memcheck/tests/ |
D | recursive-merge.c | 10 calls++; \ 11 (*fnptr[(int)*calls])(calls,seq); \ 19 __attribute__((noinline)) void f_a(char *calls, char*seq); 20 __attribute__((noinline)) void f_b(char *calls, char*seq); 21 __attribute__((noinline)) void f_c(char *calls, char*seq); 22 __attribute__((noinline)) void f_d(char *calls, char*seq); 24 __attribute__((noinline)) void f_a(char *calls, char*seq) 27 __attribute__((noinline)) void f_b(char *calls, char*seq) 30 __attribute__((noinline)) void f_c(char *calls, char*seq) 33 __attribute__((noinline)) void f_d(char *calls, char*seq) [all …]
|
/external/llvm/test/tools/llvm-cov/Inputs/ |
D | test_-b_-f.output | 4 No calls 9 No calls 14 No calls 19 No calls 24 No calls 29 No calls 35 No calls 41 No calls 46 No calls 51 No calls [all …]
|
/external/eigen/unsupported/test/ |
D | BVH.cpp | 48 BallPointStuff() : calls(0), count(0) {} in BallPointStuff() 49 BallPointStuff(const VectorType &inP) : p(inP), calls(0), count(0) {} in BallPointStuff() 52 bool intersectVolume(const BoxType &r) { ++calls; return r.contains(p); } in intersectVolume() 54 ++calls; in intersectObject() 60 …bool intersectVolumeVolume(const BoxType &r1, const BoxType &r2) { ++calls; return !(r1.intersecti… in intersectVolumeVolume() 61 …bool intersectVolumeObject(const BoxType &r, const BallType &b) { ++calls; return r.squaredExterio… in intersectVolumeObject() 62 …bool intersectObjectVolume(const BallType &b, const BoxType &r) { ++calls; return r.squaredExterio… in intersectObjectVolume() 64 ++calls; in intersectObjectObject() 69 …bool intersectVolumeObject(const BoxType &r, const VectorType &v) { ++calls; return r.contains(v);… in intersectVolumeObject() 71 ++calls; in intersectObjectObject() [all …]
|
/external/eigen/unsupported/doc/examples/ |
D | BVH_Example.cpp | 14 PointPointMinimizer() : calls(0) {} in PointPointMinimizer() 17 …double minimumOnVolumeVolume(const Box2d &r1, const Box2d &r2) { ++calls; return r1.squaredExterio… in minimumOnVolumeVolume() 18 …double minimumOnVolumeObject(const Box2d &r, const Vector2d &v) { ++calls; return r.squaredExterio… in minimumOnVolumeObject() 19 …double minimumOnObjectVolume(const Vector2d &v, const Box2d &r) { ++calls; return r.squaredExterio… in minimumOnObjectVolume() 20 …double minimumOnObjectObject(const Vector2d &v1, const Vector2d &v2) { ++calls; return (v1 - v2).s… in minimumOnObjectObject() 22 int calls; member 41 …std::cout << "Brute force distance = " << sqrt(minDistSq) << ", calls = " << minimizer.calls << st… in main() 44 minimizer.calls = 0; in main() 47 …std::cout << "BVH distance = " << sqrt(minDistSq) << ", calls = " << minimizer.calls << st… in main()
|
/external/python/cpython3/Lib/test/ |
D | test_compare.py | 57 calls = [] 61 calls.append('Left.__eq__') 65 calls.append('Right.__eq__') 68 calls.append('Right.__ne__') 71 self.assertSequenceEqual(calls, ['Left.__eq__', 'Right.__ne__']) 75 calls = [] 79 calls.append('Base.__eq__') 83 calls.append('Derived.__eq__') 86 calls.append('Derived.__ne__') 89 self.assertSequenceEqual(calls, ['Derived.__ne__', 'Base.__eq__'])
|
/external/libchrome/base/timer/ |
D | mock_timer_unittest.cc | 17 int calls = 0; in TEST() local 22 base::Unretained(&calls))); in TEST() 27 EXPECT_EQ(1, calls); in TEST() 31 int calls = 0; in TEST() local 36 base::Unretained(&calls))); in TEST() 42 EXPECT_EQ(3, calls); in TEST() 46 int calls = 0; in TEST() local 51 base::Unretained(&calls))); in TEST()
|
/external/ltp/testcases/network/nfs/nfsstat01/ |
D | nfsstat01 | 38 local calls= 43 calls="$(grep $name /proc/net/rpc/$nfs_f | cut -d' ' -f$field)" 44 ROD nfsstat -c$opt | grep -q "$calls" 45 echo "$calls" 49 calls=$(tst_rhost_run -c "grep $name /proc/net/rpc/$nfs_f" | \ 51 tst_rhost_run -s -c "nfsstat -s$opt" | grep -q "$calls" 52 echo "$calls"
|
/external/strace/ |
D | count.c | 43 unsigned int calls, errors; member 65 cc->calls++; in count_syscall() 123 int m = counts[*((int *) a)].calls; in count_cmp() 124 int n = counts[*((int *) b)].calls; in count_cmp() 182 if (counts == NULL || counts[i].calls == 0) in call_summary_pers() 184 tv_mul(&dtv, &overhead, counts[i].calls); in call_summary_pers() 186 call_cum += counts[i].calls; in call_summary_pers() 199 if (cc->calls == 0) in call_summary_pers() 201 tv_div(&dtv, &cc->time, cc->calls); in call_summary_pers() 210 cc->calls, cc->errors, sysent[idx].sys_name); in call_summary_pers()
|
/external/tensorflow/tensorflow/tools/docs/ |
D | py_guide_parser_test.py | 30 self.calls = [] 34 self.calls.append((line_number, 't', title)) 37 self.calls.append((line_number, 's', '%s : %s' % (section_title, tag))) 40 self.calls.append((line_number, 'b', line)) 44 self.calls.append((line_number, 'l', line)) 80 self.assertEqual(expected, parser.calls)
|
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/tree/ |
D | CommonTreeNodeStream.java | 54 protected IntArray calls; field in CommonTreeNodeStream 77 if ( calls != null ) calls.clear(); in reset() 126 if ( calls==null ) { in push() 127 calls = new IntArray(); in push() 129 calls.push(p); // save current index in push() 137 int ret = calls.pop(); in pop()
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
D | FragmentTransactionTest.java | 193 final Map<String, Boolean> calls = new HashMap<String, Boolean>(); in hide_shouldCallOnHiddenChangedOnFragment() local 198 calls.put(key, hidden); in hide_shouldCallOnHiddenChangedOnFragment() 203 assertEquals(true, calls.get(key)); in hide_shouldCallOnHiddenChangedOnFragment() 209 final Map<String, Boolean> calls = new HashMap<String, Boolean>(); in show_shouldCallOnHiddenChangedOnFragment() local 214 calls.put(key, hidden); in show_shouldCallOnHiddenChangedOnFragment() 219 assertEquals(false, calls.get(key)); in show_shouldCallOnHiddenChangedOnFragment() 225 final Map<String, Boolean> calls = new HashMap<String, Boolean>(); in hide_shouldNotCallOnHiddenChangedOnFragmentIfAlreadyHidden() local 230 calls.put(key, hidden); in hide_shouldNotCallOnHiddenChangedOnFragmentIfAlreadyHidden() 235 assertFalse(calls.containsKey(key)); in hide_shouldNotCallOnHiddenChangedOnFragmentIfAlreadyHidden() 241 final Map<String, Boolean> calls = new HashMap<String, Boolean>(); in show_shouldNotCallOnHiddenChangedOnFragmentIfAlreadyNotHidden() local [all …]
|
/external/llvm/test/CodeGen/Mips/llvm-ir/ |
D | call.ll | 3 ; FIXME: We should remove the need for -enable-mips-tail-calls 4 ; RUN: llc -march=mips -mcpu=mips32 -relocation-model=pic -enable-mips-tail-calls < %s | FileCh… 5 ; RUN: llc -march=mips -mcpu=mips32r2 -relocation-model=pic -enable-mips-tail-calls < %s | FileCh… 6 ; RUN: llc -march=mips -mcpu=mips32r3 -relocation-model=pic -enable-mips-tail-calls < %s | FileCh… 7 ; RUN: llc -march=mips -mcpu=mips32r5 -relocation-model=pic -enable-mips-tail-calls < %s | FileCh… 8 …ps32r6 -relocation-model=pic -disable-mips-delay-filler -enable-mips-tail-calls < %s | FileCheck %… 9 …pic -mattr=+fp64,+nooddspreg -disable-mips-delay-filler -enable-mips-tail-calls < %s | FileCheck %… 10 ; RUN: llc -march=mips64 -mcpu=mips4 -enable-mips-tail-calls < %s | FileCheck %s -check-prefixes… 11 ; RUN: llc -march=mips64 -mcpu=mips64 -enable-mips-tail-calls < %s | FileCheck %s -check-prefixes… 12 ; RUN: llc -march=mips64 -mcpu=mips64r2 -enable-mips-tail-calls < %s | FileCheck %s -check-prefixes… [all …]
|
/external/llvm/test/CodeGen/ARM/ |
D | disable-tail-calls.ll | 2 ; RUN: llc < %s -mtriple=arm-unknown-unknown -disable-tail-calls | FileCheck %s --check-prefix=DISA… 3 ; RUN: llc < %s -mtriple=arm-unknown-unknown -disable-tail-calls=false | FileCheck %s --check-prefi… 5 ; Check that command line option "-disable-tail-calls" overrides function 6 ; attribute "disable-tail-calls". 40 attributes #0 = { "disable-tail-calls"="true" }
|
D | subtarget-features-long-calls.ll | 2 ; RUN: llc -march thumb -mcpu=cortex-a8 -relocation-model=static %s -o - -mattr=+long-calls | FileC… 3 ; RUN: llc -march thumb -mcpu=cortex-a8 -relocation-model=static %s -o - -mattr=-long-calls | FileC… 5 ; RUN: llc -march thumb -mcpu=cortex-a8 -relocation-model=static %s -o - -O0 -mattr=+long-calls | F… 6 ; RUN: llc -march thumb -mcpu=cortex-a8 -relocation-model=static %s -o - -O0 -mattr=-long-calls | F… 49 attributes #0 = { "target-features"="+long-calls" }
|
/external/llvm/test/CodeGen/X86/ |
D | disable-tail-calls.ll | 2 ; RUN: llc < %s -march x86-64 -disable-tail-calls | FileCheck %s --check-prefix=DISABLE-TRUE 3 ; RUN: llc < %s -march x86-64 -disable-tail-calls=false | FileCheck %s --check-prefix=DISABLE-FALSE 5 ; Check that command line option "-disable-tail-calls" overrides function 6 ; attribute "disable-tail-calls". 40 attributes #0 = { "disable-tail-calls"="true" }
|
/external/antlr/antlr-3.4/runtime/ObjC/Framework/ |
D | ANTLRCommonTreeNodeStream.m | 62 calls = [[ANTLRIntArray newArrayWithLen:INITIAL_CALL_STACK_SIZE] retain]; 78 calls = [[ANTLRIntArray newArrayWithLen:INITIAL_CALL_STACK_SIZE] retain]; 96 if ( calls ) [calls release]; 106 if ( calls != nil ) 107 [calls reset]; // [calls clear]; // in Java 195 if ( calls == nil ) { 196 calls = [[ANTLRIntArray newArrayWithLen:INITIAL_CALL_STACK_SIZE] retain]; 198 [calls push:p]; // save current anIndex 207 int ret = [calls pop]; 246 @synthesize calls;
|
/external/annotation-tools/scene-lib/src/annotations/el/ |
D | AExpression.java | 30 public final VivifyingMap<RelativeLocation, ATypeElement> calls = field in AExpression 65 copyMapContents(expr.calls, calls); in AExpression() 91 && calls.equals(o.calls) in equalsExpression() 102 + refs.hashCode() + calls.hashCode() + funs.hashCode(); in hashCode() 111 & news.prune() & refs.prune() & calls.prune() & funs.prune(); in prune() 172 map.putAll(calls); in toString()
|
/external/guava/guava-tests/test/com/google/common/base/ |
D | SuppliersTest.java | 96 transient int calls = 0; field in SuppliersTest.CountingSupplier 99 calls++; in get() 100 return calls * 10; in get() 135 assertEquals(0, countingSupplier.calls); in checkMemoize() 140 assertEquals(1, countingSupplier.calls); in checkMemoize() 145 assertEquals(1, countingSupplier.calls); in checkMemoize() 203 assertEquals(0, countingSupplier.calls); in checkExpiration() 207 assertEquals(1, countingSupplier.calls); in checkExpiration() 211 assertEquals(1, countingSupplier.calls); in checkExpiration() 217 assertEquals(2, countingSupplier.calls); in checkExpiration() [all …]
|
/external/autotest/client/site_tests/documentscan_AppTestWithFakeLorgnette/ |
D | documentscan_AppTestWithFakeLorgnette.py | 129 def _validate_mock_method_calls(self, calls): argument 135 if len(calls) != 2: 136 raise error.TestError('Expected 2 method calls but got: %r' % calls) 139 if calls[index].method != method_name: 141 (index, calls[index].method, method_name))
|
/external/guava/guava-gwt/test-super/com/google/common/base/super/com/google/common/base/ |
D | SuppliersTest.java | 88 transient int calls = 0; field in SuppliersTest.CountingSupplier 91 calls++; in get() 92 return calls * 10; in get() 111 assertEquals(0, countingSupplier.calls); in checkMemoize() 116 assertEquals(1, countingSupplier.calls); in checkMemoize() 121 assertEquals(1, countingSupplier.calls); in checkMemoize()
|
/external/v8/src/compiler/ |
D | js-inlining-heuristic.cc | 193 Node* calls[kMaxCallPolymorphism + 1]; in InlineCandidate() local 225 calls[i] = graph()->NewNode(node->op(), input_count, inputs); in InlineCandidate() 226 if_successes[i] = graph()->NewNode(common()->IfSuccess(), calls[i]); in InlineCandidate() 243 graph()->NewNode(common()->IfException(), calls[i], calls[i]); in InlineCandidate() 260 calls[num_calls] = control; in InlineCandidate() 262 graph()->NewNode(common()->EffectPhi(num_calls), num_calls + 1, calls); in InlineCandidate() 265 num_calls + 1, calls); in InlineCandidate() 271 Node* node = calls[i]; in InlineCandidate()
|
/external/deqp/doc/testspecs/GLES31/ |
D | functional.debug.txt | 68 Message filtering tests use a partially randomized set of API calls. The 69 messages produced by these calls are first gathered without any filtering. 71 (unfiltered) state and the API calls are re-run. The messages from the second 76 calls and with verification after every push/pop. 78 Asynchronous message generation is tested by running the same set of API calls 80 comparing the generated messages. The set of API calls used is randomized. 82 Other than the calls necessari to query the log these cases use identical
|