Home
last modified time | relevance | path

Searched refs:data (Results 1 – 25 of 322) sorted by relevance

12345678910>>...13

/sdk/ddms/libs/ddmlib/src/com/android/ddmlib/log/
DEventContainer.java184 EventContainer(LogEntry entry, int tag, Object data) { in EventContainer() argument
185 getType(data); in EventContainer()
187 mData = data; in EventContainer()
198 EventContainer(int tag, int pid, int tid, int sec, int nsec, Object data) { in EventContainer() argument
199 getType(data); in EventContainer()
201 mData = data; in EventContainer()
292 public final EventValueType getType(Object data) { in getType() argument
293 if (data instanceof Integer) { in getType()
295 } else if (data instanceof Long) { in getType()
297 } else if (data instanceof String) { in getType()
[all …]
DLogReceiver.java49 public byte[] data; field in LogReceiver.LogEntry
76 public void newData(byte[] data, int offset, int length); in newData() argument
112 public void parseNewData(byte[] data, int offset, int length) { in parseNewData() argument
115 mListener.newData(data, offset, length); in parseNewData()
125 System.arraycopy(data, offset, mEntryHeaderBuffer, mEntryHeaderOffset, length); in parseNewData()
134 System.arraycopy(data, offset, mEntryHeaderBuffer, mEntryHeaderOffset, in parseNewData()
149 mCurrentEntry = createEntry(data, offset); in parseNewData()
169 System.arraycopy(data, offset, mCurrentEntry.data, mEntryDataOffset, dataSize); in parseNewData()
188 System.arraycopy(data, offset, mCurrentEntry.data, mEntryDataOffset, length); in parseNewData()
218 private LogEntry createEntry(byte[] data, int offset) { in createEntry() argument
[all …]
DGcEventContainer.java51 GcEventContainer(LogEntry entry, int tag, Object data) { in GcEventContainer() argument
52 super(entry, tag, data); in GcEventContainer()
53 init(data); in GcEventContainer()
56 GcEventContainer(int tag, int pid, int tid, int sec, int nsec, Object data) { in GcEventContainer() argument
57 super(tag, pid, tid, sec, nsec, data); in GcEventContainer()
58 init(data); in GcEventContainer()
64 private void init(Object data) { in init() argument
65 if (data instanceof Object[]) { in init()
66 Object[] values = (Object[])data; in init()
205 private void parseDvmHeapInfo(long data, int index) { in parseDvmHeapInfo() argument
[all …]
/sdk/ddms/libs/ddmlib/src/com/android/ddmlib/
DHandleHeap.java93 public void handleChunk(Client client, int type, ByteBuffer data, boolean isReply, int msgId) { in handleChunk() argument
97 handleHPIF(client, data); in handleChunk()
99 handleHPST(client, data); in handleChunk()
101 handleHPEN(client, data); in handleChunk()
103 handleHPSG(client, data); in handleChunk()
105 handleHPDU(client, data); in handleChunk()
107 handleHPDS(client, data); in handleChunk()
109 handleREAQ(client, data); in handleChunk()
111 handleREAL(client, data); in handleChunk()
113 handleUnknownChunk(client, type, data, isReply, msgId); in handleChunk()
[all …]
DHandleThread.java74 public void handleChunk(Client client, int type, ByteBuffer data, boolean isReply, int msgId) { in handleChunk() argument
79 handleTHCR(client, data); in handleChunk()
81 handleTHDE(client, data); in handleChunk()
83 handleTHST(client, data); in handleChunk()
85 handleTHNM(client, data); in handleChunk()
87 handleSTKL(client, data); in handleChunk()
89 handleUnknownChunk(client, type, data, isReply, msgId); in handleChunk()
99 private void handleTHCR(Client client, ByteBuffer data) { in handleTHCR() argument
103 threadId = data.getInt(); in handleTHCR()
104 nameLen = data.getInt(); in handleTHCR()
[all …]
DHandleHello.java75 public void handleChunk(Client client, int type, ByteBuffer data, boolean isReply, int msgId) { in handleChunk() argument
81 handleHELO(client, data); in handleChunk()
83 handleFEAT(client, data); in handleChunk()
85 handleUnknownChunk(client, type, data, isReply, msgId); in handleChunk()
92 private static void handleHELO(Client client, ByteBuffer data) { in handleHELO() argument
96 version = data.getInt(); in handleHELO()
97 pid = data.getInt(); in handleHELO()
98 vmIdentLen = data.getInt(); in handleHELO()
99 appNameLen = data.getInt(); in handleHELO()
101 vmIdent = getString(data, vmIdentLen); in handleHELO()
[all …]
DHandleAppName.java58 public void handleChunk(Client client, int type, ByteBuffer data, in handleChunk() argument
65 handleAPNM(client, data); in handleChunk()
67 handleUnknownChunk(client, type, data, isReply, msgId); in handleChunk()
74 private static void handleAPNM(Client client, ByteBuffer data) { in handleAPNM() argument
78 appNameLen = data.getInt(); in handleAPNM()
79 appName = getString(data, appNameLen); in handleAPNM()
84 if (data.hasRemaining()) { in handleAPNM()
86 userId = data.getInt(); in handleAPNM()
93 Log.e("ddm-appname", "Actual chunk length: " + data.capacity()); in handleAPNM()
DHandleTest.java59 public void handleChunk(Client client, int type, ByteBuffer data, boolean isReply, int msgId) { in handleChunk() argument
64 handleTEST(client, data); in handleChunk()
66 handleUnknownChunk(client, type, data, isReply, msgId); in handleChunk()
73 private void handleTEST(Client client, ByteBuffer data) in handleTEST() argument
79 byte[] copy = new byte[data.limit()]; in handleTEST()
80 data.get(copy); in handleTEST()
DHandleProfiling.java66 public void handleChunk(Client client, int type, ByteBuffer data, in handleChunk() argument
72 handleMPRE(client, data); in handleChunk()
74 handleMPSE(client, data); in handleChunk()
76 handleMPRQ(client, data); in handleChunk()
78 handleFAIL(client, data); in handleChunk()
80 handleUnknownChunk(client, type, data, isReply, msgId); in handleChunk()
140 private void handleMPRE(Client client, ByteBuffer data) { in handleMPRE() argument
147 result = data.get(); in handleMPRE()
215 private void handleMPSE(Client client, ByteBuffer data) { in handleMPSE() argument
218 byte[] stuff = new byte[data.capacity()]; in handleMPSE()
[all …]
DHandleNativeHeap.java68 public void handleChunk(Client client, int type, ByteBuffer data, boolean isReply, int msgId) { in handleChunk() argument
73 handleNHGT(client, data); in handleChunk()
81 handleNHSG(client, data); in handleChunk()
83 handleUnknownChunk(client, type, data, isReply, msgId); in handleChunk()
119 private void handleNHGT(Client client, ByteBuffer data) { in handleNHGT() argument
122 Log.d("ddm-nativeheap", "NHGT: " + data.limit() + " bytes"); in handleNHGT()
125 byte[] copy = new byte[data.limit()]; in handleNHGT()
126 data.get(copy); in handleNHGT()
188 private void handleNHSG(Client client, ByteBuffer data) { in handleNHSG() argument
189 byte dataCopy[] = new byte[data.limit()]; in handleNHSG()
[all …]
DRawImage.java39 public byte[] data; field in RawImage
151 int count = this.data.length; in getRotated()
152 rotated.data = new byte[count]; in getRotated()
160 this.data, (y * w + x) * byteCount, in getRotated()
161 rotated.data, ((w-x-1) * h + y) * byteCount, in getRotated()
175 value = data[index] & 0x00FF; in getARGB()
176 value |= (data[index+1] << 8) & 0x0FF00; in getARGB()
178 value = data[index] & 0x00FF; in getARGB()
179 value |= (data[index+1] & 0x00FF) << 8; in getARGB()
180 value |= (data[index+2] & 0x00FF) << 16; in getARGB()
[all …]
/sdk/emulator/sensors/
Dsensors_qemu.c146 handle->data[0] = dup(ctl->fd); in control__open_data_source()
231 SensorPoll* data = (void*)dev; in data__data_open() local
233 D("%s: dev=%p fd=%d", __FUNCTION__, dev, handle->data[0]); in data__data_open()
234 memset(&data->sensors, 0, sizeof(data->sensors)); in data__data_open()
237 data->sensors[i].acceleration.status = SENSOR_STATUS_ACCURACY_HIGH; in data__data_open()
239 data->pendingSensors = 0; in data__data_open()
240 data->timeStart = 0; in data__data_open()
241 data->timeOffset = 0; in data__data_open()
243 data->events_fd = dup(handle->data[0]); in data__data_open()
244 D("%s: dev=%p fd=%d (was %d)", __FUNCTION__, dev, data->events_fd, handle->data[0]); in data__data_open()
[all …]
/sdk/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/ui/
DAuthenticationDialog.java65 GridData data = new GridData(SWT.FILL, SWT.FILL, true, true); in createDialogContent() local
66 parent.setLayoutData(data); in createDialogContent()
73 data = new GridData(SWT.FILL, SWT.CENTER, true, true); in createDialogContent()
74 upperComposite.setLayoutData(data); in createDialogContent()
79 data = new GridData(SWT.FILL, SWT.CENTER, true, true, 2, 1); in createDialogContent()
80 data.widthHint = 500; in createDialogContent()
81 lblMessage.setLayoutData(data); in createDialogContent()
86 data = new GridData(SWT.LEFT, SWT.CENTER, false, false); in createDialogContent()
87 lblUserName.setLayoutData(data); in createDialogContent()
90 data = new GridData(SWT.FILL, SWT.CENTER, true, false); in createDialogContent()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/
DGLUtils.java27 public static String formatData(byte[] data, GLEnum format) { in formatData() argument
30 return formatBytes(data, false); in formatData()
32 return formatBytes(data, true); in formatData()
34 return formatShorts(data, false); in formatData()
36 return formatShorts(data, true); in formatData()
38 return formatInts(data); in formatData()
40 return formatFloats(data); in formatData()
46 private static String formatFloats(byte[] data) { in formatFloats() argument
47 FloatBuffer bb = ByteBuffer.wrap(data).order(ByteOrder.LITTLE_ENDIAN).asFloatBuffer(); in formatFloats()
60 private static String formatInts(byte[] data) { in formatInts() argument
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/testdata/
Dnavigation1-expected-navigate4.txt3 data/res/values-en-rGB/strings.xml
5 data/res/values/strings.xml
7 data/res/values-ar/strings.xml
9 data/res/values-bg/strings.xml
11 data/res/values-ca/strings.xml
13 data/res/values-cs/strings.xml
15 data/res/values-da/strings.xml
17 data/res/values-de/strings.xml
19 data/res/values-el/strings.xml
21 data/res/values-es/strings.xml
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/state/transforms/
DTexImageTransform.java197 byte[] data = new byte[4 * width * height]; in addAlphaChannel()
200 data[dst + 0] = sourceData[src + 0]; // copy R byte in addAlphaChannel()
201 data[dst + 1] = sourceData[src + 1]; // copy G byte in addAlphaChannel()
202 data[dst + 2] = sourceData[src + 2]; // copy B byte in addAlphaChannel()
203 data[dst + 3] = 1; // add alpha = 1 in addAlphaChannel()
206 return data; in addAlphaChannel()
212 byte[] data = new byte[4 * width * height]; in addRGBChannels()
215 data[dst + 0] = data[dst + 1] = data[dst + 2] = 0; // set R = G = B = 0 in addRGBChannels()
216 data[dst + 3] = sourceData[src]; // copy over alpha in addRGBChannels()
219 return data; in addRGBChannels()
[all …]
/sdk/eclipse/scripts/
Dgen_icon.py25 data = process_args(args)
26 if data:
27 createImage(data)
38 def createImage(data): argument
46 sz = int(data.size)
53 fill=data.circle_color, outline=None)
56 fill=None, outline=data.border_color)
59 tsx, tsy = draw.textsize(data.letter, font=font)
64 draw.text((ptx + i, pty), data.letter, font=font, fill=data.letter_color)
67 img.save(data.dest_name, "PNG")
[all …]
/sdk/apps/SdkController/src/com/android/tools/sdkcontroller/lib/
DSocket.java91 public void send(byte[] data) throws IOException { in send() argument
104 socket.getOutputStream().write(data); in send()
115 public void send(byte[] data, int offset, int len) throws IOException { in send() argument
121 socket.getOutputStream().write(data, offset, len); in send()
132 public static void receive(LocalSocket socket, byte[] data, int len) throws IOException { in receive() argument
136 final int chunk = is.read(data, received, len - received); in receive()
152 public void receive(byte[] data, int len) throws IOException { in receive() argument
158 receive(socket, data, len); in receive()
168 public void receive(byte[] data) throws IOException { in receive() argument
169 receive(data, data.length); in receive()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/sdk/
DAndroidJarLoader.java181 byte[] data = readZipData(zis, (int)entrySize); in preLoadClasses()
182 mEntryCache.put(className, data); in preLoadClasses()
242 byte[] data = mEntryCache.get(className); in findClassesDerivingFrom()
243 if (data == null) { in findClassesDerivingFrom()
249 data = readZipData(zis, (int)entrySize); in findClassesDerivingFrom()
251 loaded_class = defineAndCacheClass(className, data); in findClassesDerivingFrom()
295 byte[] data = loadClassData(name); in findClass()
296 if (data != null) { in findClass()
297 return defineAndCacheClass(name, data); in findClass()
319 private Class<?> defineAndCacheClass(String name, byte[] data) throws ClassFormatError { in defineAndCacheClass() argument
[all …]
/sdk/common/src/com/android/utils/
DPositionXmlParser.java107 public Document parse(@NonNull byte[] data) in parse() argument
109 String xml = getXmlString(data); in parse()
161 public static String getXmlString(byte[] data) { in getXmlString() argument
170 if (data.length > 4) { in getXmlString()
171 if (data[0] == (byte)0xef && data[1] == (byte)0xbb && data[2] == (byte)0xbf) { in getXmlString()
175 } else if (data[0] == (byte)0xfe && data[1] == (byte)0xff) { in getXmlString()
179 } else if (data[0] == (byte)0x0 && data[1] == (byte)0x0 in getXmlString()
180 && data[2] == (byte)0xfe && data[3] == (byte)0xff) { in getXmlString()
184 } else if (data[0] == (byte)0xff && data[1] == (byte)0xfe in getXmlString()
185 && data[2] == (byte)0x0 && data[3] == (byte)0x0) { in getXmlString()
[all …]
/sdk/ddms/libs/ddmuilib/src/com/android/ddmuilib/
DScreenShotDialog.java108 GridData data; in createContents() local
117 data = new GridData(GridData.HORIZONTAL_ALIGN_CENTER); in createContents()
118 data.widthHint = 80; in createContents()
119 refresh.setLayoutData(data); in createContents()
138 data = new GridData(GridData.HORIZONTAL_ALIGN_CENTER); in createContents()
139 data.widthHint = 80; in createContents()
140 rotate.setLayoutData(data); in createContents()
155 data = new GridData(GridData.HORIZONTAL_ALIGN_CENTER); in createContents()
156 data.widthHint = 80; in createContents()
157 mSave.setLayoutData(data); in createContents()
[all …]
/sdk/emulator/qtools/
Ddecoder.cpp234 uint64_t data = *(reinterpret_cast<uint64_t*>(next_)); in Decode() local
235 uint8_t byte0 = data; in Decode()
236 data = bswap64(data); in Decode()
256 val64 = (val64 << 8) | ((data >> 48) & 0xffull); in Decode()
259 val64 = (val64 << 16) | ((data >> 40) & 0xffffull); in Decode()
262 val64 = (val64 << 24) | ((data >> 32) & 0xffffffull); in Decode()
265 val64 = (val64 << 32) | ((data >> 24) & 0xffffffffull); in Decode()
268 val64 = (val64 << 40) | ((data >> 16) & 0xffffffffffull); in Decode()
271 data = *(reinterpret_cast<uint64_t*>(&next_[1])); in Decode()
272 val64 = bswap64(data); in Decode()
/sdk/uiautomatorviewer/src/com/android/uiautomator/actions/
DImageHelper.java31 ImageData[] data = null; in loadImageDescriptorFromResource() local
33 data = new ImageLoader().load(is); in loadImageDescriptorFromResource()
36 if (data != null && data.length > 0) { in loadImageDescriptorFromResource()
37 return ImageDescriptor.createFromImageData(data[0]); in loadImageDescriptorFromResource()
/sdk/emulator/opengl/host/libs/Translator/GLcommon/
DGLESbuffer.cpp19 bool GLESbuffer::setBuffer(GLuint size,GLuint usage,const GLvoid* data) { in setBuffer() argument
28 if(data) { in setBuffer()
29 memcpy(m_data,data,size); in setBuffer()
38 bool GLESbuffer::setSubBuffer(GLint offset,GLuint size,const GLvoid* data) { in setSubBuffer() argument
40 memcpy(m_data+offset,data,size); in setSubBuffer()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/properties/
DLibraryProperties.java105 for (ItemData data : mItemDataList) {
106 if (data.project == project) {
191 ItemData data = (ItemData) selection.getData(); in LibraryProperties()
192 mItemDataList.remove(data); in LibraryProperties()
209 ItemData data = mItemDataList.remove(index); in LibraryProperties()
213 addItem(data.relativePath, data.project, index - 1); in LibraryProperties()
229 ItemData data = mItemDataList.remove(index); in LibraryProperties()
233 addItem(data.relativePath, data.project, index + 1); in LibraryProperties()
294 for (ItemData data : mItemDataList) { in save()
296 data.relativePath); in save()
[all …]

12345678910>>...13