Home
last modified time | relevance | path

Searched refs:pi (Results 1 – 18 of 18) sorted by relevance

/libcore/ojluni/src/main/java/sun/net/
DProgressMonitor.java72 ProgressSource pi = iter.next(); in getProgressSources() local
75 snapshot.add((ProgressSource)pi.clone()); in getProgressSources()
104 public void registerSource(ProgressSource pi) { in registerSource() argument
107 if (progressSourceList.contains(pi)) in registerSource()
110 progressSourceList.add(pi); in registerSource()
129 …essEvent pe = new ProgressEvent(pi, pi.getURL(), pi.getMethod(), pi.getContentType(), pi.getState(… in registerSource()
138 public void unregisterSource(ProgressSource pi) { in unregisterSource() argument
142 if (progressSourceList.contains(pi) == false) in unregisterSource()
146 pi.close(); in unregisterSource()
147 progressSourceList.remove(pi); in unregisterSource()
[all …]
/libcore/ojluni/src/main/java/sun/net/www/
DMeteredStream.java45 protected ProgressSource pi; field in MeteredStream
47 public MeteredStream(InputStream is, ProgressSource pi, long expected) in MeteredStream() argument
51 this.pi = pi; in MeteredStream()
54 if (pi != null) { in MeteredStream()
55 pi.updateProgress(0, expected); in MeteredStream()
81 if (pi != null) in justRead()
82 pi.updateProgress(count, expected); in justRead()
167 if (pi != null) in close()
168 pi.finishTracking(); in close()
214 if (pi != null) in finalize()
[all …]
/libcore/dom/src/test/java/org/w3c/domts/level2/core/
Dnodeissupported05.java79 ProcessingInstruction pi; in runTest() local
82 pi = doc.createProcessingInstruction("PITarget", "PIData"); in runTest()
83 success = pi.isSupported("-", "+"); in runTest()
Ddocumentimportnode20.java89 ProcessingInstruction pi; in runTest() local
108 pi = (ProcessingInstruction) childList.item(1); in runTest()
112 piTargetVal = pi.getTarget(); in runTest()
113 piDataVal = pi.getData(); in runTest()
DimportNode14.java71 ProcessingInstruction pi; in runTest() local
82 pi = aNewDoc.createProcessingInstruction("target1", "data1"); in runTest()
83 aNode = (ProcessingInstruction) doc.importNode(pi, false); in runTest()
Dnodenormalize01.java85 ProcessingInstruction pi; in runTest() local
106 pi = newDoc.createProcessingInstruction("PITarget", "PIData"); in runTest()
135 appendedChild = element6.appendChild(pi); in runTest()
/libcore/luni/src/test/java/tests/org/w3c/dom/
DNodeIsSupported.java173 ProcessingInstruction pi; in testIsSupported5() local
176 pi = doc.createProcessingInstruction("PITarget", "PIData"); in testIsSupported5()
177 success = pi.isSupported("-", "+"); in testIsSupported5()
DNodeNormalize.java102 ProcessingInstruction pi; in testNormalize() local
124 pi = newDoc.createProcessingInstruction("PITarget", "PIData"); in testNormalize()
153 element6.appendChild(pi); in testNormalize()
DImportNode.java445 ProcessingInstruction pi; in testImportNode14() local
455 pi = aNewDoc.createProcessingInstruction("target1", "data1"); in testImportNode14()
456 aNode = (ProcessingInstruction) doc.importNode(pi, false); in testImportNode14()
/libcore/ojluni/src/main/java/sun/net/www/protocol/file/
DFileURLConnection.java95 ProgressSource pi = new ProgressSource(url, "GET", file.length()); in connect() local
96 is = new MeteredStream(is, pi, file.length()); in connect()
/libcore/ojluni/src/main/java/sun/net/www/protocol/ftp/
DFtpURLConnection.java478 ProgressSource pi = null; in getInputStream() local
481 pi = new ProgressSource(url, "GET", l); in getInputStream()
482 pi.beginTracking(); in getInputStream()
485 is = new MeteredStream(is, pi, l); in getInputStream()
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
DDocumentImpl.java196 ProcessingInstruction pi = (ProcessingInstruction) node; in shallowCopy() local
197 return createProcessingInstruction(pi.getTarget(), pi.getData()); in shallowCopy()
/libcore/ojluni/src/main/java/sun/invoke/util/
DWrapper.java326 int pi = hashPrim(w.primitiveType);
329 assert(FROM_PRIM[pi] == null); in assert() argument
332 FROM_PRIM[pi] = w;
/libcore/luni/src/test/java/libcore/xml/
DNormalizeTest.java531 ProcessingInstruction pi = document.createProcessingInstruction("foo", ""); in testInvalidCharactersProcessingInstructionData() local
532 root.appendChild(pi); in testInvalidCharactersProcessingInstructionData()
535 pi.setData(new String(new char[] { 'A', 'B', (char) c})); in testInvalidCharactersProcessingInstructionData()
/libcore/xml/src/main/java/com/android/org/kxml2/io/
DKXmlSerializer.java623 public void processingInstruction(String pi) in processingInstruction() argument
627 append(pi); in processingInstruction()
/libcore/luni/src/test/java/libcore/java/lang/invoke/
DExplicitCastArgumentsTest.java212 ParentInterface pi = (ParentInterface) mh.invokeExact(new Parent()); in explicitCastArgumentOfInterfaceType_doesNotThrow() local
213 assertTrue(pi instanceof ParentInterface); in explicitCastArgumentOfInterfaceType_doesNotThrow()
214 pi = (ParentInterface) mh.invokeExact((Parent) null); in explicitCastArgumentOfInterfaceType_doesNotThrow()
215 assertNull(pi); in explicitCastArgumentOfInterfaceType_doesNotThrow()
218 pi = (ParentInterface) mh1.invokeExact(new Child()); in explicitCastArgumentOfInterfaceType_doesNotThrow()
219 assertTrue(pi instanceof ParentInterface); in explicitCastArgumentOfInterfaceType_doesNotThrow()
220 pi = (ParentInterface) mh1.invokeExact((Child) null); in explicitCastArgumentOfInterfaceType_doesNotThrow()
221 assertNull(pi); in explicitCastArgumentOfInterfaceType_doesNotThrow()
224 pi = (ParentInterface) mh2.invokeExact(Integer.valueOf(3)); in explicitCastArgumentOfInterfaceType_doesNotThrow()
225 assertFalse(pi instanceof ParentInterface); in explicitCastArgumentOfInterfaceType_doesNotThrow()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DDoubleTest.java1289 Double pi = Double.valueOf("3.141592654"); in test_valueOfLjava_lang_String() local
1290 assertEquals(3.141592654, pi.doubleValue(), 0D); in test_valueOfLjava_lang_String()
/libcore/luni/src/test/resources/
Dmath_important_numbers.csv1 #These numbers are automatically generated to test numbers such as pi, pi/2, 0, etc.