Home
last modified time | relevance | path

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

12345678910>>...71

/packages/services/Car/car-lib/src/android/car/hardware/
DCarSensorEvent.java224 public EnvironmentData getEnvironmentData(EnvironmentData data) { in getEnvironmentData() argument
226 if (data == null) { in getEnvironmentData()
227 data = new EnvironmentData(); in getEnvironmentData()
229 data.timestamp = timestamp; in getEnvironmentData()
230 data.temperature = floatValues[INDEX_ENVIRONMENT_TEMPERATURE]; in getEnvironmentData()
231 return data; in getEnvironmentData()
252 public IgnitionStateData getIgnitionStateData(IgnitionStateData data) { in getIgnitionStateData() argument
254 if (data == null) { in getIgnitionStateData()
255 data = new IgnitionStateData(); in getIgnitionStateData()
257 data.timestamp = timestamp; in getIgnitionStateData()
[all …]
/packages/apps/TV/tuner/src/com/android/tv/tuner/data/
DSectionParser.java17 package com.android.tv.tuner.data;
28 import com.android.tv.tuner.data.Channel.AtscServiceType;
29 import com.android.tv.tuner.data.PsiData.PatItem;
30 import com.android.tv.tuner.data.PsiData.PmtItem;
31 import com.android.tv.tuner.data.PsipData.Ac3AudioDescriptor;
32 import com.android.tv.tuner.data.PsipData.CaptionServiceDescriptor;
33 import com.android.tv.tuner.data.PsipData.ContentAdvisoryDescriptor;
34 import com.android.tv.tuner.data.PsipData.EitItem;
35 import com.android.tv.tuner.data.PsipData.EttItem;
36 import com.android.tv.tuner.data.PsipData.ExtendedChannelNameDescriptor;
[all …]
DCea708Parser.java17 package com.android.tv.tuner.data;
23 import com.android.tv.tuner.data.Cea708Data.CaptionColor;
24 import com.android.tv.tuner.data.Cea708Data.CaptionEvent;
25 import com.android.tv.tuner.data.Cea708Data.CaptionPenAttr;
26 import com.android.tv.tuner.data.Cea708Data.CaptionPenColor;
27 import com.android.tv.tuner.data.Cea708Data.CaptionPenLocation;
28 import com.android.tv.tuner.data.Cea708Data.CaptionWindow;
29 import com.android.tv.tuner.data.Cea708Data.CaptionWindowAttr;
30 import com.android.tv.tuner.data.Cea708Data.CcPacket;
255 public void parseClosedCaption(ByteBuffer data, long framePtsUs) { in parseClosedCaption() argument
[all …]
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/data/
DConversationMessageDataTest.java16 package com.android.messaging.datamodel.data;
23 import com.android.messaging.datamodel.data.ConversationMessageData;
24 import com.android.messaging.datamodel.data.MessageData;
25 import com.android.messaging.datamodel.data.ConversationMessageData.ConversationMessageViewColumns;
37 final ConversationMessageData data = new ConversationMessageData(); in testBindFirstMessage() local
39 data.bind(testCursor); in testBindFirstMessage()
42 MessageData.BUGLE_STATUS_INCOMING_COMPLETE), data.getIsIncoming()); in testBindFirstMessage()
44 0), data.getSenderProfilePhotoUri()); in testBindFirstMessage()
46 data.getSenderFullName()); in testBindFirstMessage()
51 final ConversationMessageData data = new ConversationMessageData(); in testBindTwice() local
[all …]
/packages/providers/ContactsProvider/tests/assets/upgradeTest/
Dcontacts2_1108.sql3 …INTEGER PRIMARY KEY,account_name TEXT NOT NULL,account_type TEXT NOT NULL,data TEXT,UNIQUE(account… field
15data(_id),photo_file_id INTEGER REFERENCES photo_files(_id),custom_ringtone TEXT,send_to_voicemail…
34 CREATE TABLE data (_id INTEGER PRIMARY KEY AUTOINCREMENT,package_id INTEGER REFERENCES package(_id)… table
35 CREATE TABLE phone_lookup (data_id INTEGER REFERENCES data(_id) NOT NULL,raw_contact_id INTEGER REF…
36 CREATE TABLE name_lookup (data_id INTEGER REFERENCES data(_id) NOT NULL,raw_contact_id INTEGER REFE…
45 …photo_id INTEGER NOT NULL DEFAULT 0,photo_uri TEXT,formatted_number TEXT,_data TEXT,has_content IN…
48 CREATE TABLE status_updates (status_update_data_id INTEGER PRIMARY KEY REFERENCES data(_id),status …
52 …L DEFAULT 0, last_time_used INTEGER NOT NULL DEFAULT 0, FOREIGN KEY(data_id) REFERENCES data(_id));
53 …INCREMENT,raw_contact_backup_id TEXT NOT NULL,account_id INTEGER NOT NULL,data TEXT,deleted INTEGE… field
125 CREATE INDEX data_raw_contact_id ON data (raw_contact_id);
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/
DSliceDataTest.java59 SliceData data = builder.build(); in testBuilder_buildsMatchingObject() local
61 assertThat(data.getKey()).isEqualTo(KEY); in testBuilder_buildsMatchingObject()
62 assertThat(data.getTitle()).isEqualTo(TITLE); in testBuilder_buildsMatchingObject()
63 assertThat(data.getSummary()).isEqualTo(SUMMARY); in testBuilder_buildsMatchingObject()
64 assertThat(data.getScreenTitle()).isEqualTo(SCREEN_TITLE); in testBuilder_buildsMatchingObject()
65 assertThat(data.getKeywords()).isEqualTo(KEYWORDS); in testBuilder_buildsMatchingObject()
66 assertThat(data.getIconResource()).isEqualTo(ICON); in testBuilder_buildsMatchingObject()
67 assertThat(data.getFragmentClassName()).isEqualTo(FRAGMENT_NAME); in testBuilder_buildsMatchingObject()
68 assertThat(data.getUri()).isEqualTo(URI); in testBuilder_buildsMatchingObject()
69 assertThat(data.getPreferenceController()).isEqualTo(PREF_CONTROLLER); in testBuilder_buildsMatchingObject()
[all …]
DSlicesDatabaseAccessorTest.java100 SliceData data = mAccessor.getSliceDataFromKey(key); in testGetSliceDataFromKey_validKey_validSliceReturned() local
102 assertThat(data.getKey()).isEqualTo(key); in testGetSliceDataFromKey_validKey_validSliceReturned()
103 assertThat(data.getTitle()).isEqualTo(FAKE_TITLE); in testGetSliceDataFromKey_validKey_validSliceReturned()
104 assertThat(data.getSummary()).isEqualTo(FAKE_SUMMARY); in testGetSliceDataFromKey_validKey_validSliceReturned()
105 assertThat(data.getScreenTitle()).isEqualTo(FAKE_SCREEN_TITLE); in testGetSliceDataFromKey_validKey_validSliceReturned()
106 assertThat(data.getKeywords()).isEqualTo(FAKE_KEYWORDS); in testGetSliceDataFromKey_validKey_validSliceReturned()
107 assertThat(data.getIconResource()).isEqualTo(FAKE_ICON); in testGetSliceDataFromKey_validKey_validSliceReturned()
108 assertThat(data.getFragmentClassName()).isEqualTo(FAKE_FRAGMENT_NAME); in testGetSliceDataFromKey_validKey_validSliceReturned()
109 assertThat(data.getUri()).isNull(); in testGetSliceDataFromKey_validKey_validSliceReturned()
110 assertThat(data.getPreferenceController()).isEqualTo(FAKE_CONTROLLER_NAME); in testGetSliceDataFromKey_validKey_validSliceReturned()
[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/apps/SecureElement/src/com/android/se/security/gpac/
DBerTlv.java70 public static BerTlv decode(byte[] data, int startIndex) throws ParserException { in decode() argument
71 return BerTlv.decode(data, startIndex, true); in decode()
75 public static BerTlv decode(byte[] data, int startIndex, boolean containsAllData) in decode() argument
78 if (data == null || data.length == 0) { in decode()
86 if (curIndex < data.length) { in decode()
87 int temp = data[curIndex++] & 0xff; in decode()
91 if (curIndex < data.length) { in decode()
92 tag = ((temp & 0xff) << 8) | (data[curIndex++] & 0xff); in decode()
95 "Index " + curIndex + " out of range! [0..[" + data.length); in decode()
104 throw new ParserException("Index " + curIndex + " out of range! [0..[" + data.length); in decode()
[all …]
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarSensorManagerTest.java154 CarSensorEvent.NightData data = null; in testEvents() local
172 data = listener.getLastEvent().getNightData(data); in testEvents()
173 Log.d(TAG, "NightMode " + data.isNightMode + " at " + data.timestamp); in testEvents()
174 assertTrue(data.isNightMode); in testEvents()
179 data = event.getNightData(data); in testEvents()
180 assertEquals("Unexpected event timestamp", data.timestamp, 51); in testEvents()
181 assertTrue("Unexpected value", data.isNightMode); in testEvents()
196 data = listener.getLastEvent().getNightData(data); in testEvents()
197 assertEquals("Unexpected event timestamp", 1001, data.timestamp); in testEvents()
198 assertFalse("Unexpected value", data.isNightMode); in testEvents()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/inspector/
DTestMetadata.java29 Bundle data = new Bundle(); in populateExifData() local
30 container.putBundle(DocumentsContract.METADATA_EXIF, data); in populateExifData()
32 data.putInt(ExifInterface.TAG_IMAGE_WIDTH, 3840); in populateExifData()
33 data.putInt(ExifInterface.TAG_IMAGE_LENGTH, 2160); in populateExifData()
34 data.putString(ExifInterface.TAG_DATETIME, "Jan 01, 1970, 12:16 AM"); in populateExifData()
35 data.putString(ExifInterface.TAG_GPS_LATITUDE, "33/1,59/1,4530/100"); in populateExifData()
36 data.putString(ExifInterface.TAG_GPS_LONGITUDE, "118/1,28/1,3124/100"); in populateExifData()
37 data.putString(ExifInterface.TAG_GPS_LATITUDE_REF, "N"); in populateExifData()
38 data.putString(ExifInterface.TAG_GPS_LONGITUDE_REF, "W"); in populateExifData()
39 data.putDouble(ExifInterface.TAG_GPS_ALTITUDE, 1244); in populateExifData()
[all …]
/packages/providers/CallLogProvider/src/com/android/calllogbackup/
DCallLogBackupAgent.java145 public void onBackup(ParcelFileDescriptor oldStateDescriptor, BackupDataOutput data, in onBackup() argument
166 runBackup(state, data, getAllCallLogEntries()); in onBackup()
180 public void onRestore(BackupDataInput data, int appVersionCode, ParcelFileDescriptor newState) in onRestore() argument
187 while (data.readNextHeader()) { in onRestore()
188 Call call = readCallFromData(data); in onRestore()
199 void runBackup(CallLogBackupState state, BackupDataOutput data, Iterable<Call> calls) { in runBackup() argument
213 addCallToBackup(data, call); in runBackup()
228 removeCallFromBackup(data, i); in runBackup()
316 Call readCallFromData(BackupDataInput data) { in readCallFromData() argument
319 callId = Integer.parseInt(data.getKey()); in readCallFromData()
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DMessageDetailsDialog.java30 import com.android.messaging.datamodel.data.ConversationMessageData;
31 import com.android.messaging.datamodel.data.ConversationParticipantsData;
32 import com.android.messaging.datamodel.data.ParticipantData;
53 public static void show(final Context context, final ConversationMessageData data, in show() argument
59 return getMessageDetails(context, data, participants, self); in show()
68 String messageDetails = getMessageDetails(context, data, participants, self); in show()
74 final ConversationMessageData data, in getMessageDetails() argument
77 if (data.getIsSms()) { in getMessageDetails()
78 messageDetails = getSmsMessageDetails(data, participants, self); in getMessageDetails()
81 messageDetails = getMmsMessageDetails(context, data, participants, self); in getMessageDetails()
[all …]
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/
DBindingTest.java41 final TestBindableData data = new TestBindableData(TEST_DATA_ID); in testDataStartsUnbound() local
42 assertFalse(data.isBound()); in testDataStartsUnbound()
47 final TestBindableData data = new TestBindableData(TEST_DATA_ID); in testBindingUpdatesDataAndBindee() local
48 binding.bind(data); in testBindingUpdatesDataAndBindee()
50 assertEquals(binding.getData(), data); in testBindingUpdatesDataAndBindee() local
51 assertTrue(data.isBound(binding.getBindingId())); in testBindingUpdatesDataAndBindee()
52 assertFalse(data.isBound("SomeRandomString")); in testBindingUpdatesDataAndBindee()
54 assertFalse(data.mListenersUnregistered); in testBindingUpdatesDataAndBindee()
63 final TestBindableData data = new TestBindableData(TEST_DATA_ID); in testRebindingFails() local
65 binding.bind(data); in testRebindingFails()
[all …]
DFakeDataModel.java26 import com.android.messaging.datamodel.data.BlockedParticipantsData;
27 import com.android.messaging.datamodel.data.BlockedParticipantsData.BlockedParticipantsDataListener;
28 import com.android.messaging.datamodel.data.ContactListItemData;
29 import com.android.messaging.datamodel.data.ContactPickerData;
30 import com.android.messaging.datamodel.data.ContactPickerData.ContactPickerDataListener;
31 import com.android.messaging.datamodel.data.ConversationData;
32 import com.android.messaging.datamodel.data.ConversationData.ConversationDataListener;
33 import com.android.messaging.datamodel.data.ConversationListData;
34 import com.android.messaging.datamodel.data.ConversationListData.ConversationListDataListener;
35 import com.android.messaging.datamodel.data.DraftMessageData;
[all …]
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DStorageSettings.java552 SearchIndexableRaw data = new SearchIndexableRaw(context);
553 data.title = context.getString(R.string.storage_settings);
554 data.key = "storage_settings";
555 data.screenTitle = context.getString(R.string.storage_settings);
556 data.keywords = context.getString(R.string.keywords_storage_settings);
557 result.add(data);
559 data = new SearchIndexableRaw(context);
560 data.title = context.getString(R.string.internal_storage);
561 data.key = "storage_settings_internal_storage";
562 data.screenTitle = context.getString(R.string.storage_settings);
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/
DStorageSettings.java552 SearchIndexableRaw data = new SearchIndexableRaw(context);
553 data.title = context.getString(R.string.storage_settings);
554 data.key = "storage_settings";
555 data.screenTitle = context.getString(R.string.storage_settings);
556 data.keywords = context.getString(R.string.keywords_storage_settings);
557 result.add(data);
559 data = new SearchIndexableRaw(context);
560 data.title = context.getString(R.string.internal_storage);
561 data.key = "storage_settings_internal_storage";
562 data.screenTitle = context.getString(R.string.storage_settings);
[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 …]
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/storage/
DDatabaseManager.java143 Metadata data = (Metadata) msg.obj; in handleMessage() local
145 mDatabase.insert(data); in handleMessage()
260 Metadata data = mMetadataCache.get(address); in setCustomMeta() local
261 byte[] oldValue = data.getCustomizedMeta(key); in setCustomMeta()
268 data.setCustomizedMeta(key, newValue); in setCustomMeta()
270 updateDatabase(data); in setCustomMeta()
298 Metadata data = mMetadataCache.get(address); in getCustomMeta() local
299 return data.getCustomizedMeta(key); in getCustomMeta()
343 Metadata data = mMetadataCache.get(address); in setProfileConnectionPolicy() local
344 int oldConnectionPolicy = data.getProfileConnectionPolicy(profile); in setProfileConnectionPolicy()
[all …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DDataModel.java28 import com.android.messaging.datamodel.data.BlockedParticipantsData;
29 import com.android.messaging.datamodel.data.BlockedParticipantsData.BlockedParticipantsDataListener;
30 import com.android.messaging.datamodel.data.ContactListItemData;
31 import com.android.messaging.datamodel.data.ContactPickerData;
32 import com.android.messaging.datamodel.data.ContactPickerData.ContactPickerDataListener;
33 import com.android.messaging.datamodel.data.ConversationData;
34 import com.android.messaging.datamodel.data.ConversationData.ConversationDataListener;
35 import com.android.messaging.datamodel.data.ConversationListData;
36 import com.android.messaging.datamodel.data.ConversationListData.ConversationListDataListener;
37 import com.android.messaging.datamodel.data.DraftMessageData;
[all …]
DDataModelImpl.java28 import com.android.messaging.datamodel.data.BlockedParticipantsData;
29 import com.android.messaging.datamodel.data.BlockedParticipantsData.BlockedParticipantsDataListener;
30 import com.android.messaging.datamodel.data.ContactListItemData;
31 import com.android.messaging.datamodel.data.ContactPickerData;
32 import com.android.messaging.datamodel.data.ContactPickerData.ContactPickerDataListener;
33 import com.android.messaging.datamodel.data.ConversationData;
34 import com.android.messaging.datamodel.data.ConversationData.ConversationDataListener;
35 import com.android.messaging.datamodel.data.ConversationListData;
36 import com.android.messaging.datamodel.data.ConversationListData.ConversationListDataListener;
37 import com.android.messaging.datamodel.data.DraftMessageData;
[all …]
/packages/apps/SecureElement/src/com/android/se/security/arf/PKCS15/
DEF.java62 private void decodeFileProperties(byte[] data) throws SecureElementException { in decodeFileProperties() argument
63 if (data != null) { in decodeFileProperties()
66 if (data[0] == 0x62) { in decodeFileProperties()
67 decodeUSIMFileProps(data); in decodeFileProperties()
70 decodeSIMFileProps(data); in decodeFileProperties()
80 private void decodeSIMFileProps(byte[] data) throws SecureElementException { in decodeSIMFileProps() argument
81 if ((data == null) || (data.length < 15)) { in decodeSIMFileProps()
87 if ((short) (data[6] & 0xFF) == (short) 0x04) { in decodeSIMFileProps()
92 if ((short) (data[13] & 0xFF) == (short) 0x00) { in decodeSIMFileProps()
94 } else if ((short) (data[13] & 0xFF) == (short) 0x01) { in decodeSIMFileProps()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/helpers/
DUtil.java94 public static Bundle mediaMetadataToBundle(MediaMetadata data) { in mediaMetadataToBundle() argument
96 if (data == null) return bundle; in mediaMetadataToBundle()
98 if (data.containsKey(MediaMetadata.METADATA_KEY_TITLE)) { in mediaMetadataToBundle()
100 data.getString(MediaMetadata.METADATA_KEY_TITLE)); in mediaMetadataToBundle()
103 if (data.containsKey(MediaMetadata.METADATA_KEY_ARTIST)) { in mediaMetadataToBundle()
105 data.getString(MediaMetadata.METADATA_KEY_ARTIST)); in mediaMetadataToBundle()
108 if (data.containsKey(MediaMetadata.METADATA_KEY_ALBUM)) { in mediaMetadataToBundle()
110 data.getString(MediaMetadata.METADATA_KEY_ALBUM)); in mediaMetadataToBundle()
113 if (data.containsKey(MediaMetadata.METADATA_KEY_TRACK_NUMBER)) { in mediaMetadataToBundle()
115 data.getLong(MediaMetadata.METADATA_KEY_TRACK_NUMBER)); in mediaMetadataToBundle()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DInstallShortcutReceiver.java189 public void onReceive(Context context, Intent data) { in onReceive() argument
190 if (!ACTION_INSTALL_SHORTCUT.equals(data.getAction())) { in onReceive()
193 PendingInstallShortcutInfo info = createPendingInfo(context, data); in onReceive()
219 private static PendingInstallShortcutInfo createPendingInfo(Context context, Intent data) { in createPendingInfo() argument
220 if (!isValidExtraType(data, Intent.EXTRA_SHORTCUT_INTENT, Intent.class) || in createPendingInfo()
221 !(isValidExtraType(data, Intent.EXTRA_SHORTCUT_ICON_RESOURCE, in createPendingInfo()
223 !(isValidExtraType(data, Intent.EXTRA_SHORTCUT_ICON, Bitmap.class))) { in createPendingInfo()
230 data, Process.myUserHandle(), context); in createPendingInfo()
239 public static WorkspaceItemInfo fromShortcutIntent(Context context, Intent data) { in fromShortcutIntent() argument
240 PendingInstallShortcutInfo info = createPendingInfo(context, data); in fromShortcutIntent()
[all …]

12345678910>>...71