Home
last modified time | relevance | path

Searched refs:when (Results 1 – 25 of 6805) sorted by relevance

12345678910>>...273

/external/strace/tests/
Dqual_fault-syntax.test44 chdir:42:when=7 \
46 chdir:invalid:when=8 \
48 chdir:error=:when=10 \
50 chdir:error=invalid_error_name:when=11 \
52 chdir:error=-1:when=12 \
54 chdir:error=-2:when=13 \
56 chdir:error=3+:when=14 \
58 chdir:error=4096:when=15 \
59 chdir:when=7:error=invalid_error_name \
60 chdir:when= \
[all …]
Dqual_inject-syntax.test45 chdir:42:when=7 \
47 chdir:invalid:when=8 \
49 chdir:error=:when=10 \
51 chdir:error=invalid_error_name:when=11 \
53 chdir:error=-1:when=12 \
55 chdir:error=-2:when=13 \
57 chdir:error=3+:when=14 \
59 chdir:error=4096:when=15 \
60 chdir:when=7:error=invalid_error_name \
61 chdir:when= \
[all …]
/external/strace/tests-mx32/
Dqual_fault-syntax.test44 chdir:42:when=7 \
46 chdir:invalid:when=8 \
48 chdir:error=:when=10 \
50 chdir:error=invalid_error_name:when=11 \
52 chdir:error=-1:when=12 \
54 chdir:error=-2:when=13 \
56 chdir:error=3+:when=14 \
58 chdir:error=4096:when=15 \
59 chdir:when=7:error=invalid_error_name \
60 chdir:when= \
[all …]
Dqual_inject-syntax.test45 chdir:42:when=7 \
47 chdir:invalid:when=8 \
49 chdir:error=:when=10 \
51 chdir:error=invalid_error_name:when=11 \
53 chdir:error=-1:when=12 \
55 chdir:error=-2:when=13 \
57 chdir:error=3+:when=14 \
59 chdir:error=4096:when=15 \
60 chdir:when=7:error=invalid_error_name \
61 chdir:when= \
[all …]
/external/strace/tests-m32/
Dqual_fault-syntax.test44 chdir:42:when=7 \
46 chdir:invalid:when=8 \
48 chdir:error=:when=10 \
50 chdir:error=invalid_error_name:when=11 \
52 chdir:error=-1:when=12 \
54 chdir:error=-2:when=13 \
56 chdir:error=3+:when=14 \
58 chdir:error=4096:when=15 \
59 chdir:when=7:error=invalid_error_name \
60 chdir:when= \
[all …]
Dqual_inject-syntax.test45 chdir:42:when=7 \
47 chdir:invalid:when=8 \
49 chdir:error=:when=10 \
51 chdir:error=invalid_error_name:when=11 \
53 chdir:error=-1:when=12 \
55 chdir:error=-2:when=13 \
57 chdir:error=3+:when=14 \
59 chdir:error=4096:when=15 \
60 chdir:when=7:error=invalid_error_name \
61 chdir:when= \
[all …]
/external/libchrome-gestures/tools/logs/cr48/
Dreport-291598469-system_logs.mini.txt10 "when": 0.016999999999995907
30 "when": 0.0024599999999850297
36 "when": 0.00018774299999790856
42 "when": 0.01354120899998179
70 "when": 0.004586999999986574
76 "when": 2.9366000006803006e-05
82 "when": 0.01128439699999717
102 "when": 0.004541000000017448
108 "when": 0.0003085609999970984
114 "when": 0.011617204999993191
[all …]
Dcursor_freeze.dat21 "when": 0.016999999999825377
49 "when": 0.004459999999653519
55 "when": 0.012481691999710165
75 "when": 0.004785999999967316
81 "when": 0.00046745999998165644
87 "when": 0.011519322999447468
107 "when": 0.004444999999577703
113 "when": 0.0001618269998289179
119 "when": 0.011534865999692556
125 "when": 0.0003221490001124039
[all …]
Dreport-291598177-system_logs.mini.txt10 "when": 0.016999999999995907
16 "when": 0.01169491400000311
22 "when": 0.010522209000001226
42 "when": 0.00243399999999383
48 "when": 8.575699999369135e-05
54 "when": 0.01350838599999804
82 "when": 0.004620000000002733
88 "when": 0.0001664649999923995
94 "when": 0.011384166999988565
114 "when": 0.004580999999987512
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/utils/libcxx/test/
Dfeatures.py40 when=lambda cfg: hasCompileFlag(cfg, '-Werror=thread-safety'),
44 when=lambda cfg: hasCompileFlag(cfg, '-Wuser-defined-warnings'),
54 when=lambda cfg: hasCompileFlag(cfg, '-fconstexpr-steps=1')),
57 when=lambda cfg: hasCompileFlag(cfg, '-fconstexpr-ops-limit=1')),
59 Feature(name='has-fblocks', when=lambda cfg: hasCompileFlag(cfg, '-fblocks')),
60 …Feature(name='-fsized-deallocation', when=lambda cfg: hasCompileFlag(cfg, '-fsized-deallo…
61 …Feature(name='-faligned-allocation', when=lambda cfg: hasCompileFlag(cfg, '-faligned-allo…
62 …Feature(name='fdelayed-template-parsing', when=lambda cfg: hasCompileFlag(cfg, '-fdelayed-temp…
63 …Feature(name='libcpp-no-coroutines', when=lambda cfg: featureTestMacros(cfg).get('__cpp_i…
64 …Feature(name='has-fobjc-arc', when=lambda cfg: hasCompileFlag(cfg, '-xobjective-c+…
[all …]
/external/mockito/src/test/java/org/mockitousage/matchers/
DMatchersTest.java61 import static org.mockito.Mockito.when;
70 when(mock.oneArg(and(eq(false), eq(false)))).thenReturn("0"); in and_overloaded()
71 when(mock.oneArg(and(eq((byte) 1), eq((byte) 1)))).thenReturn("1"); in and_overloaded()
72 when(mock.oneArg(and(eq('a'), eq('a')))).thenReturn("2"); in and_overloaded()
73 when(mock.oneArg(and(eq(1D), eq(1D)))).thenReturn("3"); in and_overloaded()
74 when(mock.oneArg(and(eq(1F), eq(1F)))).thenReturn("4"); in and_overloaded()
75 when(mock.oneArg(and(eq(1), eq(1)))).thenReturn("5"); in and_overloaded()
76 when(mock.oneArg(and(eq(1L), eq(1L)))).thenReturn("6"); in and_overloaded()
77 when(mock.oneArg(and(eq((short) 1), eq((short) 1)))).thenReturn("7"); in and_overloaded()
78 when(mock.oneArg(and(contains("a"), contains("d")))).thenReturn("8"); in and_overloaded()
[all …]
DAnyXMatchersAcceptNullsTest.java15 import static org.mockito.Mockito.when;
29 when(mock.oneArg((Object) any())).thenReturn("matched"); in shouldAcceptNullsInAnyMatcher()
36 when(mock.oneArg((Object) anyObject())).thenReturn("matched"); in shouldAcceptNullsInAnyObjectMatcher()
43 when(mock.oneArg(anyString())).thenReturn("0"); in shouldNotAcceptNullInAnyXMatchers()
44 when(mock.forList(anyListOf(String.class))).thenReturn("1"); in shouldNotAcceptNullInAnyXMatchers()
45 when(mock.forMap(anyMapOf(String.class, String.class))).thenReturn("2"); in shouldNotAcceptNullInAnyXMatchers()
46 when(mock.forCollection(anyCollectionOf(String.class))).thenReturn("3"); in shouldNotAcceptNullInAnyXMatchers()
47 when(mock.forSet(anySetOf(String.class))).thenReturn("4"); in shouldNotAcceptNullInAnyXMatchers()
59 when(mock.forInteger(anyInt())).thenReturn("0"); in shouldNotAcceptNullInAllAnyPrimitiveWrapperMatchers()
60 when(mock.forCharacter(anyChar())).thenReturn("1"); in shouldNotAcceptNullInAllAnyPrimitiveWrapperMatchers()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/
DSdkPickerTest.java6 import static org.mockito.Mockito.when;
31 when(usesSdk.getTargetSdkVersion()).thenReturn(22); in withDefaultSdkConfig_shouldUseTargetSdkFromAndroidManifest()
38 when(usesSdk.getTargetSdkVersion()).thenReturn(22); in withAllSdksConfig_shouldUseFullSdkRangeFromAndroidManifest()
39 when(usesSdk.getMinSdkVersion()).thenReturn(19); in withAllSdksConfig_shouldUseFullSdkRangeFromAndroidManifest()
40 when(usesSdk.getMaxSdkVersion()).thenReturn(23); in withAllSdksConfig_shouldUseFullSdkRangeFromAndroidManifest()
47 when(usesSdk.getTargetSdkVersion()).thenReturn(22); in withAllSdksConfigAndNoMinSdkVersion_shouldUseFullSdkRangeFromAndroidManifest()
48 when(usesSdk.getMinSdkVersion()).thenReturn(1); in withAllSdksConfigAndNoMinSdkVersion_shouldUseFullSdkRangeFromAndroidManifest()
49 when(usesSdk.getMaxSdkVersion()).thenReturn(22); in withAllSdksConfigAndNoMinSdkVersion_shouldUseFullSdkRangeFromAndroidManifest()
57 when(usesSdk.getTargetSdkVersion()).thenReturn(22); in withAllSdksConfigAndNoMaxSdkVersion_shouldUseFullSdkRangeFromAndroidManifest()
58 when(usesSdk.getMinSdkVersion()).thenReturn(19); in withAllSdksConfigAndNoMaxSdkVersion_shouldUseFullSdkRangeFromAndroidManifest()
[all …]
/external/robolectric/robolectric/src/test/java/org/robolectric/plugins/
DDefaultSdkPickerTest.java6 import static org.mockito.Mockito.when;
41 when(usesSdk.getTargetSdkVersion()).thenReturn(22); in withDefaultSdk_shouldUseTargetSdkFromAndroidManifest()
48 when(usesSdk.getTargetSdkVersion()).thenReturn(22); in withAllSdksConfig_shouldUseFullSdkRangeFromAndroidManifest()
49 when(usesSdk.getMinSdkVersion()).thenReturn(19); in withAllSdksConfig_shouldUseFullSdkRangeFromAndroidManifest()
50 when(usesSdk.getMaxSdkVersion()).thenReturn(23); in withAllSdksConfig_shouldUseFullSdkRangeFromAndroidManifest()
58 when(usesSdk.getTargetSdkVersion()).thenReturn(22); in withAllSdksConfigAndNoMinSdkVersion_shouldUseFullSdkRangeFromAndroidManifest()
59 when(usesSdk.getMinSdkVersion()).thenReturn(1); in withAllSdksConfigAndNoMinSdkVersion_shouldUseFullSdkRangeFromAndroidManifest()
60 when(usesSdk.getMaxSdkVersion()).thenReturn(22); in withAllSdksConfigAndNoMinSdkVersion_shouldUseFullSdkRangeFromAndroidManifest()
69 when(usesSdk.getTargetSdkVersion()).thenReturn(22); in withAllSdksConfigAndNoMaxSdkVersion_shouldUseFullSdkRangeFromAndroidManifest()
70 when(usesSdk.getMinSdkVersion()).thenReturn(19); in withAllSdksConfigAndNoMaxSdkVersion_shouldUseFullSdkRangeFromAndroidManifest()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/res/
DDrawableResourceLoaderNoRunnerTest.java5 import static org.mockito.Mockito.when;
59 when(mockTestFile.getName()).thenReturn("foo.png"); in shouldFindDrawableResourcesWorkWithUnixJarFilePath()
60 when(mockTestFile.getBaseName()).thenReturn("foo"); in shouldFindDrawableResourcesWorkWithUnixJarFilePath()
63 when(mockTestDir.toString()).thenReturn(JAR_PATH_ON_UNIX); in shouldFindDrawableResourcesWorkWithUnixJarFilePath()
64 when(mockTestDir.getName()).thenReturn(DRAWABLE_DIR); in shouldFindDrawableResourcesWorkWithUnixJarFilePath()
65 when(mockTestDir.listFiles()).thenReturn(new FsFile[]{mockTestFile}); in shouldFindDrawableResourcesWorkWithUnixJarFilePath()
66 when(mockTestDir.isDirectory()).thenReturn(true); in shouldFindDrawableResourcesWorkWithUnixJarFilePath()
68 when(mockTestBaseDir.listFiles()).thenReturn(new FsFile[]{mockTestDir}); in shouldFindDrawableResourcesWorkWithUnixJarFilePath()
82 when(mockTestFile.getName()).thenReturn("foo.png"); in shouldFindDrawableResourcesWorkWithUnixFilePath()
83 when(mockTestFile.getBaseName()).thenReturn("foo"); in shouldFindDrawableResourcesWorkWithUnixFilePath()
[all …]
/external/mockito/src/test/java/org/mockitousage/stubbing/
DStubbingWithThrowablesTest.java18 import static org.mockito.Mockito.when;
56 when(mock.add("")).thenThrow(new ExceptionOne()); in throws_same_exception_consecutively()
77 doThrow(new ExceptionOne()).when(mock).clear(); in throws_same_exception_consecutively_with_doThrow()
99 when(mock.add("throw")).thenThrow(expected); in shouldStubWithThrowable()
109 doThrow(expected).when(mock).clear(); in shouldSetThrowableToVoidMethod()
119 doThrow(new ExceptionOne()).when(mock).clear(); in shouldLastStubbingVoidBeImportant()
120 doThrow(new ExceptionTwo()).when(mock).clear(); in shouldLastStubbingVoidBeImportant()
129 when(mock.size()).thenThrow(new ExceptionOne()); in shouldFailStubbingThrowableOnTheSameInvocationDueToAcceptableLimitation()
133 when(mock.size()).thenThrow(new ExceptionTwo()); in shouldFailStubbingThrowableOnTheSameInvocationDueToAcceptableLimitation()
141 when(reader.read()).thenThrow(ioException); in shouldAllowSettingCheckedException()
[all …]
DStubbingUsingDoReturnTest.java37 doReturn("foo").when(mock).simpleMethod(); in should_stub()
38 doReturn("bar").when(mock).simpleMethod(); in should_stub()
45 doReturn("foo").when(mock).simpleMethod("foo"); in should_stub_with_args()
46 doReturn("bar").when(mock).simpleMethod(eq("one"), anyInt()); in should_stub_with_args()
57 doThrow(new FooRuntimeException()).when(mock).voidMethod(); in should_stub_with_throwable()
66 doThrow(new IOException()).when(mock).throwsIOException(0); in should_allow_setting_valid_checked_exception()
79 doThrow(new FooCheckedException()).when(mock).throwsIOException(0); in should_detect_invalid_checked_exception()
89 doReturn("foo").when(mock).voidMethod(); in should_scream_when_return_set_for_void()
101 doReturn("foo").when("foo").toString(); in should_scream_when_not_a_mock_passed()
111 doReturn("foo").when((Object) null).toString(); in should_scream_when_null_passed()
[all …]
/external/mockito/src/test/java/org/mockitousage/
DCompilationWarningsTest.java23 doReturn(null).when(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()
24 doReturn("a", 12).when(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()
25 doReturn(1000).when(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()
26 … doThrow(new NullPointerException()).when(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()
27 …doThrow(new NullPointerException(), new IllegalArgumentException()).when(mock(IMethods.class)).obj… in no_warnings_for_most_common_api()
28 … doThrow(NullPointerException.class).when(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()
30 doAnswer(ignore()).doReturn(null).when(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()
31 … doAnswer(ignore()).doReturn("a", 12).when(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()
32 doAnswer(ignore()).doReturn(1000).when(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()
33 …doAnswer(ignore()).doThrow(new NullPointerException()).when(mock(IMethods.class)).objectReturningM… in no_warnings_for_most_common_api()
[all …]
/external/rust/crates/tokio-util/src/time/wheel/
Dmod.rs95 when: u64, in insert()
99 if when <= self.elapsed { in insert()
101 } else if when - self.elapsed > MAX_DURATION { in insert()
106 let level = self.level_for(when); in insert()
108 self.levels[level].add_entry(when, item, store); in insert()
123 let when = T::when(item, store); in remove() localVariable
126 self.elapsed <= when, in remove()
129 when in remove()
132 let level = self.level_for(when); in remove()
134 self.levels[level].remove_entry(when, item, store); in remove()
[all …]
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/
DObjectReaderValueOfWithValueTypeTest.java19 import static org.mockito.Mockito.when;
43 when(objectReader.readValue((String) any())).thenReturn(pojo); in testValueOfStringWithValueType()
44 when(objectReader.forType((Class<?>) any())).thenReturn(objectReader); in testValueOfStringWithValueType()
45 when(objectReader.readValue((String) any(), (Class<?>) any())).thenCallRealMethod(); in testValueOfStringWithValueType()
58 when(objectReader.forType((Class<?>) any())).thenReturn(objectReader); in testValueOfByteArrayWithValueType()
59 when(objectReader.readValue((byte[]) any())).thenReturn(pojo); in testValueOfByteArrayWithValueType()
60 when(objectReader.readValue((byte[]) any(), (Class<?>) any())).thenCallRealMethod(); in testValueOfByteArrayWithValueType()
72 when(objectReader.forType((Class<?>) any())).thenReturn(objectReader); in testValueOfDataInputWithValueType()
73 when(objectReader.readValue((DataInput) any())).thenReturn(pojo); in testValueOfDataInputWithValueType()
74 when(objectReader.readValue((DataInput) any(), (Class<?>) any())).thenCallRealMethod(); in testValueOfDataInputWithValueType()
[all …]
/external/volley/core/src/test/java/com/android/volley/toolbox/
DAdaptedHttpStackTest.java6 import static org.mockito.Mockito.when;
47 when(mHttpResponse.getStatusLine()).thenReturn(mStatusLine); in setUp()
52 when(mHttpStack.performRequest(REQUEST, ADDITIONAL_HEADERS)) in requestTimeout()
60 when(mHttpStack.performRequest(REQUEST, ADDITIONAL_HEADERS)).thenReturn(mHttpResponse); in emptyResponse()
61 when(mStatusLine.getStatusCode()).thenReturn(12345); in emptyResponse()
62 when(mHttpResponse.getAllHeaders()).thenReturn(new org.apache.http.Header[0]); in emptyResponse()
74 when(mHttpStack.performRequest(REQUEST, ADDITIONAL_HEADERS)).thenReturn(mHttpResponse); in nonEmptyResponse()
75 when(mStatusLine.getStatusCode()).thenReturn(12345); in nonEmptyResponse()
76 when(mHttpResponse.getAllHeaders()).thenReturn(new org.apache.http.Header[0]); in nonEmptyResponse()
77 when(mHttpResponse.getEntity()).thenReturn(mHttpEntity); in nonEmptyResponse()
[all …]
DAndroidAuthenticatorTest.java21 import static org.mockito.Mockito.when;
55 when(mAccountManager.getAuthToken(mAccount, "cooltype", false, null, null)) in failedGetAuthToken()
57 when(mFuture.getResult()).thenThrow(new AuthenticatorException("sadness!")); in failedGetAuthToken()
66 when(mAccountManager.getAuthToken(mAccount, "cooltype", false, null, null)) in resultContainsIntent()
68 when(mFuture.getResult()).thenReturn(bundle); in resultContainsIntent()
69 when(mFuture.isDone()).thenReturn(true); in resultContainsIntent()
70 when(mFuture.isCancelled()).thenReturn(false); in resultContainsIntent()
77 when(mAccountManager.getAuthToken(mAccount, "cooltype", false, null, null)) in missingAuthToken()
79 when(mFuture.getResult()).thenReturn(bundle); in missingAuthToken()
80 when(mFuture.isDone()).thenReturn(true); in missingAuthToken()
[all …]
/external/dagger2/javatests/dagger/producers/monitoring/
DTimingRecordersTest.java26 import static org.mockito.Mockito.when;
77 when(mockProductionComponentTimingRecorderFactory.create(any(Object.class))).thenReturn(null); in singleRecorder_nullProductionComponentTimingRecorder()
87 when(mockProductionComponentTimingRecorderFactory.create(any(Object.class))) in singleRecorder_throwingProductionComponentTimingRecorderFactory()
98 when(mockProductionComponentTimingRecorderFactory.create(any(Object.class))) in singleRecorder_nullProducerTimingRecorder()
100 when(mockProductionComponentTimingRecorder.producerTimingRecorderFor( in singleRecorder_nullProducerTimingRecorder()
113 when(mockProductionComponentTimingRecorderFactory.create(any(Object.class))) in singleRecorder_throwingProductionComponentTimingRecorder()
115 when(mockProductionComponentTimingRecorder.producerTimingRecorderFor( in singleRecorder_throwingProductionComponentTimingRecorder()
167 .when(mockProducerTimingRecorder) in singleRecorder_throwingProducerTimingRecorderSuccess()
170 .when(mockProducerTimingRecorder) in singleRecorder_throwingProducerTimingRecorderSuccess()
189 when(mockProductionComponentTimingRecorderFactoryA.create(any(Object.class))).thenReturn(null); in multipleRecorders_nullProductionComponentTimingRecorders()
[all …]
/external/mockito/src/test/java/org/mockitousage/internal/junit/
DUnusedStubbingsFinderTest.java20 import static org.mockito.Mockito.when;
54 when(mock1.simpleMethod()).thenReturn("1"); in no_unused_stubbings()
65 when(mock1.simpleMethod()).thenReturn("1"); in unused_stubbings()
74 when(mock1.simpleMethod(1)).thenReturn("1"); in some_unused_stubbings()
75 when(mock2.simpleMethod(2)).thenReturn("2"); in some_unused_stubbings()
76 when(mock2.simpleMethod(3)).thenReturn("3"); in some_unused_stubbings()
91 when(mock1.simpleMethod(1)).thenReturn("1"); in unused_and_lenient_stubbings()
92 when(mock1.simpleMethod(2)).thenReturn("2"); in unused_and_lenient_stubbings()
93 lenient().when(mock2.simpleMethod(3)).thenReturn("3"); in unused_and_lenient_stubbings()
108 when(mock1.simpleMethod(1)).thenReturn("1"); in some_unused_stubbings_by_location()
[all …]
/external/dagger2/javatests/dagger/producers/monitoring/internal/
DMonitorsTest.java25 import static org.mockito.Mockito.when;
69 when(mockProductionComponentMonitorFactory.create(any(Object.class))).thenReturn(null); in singleMonitor_nullProductionComponentMonitor()
79 .when(mockProductionComponentMonitorFactory) in singleMonitor_throwingProductionComponentMonitorFactory()
89 when(mockProductionComponentMonitorFactory.create(any(Object.class))) in singleMonitor_nullProducerMonitor()
91 when(mockProductionComponentMonitor.producerMonitorFor(nullable(ProducerToken.class))) in singleMonitor_nullProducerMonitor()
103 when(mockProductionComponentMonitorFactory.create(any(Object.class))) in singleMonitor_throwingProductionComponentMonitor()
106 .when(mockProductionComponentMonitor) in singleMonitor_throwingProductionComponentMonitor()
165 doThrow(new RuntimeException("monkey")).when(mockProducerMonitor).requested(); in singleMonitor_throwingProducerMonitorSuccess()
166 doThrow(new RuntimeException("monkey")).when(mockProducerMonitor).methodStarting(); in singleMonitor_throwingProducerMonitorSuccess()
167 doThrow(new RuntimeException("monkey")).when(mockProducerMonitor).methodFinished(); in singleMonitor_throwingProducerMonitorSuccess()
[all …]

12345678910>>...273