OSDN Git Service
Chih-Chung Chang [Mon, 27 Jul 2009 05:03:29 +0000 (13:03 +0800)]
Fix b/
1991523 by limiting the size of a bitmap when we decode a full image.
computeSampleSize() now accepts not only targetWidthOrHeight but also the size of a bitmap.
Chih-Chung Chang [Fri, 24 Jul 2009 11:06:58 +0000 (19:06 +0800)]
Remove unused code.
Chih-Chung Chang [Fri, 24 Jul 2009 10:39:58 +0000 (18:39 +0800)]
Remove unused code.
Chih-Chung Chang [Fri, 24 Jul 2009 02:58:40 +0000 (10:58 +0800)]
Simplify ImageGetter.
Chih-Chung Chang [Thu, 23 Jul 2009 02:06:33 +0000 (10:06 +0800)]
Fix
1996918: NPE in ViewImage.onClick.
Wei-Ta Chen [Mon, 20 Jul 2009 04:37:36 +0000 (12:37 +0800)]
Fix b/
1907995 by using native allocation in BitmapFactory.
Android (Google) Code Review [Fri, 17 Jul 2009 17:48:45 +0000 (10:48 -0700)]
Merge change 7584 into donut
* changes:
Capture individual camera and video startup time and output to a text file.
Android (Google) Code Review [Fri, 17 Jul 2009 05:38:50 +0000 (22:38 -0700)]
Merge change 6510 into donut
* changes:
Fix issue
1949573. In multiselect mode, don't show the select outline for touch event.
Owen Lin [Wed, 8 Jul 2009 22:13:54 +0000 (15:13 -0700)]
Fix issue
1949573. In multiselect mode, don't show the select outline
for touch event.
Owen Lin [Fri, 17 Jul 2009 00:09:24 +0000 (17:09 -0700)]
Fix the bug that the no images view will keep showning on screen even
when there are images.
The reason is that we only update (hide/show) the "no image view" in rebake,
which will only be invoked by media status changing (like scanning start,
eject SD card, and etc.) So, the bug will happen when the the image is add to
the card but there is no media status changing.
Yu Shan Emily Lau [Thu, 16 Jul 2009 21:20:32 +0000 (14:20 -0700)]
Capture individual camera and video startup time and output to a text file.
Ray Chen [Wed, 15 Jul 2009 10:38:29 +0000 (18:38 +0800)]
Rollback invalidateImage to refresh individual image instead of rebuilding whole list.
Wu-cheng Li [Wed, 15 Jul 2009 03:13:13 +0000 (11:13 +0800)]
Start preview earlier to let user see preview earlier.
This reverts commit
785cd00067fc822701aa5e43da00382352a90e99.
A workaround will be added in HAL for overlay case.
Android (Google) Code Review [Tue, 14 Jul 2009 17:49:22 +0000 (10:49 -0700)]
Merge change 6826 into donut
* changes:
Fix bug
1970161.
Android (Google) Code Review [Tue, 14 Jul 2009 16:33:16 +0000 (09:33 -0700)]
Merge change 7015 into donut
* changes:
Cancel the thread encoding in "onStop".
Chih-Chung Chang [Tue, 14 Jul 2009 08:51:53 +0000 (16:51 +0800)]
Fix the ImageGallery progress bar (the rotating circle in title).
Chih-Chung Chang [Mon, 13 Jul 2009 05:11:52 +0000 (13:11 +0800)]
Fix
1973541: The mode switcher does not correspond to the actual mode.
Owen Lin [Mon, 13 Jul 2009 23:45:23 +0000 (16:45 -0700)]
Cancel the thread encoding in "onStop".
Eric Fischer [Mon, 13 Jul 2009 22:45:27 +0000 (15:45 -0700)]
Import new translations
Ray Chen [Fri, 10 Jul 2009 10:36:48 +0000 (18:36 +0800)]
Fix the issue
1972285: The image rotation does not update in thumbnail view immediately after rotation.
Owen Lin [Fri, 10 Jul 2009 21:44:37 +0000 (14:44 -0700)]
Fix bug
1970161.
I think the reason is that we post a runner to do clean up when the
background job has been done.
However, the runner could be queued when the activity finished().
So, we first see a leak window message (because we havn't close the dialog yet)
And then see a "view not attached" exception (because we try to close
it after the activity being destroyed)
Fixed now.
Chih-Chung Chang [Fri, 10 Jul 2009 10:39:49 +0000 (18:39 +0800)]
Fix
1836138: Crash (permissions) when sharing from Email/Gmail --> Gallery --> Anywhere Else
Wu-cheng Li [Fri, 10 Jul 2009 09:38:43 +0000 (17:38 +0800)]
Revert "Start preview earlier to let user see preview earlier."
This reverts commit
20e4e11c81a37e4dcc87fe501ea853bd5b699fe3.
The original change broke overlay case.
Chih-Chung Chang [Fri, 10 Jul 2009 05:16:22 +0000 (13:16 +0800)]
Fix
1971900: Not able to delete picture using "Delete " contextual menu option.
Chih-Chung Chang [Thu, 9 Jul 2009 11:37:33 +0000 (19:37 +0800)]
Try to fix
1962530: out of memory in CropImage.
Recycle the bitmap as much as we can.
repo sync [Wed, 24 Jun 2009 06:59:48 +0000 (14:59 +0800)]
Move reverse geocoder to AsyncTask and update location information asynchronously.
Wei-Ta Chen [Thu, 11 Jun 2009 08:13:13 +0000 (16:13 +0800)]
Set bitmaps for full size images as being purgeable in viewing and reviewing images.
We increase the resolution of full size images to 2048x1536 for achieving better zoom-in quality.
Also the delay between decoding a thumbnail and decoding a full size image is set to 1000 msecs.
Chih-Chung Chang [Thu, 9 Jul 2009 02:27:02 +0000 (10:27 +0800)]
Fix
1962656: Going to gallery when sd card is full causes a crash.
Also simplify the thumbnail reading code.
I think we don't need to check the thumbnail magic being id
because all current thumbnail files should have random number
and not id. (see bug
1240638 for date).
repo sync [Mon, 6 Jul 2009 07:05:23 +0000 (15:05 +0800)]
Move ExifInterface to android.media package.
Ray Chen [Wed, 8 Jul 2009 08:54:54 +0000 (16:54 +0800)]
Revert ContentObserver in ImageGallery.
Android (Google) Code Review [Wed, 8 Jul 2009 10:56:12 +0000 (03:56 -0700)]
Merge change 6455 into donut
* changes:
Read max file size from video capture intent.
Wu-cheng Li [Wed, 8 Jul 2009 05:55:06 +0000 (13:55 +0800)]
Read max file size from video capture intent.
Fix
b1660028.
Chih-Chung Chang [Tue, 7 Jul 2009 12:01:55 +0000 (20:01 +0800)]
Draw the multiselect markers dynamically so we can avoid invalidating the thumbnails.
Owen Lin [Wed, 1 Jul 2009 00:17:40 +0000 (17:17 -0700)]
Use ReferenceQueue to improve LruCache.
Owen Lin [Tue, 7 Jul 2009 18:37:12 +0000 (11:37 -0700)]
Fix the NPE by keeping the mDbObserver in onStop(), just unregister it.
repo sync [Wed, 1 Jul 2009 10:37:14 +0000 (18:37 +0800)]
Monitor database change by ContentObserver so we can update media data incrementally and "wait dialog" is only shown when there's no image in the current bucket.
Yu Shan Emily Lau [Fri, 3 Jul 2009 01:07:17 +0000 (18:07 -0700)]
Added the memory measurement of the mediaserver in the camera image capture and video capture test cases.
Owen Lin [Thu, 2 Jul 2009 00:03:33 +0000 (17:03 -0700)]
Fix some warning shown in Eclipse.
Chih-Chung Chang [Mon, 6 Jul 2009 07:37:24 +0000 (15:37 +0800)]
Style fix.
Chih-Chung Chang [Fri, 3 Jul 2009 10:25:26 +0000 (18:25 +0800)]
Change camera latency time variables to non-static.
Chih-Chung Chang [Fri, 3 Jul 2009 07:26:55 +0000 (15:26 +0800)]
Add retry if the query fails. The query fails if the media
provider is killed.
Android (Google) Code Review [Fri, 3 Jul 2009 05:45:17 +0000 (22:45 -0700)]
Merge change 6046 into donut
* changes:
Fix
1956850: Muti-select is not usable for the last row of the images in gallery.
Owen Lin [Wed, 1 Jul 2009 22:51:45 +0000 (15:51 -0700)]
Reset the switch state in "onStart" in both Camera and Camcorder.
Chih-Chung Chang [Thu, 2 Jul 2009 11:48:11 +0000 (19:48 +0800)]
Fix
1956850: Muti-select is not usable for the last row of the images in gallery.
Chih-Chung Chang [Thu, 2 Jul 2009 10:13:35 +0000 (18:13 +0800)]
Fix
1956863: The border of the select image still stay on the screen
after removed all the images in gallery.
Chih-Chung Chang [Thu, 2 Jul 2009 09:18:24 +0000 (17:18 +0800)]
Fix
1956733: NPE in ImageManager.isImage
Chih-Chung Chang [Thu, 2 Jul 2009 09:07:20 +0000 (17:07 +0800)]
Fix
1955365: NPE in ViewImage.updateActionIcons
Chih-Chung Chang [Thu, 2 Jul 2009 08:46:30 +0000 (16:46 +0800)]
Fix
1956859: "Set as" is not working with the downloaded image.
Chih-Chung Chang [Thu, 2 Jul 2009 08:12:12 +0000 (16:12 +0800)]
Fix bug: wait for idle time before checking thumbnail only if there is still some
thumbnail to check.
Owen Lin [Fri, 26 Jun 2009 22:47:39 +0000 (15:47 -0700)]
Fixed the OOM in crop image.
The original code of "CropImage" won't wait the save action to be complete
before exiting.
We have to hide the ProgressDialog in onStop(), otherwise, if the job is done
in background(after onStop()), a "no window token exception" will be
thrown when dialog.dismiss() is called. Thus, a new MonitoredActivity is
introduced to help us handle this, hope it will be useful in other places.
Chih-Chung Chang [Wed, 1 Jul 2009 06:52:24 +0000 (14:52 +0800)]
Fix
1950477: Menu items for video review are incorrect.
Owen Lin [Tue, 30 Jun 2009 00:30:24 +0000 (17:30 -0700)]
Fix bug
1949582. If this is the last image to be deleted,
the mCurrentPosition will be -1 and getImageAt() will return null and thus
cause a NPE. If the image list is empty just return null is enough.
Owen Lin [Fri, 26 Jun 2009 18:59:58 +0000 (11:59 -0700)]
Solve task flow problems in Camera and Camcorder.
1. Let "Camera" and "Camcorder" use the same task affinity, so that there
will only one task stack in the system.
2. Finish the "Camera" or "Camcorder" activity, when switch to the other,
so that it works like the same activity.
Wu-cheng Li [Wed, 24 Jun 2009 05:33:46 +0000 (13:33 +0800)]
Start preview earlier to let user see preview earlier.
Android (Google) Code Review [Tue, 30 Jun 2009 09:05:12 +0000 (02:05 -0700)]
Merge change 5758 into donut
* changes:
Fix
1948669. The grid of multi-selected video becomes white while it is being selected
Wu-cheng Li [Tue, 30 Jun 2009 07:26:48 +0000 (15:26 +0800)]
Increase image zoom speed.
Chih-Chung Chang [Tue, 30 Jun 2009 06:37:57 +0000 (14:37 +0800)]
Fix
1948669. The grid of multi-selected video becomes white while it is being selected
Only check thumbnail when the worker thread has been idle for 1 second.
This gives the ImageBlockManager some time to figure out what to load next.
Owen Lin [Mon, 29 Jun 2009 21:47:08 +0000 (14:47 -0700)]
Chih-Chung Chang [Mon, 29 Jun 2009 07:24:13 +0000 (15:24 +0800)]
Fix
1945392. Long press a photo in gallery, choose "delete", it crashes.
Android (Google) Code Review [Mon, 29 Jun 2009 06:32:09 +0000 (23:32 -0700)]
Merge change 3805 into donut
* changes:
Enable multiselect delete.
Chih-Chung Chang [Fri, 26 Jun 2009 11:23:56 +0000 (19:23 +0800)]
Enable multiselect delete.
Android (Google) Code Review [Fri, 26 Jun 2009 07:11:18 +0000 (00:11 -0700)]
Merge change 5419 into donut
* changes:
Remove unused code in ViewImage.
Android (Google) Code Review [Fri, 26 Jun 2009 07:11:00 +0000 (00:11 -0700)]
Merge change 5228 into donut
* changes:
Improve switcher to enable drag and drop operations.
Owen Lin [Thu, 25 Jun 2009 21:58:54 +0000 (14:58 -0700)]
Remove unused code in ViewImage.
Owen Lin [Thu, 25 Jun 2009 18:12:11 +0000 (11:12 -0700)]
Retry to submit it again. It seems I changed the file "IImage" -> "Image"
before I create the commit.
Owen Lin [Thu, 25 Jun 2009 17:24:02 +0000 (10:24 -0700)]
Revert "It seems that there is no quarantee that "onActivityResult()" will be called"
This reverts commit
90bbbcbdfa4f2329dfdfda867a4bd58fa27a2840.
Android (Google) Code Review [Thu, 25 Jun 2009 16:52:28 +0000 (09:52 -0700)]
Merge change 5354 into donut
* changes:
It seems that there is no quarantee that "onActivityResult()" will be called before "onStart()". So, adding code to handle both situations. Also add checking on "mPaused" in showOnScreenControls().
Owen Lin [Thu, 25 Jun 2009 00:51:08 +0000 (17:51 -0700)]
It seems that there is no quarantee that "onActivityResult()" will be called
before "onStart()". So, adding code to handle both situations. Also add
checking on "mPaused" in showOnScreenControls().
Android (Google) Code Review [Thu, 25 Jun 2009 03:39:08 +0000 (20:39 -0700)]
Merge change 5326 into donut
* changes:
Fix Issue
1910066: Typo "Camera Medias" in Gallery group description
Android (Google) Code Review [Thu, 25 Jun 2009 03:38:54 +0000 (20:38 -0700)]
Merge change 5333 into donut
* changes:
Fix
1942091: In image/video preview, the trackball should not move the image too much and show black bar.
Chih-Chung Chang [Thu, 25 Jun 2009 03:31:11 +0000 (11:31 +0800)]
Fix
1942091: In image/video preview, the trackball should not move the image
too much and show black bar.
repo sync [Thu, 25 Jun 2009 02:56:45 +0000 (10:56 +0800)]
Fix Issue
1942097: Delete the video show incorrect toast.
repo sync [Thu, 25 Jun 2009 02:59:33 +0000 (10:59 +0800)]
Fix Issue
1910066: Typo "Camera Medias" in Gallery group description
Owen Lin [Wed, 24 Jun 2009 05:18:20 +0000 (22:18 -0700)]
Improve switcher to enable drag and drop operations.
Android (Google) Code Review [Wed, 24 Jun 2009 08:41:20 +0000 (01:41 -0700)]
Merge change 5048 into donut
* changes:
Fix several issues with ImageList.
Owen Lin [Mon, 22 Jun 2009 22:53:26 +0000 (15:53 -0700)]
Fix several issues with ImageList.
One is bug
1933327
It seems to be timing issue. We assign the value of mAllImages in only
"onCreate" and will set it to null in "onActivityResult".
I modified the code so that it won't be null after "onCreate()".
The other issue is the crop image won't . The reason is we don't clean
up the cache when we reopen the cache. It won't work for ImageListUber
for the original fix since "buildImageListFromUri" won't return ImageList
of type ImageListUber.
The final one is the "getImaegForUri", last time, I made a change but
cause review fails in Camera. But, I need the check if the given uri is
actually the same as the image list not just check the "id".
Android (Google) Code Review [Wed, 24 Jun 2009 07:31:10 +0000 (00:31 -0700)]
Merge change 5195 into donut
* changes:
Fix
1933301: NPE in ImageGallery.onImageClicked
Chih-Chung Chang [Wed, 24 Jun 2009 07:14:33 +0000 (15:14 +0800)]
Fix
1933301: NPE in ImageGallery.onImageClicked
repo sync [Wed, 24 Jun 2009 03:42:53 +0000 (11:42 +0800)]
Move storeImage back to UI thread.
Android (Google) Code Review [Wed, 24 Jun 2009 05:53:56 +0000 (22:53 -0700)]
Merge changes 5118,5126 into donut
* changes:
Change the text on the ok button in attach mode from "attach" to "OK", according to the UI refinement proposed by Jeff.
Create new strings for review mode buttons and restore the original values to lowercase since they are used in other places.
Android (Google) Code Review [Wed, 24 Jun 2009 05:24:12 +0000 (22:24 -0700)]
Merge change 5030 into donut
* changes:
Change icon for retake in video.
Owen Lin [Tue, 23 Jun 2009 00:19:56 +0000 (17:19 -0700)]
Change icon for retake in video.
Android (Google) Code Review [Wed, 24 Jun 2009 05:21:44 +0000 (22:21 -0700)]
Merge change 4905 into donut
* changes:
Address review comment in previous patch sets.
Owen Lin [Tue, 23 Jun 2009 21:34:23 +0000 (14:34 -0700)]
Change the text on the ok button in attach mode from "attach" to "OK",
according to the UI refinement proposed by Jeff.
Owen Lin [Tue, 23 Jun 2009 19:07:54 +0000 (12:07 -0700)]
Create new strings for review mode buttons and restore the original values to
lowercase since they are used in other places.
Also remove unused string entries.
Android (Google) Code Review [Tue, 23 Jun 2009 17:09:29 +0000 (10:09 -0700)]
Merge change 5055 into donut
* changes:
Export the camera latency output into the output text file.
Android (Google) Code Review [Tue, 23 Jun 2009 07:44:13 +0000 (00:44 -0700)]
Merge change 5062 into donut
* changes:
Do not start preview if surface is null.
Wu-cheng Li [Tue, 23 Jun 2009 07:34:19 +0000 (15:34 +0800)]
Do not start preview if surface is null.
Yu Shan Emily Lau [Tue, 23 Jun 2009 04:49:08 +0000 (21:49 -0700)]
Export the camera latency output into the output text file.
Android (Google) Code Review [Tue, 23 Jun 2009 04:09:29 +0000 (21:09 -0700)]
Merge change 4911 into donut
* changes:
Remove verbose messages.
Marco Nelissen [Mon, 22 Jun 2009 21:00:12 +0000 (14:00 -0700)]
Don't merge to master.
Remove a bunch of unused resources from the camera app.
Chih-Chung Chang [Mon, 22 Jun 2009 10:35:18 +0000 (18:35 +0800)]
Remove verbose messages.
Owen Lin [Mon, 22 Jun 2009 06:15:27 +0000 (23:15 -0700)]
Address review comment in previous patch sets.
Owen Lin [Fri, 19 Jun 2009 07:21:10 +0000 (00:21 -0700)]
UI refresh for attachment capture mode.
Wu-cheng Li [Fri, 19 Jun 2009 12:11:44 +0000 (20:11 +0800)]
Fix attach video.
Wu-cheng Li [Fri, 19 Jun 2009 11:28:47 +0000 (19:28 +0800)]
Integrate camcorder review mode to ReviewImage.
Wu-cheng Li [Fri, 19 Jun 2009 07:27:30 +0000 (15:27 +0800)]
Move review picture lower.
Owen Lin [Tue, 16 Jun 2009 03:32:02 +0000 (20:32 -0700)]
Fill the size in database when insert a new item to the table.
Owen Lin [Thu, 11 Jun 2009 23:02:29 +0000 (16:02 -0700)]
New UI for camera
Wu-cheng Li [Thu, 18 Jun 2009 08:37:32 +0000 (16:37 +0800)]
Handle openFileDescriptor failure case.
Fix
b1925294