Commit Graph

416717 Commits

Author SHA1 Message Date
Tyler Gunn
ac60f9554e Enhancements to conference for non-conference host scenarios.
When a device A creates a conference call containing device B and C, both
B and C can receive IMS signaling to indicate that they are in a conference
call.  This occurs on most domestic carriers; the Telephony framework
uses the "multiparty" indicator on the IMS call to switch the call to a
conference call.

We made some changes to how conference calls are logged in Q which improves
the accuracy of the call durations.  We used to log calls as they're merged
into a conference.  In the case of a participant in a remotely hosted
conference call, we'd log the call as soon as they are remotely added
to the conference.  This is unfortunate as the call durations are grossly
under-reported.

The conference call logging changes now assume we'll log the conference
event package children in the conference instead of the participants which
merge into the conference itself.  On domestic carriers, since the
call on B (or C) becomes a conference, we would then no longer log the
call.

This is FURTHER complicated because on some carriers, B and C will ALSO
receive a conference event package from the network showing all the
participants in the conference.  So if B hangs up on the conference, they
will have entries in their call log for A and C, which is really strange
because a call to C was never originated on their device.

In Telecom we need to ensure we do not log remotely hosted conference
participants, and we need to ensure that we DO log a remotely hosted
conference as if its just a single party call.

To accomplish this we need:
1. the address and name display information associated with the call from
A-B / A-C prior to the call turning into a remotely hosted conference.
We need this to log to the call log
2. the remotely hosted conference and participants need to be marked in a
manner that Telecom can identify them.

Test: Manual test.
Test: Add unit test to cover this logging scenario.
Bug: 132325382
Change-Id: I65e713f68d1695a48d96dacbf7faa4476cd8d815
2019-05-31 12:45:19 -07:00
Tao Bao
731490a142 Merge "Write system property persist.sys.provisioned" into qt-dev 2019-05-24 14:06:15 +00:00
Govinda Wasserman
35ea195df6 Merge "Adds an Assistant handle controller to the AssistManager" into qt-dev 2019-05-24 12:57:28 +00:00
Andrei-Valentin Onea
71a267b66f Merge "Move blacklisted methods back to greylist" into qt-dev 2019-05-24 12:02:31 +00:00
Anton Hansson
d4070aada9 Merge "Installd: migrate legacy obb data when user 0 unlocks." into qt-dev 2019-05-24 11:06:50 +00:00
Pavel Grafov
b48341391f Merge "Assume that profile with separate lock is locked if showing keyguard." into qt-dev 2019-05-24 11:05:08 +00:00
Stanislav Zholnin
d904cb583b Merge "Add PermissionFlags field to DangerousPermissionState atom." into qt-dev 2019-05-24 10:43:54 +00:00
Stanislav Zholnin
75c3fd1ef5 Add PermissionFlags field to DangerousPermissionState atom.
Bug:133401502

Change-Id: I0072ab374b85609636c1f32e55154badf7bf9dc0
Test: make statsd_testdrive && ./out/host/linux-x86/bin/statsd_testdrive 10050
2019-05-24 10:43:34 +00:00
TreeHugger Robot
51f286c974 Merge "Testdrive: allow multiple atoms in pulled atoms" into qt-dev 2019-05-24 06:29:14 +00:00
TreeHugger Robot
da7156d13d Merge "Mark perm DB version as -1 when upgrading from P" into qt-dev 2019-05-24 05:59:44 +00:00
Michael Dooley
58ac2ae2cb Merge "Limit GetModelState API to generic sound models (ie music detector)" into qt-dev 2019-05-24 05:37:10 +00:00
Kyunglyul Hyun
5644a46b3c Merge "Media: Add group id for media router to sync" into qt-dev 2019-05-24 02:32:17 +00:00
Jin Seok Park
013bc8ae8e Merge "Prevent file descriptor leak" into qt-dev 2019-05-24 02:08:43 +00:00
TreeHugger Robot
ebdb9db33b Merge "Fix the internet permission for native services" into qt-dev 2019-05-24 01:18:19 +00:00
TreeHugger Robot
585422a5d2 Merge "Fixes the bug that can occur when StatsCompanionService calls StatsService to update UID data and overflows kernel transfer buffer." into qt-dev 2019-05-24 00:26:19 +00:00
Jin Seok Park
8a2a706e17 Prevent file descriptor leak
Bug: 133251455
Test: atest CtsMediaTestCases:android.media.cts.ExifInterfaceTest;
Change-Id: I9f27e1dd44908921f1a46d8bcdd8ad8090158d18
2019-05-24 09:11:33 +09:00
Soonil Nagarkar
beff33a3bd Merge "Restore GpsStatus listeners" into qt-dev 2019-05-23 23:42:15 +00:00
Philip P. Moltmann
fedd2455f5 Merge "Make loc bg perm restricted" into qt-dev 2019-05-23 23:29:24 +00:00
Philip P. Moltmann
1ae81a547e Mark perm DB version as -1 when upgrading from P
So that we can implement different behavior between Android P and Q.

Test: Upgraded P->Q and booted fresh install of Q. Checked DB after boot
Bug: 131427665
Change-Id: I89f9dc1fc11129c95c03834e21628c6be75f2875
2019-05-23 16:14:33 -07:00
Philip P. Moltmann
3fb12ba490 Merge "Make sure to always upgrade runtime permissions" into qt-dev 2019-05-23 23:10:49 +00:00
Ying Liu
d6c8e026b9 Merge "Modified camera framework stress tests." into qt-dev 2019-05-23 23:06:41 +00:00
Govinda Wasserman
c7495cd607 Adds an Assistant handle controller to the AssistManager
This will control when the Assistant handles show or hide.

Change mode using the following command:

$ adb shell am broadcast \
  -a "com.google.systemui.SET_ASSIST_HANDLE_BEHAVIOR" \
  --es behavior "${BEHAVIOR}"

BEHAVIOR can be one of: OFF, LIKE_HOME, or REMINDER_EXP

Change the minimum time between handle appearance in REMINDER_EXP using
the following command:

$ adb shell setprop ASSIST_HANDLES_SHOWN_FREQUENCY_THRESHOLD_MS \
  ${DESIRED_MILLISECONDS}

Change the duration the handles appear in REMINDER_EXP using the
following command:

$ adb shell setprop ASSIST_HANDLES_SHOW_AND_GO_DURATION_MS \
  ${DESIRED_MILLISECONDS}

BUG:132983599
BUG:131115187
Test: atest AssistHandleBehaviorControllerTest
Test: Tested locally.
Change-Id: I44bb59367159226b67a2aeb49aae2a5b34584d70
2019-05-23 18:57:58 -04:00
TreeHugger Robot
d63c92bb62 Merge "Fix up accessibility issues in Time picker." into qt-dev 2019-05-23 22:49:56 +00:00
TreeHugger Robot
2d2508c3ae Merge "Re-add resetTranslation() call that went missing" into qt-dev 2019-05-23 22:49:47 +00:00
Sudheer Shanka
5af9bed265 Merge "Trigger a mediascan when downloads get renamed." into qt-dev 2019-05-23 22:36:09 +00:00
TreeHugger Robot
8af0af88cc Merge "Fixed an issue where notification groups could be empty" into qt-dev 2019-05-23 22:04:21 +00:00
Selim Cinek
7e5f30f220 Merge "HeadsUpAppearanceController: allow heads-up to draw beyond bounds" into qt-dev 2019-05-23 22:01:40 +00:00
TreeHugger Robot
31b3161a4e Merge "Only use grid layout for power menu when wallet is visible" into qt-dev 2019-05-23 21:48:58 +00:00
Yao Chen
318296726d Increase the size limit of incident reports.
Bug: 133425862
Test: incidentd_test
Change-Id: I323878958a93e0280b782de1745ed59e44f79b0b
2019-05-23 21:31:25 +00:00
TreeHugger Robot
9a7f304d2f Merge "Use pointer width from res before getWidth is ready" into qt-dev 2019-05-23 21:22:45 +00:00
Etan Cohen
285b665784 Merge changes from topic "on_unavailable_fix" into qt-dev
* changes:
  [CM] Fix NPE due to unvalidated callback value
  [CM] Fix NPE due to unvalidated callback value
2019-05-23 20:57:22 +00:00
Max Dashouk
11e0d40bbe Fixes the bug that can occur when StatsCompanionService calls
StatsService to update UID data and overflows kernel transfer buffer.

In this case, the IPC call silently fails. The issue was discovered in Android Automotive Embedded use case that employs multiuser setup. This causes more uid data being sent via one-way StatsCompanionService::informAllUidData call than usual and can trigger the issue. As the result, uid map on statsd side is empty and many metrics are not captured.

Bug: b/132444397
Fixes: b/132444397
Test: Did a clean build of master branch and flashed the device. adb
shell cmd stats print-uid-map returned without any result. Repeated the
steps after implementing the fix, print-uid-map returns the results now.

Change-Id: I1451c13b36696449c145c51618c68d10e29a596a
2019-05-23 20:53:58 +00:00
Evan Laird
ab1faeed70 Re-add resetTranslation() call that went missing
A while back the call for ExpandableNotificationRow#resetTranslation()
went missing when reworking the blocking helper. Bring it back

Fixes: 131908593
Test: visual
Change-Id: I3a96c165e892bfee71398972d2e1dd289d09168b
2019-05-23 16:53:10 -04:00
Hai Zhang
c3c75a49ea Merge "Exclude packages that's not installed from the hash for role." into qt-dev 2019-05-23 20:38:36 +00:00
Ying Liu
dec6989bbf Modified camera framework stress tests.
Bug:130821349
Test: local run pass
'adb shell am instrument -w -r   -e waitIntervalMs 1000 -e timeout_msec
7200000 -e iterations 1 -e class
'com.android.mediaframeworktest.stress.Camera2RecordingTest#testBasicRecording'
com.android.mediaframeworktest/androidx.test.runner.AndroidJUnitRunner'

Change-Id: I2c2d84babd229b49cddeaf913d8e027189f2cbf6
(cherry picked from commit 909962d7ed)
2019-05-23 20:20:07 +00:00
Abodunrinwa Toki
a578ecce46 Merge "Convert TextClassifierEvent to SelectionEvent for logging in the default TC." into qt-dev 2019-05-23 19:35:24 +00:00
TreeHugger Robot
42fb4bb1e9 Merge "Statsd: Add watchdog rollback to experiment ids" into qt-dev 2019-05-23 19:25:43 +00:00
Peter Cai
a8178f5454 HeadsUpAppearanceController: allow heads-up to draw beyond bounds
On some devices with huge `rounded_corner_content_padding`, the icon of
heads-up notifications will be clipped or even completely removed from
view. This is caused by `HeadsUpStatusBarView` trying to align the
heads-up icon with where the icon would be on a normal notification
card, which would end up outside of the status bar contents view when
`rounded_corner_content_padding` is set to beyond a certain value.

This patch fixes the problem by allowing heads-up content to overflow
the normal status bar content region when it is shown. As long as the
rounded corner is not too huge, the aligning position of the icon should
not be a problem of its own.

Fixes: 131813566
Test: atest SystemUiTests
Change-Id: I0fb8856c301a438ca87b06fcdbcf5323d9cda18c
2019-05-23 12:24:14 -07:00
Fabian Kozynski
0d6f1636e8 Merge "Fix some attributes in themable icons" into qt-dev 2019-05-23 19:01:38 +00:00
Chenbo Feng
4c755833af Fix the internet permission for native services
The native services should specify their permissions in platform.xml if
they need internet permission, otherwise the eBPF program will block the
socket creation request. Fixing the known services that are in group
AID_INET but didn't specify their permission in the xml file.

Bug: 132217906
Test: CtsJdwpTestCases dumpsys netd trafficcontroller
Change-Id: I84cde7d3757953bc0bf761727d64a715bcdd68bb
Merged-In: I84cde7d3757953bc0bf761727d64a715bcdd68bb
(cherry picked from commit e5d6f0fa6c)
2019-05-23 11:54:49 -07:00
Philip P. Moltmann
5f5783e1fd Make sure to always upgrade runtime permissions
- For users running when the PermissionPolicyService is initialized we
  are not running onStartUser. Hence we have force to do this in
  onBootPhase
- Only write the runtime-permission fingerprint after all permission
  upgrade steps are done
  - This also means that if a user was not started in the first boot
    after an OTA we do not upgrade the fingerprint until the user was
    eventually started

Fixes: 132737426
Test: - Started a fresh build
      - Rebooted
      - Simulated an OTA
      - Added a second user
      - Simulated an OTA with a second user, rebooted and only then
        started the second user
Change-Id: I0758e8bdfefc16139bde2444f126adc3b0a17526
2019-05-23 11:47:22 -07:00
TreeHugger Robot
f087f06ed9 Merge "Document device ID access restriction target SDK behavior" into qt-dev 2019-05-23 18:35:44 +00:00
Lyn Han
9a2f5cfcfc Use pointer width from res before getWidth is ready
Fix bug where the first time that bubble stack expands
-mPointerView.getWidth() returns 0 while mPointerView is being created
-setPointerPosition adjusts pointer position by 0
-pointer points to right of center

Also
-replace mPointerView.getHeight() with mPointerHeight
-remove unused getExpandedSize()

Bug: 131849856
Test: manual
Change-Id: I433cf7755152e49c2f8a2fd3df0b70c6dd079b57
2019-05-23 11:28:48 -07:00
Steve Elliott
dc165631a3 Only use grid layout for power menu when wallet is visible
Fixes: 133426008
Test: manual
Change-Id: I55d46f16feb71e4b6733706e0ebaf154e1ca074e
2019-05-23 14:26:31 -04:00
Selim Cinek
0149739cb2 Fixed an issue where notification groups could be empty
Because we were looking at the theoretical and not the actual
showing public state, notifications could get updated to
invisible without ever recovering.
The actual showingPublic state now determins the visibility.

Fixes: 117272628
Test: add low priority child while group is on lockscreen and invisible
Change-Id: Iacdd984451a2e3d69a0aaa8186b6afab5447188e
2019-05-23 11:22:23 -07:00
Ying Zheng
1765dd1ebd Merge "Fix usb service broadcasting for automotive." into qt-dev 2019-05-23 18:04:23 +00:00
Sudheer Shanka
c0ff908a40 Trigger a mediascan when downloads get renamed.
Fixes: 132811564
Test: manual
Test: atest --test-mapping packages/providers/MediaProvider
Test: atest DownloadProviderTests
Test: atest cts/tests/app/src/android/app/cts/DownloadManagerTest.java
Test: atest cts/tests/app/DownloadManagerLegacyTest/src/android/app/cts/DownloadManagerLegacyTest.java
Test: atest cts/tests/app/DownloadManagerApi28Test/src/android/app/cts/DownloadManagerApi28Test.java
Change-Id: I319a5b45e703b1eda5846d085c5e1e1e86bbae2b
2019-05-23 10:47:30 -07:00
Fabian Kozynski
762f064edf Fix some attributes in themable icons
* Added auto-mirrored for ic_arrow_back
* Fixed color for ic_brightness_thumb

Fixes: 132227230
Bug: 132997623
Test: visual
Change-Id: I0f0f61739d9dd93021ec371a8a8af6e28ab894e3
2019-05-23 13:27:38 -04:00
Lucas Dupin
0a8fcb3a8b Merge "Add shadow to text on keyguard" into qt-dev 2019-05-23 17:15:15 +00:00
Michal Karpinski
09575fa47b Merge "Introduce a grace period for bg activity starts" into qt-dev 2019-05-23 17:00:48 +00:00