Home
last modified time | relevance | path

Searched refs:getString (Results 1 – 25 of 26) sorted by relevance

12

/tools/loganalysis/tests/src/com/android/loganalysis/rule/
DProcessUsageRuleTest.java75 assertEquals(analysis.getString("ALARM_USAGE_ANALYSIS"), in testAlarmAnalysis()
78 assertEquals(analysis.getString("SENSOR_USAGE_ANALYSIS"), in testAlarmAnalysis()
104 assertEquals(analysis.getString("SENSOR_USAGE_ANALYSIS"), in testSensorAnalysis()
108 assertEquals(analysis.getString("ALARM_USAGE_ANALYSIS"), in testSensorAnalysis()
DInterruptRuleTest.java69 assertEquals(analysis.getString("INTERRUPT_ANALYSIS"), in testInterruptAnalysis()
88 assertEquals(analysis.getString("INTERRUPT_ANALYSIS"), in testNoSignificantInterruptAnalysis()
98 assertEquals(analysis.getString("INTERRUPT_ANALYSIS"), in testMissingInterruptAnalysis()
DLocationUsageRuleTest.java70 assertEquals(analysis.getString("LOCATION_USAGE_ANALYSIS"), in testLocationUsageAnalysis()
87 assertEquals(analysis.getString("LOCATION_USAGE_ANALYSIS"), in testNoSignificantLocationUsageAnalysis()
97 assertEquals(analysis.getString("LOCATION_USAGE_ANALYSIS"), in testNoLocationUsageAnalysis()
DWifiStatsRuleTest.java65 assertEquals(analysis.getString("WIFI_STATS"), in testWifiDisconnectAnalysis()
82 assertEquals(analysis.getString("WIFI_STATS"), in testWifiScanAnalysis()
99 assertEquals(analysis.getString("WIFI_STATS"), in testWifiAssociationAnalysis()
DWakelockRuleTest.java73 assertEquals(analysis.getString("WAKELOCK_ANALYSIS"), in testWakelockAnalysis()
95 assertEquals(analysis.getString("WAKELOCK_ANALYSIS"), in testNoSignificantWakelockAnalysis()
105 assertEquals(analysis.getString("WAKELOCK_ANALYSIS"), in testNoWakelockAnalysis()
/tools/tradefederation/core/util-apps/WifiUtil/src/com/android/tradefed/utils/wifi/
DWifiUtil.java82 String val = mArguments.getString(arg); in expectString()
98 private String getString(String arg, String defaultValue) { in getString() method in WifiUtil
99 String val = mArguments.getString(arg); in getString()
245 final String url = getString("urlToCheck", DEFAULT_URL_TO_CHECK); in onStart()
252 final String psk = getString("psk", null); in onStart()
253 final String pingUrl = getString("urlToCheck", DEFAULT_URL_TO_CHECK); in onStart()
269 final String urlToCheck = getString("urlToCheck", DEFAULT_URL_TO_CHECK); in onStart()
DWifiConnector.java370 final String ssid = prefs.getString("ssid", null); in reconnectToLastNetwork()
371 final String psk = prefs.getString("psk", null); in reconnectToLastNetwork()
/tools/tradefederation/core/remote/src/com/android/tradefed/command/remote/
DGetLastCommandResultOp.java57 return new GetLastCommandResultOp(json.getString(SERIAL)); in createFromJson()
83 String statusString = json.getString(STATUS); in unpackResponseFromJson()
107 final String key = runMetricJson.getString(RUN_METRICS_KEY); in unpackResponseFromJson()
108 final String value = runMetricJson.getString(RUN_METRICS_VALUE); in unpackResponseFromJson()
DAddCommandFileOp.java48 String cmdFile = jsonData.getString(COMMAND_FILE); in createFromJson()
52 argList.add(argArray.getString(i)); in createFromJson()
DRemoteOperation.java66 OperationType op = OperationType.valueOf(jsonData.getString(TYPE)); in createRemoteOpFromString()
165 throw new RemoteException(jsonData.getString(ERROR)); in unpackResponseFromString()
DAllocateDeviceOp.java43 return new AllocateDeviceOp(json.getString(SERIAL)); in createFromJson()
DFreeDeviceOp.java44 return new FreeDeviceOp(json.getString(SERIAL)); in createFromJson()
DAddCommandOp.java49 commandArgs[i] = jsonArgs.getString(i); in createFromJson()
/tools/loganalysis/tests/src/com/android/loganalysis/item/
DDumpsysPackageStatsItemTest.java46 assertEquals("7.3 (3821978)", calcAppVersionJson.getString(AppVersionItem.VERSION_NAME)); in testToJson()
50 assertEquals("6.16.35.26.arm64", gsaAppVersionJson.getString(AppVersionItem.VERSION_NAME)); in testToJson()
/tools/tradefederation/core/prod-tests/src/com/android/performance/tests/
DGeekbenchTest.java163 String overallScore = root.getString("score"); in parseResultJSON()
166 String overallScoreMulticore = root.getString("multicore_score"); in parseResultJSON()
173 String sectionName = section.getString("name"); in parseResultJSON()
174 String sectionScore = section.getString("score"); in parseResultJSON()
175 String sectionScoreMulticore = section.getString("multicore_score"); in parseResultJSON()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DAndroidBinXmlParser.java322 mCurrentElementName = mStringPool.getString(nameId); in next()
324 (nsId == NO_NAMESPACE) ? "" : mStringPool.getString(nsId); in next()
350 mCurrentElementName = mStringPool.getString(nameId); in next()
352 (nsId == NO_NAMESPACE) ? "" : mStringPool.getString(nsId); in next()
436 return mStringPool.getString(mNameId); in getName()
440 return (mNsId != NO_NAMESPACE) ? mStringPool.getString(mNsId) : ""; in getNamespace()
472 return mStringPool.getString(mValueData & 0xffffffffL); in getStringValue()
643 public String getString(long index) throws XmlParserException { in getString() method in AndroidBinXmlParser.StringPool
/tools/tradefederation/core/src/com/android/tradefed/util/
DTestMapping.java118 TestInfo test = new TestInfo(testObject.getString(KEY_NAME)); in TestMapping()
124 String name = optionObject.names().getString(k); in TestMapping()
125 String value = optionObject.getString(name); in TestMapping()
/tools/tradefederation/core/tests/src/com/android/tradefed/config/
DConfigurationTest.java478 String name = optionClass.getString("name"); in testGetJsonCommandUsage()
497 if (OPTION_NAME.equals(field.getString("name"))) { in testGetJsonCommandUsage()
500 } else if (ALT_OPTION_NAME.equals(field.getString("name"))) { in testGetJsonCommandUsage()
506 assertEquals(OPTION_DESCRIPTION, jsonOptionField.getString("description")); in testGetJsonCommandUsage()
508 assertEquals(OPTION_DESCRIPTION, jsonAltOptionField.getString("description")); in testGetJsonCommandUsage()
512 jsonAltOptionField.getString("javaClass")); in testGetJsonCommandUsage()
518 if (name != null && name.equals(configObject.getString("name"))) { in findConfigObjectByName()
/tools/tradefederation/core/src/com/android/tradefed/util/keystore/
DJSONFileKeyStoreClient.java91 return mJsonKeyStore.getString(key); in fetchKey()
/tools/tradefederation/core/src/com/android/tradefed/sandbox/
DSandboxInvocationRunner.java70 String filePath = json.getString(TradefedSandboxRunner.EXCEPTION_KEY); in handleStderrException()
/tools/tradefederation/contrib/src/com/android/media/tests/
DCameraPerformanceTest.java543 String cameraId = element.getString(CAMERA_ID_KEY); in parse()
544 String reprocessType = element.getString(REPROCESS_TYPE_KEY); in parse()
545 String captureMessage = element.getString(CAPTURE_MESSAGE_KEY); in parse()
570 String cameraid = element.getString(CAMERA_ID_KEY); in parse()
/tools/tradefederation/core/src/com/android/tradefed/util/sl4a/
DSl4aEventDispatcher.java207 mName = response.getString("name"); in EventSl4aObject()
/tools/tradefederation/core/prod-tests/src/com/android/tradefed/
DSl4aBluetoothDiscovery.java120 if (j.has("name") && BLUETOOTH_NAME.equals(j.getString("name"))) { in run()
/tools/tradefederation/core/src/com/android/tradefed/result/
DEmailResultReporter.java266 bodyBuilder.append(summary.getSummary().getString()); in generateEmailBody()
/tools/tradefederation/core/src/com/android/tradefed/device/
DWifiHelper.java417 info.put(key, json.getString(key)); in getWifiInfo()

12