Home
last modified time | relevance | path

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

12345678910>>...249

/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-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/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/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/u-boot/scripts/coccinelle/iterators/
Duse_after_iter.cocci5 //#False positives arise when there is a goto in the iterator and the
41 list_for_each_entry@p1(c,...,member) { ... when != break;
42 when forall
43 when strict
46 list_for_each_entry_reverse@p1(c,...,member) { ... when != break;
47 when forall
48 when strict
51 list_for_each_entry_continue@p1(c,...,member) { ... when != break;
52 when forall
53 when strict
[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/volley/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/producers/src/test/java/dagger/producers/monitoring/internal/
DMonitorsTest.java35 import static org.mockito.Mockito.when;
67 when(mockProductionComponentMonitorFactory.create(any(Object.class))).thenReturn(null); in singleMonitor_nullProductionComponentMonitor()
77 .when(mockProductionComponentMonitorFactory) in singleMonitor_throwingProductionComponentMonitorFactory()
87 when(mockProductionComponentMonitorFactory.create(any(Object.class))) in singleMonitor_nullProducerMonitor()
89 when(mockProductionComponentMonitor.producerMonitorFor(any(ProducerToken.class))) in singleMonitor_nullProducerMonitor()
101 when(mockProductionComponentMonitorFactory.create(any(Object.class))) in singleMonitor_throwingProductionComponentMonitor()
104 .when(mockProductionComponentMonitor) in singleMonitor_throwingProductionComponentMonitor()
159 doThrow(new RuntimeException("monkey")).when(mockProducerMonitor).methodStarting(); in singleMonitor_throwingProducerMonitorSuccess()
160 doThrow(new RuntimeException("monkey")).when(mockProducerMonitor).methodFinished(); in singleMonitor_throwingProducerMonitorSuccess()
161 doThrow(new RuntimeException("monkey")).when(mockProducerMonitor).succeeded(any(Object.class)); in singleMonitor_throwingProducerMonitorSuccess()
[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/ltp/testcases/network/stress/route/
D00_Descriptions.txt2 Verify the kernel is not crashed when the destination of an IPv4 route
6 Verify the kernel is not crashed when the destination of an IPv4 route
10 Verify the kernel is not crashed when the gateway of an IPv4 route is
14 Verify the kernel is not crashed when the gateway of an IPv4 route is
18 Verify the kernel is not crashed when the interface of an IPv4 route is
22 Verify the kernel is not crashed when the interface of an IPv4 route is
26 Verify the kernel is not crashed when the IPv4 route is modified by
30 Verify the kernel is not crashed when IPv4 route is add by route command
34 Verify the kernel is not crashed when IPv4 route is add by ip command
39 Verify the kernel is not crashed when the destination of an IPv6 route
[all …]
/external/dexmaker/dexmaker-mockito-inline-tests/src/main/java/com/android/dx/mockito/inline/tests/
DMockFinal.java25 import static org.mockito.Mockito.when;
47 when(mockClassLoader.getParent()).thenReturn(fakeParent); in mockFinalJavaMethod()
59 when(mockAttributes.getColorMode()).thenReturn(42); in mockFinalAndroidFrameworkClass()
72 when(mockService.onBind(any(Intent.class))).thenReturn(fakeBinder); in mockFinalMethodOfAndroidFrameworkClass()
91 when(mock.returnA()).thenReturn("fakeA"); in mockNonDefaultConstructorClass()
105 when(mock.returnA()).thenReturn("fakeA"); in mockNonDefaultConstructorInterface()
147 when(mockedSuper.returnA()).thenReturn("fakeA"); in mockSubClass()
148 when(mockedSuper.returnB()).thenReturn("fakeB"); in mockSubClass()
149 when(mockedSuper.returnC()).thenReturn("fakeC"); in mockSubClass()
162 when(mocked.returnA()).thenReturn("fake2A"); in mockSubClass()
[all …]
DMockNonPublic.java25 import static org.mockito.Mockito.when;
36 when(c.returnA()).thenReturn("fakeA"); in mockSingleMethod()
44 when(c.returnA()).thenReturn("fakeA"); in spySingleMethod()
52 when(c.returnA()).thenReturn("fakeA"); in spyWrappedSingleMethod()
69 when(c.returnA()).thenReturn("fakeA"); in mockDualMethod()
73 when(c.returnB()).thenReturn("fakeB"); in mockDualMethod()
83 when(c.returnA()).thenReturn("fakeA"); in spyDualMethod()
87 when(c.returnB()).thenReturn("fakeB"); in spyDualMethod()
97 when(c.returnA()).thenReturn("fakeA"); in spyWrappedDualMethod()
101 when(c.returnB()).thenReturn("fakeB"); in spyWrappedDualMethod()
[all …]
/external/icu/icu4c/source/samples/date/
Ddate.c51 static void date(UDate when, const UChar *tz, UDateFormatStyle style, const char *format, const cha…
81 UDate when; in main() local
172 when = getWhen(millis, seconds, format, locale, style, parse, tz, &status); in main()
178 date(when, tz, style, format, locale, &status); in main()
252 date(UDate when, in date() argument
268 printf("%.0f\n", when); in date()
271 printf("%.3f\n", when/1000.0); in date()
281 len = udat_format(fmt, when, 0, len, 0, status); in date()
286 udat_format(fmt, when, s, len + 1, 0, status); in date()
309 UDate when=0; in getWhen() local
[all …]
/external/libunwind/include/
Dlibunwind-dynamic.h88 int32_t when; /* when does it take effect? */ member
178 #define _U_dyn_op_save_reg(op, qp, when, reg, dst) \ argument
179 (*(op) = _U_dyn_op (UNW_DYN_SAVE_REG, (qp), (when), (reg), (dst)))
181 #define _U_dyn_op_spill_fp_rel(op, qp, when, reg, offset) \ argument
182 (*(op) = _U_dyn_op (UNW_DYN_SPILL_FP_REL, (qp), (when), (reg), \
185 #define _U_dyn_op_spill_sp_rel(op, qp, when, reg, offset) \ argument
186 (*(op) = _U_dyn_op (UNW_DYN_SPILL_SP_REL, (qp), (when), (reg), \
189 #define _U_dyn_op_add(op, qp, when, reg, value) \ argument
190 (*(op) = _U_dyn_op (UNW_DYN_ADD, (qp), (when), (reg), (value)))
192 #define _U_dyn_op_pop_frames(op, qp, when, num_frames) \ argument
[all …]
/external/grpc-grpc-java/alts/src/test/java/io/grpc/alts/internal/
DAltsTsiHandshakerTest.java26 import static org.mockito.Mockito.when;
119 when(mockServer.startServerHandshake(transportBuffer)).thenReturn(outputFrame); in processBytesFromPeerStartServer()
120 when(mockServer.isFinished()).thenReturn(false); in processBytesFromPeerStartServer()
134 when(mockServer.startServerHandshake(transportBuffer)).thenReturn(emptyOutputFrame); in processBytesFromPeerStartServerEmptyOutput()
135 when(mockServer.isFinished()).thenReturn(false); in processBytesFromPeerStartServerEmptyOutput()
147 when(mockServer.startServerHandshake(transportBuffer)).thenReturn(outputFrame); in processBytesFromPeerStartServerFinished()
148 when(mockServer.isFinished()).thenReturn(true); in processBytesFromPeerStartServerFinished()
159 when(mockServer.startServerHandshake(transportBuffer)).thenReturn(emptyOutputFrame); in processBytesFromPeerNoBytesConsumed()
160 when(mockServer.isFinished()).thenReturn(false); in processBytesFromPeerNoBytesConsumed()
175 when(mockClient.startClientHandshake()).thenReturn(outputFrame); in processBytesFromPeerClientNext()
[all …]
/external/mockito/src/test/java/org/mockitousage/strictness/
DStrictnessPerStubbingTest.java29 import static org.mockito.Mockito.when;
44 when(mock.simpleMethod("1")).thenReturn("1"); in potential_stubbing_problem()
45 lenient().when(mock.differentMethod("2")).thenReturn("2"); in potential_stubbing_problem()
63 .when(mock).simpleMethod(1); in doReturn_syntax()
77 .when(mock).simpleMethod(1); in doReturn_varargs_syntax()
93 .when(mock).simpleMethod(1); in doThrow_syntax()
118 .when(mock).simpleMethod(1); in doThrow_vararg_syntax()
143 .when(mock).simpleMethod(1); in doThrow_instance_vararg_syntax()
176 lenient().doCallRealMethod().when(mock).increment(1); in doCallRealMethod_syntax()
189 lenient().doNothing().when(spy).scream("1"); in doNothing_syntax()
[all …]

12345678910>>...249