Home
last modified time | relevance | path

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

12345678910>>...21

/packages/apps/Email/src/org/apache/commons/io/
DEndianUtils.java118 public static void writeSwappedShort(byte[] data, int offset, short value) { in writeSwappedShort() argument
119 data[ offset + 0 ] = (byte)( ( value >> 0 ) & 0xff ); in writeSwappedShort()
120 data[ offset + 1 ] = (byte)( ( value >> 8 ) & 0xff ); in writeSwappedShort()
130 public static short readSwappedShort(byte[] data, int offset) { in readSwappedShort() argument
131 return (short)( ( ( data[ offset + 0 ] & 0xff ) << 0 ) + in readSwappedShort()
132 ( ( data[ offset + 1 ] & 0xff ) << 8 ) ); in readSwappedShort()
143 public static int readSwappedUnsignedShort(byte[] data, int offset) { in readSwappedUnsignedShort() argument
144 return ( ( ( data[ offset + 0 ] & 0xff ) << 0 ) + in readSwappedUnsignedShort()
145 ( ( data[ offset + 1 ] & 0xff ) << 8 ) ); in readSwappedUnsignedShort()
155 public static void writeSwappedInteger(byte[] data, int offset, int value) { in writeSwappedInteger() argument
[all …]
DIOUtils.java628 public static void write(byte[] data, OutputStream output) in write() argument
630 if (data != null) { in write()
631 output.write(data); in write()
648 public static void write(byte[] data, Writer output) throws IOException { in write() argument
649 if (data != null) { in write()
650 output.write(new String(data)); in write()
671 public static void write(byte[] data, Writer output, String encoding) in write() argument
673 if (data != null) { in write()
675 write(data, output); in write()
677 output.write(new String(data, encoding)); in write()
[all …]
DHexDump.java59 public static void dump(byte[] data, long offset, in dump() argument
64 if ((index < 0) || (index >= data.length)) { in dump()
67 + data.length); in dump()
75 for (int j = index; j < data.length; j += 16) { in dump()
76 int chars_read = data.length - j; in dump()
84 dump(buffer, data[k + j]); in dump()
91 if ((data[k + j] >= ' ') && (data[k + j] < 127)) { in dump()
92 buffer.append((char) data[k + j]); in dump()
/packages/experimental/procstatlog/
Dprocstatlog.c57 struct data { struct
72 static void read_data(struct data *data, const char *filename) { in read_data() argument
74 data->name = strdup(filename); in read_data()
77 data->value = NULL; in read_data()
85 data->value = NULL; in read_data()
91 data->value = malloc(len + 1); in read_data()
92 memcpy(data->value, buf, len); in read_data()
93 data->value[len] = '\0'; in read_data()
105 struct data *stats, int stats_count) { in read_lines()
143 struct data *data = &stats[num++]; in read_lines() local
[all …]
/packages/providers/MediaProvider/tools/genfiles/
Dgenfiles.sh57 while read format mediatype mimetype data;
62 echo "cat /storage/sdcard0/proto.jpg > \"$data\"" >> $CPFILES
66 echo "cat /storage/sdcard0/proto.png > \"$data\"" >> $CPFILES
70 echo "cat /storage/sdcard0/proto.gif > \"$data\"" >> $CPFILES
74 echo "cat /storage/sdcard0/proto.txt > \"$data\"" >> $CPFILES
78 echo "cat /storage/sdcard0/proto.html > \"$data\"" >> $CPFILES
82 echo "cat /storage/sdcard0/proto.mp3 > \"$data\"" >> $CPFILES
86 echo "cat /storage/sdcard0/proto.wav > \"$data\"" >> $CPFILES
90 echo "cat /storage/sdcard0/proto.m4v > \"$data\"" >> $CPFILES
94 echo "cat /storage/sdcard0/proto.m4v > \"$data\"" >> $CPFILES
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DGallery.java35 import com.android.gallery3d.data.DataManager;
36 import com.android.gallery3d.data.MediaItem;
37 import com.android.gallery3d.data.MediaSet;
38 import com.android.gallery3d.data.Path;
104 Bundle data = new Bundle(); in startDefaultPage() local
105 data.putString(AlbumSetPage.KEY_MEDIA_PATH, in startDefaultPage()
107 getStateManager().startState(AlbumSetPage.class, data); in startDefaultPage()
115 Bundle data = intent.getExtras() != null in startGetContent() local
118 data.putBoolean(KEY_GET_CONTENT, true); in startGetContent()
120 data.putInt(KEY_TYPE_BITS, typeBits); in startGetContent()
[all …]
DStateManager.java51 Bundle data) { in startState() argument
65 state.initialize(mActivity, data); in startState()
67 mStack.push(new StateEntry(data, state)); in startState()
68 state.onCreate(data, null); in startState()
73 int requestCode, Bundle data) { in startStateForResult() argument
81 state.initialize(mActivity, data); in startStateForResult()
95 mStack.push(new StateEntry(data, state)); in startStateForResult()
96 state.onCreate(data, null); in startStateForResult()
126 public void notifyActivityResult(int requestCode, int resultCode, Intent data) { in notifyActivityResult() argument
127 getTopState().onStateResult(requestCode, resultCode, data); in notifyActivityResult()
[all …]
DAlbumPage.java36 import com.android.gallery3d.data.DataManager;
37 import com.android.gallery3d.data.MediaDetails;
38 import com.android.gallery3d.data.MediaItem;
39 import com.android.gallery3d.data.MediaObject;
40 import com.android.gallery3d.data.MediaSet;
41 import com.android.gallery3d.data.MtpDevice;
42 import com.android.gallery3d.data.Path;
230 Bundle data = new Bundle(getData()); in onUpPressed() local
231 data.putString(AlbumSetPage.KEY_MEDIA_PATH, mParentMediaSetString); in onUpPressed()
233 this, AlbumSetPage.class, data); in onUpPressed()
[all …]
DAlbumSetPage.java38 import com.android.gallery3d.data.DataManager;
39 import com.android.gallery3d.data.MediaDetails;
40 import com.android.gallery3d.data.MediaItem;
41 import com.android.gallery3d.data.MediaObject;
42 import com.android.gallery3d.data.MediaSet;
43 import com.android.gallery3d.data.Path;
251 Bundle data = new Bundle(getData()); in pickAlbum() local
254 data.putIntArray(AlbumPage.KEY_SET_CENTER, center); in pickAlbum()
262 data.putString(AlbumSetPage.KEY_MEDIA_PATH, mediaPath); in pickAlbum()
264 AlbumSetPage.class, REQUEST_DO_ANIMATION, data); in pickAlbum()
[all …]
/packages/apps/Email/src/org/apache/james/mime4j/field/address/parser/
DAddressListParserVisitor.java7 public Object visit(SimpleNode node, Object data); in visit() argument
8 public Object visit(ASTaddress_list node, Object data); in visit() argument
9 public Object visit(ASTaddress node, Object data); in visit() argument
10 public Object visit(ASTmailbox node, Object data); in visit() argument
11 public Object visit(ASTname_addr node, Object data); in visit() argument
12 public Object visit(ASTgroup_body node, Object data); in visit() argument
13 public Object visit(ASTangle_addr node, Object data); in visit() argument
14 public Object visit(ASTroute node, Object data); in visit() argument
15 public Object visit(ASTphrase node, Object data); in visit() argument
16 public Object visit(ASTaddr_spec node, Object data); in visit() argument
[all …]
/packages/apps/Email/src/com/android/email/activity/setup/
DSetupData.java139 SetupData data = getInstance(); in setPolicy() local
140 data.mPolicy = policy; in setPolicy()
141 data.mAccount.mPolicy = policy; in setPolicy()
169 SetupData data = getInstance(); in init() local
170 data.commonInit(); in init()
171 data.mFlowMode = flowMode; in init()
175 SetupData data = getInstance(); in init() local
176 data.commonInit(); in init()
177 data.mFlowMode = flowMode; in init()
178 data.mAccount = account; in init()
[all …]
/packages/apps/Settings/src/com/android/settings/net/
DChartDataLoader.java88 final ChartData data = new ChartData(); in loadInBackground() local
89 data.network = mSession.getHistoryForNetwork(template, fields); in loadInBackground()
96 data.detailDefault = collectHistoryForUid( in loadInBackground()
97 template, uid, SET_DEFAULT, data.detailDefault); in loadInBackground()
98 data.detailForeground = collectHistoryForUid( in loadInBackground()
99 template, uid, SET_FOREGROUND, data.detailForeground); in loadInBackground()
103 data.detail = new NetworkStatsHistory(data.detailForeground.getBucketDuration()); in loadInBackground()
104 data.detail.recordEntireHistory(data.detailDefault); in loadInBackground()
105 data.detail.recordEntireHistory(data.detailForeground); in loadInBackground()
107 data.detailDefault = new NetworkStatsHistory(HOUR_IN_MILLIS); in loadInBackground()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DBytesBufferPool.java17 package com.android.gallery3d.data;
31 public byte[] data; field in BytesBufferPool.BytesBuffer
36 this.data = new byte[capacity]; in BytesBuffer()
44 int capacity = data.length; in readFrom()
47 int rc = fis.read(data, length, step); in readFrom()
52 byte[] newData = new byte[data.length * 2]; in readFrom()
53 System.arraycopy(data, 0, newData, 0, data.length); in readFrom()
54 data = newData; in readFrom()
55 capacity = data.length; in readFrom()
80 if (buffer.data.length != mBufferSize) return; in recycle()
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/
Dndfdic.c75 static NJ_UINT16 yomi_strcmp_forward(NJ_DIC_HANDLE hdl, NJ_UINT8 *data, NJ_CHAR *yomi);
80 NJ_UINT8 *data; in search_data() local
88 data = STEM_AREA_TOP_ADDR(loctset->loct.handle) + offset; in search_data()
91 data += DATA_SIZE; in search_data()
95 if (data >= STRS_AREA_TOP_ADDR(loctset->loct.handle)) { in search_data()
106 i = (STRS_AREA_TOP_ADDR(loctset->loct.handle) - data) / DATA_SIZE; in search_data()
109 if (njd_connect_test(condition, DATA_FHINSI(data), DATA_BHINSI(data))) { in search_data()
120 if (yomi_strcmp_forward(loctset->loct.handle, data, condition->yomi)) { in search_data()
141 data += DATA_SIZE; in search_data()
201 static NJ_UINT16 yomi_strcmp_forward(NJ_DIC_HANDLE hdl, NJ_UINT8 *data, NJ_CHAR *yomi) in yomi_strcmp_forward() argument
[all …]
/packages/apps/Launcher2/src/com/android/launcher2/
DAllAppsList.java37 public ArrayList<ApplicationInfo> data = field in AllAppsList
63 if (findActivity(data, info.componentName)) { in add()
66 data.add(info); in add()
71 data.clear(); in clear()
79 return data.size(); in size()
83 return data.get(index); in get()
103 final List<ApplicationInfo> data = this.data; in removePackage() local
104 for (int i = data.size() - 1; i >= 0; i--) { in removePackage()
105 ApplicationInfo info = data.get(i); in removePackage()
109 data.remove(i); in removePackage()
[all …]
DUninstallShortcutReceiver.java49 Intent data; field in UninstallShortcutReceiver.PendingUninstallShortcutInfo
52 data = rawData; in PendingUninstallShortcutInfo()
56 public void onReceive(Context context, Intent data) { in onReceive() argument
57 if (!ACTION_UNINSTALL_SHORTCUT.equals(data.getAction())) { in onReceive()
61 PendingUninstallShortcutInfo info = new PendingUninstallShortcutInfo(data); in onReceive()
87 final Intent data = pendingInfo.data; in processUninstallShortcut() local
91 removeShortcut(context, data, sharedPrefs); in processUninstallShortcut()
95 private static void removeShortcut(Context context, Intent data, in removeShortcut() argument
97 Intent intent = data.getParcelableExtra(Intent.EXTRA_SHORTCUT_INTENT); in removeShortcut()
98 String name = data.getStringExtra(Intent.EXTRA_SHORTCUT_NAME); in removeShortcut()
[all …]
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DLocalSource.java80 AlbumData data = foundAlbums.get(id); in findAlbums() local
82 data = new AlbumData(); in findAlbums()
83 data.id = id; in findAlbums()
84 data.account = mLocalSourceName; in findAlbums()
87 data.thumbnailUrl = cursor.getString(dataIndex); in findAlbums()
91 data.title = cursor.getString(nameIndex); in findAlbums()
93 data.title = mUnknownAlbumName; in findAlbums()
96 log(TAG, data.title + " found"); in findAlbums()
97 foundAlbums.put(id, data); in findAlbums()
101 data.updated = (data.updated == 0 ? in findAlbums()
[all …]
DStockSource.java54 AlbumData data = new AlbumData(); in findAlbums() local
55 data.id = ALBUM_ID; in findAlbums()
56 data.account = mStockPhotoName; in findAlbums()
57 data.title = mStockPhotoName; in findAlbums()
58 mAlbumList.add(data); in findAlbums()
68 ImageData data = new ImageData(); in findImages() local
69 data.id = Integer.toString(PHOTOS[i]); in findImages()
70 mImageList.add(data); in findImages()
77 protected InputStream getStream(ImageData data, int longSide) { in getStream() argument
80 log(TAG, "opening:" + data.id); in getStream()
[all …]
DPicasaSource.java185 ImageData data = new ImageData(); in findImages() local
186 data.id = cursor.getString(idIndex); in findImages()
189 data.url = cursor.getString(urlIndex); in findImages()
192 foundImages.offer(data); in findImages()
336 AlbumData data = foundAlbums.get(id); in findAlbums() local
337 if (data == null) { in findAlbums()
338 data = new AlbumData(); in findAlbums()
339 data.id = id; in findAlbums()
340 data.account = account; in findAlbums()
343 data.title = mPostsAlbumName; in findAlbums()
[all …]
/packages/apps/Nfc/nci/jni/
DRouteDataSet.cpp340 RouteDataForProtocol* data = new RouteDataForProtocol; in importProtocolRoute() local
348 data->mProtocol = NFA_PROTOCOL_MASK_T1T; in importProtocolRoute()
350 data->mProtocol = NFA_PROTOCOL_MASK_T2T; in importProtocolRoute()
352 data->mProtocol = NFA_PROTOCOL_MASK_T3T; in importProtocolRoute()
354 data->mProtocol = NFA_PROTOCOL_MASK_ISO_DEP; in importProtocolRoute()
356 ALOGD_IF (sDebug, "%s: %s=0x%X", fn, id, data->mProtocol); in importProtocolRoute()
362 data->mNfaEeHandle = strtol ((char*) value, NULL, 16); in importProtocolRoute()
364 data->mNfaEeHandle = data->mNfaEeHandle | NFA_HANDLE_GROUP_EE; in importProtocolRoute()
365 ALOGD_IF (sDebug, "%s: %s=0x%X", fn, secElem, data->mNfaEeHandle); in importProtocolRoute()
371 data->mSwitchOn = (xmlStrcmp (value, trueString) == 0); in importProtocolRoute()
[all …]
/packages/apps/Mms/src/com/android/mms/ui/
DAttachmentTypeSelectorAdapter.java53 List<IconListItem> data = new ArrayList<IconListItem>(7); in getData() local
54 addItem(data, context.getString(R.string.attach_image), in getData()
57 addItem(data, context.getString(R.string.attach_take_photo), in getData()
60 addItem(data, context.getString(R.string.attach_video), in getData()
63 addItem(data, context.getString(R.string.attach_record_video), in getData()
67 addItem(data, context.getString(R.string.attach_sound), in getData()
71 addItem(data, context.getString(R.string.attach_record_sound), in getData()
75 addItem(data, context.getString(R.string.attach_slideshow), in getData()
79 return data; in getData()
82 protected static void addItem(List<IconListItem> data, String title, in addItem() argument
[all …]
/packages/apps/Exchange/tests/src/com/android/exchange/adapter/
DCalendarSyncAdapterTests.java252 s.data(Tags.CALENDAR_ATTENDEE_EMAIL, "frederick" + num + in addAttendeesToSerializer()
254 s.data(Tags.CALENDAR_ATTENDEE_TYPE, "1"); in addAttendeesToSerializer()
255 s.data(Tags.CALENDAR_ATTENDEE_NAME, "Frederick" + num + " Flintstone, III"); in addAttendeesToSerializer()
263 s.data(Tags.CALENDAR_ATTENDEE_EMAIL, email); in addAttendeeToSerializer()
264 s.data(Tags.CALENDAR_ATTENDEE_TYPE, "1"); in addAttendeeToSerializer()
265 s.data(Tags.CALENDAR_ATTENDEE_NAME, name); in addAttendeeToSerializer()
311 data(Tags.CALENDAR_TIME_ZONE, TEST_TIME_ZONE); in setupPreAttendees()
312 data(Tags.CALENDAR_DTSTAMP, "20100518T213156Z"); in setupPreAttendees()
313 data(Tags.CALENDAR_START_TIME, "20100518T220000Z"); in setupPreAttendees()
314 data(Tags.CALENDAR_SUBJECT, "Documentation"); in setupPreAttendees()
[all …]
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/adapter/
DCalendarSyncAdapterTests.java252 s.data(Tags.CALENDAR_ATTENDEE_EMAIL, "frederick" + num + in addAttendeesToSerializer()
254 s.data(Tags.CALENDAR_ATTENDEE_TYPE, "1"); in addAttendeesToSerializer()
255 s.data(Tags.CALENDAR_ATTENDEE_NAME, "Frederick" + num + " Flintstone, III"); in addAttendeesToSerializer()
263 s.data(Tags.CALENDAR_ATTENDEE_EMAIL, email); in addAttendeeToSerializer()
264 s.data(Tags.CALENDAR_ATTENDEE_TYPE, "1"); in addAttendeeToSerializer()
265 s.data(Tags.CALENDAR_ATTENDEE_NAME, name); in addAttendeeToSerializer()
311 data(Tags.CALENDAR_TIME_ZONE, TEST_TIME_ZONE); in setupPreAttendees()
312 data(Tags.CALENDAR_DTSTAMP, "20100518T213156Z"); in setupPreAttendees()
313 data(Tags.CALENDAR_START_TIME, "20100518T220000Z"); in setupPreAttendees()
314 data(Tags.CALENDAR_SUBJECT, "Documentation"); in setupPreAttendees()
[all …]
/packages/apps/Mms/src/com/android/mms/model/
DTextModel.java42 int charset, byte[] data, RegionModel region) { in TextModel() argument
44 data != null ? data : new byte[0], region); in TextModel()
52 mText = extractTextFromData(data); in TextModel()
55 private CharSequence extractTextFromData(byte[] data) { in extractTextFromData() argument
56 if (data != null) { in extractTextFromData()
59 return new String(data); // system default encoding. in extractTextFromData()
62 return new String(data, name); in extractTextFromData()
66 return new String(data); // system default encoding. in extractTextFromData()
/packages/apps/Nfc/nxp/src/com/android/nfc/dhimpl/
DNativeP2pDevice.java38 private native boolean doSend(byte[] data); in doSend() argument
40 public boolean send(byte[] data) { in send() argument
41 return doSend(data); in send()
56 public native byte[] doTransceive(byte[] data); in doTransceive() argument
58 public byte[] transceive(byte[] data) { in transceive() argument
59 return doTransceive(data); in transceive()

12345678910>>...21