/frameworks/minikin/tests/unittest/ |
D | BidiUtilsTest.cpp | 40 EXPECT_FALSE((*it).isRtl); in TEST() 49 EXPECT_FALSE((*it).isRtl); in TEST() 58 EXPECT_FALSE((*it).isRtl); in TEST() 67 EXPECT_FALSE((*it).isRtl); in TEST() 76 EXPECT_FALSE((*it).isRtl); in TEST() 85 EXPECT_TRUE((*it).isRtl); in TEST() 99 EXPECT_TRUE((*it).isRtl); in TEST() 108 EXPECT_TRUE((*it).isRtl); in TEST() 117 EXPECT_TRUE((*it).isRtl); in TEST() 126 EXPECT_TRUE((*it).isRtl); in TEST() [all …]
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/ |
D | DrawableLayoutDirectionHelper.java | 36 boolean isRtl = in createRelativeInsetDrawable() 40 drawable, insetStart, insetTop, insetEnd, insetBottom, isRtl); in createRelativeInsetDrawable() 55 boolean isRtl = false; in createRelativeInsetDrawable() 58 isRtl = layoutDirection == View.LAYOUT_DIRECTION_RTL; in createRelativeInsetDrawable() 61 drawable, insetStart, insetTop, insetEnd, insetBottom, isRtl); in createRelativeInsetDrawable() 92 boolean isRtl) { in createRelativeInsetDrawable() argument 93 if (isRtl) { in createRelativeInsetDrawable()
|
/frameworks/base/core/java/android/text/ |
D | BidiFormatter.java | 308 final boolean isRtl = heuristic.isRtl(str, 0, str.length()); in markAfter() 310 if (!mIsRtlContext && (isRtl || getExitDir(str) == DIR_RTL)) { in markAfter() 313 if (mIsRtlContext && (!isRtl || getExitDir(str) == DIR_LTR)) { in markAfter() 337 final boolean isRtl = heuristic.isRtl(str, 0, str.length()); in markBefore() 339 if (!mIsRtlContext && (isRtl || getEntryDir(str) == DIR_RTL)) { in markBefore() 342 if (mIsRtlContext && (!isRtl || getEntryDir(str) == DIR_LTR)) { in markBefore() 355 public boolean isRtl(String str) { in isRtl() method in BidiFormatter 356 return isRtl((CharSequence) str); in isRtl() 366 public boolean isRtl(CharSequence str) { in isRtl() method in BidiFormatter 367 return mDefaultTextDirectionHeuristic.isRtl(str, 0, str.length()); in isRtl() [all …]
|
D | GraphicsOperations.java | 40 float x, float y, boolean isRtl, Paint p); in drawTextRun() argument 56 boolean isRtl, float[] advances, int advancesIndex, Paint paint); in getTextRunAdvances() argument 61 int getTextRunCursor(int contextStart, int contextEnd, boolean isRtl, int offset, in getTextRunCursor() argument
|
D | TextDirectionHeuristic.java | 33 boolean isRtl(char[] array, int start, int count); in isRtl() method 45 boolean isRtl(CharSequence cs, int start, int count); in isRtl() method
|
D | TextDirectionHeuristics.java | 148 public boolean isRtl(char[] array, int start, int count) { in isRtl() method in TextDirectionHeuristics.TextDirectionHeuristicImpl 149 return isRtl(CharBuffer.wrap(array), start, count); in isRtl() 153 public boolean isRtl(CharSequence cs, int start, int count) { in isRtl() method in TextDirectionHeuristics.TextDirectionHeuristicImpl
|
/frameworks/minikin/libs/minikin/ |
D | OptimalLineBreaker.cpp | 71 bool isRtl; // The direction of the bidi run containing or ending in this candidate member 75 bool isRtl) in Candidate() 83 isRtl(isRtl) {} in Candidate() 101 bool isRtl) { in pushDesperate() 104 HyphenationType::BREAK_AND_DONT_INSERT_HYPHEN, isRtl); in pushDesperate() 110 bool isRtl) { in pushHyphenation() 112 isRtl); in pushHyphenation() 118 bool isRtl) { in pushWordBreak() 120 HyphenationType::DONT_BREAK, isRtl); in pushWordBreak() 188 float hyphenPenalty, bool isRtl, OptimizeContext* out) { in appendWithMerging() argument [all …]
|
D | MeasuredText.cpp | 63 for (const auto[context, piece] : LayoutSplitter(textBuf, info.range, info.isRtl)) { in getMetrics() 64 compositor.setNextRange(piece, info.isRtl); in getMetrics() 67 textBuf.substr(context), piece - context.getStart(), mPaint, info.isRtl, in getMetrics() 70 precomputed->getOrCreate(textBuf, piece, context, mPaint, info.isRtl, in getMetrics() 112 for (const auto[context, piece] : LayoutSplitter(textBuf, info.range, info.isRtl)) { in measureHyphenPiece() 118 compositor.setNextContext(piece, packHyphenEdit(startEdit, endEdit), info.isRtl); in measureHyphenPiece() 120 piece - context.getStart(), mPaint, info.isRtl, in measureHyphenPiece() 189 for (const auto[context, piece] : LayoutSplitter(textBuf, info.range, info.isRtl)) { in appendLayout() 197 pieces.getOrCreate(textBuf, piece, context, mPaint, info.isRtl, startEdit, endEdit, in appendLayout() 202 info.isRtl, startEdit, endEdit, compositor); in appendLayout() [all …]
|
D | Layout.cpp | 55 doLayoutRunCached(textBuf, runInfo.range, runInfo.isRtl, paint, range.getStart(), in doLayout() 67 advance += doLayoutRunCached(textBuf, runInfo.range, runInfo.isRtl, paint, 0, startHyphen, in measureText() 73 float Layout::doLayoutRunCached(const U16StringPiece& textBuf, const Range& range, bool isRtl, in doLayoutRunCached() argument 81 for (const auto[context, piece] : LayoutSplitter(textBuf, range, isRtl)) { in doLayoutRunCached() 91 context.getLength(), isRtl, paint, piece.getStart() - dstStart, in doLayoutRunCached() 129 bool isRtl, const MinikinPaint& paint, size_t bufStart, in doLayoutWord() argument 138 LayoutCache::getInstance().getOrCreate(textBuf, range, paint, isRtl, startHyphen, endHyphen, f); in doLayoutWord()
|
D | LayoutSplitter.h | 57 LayoutSplitter(const U16StringPiece& textBuf, const Range& range, bool isRtl) in LayoutSplitter() argument 58 : mTextBuf(textBuf), mRange(range), mIsRtl(isRtl) {} in LayoutSplitter()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
D | NavigationBar.java | 44 public NavigationBar(BridgeContext context, Density density, int orientation, boolean isRtl, in NavigationBar() argument 46 this(context, density, orientation, isRtl, rtlEnabled, simulatedPlatformVersion, in NavigationBar() 50 protected NavigationBar(BridgeContext context, Density density, int orientation, boolean isRtl, in NavigationBar() argument 63 if (orientation == LinearLayout.VERTICAL || (isRtl && !rtlEnabled)) { in NavigationBar() 72 density, isRtl); in NavigationBar() 76 isRtl); in NavigationBar() 79 loadIcon(recent, "ic_sysbar_recent.png", density, isRtl); in NavigationBar()
|
D | CustomBar.java | 96 protected ImageView loadIcon(int index, String iconName, Density density, boolean isRtl) { in loadIcon() argument 101 density, isRtl); in loadIcon() 108 boolean isRtl) { in loadIcon() argument 109 LayoutDirection dir = isRtl ? LayoutDirection.RTL : null; in loadIcon()
|
/frameworks/base/core/java/android/widget/ |
D | RtlSpacingHelper.java | 73 public void setDirection(boolean isRtl) { in setDirection() argument 74 if (isRtl == mIsRtl) { in setDirection() 77 mIsRtl = isRtl; in setDirection() 79 if (isRtl) { in setDirection()
|
/frameworks/minikin/include/minikin/ |
D | MeasuredText.h | 39 virtual bool isRtl() const = 0; 86 StyleRun(const Range& range, MinikinPaint&& paint, bool isRtl) in StyleRun() argument 87 : Run(range), mPaint(std::move(paint)), mIsRtl(isRtl) {} in StyleRun() 91 bool isRtl() const override { return mIsRtl; } in isRtl() function 123 bool isRtl() const { return false; } in isRtl() function 223 void addStyleRun(int32_t start, int32_t end, MinikinPaint&& paint, bool isRtl) { in addStyleRun() argument 224 mRuns.emplace_back(std::make_unique<StyleRun>(Range(start, end), std::move(paint), isRtl)); in addStyleRun()
|
D | Layout.h | 56 inline bool isRtl(Bidi bidi) { in isRtl() function 116 static float doLayoutRunCached(const U16StringPiece& textBuf, const Range& range, bool isRtl, 123 bool isRtl, const MinikinPaint& paint, size_t bufStart, 128 void doLayoutRun(const uint16_t* buf, size_t start, size_t count, size_t bufSize, bool isRtl,
|
/frameworks/layoutlib/bridge/src/android/graphics/text/ |
D | MeasuredText_Builder_Delegate.java | 65 int end, boolean isRtl) { in nAddStyleRun() argument 70 builder.mRuns.add(new StyleRun(paintPtr, start, end, isRtl)); in nAddStyleRun() 118 private StyleRun(long nativePaint, int start, int end, boolean isRtl) { in StyleRun() argument 121 mIsRtl = isRtl; in StyleRun()
|
/frameworks/base/core/java/android/transition/ |
D | SidePropagation.java | 125 final boolean isRtl = sceneRoot.getLayoutDirection() == View.LAYOUT_DIRECTION_RTL; in distance() 126 side = isRtl ? Gravity.RIGHT : Gravity.LEFT; in distance() 128 final boolean isRtl = sceneRoot.getLayoutDirection() == View.LAYOUT_DIRECTION_RTL; in distance() 129 side = isRtl ? Gravity.LEFT : Gravity.RIGHT; in distance()
|
D | Slide.java | 93 final boolean isRtl = sceneRoot.getLayoutDirection() == View.LAYOUT_DIRECTION_RTL; 95 if (isRtl) { 121 final boolean isRtl = sceneRoot.getLayoutDirection() == View.LAYOUT_DIRECTION_RTL; 123 if (isRtl) {
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | HeadsUpStatusBarView.java | 189 boolean isRtl = isLayoutRtl(); in onLayout() 190 int start = isRtl ? (mDisplaySize.x - right) : left; in onLayout() 195 int cutOutStart = (isRtl) in onLayout() 237 boolean isRtl = isLayoutRtl(); in fitSystemWindows() 238 mSysWinInset = isRtl ? insets.right : insets.left; in fitSystemWindows() 241 ? (isRtl ? displayCutout.getSafeInsetRight() : displayCutout.getSafeInsetLeft()) in fitSystemWindows()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | PseudoGridView.java | 102 boolean isRtl = isLayoutRtl(); in onLayout() 107 int x = isRtl ? getWidth() : 0; in onLayout() 115 if (isRtl) { in onLayout() 120 if (isRtl) { in onLayout()
|
/frameworks/base/graphics/java/android/graphics/ |
D | Paint.java | 2580 @IntRange(from = 0) int contextCount, boolean isRtl, @Nullable float[] advances, in getTextRunAdvances() argument 2599 isRtl ? BIDI_FORCE_RTL : BIDI_FORCE_LTR, advances, in getTextRunAdvances() 2606 contextCount, isRtl ? BIDI_FORCE_RTL : BIDI_FORCE_LTR, advances, advancesIndex); in getTextRunAdvances() 2642 @IntRange(from = 0) int contextLength, boolean isRtl, @IntRange(from = 0) int offset, in getTextRunCursor() argument 2653 isRtl ? DIRECTION_RTL : DIRECTION_LTR, offset, cursorOpt); in getTextRunCursor() 2682 @IntRange(from = 0) int contextEnd, boolean isRtl, @IntRange(from = 0) int offset, in getTextRunCursor() argument 2688 isRtl, offset, cursorOpt); in getTextRunCursor() 2692 contextStart, contextEnd, isRtl, offset, cursorOpt, this); in getTextRunCursor() 2698 int relPos = getTextRunCursor(buf, 0, contextLen, isRtl, offset - contextStart, cursorOpt); in getTextRunCursor() 2731 @IntRange(from = 0) int contextEnd, boolean isRtl, @IntRange(from = 0) int offset, in getTextRunCursor() argument [all …]
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | Layout.java | 157 boolean isRtl = Bridge.isLocaleRtl(getParams().getLocale()); in Layout() 158 setLayoutDirection(isRtl ? LAYOUT_DIRECTION_RTL : LAYOUT_DIRECTION_LTR); in Layout() 161 navBar = createNavBar(getContext(), density, isRtl, getParams().isRtlSupported(), in Layout() 166 statusBar = createStatusBar(getContext(), density, isRtl, getParams().isRtlSupported(), in Layout() 264 private StatusBar createStatusBar(BridgeContext context, Density density, boolean isRtl, in createStatusBar() argument 267 new StatusBar(context, density, isRtl, isRtlSupported, simulatedPlatformVersion); in createStatusBar() 343 private NavigationBar createNavBar(BridgeContext context, Density density, boolean isRtl, in createNavBar() argument 351 new NavigationBar(context, density, orientation, isRtl, isRtlSupported, in createNavBar()
|
/frameworks/base/core/tests/coretests/src/android/graphics/ |
D | PaintTest.java | 185 int contextStart, int contextEnd, boolean isRtl, boolean compareWithOtherMethods) { in assertGetTextRunAdvances() argument 193 contextStart, contextCount, isRtl, advanceArrays[0], 0); in assertGetTextRunAdvances() 196 contextStart, contextCount, isRtl, advanceArrays[1], 0); in assertGetTextRunAdvances() 198 contextStart, contextCount, isRtl, advanceArrays[1], c); in assertGetTextRunAdvances() 210 chars, start, count, contextStart, contextCount, isRtl, end), 1.0f); in assertGetTextRunAdvances()
|
/frameworks/base/graphics/java/android/graphics/text/ |
D | MeasuredText.java | 233 boolean isRtl) { in appendStyleRun() argument 238 nAddStyleRun(mNativePtr, paint.getNativeInstance(), mCurrentOffset, end, isRtl); in appendStyleRun() 360 boolean isRtl); in nAddStyleRun() argument
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/resources/ |
D | SysUiResources.java | 72 isRtl) { in loadIcon() argument 73 LayoutDirection dir = isRtl ? LayoutDirection.RTL : null; in loadIcon()
|