summaryrefslogtreecommitdiffstats
path: root/sched/src/com/android/sched
Commit message (Collapse)AuthorAgeFilesLines
* Add isComparable method into Versionmikaelpeltier2015-06-251-6/+7
| | | | | Change-Id: I81863d5114f5387836af233bd7c1ba1c4f4b9ba5 (cherry picked from commit d9718e9f061321bd7f8e24383793f7d027183fd9)
* Update version comparisonmikaelpeltier2015-06-251-8/+6
| | | | | | | | | - versions with 0 in release and sub-release code are not comparables. - versions with engineering kind are not comparables Change-Id: Id8169577ba2c8e4392f2dcfc8a5fb5157c3758d9 (cherry picked from commit dd5c19eefff3487aac2000e4cfdcf4f02e1fe879)
* Move Version to schedlibYohann Roussel2015-06-254-0/+334
| | | | | | (cherry picked from commit 5328d72913fb1f702143db28e19bb54e22466149) Change-Id: Iccd6843cc56a6a2484105e9c6690bf8a04fddc7e
* Add support for case-sensitive FS in ReadWriteZipFSBenoit Lamarche2015-06-174-83/+31
| | | | | | | | | | | | Also: - deleted ZipInputOutputVFSCodec which is unused and similar to ZipFSCodec. - introduce constants in JackLibrary for numGroups and groupSize. Bug: 21796981 (cherry picked from commit 37f4d45c334a2e15f0d8aee2fadb2cd823b4ee54) Change-Id: Id744da9c97a04adf728b8688c91a0816715d5cce
* Fix a permgen memory leak in ThreadConfigJean-Philippe Lesot2015-06-081-1/+1
| | | | | Change-Id: I68fb1be3a4f9899180acc79928ee7a00bb75d20d (cherry picked from commit 09e6e4002bcd372300e1313d7c2b6925f5e8d964)
* Fix bugs when using incremental with --output-jackmikaelpeltier2015-06-052-2/+2
| | | | | | | | | | | | | | | | | | | - When --output-jack is used, incremental folder contains all dex files and jayces files of imported libraries, thus Jack must remove imported libraries and import only incremental folder when --output-jack is used to avoid type conflict. It seems more performant than using collision policy. - Since ReadWriteZipFS and VFStoVSTWrapper is used incremental support with --output-jack was broken because input jack library has the location of incremental folder and output jack library has the location of the target jack file. Thus comparing location to avoid to copy dex file from a library to the same library does not work. I clean library usages to always used ReadWriteZipFS when it is required and to be able to properly skip dex copy when source and target library are the same library. Bug: 21600202 Change-Id: I0c5e899e12033f608d43cae9baecc1227ea158c9 (cherry picked from commit f524ed6445145988a8a7c4fc6ff5573c3cc882cd)
* Fix debug mode of CaseInsensitiveFSBenoit Lamarche2015-06-011-1/+1
| | | | | | (cherry picked from commit e090a907b6efed3bd963f2d989cdd0a8828e4c64) Change-Id: I7110fe6dc9a9a86af91fccfbd6e98b270ede17c9
* Use 1 group instead of 2 for CaseInsensitiveFS digestBenoit Lamarche2015-06-012-2/+2
| | | | Change-Id: I0a19919d0e99ac550ccf6eea7576c920aa17df21
* Use CaseInsesitiveFS for all library output dirsBenoit Lamarche2015-05-292-5/+124
| | | | | | | | Bug: 18750643 (cherry picked from commit 1751a7aba3ae72251ea8b83592967034a6f8996c) Change-Id: Ifb600f8c0f3213631be91c0a080afe6d5d93e1b6
* Add support to append in VFSBenoit Lamarche2015-05-2917-9/+158
| | | | | | (cherry picked from commit 9495b1087a937a6175dda075bdd082864c09dc21) Change-Id: Iccece3057dcac434c24c29c152ed65e32d6ba18f
* Add getLastModified() to VFileBenoit Lamarche2015-05-2918-0/+83
| | | | | | (cherry picked from commit 15013be7a1f51611e9d5b3ad697d031d268c9cc0) Change-Id: I74688ed5e90f2373753c2cef4e896b1eae81271a
* Add new getPathFromRoot API in VFSBenoit Lamarche2015-05-2920-38/+445
| | | | | | | | And use it to remove JayceFileImporter hack. (cherry picked from commit 7a73a0418d5524240b7c97d9801b7db954aa018c) Change-Id: I211bc52211d7373c22a02d83be114774ebca7520
* Fix MessageDigestFS by creating specific VDirsBenoit Lamarche2015-05-291-31/+53
| | | | | | | | Bug: 20684001 (cherry picked from commit 60f97293c68fbb7382b2ae8c811bcbe7c646aa17) Change-Id: Iee65e010e3f1ba81367958d460aafe37ee051ab0
* Remove STOPSHIP in InMemoryVDir.list()Benoit Lamarche2015-04-291-4/+0
| | | | | | | I've added a bug to track the issue instead: Bug: 20684998 Change-Id: I4e7f30adb373dd489cc0a119f1e4cbc9315d37fa
* Remove STOPSHIPs in OrCodecBenoit Lamarche2015-04-291-2/+0
| | | | | | | I've added a bug to track the issue instead: Bug: 20684975 Change-Id: I0eb8a70c1e94958c1c3bf33e168e6ae538699012
* Add createTmpDir method throwing CannotCreateFileExceptionmikaelpeltier2015-04-282-2/+49
| | | | | Bug: 19654122 Change-Id: Ie0a0cb048efa2494a7e225e8de86453e38aaaed5
* Rework ReadWriteZipFS to support incremental libraryBenoit Lamarche2015-04-282-1/+9
| | | | Change-Id: Id0fbc89e68ac3166447024ab9f2c040e02447e56
* Fix bug during PropertyIdException reportingmikaelpeltier2015-04-151-1/+2
| | | | | | | - Create PropertyIdException for each causes by avoiding to generate several times the same error. Change-Id: I433fbddd9519154678190be7dc109414c3c872d0
* Merge "Optimize VPathFragment creation." into ub-jackPiotr Jastrzebski2015-04-141-5/+6
|\
| * Optimize VPathFragment creation.Piotr Jastrzebski2015-03-231-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When compiling Music app we create 207k instances of VPathFragment. 83k of them are created in VPath.appendPath and VPath.prependPath. Those instances are the same so this change introduces a new static field to VPath which will keep a singleton for all those invocations. The remaining 124k instances are created in VPath constructor and have the same separator (INTERNAL_SEPARATOR). This change introduces a new subclass of VPathFragment to handle separators different than INTERNAL_SEPARATOR. VPathFragment itself assumes INTERNAL_SEPARATOR is used. This way we make those 124k objects smaller and save on GC. Change-Id: Ic69c6c2bcf72473ea71a2d7d0adc1bfb5dc5bbd7
* | Fix issue with not existing classpath entryBenoit Lamarche2015-04-071-0/+1
| | | | | | | | | | | | | | We must check existence before permissions. Bug: 20025079 Change-Id: I19d8838e2a399806bc8b70bb1dab399537c7d158
* | Add a support for opening file with timeout in Jack simple serverJean-Philippe Lesot2015-03-312-5/+9
| | | | | | | | Change-Id: I560af413992a38711b5bd0053cf8fe0efddeceab
* | Add HasLocation to stream providersmikaelpeltier2015-03-302-2/+4
| | | | | | | | Change-Id: Id1173260f85926508ac8ff12dbc4faec601e2fcd
* | Use simple framework to make a simple http server for jackJean-Philippe Lesot2015-03-271-0/+9
| | | | | | | | | | | | Also modify script to use this simple http server. Change-Id: Ibcf01b80fd618d58aab0aec111e97af103bde6db
* | Add support of list of detectors, and set long-run beside deadlockJean-Philippe Lesot2015-03-231-24/+34
|/ | | | Change-Id: Ib62b02a2ca7c495d98c42269664697a4b37fb9dd
* Add InputStreamProvider and OutputStreamProvidermikaelpeltier2015-03-2316-61/+141
| | | | | | | - Add common interface between VFile and StreamFile that will allow to read or write them. Change-Id: I1721932c7e68770edae53a431d4a9a3ca664ae72
* Rename WithLocationException to WithLocationIOExceptionBenoit Lamarche2015-03-2010-13/+13
| | | | | | | | I think that there is a strong risk that developers may extend WithLocationException without realizing they're making it an IOException. Changing the name may help avoiding this. Change-Id: I189b47d59c5b0a976e4031f1dd187b3395dbca75
* Make Jack script more robustJean-Philippe Lesot2015-03-203-9/+79
| | | | | | | | | | | - Add small support of interruptions, but no synchronization with the compilation server. - Add support of space in command line, but do not support double quote. - Stale lock support. - More robust server by being over-conservative. Change-Id: Ia5fe022e6b820c9c589a1d524278eed0b8009a48
* Merge "Fix some javadoc in VariableName" into ub-jackJean-Philippe Lesot2015-03-201-2/+5
|\
| * Fix some javadoc in VariableNameJean-Philippe Lesot2015-03-161-2/+5
| | | | | | | | Change-Id: I2d232af8d7afefd14423799edfbc4efa85da018d
* | Stop creating message in NonSuchFileException unnecessarilyPiotr Jastrzebski2015-03-1916-70/+275
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NoSuchFileException is thrown 29686 times during compilation of Music app but its message is not obtained even once. location.getDescription is not a cheap operation and message creation uses string concatenation as well. Instead of creating a message eagerily this change stores a reference to a location in the NonSuchFileExpection object and creates the message only when it's needed. This speeds up the creation of NoSuchFileException almost 40 times which makes a difference if we multiply it by almost 30k times it's created. We will also save on GC as it saves at least 3 object creations per NoSuchFileException which makes over 90k object creations saved. Fix also other exceptions in com.android.sched.util.file. Change-Id: Ibc2a413891a2e24be786f440196e9a4276215cc0
* | Make PairCodec use a Pair instead of a Map.EntryYohann Roussel2015-03-194-38/+81
| | | | | | | | Change-Id: Iaf77aa13a0f62e6dbf607e80f6a451d20aa94391
* | Allow ConvertCodec to check convertionYohann Roussel2015-03-183-6/+37
| | | | | | | | | | | | | | And use this capability to check double defintions of keys in PairListToMapCodecConverter. Change-Id: Ia7052c8d33710e5abc43e753c7f1c91e869a7185
* | Load default libraries from jack.jarYohann Roussel2015-03-171-2/+2
|/ | | | | | | | For now the only default library contains the jack annotations. The default libraries can be ignored by "--no-default-libraries". Bug: 17803510 Change-Id: I0eb0c1a535e1d4ff808c744ba7c1924e4dd4aee6
* Rework all variable names in the config frameworkJean-Philippe Lesot2015-03-1654-58/+315
| | | | Change-Id: Icf61c8f1326cfd2c80f3f043a6adc57aa765632b
* Add property to set an output file by reporter levelJean-Philippe Lesot2015-03-132-25/+23
| | | | | Bug: 19715777 Change-Id: Ic729dc387f6ac7b95068f864ae44cf63f0469a90
* Fix PairCodec and ConvertCodecJean-Philippe Lesot2015-03-134-38/+60
| | | | | | | If a StringCodec return an object from checkString, we can not ignore it. It was not the way PairCodec and ConvertCodec work. Change-Id: Ic61f5d8fbd30fc7a0e22949f3a324dae3fd710ed
* Add base directory support in TokenIterator and use it in the ServerTaskInsideVMJean-Philippe Lesot2015-03-122-4/+35
| | | | Change-Id: I2ac1048bf511b7f84774a9e1970eb407517cf6c8
* Add property for classpathBenoit Lamarche2015-03-121-2/+2
| | | | Change-Id: I5f99e0a9355d317b0c0cc9e037ba663937558305
* Use working directory in codecsBenoit Lamarche2015-03-1222-47/+258
| | | | Change-Id: I073647682c78bd87e93168e6e7839dfa783bec42
* Use file into getPath implementation rather than locationmikaelpeltier2015-03-122-2/+3
| | | | Change-Id: I1991cf5840480ce6649ab85c049d2e7fa733f17b
* Start support of a small server for Jack compilationJean-Philippe Lesot2015-03-114-3/+64
| | | | Change-Id: I38d410565da4f480c60cdd9405603eebaa2d9938
* Merge "Jack support for annotation processor." into ub-jackYohann Roussel2015-03-109-13/+396
|\
| * Jack support for annotation processor.Yohann Roussel2015-03-109-13/+396
| | | | | | | | | | | | | | Does not include any support for including class files generated by annotation processors. Change-Id: Id4006301d588875f822ff84fa90db10fd616ab00
* | Add working directory support in ConfigBuilderBenoit Lamarche2015-03-103-2/+62
|/ | | | Change-Id: Ie34d79830b53b5dcbc6b7edbaa7617c7466b9f3d
* Fix bug in duplicate PropertyId.Valuemikaelpeltier2015-03-092-7/+3
| | | | Change-Id: I99c8a7e73e774213b745633e2d970210f58274d0
* Duplicate PropertyId.Value when usedmikaelpeltier2015-03-092-1/+37
| | | | Change-Id: Ic7c6f047bdbb29690233848cfe225508612e2f6f
* Handle input sources as a propertyYohann Roussel2015-03-0911-16/+52
| | | | Change-Id: I91e3c26270f821741fa79f3d972e5b1454b00b0e
* Add support of configurable standard input/output/errorJean-Philippe Lesot2015-03-0617-108/+304
| | | | | | | | | | Add API to set a dedicated standard input/output/error to a ConfigBuilder. By this way, if defined, the parsing of '-' and '--' take this standard definition instead of System.in/out/err. Add also support of standard error in AbstractStreamFile hierarchy and associated codec. Change-Id: I1ca9521743d3ba286bd115aa24dbafd74bf693e9
* Import meta and resources are now propertiesYohann Roussel2015-03-032-1/+63
| | | | Change-Id: I2f9795a826046ccfbeee5207597f31e633663958