Home
last modified time | relevance | path

Searched refs:preferred (Results 1 – 25 of 68) sorted by relevance

123

/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/structs/
DIaPrefixOption.java70 public final long preferred; field in IaPrefixOption
82 protected IaPrefixOption(final short code, final short length, final long preferred, in IaPrefixOption() argument
86 this.preferred = preferred; in IaPrefixOption()
102 public IaPrefixOption(final short length, final long preferred, final long valid, in IaPrefixOption() argument
104 this((byte) DHCP6_OPTION_IAPREFIX, length, preferred, valid, prefixLen, prefix); in IaPrefixOption()
113 if (preferred < 0) { in isValid()
121 if (preferred > valid) { in isValid()
140 return preferred == 0 && valid == 0; in withZeroLifetimes()
146 public static ByteBuffer build(final short length, final long preferred, final long valid, in build() argument
149 length /* 25 + IAPrefix options length */, preferred, valid, prefixLen, prefix); in build()
[all …]
DIaAddressOption.java62 public final long preferred; field in IaAddressOption
67 final long preferred, final long valid) { in IaAddressOption() argument
71 this.preferred = preferred; in IaAddressOption()
79 final long preferred, final long valid) { in build() argument
81 length /* 24 + IAaddr-options length */, address, preferred, valid); in build()
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/
DStructNdOptPio.java61 public final long preferred; field in StructNdOptPio
66 public StructNdOptPio(byte flags, long preferred, long valid, @NonNull final IpPrefix prefix) { in StructNdOptPio() argument
70 this.preferred = preferred; in StructNdOptPio()
103 buf.put(PrefixInformationOption.build(prefix, flags, valid, preferred)); in writeToByteBuffer()
118 HexDump.toHexString(flags), preferred, valid, prefix); in toString()
DStructIfacacheInfo.java42 public final long preferred; field in StructIfacacheInfo
50 StructIfacacheInfo(long preferred, long valid, long cstamp, long tstamp) { in StructIfacacheInfo() argument
51 this.preferred = preferred; in StructIfacacheInfo()
DStructPrefixCacheInfo.java47 StructPrefixCacheInfo(long preferred, long valid) { in StructPrefixCacheInfo() argument
48 this.preferred_time = preferred; in StructPrefixCacheInfo()
DRtNetlinkAddressMessage.java190 short prefixlen, int flags, byte scope, int ifIndex, long preferred, long valid) { in newRtmNewAddressMessage() argument
206 msg.mIfacacheInfo = new StructIfacacheInfo(preferred, valid, 0 /* cstamp */, in newRtmNewAddressMessage()
DNetlinkUtils.java193 short prefixlen, int flags, byte scope, long preferred, long valid) { in sendRtmNewAddressRequest() argument
196 prefixlen, flags, scope, ifIndex, preferred, valid); in sendRtmNewAddressRequest()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/netlink/
DStructNdOptPioTest.java73 long preferred, long valid, final IpPrefix prefix) { in assertPioOptMatches() argument
77 assertEquals(preferred, opt.preferred); in assertPioOptMatches()
88 long preferred, long valid, final IpPrefix prefix) { in doPioParsingTest() argument
91 assertPioOptMatches(opt, length, flags, preferred, valid, prefix); in doPioParsingTest()
142 long valid, long preferred, final byte[] prefix) { in makePioOption() argument
144 flags, valid, preferred, 0 /* reserved */, prefix); in makePioOption()
DRtNetlinkAddressMessageTest.java96 assertEquals(3600L, addrMsg.getIfacacheInfo().preferred); in testParseRtmNewAddress()
/packages/apps/Gallery2/src/com/android/photos/drawables/
DAutoThumbnailDrawable.java233 byte[] preferred = getPreferredImageBytes(data);
234 boolean hasPreferred = (preferred != null && preferred.length > 0);
237 BitmapFactory.decodeByteArray(preferred, 0, preferred.length, mOptions);
262 b = BitmapFactory.decodeByteArray(preferred, 0, preferred.length, mOptions);
/packages/apps/Dialer/java/com/android/dialer/preferredsim/impl/
DPreferredAccountWorkerImpl.java107 Optional<PhoneAccountHandle> preferred = getPreferredAccount(appContext, dataId.get()); in doInBackground() local
108 if (preferred.isPresent()) { in doInBackground()
109 return usePreferredSim(preferred.get(), candidates, dataId.get()); in doInBackground()
142 PhoneAccountHandle preferred, List<PhoneAccountHandle> candidates, String dataId) { in usePreferredSim() argument
144 if (isSelectable(preferred)) { in usePreferredSim()
146 resultBuilder = Result.builder(preferred); in usePreferredSim()
/packages/modules/NeuralNetworks/tools/api/
DOperandTypes.t40 * DEPRECATED. Since HAL version 1.2, extensions are the preferred
48 * DEPRECATED. Since HAL version 1.2, extensions are the preferred
DOperationTypes.t39 * DEPRECATED. Since HAL version 1.2, extensions are the preferred
/packages/modules/NetworkStack/src/android/net/dhcp6/
DDhcp6Packet.java351 min = (ipo.preferred != 0 && min > ipo.preferred) ? ipo.preferred : min; in getMinimalPreferredLifetime()
378 toBeRenewed.removeIf(ipo -> ipo.preferred == 0 && ipo.valid == 0); in getRenewableIaPrefixes()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DIpv6UtilsTest.java150 long valid, long preferred) { in assertPioEquals() argument
155 assertEquals(preferred, pio.preferredLifetime); in assertPioEquals()
/packages/apps/Nfc/flags/
Dnfc_flags.aconfig29 description: "Automatically disable observe mode if preferred service is misbehaving"
/packages/apps/Camera2/src/com/android/camera/
DVideoModule.java817 Size preferred = new Size(capabilities.getPreferredPreviewSizeForVideo()); in getDesiredPreviewSize() local
818 final int preferredPreviewSizeShortSide = (preferred.width() < preferred.height() ? in getDesiredPreviewSize()
819 preferred.width() : preferred.height()); in getDesiredPreviewSize()
821 preferred = new Size(profile.videoFrameWidth, profile.videoFrameHeight); in getDesiredPreviewSize()
823 int product = preferred.width() * preferred.height(); in getDesiredPreviewSize()
/packages/services/Car/cpp/telemetry/proto/
Devs.proto19 * It's preferred to group CarData messages used in a single process or service
/packages/modules/NetworkStack/src/android/net/ip/
DIpClientLinkObserver.java575 if (cacheInfo.preferred < Integer.toUnsignedLong(INFINITE_LEASE)) { in processRtNetlinkAddressMessage()
576 deprecationTime = now + (cacheInfo.preferred /* seconds */ * 1000); in processRtNetlinkAddressMessage()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothDetailsProfilesControllerTest.java392 private A2dpProfile addMockA2dpProfile(boolean preferred, boolean supportsHighQualityAudio, in addMockA2dpProfile() argument
403 when(profile.isEnabled(mDevice)).thenReturn(preferred); in addMockA2dpProfile()
/packages/modules/Bluetooth/system/gd/docs/testing/
Dcert_test.md41preferred test runner is the [Android ACTS](https://android.googlesource.com/platform/tools/test/c…
73 `lunch` to a preferred target
/packages/services/DeviceAsWebcam/res/raw/
DREADME.md9 This file contains a mapping of the preferred physical streams that are to be
/packages/modules/Bluetooth/system/btif/src/
Dbtif_av.cc325 void SetMandatoryCodecPreferred(bool preferred) { in SetMandatoryCodecPreferred() argument
326 mandatory_codec_preferred_ = preferred; in SetMandatoryCodecPreferred()
3065 bool preferred = callbacks != nullptr && in btif_av_query_mandatory_codec_priority() local
3067 if (preferred) { in btif_av_query_mandatory_codec_priority()
3068 auto apply_priority = [](const RawAddress& peer_address, bool preferred) { in btif_av_query_mandatory_codec_priority() argument
3074 peer->SetMandatoryCodecPreferred(preferred); in btif_av_query_mandatory_codec_priority()
3077 FROM_HERE, base::BindOnce(apply_priority, peer_address, preferred)); in btif_av_query_mandatory_codec_priority()
/packages/modules/AdServices/adservices/linter/documentation/
DRoomDatabaseMigrationDetector.md12 // This is not enforced but a preferred pattern.
/packages/apps/LegacyCamera/src/com/android/camera/
DVideoCamera.java798 Size preferred = mParameters.getPreferredPreviewSizeForVideo(); in getDesiredPreviewSize() local
799 int product = preferred.width * preferred.height; in getDesiredPreviewSize()

123