Home
last modified time | relevance | path

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

12345678

/development/tools/axl/
Daxl.py35 def write(self, data): argument
36 self.log("BaseProtocol.write()", len(data), data)
37 return self.transport.write(data)
39 def dataReceived(self, data): argument
40 self.log("BaseProtocol.dataReceived()", len(data), data)
69 def dataReceived(self, data): argument
70 BaseProtocol.dataReceived(self, data)
76 def dataReceived(self, data): argument
77 BaseProtocol.dataReceived(self, data)
83 def dataReceived(self, data): argument
[all …]
DudpEater.py40 data, address = svrsocket.recvfrom(8192)
41 print 'Received packet', count, data[:34]
/development/tools/emulator/system/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 …]
/development/samples/TicTacToeLib/src/com/example/android/tictactoe/library/
DGameActivity.java153 State[] data = mGameView.getData(); in handleMessage() local
159 if (data[index] == State.EMPTY) { in handleMessage()
188 State[] data = mGameView.getData(); in checkGameFinished() local
197 if (data[k] != State.EMPTY && data[k] == data[k+1] && data[k] == data[k+2]) { in checkGameFinished()
200 if (full && (data[k] == State.EMPTY || in checkGameFinished()
201 data[k+1] == State.EMPTY || in checkGameFinished()
202 data[k+2] == State.EMPTY)) { in checkGameFinished()
209 if (data[i] != State.EMPTY && data[i] == data[i+3] && data[i] == data[i+6]) { in checkGameFinished()
215 if (data[0] != State.EMPTY && data[0] == data[1+3] && data[0] == data[2+6]) { in checkGameFinished()
217 } else if (data[2] != State.EMPTY && data[2] == data[1+3] && data[2] == data[0+6]) { in checkGameFinished()
/development/samples/USB/AdbTest/src/com/android/adb/
DAdbMessage.java51 public void set(int command, int arg0, int arg1, byte[] data) { in set() argument
55 mMessageBuffer.putInt(12, (data == null ? 0 : data.length)); in set()
56 mMessageBuffer.putInt(16, (data == null ? 0 : checksum(data))); in set()
58 if (data != null) { in set()
59 mDataBuffer.put(data, 0, data.length); in set()
66 public void set(int command, int arg0, int arg1, String data) { in set() argument
68 data += "\0"; in set()
69 set(command, arg0, arg1, data.getBytes()); in set()
160 private static int checksum(byte[] data) { in checksum() argument
162 for (int i = 0; i < data.length; i++) { in checksum()
[all …]
/development/samples/BackupRestore/src/com/example/android/backuprestore/
DMultiRecordExampleAgent.java62 public void onBackup(ParcelFileDescriptor oldState, BackupDataOutput data, in onBackup() argument
112 writeBackupEntity(data, bufStream, FILLING_KEY); in onBackup()
118 writeBackupEntity(data, bufStream, MAYO_KEY); in onBackup()
124 writeBackupEntity(data, bufStream, TOMATO_KEY); in onBackup()
146 void writeBackupEntity(BackupDataOutput data, ByteArrayOutputStream bufStream, String key) in writeBackupEntity() argument
149 data.writeEntityHeader(key, buf.length); in writeBackupEntity()
150 data.writeEntityData(buf, buf.length); in writeBackupEntity()
160 public void onRestore(BackupDataInput data, int appVersionCode, in onRestore() argument
165 while (data.readNextHeader()) { in onRestore()
166 String key = data.getKey(); in onRestore()
[all …]
DFileHelperExampleAgent.java77 public void onBackup(ParcelFileDescriptor oldState, BackupDataOutput data, in onBackup() argument
81 super.onBackup(oldState, data, newState); in onBackup()
90 public void onRestore(BackupDataInput data, int appVersionCode, in onRestore() argument
95 super.onRestore(data, appVersionCode, newState); in onRestore()
DExampleAgent.java86 public void onBackup(ParcelFileDescriptor oldState, BackupDataOutput data, in onBackup() argument
130 data.writeEntityHeader(APP_DATA_KEY, len); in onBackup()
131 data.writeEntityData(buffer, len); in onBackup()
208 public void onRestore(BackupDataInput data, int appVersionCode, in onRestore() argument
212 while (data.readNextHeader()) { in onRestore()
213 String key = data.getKey(); in onRestore()
214 int dataSize = data.getDataSize(); in onRestore()
221 data.readEntityData(dataBuf, 0, dataSize); in onRestore()
241 data.skipEntityData(); in onRestore()
/development/samples/training/bitmapfun/src/com/example/android/bitmapfun/util/
DImageCache.java147 public void addBitmapToCache(String data, Bitmap bitmap) { in addBitmapToCache() argument
148 if (data == null || bitmap == null) { in addBitmapToCache()
153 if (mMemoryCache != null && mMemoryCache.get(data) == null) { in addBitmapToCache()
154 mMemoryCache.put(data, bitmap); in addBitmapToCache()
158 if (mDiskCache != null && !mDiskCache.containsKey(data)) { in addBitmapToCache()
159 mDiskCache.put(data, bitmap); in addBitmapToCache()
169 public Bitmap getBitmapFromMemCache(String data) { in getBitmapFromMemCache() argument
171 final Bitmap memBitmap = mMemoryCache.get(data); in getBitmapFromMemCache()
188 public Bitmap getBitmapFromDiskCache(String data) { in getBitmapFromDiskCache() argument
190 return mDiskCache.get(data); in getBitmapFromDiskCache()
DImageWorker.java67 public void loadImage(Object data, ImageView imageView) { in loadImage() argument
71 bitmap = mImageCache.getBitmapFromMemCache(String.valueOf(data)); in loadImage()
77 } else if (cancelPotentialWork(data, imageView)) { in loadImage()
82 task.execute(data); in loadImage()
159 protected abstract Bitmap processBitmap(Object data); in processBitmap() argument
166 final Object bitmapData = bitmapWorkerTask.data; in cancelWork()
178 public static boolean cancelPotentialWork(Object data, ImageView imageView) { in cancelPotentialWork() argument
182 final Object bitmapData = bitmapWorkerTask.data; in cancelPotentialWork()
183 if (bitmapData == null || !bitmapData.equals(data)) { in cancelPotentialWork()
186 Log.d(TAG, "cancelPotentialWork - cancelled work for " + data); in cancelPotentialWork()
[all …]
/development/ndk/platforms/android-3/include/linux/
Dinterrupt.h93 void *data; member
104 unsigned long data; member
107 #define DECLARE_TASKLET(name, func, data) struct tasklet_struct name = { NULL, 0, ATOMIC_INIT(0), … argument
109 …ne DECLARE_TASKLET_DISABLED(name, func, data) struct tasklet_struct name = { NULL, 0, ATOMIC_INIT… argument
Dworkqueue.h25 void *data; member
34 #define __WORK_INITIALIZER(n, f, d) { .entry = { &(n).entry, &(n).entry }, .func = (f), .data
38 #define PREPARE_WORK(_work, _func, _data) do { (_work)->func = _func; (_work)->data = _data; …
Dioprio.h23 #define IOPRIO_PRIO_VALUE(class, data) (((class) << IOPRIO_CLASS_SHIFT) | data) argument
Dproc_fs.h29 int count, int *eof, void *data);
31 unsigned long count, void *data);
48 void *data; member
/development/samples/BrowserPlugin/jni/
Dmain.cpp341 if (evt->data.draw.model == kBitmap_ANPDrawingModel) { in NPP_HandleEvent()
344 if (evt->data.draw.data.bitmap.format != currentFormat) { in NPP_HandleEvent()
345 currentFormat = evt->data.draw.data.bitmap.format; in NPP_HandleEvent()
348 evt->data.draw.clip.left, in NPP_HandleEvent()
349 evt->data.draw.clip.top, in NPP_HandleEvent()
350 evt->data.draw.clip.right, in NPP_HandleEvent()
351 evt->data.draw.clip.bottom, in NPP_HandleEvent()
352 evt->data.draw.data.bitmap.format); in NPP_HandleEvent()
360 evt->data.key.action, in NPP_HandleEvent()
361 evt->data.key.nativeCode, in NPP_HandleEvent()
[all …]
Djni-bridge.cpp34 event.data.other[0] = kSurfaceCreated_CustomEvent; in surfaceCreated()
44 event.data.other[0] = kSurfaceChanged_CustomEvent; in surfaceChanged()
45 event.data.other[1] = width; in surfaceChanged()
46 event.data.other[2] = height; in surfaceChanged()
56 event.data.other[0] = kSurfaceDestroyed_CustomEvent; in surfaceDestroyed()
/development/ndk/platforms/android-9/include/android/
Dstorage_manager.h98 …def void (*AStorageManager_obbCallbackFunc)(const char* filename, const int32_t state, void* data);
104 AStorageManager_obbCallbackFunc cb, void* data);
110 AStorageManager_obbCallbackFunc cb, void* data);
/development/ndk/platforms/android-9/arch-mips/include/asm/mach-ip22/
Dds1286.h24 #define rtc_write(data, reg) do { hpc3c0->rtcregs[(reg)] = (data); } while(0) argument
/development/samples/SampleSyncAdapter/samplesyncadapter_server/
Ddashboard.py83 data = ContactForm(data=self.request.POST)
84 if data.is_valid():
86 entity = data.save(commit=False)
91 self.send_form('Add Contact', '/add_contact', -1, None, data)
110 data = ContactForm(data=self.request.POST, instance=contact)
111 if data.is_valid():
113 entity = data.save(commit=False)
119 self.send_form('Edit Contact', '/edit_contact', id, contact.handle, data)
/development/apps/CustomLocale/src/com/android/customlocale2/
DNewLocaleDialog.java66 Intent data = new Intent(NewLocaleDialog.this, NewLocaleDialog.class); in onClick() local
67 data.putExtra(INTENT_EXTRA_LOCALE, locale); in onClick()
68 data.putExtra(INTENT_EXTRA_SELECT, select); in onClick()
69 setResult(RESULT_OK, data); in onClick()
/development/samples/BrowserPlugin/jni/animation/
DAnimationPlugin.cpp143 switch (evt->data.draw.model) { in handleEvent()
146 int width = evt->data.draw.data.surface.width; in handleEvent()
147 int height = evt->data.draw.data.surface.height; in handleEvent()
156 if (kDown_ANPTouchAction == evt->data.touch.action) { in handleEvent()
159 else if (kDoubleTap_ANPTouchAction == evt->data.touch.action) { in handleEvent()
/development/ndk/platforms/android-9/arch-mips/include/
Dlink.h25 dl_iterate_phdr(int (*cb)(struct dl_phdr_info *info, size_t size, void *data),
26 void *data);
/development/tools/emulator/system/qemud/
Dqemud.c160 hex2int( const uint8_t* data, int len ) in hex2int() argument
164 int c = *data++; in hex2int()
399 ev.data.ptr = hook; in looper_grow()
428 ev.data.ptr = hook; in looper_add()
470 ev.data.ptr = hook; in looper_enable()
495 ev.data.ptr = hook; in looper_disable()
526 LoopHook* hook = l->events[n].data.ptr; in looper_loop()
555 ev.data.ptr = hook; in looper_loop()
563 quote( const void* data, int len ) in quote() argument
565 const char* p = data; in quote()
[all …]
/development/ndk/platforms/android-3/include/linux/sunrpc/
Dgss_asn1.h34 #define g_OID_equal(o1,o2) (((o1)->len == (o2)->len) && (memcmp((o1)->data,(o2)->data,(int) (o1…
/development/samples/BrowserPlugin/jni/form/
DFormPlugin.cpp207 switch (evt->data.draw.model) { in handleEvent()
209 drawPlugin(evt->data.draw.data.bitmap, evt->data.draw.clip); in handleEvent()
217 if (evt->data.lifecycle.action == kLoseFocus_ANPLifecycleAction) { in handleEvent()
232 else if (evt->data.lifecycle.action == kGainFocus_ANPLifecycleAction) { in handleEvent()
242 int x = evt->data.mouse.x; in handleEvent()
243 int y = evt->data.mouse.y; in handleEvent()
244 if (kDown_ANPMouseAction == evt->data.mouse.action) { in handleEvent()
262 if (evt->data.key.action == kDown_ANPKeyAction) { in handleEvent()
265 if (evt->data.key.nativeCode >= kDpadUp_ANPKeyCode in handleEvent()
266 && evt->data.key.nativeCode <= kDpadCenter_ANPKeyCode) { in handleEvent()
[all …]

12345678