Home
last modified time | relevance | path

Searched refs:destination (Results 1 – 25 of 162) sorted by relevance

1234567

/frameworks/av/media/libaaudio/tests/
Dtest_linear_ramp.cpp28 float destination[4] = {1.0f, 1.0f, 1.0f, 1.0f }; in TEST() local
42 AAudio_linearRamp(source, destination, 4, 1, levelFrom, levelTo); in TEST()
43 EXPECT_EQ(0.0f, destination[0]); in TEST()
44 EXPECT_EQ(1.0f, destination[1]); in TEST()
45 EXPECT_EQ(2.0f, destination[2]); in TEST()
46 EXPECT_EQ(3.0f, destination[3]); in TEST()
53 AAudio_linearRamp(source, destination, 4, 1, levelFrom, levelTo); in TEST()
54 EXPECT_EQ(4.0f, destination[0]); in TEST()
55 EXPECT_EQ(5.0f, destination[1]); in TEST()
56 EXPECT_EQ(6.0f, destination[2]); in TEST()
[all …]
/frameworks/support/navigation/common/src/test/java/androidx/navigation/
DNavGraphTest.java57 NavDestination destination = new NavDestination(mock(Navigator.class)); in createFirstDestination() local
58 destination.setId(FIRST_DESTINATION_ID); in createFirstDestination()
59 return destination; in createFirstDestination()
63 NavDestination destination = new NavDestination(mock(Navigator.class)); in createSecondDestination() local
64 destination.setId(SECOND_DESTINATION_ID); in createSecondDestination()
65 return destination; in createSecondDestination()
68 private NavGraph createGraphWithDestination(NavDestination destination) { in createGraphWithDestination() argument
70 graph.addDestination(destination); in createGraphWithDestination()
83 NavDestination destination = new NavDestination(mock(Navigator.class)); in addDestinationWithoutId() local
84 graph.addDestination(destination); in addDestinationWithoutId()
[all …]
DNavDestinationTest.java45 NavDestination destination = new NavDestination(mock(Navigator.class)); in buildDeepLinkIds() local
46 destination.setId(DESTINATION_ID); in buildDeepLinkIds()
50 destination.setParent(parent); in buildDeepLinkIds()
51 int[] deepLinkIds = destination.buildDeepLinkIds(); in buildDeepLinkIds()
59 NavDestination destination = new NavDestination(mock(Navigator.class)); in putActionByDestinationId() local
60 destination.putAction(ACTION_ID, DESTINATION_ID); in putActionByDestinationId()
62 assertThat(destination.getAction(ACTION_ID), not(nullValue())); in putActionByDestinationId()
63 assertThat(destination.getAction(ACTION_ID).getDestinationId(), is(DESTINATION_ID)); in putActionByDestinationId()
68 NavDestination destination = new NavDestination(mock(Navigator.class)); in putActionWithInvalidDestinationId() local
69 destination.putAction(INVALID_ACTION_ID, DESTINATION_ID); in putActionWithInvalidDestinationId()
[all …]
/frameworks/av/media/libaaudio/src/utility/
DAAudioUtilities.cpp78 int16_t *destination, in AAudioConvert_floatToPcm16() argument
84 *destination++ = clipAndClampFloatToPcm16(sample, scaler); in AAudioConvert_floatToPcm16()
89 int16_t *destination, in AAudioConvert_floatToPcm16() argument
100 *destination++ = clipAndClampFloatToPcm16(sample, scaler); in AAudioConvert_floatToPcm16()
109 float *destination, in AAudioConvert_pcm16ToFloat() argument
114 destination[i] = source[i] * scaler; in AAudioConvert_pcm16ToFloat()
120 float *destination, in AAudioConvert_pcm16ToFloat() argument
129 *destination++ = *source++ * scaler; in AAudioConvert_pcm16ToFloat()
138 float *destination, in AAudio_linearRamp() argument
151 *destination++ = sample * scaler; in AAudio_linearRamp()
[all …]
DAAudioUtilities.h56 int16_t *destination,
74 int16_t *destination,
98 float *destination,
116 float *destination,
136 float *destination,
156 int16_t *destination,
178 const FormattedData &destination,
185 const FormattedData &destination,
191 const FormattedData &destination,
/frameworks/base/core/java/android/net/
DRouteInfo.java102 public RouteInfo(IpPrefix destination, InetAddress gateway, String iface, int type) { in RouteInfo() argument
122 if (destination == null) { in RouteInfo()
125 destination = new IpPrefix(Inet4Address.ANY, 0); in RouteInfo()
127 destination = new IpPrefix(Inet6Address.ANY, 0); in RouteInfo()
132 destination); in RouteInfo()
139 if (destination.getAddress() instanceof Inet4Address) { in RouteInfo()
147 if ((destination.getAddress() instanceof Inet4Address && in RouteInfo()
149 (destination.getAddress() instanceof Inet6Address && in RouteInfo()
153 mDestination = destination; // IpPrefix objects are immutable. in RouteInfo()
163 public RouteInfo(IpPrefix destination, InetAddress gateway, String iface) { in RouteInfo() argument
[all …]
/frameworks/base/telecomm/java/android/telecom/
DParcelableCall.java381 public void writeToParcel(Parcel destination, int flags) { in writeToParcel() argument
382 destination.writeString(mId); in writeToParcel()
383 destination.writeInt(mState); in writeToParcel()
384 destination.writeParcelable(mDisconnectCause, 0); in writeToParcel()
385 destination.writeList(mCannedSmsResponses); in writeToParcel()
386 destination.writeInt(mCapabilities); in writeToParcel()
387 destination.writeInt(mProperties); in writeToParcel()
388 destination.writeLong(mConnectTimeMillis); in writeToParcel()
389 destination.writeParcelable(mHandle, 0); in writeToParcel()
390 destination.writeInt(mHandlePresentation); in writeToParcel()
[all …]
DParcelableConnection.java306 public void writeToParcel(Parcel destination, int flags) { in writeToParcel() argument
307 destination.writeParcelable(mPhoneAccount, 0); in writeToParcel()
308 destination.writeInt(mState); in writeToParcel()
309 destination.writeInt(mConnectionCapabilities); in writeToParcel()
310 destination.writeParcelable(mAddress, 0); in writeToParcel()
311 destination.writeInt(mAddressPresentation); in writeToParcel()
312 destination.writeString(mCallerDisplayName); in writeToParcel()
313 destination.writeInt(mCallerDisplayNamePresentation); in writeToParcel()
314 destination.writeStrongBinder( in writeToParcel()
316 destination.writeInt(mVideoState); in writeToParcel()
[all …]
DParcelableConference.java175 public void writeToParcel(Parcel destination, int flags) { in writeToParcel() argument
176 destination.writeParcelable(mPhoneAccount, 0); in writeToParcel()
177 destination.writeInt(mState); in writeToParcel()
178 destination.writeInt(mConnectionCapabilities); in writeToParcel()
179 destination.writeList(mConnectionIds); in writeToParcel()
180 destination.writeLong(mConnectTimeMillis); in writeToParcel()
181 destination.writeStrongBinder( in writeToParcel()
183 destination.writeInt(mVideoState); in writeToParcel()
184 destination.writeParcelable(mStatusHints, 0); in writeToParcel()
185 destination.writeBundle(mExtras); in writeToParcel()
[all …]
DConnectionRequest.java364 public void writeToParcel(Parcel destination, int flags) { in writeToParcel() argument
365 destination.writeParcelable(mAccountHandle, 0); in writeToParcel()
366 destination.writeParcelable(mAddress, 0); in writeToParcel()
367 destination.writeParcelable(mExtras, 0); in writeToParcel()
368 destination.writeInt(mVideoState); in writeToParcel()
369 destination.writeString(mTelecomCallId); in writeToParcel()
370 destination.writeInt(mShouldShowIncomingCallUi ? 1 : 0); in writeToParcel()
371 destination.writeParcelable(mRttPipeFromInCall, 0); in writeToParcel()
372 destination.writeParcelable(mRttPipeToInCall, 0); in writeToParcel()
/frameworks/layoutlib/bridge/
Dupdate_nav_icons.sh40 destination="$BARS/v$CURRENT_API/$density/"
41 mkdir -p "$destination" # create if not present.
42 cp -v "$FB/packages/SystemUI/res/drawable-$density/$icon" "$destination"
47 destination="$BARS/v$CURRENT_API/ldrtl-$density/"
48 mkdir -p "$destination"
49 cp -v "$FB/packages/SystemUI/res/drawable-ldrtl-$density/$icon" "$destination"
/frameworks/opt/chips/src/com/android/ex/chips/
DRecipientEntry.java101 protected RecipientEntry(int entryType, String displayName, String destination, in RecipientEntry() argument
105 this(entryType, displayName, destination, destinationType, in RecipientEntry()
110 protected RecipientEntry(int entryType, String displayName, String destination, in RecipientEntry() argument
117 mDestination = destination; in RecipientEntry()
133 protected RecipientEntry(int entryType, String displayName, String destination, in RecipientEntry() argument
137 this(entryType, displayName, destination, destinationType, destinationLabel, in RecipientEntry()
191 String destination, int destinationType, String destinationLabel, long contactId, in constructTopLevelEntry() argument
195 displayName, destination), destination, destinationType, destinationLabel, in constructTopLevelEntry()
201 String destination, int destinationType, String destinationLabel, long contactId, in constructTopLevelEntry() argument
205 displayName, destination), destination, destinationType, destinationLabel, in constructTopLevelEntry()
[all …]
/frameworks/support/navigation/fragment/src/androidTest/java/androidx/navigation/fragment/
DFragmentNavigatorTest.java63 FragmentNavigator.Destination destination = fragmentNavigator.createDestination(); in testNavigate() local
64 destination.setFragmentClass(EmptyFragment.class); in testNavigate()
66 fragmentNavigator.navigate(destination, null, null); in testNavigate()
79 FragmentNavigator.Destination destination = fragmentNavigator.createDestination(); in testSingleTopInitial() local
80 destination.setFragmentClass(EmptyFragment.class); in testSingleTopInitial()
82 fragmentNavigator.navigate(destination, null, null); in testSingleTopInitial()
87 fragmentNavigator.navigate(destination, null, in testSingleTopInitial()
106 FragmentNavigator.Destination destination = fragmentNavigator.createDestination(); in testSingleTop() local
107 destination.setFragmentClass(EmptyFragment.class); in testSingleTop()
110 fragmentNavigator.navigate(destination, null, null); in testSingleTop()
[all …]
/frameworks/support/navigation/common/ktx/src/androidTest/java/androidx/navigation/
DNavDestinationBuilderTest.kt38 val destination = provider.navDestination(DESTINATION_ID) { } in navDestination() constant
40 DESTINATION_ID, destination.id) in navDestination()
45 val destination = provider.navDestination(DESTINATION_ID) { in navDestinationLabel() constant
49 LABEL, destination.label) in navDestinationLabel()
55 val destination = provider.navDestination(DESTINATION_ID) { in navDestinationDefaultArguments() constant
59 arguments, destination.defaultArguments) in navDestinationDefaultArguments()
64 val destination = provider.navDestination(DESTINATION_ID) { in navDestinationAction() constant
72 val action = destination.getAction(ACTION_ID) in navDestinationAction()
DNavGraphTest.kt38 val destination = NavDestination(navigator).apply { id = DESTINATION_ID } in plusAssign() constant
39 graph += destination in plusAssign()
40 assertSame("plusAssign destination should be retrieved with get", destination, in plusAssign()
47 val destination = NavDestination(navigator).apply { id = DESTINATION_ID } in minusAssign() constant
48 graph += destination in minusAssign()
49 assertSame("plusAssign destination should be retrieved with get", destination, in minusAssign()
51 graph -= destination in minusAssign()
/frameworks/support/navigation/runtime/ktx/src/main/java/androidx/navigation/
DActivityNavigatorDestinationBuilder.kt33 ) = destination(ActivityNavigatorDestinationBuilder( in <lambda>()
57 super.build().also { destination -> in <lambda>() method
59 destination.setComponentName(ComponentName(context, clazz.java)) in <lambda>()
61 destination.action = action in <lambda>()
62 destination.data = data in <lambda>()
63 destination.dataPattern = dataPattern in <lambda>()
/frameworks/support/navigation/safe-args-generator/src/main/kotlin/androidx/navigation/safe/args/generator/
DNavSafeArgsGenerator.kt34 fun writeJavaFiles(destination: Destination) { in <lambda>()
35 if (destination.actions.isNotEmpty()) { in <lambda>()
36 javaFiles.add(generateDirectionsJavaFile(destination)) in <lambda>()
38 if (destination.args.isNotEmpty()) { in <lambda>()
39 javaFiles.add(generateArgsJavaFile(destination)) in <lambda>()
41 destination.nested.forEach(::writeJavaFiles) in <lambda>()
/frameworks/support/navigation/common/src/main/java/androidx/navigation/
DNavGraphNavigator.java52 public void navigate(@NonNull NavGraph destination, @Nullable Bundle args, in navigate() argument
54 int startId = destination.getStartDestination(); in navigate()
58 + (destination.getId() != 0 in navigate()
59 ? NavDestination.getDisplayName(mContext, destination.getId()) in navigate()
62 NavDestination startDestination = destination.findNode(startId, false); in navigate()
68 dispatchOnNavigatorNavigated(destination.getId(), BACK_STACK_DESTINATION_ADDED); in navigate()
/frameworks/base/core/java/android/hardware/camera2/params/
DRggbChannelVector.java147 public void copyTo(final float[] destination, final int offset) { in copyTo() argument
148 checkNotNull(destination, "destination must not be null"); in copyTo()
149 if (destination.length - offset < COUNT) { in copyTo()
153 destination[offset + RED] = mRed; in copyTo()
154 destination[offset + GREEN_EVEN] = mGreenEven; in copyTo()
155 destination[offset + GREEN_ODD] = mGreenOdd; in copyTo()
156 destination[offset + BLUE] = mBlue; in copyTo()
DColorSpaceTransform.java162 public void copyElements(Rational[] destination, int offset) { in copyElements() argument
164 checkNotNull(destination, "destination must not be null"); in copyElements()
165 if (destination.length - offset < COUNT) { in copyElements()
173 destination[i + offset] = new Rational(numerator, denominator); in copyElements()
197 public void copyElements(int[] destination, int offset) { in copyElements() argument
199 checkNotNull(destination, "destination must not be null"); in copyElements()
200 if (destination.length - offset < COUNT_INT) { in copyElements()
206 destination[i + offset] = mElements[i]; in copyElements()
/frameworks/support/navigation/common/ktx/src/main/java/androidx/navigation/
DNavDestinationBuilder.kt79 return navigator.createDestination().also { destination -> in <lambda>() method
80 destination.id = id in <lambda>()
81 destination.label = label in <lambda>()
82 destination.setDefaultArguments(defaultArguments) in <lambda>()
84 destination.addDeepLink(deepLink) in <lambda>()
87 destination.putAction(actionId, action) in <lambda>()
/frameworks/support/navigation/testing/src/main/java/androidx/navigation/testing/
DTestNavigator.java45 public void navigate(@NonNull Destination destination, @Nullable Bundle args, in navigate() argument
48 && mBackStack.peekLast().first.getId() == destination.getId()) { in navigate()
50 mBackStack.add(new Pair<>(destination, args)); in navigate()
51 dispatchOnNavigatorNavigated(destination.getId(), BACK_STACK_UNCHANGED); in navigate()
53 mBackStack.add(new Pair<>(destination, args)); in navigate()
54 dispatchOnNavigatorNavigated(destination.getId(), BACK_STACK_DESTINATION_ADDED); in navigate()
/frameworks/av/drm/libmediadrm/
DICrypto.cpp103 const DestinationBuffer &destination, AString *errorDetailMsg) { in decrypt()
137 data.writeInt32((int32_t)destination.mType); in decrypt()
138 if (destination.mType == kDestinationTypeNativeHandle) { in decrypt()
139 if (destination.mHandle == NULL) { in decrypt()
142 data.writeNativeHandle(destination.mHandle); in decrypt()
144 if (destination.mSharedMemory == NULL) { in decrypt()
147 data.writeStrongBinder(IInterface::asBinder(destination.mSharedMemory)); in decrypt()
350 DestinationBuffer destination; in onTransact() local
351 destination.mType = (DestinationType)data.readInt32(); in onTransact()
352 if (destination.mType == kDestinationTypeNativeHandle) { in onTransact()
[all …]
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/
DCryptoPlugin.cpp57 const DestinationBuffer& destination, in decrypt() argument
73 if (destination.type == BufferType::SHARED_MEMORY) { in decrypt()
74 const SharedBuffer& dest = destination.nonsecureMemory; in decrypt()
97 if (destination.type == BufferType::SHARED_MEMORY) { in decrypt()
98 const SharedBuffer& destBuffer = destination.nonsecureMemory; in decrypt()
109 destPtr = static_cast<void *>(base + destination.nonsecureMemory.offset); in decrypt()
110 } else if (destination.type == BufferType::NATIVE_HANDLE) { in decrypt()
112 destination.secureMemory.getNativeHandle()); in decrypt()
/frameworks/base/core/java/android/hardware/camera2/utils/
DParamsUtils.java169 public static void convertRectF(Rect source, RectF destination) { in convertRectF() argument
171 checkNotNull(destination, "destination must not be null"); in convertRectF()
173 destination.left = source.left; in convertRectF()
174 destination.right = source.right; in convertRectF()
175 destination.bottom = source.bottom; in convertRectF()
176 destination.top = source.top; in convertRectF()

1234567