/developers/samples/android/ui/text/RoundedBackground-Kotlin/lib/src/main/java/com/android/example/text/styling/roundedbg/ |
D | LayoutExtensions.kt | 36 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 …]
|
D | TextRoundedBgRenderer.kt | 61 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/ |
D | AbstractCustomVirtualView.java | 121 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 …]
|
D | CustomVirtualView.java | 165 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/ |
D | SimpleWebServer.java | 127 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/ |
D | ProvisioningValuesLoader.java | 116 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/ |
D | proguard-rules.pro | 15 # 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/ |
D | proguard-rules.pro | 15 # 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/ |
D | proguard-rules.pro | 15 # 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/ |
D | CustomVirtualView.kt | 108 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/ |
D | proguard-rules.pro | 19 # 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/ |
D | proguard-rules.pro | 19 # 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/ |
D | proguard-rules.pro | 19 # 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/ |
D | proguard-rules.pro | 19 # 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/ |
D | proguard-rules.pro | 19 # 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/ |
D | proguard-rules.pro | 19 # 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/ |
D | proguard-rules.pro | 19 # 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/ |
D | gradlew.bat | 49 @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/ |
D | gradlew.bat | 49 @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/ |
D | gradlew.bat | 49 @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/ |
D | gradlew.bat | 49 @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/ |
D | gradlew.bat | 49 @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/ |
D | gradlew.bat | 49 @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/ |
D | gradlew.bat | 49 @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/ |
D | gradlew.bat | 49 @rem Get command-line arguments, handling Windows variants 54 @rem Slurp the command line arguments. 64 @rem Setup the command line
|