Home
last modified time | relevance | path

Searched refs:length (Results 1 – 25 of 866) sorted by relevance

12345678910>>...35

/developtools/smartperf_host/ide/test/trace/component/trace/base/
DTraceSheet.test.ts31 cpus: { length: 1 },
32 threadIds: [{ length: 2 }],
33 funTids: { length: 1 },
34 trackIds: { length: 1 },
35 heapIds: { length: 1 },
36 nativeMemory: { length: 1 },
37 cpuAbilityIds: { length: 1 },
38 memoryAbilityIds: { length: 1 },
39 diskAbilityIds: { length: 1 },
40 networkAbilityIds: { length: 1 },
[all …]
/developtools/smartperf_host/ide/src/trace/component/trace/base/
DTraceSheetConfig.ts142 require: (param: SelectionParam) => param.cpuFreqLimitDatas.length > 0,
147 require: (param: SelectionParam) => param.cpus.length > 0,
152 require: (param: SelectionParam) => param.cpus.length > 0,
157 require: (param: SelectionParam) => param.cpus.length > 0,
162 require: (param: SelectionParam) => param.cpus.length > 0,
167 require: (param: SelectionParam) => param.cpus.length > 0,
172 require: (param: SelectionParam) => param.threadIds.length > 0,
177 require: (param: SelectionParam) => param.processIds.length > 0 && param.startup,
182 require: (param: SelectionParam) => param.processIds.length > 0 && param.staticInit,
187 require: (param: SelectionParam) => param.threadIds.length > 0,
[all …]
DTraceRowRecyclerView.ts37 log('dataSource TraceRowObject size :' + value.length);
42 for (let i = 0; i < els.length; i++) {
85 for (let index = 0; index < this.visibleObjects.length; index++) {
93 for (let i = 0; i < els.length; i++) {
104 for (let i = 0; i < this.visibleObjects.length; i++) {
109 …this.visibleObjects[i].nextObject = i == this.visibleObjects.length - 1 ? null : this.visibleObjec…
116 if (this.visibleRowsCount >= this.visibleObjects.length) {
117 this.visibleRowsCount = this.visibleObjects.length;
119 if (!this.recycler) this.visibleRowsCount = this.dataSource.length;
131 for (let j = 0; j < this.dataSource.length; j++) {
[all …]
/developtools/profiler/host/smartperf/ide/src/trace/component/trace/base/
DTraceSheetConfig.ts106 require: (param: SelectionParam) => param.cpuFreqLimitDatas.length > 0,
111 require: (param: SelectionParam) => param.cpus.length > 0,
116 require: (param: SelectionParam) => param.cpus.length > 0,
121 require: (param: SelectionParam) => param.cpus.length > 0,
126 require: (param: SelectionParam) => param.cpus.length > 0,
131 require: (param: SelectionParam) => param.cpus.length > 0,
136 require: (param: SelectionParam) => param.threadIds.length > 0,
141 require: (param: SelectionParam) => param.processIds.length > 0 && param.startup,
146 require: (param: SelectionParam) => param.processIds.length > 0 && param.staticInit,
151 require: (param: SelectionParam) => param.threadIds.length > 0,
[all …]
DTraceRowRecyclerView.ts37 log('dataSource TraceRowObject size :' + value.length);
42 for (let i = 0; i < els.length; i++) {
85 for (let index = 0; index < this.visibleObjects.length; index++) {
93 for (let i = 0; i < els.length; i++) {
104 for (let i = 0; i < this.visibleObjects.length; i++) {
109 …this.visibleObjects[i].nextObject = i == this.visibleObjects.length - 1 ? null : this.visibleObjec…
116 if (this.visibleRowsCount >= this.visibleObjects.length) {
117 this.visibleRowsCount = this.visibleObjects.length;
119 if (!this.recycler) this.visibleRowsCount = this.dataSource.length;
131 for (let j = 0; j < this.dataSource.length; j++) {
[all …]
/developtools/smartperf_host/ide/src/hdc/common/
DSerialize.ts33 … bannerValue.length + authTypeValue.length + sessionIdValue.length + connectKey.length + buf.length
36 mergedArray.set(authTypeValue, bannerValue.length);
37 mergedArray.set(sessionIdValue, bannerValue.length + authTypeValue.length);
38 mergedArray.set(connectKey, bannerValue.length + authTypeValue.length + sessionIdValue.length);
39 …mergedArray.set(buf, bannerValue.length + authTypeValue.length + sessionIdValue.length + connectKe…
48 …let mergedArray = new Uint8Array(channelId.length + commandFlag.length + checkSum.length + vCode.l…
50 mergedArray.set(commandFlag, channelId.length);
51 mergedArray.set(checkSum, channelId.length + commandFlag.length);
52 mergedArray.set(vCode, channelId.length + commandFlag.length + checkSum.length);
71 fileSizeValue.length +
[all …]
/developtools/profiler/host/smartperf/ide/src/hdc/common/
DSerialize.ts33 … bannerValue.length + authTypeValue.length + sessionIdValue.length + connectKey.length + buf.length
36 mergedArray.set(authTypeValue, bannerValue.length);
37 mergedArray.set(sessionIdValue, bannerValue.length + authTypeValue.length);
38 mergedArray.set(connectKey, bannerValue.length + authTypeValue.length + sessionIdValue.length);
39 …mergedArray.set(buf, bannerValue.length + authTypeValue.length + sessionIdValue.length + connectKe…
48 …let mergedArray = new Uint8Array(channelId.length + commandFlag.length + checkSum.length + vCode.l…
50 mergedArray.set(commandFlag, channelId.length);
51 mergedArray.set(checkSum, channelId.length + commandFlag.length);
52 mergedArray.set(vCode, channelId.length + commandFlag.length + checkSum.length);
71 fileSizeValue.length +
[all …]
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/zip/
DRandomAccessFileZipDataOutput.java50 public void write(byte[] buffer, int offset, int length) throws IOException { in write() argument
54 if (offset > buffer.length) { in write()
55 …ow new IndexOutOfBoundsException("offset (" + offset + ") > buffer length(" + buffer.length + ")"); in write()
57 if (length == 0) { in write()
62 file.write(buffer, offset, length); in write()
63 position += length; in write()
69 int length = buffer.remaining(); in write() local
70 if (length == 0) { in write()
78 position += length; in write()
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/entity/
DSignContentInfo.java47 protected int length; field in SignContentHash
64 SignContentHash(char type, char tag, short algId, int length, byte[] hash) { in SignContentHash() argument
68 this.length = length; in SignContentHash()
70 this.contentHashLen = CONTENT_HEAD_SIZE + this.hash.length; in SignContentHash()
95 public void addContentHashData(char type, char tag, short algId, int length, byte[] hash) { in addContentHashData() argument
96 SignContentHash signInfo = new SignContentHash(type, tag, algId, length, hash); in addContentHashData()
122 index = ByteArrayUtils.insertShortToByteArray(ret, ret.length, index, size); in getByteContent()
126 index = ByteArrayUtils.insertShortToByteArray(ret, ret.length, index, numOfBlocks); in getByteContent()
136 index = ByteArrayUtils.insertShortToByteArray(ret, ret.length, index, tmp.algId); in getByteContent()
137 index = ByteArrayUtils.insertIntToByteArray(ret, index, tmp.length); in getByteContent()
[all …]
DSigningBlock.java25 private int length; field in SigningBlock
39 this.length = value.length; in SigningBlock()
53 this.length = value.length; in SigningBlock()
63 return length; in getLength()
DHwBlockHead.java70 public static byte[] getBlockHead(char type, char tag, short length, int offset) { in getBlockHead() argument
74 (byte) ((length >> BIT_SIZE) & 0xff), in getBlockHead()
75 (byte) (length & 0xff), in getBlockHead()
92 public static byte[] getBlockHeadLittleEndian(char type, char tag, int length, int offset) { in getBlockHeadLittleEndian() argument
96 bf.putInt(length); in getBlockHeadLittleEndian()
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/codesigning/fsverity/
DFsVerityDescriptorWithSign.java35 private int length; field in FsVerityDescriptorWithSign
52 length = FsVerityDescriptor.DESCRIPTOR_SIZE + this.signature.length; in FsVerityDescriptorWithSign()
63 …public FsVerityDescriptorWithSign(int type, int length, FsVerityDescriptor fsVerityDescriptor, byt… in FsVerityDescriptorWithSign() argument
65 this.length = length; in FsVerityDescriptorWithSign()
76 return Integer.BYTES * 2 + FsVerityDescriptor.DESCRIPTOR_SIZE + signature.length; in size()
88 buffer.putInt(length); in toByteArray()
/developtools/smartperf_host/ide/test/trace/component/metrics/
DMemAggStrategy.test.ts21 length: 1,
31 length: 11,
44 length: 12,
57 length: 13,
70 length: 14,
83 length: 15,
/developtools/smartperf_host/ide/src/trace/database/
DTraceWorker.ts47 bufferSlice.length = 0;
101 let length = 0;
103 length += item.length;
105 let mergedArray = new Uint8Array(length);
109 offset += item.length;
138 for (let i = 0 ; i < values.length ; i++) {
140 for (let j = 0 ; j < columns.length ; j++) {
179 bufferSlice.length = 0;
189 Module._TraceStreamerParserConfigEx(parseConfigArray.length);
201 Module._TraceStreamer_Init_ThirdParty_Config(configUintArray.length);
[all …]
DProcedure.ts44 if (transfer.length > 0) {
87 this.maxThreadNumber = this.names.length;
91 for (let j = 0; j < this.logicDataHandles.length; j++) {
104 newThread.name = this.names[this.works.length];
127 newThread.id = this.works.length;
141 thread.name = this.logicDataHandles[this.works.length - this.names.length];
182 thread.id = this.works.length;
189 for (let i = 0; i < this.works.length; i++) {
193 this.works.length = 0;
197 for (let i = 0; i < this.works.length; i++) {
[all …]
/developtools/global_resource_tool/src/
Dresource_item.cpp45 return SetData(reinterpret_cast<const int8_t *>(data.c_str()), data.length() + 1); in SetData()
48 bool ResourceItem::SetData(const int8_t *data, uint32_t length) in SetData() argument
50 if (data == nullptr || length <= 0) { in SetData()
55 int8_t *buffer = reinterpret_cast<int8_t *>(new (nothrow) int8_t[length]); in SetData()
60 bool result = (memset_s(buffer, length, 0, length) == EOK); in SetData()
61 result = result && (memcpy_s(buffer, length, data, length) == EOK); in SetData()
63 dataLen_ = length; in SetData()
/developtools/profiler/host/smartperf/ide/src/trace/database/
DTraceWorker.ts47 bufferSlice.length = 0;
101 let length = 0;
103 length += item.length;
105 let mergedArray = new Uint8Array(length);
109 offset += item.length;
138 for (let i = 0; i < values.length; i++) {
140 for (let j = 0; j < columns.length; j++) {
179 bufferSlice.length = 0;
194 Module._TraceStreamer_Init_ThirdParty_Config(configUintArray.length);
207 if (configs.length > 0) {
[all …]
DProcedure.ts44 if (transfer.length > 0) {
87 this.maxThreadNumber = this.names.length;
91 for (let j = 0; j < this.logicDataHandles.length; j++) {
104 newThread.name = this.names[this.works.length];
127 newThread.id = this.works.length;
141 thread.name = this.logicDataHandles[this.works.length - this.names.length];
182 thread.id = this.works.length;
189 for (let i = 0; i < this.works.length; i++) {
193 this.works.length = 0;
197 for (let i = 0; i < this.works.length; i++) {
[all …]
/developtools/profiler/host/smartperf/ide/src/trace/component/
DSpQuerySQL.ts82 for (let index = 0; index < bodyList.length; index++) {
97 if (this.statDataArray.length > this.maxPageSize) {
130 for (let index = 0; index < resultList.length; index++) {
136 for (let keyIndex = 0; keyIndex < keys.length; keyIndex++) {
146 if (keyIndex != keys.length - 1) {
160 let total = this.statDataArray.length;
184 info('metric query Sql result Data size is: ', this.statDataArray!.length);
203 for (let index = 0; index < styleTable.children.length; index++) {
215 for (let index = 0; index < statList.length; index++) {
226 this.querySize!.textContent = 'Query result - ' + statList.length + ' counts';
[all …]
/developtools/ace_js2bundle/ace-loader/src/
Dresource-reference-script.js28 ResourceRefReg.lastIndex -= result[0].length - resourceId.length
43 SysResourceTypeRefReg.lastIndex -= result[0].length - resourceId.length
58 AppResourceTypeRefReg.lastIndex -= result[0].length - resourceId.length
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/utils/
DByteArrayUtils.java44 if (index + Integer.BYTES > desByte.length) { in insertIntToByteArray()
90 if (src.length < srcLen) { in insertByteToByteArray()
106 if (start > des.length - src.length) { in insertCharToByteArray()
109 for (int i = 0; i < src.length; i++) { in insertCharToByteArray()
112 return start + src.length; in insertCharToByteArray()
DFileUtils.java148 …public static byte[] readFileByOffsetAndLength(File file, long offset, long length) throws IOExcep… in readFileByOffsetAndLength() argument
150 return readInputByOffsetAndLength(input, offset, length); in readFileByOffsetAndLength()
163 …public static byte[] readInputByOffsetAndLength(InputStream input, long offset, long length) throw… in readInputByOffsetAndLength() argument
165 return readInputByLength(input, length); in readInputByOffsetAndLength()
175 public static byte[] readInputByLength(InputStream input, long length) throws IOException { in readInputByLength() argument
177 if (length > Integer.MAX_VALUE) { in readInputByLength()
178 throw new IOException("Size cannot be greater than Integer max value: " + length); in readInputByLength()
180 writeInputToOutPut(input, output, length); in readInputByLength()
188 …private static void writeInputToOutPut(InputStream input, OutputStream output, long length) throws… in writeInputToOutPut() argument
191 while (hasReadLen < length) { in writeInputToOutPut()
[all …]
/developtools/smartperf_host/trace_streamer/sdk/demo_sdk/test/unittest/
Dsdk_api_test.cpp70 … ret = rpcServer->SqlQuery((const uint8_t*)sqlQueryCounter.c_str(), sqlQueryCounter.length(), res);
75 …ret = rpcServer->SqlQuery((const uint8_t*)sqlQueryCounterObj.c_str(), sqlQueryCounterObj.length(),…
79 ret = rpcServer->SqlQuery((const uint8_t*)sqlQuerySlice.c_str(), sqlQuerySlice.length(), res);
83 …ret = rpcServer->SqlQuery((const uint8_t*)sqlQuerySliceObj.c_str(), sqlQuerySliceObj.length(), res…
102 … ret = rpcServer->SqlQuery((const uint8_t*)sqlQueryCounter.c_str(), sqlQueryCounter.length(), res);
106 …ret = rpcServer->SqlQuery((const uint8_t*)sqlQueryCounterObj.c_str(), sqlQueryCounterObj.length(),…
110 ret = rpcServer->SqlQuery((const uint8_t*)sqlQuerySlice.c_str(), sqlQuerySlice.length(), res);
114 …ret = rpcServer->SqlQuery((const uint8_t*)sqlQuerySliceObj.c_str(), sqlQuerySliceObj.length(), res…
135 … ret = rpcServer->SqlQuery((const uint8_t*)sqlQueryCounter.c_str(), sqlQueryCounter.length(), res);
139 …ret = rpcServer->SqlQuery((const uint8_t*)sqlQueryCounterObj.c_str(), sqlQueryCounterObj.length(),…
[all …]
/developtools/smartperf_host/trace_streamer/sdk/dubai_sdk/test/unittest/
Dsdk_api_test.cpp70 … ret = rpcServer->SqlQuery((const uint8_t*)sqlQueryCounter.c_str(), sqlQueryCounter.length(), res);
75 …ret = rpcServer->SqlQuery((const uint8_t*)sqlQueryCounterObj.c_str(), sqlQueryCounterObj.length(),…
79 ret = rpcServer->SqlQuery((const uint8_t*)sqlQuerySlice.c_str(), sqlQuerySlice.length(), res);
83 …ret = rpcServer->SqlQuery((const uint8_t*)sqlQuerySliceObj.c_str(), sqlQuerySliceObj.length(), res…
102 … ret = rpcServer->SqlQuery((const uint8_t*)sqlQueryCounter.c_str(), sqlQueryCounter.length(), res);
106 …ret = rpcServer->SqlQuery((const uint8_t*)sqlQueryCounterObj.c_str(), sqlQueryCounterObj.length(),…
110 ret = rpcServer->SqlQuery((const uint8_t*)sqlQuerySlice.c_str(), sqlQuerySlice.length(), res);
114 …ret = rpcServer->SqlQuery((const uint8_t*)sqlQuerySliceObj.c_str(), sqlQuerySliceObj.length(), res…
135 … ret = rpcServer->SqlQuery((const uint8_t*)sqlQueryCounter.c_str(), sqlQueryCounter.length(), res);
139 …ret = rpcServer->SqlQuery((const uint8_t*)sqlQueryCounterObj.c_str(), sqlQueryCounterObj.length(),…
[all …]
/developtools/profiler/device/plugins/sample_plugin/src/
Dsample_plugin.cpp66 uint32_t length = dataProto.ByteSizeLong(); in Report() local
67 if (length > dataSize) { in Report()
68 return -length; in Report()
71 if (dataProto.SerializeToArray(data, length) > 0) { in Report()
72 HILOG_DEBUG(LOG_CORE, "%s:report success! length = %d", __func__, length); in Report()
73 return length; in Report()

12345678910>>...35