/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/ |
D | Utf8ByteLengthFilterTest.java | 35 SpannableStringBuilder dest = new SpannableStringBuilder("abcdefgh"); // 8 bytes. in filter_belowMaxBytes_returnsNull() local 39 CharSequence filtered = lengthFilter.filter(source, /* start= */ 0, source.length(), dest, in filter_belowMaxBytes_returnsNull() 40 dest.length(), dest.length()); in filter_belowMaxBytes_returnsNull() 49 SpannableStringBuilder dest = new SpannableStringBuilder("abcdefghi"); // 9 bytes. in filter_maxBytes_returnsNull() local 53 CharSequence filtered = lengthFilter.filter(source, /* start= */ 0, source.length(), dest, in filter_maxBytes_returnsNull() 54 dest.length(), dest.length()); in filter_maxBytes_returnsNull() 63 SpannableStringBuilder dest = new SpannableStringBuilder("abcdefghi"); // 8 bytes. in filter_aboveMaxBytes_returnsFilteredSource() local 67 CharSequence filtered = lengthFilter.filter(source, /* start= */ 0, source.length(), dest, in filter_aboveMaxBytes_returnsFilteredSource() 68 dest.length(), dest.length()); in filter_aboveMaxBytes_returnsFilteredSource() 78 SpannableStringBuilder dest; in exerciseFilter() local [all …]
|
/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/bluetooth/ |
D | Utf8ByteLengthFilterTest.java | 30 SpannableStringBuilder dest; in testFilter() local 38 dest = new SpannableStringBuilder("abcdefgh"); in testFilter() 39 dest.setFilters(filters); in testFilter() 41 dest.insert(1, source); in testFilter() 43 assertEquals(expectedString1, dest.toString()); in testFilter() 45 dest.replace(5, 8, source); in testFilter() 47 assertEquals(expectedString2, dest.toString()); in testFilter() 49 dest.insert(2, source); in testFilter() 50 assertEquals(expectedString2, dest.toString()); in testFilter() 52 dest.delete(1, 3); in testFilter() [all …]
|
/packages/modules/Wifi/framework/java/android/net/wifi/ |
D | WifiUsabilityStatsEntry.java | 205 public void writeToParcel(@NonNull Parcel dest, int flags) { in writeToParcel() argument 206 dest.writeLong(mContentionTimeMinMicros); in writeToParcel() 207 dest.writeLong(mContentionTimeMaxMicros); in writeToParcel() 208 dest.writeLong(mContentionTimeAvgMicros); in writeToParcel() 209 dest.writeLong(mContentionNumSamples); in writeToParcel() 386 public void writeToParcel(@NonNull Parcel dest, int flags) { in writeToParcel() argument 387 dest.writeInt(mPreamble); in writeToParcel() 388 dest.writeInt(mNss); in writeToParcel() 389 dest.writeInt(mBw); in writeToParcel() 390 dest.writeInt(mRateMcsIdx); in writeToParcel() [all …]
|
D | RttManager.java | 283 public void writeToParcel(Parcel dest, int flags) { in writeToParcel() argument 284 dest.writeInt(oneSidedRttSupported ? 1 : 0); in writeToParcel() 285 dest.writeInt(twoSided11McRttSupported ? 1 : 0); in writeToParcel() 286 dest.writeInt(lciSupported ? 1 : 0); in writeToParcel() 287 dest.writeInt(lcrSupported ? 1 : 0); in writeToParcel() 288 dest.writeInt(preambleSupported); in writeToParcel() 289 dest.writeInt(bwSupported); in writeToParcel() 290 dest.writeInt(responderSupported ? 1 : 0); in writeToParcel() 291 dest.writeInt(secureRttSupported ? 1 : 0); in writeToParcel() 292 dest.writeInt(mcVersion); in writeToParcel() [all …]
|
D | ScanResult.java | 1257 public void writeToParcel(Parcel dest, int flags) { in writeToParcel() argument 1258 dest.writeInt(id); in writeToParcel() 1259 dest.writeInt(idExt); in writeToParcel() 1260 dest.writeByteArray(bytes); in writeToParcel() 1537 public void writeToParcel(Parcel dest, int flags) { in writeToParcel() argument 1539 dest.writeInt(1); in writeToParcel() 1540 wifiSsid.writeToParcel(dest, flags); in writeToParcel() 1542 dest.writeInt(0); in writeToParcel() 1544 dest.writeString(SSID); in writeToParcel() 1545 dest.writeString(BSSID); in writeToParcel() [all …]
|
D | WifiConfiguration.java | 2910 public void writeToParcel(Parcel dest, int flags) { in writeToParcel() argument 2911 dest.writeInt(getNetworkSelectionStatus()); in writeToParcel() 2912 dest.writeInt(getNetworkSelectionDisableReason()); in writeToParcel() 2915 dest.writeInt(getDisableReasonCounter(index)); in writeToParcel() 2917 dest.writeLong(getDisableTime()); in writeToParcel() 2918 dest.writeLong(getDisableEndTime()); in writeToParcel() 2919 dest.writeString(getNetworkSelectionBSSID()); in writeToParcel() 2921 dest.writeInt(CONNECT_CHOICE_EXISTS); in writeToParcel() 2922 dest.writeString(getConnectChoice()); in writeToParcel() 2923 dest.writeInt(getConnectChoiceRssi()); in writeToParcel() [all …]
|
D | WifiScanner.java | 713 public void writeToParcel(Parcel dest, int flags) { in writeToParcel() argument 714 dest.writeInt(band); in writeToParcel() 715 dest.writeInt(periodInMs); in writeToParcel() 716 dest.writeInt(reportEvents); in writeToParcel() 717 dest.writeInt(numBssidsPerScan); in writeToParcel() 718 dest.writeInt(maxScansToCache); in writeToParcel() 719 dest.writeInt(maxPeriodInMs); in writeToParcel() 720 dest.writeInt(stepCount); in writeToParcel() 721 dest.writeInt(isPnoScan ? 1 : 0); in writeToParcel() 722 dest.writeInt(type); in writeToParcel() [all …]
|
D | WifiInfo.java | 1567 public void writeToParcel(Parcel dest, int flags) { in writeToParcel() argument 1568 dest.writeInt(mNetworkId); in writeToParcel() 1569 dest.writeInt(mRssi); in writeToParcel() 1570 dest.writeInt(mLinkSpeed); in writeToParcel() 1571 dest.writeInt(mTxLinkSpeed); in writeToParcel() 1572 dest.writeInt(mRxLinkSpeed); in writeToParcel() 1573 dest.writeInt(mFrequency); in writeToParcel() 1575 dest.writeByte((byte)1); in writeToParcel() 1576 dest.writeByteArray(mIpAddress.getAddress()); in writeToParcel() 1578 dest.writeByte((byte)0); in writeToParcel() [all …]
|
/packages/services/Car/tools/emulator/ |
D | vhal_const_generate.py | 30 def printHeader(dest): argument 32 print("# Copyright (C) %s The Android Open Source Project" % year, file=dest) 33 print("#", file=dest) 34 print("# Licensed under the Apache License, Version 2.0 (the \"License\");", file=dest) 35 print("# you may not use this file except in compliance with the License.", file=dest) 36 print("# You may obtain a copy of the License at", file=dest) 37 print("#", file=dest) 38 print("# http://www.apache.org/licenses/LICENSE-2.0", file=dest) 39 print("#", file=dest) 40 print("# Unless required by applicable law or agreed to in writing, software", file=dest) [all …]
|
/packages/modules/OnDevicePersonalization/framework/java/com/android/ondevicepersonalization/internal/util/ |
D | Parcelling.java | 47 void parcel(T item, Parcel dest, int parcelFlags); in parcel() argument 106 public void parcel(@Nullable String item, Parcel dest, int parcelFlags) { in parcel() argument 107 dest.writeString(item); in parcel() 119 public void parcel(String[] item, Parcel dest, int parcelFlags) { in parcel() argument 120 dest.writeStringArray(item); in parcel() 139 public void parcel(List<String> item, Parcel dest, int parcelFlags) { in parcel() argument 140 dest.writeStringList(item); in parcel() 158 public void parcel(Map<String, String> item, Parcel dest, int parcelFlags) { in parcel() argument 159 dest.writeMap(item); in parcel() 175 public void parcel(Set<String> item, Parcel dest, int parcelFlags) { in parcel() argument [all …]
|
/packages/services/Car/car-lib/src/com/android/car/internal/util/ |
D | Parcelling.java | 48 void parcel(T item, Parcel dest, int parcelFlags); in parcel() argument 107 public void parcel(@Nullable String item, Parcel dest, int parcelFlags) { in parcel() argument 108 dest.writeString(item); in parcel() 120 public void parcel(String[] item, Parcel dest, int parcelFlags) { in parcel() argument 121 dest.writeStringArray(item); in parcel() 140 public void parcel(List<String> item, Parcel dest, int parcelFlags) { in parcel() argument 141 dest.writeStringList(item); in parcel() 159 public void parcel(Map<String, String> item, Parcel dest, int parcelFlags) { in parcel() argument 160 dest.writeMap(item); in parcel() 176 public void parcel(Set<String> item, Parcel dest, int parcelFlags) { in parcel() argument [all …]
|
/packages/inputmethods/LatinIME/native/jni/src/ |
D | defines.h | 49 char *dest, const int destSize) { in intArrayToCharArray() argument 58 dest[di++] = codePoint; in intArrayToCharArray() 61 dest[di++] = 0xC0 + (codePoint >> 6); in intArrayToCharArray() 62 dest[di++] = 0x80 + (codePoint & 0x3F); in intArrayToCharArray() 65 dest[di++] = 0xE0 + (codePoint >> 12); in intArrayToCharArray() 66 dest[di++] = 0x80 + ((codePoint >> 6) & 0x3F); in intArrayToCharArray() 67 dest[di++] = 0x80 + (codePoint & 0x3F); in intArrayToCharArray() 70 dest[di++] = 0xF0 + (codePoint >> 18); in intArrayToCharArray() 71 dest[di++] = 0x80 + ((codePoint >> 12) & 0x3F); in intArrayToCharArray() 72 dest[di++] = 0x80 + ((codePoint >> 6) & 0x3F); in intArrayToCharArray() [all …]
|
/packages/services/Car/car-lib/src/com/android/car/internal/ |
D | LargeParcelableBase.java | 71 protected abstract void serialize(@NonNull Parcel dest, int flags); in serialize() argument 78 protected abstract void serializeNullPayload(@NonNull Parcel dest); in serializeNullPayload() argument 118 public void writeToParcel(@NonNull Parcel dest, int flags) { in writeToParcel() argument 119 int startPosition = dest.dataPosition(); in writeToParcel() 128 totalPayloadSize = serializeMemoryFdOrPayloadToParcel(dest, flags, sharedMemory); in writeToParcel() 146 dest.appendFrom(dataParcel, 0, totalPayloadSize); in writeToParcel() 162 totalPayloadSize = serializeMemoryFdOrPayloadToParcel(dest, flags, sharedMemory); in writeToParcel() 167 + " hasSharedMemory:" + !noSharedMemory + " dataSize:" + dest.dataSize()); in writeToParcel() 171 private int updatePayloadSize(Parcel dest, int startPosition) { in updatePayloadSize() argument 172 int lastPosition = dest.dataPosition(); in updatePayloadSize() [all …]
|
/packages/modules/Bluetooth/framework/java/android/bluetooth/ |
D | BluetoothQualityReport.java | 1072 public void writeToParcel(@NonNull Parcel dest, int flags) { in writeToParcel() argument 1073 dest.writeInt(mQualityReportId); in writeToParcel() 1074 dest.writeInt(mPacketType); in writeToParcel() 1075 dest.writeInt(mConnectionHandle); in writeToParcel() 1076 dest.writeInt(mConnectionRole); in writeToParcel() 1077 dest.writeInt(mTxPowerLevel); in writeToParcel() 1078 dest.writeInt(mRssi); in writeToParcel() 1079 dest.writeInt(mSnr); in writeToParcel() 1080 dest.writeInt(mUnusedAfhChannelCount); in writeToParcel() 1081 dest.writeInt(mAfhSelectUnidealChannelCount); in writeToParcel() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WlanWakeReasonAndCounts.java | 105 public void writeToParcel(Parcel dest, int flags) { in writeToParcel() argument 106 dest.writeInt(totalCmdEventWake); in writeToParcel() 107 dest.writeInt(totalDriverFwLocalWake); in writeToParcel() 108 dest.writeInt(totalRxDataWake); in writeToParcel() 110 dest.writeInt(rxUnicast); in writeToParcel() 111 dest.writeInt(rxMulticast); in writeToParcel() 112 dest.writeInt(rxBroadcast); in writeToParcel() 114 dest.writeInt(icmp); in writeToParcel() 115 dest.writeInt(icmp6); in writeToParcel() 116 dest.writeInt(icmp6Ra); in writeToParcel() [all …]
|
/packages/apps/Dialer/java/com/android/voicemail/impl/ |
D | Voicemail.java | 267 public void writeToParcel(Parcel dest, int flags) { in writeToParcel() argument 268 dest.writeLong(timestamp); in writeToParcel() 269 writeCharSequence(dest, number); in writeToParcel() 271 dest.writeInt(0); in writeToParcel() 273 dest.writeInt(1); in writeToParcel() 274 phoneAccount.writeToParcel(dest, flags); in writeToParcel() 276 dest.writeLong(id); in writeToParcel() 277 dest.writeLong(duration); in writeToParcel() 278 writeCharSequence(dest, source); in writeToParcel() 279 writeCharSequence(dest, providerData); in writeToParcel() [all …]
|
/packages/apps/Car/RotaryController/src/com/android/car/rotary/ |
D | FocusFinder.java | 191 private static int minorAxisDistance(int direction, Rect source, Rect dest) { in minorAxisDistance() argument 197 ((source.top + source.height() / 2) - ((dest.top + dest.height() / 2)))); in minorAxisDistance() 202 ((source.left + source.width() / 2) - ((dest.left + dest.width() / 2)))); in minorAxisDistance() 263 private static boolean isToDirectionOf(int direction, Rect src, Rect dest) { in isToDirectionOf() argument 266 return src.left >= dest.right; in isToDirectionOf() 268 return src.right <= dest.left; in isToDirectionOf() 270 return src.top >= dest.bottom; in isToDirectionOf() 272 return src.bottom <= dest.top; in isToDirectionOf() 284 static int majorAxisDistance(int direction, Rect source, Rect dest) { in majorAxisDistance() argument 285 return Math.max(0, majorAxisDistanceRaw(direction, source, dest)); in majorAxisDistance() [all …]
|
/packages/modules/Connectivity/nearby/framework/java/android/nearby/ |
D | NearbyDeviceParcelable.java | 159 public void writeToParcel(@NonNull Parcel dest, int flags) { in writeToParcel() argument 160 dest.writeLong(mDeviceId); in writeToParcel() 161 dest.writeInt(mScanType); in writeToParcel() 162 dest.writeInt(mName == null ? 0 : 1); in writeToParcel() 164 dest.writeString(mName); in writeToParcel() 166 dest.writeInt(mMedium); in writeToParcel() 167 dest.writeInt(mTxPower); in writeToParcel() 168 dest.writeInt(mRssi); in writeToParcel() 169 dest.writeInt(mAction); in writeToParcel() 170 dest.writeParcelable(mPublicCredential, flags); in writeToParcel() [all …]
|
D | PresenceDevice.java | 202 public void writeToParcel(@NonNull Parcel dest, int flags) { in writeToParcel() argument 204 dest.writeInt(name == null ? 0 : 1); in writeToParcel() 206 dest.writeString(name); in writeToParcel() 209 dest.writeInt(mediums.size()); in writeToParcel() 211 dest.writeInt(medium); in writeToParcel() 213 dest.writeInt(getRssi()); in writeToParcel() 214 dest.writeInt(mSalt.length); in writeToParcel() 215 dest.writeByteArray(mSalt); in writeToParcel() 216 dest.writeInt(mSecretId.length); in writeToParcel() 217 dest.writeByteArray(mSecretId); in writeToParcel() [all …]
|
/packages/modules/Bluetooth/framework/java/android/bluetooth/le/ |
D | ScanFilter.java | 134 public void writeToParcel(Parcel dest, int flags) { in writeToParcel() argument 135 dest.writeInt(mDeviceName == null ? 0 : 1); in writeToParcel() 137 dest.writeString(mDeviceName); in writeToParcel() 139 dest.writeInt(mDeviceAddress == null ? 0 : 1); in writeToParcel() 141 dest.writeString(mDeviceAddress); in writeToParcel() 143 dest.writeInt(mServiceUuid == null ? 0 : 1); in writeToParcel() 145 dest.writeParcelable(mServiceUuid, flags); in writeToParcel() 146 dest.writeInt(mServiceUuidMask == null ? 0 : 1); in writeToParcel() 148 dest.writeParcelable(mServiceUuidMask, flags); in writeToParcel() 151 dest.writeInt(mServiceSolicitationUuid == null ? 0 : 1); in writeToParcel() [all …]
|
D | ScanResult.java | 156 public void writeToParcel(Parcel dest, int flags) { in writeToParcel() argument 158 dest.writeInt(1); in writeToParcel() 159 mDevice.writeToParcel(dest, flags); in writeToParcel() 161 dest.writeInt(0); in writeToParcel() 164 dest.writeInt(1); in writeToParcel() 165 dest.writeByteArray(mScanRecord.getBytes()); in writeToParcel() 167 dest.writeInt(0); in writeToParcel() 169 dest.writeInt(mRssi); in writeToParcel() 170 dest.writeLong(mTimestampNanos); in writeToParcel() 171 dest.writeInt(mEventType); in writeToParcel() [all …]
|
/packages/modules/Connectivity/framework/src/android/net/ |
D | QosSocketInfo.java | 203 public void writeToParcel(@NonNull final Parcel dest, final int flags) { in writeToParcel() argument 204 writeToParcelInternal(dest, flags, /*includeFd=*/ true); in writeToParcel() 211 public void writeToParcelWithoutFd(@NonNull final Parcel dest, final int flags) { in writeToParcelWithoutFd() argument 212 writeToParcelInternal(dest, flags, /*includeFd=*/ false); in writeToParcelWithoutFd() 216 @NonNull final Parcel dest, final int flags, boolean includeFd) { in writeToParcelInternal() 217 mNetwork.writeToParcel(dest, 0); in writeToParcelInternal() 220 dest.writeBoolean(true); in writeToParcelInternal() 221 mParcelFileDescriptor.writeToParcel(dest, 0); in writeToParcelInternal() 223 dest.writeBoolean(false); in writeToParcelInternal() 226 dest.writeByteArray(mLocalSocketAddress.getAddress().getAddress()); in writeToParcelInternal() [all …]
|
/packages/modules/HealthFitness/framework/java/android/health/connect/aidl/ |
D | AggregateDataResponseParcel.java | 213 public void writeToParcel(@NonNull Parcel dest, int flags) { in writeToParcel() argument 214 dest.writeInt(mAggregateRecordsResponses.size()); in writeToParcel() 216 dest.writeInt(aggregateRecordsResponse.getAggregateResults().size()); in writeToParcel() 221 dest.writeInt(key); in writeToParcel() 223 dest.writeBoolean(val != null); in writeToParcel() 225 val.putToParcel(dest); in writeToParcel() 228 dest.writeInt(val.getZoneOffset().getTotalSeconds()); in writeToParcel() 230 dest.writeInt(DEFAULT_INT); in writeToParcel() 237 dest.writeStringList(packageNames); in writeToParcel() 243 dest.writeInt(mPeriod.getDays()); in writeToParcel() [all …]
|
/packages/services/Car/cpp/car_binder_lib/largeParcelable/ |
D | LargeParcelableBase.cpp | 127 binder_status_t LargeParcelableBase::writeToParcel(AParcel* dest) const { in writeToParcel() 130 int startPosition = AParcel_getDataPosition(dest); in writeToParcel() 132 if (binder_status_t status = prepareSharedMemory(dest); status != STATUS_OK) { in writeToParcel() 140 AParcel_setDataPosition(dest, startPosition); in writeToParcel() 141 if (binder_status_t status = serializeMemoryFdOrPayload(dest, sharedMemory); in writeToParcel() 148 int32_t totalPayloadSize = AParcel_getDataPosition(dest) - startPosition; in writeToParcel() 233 const SharedMemory* sharedMemory, AParcel* dest) { in writeSharedMemoryCompatibleToParcel() argument 236 return ::ndk::AParcel_writeNullableParcelFileDescriptor(dest, descriptor); in writeSharedMemoryCompatibleToParcel() 241 return ::ndk::AParcel_writeNullableParcelFileDescriptor(dest, descriptor); in writeSharedMemoryCompatibleToParcel() 294 int32_t LargeParcelableBase::updatePayloadSize(AParcel* dest, int32_t startPosition) { in updatePayloadSize() argument [all …]
|
/packages/apps/Car/systemlibs/car-qc-lib/src/com/android/car/qc/ |
D | QCRow.java | 110 public void writeToParcel(Parcel dest, int flags) { in writeToParcel() argument 111 super.writeToParcel(dest, flags); in writeToParcel() 112 dest.writeString(mTitle); in writeToParcel() 113 dest.writeString(mSubtitle); in writeToParcel() 115 dest.writeBoolean(hasStartIcon); in writeToParcel() 117 mStartIcon.writeToParcel(dest, flags); in writeToParcel() 119 dest.writeBoolean(mIsStartIconTintable); in writeToParcel() 121 dest.writeBoolean(hasSlider); in writeToParcel() 123 mSlider.writeToParcel(dest, flags); in writeToParcel() 125 dest.writeInt(mStartItems.size()); in writeToParcel() [all …]
|