Home
last modified time | relevance | path

Searched refs:Short (Results 1 – 25 of 495) sorted by relevance

12345678910>>...20

/external/guava/guava-gwt/test-super/com/google/common/primitives/super/com/google/common/primitives/
DShortArrayAsListTest.java37 private static List<Short> asList(Short[] values) { in asList()
49 @Override protected List<Short> create(Short[] elements) { in create()
55 @Override protected List<Short> create(Short[] elements) { in create()
56 Short[] suffix = {Short.MIN_VALUE, Short.MAX_VALUE}; in create()
57 Short[] all = concat(elements, suffix); in create()
63 @Override protected List<Short> create(Short[] elements) { in create()
64 Short[] prefix = {(short) 86, (short) 99}; in create()
65 Short[] all = concat(prefix, elements); in create()
71 @Override protected List<Short> create(Short[] elements) { in create()
72 Short[] prefix = {Short.MIN_VALUE, Short.MAX_VALUE}; in create()
[all …]
DShortsTest.java44 private static final short LEAST = Short.MIN_VALUE;
45 private static final short GREATEST = Short.MAX_VALUE;
52 assertEquals(((Short) value).hashCode(), Shorts.hashCode(value)); in testHashCode()
90 int expected = Short.valueOf(x).compareTo(y); in testCompare()
273 List<Short> none = Arrays.<Short>asList(); in testToArray()
276 List<Short> one = Arrays.asList((short) 1); in testToArray()
281 List<Short> three = Arrays.asList((short) 0, (short) 1, (short) 3); in testToArray()
290 List<Short> list = Shorts.asList(VALUES).subList(0, i); in testToArray_threadSafe()
291 Collection<Short> misleadingSize = in testToArray_threadSafe()
304 List<Short> list = Arrays.asList((short) 0, (short) 1, null); in testToArray_withNull()
[all …]
/external/guava/guava-tests/test/com/google/common/primitives/
DShortArrayAsListTest.java45 private static List<Short> asList(Short[] values) { in asList()
55 List<ListTestSuiteBuilder<Short>> builders = in suite()
71 for (ListTestSuiteBuilder<Short> builder : builders) { in suite()
87 @Override protected List<Short> create(Short[] elements) { in create()
93 @Override protected List<Short> create(Short[] elements) { in create()
94 Short[] suffix = {Short.MIN_VALUE, Short.MAX_VALUE}; in create()
95 Short[] all = concat(elements, suffix); in create()
101 @Override protected List<Short> create(Short[] elements) { in create()
102 Short[] prefix = {(short) 86, (short) 99}; in create()
103 Short[] all = concat(prefix, elements); in create()
[all …]
DShortsTest.java48 private static final short LEAST = Short.MIN_VALUE;
49 private static final short GREATEST = Short.MAX_VALUE;
56 assertEquals(((Short) value).hashCode(), Shorts.hashCode(value)); in testHashCode()
94 int expected = Short.valueOf(x).compareTo(y); in testCompare()
333 List<Short> none = Arrays.<Short>asList(); in testToArray()
336 List<Short> one = Arrays.asList((short) 1); in testToArray()
341 List<Short> three = Arrays.asList((short) 0, (short) 1, (short) 3); in testToArray()
350 List<Short> list = Shorts.asList(VALUES).subList(0, i); in testToArray_threadSafe()
351 Collection<Short> misleadingSize = in testToArray_threadSafe()
364 List<Short> list = Arrays.asList((short) 0, (short) 1, null); in testToArray_withNull()
[all …]
/external/guava/guava-gwt/src-super/com/google/common/primitives/super/com/google/common/primitives/
DShorts.java55 public static final int BYTES = Short.SIZE / Byte.SIZE;
62 public static final short MAX_POWER_OF_TWO = 1 << (Short.SIZE - 2);
102 if (value > Short.MAX_VALUE) { in saturatedCast()
103 return Short.MAX_VALUE; in saturatedCast()
105 if (value < Short.MIN_VALUE) { in saturatedCast()
106 return Short.MIN_VALUE; in saturatedCast()
285 extends Converter<String, Short> implements Serializable {
289 protected Short doForward(String value) { in doForward()
290 return Short.decode(value); in doForward()
294 protected String doBackward(Short value) { in doBackward()
[all …]
/external/jline/src/src/main/java/jline/
DConsoleReader.java43 names.put("MOVE_TO_BEG", new Short(MOVE_TO_BEG));
44 names.put("MOVE_TO_END", new Short(MOVE_TO_END));
45 names.put("PREV_CHAR", new Short(PREV_CHAR));
46 names.put("NEWLINE", new Short(NEWLINE));
47 names.put("KILL_LINE", new Short(KILL_LINE));
48 names.put("PASTE", new Short(PASTE));
49 names.put("CLEAR_SCREEN", new Short(CLEAR_SCREEN));
50 names.put("NEXT_HISTORY", new Short(NEXT_HISTORY));
51 names.put("PREV_HISTORY", new Short(PREV_HISTORY));
52 names.put("START_OF_HISTORY", new Short(START_OF_HISTORY));
[all …]
/external/guava/guava/src/com/google/common/primitives/
DShorts.java57 public static final int BYTES = Short.SIZE / Byte.SIZE;
64 public static final short MAX_POWER_OF_TWO = 1 << (Short.SIZE - 2);
104 if (value > Short.MAX_VALUE) { in saturatedCast()
105 return Short.MAX_VALUE; in saturatedCast()
107 if (value < Short.MIN_VALUE) { in saturatedCast()
108 return Short.MIN_VALUE; in saturatedCast()
337 extends Converter<String, Short> implements Serializable {
341 protected Short doForward(String value) { in doForward()
342 return Short.decode(value); in doForward()
346 protected String doBackward(Short value) { in doBackward()
[all …]
/external/turbine/javatests/com/google/turbine/lower/testdata/
Dconst_arith.test5 public static final long S1 = Short.MAX_VALUE + Short.MAX_VALUE;
6 public static final long S2 = -Short.MIN_VALUE;
7 public static final boolean B1 = -Short.MIN_VALUE < 0;
12 public static final short MAX_SHORT_POWER_OF_TWO = 1 << (Short.SIZE - 2);
/external/smali/smali/src/test/java/org/jf/smali/
DShortLiteralTest.java47 Assert.assertTrue(LiteralTools.parseShort("0x8000") == Short.MIN_VALUE); in SuccessHexTests()
53 Assert.assertTrue(LiteralTools.parseShort("-0x8000") == Short.MIN_VALUE); in SuccessHexTests()
80 Assert.assertTrue(LiteralTools.parseShort("32768") == Short.MIN_VALUE); in SuccessDecTests()
88 Assert.assertTrue(LiteralTools.parseShort("-32768") == Short.MIN_VALUE); in SuccessDecTests()
117 Assert.assertTrue(LiteralTools.parseShort("077777") == Short.MAX_VALUE); in SuccessOctTests()
118 Assert.assertTrue(LiteralTools.parseShort("0100000") == Short.MIN_VALUE); in SuccessOctTests()
126 Assert.assertTrue(LiteralTools.parseShort("-0100000") == Short.MIN_VALUE); in SuccessOctTests()
/external/swiftshader/src/Reactor/
DReactor.hpp37 class Short;
271 explicit SByte(RValue<Short> cast);
321 class Short : public LValue<Short> class
324 Short(Argument<Short> argument);
326 explicit Short(RValue<Int> cast);
328 Short() = default;
329 Short(short x);
330 Short(RValue<Short> rhs);
331 Short(const Short &rhs);
332 Short(const Reference<Short> &rhs);
[all …]
DSubzeroReactor.cpp1845 SByte::SByte(RValue<Short> cast) in SByte()
2073 Short::Short(Argument<Short> argument) in Short() function in rr::Short
2078 Short::Short(RValue<Int> cast) in Short() function in rr::Short
2080 Value *integer = Nucleus::createTrunc(cast.value, Short::getType()); in Short()
2085 Short::Short(short x) in Short() function in rr::Short
2090 Short::Short(RValue<Short> rhs) in Short() function in rr::Short
2095 Short::Short(const Short &rhs) in Short() function in rr::Short
2101 Short::Short(const Reference<Short> &rhs) in Short() function in rr::Short
2107 RValue<Short> Short::operator=(RValue<Short> rhs) in operator =()
2114 RValue<Short> Short::operator=(const Short &rhs) in operator =()
[all …]
/external/aac/libAACenc/src/
Dgrp_data.cpp186 FIXP_DBL thresh = sfbThreshold->Short[wnd][sfb]; in FDKaacEnc_groupShortData()
188 thresh = nrgAddSaturate(thresh, sfbThreshold->Short[wnd + j][sfb]); in FDKaacEnc_groupShortData()
201 FIXP_DBL energy = sfbEnergy->Short[wnd][sfb]; in FDKaacEnc_groupShortData()
203 energy = nrgAddSaturate(energy, sfbEnergy->Short[wnd + j][sfb]); in FDKaacEnc_groupShortData()
216 FIXP_DBL energy = sfbEnergyMS->Short[wnd][sfb]; in FDKaacEnc_groupShortData()
218 energy = nrgAddSaturate(energy, sfbEnergyMS->Short[wnd + j][sfb]); in FDKaacEnc_groupShortData()
231 FIXP_DBL energy = sfbSpreadEnergy->Short[wnd][sfb]; in FDKaacEnc_groupShortData()
233 energy = nrgAddSaturate(energy, sfbSpreadEnergy->Short[wnd + j][sfb]); in FDKaacEnc_groupShortData()
Dpsy_data.h119 FIXP_DBL Short[TRANS_FAC][MAX_SFB_SHORT];
125 FIXP_DBL Short[TRANS_FAC][MAX_SFB_SHORT];
131 FIXP_DBL Short[TRANS_FAC][MAX_SFB_SHORT];
137 INT Short[TRANS_FAC][MAX_SFB_SHORT];
/external/dagger2/compiler/src/it/functional-tests/src/main/java/test/
DInjectedThing.java36 @Inject Provider<Short> shortProvider;
45 @Inject Lazy<Short> lazyShort;
54 @Inject Short boxedShort;
105 Provider<Short> shortProvider, in InjectedThing()
114 Lazy<Short> lazyShort, in InjectedThing()
123 Short boxedShort, in InjectedThing()
173 @Inject void shortProvider(Provider<Short> shortProvider) {} in shortProvider()
182 @Inject void lazyShort(Lazy<Short> lazyShort) {} in lazyShort()
191 @Inject void boxedShort(Short boxedShort) {} in boxedShort()
/external/swiftshader/src/WSI/
DFrameBuffer.cpp273 Int rgb = Int(*Pointer<Short>(s)); in copyRoutine()
375 Int rgb = Int(*Pointer<Short>(s)); in copyRoutine()
403 *Pointer<Short>(d) = Short((c & 0x00F80000) >> 8 | in copyRoutine()
412 *Pointer<Short>(d) = Short((c & 0x00F80000) >> 19 | in copyRoutine()
422 *Pointer<Short>(d) = Short((c & 0x00F80000) >> 19 | in copyRoutine()
428 *Pointer<Short>(d) = *Pointer<Short>(s); in copyRoutine()
502 Int rgb(*Pointer<Short>(s)); in blend()
542 *Pointer<Short>(d) = Short((c & 0x00F80000) >> 8 | in blend()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/
DOpcodes.java54 @Nonnull private final EnumMap<Opcode, Short> opcodeValues;
90 opcodeValues = new EnumMap<Opcode, Short>(Opcode.class); in Opcodes()
101 RangeMap<Integer, Short> versionToValueMap; in Opcodes()
109 Short opcodeValue = versionToValueMap.get(version); in Opcodes()
143 public Short getOpcodeValue(@Nonnull Opcode opcode) { in getOpcodeValue()
/external/swiftshader/src/Main/
DFrameBuffer.cpp278 Int rgb = Int(*Pointer<Short>(s)); in copyRoutine()
386 Int rgb = Int(*Pointer<Short>(s)); in copyRoutine()
429 Int rgb = Int(*Pointer<Short>(s)); in copyRoutine()
457 *Pointer<Short>(d) = Short((c & 0x00F80000) >> 8 | in copyRoutine()
467 *Pointer<Short>(d) = Short((c & 0x00F80000) >> 19 | in copyRoutine()
477 *Pointer<Short>(d) = Short((c & 0x00F80000) >> 19 | in copyRoutine()
483 *Pointer<Short>(d) = *Pointer<Short>(s); in copyRoutine()
559 Int rgb(*Pointer<Short>(s)); in blend()
611 *Pointer<Short>(d) = Short((c & 0x00F80000) >> 8 | in blend()
/external/swiftshader/src/Renderer/
DBlitter.cpp248 c.x = Float(Int(*Pointer<Short>(element))); in read()
344 c.x = Float(Int(*Pointer<Short>(element + 0))); in read()
345 c.y = Float(Int(*Pointer<Short>(element + 2))); in read()
580 if(writeR) { *Pointer<Short>(element) = Short(RoundInt(Float(c.x))); } in write()
581 if(writeG) { *Pointer<Short>(element + 2) = Short(RoundInt(Float(c.y))); } in write()
582 if(writeB) { *Pointer<Short>(element + 4) = Short(RoundInt(Float(c.z))); } in write()
583 if(writeA) { *Pointer<Short>(element + 6) = Short(RoundInt(Float(c.w))); } in write()
593 if(writeR) { *Pointer<Short>(element) = Short(RoundInt(Float(c.x))); } in write()
594 if(writeG) { *Pointer<Short>(element + 2) = Short(RoundInt(Float(c.y))); } in write()
595 if(writeB) { *Pointer<Short>(element + 4) = Short(RoundInt(Float(c.z))); } in write()
[all …]
/external/freetype/src/raster/
Dftraster.c310 typedef short Short; typedef
383 Short y_min; /* band's minimum */
384 Short y_max; /* band's maximum */
430 Function_Sweep_Init( RAS_ARGS Short* min,
431 Short* max );
434 Function_Sweep_Span( RAS_ARGS Short y,
517 Short traceIncr; /* sweep's increment in target bitmap */
1209 Short f1; in Bezier_Up()
1237 f1 = (Short)( FRAC( y1 ) ); in Bezier_Up()
2209 Vertical_Sweep_Init( RAS_ARGS Short* min, in Vertical_Sweep_Init()
[all …]
/external/clang/test/CodeGen/
Dx86_32-fpcc-struct-return.c13 typedef struct { short s; } Short; typedef
30 Short returnShort(Short x) { return x; } in returnShort()
/external/universal-tween-engine/java/applets/src/aurelienribon/tweenengine/applets/
DTimelineApplet.java337 … .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 598, Short.MAX_VALUE) in initComponents()
340 … .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 273, Short.MAX_VALUE) in initComponents()
352 … .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 214, Short.MAX_VALUE) in initComponents()
383 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) in initComponents()
409 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) in initComponents()
429 … .addComponent(speedSlider, javax.swing.GroupLayout.DEFAULT_SIZE, 144, Short.MAX_VALUE) in initComponents()
437 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) in initComponents()
444 .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, 164, Short.MAX_VALUE) in initComponents()
445 …anel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) in initComponents()
446 …anel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) in initComponents()
[all …]
DTweenApplet.java231 … .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 562, Short.MAX_VALUE) in initComponents()
234 … .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 237, Short.MAX_VALUE) in initComponents()
246 … .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 101, Short.MAX_VALUE) in initComponents()
295 .addComponent(easingCbox, 0, 105, Short.MAX_VALUE)) in initComponents()
340 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) in initComponents()
354 .addComponent(jLabel8, javax.swing.GroupLayout.DEFAULT_SIZE, 144, Short.MAX_VALUE) in initComponents()
361 .addComponent(jLabel8, javax.swing.GroupLayout.DEFAULT_SIZE, 42, Short.MAX_VALUE) in initComponents()
369 .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, 164, Short.MAX_VALUE) in initComponents()
370 …anel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) in initComponents()
371 …anel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) in initComponents()
[all …]
/external/guice/core/test/com/google/inject/
DTypeLiteralTypeResolutionTest.java53 newParameterizedTypeWithOwner(getClass(), HasGenericFields.class, Short.class);
55 newParameterizedTypeWithOwner(getClass(), GenericConstructor.class, Short.class);
58 Type hasArrayOfShort = newParameterizedTypeWithOwner(getClass(), HasArray.class, Short.class);
138 assertEquals(listOf(Short.class), resolver.getFieldType(list).getType()); in testFields()
139 assertEquals(Short.class, resolver.getFieldType(instance).getType()); in testFields()
150 Short.class, resolver.getParameterTypes(newHasGenericConstructor).get(0).getType()); in testGenericConstructor()
172 assertEquals(arrayOf(Short.class), resolver.getReturnType(getArray).getType()); in testArrays()
173 assertEquals(setOf(arrayOf(Short.class)), resolver.getReturnType(getSetOfArray).getType()); in testArrays()
196 newParameterizedTypeWithOwner(getClass(), HasLists.class, String.class, Short.class)); in testCachingAndReindexing()
200 listOf(Short.class), resolver.getReturnType(HasLists.class.getMethod("listT")).getType()); in testCachingAndReindexing()
/external/mockito/src/test/java/org/mockito/internal/util/
DPrimitivesTest.java20 assertNotNull(Primitives.defaultValue(Short.class)); in should_not_return_null_for_primitives_wrappers()
56 assertThat(Primitives.defaultValue(Short.class)).isEqualTo((short) 0); in should_default_values_for_wrapper()
82 assertThat(Primitives.isAssignableFromWrapper(short.class, Short.class)).isTrue(); in should_check_that_value_type_is_assignable_to_wrapper_reference()
83 assertThat(Primitives.isAssignableFromWrapper(Short.class, Short.class)).isTrue(); in should_check_that_value_type_is_assignable_to_wrapper_reference()
/external/swiftshader/src/Shader/
DSetupRoutine.cpp229 Short x = Short(Clamp((X[0] + 0xF) >> 4, xMin, xMax)); in generate()
233 *Pointer<Short>(leftEdge + y * sizeof(Primitive::Span)) = x; in generate()
234 *Pointer<Short>(rightEdge + y * sizeof(Primitive::Span)) = x; in generate()
256 …For(, yMin < yMax && *Pointer<Short>(leftEdge + yMin * sizeof(Primitive::Span)) == *Pointer<Short>… in generate()
261 …For(, yMax > yMin && *Pointer<Short>(leftEdge + (yMax - 1) * sizeof(Primitive::Span)) == *Pointer< in generate()
271 …*Pointer<Short>(leftEdge + (yMin - 1) * sizeof(Primitive::Span)) = *Pointer<Short>(leftEdge + yMin… in generate()
272 …*Pointer<Short>(rightEdge + (yMin - 1) * sizeof(Primitive::Span)) = *Pointer<Short>(leftEdge + yMi… in generate()
273 …*Pointer<Short>(leftEdge + yMax * sizeof(Primitive::Span)) = *Pointer<Short>(leftEdge + (yMax - 1)… in generate()
274 …*Pointer<Short>(rightEdge + yMax * sizeof(Primitive::Span)) = *Pointer<Short>(leftEdge + (yMax - 1… in generate()
608 *Pointer<Short>(edge + y * sizeof(Primitive::Span)) = Short(Clamp(x, xMin, xMax)); in edge()

12345678910>>...20