blob_id
stringlengths 40
40
| directory_id
stringlengths 40
40
| path
stringlengths 7
332
| content_id
stringlengths 40
40
| detected_licenses
listlengths 0
50
| license_type
stringclasses 2
values | repo_name
stringlengths 7
115
| snapshot_id
stringlengths 40
40
| revision_id
stringlengths 40
40
| branch_name
stringclasses 557
values | visit_date
timestamp[us] | revision_date
timestamp[us] | committer_date
timestamp[us] | github_id
int64 5.85k
684M
⌀ | star_events_count
int64 0
77.7k
| fork_events_count
int64 0
48k
| gha_license_id
stringclasses 17
values | gha_event_created_at
timestamp[us] | gha_created_at
timestamp[us] | gha_language
stringclasses 82
values | src_encoding
stringclasses 28
values | language
stringclasses 1
value | is_vendor
bool 1
class | is_generated
bool 2
classes | length_bytes
int64 7
5.41M
| extension
stringclasses 11
values | content
stringlengths 7
5.41M
| authors
listlengths 1
1
| author
stringlengths 0
161
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
432ed4c395b326aad388a35b632d36972d8d8abd | b9709977251f4de05d211f9061a57d87f1d78ca0 | /src/test/java/cn/ruanduo98/easyserving/service/TableServiceImplTest.java | 50974a7ee8bea8a6e806ea6270d23448d816c9c1 | []
| no_license | Samsara526/EasyServing | bba7d9e94272d2e91929198bb36c0c0d6b16aace | ff96b030d4bcf9577a53e2023c003884e131cef2 | refs/heads/master | 2021-05-24T15:31:09.835829 | 2020-05-24T18:17:16 | 2020-05-24T18:17:16 | 256,259,185 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,002 | java | package cn.ruanduo98.easyserving.service;
import cn.ruanduo98.easyserving.po.TableItem;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import java.util.List;
import static org.junit.jupiter.api.Assertions.*;
@SpringBootTest
class TableServiceImplTest {
@Autowired
TableService tableService;
@Test
void findAll() {
List<TableItem> tableItems = tableService.findAll();
for (TableItem tableItem : tableItems) {
System.out.println(tableItem);
}
}
@Test
void findAllWithFront() {
List<TableItem> tableItems = tableService.findAllWithFront();
for (TableItem tableItem : tableItems) {
System.out.println(tableItem);
}
}
@Test
void countAllByState() {
System.out.println(tableService.countAllByState((byte)1));
}
@Test
void updateTableStatueById() {
}
} | [
"[email protected]"
]
| |
cc4d7e396f4f5434f1855fc3bdd082128b0ba1dd | 011b2718e0a47811a64c931656efe7a9685a9543 | /src/main/java/Ferdinand_William_project/WeatherData.java | 12db685b3fdd712d1cf1027fa0073afd3bd794a5 | []
| no_license | ferdinandgregorius/Commsult_Final_Project | ef49b3c5d22eb357eeb06a200f2440743fb49515 | 6ddb1655c8657f2b454790ebb835abbd0ca87537 | refs/heads/master | 2023-08-25T21:09:04.870889 | 2021-10-22T06:21:58 | 2021-10-22T06:21:58 | 418,911,076 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,092 | java | package Ferdinand_William_project;
import java.util.ArrayList;
public class WeatherData {
int secondsPassed;
double windSpeed;
double temperature;
double humidity;
String windowStatus;
String acStatus;
public WeatherData(int secondsPassed, double windSpeed, double temperature, double humidity, String windowStatus, String acStatus) {
this.secondsPassed = secondsPassed;
this.windSpeed = windSpeed;
this.temperature = temperature;
this.humidity = humidity;
this.windowStatus = windowStatus;
this.acStatus = acStatus;
}
ArrayList<WeatherData> WeatherDataList = new ArrayList<WeatherData>();
public void printWeahterData() {
for (int i = 0; i<WeatherDataList.size(); i++) {
System.out.println("Hours Passed: " + WeatherDataList.get(i).secondsPassed +":00" + ", WindSpeed: " + WeatherDataList.get(i).windSpeed +
", Temperature: " + WeatherDataList.get(i).temperature + ", Humidity: " + WeatherDataList.get(i).humidity +
", Window Status: " + WeatherDataList.get(i).windowStatus + ", AC Status: " + WeatherDataList.get(i).acStatus);
}
}
}
| [
"[email protected]"
]
| |
502eba92213e3f635b7db57d932ff4f08628c0ff | c6a608594415d5524238f3d3a1272935a2579a27 | /app/src/main/java/com/icode/jiling/na517demo_mvvm/utils/TimeUtils.java | 982648ce672bafdc607361f3c1df8893f9f1e46e | []
| no_license | dikerdl/mvvmDemo | fa73da0f14a596917c7ba6abc1a717087ffd35e8 | 38b77de263502d82f817358973b2a3343cf42909 | refs/heads/master | 2021-04-15T15:43:08.220037 | 2018-04-04T06:15:27 | 2018-04-04T06:15:27 | 126,348,691 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 643 | java | package com.icode.jiling.na517demo_mvvm.utils;
/**
* Created by jiling on 2018/4/3.
*/
public class TimeUtils {
public static String getTimeStr(int timecount) {
String hour = timecount/(60*60) != 0 ? timecount/(60*60)+":" : "";
if(!"".equals(hour)){
timecount = timecount%(60*60);
}
String min = (int) (Math.floor(timecount / 60)) + "".length() >= 2 ? (int) (Math.floor(timecount / 60)) + ""
: "0" + (int) (Math.floor(timecount / 60));
String second = timecount % 60 > 9 ? timecount % 60 + "" : "0" + timecount % 60;
return hour + min + ":" + second;
}
}
| [
"[email protected]"
]
| |
69c9c996a70016b4d2e8186c3ab956832ba29ace | 80e300a93cadcf3180ab6e7a78190039f8adfbf2 | /module-middleware/src/main/java/com/rae/cnblogs/web/client/RaeJavaScriptBridge.java | 0d0ef46df6fe4a9cc6b86cee0ffc98559f084215 | [
"MIT"
]
| permissive | raedev/android-cnblogs | dc1239519ed2b963b2569f9cb49f6d6057fdd666 | b26b759ca5171ba104f8b09c8238f07afa3b2658 | refs/heads/master | 2023-01-10T07:40:30.636922 | 2022-10-08T15:47:48 | 2022-10-08T15:47:48 | 132,328,314 | 203 | 84 | MIT | 2022-10-08T15:40:55 | 2018-05-06T10:28:25 | Java | UTF-8 | Java | false | false | 2,349 | java | package com.rae.cnblogs.web.client;
import android.content.Context;
import android.text.TextUtils;
import android.webkit.JavascriptInterface;
import com.google.gson.reflect.TypeToken;
import com.rae.cnblogs.AppRoute;
import com.rae.cnblogs.sdk.AppGson;
import com.rae.cnblogs.theme.ThemeCompat;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
/**
* JS 接口
* Created by ChenRui on 2016/12/27 23:14.
*/
public class RaeJavaScriptBridge {
private WeakReference<Context> mReference;
protected boolean mEnableWebBlog = true; // 是否允许自动优化博文
public RaeJavaScriptBridge(Context context) {
mReference = new WeakReference<>(context);
}
private String html;
// 博客JSON
private String blog;
@JavascriptInterface
public void setHtml(String html) {
this.html = html;
}
public String getHtml() {
return html;
}
@JavascriptInterface
public String getBlog() {
return blog;
}
public void setBlog(String blog) {
this.blog = blog;
}
@JavascriptInterface
public boolean isNightMode() {
return ThemeCompat.isNight();
}
@JavascriptInterface
public void onImageClick(String url, String images) {
if (TextUtils.isEmpty(url) || TextUtils.isEmpty(images)) {
return;
}
ArrayList<String> imageList = AppGson.get().fromJson(images, new TypeToken<ArrayList<String>>() {
}.getType());
int index = Math.max(0, imageList.indexOf(url));
if (mReference.get() != null) {
AppRoute.routeToImagePreview(mReference.get(), imageList, index);
}
}
/**
* 跳转到博主界面
*/
@JavascriptInterface
public void jumpToBlogger(String blogApp) {
if (TextUtils.isEmpty(blogApp)) return;
if (mReference.get() != null) {
AppRoute.routeToBlogger(mReference.get(), blogApp);
}
}
protected Context getContext() {
return mReference.get();
}
public String getString(int resId) {
return getContext().getString(resId);
}
public String getString(int resId, Object... args) {
return getContext().getString(resId, args);
}
public void setEnableWebBlog(boolean value) {
mEnableWebBlog = value;
}
}
| [
"[email protected]"
]
| |
5d539ff80d69468a51f60bcefd007fa48833e818 | ae2f8e595a4fe5a2e0956e0412b2e9b3d72d42d7 | /KedokteranHospital_BO/src/mysistemahospital_bo/MySistemaHospital_BO.java | 002e71d3ca52ec2c44dffd1a164685e029025f38 | []
| no_license | nateixeirag/es1 | 3eea3b712fb3d53c61a2158fe54b19bc90352478 | 008f34ebd575a443d85b66a663c41901b51dbf2a | refs/heads/master | 2021-07-15T01:21:49.710795 | 2017-10-19T04:54:41 | 2017-10-19T04:54:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 450 | java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package mysistemahospital_bo;
/**
*
* @author cristopher
*/
public class MySistemaHospital_BO {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
}
}
| [
"[email protected]"
]
| |
8c767a5305c3bc3b4dae1aed1d5ed58f43d52a67 | 8824e13d43d2227a2ea0155633ef0da3eb75249d | /src/main/java/com/qianjin/java/dal/cs3/java2110/ass2gc/Node.java | 6b0892a188875c38855fc95fb30cfabcaff04c97 | []
| no_license | qianjinpeixun/Rest20171123 | a441ee1725c9209e98bf0b626a23b19881edceda | dc87f54c61bee0a1c7cb1012918022252aa81dae | refs/heads/master | 2021-08-30T11:28:15.092410 | 2017-12-17T18:15:22 | 2017-12-17T18:15:22 | 111,836,087 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 406 | java | package com.qianjin.java.dal.cs3.java2110.ass2gc;
public class Node<T>
{
private T data;
private Node<T> next;
public Node(T data, Node<T> next)
{
this.data = data;
this.next = next;
}
public T getData()
{
return data;
}
public Node<T> getNext()
{
return this.next;
}
public void setData(T data)
{
this.data = data;
}
public void setNext(Node<T> next)
{
this.next = next;
}
} | [
"[email protected]"
]
| |
29136174eaec16201a44bf9723b331b0245741f0 | 4fb596ee83c557cec9023e7f96d56b11d4fdede7 | /dm-aide/src/test/java/com/github/imusk/dm/aide/javaelf/JavaElfTest.java | 252dae5914eeb02f4870cb6250fea9033039aa5f | [
"MIT"
]
| permissive | a1997429/dm | 5b17f62d5393513c9da623e35c230d70f8843768 | 57a0bd8658fb26e03004ff5dde2f060589a70ac7 | refs/heads/master | 2023-05-20T03:43:22.162711 | 2021-06-11T08:46:22 | 2021-06-11T08:46:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,364 | java | package com.github.imusk.dm.aide.javaelf;
import com.qiyou.javaelf.elf.GlobalSetting;
import com.qiyou.javaelf.operation.Picture;
import com.qiyou.javaelf.operation.PictureOperations;
import com.qiyou.javaelf.system.Elf;
import org.junit.Test;
/**
* @author: Musk
* @email: [email protected]
* @datetime: 2021-06-04 10:03:05
* @classname: JavaElfTest
* @description: javaelf.cn
* @refer1: http://javaelf.cn/
* @refer2: https://blog.csdn.net/qq_38830428/article/details/108098007
*/
public class JavaElfTest {
@Test
public void elf() {
try {
String regPath = "";
String dmPath = "";
GlobalSetting.copy_dlls();
//全局只调用一次
Elf.init(regPath, dmPath);
Elf elf = new Elf();
//打印版本 7.2043
System.out.println(elf.Ver());
// FindPicS
Object[] params1 = new Object[]{0, 0, 1920, 1080, "test.png", "", 0.9, 0, 0, 0};
String res1 = elf.execute(Picture.class, PictureOperations.FindPicS, params1).toString();
Picture picture = new Picture(elf);
Object[] params = new Object[]{0, 0, 1920, 1080, "test.png", "", 0.9, 0, 0, 0};
String res = picture.FindPicS(params);
} catch (Exception e) {
e.printStackTrace();
}
}
}
| [
"[email protected]"
]
| |
5afa40ed4dc340819e97ef3b9d30e8fc403e3717 | 24d8cf871b092b2d60fc85d5320e1bc761a7cbe2 | /DrJava/rev5266-5336-compilers-hj/base-trunk-5266/platform/src-eclipse/edu/rice/cs/drjava/model/compiler/EclipseCompiler.java | bdae5446bffdb61056711928a24c317d6bec20dd | []
| no_license | joliebig/featurehouse_fstmerge_examples | af1b963537839d13e834f829cf51f8ad5e6ffe76 | 1a99c1788f0eb9f1e5d8c2ced3892d00cd9449ad | refs/heads/master | 2016-09-05T10:24:50.974902 | 2013-03-28T16:28:47 | 2013-03-28T16:28:47 | 9,080,611 | 3 | 2 | null | null | null | null | UTF-8 | Java | false | false | 9,563 | java |
package edu.rice.cs.drjava.model.compiler;
import java.io.*;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.LinkedList;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.util.Iterator;
import java.util.ResourceBundle;
import java.util.Locale;
import javax.tools.JavaFileManager;
import javax.tools.JavaFileObject;
import javax.tools.Diagnostic;
import javax.tools.DiagnosticListener;
import javax.tools.StandardJavaFileManager;
import javax.tools.JavaCompiler;
import javax.tools.StandardLocation;
import edu.rice.cs.drjava.model.DJError;
import edu.rice.cs.plt.reflect.JavaVersion;
import edu.rice.cs.plt.io.IOUtil;
import edu.rice.cs.plt.iter.IterUtil;
import static edu.rice.cs.plt.debug.DebugUtil.debug;
import static edu.rice.cs.plt.debug.DebugUtil.error;
public class EclipseCompiler extends JavacCompiler {
private final boolean _filterExe;
private File _tempJUnit = null;
private final String PREFIX = "drjava-junit";
private final String SUFFIX = ".jar";
public EclipseCompiler(JavaVersion.FullVersion version, String location, List<? extends File> defaultBootClassPath) {
super(version, location, defaultBootClassPath);
_filterExe = version.compareTo(JavaVersion.parseFullVersion("1.6.0_04")) >= 0;
if (_filterExe) {
try {
InputStream is = Javac160Compiler.class.getResourceAsStream("/junit.jar");
if (is!=null) {
_tempJUnit = edu.rice.cs.plt.io.IOUtil.createAndMarkTempFile(PREFIX,SUFFIX);
FileOutputStream fos = new FileOutputStream(_tempJUnit);
int size = edu.rice.cs.plt.io.IOUtil.copyInputStream(is,fos);
}
else {
if (_tempJUnit!=null) {
_tempJUnit.delete();
_tempJUnit = null;
}
}
}
catch(IOException ioe) {
if (_tempJUnit!=null) {
_tempJUnit.delete();
_tempJUnit = null;
}
}
Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() {
public void run() {
try {
File temp = File.createTempFile(PREFIX, SUFFIX);
IOUtil.attemptDelete(temp);
File[] toDelete = temp.getParentFile().listFiles(new FilenameFilter() {
public boolean accept(File dir, String name) {
if ((!name.startsWith(PREFIX)) || (!name.endsWith(SUFFIX))) return false;
String rest = name.substring(PREFIX.length(), name.length()-SUFFIX.length());
try {
Integer i = new Integer(rest);
return true;
}
catch(NumberFormatException e) { }
return false;
}
});
for(File f: toDelete) {
f.delete();
}
}
catch(IOException ioe) { }
}
}));
}
}
public boolean isAvailable() {
try {
Class<?> diagnostic = Class.forName("javax.tools.Diagnostic");
diagnostic.getMethod("getKind");
Class.forName("org.eclipse.jdt.internal.compiler.tool.EclipseCompiler");
return true;
}
catch (Exception e) { return false; }
catch (LinkageError e) { return false; }
}
public List<? extends DJError> compile(List<? extends File> files, List<? extends File> classPath,
List<? extends File> sourcePath, File destination,
List<? extends File> bootClassPath, String sourceVersion, boolean showWarnings) {
debug.logStart("compile()");
debug.logValues(new String[]{ "this", "files", "classPath", "sourcePath", "destination", "bootClassPath",
"sourceVersion", "showWarnings" },
this, files, classPath, sourcePath, destination, bootClassPath, sourceVersion, showWarnings);
List<File> filteredClassPath = null;
if (classPath!=null) {
filteredClassPath = new LinkedList<File>(classPath);
if (_filterExe) {
FileFilter filter = IOUtil.extensionFilePredicate("exe");
Iterator<? extends File> i = filteredClassPath.iterator();
while (i.hasNext()) {
if (filter.accept(i.next())) { i.remove(); }
}
if (_tempJUnit!=null) { filteredClassPath.add(_tempJUnit); }
}
}
LinkedList<DJError> errors = new LinkedList<DJError>();
JavaCompiler compiler = new org.eclipse.jdt.internal.compiler.tool.EclipseCompiler();
CompilerErrorListener diagnosticListener = new CompilerErrorListener(errors);
StandardJavaFileManager fileManager = compiler.getStandardFileManager(diagnosticListener, null, null);
Iterable<? extends JavaFileObject> compilationUnits = fileManager.getJavaFileObjectsFromFiles(files);
Writer out = new OutputStreamWriter(new OutputStream() {
public void write(int b) { }
});
Iterable<String> classes = null;
Iterable<String> options = _getOptions(fileManager,
filteredClassPath, sourcePath, destination,
bootClassPath, sourceVersion, showWarnings);
try {
JavaCompiler.CompilationTask task = compiler.getTask(out, fileManager, diagnosticListener, options, classes, compilationUnits);
boolean res = task.call();
if (!res && (errors.size()==0)) throw new AssertionError("Compile failed. There should be compiler errors, but there aren't.");
}
catch(Throwable t) {
errors.addFirst(new DJError("Compile exception: " + t, false));
error.log(t);
}
debug.logEnd("compile()");
return errors;
}
public String getName() {
try {
ResourceBundle bundle = ResourceBundle.getBundle("org.eclipse.jdt.internal.compiler.batch.messages");
String ecjVersion = bundle.getString("compiler.version");
int commaPos = ecjVersion.indexOf(',');
if (commaPos>=0) { ecjVersion = ecjVersion.substring(0, commaPos); }
return "Eclipse Compiler "+ecjVersion;
}
catch(Throwable t) {
return "Eclipse Compiler " + _version.versionString();
}
}
private static void addOption(List<String> options, String s) {
if (s.length()>0) options.add(s);
}
private Iterable<String> _getOptions(StandardJavaFileManager fileManager,
List<? extends File> classPath, List<? extends File> sourcePath, File destination,
List<? extends File> bootClassPath, String sourceVersion, boolean showWarnings) {
if (bootClassPath == null) { bootClassPath = _defaultBootClassPath; }
List<String> options = new ArrayList<String>();
for (Map.Entry<String, String> e : CompilerOptions.getOptions(showWarnings).entrySet()) {
addOption(options,e.getKey());
addOption(options,e.getValue());
}
addOption(options,"-g");
if (classPath != null) {
addOption(options,"-classpath");
addOption(options,IOUtil.pathToString(classPath));
try {
fileManager.setLocation(StandardLocation.CLASS_PATH, classPath);
}
catch(IOException ioe) { }
}
if (sourcePath != null) {
addOption(options,"-sourcepath");
addOption(options,IOUtil.pathToString(sourcePath));
try {
fileManager.setLocation(StandardLocation.SOURCE_PATH, sourcePath);
}
catch(IOException ioe) { }
}
if (destination != null) {
addOption(options,"-d");
addOption(options,destination.getPath());
try {
fileManager.setLocation(StandardLocation.CLASS_OUTPUT, IterUtil.asIterable(destination));
}
catch(IOException ioe) { }
}
if (bootClassPath != null) {
addOption(options,"-bootclasspath");
addOption(options,IOUtil.pathToString(bootClassPath));
try {
fileManager.setLocation(StandardLocation.PLATFORM_CLASS_PATH, bootClassPath);
}
catch(IOException ioe) { }
}
if (sourceVersion != null) {
addOption(options,"-source");
addOption(options,sourceVersion);
}
if (!showWarnings) {
addOption(options,"-nowarn");
}
return options;
}
private static class CompilerErrorListener implements DiagnosticListener<JavaFileObject> {
private List<? super DJError> _errors;
public CompilerErrorListener(List<? super DJError> errors) {
_errors = errors;
}
public void report(Diagnostic<? extends JavaFileObject> d) {
Diagnostic.Kind dt = d.getKind();
boolean isWarning = false;
switch (dt) {
case OTHER: return;
case NOTE: return;
case MANDATORY_WARNING: isWarning = true; break;
case WARNING: isWarning = true; break;
case ERROR: isWarning = false; break;
}
if (d.getSource()!=null) {
_errors.add(new DJError(new File(d.getSource().toUri().getPath()),
((int) d.getLineNumber()) - 1,
((int) d.getColumnNumber()) - 1,
d.getMessage(Locale.getDefault()),
isWarning));
}
else {
_errors.add(new DJError(d.getMessage(Locale.getDefault()), isWarning));
}
}
}
}
| [
"[email protected]"
]
| |
eab4fa2defe88d7df029a831a50e4569623cfe04 | 469b49a3774de4a13a74a017a7617293eb894cd2 | /KM-Portal-CodeBase-RFC 33570/src/com/ibm/km/common/BannerImageServlet.java | bfe4f9650b01720216ccf8294be98ee4727f0cb5 | []
| no_license | kmportal/KM_PORTAL | 053b1ff43b06b416b459487b60caca0c86e86dc7 | c20180035a5818f49b16175411d00ca363bdefb1 | refs/heads/master | 2021-01-12T05:00:03.520826 | 2006-01-11T08:58:04 | 2006-01-11T08:58:04 | 77,826,499 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,078 | java | package com.ibm.km.common;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import javax.servlet.Servlet;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.ibm.km.exception.DAOException;
import com.ibm.km.exception.KmException;
import com.ibm.km.services.KeywordMgmtService;
import com.ibm.km.services.KmBannerUploadService;
import com.ibm.km.services.impl.KeywordMgmtServiceImpl;
import com.ibm.km.services.impl.KmBannerUploadServiceImpl;
/**
* Servlet implementation class BannerImageServlet
*/
public class BannerImageServlet extends HttpServlet {
private static final long serialVersionUID = 1L;
/**
* @see HttpServlet#HttpServlet()
*/
public BannerImageServlet() {
super();
// TODO Auto-generated constructor stub
}
/**
* @see Servlet#init(ServletConfig)
*/
public void init(ServletConfig config) throws ServletException {
super.init(config);
}
/**
* @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
*/
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// System.out.println("******************** Inside INIT ******************");
KeywordMgmtService kservice = new KeywordMgmtServiceImpl();
try {
kservice.insert();
} catch (KmException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
String reqImage = request.getParameter("image");
if(reqImage == null)
reqImage="";
if(reqImage.equals("csrHomePage") || reqImage.equals("loginPage") ) {
KmBannerUploadService service = new KmBannerUploadServiceImpl();
try{
InputStream inputStream = null;
inputStream = service.retrieveBanner(reqImage);
if(inputStream != null) {
response.setContentType("image/jpeg");
ServletOutputStream out = response.getOutputStream();
int size = inputStream.available();
byte[] content = new byte[size];
inputStream.read(content);
out.write(content);
inputStream.close();
out.close();
}
}catch(DAOException daoe){
daoe.printStackTrace();
}catch(FileNotFoundException fnfe){
fnfe.printStackTrace();
}catch(IOException ioe){
ioe.printStackTrace();
}
}
// TODO Auto-generated method stub
}
/**
* @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
*/
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
doGet(request, response);
}
/*public void destroy(ServletConfig config) throws ServletException {
KeyChar.setRootNull();
System.out.println("\nDestroying........");
}*/
}
| [
"dpdth@localhost"
]
| dpdth@localhost |
b754919bb8cc3fd53d74574515c153b660360360 | e334486799c20482f3c99cb0fa90af89f6c21bf5 | /src/main/java/com/spring/board2/service/MemberServiceImpl.java | 45bcb04b3b875681638fb241f3cbc36f2bae1348 | []
| no_license | yunok96/ChatBoard | 9793ee6c778896025516640f105528a4c727be89 | 6e2d6563266e6ee2c52e254b6b0efcad4533fbb4 | refs/heads/main | 2023-05-29T20:56:58.219967 | 2021-06-11T03:09:21 | 2021-06-11T03:09:21 | 375,882,442 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 567 | java | package com.spring.board2.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.spring.board2.model.MemberDAO;
import com.spring.board2.model.MemberVO;
@Service
public class MemberServiceImpl implements MemberService {
@Autowired
private MemberDAO dao;
@Override
public MemberVO selectMember(String email) throws Exception {
return dao.selectMember(email);
}
@Override
public int insertMember(MemberVO memberVO) throws Exception {
return dao.insertMember(memberVO);
}
}
| [
"[email protected]"
]
| |
823f6d167a6237dd5628636dc962cdd31be985b3 | 3d1b6e2dbcfaae60acbb275e708acc0ed024287f | /src/main/java/nirmalya/aatithya/restmodule/employee/controller/HrmsDepartmentMasterRestController.java | c782c66a3acc9bec4959c14c136b0cdf90cc4468 | []
| no_license | dhamotharang/restmodule | 8fe4716c3b6bf32325be703604fbf62fe57cf3f4 | df2c2c58d45849e67088eff688a8ad14bd018da5 | refs/heads/master | 2023-02-11T14:33:59.958335 | 2021-01-06T14:50:32 | 2021-01-06T14:50:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,800 | java | package nirmalya.aatithya.restmodule.employee.controller;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import nirmalya.aatithya.restmodule.common.utils.DataTableRequest;
import nirmalya.aatithya.restmodule.common.utils.JsonResponse;
import nirmalya.aatithya.restmodule.employee.dao.HrmsDepartmentMasterDao;
import nirmalya.aatithya.restmodule.employee.model.HrmsDepartmentMasterModel;
@RestController
@RequestMapping("employee/")
public class HrmsDepartmentMasterRestController {
Logger logger = LoggerFactory.getLogger(HrmsDepartmentMasterRestController.class);
@Autowired
HrmsDepartmentMasterDao hrmDepartmentMasterDao;
/*
* for All department
*/
@RequestMapping(value="getdepartmentDetails" , method={RequestMethod.POST})
public ResponseEntity<JsonResponse<List<HrmsDepartmentMasterModel>>> getdepartmentDetails(@RequestBody DataTableRequest request)
{
logger.info("Method : getdepartmentDetails starts");
logger.info("Method : getdepartmentDetails ends");
return hrmDepartmentMasterDao.getdepartmentDetails(request);
}
/*
* for All Add department
*/
@RequestMapping(value="restAdddepartments" , method={RequestMethod.POST})
public ResponseEntity<JsonResponse<Object>> restAdddepartment(@RequestBody HrmsDepartmentMasterModel department)
{
logger.info("Method : restAdddepartment starts");
logger.info("Method : restAdddepartment ends");
return hrmDepartmentMasterDao.adddepartment(department);
}
/*
* for department Edit
*/
@RequestMapping(value="getdepartmentById" , method={RequestMethod.GET})
public ResponseEntity<JsonResponse<HrmsDepartmentMasterModel>> getdepartmentById(@RequestParam String id)
{
logger.info("Method : getdepartmentById starts");
logger.info("Method : getdepartmentById ends");
return hrmDepartmentMasterDao.getdepartmentById(id);
}
/*
* for All department Delete
*/
@RequestMapping(value="deletedepartmentById" , method={RequestMethod.GET})
public ResponseEntity<JsonResponse<Object>> deletedepartmentById(@RequestParam String id, @RequestParam String createdBy)
{
logger.info("Method : deletedepartmentById starts");
logger.info("Method : deletedepartmentById ends");
return hrmDepartmentMasterDao.deletedepartmentById(id,createdBy);
}
}
| [
"Nirmalya Labs@DESKTOP-4AJAMHM"
]
| Nirmalya Labs@DESKTOP-4AJAMHM |
b23bd7b17cd4a459c2a29da2739c2af3097bed40 | d9eacbb4b1082a1fa19ce445dc07599269440565 | /src/trans/encoders/relay/Router.java | 555c914910128cfdd5f441c49299509b22d35363 | []
| no_license | tomlurge/converTor | 4003ea0b93ae6b8faba3c5dee5a2e10f97b28d50 | b0c591625c988c1634fd85a833824162e2ada73d | refs/heads/master | 2021-01-17T13:29:06.037777 | 2017-01-15T23:47:32 | 2017-01-15T23:47:32 | 49,895,645 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 17,219 | java | /**
* Autogenerated by Avro
*
* DO NOT EDIT DIRECTLY
*/
package trans.encoders.relay;
@SuppressWarnings("all")
@org.apache.avro.specific.AvroGenerated
public class Router extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
private static final long serialVersionUID = 506696217916392890L;
public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Router\",\"namespace\":\"trans.encoders.relay\",\"fields\":[{\"name\":\"nickname\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"metrics-lib/ServerDescriptor: String getNickname()\"},{\"name\":\"address\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"metrics-lib/ServerDescriptor: String getAddress()\"},{\"name\":\"or_port\",\"type\":[\"null\",\"int\"],\"doc\":\"metrics-lib/ServerDescriptor: int getOrPort()\"},{\"name\":\"socks_port\",\"type\":[\"null\",\"int\"],\"doc\":\"metrics-lib/ServerDescriptor: int getSocksPort()\"},{\"name\":\"dir_port\",\"type\":[\"null\",\"int\"],\"doc\":\"metrics-lib/ServerDescriptor: int getDirPort()\"}]}");
public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
/** metrics-lib/ServerDescriptor: String getNickname() */
@Deprecated public java.lang.String nickname;
/** metrics-lib/ServerDescriptor: String getAddress() */
@Deprecated public java.lang.String address;
/** metrics-lib/ServerDescriptor: int getOrPort() */
@Deprecated public java.lang.Integer or_port;
/** metrics-lib/ServerDescriptor: int getSocksPort() */
@Deprecated public java.lang.Integer socks_port;
/** metrics-lib/ServerDescriptor: int getDirPort() */
@Deprecated public java.lang.Integer dir_port;
/**
* Default constructor. Note that this does not initialize fields
* to their default values from the schema. If that is desired then
* one should use <code>newBuilder()</code>.
*/
public Router() {}
/**
* All-args constructor.
* @param nickname metrics-lib/ServerDescriptor: String getNickname()
* @param address metrics-lib/ServerDescriptor: String getAddress()
* @param or_port metrics-lib/ServerDescriptor: int getOrPort()
* @param socks_port metrics-lib/ServerDescriptor: int getSocksPort()
* @param dir_port metrics-lib/ServerDescriptor: int getDirPort()
*/
public Router(java.lang.String nickname, java.lang.String address, java.lang.Integer or_port, java.lang.Integer socks_port, java.lang.Integer dir_port) {
this.nickname = nickname;
this.address = address;
this.or_port = or_port;
this.socks_port = socks_port;
this.dir_port = dir_port;
}
public org.apache.avro.Schema getSchema() { return SCHEMA$; }
// Used by DatumWriter. Applications should not call.
public java.lang.Object get(int field$) {
switch (field$) {
case 0: return nickname;
case 1: return address;
case 2: return or_port;
case 3: return socks_port;
case 4: return dir_port;
default: throw new org.apache.avro.AvroRuntimeException("Bad index");
}
}
// Used by DatumReader. Applications should not call.
@SuppressWarnings(value="unchecked")
public void put(int field$, java.lang.Object value$) {
switch (field$) {
case 0: nickname = (java.lang.String)value$; break;
case 1: address = (java.lang.String)value$; break;
case 2: or_port = (java.lang.Integer)value$; break;
case 3: socks_port = (java.lang.Integer)value$; break;
case 4: dir_port = (java.lang.Integer)value$; break;
default: throw new org.apache.avro.AvroRuntimeException("Bad index");
}
}
/**
* Gets the value of the 'nickname' field.
* @return metrics-lib/ServerDescriptor: String getNickname()
*/
public java.lang.String getNickname() {
return nickname;
}
/**
* Sets the value of the 'nickname' field.
* metrics-lib/ServerDescriptor: String getNickname()
* @param value the value to set.
*/
public void setNickname(java.lang.String value) {
this.nickname = value;
}
/**
* Gets the value of the 'address' field.
* @return metrics-lib/ServerDescriptor: String getAddress()
*/
public java.lang.String getAddress() {
return address;
}
/**
* Sets the value of the 'address' field.
* metrics-lib/ServerDescriptor: String getAddress()
* @param value the value to set.
*/
public void setAddress(java.lang.String value) {
this.address = value;
}
/**
* Gets the value of the 'or_port' field.
* @return metrics-lib/ServerDescriptor: int getOrPort()
*/
public java.lang.Integer getOrPort() {
return or_port;
}
/**
* Sets the value of the 'or_port' field.
* metrics-lib/ServerDescriptor: int getOrPort()
* @param value the value to set.
*/
public void setOrPort(java.lang.Integer value) {
this.or_port = value;
}
/**
* Gets the value of the 'socks_port' field.
* @return metrics-lib/ServerDescriptor: int getSocksPort()
*/
public java.lang.Integer getSocksPort() {
return socks_port;
}
/**
* Sets the value of the 'socks_port' field.
* metrics-lib/ServerDescriptor: int getSocksPort()
* @param value the value to set.
*/
public void setSocksPort(java.lang.Integer value) {
this.socks_port = value;
}
/**
* Gets the value of the 'dir_port' field.
* @return metrics-lib/ServerDescriptor: int getDirPort()
*/
public java.lang.Integer getDirPort() {
return dir_port;
}
/**
* Sets the value of the 'dir_port' field.
* metrics-lib/ServerDescriptor: int getDirPort()
* @param value the value to set.
*/
public void setDirPort(java.lang.Integer value) {
this.dir_port = value;
}
/**
* Creates a new Router RecordBuilder.
* @return A new Router RecordBuilder
*/
public static trans.encoders.relay.Router.Builder newBuilder() {
return new trans.encoders.relay.Router.Builder();
}
/**
* Creates a new Router RecordBuilder by copying an existing Builder.
* @param other The existing builder to copy.
* @return A new Router RecordBuilder
*/
public static trans.encoders.relay.Router.Builder newBuilder(trans.encoders.relay.Router.Builder other) {
return new trans.encoders.relay.Router.Builder(other);
}
/**
* Creates a new Router RecordBuilder by copying an existing Router instance.
* @param other The existing instance to copy.
* @return A new Router RecordBuilder
*/
public static trans.encoders.relay.Router.Builder newBuilder(trans.encoders.relay.Router other) {
return new trans.encoders.relay.Router.Builder(other);
}
/**
* RecordBuilder for Router instances.
*/
public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase<Router>
implements org.apache.avro.data.RecordBuilder<Router> {
/** metrics-lib/ServerDescriptor: String getNickname() */
private java.lang.String nickname;
/** metrics-lib/ServerDescriptor: String getAddress() */
private java.lang.String address;
/** metrics-lib/ServerDescriptor: int getOrPort() */
private java.lang.Integer or_port;
/** metrics-lib/ServerDescriptor: int getSocksPort() */
private java.lang.Integer socks_port;
/** metrics-lib/ServerDescriptor: int getDirPort() */
private java.lang.Integer dir_port;
/** Creates a new Builder */
private Builder() {
super(trans.encoders.relay.Router.SCHEMA$);
}
/**
* Creates a Builder by copying an existing Builder.
* @param other The existing Builder to copy.
*/
private Builder(trans.encoders.relay.Router.Builder other) {
super(other);
if (isValidValue(fields()[0], other.nickname)) {
this.nickname = data().deepCopy(fields()[0].schema(), other.nickname);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.address)) {
this.address = data().deepCopy(fields()[1].schema(), other.address);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.or_port)) {
this.or_port = data().deepCopy(fields()[2].schema(), other.or_port);
fieldSetFlags()[2] = true;
}
if (isValidValue(fields()[3], other.socks_port)) {
this.socks_port = data().deepCopy(fields()[3].schema(), other.socks_port);
fieldSetFlags()[3] = true;
}
if (isValidValue(fields()[4], other.dir_port)) {
this.dir_port = data().deepCopy(fields()[4].schema(), other.dir_port);
fieldSetFlags()[4] = true;
}
}
/**
* Creates a Builder by copying an existing Router instance
* @param other The existing instance to copy.
*/
private Builder(trans.encoders.relay.Router other) {
super(trans.encoders.relay.Router.SCHEMA$);
if (isValidValue(fields()[0], other.nickname)) {
this.nickname = data().deepCopy(fields()[0].schema(), other.nickname);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.address)) {
this.address = data().deepCopy(fields()[1].schema(), other.address);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.or_port)) {
this.or_port = data().deepCopy(fields()[2].schema(), other.or_port);
fieldSetFlags()[2] = true;
}
if (isValidValue(fields()[3], other.socks_port)) {
this.socks_port = data().deepCopy(fields()[3].schema(), other.socks_port);
fieldSetFlags()[3] = true;
}
if (isValidValue(fields()[4], other.dir_port)) {
this.dir_port = data().deepCopy(fields()[4].schema(), other.dir_port);
fieldSetFlags()[4] = true;
}
}
/**
* Gets the value of the 'nickname' field.
* metrics-lib/ServerDescriptor: String getNickname()
* @return The value.
*/
public java.lang.String getNickname() {
return nickname;
}
/**
* Sets the value of the 'nickname' field.
* metrics-lib/ServerDescriptor: String getNickname()
* @param value The value of 'nickname'.
* @return This builder.
*/
public trans.encoders.relay.Router.Builder setNickname(java.lang.String value) {
validate(fields()[0], value);
this.nickname = value;
fieldSetFlags()[0] = true;
return this;
}
/**
* Checks whether the 'nickname' field has been set.
* metrics-lib/ServerDescriptor: String getNickname()
* @return True if the 'nickname' field has been set, false otherwise.
*/
public boolean hasNickname() {
return fieldSetFlags()[0];
}
/**
* Clears the value of the 'nickname' field.
* metrics-lib/ServerDescriptor: String getNickname()
* @return This builder.
*/
public trans.encoders.relay.Router.Builder clearNickname() {
nickname = null;
fieldSetFlags()[0] = false;
return this;
}
/**
* Gets the value of the 'address' field.
* metrics-lib/ServerDescriptor: String getAddress()
* @return The value.
*/
public java.lang.String getAddress() {
return address;
}
/**
* Sets the value of the 'address' field.
* metrics-lib/ServerDescriptor: String getAddress()
* @param value The value of 'address'.
* @return This builder.
*/
public trans.encoders.relay.Router.Builder setAddress(java.lang.String value) {
validate(fields()[1], value);
this.address = value;
fieldSetFlags()[1] = true;
return this;
}
/**
* Checks whether the 'address' field has been set.
* metrics-lib/ServerDescriptor: String getAddress()
* @return True if the 'address' field has been set, false otherwise.
*/
public boolean hasAddress() {
return fieldSetFlags()[1];
}
/**
* Clears the value of the 'address' field.
* metrics-lib/ServerDescriptor: String getAddress()
* @return This builder.
*/
public trans.encoders.relay.Router.Builder clearAddress() {
address = null;
fieldSetFlags()[1] = false;
return this;
}
/**
* Gets the value of the 'or_port' field.
* metrics-lib/ServerDescriptor: int getOrPort()
* @return The value.
*/
public java.lang.Integer getOrPort() {
return or_port;
}
/**
* Sets the value of the 'or_port' field.
* metrics-lib/ServerDescriptor: int getOrPort()
* @param value The value of 'or_port'.
* @return This builder.
*/
public trans.encoders.relay.Router.Builder setOrPort(java.lang.Integer value) {
validate(fields()[2], value);
this.or_port = value;
fieldSetFlags()[2] = true;
return this;
}
/**
* Checks whether the 'or_port' field has been set.
* metrics-lib/ServerDescriptor: int getOrPort()
* @return True if the 'or_port' field has been set, false otherwise.
*/
public boolean hasOrPort() {
return fieldSetFlags()[2];
}
/**
* Clears the value of the 'or_port' field.
* metrics-lib/ServerDescriptor: int getOrPort()
* @return This builder.
*/
public trans.encoders.relay.Router.Builder clearOrPort() {
or_port = null;
fieldSetFlags()[2] = false;
return this;
}
/**
* Gets the value of the 'socks_port' field.
* metrics-lib/ServerDescriptor: int getSocksPort()
* @return The value.
*/
public java.lang.Integer getSocksPort() {
return socks_port;
}
/**
* Sets the value of the 'socks_port' field.
* metrics-lib/ServerDescriptor: int getSocksPort()
* @param value The value of 'socks_port'.
* @return This builder.
*/
public trans.encoders.relay.Router.Builder setSocksPort(java.lang.Integer value) {
validate(fields()[3], value);
this.socks_port = value;
fieldSetFlags()[3] = true;
return this;
}
/**
* Checks whether the 'socks_port' field has been set.
* metrics-lib/ServerDescriptor: int getSocksPort()
* @return True if the 'socks_port' field has been set, false otherwise.
*/
public boolean hasSocksPort() {
return fieldSetFlags()[3];
}
/**
* Clears the value of the 'socks_port' field.
* metrics-lib/ServerDescriptor: int getSocksPort()
* @return This builder.
*/
public trans.encoders.relay.Router.Builder clearSocksPort() {
socks_port = null;
fieldSetFlags()[3] = false;
return this;
}
/**
* Gets the value of the 'dir_port' field.
* metrics-lib/ServerDescriptor: int getDirPort()
* @return The value.
*/
public java.lang.Integer getDirPort() {
return dir_port;
}
/**
* Sets the value of the 'dir_port' field.
* metrics-lib/ServerDescriptor: int getDirPort()
* @param value The value of 'dir_port'.
* @return This builder.
*/
public trans.encoders.relay.Router.Builder setDirPort(java.lang.Integer value) {
validate(fields()[4], value);
this.dir_port = value;
fieldSetFlags()[4] = true;
return this;
}
/**
* Checks whether the 'dir_port' field has been set.
* metrics-lib/ServerDescriptor: int getDirPort()
* @return True if the 'dir_port' field has been set, false otherwise.
*/
public boolean hasDirPort() {
return fieldSetFlags()[4];
}
/**
* Clears the value of the 'dir_port' field.
* metrics-lib/ServerDescriptor: int getDirPort()
* @return This builder.
*/
public trans.encoders.relay.Router.Builder clearDirPort() {
dir_port = null;
fieldSetFlags()[4] = false;
return this;
}
@Override
public Router build() {
try {
Router record = new Router();
record.nickname = fieldSetFlags()[0] ? this.nickname : (java.lang.String) defaultValue(fields()[0]);
record.address = fieldSetFlags()[1] ? this.address : (java.lang.String) defaultValue(fields()[1]);
record.or_port = fieldSetFlags()[2] ? this.or_port : (java.lang.Integer) defaultValue(fields()[2]);
record.socks_port = fieldSetFlags()[3] ? this.socks_port : (java.lang.Integer) defaultValue(fields()[3]);
record.dir_port = fieldSetFlags()[4] ? this.dir_port : (java.lang.Integer) defaultValue(fields()[4]);
return record;
} catch (Exception e) {
throw new org.apache.avro.AvroRuntimeException(e);
}
}
}
private static final org.apache.avro.io.DatumWriter
WRITER$ = new org.apache.avro.specific.SpecificDatumWriter(SCHEMA$);
@Override public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException {
WRITER$.write(this, org.apache.avro.specific.SpecificData.getEncoder(out));
}
private static final org.apache.avro.io.DatumReader
READER$ = new org.apache.avro.specific.SpecificDatumReader(SCHEMA$);
@Override public void readExternal(java.io.ObjectInput in)
throws java.io.IOException {
READER$.read(this, org.apache.avro.specific.SpecificData.getDecoder(in));
}
}
| [
"[email protected]"
]
| |
2905c9573dd37ef5e6df94d3729c34d24fd7b684 | b17e3e12a762270ed183ea8b3b815c5aff40dab9 | /BIMMixer/bimMixerXtext.ide/src/bimMixer/ide/BIMMixerAppIdeSetup.java | c2855e7ad826ad77543103103557047a215daddc | []
| no_license | pgil5/Proyectos-publicos-tfm | 8035488c11a9718cb8dcd5a3e22e07489706c34b | fe009c55ce1a8678da25e40aedb75699f41efadc | refs/heads/main | 2023-07-02T20:35:16.899278 | 2021-08-08T09:19:36 | 2021-08-08T09:19:36 | 392,998,359 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 568 | java | /*
* generated by Xtext 2.23.0
*/
package bimMixer.ide;
import bimMixer.BIMMixerAppRuntimeModule;
import bimMixer.BIMMixerAppStandaloneSetup;
import com.google.inject.Guice;
import com.google.inject.Injector;
import org.eclipse.xtext.util.Modules2;
/**
* Initialization support for running Xtext languages as language servers.
*/
public class BIMMixerAppIdeSetup extends BIMMixerAppStandaloneSetup {
@Override
public Injector createInjector() {
return Guice.createInjector(Modules2.mixin(new BIMMixerAppRuntimeModule(), new BIMMixerAppIdeModule()));
}
}
| [
"[email protected]"
]
| |
526d58230d74c8325d425ccbf9b5e8c5f9f748ae | ffbae6df1b2b50bd61aef04ef4942cfcd4be5802 | /src/main/java/com/fang/test/configurecenter/controller/UserController.java | 15fa38e168080f5694ef74479e16abe3eff0a213 | []
| no_license | EllaChen/configuration-center | 418e77a4019f88c67bc6370c638f546c55a18aa0 | c1d3181a6f94619e48dd184d7729b8185b1765fc | refs/heads/master | 2021-01-21T17:45:59.350600 | 2014-05-05T09:45:22 | 2014-05-05T09:45:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,108 | java | package com.fang.test.configurecenter.controller;
import java.util.Map;
import javax.inject.Inject;
import javax.inject.Named;
import javax.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Controller;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import com.fang.test.configurecenter.services.UserService;
import com.fang.test.configurecenter.vo.User;
@Controller
public class UserController extends BaseErrorHandlerController{
@Inject
@Named("userService")
private UserService userService;
@Inject
@Named("userAuthUtils")
private UserAuthUtils utils;
@RequestMapping(value={ "/register" }, method = RequestMethod.GET)
public String showRegisterPage() {
return "register";
}
@RequestMapping(value={ "/register" },params = "act=register", method = RequestMethod.POST)
public String register(User user, Map<String, Object> model,
BindingResult bindingResult, HttpServletRequest request) {
if (bindingResult.hasErrors()) {
return "register";
}
User cloneUser = (User) user.clone();
userService.createUser(user);
cloneUser.setId(user.getId());
utils.authenticateuser(cloneUser,request);
return "redirect:/home";
}
@RequestMapping(value={ "/editProfile" },method = RequestMethod.GET)
public String showEditProfilePage(User user, Map<String, Object> model,
BindingResult bindingResult, HttpServletRequest request) {
long id = utils.getUserId(request);
model.put("user", userService.getUserById(id));
return "editProfile";
}
@RequestMapping(value={ "/editProfile" },params = "act=edit", method = RequestMethod.POST)
public String editProfile(User user, Map<String, Object> model,
BindingResult bindingResult, HttpServletRequest request) {
if (bindingResult.hasErrors()) {
return "editProfile";
}
userService.updateUserProfile(user);
utils.updateUserInfo(user, request);
return "redirect:/home";
}
}
| [
"[email protected]"
]
| |
5ac5a58e609e64bba3366f9610c8956728270c47 | b0f88fc8f2322a0361e15b8dde27a89cee71ca00 | /app/src/main/java/com/jeanfernandez/android/bplayout/MyActivity.java | 75a1b6be8337bbbe98fc419b3f4d314f13c62c8a | []
| no_license | Jeferex/AndroidLoginWebService | a8628693d3ad12c3ec8029378b4561e6df150998 | e34dc66fe64088d475184897ac1f7fa5a78702e8 | refs/heads/master | 2021-01-10T20:47:56.421915 | 2014-08-05T04:34:40 | 2014-08-05T04:34:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,212 | java | package com.jeanfernandez.android.bplayout;
import android.app.Activity;
import android.app.ProgressDialog;
import android.os.AsyncTask;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.NameValuePair;
import org.apache.http.StatusLine;
import org.apache.http.client.HttpClient;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.message.BasicNameValuePair;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
public class MyActivity extends Activity {
String username = "";
String password = "";
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_my);
Button login = (Button) findViewById(R.id.loginButton);
login.setOnClickListener(new Button.OnClickListener(){
public void onClick(View v){
EditText usernameText = (EditText) findViewById(R.id.usernameText);
EditText passwordText = (EditText) findViewById(R.id.passwordText);
username = usernameText.getText().toString();
password = passwordText.getText().toString();
String url = "http://api.jeanfernandez.site50.net/acces.php";
new ReadJSONFeed(MyActivity.this).execute(url);
}
});
}
private class ReadJSONFeed extends AsyncTask<String, String, String> {
private ProgressDialog dialog;
public ReadJSONFeed(MyActivity activity) {
dialog = new ProgressDialog(activity);
}
@Override
protected void onPreExecute() {
dialog.setMessage("loading ...");
dialog.show();
}
@Override
protected String doInBackground(String... urls) {
StringBuilder builder = new StringBuilder();
try {
HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost(urls[0]);
List<NameValuePair> params = new ArrayList<NameValuePair>();
params.add(new BasicNameValuePair("usuario",username));
params.add(new BasicNameValuePair("password",password));
httppost.setEntity(new UrlEncodedFormEntity(params));
HttpResponse response = httpclient.execute(httppost);
StatusLine statusLine = response.getStatusLine();
int statusCode = statusLine.getStatusCode();
if (statusCode == 200) {
HttpEntity entity = response.getEntity();
InputStream content = entity.getContent();
BufferedReader reader = new BufferedReader(new InputStreamReader(content));
String line;
while ((line = reader.readLine()) != null) {
builder.append(line);
}
}
} catch (Exception e) {
e.printStackTrace();
}
return builder.toString();
}
protected void onPostExecute(String result) {
Integer status = 0;
String name = "";
try {
JSONArray jsonUsuario = new JSONArray(result);
for (int i = 0; i < jsonUsuario.length(); i++) {
JSONObject e = jsonUsuario.getJSONObject(i);
status = e.getInt("logstatus") ;
name = e.getString("username");
}
} catch (JSONException e) {
e.printStackTrace();
}
if (status == 1){
if (dialog.isShowing()) {
dialog.dismiss();
}
Toast.makeText(getApplicationContext(), "Welcome "+name, Toast.LENGTH_LONG).show();
}
else{
Toast.makeText(getApplicationContext(), "Username or password not valid", Toast.LENGTH_LONG).show();
}
}
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.my, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
}
}
| [
"[email protected]"
]
| |
2f06615c52c3797652d3fcff32399d28020544f6 | 6baf1fe00541560788e78de5244ae17a7a2b375a | /hollywood/com.oculus.alpenglow-EnterpriseServer/sources/com/fasterxml/jackson/databind/ser/std/StdArraySerializers$TypedPrimitiveArraySerializer.java | 60305795221faf70e9b645c4568b752a453a02ab | []
| no_license | phwd/quest-tracker | 286e605644fc05f00f4904e51f73d77444a78003 | 3d46fbb467ba11bee5827f7cae7dfeabeb1fd2ba | refs/heads/main | 2023-03-29T20:33:10.959529 | 2021-04-10T22:14:11 | 2021-04-10T22:14:11 | 357,185,040 | 4 | 2 | null | 2021-04-12T12:28:09 | 2021-04-12T12:28:08 | null | UTF-8 | Java | false | false | 694 | java | package com.fasterxml.jackson.databind.ser.std;
import X.AbstractC02580aL;
import X.AnonymousClass0o6;
public abstract class StdArraySerializers$TypedPrimitiveArraySerializer<T> extends ArraySerializerBase<T> {
public final AnonymousClass0o6 A00;
public StdArraySerializers$TypedPrimitiveArraySerializer(StdArraySerializers$TypedPrimitiveArraySerializer<T> stdArraySerializers$TypedPrimitiveArraySerializer, AbstractC02580aL r2, AnonymousClass0o6 r3) {
super(stdArraySerializers$TypedPrimitiveArraySerializer, r2);
this.A00 = r3;
}
public StdArraySerializers$TypedPrimitiveArraySerializer(Class<T> cls) {
super(cls);
this.A00 = null;
}
}
| [
"[email protected]"
]
| |
f046fa57923d844e1b0877617358fef1503da164 | fa5a4d4fe4ff6643e4c0cea43914851419c35a23 | /src/test/java/com/ecommercewebform/testcases/TC_02.java | 806a1756aa46d5952d20235cb10dd9dde3d74ae1 | []
| no_license | atif-dev/EcommerceUserRegistrationForm-Automation- | d6612952176c825e2889a5fcb818e66297c065f6 | 317faacd406fdf1472f96234f80464d055eb23b8 | refs/heads/master | 2023-05-01T21:36:24.426324 | 2021-05-25T14:45:57 | 2021-05-25T14:45:57 | 370,720,793 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,469 | java | package com.ecommercewebform.testcases;
import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.Assert;
import org.testng.annotations.AfterClass;
import org.testng.annotations.Test;
import com.ecommercewebform.pageobjects.TestCase1;
import com.ecommercewebform.pageobjects.TestCase2;
import io.github.bonigarcia.wdm.WebDriverManager;
public class TC_02 {
public static Logger logger;
WebDriver driver;
@Test
public void TC2() throws InterruptedException {
logger = Logger.getLogger("webForm");
PropertyConfigurator.configure("Log4j.properties");
WebDriverManager.chromedriver().setup();
driver = new ChromeDriver();
driver.get("http://automationpractice.com/index.php");
TestCase1 tc2 = new TestCase1(driver);
tc2.clickLinkSignIn();
tc2.InputEmailAddress("123.gmail.com");
tc2.clickRegister();
Thread.sleep(3000);//error message take time to appear
TestCase2 tc2b = new TestCase2(driver);
String text = tc2b.getInvalidEmailText();
String actualError = "Invalid email address.";
if(actualError.equals(text)) {
logger.info("Error message is displayed. Test case is validated");
Assert.assertTrue(true);
}else {
logger.info("Test case is not validated");
Assert.assertTrue(false);
}
}
@AfterClass
public void tearDown()
{
driver.quit();
}
}
| [
"[email protected]"
]
| |
16947a6824d6baa4c07aa84ab0ec243f8a3c740d | fa91450deb625cda070e82d5c31770be5ca1dec6 | /Diff-Raw-Data/14/14_3e48a95ced9a19e0f11f486a6687580522d36a69/ViewComponent/14_3e48a95ced9a19e0f11f486a6687580522d36a69_ViewComponent_t.java | e7e1d637e48c59f928ae5b6141fe241384818f2f | []
| no_license | zhongxingyu/Seer | 48e7e5197624d7afa94d23f849f8ea2075bcaec0 | c11a3109fdfca9be337e509ecb2c085b60076213 | refs/heads/master | 2023-07-06T12:48:55.516692 | 2023-06-22T07:55:56 | 2023-06-22T07:55:56 | 259,613,157 | 6 | 2 | null | 2023-06-22T07:55:57 | 2020-04-28T11:07:49 | null | UTF-8 | Java | false | false | 6,990 | java | package uk.ac.brighton.vmg.cviz.ui;
/**
* The ViewComponent of the ConceptViz plugin.
*
* Copyright (c) 2013 The ConceptViz authors (see the file AUTHORS).
* See the file LICENSE for copying permission.
*/
import icircles.concreteDiagram.ConcreteDiagram;
import icircles.concreteDiagram.DiagramCreator;
import icircles.gui.CirclesPanel;
import icircles.input.AbstractDiagram;
import icircles.input.Spider;
import icircles.input.Zone;
import icircles.util.CannotDrawException;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import javax.swing.JCheckBox;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JProgressBar;
import javax.swing.JTextField;
import javax.swing.SwingUtilities;
import org.apache.log4j.Logger;
import org.protege.editor.owl.ui.view.cls.AbstractOWLClassViewComponent;
import org.semanticweb.owlapi.model.OWLClass;
import uk.ac.brighton.vmg.cviz.syntax.AbstractDiagramBuilder;
public class ViewComponent extends AbstractOWLClassViewComponent {
private static final long serialVersionUID = -4515710047558710080L;
public static final int CVIZ_VERSION_MAJOR = 0;
public static final int CVIZ_VERSION_MINOR = 1;
public static final String CVIZ_VERSION_STATUS = "alpha";
private JPanel cdPanel;
private JComboBox<String> depthPicker;
private boolean showInd = false;
private OWLClass theSelectedClass;
private Thread buildRunner;
private int DIAG_SIZE;
private final double DIAG_SCALE = 0.9;
private int hierarchyDepth = 2;
private AbstractDiagramBuilder builder;
private static final Logger log = Logger.getLogger(ViewComponent.class);
private static final int IC_VERSION = 1;
/**
* Not used.
*/
@Override
public void disposeView() {
//
}
/**
* The Protege API callback when the view is first loaded. Sets up the GUI
* but doesn't start the process of drawing anything.
*/
@Override
public void initialiseClassView() throws Exception {
getView().setSyncronizing(true);
setLayout(new BorderLayout(6, 6));
JPanel topPanel = new JPanel();
JLabel depthLabel = new JLabel("Depth:");
String[] depths = { "1", "2", "3", "4", "5" };
depthPicker = new JComboBox<String>(depths);
depthPicker.setSelectedIndex(1);
depthPicker.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
hierarchyDepth = Integer.parseInt((String) depthPicker
.getSelectedItem());
if (theSelectedClass != null)
updateView(theSelectedClass);
}
});
topPanel.add(depthLabel);
topPanel.add(depthPicker);
JCheckBox showIndCB = new JCheckBox("Show individuals:");
showIndCB.setSelected(showInd);
showIndCB.addItemListener(new ItemListener() {
public void itemStateChanged(ItemEvent e) {
showInd = (e.getStateChange() == ItemEvent.SELECTED);
log.info("drawing with spiders: " + showInd);
if (theSelectedClass != null)
updateView(theSelectedClass);
}
});
topPanel.add(showIndCB);
add(topPanel, BorderLayout.NORTH);
cdPanel = new JPanel();
cdPanel.setBackground(Color.WHITE);
add(cdPanel, BorderLayout.CENTER);
log.debug("CD View Component initialized");
}
/**
* Callback when user selects a class in a hierarchy viewer pane. Constructs
* the diagram with the selectedClass as its top-level element using an
* AbstractDiagramBuilder.
*/
@Override
protected OWLClass updateView(OWLClass selectedClass) {
// DIAG_SIZE = Math.max(getHeight(), getWidth()) - 100;
theSelectedClass = selectedClass;
DIAG_SIZE = getHeight() - 50;
if (selectedClass != null) {
displayInfProgress();
if (builder != null)
builder.notifyStop();
builder = new AbstractDiagramBuilder(this, selectedClass,
getOWLModelManager(), hierarchyDepth, showInd);
buildRunner = new Thread(builder);
buildRunner.start();
}
return selectedClass;
}
public void diagramReady(String[] cs, Zone[] zs, Zone[] szs, Spider[] sps) {
Spider[] theSps = (showInd) ? sps : new Spider[] {};
debug("Curves", cs);
debug("Zones", zs);
debug("Shaded zones", szs);
debug("Individuals", sps);
drawCD(cs, zs, szs, theSps);
}
/**
* Pass the generated abstract description to iCircles and display the
* result in a JPanel.
*
* @param c
* the abstract curves
* @param z
* the abstract zones
* @param sz
* the abstract shaded zones
*/
private void drawCD(final String[] c, final Zone[] z, final Zone[] sz,
final Spider[] sps) {
new Thread(new Runnable() {
public void run() {
AbstractDiagram ad = new AbstractDiagram(IC_VERSION, c, z, sz, sps);
DiagramCreator dc = new DiagramCreator(ad.toAbstractDescription());
try {
final ConcreteDiagram cd = dc.createDiagram(DIAG_SIZE);
SwingUtilities.invokeLater(new Runnable() {
public void run() {
displayDiagram(cd);
}
});
} catch (final CannotDrawException e) {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
displayMessage(e.message);
}
});
}
}
}).start();
}
/**
* Callback for the runnable that creates the concrete diagram by calling
* iCircles.
*
* @param cd
*/
private void displayDiagram(ConcreteDiagram cd) {
Font font = new Font("Helvetica", Font.BOLD | Font.ITALIC, 16);
String failureMessage = null;
cd.setFont(font);
CirclesPanel cp = new CirclesPanel("", failureMessage, cd, true);// do
// use
// colours
cp.setScaleFactor(DIAG_SCALE);
cdPanel.removeAll();
cdPanel.add(cp);
cdPanel.validate();
}
/**
* Display an error message or other warning to the user in the main panel.
*
* @param message
* the message to display
*/
public void displayMessage(String message) {
JTextField tf = new JTextField(message);
cdPanel.removeAll();
cdPanel.setBackground(Color.WHITE);
cdPanel.add(tf, BorderLayout.CENTER);
cdPanel.revalidate();
cdPanel.repaint();
}
/**
* Display a progress bar and message while the abstract diagram builder is doing its work.
*/
private void displayInfProgress() {
cdPanel.removeAll();
JTextField tf = new JTextField("Building diagram...");
JProgressBar pBar = new JProgressBar();
pBar.setIndeterminate(true);
cdPanel.setBackground(Color.WHITE);
cdPanel.add(tf, BorderLayout.NORTH);
cdPanel.add(pBar, BorderLayout.CENTER);
cdPanel.revalidate();
cdPanel.repaint();
}
private <T> void debug(String name, Object[] xs) {
log.info(":::::::::: " + name + " ::::::::::");
for (Object x : xs)
log.info(x);
}
}
| [
"[email protected]"
]
| |
e8532930586c1a2ff8ed29f9c3efa0c894c7c52c | 1791ce7f194afd1330fd3a176916d2e92320a9d7 | /library-domain/src/main/java/xyz/willferguson/library/domain/exceptions/NoSuchPersonException.java | bd5d6ad42482df0cdb626074e132553da55da5ec | []
| no_license | willferguson/clean-library | 71f07dd966516e1c884547e4ca777ddf02b43e9b | 17644840f4a5d9372871e0cab3a22b668658084a | refs/heads/master | 2020-04-12T14:17:29.059808 | 2019-02-10T14:04:55 | 2019-02-10T14:04:55 | 162,547,827 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 439 | java | package xyz.willferguson.library.domain.exceptions;
public class NoSuchPersonException extends Exception {
public NoSuchPersonException() {
super();
}
public NoSuchPersonException(String message) {
super(message);
}
public NoSuchPersonException(String message, Throwable cause) {
super(message, cause);
}
public NoSuchPersonException(Throwable cause) {
super(cause);
}
}
| [
"[email protected]"
]
| |
b583cdefd03471e50d5546b0156bc6dfd0a1d14d | 0bfec2fc1283065dc2f88b9942c47077122f022c | /old-cc-blog/src/main/java/cn/chairc/blog/controller/IndexController.java | 99ac3f87d805efe0c5204908418f6a6d8a4a5806 | [
"Apache-2.0"
]
| permissive | chairc/cc-blog-springboot | 649950f2727306485e7682759bff9125783a27dc | a6306982994c96530f13928d98e437f7047b3d64 | refs/heads/master | 2023-07-07T09:23:52.986221 | 2023-06-29T06:32:34 | 2023-06-29T06:32:34 | 245,840,111 | 5 | 0 | Apache-2.0 | 2022-11-16T02:18:19 | 2020-03-08T15:34:38 | Java | UTF-8 | Java | false | false | 2,227 | java | package cn.chairc.blog.controller;
import cn.chairc.blog.model.Entertainment;
import cn.chairc.blog.model.FriendLink;
import cn.chairc.blog.model.Message;
import cn.chairc.blog.service.ArticleService;
import cn.chairc.blog.service.EntertainmentService;
import cn.chairc.blog.service.FriendLinkService;
import cn.chairc.blog.service.MessageService;
import cn.chairc.blog.model.Article;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import java.util.List;
@Controller
public class IndexController {
@Autowired
private ArticleService articleService;
@Autowired
private MessageService messageService;
@Autowired
private FriendLinkService friendLinkService;
@Autowired
private EntertainmentService entertainmentService;
/**
* 主页显示
*
* @return mav
*/
@RequestMapping("/")
public ModelAndView showIndexPage() {
ModelAndView mav = new ModelAndView("index");
List<Article> article = articleService.getArticleAllToIndex();
List<Message> message = messageService.getMessageAllToIndex();
List<Message> messageWeight = messageService.getMessageAllToIndexByWeight();
List<FriendLink> friendLinkList = friendLinkService.getFriendLinkAllToIndex();
List<Entertainment> entertainmentList = entertainmentService.getEntertainmentAllToIndex();
mav.addObject("article", article);
mav.addObject("message", message);
mav.addObject("message_weight", messageWeight);
mav.addObject("friendLink",friendLinkList);
mav.addObject("entertainment",entertainmentList);
return mav;
}
/**
* 随机跳转页面
*
* @return randomPage
*/
@RequestMapping("/randomJump")
public String randomJumpPage() {
String[] randomPages = new String[]{"article/1", "message/1", "friendLink/1"};
String randomPage = "";
int randomNum = (int) (Math.random() * 3);
randomPage = "redirect:/" + randomPages[randomNum];
return randomPage;
}
}
| [
"[email protected]"
]
| |
30b5a074303fdb57cbd826750e5dc5cecef22ad2 | 751d00ab9bf3019a605d4920cb28d8d3da4a5ee9 | /02/commons-cli4/mutants/major/55/org/apache/commons/cli/Parser.java | 79b0ffa76e560077b6c11522e62f089f1c137dcb | [
"Apache-2.0"
]
| permissive | easy-software-ufal/nimrod-hunor-subjects | 90c9795326c735009f5cc83795f4f3a50c38e54b | f910a854157f0357565f6148e65866e28083f987 | refs/heads/main | 2023-04-01T07:33:11.883923 | 2021-04-03T18:52:24 | 2021-04-03T18:52:24 | 333,410,922 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 12,873 | java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.cli;
import java.util.Arrays;
import java.util.Enumeration;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;
import java.util.Properties;
/**
* <p><code>Parser</code> creates {@link CommandLine}s.</p>
*
* @author John Keyes (john at integralsource.com)
* @see Parser
* @version $Revision$
*/
public abstract class Parser implements CommandLineParser {
/** commandline instance */
private CommandLine cmd;
/** current Options */
private Options options;
/** list of required options strings */
private List requiredOptions;
/**
* <p>Subclasses must implement this method to reduce
* the <code>arguments</code> that have been passed to the parse
* method.</p>
*
* @param opts The Options to parse the arguments by.
* @param arguments The arguments that have to be flattened.
* @param stopAtNonOption specifies whether to stop
* flattening when a non option has been encountered
* @return a String array of the flattened arguments
*/
protected abstract String[] flatten(Options opts, String[] arguments,
boolean stopAtNonOption);
/**
* <p>Parses the specified <code>arguments</code>
* based on the specifed {@link Options}.</p>
*
* @param options the <code>Options</code>
* @param arguments the <code>arguments</code>
* @return the <code>CommandLine</code>
* @throws ParseException if an error occurs when parsing the
* arguments.
*/
public CommandLine parse(Options options, String[] arguments)
throws ParseException
{
return parse(options, arguments, null, false);
}
/**
* Parse the arguments according to the specified options and
* properties.
*
* @param options the specified Options
* @param arguments the command line arguments
* @param properties command line option name-value pairs
* @return the list of atomic option and value tokens
*
* @throws ParseException if there are any problems encountered
* while parsing the command line tokens.
*/
public CommandLine parse(Options options, String[] arguments,
Properties properties)
throws ParseException
{
return parse(options, arguments, properties, false);
}
/**
* <p>Parses the specified <code>arguments</code>
* based on the specifed {@link Options}.</p>
*
* @param options the <code>Options</code>
* @param arguments the <code>arguments</code>
* @param stopAtNonOption specifies whether to stop
* interpreting the arguments when a non option has
* been encountered and to add them to the CommandLines
* args list.
*
* @return the <code>CommandLine</code>
* @throws ParseException if an error occurs when parsing the
* arguments.
*/
public CommandLine parse(Options options, String[] arguments,
boolean stopAtNonOption)
throws ParseException
{
return parse(options, arguments, null, stopAtNonOption);
}
/**
* Parse the arguments according to the specified options and
* properties.
*
* @param options the specified Options
* @param arguments the command line arguments
* @param properties command line option name-value pairs
* @param stopAtNonOption stop parsing the arguments when the first
* non option is encountered.
*
* @return the list of atomic option and value tokens
*
* @throws ParseException if there are any problems encountered
* while parsing the command line tokens.
*/
public CommandLine parse(Options options, String[] arguments,
Properties properties, boolean stopAtNonOption)
throws ParseException
{
// initialise members
this.options = options;
// clear out the data in options in case it's been used before (CLI-71)
for (Iterator it = options.helpOptions().iterator(); it.hasNext();) {
Option opt = (Option) it.next();
opt.clearValues();
}
requiredOptions = options.getRequiredOptions();
cmd = new CommandLine();
boolean eatTheRest = false;
if (arguments == null)
{
arguments = new String[0];
}
List tokenList = Arrays.asList(flatten(this.options,
arguments,
stopAtNonOption));
ListIterator iterator = tokenList.listIterator();
// process each flattened token
while (iterator.hasNext())
{
String t = (String) iterator.next();
// the value is the double-dash
if ("--".equals(t))
{
eatTheRest = true;
}
// the value is a single dash
else if ("-".equals(t))
{
if (stopAtNonOption)
{
eatTheRest = true;
}
else
{
cmd.addArg(t);
}
}
// the value is an option
else if (t.startsWith("-"))
{
if (stopAtNonOption && !options.hasOption(t))
{
eatTheRest = true;
cmd.addArg(t);
}
else
{
processOption(t, iterator);
}
}
// the value is an argument
else
{
cmd.addArg(t);
if (stopAtNonOption)
{
eatTheRest = true;
}
}
// eat the remaining tokens
if (eatTheRest)
{
while (iterator.hasNext())
{
String str = (String) iterator.next();
// ensure only one double-dash is added
if (!"--".equals(str))
{
cmd.addArg(str);
}
}
}
}
processProperties(properties);
checkRequiredOptions();
return cmd;
}
/**
* <p>Sets the values of Options using the values in
* <code>properties</code>.</p>
*
* @param properties The value properties to be processed.
*/
private void processProperties(Properties properties)
{
if (properties == null)
{
return;
}
for (Enumeration e = null; e.hasMoreElements();)
{
String option = e.nextElement().toString();
if (!cmd.hasOption(option))
{
Option opt = options.getOption(option);
// get the value from the properties instance
String value = properties.getProperty(option);
if (opt.hasArg())
{
if ((opt.getValues() == null)
|| (opt.getValues().length == 0))
{
try
{
opt.addValue(value);
}
catch (RuntimeException exp)
{
// if we cannot add the value don't worry about it
}
}
}
else if (!("yes".equalsIgnoreCase(value)
|| "true".equalsIgnoreCase(value)
|| "1".equalsIgnoreCase(value)))
{
// if the value is not yes, true or 1 then don't add the
// option to the CommandLine
break;
}
cmd.addOption(opt);
}
}
}
/**
* <p>Throws a {@link MissingOptionException} if all of the
* required options are no present.</p>
*
* @throws MissingOptionException if any of the required Options
* are not present.
*/
private void checkRequiredOptions()
throws MissingOptionException
{
// if there are required options that have not been
// processsed
if (requiredOptions.size() > 0)
{
Iterator iter = requiredOptions.iterator();
StringBuffer buff = new StringBuffer("Missing required option");
buff.append(requiredOptions.size() == 1 ? "" : "s");
buff.append(": ");
// loop through the required options
while (iter.hasNext())
{
buff.append(iter.next());
}
throw new MissingOptionException(buff.toString());
}
}
/**
* <p>Process the argument values for the specified Option
* <code>opt</code> using the values retrieved from the
* specified iterator <code>iter</code>.
*
* @param opt The current Option
* @param iter The iterator over the flattened command line
* Options.
*
* @throws ParseException if an argument value is required
* and it is has not been found.
*/
public void processArgs(Option opt, ListIterator iter)
throws ParseException
{
// loop until an option is found
while (iter.hasNext())
{
String str = (String) iter.next();
// found an Option, not an argument
if (options.hasOption(str) && str.startsWith("-"))
{
iter.previous();
break;
}
// found a value
try
{
opt.addValue( Util.stripLeadingAndTrailingQuotes(str) );
}
catch (RuntimeException exp)
{
iter.previous();
break;
}
}
if ((opt.getValues() == null) && !opt.hasOptionalArg())
{
throw new MissingArgumentException("Missing argument for option:"
+ opt.getKey());
}
}
/**
* <p>Process the Option specified by <code>arg</code>
* using the values retrieved from the specfied iterator
* <code>iter</code>.
*
* @param arg The String value representing an Option
* @param iter The iterator over the flattened command
* line arguments.
*
* @throws ParseException if <code>arg</code> does not
* represent an Option
*/
private void processOption(String arg, ListIterator iter)
throws ParseException
{
boolean hasOption = options.hasOption(arg);
// if there is no option throw an UnrecognisedOptionException
if (!hasOption)
{
throw new UnrecognizedOptionException("Unrecognized option: "
+ arg);
}
// get the option represented by arg
final Option opt = options.getOption(arg);
// if the option is a required option remove the option from
// the requiredOptions list
if (opt.isRequired())
{
requiredOptions.remove(opt.getKey());
}
// if the option is in an OptionGroup make that option the selected
// option of the group
if (options.getOptionGroup(opt) != null)
{
OptionGroup group = options.getOptionGroup(opt);
if (group.isRequired())
{
requiredOptions.remove(group);
}
group.setSelected(opt);
}
// if the option takes an argument value
if (opt.hasArg())
{
processArgs(opt, iter);
}
// set the option on the command line
cmd.addOption(opt);
}
}
| [
"[email protected]"
]
| |
bb5b4cd0f06af0db48e6a53b09b6285ca888e1ee | a9330e4017dac2568a5e950d2c6096d0f7cc3268 | /gdbservice/src/main/java/com/king/service/gdb/game/dao/BattleDao.java | ba9993349b84822f70bb981138f434494b63216c | []
| no_license | JasonKing0329/Gdb | 3714247181a944c13f7ca0bd0977cf685daf5f0b | 49324b68e5da3baf307ed2f3c6805983b644dce7 | refs/heads/master | 2021-07-17T13:36:38.717856 | 2018-08-17T06:35:04 | 2018-08-17T06:35:04 | 108,059,270 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 11,203 | java | package com.king.service.gdb.game.dao;
import com.king.service.gdb.game.Constants;
import com.king.service.gdb.game.bean.BattleBean;
import com.king.service.gdb.game.bean.BattleResultBean;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
/**
* 描述: 查询season:coach对应的battle list,需要按照round进行升序排序
* <p/>作者:景阳
* <p/>创建时间: 2017/2/8 11:25
*/
public class BattleDao {
public List<BattleBean> queryBattleList(int seasonId, int coachId, Connection connection) {
List<BattleBean> list = new ArrayList<>();
String sql = "SELECT * FROM " + Constants.TABLE_BATTLE + " WHERE _seasonId=" + seasonId
+ " AND _coachId=" + coachId + " ORDER BY _round ASC";
Statement stmt = null;
try {
stmt = connection.createStatement();
ResultSet set = stmt.executeQuery(sql);
while (set.next()) {
BattleBean bean = parseBattleBean(set);
list.add(bean);
}
} catch (SQLException e) {
e.printStackTrace();
} finally {
if (stmt != null) {
try {
stmt.close();
} catch (SQLException e) {
e.printStackTrace();
}
}
}
return list;
}
private BattleBean parseBattleBean(ResultSet set) throws SQLException {
BattleBean bean = new BattleBean();
bean.setId(set.getInt(1));
bean.setSeasonId(set.getInt(2));
bean.setCoachId(set.getInt(3));
bean.setTopPlayerId(set.getInt(4));
bean.setBottomPlayerId(set.getInt(5));
bean.setRound(set.getInt(6));
bean.setScene(set.getString(7));
bean.setScore(set.getString(8));
return bean;
}
public void inserBattleBean(BattleBean bean, Connection connection) {
String sql = "INSERT INTO " + Constants.TABLE_BATTLE +
"(_seasonId,_coachId,_tPlayerId,_bPlayerId,_round,_scene,_score) VALUES(?,?,?,?,?,?,?)";
PreparedStatement stmt = null;
try {
stmt = connection.prepareStatement(sql);
stmt.setInt(1, bean.getSeasonId());
stmt.setInt(2, bean.getCoachId());
stmt.setInt(3, bean.getTopPlayerId());
stmt.setInt(4, bean.getBottomPlayerId());
stmt.setInt(5, bean.getRound());
stmt.setString(6, bean.getScene());
stmt.setString(7, bean.getScore());
stmt.executeUpdate();
} catch (SQLException e) {
e.printStackTrace();
} catch (NumberFormatException e) {
e.printStackTrace();
} finally {
try {
if (stmt != null) {
stmt.close();
}
} catch (SQLException e) {
e.printStackTrace();
}
}
}
public void updateBattleBean(BattleBean bean, Connection connection) {
StringBuffer buffer = new StringBuffer("UPDATE ");
buffer.append(Constants.TABLE_BATTLE).append(" SET _seasonId=").append(bean.getSeasonId())
.append(",_coachId=").append(bean.getCoachId())
.append(", _tPlayerId=").append(bean.getTopPlayerId())
.append(", _bPlayerId=").append(bean.getBottomPlayerId())
.append(", _round=").append(bean.getRound())
.append(",_scene='").append(bean.getScene())
.append("',_score='").append(bean.getScore())
.append("' WHERE _id=").append(bean.getId());
Statement stmt = null;
try {
stmt = connection.createStatement();
stmt.executeUpdate(buffer.toString());
} catch (SQLException e) {
e.printStackTrace();
} catch (NumberFormatException e) {
e.printStackTrace();
} finally {
try {
if (stmt != null) {
stmt.close();
}
} catch (SQLException e) {
e.printStackTrace();
}
}
}
public void deleteBattle(int seasonId, Connection connection) {
String sql = "DELETE FROM " + Constants.TABLE_BATTLE + " WHERE _id=" + seasonId;
try {
Statement stmt = connection.createStatement();
stmt.executeUpdate(sql);
} catch (SQLException e) {
e.printStackTrace();
}
}
public int queryLastBattleSequence(Connection connection) {
String sql = "SELECT * FROM " + Constants.TABLE_SEQUENCE + " WHERE name='" + Constants.TABLE_BATTLE + "'";
Statement statement = null;
int id = 0;
try {
statement = connection.createStatement();
ResultSet set = statement.executeQuery(sql);
if (set.next()) {
id = set.getInt(2);
}
} catch (SQLException e) {
e.printStackTrace();
} finally {
try {
if (statement != null) {
statement.close();
}
} catch (SQLException e) {
e.printStackTrace();
}
}
return id;
}
public void deletePlayer(int playerId, int seasonId, Connection connection) {
String sql = "DELETE FROM " + Constants.TABLE_BATTLE + " WHERE _seasonId=" + seasonId + " AND (_tPlayerId=" + playerId + " OR _bPlayerId=" + playerId + ")";
try {
Statement stmt = connection.createStatement();
stmt.executeUpdate(sql);
} catch (SQLException e) {
e.printStackTrace();
}
}
public void deletePlayerResult(int playerId, int seasonId, Connection connection) {
String sql = "DELETE FROM " + Constants.TABLE_BATTLE_RESULT + " WHERE _seasonId=" + seasonId + " AND _playerId=" + playerId;
try {
Statement stmt = connection.createStatement();
stmt.executeUpdate(sql);
} catch (SQLException e) {
e.printStackTrace();
}
}
public void deleteSeason(int seasonId, Connection connection) {
String sql = "DELETE FROM " + Constants.TABLE_BATTLE + " WHERE _seasonId=" + seasonId;
try {
Statement stmt = connection.createStatement();
stmt.executeUpdate(sql);
} catch (SQLException e) {
e.printStackTrace();
}
}
public void deleteSeasonResult(int seasonId, Connection connection) {
String sql = "DELETE FROM " + Constants.TABLE_BATTLE_RESULT + " WHERE _seasonId=" + seasonId;
try {
Statement stmt = connection.createStatement();
stmt.executeUpdate(sql);
} catch (SQLException e) {
e.printStackTrace();
}
}
public boolean saveBattleResultBeans(List<BattleResultBean> datas, Connection connection) {
boolean result = true;
PreparedStatement stmt = null;
String sql = "INSERT INTO " + Constants.TABLE_BATTLE_RESULT +
"(_seasonId,_coachId,_rank,_score,_playerId,_type) VALUES(?,?,?,?,?,?)";
try {
for (BattleResultBean bean:datas) {
stmt = connection.prepareStatement(sql);
stmt.setInt(1, bean.getSeasonId());
stmt.setInt(2, bean.getCoachId());
stmt.setInt(3, bean.getRank());
stmt.setInt(4, bean.getScore());
stmt.setInt(5, bean.getPlayerId());
stmt.setInt(6, bean.getType());
stmt.executeUpdate();
stmt.close();
}
} catch (SQLException e) {
e.printStackTrace();
} catch (NumberFormatException e) {
e.printStackTrace();
} finally {
try {
if (stmt != null) {
stmt.close();
}
} catch (SQLException e) {
e.printStackTrace();
}
}
return result;
}
/**
* 检查battle result记录是否已生成过
* @param seasonId
* @param coachId
* @param connection
* @return
*/
public boolean isBattleResultExist(int seasonId, int coachId, Connection connection) {
String sql = "SELECT _id FROM " + Constants.TABLE_BATTLE_RESULT + " WHERE _seasonId=" + seasonId
+ " AND _coachId=" + coachId;
Statement stmt = null;
try {
stmt = connection.createStatement();
ResultSet set = stmt.executeQuery(sql);
while (set.next()) {
return true;
}
} catch (SQLException e) {
e.printStackTrace();
} finally {
if (stmt != null) {
try {
stmt.close();
} catch (SQLException e) {
e.printStackTrace();
}
}
}
return false;
}
public void deleteBattleResults(int seasonId, int coachId, Connection connection) {
String sql = "DELETE FROM " + Constants.TABLE_BATTLE_RESULT + " WHERE _seasonId=" + seasonId + " AND _coachId=" + coachId;
try {
Statement stmt = connection.createStatement();
stmt.executeUpdate(sql);
} catch (SQLException e) {
e.printStackTrace();
}
}
/**
* query battle result with rank <= rankMax
* @param seasonId
* @param coachId
* @param rankMax
* @param connection
* @return
*/
public List<BattleResultBean> queryBattleResultList(int seasonId, int coachId, int rankMax, int type, Connection connection) {
List<BattleResultBean> list = new ArrayList<>();
String sql = "SELECT * FROM " + Constants.TABLE_BATTLE_RESULT + " WHERE _seasonId=" + seasonId
+ " AND _coachId=" + coachId + " AND _rank<=" + rankMax + " AND _type=" + type;
Statement stmt = null;
try {
stmt = connection.createStatement();
ResultSet set = stmt.executeQuery(sql);
while (set.next()) {
BattleResultBean bean = parseBattleResultBean(set);
list.add(bean);
}
} catch (SQLException e) {
e.printStackTrace();
} finally {
if (stmt != null) {
try {
stmt.close();
} catch (SQLException e) {
e.printStackTrace();
}
}
}
return list;
}
private BattleResultBean parseBattleResultBean(ResultSet set) throws SQLException {
BattleResultBean bean = new BattleResultBean();
bean.setId(set.getInt(1));
bean.setSeasonId(set.getInt(2));
bean.setCoachId(set.getInt(3));
bean.setRank(set.getInt(4));
bean.setScore(set.getInt(5));
bean.setPlayerId(set.getInt(6));
bean.setType(set.getInt(7));
return bean;
}
}
| [
"[email protected]"
]
| |
10164e815734292628236e2ee1463ca5989f360c | 94dfe36168a46c40a84c5e98dfc454451ebdd92b | /Practice08/src/GuessingGame.java | 1f80c5468dc0965d479606b325f8338f2f4566ad | []
| no_license | nimedev/JSE7-Fundamentals | b8ed03dccd6935ab68f5e24d7d3eda3e5d6d8f77 | 647b4c9c024c92fd29a2358d66d21170e405b6c8 | refs/heads/master | 2021-01-22T22:49:54.398072 | 2015-03-12T14:30:59 | 2015-03-12T14:30:59 | 32,081,358 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 793 | java | /**
*
* @author niconator
*/
public class GuessingGame {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
int randomNum = 0;
int guess;
if (args.length == 0 || args[0] == "help") {
System.out.println("Error");
} else {
randomNum = ((int)(Math.random()*5)+1);
guess = Integer.parseInt(args[0]);
if (guess < 1 || guess > 5) {
System.out.println("Invalid argument");
} else {
if (guess == randomNum) {
System.out.println("Congratulations");
} else {
System.out.println("Sorry, try again");
}
}
}
}
}
| [
"[email protected]"
]
| |
fb30ef7b158622b49879c40c48cb32c9ebf8d1fe | c6886c738c3102a6de421c3f787357c8baa40ade | /app/src/main/java/com/platform/cdcs/fragment/stock/AddStockFragment.java | e2fd68abacc5edc8655eef692e5977b9417d34a7 | []
| no_license | jbbifzgt/smapp | f1f61ca152e9b1ebe5c2fb2e34a4e7ae1bce6331 | 4c598091af5542e690acb01a3ca4ea4910d69cd1 | refs/heads/master | 2023-05-22T22:32:45.738279 | 2021-06-12T05:37:40 | 2021-06-12T05:37:40 | 367,891,481 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,401 | java | package com.platform.cdcs.fragment.stock;
import android.text.InputType;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.google.gson.reflect.TypeToken;
import com.platform.cdcs.R;
import com.platform.cdcs.model.BaseObjResponse;
import com.platform.cdcs.model.CustomerItem;
import com.platform.cdcs.model.MockObj;
import com.platform.cdcs.tool.Constant;
import com.platform.cdcs.tool.ViewTool;
import com.trueway.app.uilib.fragment.BaseFragment;
import com.trueway.app.uilib.tool.Utils;
import com.zhy.http.okhttp.callback.StringCallback;
import java.lang.reflect.Type;
import java.util.HashMap;
import java.util.Map;
import okhttp3.Call;
/**
* Created by holytang on 2017/9/28.
*/
public class AddStockFragment extends BaseFragment {
private EditText nameET, codeET, addressET, bakET;
private ImageView setImg;
@Override
public void initView(View view) {
initLoadImg(view.findViewById(R.id.load));
setTitle("新增库位");
getToolBar().setNavigationIcon(R.mipmap.icon_back);
getToolBar().setNavigationOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
getActivity().finish();
}
});
LayoutInflater inflater = LayoutInflater.from(getContext());
LinearLayout rootView = (LinearLayout) view.findViewById(R.id.root);
nameET = ViewTool.createEditItem(inflater, "库位名称", rootView, true, false);
nameET.setHint("请输入库位名称");
codeET = ViewTool.createEditItem(inflater, "库位代码", rootView, true, false);
codeET.setHint("请输入库位代码");
addressET = ViewTool.createEditItem(inflater, "库位地址", rootView, true, false);
addressET.setHint("请输入库位地址");
setImg = ViewTool.createSwitchItem(inflater, rootView, "设为主库", true, false);
setImg.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
if (setImg.isSelected()) {
setImg.setSelected(false);
} else {
setImg.setSelected(true);
}
}
});
bakET = ViewTool.createEditItemNoLine(inflater, "备注", rootView, false, false);
bakET.setHint("请输入备注");
LinearLayout bottomView = (LinearLayout) view.findViewById(R.id.bottom);
bottomView.addView(inflater.inflate(R.layout.item_two_btn1, null));
bottomView.findViewById(R.id.button1).setVisibility(View.GONE);
TextView btn2 = (TextView) bottomView.findViewById(R.id.button2);
btn2.setText("提交");
btn2.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
post();
}
});
}
private void post() {
String name = nameET.getText().toString().trim();
if (TextUtils.isEmpty(name)) {
Utils.showToast(getContext(), "库位名称不能为空");
return;
}
showLoadImg();
Map<String, String> param = new HashMap<>();
param.put("updateType", "0");
param.put("whName", name);
param.put("whCode", codeET.getText().toString().trim());
param.put("whAddress", addressET.getText().toString().trim());
param.put("remark", bakET.getText().toString().trim());
param.put("isMainHouse", setImg.isSelected() ? "1" : "0");
getHttpClient().post().url(Constant.UPDATE_DIST_WHHOUSEINFO).params(Constant.makeParam(param)).build().execute(new StringCallback() {
@Override
public void onError(Call call, Exception e, int i) {
dismissLoadImg();
Utils.showToast(getActivity(), R.string.server_error);
}
@Override
public void onResponse(String s, int i) {
dismissLoadImg();
Type type = new TypeToken<BaseObjResponse<MockObj>>() {
}.getType();
}
});
}
@Override
public int layoutId() {
return R.layout.two_layout;
}
}
| [
"[email protected]"
]
| |
77b75b467719b9a1fff38ebacd8c1d45d8974266 | 86505462601eae6007bef6c9f0f4eeb9fcdd1e7b | /bin/modules/sap-product-configuration/sapproductconfigrules/src/de/hybris/platform/sap/productconfig/rules/jalo/ProductConfigSourceRule.java | 2685a3a81f0ca8afb600303811291fc79eb6b000 | []
| no_license | jp-developer0/hybrisTrail | 82165c5b91352332a3d471b3414faee47bdb6cee | a0208ffee7fee5b7f83dd982e372276492ae83d4 | refs/heads/master | 2020-12-03T19:53:58.652431 | 2020-01-02T18:02:34 | 2020-01-02T18:02:34 | 231,430,332 | 0 | 4 | null | 2020-08-05T22:46:23 | 2020-01-02T17:39:15 | null | UTF-8 | Java | false | false | 567 | java | /*
* Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the terms of the
* license agreement you entered into with SAP.
*/
package de.hybris.platform.sap.productconfig.rules.jalo;
/**
* CPQ specific rules source rule.
*/
public class ProductConfigSourceRule extends GeneratedProductConfigSourceRule
{
// no implementation, yet
}
| [
"[email protected]"
]
| |
b55c4d1eba449b0e00e8dd37cc7da3e36d352368 | fa91450deb625cda070e82d5c31770be5ca1dec6 | /Diff-Raw-Data/4/4_3f555716a8ca009f5b7925c60cabbfb5cbcf970c/AccessControlManager/4_3f555716a8ca009f5b7925c60cabbfb5cbcf970c_AccessControlManager_t.java | b57ff16e8d7adede3bfbfafa59b89861bb562dba | []
| no_license | zhongxingyu/Seer | 48e7e5197624d7afa94d23f849f8ea2075bcaec0 | c11a3109fdfca9be337e509ecb2c085b60076213 | refs/heads/master | 2023-07-06T12:48:55.516692 | 2023-06-22T07:55:56 | 2023-06-22T07:55:56 | 259,613,157 | 6 | 2 | null | 2023-06-22T07:55:57 | 2020-04-28T11:07:49 | null | UTF-8 | Java | false | false | 16,071 | java | package org.ccnx.ccn.profiles.security.access;
import java.io.IOException;
import java.security.InvalidKeyException;
import java.security.Key;
import java.security.NoSuchAlgorithmException;
import java.security.PrivateKey;
import java.security.SecureRandom;
import javax.crypto.NoSuchPaddingException;
import javax.crypto.spec.SecretKeySpec;
import org.bouncycastle.crypto.InvalidCipherTextException;
import org.ccnx.ccn.CCNHandle;
import org.ccnx.ccn.config.ConfigurationException;
import org.ccnx.ccn.config.SystemConfiguration;
import org.ccnx.ccn.impl.CCNFlowControl.SaveType;
import org.ccnx.ccn.impl.security.crypto.ContentKeys;
import org.ccnx.ccn.impl.security.crypto.KDFContentKeys;
import org.ccnx.ccn.impl.support.DataUtils;
import org.ccnx.ccn.impl.support.Log;
import org.ccnx.ccn.io.content.ContentDecodingException;
import org.ccnx.ccn.io.content.ContentEncodingException;
import org.ccnx.ccn.io.content.ContentGoneException;
import org.ccnx.ccn.io.content.ContentNotReadyException;
import org.ccnx.ccn.io.content.WrappedKey;
import org.ccnx.ccn.io.content.WrappedKey.WrappedKeyObject;
import org.ccnx.ccn.profiles.SegmentationProfile;
import org.ccnx.ccn.profiles.namespace.NamespaceManager;
import org.ccnx.ccn.profiles.namespace.NamespaceManager.Root.RootObject;
import org.ccnx.ccn.profiles.security.access.group.GroupAccessControlProfile;
import org.ccnx.ccn.profiles.security.access.group.NodeKey;
import org.ccnx.ccn.protocol.ContentName;
import org.ccnx.ccn.protocol.PublisherPublicKeyDigest;
public abstract class AccessControlManager {
/**
* Default data key length in bytes. No real reason this can't be bumped up to 32. It
* acts as the seed for a KDF, not an encryption key.
*/
public static final int DEFAULT_DATA_KEY_LENGTH = 16;
/**
* The keys we're wrapping are really seeds for a KDF, not keys in their own right.
* Eventually we'll use CMAC, so call them AES...
*/
public static final String DEFAULT_DATA_KEY_ALGORITHM = "AES";
public static final String DATA_KEY_LABEL = "Data Key";
protected ContentName _namespace;
protected KeyCache _keyCache;
protected CCNHandle _handle;
protected SecureRandom _random = new SecureRandom();
/**
* Factory method.
* Eventually split between a superclass AccessControlManager that handles many
* access schemes and a subclass GroupBasedAccessControlManager. For now, put
* a factory method here that makes you an ACM based on information in a stored
* root object. Have to trust that object as a function of who signed it.
*/
public static AccessControlManager createManager(RootObject policyInformation, CCNHandle handle) {
return null; // TODO fill in
}
/**
* Labels for deriving various types of keys.
* @return
*/
public String dataKeyLabel() {
return DATA_KEY_LABEL;
}
public CCNHandle handle() { return _handle; }
protected KeyCache keyCache() { return _keyCache; }
public boolean inProtectedNamespace(ContentName content) {
return _namespace.isPrefixOf(content);
}
public ContentName getNamespaceRoot() { return _namespace; }
/**
* Used by content reader to retrieve the keys necessary to decrypt this content.
* Delegates to specific subclasses to retrieve data key using retrieveWrappedDataKey,
* and then if key used to encrypt data key isn't
* in cache, delegates retrieving the unwrapping key
* to subclasses using getDataKeyUnwrappingKey. Provides a default implementation
* of retrieveDataKey.
* To turn the result of this into a key for decrypting content,
* follow the steps in the comments to #generateAndStoreDataKey(ContentName).
* @param dataNodeName
* @return
* @throws IOException
* @throws ContentDecodingException
* @throws InvalidCipherTextException
* @throws InvalidKeyException
*/
public Key getDataKey(ContentName dataNodeName) throws ContentDecodingException,
IOException, InvalidKeyException, InvalidCipherTextException {
// Let subclasses change data key storage conventions.
WrappedKeyObject wdko = retrieveWrappedDataKey(dataNodeName);
if (null == wdko) {
return null;
}
Key dataKey = null;
Key wrappingKey = null;
if (hasKey(wdko.wrappedKey().wrappingKeyIdentifier())) {
wrappingKey = getKey(wdko.wrappedKey().wrappingKeyIdentifier());
if (null == wrappingKey) {
Log.warning("Thought we had key {0} in cache, but cannot retrieve it! Data node: {1}.",
DataUtils.printHexBytes(wdko.wrappedKey().wrappingKeyIdentifier()),
dataNodeName);
// fall through, try subclass retrieval
} else {
Log.fine("Unwrapping key for data node {0} with cached key {1}.", dataNodeName,
DataUtils.printHexBytes(wdko.wrappedKey().wrappingKeyIdentifier()));
}
}
// Could simplify to remove cache-retry logic.
if (null == wrappingKey) {
// No dice. Try subclass-specific retrieval.
wrappingKey = getDataKeyWrappingKey(dataNodeName, wdko);
}
if (null != wrappingKey) {
dataKey = wdko.wrappedKey().unwrapKey(wrappingKey);
return dataKey;
}
return null;
}
protected abstract Key getDataKeyWrappingKey(ContentName dataNodeName, WrappedKeyObject wrappedDataKeyObject) throws
InvalidKeyException, ContentNotReadyException, ContentGoneException, ContentEncodingException,
ContentDecodingException, InvalidCipherTextException, IOException;
protected WrappedKeyObject retrieveWrappedDataKey(ContentName dataNodeName)
throws ContentDecodingException, ContentGoneException, ContentNotReadyException, IOException {
WrappedKeyObject wdko = new WrappedKeyObject(AccessControlProfile.dataKeyName(dataNodeName), handle());
if (null == wdko.wrappedKey()) {
Log.warning("Could not retrieve data key for node: " + dataNodeName);
return null;
}
return wdko;
}
/**
* Find the key to use to wrap a data key at this node. This requires
* the current effective node key, and wrapping this data key in it. If the
* current node key is dirty, this causes a new one to be generated.
* If data at the current node is public, this returns null. Does not check
* to see whether content is excluded from encryption (e.g. by being access
* control data).
* @param dataNodeName the node for which to find a data key wrapping key
* @return if null, the data is to be unencrypted. (Alteratively, could
* return a NodeKey that indicates public.)
* @param newRandomDataKey
* @throws AccessDeniedException if we don't have rights to retrieve key.
* @throws InvalidKeyException
* @throws ContentEncodingException
* @throws IOException
* @throws InvalidCipherTextException
*/
public abstract NodeKey getDataKeyWrappingKey(ContentName dataNodeName)
throws AccessDeniedException, InvalidKeyException,
ContentEncodingException, IOException, InvalidCipherTextException;
/**
* Wrap a data key in a given node key and store it.
* @param dataNodeName
* @param dataKey
* @param wrappingKey
* @throws InvalidKeyException
* @throws ContentEncodingException
* @throws IOException
*/
public void storeDataKey(ContentName dataNodeName, Key dataKey, NodeKey wrappingKey) throws InvalidKeyException, ContentEncodingException, IOException {
Log.info("Wrapping data key for node: " + dataNodeName + " with ewrappingKey for node: " +
wrappingKey.nodeName() + " derived from stored node key for node: " +
wrappingKey.storedNodeKeyName());
// TODO another case where we're wrapping in an effective node key but labeling it with
// the stored node key information. This will work except if we interpose an ACL in the meantime --
// we may not have the information necessary to figure out how to decrypt.
WrappedKey wrappedDataKey = WrappedKey.wrapKey(dataKey,
null, dataKeyLabel(),
wrappingKey.nodeKey());
wrappedDataKey.setWrappingKeyIdentifier(wrappingKey.storedNodeKeyID());
wrappedDataKey.setWrappingKeyName(wrappingKey.storedNodeKeyName());
storeKeyContent(AccessControlProfile.dataKeyName(dataNodeName), wrappedDataKey);
}
/**
* Generate a random data key.
* @throws IOException
* @throws ContentEncodingException
* @throws AccessDeniedException
* @throws InvalidKeyException
* @throws InvalidCipherTextException
**/
public Key generateDataKey(ContentName dataNodeName)
throws InvalidKeyException, AccessDeniedException,
ContentEncodingException, IOException, InvalidCipherTextException {
// Generate new random data key of appropriate length
byte [] dataKeyBytes = new byte[DEFAULT_DATA_KEY_LENGTH];
_random.nextBytes(dataKeyBytes);
Key dataKey = new SecretKeySpec(dataKeyBytes, DEFAULT_DATA_KEY_ALGORITHM);
return dataKey;
}
/**
* Actual output functions.
* @param dataNodeName -- the content node for whom this is the data key.
* @param wrappedDataKey
* @throws IOException
* @throws ContentEncodingException
*/
protected void storeKeyContent(ContentName dataNodeName, WrappedKey wrappedKey) throws ContentEncodingException, IOException {
WrappedKeyObject wko = new WrappedKeyObject(AccessControlProfile.dataKeyName(dataNodeName), wrappedKey, SaveType.REPOSITORY, handle());
wko.save();
}
/**
* Add a private key to our cache
* @param keyName
* @param publicKeyIdentifier
* @param pk
*/
public void addPrivateKey(ContentName keyName, byte [] publicKeyIdentifier, PrivateKey pk) {
_keyCache.addPrivateKey(keyName, publicKeyIdentifier, pk);
}
/**
* Add my private key to our cache
* @param publicKeyIdentifier
* @param pk
*/
public void addMyPrivateKey(byte [] publicKeyIdentifier, PrivateKey pk) {
_keyCache.addMyPrivateKey(publicKeyIdentifier, pk);
}
/**
* Add a key to our cache
* @param name
* @param key
*/
public void addKey(ContentName name, Key key) {
_keyCache.addKey(name, key);
}
public boolean hasKey(byte [] keyID) {
return _keyCache.containsKey(keyID);
}
protected Key getKey(byte [] desiredKeyIdentifier) {
return _keyCache.getKey(desiredKeyIdentifier);
}
/**
* Given the name of a content stream, this function verifies that access is allowed and returns the
* keys required to decrypt the stream.
* @param dataNodeName The name of the stream, including version component, but excluding
* segment component.
* @return Returns the keys ready to be used for en/decryption, or null if the content is not encrypted.
* @throws IOException
* @throws InvalidKeyException
* @throws InvalidCipherTextException
* @throws AccessDeniedException
*/
public ContentKeys getContentKeys(ContentName dataNodeName)
throws InvalidKeyException, InvalidCipherTextException, AccessDeniedException, IOException {
if (SegmentationProfile.isSegment(dataNodeName)) {
dataNodeName = SegmentationProfile.segmentRoot(dataNodeName);
}
Key dataKey = getDataKey(dataNodeName);
if (null == dataKey)
return null;
return getDefaultAlgorithmContentKeys(dataKey);
}
public static ContentKeys getDefaultAlgorithmContentKeys(Key dataKey) throws InvalidKeyException {
try {
// TODO - figure out where algorithm spec lives
return new KDFContentKeys(ContentKeys.DEFAULT_CIPHER_ALGORITHM, dataKey.getEncoded(), DATA_KEY_LABEL);
} catch (NoSuchAlgorithmException e) {
String err = "Unexpected NoSuchAlgorithmException for default algorithm we have already used!";
Log.severe(err);
throw new InvalidKeyException(err, e);
} catch (NoSuchPaddingException e) {
String err = "Unexpected NoSuchPaddingException for default algorithm we have already used!";
Log.severe(err);
throw new InvalidKeyException(err, e);
}
}
/**
* Called when a stream is opened for reading, to determine if the name is under a root ACL, and
* if so find or create an AccessControlManager, and get keys for access. Only called if
* content is encrypted.
* @param name name of the stream to be opened.
* @param library CCN Library instance to use for any network operations.
* @return If the stream is under access control then keys to decrypt the data are returned if it's
* encrypted. If the stream is not under access control (no Root ACL block can be found) then null is
* returned.
* @throws IOException if a problem happens getting keys.
*/
public static ContentKeys keysForInput(ContentName name, CCNHandle handle)
throws IOException {
AccessControlManager acm;
try {
acm = NamespaceManager.findACM(name, handle);
if (acm != null) {
Log.info("keysForInput: retrieving key for data node {0}", name);
return acm.getContentKeys(name);
}
} catch (ConfigurationException e) {
// TODO use 1.6 constuctors that take nested exceptions when can move off 1.5
throw new IOException(e.getClass().getName() + ": Opening stream for input: " + e.getMessage());
} catch (InvalidCipherTextException e) {
// TODO use 1.6 constuctors that take nested exceptions when can move off 1.5
throw new IOException(e.getClass().getName() + ": Opening stream for input: " + e.getMessage());
} catch (InvalidKeyException e) {
// TODO use 1.6 constuctors that take nested exceptions when can move off 1.5
throw new IOException(e.getClass().getName() + ": Opening stream for input: " + e.getMessage());
}
return null;
}
/**
* Get keys to encrypt content as its' written, if that content is to be protected.
* @param name
* @param publisher
* @param handle
* @return
* @throws IOException
*/
public static ContentKeys keysForOutput(ContentName name, PublisherPublicKeyDigest publisher, CCNHandle handle)
throws IOException {
if (SystemConfiguration.disableAccessControl()) {
Log.finest("Access control disabled, not searching for keys for {0}.", name);
return null;
}
AccessControlManager acm;
try {
acm = NamespaceManager.findACM(name, handle);
Log.info("keysForOutput: found an acm: " + acm);
if ((acm != null) && (acm.isProtectedContent(name, handle))) {
// First we need to figure out whether this content is public or unprotected...
Log.info("keysForOutput: found ACM, protected content, generating new data key for data node {0}", name);
NodeKey dataKeyWrappingKey = acm.getDataKeyWrappingKey(name);
if (null == dataKeyWrappingKey) {
// if content is public -- either null or a special value would work
return null; // no keys
}
Key dataKey = acm.generateDataKey(name);
acm.storeDataKey(name, dataKey, dataKeyWrappingKey);
return getDefaultAlgorithmContentKeys(dataKey);
}
} catch (ConfigurationException e) {
// TODO use 1.6 constuctors that take nested exceptions when can move off 1.5
throw new IOException(e.getClass().getName() + ": Opening stream for input: " + e.getMessage());
} catch (InvalidCipherTextException e) {
// TODO use 1.6 constuctors that take nested exceptions when can move off 1.5
throw new IOException(e.getClass().getName() + ": Opening stream for input: " + e.getMessage());
} catch (InvalidKeyException e) {
// TODO use 1.6 constuctors that take nested exceptions when can move off 1.5
throw new IOException(e.getClass().getName() + ": Opening stream for input: " + e.getMessage());
}
return null;
}
/**
* Allow AccessControlManagers to specify some content is not to be protected; for example,
* access control lists are not themselves encrypted.
* TODO: should headers be exempt from encryption?
*/
public boolean isProtectedContent(ContentName name, CCNHandle hande) {
if (!inProtectedNamespace(name)) {
return false;
}
if (AccessControlProfile.isAccessName(name)) {
// Don't encrypt the access control metadata itself, or we couldn't get the
// keys to decrypt the other stuff.
return false;
}
return true;
}
}
| [
"[email protected]"
]
| |
745a6b16a390e7b1d27e94f1fcdfea0d37d0d815 | 30963d72e2a08f15841cc8da655976813d3c2368 | /POMSeriesFrameWork/src/main/java/com/qa/opencart/utils/JavaScriptUtil.java | 510dff1870d3549f74e4e9d0e108ff0ba2c45bcb | []
| no_license | Kkuma125/UI-Automation-FrameWork | 770fe54d832ab9639732b6c80d9903b8ac747523 | 452ce25ffeda840a5f3e19ea4218860e0a7b3c77 | refs/heads/master | 2023-04-13T00:24:09.447485 | 2021-04-25T15:18:22 | 2021-04-25T15:18:22 | 345,561,898 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,731 | java | package com.qa.opencart.utils;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
public class JavaScriptUtil {
private WebDriver driver;
public JavaScriptUtil(WebDriver driver) {
this.driver = driver;
}
public void flash(WebElement element) {
JavascriptExecutor js = ((JavascriptExecutor) driver);
String bgcolor = element.getCssValue("backgroundColor");
for (int i = 0; i < 20; i++) {
changeColor("rgb(0,200,0)", element);// 1
changeColor(bgcolor, element);// 2
}
}
private void changeColor(String color, WebElement element) {
JavascriptExecutor js = ((JavascriptExecutor) driver);
js.executeScript("arguments[0].style.backgroundColor = '" + color + "'", element);
try {
Thread.sleep(20);
} catch (InterruptedException e) {
}
}
public void drawBorder(WebElement element) {
JavascriptExecutor js = ((JavascriptExecutor) driver);
js.executeScript("arguments[0].style.border='3px solid red'", element);
}
public void generateAlert(String message) {
JavascriptExecutor js = ((JavascriptExecutor) driver);
js.executeScript("alert('" + message + "')");
}
public void clickElementByJS(WebElement element) {
JavascriptExecutor js = ((JavascriptExecutor) driver);
js.executeScript("arguments[0].click();", element);
}
public void refreshBrowserByJS() {
JavascriptExecutor js = ((JavascriptExecutor) driver);
js.executeScript("history.go(0)");
}
public String getTitleByJS() {
JavascriptExecutor js = ((JavascriptExecutor) driver);
String title = js.executeScript("return document.title;").toString();
return title;
}
public String getPageInnerText() {
JavascriptExecutor js = ((JavascriptExecutor) driver);
String pageText = js.executeScript("return document.documentElement.innerText;").toString();
return pageText;
}
public void scrollPageDown() {
JavascriptExecutor js = ((JavascriptExecutor) driver);
js.executeScript("window.scrollTo(0,document.body.scrollHeight)");
}
public void scrollPageUp() {
JavascriptExecutor js = ((JavascriptExecutor) driver);
js.executeScript("window.scrollTo(document.body.scrollHeight,0)");
}
public void scrollIntoView(WebElement element) {
JavascriptExecutor js = ((JavascriptExecutor) driver);
js.executeScript("arguments[0].scrollIntoView(true);", element);
}
public String getBrowserInfo() {
JavascriptExecutor js = ((JavascriptExecutor) driver);
String uAgent = js.executeScript("return navigator.userAgent;").toString();
return uAgent;
}
public void sendKeysUsingJSWithId(String id, String value) {
JavascriptExecutor js = ((JavascriptExecutor) driver);
js.executeScript("document.getElementById('" + id + "').value='" + value + "'");
}
public void sendKeysUsingJSWithName(String name, String value) {
JavascriptExecutor js = ((JavascriptExecutor) driver);
js.executeScript("document.getElementByName('" + name + "').value='" + value + "'");
}
public void checkPageIsReady() {
JavascriptExecutor js = (JavascriptExecutor) driver;
// Initially bellow given if condition will check ready state of page.
if (js.executeScript("return document.readyState").toString().equals("complete")) {
System.out.println("Page Is loaded.");
return;
}
// This loop will rotate for 25 times to check If page Is ready after
// every 1 second.
// You can replace your value with 25 If you wants to Increase or
// decrease wait time.
for (int i = 0; i < 25; i++) {
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
}
// To check page ready state.
if (js.executeScript("return document.readyState").toString().equals("complete")) {
break;
}
}
}
}
| [
"[email protected]"
]
| |
d8aac90b1e1a13b862d846427b2420494efae693 | 08d2686030140b434b0e6f776db9c519a4f81b54 | /app/src/main/java/com/martin/citysearch/about/AboutActivity.java | a82bfaf7d6439e21691d5f520a132074fa0495c5 | []
| no_license | martinGele/CitySearch | ddddd319f48f7edb517b61c8594c67a324f918f3 | 63f77597de38d3b9a5b3374189efc506303b7b51 | refs/heads/master | 2020-06-17T22:44:41.761316 | 2019-07-11T19:59:30 | 2019-07-11T19:59:30 | 196,086,279 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,363 | java | package com.martin.citysearch.about;
import android.os.Bundle;
import android.widget.ProgressBar;
import android.widget.TextView;
import androidx.appcompat.app.AppCompatActivity;
import com.martin.citysearch.R;
public class AboutActivity extends AppCompatActivity implements About.View {
private TextView companyName;
private TextView companyAddress;
private TextView companyPostal;
private TextView companyCity;
private TextView aboutInfo;
private ProgressBar progressBar;
private android.view.View errorView;
private android.view.View infoContainer;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_about);
AboutPresenterImpl aboutPresenter = new AboutPresenterImpl(this, this);
companyName = findViewById(R.id.companyName);
companyAddress = findViewById(R.id.companyAdress);
companyPostal = findViewById(R.id.companypostal);
companyCity = findViewById(R.id.companyCity);
aboutInfo = findViewById(R.id.aboutInfo);
progressBar = findViewById(R.id.progressBar);
errorView = findViewById(R.id.errorView);
infoContainer = findViewById(R.id.infoContainer);
aboutPresenter.getAboutInfo();
}
@Override
public void setCompanyName(String companyNameString) {
infoContainer.setVisibility(android.view.View.VISIBLE);
companyName.setText(companyNameString);
}
@Override
public void setCompanyAddress(String companyAddressString) {
companyAddress.setText(companyAddressString);
}
@Override
public void setCompanyPostalCode(String postalCodeString) {
companyPostal.setText(postalCodeString);
}
@Override
public void setCompanyCity(String companyCityString) {
companyCity.setText(companyCityString);
}
@Override
public void setAboutInfo(String infoString) {
aboutInfo.setText(infoString);
}
@Override
public void showError() {
errorView.setVisibility(android.view.View.VISIBLE);
}
@Override
public void showProgress() {
progressBar.setVisibility(android.view.View.VISIBLE);
}
@Override
public void hideProgress() {
progressBar.setVisibility(android.view.View.GONE);
}
}
| [
"[email protected]"
]
| |
bb0cf2b906e91d1a6c4c42d450c8e8421d233839 | 161834d739f32e2c2118cd9e12b50a41705e3428 | /core/src/main/java/mx/lux/pos/model/Pago.java | e0aafe51c73d56e6809b262ba528017c7dd9fc07 | []
| no_license | rusperstinsky/puntov | 0a9bd8a3680c26df52d3f594257168e0632edbb6 | de0327ea14a4bb718f8dcc866ef67954b5c44acf | refs/heads/master | 2020-05-01T13:13:11.855124 | 2013-11-29T16:39:20 | 2013-11-29T16:39:20 | 14,803,303 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 9,746 | java | package mx.lux.pos.model;
import org.apache.commons.lang3.StringUtils;
import org.hibernate.annotations.NotFound;
import org.hibernate.annotations.NotFoundAction;
import org.hibernate.annotations.Type;
import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
@Entity
@Table( name = "pagos", schema = "public" )
public class Pago implements Serializable {
private static final long serialVersionUID = 3627038677660169174L;
@Id
@GeneratedValue( strategy = GenerationType.AUTO, generator = "pagos_id_pago_seq" )
@SequenceGenerator( name = "pagos_id_pago_seq", sequenceName = "pagos_id_pago_seq" )
@Column( name = "id_pago" )
private Integer id;
@Column( name = "id_factura" )
private String idFactura;
@Column( name = "id_banco", length = 18 )
private String idBanco;
@Column( name = "id_forma_pago", length = 2 )
private String idFormaPago;
@Column( name = "tipo_pago", length = 1 )
private String tipoPago;
@Column( name = "referencia_pago" )
private String referenciaPago;
@Type( type = "mx.lux.pos.model.MoneyAdapter" )
@Column( name = "monto_pago" )
private BigDecimal monto;
@Temporal( TemporalType.TIMESTAMP )
@Column( name = "fecha_pago", nullable = false )
private Date fecha;
@Column( name = "id_empleado", length = 13 )
private String idEmpleado;
@Column( name = "id_sync", length = 1, nullable = false )
private String idSync = "1";
@Temporal( TemporalType.TIMESTAMP )
@Column( name = "fecha_mod", nullable = false )
private Date fechaModificacion;
@Column( name = "id_mod", length = 13, nullable = false )
private String idMod = "0";
@Column( name = "id_sucursal", nullable = false )
private Integer idSucursal;
@Column( name = "id_recibo" )
private String idRecibo;
@Column( name = "parcialidad", length = 3 )
private String parcialidad;
@Column( name = "id_f_pago" )
private String idFPago;
@Column( name = "clave_p" )
private String clave;
@Column( name = "ref_clave" )
private String referenciaClave;
@Column( name = "id_banco_emi", length = 2 )
private String idBancoEmisor;
@Column( name = "id_term", length = 30 )
private String idTerminal;
@Column( name = "id_plan", length = 20 )
private String idPlan;
@Column( name = "confirm", nullable = false )
private boolean confirmado = true;
@Type( type = "mx.lux.pos.model.MoneyAdapter" )
@Column( name = "por_dev" )
private BigDecimal porDevolver;
@ManyToOne
@NotFound( action = NotFoundAction.IGNORE )
@JoinColumn( name = "id_factura", insertable = false, updatable = false )
private NotaVenta notaVenta;
@ManyToOne
@NotFound( action = NotFoundAction.IGNORE )
@JoinColumn( name = "id_forma_pago", insertable = false, updatable = false )
private FormaPago formaPago;
@ManyToOne
@NotFound( action = NotFoundAction.IGNORE )
@JoinColumn( name = "id_empleado", insertable = false, updatable = false )
private Empleado empleado;
@ManyToOne
@NotFound( action = NotFoundAction.IGNORE )
@JoinColumn( name = "id_sucursal", insertable = false, updatable = false )
private Sucursal sucursal;
@ManyToOne
@NotFound( action = NotFoundAction.IGNORE )
@JoinColumn( name = "id_f_pago", insertable = false, updatable = false )
private TipoPago eTipoPago;
@ManyToOne
@NotFound( action = NotFoundAction.IGNORE )
@JoinColumn( name = "id_term", insertable = false, updatable = false )
private Terminal terminal;
@ManyToOne
@NotFound( action = NotFoundAction.IGNORE )
@JoinColumn( name = "id_plan", insertable = false, updatable = false )
private Plan plan;
@PostLoad
private void onPostLoad() {
idFactura = StringUtils.trimToEmpty( idFactura );
idBanco = StringUtils.trimToEmpty( idBanco );
idFormaPago = StringUtils.trimToEmpty( idFormaPago );
referenciaPago = StringUtils.trimToEmpty( referenciaPago );
idEmpleado = StringUtils.trimToEmpty( idEmpleado );
idMod = StringUtils.trimToEmpty( idMod );
idRecibo = StringUtils.trimToEmpty( idRecibo );
parcialidad = StringUtils.trimToEmpty( parcialidad );
idFPago = StringUtils.trimToEmpty( idFPago );
clave = StringUtils.trimToEmpty( clave );
referenciaClave = StringUtils.trimToEmpty( referenciaClave );
idBancoEmisor = StringUtils.trimToEmpty( idBancoEmisor );
idTerminal = StringUtils.trimToEmpty( idTerminal );
idPlan = StringUtils.trimToEmpty( idPlan );
}
@PrePersist
private void onPrePersist() {
fecha = new Date();
fechaModificacion = new Date();
}
@PreUpdate
private void onPreUpdate() {
fechaModificacion = new Date();
}
public Integer getId() {
return id;
}
public void setId( Integer id ) {
this.id = id;
}
public String getIdFactura() {
return idFactura;
}
public void setIdFactura( String idFactura ) {
this.idFactura = idFactura;
}
public String getIdBanco() {
return idBanco;
}
public void setIdBanco( String idBanco ) {
this.idBanco = idBanco;
}
public String getIdFormaPago() {
return idFormaPago;
}
public void setIdFormaPago( String idFormaPago ) {
this.idFormaPago = idFormaPago;
}
public String getTipoPago() {
return tipoPago;
}
public void setTipoPago( String tipoPago ) {
this.tipoPago = tipoPago;
}
public String getReferenciaPago() {
return referenciaPago;
}
public void setReferenciaPago( String referenciaPago ) {
this.referenciaPago = referenciaPago;
}
public BigDecimal getMonto() {
return monto;
}
public void setMonto( BigDecimal monto ) {
this.monto = monto;
}
public Date getFecha() {
return fecha;
}
public void setFecha( Date fecha ) {
this.fecha = fecha;
}
public String getIdEmpleado() {
return idEmpleado;
}
public void setIdEmpleado( String idEmpleado ) {
this.idEmpleado = idEmpleado;
}
public String getIdSync() {
return idSync;
}
public void setIdSync( String idSync ) {
this.idSync = idSync;
}
public Date getFechaModificacion() {
return fechaModificacion;
}
public void setFechaModificacion( Date fechaModificacion ) {
this.fechaModificacion = fechaModificacion;
}
public String getIdMod() {
return idMod;
}
public void setIdMod( String idMod ) {
this.idMod = idMod;
}
public Integer getIdSucursal() {
return idSucursal;
}
public void setIdSucursal( Integer idSucursal ) {
this.idSucursal = idSucursal;
}
public String getIdRecibo() {
return idRecibo;
}
public void setIdRecibo( String idRecibo ) {
this.idRecibo = idRecibo;
}
public String getParcialidad() {
return parcialidad;
}
public void setParcialidad( String parcialidad ) {
this.parcialidad = parcialidad;
}
public String getIdFPago() {
return idFPago;
}
public void setIdFPago( String idFPago ) {
this.idFPago = idFPago;
}
public String getClave() {
return clave;
}
public void setClave( String clave ) {
this.clave = clave;
}
public String getReferenciaClave() {
return referenciaClave;
}
public void setReferenciaClave( String referenciaClave ) {
this.referenciaClave = referenciaClave;
}
public String getIdBancoEmisor() {
return idBancoEmisor;
}
public void setIdBancoEmisor( String idBancoEmisor ) {
this.idBancoEmisor = idBancoEmisor;
}
public String getIdTerminal() {
return idTerminal;
}
public void setIdTerminal( String idTerminal ) {
this.idTerminal = idTerminal;
}
public String getIdPlan() {
return idPlan;
}
public void setIdPlan( String idPlan ) {
this.idPlan = idPlan;
}
public boolean isConfirmado() {
return confirmado;
}
public void setConfirmado( boolean confirmado ) {
this.confirmado = confirmado;
}
public BigDecimal getPorDevolver() {
return porDevolver;
}
public void setPorDevolver( BigDecimal porDevolver ) {
this.porDevolver = porDevolver;
}
public NotaVenta getNotaVenta() {
return notaVenta;
}
public void setNotaVenta( NotaVenta notaVenta ) {
this.notaVenta = notaVenta;
}
public FormaPago getFormaPago() {
return formaPago;
}
public void setFormaPago( FormaPago formaPago ) {
this.formaPago = formaPago;
}
public Empleado getEmpleado() {
return empleado;
}
public void setEmpleado( Empleado empleado ) {
this.empleado = empleado;
}
public Sucursal getSucursal() {
return sucursal;
}
public void setSucursal( Sucursal sucursal ) {
this.sucursal = sucursal;
}
public TipoPago geteTipoPago() {
return eTipoPago;
}
public void seteTipoPago( TipoPago eTipoPago ) {
this.eTipoPago = eTipoPago;
}
public Terminal getTerminal() {
return terminal;
}
public void setTerminal( Terminal terminal ) {
this.terminal = terminal;
}
public Plan getPlan() {
return plan;
}
public void setPlan( Plan plan ) {
this.plan = plan;
}
}
| [
"[email protected]"
]
| |
046a70489d9f7b6012cc15409b9fdde086aa3d49 | 61f2437c0f18f89233c838ab482c73627f2aeba3 | /nhmfc-utils/src/nhmfc/filenet/xmlcusto/ModelTester.java | 73507ffc885a57aa6377928cfde0829e39db16c2 | []
| no_license | j-audrick/NhmfcScheduler | aefad81f97d42afbb7c4f74a11829544fe0adbec | 3eebc42b94a27fe03a5c860638093d672cbc7542 | refs/heads/master | 2020-03-23T05:01:20.960581 | 2018-08-22T02:55:38 | 2018-08-22T02:55:38 | 141,119,841 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 12,990 | java | package nhmfc.filenet.xmlcusto;
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.simpleframework.xml.Serializer;
import org.simpleframework.xml.core.Persister;
import org.simpleframework.xml.strategy.CycleStrategy;
import org.simpleframework.xml.strategy.Strategy;
public class ModelTester {
public static void main(String[] args) throws Exception {
Strategy strat = new CycleStrategy("id", "ref");
Serializer serializer = new Persister(strat);
File f = new File("C:\\users\\QPS-AUDRICK\\Desktop\\wfMapNew.xml");
WFDataFieldMap wfMap = (WFDataFieldMap) serializer.read(WFDataFieldMap.class, f);
WFDataFieldDef def = new WFDataFieldDef();
def.setName("Document_Type"); //datafieldname
WFDataFieldChoiceList allowedAtt = new WFDataFieldChoiceList(); //AllowedValues
List<WFDataFieldChoice> allChoice = new ArrayList<WFDataFieldChoice>();
List<String> allowedValues = new ArrayList<String>();
//WFDataFieldChoiceList wfdd = new WFDataFieldChoiceList();
WFDataFieldChoice wfdc1 = new WFDataFieldChoice();
WFDataFieldChoice wfdc2 = new WFDataFieldChoice();
WFDataFieldChoice wfdc3 = new WFDataFieldChoice();
WFDataFieldChoice wfdc4 = new WFDataFieldChoice();
WFDataFieldChoice wfdc5 = new WFDataFieldChoice();
WFDataFieldChoice wfdc6 = new WFDataFieldChoice();
WFDataFieldChoice wfdc7 = new WFDataFieldChoice();
WFDataFieldChoice wfdc8 = new WFDataFieldChoice();
WFDataFieldChoice wfdc9 = new WFDataFieldChoice();
WFDataFieldChoice wfdc10 = new WFDataFieldChoice();
WFDataFieldChoice wfdc11 = new WFDataFieldChoice();
WFDataFieldChoice wfdc12 = new WFDataFieldChoice();
WFDataFieldChoice wfdc13 = new WFDataFieldChoice();
WFDataFieldChoice wfdc14 = new WFDataFieldChoice();
WFDataFieldChoice wfdc15 = new WFDataFieldChoice();
WFDataFieldChoice wfdc16 = new WFDataFieldChoice();
WFDataFieldChoice wfdc17 = new WFDataFieldChoice();
WFDataFieldChoice wfdc18 = new WFDataFieldChoice();
WFDataFieldChoice wfdc19 = new WFDataFieldChoice();
WFDataFieldChoice wfdc20 = new WFDataFieldChoice();
WFDataFieldChoice wfdc21 = new WFDataFieldChoice();
WFDataFieldChoice wfdc22 = new WFDataFieldChoice();
WFDataFieldChoice wfdc23 = new WFDataFieldChoice();
WFDataFieldChoice wfdc24 = new WFDataFieldChoice();
WFDataFieldChoice wfdc25 = new WFDataFieldChoice();
WFDataFieldChoice wfdc26 = new WFDataFieldChoice();
WFDataFieldChoice wfdc27 = new WFDataFieldChoice();
wfdc1.setName("ADMIN");
wfdc1.setActive("true");
wfdc1.setValue("[email protected]");
allChoice.add(wfdc1);
wfdc2.setName("AMD");
wfdc2.setActive("true");
wfdc2.setValue("[email protected]");
allChoice.add(wfdc2);
wfdc3.setName("AUDITRISK");
wfdc3.setActive("true");
wfdc3.setValue("[email protected]");
allChoice.add(wfdc3);
wfdc4.setName("AVD");
wfdc4.setActive("true");
wfdc4.setValue("[email protected]");
allChoice.add(wfdc4);
wfdc5.setName("BOARD");
wfdc5.setActive("true");
wfdc5.setValue("[email protected]");
allChoice.add(wfdc5);
wfdc6.setName("CAD");
wfdc6.setActive("true");
wfdc6.setValue("[email protected]");
allChoice.add(wfdc6);
wfdc7.setName("CAMG");
wfdc7.setActive("true");
wfdc7.setValue("[email protected]");
allChoice.add(wfdc7);
wfdc8.setName("CASH");
wfdc8.setActive("true");
wfdc8.setValue("[email protected]");
allChoice.add(wfdc8);
wfdc9.setName("CBD");
wfdc9.setActive("true");
wfdc9.setValue("[email protected]");
allChoice.add(wfdc9);
wfdc10.setName("COCMD");
wfdc10.setActive("true");
wfdc10.setValue("[email protected]");
allChoice.add(wfdc10);
wfdc11.setName("CORPLAN");
wfdc11.setActive("true");
wfdc11.setValue("[email protected]");
allChoice.add(wfdc11);
wfdc12.setName("CSSG");
wfdc12.setActive("true");
wfdc12.setValue("[email protected]");
allChoice.add(wfdc12);
wfdc13.setName("CUSTODIAN");
wfdc13.setActive("true");
wfdc13.setValue("[email protected]");
allChoice.add(wfdc13);
wfdc14.setName("FAMG");
wfdc14.setActive("true");
wfdc14.setValue("[email protected]");
allChoice.add(wfdc14);
wfdc15.setName("FUB");
wfdc15.setActive("true");
wfdc15.setValue("[email protected]");
allChoice.add(wfdc15);
wfdc16.setName("GSD");
wfdc16.setActive("true");
wfdc16.setValue("[email protected]");
allChoice.add(wfdc16);
wfdc18.setName("INSURANCE");
wfdc18.setActive("true");
wfdc18.setValue("[email protected]");
allChoice.add(wfdc18);
wfdc19.setName("LEGAL");
wfdc19.setActive("true");
wfdc19.setValue("[email protected]");
allChoice.add(wfdc19);
wfdc20.setName("MAD");
wfdc20.setActive("true");
wfdc20.setValue("[email protected]");
allChoice.add(wfdc20);
wfdc21.setName("OEVP");
wfdc21.setActive("true");
wfdc21.setValue("[email protected]");
allChoice.add(wfdc21);
wfdc22.setName("OP");
wfdc22.setActive("true");
wfdc22.setValue("[email protected]");
allChoice.add(wfdc22);
wfdc23.setName("PAMD");
wfdc23.setActive("true");
wfdc23.setValue("[email protected]");
allChoice.add(wfdc23);
wfdc24.setName("RASD");
wfdc24.setActive("true");
wfdc24.setValue("[email protected]");
allChoice.add(wfdc24);
wfdc25.setName("RECORDS");
wfdc25.setActive("true");
wfdc25.setValue("[email protected]");
allChoice.add(wfdc25);
wfdc17.setName("SG");
wfdc17.setActive("true");
wfdc17.setValue("[email protected]");
allChoice.add(wfdc17);
wfdc26.setName("SPD");
wfdc26.setActive("true");
wfdc26.setValue("[email protected]");
allChoice.add(wfdc26);
wfdc27.setName("TSD");
wfdc27.setActive("true");
wfdc27.setValue("[email protected]");
allChoice.add(wfdc27);
WFDataFieldChoice wfdce1 = new WFDataFieldChoice();
WFDataFieldChoice wfdce2 = new WFDataFieldChoice();
WFDataFieldChoice wfdce3 = new WFDataFieldChoice();
WFDataFieldChoice wfdce4 = new WFDataFieldChoice();
WFDataFieldChoice wfdce5 = new WFDataFieldChoice();
WFDataFieldChoice wfdce6 = new WFDataFieldChoice();
WFDataFieldChoice wfdce7 = new WFDataFieldChoice();
WFDataFieldChoice wfdce8 = new WFDataFieldChoice();
WFDataFieldChoice wfdce9 = new WFDataFieldChoice();
WFDataFieldChoice wfdce10 = new WFDataFieldChoice();
WFDataFieldChoice wfdce11= new WFDataFieldChoice();
WFDataFieldChoice wfdce12 = new WFDataFieldChoice();
WFDataFieldChoice wfdce13 = new WFDataFieldChoice();
WFDataFieldChoice wfdce14 = new WFDataFieldChoice();
WFDataFieldChoice wfdce15 = new WFDataFieldChoice();
WFDataFieldChoice wfdce16 = new WFDataFieldChoice();
WFDataFieldChoice wfdce17 = new WFDataFieldChoice();
WFDataFieldChoice wfdce18 = new WFDataFieldChoice();
WFDataFieldChoice wfdce19 = new WFDataFieldChoice();
WFDataFieldChoice wfdce20 = new WFDataFieldChoice();
WFDataFieldChoice wfdce21 = new WFDataFieldChoice();
WFDataFieldChoice wfdce22 = new WFDataFieldChoice();
WFDataFieldChoice wfdce23 = new WFDataFieldChoice();
WFDataFieldChoice wfdce24 = new WFDataFieldChoice();
WFDataFieldChoice wfdce25 = new WFDataFieldChoice();
WFDataFieldChoice wfdce26 = new WFDataFieldChoice();
WFDataFieldChoice wfdce27 = new WFDataFieldChoice();
wfdce1.setName("ADMIN Escalation");
wfdce1.setActive("true");
wfdce1.setValue("[email protected]");
allChoice.add(wfdce1);
wfdce2.setName("AMD Escalation");
wfdce2.setActive("true");
wfdce2.setValue("[email protected]");
allChoice.add(wfdce2);
wfdce3.setName("AUDITRISK Escalation");
wfdce3.setActive("true");
wfdce3.setValue("[email protected]");
allChoice.add(wfdce3);
wfdce4.setName("AVD Escalation");
wfdce4.setActive("true");
wfdce4.setValue("[email protected]");
allChoice.add(wfdce4);
wfdce5.setName("BOARD Escalation");
wfdce5.setActive("true");
wfdce5.setValue("[email protected]");
allChoice.add(wfdce5);
wfdce6.setName("CAD Escalation");
wfdce6.setActive("true");
wfdce6.setValue("[email protected]");
allChoice.add(wfdce6);
wfdce7.setName("CAMG Escalation");
wfdce7.setActive("true");
wfdce7.setValue("[email protected]");
allChoice.add(wfdce7);
wfdce8.setName("CASH Escalation");
wfdce8.setActive("true");
wfdce8.setValue("[email protected]");
allChoice.add(wfdce8);
wfdce9.setName("CBD Escalation");
wfdce9.setActive("true");
wfdce9.setValue("[email protected]");
allChoice.add(wfdce9);
wfdce10.setName("COCMD Escalation");
wfdce10.setActive("true");
wfdce10.setValue("[email protected]");
allChoice.add(wfdce10);
wfdce11.setName("CORPLAN Escalation");
wfdce11.setActive("true");
wfdce11.setValue("[email protected]");
allChoice.add(wfdce11);
wfdce12.setName("CSSG Escalation");
wfdce12.setActive("true");
wfdce12.setValue("[email protected]");
allChoice.add(wfdce12);
wfdce13.setName("CUSTODIAN Escalation");
wfdce13.setActive("true");
wfdce13.setValue("[email protected]");
allChoice.add(wfdce13);
wfdce14.setName("FAMG Escalation");
wfdce14.setActive("true");
wfdce14.setValue("[email protected]");
allChoice.add(wfdce14);
wfdce15.setName("FUB Escalation");
wfdce15.setActive("true");
wfdce15.setValue("[email protected]");
allChoice.add(wfdce15);
wfdce16.setName("GSD Escalation");
wfdce16.setActive("true");
wfdce16.setValue("[email protected]");
allChoice.add(wfdce16);
wfdce18.setName("INSURANCE Escalation");
wfdce18.setActive("true");
wfdce18.setValue("[email protected]");
allChoice.add(wfdce18);
wfdce19.setName("LEGAL Escalation");
wfdce19.setActive("true");
wfdce19.setValue("[email protected]");
allChoice.add(wfdce19);
wfdce20.setName("MAD Escalation");
wfdce20.setActive("true");
wfdce20.setValue("[email protected]");
allChoice.add(wfdce20);
wfdce21.setName("OEVP Escalation");
wfdce21.setActive("true");
wfdce21.setValue("[email protected]");
allChoice.add(wfdce21);
wfdce22.setName("OP Escalation");
wfdce22.setActive("true");
wfdce22.setValue("[email protected]");
allChoice.add(wfdce22);
wfdce23.setName("PAMD Escalation");
wfdce23.setActive("true");
wfdce23.setValue("[email protected]");
allChoice.add(wfdce23);
wfdce24.setName("RASD Escalation");
wfdce24.setActive("true");
wfdce24.setValue("[email protected]");
allChoice.add(wfdce24);
wfdce25.setName("RECORDS Escalation");
wfdce25.setActive("true");
wfdce25.setValue("[email protected]");
allChoice.add(wfdce25);
wfdce17.setName("SG Escalation");
wfdce17.setActive("true");
wfdce17.setValue("[email protected]");
allChoice.add(wfdce17);
wfdce26.setName("SPD Escalation");
wfdce26.setActive("true");
wfdce26.setValue("[email protected]");
allChoice.add(wfdce26);
wfdce27.setName("TSD Escalation");
wfdce27.setActive("true");
wfdce27.setValue("[email protected]");
allChoice.add(wfdce27);
//allowedAtt.add("scen2");
allowedAtt.setName("Email List");
allowedAtt.setChoices(allChoice);
Map<String, String> attribs = new HashMap();
//attribs.put("choiceListNested", "true"); //setting of validation attribs
//attribs.put("displayMode","readonly");
attribs.put("required", "true");
//attribs.put("maxEntry", "300");
//attribs.put("maxLength","300");
//attribs.put("format", ".*");
allowedValues.add("Board Material");
allowedValues.add("Board Resolution");
allowedValues.add("Certified True Copy of Board Resolution");
allowedValues.add("Circulars");
allowedValues.add("Company wide Memos");
allowedValues.add("Group Orders");
allowedValues.add("IMR");
allowedValues.add("Investment Docs");
allowedValues.add("Letters");
allowedValues.add("Loan Documents");
allowedValues.add("Minutes of the Meeting");
allowedValues.add("Office Order");
allowedValues.add("PO");
allowedValues.add("Secretary Certificate");
allowedValues.add("Special orders");
allowedValues.add("TCT");
allowedValues.add("Transmittal List");
def.setAttribs(attribs);
def.setAllowedValues(allowedValues);
wfMap.getMap().put(def.getName(), def); //[Name][WFDataFieldDef]
serializer.write(wfMap, f);
}
public static WFDataFieldDef wfDDF() {
return null;
}
} | [
"[email protected]"
]
| |
11ddcd6c2011dc25262e47a94d2f2c9570b6c788 | 46c4cf694b641f173adb932154c7644898ad232e | /annotation-file-utilities/src/module-info.java | 019bdf428d6f10802491bf7b04f42293623d4e89 | [
"MIT"
]
| permissive | DSouzaM/annotation-tools | 77f38a04ebdb40a96f6799f3020bd1745a3db896 | 83639bc6173f5e5d52364bee26353b51945b8887 | refs/heads/master | 2020-07-27T09:55:48.727296 | 2016-12-18T01:29:17 | 2016-12-18T01:29:17 | 73,432,836 | 0 | 0 | null | 2016-11-11T00:38:28 | 2016-11-11T00:38:25 | null | UTF-8 | Java | false | false | 159 | java | module annotationtools.afu {
requires jdk.compiler;
requires annotationtools.scenelib;
requires annotationtools.asmx;
//requires plume;
requires junit;
}
| [
"[email protected]"
]
| |
aad815e7e14d6365191f225ac9c8d250bb32b143 | 7bc1bae7c1f3996057f476ef0f3a1cd92a4e17c2 | /src/main/java/me/icro/java/spring/icrospring/iocv2/context/ApplicationContext.java | 25e6a7f33b2fd29f115a4843c8a7431282950130 | [
"CC-BY-2.5"
]
| permissive | linlicro/frameworks-a-java-developer-should-know | a271771f33ebb4ba91b23692b3b84975055276ed | 605dd95ba3a611871b864342a52ed3c2d63c5288 | refs/heads/master | 2022-06-24T06:33:26.596830 | 2020-12-15T05:59:45 | 2020-12-15T05:59:45 | 225,824,808 | 1 | 0 | NOASSERTION | 2022-06-21T02:39:58 | 2019-12-04T09:09:21 | Java | UTF-8 | Java | false | false | 225 | java | package me.icro.java.spring.icrospring.iocv2.context;
import me.icro.java.spring.icrospring.iocv2.factory.BeanFactory;
/**
*
* Created by Lin on 2019/12/25.
*/
public interface ApplicationContext extends BeanFactory {
}
| [
"[email protected]"
]
| |
5537b6522ced08ed2178b11e9f19c80c63c5e89b | 901ecab083f71c32c671471b901058c8a0e57e78 | /mobile/app/src/main/java/com/devmarcul/maevent/apis/models/MaeventsModel.java | 29617f2e3c8f520cab0a7e5ed71a6573ed28c07b | []
| no_license | marcullo/maevent | 888d1d1c24bbae96fe77222eb7efb3273cd1dd03 | 91cb47e8dc36dd154d173fbaf1adea95804dfd37 | refs/heads/master | 2020-03-16T16:51:11.717332 | 2019-02-23T16:19:56 | 2019-02-23T16:19:56 | 132,806,419 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,608 | java | package com.devmarcul.maevent.apis.models;
import android.os.Parcel;
import android.os.Parcelable;
import com.devmarcul.maevent.data.Maevent;
import com.devmarcul.maevent.data.Maevents;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
public class MaeventsModel implements Parcelable {
private List<MaeventModel> content;
public MaeventsModel(List<MaeventModel> content) {
this.content = content;
}
public MaeventsModel(Maevents events) {
content = new ArrayList<>();
for (Maevent event :
events) {
MaeventModel model = new MaeventModel(event);
content.add(model);
}
}
protected MaeventsModel(Parcel in) {
content = new ArrayList<>();
in.readTypedList(content, MaeventModel.CREATOR);
}
public static final Creator<MaeventsModel> CREATOR = new Creator<MaeventsModel>() {
@Override
public MaeventsModel createFromParcel(Parcel in) {
return new MaeventsModel(in);
}
@Override
public MaeventsModel[] newArray(int size) {
return new MaeventsModel[size];
}
};
@Override
public int describeContents() {
return 0;
}
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeTypedList(content);
}
public Maevents toMaevents() {
Maevents events = new Maevents();
for (MaeventModel model :
content) {
events.add(model.toMaevent());
}
return events;
}
}
| [
"[email protected]"
]
| |
a79c7bab05b38170c877995c77c5182b8a0ea16b | 79121db5d54b88cbe1d6a2f0cc33b28abd433036 | /xtext_projects/csc498.dsl3.ui/src/csc498/ui/labeling/Dsl3DescriptionLabelProvider.java | 90f6c3a3db47811c79182c5a97edbbe672bdcacc | []
| no_license | vorachet/csc498_mdedsl_learning | 62c6fed9a9808ec038cfda04e5afe918adf6d5f9 | c626f32da9814c149a97bad0dfe865fcdab96bc1 | refs/heads/master | 2023-03-13T08:00:39.419194 | 2021-02-19T02:38:30 | 2021-02-19T02:38:30 | 340,040,119 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 665 | java | /*
* generated by Xtext 2.22.0
*/
package csc498.ui.labeling;
import org.eclipse.xtext.ui.label.DefaultDescriptionLabelProvider;
/**
* Provides labels for IEObjectDescriptions and IResourceDescriptions.
*
* See https://www.eclipse.org/Xtext/documentation/310_eclipse_support.html#label-provider
*/
public class Dsl3DescriptionLabelProvider extends DefaultDescriptionLabelProvider {
// Labels and icons can be computed like this:
// @Override
// public String text(IEObjectDescription ele) {
// return ele.getName().toString();
// }
//
// @Override
// public String image(IEObjectDescription ele) {
// return ele.getEClass().getName() + ".gif";
// }
}
| [
"[email protected]"
]
| |
30672be670215d7e189ccfab3cce05c05623bac1 | 4c51f6f0de6917b20ecd31eaa8cec2033a16652e | /proj1b/Palindrome.java | 923dc055e91d91480abbd15c27d0b468ab8b6dba | []
| no_license | LiFangCoding/UCB_61B_Spring_2018 | 0737de8f9633ed92e3d73ac9f42ae9a11d339b15 | 6c146fd534d52848dd67835a521bed7e11f8c8f4 | refs/heads/master | 2018-12-10T19:22:34.779626 | 2018-11-08T12:37:04 | 2018-11-08T12:37:04 | 122,894,476 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,171 | java | public class Palindrome {
public Deque<Character> wordToDeque(String word){
Deque<Character> res = new ArrayDeque<>();
//Deque<Character> res = new LinkedListDeque<>();
if (word == null || word.length() == 0) {
return res;
}
for (int i = 0; i < word.length(); i++) {
res.addLast(word.charAt(i));
}
return res;
}
public boolean isPalindrome(String word) {
Deque<Character> s = wordToDeque(word);
if (s.size() == 0 || s.size() == 1) {
return true;
}
while (s.size() > 1) {
if (!s.removeFirst().equals(s.removeLast())) {
return false;
}
}
return true;
}
public boolean isPalindrome(String word, CharacterComparator cc) {
Deque<Character> s = wordToDeque(word);
if (s.size() == 0 || s.size() == 1) {
return true;
}
while (s.size() > 1) {
boolean equal = cc.equalChars(s.removeFirst(), s.removeLast());
if (!equal) {
return false;
}
}
return true;
}
}
| [
"[email protected]"
]
| |
d3e6955cfed269abe68fc1a7dee9a8c8b353825b | 82cc2675fdc5db614416b73307d6c9580ecbfa0c | /eb-service/core-service/src/main/java/cn/comtom/core/main/statistics/domain/response/BroadcastLevelFrequency.java | 6650cd1c488437c7d23d822866552364506caeb8 | []
| no_license | hoafer/ct-ewbsv2.0 | 2206000c4d7c3aaa2225f9afae84a092a31ab447 | bb94522619a51c88ebedc0dad08e1fd7b8644a8c | refs/heads/master | 2022-11-12T08:41:26.050044 | 2020-03-20T09:05:36 | 2020-03-20T09:05:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 652 | java | package cn.comtom.core.main.statistics.domain.response;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* @author wangbingyan
* @date 2020/1/8
* @desc 广播等级的广播频次
*/
@Data
public class BroadcastLevelFrequency {
@ApiModelProperty("广播日期")
private String broadcastDate;
@ApiModelProperty("I级广播数量")
private Integer oneLevelCount;
@ApiModelProperty("II级广播数量")
private Integer twoLevelCount;
@ApiModelProperty("III级广播数量")
private Integer threeLevelCount;
@ApiModelProperty("IV级广播数量")
private Integer fourLevelCount;
}
| [
"[email protected]"
]
| |
22a66b1cb647824be59e8dd20c51c16aaf1d6da3 | df64dbd1be02fa374495740cb2d13712940032d2 | /src/main/java/pl/coderslab/entity/Publisher.java | 5c147cd8fbf252160ecb4fbb53a794249398b5ef | []
| no_license | wasniows/Spring01hibernate | caf8917c6c0e12a9cf6dcc5ad4a8b4c9b6810fea | 5ed8f4023abd593d64a1566769ceebb5847a62ac | refs/heads/master | 2023-03-30T19:16:59.969074 | 2021-03-30T21:45:35 | 2021-03-30T21:45:35 | 347,422,071 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 699 | java | package pl.coderslab.entity;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.pl.NIP;
import org.hibernate.validator.constraints.pl.REGON;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
@Entity
@Data
@NoArgsConstructor
@Table(name = "publishers")
public class Publisher {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@NotNull
@Size(min = 1, message = "{size.name.publisher.min}")
private String name;
@NIP(message = "{wrong.nip}")
private String nip;
@REGON(message = "{wrong.regon}")
private String regon;
}
| [
"[email protected]"
]
| |
7b966b4d466a743e897b3e0ef96a03cb8df0b655 | 8e712fa89dec6416de8bccdebc5f65dac524b3dc | /order/src/main/java/com/example/demo/controller/request/PaymentRequest.java | 330c6a3ddfc408c016127a6f295728fbda51611c | []
| no_license | ralphavalon/async-playground | dc85c2860cf9da462ac6f736290a7ca9e43bed0e | d0f83ab9ff2a5a546a6579719e8459f48a7e79fe | refs/heads/main | 2023-09-03T11:45:51.921782 | 2021-10-04T21:54:30 | 2021-10-04T21:54:30 | 413,511,516 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 167 | java | package com.example.demo.controller.request;
import lombok.Getter;
@Getter
public class PaymentRequest {
private String method;
private String data;
}
| [
"[email protected]"
]
| |
b54d56ccfde404fb899f8cad39ee86b1888db801 | 15889b730bce9fba197b52baaa42dc10fb7501ba | /src/it/simple-it-append/src/main/java/com/pingunaut/wicketmessages/test/TestPage.java | b70a7a9ad32c704a5fba4d2d7d0719edefdaea63 | [
"Apache-2.0"
]
| permissive | martinspielmann/wicketmessages-maven-plugin | 391044ffb5fc4c521de52dfb9cb101984fec9fa2 | 69ecf3b0db872f32413f5c4cbf1b481f2d34473a | refs/heads/master | 2023-04-16T05:46:18.003240 | 2021-04-26T17:51:13 | 2021-04-26T17:51:13 | 63,572,670 | 1 | 0 | Apache-2.0 | 2021-04-26T17:51:14 | 2016-07-18T05:24:52 | Java | UTF-8 | Java | false | false | 348 | java | package com.pingunaut.wicketmessages.test;
public class TestPage {
/**
* class contains a referenced resource key. this one should be marked as "used" during export
*/
public void someFakeMethodUsingResourceKey() {
String myResourceKey = "countryCodeOnly";
System.out.println(myResourceKey);
}
}
| [
"[email protected]"
]
| |
eb22407fc9cef3c5800818e02bc24c7d8b544430 | a4456b9182a0d43325b9966ca812cb67fe92f8ef | /jodd-vtor/src/main/java/jodd/vtor/constraint/LengthConstraint.java | b934c940506b56343f86fd4658ccdd6b537bb819 | [
"BSD-2-Clause",
"BSD-3-Clause"
]
| permissive | nicky-chen/jodd | 94a5c56eb50f7964ef234e9856ce9adb8fb1c079 | 4bba7643c564a5a3fb54397208666b9f82a0446d | refs/heads/master | 2021-04-06T20:22:51.057076 | 2018-03-15T07:28:59 | 2018-03-15T07:29:25 | 125,328,836 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,573 | java | // Copyright (c) 2003-present, Jodd Team (http://jodd.org)
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
//
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
package jodd.vtor.constraint;
import jodd.vtor.ValidationConstraint;
import jodd.vtor.ValidationConstraintContext;
public class LengthConstraint implements ValidationConstraint<Length> {
public LengthConstraint() {
}
public LengthConstraint(int min, int max) {
this.min = min;
this.max = max;
}
// ---------------------------------------------------------------- properties
protected int min;
protected int max;
public int getMin() {
return min;
}
public void setMin(int min) {
this.min = min;
}
public int getMax() {
return max;
}
public void setMax(int max) {
this.max = max;
}
// ---------------------------------------------------------------- configure
public void configure(Length annotation) {
this.min = annotation.min();
this.max = annotation.max();
}
// ---------------------------------------------------------------- valid
public boolean isValid(ValidationConstraintContext vcc, Object value) {
return validate(value, min, max);
}
public static boolean validate(Object value, int min, int max) {
if (value == null) {
return true;
}
final int len = value.toString().length();
return len >= min && len <= max;
}
} | [
"[email protected]"
]
| |
170115b7f04d240d127b9c3164f4e19cc0bf4aed | d63402c1fdeb5b13de9667696b2b8e09ffb13fd9 | /kods/Sthenos-main/app/src/main/java/com/example/sthenos/todo/NoScrollListView.java | 497876f326a4c0f5d56b60913beb3c3372a5b11b | []
| no_license | rvtprog-kval-21/d43-RobertsKristiansMarkuns-sthenos | 3dc5e4244c5cf26e15fc1a557fe25f6ea07d914d | d813850f4cb5ca9527f33c449de03276d1fee2b1 | refs/heads/main | 2023-05-30T05:01:11.631835 | 2021-06-11T17:07:08 | 2021-06-11T17:07:08 | 309,124,639 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 969 | java | package com.example.sthenos.todo;
import android.content.Context;
import android.util.AttributeSet;
import android.view.ViewGroup;
import android.widget.ListView;
// creates a list view with scrolling disabled
public class NoScrollListView extends ListView {
public NoScrollListView(Context context) {
super(context);
}
public NoScrollListView(Context context, AttributeSet attrs) {
super(context, attrs);
}
public NoScrollListView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
}
@Override
public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
int heightMeasureSpec_custom = MeasureSpec.makeMeasureSpec(
Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST);
super.onMeasure(widthMeasureSpec, heightMeasureSpec_custom);
ViewGroup.LayoutParams params = getLayoutParams();
params.height = getMeasuredHeight();
}
}
| [
"[email protected]"
]
| |
c7dacaefe4ba7b02f8481ad74279cc1aab3d75fd | 7d5a8a130ae297b406dfa927c34dd6cb28c84d76 | /src/main/java/com/lqk/juc/LockFour.java | 9eec79039de0c69df99dc611feb08215ddb385d6 | []
| no_license | qkliang/ssm | f318e15514dc1e004ae731dd585c8bfc82df667d | 21947d66c6d906a9f54f56106a83bab81ec7d7ab | refs/heads/master | 2022-12-24T19:01:31.968934 | 2020-05-18T14:41:16 | 2020-05-18T14:41:16 | 201,785,227 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,240 | java | package com.lqk.juc;
/**
* 第四锁:相较于前三锁,第四锁仍然是两个同步方法,但是使用不同的对象调用
* 结论: 被synchronized修饰的方法,锁的对象是调用者,因为两个方法的调用者是两个不同对象
* 两个方法用的不是同一个锁,后调用的方法不需要等待先调用的方法
* 第一个对象有延迟200ms,故先执行getTwo,再执行getOne
*/
public class LockFour {
public static void main(String[] args) {
NumberFour numberFour = new NumberFour();
NumberFour numberFour1 = new NumberFour();
new Thread(new Runnable() {
@Override
public void run() {
numberFour.getOne();
}
}).start();
new Thread(new Runnable() {
@Override
public void run() {
numberFour1.getTwo();
}
}).start();
}
}
class NumberFour{
public synchronized void getOne(){
try {
Thread.sleep(200);
}catch (Exception e){
e.printStackTrace();
}
System.out.println("one");
}
public synchronized void getTwo(){
System.out.println("two");
}
} | [
"[email protected]"
]
| |
6371b153f5393976d1dc273c7cf2c0134e0bbf34 | c1cfd0dddc5473d266423be68c49adb16990c008 | /src/main/java/kodlamaio/hrms/core/configs/CloudinaryConfig.java | eb2330f414d7f9e42e3dba92f4a0d34a85797895 | []
| no_license | YigitYeler/HRMS-Java-Backend | 9788d58514253fd2aa056dddce211fc01eb13f4f | c202f8f1b2d42c84aac8fbe75d0b448135b13c12 | refs/heads/master | 2023-06-02T06:51:59.113909 | 2021-06-18T17:29:33 | 2021-06-18T17:29:33 | 367,667,982 | 7 | 0 | null | null | null | null | UTF-8 | Java | false | false | 467 | java | package kodlamaio.hrms.core.configs;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import com.cloudinary.Cloudinary;
import com.cloudinary.utils.ObjectUtils;
@Configuration
public class CloudinaryConfig {
@Bean
public Cloudinary cloudinary() {
return new Cloudinary(ObjectUtils.asMap("cloud_name", "dn6pckfso", "api_key", "331547248679693", "api_secret", "3vexCLfwvm0RhcU--djd7eGNDVc"));
}
}
| [
"[email protected]"
]
| |
20f1b723ae4fd27957c01af342df57874135da42 | 5d6f3435a82a3fcc9b1aaf16b627e982d23b23c5 | /SpringCoreAssignment/src/main/java/spring/core/assignment/BankAccountRepositoryImpl.java | 55d2c28c85123cfe6dbb7eb4ba93e672a6fefa6a | []
| no_license | danisuargarc/CSD-Cloud-Native-Training-Assignments | b8396a354ba3ce99b4447ca6e056687366904985 | e9b94dd9811fb819f8650ff6ed4a10c638191896 | refs/heads/main | 2023-03-03T07:08:14.617505 | 2021-02-16T01:54:50 | 2021-02-16T01:54:50 | 332,583,374 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,104 | java | package spring.core.assignment;
import java.util.List;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Repository;
@Repository
public class BankAccountRepositoryImpl implements BankAccountRepository {
private List<BankAccount> accounts;
public BankAccountRepositoryImpl(List<BankAccount> accounts) {
this.accounts = accounts;
}
@Bean
public List<BankAccount> getAccounts() {
return accounts;
}
public void setAccounts(List<BankAccount> accounts) {
this.accounts = accounts;
}
@Override
public double getBalance(long accountId) {
for (BankAccount acc : accounts) {
if (acc.getAccountId() == accountId) {
return acc.getAccountBalance();
}
}
return 0;
}
@Override
public double updateBalance(long accountId, double newBalance) {
for (BankAccount acc : accounts) {
if (acc.getAccountId() == accountId) {
acc.setAccountBalance(newBalance);
return acc.getAccountBalance();
}
}
return 0;
}
}
| [
"[email protected]"
]
| |
66afe8e9b09c82468924d6a30a86d297fabb1240 | 62e79f56f8f12600bd88654300570e0f66654786 | /test/ArrayQuestion.java | df195942e22a711be86db949c56fe4f4bf5a45e9 | []
| no_license | Pulkit-Garg15/JavaBasics | 3128fa874f0eca10a45f05e51c1f22ecc66e918b | 7cf16624ba508aa163ff984a796b314c337ee62d | refs/heads/master | 2023-09-06T08:23:57.255589 | 2023-09-05T10:00:00 | 2023-09-05T10:00:00 | 431,566,679 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,165 | java | package test;
public class ArrayQuestion {
public static void main(String[] args) {
int temp, size, first, second;
int array[] = {10, 20, 25, 63, 96, 57, 10, 67, 54, 14};
size = array.length;
first = second = Integer.MIN_VALUE;
for (int i = 0; i < size; i++) {
if (array[i] > first) {
second = first;
first = array[i];
}
else if (array[i] > second && array[i] != first)
second = array[i];
}
if (second == Integer.MIN_VALUE)
System.out.print("There is no second largest"
+ " element\n");
else
System.out.print("The second largest element"
+ " is " + second);
for(int i = 0; i<size; i++ ){
for(int j = i+1; j<size; j++){
if(array[i]>array[j]){
temp = array[i];
array[i] = array[j];
array[j] = temp;
}
}
}
System.out.println(" and the smallest element of the array is:: "+array[0]);
}
}
| [
"[email protected]"
]
| |
8114023156b0dceef3f50f255a6831fa77929aee | c65ea8ffe4ec6b4847944e66211df4be1c37406c | /src/main/java/com/dandi/api/UseMongoApplication.java | b50b91d3bbe0139f27fd73a7a84aa303e232e152 | []
| no_license | dpanteja/mongousage | 59b014213fa373d701be33dfbc2fe8e45ba1a89c | 3dd7e3c0dae15ef6a4ce5453d3f6d71b3eeb0a02 | refs/heads/master | 2020-12-26T21:27:41.902315 | 2020-02-01T17:25:49 | 2020-02-01T17:25:49 | 237,650,271 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 558 | java | package com.dandi.api;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
@SpringBootApplication(exclude = {
MongoAutoConfiguration.class,
MongoDataAutoConfiguration.class
})
public class UseMongoApplication {
public static void main(String[] args) {
SpringApplication.run(UseMongoApplication.class, args);
}
}
| [
"[email protected]"
]
| |
3cd521ad8d40bffa7e4ab58caa9e559547c622fa | 7b42a2ad3f8999397b37b25f841e7ff6bbecc5e8 | /myutils/src/test/java/com/wangjf/myutils/ExampleUnitTest.java | b63270c728f557d5fc0d0381105af1056ef6f2f5 | []
| no_license | userwangjf/MindLock | 0b55e6d6efb4cd71ba3395628037a77e221956c8 | c1fe98c452cfca4b0ca976c938babab982dd50df | refs/heads/master | 2021-09-05T14:37:10.224528 | 2018-01-28T23:32:24 | 2018-01-28T23:32:24 | 116,451,641 | 12 | 1 | null | null | null | null | UTF-8 | Java | false | false | 396 | java | package com.wangjf.myutils;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() throws Exception {
assertEquals(4, 2 + 2);
}
} | [
"[email protected]"
]
| |
4e2a5c8f25b0a789e975675ba8ddc44de58f9b6a | 689225df7d0dfa50f3359760728acc1d94244d8d | /java study(복습)/src/논리형변수선언60p.java | 801cbdcdfdcae96fa2b07478cda20acfe21c70bf | []
| no_license | hjs8023/hjs | 8a863e4a43c98b0b34c59fd089902c51a301e5c0 | 54c1364a64f7d83ae980472850b6a4a16745b444 | refs/heads/master | 2023-07-25T19:34:17.749920 | 2021-08-09T15:24:19 | 2021-08-09T15:24:19 | 383,814,585 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 433 | java |
public class 논리형변수선언60p {
public static void main(String[] args) {
// TODO Auto-generated method stub
boolean b1 = true;
boolean b2 = false;
System.out.println(b1); // b1 이 지닌 값 출
System.out.println(b2);
int num1 = 10;
int num2 = 20;
System.out.println(num1 < num2); // 20은 10보다 크므로 true
System.out.println(num1 > num2); // 10은 20보다 크지않으므로 false
}
}
| [
"[email protected]"
]
| |
58484651876b55bd9a6d74bf9fc2104ae71575c5 | a62d6e4b5c9554a6cbaa019a1cca85e9bd043c30 | /VcentrySeleniumJava/src/edu/vcentry/interfaces/Main.java | 87efc977692a2f40cfd5e2751dd5b4bfb00e6146 | []
| no_license | GSkeer/first | b92e794e1dcc98f487ff82a4bd00ac6de119ab21 | 3e9fade168cc0ad1f060818b005b8e3509ec64a4 | refs/heads/main | 2023-08-17T18:18:58.449397 | 2021-10-26T09:55:27 | 2021-10-26T09:55:27 | 344,818,436 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 936 | java | package edu.vcentry.interfaces;
public class Main {
public static void main(String args[]) {
Sports obj1 = new Cricket();
//Majors m1 = new Cricket();
getClassNameOfObject(obj1);
decorator();
obj1.winner();
obj1.tie();
obj1.type();
obj1.isOlympicSport();
obj1.weLoveSport();
//obj1.isAudienceAllowed(); Cannot call static method with a reference variable
System.out.println("Is Audience allowed during Covid-19 " + Sports.isAudienceAllowed());
decorator();
Sports obj2 = new Tennis();
Majors mObj = new Tennis();
getClassNameOfObject(obj2);
decorator();
obj2.winner();
obj2.tie();
obj2.type();
obj2.isOlympicSport();
obj2.weLoveSport();
System.out.println(mObj.majors());
}
public static void decorator() {
System.out.println("************");
}
private static void getClassNameOfObject(Object obj) {
System.out.println(obj.getClass().getCanonicalName());
}
}
| [
"[email protected]"
]
| |
53c8f5de19ce93e52372a4b9f5371dddf7d42934 | 733330b01afb378040c75fb44b7cc4b684a05b43 | /src/main/java/com/minigame/model/UserScore.java | 1ebd521bcc0b2adb83942fd5ea7b5a623fc9aaa1 | []
| no_license | rjar2020/mini-game-back | c434dafc4692c4cca4c2f9d15aa0fd406a20b8e1 | d4656322a07eab91386c514862360de08c23fac3 | refs/heads/master | 2022-12-29T00:05:09.679714 | 2020-10-11T14:51:22 | 2020-10-11T14:51:22 | 291,347,974 | 0 | 0 | null | 2020-10-11T14:51:23 | 2020-08-29T20:57:06 | Java | UTF-8 | Java | false | false | 1,156 | java | package com.minigame.model;
import java.util.Objects;
import java.util.StringJoiner;
public class UserScore {
private final Integer userId;
private final Integer score;
public UserScore(Integer userId, Integer score) {
Objects.requireNonNull(userId);
Objects.requireNonNull(score);
this.userId = userId;
this.score = score;
}
public Integer getUserId() {
return userId;
}
public Integer getScore() {
return score;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
UserScore userScore = (UserScore) o;
return Objects.equals(getUserId(), userScore.getUserId()) &&
Objects.equals(getScore(), userScore.getScore());
}
@Override
public int hashCode() {
return Objects.hash(getUserId(), getScore());
}
//Custom toString. Be mindful when changing it
@Override
public String toString() {
return new StringJoiner("=").add(String.valueOf(userId)).add(String.valueOf(score)).toString();
}
}
| [
"[email protected]"
]
| |
36f2ccf74d21ca29ae6dcdfe5d662bce1f7a0557 | 343344a4db8e8816a30413a04a0ad670cc1790c4 | /src/main/java/br/uff/ic/graphmatching/GraphMatching.java | e522ba32d5268012068f4085001786b3d66763a6 | [
"MIT"
]
| permissive | patriciamcj/prov-viewer | 8d4a25a43688c98452375b96abfde6ffff643a3d | d279b4bf15c40cac029a5740340fbe91b3d9a136 | refs/heads/master | 2021-01-21T05:32:54.622432 | 2015-10-10T22:49:57 | 2015-10-10T22:49:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 12,937 | java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package br.uff.ic.graphmatching;
import br.uff.ic.utility.GraphAttribute;
import br.uff.ic.utility.Utils;
import br.uff.ic.utility.graph.ActivityVertex;
import br.uff.ic.utility.graph.AgentVertex;
import br.uff.ic.utility.graph.Edge;
import br.uff.ic.utility.graph.EntityVertex;
import br.uff.ic.utility.graph.Vertex;
import edu.uci.ics.jung.graph.DirectedGraph;
import edu.uci.ics.jung.graph.DirectedSparseMultigraph;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
/**
*
* @author Kohwalter
*/
public class GraphMatching {
private int edgeID = 0;
private int vertexID = 0;
private double threshold;
Map<String, Edge> duplicateEdges;
private final Map<String, Vertex> vertexList;
private final Map<String, Edge> edgeList;
private final Map<String, Vertex> combinedVertexList;
private final Map<String, GraphAttribute> attributeList; // GraphAttribute.name = the atribute
// GraphAttribute.value = error margin
/**
* Constructor
*
* @param restrictionList is the list of attributes, and their error margin,
* that is used to compareAttributes vertices
* @param similarityThreshold is the percentage used to define when two
* vertices are considered similar. Varies from 0 to 1.0
*/
public GraphMatching(Map<String, GraphAttribute> restrictionList, double similarityThreshold) {
vertexList = new HashMap<String, Vertex>();
edgeList = new HashMap<String, Edge>();
attributeList = restrictionList;
threshold = similarityThreshold;
threshold = Utils.clamp(0.0, 1.0, similarityThreshold);
combinedVertexList = new HashMap<String, Vertex>();
duplicateEdges = new HashMap<String, Edge>();
}
/**
* Constructor without a list of attributes with their error margins
*
* @param similarityThreshold is the percentage used to define when two
* vertices are considered similar. Varies from 0 to 1.0
*/
public GraphMatching(double similarityThreshold) {
vertexList = new HashMap<String, Vertex>();
edgeList = new HashMap<String, Edge>();
attributeList = new HashMap<String, GraphAttribute>();
threshold = similarityThreshold;
threshold = Utils.clamp(0.0, 1.0, similarityThreshold);
combinedVertexList = new HashMap<String, Vertex>();
duplicateEdges = new HashMap<String, Edge>();
}
/**
* Return the vertices from the combined graph
*
* @return
*/
public Collection<Vertex> getVertexList() {
return vertexList.values();
}
/**
* Return the edges from the combined graph
*
* @return
*/
public Collection<Edge> getEdgeList() {
return edgeList.values();
}
/**
* Function that determines if two vertices are equivalent
*
* @param v1 is the first vertex
* @param v2 is the second vertex
* @return TRUE if equivalent and FALSE if not
*/
public boolean isSimilar(Vertex v1, Vertex v2) {
boolean isSimilar = false;
// Code here
// Use the attributeList to determine if vertices are similar
double similarity = 0.0F;
// Compare vertex types: If different types than it is not similar
if (!v1.getNodeType().equalsIgnoreCase(v2.getNodeType())) {
return false;
}
Map<String, GraphAttribute> attributes = new HashMap<String, GraphAttribute>();
// Check all v1 attributes
for (GraphAttribute attribute : v1.getAttributes()) {
similarity = compareAttributes(attributes, attribute, v2, similarity);
}
// Now check all v2 attributes
for (GraphAttribute attribute : v2.getAttributes()) {
// Do not check the same attributes already verified when checking v1
if (!attributes.containsKey(attribute.getName())) {
similarity = compareAttributes(attributes, attribute, v1, similarity);
}
}
// System.out.println("Similarity " + similarity);
// System.out.println("Size " + attributes.size());
similarity = similarity / attributes.size();
// System.out.println("Match Similarity between " + v1.getID() + " and " + v2.getID() + ": " + similarity);
if (similarity >= threshold) {
isSimilar = true;
}
return isSimilar;
}
/**
* Function to compare all attributes from 2 verties
*
* @param attributes is the list of processed attributes
* @param attribute is the current attribute from v1
* @param v2 is the second vertex
* @param similarity is the similarity variable used to discern if vertices
* are similar
* @return
*/
public double compareAttributes(Map<String, GraphAttribute> attributes, GraphAttribute attribute, Vertex v2, double similarity) {
attributes.put(attribute.getName(), attribute);
if (v2.getAttribute(attribute.getName()) != null) {
String av1 = attribute.getAverageValue();
String av2 = v2.getAttribute(attribute.getName()).getAverageValue();
String errorMargin = "0";
if (attributeList.get(attribute.getName()) != null) {
errorMargin = attributeList.get(attribute.getName()).getAverageValue();
}
if (Utils.tryParseFloat(av1) && Utils.tryParseFloat(av2) && Utils.tryParseFloat(errorMargin)) {
if (Utils.FloatEqualTo(Utils.convertFloat(av1), Utils.convertFloat(av2), Utils.convertFloat(errorMargin))) {
similarity++;
}
} // Dealing with string values: Only accepting complete string match
else if (av1.equalsIgnoreCase(av2)) {
similarity++;
}
// TODO: Deal with time/date
// Need to read from vertex.getTimeString()
}
return similarity;
}
/**
* Function to combine two vertices
*
* @param v1 is the first vertex
* @param v2 is the second vertex
* @return the combined vertex
*/
public Vertex combineVertices(Vertex v1, Vertex v2) {
Vertex combinedVertex = null;
if (v1 instanceof ActivityVertex) {
combinedVertex = new ActivityVertex(v1.getID(), v1.getLabel(), v1.getTimeString());
} else if (v1 instanceof EntityVertex) {
combinedVertex = new EntityVertex(v1.getID(), v1.getLabel(), v1.getTimeString());
} else {
combinedVertex = new AgentVertex(v1.getID(), v1.getLabel(), v1.getTimeString());
}
// Add all attributes from v1
combinedVertex.addAllAttributes(v1.attributes);
// Now add/update all attributes from v1 to combinedVertex
for (GraphAttribute att : v2.getAttributes()) {
if (combinedVertex.attributes.containsKey(att.getName())) {
GraphAttribute temporary = combinedVertex.attributes.get(att.getName());
temporary.updateAttribute(att.getAverageValue());
combinedVertex.attributes.put(att.getName(), temporary);
} else {
combinedVertex.attributes.put(att.getName(), new GraphAttribute(att.getName(), att.getAverageValue()));
}
}
// Update ID and Label
combinedVertex.setID(combinedVertex.getID() + "," + v2.getID());
if(!combinedVertex.getLabel().equalsIgnoreCase(v2.getLabel()))
combinedVertex.setLabel(combinedVertex.getLabel() + "," + v2.getLabel());
// TODO: Update time
// combinedVertex.setTime(null);
combinedVertexList.put(v1.getID(), combinedVertex);
combinedVertexList.put(v2.getID(), combinedVertex);
return combinedVertex;
}
/**
* Method to add a vertex in the combined graph
*
* @param vertex is the vertex to be added
*/
public void addVertex(Vertex vertex) {
if (!vertexList.containsKey(vertex.getID())) {
vertexList.put(vertex.getID(), vertex);
} else {
vertex.setID(vertex.getID() + "_" + vertexID++);
vertexList.put(vertex.getID(), vertex);
}
}
/**
* Method to add vertices from a graph to the combined graph
*
* @param vertices is the graph that contains the vertices to be added
*/
public void addVertices(Collection<Vertex> vertices) {
for (Vertex vertex : vertices) {
// Add only the vertices that were not used to generate a combined vertex
if (!combinedVertexList.containsKey(((Vertex) vertex).getID())) {
addVertex((Vertex) vertex);
}
}
}
/**
* Function to update edges that has a vertex as source or target which was
* combined
*
* @param edges is the list of edges to be updated
* @return a new list of updated edges
*/
public Collection<Edge> updateEdges(Collection<Edge> edges) {
Collection<Edge> newEdges = new ArrayList<Edge>();
for (Edge edge : edges) {
Edge updatedEdge = edge;
boolean source = false;
boolean target = false;
if (combinedVertexList.containsKey(edge.getSource().getID())) {
updatedEdge.setSource(combinedVertexList.get(edge.getSource().getID()));
source = true;
}
if (combinedVertexList.containsKey(edge.getTarget().getID())) {
updatedEdge.setTarget(combinedVertexList.get(edge.getTarget().getID()));
target = true;
}
// Add the edge
newEdges.add(updatedEdge);
// If both the source and target of an edge were modified, than it will generate duplicates when updating both graphs
// because both extremes were updated
// if (source && target) {
// duplicateEdges.put(updatedEdge.getType() + updatedEdge.getSource().getID() + updatedEdge.getTarget().getID(), updatedEdge);
// }
}
return newEdges;
}
/**
* Method to add an edge in the combined graph
*
* @param edge is the edge to be added
*/
public void addEdge(Edge edge) {
if (!edgeList.containsKey(edge.getID())) {
edgeList.put(edge.getID(), edge);
} else { // Conflict ID, need to change the edge ID
edge.setID(edge.getID() + "_" + edgeID++);
edgeList.put(edge.getID(), edge);
}
}
/**
* Method to add edges from a Graph in the combined graph
*
* @param edges
*/
public void addEdges(Collection<Edge> edges) {
for (Edge edge : edges) {
addEdge(edge);
}
}
/**
* Method to remove duplicate or similar edges from the combined graph
*/
public void removeDuplicateEdges() {
// Code to combine similar edges from edgeList
Collection<Edge> values = new ArrayList<Edge>();
values.addAll(edgeList.values());
duplicateEdges = new HashMap<String, Edge>();
for (Edge e1 : values) {
for (Edge e2 : values) {
if (!(duplicateEdges.containsKey(e1.getID()) && duplicateEdges.containsKey(e2.getID()))) {
if(!e1.getID().equalsIgnoreCase(e2.getID())) {
if(e1.getType().equalsIgnoreCase(e2.getType())) {
if(e1.getSource().getID().equalsIgnoreCase(e2.getSource().getID())) {
if(e1.getTarget().getID().equalsIgnoreCase(e2.getTarget().getID())) {
edgeList.remove(e2.getID());
duplicateEdges.put(e1.getID(), e1);
duplicateEdges.put(e2.getID(), e2);
}
}
}
}
}
}
}
}
/**
* Method to return the combined graph's edge collection
*
* @return edges from the combined graph
*/
public Collection<Edge> getEdges() {
return edgeList.values();
}
/**
* Method to return the combined graph
*
* @return the combined graph
*/
public DirectedGraph<Vertex, Edge> getCombinedGraph() {
DirectedGraph<Vertex, Edge> combinedGraph = new DirectedSparseMultigraph<Vertex, Edge>();
removeDuplicateEdges();
for (Edge edge : this.getEdges()) {
combinedGraph.addEdge(edge, edge.getSource(), edge.getTarget());
}
return combinedGraph;
}
}
| [
"[email protected]"
]
| |
45a2b0ec744b388f963b39330fc66700d93fac5e | b82e638ab87f9751b6bc9787467e8193eb1e5d72 | /src/main/java/obiektowe/Sala.java | 6dd94f51860d0f4c836406d700a4386f4b52c9ac | []
| no_license | programistaASP/dzien4 | cb993cdc2332a5734b48e7e4a480d57e43ac1f66 | 66fbe341e64b63024ebada9d37cd9c756247f820 | refs/heads/master | 2020-06-04T19:52:59.373619 | 2019-07-14T07:19:18 | 2019-07-14T07:19:18 | 192,169,480 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,065 | java | package obiektowe;
public class Sala {
int powierzchnia ;
int liczbaKrzesel;
int liczbaBiurek;
int iloscLamp;
int liczbaOkien;
boolean czyJestKlima;
boolean czyJestRzutnik;
boolean czySalaJestWolna;
public Sala(int powierzchnia, int liczbaKrzesel, int liczbaBiurek, int iloscLamp, int liczbaOkien, boolean czyJestKlima, boolean czyJestRzutnik, boolean czySalaJestWolna) {
this.powierzchnia = powierzchnia;
this.liczbaKrzesel = liczbaKrzesel;
this.liczbaBiurek = liczbaBiurek;
this.iloscLamp = iloscLamp;
this.liczbaOkien = liczbaOkien;
this.czyJestKlima = czyJestKlima;
this.czyJestRzutnik = czyJestRzutnik;
this.czySalaJestWolna = czySalaJestWolna;
}
public void opisSali() {
System.out.println("Sala ma " + powierzchnia + " m2 " + liczbaKrzesel + " krzeseł "
+ liczbaBiurek + " biurek " + "czy ma Klime " + czyJestKlima + " czy ma Rzutnik "
+ czyJestRzutnik + " czy jest Wolna " + czySalaJestWolna);
}
}
| [
"[email protected]"
]
| |
f645f3774dc5ef1325ffdb6466069bebe31f815c | f3f63511b62bc98eb0815fff931a79cfef0816fa | /src/main/java/by/molchanov/humanresources/exception/CustomExecutorException.java | 4ca556392e58f48c9df0863659af82580c9fdb5a | []
| no_license | VladMolchanov/Molchanov_Vlad_FT_HR | 63de0cab59cb2795ec23b25528325f0693c31997 | b82486e5e10c98c730f0f7e36bc12ec0f3b54e39 | refs/heads/master | 2020-03-18T01:14:14.888574 | 2018-05-31T08:25:31 | 2018-05-31T08:25:31 | 134,133,695 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 773 | java | package by.molchanov.humanresources.exception;
/**
* Class {@link CustomExecutorException} is used to store service level exceptions.
*
* @author Molchanov Vladislav
* @see Exception
*/
public class CustomExecutorException extends Exception {
public CustomExecutorException() {
}
public CustomExecutorException(String message) {
super(message);
}
public CustomExecutorException(String message, Throwable cause) {
super(message, cause);
}
public CustomExecutorException(Throwable cause) {
super(cause);
}
public CustomExecutorException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
super(message, cause, enableSuppression, writableStackTrace);
}
}
| [
"[email protected]"
]
| |
b5ef4cf4730555c374639b1ca3d2f8db0f54b2e7 | 16a3610cda4afe9ebf4a1ed45e57cddd6b0a768b | /src/main/java/gradingTools/comp790Colab/assignment1/testcases/CollaborativeInputPromptTestCase.java | a3be112f83cdbc239f4bdb28cd8c84a31e71e662 | []
| no_license | jphong89/Grader | f558299712313a15078ae14be745e18f338b2ab8 | 8464b331eec46f1f12b74e0d6f895ce2b95f576d | refs/heads/master | 2020-02-26T13:56:46.118821 | 2014-12-05T01:48:46 | 2014-12-05T01:48:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 7,485 | java | package gradingTools.comp790Colab.assignment1.testcases;
import java.util.HashMap;
import java.util.Map;
import util.tags.DistributedTags;
import framework.execution.NotRunnableException;
import framework.execution.RunningProject;
import framework.grading.testing.BasicTestCase;
import framework.grading.testing.NotAutomatableException;
import framework.grading.testing.NotGradableException;
import framework.grading.testing.TestCaseResult;
import framework.project.Project;
import gradingTools.utils.RunningProjectUtils;
public class CollaborativeInputPromptTestCase extends BasicTestCase {
protected boolean client1HasInitialIntPrompt;
protected boolean client2HasInitialDoublePrompt ;
protected boolean client1HasInitialDoublePrompt ;
protected boolean client2HasInitialIntPrompt ;
protected StringBuffer client1NoInputOutput, client2NoInputOutput;
protected RunningProject noInputRunningProject;
protected String noInputPrompt;
public CollaborativeInputPromptTestCase() {
super("Prompt printer test case");
}
private TestCaseResult testForIntegerPrompt(StringBuffer output) {
if (output != null && output.toString().trim().toLowerCase().contains("int"))
return pass();
else
return fail("Program does not contain prompt for integer");
}
private TestCaseResult testForDoublePrompt(StringBuffer output) {
// converting twice to lower case!
if (output != null && output.toString().toLowerCase().contains("decimal") || output.toString().toLowerCase().contains("double"))
return pass();
else
return fail("Program does not contain prompt for double");
}
public static RunningProject runAliceBobProject(Project project, int timeout, Integer anInteger, Double aDouble) {
Map<String, String> processToInput = new HashMap();
if (anInteger != null)
processToInput.put(DistributedTags.CLIENT_1, RunningProjectUtils.toInputString(anInteger.toString()));
if (aDouble != null)
processToInput.put(DistributedTags.CLIENT_2, RunningProjectUtils.toInputString(aDouble.toString()));
return RunningProjectUtils.runProject(project, timeout, processToInput);
}
public static RunningProject runAliceBobProject(Project project, int timeout, Double aDouble) {
return runAliceBobProject(project, timeout, null, aDouble);
}
public static RunningProject runAliceBobProject(Project project, int timeout, Integer anInteger) {
return runAliceBobProject(project, timeout, anInteger, null);
}
public static RunningProject runAliceBobProject(Project project, int timeout) {
return runAliceBobProject(project, timeout, null, null);
}
protected void runProjectAndGatherOutputStats(Project project) {
// Get the output when we have no input from the user
noInputRunningProject = runAliceBobProject(project, 1);
noInputPrompt = noInputRunningProject.await();
Map<String, StringBuffer> aProcessToOutput = noInputRunningProject.getProcessOutput();
client1NoInputOutput = aProcessToOutput.get(DistributedTags.CLIENT_1);
client2NoInputOutput = aProcessToOutput.get(DistributedTags.CLIENT_2);
client1HasInitialIntPrompt = testForIntegerPrompt(client1NoInputOutput).getPercentage() > 0;
client2HasInitialDoublePrompt = testForDoublePrompt(client2NoInputOutput).getPercentage() > 0;
client1HasInitialDoublePrompt = testForDoublePrompt(client1NoInputOutput).getPercentage() > 0;
client2HasInitialIntPrompt = testForIntegerPrompt(client2NoInputOutput).getPercentage() > 0;
}
@Override
public TestCaseResult test(Project project, boolean autoGrade) throws NotAutomatableException,
NotGradableException {
try {
runProjectAndGatherOutputStats(project);
// // Get the output when we have no input from the user
// noInputRunningProject = runAliceBobProject(project, 1);
// String noInputPrompt = noInputRunningProject.await();
// Map<String, StringBuffer> aProcessToOutput = noInputRunningProject.getProcessOutput();
// client1NoInputOutput = aProcessToOutput.get(DistributedTags.CLIENT_1);
// client2NoInputOutput = aProcessToOutput.get(DistributedTags.CLIENT_2);
// client1HasInitialIntPrompt = testForIntegerPrompt(client1NoInputOutput).getPercentage() > 0;
// client2HasInitialDoublePrompt = testForDoublePrompt(client2NoInputOutput).getPercentage() > 0;
// client1HasInitialDoublePrompt = testForDoublePrompt(client1NoInputOutput).getPercentage() > 0;
// client2HasInitialIntPrompt = testForIntegerPrompt(client2NoInputOutput).getPercentage() > 0;
boolean samePromptForBoth = (client1HasInitialIntPrompt && client1HasInitialDoublePrompt) ||
(client2HasInitialIntPrompt && client2HasInitialDoublePrompt);
boolean hasInitialIntPrompt = client1HasInitialIntPrompt || client2HasInitialIntPrompt;
boolean hasInitialDoublePrompt = client1HasInitialDoublePrompt || client2HasInitialDoublePrompt;
// If we have not seen prompts for ints or doubles, check if they
// show up after giving input
// forget this,too tedious, and no penalty for prompts appearing late in Jacob's test
if (!client1HasInitialIntPrompt && !client2HasInitialDoublePrompt && !client1HasInitialDoublePrompt && !client2HasInitialIntPrompt) {
}
//
// // Get the output when we have integer input from the user
// RunningProject integerInputRunningProject = runAliceBobProject(project, 1,
// 1);
// String integerInputPrompt = integerInputRunningProject.await();
// integerInputPrompt = integerInputPrompt.substring(noInputPrompt.length());
//
// // Get the output when we have double input from the user
// RunningProject doubleInputRunningProject = runAliceBobProject(project, 1,
// 1.4);
// String doubleInputPrompt = doubleInputRunningProject.await();
// doubleInputPrompt = doubleInputPrompt.substring(noInputPrompt.length());
//
// // See if the initial prompt is an int or double prompt
// boolean hasInitialIntPrompt = testForIntegerPrompt(noInputPrompt).getPercentage() > 0;
// boolean hasInitialDoublePrompt = testForDoublePrompt(noInputPrompt).getPercentage() > 0;
// boolean samePromptForBoth = hasInitialIntPrompt && hasInitialDoublePrompt;
//
// // If we have not seen prompts for ints or doubles, check if they
// // show up after giving input
// if (!hasInitialIntPrompt) {
// hasInitialIntPrompt = testForIntegerPrompt(doubleInputPrompt).getPercentage() > 0;
// }
// if (!hasInitialDoublePrompt) {
// hasInitialDoublePrompt = testForDoublePrompt(integerInputPrompt).getPercentage() > 0;
// }
// Create an error message based on our findings
String errorMessage = "";
double credit = 1.0;
if (!hasInitialIntPrompt) {
errorMessage += "Program does not prompt for integer inputs\n";
credit = 0.5;
}
if (!hasInitialDoublePrompt) {
errorMessage += "Program does not prompt for double inputs\n";
if (credit == 0.5) {
credit = 0;
} else {
credit = 0.5;
}
}
if (samePromptForBoth) {
errorMessage = "Program does not prompt separately for int and double inputs\n";
credit = 0.5;
}
if (credit == 1.0) {
return pass();
} else if (noInputPrompt.length() == 0) {
throw new NotAutomatableException();
} else {
return partialPass(credit, errorMessage);
}
}
catch (NotRunnableException e) {
throw new NotGradableException();
}
}
}
| [
"[email protected]"
]
| |
30dd4b3e0bb16fb4023385176b81df0e47d581fd | e0332e9de547a8e788b906ba9c4c4cfca9bb138b | /src/api/java/vazkii/botania/api/brew/IBrewItem.java | d51c9fa44b9cc3a526e147249c311bb0272e2950 | [
"LicenseRef-scancode-unknown-license-reference",
"WTFPL"
]
| permissive | jss2a98aj/ForbiddenMagic | 37a8393829c0a8e0a812fbc231c695a14bdb30fb | 0e24ab65ba02ccc5b1222f76ab77d2e3988039d3 | refs/heads/master | 2021-01-07T02:08:09.984717 | 2020-05-11T11:37:00 | 2020-05-11T11:37:00 | 241,548,329 | 2 | 0 | WTFPL | 2020-02-19T06:21:57 | 2020-02-19T06:21:57 | null | UTF-8 | Java | false | false | 690 | java | /**
* This class was created by <Vazkii>. It's distributed as
* part of the Botania Mod. Get the Source Code in github:
* https://github.com/Vazkii/Botania
*
* Botania is Open Source and distributed under the
* Botania License: http://botaniamod.net/license.php
*
* File Created @ [Nov 1, 2014, 9:20:33 PM (GMT)]
*/
package vazkii.botania.api.brew;
import net.minecraft.item.ItemStack;
/**
* An Item that implements this is a Brew item, by which it contains
* a brew. This is only used in vanilla to prevent the brew item
* from going back into the brewery but other mods might use it for whatever.
*/
public interface IBrewItem {
public Brew getBrew(ItemStack brew);
}
| [
"[email protected]"
]
| |
2b070262fcaf1edc8bf08027cffe6b1ec6d8b946 | 122cb0c671112d9950ad061213635b28eeaa29c1 | /Assignment4/BURLAP/src/burlap/behavior/singleagent/vfa/rbf/RBFFeatureDatabase.java | 3cda93a0bbba5c50659bce5a3c001bfd7faa29f9 | [
"MIT"
]
| permissive | khushhallchandra/CS-7641 | 538c67b30a285b59e047d93eb577e38472c5cfe8 | a44a7d234c80e4f82ea8287be5a20a14116def80 | refs/heads/master | 2022-12-23T10:00:45.908330 | 2019-11-02T21:28:25 | 2019-11-02T21:28:25 | 164,804,901 | 0 | 0 | MIT | 2022-12-14T20:23:51 | 2019-01-09T06:44:41 | Jupyter Notebook | UTF-8 | Java | false | false | 5,621 | java | package burlap.behavior.singleagent.vfa.rbf;
import burlap.behavior.singleagent.vfa.ActionFeaturesQuery;
import burlap.behavior.singleagent.vfa.FeatureDatabase;
import burlap.behavior.singleagent.vfa.StateFeature;
import burlap.behavior.singleagent.vfa.ValueFunctionApproximation;
import burlap.behavior.singleagent.vfa.common.LinearVFA;
import burlap.oomdp.core.AbstractObjectParameterizedGroundedAction;
import burlap.oomdp.core.states.State;
import burlap.oomdp.singleagent.GroundedAction;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* A feature database of RBF units that can be used for linear value function approximation.
* This formalization for RBFs is general to any kind of state distance measure and can therefore
* potentially exploit the OO-MDP structure of states. However, if you plan on using Gaussian
* RBF units with standard Euclidean distance measures, it is recommended that you use the
* {@link burlap.behavior.singleagent.vfa.rbf.FVRBFFeatureDatabase} instead, as it will be
* more computationally efficient.
* @author Anubhav Malhotra and Daniel Fernandez and Spandan Dutta; modified by James MacGlashan
*
*/
public class RBFFeatureDatabase implements FeatureDatabase {
/**
* The list of RBF units in this database
*/
protected List<RBF> rbfs;
/**
* The number of RBF units, not including an offset unit.
*/
protected int nRbfs;
/**
* Specifies whether an offset RBF unit with a constant response value is included in the feature set.
*/
protected boolean hasOffset;
/**
* A map for returning a multiplier to the number of RBF state features for each action. Effectively
* this ensures a unique feature ID for each RBF for each action.
*/
protected Map<GroundedAction, Integer> actionFeatureMultiplier = new HashMap<GroundedAction, Integer>();
/**
* The next action RBF size multiplier to use for the next newly seen action.
*/
protected int nextActionMultiplier = 0;
/**
* Initializes with an empty list of RBF units.
* @param hasOffset if true, an offset RBF unit with a constant response value is included in the feature set.
*/
public RBFFeatureDatabase(boolean hasOffset){
rbfs = new ArrayList<RBF>();
this.hasOffset = hasOffset;
if(hasOffset)
{
nRbfs = 1;
}
}
/**
* Adds the specified RBF unit to the list of RBF units.
* @param rbf the RBF unit to add.
*/
public void addRBF(RBF rbf)
{
this.rbfs.add(rbf);
nRbfs++;
}
/**
* Adds all of the specified RBF units to this object's list of RBF units.
* @param rbfs the RBF units to add.
*/
public void addRBFs(List<RBF> rbfs){
this.nRbfs += rbfs.size();
this.rbfs.addAll(rbfs);
}
@Override
public List<StateFeature> getStateFeatures(State s)
{
List<StateFeature> rbfsf = new ArrayList<StateFeature>();
int id = 0;
for(RBF r : rbfs)
{
double value = r.responseFor(s);
StateFeature sf = new StateFeature(id, value);
rbfsf.add(sf);
id++;
}
if(hasOffset)
{
StateFeature sf = new StateFeature(id, 1);
rbfsf.add(sf);
}
return rbfsf;
}
@Override
public List<ActionFeaturesQuery> getActionFeaturesSets(State s, List<GroundedAction> actions)
{
List<ActionFeaturesQuery> lstAFQ = new ArrayList<ActionFeaturesQuery>();
List<StateFeature> sfs = this.getStateFeatures(s);
for(GroundedAction ga : actions){
int actionMult = this.getActionMultiplier(ga);
int indexOffset = actionMult*this.nRbfs;
ActionFeaturesQuery afq = new ActionFeaturesQuery(ga);
for(StateFeature sf : sfs){
afq.addFeature(new StateFeature(sf.id + indexOffset, sf.value));
}
lstAFQ.add(afq);
}
return lstAFQ;
}
@Override
public void freezeDatabaseState(boolean toggle)
{
//do nothing
}
/**
* Creates and returns a linear VFA object over this RBF feature database.
* @param defaultWeightValue the default feature weight value to use for all features
* @return a linear VFA object over this RBF feature database.
*/
public ValueFunctionApproximation generateVFA(double defaultWeightValue)
{
return new LinearVFA(this, defaultWeightValue);
}
/**
* This method returns the action multiplier for the specified grounded action.
* If the action is not stored, a new action multiplier will created, stored, and returned.
* If the action is parameterized a runtime exception is thrown.
* @param ga the grounded action for which the multiplier will be returned
* @return the action multiplier to be applied to a state feature id.
*/
protected int getActionMultiplier(GroundedAction ga){
if(ga instanceof AbstractObjectParameterizedGroundedAction){
throw new RuntimeException("RBF Feature Database does not support actions with AbstractObjectParameterizedGroundedActions.");
}
Integer stored = this.actionFeatureMultiplier.get(ga);
if(stored == null){
this.actionFeatureMultiplier.put(ga, this.nextActionMultiplier);
stored = this.nextActionMultiplier;
this.nextActionMultiplier++;
}
return stored;
}
@Override
public int numberOfFeatures() {
if(this.actionFeatureMultiplier.size() == 0){
return this.nRbfs;
}
return this.nRbfs*this.nextActionMultiplier;
}
@Override
public RBFFeatureDatabase copy() {
RBFFeatureDatabase rbf = new RBFFeatureDatabase(this.hasOffset);
rbf.rbfs = new ArrayList<RBF>(this.rbfs);
rbf.nRbfs = this.nRbfs;
rbf.actionFeatureMultiplier = new HashMap<GroundedAction, Integer>(this.actionFeatureMultiplier);
rbf.nextActionMultiplier = this.nextActionMultiplier;
return rbf;
}
}
| [
"[email protected]"
]
| |
0caed5fad56dd5dbb0e2ac6b7a711639c4e66930 | a30713ec52b4cb787c2352e9a0e882d4cb491752 | /Java/CORBA Demo/HelloServer.java | c2020fcb51ade1d8194c340760c1033a757e14ca | []
| no_license | Virtuallified/1539049-PracticeFiles | e0d5d3ef8a87b83781f073534f8be32228cbbead | 373a4cd7d0bf834e2048e1b515d818f739d6a815 | refs/heads/main | 2023-07-29T01:42:57.033949 | 2021-09-18T19:50:43 | 2021-09-18T19:50:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,785 | java | import HelloApp.*;
import org.omg.CosNaming.*;
import org.omg.CosNaming.NamingContextPackage.*;
import org.omg.CORBA.*;
import org.omg.PortableServer.*;
import org.omg.PortableServer.POA;
import java.util.Properties;
class HelloImpl extends HelloPOA
{
private ORB orb;
public void setORB(ORB orb_val)
{
orb=orb_val;
}
public String sayHello()
{
return "\n hello world!! \n";
}
/*public void shutdown()
{
orb.shutdown(false);
}*/
}
public class HelloServer
{
public static void main(String args[])
{
try
{
//create and initialize the ORB
ORB orb=ORB.init(args,null);
//get reference to rootpoa & activate the POAManager
POA rootpoa=POAHelper.narrow(orb.resolve_initial_references("RootPOA"));
rootpoa.the_POAManager().activate();
//create servant & register it with the ORB
HelloImpl helloImpl=new HelloImpl();
helloImpl.setORB(orb);
//get object reference from servant
org.omg.CORBA.Object ref=rootpoa.servant_to_reference(helloImpl);
Hello href=HelloHelper.narrow(ref);
//get the root naming context
//NameService invokes the name service
org.omg.CORBA.Object objref=orb.resolve_initial_references("NameService");
//use NamingContextExt which is a part of InterOperable Naming Service(INS) specification
NamingContextExt ncRef=NamingContextExtHelper.narrow(objref);
//bind the object reference in naming
String name="Hello";
NameComponent path[] = ncRef.to_name(name);
ncRef.rebind(path,href);
System.out.println("Hello server ready and waiting ......");
//wait for invocations from the client
orb.run();
}
catch(Exception e)
{
System.err.println("Error : "+e);
e.printStackTrace(System.out);
}
System.out.println("HelloServer Exiting....");
}
} | [
"[email protected]"
]
| |
c47de37d3de54779854866fea52ad3ac1e6e2b28 | 3a7e157e1adb5559853d4f827489d41b23d39ec2 | /src/com/inventory/dto/SupplierDTO.java | 978431df4d564db4caef5821e03e878cb47db1b6 | []
| no_license | SheedyWonder/COSC457Project | 77d6eb042e7a958ff867c7a42f41b114816afa7f | 23d03260995997c0716607c94a58113b3a768c67 | refs/heads/master | 2022-06-19T08:48:02.719426 | 2020-05-12T04:04:32 | 2020-05-12T04:04:32 | 260,112,040 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,797 | java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.inventory.dto;
/**
*
* @author ADMIN
*/
public class SupplierDTO {
public int getSupplierId() {
return supplierId;
}
public void setSupplierId(int supplierId) {
this.supplierId = supplierId;
}
public String getSupplierCode() {
return supplierCode;
}
public void setSupplierCode(String suppliersCode) {
this.supplierCode = suppliersCode;
}
public String getName() {
return Name;
}
public void setName(String Name) {
this.Name = Name;
}
public String getLocation() {
return location;
}
public void setLocation(String location) {
this.location = location;
}
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public double getDebit() {
return debit;
}
public void setDebit(double debit) {
this.debit = debit;
}
public double getCredit() {
return credit;
}
public void setCredit(double credit) {
this.credit = credit;
}
public double getBalance() {
return balance;
}
public void setBalance(double balance) {
this.balance = balance;
}
private int supplierId;
private String supplierCode;
private String Name;
private String location;
private String phone;
private double debit;
private double credit;
private double balance;
}
| [
"[email protected]"
]
| |
d8448092ff1fd2f4a276654fc119be4699625077 | 4e31c3a3ba0c8c997b5377bf00f6cf52bba390a9 | /addbridge/src/ad/command/CommandFList.java | 5edb2fb090ad4c584f2e0f8ba108de75197d2078 | [
"MIT"
]
| permissive | minjsx/NCS-Project | ab2c05dbb29e2b31aca339630d2589501b8db006 | 1207ef0875652cda2a4440a3c1535c7afb3c5cc5 | refs/heads/master | 2020-05-16T01:38:18.416318 | 2019-04-25T10:02:04 | 2019-04-25T10:02:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,206 | java | package ad.command;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import ad.model.Creator;
import ad.model.CreatorDao;
import ad.model.CreatorException;
import ad.model.FPromotion;
import ad.model.FPromotionDao;
import ad.model.FPromotionException;
public class CommandFList implements Command {
private String next;
public CommandFList( String _next ) {
next = _next;
}
public String execute( HttpServletRequest request , HttpServletResponse response ) throws CommandException{
try{
int cno = request.getParameter("c_no") == null ? -1 : Integer.parseInt(request.getParameter("c_no"));
System.out.println("CommandFList::::" + cno);
if(cno != -1) {
List <FPromotion> fList = FPromotionDao.getInstance().favorList(cno);
request.setAttribute("favorList", fList);
}
else {
System.out.println("머냐");
}
}catch( FPromotionException ex ){
throw new CommandException("CommandList.java < 목록보기시 > " + ex.toString() );
} catch (NumberFormatException ex) {
throw new CommandException("CommandList.java < 목록보기시 > " + ex.toString() );
}
return next;
}
}
| [
"[email protected]"
]
| |
4dfbaa17def3315ec44387c8401d24eb488f92ff | 113b7302c94229b6f0e4886b9d3774addef708f3 | /src/Util.java | e2cd622f17a3489a6d6de2e9aaddac4933845496 | [
"MIT"
]
| permissive | matheusalanojoenck/arbitragem_grafos | cc3119b0f040442e5638d625883d333806769860 | a28b9e9b24e8a3e30fc5180f24247b8c091a37aa | refs/heads/master | 2020-05-31T10:15:32.936557 | 2019-06-17T12:45:45 | 2019-06-17T12:45:45 | 190,235,673 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,804 | java | import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.LinkedList;
import java.util.Scanner;
/**
*
* @author mathe
*/
public class Util {
private LinkedList<LinkedList<Float>> listaArestas = new LinkedList<>();
private int maiorVertice = 0;
public static void pausa(){
System.out.println("Aperte 'Enter' para continuar...");
try{
System.in.read();
}catch (IOException e){
System.out.println(e.toString());
}
}
public boolean initDado(){
Scanner scanner;
try {
System.out.print("Nome do arquivo: ");
scanner = new Scanner(System.in);
String nomeArquivo = scanner.nextLine();
scanner = new Scanner(new File("dados/"+ nomeArquivo + ".txt"));
} catch (FileNotFoundException ex) {
System.err.println(ex.toString());
return false;
}
listaArestas = new LinkedList<>();
for(int index = 0; scanner.hasNext(); index++){
listaArestas.add(new LinkedList<>());
int origem = scanner.nextInt();
listaArestas.get(index).add((float) origem);
if (origem > maiorVertice) maiorVertice = origem;
int destino = scanner.nextInt();
listaArestas.get(index).add((float) destino);
if (destino > maiorVertice) maiorVertice = destino;
float peso = scanner.nextFloat();
listaArestas.get(index).add((float) (Math.log10(peso) * -1));
}
return true;
}
public LinkedList<LinkedList<Float>> getListaArestas(){
return listaArestas;
}
public int getQuantidadeVertices(){
return (maiorVertice + 1);
}
}
| [
"[email protected]"
]
| |
5467ae00dc27f1fd2c8f578a05c2f44913913a2e | 2048b430405292b7328509bd1189068da74dd1f1 | /Assignment1/src/com/swagatika/beans/Utility.java | a806d2b2ebc6fe2a94d47de2fd8d28565a40c26a | []
| no_license | SwagatikaMahapatra17/SwagatikaMahapatra17 | 9b3a3fb940d16ed3dfdc5fc425c8e34abf689187 | 79e823772a47742127c708db156d52a010e8ec0e | refs/heads/master | 2023-06-27T03:59:40.730349 | 2021-07-31T13:15:55 | 2021-07-31T13:15:55 | 387,159,156 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 162 | java | package com.swagatika.beans;
import java.util.Date;
public class Utility
{
public Date getsystemDate()
{
return new Date();
}
}
| [
"[email protected]"
]
| |
a1577bed99fd4f411b0c9ea8d9e19f57c0c2ded7 | 869118f7dce36c030a34abb92714fe2721c4b243 | /src/main/java/slimeknights/tmechworks/api/disguisestate/HoneyLevelDisguiseState.java | 3887dbb37a226d4ee0f271cb5067a884df6bc113 | [
"CC-BY-3.0",
"MIT"
]
| permissive | NeverMall/TinkersMechworks | 1040934c22962eb807307d574da580266939a571 | 83a830bbe60c188c65973005ceec0b4373e45922 | refs/heads/master | 2022-11-15T15:22:50.954113 | 2020-06-06T08:15:46 | 2020-06-06T08:15:46 | 273,431,716 | 0 | 0 | null | 2020-06-19T07:26:11 | 2020-06-19T07:26:10 | null | UTF-8 | Java | false | false | 576 | java | package slimeknights.tmechworks.api.disguisestate;
import com.google.common.collect.ImmutableSet;
import net.minecraft.state.properties.BlockStateProperties;
import java.util.Collection;
public class HoneyLevelDisguiseState extends BasicDisguiseState<Integer> {
public HoneyLevelDisguiseState() {
super(BlockStateProperties.HONEY_LEVEL, 1);
}
@Override
public Collection<Integer> getAllowedValues() {
return ImmutableSet.of(0, 5);
}
@Override
public int getIconFor(Integer value) {
return value == 0 ? 24 : 25;
}
}
| [
"[email protected]"
]
| |
19659071dffd00a62b1c8fde711cca7719e0d7b9 | 1a7ef4bfa2f7d0cd25d479b47cfa66a9bb5af083 | /widgets/src/main/java/com/julun/widgets/refreshable/RefreshableView.java | 5bf1728e609cb8e09344d9dddf9a33aa51838163 | [
"Apache-2.0"
]
| permissive | nirack/julun | a8cc89906467fd73f37daed6b3e3620791a2c8f2 | 6197713cb6939c68e4a4ff656bdcc756be54a1a3 | refs/heads/master | 2021-01-10T06:23:07.543143 | 2015-12-28T02:05:29 | 2015-12-28T02:05:29 | 47,090,060 | 1 | 1 | null | null | null | null | UTF-8 | Java | false | false | 159 | java | package com.julun.widgets.refreshable;
/**
* Created by Administrator on 2015-12-04.
*/
public interface RefreshableView {
public void refreshMe();
}
| [
"[email protected]"
]
| |
9054a71f732f4070ac71c8f32b5a1d11d1ba6838 | 5f2809eb437d973f8823fe0f56e974ac3045202a | /src/chess/ChessPiece.java | 9400354d019172891301ca4ae23717b321e69aa0 | []
| no_license | gleywsonribeiro/chess-system-java | a3bc5248f5f09dcb8a6f85728efdea724705a793 | c865abc2d12c90fa6f2d66f05889875d8691e381 | refs/heads/master | 2020-09-15T11:36:35.569024 | 2019-12-13T16:57:54 | 2019-12-13T16:57:54 | 223,433,449 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,086 | java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package chess;
import boardgame.Board;
import boardgame.Piece;
import boardgame.Position;
/**
*
* @author gleywson
*/
public abstract class ChessPiece extends Piece {
private Color color;
private int moveCount;
public ChessPiece(Board board, Color color) {
super(board);
this.color = color;
}
public Color getColor() {
return color;
}
public int getMoveCount() {
return moveCount;
}
public void increaseMoveCount() {
moveCount++;
}
public void decreaseMoveCount() {
moveCount--;
}
public ChessPosition getChessPosition() {
return ChessPosition.fromPosition(position);
}
protected boolean isThereOpponentPiece(Position position) {
ChessPiece p = (ChessPiece) getBoard().piece(position);
return p != null && p.getColor() != color;
}
}
| [
"[email protected]"
]
| |
218972d800177b2702ce51417056d34970fca6cb | 20815417a315feb4c9622d1d1548d19bde75104a | /src/com/miglab/miyo/adapter/MusicTypeAdapter.java | d526040a93c965e141df75c7ac85b6608a0001ee | []
| no_license | smartdata-x/miyo | aedc140265da26d0882ee19f08e82cf0c639e280 | 7234ccc63cf72c07e3113fd88556ca6bfb127977 | refs/heads/master | 2020-12-14T09:50:41.220693 | 2015-06-29T15:37:41 | 2015-06-29T15:37:41 | 35,019,646 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,524 | java | package com.miglab.miyo.adapter;
import android.app.Activity;
import android.graphics.drawable.AnimationDrawable;
import android.os.Handler;
import android.util.TypedValue;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import com.miglab.miyo.R;
import com.miglab.miyo.entity.MusicType;
import com.miglab.miyo.net.DimensionFMTask;
import com.miglab.miyo.ui.MainActivity;
import java.util.List;
/**
* Created by fanglei
* Email: [email protected]
* Date: 2015/5/18.
*/
public class MusicTypeAdapter extends BaseAdapter {
private Activity ac;
private List<MusicType> list;
private MusicTypeHolder holder;
private Handler handler;
private int typePosition = -1;
public MusicTypeAdapter(Activity ac,List<MusicType> list, Handler handler){
this.ac = ac;
this.list = list;
this.handler = handler;
}
@Override
public int getCount() {
return list.size();
}
@Override
public Object getItem(int position) {
return list.get(position);
}
@Override
public long getItemId(int position) {
return list.get(position).getId();
}
@Override
public boolean isEnabled(int position) {
if (list.get(position).getIsTitle()) {
return false;
} else {
return true;
}
}
@Override
public View getView(int position, View convertView, ViewGroup parent) {
if(convertView == null) {
holder = new MusicTypeHolder();
convertView = holder.parent;
convertView.setTag(holder);
}else{
holder = (MusicTypeHolder) convertView.getTag();
}
holder.tv_name.setText(list.get(position).getName());
if(list.get(position).getIsTitle()) {
holder.parent.setBackgroundColor(ac.getResources().getColor(R.color.bg_my_fm_title));
holder.tv_name.setTextColor(ac.getResources().getColor(R.color.my_fm_title_textColor));
holder.tv_name.setTextSize(TypedValue.COMPLEX_UNIT_SP,
14);
}else {
holder.parent.setBackgroundResource(R.drawable.music_type_item_selector);//ac.getResources().getColor(R.color.bg_my_fm_item));
holder.tv_name.setTextColor(ac.getResources().getColor(R.color.my_fm_item_textColor));
holder.tv_name.setTextSize(TypedValue.COMPLEX_UNIT_SP,
16);
}
if(typePosition != -1 && typePosition == position){
AnimationDrawable animationDrawable= (AnimationDrawable) holder.iv_playing.getDrawable();
holder.iv_playing.setVisibility(View.VISIBLE);
if(!animationDrawable.isRunning())
animationDrawable.start();
}else{
holder.iv_playing.setVisibility(View.GONE);
}
return convertView;
}
public void setShowPosition(int position) {
this.typePosition = position;
}
private class MusicTypeHolder {
public View parent;
public TextView tv_name;
public ImageView iv_playing;
public MusicTypeHolder() {
parent = LayoutInflater.from(ac).inflate(R.layout.ly_music_type_item,null);
tv_name = (TextView) parent.findViewById(R.id.name);
iv_playing = (ImageView) parent.findViewById(R.id.playing);
parent.setTag(this);
}
}
}
| [
"[email protected]"
]
| |
4ea755ee1540541ed440069fb22fa1f89aacc485 | 8b1d24df906658f83db36b0c8b2287b34e3a9f00 | /backend/src/main/java/com/shimys/backend/controller/AssignmentController.java | 8c7e1e88770fa2ca667d0856c4bd9a4dd03f27cb | []
| no_license | Shim0209/thechallenge | d3f898a1c2c0990e42ac809fa440919dc6c40776 | 813eb98ed47d84be4ad1354c1f9307b9037eae67 | refs/heads/main | 2023-08-01T01:04:47.208643 | 2021-09-13T12:19:08 | 2021-09-13T12:19:08 | 397,567,665 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,168 | java | package com.shimys.backend.controller;
import com.shimys.backend.domain.assignment.AssignmentQuiz;
import com.shimys.backend.service.AssignmentService;
import com.shimys.backend.util.dto.CommonResponseDto;
import com.shimys.backend.util.dto.challenge.QuizCreateDto;
import lombok.RequiredArgsConstructor;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RequiredArgsConstructor
@RestController
@RequestMapping("/assignment")
public class AssignmentController {
private final AssignmentService assignmentService;
@PostMapping("/quiz/create")
public ResponseEntity<?> createQuizAndAnswer(@RequestBody QuizCreateDto quizCreateDto){
AssignmentQuiz assignmentQuizEntity = assignmentService.퀴즈생성(quizCreateDto);
return new ResponseEntity<>(new CommonResponseDto<>(1, "퀴즈 생성 성공", assignmentQuizEntity), HttpStatus.CREATED);
}
}
| [
"[email protected]"
]
| |
ca96c40e0b61078694e1352b598c4d4387681a41 | 1f213953069fbffca06cf0e12e5e97c7150d9e90 | /Online/src/com/macbook/core/service/RegisterService.java | ce64c977eb54496ad3e44dd97be5e6ac627c8b42 | [
"MulanPSL-2.0",
"LicenseRef-scancode-mulanpsl-2.0-en",
"LicenseRef-scancode-unknown-license-reference"
]
| permissive | lgy-2017/octopus | dec2950c09069347ae6e47a3cfb0b79a1e689ab5 | f99d4bb9bf727ef5e87603835a3ac683ae7537f9 | refs/heads/master | 2023-04-02T00:04:14.503118 | 2021-04-06T05:56:26 | 2021-04-06T05:56:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 386 | java | package com.macbook.core.service;
import com.macbook.core.pojo.User;
/**
* @author maweihong
*/
public interface RegisterService {
/**
* 通过学号/工号查询用户
* @param sno
* @param phone
* @return
*/
public User findUserBySno(String sno) ;
/**
* 服务层添加用户
* @param user
* @return
*/
public int createUser(User user);
}
| [
"[email protected]"
]
| |
2613419b796705069dd458315f7dd7d54bf2b65a | ea9c947eceac89aede7e8049477e619582e3b918 | /src/com/etc/pdca/service/DepartmentService.java | 6525202c48e163d2e754a182f1dfdcacdfa79401 | []
| no_license | yuyuhupo/PDCA | dec4f346a8006ae9d29e2917dfb82f9a3894ea92 | 8181f492aef2eed75e2bf905d3e2403066612f53 | refs/heads/master | 2020-12-03T22:10:14.882159 | 2016-01-11T12:44:58 | 2016-01-11T12:44:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,223 | java | package com.etc.pdca.service;
import java.util.List;
import org.apache.ibatis.session.SqlSession;
import com.etc.pdca.dao.DepartmentDao;
import com.etc.pdca.entity.Department;
import com.etc.pdca.util.MybatisUtil;
public class DepartmentService {
private SqlSession sqlSession;
private DepartmentDao departmentDao;
public DepartmentService() {
sqlSession = MybatisUtil.openSession();
departmentDao = sqlSession.getMapper(DepartmentDao.class);
}
public void addDepartment(Department department) {
departmentDao.addDepartment(department);
sqlSession.commit();
}
public void updateDepartment(Department department) {
departmentDao.updateDepartment(department);
sqlSession.commit();
}
public void deleteDepartment(int id) {
departmentDao.deleteDepartment(id);
sqlSession.commit();
}
public List<Department> findDepartmentsByCondition(String condition) {
return departmentDao.getDepartmentsByCriteria(condition);
}
public List<Department> selectDepartment(){
List<Department> list = departmentDao.selectDepartment();
return list;
}
@Override
protected void finalize() throws Throwable {
// TODO Auto-generated method stub
super.finalize();
sqlSession.close();
}
}
| [
"[email protected]"
]
| |
eaabe42a1488fee52d17e8b3bc9eded7dabb0c62 | 79a70a7bf6c7898a41e293bca6ae1c250a35e56f | /HybridframeworkAmazonFinal/HybridframeworkAmazon/src/Generic/Constant.java | e8b7f7d6d270ac8a447bdfe32ed5878107d3faff | []
| no_license | hardikshah691/HybridframeworkAmazonFinal | 3ecaec29aa83cb80e9b4723aba26d1da4f472170 | e79b3b98a8dd389575631eb8f3968b4215d95b1b | refs/heads/master | 2020-04-06T22:59:27.375690 | 2018-11-16T10:54:38 | 2018-11-16T10:54:38 | 157,854,126 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 225 | java | package Generic;
public interface Constant {
String key="webdriver.chrome.driver";
String value="./software/chromedriver.exe";
String excelpath="./datasheets/Test.xlsx";
String propertyfilepath="./file.properties";
}
| [
"[email protected]"
]
| |
3e69f7e46684e011573d946015565fc078f7e685 | c41905bb7718a2714f55cb9c17f4cd85e67ca970 | /person-service/src/main/java/pl/piomin/sonar/controller/PersonController.java | 5302babf533c03d9dad74bd1a94ef942ff6258f1 | []
| no_license | poornic/samplejavasonar_Azure | 87674e69d8de5b0911379e179dd0d1a080fa1f4b | 3fa343e64156c4b54543cef3b45f3185b37b90a7 | refs/heads/main | 2022-12-19T02:53:32.890240 | 2020-10-02T15:50:11 | 2020-10-02T15:50:11 | 300,663,826 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,130 | java | package pl.piomin.sonar.controller;
import java.util.Set;
import java.util.logging.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RestController;
import pl.piomin.sonar.exception.AuthenticationException;
import pl.piomin.sonar.exception.EntityNotFoundException;
import pl.piomin.sonar.model.Person;
import pl.piomin.sonar.model.PersonCategory;
import pl.piomin.sonar.model.data.PersonRepository;
import pl.piomin.sonar.model.data.UserRepository;
import pl.piomin.sonar.service.AuthorizationService;
@RestController
/**
* Main controller
* @author minkowp
*
*/
public class PersonController {
private static final Logger LOGGER = Logger.getLogger(PersonController.class.getName());
private static final int THRESHOLD_KID = 11;
private static final int THRESHOLD_TEENAGER = 18;
private static final int THRESHOLD_GROWN = 60;
@Autowired
AuthorizationService authService;
@Autowired
PersonRepository repository;
@Autowired
UserRepository userRepository;
@GetMapping
/**
* Returning all persons
* @param auth
* @return
* @throws AuthenticationException
*/
public Set<Person> findAll(@RequestHeader("Authorization") String auth) throws AuthenticationException {
LOGGER.info("Person.findAll");
authService.authorize(auth);
return repository.findAll();
}
@GetMapping("/person/lastName/{lastName}")
/**
* Returning all persons with lastName
* @param lastName
* @param auth
* @return
* @throws AuthenticationException
*/
public Set<Person> findByLastName(@PathVariable("lastName") String lastName,
@RequestHeader("Authorization") String auth) throws AuthenticationException {
LOGGER.info(() -> "Person.findByLastName: " + lastName);
authService.authorize(auth);
return repository.findByLastName(lastName);
}
@GetMapping("/person/name/{lastName}/{firstName}")
/**
* Returning all persons with lastName and firstName
* @param lastName
* @param firstName
* @param auth
* @return
* @throws AuthenticationException
*/
public Set<Person> findByName(@PathVariable("lastName") String lastName,
@PathVariable("firstName") String firstName, @RequestHeader("Authorization") String auth)
throws AuthenticationException {
LOGGER.info(() -> "Person.findByName: " + lastName + ", " + firstName);
authService.authorize(auth);
return repository.findByName(lastName, firstName);
}
@GetMapping("/person/{id}")
/**
* Returning person with id
* @param id
* @param auth
* @return
* @throws AuthenticationException
* @throws EntityNotFoundException
*/
public Person findById(@PathVariable("id") Integer id, @RequestHeader("Authorization") String auth)
throws AuthenticationException, EntityNotFoundException {
LOGGER.info(() -> "Person.findById: " + id);
authService.authorize(auth);
Person p = repository.findById(id);
if (p != null) {
final int years = (int) (System.currentTimeMillis() - p.getBirthDate().getTime())
/ (1000 * 60 * 60 * 24 * 365);
if (years < THRESHOLD_KID)
p.setCategory(PersonCategory.KID);
else if (years < THRESHOLD_TEENAGER)
p.setCategory(PersonCategory.TEENAGER);
else if (years < THRESHOLD_GROWN)
p.setCategory(PersonCategory.GROWN);
else
p.setCategory(PersonCategory.PENSIONARY);
return p;
} else {
throw new EntityNotFoundException("Person " + id + "nof found");
}
}
@PostMapping("/person")
/**
* Adding new person
* @param person
* @param auth
* @return
* @throws InvalidEntityException
* @throws AuthenticationException
*/
public Person add(Person person, @RequestHeader("Authorization") String auth)
throws AuthenticationException {
LOGGER.info(() -> "Person.add: " + person);
authService.authorize(auth);
return repository.add(person);
}
@PutMapping("/person")
/**
* Updating existing person
* @param person
* @param auth
* @return
* @throws InvalidEntityException
* @throws AuthenticationException
*/
public Person update(Person person, @RequestHeader("Authorization") String auth)
throws AuthenticationException {
LOGGER.info(() -> "Person.update: " + person);
authService.authorize(auth);
return repository.update(person);
}
@DeleteMapping("/person")
/**
* Removing person from repository
* @param person
* @param auth
* @throws AuthenticationException
*/
public void remove(Person person, @RequestHeader("Authorization") String auth) throws AuthenticationException {
LOGGER.info(() -> "Person.remove: " + person);
authService.authorize(auth);
repository.remove(person);
}
}
| [
"[email protected]"
]
| |
34253ea9ae6b2287e2aef79f7cd4d1d839e62a26 | c68591678ee22ae495a5943df82c37a0e1d296f4 | /src/main/java/com/zws/binlog/event/deserialization/StopEventDataDeserializer.java | 5c102701941f355675eb8927206e68ac5612c44f | []
| no_license | Zhangwusheng/netty-binlog | 0e0496342a288874b174cdf9c349c50ad5596bd5 | 7d8efb57e557377b56161c98ab50dd2e759fc629 | refs/heads/master | 2021-08-14T17:55:32.755719 | 2017-11-16T10:28:36 | 2017-11-16T10:28:36 | 105,278,054 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,045 | java | /*
* Copyright 2013 Patrick Prasse
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.zws.binlog.event.deserialization;
import com.zws.binlog.event.data.StopEventData;
import io.netty.buffer.ByteBuf;
/**
* @author <a href="mailto:[email protected]">Patrick Prasse</a>
*/
public class StopEventDataDeserializer implements EventDataDeserializer<StopEventData > {
public StopEventData deserialize ( ByteBuf msg ) {
StopEventData stopEventData = new StopEventData ( );
return stopEventData;
}
}
| [
"[email protected]"
]
| |
1109d285007f35b63c55789b7fca132027199282 | 3884897eead81af31b67b0ed9c8f10f47fd70fd8 | /src/main/java/ru/tenet/utility/Converter.java | 03e44b01c945d0fb7faddb755b8cfc5e8d28b2e7 | []
| no_license | RomanHi/client-Management-Company | ff62a7fee14c18ab0127b16cd8ff55c82e8fcf34 | 011f07cf719dd550e1e4abefd5d4f2d55b5ce1fd | refs/heads/master | 2020-03-19T00:05:23.165498 | 2018-06-05T15:18:25 | 2018-06-05T15:18:25 | 135,452,178 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,223 | java | package ru.tenet.utility;
import java.util.BitSet;
public class Converter {
public static int mergeTwoByteToInt(short leftNumber, short rightNumber) {
String left = Integer.toHexString(leftNumber);
String right = Integer.toHexString(rightNumber);
if (left.length() == 1) {
left = "0" + left;
}
if (right.length() == 1) {
right = "0" + right;
}
String str = "0x" + left + right;
return Integer.decode(str);
}
public static double mergeTwoByteToDouble(short leftNumber, short rightNumber) {
return Double.valueOf(leftNumber + "." + rightNumber);
}
public static double mergeOneByteToDouble(short number) {
String s = Integer.toHexString(number);
String leftNumber = s.substring(0, 1);
String rightNumber = s.substring(1);
return Double.valueOf(leftNumber + "." + rightNumber);
}
public static byte[] calculateCRC(byte[] data, int numberOfBytes, int startByte) {
byte[] auchCRCHi = new byte[]{0, -63, -127, 64, 1, -64, -128, 65, 1, -64, -128, 65, 0, -63, -127, 64, 1, -64, -128, 65, 0, -63, -127, 64, 0,
-63, -127, 64, 1, -64, -128, 65, 1, -64, -128, 65, 0, -63, -127, 64, 0, -63, -127, 64, 1, -64, -128, 65, 0, -63, -127, 64, 1, -64,
-128, 65, 1, -64, -128, 65, 0, -63, -127, 64, 1, -64, -128, 65, 0, -63, -127, 64, 0, -63, -127, 64, 1, -64, -128, 65, 0, -63, -127, 64, 1,
-64, -128, 65, 1, -64, -128, 65, 0, -63, -127, 64, 0, -63, -127, 64, 1, -64, -128, 65, 1, -64, -128, 65, 0, -63, -127, 64, 1, -64, -128, 65,
0, -63, -127, 64, 0, -63, -127, 64, 1, -64, -128, 65, 1, -64, -128, 65, 0, -63, -127, 64, 0, -63, -127, 64, 1, -64, -128, 65, 0, -63, -127, 64,
1, -64, -128, 65, 1, -64, -128, 65, 0, -63, -127, 64, 0, -63, -127, 64, 1, -64, -128, 65, 1, -64, -128, 65, 0, -63, -127, 64, 1, -64, -128, 65,
0, -63, -127, 64, 0, -63, -127, 64, 1, -64, -128, 65, 0, -63, -127, 64, 1, -64, -128, 65, 1, -64, -128, 65, 0, -63, -127, 64, 1, -64, -128, 65,
0, -63, -127, 64, 0, -63, -127, 64, 1, -64, -128, 65, 1, -64, -128, 65, 0, -63, -127, 64, 0, -63, -127, 64, 1, -64, -128, 65, 0, -63, -127, 64,
1, -64, -128, 65, 1, -64, -128, 65, 0, -63, -127, 64};
byte[] auchCRCLo = new byte[]{0, -64, -63, 1, -61, 3, 2, -62, -58, 6, 7, -57, 5, -59, -60, 4, -52, 12, 13, -51, 15, -49, -50, 14, 10, -54, -53, 11, -55, 9, 8, -56, -40, 24, 25, -39, 27, -37, -38, 26, 30, -34, -33, 31, -35, 29, 28, -36, 20, -44, -43, 21, -41, 23, 22, -42, -46, 18, 19, -45, 17, -47, -48, 16, -16, 48, 49, -15, 51, -13, -14, 50, 54, -10, -9, 55, -11, 53, 52, -12, 60, -4, -3, 61, -1, 63, 62, -2, -6, 58, 59, -5, 57, -7, -8, 56, 40, -24, -23, 41, -21, 43, 42, -22, -18, 46, 47, -17, 45, -19, -20, 44, -28, 36, 37, -27, 39, -25, -26, 38, 34, -30, -29, 35, -31, 33, 32, -32, -96, 96, 97, -95, 99, -93, -94, 98, 102, -90, -89, 103, -91, 101, 100, -92, 108, -84, -83, 109, -81, 111, 110, -82, -86, 106, 107, -85, 105, -87, -88, 104, 120, -72, -71, 121, -69, 123, 122, -70, -66, 126, 127, -65, 125, -67, -68, 124, -76, 116, 117, -75, 119, -73, -74, 118, 114, -78, -77, 115, -79, 113, 112, -80, 80, -112, -111, 81, -109, 83, 82, -110, -106, 86, 87, -105, 85, -107, -108, 84, -100, 92, 93, -99, 95, -97, -98, 94, 90, -102, -101, 91, -103, 89, 88, -104, -120, 72, 73, -119, 75, -117, -118, 74, 78, -114, -113, 79, -115, 77, 76, -116, 68, -124, -123, 69, -121, 71, 70, -122, -126, 66, 67, -125, 65, -127, -128, 64};
short usDataLen = (short)numberOfBytes;
byte uchCRCHi = -1;
byte uchCRCLo = -1;
for(int i = 0; usDataLen > 0; ++i) {
--usDataLen;
int uIndex = uchCRCLo ^ data[i + startByte];
if (uIndex < 0) {
uIndex += 256;
}
uchCRCLo = (byte)(uchCRCHi ^ auchCRCHi[uIndex]);
uchCRCHi = auchCRCLo[uIndex];
}
byte[] returnValue = new byte[]{uchCRCLo, uchCRCHi};
return returnValue;
}
public static int getFourBits(short number, int startIndex) {
byte b1 = (byte) (number & 4);
return 0;
}
}
| [
"[email protected]"
]
| |
0e94c3cb0a0f73972b0ccec333f6e496c9446157 | 55ab557bb618a717b787ab441b135a6900d1b57a | /extended/src/test/java/apoc/uuid/UUIDRestartTest.java | 68568e4394046dc632507abcd2527596c4781bb2 | [
"Apache-2.0"
]
| permissive | neo4j-contrib/neo4j-apoc-procedures | 38107179205211ecb6915b7f64f047bb7dde1386 | 634c22b989cd66ea7359113706cee6df7d70ebfa | refs/heads/dev | 2023-08-29T09:20:13.578808 | 2023-08-25T15:54:02 | 2023-08-25T15:54:02 | 52,509,220 | 1,669 | 608 | Apache-2.0 | 2023-09-13T10:25:08 | 2016-02-25T08:33:37 | Java | UTF-8 | Java | false | false | 2,638 | java | package apoc.uuid;
import apoc.periodic.Periodic;
import apoc.util.TestUtil;
import org.junit.After;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TemporaryFolder;
import org.neo4j.dbms.api.DatabaseManagementService;
import org.neo4j.graphdb.GraphDatabaseService;
import org.neo4j.test.TestDatabaseManagementServiceBuilder;
import java.io.IOException;
import static apoc.util.TestUtil.waitDbsAvailable;
import static apoc.uuid.UUIDTestUtils.*;
import static org.neo4j.configuration.GraphDatabaseSettings.DEFAULT_DATABASE_NAME;
import static org.neo4j.configuration.GraphDatabaseSettings.SYSTEM_DATABASE_NAME;
public class UUIDRestartTest {
@Rule
public TemporaryFolder storeDir = new TemporaryFolder();
private GraphDatabaseService db;
private GraphDatabaseService sysDb;
private DatabaseManagementService databaseManagementService;
@Before
public void setUp() throws IOException {
databaseManagementService = startDbWithUuidApocConfigs(storeDir);
db = databaseManagementService.database(DEFAULT_DATABASE_NAME);
sysDb = databaseManagementService.database(SYSTEM_DATABASE_NAME);
waitDbsAvailable(db, sysDb);
TestUtil.registerProcedure(db, UUIDNewProcedures.class, Uuid.class, Periodic.class);
}
@After
public void tearDown() {
databaseManagementService.shutdown();
}
private void restartDb() {
databaseManagementService.shutdown();
databaseManagementService = new TestDatabaseManagementServiceBuilder(storeDir.getRoot().toPath()).build();
db = databaseManagementService.database(DEFAULT_DATABASE_NAME);
sysDb = databaseManagementService.database(SYSTEM_DATABASE_NAME);
waitDbsAvailable(db, sysDb);
TestUtil.registerProcedure(db, UUIDNewProcedures.class, Uuid.class, Periodic.class);
}
@Test
public void testSetupUuidRunsAfterRestart() {
sysDb.executeTransactionally("CALL apoc.uuid.setup('Person')");
awaitUuidDiscovered(db, "Person");
db.executeTransactionally("CREATE (p:Person {id: 1})");
TestUtil.testCall(db, "MATCH (n:Person) RETURN n.uuid AS uuid",
row -> assertIsUUID(row.get("uuid"))
);
restartDb();
db.executeTransactionally("CREATE (p:Person {id:2})");
TestUtil.testCall(db, "MATCH (n:Person{id:1}) RETURN n.uuid AS uuid",
r -> assertIsUUID(r.get("uuid"))
);
TestUtil.testCall(db, "MATCH (n:Person{id:2}) RETURN n.uuid AS uuid",
r -> assertIsUUID(r.get("uuid"))
);
}
}
| [
"[email protected]"
]
| |
309136f0e5ca1ac9a121d58b496118192495ddd7 | 00cb67a5fdaa4c5800c139e350a6e0bdffdecb51 | /src/by/litelife/menu/MainMenuOfAdmin.java | 925b41b9e94014ccba22dcd3ac5a65c546239fc9 | []
| no_license | biletnam/BoxOffice-13 | 935dfcd33739aba3047969a07f69c1e882c84ff1 | 6a5dda7b246e08a3e19d15a64d2cbf4e280d89d1 | refs/heads/master | 2020-03-30T06:24:20.096423 | 2017-05-14T23:51:12 | 2017-05-14T23:51:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,452 | java | package by.litelife.menu;
import by.litelife.dao.SpectacleDAO;
import by.litelife.dao.TheaterDAO;
import by.litelife.exception.TicketsLargerThanNumberException;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;
/**
* Created by John on 17.04.2017.
*/
public class MainMenuOfAdmin {
private static final String INCORRECT_ITEM_MESSAGE = "Нет такого пункта, попробуйте еще раз.";
private boolean flag = true;
private BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
public void showMainMenu(){
System.out.println("\nВыберите пункт:");
System.out.println("1: Самые популярные театры.");
System.out.println("2: Самые популярные спектакли.");
System.out.println("3: Заказать билет.");
System.out.println("4: Просмотреть билеты.");
System.out.println("5: Операции с пользователем.");
System.out.println("6: Операции с театром.");
System.out.println("7: Операции со спектаклем.");
System.out.println("8: Выход из программы.");
}
public void chooseMenuItem() {
try {
MainMenuOfUser mainMenuOfUser = new MainMenuOfUser();
do {
showMainMenu();
int item = Integer.parseInt(bufferedReader.readLine());
switch (item) {
case 1: {
mainMenuOfUser.showPopularTheaters();
break;
}
case 2: {
mainMenuOfUser.showPopularSpectacles();
break;
}
case 3: {
try {
mainMenuOfUser.orderTicket();
} catch (TicketsLargerThanNumberException e) {
System.out.println(e.getMessage());
}
break;
}
case 4: {
mainMenuOfUser.showTickets();
break;
}
case 5: {
UserOperationMenu userOperationMenu = new UserOperationMenu();
userOperationMenu.chooseMenuItem();
break;
}
case 6: {
TheaterOperationMenu theaterOperationMenu = new TheaterOperationMenu();
theaterOperationMenu.chooseMenuItem();
break;
}
case 7: {
SpectacleOperationMenu spectacleOperationMenu = new SpectacleOperationMenu();
spectacleOperationMenu.chooseMenuItem();
break;
}
case 8: {
System.exit(0);
break;
}
default: {
System.out.println(INCORRECT_ITEM_MESSAGE);
}
}
} while (flag);
} catch (IOException e) {
e.printStackTrace();
}
}
}
| [
"[email protected]"
]
| |
3cb8d43da9d3195e291f2087922402841c14f7c4 | c1c6ea7cc014e79310cc5b203ca21e1be71952e8 | /Trucker_Microservices/ReadingService/src/main/java/com/example/readingservice/repository/VehicleReadings_Repository.java | 54399b63e88554a57dec9657b0c460e997b3cd17 | []
| no_license | OfficialShubhamRane/Trucker---The-Fleet-Manager | d3d49687ef5d4b3bd54c8086f842101d54d18284 | 189480675c9f69bab748d77712ff4635a177fab2 | refs/heads/main | 2023-06-25T05:49:48.980780 | 2021-07-24T12:53:36 | 2021-07-24T12:53:36 | 376,088,638 | 1 | 0 | null | 2021-06-11T18:13:01 | 2021-06-11T16:51:07 | null | UTF-8 | Java | false | false | 853 | java | package com.example.readingservice.repository;
import com.example.readingservice.model.VehicleReading_Model;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface VehicleReadings_Repository extends JpaRepository<VehicleReading_Model, String> {
/** Returns vehicle readings by vin */
List<VehicleReading_Model> findAllByVin(String vin);
/** Checks if readings exists for given vin */
boolean existsByVin(String vin);
/** Returns vehicles location in last 30 mins */
@Query("SELECT r FROM VehicleReading_Model r WHERE r.timestamp <= (CURRENT_TIMESTAMP - '+0 00:30:00.000000000') AND r.vin = ?1")
List<VehicleReading_Model> getVehicleLocation(String vin);
}
| [
"[email protected]"
]
| |
93bc9b50890dc4e10f47fbc2c42582d3b936f164 | 1f19aec2ecfd756934898cf0ad2758ee18d9eca2 | /u-1/u-11/u-11-111/u-11-111-1112/u-11-111-1112-11113-111111/u-11-111-1112-11113-111111-f7083.java | 520a7c69f6620843fa60e873efe2fca3dd0af056 | []
| no_license | apertureatf/perftest | f6c6e69efad59265197f43af5072aa7af8393a34 | 584257a0c1ada22e5486052c11395858a87b20d5 | refs/heads/master | 2020-06-07T17:52:51.172890 | 2019-06-21T18:53:01 | 2019-06-21T18:53:01 | 193,039,805 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 106 | java | mastercard 5555555555554444 4012888888881881 4222222222222 378282246310005 6011111111111117
6645155627172 | [
"[email protected]"
]
| |
cb3ca757f65397493065aeb31c89cf03d810cd86 | bbf7af46c81e504f78cea9595f35a67bc86b1636 | /college-service-common/src/main/java/college/springcloud/common/cache/lock/CacheLock.java | 0be90ad2d24dc070d3114b4651873500ac6a8e02 | []
| no_license | xuxianbei1990/college-springcloud2 | 05e74c0c56a30b82779189f55a82ac3340353902 | b165b82a0c6f1dc46296ccaa53c0d8eaf0bbb341 | refs/heads/master | 2023-01-23T22:10:30.457473 | 2022-11-10T07:35:29 | 2022-11-10T07:35:29 | 206,318,974 | 0 | 3 | null | null | null | null | UTF-8 | Java | false | false | 948 | java | package college.springcloud.common.cache.lock;
import org.apache.logging.log4j.util.Strings;
import java.util.concurrent.TimeUnit;
/**
* 分布式锁
*
* @author xuxianbei
* @version 1.0.0
* @date 2019-08-17
* @copyright
*/
public interface CacheLock {
/**
* 加锁
*
* @param key
* @param value
* @param expiring 单位秒
* @return
*/
boolean tryLock(String key, String value, long expiring, TimeUnit timeUnit);
/**
* 解锁
*
* @param key
* @param value
* @return
*/
boolean releaseLock(String key, String value);
/**
* 加锁尝试几次
*
* @param key 锁key
* @param value
* @param times 尝试次数
* @param expiring 单位秒
* @return
*/
boolean tryLockTimes(String key, String value, int times, long expiring);
default String defaultValue() {
return Strings.EMPTY;
}
}
| [
"[email protected]"
]
| |
c7e030efb76cdc732c66a475238275ae18dfbdae | f643f73b7d820ae278e0b070c865e03d88c4c075 | /精仿IOS通信录(索引移动)/List_Demo/gen/com/zsj/list_demo/R.java | da3000ae7983c700095c48533cc4aa076dda49f4 | []
| no_license | BarryLiu/FrontInterface | f2c04bcc3dd06dbdaf3bca2118fdea6ca4e97cbe | e632569544c931243b6a456438e8f328422b9e8d | refs/heads/master | 2020-12-25T22:18:57.874131 | 2016-02-03T16:37:39 | 2016-02-03T16:37:39 | 46,281,230 | 2 | 0 | null | null | null | null | UTF-8 | Java | false | false | 358,546 | java | /* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package com.zsj.list_demo;
public final class R {
public static final class anim {
public static final int abc_fade_in=0x7f040000;
public static final int abc_fade_out=0x7f040001;
public static final int abc_slide_in_bottom=0x7f040002;
public static final int abc_slide_in_top=0x7f040003;
public static final int abc_slide_out_bottom=0x7f040004;
public static final int abc_slide_out_top=0x7f040005;
}
public static final class attr {
/** Custom divider drawable to use for elements in the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarDivider=0x7f010015;
/** Custom item state list drawable background for action bar items.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarItemBackground=0x7f010016;
/** Reference to a theme that should be used to inflate popups
shown by widgets in the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarPopupTheme=0x7f01000f;
/** Size of the Action Bar, including the contextual
bar used to present Action Modes.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>May be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>wrap_content</code></td><td>0</td><td></td></tr>
</table>
*/
public static final int actionBarSize=0x7f010014;
/** Reference to a style for the split Action Bar. This style
controls the split component that holds the menu/action
buttons. actionBarStyle is still used for the primary
bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarSplitStyle=0x7f010011;
/** Reference to a style for the Action Bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarStyle=0x7f010010;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarTabBarStyle=0x7f01000b;
/** Default style for tabs within an action bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarTabStyle=0x7f01000a;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarTabTextStyle=0x7f01000c;
/** Reference to a theme that should be used to inflate the
action bar. This will be inherited by any widget inflated
into the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarTheme=0x7f010012;
/** Reference to a theme that should be used to inflate widgets
and layouts destined for the action bar. Most of the time
this will be a reference to the current theme, but when
the action bar has a significantly different contrast
profile than the rest of the activity the difference
can become important. If this is set to @null the current
theme will be used.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarWidgetTheme=0x7f010013;
/** Default action button style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionButtonStyle=0x7f01002d;
/** Default ActionBar dropdown style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionDropDownStyle=0x7f010028;
/** An optional layout to be used as an action view.
See {@link android.view.MenuItem#setActionView(android.view.View)}
for more info.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionLayout=0x7f010072;
/** TextAppearance style that will be applied to text that
appears within action menu items.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionMenuTextAppearance=0x7f010017;
/** Color for text that appears within action menu items.
Color for text that appears within action menu items.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
*/
public static final int actionMenuTextColor=0x7f010018;
/** Background drawable to use for action mode UI
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeBackground=0x7f01001b;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeCloseButtonStyle=0x7f01001a;
/** Drawable to use for the close action mode button
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeCloseDrawable=0x7f01001d;
/** Drawable to use for the Copy action button in Contextual Action Bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeCopyDrawable=0x7f01001f;
/** Drawable to use for the Cut action button in Contextual Action Bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeCutDrawable=0x7f01001e;
/** Drawable to use for the Find action button in WebView selection action modes
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeFindDrawable=0x7f010023;
/** Drawable to use for the Paste action button in Contextual Action Bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModePasteDrawable=0x7f010020;
/** PopupWindow style to use for action modes when showing as a window overlay.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModePopupWindowStyle=0x7f010025;
/** Drawable to use for the Select all action button in Contextual Action Bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeSelectAllDrawable=0x7f010021;
/** Drawable to use for the Share action button in WebView selection action modes
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeShareDrawable=0x7f010022;
/** Background drawable to use for action mode UI in the lower split bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeSplitBackground=0x7f01001c;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeStyle=0x7f010019;
/** Drawable to use for the Web Search action button in WebView selection action modes
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeWebSearchDrawable=0x7f010024;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionOverflowButtonStyle=0x7f01000d;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionOverflowMenuStyle=0x7f01000e;
/** The name of an optional ActionProvider class to instantiate an action view
and perform operations such as default action for that menu item.
See {@link android.view.MenuItem#setActionProvider(android.view.ActionProvider)}
for more info.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int actionProviderClass=0x7f010074;
/** The name of an optional View class to instantiate and use as an
action view. See {@link android.view.MenuItem#setActionView(android.view.View)}
for more info.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int actionViewClass=0x7f010073;
/** Default ActivityChooserView style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int activityChooserViewStyle=0x7f010034;
/** Specifies a background drawable for the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int background=0x7f01005d;
/** Specifies a background drawable for the bottom component of a split action bar.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
*/
public static final int backgroundSplit=0x7f01005f;
/** Specifies a background drawable for a second stacked row of the action bar.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
*/
public static final int backgroundStacked=0x7f01005e;
/** The size of the bars when they are parallel to each other
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int barSize=0x7f01009f;
/** A style that may be applied to Buttons placed within a
LinearLayout with the style buttonBarStyle to form a button bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int buttonBarButtonStyle=0x7f01002f;
/** A style that may be applied to horizontal LinearLayouts
to form a button bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int buttonBarStyle=0x7f01002e;
/** <p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>top</code></td><td>0x30</td><td> Push object to the top of its container, not changing its size. </td></tr>
<tr><td><code>bottom</code></td><td>0x50</td><td> Push object to the bottom of its container, not changing its size. </td></tr>
</table>
*/
public static final int buttonGravity=0x7f010093;
/** Close button icon
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int closeIcon=0x7f01007c;
/** Specifies a layout to use for the "close" item at the starting edge.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int closeItemLayout=0x7f01006d;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int collapseIcon=0x7f010094;
/** The drawing color for the bars
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int color=0x7f010099;
/** Bright complement to the primary branding color. By default, this is the color applied
to framework controls (via colorControlActivated).
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int colorAccent=0x7f01004f;
/** The color applied to framework buttons in their normal state.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int colorButtonNormal=0x7f010053;
/** The color applied to framework controls in their activated (ex. checked) state.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int colorControlActivated=0x7f010051;
/** The color applied to framework control highlights (ex. ripples, list selectors).
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int colorControlHighlight=0x7f010052;
/** The color applied to framework controls in their normal state.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int colorControlNormal=0x7f010050;
/** The primary branding color for the app. By default, this is the color applied to the
action bar background.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int colorPrimary=0x7f01004d;
/** Dark variant of the primary branding color. By default, this is the color applied to
the status bar (via statusBarColor) and navigation bar (via navigationBarColor).
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int colorPrimaryDark=0x7f01004e;
/** The color applied to framework switch thumbs in their normal state.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int colorSwitchThumbNormal=0x7f010054;
/** Commit icon shown in the query suggestion row
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int commitIcon=0x7f010080;
/** Minimum inset for content views within a bar. Navigation buttons and
menu views are excepted. Only valid for some themes and configurations.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int contentInsetEnd=0x7f010068;
/** Minimum inset for content views within a bar. Navigation buttons and
menu views are excepted. Only valid for some themes and configurations.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int contentInsetLeft=0x7f010069;
/** Minimum inset for content views within a bar. Navigation buttons and
menu views are excepted. Only valid for some themes and configurations.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int contentInsetRight=0x7f01006a;
/** Minimum inset for content views within a bar. Navigation buttons and
menu views are excepted. Only valid for some themes and configurations.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int contentInsetStart=0x7f010067;
/** Specifies a layout for custom navigation. Overrides navigationMode.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int customNavigationLayout=0x7f010060;
/** Whether this spinner should mark child views as enabled/disabled when
the spinner itself is enabled/disabled.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int disableChildrenWhenDisabled=0x7f010078;
/** Options affecting how the action bar is displayed.
<p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>none</code></td><td>0</td><td></td></tr>
<tr><td><code>useLogo</code></td><td>0x1</td><td></td></tr>
<tr><td><code>showHome</code></td><td>0x2</td><td></td></tr>
<tr><td><code>homeAsUp</code></td><td>0x4</td><td></td></tr>
<tr><td><code>showTitle</code></td><td>0x8</td><td></td></tr>
<tr><td><code>showCustom</code></td><td>0x10</td><td></td></tr>
<tr><td><code>disableHome</code></td><td>0x20</td><td></td></tr>
</table>
*/
public static final int displayOptions=0x7f010056;
/** Specifies the drawable used for item dividers.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int divider=0x7f01005c;
/** A drawable that may be used as a horizontal divider between visual elements.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int dividerHorizontal=0x7f010033;
/** Size of padding on either end of a divider.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int dividerPadding=0x7f010089;
/** A drawable that may be used as a vertical divider between visual elements.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int dividerVertical=0x7f010032;
/** The total size of the drawable
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int drawableSize=0x7f01009b;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int drawerArrowStyle=0x7f0100a1;
/** ListPopupWindow compatibility
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int dropDownListViewStyle=0x7f010045;
/** The preferred item height for dropdown lists.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int dropdownListPreferredItemHeight=0x7f010029;
/** EditText background drawable.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int editTextBackground=0x7f01003a;
/** EditText text foreground color.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
*/
public static final int editTextColor=0x7f010039;
/** Elevation for the action bar itself
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int elevation=0x7f01006b;
/** The drawable to show in the button for expanding the activities overflow popup.
<strong>Note:</strong> Clients would like to set this drawable
as a clue about the action the chosen activity will perform. For
example, if share activity is to be chosen the drawable should
give a clue that sharing is to be performed.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int expandActivityOverflowButtonDrawable=0x7f010085;
/** The max gap between the bars when they are parallel to each other
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int gapBetweenBars=0x7f01009c;
/** Go button icon
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int goIcon=0x7f01007d;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int height=0x7f010001;
/** Set true to hide the action bar on a vertical nested scroll of content.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int hideOnContentScroll=0x7f010066;
/** Specifies a drawable to use for the 'home as up' indicator.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int homeAsUpIndicator=0x7f01002c;
/** Specifies a layout to use for the "home" section of the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int homeLayout=0x7f010061;
/** Specifies the drawable used for the application icon.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int icon=0x7f01005a;
/** The default state of the SearchView. If true, it will be iconified when not in
use and expanded when clicked.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int iconifiedByDefault=0x7f01007a;
/** Specifies a style resource to use for an indeterminate progress spinner.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int indeterminateProgressStyle=0x7f010063;
/** The maximal number of items initially shown in the activity list.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int initialActivityCount=0x7f010084;
/** Specifies whether the theme is light, otherwise it is dark.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int isLightTheme=0x7f010002;
/** Specifies padding that should be applied to the left and right sides of
system-provided items in the bar.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int itemPadding=0x7f010065;
/** The layout to use for the search view.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int layout=0x7f010079;
/** Drawable used as a background for selected list items.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int listChoiceBackgroundIndicator=0x7f01004c;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int listPopupWindowStyle=0x7f010046;
/** The preferred list item height.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int listPreferredItemHeight=0x7f010040;
/** A larger, more robust list item height.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int listPreferredItemHeightLarge=0x7f010042;
/** A smaller, sleeker list item height.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int listPreferredItemHeightSmall=0x7f010041;
/** The preferred padding along the left edge of list items.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int listPreferredItemPaddingLeft=0x7f010043;
/** The preferred padding along the right edge of list items.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int listPreferredItemPaddingRight=0x7f010044;
/** Specifies the drawable used for the application logo.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int logo=0x7f01005b;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int maxButtonHeight=0x7f010091;
/** When set to true, all children with a weight will be considered having
the minimum size of the largest child. If false, all children are
measured normally.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int measureWithLargestChild=0x7f010087;
/** The size of the middle bar when top and bottom bars merge into middle bar to form an arrow
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int middleBarArrowSize=0x7f01009e;
/** Text to set as the content description for the navigation button
located at the start of the toolbar.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int navigationContentDescription=0x7f010096;
/** Icon drawable to use for the navigation button located at
the start of the toolbar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int navigationIcon=0x7f010095;
/** The type of navigation to use.
<p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>normal</code></td><td>0</td><td> Normal static title text </td></tr>
<tr><td><code>listMode</code></td><td>1</td><td> The action bar will use a selection list for navigation. </td></tr>
<tr><td><code>tabMode</code></td><td>2</td><td> The action bar will use a series of horizontal tabs for navigation. </td></tr>
</table>
*/
public static final int navigationMode=0x7f010055;
/** Whether the popup window should overlap its anchor view.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int overlapAnchor=0x7f010098;
/** Sets the padding, in pixels, of the end edge; see {@link android.R.attr#padding}.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int paddingEnd=0x7f01006f;
/** Sets the padding, in pixels, of the start edge; see {@link android.R.attr#padding}.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int paddingStart=0x7f01006e;
/** The background of a panel when it is inset from the left and right edges of the screen.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int panelBackground=0x7f010049;
/** Default Panel Menu style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int panelMenuListTheme=0x7f01004b;
/** Default Panel Menu width.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int panelMenuListWidth=0x7f01004a;
/** Default PopupMenu style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int popupMenuStyle=0x7f010037;
/** Reference to a layout to use for displaying a prompt in the dropdown for
spinnerMode="dropdown". This layout must contain a TextView with the id
{@code @android:id/text1} to be populated with the prompt text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int popupPromptView=0x7f010077;
/** Reference to a theme that should be used to inflate popups
shown by widgets in the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int popupTheme=0x7f01006c;
/** Default PopupWindow style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int popupWindowStyle=0x7f010038;
/** Whether space should be reserved in layout when an icon is missing.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int preserveIconSpacing=0x7f010070;
/** Specifies the horizontal padding on either end for an embedded progress bar.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int progressBarPadding=0x7f010064;
/** Specifies a style resource to use for an embedded progress bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int progressBarStyle=0x7f010062;
/** The prompt to display when the spinner's dialog is shown.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int prompt=0x7f010075;
/** Background for the section containing the search query
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int queryBackground=0x7f010082;
/** An optional query hint string to be displayed in the empty query field.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int queryHint=0x7f01007b;
/** Search icon
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int searchIcon=0x7f01007e;
/** Style for the search query widget.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int searchViewStyle=0x7f01003f;
/** A style that may be applied to buttons or other selectable items
that should react to pressed and focus states, but that do not
have a clear visual border along the edges.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int selectableItemBackground=0x7f010030;
/** Background drawable for borderless standalone items that need focus/pressed states.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int selectableItemBackgroundBorderless=0x7f010031;
/** How this item should display in the Action Bar, if present.
<p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>never</code></td><td>0</td><td> Never show this item in an action bar, show it in the overflow menu instead.
Mutually exclusive with "ifRoom" and "always". </td></tr>
<tr><td><code>ifRoom</code></td><td>1</td><td> Show this item in an action bar if there is room for it as determined
by the system. Favor this option over "always" where possible.
Mutually exclusive with "never" and "always". </td></tr>
<tr><td><code>always</code></td><td>2</td><td> Always show this item in an actionbar, even if it would override
the system's limits of how much stuff to put there. This may make
your action bar look bad on some screens. In most cases you should
use "ifRoom" instead. Mutually exclusive with "ifRoom" and "never". </td></tr>
<tr><td><code>withText</code></td><td>4</td><td> When this item is shown as an action in the action bar, show a text
label with it even if it has an icon representation. </td></tr>
<tr><td><code>collapseActionView</code></td><td>8</td><td> This item's action view collapses to a normal menu
item. When expanded, the action view takes over a
larger segment of its container. </td></tr>
</table>
*/
public static final int showAsAction=0x7f010071;
/** Setting for which dividers to show.
<p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>none</code></td><td>0</td><td></td></tr>
<tr><td><code>beginning</code></td><td>1</td><td></td></tr>
<tr><td><code>middle</code></td><td>2</td><td></td></tr>
<tr><td><code>end</code></td><td>4</td><td></td></tr>
</table>
*/
public static final int showDividers=0x7f010088;
/** Whether to draw on/off text.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int showText=0x7f0100a8;
/** Whether bars should rotate or not during transition
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int spinBars=0x7f01009a;
/** Default Spinner style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int spinnerDropDownItemStyle=0x7f01002b;
/** Display mode for spinner options.
<p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>dialog</code></td><td>0</td><td> Spinner options will be presented to the user as a dialog window. </td></tr>
<tr><td><code>dropdown</code></td><td>1</td><td> Spinner options will be presented to the user as an inline dropdown
anchored to the spinner widget itself. </td></tr>
</table>
*/
public static final int spinnerMode=0x7f010076;
/** Default Spinner style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int spinnerStyle=0x7f01002a;
/** Whether to split the track and leave a gap for the thumb drawable.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int splitTrack=0x7f0100a7;
/** State identifier indicating the popup will be above the anchor.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int state_above_anchor=0x7f010097;
/** Background for the section containing the action (e.g. voice search)
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int submitBackground=0x7f010083;
/** Specifies subtitle text used for navigationMode="normal"
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int subtitle=0x7f010057;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int subtitleTextAppearance=0x7f01008b;
/** Specifies a style to use for subtitle text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int subtitleTextStyle=0x7f010059;
/** Layout for query suggestion rows
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int suggestionRowLayout=0x7f010081;
/** Minimum width for the switch component
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int switchMinWidth=0x7f0100a5;
/** Minimum space between the switch and caption text
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int switchPadding=0x7f0100a6;
/** Default style for the Switch widget.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int switchStyle=0x7f01003b;
/** TextAppearance style for text displayed on the switch thumb.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int switchTextAppearance=0x7f0100a4;
/** Present the text in ALL CAPS. This may use a small-caps form when available.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a boolean value, either "<code>true</code>" or "<code>false</code>".
*/
public static final int textAllCaps=0x7f010086;
/** Text color, typeface, size, and style for the text inside of a popup menu.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int textAppearanceLargePopupMenu=0x7f010026;
/** The preferred TextAppearance for the primary text of list items.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int textAppearanceListItem=0x7f010047;
/** The preferred TextAppearance for the primary text of small list items.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int textAppearanceListItemSmall=0x7f010048;
/** Text color, typeface, size, and style for system search result subtitle. Defaults to primary inverse text color.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int textAppearanceSearchResultSubtitle=0x7f01003d;
/** Text color, typeface, size, and style for system search result title. Defaults to primary inverse text color.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int textAppearanceSearchResultTitle=0x7f01003c;
/** Text color, typeface, size, and style for small text inside of a popup menu.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int textAppearanceSmallPopupMenu=0x7f010027;
/** Text color for urls in search suggestions, used by things like global search
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
*/
public static final int textColorSearchUrl=0x7f01003e;
/** Specifies a theme override for a view. When a theme override is set, the
view will be inflated using a {@link android.content.Context} themed with
the specified resource. During XML inflation, any child views under the
view with a theme override will inherit the themed context.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int theme=0x7f010092;
/** The thickness (stroke size) for the bar paint
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int thickness=0x7f0100a0;
/** Amount of padding on either side of text within the switch thumb.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int thumbTextPadding=0x7f0100a3;
/** <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int title=0x7f010000;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int titleMarginBottom=0x7f010090;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int titleMarginEnd=0x7f01008e;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int titleMarginStart=0x7f01008d;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int titleMarginTop=0x7f01008f;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int titleMargins=0x7f01008c;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int titleTextAppearance=0x7f01008a;
/** Specifies a style to use for title text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int titleTextStyle=0x7f010058;
/** Default Toolar NavigationButtonStyle
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int toolbarNavigationButtonStyle=0x7f010036;
/** Default Toolbar style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int toolbarStyle=0x7f010035;
/** The size of the top and bottom bars when they merge to the middle bar to form an arrow
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int topBottomBarArrowSize=0x7f01009d;
/** Drawable to use as the "track" that the switch thumb slides within.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int track=0x7f0100a2;
/** Voice button icon
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int voiceIcon=0x7f01007f;
/** Flag indicating whether this window should have an Action Bar
in place of the usual title bar.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowActionBar=0x7f010003;
/** Flag indicating whether this window's Action Bar should overlay
application content. Does nothing if the window would not
have an Action Bar.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowActionBarOverlay=0x7f010004;
/** Flag indicating whether action modes should overlay window content
when there is not reserved space for their UI (such as an Action Bar).
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowActionModeOverlay=0x7f010005;
/** A fixed height for the window along the major axis of the screen,
that is, when in portrait. Can be either an absolute dimension
or a fraction of the screen size in that dimension.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowFixedHeightMajor=0x7f010009;
/** A fixed height for the window along the minor axis of the screen,
that is, when in landscape. Can be either an absolute dimension
or a fraction of the screen size in that dimension.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowFixedHeightMinor=0x7f010007;
/** A fixed width for the window along the major axis of the screen,
that is, when in landscape. Can be either an absolute dimension
or a fraction of the screen size in that dimension.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowFixedWidthMajor=0x7f010006;
/** A fixed width for the window along the minor axis of the screen,
that is, when in portrait. Can be either an absolute dimension
or a fraction of the screen size in that dimension.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowFixedWidthMinor=0x7f010008;
}
public static final class bool {
public static final int abc_action_bar_embed_tabs=0x7f060000;
public static final int abc_action_bar_embed_tabs_pre_jb=0x7f060001;
public static final int abc_action_bar_expanded_action_views_exclusive=0x7f060002;
/** Whether action menu items should be displayed in ALLCAPS or not.
Defaults to true. If this is not appropriate for specific locales
it should be disabled in that locale's resources.
*/
public static final int abc_config_actionMenuItemAllCaps=0x7f060005;
/** Whether action menu items should obey the "withText" showAsAction
flag. This may be set to false for situations where space is
extremely limited.
Whether action menu items should obey the "withText" showAsAction.
This may be set to false for situations where space is
extremely limited.
*/
public static final int abc_config_allowActionMenuItemTextWithIcon=0x7f060004;
public static final int abc_config_showMenuShortcutsWhenKeyboardPresent=0x7f060003;
}
public static final class color {
public static final int abc_background_cache_hint_selector_material_dark=0x7f07004b;
public static final int abc_background_cache_hint_selector_material_light=0x7f07004c;
public static final int abc_input_method_navigation_guard=0x7f070003;
public static final int abc_primary_text_disable_only_material_dark=0x7f07004d;
public static final int abc_primary_text_disable_only_material_light=0x7f07004e;
public static final int abc_primary_text_material_dark=0x7f07004f;
public static final int abc_primary_text_material_light=0x7f070050;
public static final int abc_search_url_text=0x7f070051;
public static final int abc_search_url_text_normal=0x7f070000;
public static final int abc_search_url_text_pressed=0x7f070002;
public static final int abc_search_url_text_selected=0x7f070001;
public static final int abc_secondary_text_material_dark=0x7f070052;
public static final int abc_secondary_text_material_light=0x7f070053;
public static final int accent_material_dark=0x7f07000f;
public static final int accent_material_light=0x7f07000e;
public static final int background_floating_material_dark=0x7f070006;
public static final int background_floating_material_light=0x7f070007;
public static final int background_material_dark=0x7f070004;
public static final int background_material_light=0x7f070005;
public static final int base_action_bar_title_color=0x7f070032;
public static final int base_actionbar_bg=0x7f070031;
public static final int base_bg=0x7f07003a;
public static final int base_color_text_black=0x7f070036;
public static final int base_color_text_gray=0x7f070037;
public static final int base_color_text_white=0x7f070038;
public static final int base_menu_left_bg=0x7f070034;
public static final int base_tab_indicator_text_color=0x7f070033;
/** White 50%
*/
public static final int bright_foreground_disabled_material_dark=0x7f070016;
/** Black 50%
*/
public static final int bright_foreground_disabled_material_light=0x7f070017;
public static final int bright_foreground_inverse_material_dark=0x7f070018;
public static final int bright_foreground_inverse_material_light=0x7f070019;
public static final int bright_foreground_material_dark=0x7f070014;
public static final int bright_foreground_material_light=0x7f070015;
public static final int button_material_dark=0x7f070010;
public static final int button_material_light=0x7f070011;
public static final int c_f98800=0x7f070047;
public static final int color_bottom_bg=0x7f07003f;
public static final int color_bottom_text_normal=0x7f070040;
public static final int color_bottom_text_press=0x7f070041;
/** zxing
*/
public static final int color_half_transparent=0x7f07003b;
public static final int color_theme=0x7f070046;
public static final int color_transparent_bg=0x7f07003c;
public static final int color_transparent_bg1=0x7f07003d;
public static final int common_bg=0x7f07004a;
public static final int dialog_color_title=0x7f070048;
public static final int dim_foreground_disabled_material_dark=0x7f07001c;
public static final int dim_foreground_disabled_material_light=0x7f07001d;
public static final int dim_foreground_material_dark=0x7f07001a;
public static final int dim_foreground_material_light=0x7f07001b;
public static final int guide_color=0x7f070049;
/** TODO: This is 40% alpha on the default accent color.
*/
public static final int highlighted_text_material_dark=0x7f070020;
/** TODO: This is 40% alpha on the default accent color.
*/
public static final int highlighted_text_material_light=0x7f070021;
public static final int hint_foreground_material_dark=0x7f07001e;
public static final int hint_foreground_material_light=0x7f07001f;
public static final int home_item_color_bg=0x7f070039;
public static final int link_text_material_dark=0x7f070022;
public static final int link_text_material_light=0x7f070023;
public static final int material_blue_grey_800=0x7f07002e;
public static final int material_blue_grey_900=0x7f07002f;
public static final int material_blue_grey_950=0x7f070030;
public static final int material_deep_teal_200=0x7f07002c;
public static final int material_deep_teal_500=0x7f07002d;
public static final int msg_chat_bg=0x7f070044;
/** emot
*/
public static final int msg_emote_divider=0x7f07003e;
public static final int primary_dark_material_dark=0x7f07000a;
public static final int primary_dark_material_light=0x7f07000b;
public static final int primary_material_dark=0x7f070008;
public static final int primary_material_light=0x7f070009;
public static final int primary_text_default_material_dark=0x7f070026;
public static final int primary_text_default_material_light=0x7f070024;
/** 30% of default values
*/
public static final int primary_text_disabled_material_dark=0x7f07002a;
/** 26% of default values
*/
public static final int primary_text_disabled_material_light=0x7f070028;
public static final int pull_refresh_textview=0x7f070035;
public static final int ripple_material_dark=0x7f07000c;
public static final int ripple_material_light=0x7f07000d;
public static final int secondary_text_default_material_dark=0x7f070027;
public static final int secondary_text_default_material_light=0x7f070025;
public static final int secondary_text_disabled_material_dark=0x7f07002b;
public static final int secondary_text_disabled_material_light=0x7f070029;
public static final int switch_thumb_normal_material_dark=0x7f070012;
public static final int switch_thumb_normal_material_light=0x7f070013;
public static final int text_gray=0x7f070042;
public static final int theme_bg_color=0x7f070045;
public static final int transparent=0x7f070043;
}
public static final class dimen {
/** Default height of an action bar.
Default height of an action bar.
Default height of an action bar.
*/
public static final int abc_action_bar_default_height_material=0x7f080014;
/** Default padding of an action bar.
Default padding of an action bar.
Default padding of an action bar.
*/
public static final int abc_action_bar_default_padding_material=0x7f080015;
/** Vertical padding around action bar icons.
*/
public static final int abc_action_bar_icon_vertical_padding_material=0x7f080016;
/** Size of the indeterminate Progress Bar
Size of the indeterminate Progress Bar
*/
public static final int abc_action_bar_progress_bar_size=0x7f080005;
/** Maximum height for a stacked tab bar as part of an action bar
*/
public static final int abc_action_bar_stacked_max_height=0x7f080004;
/** Maximum width for a stacked action bar tab. This prevents
action bar tabs from becoming too wide on a wide screen when only
a few are present.
*/
public static final int abc_action_bar_stacked_tab_max_width=0x7f080003;
/** Bottom margin for action bar subtitles
*/
public static final int abc_action_bar_subtitle_bottom_margin_material=0x7f080018;
/** Top margin for action bar subtitles
*/
public static final int abc_action_bar_subtitle_top_margin_material=0x7f080017;
public static final int abc_action_button_min_height_material=0x7f08001b;
public static final int abc_action_button_min_width_material=0x7f08001a;
public static final int abc_action_button_min_width_overflow_material=0x7f080019;
/** The maximum width we would prefer dialogs to be. 0 if there is no
maximum (let them grow as large as the screen). Actual values are
specified for -large and -xlarge configurations.
see comment in values/config.xml
see comment in values/config.xml
*/
public static final int abc_config_prefDialogWidth=0x7f080002;
/** Default insets (outer padding) around controls
*/
public static final int abc_control_inset_material=0x7f080010;
/** Default inner padding within controls
*/
public static final int abc_control_padding_material=0x7f080011;
/** Width of the icon in a dropdown list
*/
public static final int abc_dropdownitem_icon_width=0x7f08000b;
/** Text padding for dropdown items
*/
public static final int abc_dropdownitem_text_padding_left=0x7f080009;
public static final int abc_dropdownitem_text_padding_right=0x7f08000a;
public static final int abc_panel_menu_list_width=0x7f080006;
/** Preferred width of the search view.
*/
public static final int abc_search_view_preferred_width=0x7f080008;
/** Minimum width of the search view text entry area.
Minimum width of the search view text entry area.
Minimum width of the search view text entry area.
Minimum width of the search view text entry area.
Minimum width of the search view text entry area.
*/
public static final int abc_search_view_text_min_width=0x7f080007;
public static final int abc_text_size_body_1_material=0x7f080025;
public static final int abc_text_size_body_2_material=0x7f080024;
public static final int abc_text_size_button_material=0x7f080027;
public static final int abc_text_size_caption_material=0x7f080026;
public static final int abc_text_size_display_1_material=0x7f08001f;
public static final int abc_text_size_display_2_material=0x7f08001e;
public static final int abc_text_size_display_3_material=0x7f08001d;
public static final int abc_text_size_display_4_material=0x7f08001c;
public static final int abc_text_size_headline_material=0x7f080020;
public static final int abc_text_size_large_material=0x7f080028;
public static final int abc_text_size_medium_material=0x7f080029;
public static final int abc_text_size_menu_material=0x7f080023;
public static final int abc_text_size_small_material=0x7f08002a;
public static final int abc_text_size_subhead_material=0x7f080022;
/** Use the default subtitle sizes on tablets.
Default text size for action bar subtitle.
*/
public static final int abc_text_size_subtitle_material_toolbar=0x7f080013;
public static final int abc_text_size_title_material=0x7f080021;
/** Use the default title sizes on tablets.
Default text size for action bar title.
*/
public static final int abc_text_size_title_material_toolbar=0x7f080012;
/** Default screen margins, per the Android Design guidelines.
Example customization of dimensions originally defined in res/values/dimens.xml
(such as screen margins) for screens with more than 820dp of available width. This
would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively).
*/
public static final int activity_horizontal_margin=0x7f08002b;
public static final int activity_vertical_margin=0x7f08002c;
public static final int base_action_bar_height=0x7f080030;
public static final int base_action_bar_title_size=0x7f080031;
public static final int base_line_width=0x7f080039;
public static final int base_line_width_1=0x7f080037;
public static final int base_line_width_2=0x7f080038;
public static final int base_scrollview_top_height=0x7f080033;
/** The platform's desired fixed height for a dialog along the major axis
(the screen is in portrait). This may be either a fraction or a dimension.
The platform's desired fixed height for a dialog along the major axis
(the screen is in portrait). This may be either a fraction or a dimension.
The platform's desired fixed height for a dialog along the major axis
(the screen is in portrait). This may be either a fraction or a dimension.
*/
public static final int dialog_fixed_height_major=0x7f08000e;
/** The platform's desired fixed height for a dialog along the minor axis
(the screen is in landscape). This may be either a fraction or a dimension.
The platform's desired fixed height for a dialog along the minor axis
(the screen is in landscape). This may be either a fraction or a dimension.
The platform's desired fixed height for a dialog along the minor axis
(the screen is in landscape). This may be either a fraction or a dimension.
*/
public static final int dialog_fixed_height_minor=0x7f08000f;
/** The platform's desired fixed width for a dialog along the major axis
(the screen is in landscape). This may be either a fraction or a dimension.
The platform's desired fixed width for a dialog along the major axis
(the screen is in landscape). This may be either a fraction or a dimension.
The platform's desired fixed width for a dialog along the major axis
(the screen is in landscape). This may be either a fraction or a dimension.
*/
public static final int dialog_fixed_width_major=0x7f08000c;
/** The platform's desired fixed width for a dialog along the minor axis
(the screen is in portrait). This may be either a fraction or a dimension.
The platform's desired fixed width for a dialog along the minor axis
(the screen is in portrait). This may be either a fraction or a dimension.
The platform's desired fixed width for a dialog along the minor axis
(the screen is in portrait). This may be either a fraction or a dimension.
*/
public static final int dialog_fixed_width_minor=0x7f08000d;
public static final int disabled_alpha_material_dark=0x7f080001;
public static final int disabled_alpha_material_light=0x7f080000;
public static final int margin_chat_top=0x7f080040;
public static final int message_top_height=0x7f08003f;
public static final int register_margin=0x7f080032;
public static final int score_item_height=0x7f08003e;
public static final int tab_height=0x7f080036;
public static final int tab_padding_left_right=0x7f080035;
public static final int tab_padding_top_bottom=0x7f080034;
public static final int text_size_large=0x7f08002f;
public static final int text_size_medium=0x7f08002e;
public static final int text_size_small=0x7f08002d;
public static final int time_line_content_left_margin=0x7f08003c;
public static final int time_line_content_right_margin=0x7f08003d;
public static final int time_line_line_left_margin=0x7f08003a;
public static final int time_line_line_width=0x7f08003b;
}
public static final class drawable {
public static final int abc_ab_share_pack_holo_dark=0x7f020000;
public static final int abc_ab_share_pack_holo_light=0x7f020001;
public static final int abc_btn_check_material=0x7f020002;
public static final int abc_btn_check_to_on_mtrl_000=0x7f020003;
public static final int abc_btn_check_to_on_mtrl_015=0x7f020004;
public static final int abc_btn_radio_material=0x7f020005;
public static final int abc_btn_radio_to_on_mtrl_000=0x7f020006;
public static final int abc_btn_radio_to_on_mtrl_015=0x7f020007;
public static final int abc_btn_switch_to_on_mtrl_00001=0x7f020008;
public static final int abc_btn_switch_to_on_mtrl_00012=0x7f020009;
public static final int abc_cab_background_internal_bg=0x7f02000a;
public static final int abc_cab_background_top_material=0x7f02000b;
public static final int abc_cab_background_top_mtrl_alpha=0x7f02000c;
public static final int abc_edit_text_material=0x7f02000d;
public static final int abc_ic_ab_back_mtrl_am_alpha=0x7f02000e;
public static final int abc_ic_clear_mtrl_alpha=0x7f02000f;
public static final int abc_ic_commit_search_api_mtrl_alpha=0x7f020010;
public static final int abc_ic_go_search_api_mtrl_alpha=0x7f020011;
public static final int abc_ic_menu_copy_mtrl_am_alpha=0x7f020012;
public static final int abc_ic_menu_cut_mtrl_alpha=0x7f020013;
public static final int abc_ic_menu_moreoverflow_mtrl_alpha=0x7f020014;
public static final int abc_ic_menu_paste_mtrl_am_alpha=0x7f020015;
public static final int abc_ic_menu_selectall_mtrl_alpha=0x7f020016;
public static final int abc_ic_menu_share_mtrl_alpha=0x7f020017;
public static final int abc_ic_search_api_mtrl_alpha=0x7f020018;
public static final int abc_ic_voice_search_api_mtrl_alpha=0x7f020019;
public static final int abc_item_background_holo_dark=0x7f02001a;
public static final int abc_item_background_holo_light=0x7f02001b;
public static final int abc_list_divider_mtrl_alpha=0x7f02001c;
public static final int abc_list_focused_holo=0x7f02001d;
public static final int abc_list_longpressed_holo=0x7f02001e;
public static final int abc_list_pressed_holo_dark=0x7f02001f;
public static final int abc_list_pressed_holo_light=0x7f020020;
public static final int abc_list_selector_background_transition_holo_dark=0x7f020021;
public static final int abc_list_selector_background_transition_holo_light=0x7f020022;
public static final int abc_list_selector_disabled_holo_dark=0x7f020023;
public static final int abc_list_selector_disabled_holo_light=0x7f020024;
public static final int abc_list_selector_holo_dark=0x7f020025;
public static final int abc_list_selector_holo_light=0x7f020026;
public static final int abc_menu_hardkey_panel_mtrl_mult=0x7f020027;
public static final int abc_popup_background_mtrl_mult=0x7f020028;
public static final int abc_spinner_mtrl_am_alpha=0x7f020029;
public static final int abc_switch_thumb_material=0x7f02002a;
public static final int abc_switch_track_mtrl_alpha=0x7f02002b;
public static final int abc_tab_indicator_material=0x7f02002c;
public static final int abc_tab_indicator_mtrl_alpha=0x7f02002d;
public static final int abc_textfield_activated_mtrl_alpha=0x7f02002e;
public static final int abc_textfield_default_mtrl_alpha=0x7f02002f;
public static final int abc_textfield_search_activated_mtrl_alpha=0x7f020030;
public static final int abc_textfield_search_default_mtrl_alpha=0x7f020031;
public static final int abc_textfield_search_material=0x7f020032;
public static final int base_edit_input=0x7f020033;
public static final int base_horizontal_line=0x7f020034;
public static final int bmob=0x7f020035;
public static final int head=0x7f020036;
public static final int ic_launcher=0x7f020037;
public static final int icon_msg_search=0x7f020038;
public static final int icon_near=0x7f020039;
public static final int msg_tips=0x7f02003a;
public static final int new_friends_icon=0x7f02003b;
public static final int search_clear=0x7f02003c;
public static final int search_clear_normal=0x7f02003d;
public static final int search_clear_pressed=0x7f02003e;
public static final int user_add_top_bg=0x7f02003f;
public static final int v2_gallery_contacts_dialog_background=0x7f020040;
public static final int v2_sortlistview_sidebar_background=0x7f020041;
}
public static final class id {
public static final int action_bar=0x7f050033;
public static final int action_bar_activity_content=0x7f05001a;
public static final int action_bar_container=0x7f050032;
public static final int action_bar_root=0x7f05002e;
public static final int action_bar_spinner=0x7f050019;
public static final int action_bar_subtitle=0x7f050021;
public static final int action_bar_title=0x7f050020;
public static final int action_context_bar=0x7f050034;
public static final int action_menu_divider=0x7f05001c;
public static final int action_menu_presenter=0x7f05001d;
public static final int action_mode_bar=0x7f050030;
public static final int action_mode_bar_stub=0x7f05002f;
public static final int action_mode_close_button=0x7f050022;
public static final int action_settings=0x7f05004e;
public static final int activity_chooser_view_content=0x7f050023;
public static final int alpha=0x7f05004b;
public static final int always=0x7f05000d;
public static final int beginning=0x7f050012;
public static final int bottom=0x7f050016;
public static final int checkbox=0x7f05002b;
public static final int collapseActionView=0x7f05000f;
public static final int decor_content_parent=0x7f050031;
public static final int default_activity_button=0x7f050026;
public static final int dialog=0x7f050010;
public static final int disableHome=0x7f05000a;
public static final int dropdown=0x7f050011;
public static final int edit_query=0x7f050035;
public static final int end=0x7f050014;
public static final int et_msg_search=0x7f050042;
public static final int expand_activities_button=0x7f050024;
public static final int expanded_menu=0x7f05002a;
public static final int frame_new=0x7f050046;
public static final int home=0x7f050017;
public static final int homeAsUp=0x7f050007;
public static final int icon=0x7f050028;
public static final int ifRoom=0x7f05000c;
public static final int image=0x7f050025;
public static final int img_friend_avatar=0x7f05004c;
public static final int iv_msg_tips=0x7f050047;
public static final int layout_list=0x7f050041;
public static final int layout_near=0x7f05004a;
public static final int layout_new=0x7f050045;
public static final int line=0x7f050049;
public static final int listMode=0x7f050002;
public static final int list_friends=0x7f050043;
public static final int list_item=0x7f050027;
public static final int middle=0x7f050013;
public static final int never=0x7f05000b;
public static final int none=0x7f050004;
public static final int normal=0x7f050001;
public static final int progress_circular=0x7f05001e;
public static final int progress_horizontal=0x7f05001f;
public static final int radio=0x7f05002d;
public static final int right_letter=0x7f050044;
public static final int search_badge=0x7f050037;
public static final int search_bar=0x7f050036;
public static final int search_button=0x7f050038;
public static final int search_close_btn=0x7f05003d;
public static final int search_edit_frame=0x7f050039;
public static final int search_go_btn=0x7f05003f;
public static final int search_mag_icon=0x7f05003a;
public static final int search_plate=0x7f05003b;
public static final int search_src_text=0x7f05003c;
public static final int search_voice_btn=0x7f050040;
public static final int shortcut=0x7f05002c;
public static final int showCustom=0x7f050009;
public static final int showHome=0x7f050006;
public static final int showTitle=0x7f050008;
public static final int split_action_bar=0x7f05001b;
public static final int submit_area=0x7f05003e;
public static final int tabMode=0x7f050003;
public static final int title=0x7f050029;
public static final int top=0x7f050015;
public static final int tv_friend_name=0x7f05004d;
public static final int tv_new_name=0x7f050048;
public static final int up=0x7f050018;
public static final int useLogo=0x7f050005;
public static final int withText=0x7f05000e;
public static final int wrap_content=0x7f050000;
}
public static final class integer {
/** The maximum number of action buttons that should be permitted within
an action bar/action mode. This will be used to determine how many
showAsAction="ifRoom" items can fit. "always" items can override this.
The maximum number of action buttons that should be permitted within
an action bar/action mode. This will be used to determine how many
showAsAction="ifRoom" items can fit. "always" items can override this.
The maximum number of action buttons that should be permitted within
an action bar/action mode. This will be used to determine how many
showAsAction="ifRoom" items can fit. "always" items can override this.
The maximum number of action buttons that should be permitted within
an action bar/action mode. This will be used to determine how many
showAsAction="ifRoom" items can fit. "always" items can override this.
The maximum number of action buttons that should be permitted within
an action bar/action mode. This will be used to determine how many
showAsAction="ifRoom" items can fit. "always" items can override this.
The maximum number of action buttons that should be permitted within
an action bar/action mode. This will be used to determine how many
showAsAction="ifRoom" items can fit. "always" items can override this.
The maximum number of action buttons that should be permitted within
an action bar/action mode. This will be used to determine how many
showAsAction="ifRoom" items can fit. "always" items can override this.
*/
public static final int abc_max_action_buttons=0x7f090000;
}
public static final class layout {
public static final int abc_action_bar_title_item=0x7f030000;
public static final int abc_action_bar_up_container=0x7f030001;
public static final int abc_action_bar_view_list_nav_layout=0x7f030002;
public static final int abc_action_menu_item_layout=0x7f030003;
public static final int abc_action_menu_layout=0x7f030004;
public static final int abc_action_mode_bar=0x7f030005;
public static final int abc_action_mode_close_item_material=0x7f030006;
public static final int abc_activity_chooser_view=0x7f030007;
public static final int abc_activity_chooser_view_include=0x7f030008;
public static final int abc_activity_chooser_view_list_item=0x7f030009;
public static final int abc_expanded_menu_layout=0x7f03000a;
public static final int abc_list_menu_item_checkbox=0x7f03000b;
public static final int abc_list_menu_item_icon=0x7f03000c;
public static final int abc_list_menu_item_layout=0x7f03000d;
public static final int abc_list_menu_item_radio=0x7f03000e;
public static final int abc_popup_menu_item_layout=0x7f03000f;
public static final int abc_screen_content_include=0x7f030010;
public static final int abc_screen_simple=0x7f030011;
public static final int abc_screen_simple_overlay_action_mode=0x7f030012;
public static final int abc_screen_toolbar=0x7f030013;
public static final int abc_search_dropdown_item_icons_2line=0x7f030014;
public static final int abc_search_view=0x7f030015;
public static final int abc_simple_dropdown_hint=0x7f030016;
public static final int activity_main=0x7f030017;
public static final int include_new_friend=0x7f030018;
public static final int item_user_friend=0x7f030019;
public static final int support_simple_spinner_dropdown_item=0x7f03001a;
}
public static final class menu {
public static final int main=0x7f0c0000;
}
public static final class string {
/** Content description for the action bar "home" affordance. [CHAR LIMIT=NONE]
*/
public static final int abc_action_bar_home_description=0x7f0a0001;
/** Formatting string for describing the action bar's title/home/up affordance.
This is a single tappable "button" that includes the app icon, the Up indicator
(usually a "<" chevron) and the window title text.
%1$s is the title. %2$s is the description of what tapping/clicking the whole
thing is going to do.
*/
public static final int abc_action_bar_home_description_format=0x7f0a0004;
/** Just like action_bar_home_description_format, but this one will be used
if the window is also providing subtitle text.
%1$s is the title. %2$s is the subtitle. %3$s is the description of what
tapping/clicking the whole thing is going to do.
*/
public static final int abc_action_bar_home_subtitle_description_format=0x7f0a0005;
/** Content description for the action bar "up" affordance. [CHAR LIMIT=NONE]
*/
public static final int abc_action_bar_up_description=0x7f0a0002;
/** Content description for the action menu overflow button. [CHAR LIMIT=NONE]
*/
public static final int abc_action_menu_overflow_description=0x7f0a0003;
/** Label for the "Done" button on the far left of action mode toolbars.
*/
public static final int abc_action_mode_done=0x7f0a0000;
/** Title for a button to expand the list of activities in ActivityChooserView [CHAR LIMIT=25]
*/
public static final int abc_activity_chooser_view_see_all=0x7f0a000c;
/** ActivityChooserView - accessibility support
Description of the shwoing of a popup window with activities to choose from. [CHAR LIMIT=NONE]
*/
public static final int abc_activitychooserview_choose_application=0x7f0a000b;
/** SearchView accessibility description for clear button [CHAR LIMIT=NONE]
*/
public static final int abc_searchview_description_clear=0x7f0a0008;
/** SearchView accessibility description for search text field [CHAR LIMIT=NONE]
*/
public static final int abc_searchview_description_query=0x7f0a0007;
/** SearchView accessibility description for search button [CHAR LIMIT=NONE]
*/
public static final int abc_searchview_description_search=0x7f0a0006;
/** SearchView accessibility description for submit button [CHAR LIMIT=NONE]
*/
public static final int abc_searchview_description_submit=0x7f0a0009;
/** SearchView accessibility description for voice button [CHAR LIMIT=NONE]
*/
public static final int abc_searchview_description_voice=0x7f0a000a;
/** Description of the choose target button in a ShareActionProvider (share UI). [CHAR LIMIT=NONE]
*/
public static final int abc_shareactionprovider_share_with=0x7f0a000e;
/** Description of a share target (both in the list of such or the default share button) in a ShareActionProvider (share UI). [CHAR LIMIT=NONE]
*/
public static final int abc_shareactionprovider_share_with_application=0x7f0a000d;
public static final int action_settings=0x7f0a0011;
public static final int app_name=0x7f0a000f;
public static final int hello_world=0x7f0a0010;
}
public static final class style {
/**
Base application theme, dependent on API level. This theme is replaced
by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
Theme customizations available in newer API levels can go in
res/values-vXX/styles.xml, while customizations related to
backward-compatibility can go here.
Base application theme for API 11+. This theme completely replaces
AppBaseTheme from res/values/styles.xml on API 11+ devices.
API 11 theme customizations can go here.
Base application theme for API 14+. This theme completely replaces
AppBaseTheme from BOTH res/values/styles.xml and
res/values-v11/styles.xml on API 14+ devices.
API 14 theme customizations can go here.
*/
public static final int AppBaseTheme=0x7f0b00eb;
/** Application theme.
All customizations that are NOT specific to a particular API-level can go here.
*/
public static final int AppTheme=0x7f0b00ec;
public static final int Base_TextAppearance_AppCompat=0x7f0b0098;
public static final int Base_TextAppearance_AppCompat_Body1=0x7f0b00a3;
public static final int Base_TextAppearance_AppCompat_Body2=0x7f0b00a2;
public static final int Base_TextAppearance_AppCompat_Button=0x7f0b00a6;
public static final int Base_TextAppearance_AppCompat_Caption=0x7f0b00a4;
public static final int Base_TextAppearance_AppCompat_Display1=0x7f0b009c;
public static final int Base_TextAppearance_AppCompat_Display2=0x7f0b009b;
public static final int Base_TextAppearance_AppCompat_Display3=0x7f0b009a;
public static final int Base_TextAppearance_AppCompat_Display4=0x7f0b0099;
public static final int Base_TextAppearance_AppCompat_Headline=0x7f0b009d;
/** Deprecated text styles
Deprecated text styles
Now deprecated styles
*/
public static final int Base_TextAppearance_AppCompat_Inverse=0x7f0b00a7;
public static final int Base_TextAppearance_AppCompat_Large=0x7f0b00a8;
public static final int Base_TextAppearance_AppCompat_Large_Inverse=0x7f0b00a9;
public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Large=0x7f0b0085;
public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Small=0x7f0b0086;
public static final int Base_TextAppearance_AppCompat_Medium=0x7f0b00aa;
public static final int Base_TextAppearance_AppCompat_Medium_Inverse=0x7f0b00ab;
public static final int Base_TextAppearance_AppCompat_Menu=0x7f0b00a5;
public static final int Base_TextAppearance_AppCompat_SearchResult=0x7f0b0087;
public static final int Base_TextAppearance_AppCompat_SearchResult_Subtitle=0x7f0b0089;
/** Search View result styles
*/
public static final int Base_TextAppearance_AppCompat_SearchResult_Title=0x7f0b0088;
public static final int Base_TextAppearance_AppCompat_Small=0x7f0b00ac;
public static final int Base_TextAppearance_AppCompat_Small_Inverse=0x7f0b00ad;
public static final int Base_TextAppearance_AppCompat_Subhead=0x7f0b00a0;
public static final int Base_TextAppearance_AppCompat_Subhead_Inverse=0x7f0b00a1;
public static final int Base_TextAppearance_AppCompat_Title=0x7f0b009e;
public static final int Base_TextAppearance_AppCompat_Title_Inverse=0x7f0b009f;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Menu=0x7f0b0070;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle=0x7f0b0072;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse=0x7f0b0074;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title=0x7f0b0071;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse=0x7f0b0073;
public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Subtitle=0x7f0b006f;
public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Title=0x7f0b006e;
public static final int Base_TextAppearance_AppCompat_Widget_DropDownItem=0x7f0b007b;
public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Large=0x7f0b0083;
public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Small=0x7f0b0084;
public static final int Base_TextAppearance_AppCompat_Widget_Switch=0x7f0b0097;
public static final int Base_TextAppearance_Widget_AppCompat_ExpandedMenu_Item=0x7f0b007c;
public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Subtitle=0x7f0b0092;
public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Title=0x7f0b0091;
public static final int Base_Theme_AppCompat=0x7f0b00cf;
/** Menu/item attributes
*/
public static final int Base_Theme_AppCompat_CompactMenu=0x7f0b00d2;
public static final int Base_Theme_AppCompat_Dialog=0x7f0b00d4;
public static final int Base_Theme_AppCompat_Dialog_FixedSize=0x7f0b00d6;
/** We're not large, so redirect to Theme.AppCompat
*/
public static final int Base_Theme_AppCompat_DialogWhenLarge=0x7f0b00d8;
public static final int Base_Theme_AppCompat_Light=0x7f0b00d0;
public static final int Base_Theme_AppCompat_Light_DarkActionBar=0x7f0b00d1;
public static final int Base_Theme_AppCompat_Light_Dialog=0x7f0b00d5;
public static final int Base_Theme_AppCompat_Light_Dialog_FixedSize=0x7f0b00d7;
public static final int Base_Theme_AppCompat_Light_DialogWhenLarge=0x7f0b00d9;
/** Overlay themes
*/
public static final int Base_ThemeOverlay_AppCompat=0x7f0b00da;
public static final int Base_ThemeOverlay_AppCompat_ActionBar=0x7f0b00dd;
public static final int Base_ThemeOverlay_AppCompat_Dark=0x7f0b00dc;
public static final int Base_ThemeOverlay_AppCompat_Dark_ActionBar=0x7f0b00de;
public static final int Base_ThemeOverlay_AppCompat_Light=0x7f0b00db;
public static final int Base_V11_Theme_AppCompat=0x7f0b00df;
public static final int Base_V11_Theme_AppCompat_Dialog=0x7f0b00e1;
public static final int Base_V11_Theme_AppCompat_Light=0x7f0b00e0;
public static final int Base_V11_Theme_AppCompat_Light_Dialog=0x7f0b00e2;
public static final int Base_V14_Theme_AppCompat=0x7f0b00e3;
public static final int Base_V14_Theme_AppCompat_Dialog=0x7f0b00e5;
public static final int Base_V14_Theme_AppCompat_Light=0x7f0b00e4;
public static final int Base_V14_Theme_AppCompat_Light_Dialog=0x7f0b00e6;
public static final int Base_V21_Theme_AppCompat=0x7f0b00e7;
public static final int Base_V21_Theme_AppCompat_Dialog=0x7f0b00e9;
public static final int Base_V21_Theme_AppCompat_Light=0x7f0b00e8;
public static final int Base_V21_Theme_AppCompat_Light_Dialog=0x7f0b00ea;
/** Base platform-dependent theme providing an action bar in a dark-themed activity.
*/
public static final int Base_V7_Theme_AppCompat=0x7f0b00cd;
public static final int Base_V7_Theme_AppCompat_Dialog=0x7f0b00d3;
/** Base platform-dependent theme providing an action bar in a light-themed activity.
*/
public static final int Base_V7_Theme_AppCompat_Light=0x7f0b00ce;
public static final int Base_Widget_AppCompat_ActionBar=0x7f0b005f;
public static final int Base_Widget_AppCompat_ActionBar_Solid=0x7f0b0061;
public static final int Base_Widget_AppCompat_ActionBar_TabBar=0x7f0b0066;
public static final int Base_Widget_AppCompat_ActionBar_TabText=0x7f0b006a;
public static final int Base_Widget_AppCompat_ActionBar_TabView=0x7f0b0068;
/** Action Button Styles
*/
public static final int Base_Widget_AppCompat_ActionButton=0x7f0b0063;
public static final int Base_Widget_AppCompat_ActionButton_CloseMode=0x7f0b0064;
public static final int Base_Widget_AppCompat_ActionButton_Overflow=0x7f0b0065;
public static final int Base_Widget_AppCompat_ActionMode=0x7f0b006d;
/** TODO. Needs updating for Material
*/
public static final int Base_Widget_AppCompat_ActivityChooserView=0x7f0b008c;
public static final int Base_Widget_AppCompat_AutoCompleteTextView=0x7f0b008a;
public static final int Base_Widget_AppCompat_CompoundButton_Switch=0x7f0b0096;
public static final int Base_Widget_AppCompat_DrawerArrowToggle=0x7f0b0095;
public static final int Base_Widget_AppCompat_DropDownItem_Spinner=0x7f0b0079;
public static final int Base_Widget_AppCompat_EditText=0x7f0b0094;
public static final int Base_Widget_AppCompat_Light_ActionBar=0x7f0b0060;
public static final int Base_Widget_AppCompat_Light_ActionBar_Solid=0x7f0b0062;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabBar=0x7f0b0067;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabText=0x7f0b006b;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabText_Inverse=0x7f0b006c;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabView=0x7f0b0069;
public static final int Base_Widget_AppCompat_Light_ActivityChooserView=0x7f0b008d;
public static final int Base_Widget_AppCompat_Light_AutoCompleteTextView=0x7f0b008b;
public static final int Base_Widget_AppCompat_Light_PopupMenu=0x7f0b0082;
public static final int Base_Widget_AppCompat_Light_PopupMenu_Overflow=0x7f0b0080;
/** Popup Menu
*/
public static final int Base_Widget_AppCompat_ListPopupWindow=0x7f0b007e;
/** Spinner Widgets
*/
public static final int Base_Widget_AppCompat_ListView_DropDown=0x7f0b007a;
public static final int Base_Widget_AppCompat_ListView_Menu=0x7f0b007d;
public static final int Base_Widget_AppCompat_PopupMenu=0x7f0b0081;
public static final int Base_Widget_AppCompat_PopupMenu_Overflow=0x7f0b007f;
public static final int Base_Widget_AppCompat_PopupWindow=0x7f0b008e;
public static final int Base_Widget_AppCompat_ProgressBar=0x7f0b0076;
/** Progress Bar
Progress Bar
*/
public static final int Base_Widget_AppCompat_ProgressBar_Horizontal=0x7f0b0075;
public static final int Base_Widget_AppCompat_SearchView=0x7f0b0093;
/** Spinner Widgets
*/
public static final int Base_Widget_AppCompat_Spinner=0x7f0b0077;
public static final int Base_Widget_AppCompat_Spinner_DropDown_ActionBar=0x7f0b0078;
public static final int Base_Widget_AppCompat_Toolbar=0x7f0b008f;
/**
Widget.AppCompat.Toolbar style is purposely ommitted. This is because the support
Toolbar implementation is used on ALL platforms and relies on the unbundled attrs.
The supporting Toolbar styles below only use basic attrs so work fine.
*/
public static final int Base_Widget_AppCompat_Toolbar_Button_Navigation=0x7f0b0090;
public static final int Platform_AppCompat=0x7f0b00c9;
public static final int Platform_AppCompat_Dialog=0x7f0b00cb;
public static final int Platform_AppCompat_Light=0x7f0b00ca;
public static final int Platform_AppCompat_Light_Dialog=0x7f0b00cc;
public static final int RtlOverlay_Widget_AppCompat_ActionBar_TitleItem=0x7f0b00b4;
public static final int RtlOverlay_Widget_AppCompat_ActionButton_CloseMode=0x7f0b00b5;
public static final int RtlOverlay_Widget_AppCompat_ActionButton_Overflow=0x7f0b00b6;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem=0x7f0b00b7;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_InternalGroup=0x7f0b00b8;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_Text=0x7f0b00b9;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown=0x7f0b00af;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon1=0x7f0b00b1;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon2=0x7f0b00b2;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Query=0x7f0b00b0;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Text=0x7f0b00b3;
public static final int RtlOverlay_Widget_AppCompat_SearchView_MagIcon=0x7f0b00ae;
public static final int Smile=0x7f0b00ed;
public static final int Smile_TextView=0x7f0b00ee;
public static final int Smile_TextView__Black=0x7f0b00ef;
/** Text styles
*/
public static final int TextAppearance_AppCompat=0x7f0b0038;
public static final int TextAppearance_AppCompat_Body1=0x7f0b0043;
public static final int TextAppearance_AppCompat_Body2=0x7f0b0042;
public static final int TextAppearance_AppCompat_Button=0x7f0b004d;
public static final int TextAppearance_AppCompat_Caption=0x7f0b0044;
public static final int TextAppearance_AppCompat_Display1=0x7f0b003c;
public static final int TextAppearance_AppCompat_Display2=0x7f0b003b;
public static final int TextAppearance_AppCompat_Display3=0x7f0b003a;
public static final int TextAppearance_AppCompat_Display4=0x7f0b0039;
public static final int TextAppearance_AppCompat_Headline=0x7f0b003d;
public static final int TextAppearance_AppCompat_Inverse=0x7f0b0046;
public static final int TextAppearance_AppCompat_Large=0x7f0b0047;
public static final int TextAppearance_AppCompat_Large_Inverse=0x7f0b0048;
public static final int TextAppearance_AppCompat_Light_SearchResult_Subtitle=0x7f0b0053;
public static final int TextAppearance_AppCompat_Light_SearchResult_Title=0x7f0b0052;
public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large=0x7f0b0029;
public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small=0x7f0b002a;
public static final int TextAppearance_AppCompat_Medium=0x7f0b0049;
public static final int TextAppearance_AppCompat_Medium_Inverse=0x7f0b004a;
public static final int TextAppearance_AppCompat_Menu=0x7f0b0045;
public static final int TextAppearance_AppCompat_SearchResult_Subtitle=0x7f0b002c;
public static final int TextAppearance_AppCompat_SearchResult_Title=0x7f0b002b;
public static final int TextAppearance_AppCompat_Small=0x7f0b004b;
public static final int TextAppearance_AppCompat_Small_Inverse=0x7f0b004c;
public static final int TextAppearance_AppCompat_Subhead=0x7f0b0040;
public static final int TextAppearance_AppCompat_Subhead_Inverse=0x7f0b0041;
public static final int TextAppearance_AppCompat_Title=0x7f0b003e;
public static final int TextAppearance_AppCompat_Title_Inverse=0x7f0b003f;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Menu=0x7f0b0015;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle=0x7f0b0005;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse=0x7f0b0007;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Title=0x7f0b0004;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse=0x7f0b0006;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle=0x7f0b0018;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse=0x7f0b0056;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Title=0x7f0b0017;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse=0x7f0b0055;
public static final int TextAppearance_AppCompat_Widget_DropDownItem=0x7f0b0019;
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Large=0x7f0b0027;
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Small=0x7f0b0028;
public static final int TextAppearance_AppCompat_Widget_Switch=0x7f0b004e;
public static final int TextAppearance_Widget_AppCompat_ExpandedMenu_Item=0x7f0b001f;
public static final int TextAppearance_Widget_AppCompat_Toolbar_Subtitle=0x7f0b0037;
public static final int TextAppearance_Widget_AppCompat_Toolbar_Title=0x7f0b0036;
/** Themes in the "Theme.AppCompat" family will contain an action bar by default.
If Holo themes are available on the current platform version they will be used.
A limited Holo-styled action bar will be provided on platform versions older
than 3.0. (API 11)
These theme declarations contain any version-independent specification. Items
that need to vary based on platform version should be defined in the corresponding
"Theme.Base" theme.
Platform-independent theme providing an action bar in a dark-themed activity.
*/
public static final int Theme_AppCompat=0x7f0b00ba;
/** Menu/item attributes
*/
public static final int Theme_AppCompat_CompactMenu=0x7f0b00c3;
public static final int Theme_AppCompat_Dialog=0x7f0b00c1;
public static final int Theme_AppCompat_DialogWhenLarge=0x7f0b00bf;
/** Platform-independent theme providing an action bar in a light-themed activity.
*/
public static final int Theme_AppCompat_Light=0x7f0b00bb;
/** Platform-independent theme providing an action bar in a dark-themed activity.
*/
public static final int Theme_AppCompat_Light_DarkActionBar=0x7f0b00bc;
public static final int Theme_AppCompat_Light_Dialog=0x7f0b00c2;
public static final int Theme_AppCompat_Light_DialogWhenLarge=0x7f0b00c0;
public static final int Theme_AppCompat_Light_NoActionBar=0x7f0b00be;
public static final int Theme_AppCompat_NoActionBar=0x7f0b00bd;
public static final int ThemeOverlay_AppCompat=0x7f0b00c4;
/** Theme overlay that replaces the normal control color, which by default is the same as the
secondary text color, with the primary text color.
*/
public static final int ThemeOverlay_AppCompat_ActionBar=0x7f0b00c7;
/** Theme overlay that replaces colors with their dark versions but preserves
the value of colorAccent, colorPrimary and its variants.
*/
public static final int ThemeOverlay_AppCompat_Dark=0x7f0b00c6;
/** Theme overlay that replaces colors with their dark versions and replaces the normal
control color, which by default is the same as the secondary text color, with the primary
text color.
*/
public static final int ThemeOverlay_AppCompat_Dark_ActionBar=0x7f0b00c8;
/** Theme overlay that replaces colors with their light versions but preserves
the value of colorAccent, colorPrimary and its variants.
*/
public static final int ThemeOverlay_AppCompat_Light=0x7f0b00c5;
/** Styles in here can be extended for customisation in your application. Each utilises
one of the.styles. If Holo themes are available on the current platform version
they will be used instead of the compat styles.
*/
public static final int Widget_AppCompat_ActionBar=0x7f0b0000;
public static final int Widget_AppCompat_ActionBar_Solid=0x7f0b0002;
public static final int Widget_AppCompat_ActionBar_TabBar=0x7f0b000d;
public static final int Widget_AppCompat_ActionBar_TabText=0x7f0b0011;
public static final int Widget_AppCompat_ActionBar_TabView=0x7f0b000f;
public static final int Widget_AppCompat_ActionButton=0x7f0b000a;
/** This style has an extra indirection to properly set RTL attributes. See styles_rtl.xml
*/
public static final int Widget_AppCompat_ActionButton_CloseMode=0x7f0b000b;
public static final int Widget_AppCompat_ActionButton_Overflow=0x7f0b000c;
public static final int Widget_AppCompat_ActionMode=0x7f0b0016;
public static final int Widget_AppCompat_ActivityChooserView=0x7f0b002f;
public static final int Widget_AppCompat_AutoCompleteTextView=0x7f0b002d;
public static final int Widget_AppCompat_CompoundButton_Switch=0x7f0b0033;
public static final int Widget_AppCompat_DrawerArrowToggle=0x7f0b0012;
/** This style has an extra indirection to properly set RTL attributes. See styles_rtl.xml
*/
public static final int Widget_AppCompat_DropDownItem_Spinner=0x7f0b001d;
public static final int Widget_AppCompat_EditText=0x7f0b0032;
public static final int Widget_AppCompat_Light_ActionBar=0x7f0b0001;
public static final int Widget_AppCompat_Light_ActionBar_Solid=0x7f0b0003;
/**
The following themes are deprecated.
*/
public static final int Widget_AppCompat_Light_ActionBar_Solid_Inverse=0x7f0b004f;
public static final int Widget_AppCompat_Light_ActionBar_TabBar=0x7f0b000e;
public static final int Widget_AppCompat_Light_ActionBar_TabBar_Inverse=0x7f0b0050;
public static final int Widget_AppCompat_Light_ActionBar_TabText=0x7f0b0013;
public static final int Widget_AppCompat_Light_ActionBar_TabText_Inverse=0x7f0b0014;
public static final int Widget_AppCompat_Light_ActionBar_TabView=0x7f0b0010;
public static final int Widget_AppCompat_Light_ActionBar_TabView_Inverse=0x7f0b0051;
public static final int Widget_AppCompat_Light_ActionButton=0x7f0b0059;
public static final int Widget_AppCompat_Light_ActionButton_CloseMode=0x7f0b005b;
public static final int Widget_AppCompat_Light_ActionButton_Overflow=0x7f0b005a;
public static final int Widget_AppCompat_Light_ActionMode_Inverse=0x7f0b0054;
public static final int Widget_AppCompat_Light_ActivityChooserView=0x7f0b0030;
public static final int Widget_AppCompat_Light_AutoCompleteTextView=0x7f0b002e;
public static final int Widget_AppCompat_Light_DropDownItem_Spinner=0x7f0b0057;
public static final int Widget_AppCompat_Light_ListPopupWindow=0x7f0b005e;
public static final int Widget_AppCompat_Light_ListView_DropDown=0x7f0b005d;
public static final int Widget_AppCompat_Light_PopupMenu=0x7f0b0024;
public static final int Widget_AppCompat_Light_PopupMenu_Overflow=0x7f0b0022;
public static final int Widget_AppCompat_Light_SearchView=0x7f0b0058;
public static final int Widget_AppCompat_Light_Spinner_DropDown_ActionBar=0x7f0b005c;
public static final int Widget_AppCompat_ListPopupWindow=0x7f0b0020;
public static final int Widget_AppCompat_ListView_DropDown=0x7f0b001e;
public static final int Widget_AppCompat_ListView_Menu=0x7f0b0025;
public static final int Widget_AppCompat_PopupMenu=0x7f0b0023;
public static final int Widget_AppCompat_PopupMenu_Overflow=0x7f0b0021;
public static final int Widget_AppCompat_PopupWindow=0x7f0b0026;
public static final int Widget_AppCompat_ProgressBar=0x7f0b0009;
public static final int Widget_AppCompat_ProgressBar_Horizontal=0x7f0b0008;
public static final int Widget_AppCompat_SearchView=0x7f0b0031;
public static final int Widget_AppCompat_Spinner=0x7f0b001a;
public static final int Widget_AppCompat_Spinner_DropDown=0x7f0b001b;
public static final int Widget_AppCompat_Spinner_DropDown_ActionBar=0x7f0b001c;
/** Toolbar
*/
public static final int Widget_AppCompat_Toolbar=0x7f0b0034;
public static final int Widget_AppCompat_Toolbar_Button_Navigation=0x7f0b0035;
}
public static final class styleable {
/** ============================================
Attributes used to style the Action Bar.
These should be set on your theme; the default actionBarStyle will
propagate them to the correct elements as needed.
Please Note: when overriding attributes for an ActionBar style
you must specify each attribute twice: once with the "android:"
namespace prefix and once without.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ActionBar_background com.zsj.list_demo:background}</code></td><td> Specifies a background drawable for the action bar.</td></tr>
<tr><td><code>{@link #ActionBar_backgroundSplit com.zsj.list_demo:backgroundSplit}</code></td><td> Specifies a background drawable for the bottom component of a split action bar.</td></tr>
<tr><td><code>{@link #ActionBar_backgroundStacked com.zsj.list_demo:backgroundStacked}</code></td><td> Specifies a background drawable for a second stacked row of the action bar.</td></tr>
<tr><td><code>{@link #ActionBar_contentInsetEnd com.zsj.list_demo:contentInsetEnd}</code></td><td> Minimum inset for content views within a bar.</td></tr>
<tr><td><code>{@link #ActionBar_contentInsetLeft com.zsj.list_demo:contentInsetLeft}</code></td><td> Minimum inset for content views within a bar.</td></tr>
<tr><td><code>{@link #ActionBar_contentInsetRight com.zsj.list_demo:contentInsetRight}</code></td><td> Minimum inset for content views within a bar.</td></tr>
<tr><td><code>{@link #ActionBar_contentInsetStart com.zsj.list_demo:contentInsetStart}</code></td><td> Minimum inset for content views within a bar.</td></tr>
<tr><td><code>{@link #ActionBar_customNavigationLayout com.zsj.list_demo:customNavigationLayout}</code></td><td> Specifies a layout for custom navigation.</td></tr>
<tr><td><code>{@link #ActionBar_displayOptions com.zsj.list_demo:displayOptions}</code></td><td> Options affecting how the action bar is displayed.</td></tr>
<tr><td><code>{@link #ActionBar_divider com.zsj.list_demo:divider}</code></td><td> Specifies the drawable used for item dividers.</td></tr>
<tr><td><code>{@link #ActionBar_elevation com.zsj.list_demo:elevation}</code></td><td> Elevation for the action bar itself </td></tr>
<tr><td><code>{@link #ActionBar_height com.zsj.list_demo:height}</code></td><td> Specifies a fixed height.</td></tr>
<tr><td><code>{@link #ActionBar_hideOnContentScroll com.zsj.list_demo:hideOnContentScroll}</code></td><td> Set true to hide the action bar on a vertical nested scroll of content.</td></tr>
<tr><td><code>{@link #ActionBar_homeAsUpIndicator com.zsj.list_demo:homeAsUpIndicator}</code></td><td> Up navigation glyph </td></tr>
<tr><td><code>{@link #ActionBar_homeLayout com.zsj.list_demo:homeLayout}</code></td><td> Specifies a layout to use for the "home" section of the action bar.</td></tr>
<tr><td><code>{@link #ActionBar_icon com.zsj.list_demo:icon}</code></td><td> Specifies the drawable used for the application icon.</td></tr>
<tr><td><code>{@link #ActionBar_indeterminateProgressStyle com.zsj.list_demo:indeterminateProgressStyle}</code></td><td> Specifies a style resource to use for an indeterminate progress spinner.</td></tr>
<tr><td><code>{@link #ActionBar_itemPadding com.zsj.list_demo:itemPadding}</code></td><td> Specifies padding that should be applied to the left and right sides of
system-provided items in the bar.</td></tr>
<tr><td><code>{@link #ActionBar_logo com.zsj.list_demo:logo}</code></td><td> Specifies the drawable used for the application logo.</td></tr>
<tr><td><code>{@link #ActionBar_navigationMode com.zsj.list_demo:navigationMode}</code></td><td> The type of navigation to use.</td></tr>
<tr><td><code>{@link #ActionBar_popupTheme com.zsj.list_demo:popupTheme}</code></td><td> Reference to a theme that should be used to inflate popups
shown by widgets in the action bar.</td></tr>
<tr><td><code>{@link #ActionBar_progressBarPadding com.zsj.list_demo:progressBarPadding}</code></td><td> Specifies the horizontal padding on either end for an embedded progress bar.</td></tr>
<tr><td><code>{@link #ActionBar_progressBarStyle com.zsj.list_demo:progressBarStyle}</code></td><td> Specifies a style resource to use for an embedded progress bar.</td></tr>
<tr><td><code>{@link #ActionBar_subtitle com.zsj.list_demo:subtitle}</code></td><td> Specifies subtitle text used for navigationMode="normal" </td></tr>
<tr><td><code>{@link #ActionBar_subtitleTextStyle com.zsj.list_demo:subtitleTextStyle}</code></td><td> Specifies a style to use for subtitle text.</td></tr>
<tr><td><code>{@link #ActionBar_title com.zsj.list_demo:title}</code></td><td> Specifies title text used for navigationMode="normal" </td></tr>
<tr><td><code>{@link #ActionBar_titleTextStyle com.zsj.list_demo:titleTextStyle}</code></td><td> Specifies a style to use for title text.</td></tr>
</table>
@see #ActionBar_background
@see #ActionBar_backgroundSplit
@see #ActionBar_backgroundStacked
@see #ActionBar_contentInsetEnd
@see #ActionBar_contentInsetLeft
@see #ActionBar_contentInsetRight
@see #ActionBar_contentInsetStart
@see #ActionBar_customNavigationLayout
@see #ActionBar_displayOptions
@see #ActionBar_divider
@see #ActionBar_elevation
@see #ActionBar_height
@see #ActionBar_hideOnContentScroll
@see #ActionBar_homeAsUpIndicator
@see #ActionBar_homeLayout
@see #ActionBar_icon
@see #ActionBar_indeterminateProgressStyle
@see #ActionBar_itemPadding
@see #ActionBar_logo
@see #ActionBar_navigationMode
@see #ActionBar_popupTheme
@see #ActionBar_progressBarPadding
@see #ActionBar_progressBarStyle
@see #ActionBar_subtitle
@see #ActionBar_subtitleTextStyle
@see #ActionBar_title
@see #ActionBar_titleTextStyle
*/
public static final int[] ActionBar = {
0x7f010000, 0x7f010001, 0x7f01002c, 0x7f010055,
0x7f010056, 0x7f010057, 0x7f010058, 0x7f010059,
0x7f01005a, 0x7f01005b, 0x7f01005c, 0x7f01005d,
0x7f01005e, 0x7f01005f, 0x7f010060, 0x7f010061,
0x7f010062, 0x7f010063, 0x7f010064, 0x7f010065,
0x7f010066, 0x7f010067, 0x7f010068, 0x7f010069,
0x7f01006a, 0x7f01006b, 0x7f01006c
};
/**
<p>
@attr description
Specifies a background drawable for the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:background
*/
public static final int ActionBar_background = 11;
/**
<p>
@attr description
Specifies a background drawable for the bottom component of a split action bar.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:backgroundSplit
*/
public static final int ActionBar_backgroundSplit = 13;
/**
<p>
@attr description
Specifies a background drawable for a second stacked row of the action bar.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:backgroundStacked
*/
public static final int ActionBar_backgroundStacked = 12;
/**
<p>
@attr description
Minimum inset for content views within a bar. Navigation buttons and
menu views are excepted. Only valid for some themes and configurations.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:contentInsetEnd
*/
public static final int ActionBar_contentInsetEnd = 22;
/**
<p>
@attr description
Minimum inset for content views within a bar. Navigation buttons and
menu views are excepted. Only valid for some themes and configurations.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:contentInsetLeft
*/
public static final int ActionBar_contentInsetLeft = 23;
/**
<p>
@attr description
Minimum inset for content views within a bar. Navigation buttons and
menu views are excepted. Only valid for some themes and configurations.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:contentInsetRight
*/
public static final int ActionBar_contentInsetRight = 24;
/**
<p>
@attr description
Minimum inset for content views within a bar. Navigation buttons and
menu views are excepted. Only valid for some themes and configurations.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:contentInsetStart
*/
public static final int ActionBar_contentInsetStart = 21;
/**
<p>
@attr description
Specifies a layout for custom navigation. Overrides navigationMode.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:customNavigationLayout
*/
public static final int ActionBar_customNavigationLayout = 14;
/**
<p>
@attr description
Options affecting how the action bar is displayed.
<p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>none</code></td><td>0</td><td></td></tr>
<tr><td><code>useLogo</code></td><td>0x1</td><td></td></tr>
<tr><td><code>showHome</code></td><td>0x2</td><td></td></tr>
<tr><td><code>homeAsUp</code></td><td>0x4</td><td></td></tr>
<tr><td><code>showTitle</code></td><td>0x8</td><td></td></tr>
<tr><td><code>showCustom</code></td><td>0x10</td><td></td></tr>
<tr><td><code>disableHome</code></td><td>0x20</td><td></td></tr>
</table>
<p>This is a private symbol.
@attr name com.zsj.list_demo:displayOptions
*/
public static final int ActionBar_displayOptions = 4;
/**
<p>
@attr description
Specifies the drawable used for item dividers.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:divider
*/
public static final int ActionBar_divider = 10;
/**
<p>
@attr description
Elevation for the action bar itself
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:elevation
*/
public static final int ActionBar_elevation = 25;
/**
<p>
@attr description
Specifies a fixed height.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:height
*/
public static final int ActionBar_height = 1;
/**
<p>
@attr description
Set true to hide the action bar on a vertical nested scroll of content.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:hideOnContentScroll
*/
public static final int ActionBar_hideOnContentScroll = 20;
/**
<p>
@attr description
Up navigation glyph
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:homeAsUpIndicator
*/
public static final int ActionBar_homeAsUpIndicator = 2;
/**
<p>
@attr description
Specifies a layout to use for the "home" section of the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:homeLayout
*/
public static final int ActionBar_homeLayout = 15;
/**
<p>
@attr description
Specifies the drawable used for the application icon.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:icon
*/
public static final int ActionBar_icon = 8;
/**
<p>
@attr description
Specifies a style resource to use for an indeterminate progress spinner.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:indeterminateProgressStyle
*/
public static final int ActionBar_indeterminateProgressStyle = 17;
/**
<p>
@attr description
Specifies padding that should be applied to the left and right sides of
system-provided items in the bar.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:itemPadding
*/
public static final int ActionBar_itemPadding = 19;
/**
<p>
@attr description
Specifies the drawable used for the application logo.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:logo
*/
public static final int ActionBar_logo = 9;
/**
<p>
@attr description
The type of navigation to use.
<p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>normal</code></td><td>0</td><td> Normal static title text </td></tr>
<tr><td><code>listMode</code></td><td>1</td><td> The action bar will use a selection list for navigation. </td></tr>
<tr><td><code>tabMode</code></td><td>2</td><td> The action bar will use a series of horizontal tabs for navigation. </td></tr>
</table>
<p>This is a private symbol.
@attr name com.zsj.list_demo:navigationMode
*/
public static final int ActionBar_navigationMode = 3;
/**
<p>
@attr description
Reference to a theme that should be used to inflate popups
shown by widgets in the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:popupTheme
*/
public static final int ActionBar_popupTheme = 26;
/**
<p>
@attr description
Specifies the horizontal padding on either end for an embedded progress bar.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:progressBarPadding
*/
public static final int ActionBar_progressBarPadding = 18;
/**
<p>
@attr description
Specifies a style resource to use for an embedded progress bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:progressBarStyle
*/
public static final int ActionBar_progressBarStyle = 16;
/**
<p>
@attr description
Specifies subtitle text used for navigationMode="normal"
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:subtitle
*/
public static final int ActionBar_subtitle = 5;
/**
<p>
@attr description
Specifies a style to use for subtitle text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:subtitleTextStyle
*/
public static final int ActionBar_subtitleTextStyle = 7;
/**
<p>
@attr description
Specifies title text used for navigationMode="normal"
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:title
*/
public static final int ActionBar_title = 0;
/**
<p>
@attr description
Specifies a style to use for title text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:titleTextStyle
*/
public static final int ActionBar_titleTextStyle = 6;
/** Valid LayoutParams for views placed in the action bar as custom views.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ActionBarLayout_android_layout_gravity android:layout_gravity}</code></td><td></td></tr>
</table>
@see #ActionBarLayout_android_layout_gravity
*/
public static final int[] ActionBarLayout = {
0x010100b3
};
/**
<p>This symbol is the offset where the {@link android.R.attr#layout_gravity}
attribute's value can be found in the {@link #ActionBarLayout} array.
@attr name android:layout_gravity
*/
public static final int ActionBarLayout_android_layout_gravity = 0;
/** Attributes that can be used with a ActionMenuItemView.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ActionMenuItemView_android_minWidth android:minWidth}</code></td><td></td></tr>
</table>
@see #ActionMenuItemView_android_minWidth
*/
public static final int[] ActionMenuItemView = {
0x0101013f
};
/**
<p>This symbol is the offset where the {@link android.R.attr#minWidth}
attribute's value can be found in the {@link #ActionMenuItemView} array.
@attr name android:minWidth
*/
public static final int ActionMenuItemView_android_minWidth = 0;
/** Size of padding on either end of a divider.
*/
public static final int[] ActionMenuView = {
};
/** Attributes that can be used with a ActionMode.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ActionMode_background com.zsj.list_demo:background}</code></td><td> Specifies a background for the action mode bar.</td></tr>
<tr><td><code>{@link #ActionMode_backgroundSplit com.zsj.list_demo:backgroundSplit}</code></td><td> Specifies a background for the split action mode bar.</td></tr>
<tr><td><code>{@link #ActionMode_closeItemLayout com.zsj.list_demo:closeItemLayout}</code></td><td> Specifies a layout to use for the "close" item at the starting edge.</td></tr>
<tr><td><code>{@link #ActionMode_height com.zsj.list_demo:height}</code></td><td> Specifies a fixed height for the action mode bar.</td></tr>
<tr><td><code>{@link #ActionMode_subtitleTextStyle com.zsj.list_demo:subtitleTextStyle}</code></td><td> Specifies a style to use for subtitle text.</td></tr>
<tr><td><code>{@link #ActionMode_titleTextStyle com.zsj.list_demo:titleTextStyle}</code></td><td> Specifies a style to use for title text.</td></tr>
</table>
@see #ActionMode_background
@see #ActionMode_backgroundSplit
@see #ActionMode_closeItemLayout
@see #ActionMode_height
@see #ActionMode_subtitleTextStyle
@see #ActionMode_titleTextStyle
*/
public static final int[] ActionMode = {
0x7f010001, 0x7f010058, 0x7f010059, 0x7f01005d,
0x7f01005f, 0x7f01006d
};
/**
<p>
@attr description
Specifies a background for the action mode bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:background
*/
public static final int ActionMode_background = 3;
/**
<p>
@attr description
Specifies a background for the split action mode bar.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:backgroundSplit
*/
public static final int ActionMode_backgroundSplit = 4;
/**
<p>
@attr description
Specifies a layout to use for the "close" item at the starting edge.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:closeItemLayout
*/
public static final int ActionMode_closeItemLayout = 5;
/**
<p>
@attr description
Specifies a fixed height for the action mode bar.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:height
*/
public static final int ActionMode_height = 0;
/**
<p>
@attr description
Specifies a style to use for subtitle text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:subtitleTextStyle
*/
public static final int ActionMode_subtitleTextStyle = 2;
/**
<p>
@attr description
Specifies a style to use for title text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:titleTextStyle
*/
public static final int ActionMode_titleTextStyle = 1;
/** Attrbitutes for a ActivityChooserView.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ActivityChooserView_expandActivityOverflowButtonDrawable com.zsj.list_demo:expandActivityOverflowButtonDrawable}</code></td><td> The drawable to show in the button for expanding the activities overflow popup.</td></tr>
<tr><td><code>{@link #ActivityChooserView_initialActivityCount com.zsj.list_demo:initialActivityCount}</code></td><td> The maximal number of items initially shown in the activity list.</td></tr>
</table>
@see #ActivityChooserView_expandActivityOverflowButtonDrawable
@see #ActivityChooserView_initialActivityCount
*/
public static final int[] ActivityChooserView = {
0x7f010084, 0x7f010085
};
/**
<p>
@attr description
The drawable to show in the button for expanding the activities overflow popup.
<strong>Note:</strong> Clients would like to set this drawable
as a clue about the action the chosen activity will perform. For
example, if share activity is to be chosen the drawable should
give a clue that sharing is to be performed.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:expandActivityOverflowButtonDrawable
*/
public static final int ActivityChooserView_expandActivityOverflowButtonDrawable = 1;
/**
<p>
@attr description
The maximal number of items initially shown in the activity list.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:initialActivityCount
*/
public static final int ActivityChooserView_initialActivityCount = 0;
/** Attributes that can be used with a CompatTextView.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #CompatTextView_textAllCaps com.zsj.list_demo:textAllCaps}</code></td><td> Present the text in ALL CAPS.</td></tr>
</table>
@see #CompatTextView_textAllCaps
*/
public static final int[] CompatTextView = {
0x7f010086
};
/**
<p>
@attr description
Present the text in ALL CAPS. This may use a small-caps form when available.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:textAllCaps
*/
public static final int CompatTextView_textAllCaps = 0;
/** Attributes that can be used with a DrawerArrowToggle.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #DrawerArrowToggle_barSize com.zsj.list_demo:barSize}</code></td><td> The size of the bars when they are parallel to each other </td></tr>
<tr><td><code>{@link #DrawerArrowToggle_color com.zsj.list_demo:color}</code></td><td> The drawing color for the bars </td></tr>
<tr><td><code>{@link #DrawerArrowToggle_drawableSize com.zsj.list_demo:drawableSize}</code></td><td> The total size of the drawable </td></tr>
<tr><td><code>{@link #DrawerArrowToggle_gapBetweenBars com.zsj.list_demo:gapBetweenBars}</code></td><td> The max gap between the bars when they are parallel to each other </td></tr>
<tr><td><code>{@link #DrawerArrowToggle_middleBarArrowSize com.zsj.list_demo:middleBarArrowSize}</code></td><td> The size of the middle bar when top and bottom bars merge into middle bar to form an arrow </td></tr>
<tr><td><code>{@link #DrawerArrowToggle_spinBars com.zsj.list_demo:spinBars}</code></td><td> Whether bars should rotate or not during transition </td></tr>
<tr><td><code>{@link #DrawerArrowToggle_thickness com.zsj.list_demo:thickness}</code></td><td> The thickness (stroke size) for the bar paint </td></tr>
<tr><td><code>{@link #DrawerArrowToggle_topBottomBarArrowSize com.zsj.list_demo:topBottomBarArrowSize}</code></td><td> The size of the top and bottom bars when they merge to the middle bar to form an arrow </td></tr>
</table>
@see #DrawerArrowToggle_barSize
@see #DrawerArrowToggle_color
@see #DrawerArrowToggle_drawableSize
@see #DrawerArrowToggle_gapBetweenBars
@see #DrawerArrowToggle_middleBarArrowSize
@see #DrawerArrowToggle_spinBars
@see #DrawerArrowToggle_thickness
@see #DrawerArrowToggle_topBottomBarArrowSize
*/
public static final int[] DrawerArrowToggle = {
0x7f010099, 0x7f01009a, 0x7f01009b, 0x7f01009c,
0x7f01009d, 0x7f01009e, 0x7f01009f, 0x7f0100a0
};
/**
<p>
@attr description
The size of the bars when they are parallel to each other
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:barSize
*/
public static final int DrawerArrowToggle_barSize = 6;
/**
<p>
@attr description
The drawing color for the bars
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:color
*/
public static final int DrawerArrowToggle_color = 0;
/**
<p>
@attr description
The total size of the drawable
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:drawableSize
*/
public static final int DrawerArrowToggle_drawableSize = 2;
/**
<p>
@attr description
The max gap between the bars when they are parallel to each other
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:gapBetweenBars
*/
public static final int DrawerArrowToggle_gapBetweenBars = 3;
/**
<p>
@attr description
The size of the middle bar when top and bottom bars merge into middle bar to form an arrow
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:middleBarArrowSize
*/
public static final int DrawerArrowToggle_middleBarArrowSize = 5;
/**
<p>
@attr description
Whether bars should rotate or not during transition
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:spinBars
*/
public static final int DrawerArrowToggle_spinBars = 1;
/**
<p>
@attr description
The thickness (stroke size) for the bar paint
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:thickness
*/
public static final int DrawerArrowToggle_thickness = 7;
/**
<p>
@attr description
The size of the top and bottom bars when they merge to the middle bar to form an arrow
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:topBottomBarArrowSize
*/
public static final int DrawerArrowToggle_topBottomBarArrowSize = 4;
/** Attributes that can be used with a LinearLayoutCompat.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #LinearLayoutCompat_android_baselineAligned android:baselineAligned}</code></td><td> When set to false, prevents the layout from aligning its children's
baselines.</td></tr>
<tr><td><code>{@link #LinearLayoutCompat_android_baselineAlignedChildIndex android:baselineAlignedChildIndex}</code></td><td> When a linear layout is part of another layout that is baseline
aligned, it can specify which of its children to baseline align to
(that is, which child TextView).</td></tr>
<tr><td><code>{@link #LinearLayoutCompat_android_gravity android:gravity}</code></td><td></td></tr>
<tr><td><code>{@link #LinearLayoutCompat_android_orientation android:orientation}</code></td><td> Should the layout be a column or a row? Use "horizontal"
for a row, "vertical" for a column.</td></tr>
<tr><td><code>{@link #LinearLayoutCompat_android_weightSum android:weightSum}</code></td><td> Defines the maximum weight sum.</td></tr>
<tr><td><code>{@link #LinearLayoutCompat_divider com.zsj.list_demo:divider}</code></td><td> Drawable to use as a vertical divider between buttons.</td></tr>
<tr><td><code>{@link #LinearLayoutCompat_dividerPadding com.zsj.list_demo:dividerPadding}</code></td><td> Size of padding on either end of a divider.</td></tr>
<tr><td><code>{@link #LinearLayoutCompat_measureWithLargestChild com.zsj.list_demo:measureWithLargestChild}</code></td><td> When set to true, all children with a weight will be considered having
the minimum size of the largest child.</td></tr>
<tr><td><code>{@link #LinearLayoutCompat_showDividers com.zsj.list_demo:showDividers}</code></td><td> Setting for which dividers to show.</td></tr>
</table>
@see #LinearLayoutCompat_android_baselineAligned
@see #LinearLayoutCompat_android_baselineAlignedChildIndex
@see #LinearLayoutCompat_android_gravity
@see #LinearLayoutCompat_android_orientation
@see #LinearLayoutCompat_android_weightSum
@see #LinearLayoutCompat_divider
@see #LinearLayoutCompat_dividerPadding
@see #LinearLayoutCompat_measureWithLargestChild
@see #LinearLayoutCompat_showDividers
*/
public static final int[] LinearLayoutCompat = {
0x010100af, 0x010100c4, 0x01010126, 0x01010127,
0x01010128, 0x7f01005c, 0x7f010087, 0x7f010088,
0x7f010089
};
/**
<p>
@attr description
When set to false, prevents the layout from aligning its children's
baselines. This attribute is particularly useful when the children
use different values for gravity. The default value is true.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#baselineAligned}.
@attr name android:baselineAligned
*/
public static final int LinearLayoutCompat_android_baselineAligned = 2;
/**
<p>
@attr description
When a linear layout is part of another layout that is baseline
aligned, it can specify which of its children to baseline align to
(that is, which child TextView).
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#baselineAlignedChildIndex}.
@attr name android:baselineAlignedChildIndex
*/
public static final int LinearLayoutCompat_android_baselineAlignedChildIndex = 3;
/**
<p>This symbol is the offset where the {@link android.R.attr#gravity}
attribute's value can be found in the {@link #LinearLayoutCompat} array.
@attr name android:gravity
*/
public static final int LinearLayoutCompat_android_gravity = 0;
/**
<p>
@attr description
Should the layout be a column or a row? Use "horizontal"
for a row, "vertical" for a column. The default is
horizontal.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#orientation}.
@attr name android:orientation
*/
public static final int LinearLayoutCompat_android_orientation = 1;
/**
<p>
@attr description
Defines the maximum weight sum. If unspecified, the sum is computed
by adding the layout_weight of all of the children. This can be
used for instance to give a single child 50% of the total available
space by giving it a layout_weight of 0.5 and setting the weightSum
to 1.0.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#weightSum}.
@attr name android:weightSum
*/
public static final int LinearLayoutCompat_android_weightSum = 4;
/**
<p>
@attr description
Drawable to use as a vertical divider between buttons.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:divider
*/
public static final int LinearLayoutCompat_divider = 5;
/**
<p>
@attr description
Size of padding on either end of a divider.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:dividerPadding
*/
public static final int LinearLayoutCompat_dividerPadding = 8;
/**
<p>
@attr description
When set to true, all children with a weight will be considered having
the minimum size of the largest child. If false, all children are
measured normally.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:measureWithLargestChild
*/
public static final int LinearLayoutCompat_measureWithLargestChild = 6;
/**
<p>
@attr description
Setting for which dividers to show.
<p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>none</code></td><td>0</td><td></td></tr>
<tr><td><code>beginning</code></td><td>1</td><td></td></tr>
<tr><td><code>middle</code></td><td>2</td><td></td></tr>
<tr><td><code>end</code></td><td>4</td><td></td></tr>
</table>
<p>This is a private symbol.
@attr name com.zsj.list_demo:showDividers
*/
public static final int LinearLayoutCompat_showDividers = 7;
/** Attributes that can be used with a LinearLayoutCompat_Layout.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #LinearLayoutCompat_Layout_android_layout_gravity android:layout_gravity}</code></td><td></td></tr>
<tr><td><code>{@link #LinearLayoutCompat_Layout_android_layout_height android:layout_height}</code></td><td></td></tr>
<tr><td><code>{@link #LinearLayoutCompat_Layout_android_layout_weight android:layout_weight}</code></td><td></td></tr>
<tr><td><code>{@link #LinearLayoutCompat_Layout_android_layout_width android:layout_width}</code></td><td></td></tr>
</table>
@see #LinearLayoutCompat_Layout_android_layout_gravity
@see #LinearLayoutCompat_Layout_android_layout_height
@see #LinearLayoutCompat_Layout_android_layout_weight
@see #LinearLayoutCompat_Layout_android_layout_width
*/
public static final int[] LinearLayoutCompat_Layout = {
0x010100b3, 0x010100f4, 0x010100f5, 0x01010181
};
/**
<p>This symbol is the offset where the {@link android.R.attr#layout_gravity}
attribute's value can be found in the {@link #LinearLayoutCompat_Layout} array.
@attr name android:layout_gravity
*/
public static final int LinearLayoutCompat_Layout_android_layout_gravity = 0;
/**
<p>This symbol is the offset where the {@link android.R.attr#layout_height}
attribute's value can be found in the {@link #LinearLayoutCompat_Layout} array.
@attr name android:layout_height
*/
public static final int LinearLayoutCompat_Layout_android_layout_height = 2;
/**
<p>This symbol is the offset where the {@link android.R.attr#layout_weight}
attribute's value can be found in the {@link #LinearLayoutCompat_Layout} array.
@attr name android:layout_weight
*/
public static final int LinearLayoutCompat_Layout_android_layout_weight = 3;
/**
<p>This symbol is the offset where the {@link android.R.attr#layout_width}
attribute's value can be found in the {@link #LinearLayoutCompat_Layout} array.
@attr name android:layout_width
*/
public static final int LinearLayoutCompat_Layout_android_layout_width = 1;
/** Attributes that can be used with a ListPopupWindow.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ListPopupWindow_android_dropDownHorizontalOffset android:dropDownHorizontalOffset}</code></td><td> Amount of pixels by which the drop down should be offset horizontally.</td></tr>
<tr><td><code>{@link #ListPopupWindow_android_dropDownVerticalOffset android:dropDownVerticalOffset}</code></td><td> Amount of pixels by which the drop down should be offset vertically.</td></tr>
</table>
@see #ListPopupWindow_android_dropDownHorizontalOffset
@see #ListPopupWindow_android_dropDownVerticalOffset
*/
public static final int[] ListPopupWindow = {
0x010102ac, 0x010102ad
};
/**
<p>
@attr description
Amount of pixels by which the drop down should be offset horizontally.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#dropDownHorizontalOffset}.
@attr name android:dropDownHorizontalOffset
*/
public static final int ListPopupWindow_android_dropDownHorizontalOffset = 0;
/**
<p>
@attr description
Amount of pixels by which the drop down should be offset vertically.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#dropDownVerticalOffset}.
@attr name android:dropDownVerticalOffset
*/
public static final int ListPopupWindow_android_dropDownVerticalOffset = 1;
/** Base attributes that are available to all groups.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #MenuGroup_android_checkableBehavior android:checkableBehavior}</code></td><td> Whether the items are capable of displaying a check mark.</td></tr>
<tr><td><code>{@link #MenuGroup_android_enabled android:enabled}</code></td><td> Whether the items are enabled.</td></tr>
<tr><td><code>{@link #MenuGroup_android_id android:id}</code></td><td> The ID of the group.</td></tr>
<tr><td><code>{@link #MenuGroup_android_menuCategory android:menuCategory}</code></td><td> The category applied to all items within this group.</td></tr>
<tr><td><code>{@link #MenuGroup_android_orderInCategory android:orderInCategory}</code></td><td> The order within the category applied to all items within this group.</td></tr>
<tr><td><code>{@link #MenuGroup_android_visible android:visible}</code></td><td> Whether the items are shown/visible.</td></tr>
</table>
@see #MenuGroup_android_checkableBehavior
@see #MenuGroup_android_enabled
@see #MenuGroup_android_id
@see #MenuGroup_android_menuCategory
@see #MenuGroup_android_orderInCategory
@see #MenuGroup_android_visible
*/
public static final int[] MenuGroup = {
0x0101000e, 0x010100d0, 0x01010194, 0x010101de,
0x010101df, 0x010101e0
};
/**
<p>
@attr description
Whether the items are capable of displaying a check mark.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#checkableBehavior}.
@attr name android:checkableBehavior
*/
public static final int MenuGroup_android_checkableBehavior = 5;
/**
<p>
@attr description
Whether the items are enabled.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#enabled}.
@attr name android:enabled
*/
public static final int MenuGroup_android_enabled = 0;
/**
<p>
@attr description
The ID of the group.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#id}.
@attr name android:id
*/
public static final int MenuGroup_android_id = 1;
/**
<p>
@attr description
The category applied to all items within this group.
(This will be or'ed with the orderInCategory attribute.)
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#menuCategory}.
@attr name android:menuCategory
*/
public static final int MenuGroup_android_menuCategory = 3;
/**
<p>
@attr description
The order within the category applied to all items within this group.
(This will be or'ed with the category attribute.)
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#orderInCategory}.
@attr name android:orderInCategory
*/
public static final int MenuGroup_android_orderInCategory = 4;
/**
<p>
@attr description
Whether the items are shown/visible.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#visible}.
@attr name android:visible
*/
public static final int MenuGroup_android_visible = 2;
/** Base attributes that are available to all Item objects.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #MenuItem_actionLayout com.zsj.list_demo:actionLayout}</code></td><td> An optional layout to be used as an action view.</td></tr>
<tr><td><code>{@link #MenuItem_actionProviderClass com.zsj.list_demo:actionProviderClass}</code></td><td> The name of an optional ActionProvider class to instantiate an action view
and perform operations such as default action for that menu item.</td></tr>
<tr><td><code>{@link #MenuItem_actionViewClass com.zsj.list_demo:actionViewClass}</code></td><td> The name of an optional View class to instantiate and use as an
action view.</td></tr>
<tr><td><code>{@link #MenuItem_android_alphabeticShortcut android:alphabeticShortcut}</code></td><td> The alphabetic shortcut key.</td></tr>
<tr><td><code>{@link #MenuItem_android_checkable android:checkable}</code></td><td> Whether the item is capable of displaying a check mark.</td></tr>
<tr><td><code>{@link #MenuItem_android_checked android:checked}</code></td><td> Whether the item is checked.</td></tr>
<tr><td><code>{@link #MenuItem_android_enabled android:enabled}</code></td><td> Whether the item is enabled.</td></tr>
<tr><td><code>{@link #MenuItem_android_icon android:icon}</code></td><td> The icon associated with this item.</td></tr>
<tr><td><code>{@link #MenuItem_android_id android:id}</code></td><td> The ID of the item.</td></tr>
<tr><td><code>{@link #MenuItem_android_menuCategory android:menuCategory}</code></td><td> The category applied to the item.</td></tr>
<tr><td><code>{@link #MenuItem_android_numericShortcut android:numericShortcut}</code></td><td> The numeric shortcut key.</td></tr>
<tr><td><code>{@link #MenuItem_android_onClick android:onClick}</code></td><td> Name of a method on the Context used to inflate the menu that will be
called when the item is clicked.</td></tr>
<tr><td><code>{@link #MenuItem_android_orderInCategory android:orderInCategory}</code></td><td> The order within the category applied to the item.</td></tr>
<tr><td><code>{@link #MenuItem_android_title android:title}</code></td><td> The title associated with the item.</td></tr>
<tr><td><code>{@link #MenuItem_android_titleCondensed android:titleCondensed}</code></td><td> The condensed title associated with the item.</td></tr>
<tr><td><code>{@link #MenuItem_android_visible android:visible}</code></td><td> Whether the item is shown/visible.</td></tr>
<tr><td><code>{@link #MenuItem_showAsAction com.zsj.list_demo:showAsAction}</code></td><td> How this item should display in the Action Bar, if present.</td></tr>
</table>
@see #MenuItem_actionLayout
@see #MenuItem_actionProviderClass
@see #MenuItem_actionViewClass
@see #MenuItem_android_alphabeticShortcut
@see #MenuItem_android_checkable
@see #MenuItem_android_checked
@see #MenuItem_android_enabled
@see #MenuItem_android_icon
@see #MenuItem_android_id
@see #MenuItem_android_menuCategory
@see #MenuItem_android_numericShortcut
@see #MenuItem_android_onClick
@see #MenuItem_android_orderInCategory
@see #MenuItem_android_title
@see #MenuItem_android_titleCondensed
@see #MenuItem_android_visible
@see #MenuItem_showAsAction
*/
public static final int[] MenuItem = {
0x01010002, 0x0101000e, 0x010100d0, 0x01010106,
0x01010194, 0x010101de, 0x010101df, 0x010101e1,
0x010101e2, 0x010101e3, 0x010101e4, 0x010101e5,
0x0101026f, 0x7f010071, 0x7f010072, 0x7f010073,
0x7f010074
};
/**
<p>
@attr description
An optional layout to be used as an action view.
See {@link android.view.MenuItem#setActionView(android.view.View)}
for more info.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:actionLayout
*/
public static final int MenuItem_actionLayout = 14;
/**
<p>
@attr description
The name of an optional ActionProvider class to instantiate an action view
and perform operations such as default action for that menu item.
See {@link android.view.MenuItem#setActionProvider(android.view.ActionProvider)}
for more info.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:actionProviderClass
*/
public static final int MenuItem_actionProviderClass = 16;
/**
<p>
@attr description
The name of an optional View class to instantiate and use as an
action view. See {@link android.view.MenuItem#setActionView(android.view.View)}
for more info.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:actionViewClass
*/
public static final int MenuItem_actionViewClass = 15;
/**
<p>
@attr description
The alphabetic shortcut key. This is the shortcut when using a keyboard
with alphabetic keys.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#alphabeticShortcut}.
@attr name android:alphabeticShortcut
*/
public static final int MenuItem_android_alphabeticShortcut = 9;
/**
<p>
@attr description
Whether the item is capable of displaying a check mark.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#checkable}.
@attr name android:checkable
*/
public static final int MenuItem_android_checkable = 11;
/**
<p>
@attr description
Whether the item is checked. Note that you must first have enabled checking with
the checkable attribute or else the check mark will not appear.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#checked}.
@attr name android:checked
*/
public static final int MenuItem_android_checked = 3;
/**
<p>
@attr description
Whether the item is enabled.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#enabled}.
@attr name android:enabled
*/
public static final int MenuItem_android_enabled = 1;
/**
<p>
@attr description
The icon associated with this item. This icon will not always be shown, so
the title should be sufficient in describing this item.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#icon}.
@attr name android:icon
*/
public static final int MenuItem_android_icon = 0;
/**
<p>
@attr description
The ID of the item.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#id}.
@attr name android:id
*/
public static final int MenuItem_android_id = 2;
/**
<p>
@attr description
The category applied to the item.
(This will be or'ed with the orderInCategory attribute.)
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#menuCategory}.
@attr name android:menuCategory
*/
public static final int MenuItem_android_menuCategory = 5;
/**
<p>
@attr description
The numeric shortcut key. This is the shortcut when using a numeric (e.g., 12-key)
keyboard.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#numericShortcut}.
@attr name android:numericShortcut
*/
public static final int MenuItem_android_numericShortcut = 10;
/**
<p>
@attr description
Name of a method on the Context used to inflate the menu that will be
called when the item is clicked.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#onClick}.
@attr name android:onClick
*/
public static final int MenuItem_android_onClick = 12;
/**
<p>
@attr description
The order within the category applied to the item.
(This will be or'ed with the category attribute.)
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#orderInCategory}.
@attr name android:orderInCategory
*/
public static final int MenuItem_android_orderInCategory = 6;
/**
<p>
@attr description
The title associated with the item.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#title}.
@attr name android:title
*/
public static final int MenuItem_android_title = 7;
/**
<p>
@attr description
The condensed title associated with the item. This is used in situations where the
normal title may be too long to be displayed.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#titleCondensed}.
@attr name android:titleCondensed
*/
public static final int MenuItem_android_titleCondensed = 8;
/**
<p>
@attr description
Whether the item is shown/visible.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#visible}.
@attr name android:visible
*/
public static final int MenuItem_android_visible = 4;
/**
<p>
@attr description
How this item should display in the Action Bar, if present.
<p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>never</code></td><td>0</td><td> Never show this item in an action bar, show it in the overflow menu instead.
Mutually exclusive with "ifRoom" and "always". </td></tr>
<tr><td><code>ifRoom</code></td><td>1</td><td> Show this item in an action bar if there is room for it as determined
by the system. Favor this option over "always" where possible.
Mutually exclusive with "never" and "always". </td></tr>
<tr><td><code>always</code></td><td>2</td><td> Always show this item in an actionbar, even if it would override
the system's limits of how much stuff to put there. This may make
your action bar look bad on some screens. In most cases you should
use "ifRoom" instead. Mutually exclusive with "ifRoom" and "never". </td></tr>
<tr><td><code>withText</code></td><td>4</td><td> When this item is shown as an action in the action bar, show a text
label with it even if it has an icon representation. </td></tr>
<tr><td><code>collapseActionView</code></td><td>8</td><td> This item's action view collapses to a normal menu
item. When expanded, the action view takes over a
larger segment of its container. </td></tr>
</table>
<p>This is a private symbol.
@attr name com.zsj.list_demo:showAsAction
*/
public static final int MenuItem_showAsAction = 13;
/** Attributes that can be used with a MenuView.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #MenuView_android_headerBackground android:headerBackground}</code></td><td> Default background for the menu header.</td></tr>
<tr><td><code>{@link #MenuView_android_horizontalDivider android:horizontalDivider}</code></td><td> Default horizontal divider between rows of menu items.</td></tr>
<tr><td><code>{@link #MenuView_android_itemBackground android:itemBackground}</code></td><td> Default background for each menu item.</td></tr>
<tr><td><code>{@link #MenuView_android_itemIconDisabledAlpha android:itemIconDisabledAlpha}</code></td><td> Default disabled icon alpha for each menu item that shows an icon.</td></tr>
<tr><td><code>{@link #MenuView_android_itemTextAppearance android:itemTextAppearance}</code></td><td> Default appearance of menu item text.</td></tr>
<tr><td><code>{@link #MenuView_android_verticalDivider android:verticalDivider}</code></td><td> Default vertical divider between menu items.</td></tr>
<tr><td><code>{@link #MenuView_android_windowAnimationStyle android:windowAnimationStyle}</code></td><td> Default animations for the menu.</td></tr>
<tr><td><code>{@link #MenuView_preserveIconSpacing com.zsj.list_demo:preserveIconSpacing}</code></td><td> Whether space should be reserved in layout when an icon is missing.</td></tr>
</table>
@see #MenuView_android_headerBackground
@see #MenuView_android_horizontalDivider
@see #MenuView_android_itemBackground
@see #MenuView_android_itemIconDisabledAlpha
@see #MenuView_android_itemTextAppearance
@see #MenuView_android_verticalDivider
@see #MenuView_android_windowAnimationStyle
@see #MenuView_preserveIconSpacing
*/
public static final int[] MenuView = {
0x010100ae, 0x0101012c, 0x0101012d, 0x0101012e,
0x0101012f, 0x01010130, 0x01010131, 0x7f010070
};
/**
<p>
@attr description
Default background for the menu header.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#headerBackground}.
@attr name android:headerBackground
*/
public static final int MenuView_android_headerBackground = 4;
/**
<p>
@attr description
Default horizontal divider between rows of menu items.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#horizontalDivider}.
@attr name android:horizontalDivider
*/
public static final int MenuView_android_horizontalDivider = 2;
/**
<p>
@attr description
Default background for each menu item.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#itemBackground}.
@attr name android:itemBackground
*/
public static final int MenuView_android_itemBackground = 5;
/**
<p>
@attr description
Default disabled icon alpha for each menu item that shows an icon.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#itemIconDisabledAlpha}.
@attr name android:itemIconDisabledAlpha
*/
public static final int MenuView_android_itemIconDisabledAlpha = 6;
/**
<p>
@attr description
Default appearance of menu item text.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#itemTextAppearance}.
@attr name android:itemTextAppearance
*/
public static final int MenuView_android_itemTextAppearance = 1;
/**
<p>
@attr description
Default vertical divider between menu items.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#verticalDivider}.
@attr name android:verticalDivider
*/
public static final int MenuView_android_verticalDivider = 3;
/**
<p>
@attr description
Default animations for the menu.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#windowAnimationStyle}.
@attr name android:windowAnimationStyle
*/
public static final int MenuView_android_windowAnimationStyle = 0;
/**
<p>
@attr description
Whether space should be reserved in layout when an icon is missing.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:preserveIconSpacing
*/
public static final int MenuView_preserveIconSpacing = 7;
/** Attributes that can be used with a PopupWindow.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #PopupWindow_android_popupBackground android:popupBackground}</code></td><td></td></tr>
<tr><td><code>{@link #PopupWindow_overlapAnchor com.zsj.list_demo:overlapAnchor}</code></td><td> Whether the popup window should overlap its anchor view.</td></tr>
</table>
@see #PopupWindow_android_popupBackground
@see #PopupWindow_overlapAnchor
*/
public static final int[] PopupWindow = {
0x01010176, 0x7f010098
};
/**
<p>This symbol is the offset where the {@link android.R.attr#popupBackground}
attribute's value can be found in the {@link #PopupWindow} array.
@attr name android:popupBackground
*/
public static final int PopupWindow_android_popupBackground = 0;
/**
<p>
@attr description
Whether the popup window should overlap its anchor view.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:overlapAnchor
*/
public static final int PopupWindow_overlapAnchor = 1;
/** Attributes that can be used with a PopupWindowBackgroundState.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #PopupWindowBackgroundState_state_above_anchor com.zsj.list_demo:state_above_anchor}</code></td><td> State identifier indicating the popup will be above the anchor.</td></tr>
</table>
@see #PopupWindowBackgroundState_state_above_anchor
*/
public static final int[] PopupWindowBackgroundState = {
0x7f010097
};
/**
<p>
@attr description
State identifier indicating the popup will be above the anchor.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:state_above_anchor
*/
public static final int PopupWindowBackgroundState_state_above_anchor = 0;
/** Attributes that can be used with a SearchView.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #SearchView_android_focusable android:focusable}</code></td><td></td></tr>
<tr><td><code>{@link #SearchView_android_imeOptions android:imeOptions}</code></td><td> The IME options to set on the query text field.</td></tr>
<tr><td><code>{@link #SearchView_android_inputType android:inputType}</code></td><td> The input type to set on the query text field.</td></tr>
<tr><td><code>{@link #SearchView_android_maxWidth android:maxWidth}</code></td><td> An optional maximum width of the SearchView.</td></tr>
<tr><td><code>{@link #SearchView_closeIcon com.zsj.list_demo:closeIcon}</code></td><td> Close button icon </td></tr>
<tr><td><code>{@link #SearchView_commitIcon com.zsj.list_demo:commitIcon}</code></td><td> Commit icon shown in the query suggestion row </td></tr>
<tr><td><code>{@link #SearchView_goIcon com.zsj.list_demo:goIcon}</code></td><td> Go button icon </td></tr>
<tr><td><code>{@link #SearchView_iconifiedByDefault com.zsj.list_demo:iconifiedByDefault}</code></td><td> The default state of the SearchView.</td></tr>
<tr><td><code>{@link #SearchView_layout com.zsj.list_demo:layout}</code></td><td> The layout to use for the search view.</td></tr>
<tr><td><code>{@link #SearchView_queryBackground com.zsj.list_demo:queryBackground}</code></td><td> Background for the section containing the search query </td></tr>
<tr><td><code>{@link #SearchView_queryHint com.zsj.list_demo:queryHint}</code></td><td> An optional query hint string to be displayed in the empty query field.</td></tr>
<tr><td><code>{@link #SearchView_searchIcon com.zsj.list_demo:searchIcon}</code></td><td> Search icon </td></tr>
<tr><td><code>{@link #SearchView_submitBackground com.zsj.list_demo:submitBackground}</code></td><td> Background for the section containing the action (e.</td></tr>
<tr><td><code>{@link #SearchView_suggestionRowLayout com.zsj.list_demo:suggestionRowLayout}</code></td><td> Layout for query suggestion rows </td></tr>
<tr><td><code>{@link #SearchView_voiceIcon com.zsj.list_demo:voiceIcon}</code></td><td> Voice button icon </td></tr>
</table>
@see #SearchView_android_focusable
@see #SearchView_android_imeOptions
@see #SearchView_android_inputType
@see #SearchView_android_maxWidth
@see #SearchView_closeIcon
@see #SearchView_commitIcon
@see #SearchView_goIcon
@see #SearchView_iconifiedByDefault
@see #SearchView_layout
@see #SearchView_queryBackground
@see #SearchView_queryHint
@see #SearchView_searchIcon
@see #SearchView_submitBackground
@see #SearchView_suggestionRowLayout
@see #SearchView_voiceIcon
*/
public static final int[] SearchView = {
0x010100da, 0x0101011f, 0x01010220, 0x01010264,
0x7f010079, 0x7f01007a, 0x7f01007b, 0x7f01007c,
0x7f01007d, 0x7f01007e, 0x7f01007f, 0x7f010080,
0x7f010081, 0x7f010082, 0x7f010083
};
/**
<p>This symbol is the offset where the {@link android.R.attr#focusable}
attribute's value can be found in the {@link #SearchView} array.
@attr name android:focusable
*/
public static final int SearchView_android_focusable = 0;
/**
<p>
@attr description
The IME options to set on the query text field.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#imeOptions}.
@attr name android:imeOptions
*/
public static final int SearchView_android_imeOptions = 3;
/**
<p>
@attr description
The input type to set on the query text field.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#inputType}.
@attr name android:inputType
*/
public static final int SearchView_android_inputType = 2;
/**
<p>
@attr description
An optional maximum width of the SearchView.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#maxWidth}.
@attr name android:maxWidth
*/
public static final int SearchView_android_maxWidth = 1;
/**
<p>
@attr description
Close button icon
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:closeIcon
*/
public static final int SearchView_closeIcon = 7;
/**
<p>
@attr description
Commit icon shown in the query suggestion row
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:commitIcon
*/
public static final int SearchView_commitIcon = 11;
/**
<p>
@attr description
Go button icon
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:goIcon
*/
public static final int SearchView_goIcon = 8;
/**
<p>
@attr description
The default state of the SearchView. If true, it will be iconified when not in
use and expanded when clicked.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:iconifiedByDefault
*/
public static final int SearchView_iconifiedByDefault = 5;
/**
<p>
@attr description
The layout to use for the search view.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:layout
*/
public static final int SearchView_layout = 4;
/**
<p>
@attr description
Background for the section containing the search query
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:queryBackground
*/
public static final int SearchView_queryBackground = 13;
/**
<p>
@attr description
An optional query hint string to be displayed in the empty query field.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:queryHint
*/
public static final int SearchView_queryHint = 6;
/**
<p>
@attr description
Search icon
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:searchIcon
*/
public static final int SearchView_searchIcon = 9;
/**
<p>
@attr description
Background for the section containing the action (e.g. voice search)
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:submitBackground
*/
public static final int SearchView_submitBackground = 14;
/**
<p>
@attr description
Layout for query suggestion rows
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:suggestionRowLayout
*/
public static final int SearchView_suggestionRowLayout = 12;
/**
<p>
@attr description
Voice button icon
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:voiceIcon
*/
public static final int SearchView_voiceIcon = 10;
/** Attributes that can be used with a Spinner.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #Spinner_android_background android:background}</code></td><td></td></tr>
<tr><td><code>{@link #Spinner_android_dropDownHorizontalOffset android:dropDownHorizontalOffset}</code></td><td> Horizontal offset from the spinner widget for positioning the dropdown
in spinnerMode="dropdown".</td></tr>
<tr><td><code>{@link #Spinner_android_dropDownSelector android:dropDownSelector}</code></td><td> List selector to use for spinnerMode="dropdown" display.</td></tr>
<tr><td><code>{@link #Spinner_android_dropDownVerticalOffset android:dropDownVerticalOffset}</code></td><td> Vertical offset from the spinner widget for positioning the dropdown in
spinnerMode="dropdown".</td></tr>
<tr><td><code>{@link #Spinner_android_dropDownWidth android:dropDownWidth}</code></td><td> Width of the dropdown in spinnerMode="dropdown".</td></tr>
<tr><td><code>{@link #Spinner_android_gravity android:gravity}</code></td><td> Gravity setting for positioning the currently selected item.</td></tr>
<tr><td><code>{@link #Spinner_android_popupBackground android:popupBackground}</code></td><td> Background drawable to use for the dropdown in spinnerMode="dropdown".</td></tr>
<tr><td><code>{@link #Spinner_disableChildrenWhenDisabled com.zsj.list_demo:disableChildrenWhenDisabled}</code></td><td> Whether this spinner should mark child views as enabled/disabled when
the spinner itself is enabled/disabled.</td></tr>
<tr><td><code>{@link #Spinner_popupPromptView com.zsj.list_demo:popupPromptView}</code></td><td> Reference to a layout to use for displaying a prompt in the dropdown for
spinnerMode="dropdown".</td></tr>
<tr><td><code>{@link #Spinner_prompt com.zsj.list_demo:prompt}</code></td><td> The prompt to display when the spinner's dialog is shown.</td></tr>
<tr><td><code>{@link #Spinner_spinnerMode com.zsj.list_demo:spinnerMode}</code></td><td> Display mode for spinner options.</td></tr>
</table>
@see #Spinner_android_background
@see #Spinner_android_dropDownHorizontalOffset
@see #Spinner_android_dropDownSelector
@see #Spinner_android_dropDownVerticalOffset
@see #Spinner_android_dropDownWidth
@see #Spinner_android_gravity
@see #Spinner_android_popupBackground
@see #Spinner_disableChildrenWhenDisabled
@see #Spinner_popupPromptView
@see #Spinner_prompt
@see #Spinner_spinnerMode
*/
public static final int[] Spinner = {
0x010100af, 0x010100d4, 0x01010175, 0x01010176,
0x01010262, 0x010102ac, 0x010102ad, 0x7f010075,
0x7f010076, 0x7f010077, 0x7f010078
};
/**
<p>This symbol is the offset where the {@link android.R.attr#background}
attribute's value can be found in the {@link #Spinner} array.
@attr name android:background
*/
public static final int Spinner_android_background = 1;
/**
<p>
@attr description
Horizontal offset from the spinner widget for positioning the dropdown
in spinnerMode="dropdown".
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#dropDownHorizontalOffset}.
@attr name android:dropDownHorizontalOffset
*/
public static final int Spinner_android_dropDownHorizontalOffset = 5;
/**
<p>
@attr description
List selector to use for spinnerMode="dropdown" display.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#dropDownSelector}.
@attr name android:dropDownSelector
*/
public static final int Spinner_android_dropDownSelector = 2;
/**
<p>
@attr description
Vertical offset from the spinner widget for positioning the dropdown in
spinnerMode="dropdown".
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#dropDownVerticalOffset}.
@attr name android:dropDownVerticalOffset
*/
public static final int Spinner_android_dropDownVerticalOffset = 6;
/**
<p>
@attr description
Width of the dropdown in spinnerMode="dropdown".
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#dropDownWidth}.
@attr name android:dropDownWidth
*/
public static final int Spinner_android_dropDownWidth = 4;
/**
<p>
@attr description
Gravity setting for positioning the currently selected item.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#gravity}.
@attr name android:gravity
*/
public static final int Spinner_android_gravity = 0;
/**
<p>
@attr description
Background drawable to use for the dropdown in spinnerMode="dropdown".
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#popupBackground}.
@attr name android:popupBackground
*/
public static final int Spinner_android_popupBackground = 3;
/**
<p>
@attr description
Whether this spinner should mark child views as enabled/disabled when
the spinner itself is enabled/disabled.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:disableChildrenWhenDisabled
*/
public static final int Spinner_disableChildrenWhenDisabled = 10;
/**
<p>
@attr description
Reference to a layout to use for displaying a prompt in the dropdown for
spinnerMode="dropdown". This layout must contain a TextView with the id
{@code @android:id/text1} to be populated with the prompt text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:popupPromptView
*/
public static final int Spinner_popupPromptView = 9;
/**
<p>
@attr description
The prompt to display when the spinner's dialog is shown.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:prompt
*/
public static final int Spinner_prompt = 7;
/**
<p>
@attr description
Display mode for spinner options.
<p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>dialog</code></td><td>0</td><td> Spinner options will be presented to the user as a dialog window. </td></tr>
<tr><td><code>dropdown</code></td><td>1</td><td> Spinner options will be presented to the user as an inline dropdown
anchored to the spinner widget itself. </td></tr>
</table>
<p>This is a private symbol.
@attr name com.zsj.list_demo:spinnerMode
*/
public static final int Spinner_spinnerMode = 8;
/** Attributes that can be used with a SwitchCompat.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #SwitchCompat_android_textOff android:textOff}</code></td><td> Text to use when the switch is in the unchecked/"off" state.</td></tr>
<tr><td><code>{@link #SwitchCompat_android_textOn android:textOn}</code></td><td> Text to use when the switch is in the checked/"on" state.</td></tr>
<tr><td><code>{@link #SwitchCompat_android_thumb android:thumb}</code></td><td> Drawable to use as the "thumb" that switches back and forth.</td></tr>
<tr><td><code>{@link #SwitchCompat_showText com.zsj.list_demo:showText}</code></td><td> Whether to draw on/off text.</td></tr>
<tr><td><code>{@link #SwitchCompat_splitTrack com.zsj.list_demo:splitTrack}</code></td><td> Whether to split the track and leave a gap for the thumb drawable.</td></tr>
<tr><td><code>{@link #SwitchCompat_switchMinWidth com.zsj.list_demo:switchMinWidth}</code></td><td> Minimum width for the switch component </td></tr>
<tr><td><code>{@link #SwitchCompat_switchPadding com.zsj.list_demo:switchPadding}</code></td><td> Minimum space between the switch and caption text </td></tr>
<tr><td><code>{@link #SwitchCompat_switchTextAppearance com.zsj.list_demo:switchTextAppearance}</code></td><td> TextAppearance style for text displayed on the switch thumb.</td></tr>
<tr><td><code>{@link #SwitchCompat_thumbTextPadding com.zsj.list_demo:thumbTextPadding}</code></td><td> Amount of padding on either side of text within the switch thumb.</td></tr>
<tr><td><code>{@link #SwitchCompat_track com.zsj.list_demo:track}</code></td><td> Drawable to use as the "track" that the switch thumb slides within.</td></tr>
</table>
@see #SwitchCompat_android_textOff
@see #SwitchCompat_android_textOn
@see #SwitchCompat_android_thumb
@see #SwitchCompat_showText
@see #SwitchCompat_splitTrack
@see #SwitchCompat_switchMinWidth
@see #SwitchCompat_switchPadding
@see #SwitchCompat_switchTextAppearance
@see #SwitchCompat_thumbTextPadding
@see #SwitchCompat_track
*/
public static final int[] SwitchCompat = {
0x01010124, 0x01010125, 0x01010142, 0x7f0100a2,
0x7f0100a3, 0x7f0100a4, 0x7f0100a5, 0x7f0100a6,
0x7f0100a7, 0x7f0100a8
};
/**
<p>
@attr description
Text to use when the switch is in the unchecked/"off" state.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#textOff}.
@attr name android:textOff
*/
public static final int SwitchCompat_android_textOff = 1;
/**
<p>
@attr description
Text to use when the switch is in the checked/"on" state.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#textOn}.
@attr name android:textOn
*/
public static final int SwitchCompat_android_textOn = 0;
/**
<p>
@attr description
Drawable to use as the "thumb" that switches back and forth.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#thumb}.
@attr name android:thumb
*/
public static final int SwitchCompat_android_thumb = 2;
/**
<p>
@attr description
Whether to draw on/off text.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:showText
*/
public static final int SwitchCompat_showText = 9;
/**
<p>
@attr description
Whether to split the track and leave a gap for the thumb drawable.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:splitTrack
*/
public static final int SwitchCompat_splitTrack = 8;
/**
<p>
@attr description
Minimum width for the switch component
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:switchMinWidth
*/
public static final int SwitchCompat_switchMinWidth = 6;
/**
<p>
@attr description
Minimum space between the switch and caption text
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:switchPadding
*/
public static final int SwitchCompat_switchPadding = 7;
/**
<p>
@attr description
TextAppearance style for text displayed on the switch thumb.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:switchTextAppearance
*/
public static final int SwitchCompat_switchTextAppearance = 5;
/**
<p>
@attr description
Amount of padding on either side of text within the switch thumb.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:thumbTextPadding
*/
public static final int SwitchCompat_thumbTextPadding = 4;
/**
<p>
@attr description
Drawable to use as the "track" that the switch thumb slides within.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:track
*/
public static final int SwitchCompat_track = 3;
/** These are the standard attributes that make up a complete theme.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #Theme_actionBarDivider com.zsj.list_demo:actionBarDivider}</code></td><td> Custom divider drawable to use for elements in the action bar.</td></tr>
<tr><td><code>{@link #Theme_actionBarItemBackground com.zsj.list_demo:actionBarItemBackground}</code></td><td> Custom item state list drawable background for action bar items.</td></tr>
<tr><td><code>{@link #Theme_actionBarPopupTheme com.zsj.list_demo:actionBarPopupTheme}</code></td><td> Reference to a theme that should be used to inflate popups
shown by widgets in the action bar.</td></tr>
<tr><td><code>{@link #Theme_actionBarSize com.zsj.list_demo:actionBarSize}</code></td><td> Size of the Action Bar, including the contextual
bar used to present Action Modes.</td></tr>
<tr><td><code>{@link #Theme_actionBarSplitStyle com.zsj.list_demo:actionBarSplitStyle}</code></td><td> Reference to a style for the split Action Bar.</td></tr>
<tr><td><code>{@link #Theme_actionBarStyle com.zsj.list_demo:actionBarStyle}</code></td><td> Reference to a style for the Action Bar </td></tr>
<tr><td><code>{@link #Theme_actionBarTabBarStyle com.zsj.list_demo:actionBarTabBarStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_actionBarTabStyle com.zsj.list_demo:actionBarTabStyle}</code></td><td> Default style for tabs within an action bar </td></tr>
<tr><td><code>{@link #Theme_actionBarTabTextStyle com.zsj.list_demo:actionBarTabTextStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_actionBarTheme com.zsj.list_demo:actionBarTheme}</code></td><td> Reference to a theme that should be used to inflate the
action bar.</td></tr>
<tr><td><code>{@link #Theme_actionBarWidgetTheme com.zsj.list_demo:actionBarWidgetTheme}</code></td><td> Reference to a theme that should be used to inflate widgets
and layouts destined for the action bar.</td></tr>
<tr><td><code>{@link #Theme_actionButtonStyle com.zsj.list_demo:actionButtonStyle}</code></td><td> Default action button style.</td></tr>
<tr><td><code>{@link #Theme_actionDropDownStyle com.zsj.list_demo:actionDropDownStyle}</code></td><td> Default ActionBar dropdown style.</td></tr>
<tr><td><code>{@link #Theme_actionMenuTextAppearance com.zsj.list_demo:actionMenuTextAppearance}</code></td><td> TextAppearance style that will be applied to text that
appears within action menu items.</td></tr>
<tr><td><code>{@link #Theme_actionMenuTextColor com.zsj.list_demo:actionMenuTextColor}</code></td><td> Color for text that appears within action menu items.</td></tr>
<tr><td><code>{@link #Theme_actionModeBackground com.zsj.list_demo:actionModeBackground}</code></td><td> Background drawable to use for action mode UI </td></tr>
<tr><td><code>{@link #Theme_actionModeCloseButtonStyle com.zsj.list_demo:actionModeCloseButtonStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_actionModeCloseDrawable com.zsj.list_demo:actionModeCloseDrawable}</code></td><td> Drawable to use for the close action mode button </td></tr>
<tr><td><code>{@link #Theme_actionModeCopyDrawable com.zsj.list_demo:actionModeCopyDrawable}</code></td><td> Drawable to use for the Copy action button in Contextual Action Bar </td></tr>
<tr><td><code>{@link #Theme_actionModeCutDrawable com.zsj.list_demo:actionModeCutDrawable}</code></td><td> Drawable to use for the Cut action button in Contextual Action Bar </td></tr>
<tr><td><code>{@link #Theme_actionModeFindDrawable com.zsj.list_demo:actionModeFindDrawable}</code></td><td> Drawable to use for the Find action button in WebView selection action modes </td></tr>
<tr><td><code>{@link #Theme_actionModePasteDrawable com.zsj.list_demo:actionModePasteDrawable}</code></td><td> Drawable to use for the Paste action button in Contextual Action Bar </td></tr>
<tr><td><code>{@link #Theme_actionModePopupWindowStyle com.zsj.list_demo:actionModePopupWindowStyle}</code></td><td> PopupWindow style to use for action modes when showing as a window overlay.</td></tr>
<tr><td><code>{@link #Theme_actionModeSelectAllDrawable com.zsj.list_demo:actionModeSelectAllDrawable}</code></td><td> Drawable to use for the Select all action button in Contextual Action Bar </td></tr>
<tr><td><code>{@link #Theme_actionModeShareDrawable com.zsj.list_demo:actionModeShareDrawable}</code></td><td> Drawable to use for the Share action button in WebView selection action modes </td></tr>
<tr><td><code>{@link #Theme_actionModeSplitBackground com.zsj.list_demo:actionModeSplitBackground}</code></td><td> Background drawable to use for action mode UI in the lower split bar </td></tr>
<tr><td><code>{@link #Theme_actionModeStyle com.zsj.list_demo:actionModeStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_actionModeWebSearchDrawable com.zsj.list_demo:actionModeWebSearchDrawable}</code></td><td> Drawable to use for the Web Search action button in WebView selection action modes </td></tr>
<tr><td><code>{@link #Theme_actionOverflowButtonStyle com.zsj.list_demo:actionOverflowButtonStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_actionOverflowMenuStyle com.zsj.list_demo:actionOverflowMenuStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_activityChooserViewStyle com.zsj.list_demo:activityChooserViewStyle}</code></td><td> Default ActivityChooserView style.</td></tr>
<tr><td><code>{@link #Theme_android_windowIsFloating android:windowIsFloating}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_buttonBarButtonStyle com.zsj.list_demo:buttonBarButtonStyle}</code></td><td> A style that may be applied to Buttons placed within a
LinearLayout with the style buttonBarStyle to form a button bar.</td></tr>
<tr><td><code>{@link #Theme_buttonBarStyle com.zsj.list_demo:buttonBarStyle}</code></td><td> A style that may be applied to horizontal LinearLayouts
to form a button bar.</td></tr>
<tr><td><code>{@link #Theme_colorAccent com.zsj.list_demo:colorAccent}</code></td><td> Bright complement to the primary branding color.</td></tr>
<tr><td><code>{@link #Theme_colorButtonNormal com.zsj.list_demo:colorButtonNormal}</code></td><td> The color applied to framework buttons in their normal state.</td></tr>
<tr><td><code>{@link #Theme_colorControlActivated com.zsj.list_demo:colorControlActivated}</code></td><td> The color applied to framework controls in their activated (ex.</td></tr>
<tr><td><code>{@link #Theme_colorControlHighlight com.zsj.list_demo:colorControlHighlight}</code></td><td> The color applied to framework control highlights (ex.</td></tr>
<tr><td><code>{@link #Theme_colorControlNormal com.zsj.list_demo:colorControlNormal}</code></td><td> The color applied to framework controls in their normal state.</td></tr>
<tr><td><code>{@link #Theme_colorPrimary com.zsj.list_demo:colorPrimary}</code></td><td> The primary branding color for the app.</td></tr>
<tr><td><code>{@link #Theme_colorPrimaryDark com.zsj.list_demo:colorPrimaryDark}</code></td><td> Dark variant of the primary branding color.</td></tr>
<tr><td><code>{@link #Theme_colorSwitchThumbNormal com.zsj.list_demo:colorSwitchThumbNormal}</code></td><td> The color applied to framework switch thumbs in their normal state.</td></tr>
<tr><td><code>{@link #Theme_dividerHorizontal com.zsj.list_demo:dividerHorizontal}</code></td><td> A drawable that may be used as a horizontal divider between visual elements.</td></tr>
<tr><td><code>{@link #Theme_dividerVertical com.zsj.list_demo:dividerVertical}</code></td><td> A drawable that may be used as a vertical divider between visual elements.</td></tr>
<tr><td><code>{@link #Theme_dropDownListViewStyle com.zsj.list_demo:dropDownListViewStyle}</code></td><td> ListPopupWindow compatibility </td></tr>
<tr><td><code>{@link #Theme_dropdownListPreferredItemHeight com.zsj.list_demo:dropdownListPreferredItemHeight}</code></td><td> The preferred item height for dropdown lists.</td></tr>
<tr><td><code>{@link #Theme_editTextBackground com.zsj.list_demo:editTextBackground}</code></td><td> EditText background drawable.</td></tr>
<tr><td><code>{@link #Theme_editTextColor com.zsj.list_demo:editTextColor}</code></td><td> EditText text foreground color.</td></tr>
<tr><td><code>{@link #Theme_homeAsUpIndicator com.zsj.list_demo:homeAsUpIndicator}</code></td><td> Specifies a drawable to use for the 'home as up' indicator.</td></tr>
<tr><td><code>{@link #Theme_listChoiceBackgroundIndicator com.zsj.list_demo:listChoiceBackgroundIndicator}</code></td><td> Drawable used as a background for selected list items.</td></tr>
<tr><td><code>{@link #Theme_listPopupWindowStyle com.zsj.list_demo:listPopupWindowStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_listPreferredItemHeight com.zsj.list_demo:listPreferredItemHeight}</code></td><td> The preferred list item height.</td></tr>
<tr><td><code>{@link #Theme_listPreferredItemHeightLarge com.zsj.list_demo:listPreferredItemHeightLarge}</code></td><td> A larger, more robust list item height.</td></tr>
<tr><td><code>{@link #Theme_listPreferredItemHeightSmall com.zsj.list_demo:listPreferredItemHeightSmall}</code></td><td> A smaller, sleeker list item height.</td></tr>
<tr><td><code>{@link #Theme_listPreferredItemPaddingLeft com.zsj.list_demo:listPreferredItemPaddingLeft}</code></td><td> The preferred padding along the left edge of list items.</td></tr>
<tr><td><code>{@link #Theme_listPreferredItemPaddingRight com.zsj.list_demo:listPreferredItemPaddingRight}</code></td><td> The preferred padding along the right edge of list items.</td></tr>
<tr><td><code>{@link #Theme_panelBackground com.zsj.list_demo:panelBackground}</code></td><td> The background of a panel when it is inset from the left and right edges of the screen.</td></tr>
<tr><td><code>{@link #Theme_panelMenuListTheme com.zsj.list_demo:panelMenuListTheme}</code></td><td> Default Panel Menu style.</td></tr>
<tr><td><code>{@link #Theme_panelMenuListWidth com.zsj.list_demo:panelMenuListWidth}</code></td><td> Default Panel Menu width.</td></tr>
<tr><td><code>{@link #Theme_popupMenuStyle com.zsj.list_demo:popupMenuStyle}</code></td><td> Default PopupMenu style.</td></tr>
<tr><td><code>{@link #Theme_popupWindowStyle com.zsj.list_demo:popupWindowStyle}</code></td><td> Default PopupWindow style.</td></tr>
<tr><td><code>{@link #Theme_searchViewStyle com.zsj.list_demo:searchViewStyle}</code></td><td> Style for the search query widget.</td></tr>
<tr><td><code>{@link #Theme_selectableItemBackground com.zsj.list_demo:selectableItemBackground}</code></td><td> A style that may be applied to buttons or other selectable items
that should react to pressed and focus states, but that do not
have a clear visual border along the edges.</td></tr>
<tr><td><code>{@link #Theme_selectableItemBackgroundBorderless com.zsj.list_demo:selectableItemBackgroundBorderless}</code></td><td> Background drawable for borderless standalone items that need focus/pressed states.</td></tr>
<tr><td><code>{@link #Theme_spinnerDropDownItemStyle com.zsj.list_demo:spinnerDropDownItemStyle}</code></td><td> Default Spinner style.</td></tr>
<tr><td><code>{@link #Theme_spinnerStyle com.zsj.list_demo:spinnerStyle}</code></td><td> Default Spinner style.</td></tr>
<tr><td><code>{@link #Theme_switchStyle com.zsj.list_demo:switchStyle}</code></td><td> Default style for the Switch widget.</td></tr>
<tr><td><code>{@link #Theme_textAppearanceLargePopupMenu com.zsj.list_demo:textAppearanceLargePopupMenu}</code></td><td> Text color, typeface, size, and style for the text inside of a popup menu.</td></tr>
<tr><td><code>{@link #Theme_textAppearanceListItem com.zsj.list_demo:textAppearanceListItem}</code></td><td> The preferred TextAppearance for the primary text of list items.</td></tr>
<tr><td><code>{@link #Theme_textAppearanceListItemSmall com.zsj.list_demo:textAppearanceListItemSmall}</code></td><td> The preferred TextAppearance for the primary text of small list items.</td></tr>
<tr><td><code>{@link #Theme_textAppearanceSearchResultSubtitle com.zsj.list_demo:textAppearanceSearchResultSubtitle}</code></td><td> Text color, typeface, size, and style for system search result subtitle.</td></tr>
<tr><td><code>{@link #Theme_textAppearanceSearchResultTitle com.zsj.list_demo:textAppearanceSearchResultTitle}</code></td><td> Text color, typeface, size, and style for system search result title.</td></tr>
<tr><td><code>{@link #Theme_textAppearanceSmallPopupMenu com.zsj.list_demo:textAppearanceSmallPopupMenu}</code></td><td> Text color, typeface, size, and style for small text inside of a popup menu.</td></tr>
<tr><td><code>{@link #Theme_textColorSearchUrl com.zsj.list_demo:textColorSearchUrl}</code></td><td> Text color for urls in search suggestions, used by things like global search </td></tr>
<tr><td><code>{@link #Theme_toolbarNavigationButtonStyle com.zsj.list_demo:toolbarNavigationButtonStyle}</code></td><td> Default Toolar NavigationButtonStyle </td></tr>
<tr><td><code>{@link #Theme_toolbarStyle com.zsj.list_demo:toolbarStyle}</code></td><td> Default Toolbar style.</td></tr>
<tr><td><code>{@link #Theme_windowActionBar com.zsj.list_demo:windowActionBar}</code></td><td> Flag indicating whether this window should have an Action Bar
in place of the usual title bar.</td></tr>
<tr><td><code>{@link #Theme_windowActionBarOverlay com.zsj.list_demo:windowActionBarOverlay}</code></td><td> Flag indicating whether this window's Action Bar should overlay
application content.</td></tr>
<tr><td><code>{@link #Theme_windowActionModeOverlay com.zsj.list_demo:windowActionModeOverlay}</code></td><td> Flag indicating whether action modes should overlay window content
when there is not reserved space for their UI (such as an Action Bar).</td></tr>
<tr><td><code>{@link #Theme_windowFixedHeightMajor com.zsj.list_demo:windowFixedHeightMajor}</code></td><td> A fixed height for the window along the major axis of the screen,
that is, when in portrait.</td></tr>
<tr><td><code>{@link #Theme_windowFixedHeightMinor com.zsj.list_demo:windowFixedHeightMinor}</code></td><td> A fixed height for the window along the minor axis of the screen,
that is, when in landscape.</td></tr>
<tr><td><code>{@link #Theme_windowFixedWidthMajor com.zsj.list_demo:windowFixedWidthMajor}</code></td><td> A fixed width for the window along the major axis of the screen,
that is, when in landscape.</td></tr>
<tr><td><code>{@link #Theme_windowFixedWidthMinor com.zsj.list_demo:windowFixedWidthMinor}</code></td><td> A fixed width for the window along the minor axis of the screen,
that is, when in portrait.</td></tr>
</table>
@see #Theme_actionBarDivider
@see #Theme_actionBarItemBackground
@see #Theme_actionBarPopupTheme
@see #Theme_actionBarSize
@see #Theme_actionBarSplitStyle
@see #Theme_actionBarStyle
@see #Theme_actionBarTabBarStyle
@see #Theme_actionBarTabStyle
@see #Theme_actionBarTabTextStyle
@see #Theme_actionBarTheme
@see #Theme_actionBarWidgetTheme
@see #Theme_actionButtonStyle
@see #Theme_actionDropDownStyle
@see #Theme_actionMenuTextAppearance
@see #Theme_actionMenuTextColor
@see #Theme_actionModeBackground
@see #Theme_actionModeCloseButtonStyle
@see #Theme_actionModeCloseDrawable
@see #Theme_actionModeCopyDrawable
@see #Theme_actionModeCutDrawable
@see #Theme_actionModeFindDrawable
@see #Theme_actionModePasteDrawable
@see #Theme_actionModePopupWindowStyle
@see #Theme_actionModeSelectAllDrawable
@see #Theme_actionModeShareDrawable
@see #Theme_actionModeSplitBackground
@see #Theme_actionModeStyle
@see #Theme_actionModeWebSearchDrawable
@see #Theme_actionOverflowButtonStyle
@see #Theme_actionOverflowMenuStyle
@see #Theme_activityChooserViewStyle
@see #Theme_android_windowIsFloating
@see #Theme_buttonBarButtonStyle
@see #Theme_buttonBarStyle
@see #Theme_colorAccent
@see #Theme_colorButtonNormal
@see #Theme_colorControlActivated
@see #Theme_colorControlHighlight
@see #Theme_colorControlNormal
@see #Theme_colorPrimary
@see #Theme_colorPrimaryDark
@see #Theme_colorSwitchThumbNormal
@see #Theme_dividerHorizontal
@see #Theme_dividerVertical
@see #Theme_dropDownListViewStyle
@see #Theme_dropdownListPreferredItemHeight
@see #Theme_editTextBackground
@see #Theme_editTextColor
@see #Theme_homeAsUpIndicator
@see #Theme_listChoiceBackgroundIndicator
@see #Theme_listPopupWindowStyle
@see #Theme_listPreferredItemHeight
@see #Theme_listPreferredItemHeightLarge
@see #Theme_listPreferredItemHeightSmall
@see #Theme_listPreferredItemPaddingLeft
@see #Theme_listPreferredItemPaddingRight
@see #Theme_panelBackground
@see #Theme_panelMenuListTheme
@see #Theme_panelMenuListWidth
@see #Theme_popupMenuStyle
@see #Theme_popupWindowStyle
@see #Theme_searchViewStyle
@see #Theme_selectableItemBackground
@see #Theme_selectableItemBackgroundBorderless
@see #Theme_spinnerDropDownItemStyle
@see #Theme_spinnerStyle
@see #Theme_switchStyle
@see #Theme_textAppearanceLargePopupMenu
@see #Theme_textAppearanceListItem
@see #Theme_textAppearanceListItemSmall
@see #Theme_textAppearanceSearchResultSubtitle
@see #Theme_textAppearanceSearchResultTitle
@see #Theme_textAppearanceSmallPopupMenu
@see #Theme_textColorSearchUrl
@see #Theme_toolbarNavigationButtonStyle
@see #Theme_toolbarStyle
@see #Theme_windowActionBar
@see #Theme_windowActionBarOverlay
@see #Theme_windowActionModeOverlay
@see #Theme_windowFixedHeightMajor
@see #Theme_windowFixedHeightMinor
@see #Theme_windowFixedWidthMajor
@see #Theme_windowFixedWidthMinor
*/
public static final int[] Theme = {
0x01010057, 0x7f010003, 0x7f010004, 0x7f010005,
0x7f010006, 0x7f010007, 0x7f010008, 0x7f010009,
0x7f01000a, 0x7f01000b, 0x7f01000c, 0x7f01000d,
0x7f01000e, 0x7f01000f, 0x7f010010, 0x7f010011,
0x7f010012, 0x7f010013, 0x7f010014, 0x7f010015,
0x7f010016, 0x7f010017, 0x7f010018, 0x7f010019,
0x7f01001a, 0x7f01001b, 0x7f01001c, 0x7f01001d,
0x7f01001e, 0x7f01001f, 0x7f010020, 0x7f010021,
0x7f010022, 0x7f010023, 0x7f010024, 0x7f010025,
0x7f010026, 0x7f010027, 0x7f010028, 0x7f010029,
0x7f01002a, 0x7f01002b, 0x7f01002c, 0x7f01002d,
0x7f01002e, 0x7f01002f, 0x7f010030, 0x7f010031,
0x7f010032, 0x7f010033, 0x7f010034, 0x7f010035,
0x7f010036, 0x7f010037, 0x7f010038, 0x7f010039,
0x7f01003a, 0x7f01003b, 0x7f01003c, 0x7f01003d,
0x7f01003e, 0x7f01003f, 0x7f010040, 0x7f010041,
0x7f010042, 0x7f010043, 0x7f010044, 0x7f010045,
0x7f010046, 0x7f010047, 0x7f010048, 0x7f010049,
0x7f01004a, 0x7f01004b, 0x7f01004c, 0x7f01004d,
0x7f01004e, 0x7f01004f, 0x7f010050, 0x7f010051,
0x7f010052, 0x7f010053, 0x7f010054
};
/**
<p>
@attr description
Custom divider drawable to use for elements in the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:actionBarDivider
*/
public static final int Theme_actionBarDivider = 19;
/**
<p>
@attr description
Custom item state list drawable background for action bar items.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:actionBarItemBackground
*/
public static final int Theme_actionBarItemBackground = 20;
/**
<p>
@attr description
Reference to a theme that should be used to inflate popups
shown by widgets in the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:actionBarPopupTheme
*/
public static final int Theme_actionBarPopupTheme = 13;
/**
<p>
@attr description
Size of the Action Bar, including the contextual
bar used to present Action Modes.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>May be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>wrap_content</code></td><td>0</td><td></td></tr>
</table>
<p>This is a private symbol.
@attr name com.zsj.list_demo:actionBarSize
*/
public static final int Theme_actionBarSize = 18;
/**
<p>
@attr description
Reference to a style for the split Action Bar. This style
controls the split component that holds the menu/action
buttons. actionBarStyle is still used for the primary
bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:actionBarSplitStyle
*/
public static final int Theme_actionBarSplitStyle = 15;
/**
<p>
@attr description
Reference to a style for the Action Bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:actionBarStyle
*/
public static final int Theme_actionBarStyle = 14;
/**
<p>This symbol is the offset where the {@link com.zsj.list_demo.R.attr#actionBarTabBarStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.zsj.list_demo:actionBarTabBarStyle
*/
public static final int Theme_actionBarTabBarStyle = 9;
/**
<p>
@attr description
Default style for tabs within an action bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:actionBarTabStyle
*/
public static final int Theme_actionBarTabStyle = 8;
/**
<p>This symbol is the offset where the {@link com.zsj.list_demo.R.attr#actionBarTabTextStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.zsj.list_demo:actionBarTabTextStyle
*/
public static final int Theme_actionBarTabTextStyle = 10;
/**
<p>
@attr description
Reference to a theme that should be used to inflate the
action bar. This will be inherited by any widget inflated
into the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:actionBarTheme
*/
public static final int Theme_actionBarTheme = 16;
/**
<p>
@attr description
Reference to a theme that should be used to inflate widgets
and layouts destined for the action bar. Most of the time
this will be a reference to the current theme, but when
the action bar has a significantly different contrast
profile than the rest of the activity the difference
can become important. If this is set to @null the current
theme will be used.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:actionBarWidgetTheme
*/
public static final int Theme_actionBarWidgetTheme = 17;
/**
<p>
@attr description
Default action button style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:actionButtonStyle
*/
public static final int Theme_actionButtonStyle = 43;
/**
<p>
@attr description
Default ActionBar dropdown style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:actionDropDownStyle
*/
public static final int Theme_actionDropDownStyle = 38;
/**
<p>
@attr description
TextAppearance style that will be applied to text that
appears within action menu items.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:actionMenuTextAppearance
*/
public static final int Theme_actionMenuTextAppearance = 21;
/**
<p>
@attr description
Color for text that appears within action menu items.
Color for text that appears within action menu items.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:actionMenuTextColor
*/
public static final int Theme_actionMenuTextColor = 22;
/**
<p>
@attr description
Background drawable to use for action mode UI
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:actionModeBackground
*/
public static final int Theme_actionModeBackground = 25;
/**
<p>This symbol is the offset where the {@link com.zsj.list_demo.R.attr#actionModeCloseButtonStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.zsj.list_demo:actionModeCloseButtonStyle
*/
public static final int Theme_actionModeCloseButtonStyle = 24;
/**
<p>
@attr description
Drawable to use for the close action mode button
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:actionModeCloseDrawable
*/
public static final int Theme_actionModeCloseDrawable = 27;
/**
<p>
@attr description
Drawable to use for the Copy action button in Contextual Action Bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:actionModeCopyDrawable
*/
public static final int Theme_actionModeCopyDrawable = 29;
/**
<p>
@attr description
Drawable to use for the Cut action button in Contextual Action Bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:actionModeCutDrawable
*/
public static final int Theme_actionModeCutDrawable = 28;
/**
<p>
@attr description
Drawable to use for the Find action button in WebView selection action modes
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:actionModeFindDrawable
*/
public static final int Theme_actionModeFindDrawable = 33;
/**
<p>
@attr description
Drawable to use for the Paste action button in Contextual Action Bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:actionModePasteDrawable
*/
public static final int Theme_actionModePasteDrawable = 30;
/**
<p>
@attr description
PopupWindow style to use for action modes when showing as a window overlay.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:actionModePopupWindowStyle
*/
public static final int Theme_actionModePopupWindowStyle = 35;
/**
<p>
@attr description
Drawable to use for the Select all action button in Contextual Action Bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:actionModeSelectAllDrawable
*/
public static final int Theme_actionModeSelectAllDrawable = 31;
/**
<p>
@attr description
Drawable to use for the Share action button in WebView selection action modes
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:actionModeShareDrawable
*/
public static final int Theme_actionModeShareDrawable = 32;
/**
<p>
@attr description
Background drawable to use for action mode UI in the lower split bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:actionModeSplitBackground
*/
public static final int Theme_actionModeSplitBackground = 26;
/**
<p>This symbol is the offset where the {@link com.zsj.list_demo.R.attr#actionModeStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.zsj.list_demo:actionModeStyle
*/
public static final int Theme_actionModeStyle = 23;
/**
<p>
@attr description
Drawable to use for the Web Search action button in WebView selection action modes
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:actionModeWebSearchDrawable
*/
public static final int Theme_actionModeWebSearchDrawable = 34;
/**
<p>This symbol is the offset where the {@link com.zsj.list_demo.R.attr#actionOverflowButtonStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.zsj.list_demo:actionOverflowButtonStyle
*/
public static final int Theme_actionOverflowButtonStyle = 11;
/**
<p>This symbol is the offset where the {@link com.zsj.list_demo.R.attr#actionOverflowMenuStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.zsj.list_demo:actionOverflowMenuStyle
*/
public static final int Theme_actionOverflowMenuStyle = 12;
/**
<p>
@attr description
Default ActivityChooserView style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:activityChooserViewStyle
*/
public static final int Theme_activityChooserViewStyle = 50;
/**
<p>This symbol is the offset where the {@link android.R.attr#windowIsFloating}
attribute's value can be found in the {@link #Theme} array.
@attr name android:windowIsFloating
*/
public static final int Theme_android_windowIsFloating = 0;
/**
<p>
@attr description
A style that may be applied to Buttons placed within a
LinearLayout with the style buttonBarStyle to form a button bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:buttonBarButtonStyle
*/
public static final int Theme_buttonBarButtonStyle = 45;
/**
<p>
@attr description
A style that may be applied to horizontal LinearLayouts
to form a button bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:buttonBarStyle
*/
public static final int Theme_buttonBarStyle = 44;
/**
<p>
@attr description
Bright complement to the primary branding color. By default, this is the color applied
to framework controls (via colorControlActivated).
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:colorAccent
*/
public static final int Theme_colorAccent = 77;
/**
<p>
@attr description
The color applied to framework buttons in their normal state.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:colorButtonNormal
*/
public static final int Theme_colorButtonNormal = 81;
/**
<p>
@attr description
The color applied to framework controls in their activated (ex. checked) state.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:colorControlActivated
*/
public static final int Theme_colorControlActivated = 79;
/**
<p>
@attr description
The color applied to framework control highlights (ex. ripples, list selectors).
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:colorControlHighlight
*/
public static final int Theme_colorControlHighlight = 80;
/**
<p>
@attr description
The color applied to framework controls in their normal state.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:colorControlNormal
*/
public static final int Theme_colorControlNormal = 78;
/**
<p>
@attr description
The primary branding color for the app. By default, this is the color applied to the
action bar background.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:colorPrimary
*/
public static final int Theme_colorPrimary = 75;
/**
<p>
@attr description
Dark variant of the primary branding color. By default, this is the color applied to
the status bar (via statusBarColor) and navigation bar (via navigationBarColor).
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:colorPrimaryDark
*/
public static final int Theme_colorPrimaryDark = 76;
/**
<p>
@attr description
The color applied to framework switch thumbs in their normal state.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:colorSwitchThumbNormal
*/
public static final int Theme_colorSwitchThumbNormal = 82;
/**
<p>
@attr description
A drawable that may be used as a horizontal divider between visual elements.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:dividerHorizontal
*/
public static final int Theme_dividerHorizontal = 49;
/**
<p>
@attr description
A drawable that may be used as a vertical divider between visual elements.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:dividerVertical
*/
public static final int Theme_dividerVertical = 48;
/**
<p>
@attr description
ListPopupWindow compatibility
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:dropDownListViewStyle
*/
public static final int Theme_dropDownListViewStyle = 67;
/**
<p>
@attr description
The preferred item height for dropdown lists.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:dropdownListPreferredItemHeight
*/
public static final int Theme_dropdownListPreferredItemHeight = 39;
/**
<p>
@attr description
EditText background drawable.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:editTextBackground
*/
public static final int Theme_editTextBackground = 56;
/**
<p>
@attr description
EditText text foreground color.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:editTextColor
*/
public static final int Theme_editTextColor = 55;
/**
<p>
@attr description
Specifies a drawable to use for the 'home as up' indicator.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:homeAsUpIndicator
*/
public static final int Theme_homeAsUpIndicator = 42;
/**
<p>
@attr description
Drawable used as a background for selected list items.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:listChoiceBackgroundIndicator
*/
public static final int Theme_listChoiceBackgroundIndicator = 74;
/**
<p>This symbol is the offset where the {@link com.zsj.list_demo.R.attr#listPopupWindowStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.zsj.list_demo:listPopupWindowStyle
*/
public static final int Theme_listPopupWindowStyle = 68;
/**
<p>
@attr description
The preferred list item height.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:listPreferredItemHeight
*/
public static final int Theme_listPreferredItemHeight = 62;
/**
<p>
@attr description
A larger, more robust list item height.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:listPreferredItemHeightLarge
*/
public static final int Theme_listPreferredItemHeightLarge = 64;
/**
<p>
@attr description
A smaller, sleeker list item height.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:listPreferredItemHeightSmall
*/
public static final int Theme_listPreferredItemHeightSmall = 63;
/**
<p>
@attr description
The preferred padding along the left edge of list items.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:listPreferredItemPaddingLeft
*/
public static final int Theme_listPreferredItemPaddingLeft = 65;
/**
<p>
@attr description
The preferred padding along the right edge of list items.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:listPreferredItemPaddingRight
*/
public static final int Theme_listPreferredItemPaddingRight = 66;
/**
<p>
@attr description
The background of a panel when it is inset from the left and right edges of the screen.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:panelBackground
*/
public static final int Theme_panelBackground = 71;
/**
<p>
@attr description
Default Panel Menu style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:panelMenuListTheme
*/
public static final int Theme_panelMenuListTheme = 73;
/**
<p>
@attr description
Default Panel Menu width.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:panelMenuListWidth
*/
public static final int Theme_panelMenuListWidth = 72;
/**
<p>
@attr description
Default PopupMenu style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:popupMenuStyle
*/
public static final int Theme_popupMenuStyle = 53;
/**
<p>
@attr description
Default PopupWindow style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:popupWindowStyle
*/
public static final int Theme_popupWindowStyle = 54;
/**
<p>
@attr description
Style for the search query widget.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:searchViewStyle
*/
public static final int Theme_searchViewStyle = 61;
/**
<p>
@attr description
A style that may be applied to buttons or other selectable items
that should react to pressed and focus states, but that do not
have a clear visual border along the edges.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:selectableItemBackground
*/
public static final int Theme_selectableItemBackground = 46;
/**
<p>
@attr description
Background drawable for borderless standalone items that need focus/pressed states.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:selectableItemBackgroundBorderless
*/
public static final int Theme_selectableItemBackgroundBorderless = 47;
/**
<p>
@attr description
Default Spinner style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:spinnerDropDownItemStyle
*/
public static final int Theme_spinnerDropDownItemStyle = 41;
/**
<p>
@attr description
Default Spinner style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:spinnerStyle
*/
public static final int Theme_spinnerStyle = 40;
/**
<p>
@attr description
Default style for the Switch widget.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:switchStyle
*/
public static final int Theme_switchStyle = 57;
/**
<p>
@attr description
Text color, typeface, size, and style for the text inside of a popup menu.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:textAppearanceLargePopupMenu
*/
public static final int Theme_textAppearanceLargePopupMenu = 36;
/**
<p>
@attr description
The preferred TextAppearance for the primary text of list items.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:textAppearanceListItem
*/
public static final int Theme_textAppearanceListItem = 69;
/**
<p>
@attr description
The preferred TextAppearance for the primary text of small list items.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:textAppearanceListItemSmall
*/
public static final int Theme_textAppearanceListItemSmall = 70;
/**
<p>
@attr description
Text color, typeface, size, and style for system search result subtitle. Defaults to primary inverse text color.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:textAppearanceSearchResultSubtitle
*/
public static final int Theme_textAppearanceSearchResultSubtitle = 59;
/**
<p>
@attr description
Text color, typeface, size, and style for system search result title. Defaults to primary inverse text color.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:textAppearanceSearchResultTitle
*/
public static final int Theme_textAppearanceSearchResultTitle = 58;
/**
<p>
@attr description
Text color, typeface, size, and style for small text inside of a popup menu.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:textAppearanceSmallPopupMenu
*/
public static final int Theme_textAppearanceSmallPopupMenu = 37;
/**
<p>
@attr description
Text color for urls in search suggestions, used by things like global search
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:textColorSearchUrl
*/
public static final int Theme_textColorSearchUrl = 60;
/**
<p>
@attr description
Default Toolar NavigationButtonStyle
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:toolbarNavigationButtonStyle
*/
public static final int Theme_toolbarNavigationButtonStyle = 52;
/**
<p>
@attr description
Default Toolbar style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:toolbarStyle
*/
public static final int Theme_toolbarStyle = 51;
/**
<p>
@attr description
Flag indicating whether this window should have an Action Bar
in place of the usual title bar.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:windowActionBar
*/
public static final int Theme_windowActionBar = 1;
/**
<p>
@attr description
Flag indicating whether this window's Action Bar should overlay
application content. Does nothing if the window would not
have an Action Bar.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:windowActionBarOverlay
*/
public static final int Theme_windowActionBarOverlay = 2;
/**
<p>
@attr description
Flag indicating whether action modes should overlay window content
when there is not reserved space for their UI (such as an Action Bar).
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:windowActionModeOverlay
*/
public static final int Theme_windowActionModeOverlay = 3;
/**
<p>
@attr description
A fixed height for the window along the major axis of the screen,
that is, when in portrait. Can be either an absolute dimension
or a fraction of the screen size in that dimension.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:windowFixedHeightMajor
*/
public static final int Theme_windowFixedHeightMajor = 7;
/**
<p>
@attr description
A fixed height for the window along the minor axis of the screen,
that is, when in landscape. Can be either an absolute dimension
or a fraction of the screen size in that dimension.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:windowFixedHeightMinor
*/
public static final int Theme_windowFixedHeightMinor = 5;
/**
<p>
@attr description
A fixed width for the window along the major axis of the screen,
that is, when in landscape. Can be either an absolute dimension
or a fraction of the screen size in that dimension.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:windowFixedWidthMajor
*/
public static final int Theme_windowFixedWidthMajor = 4;
/**
<p>
@attr description
A fixed width for the window along the minor axis of the screen,
that is, when in portrait. Can be either an absolute dimension
or a fraction of the screen size in that dimension.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:windowFixedWidthMinor
*/
public static final int Theme_windowFixedWidthMinor = 6;
/** Attributes that can be used with a Toolbar.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #Toolbar_android_gravity android:gravity}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_android_minHeight android:minHeight}</code></td><td> Allows us to read in the minHeight attr pre-v16 </td></tr>
<tr><td><code>{@link #Toolbar_buttonGravity com.zsj.list_demo:buttonGravity}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_collapseIcon com.zsj.list_demo:collapseIcon}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_contentInsetEnd com.zsj.list_demo:contentInsetEnd}</code></td><td> Minimum inset for content views within a bar.</td></tr>
<tr><td><code>{@link #Toolbar_contentInsetLeft com.zsj.list_demo:contentInsetLeft}</code></td><td> Minimum inset for content views within a bar.</td></tr>
<tr><td><code>{@link #Toolbar_contentInsetRight com.zsj.list_demo:contentInsetRight}</code></td><td> Minimum inset for content views within a bar.</td></tr>
<tr><td><code>{@link #Toolbar_contentInsetStart com.zsj.list_demo:contentInsetStart}</code></td><td> Minimum inset for content views within a bar.</td></tr>
<tr><td><code>{@link #Toolbar_maxButtonHeight com.zsj.list_demo:maxButtonHeight}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_navigationContentDescription com.zsj.list_demo:navigationContentDescription}</code></td><td> Text to set as the content description for the navigation button
located at the start of the toolbar.</td></tr>
<tr><td><code>{@link #Toolbar_navigationIcon com.zsj.list_demo:navigationIcon}</code></td><td> Icon drawable to use for the navigation button located at
the start of the toolbar.</td></tr>
<tr><td><code>{@link #Toolbar_popupTheme com.zsj.list_demo:popupTheme}</code></td><td> Reference to a theme that should be used to inflate popups
shown by widgets in the toolbar.</td></tr>
<tr><td><code>{@link #Toolbar_subtitle com.zsj.list_demo:subtitle}</code></td><td> Specifies subtitle text used for navigationMode="normal" </td></tr>
<tr><td><code>{@link #Toolbar_subtitleTextAppearance com.zsj.list_demo:subtitleTextAppearance}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_theme com.zsj.list_demo:theme}</code></td><td> Specifies a theme override for a view.</td></tr>
<tr><td><code>{@link #Toolbar_title com.zsj.list_demo:title}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_titleMarginBottom com.zsj.list_demo:titleMarginBottom}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_titleMarginEnd com.zsj.list_demo:titleMarginEnd}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_titleMarginStart com.zsj.list_demo:titleMarginStart}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_titleMarginTop com.zsj.list_demo:titleMarginTop}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_titleMargins com.zsj.list_demo:titleMargins}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_titleTextAppearance com.zsj.list_demo:titleTextAppearance}</code></td><td></td></tr>
</table>
@see #Toolbar_android_gravity
@see #Toolbar_android_minHeight
@see #Toolbar_buttonGravity
@see #Toolbar_collapseIcon
@see #Toolbar_contentInsetEnd
@see #Toolbar_contentInsetLeft
@see #Toolbar_contentInsetRight
@see #Toolbar_contentInsetStart
@see #Toolbar_maxButtonHeight
@see #Toolbar_navigationContentDescription
@see #Toolbar_navigationIcon
@see #Toolbar_popupTheme
@see #Toolbar_subtitle
@see #Toolbar_subtitleTextAppearance
@see #Toolbar_theme
@see #Toolbar_title
@see #Toolbar_titleMarginBottom
@see #Toolbar_titleMarginEnd
@see #Toolbar_titleMarginStart
@see #Toolbar_titleMarginTop
@see #Toolbar_titleMargins
@see #Toolbar_titleTextAppearance
*/
public static final int[] Toolbar = {
0x010100af, 0x01010140, 0x7f010000, 0x7f010057,
0x7f010067, 0x7f010068, 0x7f010069, 0x7f01006a,
0x7f01006c, 0x7f01008a, 0x7f01008b, 0x7f01008c,
0x7f01008d, 0x7f01008e, 0x7f01008f, 0x7f010090,
0x7f010091, 0x7f010092, 0x7f010093, 0x7f010094,
0x7f010095, 0x7f010096
};
/**
<p>This symbol is the offset where the {@link android.R.attr#gravity}
attribute's value can be found in the {@link #Toolbar} array.
@attr name android:gravity
*/
public static final int Toolbar_android_gravity = 0;
/**
<p>
@attr description
Allows us to read in the minHeight attr pre-v16
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#minHeight}.
@attr name android:minHeight
*/
public static final int Toolbar_android_minHeight = 1;
/**
<p>This symbol is the offset where the {@link com.zsj.list_demo.R.attr#buttonGravity}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>top</code></td><td>0x30</td><td> Push object to the top of its container, not changing its size. </td></tr>
<tr><td><code>bottom</code></td><td>0x50</td><td> Push object to the bottom of its container, not changing its size. </td></tr>
</table>
@attr name com.zsj.list_demo:buttonGravity
*/
public static final int Toolbar_buttonGravity = 18;
/**
<p>This symbol is the offset where the {@link com.zsj.list_demo.R.attr#collapseIcon}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.zsj.list_demo:collapseIcon
*/
public static final int Toolbar_collapseIcon = 19;
/**
<p>
@attr description
Minimum inset for content views within a bar. Navigation buttons and
menu views are excepted. Only valid for some themes and configurations.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:contentInsetEnd
*/
public static final int Toolbar_contentInsetEnd = 5;
/**
<p>
@attr description
Minimum inset for content views within a bar. Navigation buttons and
menu views are excepted. Only valid for some themes and configurations.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:contentInsetLeft
*/
public static final int Toolbar_contentInsetLeft = 6;
/**
<p>
@attr description
Minimum inset for content views within a bar. Navigation buttons and
menu views are excepted. Only valid for some themes and configurations.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:contentInsetRight
*/
public static final int Toolbar_contentInsetRight = 7;
/**
<p>
@attr description
Minimum inset for content views within a bar. Navigation buttons and
menu views are excepted. Only valid for some themes and configurations.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:contentInsetStart
*/
public static final int Toolbar_contentInsetStart = 4;
/**
<p>This symbol is the offset where the {@link com.zsj.list_demo.R.attr#maxButtonHeight}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.zsj.list_demo:maxButtonHeight
*/
public static final int Toolbar_maxButtonHeight = 16;
/**
<p>
@attr description
Text to set as the content description for the navigation button
located at the start of the toolbar.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:navigationContentDescription
*/
public static final int Toolbar_navigationContentDescription = 21;
/**
<p>
@attr description
Icon drawable to use for the navigation button located at
the start of the toolbar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:navigationIcon
*/
public static final int Toolbar_navigationIcon = 20;
/**
<p>
@attr description
Reference to a theme that should be used to inflate popups
shown by widgets in the toolbar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:popupTheme
*/
public static final int Toolbar_popupTheme = 8;
/**
<p>
@attr description
Specifies subtitle text used for navigationMode="normal"
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:subtitle
*/
public static final int Toolbar_subtitle = 3;
/**
<p>This symbol is the offset where the {@link com.zsj.list_demo.R.attr#subtitleTextAppearance}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.zsj.list_demo:subtitleTextAppearance
*/
public static final int Toolbar_subtitleTextAppearance = 10;
/**
<p>
@attr description
Specifies a theme override for a view. When a theme override is set, the
view will be inflated using a {@link android.content.Context} themed with
the specified resource. During XML inflation, any child views under the
view with a theme override will inherit the themed context.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.zsj.list_demo:theme
*/
public static final int Toolbar_theme = 17;
/**
<p>This symbol is the offset where the {@link com.zsj.list_demo.R.attr#title}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.zsj.list_demo:title
*/
public static final int Toolbar_title = 2;
/**
<p>This symbol is the offset where the {@link com.zsj.list_demo.R.attr#titleMarginBottom}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.zsj.list_demo:titleMarginBottom
*/
public static final int Toolbar_titleMarginBottom = 15;
/**
<p>This symbol is the offset where the {@link com.zsj.list_demo.R.attr#titleMarginEnd}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.zsj.list_demo:titleMarginEnd
*/
public static final int Toolbar_titleMarginEnd = 13;
/**
<p>This symbol is the offset where the {@link com.zsj.list_demo.R.attr#titleMarginStart}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.zsj.list_demo:titleMarginStart
*/
public static final int Toolbar_titleMarginStart = 12;
/**
<p>This symbol is the offset where the {@link com.zsj.list_demo.R.attr#titleMarginTop}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.zsj.list_demo:titleMarginTop
*/
public static final int Toolbar_titleMarginTop = 14;
/**
<p>This symbol is the offset where the {@link com.zsj.list_demo.R.attr#titleMargins}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.zsj.list_demo:titleMargins
*/
public static final int Toolbar_titleMargins = 11;
/**
<p>This symbol is the offset where the {@link com.zsj.list_demo.R.attr#titleTextAppearance}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.zsj.list_demo:titleTextAppearance
*/
public static final int Toolbar_titleTextAppearance = 9;
/** Attributes that can be used with a View.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #View_android_focusable android:focusable}</code></td><td> Boolean that controls whether a view can take focus.</td></tr>
<tr><td><code>{@link #View_paddingEnd com.zsj.list_demo:paddingEnd}</code></td><td> Sets the padding, in pixels, of the end edge; see {@link android.R.attr#padding}.</td></tr>
<tr><td><code>{@link #View_paddingStart com.zsj.list_demo:paddingStart}</code></td><td> Sets the padding, in pixels, of the start edge; see {@link android.R.attr#padding}.</td></tr>
</table>
@see #View_android_focusable
@see #View_paddingEnd
@see #View_paddingStart
*/
public static final int[] View = {
0x010100da, 0x7f01006e, 0x7f01006f
};
/**
<p>
@attr description
Boolean that controls whether a view can take focus. By default the user can not
move focus to a view; by setting this attribute to true the view is
allowed to take focus. This value does not impact the behavior of
directly calling {@link android.view.View#requestFocus}, which will
always request focus regardless of this view. It only impacts where
focus navigation will try to move focus.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#focusable}.
@attr name android:focusable
*/
public static final int View_android_focusable = 0;
/**
<p>
@attr description
Sets the padding, in pixels, of the end edge; see {@link android.R.attr#padding}.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:paddingEnd
*/
public static final int View_paddingEnd = 2;
/**
<p>
@attr description
Sets the padding, in pixels, of the start edge; see {@link android.R.attr#padding}.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.zsj.list_demo:paddingStart
*/
public static final int View_paddingStart = 1;
/** Attributes that can be used with a ViewStubCompat.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ViewStubCompat_android_id android:id}</code></td><td></td></tr>
<tr><td><code>{@link #ViewStubCompat_android_inflatedId android:inflatedId}</code></td><td> Overrides the id of the inflated View with this value.</td></tr>
<tr><td><code>{@link #ViewStubCompat_android_layout android:layout}</code></td><td> Supply an identifier for the layout resource to inflate when the ViewStub
becomes visible or when forced to do so.</td></tr>
</table>
@see #ViewStubCompat_android_id
@see #ViewStubCompat_android_inflatedId
@see #ViewStubCompat_android_layout
*/
public static final int[] ViewStubCompat = {
0x010100d0, 0x010100f2, 0x010100f3
};
/**
<p>This symbol is the offset where the {@link android.R.attr#id}
attribute's value can be found in the {@link #ViewStubCompat} array.
@attr name android:id
*/
public static final int ViewStubCompat_android_id = 0;
/**
<p>
@attr description
Overrides the id of the inflated View with this value.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#inflatedId}.
@attr name android:inflatedId
*/
public static final int ViewStubCompat_android_inflatedId = 2;
/**
<p>
@attr description
Supply an identifier for the layout resource to inflate when the ViewStub
becomes visible or when forced to do so. The layout resource must be a
valid reference to a layout.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#layout}.
@attr name android:layout
*/
public static final int ViewStubCompat_android_layout = 1;
};
}
| [
"[email protected]"
]
| |
8d3e7bf0ab62e4644507141962b1fd3b719a1a0b | 2ed4b95fb3a40afcdcf2c993966541088abe0e21 | /app/src/main/java/com/example/meet13/HourlyForecast.java | 8b67e16930df8b09c2cce80fbd70e178fcf0ce34 | []
| no_license | AkhIgor/Meet13 | 0c832a5103a0df092073e1eda1c511673ce6844d | 999471153ebc711d665dc8d89bb7971ef96f1c0f | refs/heads/master | 2020-03-23T20:13:21.931586 | 2018-08-28T10:29:29 | 2018-08-28T10:29:29 | 142,029,064 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,817 | java | package com.example.meet13;
import android.arch.persistence.room.Entity;
import android.arch.persistence.room.PrimaryKey;
import android.os.Parcel;
import android.os.Parcelable;
/**
* Created by Игорь on 15.07.2018.
*/
@Entity
class HourlyForecast implements Parcelable {
@PrimaryKey(autoGenerate = true)
private long id;
private long time;
private String icon;
private double temperature;
public HourlyForecast() {
}
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public long getTime() {
return time;
}
public void setTime(long time) {
this.time = time;
}
public String getIcon() {
return icon;
}
public void setIcon(String icon) {
this.icon = icon;
}
public double getTemperature() {
return temperature;
}
public void setTemperature(double temperature) {
this.temperature = temperature;
}
protected HourlyForecast(Parcel in) {
id = in.readLong();
time = in.readLong();
icon = in.readString();
temperature = in.readDouble();
}
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeLong(id);
dest.writeLong(time);
dest.writeString(icon);
dest.writeDouble(temperature);
}
@Override
public int describeContents() {
return 0;
}
public static final Creator<HourlyForecast> CREATOR = new Creator<HourlyForecast>() {
@Override
public HourlyForecast createFromParcel(Parcel in) {
return new HourlyForecast(in);
}
@Override
public HourlyForecast[] newArray(int size) {
return new HourlyForecast[size];
}
};
}
| [
"[email protected]"
]
| |
81bded9d5338341f34e14702d43bb19a6f4b43d1 | 0aaae05218751997f6bd27ed43388f27e5b74fcd | /src/main/java/com/make/miracle/backend/models/services/DetalleCarreraService.java | 489d848f0ab8bde06f18a85b7dc20140b88657c4 | []
| no_license | caceres1992/MakeBack-end | c6c4e93c5f359b7fa4e8e51c8eb0e92b51f5e661 | dc444ea06a6b260b42b347813239a1c04d7f3773 | refs/heads/master | 2022-12-13T10:42:47.371792 | 2020-09-18T16:32:14 | 2020-09-18T16:32:14 | 271,911,903 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 819 | java | package com.make.miracle.backend.models.services;
import com.make.miracle.backend.models.domain.DetalleCarrera;
import com.make.miracle.backend.models.repository.DetalleCarreraRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@Service
@Transactional
public class DetalleCarreraService {
@Autowired
private DetalleCarreraRepository detalleCarreraRepository;
public List<DetalleCarrera> findAll() {
return detalleCarreraRepository.findAll();
}
public List<DetalleCarrera> findByInstitucionNombre(String name) {
return detalleCarreraRepository.findByInstitucionNombre(name);
}
}
| [
"caceresvillar_19922outlook.com"
]
| caceresvillar_19922outlook.com |
873a3de66590d72f4c5afe6faa8b38131ee37f6c | d5dcad33293140d96bad6dd0e7c8dbea69db3925 | /EasyGEngine/src/stu/tnt/gdx/utils/CollisionChecker.java | 2eff3050f9c87b300df940c38297a6654580582d | []
| no_license | lwllovewf2010/libgdx-easy | 6a8c283409e242ca42a45a246f0982526b6b20ff | daeeac28266f6f25308c3dbbfb930d6b1552fc0a | refs/heads/master | 2020-12-31T01:36:37.984948 | 2014-08-13T10:11:41 | 2014-08-13T10:11:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,249 | java | package stu.tnt.gdx.utils;
public final class CollisionChecker {
private CollisionChecker() {
}
/*****************************************************
* Grid simulation native method
*****************************************************/
public static native void setGridData(int boundWidth, int boundHeight,
int maxCol, int maxRow);
public static native void project(float[] vector2, float x, float y);
public static native int project(float x, float y);
public static native void unproject(float[] vector2, int col, int row);
public static native void unproject(float[] vector2, int id);
public static native void toGridPos(float[] vector2, int id);
public static native int toMappingId(int col, int row);
/*****************************************************
* Sprite Manager
*****************************************************/
private static int tmp = -1;
/**
* @Note you should carefull when use this method , when the size2 = 0 it
* will automatically
* <p>
* think that you want to check collision inside the array1 so the
* result will maybe not
* <p>
* ass you expected
* @param boundingRectArray1
* the bounding float rect of list 1
* @param size1
* the size of bounding float of list 1
* @param boundingRectArray2
* the bounding float rect of list 2
* @param size2
* the size of bounding float of list 2
* @return the number of collision happen * 2
*/
public static int process(int[] resultSet, float[] boundingRectArray1,
int size1, float[] boundingRectArray2, int size2) {
return checkCollision(resultSet, boundingRectArray1, size1,
boundingRectArray2, size2);
}
/*****************************************************
* Sprite Manager
*****************************************************/
/**
* @Note this is unsafe method process directly with native method without
* any check
* @param result
* @param boundingRectArray1
* @param size1
* @param boundingRectArray2
* @param size2
* @return
*/
public static native int checkCollision(int[] result,
float[] boundingRectArray1, int size1, float[] boundingRectArray2,
int size2);
}
| [
"[email protected]"
]
| |
ca0debbec54b09e2ad318e655970d371a816ae3e | bd019cce73a354616cbadbe6b3703833eadf5e4c | /src/gotoh/FreeshiftAligner.java | dbc1a94e7a57f4cf139f790b2055359a4789571c | []
| no_license | warriorlious/123D | ff748237139c148e7dc9ce9993062aba84d5f8a2 | 2ef1089801e90faeceb0d2a7154ca5fd097ba091 | refs/heads/master | 2020-12-25T20:30:14.996470 | 2012-11-24T15:42:10 | 2012-11-24T15:42:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 9,175 | java | package gotoh;
import static resources.AminoAcids.REVERSE;
import static resources.AminoAcids.matrixNumbering;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.text.DecimalFormat;
import java.util.LinkedList;
import resources.Matrix;
import sscc.SsccFile;
public class FreeshiftAligner extends Aligner {
public FreeshiftAligner(GotohProfile profile, int[] seq1, SsccFile sscc,
String seq1ID) {
super.profile = profile;
super.profile = profile;
super.seq1 = seq1;
super.seq2 = sscc.getSequence();
super.struct2 = sscc.getStructure();
super.seq1ID = seq1ID;
super.seq2ID = sscc.getID();
super.localConts = sscc.getLocalContacts();
super.globalConts = sscc.getGlobalContacts();
super.score = new double[seq1.length + 1][seq2.length + 1];
super.ins = new double[seq1.length + 1][seq2.length + 1];
super.del = new double[seq1.length + 1][seq2.length + 1];
tracebackList = new LinkedList<int[]>();
}
public void initializeF() {
score[0][0] = 0;
for (int i = 1; i < seq1.length + 1; i++) {
score[i][0] = 0;
del[i][0] = Double.NEGATIVE_INFINITY;
}
for (int i = 1; i < seq2.length + 1; i++) {
score[0][i] = 0;
ins[0][i] = Double.NEGATIVE_INFINITY;
}
ins[0][0] = del[0][0] = Double.NEGATIVE_INFINITY;
}
/**
* super function aligns the two sequences globally
*/
public void alignF() {
for (int x = 1; x <= seq1.length; x++) {
for (int y = 1; y <= seq2.length; y++) {
double w1 = profile.getGextend()
* profile.getGapExtend()[struct2[y - 1]]
+ profile.getGopen()
* profile.getGapInsert()[struct2[y - 1]];
ins[x][y] = Math.max(score[x - 1][y] + w1, ins[x - 1][y]
+ profile.getGextend()
* profile.getGapExtend()[struct2[y - 1]]);
del[x][y] = Math.max(score[x][y - 1] + w1, del[x][y - 1]
+ profile.getGextend()
* profile.getGapExtend()[struct2[y - 1]]);
double temp = score[x - 1][y - 1] + match(x, y);
score[x][y] = Math.max(temp, Math.max(ins[x][y], del[x][y]));
}
}
}
private double match(int x, int y) {
double seqScore = profile.getMatrixScore(matrixNumbering(seq1[x - 1]),
matrixNumbering(seq2[y - 1]));
double prefScore = Matrix.pss[struct2[y - 1]][seq1[x - 1]];
double lcontScore = Matrix.ccp[struct2[y - 1]][seq1[x - 1]][localConts[y - 1]];
double gcontScore = Matrix.ccp[struct2[y - 1]][seq1[x - 1]][globalConts[y - 1]];
double result = profile.getLocalContWeight()[struct2[y - 1]]
* lcontScore + profile.getGlobalContWeight()[struct2[y - 1]]
* gcontScore + profile.getPrefWeight()[struct2[y - 1]]
* prefScore + profile.getSeqWeight()[struct2[y - 1]] * seqScore;
return result;
}
public void trace(int x, int y) {
while (x != 0 && y != 0) {
if (score[x][y] == ins[x][y]) {
// find the x-k,y position where the gap was opened
boolean found = false;
int k = 1;
while (!found) {
double diff = score[x - k][y] + profile.getGextend()
* profile.getGapExtend()[struct2[y]] * (k - 1)
+ profile.getGopen()
* profile.getGapInsert()[struct2[y]];
if (isInEpsilon(diff, score[x][y]) && k < y) {
int[] res = { x - k, y };
tracebackList.push(res);
k++;
} else {
int[] res = { x - k, y };
tracebackList.push(res);
found = true;
x -= k;
}
continue;
}
} else if (score[x][y] == del[x][y]) {
// find the x-k,y position where the gap was opened
boolean found = false;
int k = 1;
while (!found) {
double diff = score[x][y - k] + profile.getGextend()
* profile.getGapExtend()[struct2[y - k]] * (k - 1)
+ profile.getGopen()
* profile.getGapInsert()[struct2[y - k]];
if (isInEpsilon(diff, score[x][y]) && k < x) {
int[] res = { x, y - k };
tracebackList.push(res);
k++;
} else {
int[] res = { x, y - k };
tracebackList.push(res);
found = true;
y -= k;
}
continue;
}
} else {// that means we came from score[x-1][y-1]
int[] res = { x - 1, y - 1 };
tracebackList.push(res);
x--;
y--;
continue;
}
}
}
public String[] interpretTraceback() {
String[] result = new String[2];
result[0] = result[1] = "";
int[] temp = new int[2];
int[] prev = new int[2];
if (tracebackList.isEmpty()) {
prev[0] = (int) max[0];
prev[1] = (int) max[1];
} else {
prev = tracebackList.pop();
}
// super element has y=0, so I have to align every x before
// prev[0],prev[1] with gaps, or x=0, so the other way round
if (prev[0] > prev[1]) {
for (int i = 1; i < prev[0]; i++) {
result[0] += Character.toString(REVERSE[(char) seq1[i - 1]]);
result[1] += "-";
}
} else {
for (int i = 1; i < prev[1]; i++) {
result[1] += Character.toString(REVERSE[(char) seq2[i - 1]]);
result[0] += "-";
}
}
if (!tracebackList.isEmpty()) {
temp = tracebackList.pop();
result[0] += Character.toString(REVERSE[(char) seq1[temp[0] - 1]]);
result[1] += Character.toString(REVERSE[(char) seq2[temp[1] - 1]]);
} else {
result[0] += Character.toString(REVERSE[(char) seq1[prev[0] - 1]]);
result[1] += Character.toString(REVERSE[(char) seq2[prev[1] - 1]]);
}
while (!tracebackList.isEmpty()) {
temp = tracebackList.pop();
if (temp[0] == prev[0]) {
result[0] += "-";
result[1] += Character
.toString(REVERSE[(char) seq2[temp[1] - 1]]);
} else if (temp[1] == prev[1]) {
result[0] += Character
.toString(REVERSE[(char) seq1[temp[0] - 1]]);
result[1] += "-";
} else {
result[0] += Character
.toString(REVERSE[(char) seq1[temp[0] - 1]]);
result[1] += Character
.toString(REVERSE[(char) seq2[temp[1] - 1]]);
}
prev = temp;
}
// now we are at the end of the freeshift; it remains to recover the
// portion of the alignment that is parallel with the y axis
if (prev[0] < prev[1]) {
for (int i = prev[0]; i <= seq1.length; i++) {
result[0] += Character.toString(REVERSE[(char) seq1[i - 1]]);
result[1] += "-";
}
} else {
for (int i = prev[1]; i <= seq2.length; i++) {
result[1] += Character.toString(REVERSE[(char) seq2[i - 1]]);
result[0] += "-";
}
}
return result;
}
@Override
public void printAlignment() {
for (int y = 0; y <= seq2.length; y++) {
for (int x = 0; x <= seq1.length; x++) {
System.out.print(score[x][y] + "\t");
}
System.out.println();
}
}
@Override
public GotohAnswer alignPair() {
initializeF();
alignF();
for (int i = 0; i < seq1.length; i++) { // check last row for max
// System.out.println(score[i][seq2.length]);
if (score[i][seq2.length] >= max[2]) {
max[0] = i;
max[1] = seq2.length;
max[2] = score[i][seq2.length];
}
}
// System.out.println("##############");
for (int i = 0; i < seq2.length; i++) { // check last column for max
// System.out.println(score[seq1.length][i]);
if (score[seq1.length][i] >= max[2]) {
max[0] = seq1.length;
max[1] = i;
max[2] = score[seq1.length][i];
}
}
// System.out.println(max[2]);
// try {
// FileWriter fstream = new FileWriter("out.html");
// BufferedWriter out = new BufferedWriter(fstream);
// out.write(printMatriceHtml(score));
// out.close();
// } catch (IOException e) {
// e.printStackTrace();
// }
trace((int) max[0] - 1, (int) max[1] - 1);
String[] sresult = new String[2];
sresult = interpretTraceback();
GotohAnswer result = new GotohAnswer(seq1ID, seq2ID, sresult[0],
sresult[1], max[2], profile);
return result;
}
public double getCheckScore() {
return super.checkScore;
}
public String printMatriceHtml(double[][] matrix) {
StringBuilder b = new StringBuilder();
b.append("<!DOCTYPE html PUBLIC \"...\">");
b.append("<html>");
b.append("\t<head>");
b.append(" " + " " + " " + " " + "</head>");
b.append(" " + " " + " " + " " + "<body>"
+ "<code>");
b.append("<table border=\"1\"> <tr> <td> </td>");
b.append("<td> </td>");
for (int i = 0; i < matrix.length - 1; i++)
b.append("<td><b>" + REVERSE[(char) seq1[i]] + "</b></td>");
b.append("</tr><br>");
int seq2Pointer = 0;
for (int y = 0; y < matrix[0].length; y++) {
b.append("<tr>");
for (int x = 0; x < matrix.length; x++) {
if (y == 0 && x == 0) {
b.append("<td></td>");
} else if (x == 0) {
b.append("<td><b>" + REVERSE[seq2[seq2Pointer]]
+ "</b></td>");
seq2Pointer++;
}
double printout = Math.round(score[x][y] * 10) / 10.0;
b.append("<td>" + printout + "</td>");
}
}
b.append("</code><br>");
return b.toString();
}
private static final double epsilon = 0.0001d;
private static boolean isInEpsilon(double a, double b) {
return (a > (b - epsilon)) && (a < (b + epsilon));
}
}
| [
"[email protected]"
]
| |
2285c3c8aa2efa02142e050db276d915406d53ad | c3069ba1e7158c7add2b3b9a30686c43f44e27e4 | /src/main/java/com/mkayman/designpatterns/strategy/RedheadDuck.java | 9182977d77e6de5dd3b1df7fcfba625528567d8e | []
| no_license | mkayman/design-patterns | bf2c75985680899e338618431ca4b4d085579f36 | 868ec0de7be3270523c88edfb2797aef4277bbe0 | refs/heads/master | 2020-06-05T23:11:02.078199 | 2012-11-21T22:48:35 | 2012-11-21T22:48:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 407 | java | package com.mkayman.designpatterns.strategy;
import com.mkayman.designpatterns.strategy.behaviors.FlyWithWings;
import com.mkayman.designpatterns.strategy.behaviors.Quack;
public class RedheadDuck extends Duck {
public RedheadDuck(){
this.flyBehavior = new FlyWithWings();
this.quackBehavior = new Quack();
}
@Override
public void display() {
System.out.println("I am a redhead duck");
}
}
| [
"[email protected]"
]
| |
1faee36a32f9cd274292e85aad917cddd86a8023 | cbab8cd447491a2f04576ee8ad8a97a84d549faa | /Assignment1-Abc-Hardware/src/Customer.java | f944ea399a499661a85e386aee11911fa41f5e1e | []
| no_license | uddinmuhammad/Data-Structures-Course-Work | 22c82b6a6135b5c5ae749e7f163b4863a216813a | b6a31091f1fcdb56101d093a2d1bcb9b68e0ffff | refs/heads/master | 2023-02-23T06:43:27.709033 | 2021-01-29T21:50:51 | 2021-01-29T21:50:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,141 | java | class Customer {
private String name;
private int customerNumber;
private double previousBalanceDue;
public Customer() {
}
public Customer(int customerNumber, String name, double previousBalanceDue) {
this.customerNumber = customerNumber;
this.name = name;
this.previousBalanceDue = previousBalanceDue;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getCustomerNumber() {
return customerNumber;
}
public void setCustomerNumber(int customerNumber) {
this.customerNumber = customerNumber;
}
public double getPreviousBalanceDue() {
return previousBalanceDue;
}
public void setPreviousBalanceDue(double previousBalanceDue) {
this.previousBalanceDue = previousBalanceDue;
}
@Override
public String toString() {
return "Customer{" +
"name='" + name + '\'' +
", customerNumber=" + customerNumber +
", amountDue=" + previousBalanceDue +
'}';
}
} | [
"[email protected]"
]
| |
af72246458ae133038a9c431085f09d85a7d4ee1 | b606bb811a26c905726ea6dc10a79307147d4b76 | /src/_02_里式替换原则/section1/MachineGun.java | 83f4d763c35766d3d4c8eeef364b965ff56b9844 | []
| no_license | c437yuyang/ZenOfDesignPatterns | 794a615d2621ac324ce81e8298afc8dcfa3c55e6 | 48d3e71ad1000aec0723125626f3e2a7282098fa | refs/heads/master | 2023-03-17T05:45:31.317055 | 2018-02-03T13:42:50 | 2018-02-03T13:42:50 | 343,474,642 | 0 | 0 | null | null | null | null | GB18030 | Java | false | false | 260 | java | package _02_里式替换原则.section1;
/**
* @author cbf4Life [email protected]
* I'm glad to share my knowledge with you all.
* 机枪
*/
public class MachineGun extends AbstractGun{
public void shoot(){
System.out.println("机枪扫射...");
}
}
| [
"[email protected]"
]
| |
dfa62e712aae58683d007ff79bd4a295ab9be5ea | e4fe1421f69ed0164b0183ffe0ab957cffe5b907 | /src/main/java/org/broadinstitute/hellbender/tools/walkers/annotator/UniqueAltReadCount.java | 8f11efd832608716712ab1a5658307f1d4f4aef6 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
]
| permissive | slzhao/gatk | dc0c11798328faab8a40736d09cb99cb541bb4ac | 2e27f693bbea5b22eca809eb104a5df8a0a2d381 | refs/heads/master | 2023-03-23T11:45:42.266635 | 2021-03-14T00:24:43 | 2021-03-14T00:24:43 | 284,191,036 | 0 | 0 | BSD-3-Clause | 2020-08-01T05:06:45 | 2020-08-01T05:06:45 | null | UTF-8 | Java | false | false | 3,996 | java | package org.broadinstitute.hellbender.tools.walkers.annotator;
import com.google.common.collect.ImmutableMap;
import htsjdk.variant.variantcontext.Allele;
import htsjdk.variant.variantcontext.VariantContext;
import htsjdk.variant.vcf.VCFInfoHeaderLine;
import org.apache.commons.lang3.tuple.ImmutablePair;
import org.broadinstitute.barclay.help.DocumentedFeature;
import org.broadinstitute.hellbender.engine.ReferenceContext;
import org.broadinstitute.hellbender.tools.walkers.annotator.allelespecific.AlleleSpecificAnnotation;
import org.broadinstitute.hellbender.utils.genotyper.AlleleLikelihoods;
import org.broadinstitute.hellbender.utils.help.HelpConstants;
import org.broadinstitute.hellbender.utils.read.GATKRead;
import org.broadinstitute.hellbender.utils.variant.GATKVCFConstants;
import org.broadinstitute.hellbender.utils.variant.GATKVCFHeaderLines;
import picard.sam.markduplicates.MarkDuplicates;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
/**
* Finds a lower bound on the number of unique reads at a locus that support a non-reference allele.
*
* <p>Multiple reads with the same start position and fragment length are grouped and counted only once as they are
* likely duplicates. In most cases such reads should be filtered using a tool such as {@link MarkDuplicates}. This annotation
* is designed for use with unique molecular identifiers (UMIs), in which case reads with the same start and fragment length but different
* UMIs would appear to be independent. This is not a default annotation of any GATK tool but can be enabled on the command line
* with --annotation UniqueAltReadCount.</p>
*
* <p>Although these reads have different UMIs, sometimes they really are PCR duplicates.
* We now believe that these duplicates are the result of a false-priming event that occurs during PCR amplification
* in which excess adapter remains after the ligation step and fails to be completely
* cleaned up during SPRI. This excess adapter is thought to act as a PCR primer during amplification, which leads to
* the synthesis of a molecule with the wrong UMI.</p>
*
* <p>This annotation does not require or use any BAM file duplicate flags or UMI information, just the read alignments.</p>
*/
@DocumentedFeature(groupName=HelpConstants.DOC_CAT_ANNOTATORS, groupSummary=HelpConstants.DOC_CAT_ANNOTATORS_SUMMARY, summary="Number of non-duplicate-insert ALT reads (AS_UNIQ_ALT_READ_COUNT)")
public class UniqueAltReadCount implements InfoFieldAnnotation, AlleleSpecificAnnotation {
public static final String KEY = GATKVCFConstants.AS_UNIQUE_ALT_READ_SET_COUNT_KEY;
@Override
public List<String> getKeyNames() {
return Collections.singletonList(KEY);
}
@Override
public List<VCFInfoHeaderLine> getDescriptions() {
return Collections.singletonList(GATKVCFHeaderLines.getInfoLine(KEY));
}
@Override
public Map<String, Object> annotate(final ReferenceContext ref,
final VariantContext vc,
final AlleleLikelihoods<GATKRead, Allele> likelihoods) {
List<Integer> uniqueCountsPerAllele = vc.getAlternateAlleles().stream().map(altAllele -> {
// Build a map from the (Start Position, Fragment Size) tuple to the count of reads with that
// start position and fragment size
Map<ImmutablePair<Integer, Integer>, Long> duplicateReadMap = likelihoods.bestAllelesBreakingTies().stream()
.filter(ba -> ba.allele.equals(altAllele) && ba.isInformative())
.map(ba -> new ImmutablePair<>(ba.evidence.getStart(), ba.evidence.getFragmentLength()))
.collect(Collectors.groupingBy(x -> x, Collectors.counting()));
return duplicateReadMap.size();
}).collect(Collectors.toList());
return ImmutableMap.of(KEY, AnnotationUtils.encodeAnyASListWithRawDelim(uniqueCountsPerAllele));
}
}
| [
"[email protected]"
]
| |
b27972bf5c662eea14d6dd0da2d6e0916eb1dfc3 | c1b1b823cd4c4f82be88bd871702d163d9e94d1a | /ConstructBTfromPreorderAndInorderTraversal.java | 02b13e64942c98888c88030289210c23f1e0e631 | []
| no_license | Sravan13/Datastructure_Algorithms | 5a9a3064aec5044a5e66afecd13d6f12d3b977b9 | 28b7e9fb859d15d1933aa78fcd1cf21fbcc9cf70 | refs/heads/master | 2021-12-28T03:24:27.061293 | 2021-12-25T16:16:21 | 2021-12-25T16:16:21 | 211,689,038 | 3 | 1 | null | null | null | null | UTF-8 | Java | false | false | 2,893 | java |
/*
*
* Given two integer arrays preorder and inorder where preorder is the preorder traversal of a binary tree and inorder is the inorder traversal of the same tree, construct and return the binary tree.
Example 1:
Input: preorder = [3,9,20,15,7], inorder = [9,3,15,20,7]
Output: [3,9,20,null,null,15,7]
Example 2:
Input: preorder = [-1], inorder = [-1]
Output: [-1]
Constraints:
1 <= preorder.length <= 3000
inorder.length == preorder.length
-3000 <= preorder[i], inorder[i] <= 3000
preorder and inorder consist of unique values.
Each value of inorder also appears in preorder.
preorder is guaranteed to be the preorder traversal of the tree.
inorder is guaranteed to be the inorder traversal of the tree.
*/
public class ConstructBTfromPreorderAndInorderTraversal {
public static void main(String[] args) {
/*
* int [] preorder = {3,9,20,15,7}; int [] inorder = {9,3,15,20,7};
*/
int [] preorder = {1,2,3};
int [] inorder = {3,2,1};
ConstructBTfromPreorderAndInorderTraversal traversal = new ConstructBTfromPreorderAndInorderTraversal();
TreeNode treeNode = traversal.buildTree(preorder, inorder);
System.out.println(treeNode);
}
public TreeNode buildTree(int[] preorder, int[] inorder) {
int rootIdx = findIndex(preorder[0], inorder,0,inorder.length);
TreeNode node = new TreeNode(preorder[0]);
int leftLen = rootIdx;
int rightLen = (inorder.length-1-rootIdx);
if(leftLen > 0)
node.left = buildSubTree(preorder,1,rootIdx,inorder,0,rootIdx-1);
if(rightLen > 0)
node.right = buildSubTree(preorder, rootIdx+1, preorder.length-1, inorder, rootIdx+1, inorder.length-1);
return node;
}
public TreeNode buildSubTree(int [] preorder, int preOrderStartIdx, int preOrderEndIdx, int [] inorder, int inOrderStartIdx, int inOrderEndIdx){
Integer rootIdx = findIndex( preorder[preOrderStartIdx] , inorder, inOrderStartIdx, inOrderEndIdx );
if(rootIdx == null) return null;
int leftLen = rootIdx - inOrderStartIdx;
int rightLen = (inOrderEndIdx-rootIdx);
TreeNode node = new TreeNode(preorder[preOrderStartIdx]);
if(leftLen > 0)
node.left = buildSubTree(preorder, preOrderStartIdx+1, preOrderStartIdx + leftLen , inorder, inOrderStartIdx , rootIdx-1);
if(rightLen > 0)
node.right = buildSubTree(preorder, preOrderStartIdx + leftLen + 1, preOrderEndIdx, inorder, rootIdx + 1,inOrderEndIdx);
return node;
}
private Integer findIndex(int key,int [] inorder, int inOrderStartIdx, int inOrderEndIdx ) {
for(int i=inOrderStartIdx; i <= inOrderEndIdx; i++) {
if(key == inorder[i]) return i;
}
return null;
}
}
| [
"[email protected]"
]
| |
40959c57f9e5ca67eba04035231c9328807fbf58 | cdecaeb705a05592a31d1258ee4646635b1803b4 | /src/main/java/edu/warbot/FSM/condition/WarConditionPerceptCounter.java | b22b267c0871901746be98e891dca489788c83ca | []
| no_license | geoffrey0170/Warbot | 70d7f1b4eebfc6319dfb86501e0e89e88aeb04f8 | bf859c8ddac08c66d58a298487366bcec7ad98ab | refs/heads/master | 2020-05-29T12:27:51.784506 | 2015-03-30T14:15:15 | 2015-03-30T14:15:15 | 33,596,852 | 0 | 0 | null | 2015-04-30T06:42:07 | 2015-04-08T09:15:54 | Java | UTF-8 | Java | false | false | 2,309 | java | package edu.warbot.FSM.condition;
import edu.warbot.FSMEditor.settings.EnumOperand;
import edu.warbot.FSMEditor.settings.GenericConditionSettings;
import edu.warbot.agents.enums.WarAgentType;
import edu.warbot.agents.percepts.WarAgentPercept;
import edu.warbot.brains.WarBrain;
import javax.swing.*;
import java.util.ArrayList;
public class WarConditionPerceptCounter<BrainType extends WarBrain> extends WarCondition<BrainType> {
WarAgentType agentType;
EnumOperand operand;
int reference;
boolean enemy;
public WarConditionPerceptCounter(String name, BrainType brain,
GenericConditionSettings conditionSettings){
super(name, brain, conditionSettings);
if(conditionSettings.Agent_type != null)
this.agentType = conditionSettings.Agent_type;
else
JOptionPane.showMessageDialog(null, "You must chose <Agent_type> for condition <WarConditionMessageCheck>", "Missing attribut", JOptionPane.ERROR_MESSAGE);
if(conditionSettings.Operateur != null)
this.operand = conditionSettings.Operateur;
else
this.operand = EnumOperand.egal;
if(conditionSettings.Reference != null)
this.reference = conditionSettings.Reference;
else
this.reference = 1;
if(conditionSettings.Enemie != null)
this.enemy = conditionSettings.Enemie;
else
enemy = true;
}
@Override
public boolean isValide() {
// Recupere les percepts
ArrayList<WarAgentPercept> percepts = new ArrayList<>();
if(this.enemy){
if(this.agentType == null){
percepts= getBrain().getPerceptsEnemies();
}else{
percepts = getBrain().getPerceptsEnemiesByType(this.agentType);
}
}else{
if(this.agentType == null){
percepts= getBrain().getPerceptsAllies();
}else{
percepts = getBrain().getPerceptsAlliesByType(this.agentType);
}
}
if(percepts == null || percepts.size() == 0)
return false;
// Fait les verifications
int nbPercept = percepts.size();
switch (this.operand) {
case inf:
return nbPercept < this.reference;
case sup:
return nbPercept > this.reference;
case egal:
return nbPercept == this.reference;
case dif:
return nbPercept != this.reference;
default:
System.err.println("WarConditionPerceptCounter : unknown operateur " + this.operand + this.getClass());
return false;
}
}
}
| [
"[email protected]"
]
| |
686262e11ff9ab149666f0622138e041e0f6c5eb | 2f196a164f55ac1f32b7ef07ed1ba94b41341a3d | /commons/model/src/main/java/io/beancounter/commons/model/Topic.java | 3799da2a7ed4f89f59c2390582f01e0be884318f | []
| no_license | Trink0/NoTube-Beancounter-2.0 | fcea8eefb588cc01ae5730fbf7b3ec020f1582e7 | 9d2c58a47bef5b28768ccfa250984c4515631318 | refs/heads/master | 2021-01-21T00:24:55.788968 | 2012-11-20T19:41:47 | 2012-11-20T19:41:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,958 | java | package io.beancounter.commons.model;
import java.net.URI;
import java.util.ArrayList;
import java.util.Collection;
/**
* A topic is a generic class that could be potentially interesting for a <i>beancounter.io</i>
* {@link User}.
*
* @see {@link Category}
* @see {@link Interest}
* @author Davide Palmisano ( [email protected] )
*/
public abstract class Topic<T extends Topic> implements Comparable<Topic>, Mergeable<T> {
private URI resource;
private String label;
private double weight;
protected Topic() {}
protected Topic(URI resource, String label) {
this.resource = resource;
this.label = label;
}
public URI getResource() {
return resource;
}
public void setResource(URI resource) {
this.resource = resource;
}
public String getLabel() {
return label;
}
public void setLabel(String label) {
this.label = label;
}
public double getWeight() {
return weight;
}
public void setWeight(double weight) {
this.weight = weight;
}
public abstract T merge(T nu, T old, int threshold);
@Override
public int compareTo(Topic that) {
return Double.valueOf(that.getWeight()).compareTo(Double.valueOf(weight));
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Topic topic = (Topic) o;
if (resource != null ? !resource.equals(topic.resource) : topic.resource != null)
return false;
return true;
}
@Override
public int hashCode() {
return resource != null ? resource.hashCode() : 0;
}
@Override
public String toString() {
return "Topic{" +
"resource=" + resource +
", label='" + label + '\'' +
", weight=" + weight +
'}';
}
}
| [
"[email protected]"
]
| |
9eb204e940a72b4bb71a0d275ea65115bb10f014 | dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9 | /data_defect4j/preprossed_method_corpus/Math/44/org/apache/commons/math/ode/nonstiff/GraggBulirschStoerIntegrator_extrapolate_523.java | dddd3680e5a78eda414e49a865ce6b5e6a35dbed | []
| no_license | hvdthong/NetML | dca6cf4d34c5799b400d718e0a6cd2e0b167297d | 9bb103da21327912e5a29cbf9be9ff4d058731a5 | refs/heads/master | 2021-06-30T15:03:52.618255 | 2020-10-07T01:58:48 | 2020-10-07T01:58:48 | 150,383,588 | 1 | 1 | null | 2018-09-26T07:08:45 | 2018-09-26T07:08:44 | null | UTF-8 | Java | false | false | 2,874 | java |
org apach common math od nonstiff
gragg bulirsch stoer integr
ordinari differenti equat
gragg bulirsch stoer algorithm effici
smooth problem richardson
extrapol estim solut step
size decreas
method step size order
integr order minim comput cost
suit high precis need
limit method effici high order
embed rung kutta method link dormand prince853 integr dormandprince853integr
dormand princ depend problem result
hairer norsett wanner book show limit
occur accuraci integr saltzam lorenz
equat author note problem extrem sensit
error integr step
dimension celesti mechan problem
bodi pleiad problem involv quasi collis
automat step size control essenti
implement basic reimplement java
href http www unig math folk hairer prog nonstiff odex odex
fortran code hairer wanner redistribut polici
code
href http www unig hairer prog licenc txt
conveni reproduc
tabl border width cellpad align center bgcolor e0e0e0
copyright ernst hairer
redistribut sourc binari form
modif permit provid
condit met
redistribut sourc code retain copyright
notic list condit disclaim
redistribut binari form reproduc copyright
notic list condit disclaim
document materi provid distribut
strong softwar provid copyright holder
contributor express impli warranti includ
limit impli warranti merchant fit
purpos disclaim event regent
contributor liabl direct indirect incident special
exemplari consequenti damag includ limit
procur substitut good servic loss data
profit busi interrupt caus theori
liabil contract strict liabil tort includ
neglig aris
softwar advis possibl damag strong
tabl
version
gragg bulirsch stoer integr graggbulirschstoerintegr adapt stepsiz integr adaptivestepsizeintegr
extrapol vector
param offset offset coeffici tabl
param index updat point
param diag work diagon aitken neville'
triangl element
param element
extrapol offset
diag
updat diagon
length
aitken neville' recurs formula
diag diag
coeff offset diag diag
updat element
length
aitken neville' recurs formula
diag coeff offset diag
| [
"[email protected]"
]
| |
2a4af817dd1be570779c421ffb8bbebbb169a59c | e53b2e0a3b9aa5252b8d590c171bfc0d19b6ba73 | /src/com/esperhelper/event/score/ScoreEvent.java | 9e0d0159887400bc0d4c535d87330434bf986270 | []
| no_license | GeneSJC/java_esper_epl_helper | d038ea35d2e800f3211203292f9eb302e8081146 | 02fb3c0c78efc2a4daaf28b684e3a11f78f2bb76 | refs/heads/master | 2023-07-22T08:24:36.197825 | 2013-05-06T18:36:01 | 2013-05-06T18:36:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 468 | java | package com.esperhelper.event.score;
public class ScoreEvent {
private String type;
private int score;
public ScoreEvent(String itemName, int price) {
this.type = itemName;
this.score = price;
}
public String getType() {
return type;
}
public int getScore() {
return score;
}
@Override
public String toString() {
return "ScoreEvent [score=" + score + "]";
}
} | [
"[email protected]"
]
| |
7a65e917e0e001ed81326d8da03f80f488e243e8 | c02cc2d9c74cd3e739fdd12c47a5ddb2a89e13b2 | /observer_repo/ObserverPattern/src/com/observerpattern/CommentaryObject.java | 06ec7780233d5a68eb79c679a2077d398d1b91cf | []
| no_license | MarkusLahr78/Java | f103377769200c41a30706f5fa2a8585b4432692 | b79f2dc737ddd6242ca05d56eebeb75a21c4bd08 | refs/heads/master | 2020-12-24T06:14:20.209700 | 2019-03-22T10:45:27 | 2019-03-22T10:45:27 | 73,163,508 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 921 | java | package com.observerpattern;
import java.util.List;
public class CommentaryObject implements Subject,Commentary {
private final List<Observer>observers;
private String desc;
private final String subjectDetails;
public CommentaryObject(List<Observer>observers,String subjectDetails){
this.observers = observers;
this.subjectDetails = subjectDetails;
}
@Override
public void subscribeObserver(Observer observer) {
observers.add(observer);
}
@Override
public void unSubscribeObserver(Observer observer) {
int index = observers.indexOf(observer);
observers.remove(index);
}
@Override
public void notifyObservers() {
System.out.println();
for(Observer observer : observers){
observer.update(desc);
}
}
@Override
public void setDesc(String desc) {
this.desc = desc;
notifyObservers();
}
@Override
public String subjectDetails() {
return subjectDetails;
}
}
| [
"[email protected]"
]
| |
2b682624e7da2670405c12f6f98910cfb805f701 | fda2f41ff66ff6eeae2b94ef98e88a9ee3c8ff4c | /googlecamera/src/main/java/com/camera/SecureCameraActivity.java | ac6164d1bc4ae75b40b209c2579ddd25dc139a69 | []
| no_license | qflbai/AndroidJetpack | 04847dfb53b6949c9ec85fae9bc3a7c7b40d12bc | edd0375b98950e3675acf2bb1c25b8c63780fb8b | refs/heads/master | 2020-03-27T15:09:16.204116 | 2018-12-07T09:53:15 | 2018-12-07T09:53:15 | 146,700,639 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 904 | java | /*
* Copyright (C) 2012 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.camera;
// Use a different activity for secure com.camera only. So it can have a different
// task affinity from others. This makes sure non-secure com.camera activity is not
// started in secure lock screen.
public class SecureCameraActivity extends CameraActivity {
}
| [
"[email protected]"
]
| |
7fef82370be7a1a1dc7ee2e2f1082c7b76a425b8 | 2a1c153933528446d803a27e31e23059f08c747d | /src/com/abstractclass/Cat.java | 075e0fc78fcc4d55e06d29d5fe21ec254e49bd71 | []
| no_license | codewithcg/JavaTutorial | 43042113bfc4c74cd33bdcfe0a05ce3a0fc9422c | 2d0e6d6e74874c185fd86dcf9f0697da53edbd60 | refs/heads/master | 2023-07-05T03:42:32.552147 | 2021-09-01T05:01:51 | 2021-09-01T05:01:51 | 389,283,682 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 284 | java | package com.abstractclass;
public class Cat extends Animal {
public static void main(String[] args) {
}
@Override
public void sound() {
System.out.println("Cat: mew");
}
@Override
public void swim() {
System.out.println("cat: I swim my way");
}
}
| [
"[email protected]"
]
| |
c1bf1d0cebfc4e3ff67e47f72300d36e9aa560c6 | 0a636bfa8ccbaf1c60dcca786ca72a711039e853 | /src/main/java/in/sdqali/spring/web/FooController.java | bd0bb9c4e1a9bb7fe39c148cc7ac864d9619355c | []
| no_license | sdqali/feature-toggles | ecd89e37e16668535df1becd6a8d46bb1572162c | 77bfad52994f31fa8c385b981984cc2b15b042db | refs/heads/master | 2020-06-24T20:08:03.298853 | 2016-11-24T00:08:08 | 2016-11-24T00:08:08 | 74,623,644 | 4 | 1 | null | null | null | null | UTF-8 | Java | false | false | 480 | java | package in.sdqali.spring.web;
import in.sdqali.spring.feature.FeatureToggle;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.Collections;
import java.util.Map;
@RestController
@RequestMapping("/foo")
@FeatureToggle(feature = "feature.foo")
public class FooController {
@RequestMapping("")
public Map hello() {
return Collections.singletonMap("message", "hello foo!");
}
}
| [
"[email protected]"
]
| |
c02d2aa218b726db835990e8c4602be40af3fd84 | 066a5e5ea42515a4756214b0e07ab7e4bea507ef | /src/main/java/com/wbn/weixin/business/weather/bean/WeatherItem.java | 3b3e56cb282848180f843ecfff7ea9b7bc033d23 | []
| no_license | lzw2006/weather-service | 365d2f4639655e78cee81c942005620d92c0d05e | d080972d647ea0641dbba6c05f9a58b10b12db4d | refs/heads/master | 2021-01-01T05:36:57.303826 | 2014-10-22T16:08:14 | 2014-10-22T16:08:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 523 | java | package com.wbn.weixin.business.weather.bean;
public class WeatherItem {
private String time;
private String temperature;
public String getTime() {
return time;
}
public void setTime(String time) {
this.time = time;
}
public String getTemperature() {
return temperature;
}
public void setTemperature(String temperature) {
this.temperature = temperature;
}
@Override
public String toString() {
// TODO Auto-generated method stub
return "time:" + this.time + " temperature:" + this.temperature;
}
}
| [
"[email protected]"
]
| |
766b86de010e57ccd83c0f55e02c0294f4a25243 | 17181bbb5b7f6316ff9d48766598b9b1ffb0710d | /common/src/main/java/com/yunbao/common/utils/ProcessImageUtil.java | ad20476d69bd68dd9df0e81ebeba6db926f7f192 | []
| no_license | hyb1234hi/anyu_an | 91c177f7af121f1e9dd64f73584646cac3e82a1f | 1fa94f31602a704fa0dda4dfea8b03a66ffa09c5 | refs/heads/main | 2023-07-29T08:39:32.230456 | 2021-09-06T01:55:59 | 2021-09-06T01:55:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 7,801 | java | package com.yunbao.common.utils;
import android.Manifest;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import android.provider.MediaStore;
import androidx.fragment.app.FragmentActivity;
import androidx.core.content.FileProvider;
import com.yalantis.ucrop.UCrop;
import com.yunbao.common.CommonAppConfig;
import com.yunbao.common.R;
import com.yunbao.common.interfaces.ActivityResultCallback;
import com.yunbao.common.interfaces.ImageResultCallback;
import java.io.File;
/**
* Created by cxf on 2018/9/29.
* 选择图片 裁剪
*/
public class ProcessImageUtil extends ProcessResultUtil {
private Context mContext;
private String[] mCameraPermissions;
private String[] mAlumbPermissions;
private Runnable mCameraPermissionCallback;
private Runnable mAlumbPermissionCallback;
private ActivityResultCallback mCameraResultCallback;
private ActivityResultCallback mAlumbResultCallback;
private ActivityResultCallback mCropResultCallback;
private File mCameraResult;//拍照后得到的图片
private File mCorpResult;//裁剪后得到的图片
private ImageResultCallback mResultCallback;
private boolean mNeedCrop;//是否需要裁剪
public ProcessImageUtil(FragmentActivity activity) {
super(activity);
mContext = activity;
mCameraPermissions = new String[]{
Manifest.permission.READ_EXTERNAL_STORAGE,
Manifest.permission.WRITE_EXTERNAL_STORAGE,
Manifest.permission.CAMERA
};
mAlumbPermissions = new String[]{
Manifest.permission.READ_EXTERNAL_STORAGE,
Manifest.permission.WRITE_EXTERNAL_STORAGE,
};
mCameraPermissionCallback = new Runnable() {
@Override
public void run() {
takePhoto();
}
};
mAlumbPermissionCallback = new Runnable() {
@Override
public void run() {
chooseFile();
}
};
mCameraResultCallback = new ActivityResultCallback() {
@Override
public void onSuccess(Intent intent) {
if (mNeedCrop) {
Uri uri = null;
if (Build.VERSION.SDK_INT >= 24) {
uri = FileProvider.getUriForFile(mContext, CommonAppConfig.getInstance().getPackageName()+".fileprovider", mCameraResult);
} else {
uri = Uri.fromFile(mCameraResult);
}
if (uri != null) {
crop(uri);
}
} else {
if (mResultCallback != null) {
mResultCallback.onSuccess(mCameraResult);
}
}
}
@Override
public void onFailure() {
ToastUtil.show(R.string.img_camera_cancel);
mResultCallback.onFailure();
}
};
mAlumbResultCallback = new ActivityResultCallback() {
@Override
public void onSuccess(Intent intent) {
crop(intent.getData());
}
@Override
public void onFailure() {
ToastUtil.show(R.string.img_alumb_cancel);
mResultCallback.onFailure();
}
};
mCropResultCallback = new ActivityResultCallback() {
@Override
public void onSuccess(Intent intent) {
if (mResultCallback != null) {
mResultCallback.onSuccess(mCorpResult);
}
}
@Override
public void onFailure() {
ToastUtil.show(R.string.img_crop_cancel);
mResultCallback.onFailure();
}
};
}
/**
* 拍照获取图片
*/
public void getImageByCamera(boolean needCrop) {
mNeedCrop = needCrop;
requestPermissions(mCameraPermissions, mCameraPermissionCallback);
}
/**
* 拍照获取图片
*/
public void getImageByCamera() {
getImageByCamera(true);
}
/**
* 相册获取图片
*/
public void getImageByAlumb() {
requestPermissions(mAlumbPermissions, mAlumbPermissionCallback);
}
/**
* 开启摄像头,执行照相
*/
private void takePhoto() {
if (mResultCallback != null) {
mResultCallback.beforeCamera();
}
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
mCameraResult = getNewFile();
Uri uri = null;
if (Build.VERSION.SDK_INT >= 24) {
// uri = FileProvider.getUriForFile(mContext, WordUtil.getString(R.string.FILE_PROVIDER), mCameraResult);
uri = FileProvider.getUriForFile(mContext, CommonAppConfig.getInstance().getPackageName()+".fileprovider", mCameraResult);
intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION | Intent.FLAG_GRANT_WRITE_URI_PERMISSION);
} else {
uri = Uri.fromFile(mCameraResult);
}
intent.putExtra(MediaStore.EXTRA_OUTPUT, uri);
startActivityForResult(intent, mCameraResultCallback);
}
private File getNewFile() {
// 裁剪头像的绝对路径
File dir = new File(CommonAppConfig.CAMERA_IMAGE_PATH);
if (!dir.exists()) {
dir.mkdirs();
}
return new File(dir, DateFormatUtil.getCurTimeString() + ".png");
}
/**
* 打开相册,选择文件
*/
private void chooseFile() {
Intent intent = new Intent();
intent.addCategory(Intent.CATEGORY_OPENABLE);
intent.setType("image/*");
if (Build.VERSION.SDK_INT < 19) {
intent.setAction(Intent.ACTION_GET_CONTENT);
} else {
intent.setAction(Intent.ACTION_OPEN_DOCUMENT);
}
startActivityForResult(intent, mAlumbResultCallback);
}
/**
* 裁剪
*/
private void crop(Uri inputUri) {
mCorpResult = getNewFile();
try {
Uri resultUri = Uri.fromFile(mCorpResult);
if (resultUri == null || mFragment == null || mContext == null) {
return;
}
UCrop uCrop = UCrop.of(inputUri, resultUri)
.withAspectRatio(1, 1)
.withMaxResultSize(400, 400);
Intent intent = uCrop.getIntent(mContext);
intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION | Intent.FLAG_GRANT_WRITE_URI_PERMISSION);
startActivityForResult(intent, mCropResultCallback);
} catch (Exception e) {
try {
Uri resultUri = FileProvider.getUriForFile(mContext, CommonAppConfig.getInstance().getPackageName()+".fileprovider", mCorpResult);
if (resultUri == null || mFragment == null || mContext == null) {
return;
}
UCrop uCrop = UCrop.of(inputUri, resultUri)
.withAspectRatio(1, 1)
.withMaxResultSize(400, 400);
Intent intent = uCrop.getIntent(mContext);
intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION | Intent.FLAG_GRANT_WRITE_URI_PERMISSION);
startActivityForResult(intent, mCropResultCallback);
} catch (Exception e1) {
e1.printStackTrace();
}
}
}
public void setImageResultCallback(ImageResultCallback resultCallback) {
mResultCallback = resultCallback;
}
@Override
public void release() {
super.release();
mResultCallback = null;
}
}
| [
"[email protected]"
]
| |
cd947722c2c607f38115e0395e2e320d6d92fd87 | c4b628ac4a40c7ae7f3f218f8a7c223725c2e193 | /app/src/androidTest/java/com/example/agenda_pri/ExampleInstrumentedTest.java | c42df8e6c6a49aa7910116be13dbf693c5ffb23b | []
| no_license | jhova2016/Agenda_PRI | c0997f0c80b2fc33bd37d1320d4b391737a8f978 | df43f04c0a727addf02145ba1441532a72574cf2 | refs/heads/master | 2023-03-11T17:31:24.573602 | 2021-02-25T18:43:01 | 2021-02-25T18:43:01 | 330,743,751 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 758 | java | package com.example.agenda_pri;
import android.content.Context;
import androidx.test.platform.app.InstrumentationRegistry;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
assertEquals("com.example.agenda_pri", appContext.getPackageName());
}
} | [
"[email protected]"
]
| |
44bab7b6afc8c2108b64e227141a52cb358d200d | 2d1fa649033ec0cf16c01935ae6a4f27357446c7 | /spring-android-rest-template/src/main/java/org/springframework/http/converter/StringHttpMessageConverter.java | 45b5ddffabf9b06ada9258126acce1985a2d839b | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
]
| permissive | shark300/spring-android | 99d983db8fef3dbfe0e306a7f1141326abd543cc | 92843627ffae9f40a5e315100d538ce898631af8 | refs/heads/master | 2021-01-22T13:47:10.819650 | 2014-03-03T00:00:19 | 2014-03-03T00:00:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,101 | java | /*
* Copyright 2002-2013 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.http.converter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.UnsupportedEncodingException;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.List;
import org.springframework.http.HttpInputMessage;
import org.springframework.http.HttpOutputMessage;
import org.springframework.http.MediaType;
import org.springframework.util.FileCopyUtils;
/**
* Implementation of {@link HttpMessageConverter} that can read and write strings.
*
* <p>
* By default, this converter supports all media types (<code>*/*</code>), and writes with a
* {@code Content-Type} of {@code text/plain}. This can be overridden by setting the
* {@link #setSupportedMediaTypes(java.util.List) supportedMediaTypes} property.
*
* @author Arjen Poutsma
* @author Roy Clarkson
* @since 1.0
*/
public class StringHttpMessageConverter extends AbstractHttpMessageConverter<String> {
private final Charset defaultCharset;
private final List<Charset> availableCharsets;
private boolean writeAcceptCharset = true;
/**
* Create a new StringHttpMessageConverter instance with a default {@link Charset} of ISO-8859-1,
* and default list of available {@link Charset}'s from {@link Charset#availableCharsets()}.
*/
public StringHttpMessageConverter() {
this(Charset.forName("ISO-8859-1"));
}
/**
* Create a new StringHttpMessageConverter instance with a default {@link Charset},
* and default list of available {@link Charset}'s from {@link Charset#availableCharsets()}.
* @param defaultCharset the Charset to use
*/
public StringHttpMessageConverter(Charset defaultCharset) {
this(defaultCharset, new ArrayList<Charset>(Charset.availableCharsets().values()));
}
/**
* Create a new StringHttpMessageConverter instance with a default {@link Charset},
* and list of available {@link Charset}'s.
* @param defaultCharset the Charset to use
* @param availableCharsets the list of available Charsets
*/
public StringHttpMessageConverter(Charset defaultCharset, List<Charset> availableCharsets) {
super(new MediaType("text", "plain", defaultCharset), MediaType.ALL);
this.defaultCharset = defaultCharset;
this.availableCharsets = availableCharsets;
}
/**
* The default {@link Charset} is ISO-8859-1. Can be overridden in subclasses,
* or through the use of the alternate constructor.
* @return default Charset
*/
public Charset getDefaultCharset() {
return this.defaultCharset;
}
/**
* Indicates whether the {@code Accept-Charset} should be written to any outgoing request.
* <p>
* Default is {@code true}.
*/
public void setWriteAcceptCharset(boolean writeAcceptCharset) {
this.writeAcceptCharset = writeAcceptCharset;
}
@Override
public boolean supports(Class<?> clazz) {
return String.class.equals(clazz);
}
@Override
protected String readInternal(Class<? extends String> clazz, HttpInputMessage inputMessage) throws IOException {
Charset charset = getContentTypeCharset(inputMessage.getHeaders().getContentType());
return FileCopyUtils.copyToString(new InputStreamReader(inputMessage.getBody(), charset));
}
@Override
protected Long getContentLength(String s, MediaType contentType) {
Charset charset = getContentTypeCharset(contentType);
try {
return (long) s.getBytes(charset.displayName()).length;
} catch (UnsupportedEncodingException ex) {
// should not occur
throw new InternalError(ex.getMessage());
}
}
@Override
protected void writeInternal(String s, HttpOutputMessage outputMessage) throws IOException {
if (writeAcceptCharset) {
outputMessage.getHeaders().setAcceptCharset(getAcceptedCharsets());
}
Charset charset = getContentTypeCharset(outputMessage.getHeaders().getContentType());
FileCopyUtils.copy(s, new OutputStreamWriter(outputMessage.getBody(), charset));
}
/**
* Return the list of supported {@link Charset}.
*
* <p>
* By default, returns {@link Charset#availableCharsets()}. Can be overridden in subclasses,
* or through the use of the alternate constructor.
*
* @return the list of accepted charsets
*/
protected List<Charset> getAcceptedCharsets() {
return this.availableCharsets;
}
private Charset getContentTypeCharset(MediaType contentType) {
if (contentType != null && contentType.getCharSet() != null) {
return contentType.getCharSet();
} else {
return getDefaultCharset();
}
}
}
| [
"[email protected]"
]
| |
a16cf72b2338e02bdc71b435624d3675457e3b4b | c75aebfd5852f3fc00ef403e0bf22af6e37c8df2 | /lab-07/src/main/java/lab07/jooq/tables/Book.java | bafc85370c1147f2ffbe5042e5197908e4f80269 | [
"Apache-2.0"
]
| permissive | danveloper/hands-on-ratpack-java | 8affb22c87c9ed814e87a19a32b997f50f244d8a | 46edd0bed5c33f278f9c8a9c389331e68347728f | refs/heads/master | 2020-06-22T03:17:07.171606 | 2016-11-28T15:38:58 | 2016-11-28T15:38:58 | 74,758,381 | 3 | 3 | null | null | null | null | UTF-8 | Java | false | false | 3,108 | java | /**
* This class is generated by jOOQ
*/
package lab07.jooq.tables;
import java.math.BigDecimal;
import java.util.Arrays;
import java.util.List;
import javax.annotation.Generated;
import lab07.jooq.Keys;
import lab07.jooq.Lab07;
import lab07.jooq.tables.records.BookRecord;
import org.jooq.Field;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.UniqueKey;
import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.7.0"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Book extends TableImpl<BookRecord> {
private static final long serialVersionUID = 672749145;
/**
* The reference instance of <code>lab07.book</code>
*/
public static final Book BOOK = new Book();
/**
* The class holding records for this type
*/
@Override
public Class<BookRecord> getRecordType() {
return BookRecord.class;
}
/**
* The column <code>lab07.book.isbn</code>.
*/
public final TableField<BookRecord, String> ISBN = createField("isbn", org.jooq.impl.SQLDataType.CHAR.length(13).nullable(false), this, "");
/**
* The column <code>lab07.book.quantity</code>.
*/
public final TableField<BookRecord, Integer> QUANTITY = createField("quantity", org.jooq.impl.SQLDataType.INTEGER, this, "");
/**
* The column <code>lab07.book.price</code>.
*/
public final TableField<BookRecord, BigDecimal> PRICE = createField("price", org.jooq.impl.SQLDataType.DECIMAL.precision(15, 2), this, "");
/**
* The column <code>lab07.book.title</code>.
*/
public final TableField<BookRecord, String> TITLE = createField("title", org.jooq.impl.SQLDataType.VARCHAR.length(256), this, "");
/**
* The column <code>lab07.book.author</code>.
*/
public final TableField<BookRecord, String> AUTHOR = createField("author", org.jooq.impl.SQLDataType.VARCHAR.length(128), this, "");
/**
* The column <code>lab07.book.publisher</code>.
*/
public final TableField<BookRecord, String> PUBLISHER = createField("publisher", org.jooq.impl.SQLDataType.VARCHAR.length(128), this, "");
/**
* Create a <code>lab07.book</code> table reference
*/
public Book() {
this("book", null);
}
/**
* Create an aliased <code>lab07.book</code> table reference
*/
public Book(String alias) {
this(alias, BOOK);
}
private Book(String alias, Table<BookRecord> aliased) {
this(alias, aliased, null);
}
private Book(String alias, Table<BookRecord> aliased, Field<?>[] parameters) {
super(alias, Lab07.LAB07, aliased, parameters, "");
}
/**
* {@inheritDoc}
*/
@Override
public UniqueKey<BookRecord> getPrimaryKey() {
return Keys.CONSTRAINT_1;
}
/**
* {@inheritDoc}
*/
@Override
public List<UniqueKey<BookRecord>> getKeys() {
return Arrays.<UniqueKey<BookRecord>>asList(Keys.CONSTRAINT_1);
}
/**
* {@inheritDoc}
*/
@Override
public Book as(String alias) {
return new Book(alias, this);
}
/**
* Rename this table
*/
public Book rename(String name) {
return new Book(name, null);
}
}
| [
"[email protected]"
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.