Searched refs:amount (Results 1 - 25 of 108) sorted by relevance

12345

/openjdk10/jdk/test/java/time/tck/java/time/
H A DMockSimplePeriod.java89 * The amount of the period.
91 private final long amount; field in class:MockSimplePeriod
98 * Obtains a {@code MockSimplePeriod} from an amount and unit.
102 * @param amount the amount of the period, measured in terms of the unit, positive or negative
107 public static MockSimplePeriod of(long amount, TemporalUnit unit) { argument
108 return new MockSimplePeriod(amount, unit);
111 private MockSimplePeriod(long amount, TemporalUnit unit) { argument
116 this.amount = amount;
[all...]
/openjdk10/jdk/test/java/time/test/java/time/
H A DMockSimplePeriod.java89 * The amount of the period.
91 private final long amount; field in class:MockSimplePeriod
98 * Obtains a {@code MockSimplePeriod} from an amount and unit.
102 * @param amount the amount of the period, measured in terms of the unit, positive or negative
107 public static MockSimplePeriod of(long amount, TemporalUnit unit) { argument
108 return new MockSimplePeriod(amount, unit);
111 private MockSimplePeriod(long amount, TemporalUnit unit) { argument
116 this.amount = amount;
[all...]
/openjdk10/jdk/src/java.desktop/share/classes/com/sun/media/sound/
H A DSF2Modulator.java55 short amount; field in class:SF2Modulator
60 return amount;
63 public void setAmount(short amount) { argument
64 this.amount = amount;
/openjdk10/jdk/src/java.base/share/classes/java/time/temporal/
H A DTemporal.java229 * Returns an object of the same type as this object with an amount added.
231 * This adjusts this temporal, adding according to the rules of the specified amount.
232 * The amount is typically a {@link java.time.Period} but may be any other type implementing
253 * return amount.addTo(this);
256 * @param amount the amount to add, not null
261 default Temporal plus(TemporalAmount amount) { argument
262 return amount.addTo(this);
290 * @param amountToAdd the amount of the specified unit to add, may be negative
291 * @param unit the unit of the amount t
333 minus(TemporalAmount amount) argument
[all...]
/openjdk10/jdk/src/java.desktop/share/native/libmlib_image/
H A Dmlib_ImageConvCopyEdge_Bit.c94 mlib_s32 i, j, amount; local
115 amount = (bitoffd + dx_l + 7) >> 3;
118 for (j = 1; j < amount - 1; j++) {
125 pd[i*img_strided + amount - 1] = (pd[i*img_strided + amount - 1] & ~mask) |
126 (ps[i*img_strides + amount - 1] & mask);
150 amount = (bitoffd + dx_r + 7) >> 3;
153 for (j = 1; j < amount - 1; j++) {
160 pd[i*img_strided + amount - 1] = (pd[i*img_strided + amount
[all...]
H A Dmlib_ImageConvClearEdge_Bit.c86 mlib_s32 i, j, amount; local
117 amount = (bitoff + dx_l + 7) >> 3;
122 for (j = 1; j < amount - 1; j++) {
129 pd[i*img_stride + amount - 1] = (pd[i*img_stride + amount - 1] & mask) | tmp_color;
156 amount = (bitoff + dx_r + 7) >> 3;
161 for (j = 1; j < amount - 1; j++) {
168 pd[i*img_stride + amount - 1] = (pd[i*img_stride + amount - 1] & mask) | tmp_color;
175 amount
[all...]
/openjdk10/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.nodes/src/org/graalvm/compiler/nodes/calc/
H A DUnsignedRightShiftNode.java55 int amount = forY.asJavaConstant().asInt();
56 int originalAmout = amount;
58 amount &= mask;
59 if (amount == 0) {
67 int total = amount + otherAmount;
72 } else if (other instanceof LeftShiftNode && otherAmount == amount) {
74 return new AndNode(other.getX(), ConstantNode.forLong(-1L >>> amount));
77 return new AndNode(other.getX(), ConstantNode.forInt(-1 >>> amount));
82 if (originalAmout != amount) {
83 return new UnsignedRightShiftNode(forX, ConstantNode.forInt(amount));
[all...]
H A DLeftShiftNode.java72 int amount = forY.asJavaConstant().asInt();
73 int originalAmount = amount;
75 amount &= mask;
76 if (amount == 0) {
84 int total = amount + otherAmount;
89 } else if ((other instanceof RightShiftNode || other instanceof UnsignedRightShiftNode) && otherAmount == amount) {
91 return new AndNode(other.getX(), ConstantNode.forLong(-1L << amount));
94 return new AndNode(other.getX(), ConstantNode.forInt(-1 << amount));
99 if (originalAmount != amount) {
100 return new LeftShiftNode(forX, ConstantNode.forInt(amount));
[all...]
H A DRightShiftNode.java76 int amount = forY.asJavaConstant().asInt();
77 int originalAmout = amount;
79 amount &= mask;
80 if (amount == 0) {
88 int total = amount + otherAmount;
111 if (originalAmout != amount) {
112 return new RightShiftNode(forX, ConstantNode.forInt(amount));
/openjdk10/hotspot/src/share/vm/services/
H A DmemReporter.hpp58 // Convert memory amount in bytes to current reporting scale
59 inline size_t amount_in_current_scale(size_t amount) const {
60 return NMTUtil::amount_in_scale(amount, _scale);
63 // Convert diff amount in bytes to current reporting scale
65 long amount = (long)(s1 - s2); local
67 amount = (amount > 0) ? (amount + scale / 2) : (amount - scale / 2);
68 return amount / scal
[all...]
H A DmallocTracker.cpp34 // Total malloc'd memory amount
36 size_t amount = 0; local
38 amount += _malloc[index].malloc_size();
40 amount += _tracking_header.size() + total_arena();
41 return amount;
46 size_t amount = 0; local
48 amount += _malloc[index].arena_size();
50 return amount;
H A DnmtCommon.hpp73 static size_t amount_in_scale(size_t amount, size_t scale) { argument
74 return (amount + scale / 2) / scale;
H A DmemBaseline.hpp120 size_t amount = _malloc_memory_snapshot.total() + local
122 return amount;
129 size_t amount = _malloc_memory_snapshot.total() + local
131 return amount;
/openjdk10/jdk/src/java.desktop/unix/native/libawt/java2d/loops/
H A Dmlib_v_ImageLogic.h54 mlib_s32 amount);
59 mlib_s32 amount);
64 mlib_s32 amount);
69 mlib_s32 amount);
115 mlib_s32 amount; local
122 amount = width * channels;
124 if (stride1 == amount && stride2 == amount && strided == amount) {
126 amount *
287 mlib_v_alligned_dst_src1(mlib_u8 *dp, mlib_u8 *sp1, mlib_u8 *sp2, mlib_s32 amount) argument
340 mlib_v_alligned_dst_src2(mlib_u8 *dp, mlib_u8 *sp1, mlib_u8 *sp2, mlib_s32 amount) argument
393 mlib_v_alligned_src1_src2(mlib_u8 *dp, mlib_u8 *sp1, mlib_u8 *sp2, mlib_s32 amount) argument
447 mlib_v_notalligned(mlib_u8 *dp, mlib_u8 *sp1, mlib_u8 *sp2, mlib_s32 amount) argument
[all...]
H A Dmlib_v_ImageConstLogic.h155 mlib_s32 amount; local
164 amount = height * width;
165 dend = dp + amount - 1;
200 for (; i < amount - 24; i += 24) {
208 if (i < amount) {
216 if (i < amount) {
224 if (i < amount) {
266 for (; i < amount - 24; i += 24) {
281 if (i < amount) {
292 if (i < amount) {
[all...]
/openjdk10/hotspot/test/compiler/compilercontrol/share/scenario/
H A DCommandGenerator.java58 int amount = 1 + RANDOM.nextInt(MAX_COMMANDS - 1);
59 return generateCommands(amount);
63 * Generates specified amount of random command
65 * @param amount amount of commands to generate
68 public List<Command> generateCommands(int amount) { argument
70 .limit(amount)
/openjdk10/hotspot/src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/
H A DBoundedZoomAction.java91 int amount = event.getWheelRotation();
111 while (amount > 0 && zoom / zoomMultiplier >= minFactor) {
121 amount--;
123 while (amount < 0 && zoom * zoomMultiplier <= maxFactor) {
133 amount++;
139 while (amount > 0 && zoom / zoomMultiplier >= minFactor) {
149 amount--;
151 while (amount < 0 && zoom * zoomMultiplier <= maxFactor) {
161 amount++;
/openjdk10/jdk/src/java.desktop/share/classes/sun/awt/
H A DScrollPaneWheelScroller.java122 * the amount by which the Adjustable should be adjusted. This value may
145 * Scroll the given Adjustable by the given amount. Checks the Adjustable's
148 public static void scrollAdjustable(Adjustable adj, int amount) { argument
153 if (amount == 0) {
154 log.fine("Assertion (amount != 0) failed");
161 log.finer("doScrolling by " + amount);
164 if (amount > 0 && current < upperLimit) { // still some room to scroll
166 if (current + amount < upperLimit) {
167 adj.setValue(current + amount);
175 else if (amount <
[all...]
/openjdk10/jdk/test/java/util/Calendar/
H A DBug6902861.java57 static void test(int year, int month, int dayOfMonth, int amount, int expected) { argument
60 calendar.roll(WEEK_OF_YEAR, amount);
66 date, amount, y, got, year, expected);
/openjdk10/hotspot/test/compiler/compilercontrol/parser/
H A DHugeDirectiveUtil.java50 * Creates huge file with specified amount of directives
55 * @param amount an amount of match objects
58 String fileName, int amount) {
61 for (int i = 0; i < amount; i++) {
77 // get random amount of methods for the match
106 int amount = 1 + RANDOM.nextInt(descriptors.size() - 1);
107 int skipAmount = RANDOM.nextInt(descriptors.size() - amount);
110 .limit(amount)
57 createHugeFile(List<MethodDescriptor> descriptors, String fileName, int amount) argument
/openjdk10/jdk/src/java.base/share/classes/java/time/chrono/
H A DChronoPeriodImpl.java174 ChronoPeriodImpl amount = validateAmount(amountToAdd);
177 Math.addExact(years, amount.years),
178 Math.addExact(months, amount.months),
179 Math.addExact(days, amount.days));
184 ChronoPeriodImpl amount = validateAmount(amountToSubtract);
187 Math.subtractExact(years, amount.years),
188 Math.subtractExact(months, amount.months),
189 Math.subtractExact(days, amount.days));
193 * Obtains an instance of {@code ChronoPeriodImpl} from a temporal amount.
195 * @param amount th
198 validateAmount(TemporalAmount amount) argument
[all...]
H A DChronoLocalDateTimeImpl.java377 long amount = end.getLong(EPOCH_DAY) - date.getLong(EPOCH_DAY);
379 case NANOS: amount = Math.multiplyExact(amount, NANOS_PER_DAY); break;
380 case MICROS: amount = Math.multiplyExact(amount, MICROS_PER_DAY); break;
381 case MILLIS: amount = Math.multiplyExact(amount, MILLIS_PER_DAY); break;
382 case SECONDS: amount = Math.multiplyExact(amount, SECONDS_PER_DAY); break;
383 case MINUTES: amount
[all...]
/openjdk10/hotspot/test/gc/stress/
H A DTestStressIHOPMultiThread.java63 * specified amount of memory. Tests work with enabled IHOP logging.
124 * Creates a number of threads which will fill and free amount of memory.
165 public AllocationThread(int id, long amount) { argument
168 amountOfGarbage = amount;
201 private void allocate(long amount) { argument
203 while (allocated < amount && TestStressIHOPMultiThread.this.isRunning()) {
/openjdk10/jdk/src/java.base/share/classes/sun/util/
H A DBuddhistCalendar.java148 * Adds the specified (signed) amount of time to the given time field.
150 * @param amount the amount of date or time to be added to the field.
153 public void add(int field, int amount) argument
160 super.add(field, amount);
167 * Add to field a signed amount without changing larger fields.
168 * A negative roll amount means to subtract from field without changing
171 * @param amount the signed amount to add to <code>field</code>.
174 public void roll(int field, int amount) argument
[all...]
/openjdk10/jdk/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/
H A DWindowController.java39 * amount of Send Window from the controller before sending data.
104 * Attempts to acquire the requested amount of Send Window for the given
107 * The actual amount of Send Window available may differ from the requested
108 * amount. The actual amount, returned by this method, is the minimum of,
109 * 1) the requested amount, 2) the stream's Send Window, and 3) the
112 * This method ( currently ) blocks until some positive amount of Send
143 * @return false if, and only if, the addition of the given amount would
146 boolean increaseConnectionWindow(int amount) { argument
150 size += amount;
167 increaseStreamWindow(int amount, int streamid) argument
[all...]

Completed in 322 milliseconds

12345