Home
last modified time | relevance | path

Searched refs:getValue (Results 1 – 25 of 287) sorted by relevance

12345678910>>...12

/tools/metalava/metalava/src/main/java/com/android/tools/metalava/
DOptions.kt107 override fun getValue(thisRef: Nothing?, property: KProperty<*>): Options { in <lambda>() method
703 val path = getValue(args, ++index) in parse()
707 val listString = getValue(args, ++index) in parse()
718 subtractApi = stringToExistingFile(getValue(args, ++index)) in parse()
727 stringToExistingDirsOrFiles(getValue(args, ++index)) in parse()
731 stringToExistingDirsOrFiles(getValue(args, ++index)) in parse()
737 validateNullabilityFromList = stringToExistingFile(getValue(args, ++index)) in parse()
740 nullabilityWarningsTxt = stringToNewFile(getValue(args, ++index)) in parse()
742 ARG_SDK_VALUES -> sdkValueDir = stringToNewDir(getValue(args, ++index)) in parse()
743 ARG_DEX_API -> dexApiFile = stringToNewFile(getValue(args, ++index)) in parse()
[all …]
/tools/tradefederation/core/test_framework/com/android/tradefed/postprocessor/
DPerfettoGenericPostProcessor.java347 if (node.getValue().isJsonObject()) { in flattenJson()
348 node.getValue() in flattenJson()
356 TfMetricProtoUtil.stringToMetric(node.getValue().getAsString()).toBuilder()); in flattenJson()
387 replaceEntry.getValue()); in replacePrefix()
388 finalMetrics.put(newKey, metric.getValue()); in replacePrefix()
395 finalMetrics.put(metric.getKey(), metric.getValue()); in replacePrefix()
414 finalMetrics.put(newKey, metric.getValue()); in replaceAllMetricPrefix()
415 CLog.d("Perfetto trace metric: key: %s value: %s", newKey, metric.getValue()); in replaceAllMetricPrefix()
456 if (!(entry.getValue() instanceof Message) && !(entry.getValue() instanceof List)) { in convertPerfettoProtoMessage()
457 if (isNumeric(entry.getValue().toString())) { in convertPerfettoProtoMessage()
[all …]
DStatsdGenericPostProcessor.java202 e -> e.getValue())); in addPrefixToMetrics()
223 if (entry.getValue() instanceof Message) { in convertProtoMessage()
225 convertProtoMessage((Message) entry.getValue()); in convertProtoMessage()
229 metricEntry.getValue()); in convertProtoMessage()
231 } else if (entry.getValue() instanceof List) { in convertProtoMessage()
232 List<? extends Object> listMetrics = (List) entry.getValue(); in convertProtoMessage()
248 metricEntry.getValue()); in convertProtoMessage()
260 TfMetricProtoUtil.stringToMetric(entry.getValue().toString()).toBuilder()); in convertProtoMessage()
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/sign/
DJarSigningTest.java68 assertEquals("1.0", manifest.getMainAttributes().getValue("Manifest-Version")); in signEmptyJar()
69 assertEquals("Me", manifest.getMainAttributes().getValue("Created-By")); in signEmptyJar()
70 assertEquals("Me", manifest.getMainAttributes().getValue("Built-By")); in signEmptyJar()
97 assertEquals("1.0", manifest.getMainAttributes().getValue("Manifest-Version")); in signJarWithPrexistingSimpleTextFilePre18()
98 assertEquals("Merry", manifest.getMainAttributes().getValue("Built-By")); in signJarWithPrexistingSimpleTextFilePre18()
99 assertEquals("Christmas", manifest.getMainAttributes().getValue("Created-By")); in signJarWithPrexistingSimpleTextFilePre18()
104 assertEquals("OOQgIEXBissIvva3ydRoaXk29Rk=", attrs.getValue("SHA1-Digest")); in signJarWithPrexistingSimpleTextFilePre18()
111 assertEquals("1.0", signature.getMainAttributes().getValue("Signature-Version")); in signJarWithPrexistingSimpleTextFilePre18()
112 assertEquals("1.0 (Android)", signature.getMainAttributes().getValue("Created-By")); in signJarWithPrexistingSimpleTextFilePre18()
119 signature.getMainAttributes().getValue("SHA1-Digest-Manifest")); in signJarWithPrexistingSimpleTextFilePre18()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/result/
DJsonHttpTestResultReporterTest.java76 Assert.assertTrue(jsonCaptor.getValue().getJSONObject(JSON_METRIC_KEY).has("run1")); in testSkipFailedRuns_notSet()
77 Assert.assertTrue(jsonCaptor.getValue().getJSONObject(JSON_METRIC_KEY).getJSONObject("run1") in testSkipFailedRuns_notSet()
79 Assert.assertTrue(jsonCaptor.getValue().getJSONObject(JSON_METRIC_KEY).has("run2")); in testSkipFailedRuns_notSet()
80 Assert.assertTrue(jsonCaptor.getValue().getJSONObject(JSON_METRIC_KEY).getJSONObject("run2") in testSkipFailedRuns_notSet()
96 Assert.assertTrue(jsonCaptor.getValue().getJSONObject(JSON_METRIC_KEY).has("run1")); in testSkipFailedRuns_set()
97 Assert.assertTrue(jsonCaptor.getValue().getJSONObject(JSON_METRIC_KEY).getJSONObject("run1") in testSkipFailedRuns_set()
99 Assert.assertFalse(jsonCaptor.getValue().getJSONObject(JSON_METRIC_KEY).has("run2")); in testSkipFailedRuns_set()
114 CLog.i(jsonCaptor.getValue().toString()); in testInvalidMetricsNotSet()
116 Assert.assertFalse(jsonCaptor.getValue().getJSONObject(JSON_METRIC_KEY) in testInvalidMetricsNotSet()
133 CLog.i(jsonCaptor.getValue().toString()); in testInvalidAndInvalidMetricsNotSet()
[all …]
DLogcatCrashResultForwarderTest.java119 .getValue() in testCaptureTestCrash_oneCrashingLogcat()
127 captured_1.getValue().getFailureStatus())); in testCaptureTestCrash_oneCrashingLogcat()
130 .getValue() in testCaptureTestCrash_oneCrashingLogcat()
178 captured.getValue() in testCaptureTestCrash_oneCrashingLogcatAfterTestEnded()
226 captured.getValue() in testCaptureTestCrash_duplicateStack()
256 assertTrue(captured.getValue().getErrorMessage().contains(trace)); in testTestTimedOutTests()
257 assertTrue(FailureStatus.TIMED_OUT.equals(captured.getValue().getFailureStatus())); in testTestTimedOutTests()
282 assertTrue(captured.getValue().getErrorMessage().contains(trace)); in testShellTimedOutTests()
283 assertTrue(FailureStatus.TIMED_OUT.equals(captured.getValue().getFailureStatus())); in testShellTimedOutTests()
DBugreportCollectorTest.java183 "value", mTestCapture.getValue().get("key").getMeasurements().getSingleString()); in testPassThrough()
185 "value", mRunCapture.getValue().get("key2").getMeasurements().getSingleString()); in testPassThrough()
214 "value", mTestCapture.getValue().get("key").getMeasurements().getSingleString()); in testTestFailed()
216 "value", mRunCapture.getValue().get("key2").getMeasurements().getSingleString()); in testTestFailed()
244 "value", mTestCapture.getValue().get("key").getMeasurements().getSingleString()); in testTestEnded()
246 "value", mRunCapture.getValue().get("key2").getMeasurements().getSingleString()); in testTestEnded()
276 "value", mTestCapture.getValue().get("key").getMeasurements().getSingleString()); in testWaitForDevice()
278 "value", mRunCapture.getValue().get("key2").getMeasurements().getSingleString()); in testWaitForDevice()
305 "value", mTestCapture.getValue().get("key").getMeasurements().getSingleString()); in testTestEnded_firstCase()
307 "value", mRunCapture.getValue().get("key2").getMeasurements().getSingleString()); in testTestEnded_firstCase()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/mobly/
DMoblyYamlResultParserTest.java183 assertEquals(DEFAULT_TEST_CLASS, mStartedDescCaptor.getValue().getClassName()); in testReportToListenersPassRecord()
184 assertEquals(DEFAULT_TEST_NAME, mStartedDescCaptor.getValue().getTestName()); in testReportToListenersPassRecord()
185 assertEquals(Long.parseLong(DEFAULT_BEGIN_TIME), (long) mBeginTimeCaptor.getValue()); in testReportToListenersPassRecord()
187 assertEquals(DEFAULT_TEST_CLASS, mEndDescCaptor.getValue().getClassName()); in testReportToListenersPassRecord()
188 assertEquals(DEFAULT_TEST_NAME, mEndDescCaptor.getValue().getTestName()); in testReportToListenersPassRecord()
189 assertEquals(Long.parseLong(DEFAULT_END_TIME), (long) mEndTimeCaptor.getValue()); in testReportToListenersPassRecord()
207 assertEquals(DEFAULT_TEST_CLASS, mStartedDescCaptor.getValue().getClassName()); in testReportToListenersFailRecord()
208 assertEquals(DEFAULT_TEST_NAME, mStartedDescCaptor.getValue().getTestName()); in testReportToListenersFailRecord()
209 assertEquals(Long.parseLong(DEFAULT_BEGIN_TIME), (long) mBeginTimeCaptor.getValue()); in testReportToListenersFailRecord()
210 assertEquals(DEFAULT_TEST_CLASS, mFailedDescCaptor.getValue().getClassName()); in testReportToListenersFailRecord()
[all …]
/tools/platform-compat/java/com/android/class2nonsdklist/
DUnsupportedAppUsageAnnotationHandler.java119 String expected = property.getValue().stringifyValue(); in handleAnnotation()
129 if (property.getValue().getElementValueType() != ElementValue.PRIMITIVE_INT) { in handleAnnotation()
132 property.getValue().getElementValueType()); in handleAnnotation()
136 maxTargetSdk = ((SimpleElementValue) property.getValue()).getValueInt(); in handleAnnotation()
139 implicitMemberSignature = property.getValue().stringifyValue(); in handleAnnotation()
153 publicAlternativesString = property.getValue().stringifyValue(); in handleAnnotation()
156 if (property.getValue().getElementValueType() != ElementValue.PRIMITIVE_LONG) { in handleAnnotation()
159 property.getValue().getElementValueType()); in handleAnnotation()
162 trackingBug = ((SimpleElementValue) property.getValue()).getValueLong(); in handleAnnotation()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/retry/
DResultsPlayer.java98 ReplayModuleHolder holder = e.getValue(); in run()
184 listener.testStarted(testEntry.getKey(), testEntry.getValue().getStartTime()); in forwardTestResults()
185 switch (testEntry.getValue().getResultStatus()) { in forwardTestResults()
187 listener.testFailed(testEntry.getKey(), testEntry.getValue().getStackTrace()); in forwardTestResults()
191 testEntry.getKey(), testEntry.getValue().getStackTrace()); in forwardTestResults()
197 listener.testSkipped(testEntry.getKey(), testEntry.getValue().getSkipReason()); in forwardTestResults()
208 testEntry.getValue().getLoggedFiles().entrySet()) { in forwardTestResults()
211 .logAssociation(logFile.getKey(), logFile.getValue()); in forwardTestResults()
214 HashMap<String, Metric> metrics = testEntry.getValue().getProtoMetrics(); in forwardTestResults()
221 listener.testEnded(testEntry.getKey(), testEntry.getValue().getEndTime(), metrics); in forwardTestResults()
/tools/tradefederation/core/src/com/android/tradefed/config/
DConfigurationXmlParser.java113 final String objectTypeName = attributes.getValue("type"); in startElement()
130 String deviceName = attributes.getValue("name"); in startElement()
194 String optionName = attributes.getValue("name"); in startElement()
199 String optionKey = attributes.getValue("key"); in startElement()
203 String optionValue = attributes.getValue("value"); in startElement()
220 String description = attributes.getValue("description"); in startElement()
230 String includeName = attributes.getValue("name"); in startElement()
253 final String templateName = attributes.getValue("name"); in startElement()
268 includeName = attributes.getValue("default"); in startElement()
309 String isFakeString = attributes.getValue(IS_FAKE_ATTR); in addObject()
[all …]
/tools/aadevtools/avd/
Dcreate_avd.sh41 getValue() { function
135 getValue "DEVICE_PROFILE_NAME" "d:id" "${DEVICE_XML}"
136 getValue "MANUFACTURER" "d:manufacturer" "${DEVICE_XML}"
137 getValue "ORIENTATION" "d:screen-orientation" "${DEVICE_XML}"
138 getValue "TAG_ID" "d:tag-id" "${DEVICE_XML}"
139 getValue "SKIN" "d:skin" "${DEVICE_XML}"
/tools/tradefederation/core/javatests/com/android/tradefed/device/
DLocalAndroidVirtualDeviceTest.java456 File capturedDir = new File(entry.getValue().getValue()); in testPreinvocationSetupSuccess()
470 Assert.assertFalse(new File(reportFile.getValue()).exists()); in testPreinvocationSetupSuccess()
472 File capturedDir = new File(entry.getValue().getValue()); in testPreinvocationSetupSuccess()
505 File capturedHostPackageDir = new File(hostPackageDir.getValue()); in testShutdown()
506 File capturedImageDir = new File(imageDir.getValue()); in testShutdown()
507 File capturedInstanceDir = new File(instanceDir.getValue()); in testShutdown()
526 Assert.assertFalse(new File(reportFile.getValue()).exists()); in testShutdown()
564 File capturedHostPackageDir = new File(hostPackageDir.getValue()); in testPreInvocationSetupBootFailure()
565 File capturedImageDir = new File(imageDir.getValue()); in testPreInvocationSetupBootFailure()
566 File capturedInstanceDir = new File(instanceDir.getValue()); in testPreInvocationSetupBootFailure()
[all …]
/tools/test/graphicsbenchmark/performance_tests/deviceside/src/com/android/game/qualification/device/
DGameQualificationTest.java98 intent.putExtra(argument.getKey(), argument.getValue()); in startApp()
101 boolean value = Boolean.valueOf(argument.getValue()); in startApp()
106 byte value = Byte.valueOf(argument.getValue()); in startApp()
111 int value = Integer.valueOf(argument.getValue()); in startApp()
116 long value = Long.valueOf(argument.getValue()); in startApp()
121 float value = Float.valueOf(argument.getValue()); in startApp()
126 double value = Double.valueOf(argument.getValue()); in startApp()
/tools/tradefederation/core/src/com/android/tradefed/invoker/
DShardListener.java293 mMainListener.testStarted(testEntry.getKey(), testEntry.getValue().getStartTime()); in forwardTestResults()
294 switch (testEntry.getValue().getStatus()) { in forwardTestResults()
296 mMainListener.testFailed(testEntry.getKey(), testEntry.getValue().getFailure()); in forwardTestResults()
300 testEntry.getKey(), testEntry.getValue().getFailure()); in forwardTestResults()
309 forwardLogAssociation(testEntry.getValue().getLoggedFiles(), mMainListener); in forwardTestResults()
311 if (!testEntry.getValue().getResultStatus().equals(TestStatus.INCOMPLETE)) { in forwardTestResults()
314 testEntry.getValue().getEndTime(), in forwardTestResults()
315 testEntry.getValue().getProtoMetrics()); in forwardTestResults()
337 ((ILogSaverListener) listener).logAssociation(logFile.getKey(), logFile.getValue()); in forwardLogAssociation()
/tools/tradefederation/core/javatests/com/android/tradefed/service/management/
DTestInvocationManagementServerTest.java96 NewTestCommandResponse response = mResponseCaptor.getValue(); in testSubmitTestCommand_andDetails()
103 InvocationDetailResponse responseDetails = mResponseDetailCaptor.getValue(); in testSubmitTestCommand_andDetails()
125 NewTestCommandResponse response = mResponseCaptor.getValue(); in testSubmitTestCommand_schedulingError()
155 NewTestCommandResponse response = mResponseCaptor.getValue(); in testSubmitTestCommand_reservedDevice()
162 InvocationDetailResponse responseDetails = mResponseDetailCaptor.getValue(); in testSubmitTestCommand_reservedDevice()
198 NewTestCommandResponse response = mResponseCaptor.getValue(); in testSubmitTestCommand_reservedMultiDevice()
205 InvocationDetailResponse responseDetails = mResponseDetailCaptor.getValue(); in testSubmitTestCommand_reservedMultiDevice()
230 NewTestCommandResponse response = mResponseCaptor.getValue(); in testSubmitTestCommand_andStop()
240 StopInvocationResponse stopResponse = mStopInvocationCaptor.getValue(); in testSubmitTestCommand_andStop()
248 InvocationDetailResponse responseDetails = mResponseDetailCaptor.getValue(); in testSubmitTestCommand_andStop()
DDeviceManagementGrpcServerTest.java94 GetDevicesStatusResponse response = mGetDevicesStatusCaptor.getValue(); in testGetDevicesStatus()
123 GetDevicesStatusResponse response = mGetDevicesStatusCaptor.getValue(); in testGetDevicesStatus_filter()
144 ReserveDeviceResponse reservation = mReserveDeviceResponseCaptor.getValue(); in testReserveAndRelease_freeDevice()
153 GetDevicesStatusResponse response = mGetDevicesStatusCaptor.getValue(); in testReserveAndRelease_freeDevice()
192 String reservationId = mReserveDeviceResponseCaptor.getValue().getReservationId(); in testReserveAndRelease_notFreeDevice()
201 ReleaseReservationResponse response = mReleaseReservationResponseCaptor.getValue(); in testReserveAndRelease_notFreeDevice()
216 ReserveDeviceResponse reservation = mReserveDeviceResponseCaptor.getValue(); in testReserve_allocated()
233 ReserveDeviceResponse reservation = mReserveDeviceResponseCaptor.getValue(); in testReserve_unavailable()
250 ReserveDeviceResponse reservation = mReserveDeviceResponseCaptor.getValue(); in testReserve_cancelledBeforeReserved()
269 ReserveDeviceResponse reservation = mReserveDeviceResponseCaptor.getValue(); in testReserve_cancelledAfterReserved()
/tools/platform-compat/javatest/com/android/class2nonsdklist/
DUnsupportedAppUsageAnnotationHandlerTest.java103 assertThat(greylist.getValue()).isEqualTo("La/b/Class;->method()V"); in testGreylistMethod()
124 assertThat(greylist.getValue()).isEqualTo("La/b/Class;-><init>()V"); in testGreylistConstructor()
145 assertThat(greylist.getValue()).isEqualTo("La/b/Class;->i:I"); in testGreylistField()
166 assertThat(greylist.getValue()).isEqualTo("La/b/EnumClass;->values()[La/b/EnumClass;"); in testGreylistImplicit()
187 assertThat(format.getValue()) in testGreylistImplicit_Invalid_MissingOnClass()
208 assertThat(format.getValue()) in testGreylistImplicit_Invalid_PresentOnMember()
230 assertThat(greylist.getValue()).isEqualTo("La/b/Class;->method()V"); in testGreylistMethodExpectedSignature()
271 assertThat(greylist.getValue()).isEqualTo("La/b/Class$Inner;->method()V"); in testGreylistInnerClassMethod()
309 assertThat(greylist.getValue()).isEqualTo("La/b/Class;->method(Ljava/lang/String;)V"); in testMethodArgGenerics()
449 assertThat(greylist.getValue()).isEqualTo("La/b/Class;->method(Ljava/lang/String;)V"); in testPublicBridgeExcluded()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/config/filter/
DCommandOptionsGetterTest.java87 assertEquals("true", part1.getValue()); in getCommandOptionsValue_multiValue()
91 assertEquals("mytag", part2.getValue()); in getCommandOptionsValue_multiValue()
113 assertEquals("true", part1.getValue()); in getCommandOptionsValue_set()
117 assertEquals("mytag", part2.getValue()); in getCommandOptionsValue_set()
121 assertEquals("DEVICE_TRACE", part3.getValue()); in getCommandOptionsValue_set()
125 assertEquals("LOGCAT_ON_FAILURE", part4.getValue()); in getCommandOptionsValue_set()
/tools/tradefederation/contrib/src/com/android/build/tests/
DImageStats.java209 ret.put(p, e.getValue()); in processAggregationPatterns()
279 total += stat.getValue(); in performAggregation()
284 String label = getAggregationLabel(m, pattern.getValue()); in performAggregation()
289 size += stat.getValue(); in performAggregation()
305 if (mMinReportSize > 0 && e.getValue() < mMinReportSize) { in performAggregation()
309 e.getKey(), e.getValue(), mMinReportSize); in performAggregation()
312 ret.put(e.getKey(), Long.toString(e.getValue())); in performAggregation()
330 compatibleMetrics.put(fileSizeEntry.getKey(), String.valueOf(fileSizeEntry.getValue())); in convertMestricsToString()
/tools/tradefederation/core/src/com/android/tradefed/retry/
DResultAggregator.java174 mDetailedForwarder.logAssociation(assos.getKey(), assos.getValue()); in invocationEnded()
404 mDetailedForwarder.logAssociation(assos.getKey(), assos.getValue()); in testModuleEnded()
474 listener.testStarted(testEntry.getKey(), testEntry.getValue().getStartTime()); in forwardTestResults()
475 switch (testEntry.getValue().getResultStatus()) { in forwardTestResults()
477 listener.testFailed(testEntry.getKey(), testEntry.getValue().getFailure()); in forwardTestResults()
481 testEntry.getKey(), testEntry.getValue().getFailure()); in forwardTestResults()
492 listener.testSkipped(testEntry.getKey(), testEntry.getValue().getSkipReason()); in forwardTestResults()
499 testEntry.getValue().getLoggedFiles().entrySet()) { in forwardTestResults()
502 .logAssociation(logFile.getKey(), logFile.getValue()); in forwardTestResults()
507 testEntry.getValue().getEndTime(), in forwardTestResults()
[all …]
/tools/test/graphicsbenchmark/performance_tests/hostside/src/com/android/game/qualification/metric/
DHistogram.java112 cumulative += entry.getValue(); in plotAscii()
123 float percentage = entry.getValue() * 100f / total; in plotAscii()
126 ? (entry.getValue() * maxBarLength + maxCount - 1) / maxCount in plotAscii()
127 : entry.getValue(); in plotAscii()
134 entry.getValue(), in plotAscii()
/tools/tradefederation/core/src/com/android/tradefed/device/metric/
DFilePullerDeviceMetricCollector.java153 processMetricFile(entry.getKey(), entry.getValue(), data); in processMetricRequest()
161 File pulledDirectory = pulledMetrics.getValue(); in processMetricRequest()
174 processMetricDirectory(pulledMetrics.getKey(), pulledMetrics.getValue(), data); in processMetricRequest()
203 retrieveFile(device, entry.getValue(), deviceUsers.get(device)); in pullMetricFile()
206 device.deleteFile(entry.getValue()); in pullMetricFile()
215 entry.getValue(), device.getSerialNumber()); in pullMetricFile()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DTestMappingSuiteRunner.java270 IConfiguration moduleConfig = entry.getValue(); in loadTests()
345 if (entry.getValue().getConfigurationDescription().getAbi() != null in createIndividualTests()
346 && !entry.getValue().getConfigurationDescription().getAbi().equals(abi)) { in createIndividualTests()
349 List<IRemoteTest> remoteTests = entry.getValue().getTests(); in createIndividualTests()
409 String.format("%s %s", testInfo.getName(), option.getValue())); in parseOptions()
413 String.format("%s %s", testInfo.getName(), option.getValue())); in parseOptions()
418 if (option.getValue() != null && !option.getValue().isEmpty()) { in parseOptions()
419 moduleArg = String.format("%s:%s", moduleArg, option.getValue()); in parseOptions()
/tools/tradefederation/core/test_framework/com/android/tradefed/device/metric/
DAtraceRunMetricCollector.java180 Double.toString(resultAggregate.getValue().mean() in aggregateMetrics()
181 * resultAggregate.getValue().size())); in aggregateMetrics()
183 Double.toString(resultAggregate.getValue().mean())); in aggregateMetrics()
185 Double.toString(resultAggregate.getValue().max())); in aggregateMetrics()
187 Double.toString(resultAggregate.getValue().min())); in aggregateMetrics()

12345678910>>...12