/tools/tradefederation/core/util_apps/ContentProvider/androidTest/src/android/tradefed/contentprovider/ |
D | ManagedFileContentProviderTest.java | 167 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/ |
D | ClusterCommandEventTest.java | 45 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/ |
D | ClusterCommand.java | 215 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()
|
D | TestEnvironment.java | 266 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()
|
D | TradefedConfigObject.java | 78 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()
|
D | TestContext.java | 71 obj.mEnvVars.put(pair.getString("key"), pair.getString("value")); in fromJson()
|
/tools/tradefederation/core/src/com/android/tradefed/suite/checker/baseline/ |
D | SettingsBaselineSetter.java | 34 mNamespace = object.getString("namespace"); in SettingsBaselineSetter() 35 mKey = object.getString("key"); in SettingsBaselineSetter() 36 mValue = object.getString("value"); in SettingsBaselineSetter()
|
D | DeviceBaselineSetter.java | 36 mMinApiLevel = Integer.parseInt(object.getString("min_api_level")); in DeviceBaselineSetter()
|
D | CommandBaselineSetter.java | 34 mCommand = object.getString("command"); in CommandBaselineSetter()
|
D | LockSettingsBaselineSetter.java | 41 clearPwdCommands.add(String.format(CLEAR_PWD_COMMAND, pwds.getString(index))); in LockSettingsBaselineSetter()
|
/tools/tradefederation/core/util_apps/WifiUtil/src/com/android/tradefed/utils/wifi/ |
D | WifiUtil.java | 96 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/ |
D | ProcessUsageRuleTest.java | 75 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()
|
D | InterruptRuleTest.java | 69 assertEquals(analysis.getString("INTERRUPT_ANALYSIS"), in testInterruptAnalysis() 88 assertEquals(analysis.getString("INTERRUPT_ANALYSIS"), in testNoSignificantInterruptAnalysis() 98 assertEquals(analysis.getString("INTERRUPT_ANALYSIS"), in testMissingInterruptAnalysis()
|
D | LocationUsageRuleTest.java | 70 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()
|
D | WifiStatsRuleTest.java | 65 assertEquals(analysis.getString("WIFI_STATS"), in testWifiDisconnectAnalysis() 82 assertEquals(analysis.getString("WIFI_STATS"), in testWifiScanAnalysis() 99 assertEquals(analysis.getString("WIFI_STATS"), in testWifiAssociationAnalysis()
|
D | WakelockRuleTest.java | 73 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/ |
D | SubprocessEventHelper.java | 106 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/ |
D | TestDiscoveryExecutorTest.java | 148 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/ |
D | ServiceAccountKeyCredentialFactory.java | 84 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/ |
D | GceAvdInfo.java | 119 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/ |
D | DumpsysPackageStatsItemTest.java | 46 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/ |
D | NsdInstrumentationTest.java | 38 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/ |
D | AndroidBinXmlParser.java | 322 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/ |
D | ByteArrayUtil.java | 89 public static String getString(byte[] bytes, int offset, int length) { in getString() method in ByteArrayUtil
|
/tools/tradefederation/core/src/com/android/tradefed/util/testmapping/ |
D | TestMapping.java | 154 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()
|