Home
last modified time | relevance | path

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

12345678910>>...13

/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 …]
/development/samples/browseable/BasicMultitouch/src/com.example.android.basicmultitouch/
DTouchDisplayView.java72 TouchHistory data = sPool.acquire(); in obtain() local
73 if (data == null) { in obtain()
74 data = new TouchHistory(); in obtain()
77 data.setTouch(x, y, pressure); in obtain()
79 return data; in obtain()
154 TouchHistory data = TouchHistory.obtain(event.getX(0), event.getY(0), in onTouchEvent() local
156 data.label = "id: " + 0; in onTouchEvent()
163 mTouches.put(id, data); in onTouchEvent()
184 TouchHistory data = TouchHistory.obtain(event.getX(index), event.getY(index), in onTouchEvent() local
186 data.label = "id: " + id; in onTouchEvent()
[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/ndk/sources/android/libportable/common/include/
Depoll_portable.h29 epoll_data_t data; member
38 machine_epoll_event.data = event->data; in WRAP()
49 events->data = machine_epoll_event.data; in WRAP()
60 events->data = machine_epoll_event.data; in WRAP()
/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 …]
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()
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()
/development/samples/Support7Demos/src/com/example/android/supportv7/media/
DRemotePlayer.java58 public void onItemStatusChanged(Bundle data,
74 public void onSessionStatusChanged(Bundle data,
134 public void onResult(Bundle data, String sessionId, MediaSessionStatus sessionStatus, in play() argument
153 public void onError(String error, int code, Bundle data) { in play() argument
177 public void onResult(Bundle data, String sessionId, MediaSessionStatus sessionStatus, in getStatus() argument
195 public void onError(String error, int code, Bundle data) { in getStatus() argument
215 public void onResult(Bundle data, String sessionId, MediaSessionStatus sessionStatus) { in pause()
224 public void onError(String error, int code, Bundle data) { in pause()
241 public void onResult(Bundle data, String sessionId, MediaSessionStatus sessionStatus) { in resume()
250 public void onError(String error, int code, Bundle data) { in resume()
[all …]
/development/ndk/sources/android/ndk_helper/
Dshader.cpp33 std::vector<uint8_t> data; in CompileShader() local
34 if( !JNIHelper::GetInstance()->ReadFile( str_file_name, &data ) ) in CompileShader()
42 std::string str( data.begin(), data.end() ); in CompileShader()
43 std::string str_replacement_map( data.size(), ' ' ); in CompileShader()
117 std::vector<uint8_t>& data ) in CompileShader() argument
119 if( !data.size() ) in CompileShader()
122 const GLchar *source = (GLchar *) &data[0]; in CompileShader()
123 int32_t iSize = data.size(); in CompileShader()
131 std::vector<uint8_t> data; in CompileShader() local
132 bool b = JNIHelper::GetInstance()->ReadFile( strFileName, &data ); in CompileShader()
[all …]
/development/samples/browseable/MediaRouter/src/com.example.android.mediarouter/player/
DRemotePlayer.java58 public void onItemStatusChanged(Bundle data,
74 public void onSessionStatusChanged(Bundle data,
134 public void onResult(Bundle data, String sessionId, MediaSessionStatus sessionStatus, in play() argument
150 public void onError(String error, int code, Bundle data) { in play() argument
174 public void onResult(Bundle data, String sessionId, MediaSessionStatus sessionStatus, in getStatus() argument
192 public void onError(String error, int code, Bundle data) { in getStatus() argument
212 public void onResult(Bundle data, String sessionId, MediaSessionStatus sessionStatus) { in pause()
220 public void onError(String error, int code, Bundle data) { in pause()
237 public void onResult(Bundle data, String sessionId, MediaSessionStatus sessionStatus) { in resume()
245 public void onError(String error, int code, Bundle data) { in resume()
[all …]
/development/ndk/platforms/android-21/samples/native-codec/jni/
Dnative-codec-jni.cpp62 workerdata data = {-1, NULL, NULL, NULL, 0, false, false, false, false}; variable
227 data.fd = fd; in Java_com_example_nativecodec_NativeCodec_createStreamingMediaPlayer()
229 workerdata *d = &data; in Java_com_example_nativecodec_NativeCodec_createStreamingMediaPlayer()
283 mlooper->post(kMsgResume, &data); in Java_com_example_nativecodec_NativeCodec_setPlayingStreamingMediaPlayer()
285 mlooper->post(kMsgPause, &data); in Java_com_example_nativecodec_NativeCodec_setPlayingStreamingMediaPlayer()
296 mlooper->post(kMsgDecodeDone, &data, true /* flush */); in Java_com_example_nativecodec_NativeCodec_shutdown()
301 if (data.window) { in Java_com_example_nativecodec_NativeCodec_shutdown()
302 ANativeWindow_release(data.window); in Java_com_example_nativecodec_NativeCodec_shutdown()
303 data.window = NULL; in Java_com_example_nativecodec_NativeCodec_shutdown()
312 if (data.window) { in Java_com_example_nativecodec_NativeCodec_setSurface()
[all …]
/development/perftests/panorama/
DREADME.txt3 1) adb push $OUT/data/local/tmp/panorama_bench /data/local/tmp
4 2) adb push input /data/panorama_input
5 3) adb shell /data/local/tmp/panorama_bench /data/panorama_input/test /data/panorama.ppm
30 1) adb pull /data/panorama.ppm .
/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; …
/development/samples/training/ContactsList/src/com/example/android/contactslist/util/
DImageLoader.java72 public void loadImage(Object data, ImageView imageView) { in loadImage() argument
73 if (data == null) { in loadImage()
81 bitmap = mImageCache.getBitmapFromMemCache(String.valueOf(data)); in loadImage()
87 } else if (cancelPotentialWork(data, imageView)) { in loadImage()
92 task.execute(data); in loadImage()
132 protected abstract Bitmap processBitmap(Object data); in processBitmap() argument
142 final Object bitmapData = bitmapWorkerTask.data; in cancelWork()
154 public static boolean cancelPotentialWork(Object data, ImageView imageView) { in cancelPotentialWork() argument
158 final Object bitmapData = bitmapWorkerTask.data; in cancelPotentialWork()
159 if (bitmapData == null || !bitmapData.equals(data)) { in cancelPotentialWork()
[all …]
DImageCache.java101 public void addBitmapToCache(String data, Bitmap bitmap) { in addBitmapToCache() argument
102 if (data == null || bitmap == null) { in addBitmapToCache()
107 if (mMemoryCache != null && mMemoryCache.get(data) == null) { in addBitmapToCache()
108 mMemoryCache.put(data, bitmap); in addBitmapToCache()
118 public Bitmap getBitmapFromMemCache(String data) { in getBitmapFromMemCache() argument
120 final Bitmap memBitmap = mMemoryCache.get(data); in getBitmapFromMemCache()
/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/ndk/platforms/android-21/include/linux/
Dfirewire-cdev.h61 __u32 data[0]; member
72 __u32 data[0]; member
89 __u32 data[0]; member
121 __u32 data[0]; member
185 __u64 data; member
192 __u64 data; member
219 __u64 data; member
262 __u64 data; member
316 __u64 data; member
324 __u32 data[2]; member
/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/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/ApiDemos/src/com/example/android/apis/content/
DChangedContacts.java202 public void onLoadFinished(Loader<Cursor> cursorLoader, Cursor data) { in onLoadFinished() argument
208 mDisplayView.setText(data.getCount() + " change(s) since " + mSearchTime); in onLoadFinished()
210 mChangeAdapter.swapCursor(data); in onLoadFinished()
214 if (data.moveToNext()) { in onLoadFinished()
215 timestamp = data.getLong(data.getColumnIndex( in onLoadFinished()
217 data.moveToPrevious(); in onLoadFinished()
225 mDisplayView.setText(data.getCount() + " delete(s) since " + mSearchTime); in onLoadFinished()
227 mDeleteAdapter.swapCursor(new DeleteCursorWrapper(data)); in onLoadFinished()
228 if (data.moveToNext()) { in onLoadFinished()
229 timestamp = data.getLong(data.getColumnIndex( in onLoadFinished()
[all …]
/development/samples/browseable/BasicSyncAdapter/
D_index.jd8 This sample demonstrates using SyncAdapter to fetch background data for an app that
12 caches the data in a content provider. At runtime, the cached feed data is displayed
/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/
DImageWorker.java75 public void loadImage(Object data, ImageView imageView) { in loadImage() argument
76 if (data == null) { in loadImage()
83 value = mImageCache.getBitmapFromMemCache(String.valueOf(data)); in loadImage()
89 } else if (cancelPotentialWork(data, imageView)) { in loadImage()
91 final BitmapWorkerTask task = new BitmapWorkerTask(data, imageView); in loadImage()
169 protected abstract Bitmap processBitmap(Object data); in processBitmap() argument
199 public static boolean cancelPotentialWork(Object data, ImageView imageView) { in cancelPotentialWork() argument
205 if (bitmapData == null || !bitmapData.equals(data)) { in cancelPotentialWork()
208 Log.d(TAG, "cancelPotentialWork - cancelled work for " + data); in cancelPotentialWork()
242 public BitmapWorkerTask(Object data, ImageView imageView) { in BitmapWorkerTask() argument
[all …]
/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

12345678910>>...13