/cts/libs/view/src/com/android/view/ |
Position.java | 22 public class Position { 26 public Position(float x, float y) { 40 * @return The vector dot product between {@code this} and another {@link Position}. 42 public double dotProduct(Position other) { 47 * @return The euclidean distance between {@code this} and the other {@link Position}. 49 public double distanceTo(Position other) { 55 * {@code this} to the other {@link Position}, given the origin of the arc. 57 * @param origin The {@link Position} to use as the origin of the arc. 62 public double arcAngleTo(Position other, Position origin) [all...] |
/external/chromium-trace/catapult/third_party/closure_linter/closure_linter/common/ |
matcher.py | 22 from closure_linter.common import position namespace 27 Position = position.Position
|
position.py | 23 class Position(object): 32 """Initialize the position object. 65 """Create a Position representing the end of the given string. 71 The created Position object. 73 return Position(len(string), 0) 77 """Returns whether this position is at the end of the given string. 83 Whether this position is at the end of the given string. 88 """Create a Position representing the beginning of any string. 91 The created Position object. 93 return Position(0, 0 [all...] |
/external/libvpx/libvpx/third_party/libwebm/ |
mkvwriter.hpp | 27 virtual int64 Position() const; 28 virtual int32 Position(int64 position); 31 virtual void ElementStartNotify(uint64 element_id, int64 position);
|
mkvwriter.cpp | 64 int64 MkvWriter::Position() const { 75 int32 MkvWriter::Position(int64 position) { 80 return _fseeki64(file_, position, SEEK_SET); 82 return fseek(file_, position, SEEK_SET);
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/third_party/libwebm/ |
mkvwriter.hpp | 27 virtual int64 Position() const; 28 virtual int32 Position(int64 position); 31 virtual void ElementStartNotify(uint64 element_id, int64 position);
|
mkvwriter.cpp | 68 int64 MkvWriter::Position() const { 79 int32 MkvWriter::Position(int64 position) { 84 return _fseeki64(file_, position, SEEK_SET); 86 return fseek(file_, position, SEEK_SET);
|
/external/llvm/lib/Target/SystemZ/ |
SystemZLongBranch.cpp | 118 // Used to keep track of the current position while iterating over the blocks. 120 // The address that we assume this position has. 144 void skipNonTerminators(BlockPosition &Position, MBBInfo &Block); 145 void skipTerminator(BlockPosition &Position, TerminatorInfo &Terminator, 173 // Position describes the state immediately before Block. Update Block 174 // accordingly and move Position to the end of the block's non-terminator 176 void SystemZLongBranch::skipNonTerminators(BlockPosition &Position, 178 if (Block.Alignment > Position.KnownBits) { 181 Position.Address += ((uint64_t(1) << Block.Alignment) - 182 (uint64_t(1) << Position.KnownBits)) [all...] |
/external/llvm/include/llvm/Support/ |
FormattedStream.h | 24 /// of line and column position, allowing padding out to specific column 33 /// Position - The current output column and line of the data that's 37 std::pair<unsigned, unsigned> Position; 46 /// current_pos - Return the current position within the stream, 49 // Our current position in the stream is all the contents which have been 50 // written to the underlying stream (*not* the current position of the 56 /// position after output. 90 : TheStream(nullptr), Position(0, 0) { 93 explicit formatted_raw_ostream() : TheStream(nullptr), Position(0, 0) { 110 unsigned getColumn() { return Position.first; [all...] |
/external/llvm/lib/Support/ |
FormattedStream.cpp | 24 static void UpdatePosition(std::pair<unsigned, unsigned> &Position, const char *Ptr, size_t Size) { 25 unsigned &Column = Position.first; 26 unsigned &Line = Position.second; 55 UpdatePosition(Position, Scanned, Size - (Scanned - Ptr)); 57 UpdatePosition(Position, Ptr, Size);
|
YAMLParser.cpp | 214 StringRef::iterator Position= Range.begin(); 218 if ((*Position & 0x80) == 0) { 219 return std::make_pair(*Position, 1); 223 if (Position + 1 != End && 224 ((*Position & 0xE0) == 0xC0) && 225 ((*(Position + 1) & 0xC0) == 0x80)) { 226 uint32_t codepoint = ((*Position & 0x1F) << 6) | 227 (*(Position + 1) & 0x3F); 233 if (Position + 2 != End && 234 ((*Position & 0xF0) == 0xE0) & [all...] |
Path.cpp | 236 i.Position = 0; 243 i.Position = path.size(); 248 assert(Position < Path.size() && "Tried to increment past end!"); 250 // Increment Position to past the current component 251 Position += Component.size(); 254 if (Position == Path.size()) { 267 if (is_separator(Path[Position])) { 275 Component = Path.substr(Position, 1); 280 while (Position != Path.size() && 281 is_separator(Path[Position])) { [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
SelectionHandle.java | 42 /** The position of the handle in the selection rectangle */ 43 enum Position { 56 private Position(int swtCursor) { 89 /** The position of the handle in the selection rectangle */ 90 private final Position mPosition; 94 * corresponding to a handle at the given {@link Position}. 98 * @param position the position of the handle in the selection rectangle 100 public SelectionHandle(int centerX, int centerY, Position position) { [all...] |
SelectionHandles.java | 22 import com.android.ide.eclipse.adt.internal.editors.layout.gle2.SelectionHandle.Position; 55 * @param point the mouse position (in layout coordinates) to test 107 mHandles.add(new SelectionHandle(x1, my, Position.LEFT_MIDDLE)); 109 mHandles.add(new SelectionHandle(x1, y1, Position.TOP_LEFT)); 112 mHandles.add(new SelectionHandle(x1, y2, Position.BOTTOM_LEFT)); 116 mHandles.add(new SelectionHandle(x2, my, Position.RIGHT_MIDDLE)); 118 mHandles.add(new SelectionHandle(x2, y1, Position.TOP_RIGHT)); 121 mHandles.add(new SelectionHandle(x2, y2, Position.BOTTOM_RIGHT)); 125 mHandles.add(new SelectionHandle(mx, y1, Position.TOP_MIDDLE)); 128 mHandles.add(new SelectionHandle(mx, y2, Position.BOTTOM_MIDDLE)) [all...] |
/external/vulkan-validation-layers/libs/glm/gtx/ |
gradient_paint.hpp | 61 detail::tvec2<T, P> const & Position); 69 detail::tvec2<T, P> const & Position);
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
NullTransliterator.java | 31 Position offsets, boolean incremental) {
|
/external/icu/icu4j/main/classes/translit/src/com/ibm/icu/text/ |
NullTransliterator.java | 30 Position offsets, boolean incremental) {
|
/frameworks/native/include/input/ |
VelocityTracker.h | 33 struct Position { 81 // The positions array contains position information for each pointer in order by 83 void addMovement(nsecs_t eventTime, BitSet32 idBits, const Position* positions); 88 // Gets the velocity of the specified pointer id in position units per second. 131 const VelocityTracker::Position* positions) = 0; 163 const VelocityTracker::Position* positions); 178 VelocityTracker::Position positions[MAX_POINTERS]; 180 inline const VelocityTracker::Position& getPosition(uint32_t id) const { 206 const VelocityTracker::Position* positions); 240 const VelocityTracker::Position* positions) [all...] |
/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/translit/ |
AnyTransliterator.java | 26 private Position run; 33 run = new Position(); 43 Position offsets, boolean isIncremental) { 103 // should be method on Position 104 public static String toString(Position offsets) { 113 public void reset(Replaceable text, Position expanse); 114 public void getExpanse(Position run); 116 public boolean next(Position run); 117 public void getCurrent(Position run); 137 private Position expanse = new Position() [all...] |
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/util/ |
XmlEditor.java | 91 Position rootStartTag = toPosition(root.getStart()); 92 Position rootEndTag = toPosition(root.content().getStart()); 124 Position start1 = toPosition(o1.getContext().getStart()); 125 Position start2 = toPosition(o2.getContext().getStart()); 136 Position endTagPosition = endTagPosition(element); 168 private static Position toPosition(Token token) { 169 return new Position(token.getLine() - 1, token.getCharPositionInLine()); 172 private static Position toEndPosition(Token token) { 173 return new Position(token.getLine() - 1, 213 private static Position endTagPosition(ElementContext context) 223 Position position = toPosition(context.content().getStart()); local [all...] |
/art/compiler/utils/arm/ |
assembler_thumb2_test.cc | 426 EXPECT_EQ(static_cast<uint32_t>(label0.Position()) + 0u, 427 __ GetAdjustedPosition(label0.Position())); 428 EXPECT_EQ(static_cast<uint32_t>(label1.Position()) + 0u, 429 __ GetAdjustedPosition(label1.Position())); 430 EXPECT_EQ(static_cast<uint32_t>(label2.Position()) + 0u, 431 __ GetAdjustedPosition(label2.Position())); 462 EXPECT_EQ(static_cast<uint32_t>(label0.Position()) + 2u, 463 __ GetAdjustedPosition(label0.Position())); 464 EXPECT_EQ(static_cast<uint32_t>(label1.Position()) + 4u, 465 __ GetAdjustedPosition(label1.Position())); [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
UtilityExtensions.java | 56 Transliterator.Position pos) { 69 Transliterator.Position pos) { 89 appendTo.append("INVALID Position {cs=" + 101 Transliterator.Position pos) { 110 Transliterator.Position pos) {
|
/external/icu/icu4j/main/classes/translit/src/com/ibm/icu/impl/ |
UtilityExtensions.java | 54 Transliterator.Position pos) { 67 Transliterator.Position pos) { 87 appendTo.append("INVALID Position {cs=" + 99 Transliterator.Position pos) { 108 Transliterator.Position pos) {
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/ |
BinaryDictIOUtils.java | 59 private static final class Position { 67 public Position(int address, int length) { 83 Stack<Position> stack = new Stack<>(); 86 Position initPos = new Position(bodyOffset, 0); 90 Position p = stack.peek(); 94 p.mNumOfPtNode + ", position=" + p.mPosition + ", length=" + p.mLength); 100 if (p.mNumOfPtNode == Position.NOT_READ_PTNODE_COUNT) { 131 final Position childrenPos = new Position(ptNodeInfo.mChildrenAddress, index) [all...] |
/external/chromium-trace/catapult/third_party/closure_linter/closure_linter/ |
ecmalintrules.py | 39 from closure_linter.common import position namespace 58 Position = position.Position 221 position=Position.AtBeginning()) 237 token.previous, position=Position.All(token.previous.string)) 245 position=Position.AtBeginning() [all...] |