Home
last modified time | relevance | path

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

12345678910

/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/tools/repo_pull/
Dgerrit.py151 def _decode_xssi_json(data): argument
163 data = data.decode('utf-8')
166 if data[0:4] != ')]}\'':
167 raise ValueError('unexpected responsed content: ' + data)
168 data = data[4:]
171 return json.loads(data)
176 data = [
182 url = gerrit + '/a/changes/?' + urlencode(data)
191 def _make_json_post_request(url_opener, url, data, method='POST'): argument
200 data = json.dumps(data).encode('utf-8')
[all …]
/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/tools/winscope/src/dumps/
DDumpBase.ts18 data: any; property in DumpBase
21 constructor(data, files) {
22 this.data = data;
/development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/
DKeyboard.java45 private static String getLabel(String data) { in getLabel() argument
46 if ("SHI".equals(data)) { in getLabel()
48 } else if ("DEL".equals(data)) { in getLabel()
50 } else if ("SYM".equals(data)) { in getLabel()
52 } else if ("SPA".equals(data)) { in getLabel()
54 } else if ("ENT".equals(data)) { in getLabel()
57 return data; in getLabel()
114 String data = rawData.length() != NUM_STATES ? rawData : rawData.substring(mState, in mapKeys() local
116 softkey.setText(getLabel(data)); in mapKeys()
117 softkey.setOnClickListener(v -> handle(data)); in mapKeys()
[all …]
DDecoder.java31 void decodeAndApply(String data) { in decodeAndApply() argument
32 if ("DEL".equals(data)) { in decodeAndApply()
34 } else if ("ENT".equals(data)) { in decodeAndApply()
37 } else if ("SPA".equals(data)) { in decodeAndApply()
41 mInputConnection.commitText(data, 1); in decodeAndApply()
/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/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/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/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/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/vndk/tools/definition-tool/tools/
Dupdate_dataset.py36 data = json.load(fp)
42 for name, module in data.items():
72 def remove_stale_modules(data, installed_paths): argument
74 for path, row in data.items():
99 data = dict()
105 data[path] = [path, tag, comments]
109 data = remove_stale_modules(data, installed_paths)
112 for path, row in data.items():
119 data[path][1] = tag
121 data[path][2] = comments
[all …]
/development/tools/winscope/src/traces/
DTraceBase.ts26 data: Object; property in Trace
30 constructor(data: any, timeline: Number[], files: any[]) {
32 this.data = data;
DProtoLog.ts29 super(protoLogFile.data, protoLogFile.timeline, files);
87 function formatText(messageFormat, data) {
89 const strParams = data.strParams;
91 const sint64Params = data.sint64Params;
93 const doubleParams = data.doubleParams;
95 const booleanParams = data.booleanParams;
/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 …]
/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/samples/ApiDemos/src/com/example/android/mmslib/pdu/
DEncodedStringValue.java52 public EncodedStringValue(int charset, byte[] data) { in EncodedStringValue() argument
54 if(null == data) { in EncodedStringValue()
59 mData = new byte[data.length]; in EncodedStringValue()
60 System.arraycopy(data, 0, mData, 0, data.length); in EncodedStringValue()
69 public EncodedStringValue(byte[] data) { in EncodedStringValue() argument
70 this(CharacterSets.DEFAULT_CHARSET, data); in EncodedStringValue()
73 public EncodedStringValue(String data) { in EncodedStringValue() argument
75 mData = data.getBytes(CharacterSets.DEFAULT_CHARSET_NAME); in EncodedStringValue()

12345678910