Problem: When dismissing the selection by clicking the TextView,
invalidateActionModeAsync is called to ask text classifier to
generate a new smart action for the selected text. It is not necessary
because the selection is going to be dismissed.
Cause:
To update the smart action chip when a user adjusts the selection
span by dragging the selection handle, we call showFloatingToolbar()
when we get an ACTION_UP event. The problem is that we also get
an ACTION_UP event when user dismisses the seletion by clicking
the textview. In that case, we don't need to update the smart action
chip or show the floating toolbar.
Solution:
Only call ShowFloatingToolbar() when we get an ACTION_UP and also
the user is modifying the selection/insertion curosr.
Test: Added a test in TextViewIntegrationTest.
Test: Manual. Input a long phone number. Change the selection span to
select fewer digits. Click "Call" and check the prefilled number.
Test: Manual. Drag the insertion curosr(w EditText), floating toolbar is
reshown when lifting the finger.
Fixes: 169042542
Change-Id: Ic398a8521d99218b14689fe0668adc22e6b143c5
This assertion is ~30% flaky at the moment
Bug: 162923992
Test: atest FlickerTests
Change-Id: I4abe2869a83ee6de910bd78f41ea0bbe802908f1
(cherry picked from commit 8982df5d9a)
Do not hold the referecne of font config, fallback map and typeface map
which are not accessed frequently. Keep the final SharedMemory which
is used for launching new application.
Bug: 178472803
Test: N/A
Change-Id: Ice4fc349e5d61c6f37f7f8a6962319e70f0b373a
This reverts commit 31fa0fc9c1.
Reason for revert: Play data loader doesn't write data to incfs during "Downloading...", so we shouldn't use incfs progress to replace install progress. Reverting this, so that Launcher will display the install progress ring during "Downloading..." using the progress reported from Phonesky.
Change-Id: I124033d725fe488fd337b6ded0bdf319a764b6ca
Merged-In: I124033d725fe488fd337b6ded0bdf319a764b6ca
BUG: 178528778
(cherry picked from commit d0cec52acb)
Change-Id: Ib6637be489e36c78e5074c161d01ac510da5d045
Add config "config_voice_data_sms_auto_fallback", when this
config enabled, Voice/Data/SMS preference would be auto selected
without user confirmation in various SIM hot-swap, disable/enable cases.
Bug: 111667898
Test: atest FrameworksTelephonyTests:MultiSimSettingControllerTest
Merged-in: I0d9f8cee27d6ca79489c2fc5cc721a6bc461c2be
Change-Id: I0d9f8cee27d6ca79489c2fc5cc721a6bc461c2be
(cherry picked from commit 17bcfb7a175df99e8017929f9c6450d79e9e11fb)
(cherry picked from commit 04d446e98b)
First step in refactoring the concurrency code. Moving this constant
over to JCM since it's a small unit that won't be changed and it's only
used by JCM.
Bug: 141645789
Bug: 171305774
Bug: 178119369
Test: atest CtsJobSchedulerTestCases
Test: atest FrameworksMockingServicesTests:JobSchedulerServiceTest
Test: atest FrameworksServicesTests:JobCountTrackerTest
Test: atest FrameworksServicesTests:MaxJobCountsTest
Test: atest FrameworksServicesTests:PrioritySchedulingTest
Change-Id: I2bc3646901fb8d11ec5818ab10fa6653cfd2e684