• Home
  • Raw
  • Download

Lines Matching refs:String

43     private static final String TRUE = "true";
44 private static final String FALSE = "false";
45 private static final String SUFFIX_FOLDER_NAME = "suffix";
46 private static final String UNPACK_NAME = "unpack";
47 private static final String EMPTY_STRING = "";
48 private static final String RESULT_FILES = "files";
49 private static final String RESULT_TOTAL_SIZE = "totalSize";
50 private static final String SUFFIX_DESC = "show files group by file type[.suffix]";
51 private static final String SUFFIX_PARAM = "--stat-suffix";
52 private static final String SUFFIX_TYPE_UNKNOWN = "unknownType";
53 private static final String TASK_TYPE = "taskType";
54 private static final String TASK_DESC = "taskDesc";
55 private static final String PARAM = "param";
56 private static final String START_TIME = "startTime";
57 private static final String STOP_TIME = "stopTime";
58 private static final String PATH_LIST = "pathList";
59 private static final String RESULT = "result";
60 private static final String HAP = ".hap";
61 private static final String HSP = ".hsp";
62 private static final String FILE_TYPE_SO = "so";
63 private static final String TMP_FOLDER_NAME = "temporary";
64 private static final String LIBS_NAME = "libs";
65 private static final String USER_DIR = "user.dir";
66 private static final String STATEMENT_FILE = "file:";
67 private static final String STATEMENT_SIZE = "size:";
68 private static final String STATEMENT_COMPRESS = "compress:";
73 private static final String SPLIT_POINT = "\\.";
74 private static final String DATE_FORMAT = "yyyy-MM-dd HH:mm:ss:SSS";
76 private static final String HTML_BUTTON_SHOW = "<button id=\"show_%s\" type=\"button\" "
78 private static final String HTML_BUTTON_HIDE = "<button id=\"hide_%s\" type=\"button\" "
80 private static final String TABLE_BOXTABLE = "<table class=\"boxTable\">";
81 private static final String TABLE_END = "</table>";
82 private static final String TABLE_SUFFIX = "<table class=\"suffixTable\">";
83 private static final String HTML_UL_HEAD = "<ul>";
84 private static final String HTML_UL_END = "</ul>";
85 private static final String HTML_LI_HEAD = "<li>";
86 private static final String HTML_LI_END = "</li>";
87 private static final String HTML_BR_HEAD = "<br>";
88 private static final String HTML_LI_SUFFIX = "<li class=\"suffix\">";
89 private static final String HTML_TR_STYLE = "<tr class=\"layout\"><td class=\"key\">";
90 private static final String HTML_TD_STYLE = "</td><td class=\"value\">";
91 private static final String HTML_TDTR_END = "</td></tr>";
92 private static final String HTML_TDTR_HEAD = "<tr%s><td%s>";
93 private static final String HTML_TDTR_SEND = "</td><td%s>";
94 private static final String HTML_TRTD_STYLE = "<tr class=\"result\"><td class=\"key\">";
95 private static final String CLASS_SUFFIXLAYOUT = " class=\"suffixLayout\"";
96 private static final String CLASS_SUFFIXKEY = " class=\"suffixKey\"";
97 private static final String CLASS_SUFFIXVALUE = " class=\"suffixValue\"";
98 …private static final String CLASS_TRTD_SUFFIXVALUE = "<tr class=\"suffixLayout\"><td class=\"suffi…
99 private static final String CLASS_TD_SUFFIXVALUE = "</td><td class=\"suffixValue\">";
103 private String file;
106 public String getFile() { in getFile()
109 public void setFile(String file) { in setFile()
121 private String compress = FALSE;
123 public String getCompress() { in getCompress()
126 public void setCompress(String compress) { in setCompress()
132 private String suffix;
136 public String getSuffix() { in getSuffix()
139 public void setSuffix(String suffix) { in setSuffix()
158 private String taskDesc;
159 private String param;
160 private String startTime;
161 private String stopTime;
162 private List<String> pathList = new ArrayList<>();
171 public String getTaskDesc() { in getTaskDesc()
174 public void setTaskDesc(String taskDesc) { in setTaskDesc()
177 public String getParam() { in getParam()
180 public void setParam(String param) { in setParam()
183 public String getStartTime() { in getStartTime()
186 public void setStartTime(String startTime) { in setStartTime()
189 public String getStopTime() { in getStopTime()
192 public void setStopTime(String stopTime) { in setStopTime()
201 public List<String> getPathList() { in getPathList()
204 public void setPathList(List<String> pathList) { in setPathList()
218 public String statSuffix(Utility utility, List<String> jsonList, List<String> fileList) in statSuffix()
225 String currentDir = System.getProperty(USER_DIR); in statSuffix()
226 String outPath = currentDir + File.separator + TMP_FOLDER_NAME; in statSuffix()
227 String packageName = utility.getInput(); in statSuffix()
229 ArrayList<String> soList = new ArrayList<>(); in statSuffix()
241 String htmlStr = setHtmlData(suffixResult); in statSuffix()
242 String jsonStr = JSON.toJSONString(suffixResult, new SerializerFeature[] { in statSuffix()
249 …private List<String> getPathListData(String outPath, String packageName, ArrayList<String> soList)… in getPathListData()
250 List<String> pathList = new ArrayList<>(); in getPathListData()
253 for (String file : soList) { in getPathListData()
262 …private List<ParamModelSuffix> setMapData(String outPath, List<String> fileList, ArrayList<String>… in setMapData()
263 HashMap<String, List<FileInfo>> sameSuffixMap = new HashMap<>(); in setMapData()
265 for (String filePath : fileList) { in setMapData()
268 Iterator<String> iterator = sameSuffixMap.keySet().iterator(); in setMapData()
270 String next = iterator.next(); in setMapData()
280 String soFilePath = param.getFile(); in setMapData()
284 String hapPath = soFilePath.substring(0, index); in setMapData()
300 String path = fileInfo.getFile(); in setMapData()
313 private String setHtmlData(SuffixResult suffixResult) {
314 String pathHtml = EMPTY_STRING;
318 String pathListHtml = EMPTY_STRING;
322 String taskTypeHtml = getHtmlRow(TASK_TYPE, suffixResult.getTaskType());
323 String taskDescHtml = getHtmlRow(TASK_DESC, suffixResult.getTaskDesc());
324 String paramHtml = getHtmlRow(PARAM, suffixResult.getParam());
325 String startTimeHtml = getHtmlRow(START_TIME, suffixResult.getStartTime());
326 String stopTimeHtml = getHtmlRow(STOP_TIME, suffixResult.getStopTime());
327 String resultValue = getResultHtmlOfSuffix(suffixResult.getResult());
328 String resultHtml = getHtmlRowResultClass(RESULT, resultValue);
333 private String splitPath(String path, String packageName) {
334 String[] split = path.split(packageName);
342 private long getOldSize(List<String> soList, File hapFile) { in getOldSize()
344 for (String file : soList) { in getOldSize()
364 …private static HashMap<String, List<FileInfo>> accountFileType(HashMap<String, List<FileInfo>> map… in accountFileType() argument
366 String[] split = file.getName().split(SPLIT_POINT); in accountFileType()
383 … private static void accountType(HashMap<String, List<FileInfo>> hashMap, File file, String key) { in accountType() argument
390 …private static void accountTypeUnknown(HashMap<String, List<FileInfo>> hashMap, File file, String in accountTypeUnknown() argument
405 private static String getPathListHtml(List<String> models) { in getPathListHtml()
407 for (String strHtml : models) { in getPathListHtml()
413 private static String getResultHtmlOfSuffix(List<ParamModelSuffix> models) { in getResultHtmlOfSuffix()
418 String filesHtml; in getResultHtmlOfSuffix()
424 String liHtml; in getResultHtmlOfSuffix()
430 String suffixHtml = getHtmlRowResult(SUFFIX_FOLDER_NAME, model.getSuffix(), in getResultHtmlOfSuffix()
432 String totalSizeHtml = getHtmlRowResult(RESULT_TOTAL_SIZE, model.getTotalSize(), in getResultHtmlOfSuffix()
434 String modelHtml = liHtml + TABLE_SUFFIX in getResultHtmlOfSuffix()
440 … resultHtml.append(String.format(HTML_BUTTON_SHOW, SUFFIX_FOLDER_NAME, SUFFIX_FOLDER_NAME)); in getResultHtmlOfSuffix()
441 … resultHtml.append(String.format(HTML_BUTTON_HIDE, SUFFIX_FOLDER_NAME, SUFFIX_FOLDER_NAME)); in getResultHtmlOfSuffix()
446 private static String getHtmlRow(String key, String valve) { in getHtmlRow()
450 private static String getHtmlRow(String key, long valve) { in getHtmlRow()
454 private static String getHtmlRowResultClass(String key, String valve) { in getHtmlRowResultClass()
458 private static String getHtmlRowResult(String key, String valve, in getHtmlRowResult()
459 String trClass, String tdClassKey, String tdClassValue) { in getHtmlRowResult()
460 return String.format(HTML_TDTR_HEAD + key + HTML_TDTR_SEND + valve + HTML_TDTR_END, in getHtmlRowResult()
464 private static String getHtmlRowResult(String key, long valve, in getHtmlRowResult()
465 String trClass, String tdClassKey, String tdClassValue) { in getHtmlRowResult()
466 return String.format(HTML_TDTR_HEAD + key + HTML_TDTR_SEND + valve + HTML_TDTR_END, in getHtmlRowResult()
470 private static String getHtmlRowFile(String key, List<FileInfo> files) { in getHtmlRowFile()
479 private static String getHtmlRowFileSo(String key, List<SoFile> files) { in getHtmlRowFileSo()
489 private static String getCurrentTime() { in getCurrentTime()
494 private static void unpackHap(String srcPath, String outPath) throws BundleException { in unpackHap()
508 private static void unpackEntryToFile(ZipInputStream zipInputStream, String outPath) in unpackEntryToFile()
512 String entryName = entry.getName(); in unpackEntryToFile()