Home
last modified time | relevance | path

Searched refs:BitUtils (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/base/core/java/android/net/
DDnsPacket.java23 import com.android.internal.util.BitUtils;
56 id = BitUtils.uint16(buf.getShort()); in DnsHeader()
57 flags = BitUtils.uint16(buf.getShort()); in DnsHeader()
61 mRecordCount[i] = BitUtils.uint16(buf.getShort()); in DnsHeader()
114 nsType = BitUtils.uint16(buf.getShort()); in DnsRecord()
115 nsClass = BitUtils.uint16(buf.getShort()); in DnsRecord()
118 ttl = BitUtils.uint32(buf.getInt()); in DnsRecord()
119 final int length = BitUtils.uint16(buf.getShort()); in DnsRecord()
144 int b = BitUtils.uint8(label[i]); in labelToString()
168 final int len = BitUtils.uint8(buf.get()); in parseName()
[all …]
DConnectivityMetricsEvent.java22 import com.android.internal.util.BitUtils;
89 for (int t : BitUtils.unpackBits(transports)) { in toString()
DNetworkCapabilities.java33 import com.android.internal.util.BitUtils;
478 return BitUtils.unpackBits(mNetworkCapabilities); in getCapabilities()
488 return BitUtils.unpackBits(mUnwantedNetworkCapabilities); in getUnwantedCapabilities()
500 mNetworkCapabilities = BitUtils.packBits(capabilities); in setCapabilities()
501 mUnwantedNetworkCapabilities = BitUtils.packBits(unwantedCapabilities); in setCapabilities()
556 return capabilityNameOf(BitUtils.unpackBits(nonRequestable)[0]); in describeFirstNonRequestableCapability()
765 return BitUtils.unpackBits(mTransportTypes); in getTransportTypes()
775 mTransportTypes = BitUtils.packBits(transportTypes); in setTransportTypes()
1402 String before = capabilityNamesOf(BitUtils.unpackBits(oldImmutableCapabilities)); in describeImmutableDifferences()
1403 String after = capabilityNamesOf(BitUtils.unpackBits(newImmutableCapabilities)); in describeImmutableDifferences()
DMacAddress.java26 import com.android.internal.util.BitUtils;
277 longAddr = (longAddr << 8) + BitUtils.uint8(b); in longAddrFromByteAddr()
/frameworks/base/tests/net/java/com/android/internal/util/
DBitUtilsTest.java19 import static com.android.internal.util.BitUtils.bytesToBEInt;
20 import static com.android.internal.util.BitUtils.bytesToLEInt;
21 import static com.android.internal.util.BitUtils.getUint16;
22 import static com.android.internal.util.BitUtils.getUint32;
23 import static com.android.internal.util.BitUtils.getUint8;
24 import static com.android.internal.util.BitUtils.uint16;
25 import static com.android.internal.util.BitUtils.uint32;
26 import static com.android.internal.util.BitUtils.uint8;
/frameworks/base/core/java/android/net/metrics/
DDefaultNetworkEvent.java23 import com.android.internal.util.BitUtils;
66 for (int t : BitUtils.unpackBits(transports)) { in toString()
DDnsEvent.java21 import com.android.internal.util.BitUtils;
90 for (int t : BitUtils.unpackBits(transports)) { in toString()
DIpConnectivityLog.java31 import com.android.internal.util.BitUtils;
154 ev.transports = BitUtils.packBits(transports); in log()
DConnectStats.java24 import com.android.internal.util.BitUtils;
124 for (int t : BitUtils.unpackBits(transports)) { in toString()
DNetworkMetrics.java21 import com.android.internal.util.BitUtils;
147 for (int t : BitUtils.unpackBits(transports)) { in toString()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DIpConnectivityMetricsTest.java53 import com.android.internal.util.BitUtils;
129 final long cell = BitUtils.packBits(new int[]{NetworkCapabilities.TRANSPORT_CELLULAR}); in testDefaultNetworkEvents()
130 final long wifi = BitUtils.packBits(new int[]{NetworkCapabilities.TRANSPORT_WIFI}); in testDefaultNetworkEvents()
330 final long cell = BitUtils.packBits(new int[]{NetworkCapabilities.TRANSPORT_CELLULAR}); in testEndToEndLogging()
331 final long wifi = BitUtils.packBits(new int[]{NetworkCapabilities.TRANSPORT_WIFI}); in testEndToEndLogging()
592 for (int t : BitUtils.unpackBits(transports)) { in makeNai()
/frameworks/base/core/java/com/android/internal/util/
DBitUtils.java34 public final class BitUtils { class
35 private BitUtils() {} in BitUtils() method in BitUtils
/frameworks/base/services/core/java/com/android/server/connectivity/
DDefaultNetworkMetrics.java24 import com.android.internal.util.BitUtils;
165 ev.transports |= BitUtils.packBits(nai.networkCapabilities.getTransportTypes()); in fillLinkInfo()
DNetdEventListenerService.java42 import com.android.internal.util.BitUtils;
387 return BitUtils.packBits(nc.getTransportTypes()); in getTransports()
/frameworks/base/core/java/android/net/util/
DDnsUtils.java32 import com.android.internal.util.BitUtils;
332 int x = BitUtils.uint8(srcByte[i]) ^ BitUtils.uint8(dstByte[i]); in compareIpv6PrefixMatchLen()
/frameworks/base/tests/net/common/java/android/net/metrics/
DIpConnectivityLogTest.java34 import com.android.internal.util.BitUtils;
52 private static final int[] FAKE_TRANSPORT_TYPES = BitUtils.unpackBits(TRANSPORT_WIFI);
/frameworks/base/services/core/java/com/android/server/job/
DJobStore.java46 import com.android.internal.util.BitUtils;
530 BitUtils.packBits(network.networkCapabilities.getCapabilities())));
532 BitUtils.packBits(network.networkCapabilities.getUnwantedCapabilities())));
535 BitUtils.packBits(network.networkCapabilities.getTransportTypes())));
964 : BitUtils.packBits(request.networkCapabilities.getUnwantedCapabilities()); in buildConstraintsFromXml()
968 BitUtils.unpackBits(Long.parseLong(netCapabilities)), in buildConstraintsFromXml()
969 BitUtils.unpackBits(unwantedCapabilities)); in buildConstraintsFromXml()
971 BitUtils.unpackBits(Long.parseLong(netTransportTypes))); in buildConstraintsFromXml()
/frameworks/base/core/java/android/bluetooth/le/
DScanFilter.java27 import com.android.internal.util.BitUtils;
401 return BitUtils.maskedEquals(data, uuid, mask); in matchesServiceUuid()
431 return BitUtils.maskedEquals(data, solicitationUuid, solicitationUuidMask); in matchesServiceSolicitationUuid()
/frameworks/base/core/java/android/view/accessibility/
DAccessibilityEvent.java27 import com.android.internal.util.BitUtils;
894 return BitUtils.flagsToString(types, AccessibilityEvent::singleContentChangeTypeToString); in contentChangeTypesToString()
942 return BitUtils.flagsToString(types, AccessibilityEvent::singleWindowChangeTypeToString); in windowChangeTypesToString()
DAccessibilityNodeInfo.java19 import static com.android.internal.util.BitUtils.bitAt;
20 import static com.android.internal.util.BitUtils.isBitSet;
/frameworks/base/core/java/android/companion/
DBluetoothLeDeviceFilter.java38 import com.android.internal.util.BitUtils;
170 || BitUtils.maskedEquals(device.getScanRecord().getBytes(), in matches()
/frameworks/base/core/java/com/android/internal/util/function/pooled/
DPooledLambdaImpl.java26 import com.android.internal.util.BitUtils;
212 mFlags |= BitUtils.bitAt(i); in fillInArg()
424 mFlags &= ~BitUtils.bitAt(index); in popArg()
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/
DOffloadHardwareInterface.java19 import static com.android.internal.util.BitUtils.uint16;
/frameworks/base/services/core/java/com/android/server/role/
DRoleManagerService.java65 import com.android.internal.util.BitUtils;
286 out.write(BitUtils.toBytes(pkg.getLongVersionCode())); in computeComponentStateHash()
/frameworks/base/config/
Dpreloaded-classes5118 com.android.internal.util.BitUtils

12