Home
last modified time | relevance | path

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

12

/tools/tradefederation/core/util_apps/ContentProvider/androidTest/src/android/tradefed/contentprovider/
DManagedFileContentProviderTest.java167 assertEquals(TEST_FILE, cursor.getString(0)); in testQueryForFile()
171 cursor.getString(1)); in testQueryForFile()
173 assertEquals("false", cursor.getString(2)); in testQueryForFile()
175 assertEquals("text/plain", cursor.getString(3)); in testQueryForFile()
177 assertNull(cursor.getString(4)); in testQueryForFile()
208 assertEquals(TEST_FILE, cursor.getString(0)); in testQueryForFile_sdcard()
212 cursor.getString(1)); in testQueryForFile_sdcard()
214 assertEquals("false", cursor.getString(2)); in testQueryForFile_sdcard()
216 assertEquals("text/plain", cursor.getString(3)); in testQueryForFile_sdcard()
218 assertNull(cursor.getString(4)); in testQueryForFile_sdcard()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/cluster/
DClusterCommandEventTest.java45 Assert.assertEquals("InvocationStarted", obj.getString("type")); in testToJSON()
46 Assert.assertEquals("task_id", obj.getString("task_id")); in testToJSON()
47 Assert.assertEquals("attempt_id", obj.getString("attempt_id")); in testToJSON()
48 Assert.assertEquals("host", obj.getString("hostname")); in testToJSON()
50 Assert.assertEquals("s1", obj.getString("device_serial")); in testToJSON()
52 Assert.assertEquals("s1", obj.getJSONArray("device_serials").getString(0)); in testToJSON()
66 Assert.assertEquals("InvocationStarted", obj.getString("type")); in testToJSON_noDeviceSerial()
67 Assert.assertEquals("task_id", obj.getString("task_id")); in testToJSON_noDeviceSerial()
68 Assert.assertEquals("attempt_id", obj.getString("attempt_id")); in testToJSON_noDeviceSerial()
69 Assert.assertEquals("host", obj.getString("hostname")); in testToJSON_noDeviceSerial()
/tools/tradefederation/core/src/com/android/tradefed/cluster/
DClusterCommand.java215 json.getString("request_id"), in fromJson()
216 json.getString("command_id"), in fromJson()
217 json.getString("task_id"), in fromJson()
218 json.getString("command_line"), in fromJson()
228 deviceSerials.add(jsonDeviceSerials.getString(j)); in fromJson()
236 String key = entry.getString("key"); in fromJson()
239 command.mExtraOptions.put(key, values.getString(j)); in fromJson()
DTestEnvironment.java266 obj.addEnvVar(envVar.getString("key"), envVar.getString("value")); in fromJson()
274 obj.addJvmOption(jvmOptions.getString(i)); in fromJson()
283 obj.addJavaProperty(javaProperty.getString("key"), javaProperty.getString("value")); in fromJson()
291 obj.addSetupScripts(scripts.getString(i)); in fromJson()
299 obj.addOutputFilePattern(patterns.getString(i)); in fromJson()
317 obj.addExtraContextFile(extraContextFiles.getString(i)); in fromJson()
332 obj.addExcludedFileInJavaClasspath(excludedFiles.getString(i)); in fromJson()
DTradefedConfigObject.java78 String key = pair.getString("key"); in fromJson()
84 optionValues.put(key, valueArr.getString(j)); in fromJson()
90 return new TradefedConfigObject(type, json.getString("class_name"), optionValues); in fromJson()
DTestContext.java71 obj.mEnvVars.put(pair.getString("key"), pair.getString("value")); in fromJson()
/tools/tradefederation/core/src/com/android/tradefed/suite/checker/baseline/
DSettingsBaselineSetter.java34 mNamespace = object.getString("namespace"); in SettingsBaselineSetter()
35 mKey = object.getString("key"); in SettingsBaselineSetter()
36 mValue = object.getString("value"); in SettingsBaselineSetter()
DDeviceBaselineSetter.java36 mMinApiLevel = Integer.parseInt(object.getString("min_api_level")); in DeviceBaselineSetter()
DCommandBaselineSetter.java34 mCommand = object.getString("command"); in CommandBaselineSetter()
DLockSettingsBaselineSetter.java41 clearPwdCommands.add(String.format(CLEAR_PWD_COMMAND, pwds.getString(index))); in LockSettingsBaselineSetter()
/tools/tradefederation/core/util_apps/WifiUtil/src/com/android/tradefed/utils/wifi/
DWifiUtil.java96 String val = mArguments.getString(arg); in expectString()
112 private String getString(String arg, String defaultValue) { in getString() method in WifiUtil
113 String val = mArguments.getString(arg); in getString()
263 final String url = getString("urlToCheck", DEFAULT_URL_TO_CHECK); in onStart()
270 final String psk = getString("psk", null); in onStart()
271 final String pingUrl = getString("urlToCheck", DEFAULT_URL_TO_CHECK); in onStart()
290 final String urlToCheck = getString("urlToCheck", DEFAULT_URL_TO_CHECK); in onStart()
/tools/loganalysis/javatests/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/src/com/android/tradefed/util/
DSubprocessEventHelper.java106 mRunName = jsonObject.getString(RUNNAME_KEY); in TestRunStartedEventInfo()
151 mReason = jsonObject.getString(REASON_KEY); in TestRunFailedEventInfo()
244 String stack = jsonObject.getString(CAUSE_KEY); in InvocationFailedEventInfo()
341 mClassName = jsonObject.getString(CLASSNAME_KEY); in BaseTestEventInfo()
343 mTestName = jsonObject.getString(TESTNAME_KEY); in BaseTestEventInfo()
410 jsonObject.getString(SKIP_REASON_MESSAGE), in SkippedTestEventInfo()
411 jsonObject.getString(SKIP_REASON_TRIGGER)); in SkippedTestEventInfo()
445 mTrace = jsonObject.getString(TRACE_KEY); in FailedTestEventInfo()
551 mDataName = jsonObject.getString(DATA_NAME_KEY); in TestLogEventInfo()
554 mLogType = LogDataType.valueOf(jsonObject.getString(DATA_TYPE_KEY)); in TestLogEventInfo()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/observatory/
DTestDiscoveryExecutorTest.java148 moduleArray.add(moduleObject.getString(i)); in testDiscoverTestDependencies()
161 depArray.add(depObject.getString(i)); in testDiscoverTestDependencies()
190 moduleArray.add(moduleObject.getString(i)); in testDiscoverTestDependencies_parameterizedModules()
196 depArray.add(depObject.getString(i)); in testDiscoverTestDependencies_parameterizedModules()
294 moduleArray.add(moduleObject.getString(i)); in testDiscoverDependencies_fallback()
347 moduleArray.add(moduleObject.getString(i)); in testDiscoverDependencies_multiDevices()
386 moduleArray.add(moduleObject.getString(i)); in testDiscoverDependencies_metadataAndIncludeFilters()
392 depArray.add(depObject.getString(i)); in testDiscoverDependencies_metadataAndIncludeFilters()
434 moduleArray.add(moduleObject.getString(i)); in testDiscoverTestMappingSuiteRunner()
440 depArray.add(depObject.getString(i)); in testDiscoverTestMappingSuiteRunner()
/tools/tradefederation/core/src/com/android/tradefed/auth/
DServiceAccountKeyCredentialFactory.java84 info.put(CLIENT_EMAIL_KEY, jsonObject.getString(CLIENT_EMAIL_KEY)); in parseKeyFile()
85 info.put(TYPE_KEY, jsonObject.getString(TYPE_KEY)); in parseKeyFile()
86 info.put(PRIVATE_KEY_ID_KEY, jsonObject.getString(PRIVATE_KEY_ID_KEY)); in parseKeyFile()
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/
DGceAvdInfo.java119 path = log.getString("path"); in LogFileEntry()
120 type = parseLogDataType(log.getString("type")); in LogFileEntry()
358 String status = res.getString("status"); in parseGceInfoFromString()
360 String errorType = res.has("error_type") ? res.getString("error_type") : null; in parseGceInfoFromString()
387 String ip = d.getString("ip"); in parseGceInfoFromString()
388 String instanceName = d.getString("instance_name"); in parseGceInfoFromString()
398 if (d.has(buildVar) && !d.getString(buildVar).trim().isEmpty()) { in parseGceInfoFromString()
399 avdInfo.addBuildVar(buildVar, d.getString(buildVar).trim()); in parseGceInfoFromString()
518 res += (errors.getString(i) + "\n"); in parseErrorField()
/tools/loganalysis/javatests/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/netsim/testing/tests/wifi/nsd/src/android/test/wifi/nsd/
DNsdInstrumentationTest.java38 deviceIdx = Integer.valueOf(InstrumentationRegistry.getArguments().getString("position")); in setup()
39 testId = InstrumentationRegistry.getArguments().getString("test_id"); in setup()
/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/common_util/com/android/tradefed/util/
DByteArrayUtil.java89 public static String getString(byte[] bytes, int offset, int length) { in getString() method in ByteArrayUtil
/tools/tradefederation/core/src/com/android/tradefed/util/testmapping/
DTestMapping.java154 keywords.add(keywordArray.getString(j)); in getTestCollection()
161 filePatterns.add(filePatternArray.getString(k)); in getTestCollection()
169 testObject.getString(KEY_NAME), in getTestCollection()
178 String name = optionObject.names().getString(k); in getTestCollection()
179 String value = optionObject.getString(name); in getTestCollection()
334 Path importPath = Paths.get(testObject.getString(KEY_IMPORT_PATH)); in listTestMappingFiles()

12