Searched refs:snap (Results 1 - 4 of 4) sorted by relevance

/frameworks/base/libs/hwui/
H A DGlopBuilder.h85 GlopBuilder& setModelViewMapUnitToRectOptionalSnap(bool snap, const Rect& destination) { argument
86 if (snap) {
94 GlopBuilder& setModelViewOffsetRectOptionalSnap(bool snap, argument
96 if (snap) {
103 // pass empty rect since not needed for damage / snap
H A DOpenGLRenderer.cpp1469 // TODO: snap doesn't need to touch transform, only texture filter.
1470 bool snap = pureTranslate; local
1483 .setModelViewOffsetRectOptionalSnap(snap, x, y, Rect(bounds.getWidth(), bounds.getHeight()))
/frameworks/base/core/java/com/android/internal/policy/
H A DDividerSnapAlgorithm.java31 * Calculates the snap targets and the snap position given a position and a velocity. All positions
42 * 3 snap targets: left/top has 16:9 ratio (for videos), 1:1, and right/bottom has 16:9 ratio
47 * 3 snap targets: fixed ratio, 1:1, (1 - fixed ratio)
52 * 1 snap target: 1:1
150 return snap(position, hardDismiss);
160 SnapTarget target = snap(position, false /* hardDismiss */);
226 private SnapTarget snap(int position, boolean hardDismiss) { method in class:DividerSnapAlgorithm
367 * Represents a snap target for the divider.
378 /** Position of this snap targe
[all...]
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/
H A DPhotoView.java64 /** Amount of time to wait before starting snap animation; in milliseconds */
70 /** Amount of translation needed before starting a snap animation */
224 snap();
651 // snap transformations; we don't animate
1051 private void snap() { method in class:PhotoView
1055 // Determine how much to snap in the horizontal direction [if any]
1075 // Determine how much to snap in the vertical direction [if any]
1107 * @param animate if {@code true}, animate during the rotation. Otherwise, snap rotate.
1205 * Stops the animation in place. It does not snap the image to its final zoom.
1283 * Stops the animation in place. It does not snap th
[all...]

Completed in 8712 milliseconds