This is a mechanical renaming for classes outside
android.view.inputmethod package.
For non IMF classes, let's expose InputMethodManagerGlobal rather than
IInputMethodManagerGlobal.
In the next CL [1], we want to merge IInputMethodManagerGlobal and
IInputMethodManagerInvoker into a single class, and this CL is just a
preparation.
There must be no observable behavior changes.
[1]: I310a33f27b876419b6a3058202dcbd663b541079
Bug: 234882948
Test: presubmit
Change-Id: I9b728560369179d5ee17c3570a2543b49b3f14ce
* changes:
Describe requested visibilities in public types (3/n: server side)
Describe requested visibilities in public types (2/n: client-server)
Describe requested visibilities in public types (1/n: client side)
DisplayResolveInfo#getDisplayLabel() internally loads the display label
if it is missing and a ResolveInfoPresentationGetter is set for the
instance.
Current view binding logic unconditionally calls getDisplayLabel method
which could trigger label resolution on the main thread and a
consequently scheduled label loading asynchronous task a no-op.
Test: manual functionality testing
Test: introduce artificial into LoadLabelTask, observe labels lading
asynchronously and does not reload when scrolling through a long list
of options.
Test: atest FrameworksCoreTests:ResolverActivityTest
Bug: 245934835
Change-Id: I392d6c8424617820bde58887d92ae99bc39c5b7b
A subsequent change will actually move the files to the other git
project.
Bug: 243194720
Test: presubmit
Change-Id: If126bb68f74852528c4da8df79831b49b5129983
The four byte sequence modified UTF-8 is now handled by classes
prefixed with ART, whereas the base classes implements the standard
modified UTF-8 and should be used by new clients in modules.
Bug: 243194720
Test: atest -rerun-until-failure 10 FastDataTest BinaryXmlTest \
FrameworksCoreTests:XmlTest FastDataPerfTest
Change-Id: I08cea54c2a27249e00b7e155af0cf11949486375
- Apply sampling for the border to reduce the amonut of pixel
for calculating luminance.
- Use getInt to get color rather than get a byte 4 times.
- Use a simpler formula to approximate luminance.
- Replace median with mode to represent the luminance. It is more
efficient (no need sort) and the visual result may be better if
the distribution is U-shaped.
- Extract common code to policy package to reduce duplicated
code in system server and shell.
The calculation is 10 times faster for the first execution,
and 5 times faster on average.
Bug: 253610885
Test: atest RotationAnimationUtilsTest
Change-Id: Ieca9968e843b68d733e178edd725b628c542e872
Currently, when the widget host stops listening to the widget updates,
the callback will be set to null and the updates to the widget will be
stashed on the service side. Additionally, the visibility of the widget
will be changed. For an upcoming change to the launcher side, a function
that only changes the visibility should be added.
Test: N/A
Bug: 235358918
Change-Id: I9a0f244ca76b378d9c337e0a364bca5955f5ae96
Needs to be called by doing `adb shell dumpsys statusbar --proto`
because using `dumpsys activity service` adds text to the dump.
Will also be dumped as part of the BR
Test: atest SystemUITests
Test: Used in CTS
Test: manual dump and BR
Fixes 237786667
Change-Id: I74abf65a76c059ea9bb5a14728192b6b683b7fc7
This change will enable the "mic mute" key on keyboards to globally mute
the microphone using the SensorManager, which has UI implemented in
multiple places (quick shortcuts, privacy center, settings...).
Test: manual
Bug: 237355207
Signed-off-by: LiZhihong <lizh52@lenovo.corp-partner.google.com>
Signed-off-by: DingYong <dingyong2@lenovo.corp-partner.google.com>
Change-Id: I492e501503b0ab9f56e1fa84fcc77a8c798bcb83
To update locale, it doesn't need a full configuration because
system only applied the diff of config from non-undefined fields.
IActivityManager#getConfiguration actually gets the configuration
according to the pid, which is process configuration. And process
configuration can be overridden by the activity running in its
process. So the returned value shouldn't be used to update the
system persistent configuration.
Therefore it is enough to use a new Configuration instance with
setting the necessary fields. This is also more efficient that
saves a binder call to system.
Bug: 253386061
Test: atest LocaleManagerTests
Change-Id: Icdce437fcf1a3bef0562cfc4dd5ad3ba52ea08ef
With this CL,
adb shell dumpsys input_method,
tells us about whether startInputInner() is triggered by
InputMethodManager.DelegateImpl#onScheduledCheckFocus()
or
InputMethodManager#checkFocus().
Other than that there must be no observable behavior change.
Bug: 234882948
Test: presubmit
Change-Id: I54ebf1a4e1f749ce265756908ef52fc63f1218e5
InputMethodManagerService has had logic to show notifications when the
IME switcher icon cannot be shown on NavigationBar[1][2][3][4][5].
With this CL, such a fallback behavior is completely removed. Devices
and form-factors that need a special handling need to come up with
their own solution rather than relying on this historical notification
mechanism.
[1]: I2b9e955003c1f6703978824c947d5f322a039714
7cfc0ed21a
[2]: Id36c8c34159bea8b72557b40bcf024d401f580b6
01065a5719
[3]: I34a95732ef3e7c20d6549b57230c11f0c3db04d6
d4b625994f
[4]: I58421143bee25be459f4f744688b37614a750051
f62c0b837a
[5]: I6ad818fc9ef08991e24c5020498243f1fc417998
24ab9e18a7
Bug: 245989733
Test: atest CtsPermission2TestCases:ProtectedBroadcastsTest
Test: presubmit
Change-Id: I3b09d2b05ba9bde686b360b9f720b5d4258551c3
This adds Jank instrumentation every time recent tasks are scrolled.
Bug: 231130484
Bug: 228969045
Test: recorded prefetto trace while scrolling
Change-Id: I48201e73d7025ec2ff38c7f9158eec27ed9cbafa
This allows the framework to ask for a monitor to use for backups that
are initiated by the framework (i.e. scheduled backups). Previously
the only way to pass a monitor in was through the
BackupManager#requestBackup API.
I also moved BackupManagerMonitorWrapper to a separate class now that
it's shared by three different classes.
Bug: 252763821
Test: atest CtsBackupHostTestCases
Also manually by implementing a simple monitor inside LocalTransport
and calling the new getBackupManagerMonitor.
Change-Id: I84d56a3e80d6c94f9a327f7d71876d1bc27fe5ac