/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/ |
D | DrawableLayoutDirectionHelper.java | 36 boolean isRtl = Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1 in createRelativeInsetDrawable() 39 isRtl); in createRelativeInsetDrawable() 48 boolean isRtl = false; in createRelativeInsetDrawable() 52 isRtl = layoutDirection == View.LAYOUT_DIRECTION_RTL; in createRelativeInsetDrawable() 55 isRtl); in createRelativeInsetDrawable() 70 int insetStart, int insetTop, int insetEnd, int insetBottom, boolean isRtl) { in createRelativeInsetDrawable() argument 71 if (isRtl) { in createRelativeInsetDrawable()
|
/frameworks/base/core/java/android/text/ |
D | BidiFormatter.java | 306 final boolean isRtl = heuristic.isRtl(str, 0, str.length()); in markAfter() 308 if (!mIsRtlContext && (isRtl || getExitDir(str) == DIR_RTL)) { in markAfter() 311 if (mIsRtlContext && (!isRtl || getExitDir(str) == DIR_LTR)) { in markAfter() 335 final boolean isRtl = heuristic.isRtl(str, 0, str.length()); in markBefore() 337 if (!mIsRtlContext && (isRtl || getEntryDir(str) == DIR_RTL)) { in markBefore() 340 if (mIsRtlContext && (!isRtl || getEntryDir(str) == DIR_LTR)) { in markBefore() 353 public boolean isRtl(String str) { in isRtl() method in BidiFormatter 354 return isRtl((CharSequence) str); in isRtl() 360 public boolean isRtl(CharSequence str) { in isRtl() method in BidiFormatter 361 return mDefaultTextDirectionHeuristic.isRtl(str, 0, str.length()); in isRtl() [all …]
|
D | MeasuredText.java | 155 boolean isRtl = textDir.isRtl(mChars, 0, len); in setPara() 156 bidiRequest = isRtl ? Layout.DIR_REQUEST_RTL : Layout.DIR_REQUEST_LTR; in setPara() 178 boolean isRtl = mDir != Layout.DIR_LEFT_TO_RIGHT; in addStyleRun() 181 width = paint.getTextRunAdvances(mChars, p, len, p, len, isRtl, widths, p); in addStyleRun() 186 width = mBuilder.addStyleRun(paint, p, p + len, isRtl); in addStyleRun() 195 boolean isRtl = (level & 0x1) != 0; in addStyleRun() 198 paint.getTextRunAdvances(mChars, q, i - q, q, i - q, isRtl, widths, q); in addStyleRun() 203 totalAdvance += mBuilder.addStyleRun(paint, q, i, isRtl); in addStyleRun()
|
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 | GraphicsOperations.java | 41 float x, float y, boolean isRtl, Paint p); in drawTextRun() argument 58 boolean isRtl, float[] advances, int advancesIndex, Paint paint); in getTextRunAdvances() argument
|
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/support/core-utils/java/android/support/v4/text/ |
D | BidiFormatter.java | 297 final boolean isRtl = heuristic.isRtl(str, 0, str.length()); in markAfter() 299 if (!mIsRtlContext && (isRtl || getExitDir(str) == DIR_RTL)) { in markAfter() 302 if (mIsRtlContext && (!isRtl || getExitDir(str) == DIR_LTR)) { in markAfter() 324 final boolean isRtl = heuristic.isRtl(str, 0, str.length()); in markBefore() 326 if (!mIsRtlContext && (isRtl || getEntryDir(str) == DIR_RTL)) { in markBefore() 329 if (mIsRtlContext && (!isRtl || getEntryDir(str) == DIR_LTR)) { in markBefore() 342 public boolean isRtl(String str) { in isRtl() method in BidiFormatter 343 return mDefaultTextDirectionHeuristicCompat.isRtl(str, 0, str.length()); in isRtl() 377 final boolean isRtl = heuristic.isRtl(str, 0, str.length()); in unicodeWrap() 381 isRtl ? TextDirectionHeuristicsCompat.RTL : TextDirectionHeuristicsCompat.LTR)); in unicodeWrap() [all …]
|
/frameworks/base/tools/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() 70 loadIcon(back, "ic_sysbar_back.png", density, isRtl); in NavigationBar() 72 loadIcon(3, "ic_sysbar_home.png", density, isRtl); in NavigationBar() 74 loadIcon(recent, "ic_sysbar_recent.png", density, isRtl); in NavigationBar()
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
D | BidiRenderer.java | 48 boolean isRtl; field in BidiRenderer.ScriptRun 52 public ScriptRun(int start, int limit, boolean isRtl) { in ScriptRun() argument 55 this.isRtl = isRtl; in ScriptRun() 115 boolean isRtl = visualRun.getDirection() == Bidi.RTL; in renderText() 116 renderText(visualRun.getStart(), visualRun.getLimit(), isRtl, advances, in renderText() local 137 public RectF renderText(int start, int limit, boolean isRtl, float[] advances, in renderText() argument 141 for (ScriptRun run : getScriptRuns(mText, start, limit, isRtl, mFonts)) { in renderText() 143 flag |= isRtl ? Font.LAYOUT_RIGHT_TO_LEFT : Font.LAYOUT_LEFT_TO_RIGHT; in renderText() 266 boolean isRtl, List<Font> fonts) { in getScriptRuns() argument 274 ScriptRun run = new ScriptRun(scriptStart, scriptLimit, isRtl); in getScriptRuns()
|
/frameworks/support/v7/appcompat/src/android/support/v7/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/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/support/v17/leanback/src/android/support/v17/leanback/widget/ |
D | HorizontalHoverCardSwitcher.java | 51 boolean isRtl = ViewCompat.getLayoutDirection(view) == View.LAYOUT_DIRECTION_RTL; in onViewSelected() 52 if (!isRtl && mCardLeft + view.getMeasuredWidth() > rightLimit) { in onViewSelected() 54 } else if (isRtl && mCardLeft < leftLimit) { in onViewSelected() 56 } else if (isRtl) { in onViewSelected()
|
D | TitleHelper.java | 48 final boolean isRtl = ViewCompat.getLayoutDirection(focused) == 50 final int forward = isRtl ? View.FOCUS_LEFT : View.FOCUS_RIGHT;
|
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/ |
D | PaintTest.java | 42 int contextStart, int contextEnd, boolean isRtl, boolean compareWithOtherMethods) { in assertGetTextRunAdvances() argument 49 isRtl, advanceArrays[0], 0); in assertGetTextRunAdvances() 53 contextEnd - contextStart, isRtl, advanceArrays[1], 0); in assertGetTextRunAdvances() 58 contextStart, contextEnd, isRtl, advanceArrays[2], 0); in assertGetTextRunAdvances() 60 contextStart, contextEnd, isRtl, advanceArrays[2], c); in assertGetTextRunAdvances() 65 contextStart, contextEnd - contextStart, isRtl, advanceArrays[3], 0); in assertGetTextRunAdvances() 67 count - c, contextStart, contextEnd - contextStart, isRtl, in assertGetTextRunAdvances() 83 str, start, end, contextStart, contextEnd, isRtl, end), 1.0f); in assertGetTextRunAdvances()
|
/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 | 92 final boolean isRtl = sceneRoot.getLayoutDirection() == View.LAYOUT_DIRECTION_RTL; 94 if (isRtl) { 120 final boolean isRtl = sceneRoot.getLayoutDirection() == View.LAYOUT_DIRECTION_RTL; 122 if (isRtl) {
|
/frameworks/support/compat/java/android/support/v4/text/ |
D | TextDirectionHeuristicCompat.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 | TextDirectionHeuristicsCompat.java | 124 public boolean isRtl(char[] array, int start, int count) { in isRtl() method in TextDirectionHeuristicsCompat.TextDirectionHeuristicImpl 125 return isRtl(CharBuffer.wrap(array), start, count); in isRtl() 129 public boolean isRtl(CharSequence cs, int start, int count) { in isRtl() method in TextDirectionHeuristicsCompat.TextDirectionHeuristicImpl
|
/frameworks/support/design/src/android/support/design/widget/ |
D | SwipeDismissBehavior.java | 272 final boolean isRtl = ViewCompat.getLayoutDirection(child) 281 return isRtl ? xvel < 0f : xvel > 0f; 285 return isRtl ? xvel > 0f : xvel < 0f; 303 final boolean isRtl = ViewCompat.getLayoutDirection(child) 308 if (isRtl) { 316 if (isRtl) {
|
/frameworks/base/graphics/java/android/graphics/ |
D | Paint.java | 2086 int contextIndex, int contextCount, boolean isRtl, float[] advances, in getTextRunAdvances() argument 2106 contextIndex, contextCount, isRtl ? BIDI_FORCE_RTL : BIDI_FORCE_LTR, advances, in getTextRunAdvances() 2113 contextIndex, contextCount, isRtl ? BIDI_FORCE_RTL : BIDI_FORCE_LTR, advances, in getTextRunAdvances() 2133 int contextStart, int contextEnd, boolean isRtl, float[] advances, in getTextRunAdvances() argument 2148 contextStart, contextEnd, isRtl, advances, advancesIndex); in getTextRunAdvances() 2153 contextStart, contextEnd, isRtl, advances, advancesIndex); in getTextRunAdvances() 2157 contextStart, contextEnd, isRtl, advances, advancesIndex, this); in getTextRunAdvances() 2168 0, contextLen, isRtl, advances, advancesIndex); in getTextRunAdvances() 2215 int contextEnd, boolean isRtl, float[] advances, int advancesIndex) { in getTextRunAdvances() argument 2233 contextStart, contextEnd, isRtl ? BIDI_FORCE_RTL : BIDI_FORCE_LTR, advances, in getTextRunAdvances() [all …]
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | Layout.java | 134 boolean isRtl = Bridge.isLocaleRtl(getParams().getLocale()); in Layout() 135 setLayoutDirection(isRtl? LAYOUT_DIRECTION_RTL : LAYOUT_DIRECTION_LTR); in Layout() 139 navBar = createNavBar(getContext(), density, isRtl, getParams().isRtlSupported(), in Layout() 145 statusBar = createStatusBar(getContext(), density, isRtl, getParams().isRtlSupported(), in Layout() 221 private StatusBar createStatusBar(BridgeContext context, Density density, boolean isRtl, in createStatusBar() argument 224 new StatusBar(context, density, isRtl, isRtlSupported, simulatedPlatformVersion); in createStatusBar() 279 private NavigationBar createNavBar(BridgeContext context, Density density, boolean isRtl, in createNavBar() argument 283 NavigationBar navBar = new NavigationBar(context, density, orientation, isRtl, in createNavBar()
|
/frameworks/minikin/include/minikin/ |
D | Layout.h | 139 size_t bufSize, bool isRtl, LayoutContext* ctx, size_t dstStart, 144 bool isRtl, LayoutContext* ctx, size_t bufStart, const FontCollection* collection, 149 bool isRtl, LayoutContext* ctx);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | PseudoGridView.java | 106 boolean isRtl = isLayoutRtl(); in onLayout() 111 int x = isRtl ? getWidth() : 0; in onLayout() 119 if (isRtl) { in onLayout() 124 if (isRtl) { in onLayout()
|
/frameworks/support/core-utils/tests/java/android/support/v4/text/ |
D | BidiFormatterTest.java | 67 assertEquals(true, BidiFormatter.getInstance(true).isRtl(HE)); in testIsRtl() 68 assertEquals(true, BidiFormatter.getInstance(false).isRtl(HE)); in testIsRtl() 70 assertEquals(false, BidiFormatter.getInstance(true).isRtl(EN)); in testIsRtl() 71 assertEquals(false, BidiFormatter.getInstance(false).isRtl(EN)); in testIsRtl()
|
/frameworks/minikin/libs/minikin/ |
D | Layout.cpp | 447 Iter(UBiDi* bidi, size_t start, size_t end, size_t runIndex, size_t runCount, bool isRtl); 503 bool isRtl) in Iter() argument 509 mRunInfo.mIsRtl = isRtl; in Iter() 618 bool isRtl, LayoutContext* ctx, size_t dstStart, const FontCollection* collection, in doLayoutRunCached() argument 622 if (!isRtl) { in doLayoutRunCached() 633 wordend - wordstart, isRtl, ctx, iter - dstStart, collection, layout, in doLayoutRunCached() 648 wordend - wordstart, isRtl, ctx, bufStart - dstStart, collection, layout, in doLayoutRunCached() 657 bool isRtl, LayoutContext* ctx, size_t bufStart, const FontCollection* collection, in doLayoutWord() argument 660 LayoutCacheKey key(collection, ctx->paint, ctx->style, buf, start, count, bufSize, isRtl); in doLayoutWord() 706 bool isRtl, LayoutContext* ctx) { in doLayoutRun() argument [all …]
|