Searched defs:data (Results 1 - 25 of 84) sorted by relevance

1234

/libcore/luni/src/main/java/java/util/
H A DObserver.java36 * @param data
37 * the data passed to {@link Observable#notifyObservers(Object)}.
39 void update(Observable observable, Object data); argument
H A DObservable.java121 * @param data
125 public void notifyObservers(Object data) { argument
138 observer.update(this, data);
/libcore/dalvik/src/main/java/dalvik/system/profiler/
H A DAsciiHprofWriter.java34 private final HprofData data; field in class:AsciiHprofWriter
38 * Writes the provided data to the specified stream.
40 public static void write(HprofData data, OutputStream outputStream) throws IOException { argument
41 new AsciiHprofWriter(data, outputStream).write();
44 private AsciiHprofWriter(HprofData data, OutputStream outputStream) { argument
45 this.data = data;
50 for (HprofData.ThreadEvent e : data.getThreadHistory()) {
55 = new ArrayList<HprofData.Sample>(data.getSamples());
69 Date now = new Date(data
[all...]
/libcore/luni/src/main/java/org/w3c/dom/
H A DProcessingInstruction.java48 public void setData(String data) argument
H A DCharacterData.java17 * attributes and methods for accessing character data in the DOM. For
31 * The character data of the node that implements this interface. The DOM
32 * implementation may not put arbitrary limits on the amount of data
34 * implementation limits may mean that the entirety of a node's data may
36 * may call <code>substringData</code> to retrieve the data in
46 * The character data of the node that implements this interface. The DOM
47 * implementation may not put arbitrary limits on the amount of data
49 * implementation limits may mean that the entirety of a node's data may
51 * may call <code>substringData</code> to retrieve the data in
56 public void setData(String data) argument
[all...]
H A DUserDataHandler.java20 * implement various behaviors regarding the data it associates to the DOM
60 * @param data Specifies the data for which this handler is being called.
68 Object data,
66 handle(short operation, String key, Object data, Node src, Node dst) argument
/libcore/luni/src/test/java/libcore/io/
H A DBase64Test.java40 int[] data = new int[61];
41 Arrays.fill(data, 0xff);
44 assertEncoded(expected, data);
47 public void assertEncoded(String expected , int... data) { argument
48 byte[] dataBytes = new byte[data.length];
49 for (int i = 0; i < data.length; i++) {
50 dataBytes[i] = (byte) data[i];
/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/
H A DChunk.java22 * A chunk of DDM data. This is really just meant to hold a few pieces
23 * of data together.
34 public byte[] data; // chunk data field in class:Chunk
35 public int offset, length; // position within "data"
45 public Chunk(int type, byte[] data, int offset, int length) { argument
47 this.data = data;
59 this.data = buf.array();
H A DDdmServer.java90 * Send a chunk of data to the DDM server. This takes the form of a
96 nativeSendChunk(chunk.type, chunk.data, chunk.offset, chunk.length);
100 native private static void nativeSendChunk(int type, byte[] data, argument
139 private static Chunk dispatch(int type, byte[] data, int offset, int length) argument
170 Chunk chunk = new Chunk(type, data, offset, length);
/libcore/dex/src/main/java/com/android/dex/
H A DEncodedValue.java26 private final byte[] data; field in class:EncodedValue
28 public EncodedValue(byte[] data) { argument
29 this.data = data;
33 return new ByteArrayByteInput(data);
37 return data;
41 out.write(data);
45 int size = Math.min(data.length, other.data.length);
47 if (data[
[all...]
/libcore/dom/src/test/java/org/w3c/domts/
H A DUserDataMonitor.java43 * @param data
53 Object data,
57 new UserDataNotification(operation, key, data, src, dst));
50 handle( short operation, String key, Object data, Node src, Node dst) argument
H A DUserDataNotification.java24 private final Object data; field in class:UserDataNotification
34 Object data,
39 this.data = data;
63 * Gets value of data parameter
65 * @return value of data parameter
68 return data;
32 UserDataNotification(short operation, String key, Object data, Node src, Node dst) argument
/libcore/luni/src/main/java/libcore/io/
H A DDropBox.java47 public void addData(String tag, byte[] data, int flags); argument
48 public void addText(String tag, String data); argument
56 public void addData(String tag, byte[] data, int flags) { argument
57 System.out.println(tag + ": " + Base64.encode(data));
60 public void addText(String tag, String data) { argument
61 System.out.println(tag + ": " + data);
65 public static void addData(String tag, byte[] data, int flags) { argument
66 getReporter().addData(tag, data, flags);
69 public static void addText(String tag, String data) { argument
70 getReporter().addText(tag, data);
[all...]
/libcore/luni/src/main/java/libcore/util/
H A DHexEncoding.java30 * Encodes the provided data as a sequence of hexadecimal characters.
32 public static char[] encode(byte[] data) { argument
33 return encode(data, 0, data.length);
37 * Encodes the provided data as a sequence of hexadecimal characters.
39 public static char[] encode(byte[] data, int offset, int len) { argument
42 byte b = data[offset + i];
/libcore/luni/src/main/java/org/apache/harmony/security/utils/
H A DArray.java36 public static String getBytesAsString(byte[] data) { argument
37 StringBuilder result = new StringBuilder(data.length * 3);
38 for (int i = 0; i < data.length; ++i) {
39 result.append(Byte.toHexString(data[i], false));
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
H A DCDATASectionImpl.java34 public CDATASectionImpl(DocumentImpl document, String data) { argument
35 super(document, data);
H A DCommentImpl.java34 CommentImpl(DocumentImpl document, String data) { argument
35 super(document, data);
H A DProcessingInstructionImpl.java38 private String data; field in class:ProcessingInstructionImpl
40 ProcessingInstructionImpl(DocumentImpl document, String target, String data) { argument
43 this.data = data;
47 return data;
62 return data;
69 public void setData(String data) throws DOMException { argument
70 this.data = data;
H A DTextImpl.java35 public TextImpl(DocumentImpl document, String data) { argument
36 super(document, data);
/libcore/support/src/test/java/libcore/tlswire/handshake/
H A DHelloExtension.java68 public byte[] data; field in class:HelloExtension
86 result.data = IoUtils.readTlsVariableLengthByteVector(in, 0xffff);
98 return "HelloExtension{type: " + name + ", data: " + HexEncoding.encode(data) + "}";
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
H A DTestUtils.java39 * Prints byte array <code>data</code> as hex to the
45 * @param data data to be printed
50 byte[] data) {
51 for (int i=0; i<data.length; i++) {
52 String tail = Integer.toHexString(0x000000ff & data[i]);
47 printAsHex(int perLine, String prefix, String delimiter, byte[] data) argument
/libcore/luni/src/main/java/java/security/cert/
H A DCertPath.java188 // cert path data
189 private final byte[] data; field in class:CertPath.CertPathRep
192 // for cert path data
195 new ObjectStreamField("data", byte[].class, true),
200 * and encoded data.
204 * @param data
205 * the encoded data.
207 protected CertPathRep(String type, byte[] data) { argument
209 this.data = data;
[all...]
/libcore/luni/src/main/java/org/xml/sax/
H A DDocumentHandler.java26 * example, all of an element's content (character data, processing
155 * Receive notification of character data.
158 * character data. SAX parsers may return all contiguous character
159 * data in a single chunk, or they may split it into several
223 * @param data The processing instruction data, or null if
228 public abstract void processingInstruction (String target, String data) argument
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
H A DReaderTest.java172 public MockReader(char[] data) { argument
173 contents = data;
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
H A DZipOutputStreamTest.java38 static final String data = "HelloWorldHelloWorldHelloWorldHelloWorldHelloWorldHelloWorldHelloWorldHelloWorldHelloWorldHelloWorldHelloWorldHelloWorldHelloWorld"; field in class:ZipOutputStreamTest
137 zos.write(data.getBytes());
142 zos.write(data.getBytes());
154 tempCrc.update(data.getBytes());
156 ze.setSize(new String(data).length());
158 zos.write(data.getBytes());
163 zos.write(data.getBytes());
174 zos.write(data.getBytes());
180 byte[] b = new byte[data.length()];
187 assertEquals("Write failed to write correct bytes", new String(b), data);
[all...]

Completed in 727 milliseconds

1234