| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
| |
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>
|
| |\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This reverts commit fbe5d9c4233dcd802a122f70ca5a3641fcd556ca.
Bug: 137819199
Test: manual
Change-Id: I7afec569519b9c69eb03225672db6db141b20241
Merged-In: I7afec569519b9c69eb03225672db6db141b20241
(cherry picked from commit 6cbb97591535868d629a562dfd7d8e24865cf551)
|
| |/
|
|
|
| |
Change-Id: I90daada0d887008d56e84ce29b3f0b011a298698
Signed-off-by: Corinna Vinschen <xda@vinschen.de>
|
| |
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
| |
oneway releaseRecorder(int riid)
- unregisters a client recorder
Bug: 123312504
Test: start and stop audio recording, check "dumpsys audio"
Change-Id: I894de434a0bfeaaca37601a406feda1c62e060c7
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
| |
Doxygen docs only appear on DAC if they are a part of a group.
Test: None
Bug: http://b/130659204
Change-Id: I7617c10a04de0fde7fbd1213f1fe6dd0d22208bd
|
| |\
| |
| |
| |
| |
| | |
am: 765ed298fa
Change-Id: I95c7cba321af1494a636c49804e1660813b1506e
|
| | |\ |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
+jreck for bitmap & graphics android/ includes
+nona for font & text android/ includes
Test: none
Change-Id: Ic6ac3defa490fccf2c979a43ee4421e3c52ac02b
|
| | |\ \
| | |/
| |/|
| | |
| | | |
Bug: 127812889
Change-Id: I1cb1c38609ee26bb7c3e7343a9ed4c85fb4fb0a6
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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)
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| |\ \ \ |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
| |/ / /
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Replace Vector<T> with std::vector<T>.
Bug: 112399697
Test: atest inputflinger_tests
Change-Id: I8baec68f7a684d97210077f3e387ca1096586a25
|
| |\ \ \ |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This just updates the enum name to match the function.
Test: system boots
Bug: 117154042
Change-Id: I857570881715c97c23f1e2410cbd88874c0e0424
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Also a "the the" stutter.
Test: N/A
Change-Id: I7e77a41e49af454c2161a48ecb92402bba3442c2
|
| |/ / /
| | |
| | |
| | |
| | |
| | | |
Bug:123660572
Test: atest -a android.view.cts.ChoreographerNativeTest
Change-Id: I230761fc4a16c4149f1bd55e65a0a629f41fe869
|
| |\ \ \ |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
| |\| | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
| |\ \ \ \ |
|
| | |/ / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
| |\ \ \ \
| |/ / /
|/| | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
These defines are no longer used.
Bug: none
Test: build only
Change-Id: Iebf77341be0c58e24e26260899b02f1cf5fe8f08
|
| |/ / /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| |\ \ \ |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Allow dataspace to be set on the SurfaceControl.
Test: atest CtsViewTestCases:android.view.cts.ASurfaceControlTest
Bug: 80477568
Change-Id: I70b2109e4691c039899c9e8a3606c46c69428a3f
|
| |/ / /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| |\ \ \ |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
| |/ / /
| | |
| | |
| | |
| | |
| | | |
Bug:122326454
Test: atest CtsViewTestCases:android.view.cts.ASurfaceControlTests
Change-Id: Ib05ad70d838c79aa6f2e309217b93906c950b6fa
|
| |\ \ \ |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
| |\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* changes:
Implement Sensors NDK Filtering
Define ASensorEventQueue_requestAdditionalInfoEvents
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Bug: 77276247
Test: Builds
Change-Id: Ia6a4fa507dcd4009f04b8ad1cfe5aabfb9535ac6
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Bug: 122276228
Test: not needed
Change-Id: I8b0583fbd945eae97e735c22d0c523105df4cb15
|
| |\ \ \ \ \
| |/ / / /
|/| | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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
|
| |/ / / /
| | | |
| | | |
| | | |
| | | |
| | | | |
Bug: 122366555
Test: Builds
Change-Id: I1430d330363fc9d8b9b0928ec1411e415f799e85
|
| |\ \ \ \
| |/ / /
|/| | |
| | | |
| | | |
| | | |
| | | |
| | | | |
9a22123ae4 am: cf5ef56465
am: f3fd643dc9
Change-Id: I4df5ae983e21ddde2e2c6c5f0f2b5855d9df2fab
|