Home
last modified time | relevance | path

Searched refs:line (Results 1 – 25 of 387) sorted by relevance

12345678910>>...16

/developers/samples/android/ui/text/RoundedBackground-Kotlin/lib/src/main/java/com/android/example/text/styling/roundedbg/
DLayoutExtensions.kt36 fun Layout.getLineBottomWithoutSpacing(line: Int): Int { in Layout()
37 val lineBottom = getLineBottom(line) in Layout()
39 val isLastLine = line == lineCount - 1 in Layout()
52 val lineHeight = getLineHeight(line) in Layout()
67 fun Layout.getLineHeight(line: Int): Int { in getLineHeight()
68 return getLineTop(line + 1) - getLineTop(line) in getLineHeight()
74 fun Layout.getLineTopWithoutPadding(line: Int): Int { in getLineTopWithoutPadding()
75 var lineTop = getLineTop(line) in getLineTopWithoutPadding()
76 if (line == 0) { in getLineTopWithoutPadding()
85 fun Layout.getLineBottomWithoutPadding(line: Int): Int { in Layout()
[all …]
DTextRoundedBgRenderer.kt61 protected fun getLineTop(layout: Layout, line: Int): Int { in draw()
62 return layout.getLineTopWithoutPadding(line) - verticalPadding in draw()
72 protected fun getLineBottom(layout: Layout, line: Int): Int { in getLineBottom()
73 return layout.getLineBottomWithoutPadding(line) + verticalPadding in getLineBottom()
147 for (line in startLine + 1 until endLine) { in draw() variable
148 lineTop = getLineTop(layout, line) in draw()
149 lineBottom = getLineBottom(layout, line) in draw()
151 (layout.getLineLeft(line).toInt() - horizontalPadding), in draw()
153 (layout.getLineRight(line).toInt() + horizontalPadding), in draw()
/developers/samples/android/input/autofill/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/view/autofillable/
DAbstractCustomVirtualView.java121 Line line = mVirtualViewGroups.get(i); in onDraw() local
123 if (VERBOSE) Log.v(TAG, "Drawing '" + line + "' at " + x + "x" + y); in onDraw()
124 mTextPaint.setColor(line.mFieldTextItem.focused ? FOCUSED_COLOR : UNFOCUSED_COLOR); in onDraw()
125 String readOnlyText = line.mLabelItem.text + ": ["; in onDraw()
126 String writeText = line.mFieldTextItem.text + "]"; in onDraw()
132 line.mBounds.set((int) x, (int) (y - mLineLength), in onDraw()
134 if (VERBOSE) Log.v(TAG, "setBounds(" + x + ", " + y + "): " + line.mBounds); in onDraw()
139 line.notifyFocusChanged(); in onDraw()
163 Line line = mVirtualViewGroups.get(i); in onMotion() local
171 Log.d(TAG, "Changing focus to " + line); in onMotion()
[all …]
DCustomVirtualView.java165 child.setDimens(item.line.mBounds.left, item.line.mBounds.top, 0, 0, in onProvideAutofillVirtualStructure()
166 item.line.mBounds.width(), item.line.mBounds.height()); in onProvideAutofillVirtualStructure()
169 child.setDimens(item.line.mBounds.left, item.line.mBounds.top, 0, 0, in onProvideAutofillVirtualStructure()
170 item.line.mBounds.width(), item.line.mBounds.height()); in onProvideAutofillVirtualStructure()
/developers/samples/android/content/webview/PermissionRequest/Application/src/main/java/com/example/android/permissionrequest/
DSimpleWebServer.java127 String line; in handle() local
128 while (!TextUtils.isEmpty(line = reader.readLine())) { in handle()
129 if (line.startsWith("GET /")) { in handle()
130 int start = line.indexOf('/') + 1; in handle()
131 int end = line.indexOf(' ', start); in handle()
132 route = line.substring(start, end); in handle()
/developers/samples/android/admin/NfcProvisioning/Application/src/main/java/com/example/android/nfcprovisioning/
DProvisioningValuesLoader.java116 String line; in loadFromFile() local
117 while (null != (line = reader.readLine())) { in loadFromFile()
118 if (line.startsWith("#")) { in loadFromFile()
121 int position = line.indexOf("="); in loadFromFile()
125 String key = line.substring(0, position); in loadFromFile()
126 String value = line.substring(position + 1); in loadFromFile()
/developers/samples/android/ui/text/TextStyling-Java/app/
Dproguard-rules.pro15 # Uncomment this to preserve the line number information for
19 # If you keep the line number information, uncomment this to
/developers/samples/android/notification/Bubbles/app/
Dproguard-rules.pro15 # Uncomment this to preserve the line number information for
19 # If you keep the line number information, uncomment this to
/developers/samples/android/ui/views/RecyclerView/kotlinApp/app/
Dproguard-rules.pro15 # Uncomment this to preserve the line number information for
19 # If you keep the line number information, uncomment this to
/developers/samples/android/input/autofill/AutofillFramework/kotlinApp/Application/src/main/java/com/example/android/autofillframework/app/
DCustomVirtualView.kt108 setId(item.id, context.packageName, null, item.line.idEntry) in onProvideAutofillVirtualStructure()
146 for (line in lines) { in onTouchEvent() variable
148 Log.d(TAG, "Line $line ranges from $lowerY to $upperY") in onTouchEvent()
152 Log.d(TAG, "Changing focus to " + line) in onTouchEvent()
153 focusedLine = line.apply { changeFocus(true) } in onTouchEvent()
178 val line: Line, constant in Item
/developers/samples/android/system/RuntimePermissions/kotlinApp/app/
Dproguard-rules.pro19 # Uncomment this to preserve the line number information for
23 # If you keep the line number information, uncomment this to
/developers/samples/android/content/documentsUi/ContentProviderPaging/kotlinApp/resources/
Dproguard-rules.pro19 # Uncomment this to preserve the line number information for
23 # If you keep the line number information, uncomment this to
/developers/samples/android/media/MediaBrowserService/Application/
Dproguard-rules.pro19 # Uncomment this to preserve the line number information for
23 # If you keep the line number information, uncomment this to
/developers/samples/android/views/EmojiCompat/kotlinApp/app/
Dproguard-rules.pro19 # Uncomment this to preserve the line number information for
23 # If you keep the line number information, uncomment this to
/developers/samples/android/views/EmojiCompat/app/
Dproguard-rules.pro19 # Uncomment this to preserve the line number information for
23 # If you keep the line number information, uncomment this to
/developers/samples/android/content/documentsUi/ContentProviderPaging/resources/
Dproguard-rules.pro19 # Uncomment this to preserve the line number information for
23 # If you keep the line number information, uncomment this to
/developers/samples/android/input/autofill/AutofillFramework/afservice/
Dproguard-rules.pro19 # Uncomment this to preserve the line number information for
23 # If you keep the line number information, uncomment this to
/developers/samples/android/media/MediaEffects/
Dgradlew.bat49 @rem Get command-line arguments, handling Windows variants
54 @rem Slurp the command line arguments.
64 @rem Setup the command line
/developers/samples/android/ui/transition/AdapterTransition/
Dgradlew.bat49 @rem Get command-line arguments, handling Windowz variants
55 @rem Slurp the command line arguments.
70 @rem Setup the command line
/developers/samples/android/admin/DeviceOwner/
Dgradlew.bat49 @rem Get command-line arguments, handling Windows variants
54 @rem Slurp the command line arguments.
64 @rem Setup the command line
/developers/samples/android/media/BasicMediaRouter/
Dgradlew.bat49 @rem Get command-line arguments, handling Windows variants
54 @rem Slurp the command line arguments.
64 @rem Setup the command line
/developers/samples/android/deprecated/wearable/wear/Notifications/
Dgradlew.bat49 @rem Get command-line arguments, handling Windowz variants
55 @rem Slurp the command line arguments.
70 @rem Setup the command line
/developers/samples/android/connectivity/bluetooth/BluetoothChat/
Dgradlew.bat49 @rem Get command-line arguments, handling Windows variants
54 @rem Slurp the command line arguments.
64 @rem Setup the command line
/developers/samples/android/deprecated/wearable/wear/GridViewPager/
Dgradlew.bat49 @rem Get command-line arguments, handling Windowz variants
55 @rem Slurp the command line arguments.
70 @rem Setup the command line
/developers/samples/android/content/documentsUi/DirectorySelection/
Dgradlew.bat49 @rem Get command-line arguments, handling Windows variants
54 @rem Slurp the command line arguments.
64 @rem Setup the command line

12345678910>>...16