/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/ |
D | DrawableLayoutDirectionHelper.java | 38 boolean isRtl = Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1 in createRelativeInsetDrawable() 41 isRtl); in createRelativeInsetDrawable() 51 boolean isRtl = false; in createRelativeInsetDrawable() 55 isRtl = layoutDirection == View.LAYOUT_DIRECTION_RTL; in createRelativeInsetDrawable() 58 isRtl); in createRelativeInsetDrawable() 74 int insetStart, int insetTop, int insetEnd, int insetBottom, boolean isRtl) { in createRelativeInsetDrawable() argument 75 if (isRtl) { in createRelativeInsetDrawable()
|
/frameworks/support/core-utils/java/android/support/v4/text/ |
D | BidiFormatter.java | 299 final boolean isRtl = heuristic.isRtl(str, 0, str.length()); in markAfter() 301 if (!mIsRtlContext && (isRtl || getExitDir(str) == DIR_RTL)) { in markAfter() 304 if (mIsRtlContext && (!isRtl || getExitDir(str) == DIR_LTR)) { in markAfter() 327 final boolean isRtl = heuristic.isRtl(str, 0, str.length()); in markBefore() 329 if (!mIsRtlContext && (isRtl || getEntryDir(str) == DIR_RTL)) { in markBefore() 332 if (mIsRtlContext && (!isRtl || getEntryDir(str) == DIR_LTR)) { in markBefore() 345 public boolean isRtl(String str) { in isRtl() method in BidiFormatter 346 return isRtl((CharSequence) str); in isRtl() 356 public boolean isRtl(CharSequence str) { in isRtl() method in BidiFormatter 357 return mDefaultTextDirectionHeuristicCompat.isRtl(str, 0, str.length()); in isRtl() [all …]
|
/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() 364 public boolean isRtl(CharSequence str) { in isRtl() method in BidiFormatter 365 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 | 40 float x, float y, boolean isRtl, Paint p); in drawTextRun() argument 56 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/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 | 50 boolean isRtl; field in BidiRenderer.ScriptRun 54 public ScriptRun(int start, int limit, boolean isRtl) { in ScriptRun() argument 57 this.isRtl = isRtl; in ScriptRun() 117 boolean isRtl = visualRun.getDirection() == Bidi.RTL; in renderText() 118 renderText(visualRun.getStart(), visualRun.getLimit(), isRtl, advances, in renderText() local 139 public RectF renderText(int start, int limit, boolean isRtl, float[] advances, in renderText() argument 143 for (ScriptRun run : getScriptRuns(mText, start, limit, isRtl, mFonts)) { in renderText() 145 flag |= isRtl ? Font.LAYOUT_RIGHT_TO_LEFT : Font.LAYOUT_LEFT_TO_RIGHT; in renderText() 275 boolean isRtl, List<Font> fonts) { in getScriptRuns() argument 283 ScriptRun run = new ScriptRun(scriptStart, scriptLimit, isRtl); in getScriptRuns()
|
/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/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/support/v17/leanback/src/android/support/v17/leanback/widget/ |
D | HorizontalHoverCardSwitcher.java | 50 boolean isRtl = ViewCompat.getLayoutDirection(view) == View.LAYOUT_DIRECTION_RTL; in onViewSelected() 51 if (!isRtl && mCardLeft + view.getMeasuredWidth() > rightLimit) { in onViewSelected() 53 } else if (isRtl && mCardLeft < leftLimit) { in onViewSelected() 55 } else if (isRtl) { in onViewSelected()
|
/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/transition/src/android/support/transition/ |
D | SidePropagation.java | 125 final boolean isRtl = ViewCompat.getLayoutDirection(sceneRoot) in distance() 127 side = isRtl ? Gravity.RIGHT : Gravity.LEFT; in distance() 129 final boolean isRtl = ViewCompat.getLayoutDirection(sceneRoot) in distance() 131 side = isRtl ? Gravity.LEFT : Gravity.RIGHT; in distance()
|
D | Slide.java | 101 final boolean isRtl = ViewCompat.getLayoutDirection(sceneRoot) 104 if (isRtl) { 130 final boolean isRtl = ViewCompat.getLayoutDirection(sceneRoot) 133 if (isRtl) {
|
/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/support/design/src/android/support/design/widget/ |
D | SwipeDismissBehavior.java | 275 final boolean isRtl = ViewCompat.getLayoutDirection(child) 284 return isRtl ? xvel < 0f : xvel > 0f; 288 return isRtl ? xvel > 0f : xvel < 0f; 306 final boolean isRtl = ViewCompat.getLayoutDirection(child) 311 if (isRtl) { 319 if (isRtl) {
|
/frameworks/base/core/tests/coretests/src/android/graphics/ |
D | PaintTest.java | 180 int contextStart, int contextEnd, boolean isRtl, boolean compareWithOtherMethods) { in assertGetTextRunAdvances() argument 187 isRtl, advanceArrays[0], 0); in assertGetTextRunAdvances() 191 contextEnd - contextStart, isRtl, advanceArrays[1], 0); in assertGetTextRunAdvances() 196 contextStart, contextEnd, isRtl, advanceArrays[2], 0); in assertGetTextRunAdvances() 198 contextStart, contextEnd, isRtl, advanceArrays[2], c); in assertGetTextRunAdvances() 203 contextStart, contextEnd - contextStart, isRtl, advanceArrays[3], 0); in assertGetTextRunAdvances() 205 count - c, contextStart, contextEnd - contextStart, isRtl, in assertGetTextRunAdvances() 221 str, start, end, contextStart, contextEnd, isRtl, end), 1.0f); in assertGetTextRunAdvances()
|
/frameworks/minikin/include/minikin/ |
D | Layout.h | 118 size_t bufSize, bool isRtl, LayoutContext* ctx, size_t dstStart, 123 bool isRtl, LayoutContext* ctx, size_t bufStart, 128 bool isRtl, LayoutContext* ctx, const std::shared_ptr<FontCollection>& collection);
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | Layout.java | 135 boolean isRtl = Bridge.isLocaleRtl(getParams().getLocale()); in Layout() 136 setLayoutDirection(isRtl? LAYOUT_DIRECTION_RTL : LAYOUT_DIRECTION_LTR); in Layout() 140 navBar = createNavBar(getContext(), density, isRtl, getParams().isRtlSupported(), in Layout() 146 statusBar = createStatusBar(getContext(), density, isRtl, getParams().isRtlSupported(), in Layout() 222 private StatusBar createStatusBar(BridgeContext context, Density density, boolean isRtl, in createStatusBar() argument 225 new StatusBar(context, density, isRtl, isRtlSupported, simulatedPlatformVersion); in createStatusBar() 280 private NavigationBar createNavBar(BridgeContext context, Density density, boolean isRtl, in createNavBar() argument 284 NavigationBar navBar = new NavigationBar(context, density, orientation, isRtl, in createNavBar()
|
/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/base/graphics/java/android/graphics/ |
D | Paint.java | 2172 int contextIndex, int contextCount, boolean isRtl, float[] advances, in getTextRunAdvances() argument 2192 contextIndex, contextCount, isRtl ? BIDI_FORCE_RTL : BIDI_FORCE_LTR, advances, in getTextRunAdvances() 2199 contextIndex, contextCount, isRtl ? BIDI_FORCE_RTL : BIDI_FORCE_LTR, advances, in getTextRunAdvances() 2219 int contextStart, int contextEnd, boolean isRtl, float[] advances, in getTextRunAdvances() argument 2234 contextStart, contextEnd, isRtl, advances, advancesIndex); in getTextRunAdvances() 2239 contextStart, contextEnd, isRtl, advances, advancesIndex); in getTextRunAdvances() 2243 contextStart, contextEnd, isRtl, advances, advancesIndex, this); in getTextRunAdvances() 2254 0, contextLen, isRtl, advances, advancesIndex); in getTextRunAdvances() 2301 int contextEnd, boolean isRtl, float[] advances, int advancesIndex) { in getTextRunAdvances() argument 2319 contextStart, contextEnd, isRtl ? BIDI_FORCE_RTL : BIDI_FORCE_LTR, advances, in getTextRunAdvances() [all …]
|
/frameworks/support/core-utils/tests/java/android/support/v4/text/ |
D | BidiFormatterTest.java | 71 assertEquals(true, BidiFormatter.getInstance(true).isRtl(HE)); in testIsRtl() 72 assertEquals(true, BidiFormatter.getInstance(false).isRtl(HE)); in testIsRtl() 74 assertEquals(false, BidiFormatter.getInstance(true).isRtl(EN)); in testIsRtl() 75 assertEquals(false, BidiFormatter.getInstance(false).isRtl(EN)); in testIsRtl() 202 assertEquals(true, BidiFormatter.getInstance(true).isRtl(CS_HE)); in testCharSequenceApis()
|