/packages/apps/Bluetooth/jni/ |
D | com_android_bluetooth_sdp.cpp | 64 bluetooth_sdp_record* record); 173 bluetooth_sdp_record* record = &records[i]; in sdp_search_callback() local 175 if (record->hdr.service_name_length > 0) { in sdp_search_callback() 176 ALOGD("%s, ServiceName: %s", __func__, record->mas.hdr.service_name); in sdp_search_callback() 178 (jstring)sCallbackEnv->NewStringUTF(record->mas.hdr.service_name)); in sdp_search_callback() 185 addr.get(), uuid.get(), (jint)record->mas.mas_instance_id, in sdp_search_callback() 186 (jint)record->mas.hdr.l2cap_psm, in sdp_search_callback() 187 (jint)record->mas.hdr.rfcomm_channel_number, in sdp_search_callback() 188 (jint)record->mas.hdr.profile_version, in sdp_search_callback() 189 (jint)record->mas.supported_features, in sdp_search_callback() [all …]
|
/packages/apps/Tag/src/com/android/apps/tag/message/ |
D | NdefMessageParser.java | 19 import com.android.apps.tag.record.ImageRecord; 20 import com.android.apps.tag.record.MimeRecord; 21 import com.android.apps.tag.record.ParsedNdefRecord; 22 import com.android.apps.tag.record.SmartPoster; 23 import com.android.apps.tag.record.TextRecord; 24 import com.android.apps.tag.record.UnknownRecord; 25 import com.android.apps.tag.record.UriRecord; 26 import com.android.apps.tag.record.VCardRecord; 53 for (NdefRecord record : records) { in getRecords() 54 if (SmartPoster.isPoster(record)) { in getRecords() [all …]
|
D | ParsedNdefMessage.java | 20 import com.android.apps.tag.record.ParsedNdefRecord; 21 import com.android.apps.tag.record.SmartPoster; 22 import com.android.apps.tag.record.UriRecord; 57 ParsedNdefRecord record = mRecords.get(0); in getSnippet() local 59 if (record instanceof UriRecord) { in getSnippet() 76 record = mRecords.get(smartPosterRecord); in getSnippet() 80 return record.getSnippet(context, locale); in getSnippet()
|
/packages/apps/TV/src/com/android/tv/data/ |
D | WatchedHistoryManager.java | 65 WatchedRecord record = decode( 68 if (record != null) { 69 mWatchedHistory.add(record); 71 mListener.onNewRecordAdded(record); 118 WatchedRecord record = in start() local 121 if (record != null) { in start() 122 mWatchedHistory.add(record); in start() 127 WatchedRecord record = decode(mSharedPreferences.getString( in start() local 129 if (record != null) { in start() 130 mWatchedHistory.add(record); in start() [all …]
|
/packages/services/Car/service/src/com/android/car/ |
D | CarSensorService.java | 208 SensorRecord record = new SensorRecord(); in addNewSensorRecordLocked() local 209 record.lastEvent = event; in addNewSensorRecordLocked() 210 mSensorRecords.put(type,record); in addNewSensorRecordLocked() 266 SensorRecord record = mSensorRecords.get(event.sensorType); in processSensorData() local 267 if (record != null) { in processSensorData() 268 if (record.lastEvent == null) { in processSensorData() 269 record.lastEvent = event; in processSensorData() 270 } else if (record.lastEvent.timestamp < event.timestamp) { in processSensorData() 271 record.lastEvent = event; in processSensorData() 372 SensorRecord record = mSensorRecords.get(sensorType); in registerOrUpdateSensorListener() local [all …]
|
/packages/apps/Tag/src/com/android/apps/tag/record/ |
D | SmartPoster.java | 17 package com.android.apps.tag.record; 124 public static SmartPoster parse(NdefRecord record) { in parse() argument 125 Preconditions.checkArgument(record.getTnf() == NdefRecord.TNF_WELL_KNOWN); in parse() 126 Preconditions.checkArgument(Arrays.equals(record.getType(), NdefRecord.RTD_SMART_POSTER)); in parse() 128 NdefMessage subRecords = new NdefMessage(record.getPayload()); in parse() 150 public static boolean isPoster(NdefRecord record) { in isPoster() argument 152 parse(record); in isPoster() 225 for (NdefRecord record : records) { in getByType() 226 if (Arrays.equals(type, record.getType())) { in getByType() 227 return record; in getByType() [all …]
|
D | MimeRecord.java | 17 package com.android.apps.tag.record; 70 public static MimeRecord parse(NdefRecord record) { in parse() argument 71 Preconditions.checkArgument(record.toMimeType() != null); in parse() 72 return new MimeRecord(record.toMimeType(), record.getPayload()); in parse() 75 public static boolean isMime(NdefRecord record) { in isMime() argument 76 return record.toMimeType() != null; in isMime()
|
D | TextRecord.java | 17 package com.android.apps.tag.record; 80 public static TextRecord parse(NdefRecord record) { in parse() argument 81 Preconditions.checkArgument(record.getTnf() == NdefRecord.TNF_WELL_KNOWN); in parse() 82 Preconditions.checkArgument(Arrays.equals(record.getType(), NdefRecord.RTD_TEXT)); in parse() 85 byte[] payload = record.getPayload(); in parse() 119 public static boolean isText(NdefRecord record) { in isText() argument 121 parse(record); in isText()
|
D | ImageRecord.java | 17 package com.android.apps.tag.record; 53 public static ImageRecord parse(NdefRecord record) { in parse() argument 54 String mimeType = record.toMimeType(); in parse() 61 byte[] content = record.getPayload(); in parse() 69 public static boolean isImage(NdefRecord record) { in isImage() argument 71 parse(record); in isImage()
|
D | UriRecord.java | 17 package com.android.apps.tag.record; 135 public static UriRecord parse(NdefRecord record) { in parse() argument 136 Uri uri = record.toUri(); in parse() 141 public static boolean isUri(NdefRecord record) { in isUri() argument 142 return record.toUri() != null; in isUri()
|
D | VCardRecord.java | 17 package com.android.apps.tag.record; 152 public static VCardRecord parse(NdefRecord record) { in parse() argument 153 MimeRecord underlyingRecord = MimeRecord.parse(record); in parse() 176 public static boolean isVCard(NdefRecord record) { in isVCard() argument 178 parse(record); in isVCard()
|
/packages/apps/TV/tests/unit/src/com/android/tv/data/ |
D | WatchedHistoryManagerTest.java | 80 WatchedRecord record = mWatchedHistoryManager.getRecord(0); in testLogChannelViewStop() local 83 assertEquals(record.channelId, fakeId); in testLogChannelViewStop() 84 assertEquals(record.watchedStartTime, time - duration); in testLogChannelViewStop() 85 assertEquals(record.duration, duration); in testLogChannelViewStop() 86 assertEquals(record, recordFromSharedPreferences); in testLogChannelViewStop() 102 WatchedRecord record = mWatchedHistoryManager.getRecord(i); in testCircularHistoryQueue() local 105 assertEquals(record, recordFromSharedPreferences); in testCircularHistoryQueue() 106 assertEquals(record.channelId, startChannelId + size - 1 - i); in testCircularHistoryQueue() 127 WatchedRecord record = new WatchedRecord(fakeId, time, duration); in testEncodeDecodeWatchedRecord() local 129 mWatchedHistoryManager.encode(record)); in testEncodeDecodeWatchedRecord() [all …]
|
/packages/apps/Settings/src/com/android/settings/ |
D | ResetNetwork.java | 153 for (SubscriptionInfo record : mSubscriptions) { in establishInitialState() 154 if (record.getSubscriptionId() == defaultSubscription) { in establishInitialState() 158 String name = record.getDisplayName().toString(); in establishInitialState() 160 name = record.getNumber(); in establishInitialState() 163 name = record.getCarrierName().toString(); in establishInitialState() 166 name = String.format("MCC:%s MNC:%s Slot:%s Id:%s", record.getMcc(), in establishInitialState() 167 record.getMnc(), record.getSimSlotIndex(), record.getSubscriptionId()); in establishInitialState()
|
/packages/apps/Nfc/tests/src/com/android/nfc/snep/ |
D | SnepValidationServerTests.java | 112 NdefRecord record = msg.getRecords()[0]; in doPut() local 113 ByteArrayWrapper id = (record.getId().length > 0) ? in doPut() 114 new ByteArrayWrapper(record.getId()) : DEFAULT_NDEF; in doPut() 122 NdefRecord record = msg.getRecords()[0]; in doGet() local 123 ByteArrayWrapper id = (record.getId().length > 0) ? in doGet() 124 new ByteArrayWrapper(record.getId()) : DEFAULT_NDEF; in doGet()
|
/packages/apps/Launcher3/src/com/android/launcher3/allapps/ |
D | AllAppsGridAdapter.java | 112 final AccessibilityRecordCompat record = AccessibilityEventCompat in onInitializeAccessibilityEvent() local 114 record.setItemCount(mApps.getNumFilteredApps()); in onInitializeAccessibilityEvent() 115 record.setFromIndex(Math.max(0, in onInitializeAccessibilityEvent() 116 record.getFromIndex() - getRowsNotForAccessibility(record.getFromIndex()))); in onInitializeAccessibilityEvent() 117 record.setToIndex(Math.max(0, in onInitializeAccessibilityEvent() 118 record.getToIndex() - getRowsNotForAccessibility(record.getToIndex()))); in onInitializeAccessibilityEvent()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | BatteryFlagParser.java | 40 protected boolean isSet(HistoryItem record) { in isSet() argument 41 return ((mState2 ? record.states2 : record.states) & mFlag) != 0; in isSet() 50 public void onDataPoint(long time, HistoryItem record) { in onDataPoint() argument 51 boolean isSet = isSet(record); in onDataPoint()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/parser/ |
D | PropertiesProvisioningDataParserTest.java | 166 NdefRecord record = NdefRecord.createMime( in testParse_nfcProvisioningIntent() local 169 NdefMessage ndfMsg = new NdefMessage(new NdefRecord[]{record}); in testParse_nfcProvisioningIntent() 241 NdefRecord record = NdefRecord.createMime(INVALID_MIME_TYPE, stream.toByteArray()); in testGetFirstNdefRecord_noNfcMimeType() local 242 NdefMessage ndfMsg = new NdefMessage(new NdefRecord[]{record}); in testGetFirstNdefRecord_noNfcMimeType() 254 NdefRecord record = NdefRecord.createMime( in testGetFirstNdefRecord() local 257 NdefMessage ndfMsg = new NdefMessage(new NdefRecord[]{record}); in testGetFirstNdefRecord() 263 assertEquals(PropertiesProvisioningDataParser.getFirstNdefRecord(nfcIntent), record); in testGetFirstNdefRecord() local
|
/packages/apps/DocumentsUI/src/com/android/documentsui/services/ |
D | FileOperationService.java | 261 JobRecord record = mJobs.get(jobId); in handleCancel() local 262 if (record != null) { in handleCancel() 263 record.job.cancel(); in handleCancel() 300 JobRecord record = mJobs.remove(job.id); in deleteJob() local 301 assert(record != null); in deleteJob() 302 record.job.cleanup(); in deleteJob()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/sdp/ |
D | SdpManager.java | 378 int size_record, byte[] record) { in sdpRecordFoundCallback() argument 391 if(D) Log.d(TAG, "Record:"+ Arrays.toString(record)); in sdpRecordFoundCallback() 392 sdpRecord = new SdpRecord(size_record, record); in sdpRecordFoundCallback() 442 Parcelable record, boolean moreResults) { in sendSdpIntent() argument 450 if (record != null) intent.putExtra(BluetoothDevice.EXTRA_SDP_RECORD, record); in sendSdpIntent()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | CreateConnectionProcessor.java | 288 CallAttemptRecord record = new CallAttemptRecord( in adjustAttemptsForConnectionManager() local 291 Log.v(this, "setConnectionManager, changing %s -> %s", mAttemptRecords.get(0), record); in adjustAttemptsForConnectionManager() 292 mAttemptRecords.add(0, record); in adjustAttemptsForConnectionManager() 371 for (CallAttemptRecord record : records) { in getConnectionServices() 372 result.add(record.connectionManagerPhoneAccount); in getConnectionServices()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
D | UpdateHandler.java | 391 for (DownloadRecord record : downloadRecords) { in getDownloadRecordsForCompletedDownloadInfo() 392 if (record.isMetadata()) { in getDownloadRecordsForCompletedDownloadInfo() 436 for (final DownloadRecord record : recordList) { in downloadFinished() 441 downloadSuccessful = handleDownloadedFile(context, record, manager, fileId); in downloadFinished() 446 if (record.isMetadata()) { in downloadFinished() 451 final SQLiteDatabase db = MetadataDbHelper.getDb(context, record.mClientId); in downloadFinished() 453 db, record.mAttributes, record.mClientId); in downloadFinished()
|
/packages/apps/Nfc/src/com/android/nfc/ |
D | NfcDispatcher.java | 546 for (NdefRecord record : message.getRecords()) { in extractAarPackages() 547 String pkg = checkForAar(record); in extractAarPackages() 668 static String checkForAar(NdefRecord record) { in checkForAar() argument 669 if (record.getTnf() == NdefRecord.TNF_EXTERNAL_TYPE && in checkForAar() 670 Arrays.equals(record.getType(), NdefRecord.RTD_ANDROID_APP)) { in checkForAar() 671 return new String(record.getPayload(), StandardCharsets.US_ASCII); in checkForAar()
|
/packages/services/Telephony/src/com/android/services/telephony/ |
D | TelecomAccountRegistry.java | 133 SubscriptionInfo record = in registerPstnPhoneAccount() local 147 if (record != null) { in registerPstnPhoneAccount() 148 subDisplayName = record.getDisplayName(); in registerPstnPhoneAccount() 149 slotId = record.getSimSlotIndex(); in registerPstnPhoneAccount() 150 color = record.getIconTint(); in registerPstnPhoneAccount() 151 icon = Icon.createWithBitmap(record.createIconBitmap(mContext)); in registerPstnPhoneAccount()
|
/packages/apps/TV/src/com/android/tv/recommendation/ |
D | RecommendationDataManager.java | 388 for (WatchedHistoryManager.WatchedRecord record in onLoadFinished() 391 convertFromWatchedHistoryManagerRecords(record)); in onLoadFinished() 475 ChannelRecord record = new ChannelRecord(mContext, channel, inputRemoved); in updateChannelRecordMapFromChannel() local 476 mChannelRecordMap.put(channel.getId(), record); in updateChannelRecordMapFromChannel() local 478 mAvailableChannelRecordMap.put(channel.getId(), record); in updateChannelRecordMapFromChannel() local
|
/packages/providers/ContactsProvider/test_common/src/com/android/providers/contacts/testutil/ |
D | CommonDatabaseUtils.java | 57 String[] record = new String[cursor.getColumnCount()]; in multiRecordToArray() local 58 fillArray(cursor, record); in multiRecordToArray() 59 result.add(record); in multiRecordToArray()
|