Summary of underlying data structure and class of camera HAL of Android Camera principle

There are many data structures in the camera HAL layer. When looking at the code, we often look for a long time to understand these data structures. In order to facilitate everyone's study, we specially summarize some data structures and their locations: 1.hardware/libhardware/include/hardware/camera_common.h: 1.1 camera_info_t : camera_info ...

Posted by jpopuk on Sun, 20 Feb 2022 05:36:02 +0100

Android Window series - window and decorview

summary Window is a very common concept in android. Common knowledge points such as Activity, Dialog and Toast are inseparable from window. Therefore, the author arranges the knowledge related to the next window, hoping to help the readers in need. window official description The description of window in the source code of window is as follo ...

Posted by xzilla on Sun, 20 Feb 2022 05:07:01 +0100

Detailed explanation of Lambda expression ~ simplify anonymous inner class

This section will introduce how to use Lambda expressions to simplify the writing of anonymous inner classes. However, Lambda expressions cannot replace all anonymous inner classes and can only be used to replace the abbreviation of Functional Interface. Don't care about the details yet. Let's look at a few examples. Example 1: abbreviation of ...

Posted by jaql on Sun, 20 Feb 2022 05:04:17 +0100

Application scenarios of Callable, Future and FutureTask in multithreading

1.1Callable and Future and FutureTask creation process Many times, we ask multithreading to help us deal with things. We need to get the return value, and we can deal with exceptions Note that callable can have a return value or throw an exception, which is key. 1.1.2.callable implements multithreading by itself, but there is no re ...

Posted by fitzbean on Sun, 20 Feb 2022 04:58:31 +0100

Seata distributed transaction

Seata Seata is an open source distributed transaction solution, which is committed to providing high-performance and easy-to-use distributed transaction services. Seata will provide users with AT, TCC, SAGA and XA transaction modes to create a one-stop distributed solution for users. Evolution of the two-stage submission agreement: Phase I: ...

Posted by ddragas on Sun, 20 Feb 2022 04:45:20 +0100

WEB application development -- Explanation of Spring framework annotation + explanation and use of Spring JDBC

Annotation implementation Preparation for annotation development Jar package required for annotation. The annotation function is encapsulated in the AOP package and imported into Spring aop jar <!--open spring Annotation scanning --> <context:component-scan base-package="com.qn.spring"/> spring's annotations on classes incl ...

Posted by toddmarx on Sun, 20 Feb 2022 04:11:01 +0100

Headline: educator -- advanced features of Java - JDBC

Level 1: specify the type of JDBC encapsulation Task description This task: encapsulate a JDBC tool class as required. Relevant knowledge In order to complete this task, you need to master the basic use of JDBC. Please refer to the previous training content Advanced features of Java - JDBC (Part 1). This chapter will encapsulate ...

Posted by revdev on Sun, 20 Feb 2022 03:10:29 +0100

Java magic class: Unsafe application analysis

catalogue   preface Basic introduction Function introduction Memory operation CAS related Thread scheduling Class correlation Object operation Array correlation Memory barrier System related epilogue reference material Introduction to the author preface Unsafe is located in sun A class under misc package mainly provides some m ...

Posted by crucialnet on Sun, 20 Feb 2022 01:38:04 +0100

The third part of mybatis - can you understand the high-end usage of mybatis?

Previously, I learned that the integration of single data source and multiple data sources of springboot + mybatis has been used. In this article, let's talk about the high-end usage of mybatis 1. Environmental collocation 1.1 pom dependency Based on springboot 2.5.6, you can also refer to the first article of mybatis <!--Mysql Dependent ...

Posted by sella2009 on Sun, 20 Feb 2022 01:32:08 +0100

The pre order traversal search, middle order traversal search and post order traversal search of binary tree in Java version

PS: This article is a reprint of the article. It will be more readable to read the original text. There is a link to the original text at the end of the articlecatalogue1. Node search of binary tree 1,1 Preorder traversal search 1,2 Middle order traversal search 1,3 Post order traversal search 1. Node search of binary tree1. 1 preorder tr ...

Posted by mepaco on Sat, 19 Feb 2022 23:47:43 +0100