Home
last modified time | relevance | path

Searched refs:units (Results 1 – 25 of 404) sorted by relevance

12345678910>>...17

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DUniversalTimeScale.java303 units = theUnits; in TimeScaleData()
325 long units; field in UniversalTimeScale.TimeScaleData
377 return (otherTime + data.epochOffset) * data.units; in from()
396 BigDecimal units = new BigDecimal(data.units); in bigDecimalFrom() local
399 return other.add(epochOffset).multiply(units); in bigDecimalFrom()
418 BigDecimal units = new BigDecimal(data.units); in bigDecimalFrom() local
421 return other.add(epochOffset).multiply(units); in bigDecimalFrom()
440 BigDecimal units = new BigDecimal(data.units); in bigDecimalFrom() local
443 return otherTime.add(epochOffset).multiply(units); in bigDecimalFrom()
492 return (universalTime + data.unitsRound) / data.units - data.epochOffsetP1; in toLong()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DCompactDecimalDataCache.java66 Map<String, DecimalFormat.Unit[]> units; field in CompactDecimalDataCache.Data
68 Data(long[] divisors, Map<String, DecimalFormat.Unit[]> units) { in Data() argument
70 this.units = units; in Data()
353 saveUnit(new DecimalFormat.Unit(prefix, suffix), pluralVariant, idx, result.units); in populatePrefixSuffix()
432 if (result.units.get(OTHER)[i] == null) { in fillInMissing()
434 copyFromPreviousIndex(i, result.units); in fillInMissing()
437 propagateOtherToMissing(i, result.units); in fillInMissing()
443 int idx, Map<String, DecimalFormat.Unit[]> units) { in propagateOtherToMissing() argument
444 DecimalFormat.Unit otherVariantValue = units.get(OTHER)[idx]; in propagateOtherToMissing()
445 for (DecimalFormat.Unit[] byBase : units.values()) { in propagateOtherToMissing()
[all …]
DCompactDecimalFormat.java60 private final Map<String, DecimalFormat.Unit[]> units; field in CompactDecimalFormat
120 this.units = data.units; in CompactDecimalFormat()
168 this.units = otherPluralVariant(pluralAffixes, divisor, debugCreationErrors); in CompactDecimalFormat()
169 if (!pluralRules.getKeywords().equals(this.units.keySet())) { in CompactDecimalFormat()
170 …ralCategories, should be: " + pluralRules.getKeywords() + ", was actually " + this.units.keySet()); in CompactDecimalFormat()
207 return mapsAreEqual(units, other.units) in equals()
341 CompactDecimalDataCache.getUnit(units, pluralVariant, base)); in toAmount()
396 DecimalFormat.Unit[] units = new DecimalFormat.Unit[power10ToAffix.length]; in otherPluralVariant() local
420 units[i] = new Unit(pair[0], pair[1]); in otherPluralVariant()
422 result.put(pluralCategory, units); in otherPluralVariant()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/impl/
DUtils.java82 buf[--x] = zh.units[u++]; in chineseNumber()
155 if (i < buf.length - 1 && buf[i+1] == zh.units[0]) continue; in chineseNumber()
156 … if (i > x && (buf[i-1] == zh.units[0] || buf[i-1] == zh.digits[0] || buf[i-1] == '*')) continue; in chineseNumber()
162 if (buf[x] == zh.digits[1] && (zh.ko || buf[x+1] == zh.units[0])) { in chineseNumber()
188 final char[] units; field in Utils.ChineseDigits
193 ChineseDigits(String digits, String units, String levels, char liang, boolean ko) { in ChineseDigits() argument
195 this.units = units.toCharArray(); in ChineseDigits()
/external/toybox/toys/other/
Dvmstat.c89 uint64_t units, total_hz, *ptr = (uint64_t *)(top+idx), in vmstat_main() local
122 sscanf(s, "%"PRIu64, &units); in vmstat_main()
123 } else units = loop_delay; in vmstat_main()
141 else if (order[i]>15) out = ((out * page_kb)+(units-1))/units; in vmstat_main()
142 else if (order[i]<9) out = (out+(units-1)) / units; in vmstat_main()
Dfree.c23 unsigned long long units;
28 return (d*TT.units)>>TT.bits;
36 TT.units = in.mem_unit ? in.mem_unit : 1; in free_main()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/duration/
DLanguageTestRoot.java38 private static final TimeUnit[] units = { field in LanguageTestRoot
178 for (int i = 0; i < units.length; ++i) { in timestring()
179 TimeUnit p = units[i]; in timestring()
244 for (int i = 0; i < units.length; ++i) { in testFullPluralizedForms()
245 TimeUnit u = units[i]; in testFullPluralizedForms()
270 for (int i = 0; i < units.length; ++i) { in testMediumForms()
271 TimeUnit u = units[i]; in testMediumForms()
291 for (int i = 0; i < units.length; ++i) { in testShortForms()
292 TimeUnit u = units[i]; in testShortForms()
431 for (int i = 0; i < units.length; ++i) { in testHalfUnits()
[all …]
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
Dorg.eclipse.equinox.p2.console_1.0.200.v20100601.jar ... .equinox.p2.metadata.IInstallableUnit[] units int i public void _provlquery (org.eclipse. ...
/external/icu/icu4c/source/layout/
DLEFontInstance.cpp115 void LEFontInstance::unitsToPoints(LEPoint &units, LEPoint &points) const in unitsToPoints() argument
117 points.fX = xUnitsToPoints(units.fX); in unitsToPoints()
118 points.fY = yUnitsToPoints(units.fY); in unitsToPoints()
131 void LEFontInstance::pixelsToUnits(LEPoint &pixels, LEPoint &units) const in pixelsToUnits()
133 units.fX = xPixelsToUnits(pixels.fX); in pixelsToUnits()
134 units.fY = yPixelsToUnits(pixels.fY); in pixelsToUnits()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/
DTimeUnit.java57 return ordinal == 0 ? null : units[ordinal - 1]; in larger()
62 return ordinal == units.length - 1 ? null : units[ordinal + 1]; in smaller()
66 static final TimeUnit[] units = { field in TimeUnit
DBasicPeriodBuilderFactory.java60 for (int i = 0; i < TimeUnit.units.length; ++i) { in setUnits()
63 result.maxUnit = TimeUnit.units[i]; in setUnits()
72 result.minUnit = TimeUnit.units[lastUnit]; in setUnits()
91 for (int i = TimeUnit.units.length - 1; --i >= 0;) { in effectiveMinUnit()
93 return TimeUnit.units[i]; in effectiveMinUnit()
405 for (int i = 0; i < TimeUnit.units.length; ++i) {
407 TimeUnit unit = TimeUnit.units[i];
439 for (int i = 0; i < TimeUnit.units.length; ++i) {
441 TimeUnit unit = TimeUnit.units[i];
489 for (int i = 0; i < TimeUnit.units.length; ++i) {
[all …]
/external/libpcap/
Dpcap-sita.c77 static unit_t units[MAX_CHASSIS+1][MAX_GEOSLOT+1]; /* we use indexes of 1 through 8, but we reserv… variable
151 if (units[chassis][geoslot].ip != NULL) in dump_unit_table()
152 …printf("%d:%d %2d %s\n", chassis, geoslot, units[chassis][geoslot].fd, units[chassis][geoslot].ip); in dump_unit_table()
153 p = units[chassis][geoslot].iface; in dump_unit_table()
169 if (units[c][s].fd == fd || units[c][s].find_fd == fd) { in find_unit_by_fd()
172 if (unit_ptr) *unit_ptr = &units[c][s]; in find_unit_by_fd()
209 unit_t *u = &units[chassis][geoslot];
225 if (units[chassis][geoslot].ip != NULL) {
226 … free(units[chassis][geoslot].ip); /* get rid of the malloc'ed space that holds the IP address */
227 units[chassis][geoslot].ip = 0; /* then set the pointer to NULL */
[all …]
/external/toybox/toys/posix/
Ddf.c33 long units;
61 size = (block * mt->statvfs.f_blocks) / TT.units;
62 used = (block * (mt->statvfs.f_blocks-mt->statvfs.f_bfree)) / TT.units;
63 avail = (block*(getuid()?mt->statvfs.f_bavail:mt->statvfs.f_bfree))/TT.units;
88 TT.units = p ? 512 : 1024; in df_main()
/external/openssh/openbsd-compat/
Dfmt_scaled.c57 static unit_type units[] = { NONE, KILO, MEGA, GIGA, TERA, PETA, EXA }; variable
68 #define SCALE_LENGTH (sizeof(units)/sizeof(units[0]))
212 unit = units[i]; in fmt_scaled()
/external/clang/test/ASTMerge/
Dinterface.m5 …ariable 'ivar2' declared with incompatible types in different translation units ('float' vs. 'int')
10 …class method 'foo' has incompatible result types in different translation units ('float' vs. 'int')
12 …od 'bar:' has a parameter with a different types in different translation units ('float' vs. 'int')
16 …od 'bar:' has a parameter with a different types in different translation units ('double' vs. 'flo…
Dcategory.m5 …e method 'method2' has incompatible result types in different translation units ('float' vs. 'int')
7 …e method 'method3' has incompatible result types in different translation units ('float' vs. 'int')
9 …ance method 'blah' has incompatible result types in different translation units ('int' vs. 'float')
Dproperty.m5 …roperty 'Prop1' declared with incompatible types in different translation units ('int' vs. 'float')
7 …nce method 'Prop1' has incompatible result types in different translation units ('int' vs. 'float')
9 …operty 'Prop2' is synthesized to different ivars in different translation units ('ivar3' vs. 'ivar…
/external/icu/icu4c/source/i18n/
Dmeasfmt.cpp188 MeasureUnit *units = NULL; in loadMeasureUnitData() local
189 int32_t unitCount = MeasureUnit::getAvailable(units, 0, status); in loadMeasureUnitData()
192 delete [] units; in loadMeasureUnitData()
193 units = new MeasureUnit[unitCount]; in loadMeasureUnitData()
194 if (units == NULL) { in loadMeasureUnitData()
198 unitCount = MeasureUnit::getAvailable(units, unitCount, status); in loadMeasureUnitData()
203 delete [] units; in loadMeasureUnitData()
233 delete [] units; in loadMeasureUnitData()
236 if (isCurrency(units[currentUnit])) { in loadMeasureUnitData()
240 pathBuffer.append(units[currentUnit].getType(), status) in loadMeasureUnitData()
[all …]
/external/mesa3d/src/mesa/main/
Dpolygon.c272 _mesa_PolygonOffset( GLfloat factor, GLfloat units ) in _mesa_PolygonOffset() argument
278 _mesa_debug(ctx, "glPolygonOffset %f %f\n", factor, units); in _mesa_PolygonOffset()
281 ctx->Polygon.OffsetUnits == units) in _mesa_PolygonOffset()
286 ctx->Polygon.OffsetUnits = units; in _mesa_PolygonOffset()
289 ctx->Driver.PolygonOffset( ctx, factor, units ); in _mesa_PolygonOffset()
/external/clang/include/clang/Basic/
DDiagnosticASTKinds.td175 "translation units (%1 vs. %2)">;
177 "external variable %0 defined in multiple translation units">;
182 "translation units (%1 vs. %2)">;
184 "type %0 has incompatible definitions in different translation units">,
203 "translation units (%1 vs. %2)">;
208 "translation units (%1 vs. %2)">;
215 "different translation units (%2 vs. %3)">;
218 "different translation units (%2 vs. %3)">;
221 "in different translation units (%2 vs. %3)">;
229 "translation units (%1 vs. %2)">;
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timescale/
DTimeScaleDataTest.java55 private void epochOffsetTest(long epochOffset, long units, int scale) in epochOffsetTest() argument
57 long universalEpoch = epochOffset * units; in epochOffsetTest()
88 … long units = UniversalTimeScale.getTimeScaleValue(scale, UniversalTimeScale.UNITS_VALUE); in TestEpochOffsets() local
91 epochOffsetTest(epochOffset, units, scale); in TestEpochOffsets()
/external/deqp/doc/testspecs/GLES3/
Dfunctional.texture.sampler.txt27 + Binding samplers to texture units
29 - Multiple units
41 is then bound to one or more texture units populated with textures that
/external/gptfdisk/
Dsupport.cc229 string units, prefixes = " KMGTPEZ"; in BytesToIeee() local
241 units = " iB"; in BytesToIeee()
242 units[1] = prefixes[index]; in BytesToIeee()
249 theValue << sizeInIeee << "." << (uint32_t) decimalIeee << units; in BytesToIeee()
/external/iptables/extensions/
Dlibxt_hashlimit.c459 } units[] = { variable
472 for (i = 0; i < ARRAY_SIZE(units) -1; ++i) in print_bytes()
473 if (r >= units[i].thresh && in print_bytes()
474 bytes_to_cost(r & ~(units[i].thresh - 1)) == avg) in print_bytes()
476 printf(" %llu%sb/s", r/units[i].thresh, units[i].name); in print_bytes()
483 for (i = 0; i < ARRAY_SIZE(units) -1; ++i) in print_bytes()
484 if (r >= units[i].thresh) in print_bytes()
487 printf("burst %llu%sb", r / units[i].thresh, units[i].name); in print_bytes()
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DSetsTest.java92 Set<SomeEnum> units = Sets.immutableEnumSet(SomeEnum.D, SomeEnum.B); in testImmutableEnumSet() local
94 ASSERT.that(units).has().exactly(SomeEnum.B, SomeEnum.D).inOrder(); in testImmutableEnumSet()
96 units.remove(SomeEnum.B); in testImmutableEnumSet()
100 units.add(SomeEnum.C); in testImmutableEnumSet()
288 Set<SomeEnum> units = EnumSet.of(SomeEnum.B, SomeEnum.D); in testComplementOfEnumSet() local
289 EnumSet<SomeEnum> otherUnits = Sets.complementOf(units); in testComplementOfEnumSet()
294 Set<SomeEnum> units = EnumSet.of(SomeEnum.B, SomeEnum.D); in testComplementOfEnumSetWithType() local
295 EnumSet<SomeEnum> otherUnits = Sets.complementOf(units, SomeEnum.class); in testComplementOfEnumSetWithType()
300 Set<SomeEnum> units = Sets.newHashSet(SomeEnum.B, SomeEnum.D); in testComplementOfRegularSet() local
301 EnumSet<SomeEnum> otherUnits = Sets.complementOf(units); in testComplementOfRegularSet()
[all …]

12345678910>>...17