Home
last modified time | relevance | path

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

12345678910>>...17

/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DAoaTargetPreparer.java76 ACTIONS.put(
79 ACTIONS.put(
84 ACTIONS.put( in ACTIONS.put()
94 ACTIONS.put( in ACTIONS.put()
103 ACTIONS.put( in ACTIONS.put()
117 ACTIONS.put((device, args) -> device.wakeUp(), "wake");
118 ACTIONS.put((device, args) -> device.goHome(), "home");
119 ACTIONS.put((device, args) -> device.goBack(), "back");
120 ACTIONS.put( in ACTIONS.put()
217 KEYCODES.put("a", 0x04);
[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/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 …]
DDvmLockSampleItem.java47 put(PROCESS_NAME, String.class);
48 put(SENSITIVITY_FLAG, Boolean.class);
49 put(WAITING_THREAD_NAME, String.class);
50 put(WAIT_TIME, Integer.class);
51 put(WAITING_SOURCE_FILE, String.class);
52 put(WAITING_SOURCE_LINE, Integer.class);
53 put(OWNER_FILE_NAME, String.class);
54 put(OWNER_ACQUIRE_SOURCE_LINE, Integer.class);
55 put(SAMPLE_PERCENTAGE, Integer.class);
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/tradefederation/core/src/com/android/tradefed/cluster/
DClusterDeviceInfo.java85 json.put("device_serial", mDeviceDescriptor.getSerial()); in toJSON()
86 json.put("run_target", mRunTarget); in toJSON()
87 json.put("build_id", mDeviceDescriptor.getBuildId()); in toJSON()
88 json.put("product", mDeviceDescriptor.getProduct()); in toJSON()
89 json.put("product_variant", mDeviceDescriptor.getProductVariant()); in toJSON()
90 json.put("sdk_version", mDeviceDescriptor.getSdkVersion()); in toJSON()
91 json.put("battery_level", mDeviceDescriptor.getBatteryLevel()); in toJSON()
92 json.put("mac_address", mDeviceDescriptor.getMacAddress()); in toJSON()
93 json.put("sim_state", mDeviceDescriptor.getSimState()); in toJSON()
94 json.put("sim_operator", mDeviceDescriptor.getSimOperator()); 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()
DClusterHostEvent.java164 mData.put(name, value); in setData()
209 json.put("time", this.getTimestamp() / 1000); in toJSON()
210 if (this.getType() != null) json.put("type", this.getType().toString()); in toJSON()
211 json.put("hostname", this.getHostName()); in toJSON()
212 json.put("tf_version", this.getTfVersion()); in toJSON()
213 json.put("cluster", this.getClusterId()); in toJSON()
216 deviceInfos.put(d.toJSON()); in toJSON()
218 json.put("device_infos", deviceInfos); in toJSON()
219 json.put("data", new JSONObject(this.getData())); in toJSON()
221 json.put("next_cluster_ids", new JSONArray(this.getNextClusterIds())); in toJSON()
[all …]
DClusterCommandEvent.java151 mData.put(name, ((String) value).substring(0, MAX_DATA_STRING_SIZE)); in setData()
153 mData.put(name, value); in setData()
209 json.put("type", this.getType().toString()); in toJSON()
211 json.put("time", this.getTimestamp() / 1000); in toJSON()
212 json.put("task_id", this.getCommandTaskId()); in toJSON()
213 json.put("attempt_id", this.getAttemptId()); in toJSON()
214 json.put("hostname", this.getHostName()); in toJSON()
217 json.put("device_serial", this.getDeviceSerials().iterator().next()); in toJSON()
219 json.put("device_serials", new JSONArray(this.getDeviceSerials())); in toJSON()
221 json.put("invocation_status", mInvocationStatus.toJSON()); in toJSON()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/suite/checker/
DDeviceSettingCheckerTest.java52 mapGlobal.put("wifi_on", "1"); in testSettingsUnchanged()
53 mapGlobal.put("adb_enabled", "1"); in testSettingsUnchanged()
55 mapSecure.put("bluetooth_on", "1"); in testSettingsUnchanged()
57 mapSystem.put("alarm_alert", "1"); in testSettingsUnchanged()
77 mapPreGlobal.put("wifi_on", "1"); in testSettingsChanged()
78 mapPreGlobal.put("adb_enabled", "1"); in testSettingsChanged()
80 mapPreSecure.put("bluetooth_on", "1"); in testSettingsChanged()
82 mapPreSystem.put("alarm_alert", "1"); in testSettingsChanged()
91 mapPostGlobal.put("wifi_on", "0"); in testSettingsChanged()
92 mapPostGlobal.put("adb_enabled", "1"); in testSettingsChanged()
[all …]
/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/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/tests/src/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/tests/src/com/android/tradefed/util/
DPropertyChangerTest.java44 mOriginal.put("foo1", "bar1"); in setUp()
45 mOriginal.put("foo2", "bar2"); in setUp()
46 mOriginal.put("foo3", "bar3"); in setUp()
47 mOriginal.put("foo4", "bar4"); in setUp()
50 mChanges.put("foo2", "bar2*"); in setUp()
51 mChanges.put("foo3", "bar3*"); in setUp()
52 mChanges.put("foo5", "bar5-new"); in setUp()
54 mExpected.put("foo1", "bar1"); in setUp()
55 mExpected.put("foo2", "bar2*"); in setUp()
56 mExpected.put("foo3", "bar3*"); in setUp()
[all …]
DMultiMapTest.java37 multiMap.put("key", "value1"); in testGetUniqueMap()
38 multiMap.put("key", "value2"); in testGetUniqueMap()
39 multiMap.put("uniquekey", "value"); in testGetUniqueMap()
40 multiMap.put("key2", "collisionKeyvalue"); in testGetUniqueMap()
78 multiMap.put("a", "1"); in testEntries()
79 multiMap.put("b", "2"); in testEntries()
80 multiMap.put("c", "3"); in testEntries()
81 multiMap.put("c", "4"); in testEntries()
82 multiMap.put("c", "4"); in testEntries()
/tools/tradefederation/contrib/tests/src/com/android/build/tests/
DImageStatsTest.java50 PARSED_TEST_DATA.put("/system/app/WallpapersBReel2017/WallpapersBReel2017.apk", 164424453L);
51 PARSED_TEST_DATA.put("/system/app/Chrome/Chrome.apk", 124082279L);
52 PARSED_TEST_DATA.put("/system/priv-app/Velvet/Velvet.apk", 92966112L);
53 PARSED_TEST_DATA.put("/system/framework/ext.jar", 1790897L);
54 PARSED_TEST_DATA.put("/system/fonts/NotoSansEgyptianHieroglyphs-Regular.ttf", 505436L);
55 PARSED_TEST_DATA.put("/system/bin/ip6tables", 500448L);
56 PARSED_TEST_DATA.put("/system/usr/share/zoneinfo/tzdata", 500393L);
57 PARSED_TEST_DATA.put("/system/fonts/NotoSansCuneiform-Regular.ttf", 500380L);
58 PARSED_TEST_DATA.put("/system/framework/core-oj.jar", 126391L);
59 PARSED_TEST_DATA.put("/system/framework/com.quicinc.cne.jar", 122641L);
[all …]
/tools/tradefederation/core/common_util/com/android/tradefed/util/
DAbiUtils.java102 ARCH_TO_ABIS.put(BASE_ARCH_ARM, ARM_ABIS); in ARCH_TO_ABIS.put()
103 ARCH_TO_ABIS.put(ARCH_ARM64, ARM_ABIS); in ARCH_TO_ABIS.put()
104 ARCH_TO_ABIS.put(BASE_ARCH_X86, INTEL_ABIS); in ARCH_TO_ABIS.put()
105 ARCH_TO_ABIS.put(ARCH_X86_64, INTEL_ABIS); in ARCH_TO_ABIS.put()
106 ARCH_TO_ABIS.put(BASE_ARCH_MIPS, MIPS_ABIS); in ARCH_TO_ABIS.put()
107 ARCH_TO_ABIS.put(ARCH_MIPS64, MIPS_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()
116 ABI_TO_ARCH.put(ABI_X86_64, ARCH_X86_64); in ABI_TO_ARCH.put()
[all …]
/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/core/src/com/android/tradefed/device/cloud/
DNestedRemoteDevice.java53 IP_TO_USER.put("127.0.0.1:6520", "vsoc-01");
54 IP_TO_USER.put("127.0.0.1:6521", "vsoc-02");
55 IP_TO_USER.put("127.0.0.1:6522", "vsoc-03");
56 IP_TO_USER.put("127.0.0.1:6523", "vsoc-04");
57 IP_TO_USER.put("127.0.0.1:6524", "vsoc-05");
58 IP_TO_USER.put("127.0.0.1:6525", "vsoc-06");
59 IP_TO_USER.put("127.0.0.1:6526", "vsoc-07");
60 IP_TO_USER.put("127.0.0.1:6527", "vsoc-08");
61 IP_TO_USER.put("127.0.0.1:6528", "vsoc-09");
62 IP_TO_USER.put("127.0.0.1:6529", "vsoc-10");
[all …]
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/params/
DModuleParametersHelper.java27 sHandlerMap.put(ModuleParameters.INSTANT_APP, new InstantAppHandler()); in sHandlerMap.put()
28 sHandlerMap.put(ModuleParameters.NOT_INSTANT_APP, new NegativeHandler()); in sHandlerMap.put()
30 sHandlerMap.put(ModuleParameters.MULTI_ABI, new NegativeHandler()); in sHandlerMap.put()
31 sHandlerMap.put(ModuleParameters.NOT_MULTI_ABI, new NotMultiAbiHandler()); in sHandlerMap.put()
43 sOptionalHandlerMap.put(ModuleParameters.SECONDARY_USER, new SecondaryUserHandler()); in sOptionalHandlerMap.put()
44 sOptionalHandlerMap.put(ModuleParameters.NOT_SECONDARY_USER, new NegativeHandler()); in sOptionalHandlerMap.put()
/tools/tradefederation/core/remote/src/com/android/tradefed/command/remote/
DListDevicesOp.java112 deviceStateJson.put(SERIAL, descriptor.getSerial()); in packResponseIntoJson()
113 deviceStateJson.put(IS_STUB, descriptor.isStubDevice()); in packResponseIntoJson()
114 deviceStateJson.put(STATE, descriptor.getState().toString()); in packResponseIntoJson()
115 deviceStateJson.put(PRODUCT, descriptor.getProduct()); in packResponseIntoJson()
116 deviceStateJson.put(PRODUCT_VARIANT, descriptor.getProductVariant()); in packResponseIntoJson()
117 deviceStateJson.put(SDK_VERSION, descriptor.getSdkVersion()); in packResponseIntoJson()
118 deviceStateJson.put(BUILD_ID, descriptor.getBuildId()); in packResponseIntoJson()
119 deviceStateJson.put(BATTERY_LEVEL, descriptor.getBatteryLevel()); in packResponseIntoJson()
120 jsonDeviceStateArray.put(deviceStateJson); in packResponseIntoJson()
122 result.put(SERIALS, jsonDeviceStateArray); in packResponseIntoJson()
/tools/tradefederation/core/src/com/android/tradefed/command/
DConsole.java319 trie.put(genericHelpRunnable, HELP_PATTERN); in generateHelpListings()
328 trie.put(new Runnable() { in generateHelpListings()
340 trie.put(new Runnable() { in generateHelpListings()
348 trie.put(new ArgRunnable<CaptureList>() { in generateHelpListings()
361 trie.put(new ArgRunnable<CaptureList>() { in generateHelpListings()
466 commandHelp.put(LIST_PATTERN, String.format( in addDefaultCommands()
478 commandHelp.put(DUMP_PATTERN, String.format( in addDefaultCommands()
497 commandHelp.put(RUN_PATTERN, String.format( in addDefaultCommands()
510 commandHelp.put(SET_PATTERN, String.format( in addDefaultCommands()
516 commandHelp.put(REMOVE_PATTERN, String.format( in addDefaultCommands()
[all …]

12345678910>>...17