Home
last modified time | relevance | path

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

12345678910>>...18

/packages/apps/Email/emailcommon/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/apps/Email/emailcommon/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/Gallery2/src/com/android/gallery3d/app/
DGallery.java30 import com.android.gallery3d.data.DataManager;
31 import com.android.gallery3d.data.MediaItem;
32 import com.android.gallery3d.data.MediaSet;
33 import com.android.gallery3d.data.Path;
95 Bundle data = new Bundle(); in startDefaultPage() local
96 data.putString(AlbumSetPage.KEY_MEDIA_PATH, in startDefaultPage()
98 getStateManager().startState(AlbumSetPage.class, data); in startDefaultPage()
102 Bundle data = intent.getExtras() != null in startGetContent() local
105 data.putBoolean(KEY_GET_CONTENT, true); in startGetContent()
107 data.putInt(KEY_TYPE_BITS, typeBits); in startGetContent()
[all …]
DStateManager.java52 Bundle data) { in startState() argument
64 state.initialize(mContext, data); in startState()
66 mStack.push(new StateEntry(data, state)); in startState()
67 state.onCreate(data, null); in startState()
76 int requestCode, Bundle data) { in startStateForResult() argument
84 state.initialize(mContext, data); in startStateForResult()
96 mStack.push(new StateEntry(data, state)); in startStateForResult()
97 state.onCreate(data, null); in startStateForResult()
128 public void notifyActivityResult(int requestCode, int resultCode, Intent data) { in notifyActivityResult() argument
129 getTopState().onStateResult(requestCode, resultCode, data); in notifyActivityResult()
[all …]
DAlbumPage.java35 import com.android.gallery3d.data.DataManager;
36 import com.android.gallery3d.data.MediaDetails;
37 import com.android.gallery3d.data.MediaItem;
38 import com.android.gallery3d.data.MediaObject;
39 import com.android.gallery3d.data.MediaSet;
40 import com.android.gallery3d.data.MtpDevice;
41 import com.android.gallery3d.data.Path;
185 Bundle data = new Bundle(); in onSingleTapUp() local
187 data.putInt(PhotoPage.KEY_INDEX_HINT, slotIndex); in onSingleTapUp()
188 data.putString(PhotoPage.KEY_MEDIA_SET_PATH, in onSingleTapUp()
[all …]
DAlbumPicker.java20 import com.android.gallery3d.data.DataManager;
35 Bundle data = extras == null ? new Bundle() : new Bundle(extras); in onCreate() local
37 data.putBoolean(Gallery.KEY_GET_ALBUM, true); in onCreate()
38 data.putString(AlbumSetPage.KEY_MEDIA_PATH, in onCreate()
40 getStateManager().startState(AlbumSetPage.class, data); in onCreate()
/packages/apps/Email/src/com/android/email/activity/setup/
DSetupData.java138 SetupData data = getInstance(); in setPolicy() local
139 data.mPolicy = policy; in setPolicy()
140 data.mAccount.mPolicy = policy; in setPolicy()
168 SetupData data = getInstance(); in init() local
169 data.commonInit(); in init()
170 data.mFlowMode = flowMode; in init()
174 SetupData data = getInstance(); in init() local
175 data.commonInit(); in init()
176 data.mFlowMode = flowMode; in init()
177 data.mAccount = account; in init()
[all …]
/packages/apps/Settings/src/com/android/settings/net/
DChartDataLoader.java85 final ChartData data = new ChartData(); in loadInBackground() local
86 data.network = mStatsService.getHistoryForNetwork(template, fields); in loadInBackground()
89 data.detailDefault = null; in loadInBackground()
90 data.detailForeground = null; in loadInBackground()
94 data.detailDefault = collectHistoryForUid( in loadInBackground()
95 template, uid, SET_DEFAULT, data.detailDefault); in loadInBackground()
96 data.detailForeground = collectHistoryForUid( in loadInBackground()
97 template, uid, SET_FOREGROUND, data.detailForeground); in loadInBackground()
100 data.detail = new NetworkStatsHistory(data.detailForeground.getBucketDuration()); in loadInBackground()
101 data.detail.recordEntireHistory(data.detailDefault); in loadInBackground()
[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 …]
DInstallShortcutReceiver.java38 public void onReceive(Context context, Intent data) { in onReceive() argument
39 if (!ACTION_INSTALL_SHORTCUT.equals(data.getAction())) { in onReceive()
45 if (!installShortcut(context, data, screen)) { in onReceive()
48 if (i != screen && installShortcut(context, data, i)) break; in onReceive()
53 private boolean installShortcut(Context context, Intent data, int screen) { in installShortcut() argument
54 String name = data.getStringExtra(Intent.EXTRA_SHORTCUT_NAME); in installShortcut()
57 Intent intent = data.getParcelableExtra(Intent.EXTRA_SHORTCUT_INTENT); in installShortcut()
65 boolean duplicate = data.getBooleanExtra(Launcher.EXTRA_SHORTCUT_DUPLICATE, true); in installShortcut()
68 app.getModel().addShortcut(context, data, in installShortcut()
/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 …]
Dndbdic.c122 NJ_UINT16 data; in get_stem_hindo() local
136 data = (NJ_UINT16)(NJ_INT16_READ(stem_data + pos)); in get_stem_hindo()
141 return GET_BITFIELD_16(data, j, BIT_HINDO_LEN(hdl)); in get_stem_hindo()
151 NJ_UINT16 data; in get_stem_next() local
170 data = (NJ_UINT16)(NJ_INT16_READ(stem_data + pos)); in get_stem_next()
176 candidate_size = GET_BITFIELD_16(data, j, cand_bit); in get_stem_next()
184 data = (NJ_UINT16)(NJ_INT16_READ(stem_data + pos)); in get_stem_next()
190 yomi_size = GET_BITFIELD_16(data, j, yomi_bit); in get_stem_next()
212 NJ_UINT16 data; in get_stem_word() local
231 data = (NJ_UINT16)(NJ_INT16_READ(stem_data + pos)); in get_stem_word()
[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 …]
DLayoutSelectorAdapter.java36 List<IconListItem> data = new ArrayList<IconListItem>(2); in getData() local
37 addItem(data, context.getString(R.string.select_top_text), in getData()
39 addItem(data, context.getString(R.string.select_bottom_text), in getData()
42 return data; in getData()
45 protected static void addItem(List<IconListItem> data, String title, int resource) { in addItem() argument
47 data.add(temp); in addItem()
/packages/apps/Nfc/src/com/android/nfc/nxp/
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()
/packages/apps/Exchange/tests/src/com/android/exchange/adapter/
DCalendarSyncAdapterTests.java250 s.data(Tags.CALENDAR_ATTENDEE_EMAIL, "frederick" + num + in addAttendeesToSerializer()
252 s.data(Tags.CALENDAR_ATTENDEE_TYPE, "1"); in addAttendeesToSerializer()
253 s.data(Tags.CALENDAR_ATTENDEE_NAME, "Frederick" + num + " Flintstone, III"); in addAttendeesToSerializer()
261 s.data(Tags.CALENDAR_ATTENDEE_EMAIL, email); in addAttendeeToSerializer()
262 s.data(Tags.CALENDAR_ATTENDEE_TYPE, "1"); in addAttendeeToSerializer()
263 s.data(Tags.CALENDAR_ATTENDEE_NAME, name); in addAttendeeToSerializer()
307 data(Tags.CALENDAR_TIME_ZONE, TEST_TIME_ZONE); in setupPreAttendees()
308 data(Tags.CALENDAR_DTSTAMP, "20100518T213156Z"); in setupPreAttendees()
309 data(Tags.CALENDAR_START_TIME, "20100518T220000Z"); in setupPreAttendees()
310 data(Tags.CALENDAR_SUBJECT, "Documentation"); in setupPreAttendees()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
DWidgetConfigure.java84 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
93 setWidgetType(data); in onActivityResult()
95 setChoosenAlbum(data); in onActivityResult()
97 setChoosenPhoto(data); in onActivityResult()
99 setPhotoWidget(data); in onActivityResult()
105 private void setPhotoWidget(Intent data) { in setPhotoWidget() argument
107 Bitmap bitmap = (Bitmap) data.getParcelableExtra("data"); in setPhotoWidget()
117 private void setChoosenPhoto(Intent data) { in setChoosenPhoto() argument
131 mPickedItem = data.getData(); in setChoosenPhoto()
143 private void setChoosenAlbum(Intent data) { in setChoosenAlbum() argument
[all …]
/packages/apps/Mms/src/com/android/mms/model/
DTextModel.java45 int charset, byte[] data, RegionModel region) { in TextModel() argument
47 data != null ? data : new byte[0], region); in TextModel()
55 mText = extractTextFromData(data); in TextModel()
58 private CharSequence extractTextFromData(byte[] data) { in extractTextFromData() argument
59 if (data != null) { in extractTextFromData()
62 return new String(data); // system default encoding. in extractTextFromData()
65 return new String(data, name); in extractTextFromData()
69 return new String(data); // system default encoding. in extractTextFromData()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DImageCacheRequest.java17 package com.android.gallery3d.data;
21 import com.android.gallery3d.data.ImageCacheService.ImageData;
50 ImageData data = cacheService.getImageData(mPath, mType); in run() local
53 if (data != null) { in run()
56 Bitmap bitmap = DecodeUtils.requestDecode(jc, data.mData, in run()
57 data.mOffset, data.mData.length - data.mOffset, options); in run()
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
DDictionaryBackupAgent.java74 public void onBackup(ParcelFileDescriptor oldState, BackupDataOutput data, in onBackup() argument
83 userDictionaryData, data); in onBackup()
89 public void onRestore(BackupDataInput data, int appVersionCode, in onRestore() argument
92 while (data.readNextHeader()) { in onRestore()
93 final String key = data.getKey(); in onRestore()
94 final int size = data.getDataSize(); in onRestore()
96 restoreDictionary(data, Words.CONTENT_URI); in onRestore()
98 data.skipEntityData(); in onRestore()
129 private long writeIfChanged(long oldChecksum, String key, byte[] data, in writeIfChanged() argument
132 checkSummer.update(data); in writeIfChanged()
[all …]
/packages/apps/Contacts/src/com/android/contacts/format/
DFormatUtils.java41 return overlapPoint(Arrays.copyOfRange(buffer1.data, 0, buffer1.sizeCopied), in overlapPoint()
42 Arrays.copyOfRange(buffer2.data, 0, buffer2.sizeCopied)); in overlapPoint()
116 char[] data = buffer.data; in copyToCharArrayBuffer() local
117 if (data == null || data.length < text.length()) { in copyToCharArrayBuffer()
118 buffer.data = text.toCharArray(); in copyToCharArrayBuffer()
120 text.getChars(0, text.length(), data, 0); in copyToCharArrayBuffer()
130 return new String(buffer.data, 0, buffer.sizeCopied); in charArrayBufferToString()
/packages/apps/Nfc/jni/
Dcom_android_nfc_NativeP2pDevice.cpp72 static void nfc_jni_receive_callback(void *pContext, phNfc_sData_t *data, NFCSTATUS status) in nfc_jni_receive_callback() argument
80 *ptr = data; in nfc_jni_receive_callback()
269 jobject o, jbyteArray data) in com_android_nfc_NativeP2pDevice_doTransceive() argument
292 buf = (uint8_t *)e->GetByteArrayElements(data, NULL); in com_android_nfc_NativeP2pDevice_doTransceive()
293 buflen = (uint32_t)e->GetArrayLength(data); in com_android_nfc_NativeP2pDevice_doTransceive()
343 e->ReleaseByteArrayElements(data, in com_android_nfc_NativeP2pDevice_doTransceive()
361 static phNfc_sData_t *data; in com_android_nfc_NativeP2pDevice_doReceive() local
369 if (!nfc_cb_data_init(&cb_data, (void*)data)) in com_android_nfc_NativeP2pDevice_doReceive()
393 if(data == NULL) in com_android_nfc_NativeP2pDevice_doReceive()
398 buf = e->NewByteArray(data->length); in com_android_nfc_NativeP2pDevice_doReceive()
[all …]

12345678910>>...18