Home
last modified time | relevance | path

Searched refs:toBuilder (Results 1 – 25 of 80) sorted by relevance

1234

/packages/modules/Connectivity/nearby/tests/unit/src/com/android/server/nearby/common/bluetooth/fastpair/
DPreferencesTest.java65 assertThat(prefs.toBuilder().build().getGattOperationTimeoutSeconds()) in testGattOperationTimeoutSeconds()
79 assertThat(prefs.toBuilder().build().getGattConnectionTimeoutSeconds()) in testGattConnectionTimeoutSeconds()
93 assertThat(prefs.toBuilder().build().getBluetoothToggleTimeoutSeconds()) in testBluetoothToggleTimeoutSeconds()
107 assertThat(prefs.toBuilder().build().getBluetoothToggleSleepSeconds()) in testBluetoothToggleSleepSeconds()
121 assertThat(prefs.toBuilder().build().getClassicDiscoveryTimeoutSeconds()) in testClassicDiscoveryTimeoutSeconds()
135 assertThat(prefs.toBuilder().build().getNumDiscoverAttempts()) in testNumDiscoverAttempts()
150 assertThat(prefs.toBuilder().build().getDiscoveryRetrySleepSeconds()) in testDiscoveryRetrySleepSeconds()
164 assertThat(prefs.toBuilder().build().getSdpTimeoutSeconds()) in testSdpTimeoutSeconds()
178 assertThat(prefs.toBuilder().build().getNumSdpAttempts()) in testNumSdpAttempts()
192 assertThat(prefs.toBuilder().build().getNumCreateBondAttempts()) in testNumCreateBondAttempts()
[all …]
/packages/apps/TV/tuner/src/com/android/tv/tuner/data/
DTunerChannel.java334 mProto = mProto.toBuilder().setVideoPid(videoPid).build(); in setVideoPid()
360 mProto = mProto.toBuilder().clearAudioPids().addAllAudioPids(audioPids).build(); in setAudioPids()
381 mProto.toBuilder() in setAudioStreamTypes()
396 mProto = mProto.toBuilder().setFilepath(filepath == null ? "" : filepath).build(); in setFilepath()
404 mProto = mProto.toBuilder().setVirtualMajor(virtualMajor).build(); in setVirtualMajor()
408 mProto = mProto.toBuilder().setVirtualMinor(virtualMinor).build(); in setVirtualMinor()
412 mProto = mProto.toBuilder().setShortName(shortName == null ? "" : shortName).build(); in setShortName()
416 mProto = mProto.toBuilder().setDeliverySystemType(deliverySystemType).build(); in setDeliverySystemType()
420 mProto = mProto.toBuilder().setFrequency(frequency).build(); in setFrequency()
424 mProto = mProto.toBuilder().setModulation(modulation == null ? "" : modulation).build(); in setModulation()
[all …]
/packages/modules/AppSearch/service/java/com/android/server/appsearch/util/
DAdbDumpUtil.java86 DebugInfoProto.Builder debugInfoBuilder = debugInfo.toBuilder(); in desensitizeDebugInfo()
88 debugInfoBuilder.getDocumentInfo().toBuilder(); in desensitizeDebugInfo()
92 documentInfoBuilder.getCorpusInfo(i).toBuilder(); in desensitizeDebugInfo()
100 documentInfoBuilder.getDocumentStorageInfo().toBuilder(); in desensitizeDebugInfo()
103 documentStorageInfoBuilder.getNamespaceStorageInfo(i).toBuilder(); in desensitizeDebugInfo()
113 debugInfoBuilder.getSchemaInfo().toBuilder(); in desensitizeDebugInfo()
114 SchemaProto.Builder schemaBuilder = schemaInfoBuilder.getSchema().toBuilder(); in desensitizeDebugInfo()
116 SchemaTypeConfigProto.Builder typeBuilder = schemaBuilder.getTypes(i).toBuilder(); in desensitizeDebugInfo()
121 PropertyConfigProto.Builder propertyBuilder = property.toBuilder(); in desensitizeDebugInfo()
/packages/services/Mms/src/com/android/mms/service/metrics/
DPersistMmsAtomsStorage.java117 atoms = atoms.toBuilder() in loadAtomsFromFile()
144 existingMms = existingMms.toBuilder() in addIncomingMms()
149 mPersistMmsAtoms = mPersistMmsAtoms.toBuilder() in addIncomingMms()
156 mPersistMmsAtoms = mPersistMmsAtoms.toBuilder() in addIncomingMms()
174 existingMms = existingMms.toBuilder() in addOutgoingMms()
179 mPersistMmsAtoms = mPersistMmsAtoms.toBuilder() in addOutgoingMms()
186 mPersistMmsAtoms = mPersistMmsAtoms.toBuilder() in addOutgoingMms()
203 mPersistMmsAtoms = mPersistMmsAtoms.toBuilder() in getIncomingMms()
223 mPersistMmsAtoms = mPersistMmsAtoms.toBuilder() in getOutgoingMms()
/packages/services/Car/tests/BugReportApp/tests/src/com/android/car/bugreport/
DTtlPointsDecrementalTest.java88 bugUserPending_ttl_points1.toBuilder().setTtlPoints(0).build()); in test_decrementsTtlPointsForPendingBugReports()
90 bugUserPending_ttl_points2.toBuilder().setTtlPoints(1).build()); in test_decrementsTtlPointsForPendingBugReports()
92 bugUploadPending.toBuilder().setTtlPoints(1).build()); in test_decrementsTtlPointsForPendingBugReports()
94 bugUploadFailed.toBuilder().setTtlPoints(1).build()); in test_decrementsTtlPointsForPendingBugReports()
97 bugUploadedBefore.toBuilder().setTtlPoints(1).build()); in test_decrementsTtlPointsForPendingBugReports()
DBugStorageUtilsTest.java104 .isEqualTo(bug.toBuilder() in test_expireBugReport_marksBugReportDeletedAndDeletesZip()
221 bug.toBuilder().setBugReportFileName(BUGREPORT_FILE_NAME).build()); in createBugReportFile()
230 bug.toBuilder().setAudioFileName(AUDIO_FILE_NAME).build()); in createAudioFile()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/util/
DPrefixUtil.java171 documentBuilder.getProperties(propertyIdx).toBuilder(); in addPrefixToDocument()
174 propertyBuilder.getDocumentValues(documentIdx).toBuilder(); in addPrefixToDocument()
217 documentBuilder.getProperties(propertyIdx).toBuilder(); in removePrefixesFromDocument()
220 propertyBuilder.getDocumentValues(documentIdx).toBuilder(); in removePrefixesFromDocument()
260 typeConfigBuilder.getProperties(propertyIdx).toBuilder(); in removePrefixesFromSchemaType()
/packages/apps/Dialer/java/com/android/dialer/speeddial/loader/
DSpeedDialUiItemMutator.java272 .toBuilder() in loadSpeedDialUiItemsInternal()
343 updatedItems.add(speedDialUiItem.toBuilder().setSpeedDialEntryId(id).build()); in speedDialUiItemsWithUpdatedIds()
395 .toBuilder() in updateContactIdsAndLookupKeys()
442 item.toBuilder() in getSpeedDialUiItemsFromEntries()
577 item.buildSpeedDialEntry().toBuilder().setPinnedPosition(Optional.of(i)).build()); in updatePinnedPosition()
670 newChannelsList.add(previousChannel.toBuilder().setTechnology(Channel.DUO).build()); in insertDuoChannelsToStarredContact()
679 newChannelsList.add(previousChannel.toBuilder().setTechnology(Channel.DUO).build()); in insertDuoChannelsToStarredContact()
681 return item.toBuilder().setChannels(newChannelsList.build()).build(); in insertDuoChannelsToStarredContact()
DSpeedDialUiItem.java150 channels.add(channel.toBuilder().setTechnology(Channel.IMS_VIDEO).build()); in fromCursor()
343 public abstract Builder toBuilder(); in toBuilder() method in SpeedDialUiItem
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/publisher/
DMemoryPublisherTest.java94 BASE_MEMORY_PUBLISHER.toBuilder().addPackageNames("com.android.car"))
199 SUBSCRIBER_TEN_SEC.toBuilder() in testAddDataSubscriber_whenMatchingPackageName_pullsDeviceAndProcessMeminfo()
245 SUBSCRIBER_TEN_SEC.toBuilder() in testAddDataSubscriber_multipleMatchingPackageName_pullsDeviceAndProcessMeminfo()
301 BASE_MEMORY_PUBLISHER.toBuilder().addPackageNames(packageName)).build(); in testAddDataSubscriber_whenPackageNameNotFound_doesNotPullProcessMeminfo()
303 SUBSCRIBER_TEN_SEC.toBuilder().setPublisher(publisher).build()); in testAddDataSubscriber_whenPackageNameNotFound_doesNotPullProcessMeminfo()
406 TelemetryProto.Publisher badPublisher = MEMORY_PUBLISHER_TEN_SEC.toBuilder().setMemory( in testAddDataSubscriber_invalidConfiguration_throwsException()
408 TelemetryProto.Subscriber badSubscriber = SUBSCRIBER_TEN_SEC.toBuilder() in testAddDataSubscriber_invalidConfiguration_throwsException()
/packages/services/Mms/tests/unittests/src/com/android/mms/service/metrics/
DPersistMmsAtomsStorageTest.java262 newIncomingMm1Proto = newIncomingMm1Proto.toBuilder() in addIncomingMms_updateExistingEntries()
291 mms = mms.toBuilder().setRat(ratType).setResult(resultType).build(); in addIncomingMms_tooManyEntries()
299 lastMms = lastMms.toBuilder().setRat(6).setResult(6).build(); in addIncomingMms_tooManyEntries()
402 newOutgoingMm1Proto = newOutgoingMm1Proto.toBuilder() in addOutgoingMms_updateExistingEntries()
432 mms = mms.toBuilder().setRat(ratType).setResult(resultType).build(); in addOutgoingMms_tooManyEntries()
440 lastMms = lastMms.toBuilder().setRat(6).setResult(6).build(); in addOutgoingMms_tooManyEntries()
612 return source.toBuilder().build(); in copyOf()
616 return source.toBuilder().build(); in copyOf()
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/data/
DFederatedTrainingTaskDaoTest.java75 createDefaultFederatedTrainingTask().toBuilder().jobId(jobId2).build(); in findAndRemoveTaskByJobId_success()
97 createDefaultFederatedTrainingTask().toBuilder() in findAndRemoveTaskByPopulationNameAndJobId_success()
123 createDefaultFederatedTrainingTask().toBuilder() in findAndRemoveTaskByPopulationName_success()
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/scheduling/
DJobSchedulerHelperTest.java112 TRAINING_TASK.toBuilder() in scheduleTask_overrideIdleConstraint_waivesIdle()
132 TRAINING_TASK.toBuilder() in scheduleTask_overrideUnmeteredNetworkConstraint_waivesNetwork()
152 TRAINING_TASK.toBuilder() in scheduleTask_overrideChargingConstraint_waivesCharging()
/packages/apps/Dialer/java/com/android/dialer/speeddial/database/
DSpeedDialEntry.java57 public abstract Builder toBuilder(); in toBuilder() method in SpeedDialEntry
113 public abstract Builder toBuilder(); in toBuilder() method in SpeedDialEntry.Channel
/packages/modules/Connectivity/nearby/tests/unit/src/com/android/server/nearby/fastpair/pairinghandler/
DPairingProgressHandlerBaseTest.java100 sDiscoveryItem.getStoredItemForTest().toBuilder() in setup()
114 sDiscoveryItem.getStoredItemForTest().toBuilder() in createHandler_halfSheetSubsequentPairing_notificationPairingHandlerCreated()
131 sDiscoveryItem.getStoredItemForTest().toBuilder() in createHandler_halfSheetInitialPairing_halfSheetPairingHandlerCreated()
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/scheduling/
DFederatedComputeJobManager.java141 existingTask.toBuilder() in onTrainerStartCalled()
241 FederatedTrainingTask newTask = existingTask.toBuilder().lastRunStartTime(nowMs).build();
291 existingTask.toBuilder() in rescheduleFederatedTaskAfterTraining()
/packages/apps/Launcher3/src/com/android/launcher3/model/data/
DLauncherAppWidgetInfo.java291 return info.toBuilder() in buildProto()
292 .setWidget(info.getWidget().toBuilder().setWidgetFeatures(widgetFeatures)) in buildProto()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DBatteryTipsControllerTest.java121 event = event.toBuilder() in handleBatteryTipsCardUpdated_screenTimeoutAnomalyHasTitle_showAnomaly()
123 event.getWarningBannerInfo().toBuilder() in handleBatteryTipsCardUpdated_screenTimeoutAnomalyHasTitle_showAnomaly()
/packages/services/Car/tests/carservice_test/src/com/android/car/telemetry/
DCarTelemetryManagerTest.java73 METRICS_CONFIG_V1.toBuilder().setVersion(2).build();
145 METRICS_CONFIG_V1.toBuilder().addSubscribers(badSubscriber).build(); in testAddMetricsConfig_invalidFieldInConfig_shouldFail()
/packages/apps/Dialer/java/com/android/dialer/enrichedcall/
DEnrichedCallCapabilities.java40 public abstract Builder toBuilder(); in toBuilder() method in EnrichedCallCapabilities
/packages/modules/OnDevicePersonalization/pluginlib/src/com/android/ondevicepersonalization/libraries/plugin/
DPluginInfo.java45 public abstract Builder toBuilder(); in toBuilder() method in PluginInfo.ArchiveInfo
/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/api/storage/
DExtensions.kt68 return toBuilder() in EntityMetadata()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DPendingAddWidgetInfo.java76 return info.toBuilder() in buildProto()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/chooser/
DImmutableTargetInfo.java387 public Builder toBuilder() { in toBuilder() method in ImmutableTargetInfo
432 return toBuilder().setBaseIntentToSend(merged).build(); in tryToCloneWithAppliedRefinement()
/packages/modules/OnDevicePersonalization/pluginlib/src/com/android/ondevicepersonalization/libraries/plugin/internal/
DPluginInfoInternal.java102 public abstract Builder toBuilder(); in toBuilder() method in PluginInfoInternal

1234