Commit 249e3ed
Runtime resource overlay: clean-up.
This is a combination of three minor clean-up tasks:
- Generate correct idmap even if name lookup fails:
Any resources following a resource with a spec but no actual values
would receive an incorrect ID in the idmap due to an accumulating offset
error. To combat this, a dummy value is inserted in the idmap whenever
a resource with a spec but no values is encountered.
- Optimize pruning of padding zeroes in idmaps:
Earlier, trailing zeroes were iteratively popped from the end of each
type block of an idmap. This commit instead tracks where to make the
cut, and does so with a single function call.
- aapt: warn about resources which lack values:
The resource framework assumes every resource to have a value for
at least one valid configuration. However, if multiple resource
directories are used (several -S options to aapt), the list of
configurations is limited by dpi (-c option to aapt) and a resource
is only available in discarded dpi configurations, aapt will create
a resource entry where each configuration lack an actual value. This
commit lets aapt emit a warning whenever this has happened.
Change-Id: Ic7451b7f4adfef5bfa6b0d7e64e057f317a2cdaa1 parent c761d8b commit 249e3ed
2 files changed
+36
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4333 | 4333 | | |
4334 | 4334 | | |
4335 | 4335 | | |
4336 | | - | |
| 4336 | + | |
| 4337 | + | |
4337 | 4338 | | |
4338 | 4339 | | |
4339 | 4340 | | |
| |||
4347 | 4348 | | |
4348 | 4349 | | |
4349 | 4350 | | |
| 4351 | + | |
| 4352 | + | |
4350 | 4353 | | |
4351 | 4354 | | |
4352 | 4355 | | |
| |||
4360 | 4363 | | |
4361 | 4364 | | |
4362 | 4365 | | |
| 4366 | + | |
| 4367 | + | |
| 4368 | + | |
| 4369 | + | |
4363 | 4370 | | |
4364 | 4371 | | |
4365 | | - | |
4366 | | - | |
4367 | | - | |
4368 | 4372 | | |
4369 | 4373 | | |
4370 | 4374 | | |
| |||
4375 | 4379 | | |
4376 | 4380 | | |
4377 | 4381 | | |
4378 | | - | |
4379 | | - | |
4380 | | - | |
4381 | | - | |
4382 | | - | |
4383 | | - | |
| 4382 | + | |
| 4383 | + | |
| 4384 | + | |
| 4385 | + | |
| 4386 | + | |
4384 | 4387 | | |
| 4388 | + | |
| 4389 | + | |
| 4390 | + | |
| 4391 | + | |
4385 | 4392 | | |
4386 | 4393 | | |
4387 | 4394 | | |
| |||
4419 | 4426 | | |
4420 | 4427 | | |
4421 | 4428 | | |
| 4429 | + | |
| 4430 | + | |
| 4431 | + | |
| 4432 | + | |
4422 | 4433 | | |
4423 | 4434 | | |
4424 | 4435 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2661 | 2661 | | |
2662 | 2662 | | |
2663 | 2663 | | |
| 2664 | + | |
| 2665 | + | |
| 2666 | + | |
| 2667 | + | |
| 2668 | + | |
| 2669 | + | |
2664 | 2670 | | |
2665 | 2671 | | |
2666 | 2672 | | |
| |||
2797 | 2803 | | |
2798 | 2804 | | |
2799 | 2805 | | |
| 2806 | + | |
2800 | 2807 | | |
2801 | 2808 | | |
2802 | 2809 | | |
| |||
2807 | 2814 | | |
2808 | 2815 | | |
2809 | 2816 | | |
| 2817 | + | |
| 2818 | + | |
| 2819 | + | |
| 2820 | + | |
| 2821 | + | |
| 2822 | + | |
| 2823 | + | |
| 2824 | + | |
2810 | 2825 | | |
2811 | 2826 | | |
2812 | 2827 | | |
| |||
0 commit comments