Commit 5ac72a2
Dianne Hackborn
Improve multi-user broadcasts.
You can now use ALL and CURRENT when sending broadcasts, to specify
where the broadcast goes.
Sticky broadcasts are now correctly separated per user, and registered
receivers are filtered based on the requested target user.
New Context APIs for more kinds of sending broadcasts as users.
Updating a bunch of system code that sends broadcasts to explicitly
specify which user the broadcast goes to.
Made a single version of the code for interpreting the requested
target user ID that all entries to activity manager (start activity,
send broadcast, start service) use.
Change-Id: Ie29f02dd5242ef8c8fa56c54593a315cd2574e1c1 parent e217ee4 commit 5ac72a2
File tree
50 files changed
+750
-285
lines changed- api
- core
- java/android
- app
- content
- os
- server/search
- tests/coretests/src/android/app/activity
- media/java/android/media
- packages/SystemUI/src/com/android/systemui/statusbar/policy
- policy/src/com/android/internal/policy/impl
- keyguard_obsolete
- services/java/com/android/server
- am
- connectivity
- location
- net
- pm
- power
- usb
- test-runner/src/android/test/mock
- tests/ActivityTests/src/com/google/android/test/activity
- tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android
- wifi/java/android/net/wifi
- p2p
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
50 files changed
+750
-285
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5323 | 5323 | | |
5324 | 5324 | | |
5325 | 5325 | | |
| 5326 | + | |
5326 | 5327 | | |
5327 | 5328 | | |
5328 | 5329 | | |
5329 | 5330 | | |
| 5331 | + | |
5330 | 5332 | | |
5331 | 5333 | | |
5332 | | - | |
| 5334 | + | |
5333 | 5335 | | |
| 5336 | + | |
5334 | 5337 | | |
| 5338 | + | |
5335 | 5339 | | |
5336 | 5340 | | |
5337 | 5341 | | |
| |||
5460 | 5464 | | |
5461 | 5465 | | |
5462 | 5466 | | |
| 5467 | + | |
5463 | 5468 | | |
5464 | 5469 | | |
5465 | 5470 | | |
5466 | 5471 | | |
| 5472 | + | |
5467 | 5473 | | |
5468 | 5474 | | |
5469 | | - | |
| 5475 | + | |
5470 | 5476 | | |
| 5477 | + | |
5471 | 5478 | | |
| 5479 | + | |
5472 | 5480 | | |
5473 | 5481 | | |
5474 | 5482 | | |
| |||
21264 | 21272 | | |
21265 | 21273 | | |
21266 | 21274 | | |
| 21275 | + | |
21267 | 21276 | | |
21268 | 21277 | | |
21269 | 21278 | | |
21270 | 21279 | | |
| 21280 | + | |
21271 | 21281 | | |
21272 | 21282 | | |
21273 | | - | |
| 21283 | + | |
21274 | 21284 | | |
| 21285 | + | |
21275 | 21286 | | |
| 21287 | + | |
21276 | 21288 | | |
21277 | 21289 | | |
21278 | 21290 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1071 | 1071 | | |
1072 | 1072 | | |
1073 | 1073 | | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
1074 | 1088 | | |
1075 | 1089 | | |
1076 | | - | |
| 1090 | + | |
1077 | 1091 | | |
1078 | 1092 | | |
1079 | 1093 | | |
| |||
1097 | 1111 | | |
1098 | 1112 | | |
1099 | 1113 | | |
1100 | | - | |
| 1114 | + | |
1101 | 1115 | | |
1102 | 1116 | | |
1103 | 1117 | | |
| |||
1164 | 1178 | | |
1165 | 1179 | | |
1166 | 1180 | | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
1167 | 1241 | | |
1168 | 1242 | | |
1169 | 1243 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1126 | 1126 | | |
1127 | 1127 | | |
1128 | 1128 | | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
1129 | 1147 | | |
1130 | 1148 | | |
1131 | 1149 | | |
| |||
1139 | 1157 | | |
1140 | 1158 | | |
1141 | 1159 | | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
1142 | 1163 | | |
1143 | 1164 | | |
1144 | 1165 | | |
| |||
1154 | 1175 | | |
1155 | 1176 | | |
1156 | 1177 | | |
1157 | | - | |
| 1178 | + | |
1158 | 1179 | | |
1159 | 1180 | | |
1160 | 1181 | | |
| |||
1223 | 1244 | | |
1224 | 1245 | | |
1225 | 1246 | | |
1226 | | - | |
1227 | 1247 | | |
1228 | 1248 | | |
1229 | 1249 | | |
| |||
1238 | 1258 | | |
1239 | 1259 | | |
1240 | 1260 | | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
1241 | 1328 | | |
1242 | 1329 | | |
1243 | 1330 | | |
| |||
0 commit comments