Home
last modified time | relevance | path

Searched refs:index (Results 1 – 25 of 161) sorted by relevance

1234567

/tools/trebuchet/core/common/src/main/kotlin/trebuchet/util/
DStringSearch.kt69 var index = startIndex + lookFor.length - 1 in find() variable
71 while (index <= endIndex) { in find()
72 if (index > reader.endIndex) { in find()
73 if (!reader.loadIndex(index)) return -1 in find()
79 while (reader.windowFor(index) !== reader.windowFor(index - lookFor.length + 1)) { in find()
81 while (lookForIndex >= 0 && reader[index] == lookFor[lookForIndex].toByte()) { in find()
82 index-- in find()
86 return index + 1 in find()
88 index += maxOf(skipLut[reader[index].toInt() and 0xFF], suffixSkip[lookForIndex]) in find()
90 if (index > reader.endIndex) { in find()
[all …]
DBufferReader.kt26 open class BufferReaderState(var buffer: ByteArray, var index: Int, var endIndexExclusive: Int) { in isDigit() variable in trebuchet.util.BufferReaderState
29 inline fun peek() = buffer[index] in isDigit()
31 inline fun isDigit() = buffer[index].isDigit() in isDigit()
34 index++ in isDigit()
38 index += count in isDigit()
42 while (index < endIndexExclusive && buffer[index] == char) { index++ } in isDigit()
50 while (index < endIndexExclusive && !cb(peek())) { index++ } in isDigit()
53 inline fun end() { index = endIndexExclusive } in isDigit()
56 val foundAt = search.find(buffer, index, endIndexExclusive) in isDigit()
57 index = if (foundAt != -1) foundAt else endIndexExclusive in isDigit()
[all …]
/tools/test/connectivity/acts/framework/acts/test_utils/audio_analysis_lib/
Daudio_quality_measurement.py201 for index in range(0, rate * 2):
202 sample = 2.0 * math.pi * frequency * float(index) / float(rate)
319 for index in range(left_border, right_border):
320 result.append(temp[index - temp_left_border])
359 for index in range(0, length):
360 while left_border < index - side_block_size:
363 while right_border < min(length, index + side_block_size):
367 left_average_value = float(left_block_sum) / (index - left_border + 1)
368 right_average_value = float(right_block_sum) / (right_border - index)
369 left_average_array[index] = left_average_value
[all …]
/tools/dexter/slicer/
Ddex_ir.cc118 items[i]->index = i; in IndexItems()
130 if (irClass->index == dex::u4(-1)) { in TopSortClassIndex()
144 irClass->index = (*nextIndex)++; in TopSortClassIndex()
152 irClass->index = dex::u4(-1); in SortClassIndexes()
165 SLICER_CHECK(a->decl->index != b->decl->index || a == b); in SortEncodedFields()
166 return a->decl->index < b->decl->index; in SortEncodedFields()
174 SLICER_CHECK(a->decl->index != b->decl->index || a == b); in SortEncodedMethods()
175 return a->decl->index < b->decl->index; in SortEncodedMethods()
206 return a->descriptor->index < b->descriptor->index; in Normalize()
213 if (a->return_type->index != b->return_type->index) { in Normalize()
[all …]
Dreader.cc73 const char* Reader::GetStringMUTF8(dex::u4 index) const { in GetStringMUTF8()
74 if (index == dex::kNoIndex) { in GetStringMUTF8()
77 const dex::u1* strData = GetStringData(index); in GetStringMUTF8()
89 void Reader::CreateClassIr(dex::u4 index) { in CreateClassIr() argument
90 auto ir_class = GetClass(index); in CreateClassIr()
121 ir::Class* Reader::GetClass(dex::u4 index) { in GetClass() argument
122 SLICER_CHECK(index != dex::kNoIndex); in GetClass()
123 auto& p = dex_ir_->classes_map[index]; in GetClass()
127 auto newClass = ParseClass(index); in GetClass()
130 dex_ir_->classes_indexes.MarkUsedIndex(index); in GetClass()
[all …]
Dwriter.cc37 return ir_node != nullptr ? ir_node->index : dex::kNoIndex; in OptIndex()
135 WriteIntValue<dex::u4>(type, ir_value->u.string_value->index, data); in WriteEncodedValue()
139 WriteIntValue<dex::u4>(type, ir_value->u.type_value->index, data); in WriteEncodedValue()
143 WriteIntValue<dex::u4>(type, ir_value->u.field_value->index, data); in WriteEncodedValue()
147 WriteIntValue<dex::u4>(type, ir_value->u.method_value->index, data); in WriteEncodedValue()
151 WriteIntValue<dex::u4>(type, ir_value->u.enum_value->index, data); in WriteEncodedValue()
201 data.PushULeb128(ir_annotation->type->index); in WriteAnnotation()
204 data.PushULeb128(irAnnotationElement->name->index); in WriteAnnotation()
562 dexTypeId->descriptor_idx = ir_type->descriptor->index; in FillTypes()
572 dexProtoId->shorty_idx = irProto->shorty->index; in FillProtos()
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/dev_utils/proto/gen/
Dapollo_qa_pb2.py35 name='TRACE', index=0, number=1,
39 name='GET_VER_RESPONSE', index=1, number=2,
43 name='GET_CODEC_RESPONSE', index=2, number=3,
47 name='GET_DSP_STATUS_RESPONSE', index=3, number=4,
51 name='FACTORY_PLAY_SOUND', index=4, number=5,
55 name='FACTORY_INFO_REQUEST', index=5, number=6,
59 name='FACTORY_INFO_RESPONSE', index=6, number=7,
78 name='OTA_ERASE_PARTITION', index=0, number=1,
82 name='OTA_START_PARTITION_WRITE', index=1, number=2,
86 name='OTA_FINISHED_PARTITION_WRITE', index=2, number=3,
[all …]
Dnanopb_pb2.py35 name='FT_DEFAULT', index=0, number=0,
39 name='FT_CALLBACK', index=1, number=1,
43 name='FT_POINTER', index=2, number=4,
47 name='FT_STATIC', index=3, number=2,
51 name='FT_IGNORE', index=4, number=3,
70 name='IS_DEFAULT', index=0, number=0,
74 name='IS_8', index=1, number=8,
78 name='IS_16', index=2, number=16,
82 name='IS_32', index=3, number=32,
86 name='IS_64', index=4, number=64,
[all …]
Daudiowear_pb2.py33 name='UNKNOWN_MESSAGE_GROUP', index=0, number=0,
37 name='DEVICE_INPUT', index=1, number=1,
41 name='OTA', index=2, number=2,
45 name='DEVICE_CAPABILITY', index=3, number=3,
49 name='DEVICE_STATUS', index=4, number=4,
53 name='LOGGING', index=5, number=5,
57 name='SENSORS', index=6, number=6,
61 name='COMPANION_STATUS', index=7, number=7,
65 name='DEVICE_COMMAND', index=8, number=8,
69 name='BISTO_SETTINGS', index=9, number=9,
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/
DOptions.kt612 var index = 0 in <lambda>() variable
613 while (index < args.size) { in <lambda>()
614 val arg = args[index] in <lambda>()
637 val path = getValue(args, ++index) in <lambda>()
642 val path = getValue(args, ++index) in <lambda>()
658 val listString = getValue(args, ++index) in <lambda>()
668 subtractApi = stringToExistingFile(getValue(args, ++index)) in <lambda>()
674 getValue(args, ++index) in <lambda>()
680 getValue(args, ++index) in <lambda>()
690 validateNullabilityFromList = stringToExistingFile(getValue(args, ++index)) in <lambda>()
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/dev_utils/proto/gen/google/protobuf/
Ddescriptor_pb2.py33 name='TYPE_DOUBLE', index=0, number=1,
37 name='TYPE_FLOAT', index=1, number=2,
41 name='TYPE_INT64', index=2, number=3,
45 name='TYPE_UINT64', index=3, number=4,
49 name='TYPE_INT32', index=4, number=5,
53 name='TYPE_FIXED64', index=5, number=6,
57 name='TYPE_FIXED32', index=6, number=7,
61 name='TYPE_BOOL', index=7, number=8,
65 name='TYPE_STRING', index=8, number=9,
69 name='TYPE_GROUP', index=9, number=10,
[all …]
/tools/test/connectivity/acts/framework/acts/test_utils/bt/loggers/protos/
Dbluetooth_metric_pb2.py35 name='SBC', index=0, number=0,
39 name='AAC', index=1, number=1,
43 name='APTX', index=2, number=2,
47 name='APTX_HD', index=3, number=3,
51 name='LDAC', index=4, number=4,
69 name='A2DP', index=0, number=0,
73 name='HFP', index=1, number=1,
77 name='HAP', index=2, number=2,
95 name='RFCOMM', index=0, number=0,
99 name='L2CAP', index=1, number=1,
[all …]
/tools/tradefederation/core/atest/proto/
Dinternal_user_log_pb2.py40 name='command_line', full_name='AtestLogEventInternal.AtestStartEvent.command_line', index=0,
47 …name='test_references', full_name='AtestLogEventInternal.AtestStartEvent.test_references', index=1,
54 name='cwd', full_name='AtestLogEventInternal.AtestStartEvent.cwd', index=2,
61 name='os', full_name='AtestLogEventInternal.AtestStartEvent.os', index=3,
91 name='duration', full_name='AtestLogEventInternal.AtestExitEvent.duration', index=0,
98 name='exit_code', full_name='AtestLogEventInternal.AtestExitEvent.exit_code', index=1,
105 name='stacktrace', full_name='AtestLogEventInternal.AtestExitEvent.stacktrace', index=2,
112 name='logs', full_name='AtestLogEventInternal.AtestExitEvent.logs', index=3,
142 name='duration', full_name='AtestLogEventInternal.FindTestFinishEvent.duration', index=0,
149 name='success', full_name='AtestLogEventInternal.FindTestFinishEvent.success', index=1,
[all …]
Dexternal_user_log_pb2.py63 name='duration', full_name='AtestLogEventExternal.AtestExitEvent.duration', index=0,
70 name='exit_code', full_name='AtestLogEventExternal.AtestExitEvent.exit_code', index=1,
100 name='duration', full_name='AtestLogEventExternal.FindTestFinishEvent.duration', index=0,
107 name='success', full_name='AtestLogEventExternal.FindTestFinishEvent.success', index=1,
137 name='duration', full_name='AtestLogEventExternal.BuildFinishEvent.duration', index=0,
144 name='success', full_name='AtestLogEventExternal.BuildFinishEvent.success', index=1,
174 name='duration', full_name='AtestLogEventExternal.RunnerFinishEvent.duration', index=0,
181 name='success', full_name='AtestLogEventExternal.RunnerFinishEvent.success', index=1,
188 name='runner_name', full_name='AtestLogEventExternal.RunnerFinishEvent.runner_name', index=2,
218 name='duration', full_name='AtestLogEventExternal.RunTestsFinishEvent.duration', index=0,
[all …]
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/
DFatType.java37 long readEntry(byte[] data, int index) { in readEntry() argument
38 final int idx = (int) (index * 1.5); in readEntry()
43 if ((index % 2) == 0) { in readEntry()
51 void writeEntry(byte[] data, int index, long entry) { in writeEntry() argument
52 final int idx = (int) (index * 1.5); in writeEntry()
54 if ((index % 2) == 0) { in writeEntry()
70 long readEntry(byte[] data, int index) { in readEntry() argument
71 final int idx = index << 1; in readEntry()
78 void writeEntry(byte[] data, int index, long entry) { in writeEntry() argument
79 final int idx = index << 1; in writeEntry()
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DJavadoc.kt223 val index = existingDoc.indexOf('\n') in trimDocIndent() constant
224 if (index == -1) { in trimDocIndent()
228 return existingDoc.substring(0, index + 1) + in trimDocIndent()
229 existingDoc.substring(index + 1).trimIndent().split('\n').joinToString(separator = "\n") { in trimDocIndent()
246 val index = existingDoc.indexOf('\n') in insertInto() constant
247 val prefixWithStar = index == -1 || existingDoc[index + 1] == '*' || in insertInto()
248 existingDoc[index + 1] == ' ' && existingDoc[index + 2] == '*' in insertInto()
530 var index = 0 in containsLinkTags() variable
532 index = documentation.indexOf('@', index) in containsLinkTags()
533 if (index == -1) { in containsLinkTags()
[all …]
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DAndroidBinXmlParser.java165 public int getAttributeNameResourceId(int index) throws XmlParserException { in getAttributeNameResourceId() argument
166 return getAttribute(index).getNameResourceId(); in getAttributeNameResourceId()
176 public String getAttributeName(int index) throws XmlParserException { in getAttributeName() argument
177 return getAttribute(index).getName(); in getAttributeName()
188 public String getAttributeNamespace(int index) throws XmlParserException { in getAttributeNamespace() argument
189 return getAttribute(index).getNamespace(); in getAttributeNamespace()
200 public int getAttributeValueType(int index) throws XmlParserException { in getAttributeValueType() argument
201 int type = getAttribute(index).getValueType(); in getAttributeValueType()
225 public int getAttributeIntValue(int index) throws XmlParserException { in getAttributeIntValue() argument
226 return getAttribute(index).getIntValue(); in getAttributeIntValue()
[all …]
/tools/test/connectivity/acts/framework/acts/test_utils/tel/loggers/protos/
Dtelephony_metric_pb2.py34 name='UNAVAILABLE_NETWORK_TYPE', index=0, number=-2,
38 name='CALL_SETUP_FAILURE', index=1, number=-1,
42 name='SUCCESS', index=2, number=0,
46 name='INITIATE_FAILED', index=3, number=1,
50 name='NO_RING_EVENT_OR_ANSWER_FAILED', index=4, number=2,
54 name='NO_CALL_ID_FOUND', index=5, number=3,
58 name='CALL_STATE_NOT_ACTIVE_DURING_ESTABLISHMENT', index=6, number=4,
62 name='AUDIO_STATE_NOT_INCALL_DURING_ESTABLISHMENT', index=7, number=5,
66 name='AUDIO_STATE_NOT_INCALL_AFTER_CONNECTED', index=8, number=6,
70 name='CALL_DROP_OR_WRONG_STATE_DURING_ESTABLISHMENT', index=9, number=7,
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/
DTextTypeItem.kt90 val index = erased.indexOf('[') in asClass() constant
91 if (index != -1) { in asClass()
92 erased.substring(0, index) in asClass()
283 val index = s.indexOf('<') in markRecent() constant
284 if (index != -1) { in markRecent()
286 for (i in index..s.length) { in markRecent()
294 s.substring(0, index) in markRecent()
296 s.substring(0, index) + s.substring(i + 1) in markRecent()
302 return s.substring(0, index) in markRecent()
339 val index = s.indexOf('@') in markRecent() constant
[all …]
/tools/dexter/slicer/export/slicer/
Dreader.h49 const char* GetStringMUTF8(dex::u4 index) const;
61 void CreateClassIr(dex::u4 index);
66 ir::Class* GetClass(dex::u4 index);
67 ir::Type* GetType(dex::u4 index);
68 ir::FieldDecl* GetFieldDecl(dex::u4 index);
69 ir::MethodDecl* GetMethodDecl(dex::u4 index);
70 ir::Proto* GetProto(dex::u4 index);
71 ir::String* GetString(dex::u4 index);
90 ir::Class* ParseClass(dex::u4 index);
92 ir::Type* ParseType(dex::u4 index);
[all …]
Dcode_ir.h183 dex::u4 index; member
185 explicit IndexedOperand(dex::u4 index) : index(index) {} in IndexedOperand()
191 String(ir::String* ir_string, dex::u4 index) : IndexedOperand(index), ir_string(ir_string) {} in String()
199 Type(ir::Type* ir_type, dex::u4 index) : IndexedOperand(index), ir_type(ir_type) {} in Type()
207 Field(ir::FieldDecl* ir_field, dex::u4 index) : IndexedOperand(index), ir_field(ir_field) {} in Field()
215 Method(ir::MethodDecl* ir_method, dex::u4 index) : IndexedOperand(index), ir_method(ir_method) {} in Method()
305 T* CastOperand(int index) const { in CastOperand()
306 return detail::CastOperand<T>(operands[index]); in CastOperand()
388 T* CastOperand(int index) const { in CastOperand()
389 return detail::CastOperand<T>(operands[index]); in CastOperand()
[all …]
/tools/test/graphicsbenchmark/performance_tests/hostside/src/com/android/game/qualification/metric/
DLoopSummary.java54 void addToMetricData(DeviceMetricData runData, int index, MetricSummary.TimeType type) { in addToMetricData() argument
56 getMetricKey(type, index, "frame_count"), in addToMetricData()
63 getMetricKey(type, index, "duration"), in addToMetricData()
66 getMetricKey(type, index, "jank_rate"), in addToMetricData()
71 getMetricKey(type, index, "min_frametime"), in addToMetricData()
74 getMetricKey(type, index, "max_frametime"), in addToMetricData()
77 getMetricKey(type, index, "frametime"), in addToMetricData()
80 getMetricKey(type, index, "90th_percentile"), in addToMetricData()
83 getMetricKey(type, index, "95th_percentile"), in addToMetricData()
86 getMetricKey(type, index, "99th_percentile"), in addToMetricData()
[all …]
/tools/apksig/src/main/java/com/android/apksig/internal/x509/
DTBSCertificate.java36 index = 0,
41 @Asn1Field(index = 1, type = Asn1Type.INTEGER)
44 @Asn1Field(index = 2, type = Asn1Type.SEQUENCE)
47 @Asn1Field(index = 3, type = Asn1Type.CHOICE)
50 @Asn1Field(index = 4, type = Asn1Type.SEQUENCE)
53 @Asn1Field(index = 5, type = Asn1Type.CHOICE)
56 @Asn1Field(index = 6, type = Asn1Type.SEQUENCE)
59 @Asn1Field(index = 7,
66 @Asn1Field(index = 8,
73 @Asn1Field(index = 9,
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/collections/
DSparseArray.kt84 fun removeAt(index: Int) { in removeAt()
85 if (mValues[index] !== DELETED) { in removeAt()
86 mValues[index] = DELETED in removeAt()
98 fun removeAtRange(index: Int, size: Int) { in removeAtRange()
99 val end = minOf(mSize, index + size) in removeAtRange()
100 for (i in index..end - 1) { in removeAtRange()
196 fun keyAt(index: Int): Int { in keyAt()
201 return mKeys[index] in keyAt()
209 fun valueAt(index: Int): E { in valueAt()
214 return mValues[index] as E in valueAt()
[all …]
/tools/apksig/src/test/java/com/android/apksig/internal/asn1/
DAsn1BerParserTest.java321 @Asn1Field(index = 1, type = Asn1Type.INTEGER)
324 @Asn1Field(index = 2, type = Asn1Type.INTEGER)
327 @Asn1Field(index = 3, type = Asn1Type.INTEGER)
330 @Asn1Field(index = 4, type = Asn1Type.INTEGER)
333 @Asn1Field(index = 5, type = Asn1Type.INTEGER)
339 @Asn1Field(index = 0, type = Asn1Type.OBJECT_IDENTIFIER)
345 @Asn1Field(index = 1, type = Asn1Type.INTEGER)
348 @Asn1Field(index = 2, type = Asn1Type.INTEGER, optional = true,
352 @Asn1Field(index = 3, type = Asn1Type.INTEGER)
358 @Asn1Field(index = 1, type = Asn1Type.INTEGER)
[all …]

1234567