summaryrefslogtreecommitdiffstats
path: root/libs
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Merge change 2747 into donutAndroid (Google) Code Review2009-05-291-1/+3
|\ | | | | | | | | * changes: log the geomerty of surfaces causing an out of memory in SurfaceFlinger.
| * log the geomerty of surfaces causing an out of memory in SurfaceFlinger.Mathias Agopian2009-05-291-1/+3
| |
* | Fix issue 1883666: Audio coming from the music player stopped suddenlyEric Laurent2009-05-291-11/+14
|/ | | | | | | The problem comes from the code handling the automatic change of audio routing to speaker when notifications are played. The music is also muted while the sound is forced to speaker. To avoid truncating the end of the notification, a delay is inserted between the end of the notification and the restoration of the audio routing. If a new notification starts during this delay, the current music mute state read and saved before muting music corresponds to the forced mute due to previous notification. When the new notification ends, the mute state restored is muted and music stream stays muted for ever. The fix consists in reading and saving music mute state only if the audio routing has been restored (check that mForcedRoute is back to 0).
* minor clean-up to Rect and Point.Mathias Agopian2009-05-263-22/+19
| | | | | | - return "const" objects for overloaded operators to disallow constructs like: (a+b) = c; - don't return references to non-static members, it's not always safe. - Point.cpp was empty, so get rid of it
* Fix issue 1846343 - part 1Eric Laurent2009-05-264-22/+24
| | | | | | | | This change is the first part of a fix for issue 1846343, : - Added new enum values for input sources in AudioRecord and MediaRecorder for voice uplink, downlink and uplink+downlink sources. - renamed streamType to inputSource in all native functions handling audio record. A second change is required in opencore author driver and android audio input to completely fix the issue.
* Merge change 2359 into donutAndroid (Google) Code Review2009-05-231-11/+26
|\ | | | | | | | | * changes: Fix for the simultor build breakage.
| * Fix for the simultor build breakage.Nicolas Catania2009-05-221-11/+26
| | | | | | | | | | | | | | | | | | Added missing include sys/time.h for utimes. Detects when stat64 uses a timespec for the modif and access times and work around the missing st_*time_nsec. Apologies for the whitespace changes, emacs removed them automatically.
* | Merge change 2351 into donutAndroid (Google) Code Review2009-05-221-2/+6
|\ \ | | | | | | | | | | | | * changes: Fix a major bug in Bundle when unparcelling from AIDL.
| * | Fix a major bug in Bundle when unparcelling from AIDL.Dianne Hackborn2009-05-221-2/+6
| |/ | | | | | | | | | | | | | | | | | | | | There was a serious problem in the Bundle(Parcel) and readFromParcel() methods, where it wasn't doing the copying of the Parcel that Parcel.readBundle() does and is a basic requirement for it to work correctly. This re-arranges the code to make all of these functions (hopefully) correct. Also fix a problem in Parcel where we were not duping fds when copying data from one Parcel to another.
* | This should fix the simulator build.Marco Nelissen2009-05-221-0/+1
|/
* split boot animation out of SurfaceFlingerMathias Agopian2009-05-217-351/+27
| | | | | | Conflicts: data/etc/platform.xml
* bring the native_handle stuff back from master_glMathias Agopian2009-05-202-37/+15
|
* Hook up the backup data writer, and add a utility to read the backup data files.Joe Onorato2009-05-202-56/+149
|
* Remove deprecated openInputStream factory methodDave Sparks2009-05-196-47/+0
|
* Update more references to openInputStream in support classes.Dave Sparks2009-05-193-5/+21
| | | | Continuation of bug 1846343
* Modify AudioFlinger to use updated openInputStream factory method.Dave Sparks2009-05-191-1/+3
| | | | Continuation of bug 1846343
* Add inputSource to openInputStreamDave Sparks2009-05-194-3/+51
| | | | Continuation of bug 1846343
* Update aapt badging for native code, configs, density, etc.Dianne Hackborn2009-05-181-2/+57
|
* Add the backup data file writer C++ class.Joe Onorato2009-05-152-33/+384
|
* Implement the C++ class to write the backed up file data.Joe Onorato2009-05-153-7/+385
|
* Get the backup calling through to the file backup helper.Joe Onorato2009-05-141-6/+9
| | | | | This includes some cleanup to make the parameters match between BackupService.onBackup and FileBackupHelper.performBackup.
* Modify camera framework to use new streamlined binder interface.Dave Sparks2009-05-112-189/+55
| | | | | | | | | This is the second half of bug 1837832. Modifies the camera client and camera service to use the new binder interface. Removes the old binder interface. There will be one more part to this change to surface the undefined callbacks to the Java layer so that partners can implement new features without having to touch the stack.
* fix the sim build. disables the tests for now.Joe Onorato2009-05-081-1/+3
|
* Add new binder methods to camera client to support generic callbacksDave Sparks2009-05-072-0/+55
| | | | | | | This is the first step in a multi-step change to move from the old specific callbacks to a generic callback. This will allow future flexibility in the interface without requiring binder rewrites. Bug 1837832
* Add some C++ code to do raw files for backupJoe Onorato2009-05-052-1/+682
|
* fix 1803886 android15 Translucent GLSurfaceView demo does not display properlyMathias Agopian2009-04-274-5/+19
|