Commit graph

2214 commits

Author SHA1 Message Date
srowen 9a168f5994 Forgot tests for PDF417 EC
git-svn-id: https://zxing.googlecode.com/svn/trunk@2278 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2012-04-30 18:43:40 +00:00
srowen 60288ac9e4 Hunting an AIOOBE here -- clarified some code a little bit but still not seeing the issue
git-svn-id: https://zxing.googlecode.com/svn/trunk@2277 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2012-04-30 07:22:26 +00:00
srowen 224568c732 These state-sensitive methods ought to be synchronized, at least to ensure memory is written back immediately
git-svn-id: https://zxing.googlecode.com/svn/trunk@2276 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2012-04-28 10:35:57 +00:00
srowen 4ee80c2150 Back-port more proper PDF417 R-S error correction
git-svn-id: https://zxing.googlecode.com/svn/trunk@2275 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2012-04-27 20:22:11 +00:00
srowen 3926c96fc1 Another protection against early view calls before camera init (issue 1254)
git-svn-id: https://zxing.googlecode.com/svn/trunk@2274 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2012-04-27 11:31:09 +00:00
srowen 9a94f713db Look out for early preview frame before complete configuration
git-svn-id: https://zxing.googlecode.com/svn/trunk@2273 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2012-04-27 11:27:37 +00:00
srowen 7825e5bb49 Avoid another possible NPE. Adjust obfuscation to produce less ambiguous mappings
git-svn-id: https://zxing.googlecode.com/svn/trunk@2272 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2012-04-27 11:17:11 +00:00
srowen 3e2dce9bd7 Issue 1256 Avoid crash clearing Empty message
git-svn-id: https://zxing.googlecode.com/svn/trunk@2271 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2012-04-26 19:09:36 +00:00
srowen 3e0ec6f708 Issue 1254 guess at what may be an NPE in here
git-svn-id: https://zxing.googlecode.com/svn/trunk@2270 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2012-04-26 18:34:56 +00:00
srowen 8768f73604 Check for bad dimension every time to produce more meaningful error
git-svn-id: https://zxing.googlecode.com/svn/trunk@2269 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2012-04-26 18:23:25 +00:00
srowen 9de4dd7256 Don't fail on bad network type input. Log it.
git-svn-id: https://zxing.googlecode.com/svn/trunk@2268 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2012-04-26 18:22:57 +00:00
srowen a23a2b8adb More reliable method for reading vCard, may avoid OOME in weird stream behavior case
git-svn-id: https://zxing.googlecode.com/svn/trunk@2267 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2012-04-26 17:57:07 +00:00
srowen 5af1cad965 Don't crash on unsupported barcode format like CODE_93
git-svn-id: https://zxing.googlecode.com/svn/trunk@2266 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2012-04-26 17:15:28 +00:00
srowen 18c3b38a9a Maybe avoid a string index out of bounds exception here?
git-svn-id: https://zxing.googlecode.com/svn/trunk@2265 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2012-04-26 17:02:45 +00:00
srowen a1601d1bb8 Avoid NPE is options menu gets called before onResume (?)
git-svn-id: https://zxing.googlecode.com/svn/trunk@2264 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2012-04-26 16:53:42 +00:00
srowen b81971bf74 Avoid NPE in case of strange query failure for bookmarks; log it and quit
git-svn-id: https://zxing.googlecode.com/svn/trunk@2263 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2012-04-26 16:41:26 +00:00
srowen 6573f932a1 Avoid NPE on null action
git-svn-id: https://zxing.googlecode.com/svn/trunk@2262 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2012-04-26 16:34:51 +00:00
srowen 9ad25e25b7 Double-check to avoid exception clicking on stale item
git-svn-id: https://zxing.googlecode.com/svn/trunk@2261 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2012-04-26 16:31:31 +00:00
srowen 8f461afd09 Let callers specify more extras to IntentIntegrator. Use it in test app, so we can use it in all cases, and avoid ActivityNotFoundException
git-svn-id: https://zxing.googlecode.com/svn/trunk@2260 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2012-04-26 16:22:24 +00:00
srowen 6067089669 Slightly increase max preview size, preclude very small preview sizes unless no other choice, properly favor large preview sizes in general and correctly prioritize on aspect ratio in all cases
git-svn-id: https://zxing.googlecode.com/svn/trunk@2259 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2012-04-25 19:45:53 +00:00
srowen 26d5ff4355 Add a double-check for null SurfaceHolder
git-svn-id: https://zxing.googlecode.com/svn/trunk@2258 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2012-04-25 11:51:45 +00:00
srowen 8c924b470f Support multiple components in ORG
git-svn-id: https://zxing.googlecode.com/svn/trunk@2257 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2012-04-23 00:17:58 +00:00
srowen 23ce7f4584 Add crop()
git-svn-id: https://zxing.googlecode.com/svn/trunk@2256 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2012-04-22 23:52:20 +00:00
srowen e4fcc8ee02 Issue 1249 add note about enabling experimental formats
git-svn-id: https://zxing.googlecode.com/svn/trunk@2255 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2012-04-18 20:20:36 +00:00
dswitkin@google.com 1204c7d7fa Created Barcode Scanner v4.1 beta 1.
git-svn-id: https://zxing.googlecode.com/svn/trunk@2254 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2012-04-16 21:54:57 +00:00
srowen 7a0f55da30 Fix error in AppPickerActivity when it is quickly cancelled (hat tip to Asus)
git-svn-id: https://zxing.googlecode.com/svn/trunk@2252 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2012-04-12 00:25:01 +00:00
srowen c29cd1d2ef Basque translation from Asier
git-svn-id: https://zxing.googlecode.com/svn/trunk@2251 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2012-04-08 16:02:38 +00:00
srowen 9a33192652 Issue 1236 let history answer an Intent
git-svn-id: https://zxing.googlecode.com/svn/trunk@2250 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2012-04-06 11:14:38 +00:00
srowen 41c4e34063 Fix problem blocking access to javadoc
git-svn-id: https://zxing.googlecode.com/svn/trunk@2249 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2012-04-06 07:33:00 +00:00
srowen 2cd86d8001 Javadoc fixes
git-svn-id: https://zxing.googlecode.com/svn/trunk@2248 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2012-04-06 07:17:15 +00:00
srowen 346de1b561 Minor inspection stuff
git-svn-id: https://zxing.googlecode.com/svn/trunk@2247 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2012-04-05 17:41:28 +00:00
gln%google.com@gtempaccount.com 7541fcda65 Fix code where a string literal and an integer are added to together. This is treated as pointer arithmetic since the string literal is a pointer to a const char.
git-svn-id: https://zxing.googlecode.com/svn/trunk@2246 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2012-04-02 17:45:07 +00:00
srowen 9f07c47941 Apparently some of the default disabled optimizations are only there for Donut
git-svn-id: https://zxing.googlecode.com/svn/trunk@2245 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2012-03-31 23:13:16 +00:00
srowen cc204e1bde Miscellaneous tweaks from inspection
git-svn-id: https://zxing.googlecode.com/svn/trunk@2244 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2012-03-31 12:05:30 +00:00
smparkes@smparkes.net b1dfc23418 r2235 for C++
git-svn-id: https://zxing.googlecode.com/svn/trunk@2243 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2012-03-30 20:18:11 +00:00
smparkes@smparkes.net 6e492e54de correctly copy cropped image (Conrad Kramer)
git-svn-id: https://zxing.googlecode.com/svn/trunk@2242 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2012-03-30 20:18:03 +00:00
srowen 94cae7f083 Remove deviation from PDF417 spec and faulty unit test (thanks Anders)
git-svn-id: https://zxing.googlecode.com/svn/trunk@2241 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2012-03-30 10:58:24 +00:00
srowen 73345ae493 Another try at CLOSE_WAIT: simplify by removing HttpClient, always consume every byte of input in all cases, and force GCs to clear stuck sockets
git-svn-id: https://zxing.googlecode.com/svn/trunk@2240 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2012-03-30 10:50:47 +00:00
srowen 758c9c38c4 Vladimir's fix for a small typo in rect detection
git-svn-id: https://zxing.googlecode.com/svn/trunk@2239 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2012-03-29 18:21:44 +00:00
srowen 65efebdc97 More drastic changes to prevent CLOSE_WAIT - defensive socket settings, ban a troublesome IP
git-svn-id: https://zxing.googlecode.com/svn/trunk@2238 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2012-03-29 18:18:19 +00:00
srowen bd1d0c4bef Update zxing.org libs, update NOTICE, try again to fix CLOSE_WAIT issue with simpler HTTP client handling
git-svn-id: https://zxing.googlecode.com/svn/trunk@2237 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2012-03-29 14:32:35 +00:00
srowen 674783b8dd Fix RS encoder test, per hwkns
git-svn-id: https://zxing.googlecode.com/svn/trunk@2236 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2012-03-28 18:01:52 +00:00
srowen 75d26706c2 Issue 1225 fix another AIOOBE for bad QR code
git-svn-id: https://zxing.googlecode.com/svn/trunk@2235 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2012-03-26 10:50:16 +00:00
srowen 1b2cd0f442 Touch up javadoc target
git-svn-id: https://zxing.googlecode.com/svn/trunk@2234 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2012-03-26 05:32:28 +00:00
srowen 1b0aed9c09 Improve detection especially under rotation
git-svn-id: https://zxing.googlecode.com/svn/trunk@2233 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2012-03-23 18:18:38 +00:00
srowen b980bd71b6 Lint check: remove unused things
git-svn-id: https://zxing.googlecode.com/svn/trunk@2232 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2012-03-22 12:14:59 +00:00
srowen a670311585 Updated proguard.cfg to match new default for SDK 17 / Proguard 4.7
git-svn-id: https://zxing.googlecode.com/svn/trunk@2231 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2012-03-22 11:26:14 +00:00
srowen 80f273976e Quote hex-like SSIDs as (at least) they must appear this way in Android or else it will be interpreted as a hex SSID. Assuming that nobody actually wants to generate such an SSID in 2012.
git-svn-id: https://zxing.googlecode.com/svn/trunk@2230 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2012-03-21 17:52:25 +00:00
srowen f74fc09d54 Issue 1213 add 'raw' param to send back raw barcode text not processed form
git-svn-id: https://zxing.googlecode.com/svn/trunk@2229 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2012-03-15 14:46:03 +00:00
srowen 9f45bab33c Ignore UTF byte order mark when parsing result
git-svn-id: https://zxing.googlecode.com/svn/trunk@2228 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2012-03-14 17:09:47 +00:00