summaryrefslogtreecommitdiffstats
path: root/packages/services/PacProcessor
Commit message (Collapse)AuthorAgeFilesLines
* Do not throw NullPointerException from PacServiceAndrei Kapishnikov2015-01-161-2/+8
| | | | | | | | | Do not throw NullPointerException from PacService since the calling client may not expect it and crash. Fix of Bug 18818567 Change-Id: Ic36e8a1ca13cdaa7f605b6ade9cc6783517cbf40
* Add appropriate casts for char16_t.Dan Albert2014-11-201-2/+3
| | | | | | | | C++11 defines a real char16_t, which is not implicitly convertible to uint16_t (and by extension jchar). Add casts as needed. Bug: 18300613 Change-Id: I00752002ef2e938bdb57f70947e8fd53ec103293
* Frameworks/base: Fix buildAndreas Gampe2014-11-131-1/+1
| | | | | | Fix a typo. Change-Id: Ida417c842563576b053d9f5553a2aa8d5862897c
* Frameworks/base: Wall Werror in packagesAndreas Gampe2014-11-133-3/+5
| | | | | | Turn on -Wall -Werror in packages/. Fix warnings. Change-Id: I4ec7256a7df46017e1895575719f2b5aca978bd0
* Move frameworks/base over to libc++.Dan Albert2014-11-121-2/+0
| | | | | Bug: 15193147 Change-Id: I96109d2d383f0c8a4aaa611f29fcf887afb3c69e
* Build PacProcessor for 64 bit.Narayan Kamath2014-05-272-3/+0
| | | | | | external/chromium-libpac can now build for 64 bit. Change-Id: I0bfd068ef4ea7d57686f11b79c32803e38bab719
* PacProccesor: Only build for 32-bitAndreas Gampe2014-05-271-0/+2
| | | | | | | | | PacProcessor relies on libpac from chromium, which is not built for 64b right now. (cherry picked from commit f8749200c06a8714ffd46f5e2ec81be57ad4f7f4) Change-Id: Ic128e17b7437c130df29eeab3293b9c01f01d70b
* Use LOCAL_JNI_SHARED_LIBRARIES to install JNI libs.Ying Wang2014-04-181-1/+1
| | | | Change-Id: Ibef01983891377b859d28cff801f48ef5d8eabb2
* PacProcessor should be 32 bit only.Narayan Kamath2014-03-191-0/+1
| | | | | | It depends on external/v8, which isn't ready for 64 bit yet. Change-Id: Ibc9705665b81d3667826dedd6217f2eb6d451c81
* Verify inputs to PAC resolving.Jason Monk2013-08-221-1/+15
| | | | | | | | This verifies both the URL and host are valid before they are passed to the javascript for PAC. This is to protect against injection attacks. Bug: 10230771 Change-Id: Ib1996181971a49ccd390f181ec3848124801e4d5
* Change PacProcessor to Android ServiceJason Monk2013-08-2014-346/+472
| | | | | | | | | | This switches the PacProcessor over to an Android Service. The service is bound and unbound by the PacManager, which also adds it to the ServiceManager, allowing for Context-Free access by the PacProxySelector in all DVMs. bug:10182711 Change-Id: Id1ff7660be56e8976cdcccd76e041feb47a17a61
* Add PAC File support for proxy configurationJason Monk2013-08-076-0/+369
PAC (Proxy auto-config) files contain a single javascript function, FindProxyForURL(url, host). It gets called to determine what proxy should be used for a specific request. This adds PAC support to the system. The ProxyProperties has been modified to hold the PAC file when one is present. The Proxy method setHttpProxySystemProperty has been modified to insert a PacProxySelector as the default ProxySelector when it is required. This new ProxySelector makes calls to the ConnectivityService to parse the PAC file. The ConnectivityService and the WifiConfigStore have been modified to support saving the extra PAC file data. The ConnectivityService now has a class attached (PacProxyNative) that interfaces to the native calls for PAC files. The parsing of the PAC file is handled by libpac (which is being added to external/) which utilizes libv8 to parse the javascript. As a fallback to applications that don't use the java ProxySelector, the proxy is setup to point to a local proxy server that will handle the pac parsing. bug:10182711 Change-Id: I5eb8df893c632fd3e1b732385cb7720ad646f401