Home
last modified time | relevance | path

Searched refs:maximumSize (Results 1 – 7 of 7) sorted by relevance

/cts/tests/tests/location/src/android/location/cts/asn1/base/
DAsn1GeneralString.java39 private Integer maximumSize = null; // Null == unconstrained. field in Asn1GeneralString
66 maximumSize = max; in setMaxSize()
80 Preconditions.checkState(maximumSize == null || value.length <= maximumSize, in encodePerImpl()
83 if (maximumSize == null) { in encodePerImpl()
91 if (aligned && maximumSize * characterBitCount > 16) { in encodePerImpl()
95 if (minimumSize == maximumSize in encodePerImpl()
96 && maximumSize < SIXTYFOUR_K) { in encodePerImpl()
100 if (maximumSize >= SIXTYFOUR_K) { in encodePerImpl()
105 if (aligned && maximumSize * characterBitCount == 16) { in encodePerImpl()
114 value.length, minimumSize, maximumSize); in encodePerImpl()
[all …]
DAsn1OctetString.java38 private Integer maximumSize = null; // null == unbounded. field in Asn1OctetString
50 maximumSize = max; in setMaxSize()
82 maximumSize == null || value.length <= maximumSize, "Too large %s", in encodePerImpl()
84 if (maximumSize == null) { in encodePerImpl()
90 } else if (minimumSize == maximumSize) { in encodePerImpl()
91 if (maximumSize == 0) { in encodePerImpl()
94 if (maximumSize < SIXTYFOUR_K) { in encodePerImpl()
96 for (int i = 0; i < maximumSize; i++) { in encodePerImpl()
99 if (aligned && maximumSize > 2) { in encodePerImpl()
107 value, minimumSize, maximumSize); in encodePerImpl()
[all …]
DAsn1BitString.java40 private Integer maximumSize = null; // null == unbounded. field in Asn1BitString
52 maximumSize = max; in setMaxSize()
76 maximumSize == null || value.length() <= maximumSize, "Too large %s", in encodeBerValue()
103 maximumSize == null || value.length() <= maximumSize, "Too large %s", in encodePerImpl()
105 if (maximumSize == null) { in encodePerImpl()
109 if (minimumSize == maximumSize) { in encodePerImpl()
110 if (maximumSize == 0) { in encodePerImpl()
113 if (maximumSize < SIXTYFOUR_K) { in encodePerImpl()
115 for (int i = 0; i < maximumSize; i++) { in encodePerImpl()
118 if (aligned && maximumSize > 16) { in encodePerImpl()
[all …]
DAsn1BMPString.java40 private Integer maximumSize = null; // Null == unconstrained. field in Asn1BMPString
67 maximumSize = max; in setMaxSize()
82 Preconditions.checkState(maximumSize == null || length <= maximumSize, in encodePerImpl()
85 if (maximumSize == null) { in encodePerImpl()
90 if (aligned && maximumSize * characterBitCount > 16) { in encodePerImpl()
94 if (minimumSize == maximumSize in encodePerImpl()
95 && maximumSize < SIXTYFOUR_K) { in encodePerImpl()
99 if (maximumSize >= SIXTYFOUR_K) { in encodePerImpl()
104 if (aligned && maximumSize * characterBitCount == 16) { in encodePerImpl()
113 value.length(), minimumSize, maximumSize); in encodePerImpl()
[all …]
DAsn1IA5String.java50 private Integer maximumSize = null; // Null == unconstrained. field in Asn1IA5String
93 maximumSize = max; in setMaxSize()
103 Preconditions.checkArgument(maximumSize == null in setValue()
104 || value.length() <= maximumSize, in setValue()
125 if (aligned && (maximumSize == null || maximumSize * characterBitCount > 16)) { in encodePerImpl()
129 if (maximumSize != null) { in encodePerImpl()
130 if (minimumSize == maximumSize && maximumSize < SIXTYFOUR_K) { in encodePerImpl()
134 if (maximumSize >= SIXTYFOUR_K) { in encodePerImpl()
139 if (aligned && maximumSize * characterBitCount == 16) { in encodePerImpl()
146 if (maximumSize == null) { in encodePerImpl()
[all …]
DAsn1SequenceOf.java36 private Integer maximumSize = null; // Null is unbounded. field in Asn1SequenceOf
47 maximumSize = max; in setMaxSize()
109 Preconditions.checkState(maximumSize == null in encodePerImpl()
110 || sequence.size() <= maximumSize, in encodePerImpl()
113 if (maximumSize == null || maximumSize >= PerAlignedUtils.SIXTYFOUR_K) { in encodePerImpl()
119 } else if (maximumSize != minimumSize) { in encodePerImpl()
123 sequence.size(), minimumSize, maximumSize)); in encodePerImpl() local
127 sequence.size(), minimumSize, maximumSize)); in encodePerImpl() local
150 if (maximumSize == null || maximumSize >= PerAlignedUtils.SIXTYFOUR_K) { in decodePerImpl()
156 } else if (maximumSize != minimumSize) { in decodePerImpl()
[all …]
DAsn1Utf8String.java34 private Integer maximumSize = null; // null == unbounded. field in Asn1Utf8String
42 maximumSize = max; in setMaxSize()
86 maximumSize == null || value.length() <= maximumSize, "Too large %s", in encodePerImpl()