/packages/services/Car/car-lib/src/android/car/hardware/ |
D | CarSensorEvent.java | 224 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/ |
D | SectionParser.java | 17 package com.android.tv.tuner.data; 28 import com.android.tv.tuner.data.PsiData.PatItem; 29 import com.android.tv.tuner.data.PsiData.PmtItem; 30 import com.android.tv.tuner.data.PsipData.Ac3AudioDescriptor; 31 import com.android.tv.tuner.data.PsipData.CaptionServiceDescriptor; 32 import com.android.tv.tuner.data.PsipData.ContentAdvisoryDescriptor; 33 import com.android.tv.tuner.data.PsipData.EitItem; 34 import com.android.tv.tuner.data.PsipData.EttItem; 35 import com.android.tv.tuner.data.PsipData.ExtendedChannelNameDescriptor; 36 import com.android.tv.tuner.data.PsipData.GenreDescriptor; [all …]
|
D | Cea708Parser.java | 17 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; 253 public void parseClosedCaption(ByteBuffer data, long framePtsUs) { in parseClosedCaption() argument [all …]
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/ |
D | EndianUtils.java | 118 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 …]
|
D | IOUtils.java | 631 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/providers/ContactsProvider/tests/assets/upgradeTest/ |
D | contacts2_1108.sql | 3 …INTEGER PRIMARY KEY,account_name TEXT NOT NULL,account_type TEXT NOT NULL,data TEXT,UNIQUE(account… field 15 …data(_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/Messaging/tests/src/com/android/messaging/datamodel/data/ |
D | ConversationMessageDataTest.java | 16 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/apps/Settings/tests/robotests/src/com/android/settings/slices/ |
D | SliceDataTest.java | 59 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 …]
|
D | SlicesDatabaseAccessorTest.java | 100 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/ |
D | LocalSource.java | 90 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 …]
|
D | PicasaSource.java | 104 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/ |
D | BerTlv.java | 70 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/ |
D | CarSensorManagerTest.java | 154 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/ |
D | TestMetadata.java | 29 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/ |
D | CallLogBackupAgent.java | 145 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/Bluetooth/src/com/android/bluetooth/btservice/storage/ |
D | DatabaseManager.java | 107 Metadata data = (Metadata) msg.obj; in handleMessage() local 109 mDatabase.insert(data); in handleMessage() 227 Metadata data = mMetadataCache.get(address); in setCustomMeta() local 228 byte[] oldValue = data.getCustomizedMeta(key); in setCustomMeta() 236 data.setCustomizedMeta(key, newValue); in setCustomMeta() 238 updateDatabase(data); in setCustomMeta() 266 Metadata data = mMetadataCache.get(address); in getCustomMeta() local 267 return data.getCustomizedMeta(key); in getCustomMeta() 315 Metadata data = mMetadataCache.get(address); in setProfilePriority() local 316 int oldPriority = data.getProfilePriority(profile); in setProfilePriority() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/ |
D | MessageDetailsDialog.java | 30 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/ |
D | BindingTest.java | 41 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 …]
|
D | FakeDataModel.java | 26 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/ |
D | StorageSettings.java | 552 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/ |
D | StorageSettings.java | 552 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/ |
D | GalleryActivity.java | 35 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/Messaging/src/com/android/messaging/datamodel/ |
D | DataModel.java | 28 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 …]
|
D | DataModelImpl.java | 28 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/ |
D | EF.java | 62 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 …]
|