/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/src/com/android/tradefed/util/ |
D | SubprocessEventHelper.java | 99 mRunName = jsonObject.getString(RUNNAME_KEY); in TestRunStartedEventInfo() 144 mReason = jsonObject.getString(REASON_KEY); in TestRunFailedEventInfo() 280 String stack = jsonObject.getString(CAUSE_KEY); in InvocationFailedEventInfo() 374 mClassName = jsonObject.getString(CLASSNAME_KEY); in BaseTestEventInfo() 376 mTestName = jsonObject.getString(TESTNAME_KEY); in BaseTestEventInfo() 442 mTrace = jsonObject.getString(TRACE_KEY); in FailedTestEventInfo() 535 mDataName = jsonObject.getString(DATA_NAME_KEY); in TestLogEventInfo() 537 mLogType = LogDataType.valueOf(jsonObject.getString(DATA_TYPE_KEY)); in TestLogEventInfo() 539 mDataFile = new File(jsonObject.getString(DATA_FILE_KEY)); in TestLogEventInfo() 574 mDataName = jsonObject.getString(DATA_NAME_KEY); in LogAssociationEventInfo() [all …]
|
D | Sl4aBluetoothUtil.java | 297 addresses.add(bondedDevice.getString("address")); in getBondedDevices() 653 String actualAddress = profileData.getString("addr"); in waitForConnectedOrDisconnectedProfiles() 748 if (device.has("address") && device.getString("address").equals(address)) { in checkConnectedDevice()
|
/tools/tradefederation/core/tests/src/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()
|
D | ClusterCommandSchedulerTest.java | 420 assertEquals("cluster2", clusterIds.getString(0)); 421 assertEquals("cluster3", clusterIds.getString(1)); 1282 public String getString() { 1356 assertEquals("foo", configObj.getString());
|
/tools/tradefederation/core/src/com/android/tradefed/cluster/ |
D | TestEnvironment.java | 220 obj.addEnvVar(envVar.getString("key"), envVar.getString("value")); in fromJson() 228 obj.addJvmOption(jvmOptions.getString(i)); in fromJson() 237 obj.addJavaProperty(javaProperty.getString("key"), javaProperty.getString("value")); in fromJson() 245 obj.addSetupScripts(scripts.getString(i)); in fromJson() 253 obj.addOutputFilePattern(patterns.getString(i)); in fromJson() 270 obj.addExtraContextFile(extraContextFiles.getString(i)); in fromJson()
|
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 | 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/remote/src/com/android/tradefed/command/remote/ |
D | ListDevicesOp.java | 82 final String serial = deviceStateJson.getString(SERIAL); in unpackResponseFromJson() 84 final String stateString = deviceStateJson.getString(STATE); in unpackResponseFromJson() 85 final String product = deviceStateJson.getString(PRODUCT); in unpackResponseFromJson() 86 final String productVariant = deviceStateJson.getString(PRODUCT_VARIANT); in unpackResponseFromJson() 87 final String sdk = deviceStateJson.getString(SDK_VERSION); in unpackResponseFromJson() 88 final String incrementalBuild = deviceStateJson.getString(BUILD_ID); in unpackResponseFromJson() 89 final String batteryLevel = deviceStateJson.getString(BATTERY_LEVEL); in unpackResponseFromJson()
|
D | GetLastCommandResultOp.java | 57 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()
|
D | ExecCommandOp.java | 46 String serial = json.getString(SERIAL); in createFromJson() 50 commandArgs[i] = jsonArgs.getString(i); in createFromJson()
|
D | AddCommandFileOp.java | 48 String cmdFile = jsonData.getString(COMMAND_FILE); in createFromJson() 52 argList.add(argArray.getString(i)); in createFromJson()
|
D | RemoteOperation.java | 66 OperationType op = OperationType.valueOf(jsonData.getString(TYPE)); in createRemoteOpFromString() 165 throw new RemoteException(jsonData.getString(ERROR)); in unpackResponseFromString()
|
/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() 255 final String url = getString("urlToCheck", DEFAULT_URL_TO_CHECK); in onStart() 262 final String psk = getString("psk", null); in onStart() 263 final String pingUrl = getString("urlToCheck", DEFAULT_URL_TO_CHECK); in onStart() 279 final String urlToCheck = getString("urlToCheck", DEFAULT_URL_TO_CHECK); in onStart()
|
/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/src/com/android/tradefed/device/cloud/ |
D | GceAvdInfo.java | 176 String status = res.getString("status"); in parseGceInfoFromString() 191 String ip = d.getString("ip"); in parseGceInfoFromString() 192 String instanceName = d.getString("instance_name"); in parseGceInfoFromString() 200 if (d.has(buildVar) && !d.getString(buildVar).trim().isEmpty()) { in parseGceInfoFromString() 201 avdInfo.addBuildVar(buildVar, d.getString(buildVar).trim()); in parseGceInfoFromString() 228 res += (errors.getString(i) + "\n"); in parseErrorField()
|
/tools/loganalysis/tests/src/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 | 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 | 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 | 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/testmapping/ |
D | TestMapping.java | 123 keywords.add(keywordArray.getString(j)); in TestMapping() 128 testObject.getString(KEY_NAME), in TestMapping() 137 String name = optionObject.names().getString(k); in TestMapping() 138 String value = optionObject.getString(name); in TestMapping()
|
/tools/tradefederation/contrib/src/com/android/media/tests/ |
D | CameraPerformanceTest.java | 543 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/loganalysis/tests/src/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()
|