Home
last modified time | relevance | path

Searched refs:bits (Results 1 – 25 of 33) sorted by relevance

12

/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/
DBitwiseInputStream.java74 public int read(int bits) throws AccessException { in read() argument
76 int offset = 16 - (mPos & 0x07) - bits; // &7==%8 in read()
77 if ((bits < 0) || (bits > 8) || ((mPos + bits) > mEnd)) { in read()
79 "illegal read (pos " + mPos + ", end " + mEnd + ", bits " + bits + ")"); in read()
84 data &= (-1 >>> (32 - bits)); in read()
85 mPos += bits; in read()
95 public byte[] readByteArray(int bits) throws AccessException { in readByteArray() argument
96 int bytes = (bits >>> 3) + ((bits & 0x07) > 0 ? 1 : 0); // &7==%8 in readByteArray()
99 int increment = Math.min(8, bits - (i << 3)); in readByteArray()
110 public void skip(int bits) throws AccessException { in skip() argument
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/data/
DWeekdays.kt32 class Weekdays private constructor(bits: Int) {
80 fun fromBits(bits: Int): Weekdays { in fromBits()
81 return Weekdays(bits) in fromBits()
99 var bits = 0 in fromCalendarDays() variable
103 bits = bits or bit in fromCalendarDays()
106 return Weekdays(bits) in fromCalendarDays()
111 val bits: Int = ALL_DAYS and bits constant
129 return Weekdays(if (on) bits or bit else bits and bit.inv()) in setBit()
148 return bits and bit > 0 in isBitOn()
155 get() = bits != 0
[all …]
/packages/modules/Connectivity/tests/unit/java/com/android/internal/util/
DBitUtilsTest.java159 + Arrays.toString(tc.bits) in testBitsPacking()
162 Arrays.equals(tc.bits, got)); in testBitsPacking()
165 long got = packBits(tc.bits); in testBitsPacking()
168 + Arrays.toString(tc.bits) in testBitsPacking()
198 final int[] bits; field in BitUtilsTest.BitPackingTestCase
201 BitPackingTestCase(long packedBits, int[] bits) { in BitPackingTestCase() argument
202 this.bits = bits; in BitPackingTestCase()
/packages/modules/GeoTZ/s2storage/
DREADME.md34 table. Then they contain one or more fixed length `{key}`/`{value}` records of `{R}` bits sorted by
67 stored using only a subset of the bits needed to store a full S2 cell ID.
85 The `{prefix}` is computed by extracting the first `{X}` bits of the S2 cell ID. The `{prefix}` is
95 The `{suffix}`, the final `{Y}` bits of the search S2 cell ID, is used to seek for a record
123 It is important to keep the number of bits used in each suffix table entry to a
180 As with any packed table, each record in the packed table has a fixed width of `{R}` bits. The first
181 `{M}` bits of every record are used to store the (ordered) `{key}`.
183 The `{key}` for an entry contains only the `{suffix}` bits from the `{start S2 cell ID
187 The remaining (`{R-M}`) bits are used to store the ``{value}``. The ``{value}`` is further
195 bits from the S2 cell ID can be extracted. Since all data in the table is held at a single S2 level,
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/
DNotificationUtils.kt113 val bits = properties[2] in createChannel() constant
114 channel.enableLights(bits and ENABLE_LIGHTS != 0) in createChannel()
115 channel.enableVibration(bits and ENABLE_VIBRATION != 0) in createChannel()
116 if (bits and PLAY_SOUND == 0) { in createChannel()
DHandleApiCalls.kt478 args.add(getDaysFromIntent(intent, Weekdays.NONE).bits.toString()) in setSelectionFromIntent()
/packages/modules/GeoTZ/s2storage/src/test/java/com/android/timezone/location/storage/tzs2range/
DTzS2RangeFileFormatTest.java168 private static int maxValForBits(int bits) { in maxValForBits() argument
169 return intPow2(bits) - 1; in maxValForBits()
/packages/modules/NeuralNetworks/extensions/
DREADME.md181 Of the 32 bits used to identify types and operations, the high
182 `ExtensionTypeEncoding::HIGH_BITS_PREFIX` bits is the extension
184 bits represents the type or operation of the extension.
/packages/apps/DeskClock/src/com/android/deskclock/provider/
DAlarm.kt152 p.writeInt(daysOfWeek.bits) in writeToParcel()
329 values.put(AlarmsColumns.DAYS_OF_WEEK, alarm.daysOfWeek.bits) in createContentValues()
/packages/apps/Launcher3/protos/
Dlauncher_trace_file.proto31 (this is needed because enums have to be 32 bits and there's no nice way to put 64bit
/packages/modules/NeuralNetworks/common/random/
Drandom_distributions.h226 auto bits = sample[2 * i] | static_cast<uint64>(sample[2 * i + 1]) << 32; in operator() local
227 result[i] = SignedAdd(lo_, bits % range_); in operator()
/packages/modules/NeuralNetworks/common/
DTypeUtils.cpp159 const uint64_t bits = static_cast<uint64_t>(offset); in getIntsFromOffset() local
160 const uint32_t lowBits = static_cast<uint32_t>(bits & 0xffffffff); in getIntsFromOffset()
161 const uint32_t highBits = static_cast<uint32_t>(bits >> 32); in getIntsFromOffset()
/packages/apps/Car/DebuggingRestrictionController/server/
DHOW_TO.md37 with at least 2048 bits. The certificate MUST contain at least one Subject
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmTimeClickHandler.kt113 val bitSet = alarm.daysOfWeek.bits in setAlarmRepeatEnabled()
/packages/services/Telecomm/proto/
Dtelecom.proto276 // A bitmask with bits corresponding to call technologies that were used
/packages/modules/NeuralNetworks/runtime/test/
DTestIntrospectionControl.cpp361 static const std::vector<std::pair<Success, const char*>> bits = { in operator <<() local
369 for (const auto& b : bits) { in operator <<()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DXmlUtilHelper.java162 long bits; in parseUnsignedIntAttribute() local
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/
Dtutorial.md201 …ble`, but `int64_t` and `uint64_t` may lose precision (since mantissa of `double` is only 52-bits).
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiMetrics.java5839 private static int bitSetToInt(BitSet bits) { in bitSetToInt() argument
5841 int nBits = bits.length() < 31 ? bits.length() : 31; in bitSetToInt()
5843 value += bits.get(i) ? (1 << i) : 0; in bitSetToInt()
/packages/modules/NeuralNetworks/tools/api/
Dtypes.spec1475 * Tensor[0].Dim[1]: Number of projected output bits generated by each
1493 * Each output element is an int32 made up of multiple bits
/packages/inputmethods/LatinIME/dictionaries/
Dfr_wordlist.combined.gz1dictionary=main:fr,locale=fr,description=Français,date=1414726264, ...
Den_GB_wordlist.combined.gz1dictionary=main:en_gb,locale=en_GB,description=English (UK),date ...
Den_US_wordlist.combined.gz
Dnl_wordlist.combined.gz1dictionary=main:nl,locale=nl,description=Nederlands,date=1414726258, ...
Dpt_BR_wordlist.combined.gz1dictionary=main:pt_br,locale=pt_BR,description=Português (Brasil),date ...

12