Home
last modified time | relevance | path

Searched refs:newBuilder (Results 1 – 25 of 46) sorted by relevance

12

/cts/hostsidetests/statsd/src/android/cts/statsd/validation/
DValidationTests.java441 FieldMatcher.Builder dimensions = FieldMatcher.newBuilder() in uploadWakelockDurationBatteryStatsConfig()
443 .addChild(FieldMatcher.newBuilder() in uploadWakelockDurationBatteryStatsConfig()
445 .addChild(FieldMatcher.newBuilder() in uploadWakelockDurationBatteryStatsConfig()
448 .addChild(FieldMatcher.newBuilder() in uploadWakelockDurationBatteryStatsConfig()
451 AtomMatcher.Builder wakelockAcquire = AtomMatcher.newBuilder() in uploadWakelockDurationBatteryStatsConfig()
453 .setSimpleAtomMatcher(SimpleAtomMatcher.newBuilder() in uploadWakelockDurationBatteryStatsConfig()
455 .addFieldValueMatcher(FieldValueMatcher.newBuilder() in uploadWakelockDurationBatteryStatsConfig()
458 .addFieldValueMatcher(FieldValueMatcher.newBuilder() in uploadWakelockDurationBatteryStatsConfig()
462 AtomMatcher.Builder wakelockChangeAcquire = AtomMatcher.newBuilder() in uploadWakelockDurationBatteryStatsConfig()
464 .setSimpleAtomMatcher(SimpleAtomMatcher.newBuilder() in uploadWakelockDurationBatteryStatsConfig()
[all …]
/cts/hostsidetests/statsd/src/android/cts/statsd/metric/
DMetricsUtils.java38 AtomMatcher.Builder builder = AtomMatcher.newBuilder(); in getAtomMatcher()
39 builder.setSimpleAtomMatcher(SimpleAtomMatcher.newBuilder() in getAtomMatcher()
45 return AtomMatcher.newBuilder() in startAtomMatcher()
48 SimpleAtomMatcher.newBuilder() in startAtomMatcher()
50 .addFieldValueMatcher(FieldValueMatcher.newBuilder() in startAtomMatcher()
61 return AtomMatcher.newBuilder() in stopAtomMatcher()
64 SimpleAtomMatcher.newBuilder() in stopAtomMatcher()
66 .addFieldValueMatcher(FieldValueMatcher.newBuilder() in stopAtomMatcher()
77 return AtomMatcher.newBuilder() in unspecifiedAtomMatcher()
79 .setSimpleAtomMatcher(SimpleAtomMatcher.newBuilder() in unspecifiedAtomMatcher()
[all …]
DValueMetricsTests.java69 ValueMetric.newBuilder() in testValueMetric()
73 .setValueField(FieldMatcher.newBuilder() in testValueMetric()
75 .addChild(FieldMatcher.newBuilder().setField( in testValueMetric()
77 .setDimensionsInWhat(FieldMatcher.newBuilder() in testValueMetric()
133 builder.addPredicate(Predicate.newBuilder() in testPullerAcrossBuckets()
135 .setSimplePredicate(SimplePredicate.newBuilder() in testPullerAcrossBuckets()
143 …SimpleAtomMatcher.Builder sam = SimpleAtomMatcher.newBuilder().setAtomId(Atom.SYSTEM_ELAPSED_REALT… in testPullerAcrossBuckets()
144 builder.addAtomMatcher(AtomMatcher.newBuilder() in testPullerAcrossBuckets()
150 ValueMetric.newBuilder() in testPullerAcrossBuckets()
154 .setValueField(FieldMatcher.newBuilder() in testPullerAcrossBuckets()
[all …]
DDurationMetricsTests.java67 SimplePredicate simplePredicate = SimplePredicate.newBuilder() in testDurationMetric()
71 Predicate predicate = Predicate.newBuilder() in testDurationMetric()
79 StatsdConfigProto.DurationMetric.newBuilder() in testDurationMetric()
132 SimplePredicate simplePredicate = SimplePredicate.newBuilder() in testDurationMetricWithCondition()
136 Predicate predicate = Predicate.newBuilder() in testDurationMetricWithCondition()
141 SimplePredicate conditionSimplePredicate = SimplePredicate.newBuilder() in testDurationMetricWithCondition()
145 Predicate conditionPredicate = Predicate.newBuilder() in testDurationMetricWithCondition()
156 .addDurationMetric(StatsdConfigProto.DurationMetric.newBuilder() in testDurationMetricWithCondition()
245 SimplePredicate simplePredicate = SimplePredicate.newBuilder() in testDurationMetricWithActivation()
249 Predicate predicate = Predicate.newBuilder() in testDurationMetricWithActivation()
[all …]
DGaugeMetricsTests.java67 SimplePredicate simplePredicate = SimplePredicate.newBuilder() in testGaugeMetric()
71 Predicate predicate = Predicate.newBuilder() in testGaugeMetric()
79 FieldMatcher.newBuilder().setField(APP_BREADCRUMB_REPORTED_B_MATCH_START_ID).build(); in testGaugeMetric()
81 StatsdConfigProto.GaugeMetric.newBuilder() in testGaugeMetric()
86 FieldFilter.newBuilder().setIncludeAll(false).setFields(fieldMatcher).build()) in testGaugeMetric()
88 FieldMatcher.newBuilder() in testGaugeMetric()
90 .addChild(FieldMatcher.newBuilder() in testGaugeMetric()
164 AtomMatcher.newBuilder() in testPulledGaugeMetricWithActivation()
167 … SimpleAtomMatcher.newBuilder().setAtomId(Atom.SYSTEM_UPTIME_FIELD_NUMBER)) in testPulledGaugeMetricWithActivation()
176 StatsdConfigProto.GaugeMetric.newBuilder() in testPulledGaugeMetricWithActivation()
[all …]
DCountMetricsTests.java43 builder.addCountMetric(StatsdConfigProto.CountMetric.newBuilder() in testSimpleEventCountMetric()
82 StatsdConfigProto.Predicate p = StatsdConfigProto.Predicate.newBuilder() in testEventCountWithCondition()
83 .setSimplePredicate(StatsdConfigProto.SimplePredicate.newBuilder() in testEventCountWithCondition()
91 .addCountMetric(StatsdConfigProto.CountMetric.newBuilder() in testEventCountWithCondition()
152 StatsdConfigProto.Predicate p = StatsdConfigProto.Predicate.newBuilder() in testEventCountWithConditionAndActivation()
153 .setSimplePredicate(StatsdConfigProto.SimplePredicate.newBuilder() in testEventCountWithConditionAndActivation()
161 .addCountMetric(StatsdConfigProto.CountMetric.newBuilder() in testEventCountWithConditionAndActivation()
172 .addMetricActivation(StatsdConfigProto.MetricActivation.newBuilder() in testEventCountWithConditionAndActivation()
175 .addEventActivation(StatsdConfigProto.EventActivation.newBuilder() in testEventCountWithConditionAndActivation()
257 builder.addCountMetric(StatsdConfigProto.CountMetric.newBuilder() in testPartialBucketCountMetric()
DMetricActivationTests.java73 EventMetric metric1 = EventMetric.newBuilder() in createConfig()
78 EventMetric metric2 = EventMetric.newBuilder() in createConfig()
83 EventMetric metric3 = EventMetric.newBuilder() in createConfig()
107 MetricActivation metric1Activation = MetricActivation.newBuilder() in createConfig()
114 MetricActivation metric2Activation = MetricActivation.newBuilder() in createConfig()
/cts/hostsidetests/statsd/src/android/cts/statsd/alert/
DAnomalyDetectionTests.java96 .addCountMetric(CountMetric.newBuilder() in testCountAnomalyDetection()
101 .setDimensionsInWhat(FieldMatcher.newBuilder() in testCountAnomalyDetection()
103 .addChild(FieldMatcher.newBuilder() in testCountAnomalyDetection()
148 .addDurationMetric(DurationMetric.newBuilder() in testDurationAnomalyDetection()
154 .addPredicate(StatsdConfigProto.Predicate.newBuilder() in testDurationAnomalyDetection()
156 .setSimplePredicate(StatsdConfigProto.SimplePredicate.newBuilder() in testDurationAnomalyDetection()
212 .addDurationMetric(DurationMetric.newBuilder() in testDurationAnomalyDetectionForLateAlarms()
219 .addPredicate(StatsdConfigProto.Predicate.newBuilder() in testDurationAnomalyDetectionForLateAlarms()
221 .setSimplePredicate(StatsdConfigProto.SimplePredicate.newBuilder() in testDurationAnomalyDetectionForLateAlarms()
259 .addValueMetric(ValueMetric.newBuilder() in testValueAnomalyDetection()
[all …]
/cts/tools/release-parser/src/com/android/cts/releaseparser/
DXmlHandler.java61 mPermissionListBuilder = PermissionList.newBuilder(); in XmlHandler()
63 mAssignPermissionsListBuilder = PermissionList.newBuilder(); in XmlHandler()
65 mLibraryListBuilder = PermissionList.newBuilder(); in XmlHandler()
67 mAllowInPowerSaveListBuilder = PermissionList.newBuilder(); in XmlHandler()
69 mSystemUserWhitelistedListBuilder = PermissionList.newBuilder(); in XmlHandler()
71 mPrivappPermissionsListBuilder = PermissionList.newBuilder(); in XmlHandler()
73 mFeatureListBuilder = PermissionList.newBuilder(); in XmlHandler()
91 mPermissionsBuilder = Permission.newBuilder(); in startElement()
96 Element.Builder eleBuilder = Element.newBuilder(); in startElement()
103 mPermissionsBuilder = Permission.newBuilder(); in startElement()
[all …]
DSoParser.java112 mAppInfoBuilder = AppInfo.newBuilder(); in getAppInfo()
135 mExternalApiPackageBuilder = ApiPackage.newBuilder(); in parse()
137 mInternalApiPackageBuilder = ApiPackage.newBuilder(); in parse()
162 ApiClass.Builder mInternalApiClassBuilder = ApiClass.newBuilder(); in parseApi()
174 ApiField.Builder fieldBuilder = ApiField.newBuilder(); in parseApi()
178 ApiMethod.Builder methodBuilder = ApiMethod.newBuilder(); in parseApi()
189 ApiField.Builder fieldBuilder = ApiField.newBuilder(); in parseApi()
193 ApiMethod.Builder methodBuilder = ApiMethod.newBuilder(); in parseApi()
209 builder = ApiClass.newBuilder().setName(ClassUtils.getCanonicalName(name)); in getApiClassBuilder()
DTestModuleConfigHandler.java52 mTestModuleConfig = TestModuleConfig.newBuilder(); in TestModuleConfigHandler()
73 mTestCase = TestModuleConfig.TestClass.newBuilder(); in startElement()
77 mTargetPreparer = TestModuleConfig.TargetPreparer.newBuilder(); in startElement()
81 Option.Builder option = Option.newBuilder(); in startElement()
DDexParser.java92 mExternalApiPackageBuilder = ApiPackage.newBuilder(); in parse()
95 mInternalApiPackageBuilder = ApiPackage.newBuilder(); in parse()
127 ApiField.Builder fieldBuilder = ApiField.newBuilder(); in parse()
139 ApiMethod.Builder methodBuilder = ApiMethod.newBuilder(); in parse()
188 ApiAnnotation.Builder apiAnnotationBuilder = ApiAnnotation.newBuilder(); in getAnnotationList()
192 Element.Builder elementBuilder = Element.newBuilder(); in getAnnotationList()
249 ApiField.Builder fieldBuilder = ApiField.newBuilder(); in processField()
258 ApiMethod.Builder methodBuilder = ApiMethod.newBuilder(); in processMethod()
DTestSuiteParser.java127 TestSuite.Builder tsBuilder = TestSuite.newBuilder(); in praseTestSuite()
147 TestSuite.Module.Builder moduleBuilder = TestSuite.Module.newBuilder(); in praseModule()
166 ApiPackage.Builder pkgBuilder = ApiPackage.newBuilder(); in praseModule()
182 ApiPackage.Builder pkgBuilder = ApiPackage.newBuilder(); in parseAndroidJUnitTest()
226 ApiClass.Builder tClassBuilder = ApiClass.newBuilder(); in parseApkTestCase()
295 ApiMethod.Builder testBuilder = ApiMethod.newBuilder(); in newTestBuilder()
307 ApiPackage.Builder pkgBuilder = ApiPackage.newBuilder(); in parseJavaHostTest()
323 ApiClass.Builder tClassBuilder = ApiClass.newBuilder(); in parseJavaHostTest()
331 ApiMethod.Builder methodBuilder = ApiMethod.newBuilder(); in parseJavaHostTest()
/cts/tests/tests/batterysaving/src/android/os/cts/batterysaving/
DBatterySaverBgServiceTest.java118 Payload.newBuilder().setTestServiceRequest( in requestClearIntent()
119 TestServiceRequest.newBuilder().setClearLastIntent(true)) in requestClearIntent()
128 Payload.newBuilder().setTestServiceRequest( in requestLastIntent()
129 TestServiceRequest.newBuilder().setGetLastIntent(true)) in requestLastIntent()
157 Payload.newBuilder().setTestServiceRequest( in tryStartTestServiceAndReturnAction()
158 TestServiceRequest.newBuilder().setStartService( in tryStartTestServiceAndReturnAction()
159 StartServiceRequest.newBuilder() in tryStartTestServiceAndReturnAction()
DBatterySaverAlarmTest.java128 final SetAlarmRequest areq = SetAlarmRequest.newBuilder() in scheduleAlarm()
135 Payload.newBuilder().setTestServiceRequest( in scheduleAlarm()
136 TestServiceRequest.newBuilder().setSetAlarm(areq)) in scheduleAlarm()
150 Payload.newBuilder().setTestServiceRequest( in startService()
151 TestServiceRequest.newBuilder().setStartService( in startService()
152 StartServiceRequest.newBuilder() in startService()
163 Payload.newBuilder().setTestServiceRequest( in stopService()
164 TestServiceRequest.newBuilder().setStopService(true).build()).build()); in stopService()
/cts/tests/tests/syncmanager/src/android/content/syncmanager/cts/
DCtsSyncManagerTest.java145 rb -> rb.setRemoveAllAccounts(RemoveAllAccounts.newBuilder())); in removeAllAccounts()
159 rb -> rb.setClearSyncInvocations(ClearSyncInvocations.newBuilder())); in clearSyncInvocations()
166 rb -> rb.setAddAccount(AddAccount.newBuilder().setName(account.name))); in addAccountAndLetInitialSyncRun()
182 ClearSyncInvocations.newBuilder())); in testInitialSync()
190 rb -> rb.setGetSyncInvocations(GetSyncInvocations.newBuilder())); in testInitialSync()
218 rb.setSetResult(SetResult.newBuilder().setResult(Result.SOFT_ERROR))); in testSoftErrorRetriesActiveApp()
230 rb -> rb.setGetSyncInvocations(GetSyncInvocations.newBuilder())); in testSoftErrorRetriesActiveApp()
244 ClearSyncInvocations.newBuilder())); in testInitialSyncInNeverBucket()
255 rb -> rb.setGetSyncInvocations(GetSyncInvocations.newBuilder())); in testInitialSyncInNeverBucket()
DBroadcastRpc.java46 final Builder rb = Request.newBuilder(); in invoke()
50 Payload.newBuilder().setRequest(req).build()).getResponse(); in invoke()
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/
DCtsReportHandler.java47 mCtsReportBld = CtsReport.newBuilder(); in CtsReportHandler()
57 mTestPackageBld = CtsReport.TestPackage.newBuilder(); in startElement()
58 mTestSuiteBld = CtsReport.TestPackage.TestSuite.newBuilder(); in startElement()
66 mTestCaseBld = CtsReport.TestPackage.TestSuite.TestCase.newBuilder(); in startElement()
70 testBld = CtsReport.TestPackage.TestSuite.TestCase.Test.newBuilder(); in startElement()
DTestModuleConfigHandler.java49 mFileMetadata = FileMetadata.newBuilder(); in TestModuleConfigHandler()
50 mConfigMetadata = ConfigMetadata.newBuilder(); in TestModuleConfigHandler()
69 mTestCase = ConfigMetadata.TestClass.newBuilder(); in startElement()
72 mTargetPreparer = ConfigMetadata.TargetPreparer.newBuilder(); in startElement()
75 Option.Builder option = Option.newBuilder(); in startElement()
DTestCaseReport.java205 TestSuite.Package.Builder tsPkgBuilder = TestSuite.Package.newBuilder(); in parseApkTestCase()
230 TestSuite.Package.Class.newBuilder(); in parseApkTestCase()
244 TestSuite.Package.Class.Method.newBuilder(); in parseApkTestCase()
253 TestSuite.Package.Class.newBuilder(); in parseApkTestCase()
262 TestSuite.Package.Class.Method.newBuilder(); in parseApkTestCase()
270 TestSuite.Package.Class.newBuilder(); in parseApkTestCase()
279 TestSuite.Package.Class.Method.newBuilder(); in parseApkTestCase()
366 TestSuite.Package.Builder tsPkgBuilder = TestSuite.Package.newBuilder(); in parseJarTestCase()
373 TestSuite.Package.Class.newBuilder(); in parseJarTestCase()
385 TestSuite.Package.Class.Method.newBuilder(); in parseJarTestCase()
[all …]
/cts/hostsidetests/statsd/src/android/cts/statsd/alarm/
DAlarmTests.java67 return StatsdConfig.newBuilder().setId(CONFIG_ID) in getBaseConfig()
68 .addAlarm(Alarm.newBuilder() in getBaseConfig()
73 .addSubscription(Subscription.newBuilder() in getBaseConfig()
77 .setIncidentdDetails(IncidentdDetails.newBuilder() in getBaseConfig()
/cts/hostsidetests/statsd/src/android/cts/statsd/atom/
DAtomTestCase.java200 return StatsdConfig.newBuilder().setId(CONFIG_ID) in createConfigBuilder()
488 return FieldValueMatcher.newBuilder().setField(field); in createFvm()
521 SimpleAtomMatcher.Builder sam = SimpleAtomMatcher.newBuilder().setAtomId(atomId); in addAtomEvent()
527 conf.addAtomMatcher(AtomMatcher.newBuilder() in addAtomEvent()
530 conf.addEventMetric(EventMetric.newBuilder() in addAtomEvent()
547 SimpleAtomMatcher.Builder sam = SimpleAtomMatcher.newBuilder().setAtomId(atomId); in addGaugeAtom()
548 conf.addAtomMatcher(AtomMatcher.newBuilder() in addGaugeAtom()
553 conf.addAtomMatcher(AtomMatcher.newBuilder() in addGaugeAtom()
555 .setSimpleAtomMatcher(SimpleAtomMatcher.newBuilder() in addGaugeAtom()
557 .addFieldValueMatcher(FieldValueMatcher.newBuilder() in addGaugeAtom()
[all …]
/cts/tests/tests/syncmanager/apps/app1/src/android/content/syncmanager/cts/app/
DCommReceiver.java33 final Payload.Response.Builder res = Payload.Response.newBuilder(); in handleRequest()
45 res.setSyncInvocations(SyncInvocations.newBuilder() in handleRequest()
53 return Payload.newBuilder().setResponse(res).build(); in handleRequest()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/metrics/
DAtomMetricTester.java74 return StatsdConfig.newBuilder().setId(CONFIG_ID) in createConfigBuilder()
146 return FieldValueMatcher.newBuilder().setField(field); in createFvm()
166 SimpleAtomMatcher.Builder sam = SimpleAtomMatcher.newBuilder().setAtomId(atomTag); in addAtomEvent()
172 conf.addAtomMatcher(AtomMatcher.newBuilder() in addAtomEvent()
175 conf.addEventMetric(EventMetric.newBuilder() in addAtomEvent()
/cts/hostsidetests/statsd/src/android/cts/statsd/subscriber/
DShellSubscriberTest.java73 ShellConfig.ShellSubscription config = ShellConfig.ShellSubscription.newBuilder() in testShellSubscription()
74 .addPulled(ShellConfig.PulledAtomSubscription.newBuilder().setMatcher( in testShellSubscription()
75 StatsdConfigProto.SimpleAtomMatcher.newBuilder() in testShellSubscription()

12