Home
last modified time | relevance | path

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

12345

/packages/modules/AppSearch/service/java/com/android/server/appsearch/util/
DAdbDumpUtil.java78 DebugInfoProto.Builder debugInfoBuilder = debugInfo.toBuilder(); in desensitizeDebugInfo()
80 debugInfoBuilder.getDocumentInfo().toBuilder(); in desensitizeDebugInfo()
84 documentInfoBuilder.getCorpusInfo(i).toBuilder(); in desensitizeDebugInfo()
92 documentInfoBuilder.getDocumentStorageInfo().toBuilder(); in desensitizeDebugInfo()
95 documentStorageInfoBuilder.getNamespaceStorageInfo(i).toBuilder(); in desensitizeDebugInfo()
105 debugInfoBuilder.getSchemaInfo().toBuilder(); in desensitizeDebugInfo()
106 SchemaProto.Builder schemaBuilder = schemaInfoBuilder.getSchema().toBuilder(); in desensitizeDebugInfo()
108 SchemaTypeConfigProto.Builder typeBuilder = schemaBuilder.getTypes(i).toBuilder(); in desensitizeDebugInfo()
113 PropertyConfigProto.Builder propertyBuilder = property.toBuilder(); in desensitizeDebugInfo()
/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/AdServices/adservices/libraries/cobalt/tests/src/com/android/cobalt/observations/
DPrivacyGeneratorTest.java70 sReport.toBuilder() in testAddNoise_fabricatedObservation_oneIndex()
86 sReport.toBuilder() in testAddNoise_twoFabricatedObservations_oneIndex()
102 sReport.toBuilder() in testAddNoise_oneFabricatedObservation_twoIndices()
118 sReport.toBuilder() in testAddNoise_twoFabricatedObservations_threeIndices()
136 sReport.toBuilder() in testAddNoise_metricWithDimensions_threeObservations()
162 sReport.toBuilder() in testAddNoise_negativeLambda_throwsException()
DPrivacyGeneratorStatisticalTest.java101 sReportTemplate.toBuilder() in totalIndicesAddedTest()
236 sReportTemplate.toBuilder() in distributionIndicesAdded()
DPrivateObservationGeneratorTest.java216 REPORT.toBuilder() in generateObservations_noEventsButFabricatedObservation_twoObservations()
300 REPORT.toBuilder() in generateObservations_oneEventAndFabricatedObservation_threeObservations()
359 REPORT.toBuilder() in generateObservations_oneEventForMetricWithDimensions_threeObservations()
/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/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/data/
DFederatedTrainingTaskDaoTest.java105 createDefaultFederatedTrainingTask().toBuilder().jobId(jobId2).build(); in findAndRemoveTaskByJobId_success()
127 createDefaultFederatedTrainingTask().toBuilder() in findAndRemoveTaskByPopulationNameAndJobId_success()
146 createDefaultFederatedTrainingTask().toBuilder() in testGetNumberOfFederatedTrainingTasksPerOwnerPackage()
171 createDefaultFederatedTrainingTask().toBuilder() in findAndRemoveTaskByPopulationName_success()
190 createDefaultFederatedTrainingTask().toBuilder() in findAndRemoveTaskByPopulationNameAndCallingPackage_success()
228 createDefaultFederatedTrainingTask().toBuilder() in findAndRemoveTaskByPopulationNameAndAndOwnerId_success()
234 createDefaultFederatedTrainingTask().toBuilder() in findAndRemoveTaskByPopulationNameAndAndOwnerId_success()
240 createDefaultFederatedTrainingTask().toBuilder() in findAndRemoveTaskByPopulationNameAndAndOwnerId_success()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/util/
DPrefixUtil.java169 documentBuilder.getProperties(propertyIdx).toBuilder(); in addPrefixToDocument()
172 propertyBuilder.getDocumentValues(documentIdx).toBuilder(); in addPrefixToDocument()
215 documentBuilder.getProperties(propertyIdx).toBuilder(); in removePrefixesFromDocument()
218 propertyBuilder.getDocumentValues(documentIdx).toBuilder(); in removePrefixesFromDocument()
258 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()
/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/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/AdServices/adservices/libraries/cobalt/tests/src/com/android/cobalt/impl/
DCobaltPeriodicJobImplTest.java518 SYSTEM_PROFILE_1.toBuilder()
571 REPORT_2_METADATA.toBuilder().setSystemProfile(large).build(),
646 OBSERVATION_1.toBuilder()
721 OBSERVATION_2.toBuilder()
920 mProject.getMetrics().get(1).toBuilder()
967 metric.getReports(2).toBuilder().setMaxReleaseStage(ReleaseStage.FISHFOOD).build();
974 metric.toBuilder().setReports(2, newReport).build(),
1209 baseMetadata.toBuilder()
1221 baseMetadata.toBuilder()
1382 baseMetadata.toBuilder()
[all …]
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/scheduling/
DJobSchedulerHelperTest.java120 TRAINING_TASK.toBuilder() in scheduleTask_overrideIdleConstraint_waivesIdle()
140 TRAINING_TASK.toBuilder() in scheduleTask_overrideUnmeteredNetworkConstraint_waivesNetwork()
160 TRAINING_TASK.toBuilder() in scheduleTask_overrideChargingConstraint_waivesCharging()
/packages/apps/TV/libs/m2/
Dprotobuf-java-3.7.0.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/maven/ META- ...
Djavapoet-1.11.1.jarMETA-INF/MANIFEST.MF META-INF/ com/ com/squareup/ com/ ...
/packages/modules/AppSearch/testing/coretests/src/android/app/appsearch/
DAppSearchSessionInternalTest.java120 artistDoc.toBuilder() in testQuery_typeFilterWithPolymorphism()
339 artistDoc.toBuilder() in testQuery_indexBasedOnParentTypePolymorphism()
343 messageDoc.toBuilder().setPropertyDocument("sender", expectedArtistDoc).build(); in testQuery_indexBasedOnParentTypePolymorphism()
408 docA.toBuilder() in testQuery_parentTypeListIsTopologicalOrder()
412 docB.toBuilder() in testQuery_parentTypeListIsTopologicalOrder()
416 docC.toBuilder() in testQuery_parentTypeListIsTopologicalOrder()
/packages/modules/AdServices/adservices/libraries/cobalt/java/com/android/cobalt/data/
DLogAggregators.java122 LocalIndexHistogram.Builder updatedHistogram = indexHistogram.toBuilder(); in aggregate()
128 i, bucket.toBuilder().setCount(bucket.getCount() + 1)); in aggregate()
/packages/apps/Launcher3/src/com/android/launcher3/model/data/
DLauncherAppWidgetInfo.java276 return info.toBuilder() in buildProto()
277 .setWidget(info.getWidget().toBuilder().setWidgetFeatures(widgetFeatures)) in buildProto()
/packages/modules/AdServices/adservices/libraries/cobalt/tests/src/com/android/cobalt/registry/
DRegistryValidatorTest.java172 report.toBuilder() in testIsValidReportTypeAndPrivacyMechanism_fleetwideOccurrenceCounts_unsetIntegerBuckets()
193 report.toBuilder() in testIsValidReportTypeAndPrivacyMechanism_stringCounts_defaultIntegerBuckets()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DBatteryTipsControllerTest.java129 event.toBuilder() in handleBatteryTipsCardUpdated_screenTimeoutAnomalyHasTitle_showAnomaly()
131 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

12345