Home
last modified time | relevance | path

Searched refs:pack (Results 1 – 9 of 9) sorted by relevance

/libcore/luni/src/main/java/java/net/
DPlainDatagramSocketImpl.java162 private void doRecv(DatagramPacket pack, int flags) throws IOException { in doRecv() argument
163 …IoBridge.recvfrom(false, fd, pack.getData(), pack.getOffset(), pack.getLength(), flags, pack, isNa… in doRecv()
165 updatePacketRecvAddress(pack); in doRecv()
170 public void receive(DatagramPacket pack) throws IOException { in receive() argument
171 doRecv(pack, 0); in receive()
175 public int peekData(DatagramPacket pack) throws IOException { in peekData() argument
176 doRecv(pack, MSG_PEEK); in peekData()
177 return pack.getPort(); in peekData()
DDatagramSocketImpl.java194 protected abstract void receive(DatagramPacket pack) throws IOException; in receive() argument
205 protected abstract void send(DatagramPacket pack) throws IOException; in send() argument
270 protected abstract int peekData(DatagramPacket pack) throws IOException; in peekData() argument
DDatagramSocket.java264 public synchronized void receive(DatagramPacket pack) throws IOException { in receive() argument
267 if (pack == null) { in receive()
273 pack.resetLengthForReceive(); in receive()
274 impl.receive(pack); in receive()
285 public void send(DatagramPacket pack) throws IOException { in send() argument
289 InetAddress packAddr = pack.getAddress(); in send()
292 if (!address.equals(packAddr) || port != pack.getPort()) { in send()
296 pack.setAddress(address); in send()
297 pack.setPort(port); in send()
305 impl.send(pack); in send()
/libcore/dalvik/src/main/java/dalvik/system/
DBaseDexClassLoader.java109 Package pack = super.getPackage(name); in getPackage() local
111 if (pack == null) { in getPackage()
112 pack = definePackage(name, "Unknown", "0.0", "Unknown", in getPackage()
116 return pack; in getPackage()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DDatagramSocketImplTest.java116 protected int peekData(DatagramPacket pack) throws IOException { in peekData() argument
121 protected void receive(DatagramPacket pack) throws IOException { in receive() argument
126 protected void send(DatagramPacket pack) throws IOException { in send() argument
/libcore/luni/src/test/java/libcore/java/net/
DOldURLClassLoaderTest.java151 Package pack = tucl.definePackage(packageName + i, manifest, urls[i]); in test_definePackage() local
152 assertEquals(packageName + i, pack.getName()); in test_definePackage()
154 pack.getImplementationTitle()); in test_definePackage()
156 pack.getImplementationVendor()); in test_definePackage()
158 pack.getImplementationVersion()); in test_definePackage()
DOldAndroidDatagramTest.java174 DatagramPacket pack = new DatagramPacket(new byte[100], 100); in testDatagramSocketSetSOTimeout() local
176 sock.receive(pack); in testDatagramSocketSetSOTimeout()
/libcore/luni/src/main/java/java/util/jar/
DPack200.java201 void pack(JarFile in, OutputStream out) throws IOException; in pack() method
214 void pack(JarInputStream in, OutputStream out) throws IOException; in pack() method
/libcore/libart/src/main/java/java/lang/
DClassLoader.java816 Package pack = super.getPackage(name); in getPackage() local
818 if (pack == null) { in getPackage()
819 pack = definePackage(name, "Unknown", "0.0", "Unknown", "Unknown", "0.0", in getPackage()
823 return pack; in getPackage()