Home
last modified time | relevance | path

Searched refs:position (Results 1 – 25 of 75) sorted by relevance

123

/tools/test/connectivity/acts/framework/tests/
Dacts_relay_controller_test.py72 self.board.set(self.relay.position, RelayState.NO)
79 self.board.set(self.relay.position, RelayState.NO)
82 self.board.get_relay_status(self.relay.position), RelayState.NC)
85 self.board.set(self.relay.position, RelayState.NC)
88 self.board.get_relay_status(self.relay.position), RelayState.NC)
91 self.board.set(self.relay.position, RelayState.NC)
94 self.board.get_relay_status(self.relay.position), RelayState.NO)
97 self.board.set(self.relay.position, RelayState.NO)
100 self.board.get_relay_status(self.relay.position), RelayState.NO)
103 self.board.set(self.relay.position, RelayState.NO)
[all …]
/tools/apksig/src/main/java/com/android/apksig/internal/asn1/ber/
DByteBufferBerDataValueReader.java37 int startPosition = mBuf.position(); in readDataValue()
54 contentsOffsetInTag = mBuf.position() - startPosition; in readDataValue()
59 contentsOffsetInTag = mBuf.position() - startPosition; in readDataValue()
63 contentsOffsetInTag = mBuf.position() - startPosition; in readDataValue()
71 int endPosition = mBuf.position(); in readDataValue()
72 mBuf.position(startPosition); in readDataValue()
76 mBuf.position(mBuf.limit()); in readDataValue()
80 encoded.position(contentsOffsetInTag); in readDataValue()
157 mBuf.position(mBuf.position() + contentsLength); in skipDefiniteLengthContents()
192 int startPos = mBuf.position(); in skipConstructedIndefiniteLengthContents()
[all …]
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DAndroidBinXmlParser.java310 contents.position(0); in next()
388 attr.position(attr.position() + 7); // skip ignored fields in parseCurrentElementAttributesIfNotParsed()
536 input.position(input.limit()); in get()
540 int originalPosition = input.position(); in get()
547 input.position(input.limit()); in get()
565 input.position((int) chunkEndPosition); in get()
590 header.position(Chunk.HEADER_MIN_SIZE_BYTES); in StringPool()
663 mStringsSection.position((int) offsetInStringsSection); in getString()
690 arrOffset = encoded.arrayOffset() + encoded.position(); in getLengthPrefixedUtf16EncodedString()
691 encoded.position(encoded.position() + lengthBytes); in getLengthPrefixedUtf16EncodedString()
[all …]
DApkSigningBlockUtilsLite.java110 int nextEntryPos = pairs.position() + len; in findApkSignatureSchemeBlock()
120 pairs.position(nextEntryPos); in findApkSignatureSchemeBlock()
289 int originalPosition = source.position(); in sliceFromTo()
291 source.position(0); in sliceFromTo()
293 source.position(start); in sliceFromTo()
298 source.position(0); in sliceFromTo()
300 source.position(originalPosition); in sliceFromTo()
318 int position = source.position(); in getByteBuffer() local
319 int limit = position + size; in getByteBuffer()
320 if ((limit < position) || (limit > originalLimit)) { in getByteBuffer()
[all …]
/tools/apksig/src/main/java/com/android/apksig/internal/zip/
DCentralDirectoryRecord.java138 int originalPosition = buf.position(); in getRecord()
145 buf.position(originalPosition + GP_FLAGS_OFFSET); in getRecord()
156 buf.position(originalPosition + LOCAL_FILE_HEADER_OFFSET_OFFSET); in getRecord()
158 buf.position(originalPosition); in getRecord()
167 buf.position(originalPosition); in getRecord()
178 buf.position(recordEndInBuf); in getRecord()
252 throw new RuntimeException("pos: " + result.position() + ", limit: " + result.limit()); in createWithDeflateCompressedData()
269 static String getName(ByteBuffer record, int position, int nameLengthBytes) { in getName() argument
274 nameBytesOffset = record.arrayOffset() + position; in getName()
278 int originalPosition = record.position(); in getName()
[all …]
DZipUtils.java68 zipEndOfCentralDirectory.position() + ZIP_EOCD_CENTRAL_DIR_OFFSET_FIELD_OFFSET, in setZipEocdCentralDirectoryOffset()
81 zipEndOfCentralDirectory.position() + ZIP_EOCD_CENTRAL_DIR_OFFSET_FIELD_OFFSET); in getZipEocdCentralDirectoryOffset()
93 zipEndOfCentralDirectory.position() + ZIP_EOCD_CENTRAL_DIR_SIZE_FIELD_OFFSET); in getZipEocdCentralDirectorySizeBytes()
106 zipEndOfCentralDirectory.position() in getZipEocdCentralDirectoryTotalRecordCount()
195 buf.position(eocdOffsetInBuf); in findZipEndOfCentralDirectoryRecord()
274 int offsetInsideCd = cd.position(); in parseZipCentralDirectory()
338 inputOffset = input.arrayOffset() + input.position(); in deflate()
339 input.position(input.limit()); in deflate()
/tools/apksig/src/test/java/com/android/apksig/util/
DDataSourceTestBase.java205 buf.position(2); in testCopyTo()
208 buf.position(2); in testCopyTo()
214 buf.position(2); in testCopyTo()
217 buf.position(2); in testCopyTo()
239 assertEquals(0, buf.position()); in assertGetByteBufferEquals()
276 buf.position(2); in assertCopyToEquals()
285 int oldPosition = buf.position(); in assertCopyToEquals()
289 assertEquals(oldPosition + size, buf.position()); in assertCopyToEquals()
292 buf.limit(buf.position()); in assertCopyToEquals()
293 buf.position(oldPosition); in assertCopyToEquals()
[all …]
DDataSinkTestBase.java79 input.position(2); in testConsumeFromByteBuffer()
82 assertEquals(5, input.position()); in testConsumeFromByteBuffer()
85 input.position(0); in testConsumeFromByteBuffer()
102 assertEquals(2, input.position()); in testConsumeFromByteBuffer()
/tools/apksig/src/main/java/com/android/apksig/internal/util/
DX509CertificateUtils.java125 int startingPos = encodedCertBuffer.position(); in generateCertificate()
132 byte[] originalEncoding = new byte[encodedCertBuffer.position() - startingPos]; in generateCertificate()
133 encodedCertBuffer.position(startingPos); in generateCertificate()
189 int startingPos = certBuffer.position(); in generateCertificates()
194 byte[] originalEncoding = new byte[certBuffer.position() - startingPos]; in generateCertificates()
195 certBuffer.position(startingPos); in generateCertificates()
266 int nextEncodedChar = certificateBuffer.position(); in getNextDEREncodedCertificateBlock()
275 certificateBuffer.position(nextEncodedChar); in getNextDEREncodedCertificateBlock()
DFileChannelDataSource.java109 mChannel.position(chunkOffsetInFile); in feed()
143 dest.limit(dest.position() + size); in copyTo()
147 mChannel.position(offsetInFile); in copyTo()
/tools/test/connectivity/acts/framework/acts/controllers/relay_lib/
Drelay.py76 def __init__(self, relay_board, position): argument
78 self.position = position
80 self.relay_id = "%s/%s" % (self.relay_board.name, self.position)
120 self.position)
127 self.relay_board.set(self.position, state)
154 return self.relay_board.get_relay_status(self.position)
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/wifi/
Dota_chamber.py67 def set_stirrer_pos(self, stirrer_id, position): argument
99 def set_stirrer_pos(self, stirrer_id, position): argument
101 self.log.info('Setting stirrer {} to {}.'.format(stirrer_id, position))
201 def set_stirrer_pos(self, stirrer_id, position): argument
204 self.log.info('Setting stirrer {} to {}.'.format(stirrer_id, position))
206 self.chamber.chamber_stirring_manual_set_pos, stirrer_id, position)
211 self.set_stirrer_pos(stirrer_id, position)
215 self.log.warning('Stirrer {} at {}.'.format(stirrer_id, position))
/tools/platform-compat/java/com/android/class2nonsdklist/
DJavadocLinkSyntaxError.java21 public final int position; field in JavadocLinkSyntaxError
25 super(expected + " at position " + sc.position() + " in " + sc.getOriginalString()); in JavadocLinkSyntaxError()
27 this.position = sc.position(); in JavadocLinkSyntaxError()
DSignatureSyntaxError.java21 public final int position; field in SignatureSyntaxError
24 super(expected + " at position " + sc.position() + " in " + sc.getOriginalString()); in SignatureSyntaxError()
26 this.position = sc.position(); in SignatureSyntaxError()
/tools/apksig/src/test/java/com/android/apksig/internal/util/
DByteBufferSinkTestBase.java34 buf.position(START_POS); in createDataSink()
42 int oldPos = buf.position(); in getContents()
45 buf.position(START_POS); in getContents()
50 buf.position(oldPos); in getContents()
/tools/apksig/src/main/java/com/android/apksig/
DApkSigner.java762 extra.position(extra.position() + dataSize); in getInputJarEntryDataAlignmentMultiple()
808 original.position(original.position() + dataSize); in createExtraFieldToAlignData()
812 original.position(original.position() - 4); in createExtraFieldToAlignData()
814 original.limit(original.position() + 4 + dataSize); in createExtraFieldToAlignData()
829 + result.position() in createExtraFieldToAlignData()
837 result.position(result.position() + paddingSizeBytes); in createExtraFieldToAlignData()
864 int offsetInsideCd = cd.position(); in parseZipCentralDirectory()
887 + (cdOffset + cd.position())); in parseZipCentralDirectory()
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/
DTextMemberItem.kt26 position: SourcePositionInfo,
28 ) : TextItem(codebase, position = position, modifiers = modifiers), MemberItem {
DTextFieldItem.kt30 position: SourcePositionInfo
31 ) : TextMemberItem(codebase, name, containingClass, position, modifiers), FieldItem {
59 modifiers.duplicate(), type, constantValue, position in hashCode()
DTextClassItem.kt36 position: SourcePositionInfo = SourcePositionInfo.UNKNOWN,
47 position = position,
252 assert(emit == (position != SourcePositionInfo.UNKNOWN)) in simpleName()
DTextMethodItem.kt36 position: SourcePositionInfo
38 codebase, name, containingClass, position,
138 modifiers.duplicate(), returnType, position in duplicate()
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/
DClusterChain.java212 dest.limit(dest.position() + size); in readData()
223 dest.limit(dest.position() + size); in readData()
261 srcBuf.limit(srcBuf.position() + size); in writeData()
272 srcBuf.limit(srcBuf.position() + size); in writeData()
DFsInfoSector.java145 buffer.position(0x00); in init()
153 buffer.position(0x1e4); in init()
162 buffer.position(SIGNATURE_OFFSET); in init()
/tools/platform-compat/java/android/processor/compat/unsupportedappusage/
DUnsupportedAppUsageProcessor.java143 String position = getSourcePositionOverride(element, annotationMirror); in getAnnotationIndex() local
144 if (position == null) { in getAnnotationIndex()
149 position = Joiner.on(",").join( in getAnnotationIndex()
158 position, in getAnnotationIndex()
/tools/test/connectivity/acts_tests/tests/google/wifi/
DWifiThroughputStabilityTest.py498 test_id, collections.OrderedDict(position=[], throughput=[]))
582 … for channel, mode, position, traffic_type, signal_level, traffic_direction in itertools.product(
596 position=position)
600 channel, mode, position))
/tools/platform-compat/java/android/processor/compat/changeid/
DChangeIdProcessor.java225 SourcePosition position = Objects.requireNonNull(getSourcePosition(element, mirror)); in getLineNumber() local
226 return String.format("%s:%d", position.getFilename(), position.getStartLineNumber()); in getLineNumber()

123