summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* Correct PowerManager transaction IDs.Wang Wen2020-05-051-4/+4
| | | | | | | | | | These transaction IDs must be kept in sync with the method order from IPowerManager.aidl. Test: build, compare to java aidl output Merged-In: I3123a8803c334f7e82fe6da3df0202eb56786b1c Change-Id: I89fb072b7d2d44f165a7116d993dbdc047827424 Signed-off-by: Wang Wen <wangwen1@meizu.com>
* Merge tag 'android-10.0.0_r31' into lineage-17.1-android-10.0.0_r31Luca Stefani2020-03-071-3/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Android 10.0.0 release 31 * tag 'android-10.0.0_r31': RESTRICT AUTOMERGE: Fix removal of handle from map libgui: Add discardFreeBuffers callback to producer Enable deep press by default. Revert "Fix drag and drop (2/3)" Don't leak input events to dumpsys on user builds Don't leak input events to dumpsys on user builds Don't leak input events to dumpsys on user builds Include extra HALs in dump state Include automotive HALs in dumpstate SurfaceFlinger: lock mStateLock when modifying allowed configs Resize object capacity when shrinking Parcel EGL: Fix repeated extension lookups Fixing crash on allocation Capping buffer size to std::numeric_limits<size_t>::max() Update tests for canReceiveInput policy changes Changed BufferLayer's canReceiveInput to check if its hidden by policy Sensor: use FlattenableUtils::align Change-Id: I9aca51e49004cd00670cbea7d8ecd54be9806988
| * Revert "Fix drag and drop (2/3)"Arthur Hung2019-12-091-3/+1
| | | | | | | | | | | | | | | | | | | | This reverts commit fbe5d9c4233dcd802a122f70ca5a3641fcd556ca. Bug: 137819199 Test: manual Change-Id: I7afec569519b9c69eb03225672db6db141b20241 Merged-In: I7afec569519b9c69eb03225672db6db141b20241 (cherry picked from commit 6cbb97591535868d629a562dfd7d8e24865cf551)
* | PowerManager.h: Define USER_ACTIVITY_FLAG valuesCorinna Vinschen2019-12-111-0/+6
|/ | | | | Change-Id: I90daada0d887008d56e84ce29b3f0b011a298698 Signed-off-by: Corinna Vinschen <xda@vinschen.de>
* Fix documentation for AHardwareBuffer_(to|from)HardwareBuffer.Krzysztof Kosiński2019-05-161-8/+16
| | | | | | | | | | These functions were not showing up in the NDK documentation due to missing Doxygen commands. Bug: https://github.com/android-ndk/ndk/issues/706 Bug: 132738639 Test: N/A, documentation-only fix Change-Id: I329f79da251e62b5f4f05feb7ce837c728e2cb32
* Add IAudioManager method for releasing a recorder.Mikhail Naganov2019-05-091-0/+2
| | | | | | | | | oneway releaseRecorder(int riid) - unregisters a client recorder Bug: 123312504 Test: start and stop audio recording, check "dumpsys audio" Change-Id: I894de434a0bfeaaca37601a406feda1c62e060c7
* Add IAudioManager methods for tracking client recording activityMikhail Naganov2019-04-222-1/+13
| | | | | | | | | | | | | | | | | | | | audio_unique_id_t IAudioManager::trackRecorder(IBinder token) - registers a client recorder withing Audio Service, returns a unique tracking recording ID (RIID); Audio Service tracks the lifetime of the recorder using the provided token. oneway recorderEvent(int riid, int event) - updates the current state of the client; only "started" and "stoped" states are considered. Bug: 123312504 Test: android.media.cts.AudioRecordingConfigurationTest AudioRecordTest#testAudioRecordInfoCallback MediaRecorderTest#testAudioRecordInfoCallback manual testing using Oboe and Solo test apps Change-Id: Iddb1b91fff7127ab35ba1d33e3e6c32937ac3081
* Add missing Doxygen groups to new APIs.Dan Albert2019-04-183-0/+21
| | | | | | | | Doxygen docs only appear on DAC if they are a part of a group. Test: None Bug: http://b/130659204 Change-Id: I7617c10a04de0fde7fbd1213f1fe6dd0d22208bd
* Merge "Add more OWNERS" am: 55175fdb34 am: 0af6b6cbc6John Reck2019-04-031-0/+2
|\ | | | | | | | | | | am: 765ed298fa Change-Id: I95c7cba321af1494a636c49804e1660813b1506e
| * Merge "Add more OWNERS"Treehugger Robot2019-04-031-0/+2
| |\
| | * Add more OWNERSJohn Reck2019-04-031-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | +jreck for bitmap & graphics android/ includes +nona for font & text android/ includes Test: none Change-Id: Ic6ac3defa490fccf2c979a43ee4421e3c52ac02b
| * | DO NOT MERGE - Merge PPRL.190305.001 into masterXin Li2019-03-111-0/+13
| |\ \ | | |/ | |/| | | | | | | Bug: 127812889 Change-Id: I1cb1c38609ee26bb7c3e7343a9ed4c85fb4fb0a6
| | * Sanitize InputMessage before sendingSiarhei Vishniakou2019-01-161-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The struct InputMessage has many fields, and is force-aligned to 8-byte boundaries. There are also some padding fields that carry no information. This struct is typically allocated in the stack and populated with various values before being sent across as a stream of bytes through the socket. Therefore, the "unused" data portions of the struct could contain portions of the stack, since there aren't ever writes to those memory locations. To avoid this information leak, forcefully sanitize the struct. Create a new struct that is explicitly set to zero. Next, only fill the meaningful fields manually. Bug: 115739809 Test: cts-tradefed run cts -m CtsSecurityBulletinHostTestCases -t android.security.cts.Poc18_12; adb shell monkey 100000 Change-Id: I7e44dacf1e8fa3156c8e4d2f7784ef0c53dab507 Merged-In: I7e44dacf1e8fa3156c8e4d2f7784ef0c53dab507 (cherry picked from commit e730f5aaa1c726ee9998a080e2d7f6284f4afec8)
* | | Reorganize system font APIsSeigo Nonaka2019-04-023-288/+491
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL reorganizes the system font related APIs with following things: - Move match function from system_fonts.h to new header file. The matching logic is not only for system fonts. The custom font or custom fallback Typeface can be a target of this matcher. - Introduce new struct AFontMatcher for keeping matching rules. This is for future extensibility. We may add another parameter for querying fonts in future. - Renamce ASystemFont to AFont and moved to new header file. This is mainly because for future improvements. Currently we don't have any plan for doing this in Q timeline, but the matcher object can be used for Java Typeface object via JNI. For example, build Typeface in Java and pass down to JNI and query the font for the passed Typeface. Bug: 129559385 Test: TEMPORARY_DISABLE_PATH_RESTRICTIONS=true m ndk-docs Test: atest CtsGraphicsTestCases:android.graphics.fonts Change-Id: I6c593d9597b1f1ff71eaea6ecf7992890d635480
* | | Merge "Make InputApplicationInfo as a part of InputApplicationHandle (1/2)"TreeHugger Robot2019-03-261-12/+5
|\ \ \
| * | | Make InputApplicationInfo as a part of InputApplicationHandle (1/2)Arthur Hung2019-03-221-12/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | InputWindowHandle::updateInfo would also call InputApplicationHandle::updateInfo that may access the null pointer if the focus application changed in same time. - To replace allocated mInfo in updateInfo(), make it as an object   member variable of InputApplicationHandle. Bug: 128930899 Test: atest inputflinger_tests Change-Id: Id19d2d8cd1be181ea994d0efa7afbb2567c4d734
* | | | Use std::vector over Vector for InputFlinger (1/3)Arthur Hung2019-03-214-7/+8
|/ / / | | | | | | | | | | | | | | | | | | | | | Replace Vector<T> with std::vector<T>. Bug: 112399697 Test: atest inputflinger_tests Change-Id: I8baec68f7a684d97210077f3e387ca1096586a25
* | | Merge "Input: Override touchable region bounds with surface bounds 2/2"TreeHugger Robot2019-03-171-1/+3
|\ \ \
| * | | Input: Override touchable region bounds with surface bounds 2/2Vishnu Nair2019-03-121-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Take advantage of the surface flinger layer hierarchy to set touchable region. - Let a client set a surface touchable region to its own bounds. - Let a client set a surface touchable region to another surface bounds. - Let a client bound its touchable region to a surface. Test: go/wm-smoke Test: existing tests Change-Id: I447c93353d067a296007ba8f8341d2420b941d71
* | | | update enum for renamed apiSalvador Martinez2019-03-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This just updates the enum name to match the function. Test: system boots Bug: 117154042 Change-Id: I857570881715c97c23f1e2410cbd88874c0e0424
* | | | Fix "heirarchy" typo.Elliott Hughes2019-03-081-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Also a "the the" stutter. Test: N/A Change-Id: I7e77a41e49af454c2161a48ecb92402bba3442c2
* | | | Add explicit 64-bit postFrameCallback APIsSantos Cordon2019-03-041-7/+34
|/ / / | | | | | | | | | | | | | | | Bug:123660572 Test: atest -a android.view.cts.ChoreographerNativeTest Change-Id: I230761fc4a16c4149f1bd55e65a0a629f41fe869
* | | Merge "Replace non-alphanumerics with _ in VirtualKeyMap"TreeHugger Robot2019-02-211-0/+9
|\ \ \
| * | | Replace non-alphanumerics with _ in VirtualKeyMapSiarhei Vishniakou2019-02-211-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We currently rewrite device name for finding the matching .idc, .kl, .kcm files, but we aren't allowing this for virtual key maps. Rewrite the name for virtual devices to provide some flexibility in matching for the right files in sys/board_properties. Bug: 113575658 Test: atest libinput_tests inputflinger_tests Change-Id: I54d159e9ecf02327cae388ae14c0bcf21c415e6e
* | | | Merge "Refactor VirtualKeyMap"TreeHugger Robot2019-02-211-1/+1
|\| | |
| * | | Refactor VirtualKeyMapSiarhei Vishniakou2019-02-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, there's a lot of new and delete going on in VirtualKeyMap. Simplify this by using unique_ptr instead. Bug: 113575658 Test: atest libinput_tests inputflinger_tests Change-Id: Ib2a68ae23a4300b0e2cf72902371f4b9604cfee5
* | | | Merge "Add synchronous transaction to wait for setInputWindow to complete (3/n)"Chavi Weingarten2019-02-212-1/+43
|\ \ \ \
| * | | | Add synchronous transaction to wait for setInputWindow to complete (3/n)chaviw2019-02-202-1/+43
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added callback for InputDispatcher to report back to SF. Pass in an interface callback to setInputWindows so InputDispatcher can send a response when setInputWindows has completed. The callback can be null so InputDispatcher knows not to send a response on every setInputWindows call. Bug: 123041491 Test: Builds, runs Change-Id: I18b28141a0bb5f2e1ffb406d601dc7822ca89ecd
* | | | Merge "Remove unused defines from Keyboard.h"TreeHugger Robot2019-02-211-9/+0
|\ \ \ \ | |/ / / |/| | |
| * | | Remove unused defines from Keyboard.hSiarhei Vishniakou2019-02-201-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These defines are no longer used. Bug: none Test: build only Change-Id: Iebf77341be0c58e24e26260899b02f1cf5fe8f08
* | | | Rotate TouchVideoFramesSiarhei Vishniakou2019-02-191-0/+13
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a screen orientation change happens, the touch coordinates are adjusted in InputReader to accomodate this rotation. When the user is holding the device, the origin (0, 0) is always at the top left of the screen. However, currently, the TouchVideoFrames are not being rotated. This presents a problem, because the touch coordinates cannot be directly matched to the heatmap, as received in the HAL. To account for this, we rotate the touch video frame. Test: atest libinput_tests inputflinger_tests Bug: 123241238 Change-Id: Iff45c68b1d2b237d2b1657ed76f50bb23ef8468a
* | | Swap width and height in TouchVideoFrameSiarhei Vishniakou2019-02-151-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently in TouchVideoFrame and related code, the field 'width' precedes the field 'height'. But these fields should be interpreted as follows: width -> number of columns height -> number of rows In most notations in mathematics, the matrix sizes are designated as 'mxn', where m is the number of rows and n is the number of columns. So we make TouchVideoFrame consistent with this, and swap these 2 fields. Test: atest libinput_tests The actual test is added in the next commit. Bug: 123241238 Change-Id: I808e7f354bd7b62d5599324eef205bf4450a91c1
* | | Move implementation to TouchVideoFrame.cppSiarhei Vishniakou2019-02-151-14/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, the implementation for TouchVideoFrame.h is done directly in the header file. But we are adding more logic into TouchVideoFrame, specifically, the ability to rotate videoframes. Therefore, add a separate cpp file for TouchVideoFrame. Test: atest libinput_tests The actual test is added in an upcoming commit Bug: 123241238 Change-Id: I4463099d251ab49533d25dd9da7c344e1a7ac93e
* | | Merge "ASurfaceControl: dataspace (2/2)"TreeHugger Robot2019-02-111-0/+10
|\ \ \
| * | | ASurfaceControl: dataspace (2/2)Marissa Wall2019-02-081-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow dataspace to be set on the SurfaceControl. Test: atest CtsViewTestCases:android.view.cts.ASurfaceControlTest Bug: 80477568 Change-Id: I70b2109e4691c039899c9e8a3606c46c69428a3f
* | | | Remove EventHub header from include dirPrabir Pradhan2019-02-061-0/+7
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since the EventHub header does not need to be exported, this removes the header from the include directory. This also moves the reserved input device ids from EventHub to input/InputDevice.h. Bug: None Test: None Change-Id: I272878245ee60c85e4539b381a20962ca9236cfd
* | | Merge "Introduce new portal window which transports touch to another display"Tiger Huang2019-01-301-0/+1
|\ \ \
| * | | Introduce new portal window which transports touch to another displayTiger Huang2019-01-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It enables the user to directly touch on a window of a display embedded on another one. The embedded displays can be nested. The monitoring channels of the embedded display can also receive touch events. Bug: 120675821 Test: Manual test with ActivityViewTest Test: atest -a inputflinger_tests Test: atest CtsActivityManagerDeviceTestCases:ActivityViewTest Change-Id: I773c7efb1b048080020aadd45156261a10095fcb
* | | | Add a new InputClassifier stageSiarhei Vishniakou2019-01-281-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new InputClassifier stage could be used for additional processing of input events prior to sending them to InputDispatcher. The new flow of events will be InputReader -> InputClassifier -> InputDispatcher. Here, we are calling the InputClassifier HAL and setting the MotionEvent classification appropriately. Bug: 62940136 Test: override notifyMotion to add extra flags to NotifyMotionArgs for certain types of input events. Test: atest inputflinger_tests Change-Id: I2f390dc69f587ea25a3be8e4b8d5a207a5d529bf
* | | | Add Color Layer to ASurfaceControlValerie Hau2019-01-231-0/+11
|/ / / | | | | | | | | | | | | | | | Bug:122326454 Test: atest CtsViewTestCases:android.view.cts.ASurfaceControlTests Change-Id: Ib05ad70d838c79aa6f2e309217b93906c950b6fa
* | | Merge "ASurfaceControl: add more support to NDK (2/2)"TreeHugger Robot2019-01-221-15/+142
|\ \ \
| * | | ASurfaceControl: add more support to NDK (2/2)Marissa Wall2019-01-181-15/+142
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds several new functions and updates existing functions. - release fences - desired present time - alpha - hdr metadata Test: atest CtsViewTestCases:android.view.cts.ASurfaceControlTest Bug: 80477568 Change-Id: I6f6c4c6e295530cdb9e86b308483818062149cc1
* | | | Merge changes from topic "sensors_ndk_filter"TreeHugger Robot2019-01-221-0/+24
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Implement Sensors NDK Filtering Define ASensorEventQueue_requestAdditionalInfoEvents
| * | | | Define ASensorEventQueue_requestAdditionalInfoEventsBrian Stack2019-01-181-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 77276247 Test: Builds Change-Id: Ia6a4fa507dcd4009f04b8ad1cfe5aabfb9535ac6
* | | | | Better docs for KEYCODE_PROFILE_SWITCHOleg Kibirev2019-01-181-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 122276228 Test: not needed Change-Id: I8b0583fbd945eae97e735c22d0c523105df4cb15
* | | | | Merge "Propagate MotionClassification to InputDispatcher"TreeHugger Robot2019-01-172-1/+8
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | Propagate MotionClassification to InputDispatcherSiarhei Vishniakou2019-01-162-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We added MotionClassification to MotionEvent and NotifyMotionArgs, but the two have not yet been connected. Connect them here, to ensure that apps can receive the classification. Bug: 111480215 Test: atest -a libinput_tests inputflinger_tests Change-Id: I67dda22d9ee8a2d89abf40dbd01200ec37a65737
* | | | | Add ASensor_getHandle API to Sensors NDKBrian Stack2019-01-161-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduces the ASensor_getHandle API which returns the provided sensor's internal sensor handle. This allows for AdditionalInfo sensor events to be mapped to the sensor that generated the event. Bug: 122366555 Test: Builds, verified function correctly returns sensor's handle Change-Id: I9a03ccc8b0840481fe1b5b4d1e5bca05adcf48a3
* | | | | Add Additional Information types to NDKBrian Stack2019-01-161-1/+75
|/ / / / | | | | | | | | | | | | | | | | | | | | Bug: 122366555 Test: Builds Change-Id: I1430d330363fc9d8b9b0928ec1411e415f799e85
* | | | Merge "Minor changes to the async DNS query API flag definitions." am: ↵Luke Huang2019-01-161-7/+17
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | 9a22123ae4 am: cf5ef56465 am: f3fd643dc9 Change-Id: I4df5ae983e21ddde2e2c6c5f0f2b5855d9df2fab