Home
last modified time | relevance | path

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

12345678910>>...31

/packages/apps/UnifiedEmail/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.java631 public static void write(byte[] data, OutputStream output) in write() argument
633 if (data != null) { in write()
634 output.write(data); in write()
651 public static void write(byte[] data, Writer output) throws IOException { in write() argument
652 if (data != null) { in write()
653 output.write(new String(data)); in write()
674 public static void write(byte[] data, Writer output, String encoding) in write() argument
676 if (data != null) { in write()
678 write(data, output); in write()
680 output.write(new String(data, encoding)); in write()
[all …]
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DLocalSource.java90 AlbumData data = foundAlbums.get(id); in findAlbums() local
92 data = new AlbumData(); in findAlbums()
93 data.id = id; in findAlbums()
94 data.account = mLocalSourceName; in findAlbums()
97 data.thumbnailUrl = cursor.getString(dataIndex); in findAlbums()
101 data.title = cursor.getString(nameIndex); in findAlbums()
103 data.title = mUnknownAlbumName; in findAlbums()
106 log(TAG, data.title + " found"); in findAlbums()
107 foundAlbums.put(id, data); in findAlbums()
111 data.updated = (data.updated == 0 ? in findAlbums()
[all …]
DPicasaSource.java104 protected void openCursor(ImageData data) { in openCursor() argument
108 String selection = PICASA_ALBUM_ID + " = '" + data.albumId + "'"; in openCursor()
114 data.cursor = mResolver.query(picasaUriBuilder.build(), in openCursor()
119 protected void findPosition(ImageData data) { in findPosition() argument
120 if (data.position == UNINITIALIZED) { in findPosition()
121 if (data.cursor == null) { in findPosition()
122 openCursor(data); in findPosition()
124 if (data.cursor != null) { in findPosition()
125 int idIndex = data.cursor.getColumnIndex(PICASA_ID); in findPosition()
126 data.cursor.moveToPosition(-1); in findPosition()
[all …]
/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/inputmethods/OpenWnn/libs/libwnnDictionary/engine/
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 …]
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/Settings/src/com/android/settings/deviceinfo/
DMemory.java439 SearchIndexableRaw data = new SearchIndexableRaw(context);
440 data.title = context.getString(R.string.storage_settings);
441 data.screenTitle = context.getString(R.string.storage_settings);
442 result.add(data);
444 data = new SearchIndexableRaw(context);
445 data.title = context.getString(R.string.internal_storage);
446 data.screenTitle = context.getString(R.string.storage_settings);
447 result.add(data);
449 data = new SearchIndexableRaw(context);
453 data.title = volume.getDescription(context);
[all …]
/packages/apps/Camera2/src/com/android/camera/
DCameraActivity.java85 import com.android.camera.data.CameraDataAdapter;
86 import com.android.camera.data.FixedLastDataAdapter;
87 import com.android.camera.data.LocalData;
88 import com.android.camera.data.LocalDataAdapter;
89 import com.android.camera.data.LocalDataUtil;
90 import com.android.camera.data.LocalDataViewType;
91 import com.android.camera.data.LocalMediaData;
92 import com.android.camera.data.LocalMediaObserver;
93 import com.android.camera.data.LocalSessionData;
94 import com.android.camera.data.MediaDetails;
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DGalleryActivity.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 …]
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.Path;
231 Bundle data = new Bundle(getData()); in onUpPressed() local
232 data.putString(AlbumSetPage.KEY_MEDIA_PATH, mParentMediaSetString); in onUpPressed()
234 this, AlbumSetPage.class, data); in onUpPressed()
294 Bundle data = new Bundle(); in pickPhoto() local
[all …]
DPhotoPage.java45 import com.android.gallery3d.data.ComboAlbum;
46 import com.android.gallery3d.data.DataManager;
47 import com.android.gallery3d.data.FilterDeleteSet;
48 import com.android.gallery3d.data.FilterSource;
49 import com.android.gallery3d.data.LocalImage;
50 import com.android.gallery3d.data.MediaDetails;
51 import com.android.gallery3d.data.MediaItem;
52 import com.android.gallery3d.data.MediaObject;
53 import com.android.gallery3d.data.MediaObject.PanoramaSupportCallback;
54 import com.android.gallery3d.data.MediaSet;
[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;
250 Bundle data = new Bundle(getData()); in pickAlbum() local
253 data.putIntArray(AlbumPage.KEY_SET_CENTER, center); in pickAlbum()
261 data.putString(AlbumSetPage.KEY_MEDIA_PATH, mediaPath); in pickAlbum()
263 AlbumSetPage.class, REQUEST_DO_ANIMATION, data); in pickAlbum()
[all …]
DStateManager.java52 Bundle data) { in startState() argument
70 state.initialize(mActivity, data); in startState()
72 mStack.push(new StateEntry(data, state)); in startState()
73 state.onCreate(data, null); in startState()
78 int requestCode, Bundle data) { in startStateForResult() argument
86 state.initialize(mActivity, data); in startStateForResult()
101 mStack.push(new StateEntry(data, state)); in startStateForResult()
102 state.onCreate(data, null); in startStateForResult()
132 public void notifyActivityResult(int requestCode, int resultCode, Intent data) { in notifyActivityResult() argument
133 getTopState().onStateResult(requestCode, resultCode, data); in notifyActivityResult()
[all …]
/packages/apps/Settings/src/com/android/settings/net/
DDataUsageMeteredSettings.java163 SearchIndexableRaw data = new SearchIndexableRaw(context);
164 data.title = res.getString(R.string.data_usage_menu_metered);
165 data.screenTitle = res.getString(R.string.data_usage_menu_metered);
166 result.add(data);
169 data = new SearchIndexableRaw(context);
170 data.title = res.getString(R.string.data_usage_metered_body);
171 data.screenTitle = res.getString(R.string.data_usage_menu_metered);
172 result.add(data);
176 data = new SearchIndexableRaw(context);
177 data.title = res.getString(R.string.data_usage_metered_mobile);
[all …]
/packages/apps/Nfc/nci/jni/
DRouteDataSet.cpp343 RouteDataForProtocol* data = new RouteDataForProtocol; in importProtocolRoute() local
351 data->mProtocol = NFA_PROTOCOL_MASK_T1T; in importProtocolRoute()
353 data->mProtocol = NFA_PROTOCOL_MASK_T2T; in importProtocolRoute()
355 data->mProtocol = NFA_PROTOCOL_MASK_T3T; in importProtocolRoute()
357 data->mProtocol = NFA_PROTOCOL_MASK_ISO_DEP; in importProtocolRoute()
359 ALOGD_IF (sDebug, "%s: %s=0x%X", fn, id, data->mProtocol); in importProtocolRoute()
365 data->mNfaEeHandle = strtol ((char*) value, NULL, 16); in importProtocolRoute()
367 data->mNfaEeHandle = data->mNfaEeHandle | NFA_HANDLE_GROUP_EE; in importProtocolRoute()
368 ALOGD_IF (sDebug, "%s: %s=0x%X", fn, secElem, data->mNfaEeHandle); in importProtocolRoute()
374 data->mSwitchOn = (xmlStrcmp (value, trueString) == 0); in importProtocolRoute()
[all …]
/packages/apps/Settings/src/com/android/settings/search/
DIndex.java391 public void addIndexableData(SearchIndexableData data) { in addIndexableData() argument
393 mDataToProcess.dataToUpdate.add(data); in addIndexableData()
406 public void deleteIndexableData(SearchIndexableData data) { in deleteIndexableData() argument
408 mDataToProcess.dataToDelete.add(data); in deleteIndexableData()
492 public void updateFromSearchIndexableData(SearchIndexableData data) { in updateFromSearchIndexableData() argument
493 addIndexableData(data); in updateFromSearchIndexableData()
615 SearchIndexableRaw data = new SearchIndexableRaw(packageContext); in addIndexablesForRawDataUri() local
616 data.rank = rank; in addIndexablesForRawDataUri()
617 data.title = title; in addIndexablesForRawDataUri()
618 data.summaryOn = summaryOn; in addIndexablesForRawDataUri()
[all …]
/packages/providers/MediaProvider/tools/genfiles/
Dgenfiles.sh54 while read format mediatype mimetype data;
59 echo "cat /storage/sdcard0/proto.jpg > \"$data\"" >> $CPFILES
63 echo "cat /storage/sdcard0/proto.png > \"$data\"" >> $CPFILES
67 echo "cat /storage/sdcard0/proto.gif > \"$data\"" >> $CPFILES
71 echo "cat /storage/sdcard0/proto.txt > \"$data\"" >> $CPFILES
75 echo "cat /storage/sdcard0/proto.html > \"$data\"" >> $CPFILES
79 echo "cat /storage/sdcard0/proto.mp3 > \"$data\"" >> $CPFILES
83 echo "cat /storage/sdcard0/proto.wav > \"$data\"" >> $CPFILES
87 echo "cat /storage/sdcard0/proto.m4v > \"$data\"" >> $CPFILES
91 echo "cat /storage/sdcard0/proto.m4v > \"$data\"" >> $CPFILES
[all …]
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/utils/
Dbyte_array_utils.h37 const uint32_t data, const int size, int *const pos) { in writeUintAndAdvancePosition() argument
42 ByteArrayUtils::writeUint8AndAdvancePosition(buffer, data, pos); in writeUintAndAdvancePosition()
45 ByteArrayUtils::writeUint16AndAdvancePosition(buffer, data, pos); in writeUintAndAdvancePosition()
48 ByteArrayUtils::writeUint24AndAdvancePosition(buffer, data, pos); in writeUintAndAdvancePosition()
51 ByteArrayUtils::writeUint32AndAdvancePosition(buffer, data, pos); in writeUintAndAdvancePosition()
253 const uint32_t data, int *const pos) { in writeUint32AndAdvancePosition() argument
254 buffer[(*pos)++] = (data >> 24) & 0xFF; in writeUint32AndAdvancePosition()
255 buffer[(*pos)++] = (data >> 16) & 0xFF; in writeUint32AndAdvancePosition()
256 buffer[(*pos)++] = (data >> 8) & 0xFF; in writeUint32AndAdvancePosition()
257 buffer[(*pos)++] = data & 0xFF; in writeUint32AndAdvancePosition()
[all …]
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DHostEmulationManager.java143 public void onHostEmulationData(byte[] data) { in onHostEmulationData() argument
145 String selectAid = findSelectAid(data); in onHostEmulationData()
212 sendDataToServiceLocked(existingService, data); in onHostEmulationData()
217 mSelectApdu = data; in onHostEmulationData()
232 sendDataToServiceLocked(existingService, data); in onHostEmulationData()
236 mSelectApdu = data; in onHostEmulationData()
241 sendDataToServiceLocked(mActiveService, data); in onHostEmulationData()
306 void sendDataToServiceLocked(Messenger service, byte[] data) { in sendDataToServiceLocked() argument
318 dataBundle.putByteArray("data", data); in sendDataToServiceLocked()
389 String findSelectAid(byte[] data) { in findSelectAid() argument
[all …]
/packages/apps/Camera2/src/com/android/camera/util/
DXmpUtil.java66 public byte[] data; field in XmpUtil.Section
112 if (hasXMPHeader(section.data)) { in extractXMPMeta()
113 int end = getXMPContentEnd(section.data); in extractXMPMeta()
116 section.data, XMP_HEADER_SIZE, buffer, 0, buffer.length); in extractXMPMeta()
230 os.write(section.data); in writeJpegFile()
264 xmpSection.data = xmpdata; in insertXMPSection()
269 && hasXMPHeader(sections.get(i).data)) { in insertXMPSection()
291 private static boolean hasXMPHeader(byte[] data) { in hasXMPHeader() argument
292 if (data.length < XMP_HEADER_SIZE) { in hasXMPHeader()
297 System.arraycopy(data, 0, header, 0, XMP_HEADER_SIZE); in hasXMPHeader()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DInputsActivity.java179 Bundle data = new Bundle(); in createData() local
180 data.putString(KEY_ID, info.getId()); in createData()
181 return data; in createData()
185 Bundle data = createData(info); in createData() local
186 data.putString(KEY_LABEL, label); in createData()
187 return data; in createData()
195 final int action, final Bundle data, final boolean checked) { in getOnOffLayout() argument
199 Bundle on = (data == null) ? new Bundle() : new Bundle(data); in getOnOffLayout()
201 Bundle off = (data == null) ? new Bundle() : new Bundle(data); in getOnOffLayout()
207 .data(on) in getOnOffLayout()
[all …]
/packages/apps/Launcher2/src/com/android/launcher2/
DAllAppsList.java35 public ArrayList<ApplicationInfo> data = field in AllAppsList
61 if (findActivity(data, info.componentName, info.user)) { in add()
64 data.add(info); in add()
69 data.clear(); in clear()
77 return data.size(); in size()
81 return data.get(index); in get()
102 final List<ApplicationInfo> data = this.data; in removePackage() local
103 for (int i = data.size() - 1; i >= 0; i--) { in removePackage()
104 ApplicationInfo info = data.get(i); in removePackage()
108 data.remove(i); in removePackage()
[all …]
/packages/experimental/LoaderApp/src/com/android/loaderapp/fragments/
DContactFragment.java206 public void onLoadFinished(Loader<ContactData> loader, ContactData data) { in onLoadFinished() argument
209 setData(data); in onLoadFinished()
222 public void setData(ContactData data) { in setData() argument
223 mEntities = data.entities; in setData()
224 mStatuses = data.statuses; in setData()
226 mNameRawContactId = data.nameRawContactId; in setData()
227 mDisplayNameSource = data.displayNameSource; in setData()
229 mContactHeaderWidget.bindFromContactLookupUri(data.uri); in setData()
374 final boolean hasData = !TextUtils.isEmpty(entry.data); in buildEntries()
383 Uri.fromParts(Constants.SCHEME_TEL, entry.data, null)); in buildEntries()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DAllAppsList.java37 public ArrayList<AppInfo> data = field in AllAppsList
69 if (findActivity(data, info.componentName, info.user)) { in add()
72 data.add(info); in add()
77 data.clear(); in clear()
85 return data.size(); in size()
89 return data.get(index); in get()
109 final List<AppInfo> data = this.data; in removePackage() local
110 for (int i = data.size() - 1; i >= 0; i--) { in removePackage()
111 AppInfo info = data.get(i); in removePackage()
115 data.remove(i); in removePackage()
[all …]

12345678910>>...31