Searched refs:and (Results 1 - 18 of 18) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
H A DBigIntegerAndTest.java14 * See the License for the specific language governing permissions and
28 * Method: and
32 * And for zero and a positive number
42 BigInteger result = aNumber.and(bNumber);
52 * And for zero and a negative number
62 BigInteger result = aNumber.and(bNumber);
72 * And for a positive number and zero
82 BigInteger result = aNumber.and(bNumber);
92 * And for a negative number and zero
102 BigInteger result = aNumber.and(bNumbe
[all...]
H A DBigIntegerOrTest.java14 * See the License for the specific language governing permissions and
32 * Or for zero and a positive number
52 * Or for zero and a negative number
72 * Or for a positive number and zero
92 * Or for a negative number and zero
112 * Or for zero and zero
132 * Or for zero and one
152 * Or for one and one
292 * Or for two numbers of different signs and the same length
312 * Or for two numbers of different signs and th
[all...]
H A DBigIntegerTest.java14 * See the License for the specific language governing permissions and
753 * @tests java.math.BigInteger#and(java.math.BigInteger)
758 BigInteger res = i1.and(i2);
759 assertTrue("symmetry of and", res.equals(i2.and(i1)));
762 assertTrue("and", (i1.testBit(i) && i2.testBit(i)) == res
907 assertTrue("divide and divideAndRemainder do not agree", q
909 assertTrue("remainder and divideAndRemainder do not agree", r
911 assertTrue("signum and equals(zero) do not agree on quotient", q
914 assertTrue("signum and equal
[all...]
/libcore/
H A DDocs.mk3 # Shared between libcore and frameworks/base.
H A DNativeCode.mk13 # See the License for the specific language governing permissions and
21 # Common definitions for host and target.
30 # and stick them on core_src_files. The submakefiles are
H A DAndroid.mk13 # See the License for the specific language governing permissions and
H A DCaCerts.mk13 # See the License for the specific language governing permissions and
H A DJavaLibrary.mk13 # See the License for the specific language governing permissions and
17 # Definitions for building the Java library and associated tests.
21 # Common definitions for host and target.
52 # The Java files and their associated resources.
/libcore/benchmarks/
H A DAndroid.mk13 # See the License for the specific language governing permissions and
/libcore/luni/src/main/java/java/io/
H A DStreamTokenizer.java14 * See the License for the specific language governing permissions and
25 * and different comment styles. The class can be used for limited processing
126 * through 'Z', 'a' through 'z', and '\u00A0' through '\u00FF' are
138 * '/' is a comment character. Single quote '\'' and double quote '"'
150 * C-style and C++-style comments are not recognized. These are the
151 * defaults and are not needed in constructor.
179 * <li>All byte values 'A' through 'Z', 'a' through 'z', and '&#92;u00A0'
183 * <li>Single quote '\'' and double quote '"' are string quote characters.
188 * <li>C-style and C++-style comments are not recognized.</LI>
216 * Specifies whether the end of a line is significant and shoul
[all...]
/libcore/luni/src/test/java/libcore/java/math/
H A DBigIntegerTest.java13 * See the License for the specific language governing permissions and
27 BigInteger andedBigs = firstBig.and(secondBig);
/libcore/luni/src/test/java/libcore/java/util/
H A DBitSetTest.java13 * See the License for the specific language governing permissions and
130 // One long and a byte left over...
204 result.and(small());
207 result.and(big());
/libcore/luni/src/main/java/java/math/
H A DBigInteger.java14 * See the License for the specific language governing permissions and
31 * cryptography, such as the generation of large prime numbers and computation
258 * Constructs a new {@code BigInteger} instance with the given sign and
267 * the sign is zero and the magnitude contains non-zero entries.
338 // ... and then increment it back because we always drop one too many
683 * @param value value to be and'ed with {@code this}.
686 public BigInteger and(BigInteger value) { method in class:BigInteger
689 return Logical.and(this, value);
725 * x.and(value.not())}.
730 * @param value value to be not'ed and the
[all...]
H A DLogical.java14 * See the License for the specific language governing permissions and
25 * <li>and</li>
81 /** @see BigInteger#and(BigInteger) */
82 static BigInteger and(BigInteger val, BigInteger that) { method in class:Logical
130 // PRE: positive is positive and negative is negative
158 } // else positive ended and must "copy" virtual 0's, do nothing then
165 // PRE: longer and shorter are negative
459 // PRE: longer and shorter are positive;
477 // PRE: val and that are negative;
550 // Applying two complement to negative and t
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DBitSetTest.java14 * License for the specific language governing permissions and limitations under
170 // pos1 and pos2 are in the same bitset element
201 // pos1 and pos2 is in the same bitset element, boundary testing
239 // pos1 and pos2 are in two sequential bitset elements
267 // pos1 and pos2 are in two non-sequential bitset elements
407 // pos1 and pos2 are in the same bitset element, at index0
413 // pos1 and pos2 are in the same bitset element, at index 1
419 // pos1 in bitset element at index 0, and pos2 in bitset element at
428 // pos1 in bitset element at index 1, and pos2 in bitset element at
437 // pos1 in bitset element at index 0, and pos
[all...]
/libcore/luni/src/main/java/java/util/
H A DBitSet.java14 * See the License for the specific language governing permissions and
31 * Each element is either true or false. A {@code BitSet} is created with a given size and grows
150 // The RI doesn't use Arrays.hashCode, and explicitly specifies this algorithm.
273 // first fill in the first and last indexes in the new BitSet
447 * Returns true if {@code this.and(bs)} is non-empty, but may be faster than computing that.
463 public void and(BitSet bs) { method in class:BitSet
518 * unrelated to the length of the {@code BitSet}, and not generally useful.
526 * Returns the number of bits up to and including the highest bit set. This is unrelated to
684 // The bulk get would mutate LongBuffer (even if we reset position later), and it's not
/libcore/xml/src/main/java/org/kxml2/io/
H A DKXmlParser.java4 * of this software and associated documentation files (the "Software"), to deal
6 * to use, copy, modify, merge, publish, distribute, sublicense, and/or
7 * sell copies of the Software, and to permit persons to whom the Software is
10 * The above copyright notice and this permission notice shall be included in
99 * entity values and default attribute values. These values are parsed at
100 * inclusion time and may contain both tags and entity references.
104 * and will not be parsed. There is no API to define default attributes
147 * Track the number of newlines and columns preceding the current buffer. To
148 * compute the line and colum
[all...]
/libcore/benchmarks/libs/
H A Dcaliper.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/caliper/ com/google/caliper/AllocationMeasurer ...

Completed in 325 milliseconds