summaryrefslogtreecommitdiffstats
path: root/libs
Commit message (Collapse)AuthorAgeFilesLines
* First pass at reworking screen density/size APIs.Dianne Hackborn2009-07-211-3/+4
| | | | | | | | This changes the names of the directories in aapt, to what you see in the list of DpiTest resources. Also adds a new "long" configuration for wide screens, which the platform sets appropriate, and introduces a new kind of resizeability for not large but significantly larger than normal screens which may have compatibility issues.
* Add "nodpi" density, and expose a bunch of density-related APIs.Dianne Hackborn2009-07-171-2/+11
| | | | | Also update the DpiTest app to use nodpi images, and try to have a mode where it turns off compatibility though it's not quite working.
* fix FILE* version of ZipUtils::inflateToBufferDoug Zongker2009-07-161-2/+1
| | | | | This can't have ever worked; a successful fread() was returning 1 instead of getSize.
* fix [1967226] Donut orientation animation (dimming and blur) is slower than ↵Mathias Agopian2009-07-106-506/+17
| | | | Cupcake
* fix for [1885684] E/SurfaceFlinger( 60): not enough memory for layer bitmap ↵Mathias Agopian2009-07-091-0/+7
| | | | size=4294938624
* Fix resources not being set correctly.Dianne Hackborn2009-07-091-1/+0
|
* Fix issue 1970108: crash in AudioFlinger::isMusicActive()Eric Laurent2009-07-092-5/+10
| | | | Protected calls to MixerThread::isMusicActive() by AudioFlinger::mLock
* Merge change 6603 into donutAndroid (Google) Code Review2009-07-081-1/+1
|\ | | | | | | | | * changes: quick fix; utf8_codepoint_count must be utf8_length
| * quick fix; utf8_codepoint_count must be utf8_lengthDaisuke Miyakawa2009-07-091-1/+1
| |
* | Merge change 5510 into donutAndroid (Google) Code Review2009-07-081-26/+272
|\ \ | |/ | | | | | | * changes: Add useful functions to String8, which enables users to convert between UTF-8 and UTF-32 It will be used in SQL functions in external/sqlite/android. See https://android-git.corp.google.com/g/Gerrit#change,5511 for example.
| * Add useful functions to String8, which enables users to convert between ↵Daisuke Miyakawa2009-07-091-26/+272
| | | | | | | | | | | | | | | | | | UTF-8 and UTF-32 It will be used in SQL functions in external/sqlite/android. See https://android-git.corp.google.com/g/Gerrit#change,5511 for example. Related internal bug id: 1707173
* | Add timestamps to video frames to improve A/V sync.Dave Sparks2009-07-082-1/+35
|/ | | | Bug 1927069.
* Merge change 6367 into donutAndroid (Google) Code Review2009-07-071-0/+2
|\ | | | | | | | | * changes: Add virtual destructor.
| * Add virtual destructor.Marco Nelissen2009-07-071-0/+2
| |
* | Fix issue 1743700: AudioTrack: setPlaybackRate can not set the playback rate ↵Eric Laurent2009-07-071-12/+6
| | | | | | | | | | | | | | | | to twice of the ouputSR Store sample rate on 32 bits instead of 16 bits in audio_track_cblk_t. Removed sampleRate() methods from AudioTrack and AudioRecord: replaced by getSampleRate(). AudioTrack::setSampleRate() no returns a status.
* | Don't re-parse the framework resources all the time.Dianne Hackborn2009-07-063-40/+158
|/ | | | | | | | A small optimization to the resource code, to not re-parse the framework resources every time we build a new AssetManager. Instead, you can now construct a ResTable from a previously created one... of course, like the existing code for using the data in-place, you can't delete the original ResTable until you have deleted the one that has been constructed from it.
* Merge change 6084 into donutAndroid (Google) Code Review2009-07-021-1/+1
|\ | | | | | | | | * changes: Return CAMERA_ERROR_SERVER_DIED to camera app when camera service dies (bug 1956726)
| * Return CAMERA_ERROR_SERVER_DIED to camera app when camera service dies (bug ↵James Dong2009-07-021-1/+1
| | | | | | | | 1956726)
* | Less logging in some places. More in others.Joe Onorato2009-07-011-2/+3
|/
* Merge change 5829 into donutAndroid (Google) Code Review2009-06-301-54/+80
|\ | | | | | | | | * changes: Fix issue #1673793: Theme styles don't apply.
| * Fix issue #1673793: Theme styles don't apply.Dianne Hackborn2009-06-301-54/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It turns out this was not a problem in the resource code at all. Rather, the system process has a cache of pre-loaded attributes it uses to avoid continually reloading things as it needs them. Well it turns out this cache wasn't flushed after a package was uninstalled or a configuration changed, so you could re-install an app where you change its style resources so its theme now points to one that is inconsistent in the cache. This is mostly a problem for developers, where they continually install new versions of an app where resources have changed. This could possibly show up when updating an app on a normal phone, although the problem would eventually correct itself since this cache uses weak references. Anyway, the cache is now reworked to be flushed appropriately. This change also includes an update to aapt to be able to dump the contents of bags in resources.
* | Allow setPreviewDisplay after startPreview.Wu-cheng Li2009-07-011-8/+8
| |
* | fix [1947273] the DimLayer causes the whole screen to update during transactionsMathias Agopian2009-06-281-5/+6
|/
* Merge changes 5548,5549 into donutAndroid (Google) Code Review2009-06-262-3/+9
|\ | | | | | | | | | | * changes: Better (and less) logging from backup. Add an extra null terminator. String8::unlockBuffer is supposed to be doing this, but it's not and I can't figure out why. This makes BackupHelperDispatcher able to read the keys correctly.
| * Better (and less) logging from backup.Joe Onorato2009-06-262-3/+9
| |
* | Expand support for different screen sizes.Dianne Hackborn2009-06-261-2/+3
|/ | | | | | | | | Applications can now declare that they support small, normal, or large screens. Resource selection can also be done based on these sizes. By default, pre-Donut apps are false for small and large, and Donut or later apps are assumed to support all sizes. In either case they can use <supports-screens> in their manifest to declare what they actually support.
* move ui/Time.cpp to core/jni, since this is the only place it is usedMathias Agopian2009-06-252-201/+1
|
* Only report "unknown metadata" once per restore helperChristopher Tate2009-06-241-17/+14
| | | | Also removes the auto-free object, replacing it with direct memory manipulation.
* Put back LOGP -> printf in the backup helper codeChristopher Tate2009-06-241-1/+1
|
* Merge change 5162 into donutAndroid (Google) Code Review2009-06-241-13/+89
|\ | | | | | | | | * changes: Preserve file access mode when backing up / restoring files
| * Preserve file access mode when backing up / restoring filesChristopher Tate2009-06-231-13/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds a fixed-size metadata block at the head of each file's content entity. The block is versioned, and fixed-size on the theory that it might be nice to be able to recover the content (if not the full metadata) of the files if we're ever confronted with data backed up some hypothetical future helper that stored expanded metadata. The net effect is that now on restore, we assign the same access mode to the file that it originally had when backed up. Also, some of the code was failing to properly free transient heap-based buffers when it encountered errors. This has been fixed with the addition of a tiny stack-based object whose job it is to free() its designated pointer from its destructor.
* | Remove deprecated callback function support.Dave Sparks2009-06-241-124/+0
| | | | | | | | | | | | | | This is the last of a 3-part change to modify the camera to use a more streamlined callback interface. This change removes the old code. Bug 1884362
* | Use a ref-counted callback interface for Camera.Dave Sparks2009-06-241-0/+33
|/ | | | | | | | | This allows the camera service to hang onto the callback interface until all callbacks have been processed. This prevents problems where pending callbacks in binder worker threads are processed after the Java camera object and its associated native resources have been released. Bug 1884362
* Add file mode to the file-backup saved state blobsChristopher Tate2009-06-231-31/+42
| | | | | | | | | | | | | | | | This change puts the file's access mode into the saved-state blob used by the file backup helpers. The tests have been updated for the new blob content format. What this change *doesn't* do is actually backup/restore the file mode. This change is a prerequisite for that, but mode preservation in backup/restore will require adding metadata to the backup data stream itself, so will be approached a bit more carefully. (Also fixed one outright bug in the test program: ReadEntityData() had been changed to return a ssize_t union of either a byte-count or a negative number indicating error, but the test program was still assuming that nonzero == error, and was spuriously failing.)
* Merge change 4910 into donutAndroid (Google) Code Review2009-06-221-11/+11
|\ | | | | | | | | * changes: fix warnings that will show up with GCC 4.4 (in master)
| * fix warnings that will show up with GCC 4.4 (in master)Mathias Agopian2009-06-221-11/+11
| |
* | Helper API cleanup. Allows multiple helpers to function,Joe Onorato2009-06-221-3/+18
|/ | | | | because they'll always go in the same order, and this lets us not have to write headers to keep them paired.
* Report densities in badging, debugging for nine patch bug.Dianne Hackborn2009-06-191-3/+84
| | | | | | | The aapt tool now reports all available densities like it already did for locales. Also this includes more resource data output, which I was using to examine bug #1867049 (which at this point I am unable to reproduce).
* Fix sim-eng build and simplify previous lcd-density related patchDavid 'Digit' Turner2009-06-191-10/+7
|
* backup stuffJoe Onorato2009-06-182-26/+37
|
* Make RestoreHelper and friends also write out the snapshot state.Joe Onorato2009-06-181-29/+86
|
* Merge change 4565 into donutAndroid (Google) Code Review2009-06-181-0/+8
|\ | | | | | | | | * changes: Allow the qemu.sf.lcd_density property to override the value of ro.sf.lcd_density
| * Allow the qemu.sf.lcd_density property to override the value of ↵David 'Digit' Turner2009-06-191-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ro.sf.lcd_density ro.sf.lcd_density is usually defined in the build.prop file which is parsed by init before anything else. Since its name begins with "ro.", this property is write-once and cannot later be modified, e.g. in /system/etc/init.goldfish.sh. In other words, you cannot use "emulator -prop ro.sf.lcd_density=<value>", since it is impossible to override the value defined in build.prop This patch modifies the system to recognize "qemu.sf.lcd_density" as an override value, which can be set with "emulator -prop qemu.sf.lcd_density=<value>", forcing a specific density. A later patch will allow the emulator to automatically set this property depending on AVD hardware configuration settings.
* | FileRestoreHelper and RestoreHelperDispatcher work.Joe Onorato2009-06-171-4/+4
| |
* | checkpoint BackupDatAInput / RestoreHelperJoe Onorato2009-06-162-208/+41
|/
* Add RestoreFileHelper, BackupDataInput, and add java wrappers for the ↵Joe Onorato2009-06-121-1/+1
| | | | methods on BackupDataOutput.
* Make the file backup helper not crash if a file you requestedJoe Onorato2009-06-111-45/+108
| | | | | can't be stated. This means you don't need to know if the files you are backing up exist or not -- we'll figure it out for you.
* Fix SharedPrefsBackupHelper so it doesn't hard code the paths to the files.Joe Onorato2009-06-111-62/+134
| | | | This took quite a bit of refactoring.
* Fix back_up_files() error detection when opening/CRCing the fileChristopher Tate2009-06-041-1/+2
|
* rename a few files to camel-case, add copyright noticesMathias Agopian2009-06-0410-20/+20
|