Home
last modified time | relevance | path

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

12345678910>>...15

/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/samples/browseable/MidiScope/src/com.example.android.common.midi/synth/
DSynthEngine.java70 public void onSend(byte[] data, int offset, int count, long timestamp) in onSend() argument
73 if (!MidiConstants.isAllActiveSensing(data, offset, count)) { in onSend()
74 mEventScheduler.getReceiver().send(data, offset, count, in onSend()
82 public void onSend(byte[] data, int offset, int count, long timestamp) in onSend() argument
84 byte command = (byte) (data[0] & MidiConstants.STATUS_COMMAND_MASK); in onSend()
85 int channel = (byte) (data[0] & MidiConstants.STATUS_CHANNEL_MASK); in onSend()
88 noteOff(channel, data[1], data[2]); in onSend()
91 noteOn(channel, data[1], data[2]); in onSend()
94 int bend = (data[2] << 7) + data[1]; in onSend()
98 mProgram = data[1]; in onSend()
[all …]
/development/samples/browseable/MidiSynth/src/com.example.android.common.midi/synth/
DSynthEngine.java70 public void onSend(byte[] data, int offset, int count, long timestamp) in onSend() argument
73 if (!MidiConstants.isAllActiveSensing(data, offset, count)) { in onSend()
74 mEventScheduler.getReceiver().send(data, offset, count, in onSend()
82 public void onSend(byte[] data, int offset, int count, long timestamp) in onSend() argument
84 byte command = (byte) (data[0] & MidiConstants.STATUS_COMMAND_MASK); in onSend()
85 int channel = (byte) (data[0] & MidiConstants.STATUS_CHANNEL_MASK); in onSend()
88 noteOff(channel, data[1], data[2]); in onSend()
91 noteOn(channel, data[1], data[2]); in onSend()
94 int bend = (data[2] << 7) + data[1]; in onSend()
98 mProgram = data[1]; in onSend()
[all …]
/development/samples/Support7Demos/src/com/example/android/supportv7/media/
DRemotePlayer.java56 public void onItemStatusChanged(Bundle data,
72 public void onSessionStatusChanged(Bundle data,
132 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()
221 public void onError(String error, int code, Bundle data) { in pause()
238 public void onResult(Bundle data, String sessionId, MediaSessionStatus sessionStatus) { in resume()
247 public void onError(String error, int code, Bundle data) { in resume()
[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 …]
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/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/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/MidiSynth/src/com.example.android.common.midi/
DMidiEventScheduler.java51 public byte[] data; field in MidiEventScheduler.MidiEvent
55 data = new byte[count]; in MidiEvent()
60 data = new byte[count]; in MidiEvent()
61 System.arraycopy(msg, offset, data, 0, count); in MidiEvent()
69 text += data[i] + ", "; in toString()
88 System.arraycopy(msg, offset, event.data, 0, count); in createScheduledEvent()
105 if (midiEvent.data.length == POOL_EVENT_SIZE) { in addEventToPool()
DMidiFramer.java49 public void onSend(byte[] data, int offset, int count, long timestamp) in onSend() argument
54 final byte currentByte = data[offset]; in onSend()
69 mReceiver.send(data, sysExStartOffset, in onSend()
83 mReceiver.send(data, sysExStartOffset, in onSend()
87 mReceiver.send(data, offset, 1, timestamp); in onSend()
107 mReceiver.send(data, sysExStartOffset, in onSend()
/development/samples/browseable/MidiScope/src/com.example.android.common.midi/
DMidiEventScheduler.java51 public byte[] data; field in MidiEventScheduler.MidiEvent
55 data = new byte[count]; in MidiEvent()
60 data = new byte[count]; in MidiEvent()
61 System.arraycopy(msg, offset, data, 0, count); in MidiEvent()
69 text += data[i] + ", "; in toString()
88 System.arraycopy(msg, offset, event.data, 0, count); in createScheduledEvent()
105 if (midiEvent.data.length == POOL_EVENT_SIZE) { in addEventToPool()
DMidiFramer.java49 public void onSend(byte[] data, int offset, int count, long timestamp) in onSend() argument
54 final byte currentByte = data[offset]; in onSend()
69 mReceiver.send(data, sysExStartOffset, in onSend()
83 mReceiver.send(data, sysExStartOffset, in onSend()
87 mReceiver.send(data, offset, 1, timestamp); in onSend()
107 mReceiver.send(data, sysExStartOffset, in onSend()
/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/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/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
/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/
DImageWorker.java76 public void loadImage(Object data, ImageView imageView, OnImageLoadedListener listener) { in loadImage() argument
77 if (data == null) { in loadImage()
84 value = mImageCache.getBitmapFromMemCache(String.valueOf(data)); in loadImage()
93 } else if (cancelPotentialWork(data, imageView)) { in loadImage()
95 final BitmapWorkerTask task = new BitmapWorkerTask(data, imageView, listener); in loadImage()
119 public void loadImage(Object data, ImageView imageView) { in loadImage() argument
120 loadImage(data, imageView, null); in loadImage()
188 protected abstract Bitmap processBitmap(Object data); in processBitmap() argument
218 public static boolean cancelPotentialWork(Object data, ImageView imageView) { in cancelPotentialWork() argument
224 if (bitmapData == null || !bitmapData.equals(data)) { in cancelPotentialWork()
[all …]
/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/samples/browseable/MidiScope/src/com.example.android.midiscope/
DMidiPrinter.java62 public static String formatBytes(byte[] data, int offset, int count) { in formatBytes() argument
65 sb.append(String.format(" %02X", data[offset + i])); in formatBytes()
70 public static String formatMessage(byte[] data, int offset, int count) { in formatMessage() argument
72 byte statusByte = data[offset++]; in formatMessage()
85 sb.append(data[offset++]); in formatMessage()

12345678910>>...15