/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/ |
D | Character_UnicodeBlockTest.java | 24 assertEquals(Character.UnicodeBlock.BASIC_LATIN, Character.UnicodeBlock.of((char)0x0)); in test_ofC() 25 assertEquals(Character.UnicodeBlock.BASIC_LATIN, Character.UnicodeBlock.of((char)0x7f)); in test_ofC() 26 … assertEquals(Character.UnicodeBlock.LATIN_1_SUPPLEMENT, Character.UnicodeBlock.of((char)0x80)); in test_ofC() 27 … assertEquals(Character.UnicodeBlock.LATIN_1_SUPPLEMENT, Character.UnicodeBlock.of((char)0xff)); in test_ofC() 28 … assertEquals(Character.UnicodeBlock.LATIN_EXTENDED_A, Character.UnicodeBlock.of((char)0x100)); in test_ofC() 29 … assertEquals(Character.UnicodeBlock.LATIN_EXTENDED_A, Character.UnicodeBlock.of((char)0x17f)); in test_ofC() 30 … assertEquals(Character.UnicodeBlock.LATIN_EXTENDED_B, Character.UnicodeBlock.of((char)0x180)); in test_ofC() 31 … assertEquals(Character.UnicodeBlock.LATIN_EXTENDED_B, Character.UnicodeBlock.of((char)0x24f)); in test_ofC() 32 assertEquals(Character.UnicodeBlock.IPA_EXTENSIONS, Character.UnicodeBlock.of((char)0x250)); in test_ofC() 33 assertEquals(Character.UnicodeBlock.IPA_EXTENSIONS, Character.UnicodeBlock.of((char)0x2af)); in test_ofC() [all …]
|
D | CharacterTest.java | 26 assertFalse(Character.isValidCodePoint(-1)); in test_isValidCodePointI() 27 assertTrue(Character.isValidCodePoint(0)); in test_isValidCodePointI() 28 assertTrue(Character.isValidCodePoint(1)); in test_isValidCodePointI() 29 assertFalse(Character.isValidCodePoint(Integer.MAX_VALUE)); in test_isValidCodePointI() 32 assertTrue(Character.isValidCodePoint(c)); in test_isValidCodePointI() 35 assertFalse(Character.isValidCodePoint(0x10FFFF + 1)); in test_isValidCodePointI() 39 assertFalse(Character.isSupplementaryCodePoint(-1)); in test_isSupplementaryCodePointI() 42 assertFalse(Character.isSupplementaryCodePoint(c)); in test_isSupplementaryCodePointI() 46 assertTrue(Character.isSupplementaryCodePoint(c)); in test_isSupplementaryCodePointI() 49 assertFalse(Character.isSupplementaryCodePoint(0x10FFFF + 1)); in test_isSupplementaryCodePointI() [all …]
|
D | CharacterImplTest.java | 26 Character e = new Character(c); in test_valueOfC() 27 Character a = Character.valueOf(c); in test_valueOfC() 31 assertSame(Character.valueOf(c), Character.valueOf(c)); in test_valueOfC() 34 for (int c = 128; c <= Character.MAX_VALUE; c++) { in test_valueOfC() 35 assertEquals(new Character((char) c), Character.valueOf((char) c)); in test_valueOfC()
|
/external/guava/guava-tests/test/com/google/common/primitives/ |
D | CharArrayAsListTest.java | 44 private static List<Character> asList(Character[] values) { in asList() 53 List<ListTestSuiteBuilder<Character>> builders = in suite() 69 for (ListTestSuiteBuilder<Character> builder : builders) { in suite() 85 @Override protected List<Character> create(Character[] elements) { in create() 91 @Override protected List<Character> create(Character[] elements) { in create() 92 Character[] suffix = {Character.MIN_VALUE, Character.MAX_VALUE}; in create() 93 Character[] all = concat(elements, suffix); in create() 99 @Override protected List<Character> create(Character[] elements) { in create() 100 Character[] prefix = {(char) 86, (char) 99}; in create() 101 Character[] all = concat(prefix, elements); in create() [all …]
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | TableCollectionTest.java | 122 Table<String, Integer, Character> table in suite() 138 Table<String, Integer, Character> table = HashBasedTable.create(); in suite() 149 Table<String, Integer, Character> table = TreeBasedTable.create(); in suite() 165 TreeBasedTable<String, Integer, Character> table in suite() 183 TreeBasedTable<String, Integer, Character> table in suite() 201 TreeBasedTable<String, Integer, Character> table in suite() 220 Table<String, Integer, Character> table = HashBasedTable.create(); in suite() 231 RowSortedTable<String, Integer, Character> table = TreeBasedTable.create(); in suite() 247 Table<Integer, String, Character> table in suite() 263 Table<Integer, String, Character> table = HashBasedTable.create(); in suite() [all …]
|
D | ArrayTableTest.java | 38 @Override protected ArrayTable<String, Integer, Character> create( in create() 42 ArrayTable<String, Integer, Character> table = in create() 113 Table<String, Integer, Character> hashCopy = HashBasedTable.create(); in testEquals() 117 Table<String, Integer, Character> reordered in testEquals() 119 Table<String, Integer, Character> smaller in testEquals() 121 Table<String, Integer, Character> swapOuter in testEquals() 123 Table<String, Integer, Character> swapValues in testEquals() 149 Map<Integer, Character> expected = Maps.newHashMap(); in testRow() 158 Map<String, Character> expected = Maps.newHashMap(); in testColumn() 200 Table<String, Integer, Character> original in testCreateCopyArrayTable() [all …]
|
D | RegularImmutableTableTest.java | 29 private static final ImmutableSet<Cell<Character, Integer, String>> CELLS = 35 private static final ImmutableSet<Character> ROW_SPACE = 41 private static final SparseImmutableTable<Character, Integer, String> SPARSE = 42 new SparseImmutableTable<Character, Integer, String>(CELLS, ROW_SPACE, 45 private static final DenseImmutableTable<Character, Integer, String> DENSE = 46 new DenseImmutableTable<Character, Integer, String>(CELLS, ROW_SPACE, 49 @Override Iterable<ImmutableTable<Character, Integer, String>> 51 return ImmutableList.<ImmutableTable<Character, Integer, String>>of(SPARSE, in getTestInstances() 56 for (ImmutableTable<Character, Integer, String> testInstance : in testCellSet() 63 for (ImmutableTable<Character, Integer, String> testInstance : in testValues() [all …]
|
D | AbstractTableTest.java | 35 Table<String, Integer, Character> table, Object... data) { in populate() 39 (String) data[i], (Integer) data[i+1], (Character) data[i+2]); in populate() 69 assertEquals((Character) 'a', table.put("foo", 1, 'd')); in testPut() 70 assertEquals((Character) 'd', table.get("foo", 1)); in testPut() 71 assertEquals((Character) 'b', table.get("bar", 1)); in testPut() 73 assertEquals((Character) 'd', table.put("foo", 1, 'd')); in testPut() 74 assertEquals((Character) 'd', table.get("foo", 1)); in testPut() 106 assertEquals((Character) 'b', table.put("bar", 1, null)); in testPutNullReplace() 118 Table<String, Integer, Character> other = HashBasedTable.create(); in testPutAllTable() 123 assertEquals((Character) 'd', table.get("foo", 1)); in testPutAllTable() [all …]
|
D | ImmutableTableTest.java | 27 @Override protected Table<String, Integer, Character> create(Object... data) { in create() 28 ImmutableTable.Builder<String, Integer, Character> builder = in create() 32 (Character) data[i + 2]); in create() 38 ImmutableTable.Builder<Character, Integer, String> builder = in testBuilder() 39 new ImmutableTable.Builder<Character, Integer, String>(); in testBuilder() 44 Table<Character, Integer, String> expectedTable = HashBasedTable.create(); in testBuilder() 48 Table<Character, Integer, String> otherTable = HashBasedTable.create(); in testBuilder() 57 ImmutableTable.Builder<Character, Integer, String> builder = in testBuilder_withImmutableCell() 58 new ImmutableTable.Builder<Character, Integer, String>(); in testBuilder_withImmutableCell() 65 ImmutableTable.Builder<Character, Integer, String> builder = in testBuilder_withImmutableCellAndNullContents() [all …]
|
D | HashBasedTableTest.java | 32 @Override protected Table<String, Integer, Character> create( in create() 34 Table<String, Integer, Character> table = HashBasedTable.create(); in create() 43 Table<String, Integer, Character> table1 = HashBasedTable.create(100, 20); in testCreateWithValidSizes() 45 assertEquals((Character) 'a', table1.get("foo", 1)); in testCreateWithValidSizes() 47 Table<String, Integer, Character> table2 = HashBasedTable.create(100, 0); in testCreateWithValidSizes() 49 assertEquals((Character) 'a', table2.get("foo", 1)); in testCreateWithValidSizes() 51 Table<String, Integer, Character> table3 = HashBasedTable.create(0, 20); in testCreateWithValidSizes() 53 assertEquals((Character) 'a', table3.get("foo", 1)); in testCreateWithValidSizes() 55 Table<String, Integer, Character> table4 = HashBasedTable.create(0, 0); in testCreateWithValidSizes() 57 assertEquals((Character) 'a', table4.get("foo", 1)); in testCreateWithValidSizes() [all …]
|
D | TransposedTableTest.java | 29 @Override protected Table<String, Integer, Character> create( in create() 31 Table<Integer, String, Character> original = HashBasedTable.create(); in create() 32 Table<String, Integer, Character> table = Tables.transpose(original); in create() 39 Table<Integer, String, Character> original = HashBasedTable.create(); in testTransposeTransposed() 44 Table<Integer, String, Character> original = HashBasedTable.create(); in testPutOriginalModifiesTranspose() 45 Table<String, Integer, Character> transpose = Tables.transpose(original); in testPutOriginalModifiesTranspose() 47 assertEquals((Character) 'a', transpose.get("foo", 1)); in testPutOriginalModifiesTranspose() 51 Table<Integer, String, Character> original = HashBasedTable.create(); in testPutTransposeModifiesOriginal() 52 Table<String, Integer, Character> transpose = Tables.transpose(original); in testPutTransposeModifiesOriginal() 54 assertEquals((Character) 'a', original.get(1, "foo")); in testPutTransposeModifiesOriginal() [all …]
|
D | BstRangeOpsTest.java | 45 private static final SortedSet<Character> MODEL = 119 countAggregate, GeneralRange.<Character>all(Ordering.natural()), ROOT)); in testCountInRangeAll() 124 GeneralRange<Character> range = GeneralRange.all(Ordering.natural()); in testCountInRangeEmpty() 142 GeneralRange<Character> range1 = GeneralRange.downTo(Ordering.natural(), 'f', CLOSED); in testClearRangeLowerBound() 145 GeneralRange<Character> range2 = GeneralRange.downTo(Ordering.natural(), 'f', OPEN); in testClearRangeLowerBound() 148 GeneralRange<Character> range3 = GeneralRange.downTo(Ordering.natural(), 'a', CLOSED); in testClearRangeLowerBound() 151 GeneralRange<Character> range4 = GeneralRange.downTo(Ordering.natural(), 'a', OPEN); in testClearRangeLowerBound() 154 GeneralRange<Character> range5 = GeneralRange.downTo(Ordering.natural(), 'c', OPEN); in testClearRangeLowerBound() 157 GeneralRange<Character> range6 = GeneralRange.downTo(Ordering.natural(), 'c', CLOSED); in testClearRangeLowerBound() 175 GeneralRange<Character> range1 = GeneralRange.upTo(Ordering.natural(), 'f', CLOSED); in testClearRangeUpperBound() [all …]
|
D | AbstractImmutableTableTest.java | 28 abstract Iterable<ImmutableTable<Character, Integer, String>> 32 for(ImmutableTable<Character, Integer, String> testInstance : in testClear() 44 for(ImmutableTable<Character, Integer, String> testInstance : in testPut() 56 for(ImmutableTable<Character, Integer, String> testInstance : in testPutAll() 68 for(ImmutableTable<Character, Integer, String> testInstance : in testRemove() 80 for(ImmutableTable<Character, Integer, String> testInstance : in testConsistentToString() 87 for(ImmutableTable<Character, Integer, String> testInstance : in testConsistentHashCode()
|
D | TablesTransformValuesTest.java | 33 private static final Function<String, Character> FIRST_CHARACTER 34 = new Function<String, Character>() { 35 @Override public Character apply(String input) { 40 @Override protected Table<String, Integer, Character> create( in create() 66 Table<String, Integer, Character> other = HashBasedTable.create(); in testPutAllTable() 74 assertEquals((Character) 'a', table.get("foo", 1)); in testPutAllTable() 75 assertEquals((Character) 'b', table.get("bar", 1)); in testPutAllTable() 76 assertEquals((Character) 'c', table.get("foo", 3)); in testPutAllTable()
|
D | NewCustomTableTest.java | 35 @Override protected Table<String, Integer, Character> create( in create() 37 Supplier<TreeMap<Integer, Character>> factory in create() 38 = new Supplier<TreeMap<Integer, Character>>() { in create() 40 public TreeMap<Integer, Character> get() { in create() 44 Map<String, Map<Integer, Character>> backingMap in create() 46 Table<String, Integer, Character> table in create()
|
D | AbstractTableReadTest.java | 36 protected Table<String, Integer, Character> table; 47 protected abstract Table<String, Integer, Character> 99 assertEquals((Character) 'a', table.get("foo", 1)); in testGet() 100 assertEquals((Character) 'b', table.get("bar", 1)); in testGet() 101 assertEquals((Character) 'c', table.get("foo", 3)); in testGet() 124 Table<String, Integer, Character> hashCopy = HashBasedTable.create(table); in testEquals() 125 Table<String, Integer, Character> reordered in testEquals() 127 Table<String, Integer, Character> smaller in testEquals() 129 Table<String, Integer, Character> swapOuter in testEquals() 131 Table<String, Integer, Character> swapValues in testEquals()
|
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/codegen/ |
D | RubyTarget.java | 78 rubyCharValueEscape[ i ] = Character.toString( i ); in RubyRenderer() 158 if ( Character.isLetter( cur ) ) { in snakecase() 159 output_buffer.append( Character.toLowerCase( cur ) ); in snakecase() 161 if ( Character.isDigit( next ) || Character.isWhitespace( next ) ) { in snakecase() 163 } else if ( Character.isLowerCase( cur ) && Character.isUpperCase( next ) ) { in snakecase() 166 … } else if ( ( i < cliff - 1 ) && Character.isUpperCase( cur ) && Character.isUpperCase( next ) ) { in snakecase() 170 if ( Character.isLowerCase( peek ) ) { in snakecase() 176 } else if ( Character.isDigit( cur ) ) { in snakecase() 178 if ( Character.isLetter( next ) ) { in snakecase() 181 } else if ( Character.isWhitespace( cur ) ) { in snakecase() [all …]
|
/external/guava/guava-gwt/src-super/com/google/common/primitives/super/com/google/common/primitives/ |
D | Chars.java | 52 public static final int BYTES = Character.SIZE / Byte.SIZE; 88 if (value > Character.MAX_VALUE) { in saturatedCast() 89 return Character.MAX_VALUE; in saturatedCast() 91 if (value < Character.MIN_VALUE) { in saturatedCast() 92 return Character.MIN_VALUE; in saturatedCast() 374 public static char[] toArray(Collection<Character> collection) { in toArray() 384 array[i] = (Character) checkNotNull(boxedArray[i]); in toArray() 403 public static List<Character> asList(char... backingArray) { in asList() 411 private static class CharArrayAsList extends AbstractList<Character> 435 @Override public Character get(int index) { in get() [all …]
|
/external/guava/guava/src/com/google/common/primitives/ |
D | Chars.java | 54 public static final int BYTES = Character.SIZE / Byte.SIZE; 90 if (value > Character.MAX_VALUE) { in saturatedCast() 91 return Character.MAX_VALUE; in saturatedCast() 93 if (value < Character.MIN_VALUE) { in saturatedCast() 94 return Character.MIN_VALUE; in saturatedCast() 425 public static char[] toArray(Collection<Character> collection) { in toArray() 435 array[i] = (Character) checkNotNull(boxedArray[i]); in toArray() 454 public static List<Character> asList(char... backingArray) { in asList() 462 private static class CharArrayAsList extends AbstractList<Character> 486 @Override public Character get(int index) { in get() [all …]
|
D | UnsignedLongs.java | 261 if (radix < Character.MIN_RADIX || radix > Character.MAX_RADIX) { in parseUnsignedLong() 268 int digit = Character.digit(s.charAt(pos), radix); in parseUnsignedLong() 320 checkArgument(radix >= Character.MIN_RADIX && radix <= Character.MAX_RADIX, in toString() 336 buf[--i] = Character.forDigit((int) (bot % radix), radix); in toString() 343 buf[--i] = Character.forDigit((int) (x % radix), radix); in toString() 353 private static final long[] maxValueDivs = new long[Character.MAX_RADIX + 1]; 354 private static final int[] maxValueMods = new int[Character.MAX_RADIX + 1]; 355 private static final int[] maxSafeDigits = new int[Character.MAX_RADIX + 1]; 358 for (int i = Character.MIN_RADIX; i <= Character.MAX_RADIX; i++) {
|
D | AndroidInteger.java | 43 checkArgument(radix >= Character.MIN_RADIX, in tryParse() 44 "Invalid radix %s, min radix is %s", radix, Character.MIN_RADIX); in tryParse() 45 checkArgument(radix <= Character.MAX_RADIX, in tryParse() 46 "Invalid radix %s, max radix is %s", radix, Character.MAX_RADIX); in tryParse() 64 int digit = Character.digit(string.charAt(offset++), radix); in tryParse()
|
/external/smali/dexlib/src/main/java/org/jf/dexlib/Util/ |
D | Utf8Utils.java | 197 writer.write(Character.forDigit(c >> 12, 16)); in writeEscapedChar() 198 writer.write(Character.forDigit((c >> 8) & 0x0f, 16)); in writeEscapedChar() 199 writer.write(Character.forDigit((c >> 4) & 0x0f, 16)); in writeEscapedChar() 200 writer.write(Character.forDigit(c & 0x0f, 16)); in writeEscapedChar() 223 writer.write(Character.forDigit(c >> 12, 16)); in writeEscapedString() 224 writer.write(Character.forDigit((c >> 8) & 0x0f, 16)); in writeEscapedString() 225 writer.write(Character.forDigit((c >> 4) & 0x0f, 16)); in writeEscapedString() 226 writer.write(Character.forDigit(c & 0x0f, 16)); in writeEscapedString() 252 sb.append(Character.forDigit(c >> 12, 16)); in escapeString() 253 sb.append(Character.forDigit((c >> 8) & 0x0f, 16)); in escapeString() [all …]
|
D | Hex.java | 51 result[15 - i] = Character.forDigit((int) v & 0x0f, 16); in u8() 67 result[7 - i] = Character.forDigit(v & 0x0f, 16); in u4() 83 result[5 - i] = Character.forDigit(v & 0x0f, 16); in u3() 99 result[3 - i] = Character.forDigit(v & 0x0f, 16); in u2() 131 result[1 - i] = Character.forDigit(v & 0x0f, 16); in u1() 147 result[0] = Character.forDigit(v & 0x0f, 16); in uNibble() 168 result[16 - i] = Character.forDigit((int) v & 0x0f, 16); in s8() 192 result[8 - i] = Character.forDigit(v & 0x0f, 16); in s4() 216 result[4 - i] = Character.forDigit(v & 0x0f, 16); in s2() 240 result[2 - i] = Character.forDigit(v & 0x0f, 16); in s1()
|
/external/dexmaker/src/dx/java/com/android/dx/util/ |
D | Hex.java | 39 result[15 - i] = Character.forDigit((int) v & 0x0f, 16); in u8() 55 result[7 - i] = Character.forDigit(v & 0x0f, 16); in u4() 71 result[5 - i] = Character.forDigit(v & 0x0f, 16); in u3() 87 result[3 - i] = Character.forDigit(v & 0x0f, 16); in u2() 119 result[1 - i] = Character.forDigit(v & 0x0f, 16); in u1() 135 result[0] = Character.forDigit(v & 0x0f, 16); in uNibble() 156 result[16 - i] = Character.forDigit((int) v & 0x0f, 16); in s8() 180 result[8 - i] = Character.forDigit(v & 0x0f, 16); in s4() 204 result[4 - i] = Character.forDigit(v & 0x0f, 16); in s2() 228 result[2 - i] = Character.forDigit(v & 0x0f, 16); in s1()
|
/external/guava/guava/src/com/google/common/collect/ |
D | Lists.java | 535 @Beta public static ImmutableList<Character> charactersOf(String string) { 541 extends ImmutableList<Character> { 554 return (object instanceof Character) 555 ? string.indexOf((Character) object) : -1; 559 return (object instanceof Character) 560 ? string.lastIndexOf((Character) object) : -1; 563 @Override public UnmodifiableListIterator<Character> listIterator( 565 return new AbstractIndexedListIterator<Character>(size(), index) { 566 @Override protected Character get(int index) { 572 @Override public ImmutableList<Character> subList( [all …]
|