/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | ChannelsTest.java | 37 import static org.mockito.Mockito.when; 80 when(abc.read(bbCaptor.capture())).thenReturn(result); in testInputStreamAsynchronousByteChannel() 81 when(result.get()).thenAnswer( in testInputStreamAsynchronousByteChannel() 108 when(abc.write(bbCaptor.capture())).thenReturn(result); in testOutputStreamAsynchronousByteChannel() 109 when(result.get()).thenAnswer( in testOutputStreamAsynchronousByteChannel()
|
D | FileChannelTest.java | 22 import static org.mockito.Mockito.when; 314 when(mockPath.getFileSystem()).thenReturn(mockFileSystem); in test_open_Path_Set_FileAttributes() 315 when(mockFileSystem.provider()).thenReturn(mockFileSystemProvider); in test_open_Path_Set_FileAttributes() 316 when(mockFileSystemProvider.newFileChannel(mockPath, standardOpenOptions, in test_open_Path_Set_FileAttributes() 339 when(mockPath.getFileSystem()).thenReturn(mockFileSystem); in test_open_Path_OpenOptions() 340 when(mockFileSystem.provider()).thenReturn(mockFileSystemProvider); in test_open_Path_OpenOptions() 341 when(mockFileSystemProvider.newFileChannel(mockPath, standardOpenOptions)) in test_open_Path_OpenOptions()
|
/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/ |
D | DdmVmInternal.java | 52 native public static boolean heapInfoNotify(int when); in heapInfoNotify() argument 61 native public static boolean heapSegmentNotify(int when, int what, in heapSegmentNotify() argument
|
/libcore/luni/src/test/java/libcore/java/nio/file/ |
D | FilesTest.java | 58 import static org.mockito.Mockito.when; 79 when(mockPath.getFileSystem()).thenReturn(mockFileSystem); in setUp() 80 when(mockPath2.getFileSystem()).thenReturn(mockFileSystem); in setUp() 81 when(mockFileSystem.provider()).thenReturn(mockFileSystemProvider); in setUp() 88 when(mockFileSystemProvider.newInputStream(mockPath, READ)).thenReturn(is); in test_newInputStream() 100 when(mockFileSystemProvider.newOutputStream(mockPath, APPEND)).thenReturn(os); in test_newOutputStream() 114 when(mockFileSystemProvider.newByteChannel(mockPath, openOptions)).thenReturn(sfc); in test_newByteChannel() 377 when(mockFileSystemProvider.deleteIfExists(mockPath)).thenReturn(true); in test_deleteIfExist()
|
D | Files2Test.java | 94 import static org.mockito.Mockito.when; 112 when(mockPath.getFileSystem()).thenReturn(mockFileSystem); in setUp() 113 when(mockPath2.getFileSystem()).thenReturn(mockFileSystem); in setUp() 114 when(mockFileSystem.provider()).thenReturn(mockFileSystemProvider); in setUp() 126 when(mockFileSystemProvider.readSymbolicLink(mockPath)).thenReturn(mockPath2); in test_readSymbolicLink() 133 when(mockFileSystemProvider.isSameFile(mockPath, mockPath2)).thenReturn(true); in test_isSameFile() 134 when(mockFileSystemProvider.isSameFile(mockPath2, mockPath)).thenReturn(false); in test_isSameFile() 141 when(mockFileSystemProvider.getFileStore(mockPath)).thenThrow(new SecurityException()); in test_getFileStore() 151 when(mockFileSystemProvider.isHidden(mockPath)).thenReturn(true); in test_isHidden() 152 when(mockFileSystemProvider.isHidden(mockPath2)).thenReturn(false); in test_isHidden() [all …]
|
/libcore/luni/src/test/java/libcore/libcore/io/ |
D | ForwardingOsTest.java | 45 Mockito.when(mockOs.toString()).thenReturn(msg); in toStringContainsDelegate()
|
D | BlockGuardOsTest.java | 65 import static org.mockito.Mockito.when; 112 when(mockOsDelegate.android_getaddrinfo(anyString(), any(), anyInt())) in test_android_getaddrinfo_networkPolicy()
|
/libcore/mmodules/core_platform_api/ |
D | Android.bp | 65 // Used when compiling higher-level code against core.platform.api.stubs. 70 // This one is not on device but it's needed when javac compiles code
|
/libcore/ojluni/src/main/java/java/util/ |
D | Date.java | 937 public boolean before(Date when) { in before() argument 938 return getMillisOf(this) < getMillisOf(when); in before() 951 public boolean after(Date when) { in after() argument 952 return getMillisOf(this) > getMillisOf(when); in after()
|
D | Calendar.java | 2741 public boolean before(Object when) { in before() argument 2742 return when instanceof Calendar in before() 2743 && compareTo((Calendar)when) < 0; in before() 2762 public boolean after(Object when) { in after() argument 2763 return when instanceof Calendar in after() 2764 && compareTo((Calendar)when) > 0; in after()
|
/libcore/luni/src/main/java/libcore/util/ |
D | ZoneInfo.java | 606 public int getOffset(long when) { in getOffset() argument 607 int offsetIndex = findOffsetIndexForTimeInMilliseconds(when); in getOffset() 618 long when = time.getTime(); in inDaylightTime() local 619 int offsetIndex = findOffsetIndexForTimeInMilliseconds(when); in inDaylightTime()
|
/libcore/ojluni/annotations/sdk/nullability/java/util/ |
D | Calendar.annotated.java | 108 public boolean before(@libcore.util.Nullable java.lang.Object when) { throw new RuntimeException("S… in before() argument 110 public boolean after(@libcore.util.Nullable java.lang.Object when) { throw new RuntimeException("St… in after() argument
|
/libcore/luni/src/test/java/libcore/java/security/ |
D | SignatureTest.java | 511 doReturn(service).when(provider).getService(service.getType(), service.getAlgorithm()); in testGetParameters_IsCalled() 512 doReturn(signatureSpi).when(service).newInstance(null); in testGetParameters_IsCalled()
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | Calendar.java | 258 public boolean before(java.lang.Object when) { in before() argument 262 public boolean after(java.lang.Object when) { in after() argument
|
/libcore/mmodules/intracoreapi/ |
D | Android.bp | 62 // Used when compiling against core.intra.stubs.
|
/libcore/ojluni/annotations/ |
D | README | 2 the main source files by metalava when it is producing API stubs. This
|
/libcore/ |
D | LICENSE | 99 c) If the modified program normally reads commands interactively when run, 100 you must cause it, when started running for such interactive use in the 112 its terms, do not apply to those sections when you distribute them as separate 113 works. But when you distribute the same sections as part of a whole which is a 295 If the program is interactive, make it output a short notice like this when it
|
D | JavaLibrary.bp | 340 // Creates a jar that exists to satisfy javac when compiling source code that 342 // when generating invoke-dynamic lambda implementation code, even those that 384 // This one is not on device but it's needed when javac compiles code
|
D | openjdk_java_files.bp | 1350 // Stubs needed to satisfy javac's dependencies when compiling lambda code. These are
|
/libcore/luni/src/test/java/tests/security/cert/ |
D | CertPathValidatorExceptionTest.java | 448 doReturn(certList).when(certPath).getCertificates(); in testCertPathValidatorException_constructsCorrectlyWithReason()
|
/libcore/expectations/ |
D | knownfailures.txt | 600 description: "no exception is thrown when moving cursor backwards on forward only statement", 1530 description: "Bullhead kernel does not block send when buffer is supposed to have saturated", 1688 need to check that they're secure, so they all fail when we refuse to install
|
/libcore/ojluni/ |
D | NOTICE | 385 c) If the modified program normally reads commands interactively when run, 386 you must cause it, when started running for such interactive use in the 398 its terms, do not apply to those sections when you distribute them as separate 399 works. But when you distribute the same sections as part of a whole which is a 581 If the program is interactive, make it output a short notice like this when it
|