Home
last modified time | relevance | path

Searched refs:put (Results 1 – 25 of 531) sorted by relevance

12345678910>>...22

/tools/tradefederation/core/src/com/android/tradefed/cluster/
DClusterDeviceInfo.java81 mExtraInfo.put("hardware_revision", deviceDescriptor.getHardwareRevision()); in setDeviceDescriptor()
105 json.put("device_serial", ClusterHostUtil.getUniqueDeviceSerial(mDeviceDescriptor)); in toJSON()
106 json.put("run_target", mRunTarget); in toJSON()
107 json.put("build_id", mDeviceDescriptor.getBuildId()); in toJSON()
108 json.put("product", mDeviceDescriptor.getProduct()); in toJSON()
109 json.put("product_variant", mDeviceDescriptor.getProductVariant()); in toJSON()
110 json.put("sdk_version", mDeviceDescriptor.getSdkVersion()); in toJSON()
111 json.put("battery_level", mDeviceDescriptor.getBatteryLevel()); in toJSON()
112 json.put("mac_address", mDeviceDescriptor.getMacAddress()); in toJSON()
113 json.put("sim_state", mDeviceDescriptor.getSimState()); in toJSON()
[all …]
DClusterHostEvent.java132 mData.put(HOST_IP_KEY, ClusterHostUtil.getHostIpAddress()); in Builder()
133 mData.put( in Builder()
164 mData.put(name, value); in setData()
207 json.put("time", this.getTimestamp() / 1000); in toJSON()
209 json.put("type", this.getType().toString()); in toJSON()
211 json.put("hostname", this.getHostName()); in toJSON()
212 json.put("tf_version", this.getTestHarnessVersion()); in toJSON()
213 json.put("test_harness_version", this.getTestHarnessVersion()); in toJSON()
214 json.put("test_harness", this.getTestHarness()); in toJSON()
215 json.put("cluster", this.getClusterId()); in toJSON()
[all …]
DTestGroupStatus.java83 json.put("name", mName); in toJSON()
84 json.put("total_test_count", mTotalTestCount); in toJSON()
85 json.put("completed_test_count", mCompletedTestCount); in toJSON()
86 json.put("failed_test_count", mFailedTestCount); in toJSON()
87 json.put("passed_test_count", mPassedTestCount); in toJSON()
88 json.put("is_complete", mIsComplete); in toJSON()
89 json.put("elapsed_time", mElapsedTime); in toJSON()
DClusterCommandEvent.java156 mData.put(name, ((String) value).substring(0, MAX_DATA_STRING_SIZE)); in setData()
158 mData.put(name, value); in setData()
214 json.put("type", this.getType().toString()); in toJSON()
216 json.put("time", this.getTimestamp() / 1000); in toJSON()
217 json.put("task_id", this.getCommandTaskId()); in toJSON()
218 json.put("attempt_id", this.getAttemptId()); in toJSON()
219 json.put("hostname", this.getHostName()); in toJSON()
222 json.put("device_serial", this.getDeviceSerials().iterator().next()); in toJSON()
224 json.put("device_serials", new JSONArray(this.getDeviceSerials())); in toJSON()
226 json.put("invocation_status", mInvocationStatus.toJSON()); in toJSON()
[all …]
/tools/apksig/src/main/java/com/android/apksig/internal/oid/
DOidConstants.java378 SUPPORTED_SIG_ALG_OIDS.put( in addSupportedSigAlg()
396 OID_TO_USER_FRIENDLY_NAME.put(OID_DIGEST_MD5, "MD5"); in OID_TO_USER_FRIENDLY_NAME.put()
397 OID_TO_USER_FRIENDLY_NAME.put(OID_DIGEST_SHA1, "SHA-1"); in OID_TO_USER_FRIENDLY_NAME.put()
398 OID_TO_USER_FRIENDLY_NAME.put(OID_DIGEST_SHA224, "SHA-224"); in OID_TO_USER_FRIENDLY_NAME.put()
399 OID_TO_USER_FRIENDLY_NAME.put(OID_DIGEST_SHA256, "SHA-256"); in OID_TO_USER_FRIENDLY_NAME.put()
400 OID_TO_USER_FRIENDLY_NAME.put(OID_DIGEST_SHA384, "SHA-384"); in OID_TO_USER_FRIENDLY_NAME.put()
401 OID_TO_USER_FRIENDLY_NAME.put(OID_DIGEST_SHA512, "SHA-512"); in OID_TO_USER_FRIENDLY_NAME.put()
403 OID_TO_USER_FRIENDLY_NAME.put(OID_SIG_RSA, "RSA"); in OID_TO_USER_FRIENDLY_NAME.put()
404 OID_TO_USER_FRIENDLY_NAME.put(OID_SIG_MD5_WITH_RSA, "MD5 with RSA"); in OID_TO_USER_FRIENDLY_NAME.put()
405 OID_TO_USER_FRIENDLY_NAME.put(OID_SIG_SHA1_WITH_RSA, "SHA-1 with RSA"); in OID_TO_USER_FRIENDLY_NAME.put()
[all …]
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DAoaTargetPreparer.java77 ACTIONS.put(
80 ACTIONS.put(
85 ACTIONS.put( in ACTIONS.put()
95 ACTIONS.put( in ACTIONS.put()
104 ACTIONS.put( in ACTIONS.put()
118 ACTIONS.put((device, args) -> device.wakeUp(), "wake");
119 ACTIONS.put((device, args) -> device.goHome(), "home");
120 ACTIONS.put((device, args) -> device.goBack(), "back");
121 ACTIONS.put( in ACTIONS.put()
223 KEYS.put(lowerCase, new AoaKey(usage)); in KEYS.put()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/
DNestedRemoteDevice.java41 IP_TO_USER.put("0.0.0.0:6520", "1");
42 IP_TO_USER.put("0.0.0.0:6521", "2");
43 IP_TO_USER.put("0.0.0.0:6522", "3");
44 IP_TO_USER.put("0.0.0.0:6523", "4");
45 IP_TO_USER.put("0.0.0.0:6524", "5");
46 IP_TO_USER.put("0.0.0.0:6525", "6");
47 IP_TO_USER.put("0.0.0.0:6526", "7");
48 IP_TO_USER.put("0.0.0.0:6527", "8");
49 IP_TO_USER.put("0.0.0.0:6528", "9");
50 IP_TO_USER.put("0.0.0.0:6529", "10");
[all …]
/tools/tradefederation/contrib/src/com/android/media/tests/
DVideoEditingPerformanceTest.java82 mPatternMap.put("ImageItemCreate", in VideoEditingPerformanceTest()
84 mPatternMap.put("mageItemAdd", in VideoEditingPerformanceTest()
86 mPatternMap.put("ImageItemRemove", in VideoEditingPerformanceTest()
88 mPatternMap.put("ImageItemCreate640x480", in VideoEditingPerformanceTest()
90 mPatternMap.put("ImageItemAdd640x480", in VideoEditingPerformanceTest()
92 mPatternMap.put("ImageItemRemove640x480", in VideoEditingPerformanceTest()
94 mPatternMap.put("CrossFadeTransitionCreate", in VideoEditingPerformanceTest()
96 mPatternMap.put("CrossFadeTransitionAdd", in VideoEditingPerformanceTest()
98 mPatternMap.put("CrossFadeTransitionRemove", in VideoEditingPerformanceTest()
100 mPatternMap.put("VideoItemCreate", in VideoEditingPerformanceTest()
[all …]
DAudioJitterTest.java53 result.put("min_jitter_ticks", "min_jitter_ticks"); in createMetricsKeyMap()
54 result.put("min_jitter_ms", "min_jitter_ms"); in createMetricsKeyMap()
55 result.put("min_jitter_period_id", "min_jitter_period_id"); in createMetricsKeyMap()
56 result.put("max_jitter_ticks", "max_jitter_ticks"); in createMetricsKeyMap()
57 result.put("max_jitter_ms", "max_jitter_ms"); in createMetricsKeyMap()
58 result.put("max_jitter_period_id", "max_jitter_period_id"); in createMetricsKeyMap()
59 result.put("mark_jitter_ticks", "mark_jitter_ticks"); in createMetricsKeyMap()
60 result.put("mark_jitter_ms", "mark_jitter_ms"); in createMetricsKeyMap()
61 result.put("max_cb_done_delay_ms", "max_cb_done_delay_ms"); in createMetricsKeyMap()
62 result.put("max_thread_delay_ms", "max_thread_delay_ms"); in createMetricsKeyMap()
[all …]
DCameraLatencyTest.java113 map.put("FirstCameraStartup", "^First Camera Startup: (\\d+)"); in testInfoSetup()
114 map.put("CameraStartup", "^Camera average startup time: (\\d+) ms"); in testInfoSetup()
122 map.put("FirstCameraStartup", "^First Camera Startup: (\\d+)"); in testInfoSetup()
123 map.put("CameraStartup", "^Camera average startup time: (\\d+) ms"); in testInfoSetup()
124 map.put("FirstVideoStartup", "^First Video Startup: (\\d+)"); in testInfoSetup()
125 map.put("VideoStartup", "^Video average startup time: (\\d+) ms"); in testInfoSetup()
134 map.put("AutoFocus", "^Avg AutoFocus = (\\d+)"); in testInfoSetup()
135 map.put("ShutterLag", "^Avg mShutterLag = (\\d+)"); in testInfoSetup()
136 map.put("Preview", "^Avg mShutterToPictureDisplayedTime = (\\d+)"); in testInfoSetup()
137 map.put("RawPictureGeneration", "^Avg mPictureDisplayedToJpegCallbackTime = (\\d+)"); in testInfoSetup()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/suite/checker/
DDeviceSettingCheckerTest.java57 mapGlobal.put("wifi_on", "1"); in testSettingsUnchanged()
58 mapGlobal.put("adb_enabled", "1"); in testSettingsUnchanged()
60 mapSecure.put("bluetooth_on", "1"); in testSettingsUnchanged()
62 mapSystem.put("alarm_alert", "1"); in testSettingsUnchanged()
78 mapPreGlobal.put("wifi_on", "1"); in testSettingsChanged()
79 mapPreGlobal.put("adb_enabled", "1"); in testSettingsChanged()
81 mapPreSecure.put("bluetooth_on", "1"); in testSettingsChanged()
83 mapPreSystem.put("alarm_alert", "1"); in testSettingsChanged()
87 mapPostGlobal.put("wifi_on", "0"); in testSettingsChanged()
88 mapPostGlobal.put("adb_enabled", "1"); in testSettingsChanged()
[all …]
/tools/loganalysis/src/com/android/loganalysis/item/
DCompactMemInfoItem.java76 proc.put(PID_JSON_KEY, pid); in toJson()
77 proc.put(NAME_JSON_KEY, getName(pid)); in toJson()
78 proc.put(PSS_JSON_KEY, getPss(pid)); in toJson()
79 proc.put(SWAP_JSON_KEY, getSwap(pid)); in toJson()
80 proc.put(TYPE_JSON_KEY, getType(pid)); in toJson()
81 proc.put(ACTIVITIES_JSON_KEY, hasActivities(pid)); in toJson()
82 processes.put(proc); in toJson()
88 object.put(PROCESSES_JSON_KEY, processes); in toJson()
90 object.put(LOST_RAM_JSON_KEY, getLostRam()); in toJson()
91 object.put(TOTAL_ZRAM_JSON_KEY, getTotalZram()); in toJson()
[all …]
DGfxInfoItem.java85 proc.put(PID_KEY, pid); in toJson()
86 proc.put(NAME_KEY, getName(pid)); in toJson()
87 proc.put(TOTAL_FRAMES_KEY, getTotalFrames(pid)); in toJson()
88 proc.put(PERCENTILE_90_KEY, getPrecentile90(pid)); in toJson()
89 proc.put(PERCENTILE_95_KEY, getPrecentile95(pid)); in toJson()
90 proc.put(PERCENTILE_99_KEY, getPrecentile99(pid)); in toJson()
91 processes.put(proc); in toJson()
98 object.put(PROCESSES_KEY, processes); in toJson()
135 mRows.put(pid, row); in addRow()
DProcrankItem.java81 mProcrankLines.put(pid, new ProcrankValue(processName, vss, rss, pss, uss)); in addProcrankLine()
187 line.put(PID, entry.getKey()); in toJson()
188 line.put(PROCESS_NAME, procrankValue.mProcessName); in toJson()
189 line.put(VSS, procrankValue.mVss); in toJson()
190 line.put(RSS, procrankValue.mRss); in toJson()
191 line.put(PSS, procrankValue.mPss); in toJson()
192 line.put(USS, procrankValue.mUss); in toJson()
193 lines.put(line); in toJson()
195 object.put(LINES, lines); in toJson()
196 object.put(TEXT, getText()); in toJson()
/tools/loganalysis/src/com/android/loganalysis/parser/
DMemoryHealthParser.java40 mappings.put("Average Dalvik Heap", MemoryHealthItem.DALVIK_AVG);
41 mappings.put("Average Native Heap", MemoryHealthItem.NATIVE_AVG);
42 mappings.put("Average PSS", MemoryHealthItem.PSS_AVG);
43 mappings.put("Peak Dalvik Heap", MemoryHealthItem.DALVIK_PEAK);
44 mappings.put("Peak Native Heap", MemoryHealthItem.NATIVE_PEAK);
45 mappings.put("Peak PSS", MemoryHealthItem.PSS_PEAK);
47 mappings.put("Average Summary Java Heap", MemoryHealthItem.SUMMARY_JAVA_HEAP_AVG);
48 mappings.put("Average Summary Native Heap", MemoryHealthItem.SUMMARY_NATIVE_HEAP_AVG);
49 mappings.put("Average Summary Code", MemoryHealthItem.SUMMARY_CODE_AVG);
50 mappings.put("Average Summary Stack", MemoryHealthItem.SUMMARY_STACK_AVG);
[all …]
/tools/tradefederation/core/common_util/com/android/tradefed/util/
DAbiUtils.java100 ARCH_TO_ABIS.put(BASE_ARCH_ARM, ARM_ABIS); in ARCH_TO_ABIS.put()
101 ARCH_TO_ABIS.put(ARCH_ARM64, ARM_ABIS); in ARCH_TO_ABIS.put()
102 ARCH_TO_ABIS.put(BASE_ARCH_X86, INTEL_ABIS); in ARCH_TO_ABIS.put()
103 ARCH_TO_ABIS.put(ARCH_X86_64, INTEL_ABIS); in ARCH_TO_ABIS.put()
104 ARCH_TO_ABIS.put(BASE_ARCH_MIPS, MIPS_ABIS); in ARCH_TO_ABIS.put()
105 ARCH_TO_ABIS.put(ARCH_MIPS64, MIPS_ABIS); in ARCH_TO_ABIS.put()
106 ARCH_TO_ABIS.put(ARCH_RISCV64, RISCV_ABIS); in ARCH_TO_ABIS.put()
113 ABI_TO_ARCH.put(ABI_ARM_V7A, BASE_ARCH_ARM); in ABI_TO_ARCH.put()
114 ABI_TO_ARCH.put(ABI_ARM_64_V8A, ARCH_ARM64); in ABI_TO_ARCH.put()
115 ABI_TO_ARCH.put(ABI_X86, BASE_ARCH_X86); in ABI_TO_ARCH.put()
[all …]
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/
DFsInfoSector.java146 buffer.put((byte) 0x52); in init()
147 buffer.put((byte) 0x52); in init()
148 buffer.put((byte) 0x61); in init()
149 buffer.put((byte) 0x41); in init()
154 buffer.put((byte) 0x72); in init()
155 buffer.put((byte) 0x72); in init()
156 buffer.put((byte) 0x41); in init()
157 buffer.put((byte) 0x61); in init()
163 buffer.put((byte) 0x55); in init()
164 buffer.put((byte) 0xaa); in init()
/tools/tradefederation/core/javatests/com/android/tradefed/cluster/
DClusterCommandTest.java40 JSONObject json = createCommandJson().put("attempt_id", "attempt_id"); in testFromJson_withAssignedAttemptId()
68 JSONArray values = new JSONArray().put("hello").put("world"); in testFromJson_extraOptions()
69 JSONObject option = new JSONObject().put("key", "key").put("values", values); in testFromJson_extraOptions()
70 JSONObject json = createCommandJson().put("extra_options", new JSONArray().put(option)); in testFromJson_extraOptions()
86 .put("request_id", REQUEST_ID) in createCommandJson()
87 .put("command_id", COMMAND_ID) in createCommandJson()
88 .put("task_id", TASK_ID) in createCommandJson()
89 .put("command_line", COMMAND_LINE); in createCommandJson()
/tools/tradefederation/core/javatests/com/android/tradefed/util/
DPropertyChangerTest.java49 mOriginal.put("foo1", "bar1"); in setUp()
50 mOriginal.put("foo2", "bar2"); in setUp()
51 mOriginal.put("foo3", "bar3"); in setUp()
52 mOriginal.put("foo4", "bar4"); in setUp()
55 mChanges.put("foo2", "bar2*"); in setUp()
56 mChanges.put("foo3", "bar3*"); in setUp()
57 mChanges.put("foo5", "bar5-new"); in setUp()
59 mExpected.put("foo1", "bar1"); in setUp()
60 mExpected.put("foo2", "bar2*"); in setUp()
61 mExpected.put("foo3", "bar3*"); in setUp()
[all …]
DMultiMapTest.java40 multiMap.put("key", "value1"); in testGetUniqueMap()
41 multiMap.put("key", "value2"); in testGetUniqueMap()
42 multiMap.put("uniquekey", "value"); in testGetUniqueMap()
43 multiMap.put("key2", "collisionKeyvalue"); in testGetUniqueMap()
83 multiMap.put("a", "1"); in testEntries()
84 multiMap.put("b", "2"); in testEntries()
85 multiMap.put("c", "3"); in testEntries()
86 multiMap.put("c", "4"); in testEntries()
87 multiMap.put("c", "4"); in testEntries()
/tools/test/graphicsbenchmark/performance_tests/hostside/test/com/android/game/qualification/metric/
DHistogramTest.java68 .put(Long.MIN_VALUE, 1) in testCutoff()
69 .put(-1L, 1) in testCutoff()
70 .put(0L, 1) in testCutoff()
71 .put(1L, 1) in testCutoff()
72 .put(Long.MAX_VALUE, 1).build(), in testCutoff()
123 .put(Long.MIN_VALUE, 1) in testEvenBucketSize()
124 .put(-1L, 2) in testEvenBucketSize()
125 .put(1L, 2) in testEvenBucketSize()
126 .put(3L, 2) in testEvenBucketSize()
127 .put(5L,1) in testEvenBucketSize()
[all …]
/tools/tradefederation/contrib/tests/src/com/android/build/tests/
DImageStatsTest.java108 PARSED_TEST_DATA.put("/system/app/WallpapersBReel2017/WallpapersBReel2017.apk", 164424453L);
109 PARSED_TEST_DATA.put("/system/app/Chrome/Chrome.apk", 124082279L);
110 PARSED_TEST_DATA.put("/system/priv-app/Velvet/Velvet.apk", 92966112L);
111 PARSED_TEST_DATA.put("/system/framework/ext.jar", 1790897L);
112 PARSED_TEST_DATA.put("/system/fonts/NotoSansEgyptianHieroglyphs-Regular.ttf", 505436L);
113 PARSED_TEST_DATA.put("/system/bin/ip6tables", 500448L);
114 PARSED_TEST_DATA.put("/system/usr/share/zoneinfo/tzdata", 500393L);
115 PARSED_TEST_DATA.put("/system/fonts/NotoSansCuneiform-Regular.ttf", 500380L);
116 PARSED_TEST_DATA.put("/system/framework/core-oj.jar", 126391L);
117 PARSED_TEST_DATA.put("/system/framework/com.quicinc.cne.jar", 122641L);
[all …]
/tools/tradefederation/core/src/com/android/tradefed/result/
DLUCIResultReporter.java189 … testResultContainer.put(KEY_RESULT_NAME, runNameAndTimestamp.toString() + offsetDT.toString()); in convertMetricsToJson()
193 testResultContainer.put(KEY_TEST_ID, testId); in convertMetricsToJson()
197 testResultContainer.put(KEY_STATUS, status); in convertMetricsToJson()
199 testResultContainer.put(KEY_EXPECTED, expected); in convertMetricsToJson()
208 testResultContainer.put(KEY_FAILURE_REASON, failureReason); in convertMetricsToJson()
212 testMetadataObj.put(KEY_NAME, testId); in convertMetricsToJson()
213 testResultContainer.put(KEY_TEST_METADATA, testMetadataObj); in convertMetricsToJson()
217 testIdObj.put("key", KEY_TEST_NAME); in convertMetricsToJson()
218 testIdObj.put("value", testId); in convertMetricsToJson()
219 tags.put(testIdObj); in convertMetricsToJson()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/mobly/
DMoblyYamlResultParserTest.java83 mRecordMap.put("Details", "test_details");
84 mRecordMap.put("End Time", DEFAULT_END_TIME);
85 mRecordMap.put("Begin Time", DEFAULT_BEGIN_TIME);
86 mRecordMap.put("Extra Errors", "{}");
87 mRecordMap.put("Extras", "null");
88 mRecordMap.put("Result", "PASS");
89 mRecordMap.put("Stacktrace", "null");
90 mRecordMap.put("Test Class", DEFAULT_TEST_CLASS);
91 mRecordMap.put("Test Name", DEFAULT_TEST_NAME);
92 mRecordMap.put("Type", "Record");
[all …]
/tools/tradefederation/core/test_framework/com/android/tradefed/device/metric/
DBluetoothConnectionLatencyCollector.java49 .put(BluetoothProfile.HEADSET.getProfile(), "headset")
50 .put(BluetoothProfile.A2DP.getProfile(), "a2dp")
51 .put(BluetoothProfile.PAN.getProfile(), "pan")
52 .put(BluetoothProfile.MAP.getProfile(), "map")
53 .put(BluetoothProfile.A2DP_SINK.getProfile(), "a2dp_sink")
54 .put(BluetoothProfile.AVRCP_CONTROLLER.getProfile(), "avrcp_controller")
55 .put(BluetoothProfile.HEADSET_CLIENT.getProfile(), "headset_client")
56 .put(BluetoothProfile.PBAP_CLIENT.getProfile(), "pbap_client")
57 .put(BluetoothProfile.MAP_CLIENT.getProfile(), "map_client")

12345678910>>...22