Android Q graphics system uses pure native API to draw a window

This article draws a window according to the previous analysis and implements it with the pure native API. The native API here is not ndk, but a native layer function, which needs to be implemented in the AOSP compilation environment. First, create the drawWindowTest test directory in the / frameworks/n ...

Posted on Mon, 15 Jun 2020 01:58:37 -0400 by akumakeenta

Anbox source code analysis -- anbox rendering principle (source code analysis)

Anbox source code analysis (3) In the previous article, we introduced the principle of Anbox video rendering. In this article, we started from the source code to have a deeper understanding of the mechanism and principle of Anbox and rendering session manager entry The entry function of session mana ...

Posted on Tue, 09 Jun 2020 03:27:28 -0400 by ScratchyAnt

Infrared remote control debugging based on STM32F0 series single chip microcomputer

Principle analysis of infrared remote control   Remote control: the wavelength crystal oscillator with NEC code of 960nm is 455KHZ, and the corresponding transmission frequency (carrier frequency) is 38KHZ, The remote ID is 0 (i.e. system identification code), and the inverse code is 255. Different ...

Posted on Sat, 06 Jun 2020 04:41:21 -0400 by redrabbit

RT-Thread Chain List Heap Manager for a Series of Practical Algorithms

The previous section describes the basic concept of stack. This article will talk about how stack works.RT-Thread is so popular in the community that it reads its kernel code, manages the heap, and has clear code design and readability.Therefore, on the one hand, you can understand the RT-Thread kernel implementation, and on the other hand, you ...

Posted on Sun, 24 May 2020 14:03:06 -0400 by pug

How to implement polymorphism in Java interface

Polymorphism is a very difficult concept to understand in Java, but it is also a very important concept. One of the three major features of Java (encapsulation, inheritance, polymorphism) is literally a type of multiple states. Let's explain what polymorphism is again through the example of selling a car, in which the interface is used. Code in ...

Posted on Fri, 01 May 2020 08:20:18 -0400 by MrTL

buffer consumption process of surfacelinker

In the last part, the production process of buffer is analyzed, and this paper focuses on the consumption process of buffer. In this process, several problems need to be clarified: 1. Who is the consumer? 2. How can consumers get buffer display from BufferQueue? 3. How to release the buffer after it is displayed? 1. Co ...

Posted on Fri, 20 Mar 2020 14:42:46 -0400 by subodh_dg

Inter Assembly Language Programming (Irvine) Development Environment Settings

1. Install masm32 Download on the official website: http://www.masm32.com/ 2. Download Irvine32.inc and Irvine32.lib https://cloud.189.cn/t/QzArYnN7J7Jf  or https://download.csdn.net/download/wxwpxh/12249620 After unzipping, there is a 12M Irvine.zip file, and then unzip the library you need. Or you can download it directly here masm32.7z ( ...

Posted on Sat, 14 Mar 2020 13:18:03 -0400 by alanlee79

Android horizontal and vertical screen switch stuck problem

Today, an android system is stuck when switching between horizontal and vertical screens. It can only turn around in about 3 seconds. Finally, it is pointed out that the function of the ScreenRotationAnimation class is called SurfaceControl.screenshot(SurfaceControl.getBuiltInDisplay( ...

Posted on Wed, 11 Mar 2020 03:30:01 -0400 by R0bb0b

lua5.3 cross compile to Android

lua5.3 cross compile to Android Tip: if you just want to use Lua on the terminal, you can try termux, or only want to get the executable file of lua, or you can install termux. You can find the executable file of lua directly in ~ /.. / usr/bin directory (provided you have installed it) start Pref ...

Posted on Sun, 01 Mar 2020 23:11:46 -0500 by evo4ever

37 Sensors - Raspberry Pie Development - 2-RGB LED

C Language Programming Procedural principles Or use wiringPI to call GPIO of raspberry pie, use softPwmCreate() and softPwmWrite() in PWM function, and combine the function of discoloration to change color.softPwmCreate: This function will create a software-controlled PWM pin.Any GPIO pin can be use ...

Posted on Fri, 28 Feb 2020 22:30:19 -0500 by endersix