blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 7 410 | content_id stringlengths 40 40 | detected_licenses listlengths 0 51 | license_type stringclasses 2 values | repo_name stringlengths 5 132 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 80 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 5.85k 684M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22 values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 132 values | src_encoding stringclasses 34 values | language stringclasses 1 value | is_vendor bool 1 class | is_generated bool 2 classes | length_bytes int64 3 9.45M | extension stringclasses 28 values | content stringlengths 3 9.45M | authors listlengths 1 1 | author_id stringlengths 0 352 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e17b81181c2da3a46db10a5d33aa56b5ef545053 | 8041f3b58303fb1bccabbbd30940e23878d70794 | /project/project/src/main/java/com/office/project/dto/UserDTO.java | a5575304221553c214459a5f1e8a86a01dfa1f25 | [] | no_license | MarinoGNeto/office-api | 2b491ca9896592db1960ac0424c49667547d2b19 | 61c4d1774f1fa4d6be9677775b756fe244531cd4 | refs/heads/master | 2023-01-01T09:50:30.585528 | 2020-10-24T17:51:53 | 2020-10-24T17:51:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,147 | java | package com.office.project.dto;
import com.office.project.enums.UserType;
import com.office.project.model.User;
public class UserDTO {
private Long id;
private String name;
private String email;
private String password;
private UserType userType;
public UserDTO() {
}
public UserDTO(String email, String password) {
this.email = email;
this.password = password;
}
public UserDTO(String name, String email, String password, UserType userType) {
this.name = name;
this.email = email;
this.password = password;
this.userType = userType;
}
public UserDTO(Long id, String name, String email, String password, UserType userType) {
this.id = id;
this.name = name;
this.email = email;
this.password = password;
this.userType = userType;
}
public static UserDTO of(User user) {
return new UserDTO(
user.getId(),
user.getName(),
user.getEmail(),
user.getPassword(),
user.getUserType()
);
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public UserType getUserType() {
return userType;
}
public void setUserType(UserType userType) {
this.userType = userType;
}
@Override
public String toString() {
return "UserDTO{" +
"id=" + id +
", name='" + name + '\'' +
", email='" + email + '\'' +
", password='" + password + '\'' +
", userType='" + userType + '\'' +
'}';
}
}
| [
"marino.goncalvesneto@gmail.com"
] | marino.goncalvesneto@gmail.com |
a8f4305a233e363d852d59e5c6bffb4fb3b55819 | 585236741a721a9d9c3a41a2a46b53710f397cf0 | /src/main/java/guru/springframework/bootstrap/profiles/DevProfileSysOut.java | 09b53d9360344e8f7f91ead071b93a1e7819c18f | [] | no_license | olegbezk/spring-dev-ops | 7050bdada724797babe323c6034852d1ccfb8cc7 | 756041a20cb11a6f932a54c699cdf00d5c15e47f | refs/heads/master | 2021-04-12T04:24:25.757703 | 2018-04-04T09:18:01 | 2018-04-04T09:18:01 | 125,855,798 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 781 | java | package guru.springframework.bootstrap.profiles;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Component;
@Component
@Profile("dev")
public class DevProfileSysOut {
@Autowired
public DevProfileSysOut( @Value("${custom.springframework.profile.message}") String message) {
System.out.println("#########################");
System.out.println("#########################");
System.out.println("### DEV ###");
System.out.println(message);
System.out.println("#########################");
System.out.println("#########################");
}
}
| [
"Oleg.Bezkorovaynyi@Sophos.com"
] | Oleg.Bezkorovaynyi@Sophos.com |
c1d75cc484cf6245853f4c9cc8a3bb0aa33c2aa0 | 57e4f048fc3edf524a480a540e3270df7ae3b691 | /src/FromBook/BagLayout.java | ff00373d1f21357d6f73dbb443eb93dbe11c82ac | [] | no_license | sashamosk86/Instagram_project | 6969dc07e5e0dd0f6948b9547b6fd2a94d5519b1 | 5806b554d6e19c7a96fd71af1088648308f98f18 | refs/heads/master | 2021-09-04T14:15:23.624071 | 2018-01-19T10:53:49 | 2018-01-19T10:53:49 | 105,702,890 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 661 | java | package FromBook;
import javax.swing.*;
import java.awt.*;
public class BagLayout extends JFrame {
private JPanel panel;
public BagLayout(){
setVisible(true);
setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
panel = new JPanel();
GridBagLayout layout = new GridBagLayout();
panel.setLayout(layout);
GridBagConstraints constraints = new GridBagConstraints();
constraints.weightx = 100;
constraints.weighty = 100;
constraints.gridx = 0;
constraints.gridy = 2;
constraints.gridwidth = 2;
constraints.gridheight = 1;
add(panel);
}
}
| [
"sashamosk86@ukr.net"
] | sashamosk86@ukr.net |
aa80937b64997d928ef888889cdd92ee2d43e4f8 | 7c89a65a5a6f610eeecf6b1fe783d6dd3fca391e | /build/generated/jax-wsCache/CatalogueService/catalogue/endpoint/GetReleaseNameByIdService.java | 6970e093c9fae3c775b00773708fa7d6636ca280 | [] | no_license | bludrik/MKatalogus---Client- | 2006d869a63744e4e12340608586490fd990fd1f | c4f45d66f0569dff562337fd35c645b640f37945 | refs/heads/master | 2016-08-11T20:37:43.181054 | 2015-10-05T10:07:00 | 2015-10-05T10:07:00 | 43,676,928 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,348 | java |
package catalogue.endpoint;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for getReleaseNameByIdService complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="getReleaseNameByIdService">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="id" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "getReleaseNameByIdService", propOrder = {
"id"
})
public class GetReleaseNameByIdService {
protected Integer id;
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link Integer }
*
*/
public Integer getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setId(Integer value) {
this.id = value;
}
}
| [
"ludrik.balazs@gmail.com"
] | ludrik.balazs@gmail.com |
86c793882a7ed115f664c1fb546edc6d8792fde8 | 1639d193458404170946c59b5b8399e19574f905 | /assignment5-master6/assignment5-master/src/main/java/com/meritamerica/assignment5/models/CDOffering.java | d72ada1f49706c806c23153fbe5084116145107c | [] | no_license | higebre16/CS106A | 6655ba2cfce63bf5b62b22f67b11d3233f22a694 | 9b76380d21a2c84deb4d35383feeb57f6bbbe900 | refs/heads/master | 2023-03-10T15:50:57.704628 | 2021-02-14T00:28:49 | 2021-02-14T00:28:49 | 298,878,690 | 0 | 3 | null | null | null | null | UTF-8 | Java | false | false | 903 | java | package com.meritamerica.assignment5.models;
import java.util.ArrayList;
import java.util.Arrays;
import javax.persistence.*;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
@Entity
public class CDOffering {
@Id
@Column
@GeneratedValue(strategy = GenerationType.AUTO)
private long id;
@NotNull(message = "Missing term.")
@Min(value = 1, message = "Term should be greater than 0.")
private static int term;
@NotNull(message = "Missing interestRate.")
private double interestRate;
public CDOffering() {
}
public long getID() {
return id;
}
public void setID(long id) {
this.id = id;
}
public int getTerm() {
return term;
}
public void setTerm(int term) {
this.term = term;
}
public double getInterestRate() {
return interestRate;
}
public void setInterestRate(double interestRate) {
this.interestRate = interestRate;
}
} | [
"higebre16@gmail.com"
] | higebre16@gmail.com |
e130efb36191d58f0a32dff353fbf2acf1134223 | 124b29503f7527fe571f9ca61980e52e82a817dd | /Homework5/src/dao/impl/CourseDAOBean.java | 2d7c18f44f6e50c52610fa5c031286af40ddceef | [] | no_license | LittleFlyElephant/j2ee-homework | 92afa1fb55072a4764571228271d2542619fff98 | 725d4b14a4716944c378782549fbc142e6b2efd8 | refs/heads/master | 2021-06-17T20:55:58.592446 | 2017-03-19T06:21:44 | 2017-03-19T06:21:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,414 | java | package dao.impl;
import dao.CourseDAO;
import dao.DAOHelper;
import model.Course;
import javax.ejb.Stateless;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
/**
* Created by raychen on 2017/2/21.
*/
@Stateless(name = "CourseDAOEJB")
public class CourseDAOBean implements CourseDAO{
private static DAOHelper helper = DAOHelperImpl.getInstance();
public CourseDAOBean() {
}
private Course getFromSingleRs(ResultSet rs) throws SQLException {
Course course = new Course();
course.setCourse_name(rs.getString("course_name"));
course.setId(rs.getInt("id"));
return course;
}
@Override
public Course findById(int id) {
Connection conn = helper.getConnection();
PreparedStatement stat = null;
ResultSet rs = null;
Course course = null;
try {
stat = conn.prepareStatement("SELECT * FROM tb_courses WHERE id=?");
stat.setInt(1, id);
rs = stat.executeQuery();
while (rs.next()){
course = getFromSingleRs(rs);
}
} catch (SQLException e) {
e.printStackTrace();
} finally {
helper.closeConnection(conn);
helper.closePreparedStatement(stat);
helper.closeResult(rs);
}
return course;
}
}
| [
"1395314348@qq.com"
] | 1395314348@qq.com |
fdaf363bbb125efb896e6657d9150dfb4a4c21d7 | 1c7d68ea78a96e11ccc44762cbf65809f3bee048 | /app/src/main/java/services/TCPClientServiceConnection.java | 9cfa9e82bd1c8b8fbcace9207bc422b4862b6cf7 | [] | no_license | zw2253782/driverDetectFrame | 2896a1ee55aaa4ff3ec93777900134bdd1daa139 | e67cefff0b3915064732a246168a06bd30001fd8 | refs/heads/master | 2021-04-06T17:47:24.147357 | 2018-03-22T22:45:16 | 2018-03-22T22:45:16 | 125,433,914 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 984 | java | package services;
import android.content.ComponentName;
import android.content.ServiceConnection;
import android.os.IBinder;
import android.util.Log;
import java.net.InetAddress;
import utility.FramePacket;
public class TCPClientServiceConnection implements ServiceConnection {
private TCPClientService.TCPClientBinder binder = null;
private static final String TAG = "UDPServiceConnection";
public void onServiceConnected(ComponentName className, IBinder service) {
Log.d(TAG, "connected");
binder = ((TCPClientService.TCPClientBinder) service);
}
public void onServiceDisconnected(ComponentName className) {
binder = null;
Log.d(TAG, "distconnected");
}
public boolean isRunning() {
if (binder == null) {
return false;
}
return binder.isRunning();
}
public void sendData(FramePacket data) {
if (data != null){
binder.sendData(data);
}
}
}
| [
"kanglei1130@gmail.com"
] | kanglei1130@gmail.com |
ecf40d70eead2ba510eac04813eaec21a7a31165 | 768dcc2a139a7ce9331037f07f74faeaeefc7a2a | /testdata/javajishusim/bianlinliang_Game.java | 47d3ed76072f9bff2630da6becf7a61b5811935a | [
"Apache-2.0"
] | permissive | ChenGemini/CheckRepeat | 52cc180a2bfd0895a00c1947d647734b620f9369 | c20c396e8cd4c5737e29f643e5bec83f0b6e8875 | refs/heads/master | 2023-03-16T04:11:39.432203 | 2019-12-30T05:00:07 | 2019-12-30T05:00:07 | null | 0 | 0 | null | null | null | null | GB18030 | Java | false | false | 574 | java | import java.util.*;
public class bianlinliang_Game
{
/**
* @param args
*/
static void menu(){
System.out.println("1 开始游戏");
System.out.println("2 退出");
}
public static void main(String[] args)
{
// TODO Auto-generated method stub
String select=null;
while(true){
menu();
Scanner sc=new Scanner(System.in);
select=sc.nextLine();
if(select.equals("1")){
System.out.println("开始游戏");
}else if(select.equals("2")){
System.exit(0);
}else{
System.out.println("输入错误,请重新输入");
}
}
}
}
| [
"fanghong_jmi@sina.com"
] | fanghong_jmi@sina.com |
9574c1e138c8cb3b2a21527a736f303cf0adce34 | 2eb3398fb911b39f1abc097e395299a48d69822c | /lwy-service/src/test/java/mongo/TestMdb.java | 86a30cfe084179d4721776da575d481d0f77cd7d | [] | no_license | stephen144791/lwyidea | fe5ea65d71a4bbc3f10552b28762c247f9be9020 | d67f66cc3999c0b11b288efd0e2987bccfb0297c | refs/heads/master | 2020-05-24T17:00:25.399230 | 2019-05-19T09:48:10 | 2019-05-19T09:48:10 | 187,372,909 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 932 | java | package mongo;
import demo.lwy.lwyservice.LwyServiceApplication;
import demo.lwy.lwyservice.entity.DemoEntity;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.mongodb.core.MongoOperations;
import org.springframework.test.context.junit4.SpringRunner;
import java.util.Date;
@RunWith(SpringRunner.class)
@SpringBootTest(classes = LwyServiceApplication.class)
public class TestMdb {
@Autowired
MongoOperations mongoOperations;
@Test
public void insertDemo() {
DemoEntity demoEntity = new DemoEntity();
demoEntity.setName("aaa");
demoEntity.setAge(23);
demoEntity.setGender("F");
demoEntity.setCreatedBy("lwy");
demoEntity.setCreatedDate(new Date());
mongoOperations.insert(demoEntity);
}
}
| [
"147914104@qq.com"
] | 147914104@qq.com |
354d8d5450868bba4a873e1c78b1090d3be82c21 | 1d4ada99185de9d536e83e088cce222c199f7a33 | /BackEnd/src/com/jb/backend/webserver/java/j2se/fundamental/AbstractClass.java | 319f984c44cd8be7d59229ea0adf33011deea9ef | [] | no_license | AndrewCarnegie/JavaKindle | 6414f929a6de8fe6781abd4630ee8aeca6a71597 | d11dcb5b45975b9cf698417f71ff4cd9b1433fb1 | refs/heads/master | 2020-03-30T07:59:04.150615 | 2018-09-30T15:25:22 | 2018-09-30T15:25:22 | 150,979,282 | 0 | 0 | null | null | null | null | GB18030 | Java | false | false | 4,412 | java | package com.jb.backend.webserver.java.j2se.fundamental;
/**
*一、抽象类
* 含有抽象方法的类必定要定义为抽象类,使用abstract修饰;但是反过来,抽象类不一定必须含有抽象方法;
* 当然,如果抽象类里的方法都不是抽象的,那么定义一个类为抽象类也就失去了它本身的意义
*
* 作用:
* 衍生出多个具有相似行为特性的子类;在子类里,所有抽象方法都必须实现;
*
* 特性:
* 1.抽象类不可用来直接创建对象;
* 2.抽象类以及其方法不可用private修饰;
* 3.如果一个类继承抽象类,则该子类必须实现抽象父类的所有抽象方法
* 使用场景:
* 1.
*二、接口
* 接口泛指消费对象所调用的方法和函数;接口实际就是行为的抽象;
*
* 1.接口中一般情况下不定义变量,只定义方法;
* 2.接口中的变量会被隐式地指定为public static final变量;并且只能为public static final,
* 若使用private修饰会报错;
* 3.接口中的方法会被隐式地指定为public abstract方法并且只能为public abstract;
* 用其他关键字,比如private、protected、static、 final等修饰会报编译错误
* 4.接口是一种极度的抽象,比抽象类更加抽象;
*
*
*三、接口和抽象类的区别:
* 1).语法层面上的区别
* a.抽象类可以提供成员方法的实现细节,而接口中只能存在public abstract 方法;
* b.抽象类中的成员变量可以是各种类型的,而接口中的成员变量
* 只能是public static final类型的;
* c.接口中不能含有静态代码块以及静态方法,而抽象类可以有静态代码块和静态方法;
* d.一个类只能继承一个抽象类,而一个类却可以实现多个接口。
*
* 2).设计层面上的区别
* a. 抽象类是对一种事物的抽象,即对类抽象,而接口是对行为的抽象。
* 抽象类是对整个类整体进行抽象,包括属性、行为,但是接口却是对类局部(行为)进行抽象。
* 举个简单的例子,飞机和鸟是不同类的事物,但是它们都有一个共性,就是都会飞。
* 那么在设计的时候,可以将飞机设计为一个类Airplane,将鸟设计为一个类Bird,
* 但是不能将 飞行 这个特性也设计为类,因此它只是一个行为特性,
* 并不是对一类事物的抽象描述。此时可以将 飞行 设计为一个接口Fly,包含方法fly( ),
* 然后Airplane和Bird分别根据自己的需要实现Fly这个接口。然后至于有不同种类的飞机,
* 比如战斗机、民用飞机等直接继承Airplane即可,对于鸟也是类似的,
* 不同种类的鸟直接继承Bird类即可。从这里可以看出,继承是一个 "是不是"的关系,
* 而 接口 实现则是 "有没有"的关系。如果一个类继承了某个抽象类,
* 则子类必定是抽象类的种类,而接口实现则是有没有、具备不具备的关系,
* 比如鸟是否能飞(或者是否具备飞行这个特点),能飞行则可以实现这个接口,
* 不能飞行就不实现这个接口。
*
* b. 设计层面不同,抽象类作为很多子类的父类,它是一种模板式设计。
* 而接口是一种行为规范,它是一种辐射式设计。什么是模板式设计?最简单例子,
* 大家都用过ppt里面的模板,如果用模板A设计了ppt B和ppt C,
* ppt B和ppt C公共的部分就是模板A了,如果它们的公共部分需要改动,
* 则只需要改动模板A就可以了,不需要重新对ppt B和ppt C进行改动。
* 而辐射式设计,比如某个电梯都装了某种报警器,一旦要更新报警器,
* 就必须全部更新。也就是说对于抽象类,如果需要添加新的方法,
* 可以直接在抽象类中添加具体的实现,子类可以不进行变更;而对于接口则不行,
* 如果接口进行了变更,则所有实现这个接口的类都必须进行相应的改动。
*
**/
public class AbstractClass {
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("explaination of abstract class and inferface");
}
}
| [
"andrew.carnegie.1023220@hotmail.com"
] | andrew.carnegie.1023220@hotmail.com |
fa0f77abef35209356ae11d5089b407d1d64a037 | 87bd1c29d8813d76e04f262705ba99602485c073 | /app/src/main/java/com/wyw/diyviewdemo/fragments/GuideFragment.java | c19388f217e486ab853d38cb457c82a8a48dc8e0 | [
"Apache-2.0"
] | permissive | wuyuewu515/DIYView | d7637d52a4a20592918fd9a980a765439d1d817f | d2bf994a836cc5eb5d5c2d0eb60b1a8bf202f581 | refs/heads/master | 2021-01-21T19:07:20.790376 | 2017-06-27T09:32:22 | 2017-06-27T09:32:22 | 92,117,775 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,229 | java | package com.wyw.diyviewdemo.fragments;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.wyw.diyviewdemo.R;
/**
* 项目名称:DIYView
* 类描述:引导视图Fragment
* 创建人:伍跃武
* 创建时间:2017/6/19 14:12
*/
public class GuideFragment extends Fragment {
public GuideFragment() {
}
public static GuideFragment newInstance(int pageIndex) {
Bundle args = new Bundle();
args.putInt("key", pageIndex);
GuideFragment fragment = new GuideFragment();
fragment.setArguments(args);
return fragment;
}
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_guid_card, container, false);
TextView tvText = (TextView) view.findViewById(R.id.tv_text);
int pageIndex = getArguments().getInt("key", 0) + 1;
tvText.setText(String.valueOf(pageIndex));
return view;
}
}
| [
"946456206@qq.com"
] | 946456206@qq.com |
148f650913f3175ef55d1e616e178752b7bc5f36 | abc4b1d660a2da3efc0a6ebd5d79c31038020c23 | /src/main/java/com/sunflower/back/service/cms/McCommonService.java | f97f65c84de151379b2ead12278e82eaff24e4db | [] | no_license | nangongyanya/SunFlower | b4bbe0c80c9c6e3249884f197b433bbbfcc6cdde | 8a93c26cf2c945768196990b10613a6a9e48c4c6 | refs/heads/master | 2021-09-07T15:43:40.634424 | 2018-02-25T09:53:21 | 2018-02-25T09:53:21 | 118,068,638 | 2 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,057 | java | package com.sunflower.back.service.cms;
import java.util.List;
import com.sunflower.back.domain.cms.McCommonData;
import com.sunflower.back.domain.cms.McCommonDataType;
import com.sunflower.back.domain.cms.McCommonFaq;
import com.sunflower.back.support.cms.McCommonDataCriteria;
import com.sunflower.back.support.cms.McCommonDataTypeCriteria;
import com.sunflower.back.support.cms.McCommonFaqCriteria;
import com.sunflower.common.base.PagedObject;
/**
* 基础数据相关Service
*
* 类名称:McCommonDataService 创建时间:Jan 20, 2018
*
* @version 1.0.0
*
*/
public interface McCommonService {
/** ************** McCommonDataType s *************** */
/**
* 根据id删除基础数据类型
*
* @param id
*/
public void deleteMcCommonDataType(Integer id);
/**
* 根据条件查询基础数据类型列表
*
* @param criteria
* @return
*/
public List<McCommonDataType> findMcCommonDataTypeAll(
McCommonDataTypeCriteria criteria);
/**
* 根据id查询基础数据类型
*
* @param id
* @return
*/
public McCommonDataType findMcCommonDataTypeById(Integer id);
/**
* 保存基础数据类型
*
* @param obj
* @return
*/
public Integer saveMcCommonDataType(McCommonDataType obj);
/**
* 更新基础数据类型
*
* @param obj
*/
public void updateMcCommonDataType(McCommonDataType obj);
/** ************** McCommonDataType e *************** */
/** ************** McCommonData s *************** */
/**
* 根据id删除基础数据类型
*
* @param id
*/
public void deleteMcCommonData(Integer id);
/**
* 根据id查询基础数据类型
*
* @param id
* @return
*/
public McCommonData findMcCommonDataById(Integer id);
/**
* 查询基础数据类型列表(可分页)
*
* @param criteria
* @return
*/
public PagedObject queryMcCommonData(McCommonDataCriteria criteria);
/**
* 保存基础数据类型
*
* @param obj
* @return
*/
public Integer saveMcCommonData(McCommonData obj);
/**
* 更新基础数据类型
*
* @param obj
*/
public void updateMcCommonData(McCommonData obj);
/** ************** McCommonDataType e *************** */
/** ************** McCommonFaq s *************** */
/**
* 根据id删除常见问答
*
* @param id
*/
public void deleteMcCommonFaq(Integer id);
/**
* 根据条件查询常见问答列表
*
* @param criteria
* @return
*/
public PagedObject queryMcCommonFaq(McCommonFaqCriteria criteria);
/**
* 根据id查询常见问答
*
* @param id
* @return
*/
public McCommonFaq findMcCommonFaqById(Integer id);
/**
* 保存常见问答
*
* @param obj
* @return
*/
public Integer saveMcCommonFaq(McCommonFaq obj);
/**
* 更新常见问答
*
* @param obj
*/
public void updateMcCommonFaq(McCommonFaq obj);
/** ************** McCommonFaq e *************** */
}
| [
"346525951@qq.com"
] | 346525951@qq.com |
bbbd5ca0c9ae2f679aac0b6a693210611b094588 | d545ff0417fd238044dbd4463b6f8993ead6c786 | /app/src/main/java/com/example/joe/splittingpoint2/ActivityBoxSide.java | 6e34483bc42f869cc6ad31b7e927e8f7df2cf33e | [] | no_license | JosephBaldry/SplittingPoint2 | 2b649b427f98024402f002c1208aad63ce639b8b | 099dfb8fef1f1b1a2537231f2889d7a5afa8b4ca | refs/heads/master | 2020-03-16T20:03:37.495739 | 2018-05-10T19:19:46 | 2018-05-10T19:19:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,271 | java | package com.example.joe.splittingpoint2;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.MotionEvent;
import android.widget.ImageView;
import android.widget.TextView;
public class ActivityBoxSide extends AppCompatActivity {
boolean is_running = true;
int game_speed = 1;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_box_side);
final ImageView player_square = findViewById(R.id.imgPlayer);
final ImageView target_bar = findViewById(R.id.imgBar);
final Handler increase_size_handler = new Handler();
increase_size_handler.postDelayed(new Runnable() {
@Override
public void run() {
if(is_running)
{
// Increase Height Of Rectangle
player_square.getLayoutParams().width = player_square.getWidth() + 5;
player_square.requestLayout();
// Calculate The Distance
ImageView win_square = findViewById(R.id.imgTarget);
TextView distance = findViewById(R.id.txtDistance);
float current_distance_w = win_square.getWidth() - player_square.getWidth();
distance.setText("Distance: " + current_distance_w);
}
if(!is_running)
{
float hPlayer = player_square.getX();
float hBar = target_bar.getX();
TextView win = findViewById(R.id.txtWin);
if(hPlayer >= hBar && hPlayer <= hBar + target_bar.getWidth())
{
win.setText("You Win!");
}
}
increase_size_handler.postDelayed(this, game_speed);
}
}, game_speed);
}
@Override
public boolean onTouchEvent(MotionEvent event) {
int event_action_type = event.getAction();
// Screen Is Touched
if(event_action_type == MotionEvent.ACTION_DOWN) {
is_running = false;
}
return true;
}}
| [
"39156972+JosephBaldry@users.noreply.github.com"
] | 39156972+JosephBaldry@users.noreply.github.com |
0262a33e6b3b12f51ca08c0d14a407dc12f3be25 | 95d13f110e5379e1908644a797261493ad40081e | /hybris/bin/y-ext/ext-worldpay/worldpayoccaddon/acceleratoraddon/web/testsrc/com/worldpay/validator/PaymentDetailsDTOValidatorTest.java | 38fec04a8e6aa6132b8ef2c67ffa69f494051adc | [] | no_license | KIJones/hybris | 597475dfbc37135ddd85572dc70af2302ae22088 | d7ef80a6e688f89aea94b1e9d87621f9f69cb78b | refs/heads/master | 2021-02-09T23:57:37.961738 | 2019-12-09T14:36:26 | 2019-12-09T14:36:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,841 | java | package com.worldpay.validator;
import de.hybris.bootstrap.annotations.UnitTest;
import de.hybris.platform.commercewebservicescommons.dto.order.CardTypeWsDTO;
import de.hybris.platform.commercewebservicescommons.dto.order.PaymentDetailsWsDTO;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
import org.springframework.validation.BeanPropertyBindingResult;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
@UnitTest
@RunWith(MockitoJUnitRunner.class)
public class PaymentDetailsDTOValidatorTest {
@InjectMocks
private PaymentDetailsDTOValidator testObj = new PaymentDetailsDTOValidator();
@Mock
@SuppressWarnings("PMD.UnusedPrivateField")
private Validator paymentAddressValidator;
private PaymentDetailsWsDTO paymentDetailsWsDTO;
private Errors errors;
@Before
public void setUp() {
paymentDetailsWsDTO = new PaymentDetailsWsDTO();
errors = new BeanPropertyBindingResult(paymentDetailsWsDTO, "paymentDetails");
}
@Test
public void shouldNotFailOnValid() {
// Given valid data
updatePaymentDetails("Bo Nielsen", createCardTypeWsDTO(), "ksdjhfskdfhsdkhfsdkfhsdkf", "01", "2017", "01", "2019");
// When
testObj.validate(paymentDetailsWsDTO, errors);
// Then
Assert.assertEquals("No errors expected", 0, errors.getErrorCount());
}
@Test
public void shouldFailOnMissingExpiryYear() {
// Given no expiryYear
updatePaymentDetails("Bo Nielsen", createCardTypeWsDTO(), "ksdjhfskdfhsdkhfsdkfhsdkf", null, null, "01", null);
// When
testObj.validate(paymentDetailsWsDTO, errors);
// Then
Assert.assertEquals("Only errors is expected", 1, errors.getErrorCount());
String[] codes = errors.getAllErrors().get(0).getCodes();
Assert.assertTrue("The first code is expected to contain expiryYear", codes[0].contains("expiryYear"));
}
@Test
public void shouldFailOnMissingExpiryMonth() {
// Given no expiryMonth
updatePaymentDetails("Bo Nielsen", createCardTypeWsDTO(), "ksdjhfskdfhsdkhfsdkfhsdkf", null, null, null, "2016");
// When
testObj.validate(paymentDetailsWsDTO, errors);
// Then
Assert.assertEquals("Only errors is expected", 1, errors.getErrorCount());
String[] codes = errors.getAllErrors().get(0).getCodes();
Assert.assertTrue("The first code is expected to contain expiryMonth", codes[0].contains("expiryMonth"));
}
@Test
public void shouldFailOnMissingCseToken() {
// Given missing card number
updatePaymentDetails("Bo Nielsen", createCardTypeWsDTO(), null, null, null, "01", "2016");
// When
testObj.validate(paymentDetailsWsDTO, errors);
// Then
Assert.assertEquals("Only errors is expected", 1, errors.getErrorCount());
String[] codes = errors.getAllErrors().get(0).getCodes();
Assert.assertTrue("The first code is expected to contain cseToken", codes[0].contains("cseToken"));
}
@Test
public void shouldFailOnMissingCardTypeCode() {
// Given no cardType.code
updatePaymentDetails("Bo Nielsen", new CardTypeWsDTO(), "ksdjhfskdfhsdkhfsdkfhsdkf", null, null, "01", "2016");
// When
testObj.validate(paymentDetailsWsDTO, errors);
// Then
Assert.assertEquals("Only errors is expected", 1, errors.getErrorCount());
String[] codes = errors.getAllErrors().get(0).getCodes();
Assert.assertTrue("The first code is expected to contain cardType.code", codes[0].contains("cardType.code"));
}
@Test
public void shouldFailOnMissingAccountHolderName() {
// Given no accountHolderName
updatePaymentDetails(null, createCardTypeWsDTO(), "ksdjhfskdfhsdkhfsdkfhsdkf", null, null, "01", "2016");
// When
testObj.validate(paymentDetailsWsDTO, errors);
// Then
Assert.assertEquals("Only errors is expected", 1, errors.getErrorCount());
String[] codes = errors.getAllErrors().get(0).getCodes();
Assert.assertTrue("The first code is expected to contain accountHolderName", codes[0].contains("accountHolderName"));
}
@Test
public void shouldFailOnStartDateAfterExpiration() {
// Given start date after expiration
updatePaymentDetails("Bo Nielsen", createCardTypeWsDTO(), "ksdjhfskdfhsdkhfsdkfhsdkf", "04", "2016", "01", "2016");
// When
testObj.validate(paymentDetailsWsDTO, errors);
// Then
Assert.assertEquals("Only errors is expected", 1, errors.getErrorCount());
String[] codes = errors.getAllErrors().get(0).getCodes();
Assert.assertTrue("The first code is expected to contain startMonth", codes[0].contains("startMonth"));
}
protected void updatePaymentDetails(final String name, final CardTypeWsDTO cardType, final String cseToken, final String startMonth,
final String startYear, final String expiryMonth, final String expiryYear) {
paymentDetailsWsDTO.setAccountHolderName(name);
paymentDetailsWsDTO.setCardType(cardType);
paymentDetailsWsDTO.setCseToken(cseToken);
paymentDetailsWsDTO.setExpiryMonth(expiryMonth);
paymentDetailsWsDTO.setExpiryYear(expiryYear);
paymentDetailsWsDTO.setStartMonth(startMonth);
paymentDetailsWsDTO.setStartYear(startYear);
}
protected CardTypeWsDTO createCardTypeWsDTO() {
CardTypeWsDTO cardTypeWsDTO = new CardTypeWsDTO();
cardTypeWsDTO.setCode("visa");
return cardTypeWsDTO;
}
}
| [
"peter.andersen@e2x.co.uk"
] | peter.andersen@e2x.co.uk |
8425c1033d9f3706afa30d37668d3c64053c2ab2 | 668afb48a9e8a17f8f5ecb6e436c8bfecd168f23 | /BetterBatteryStats/src/com/asksven/betterbatterystats/BroadcastHandler.java | ffafb346aa47aedd686a0d4f929d6041ee6f7e40 | [
"Apache-2.0"
] | permissive | kcoppock/BetterBatteryStats | d803fcbc6bd551e9255e1870b0fad51d62f4362b | 4987ce1cc491558b6dc0a4d1e2076309083739ba | refs/heads/master | 2021-01-15T18:31:22.614709 | 2012-06-06T03:53:10 | 2012-06-06T03:53:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,028 | java | /*
* Copyright (C) 2011 asksven
*
* 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.asksven.betterbatterystats;
import java.util.logging.Logger;
import com.asksven.betterbatterystats.data.StatsProvider;
import com.asksven.betterbatterystats.R;
import android.app.PendingIntent;
import android.appwidget.AppWidgetManager;
import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.SharedPreferences;
import android.os.BatteryManager;
import android.preference.PreferenceManager;
import android.util.Log;
/**
* General broadcast handler: handles event as registered on Manifest
* @author sven
*
*/
public class BroadcastHandler extends BroadcastReceiver
{
private static final String TAG = "BroadcastHandler";
/* (non-Javadoc)
* @see android.content.BroadcastReceiver#onReceive(android.content.Context, android.content.Intent)
*/
@Override
public void onReceive(Context context, Intent intent)
{
if (intent.getAction().equals(Intent.ACTION_BOOT_COMPLETED))
{
// start the service
// context.startService(new Intent(context, BetterBatteryStatsService.class));
Log.i(TAG, "Received Broadcast ACTION_BOOT_COMPLETED");
// delete whatever references we have saved here
StatsProvider.getInstance(context).deletedSerializedRefs();
}
if (intent.getAction().equals(Intent.ACTION_POWER_DISCONNECTED))
{
Log.i(TAG, "Received Broadcast ACTION_POWER_DISCONNECTED, seralizing 'since unplugged'");
// todo: store the "since unplugged" refs here
try
{
// Store the "since unplugged ref
StatsProvider.getInstance(context).setReferenceSinceUnplugged(0);
// check the battery level and if 100% the store "since charged" ref
Intent batteryIntent = context.getApplicationContext().registerReceiver(null,
new IntentFilter(Intent.ACTION_BATTERY_CHANGED));
int rawlevel = batteryIntent.getIntExtra("level", -1);
double scale = batteryIntent.getIntExtra("scale", -1);
double level = -1;
if (rawlevel >= 0 && scale > 0)
{
// normalize level to [0..1]
level = rawlevel / scale;
}
Log.i(TAG, "Bettery level on uplug is " + level );
if (level == 1)
{
try
{
Log.i(TAG, "Level was 100% at unplug, serializing 'since charged'");
StatsProvider.getInstance(context).setReferenceSinceCharged(0);
}
catch (Exception e)
{
Log.e(TAG, "An error occured: " + e.getMessage());
}
}
// Build the intent to call the service
Intent intentRefreshWidgets = new Intent(LargeWidgetProvider.WIDGET_UPDATE);
context.sendBroadcast(intentRefreshWidgets);
}
catch (Exception e)
{
Log.e(TAG, "An error occured: " + e.getMessage());
}
}
if (intent.getAction().equals(Intent.ACTION_SCREEN_OFF))
{
Log.i(TAG, "Received Broadcast ACTION_SCREEN_OFF");
// todo: store the "since screen off" refs here
try
{
}
catch (Exception e)
{
Log.e(TAG, "An error occured: " + e.getMessage());
}
}
if (intent.getAction().equals(Intent.ACTION_SCREEN_ON))
{
Log.i(TAG, "Received Broadcast ACTION_SCREEN_ON");
// todo: evaluate what hapened while screen was off here
try
{
}
catch (Exception e)
{
Log.e(TAG, "An error occured: " + e.getMessage());
}
}
}
}
| [
"sven.knispel@gmail.com"
] | sven.knispel@gmail.com |
0fa1ba1836f1ee54a19804ae0fa80219fd088c4c | a29a3d6794b943dd936a519bc36efced6bcbb969 | /MyPetApp/app/src/main/java/com/example/demo/mypetapp/MyAdapter.java | 9fcc04db1c115189eacf57df60f2968a493677f0 | [] | no_license | WChoy/amplify-android | 40dc73269c00e2277b45e6f01fcc77f53ae8c1db | 4ab3bf8289076c28e057e994ee9983208aa74015 | refs/heads/master | 2020-03-31T16:01:24.012089 | 2018-10-09T20:05:41 | 2018-10-09T20:05:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,286 | java | package com.example.demo.mypetapp;
import android.content.Context;
import android.graphics.BitmapFactory;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.amazonaws.amplify.generated.graphql.ListPetsQuery;
import java.util.ArrayList;
import java.util.List;
public class MyAdapter extends RecyclerView.Adapter<MyAdapter.ViewHolder> {
private List<ListPetsQuery.Item> mData = new ArrayList<>();;
private LayoutInflater mInflater;
// data is passed into the constructor
MyAdapter(Context context) {
this.mInflater = LayoutInflater.from(context);
}
// inflates the row layout from xml when needed
@Override
public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
View view = mInflater.inflate(R.layout.recyclerview_row, parent, false);
return new ViewHolder(view);
}
// binds the data to the TextView in each row
@Override
public void onBindViewHolder(ViewHolder holder, int position) {
ListPetsQuery.Item item = mData.get(position);
holder.txt_name.setText(item.name());
holder.txt_description.setText(item.description());
if (item.photo() != null && item.photo().localUri() != null)
holder.image_view.setImageBitmap(BitmapFactory.decodeFile(item.photo().localUri()));
else
holder.image_view.setImageBitmap(null);
}
// total number of rows
@Override
public int getItemCount() {
return mData.size();
}
// resets the list with a new set of data
public void setItems(List<ListPetsQuery.Item> items) {
mData = items;
}
// stores and recycles views as they are scrolled off screen
class ViewHolder extends RecyclerView.ViewHolder {
TextView txt_name;
TextView txt_description;
ImageView image_view;
ViewHolder(View itemView) {
super(itemView);
txt_name = itemView.findViewById(R.id.txt_name);
txt_description = itemView.findViewById(R.id.txt_description);
image_view = itemView.findViewById(R.id.image_view);
}
}
} | [
"janeshen@amazon.com"
] | janeshen@amazon.com |
76a864cae02133af8c012120c5c060d00c88ff75 | 314f17f60baf9f2faa1720cb9e6e5dc1d733a97e | /.svn/pristine/0e/0e634ddd012c91a986cba95c5139a6bc3f6f91ed.svn-base | 7572c790bb1a9cc2e2e333626f86d056f9a9c564 | [] | no_license | lc4t/payment | 8a18d08cb65b778bff48a36e86c3412324159fc0 | 9cfd839ef92b74594259b1a6d3737e11ce4e441e | refs/heads/master | 2020-03-31T07:15:31.731886 | 2017-05-23T05:15:15 | 2017-05-23T05:15:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,185 | package noumena.payment.dao.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import noumena.payment.model.Orders;
import noumena.payment.util.Constants;
import noumena.payment.util.DateUtil;
import noumena.payment.yandex.YandexCharge;
import noumena.payment.yandex.YandexOrderVO;
public class YandexServlet extends HttpServlet
{
/**
*
*/
private static final long serialVersionUID = 1L;
/**
* The doGet method of the servlet. <br>
*
* This method is called when a form has its tag value method equals to get.
*
* @param request
* the request send by the client to the server
* @param response
* the response send by the server to the client
* @throws ServletException
* if an error occurred
* @throws IOException
* if an error occurred
*/
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
{
doPost(request, response);
}
/**
* The doPost method of the servlet. <br>
*
* This method is called when a form has its tag value method equals to
* post.
*
* model:
* 1 - 客户端请求支付
* 2 - 客户端请求验证订单
* 11 - 小米请求Token服务成功状态回调
*
* @param request
* the request send by the client to the server
* @param response
* the response send by the server to the client
* @throws ServletException
* if an error occurred
* @throws IOException
* if an error occurred
*/
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
{
request.setCharacterEncoding("utf-8");
//必需的参数
String stype = request.getParameter("model"); //请求的类型:1-得到交易id;2-查询订单状态
String uid = request.getParameter("uid"); //
String pkgid = request.getParameter("pkgid"); //package name
String itemid = request.getParameter("itemid"); //
String payprice = request.getParameter("price"); //
String cburl = request.getParameter("cburl"); //单机游戏可以不需要回调地址
// //支付用到的参数
String subscriptionID = request.getParameter("orderid");
String pmtoken = request.getParameter("token"); //payment token
//选填的参数
String imei = request.getParameter("imei"); //
String channel = request.getParameter("channel"); //
String device_type = request.getParameter("device_type"); //
String device_id = request.getParameter("device_id"); //
String gversion = request.getParameter("gversion"); //
String osversion = request.getParameter("osversion"); //
//验证订单用参数
String payIds = request.getParameter("payIds"); //待查询的所有订单号,以“,”分隔
String ret = "";
if (stype == null)
{
stype = "";
}
if (stype.equals("1"))
{
Orders vo = new Orders();
vo.setImei(imei);
vo.setUId(uid);
vo.setItemId(itemid);
vo.setGversion(gversion);
vo.setOsversion(osversion);
vo.setDeviceId(device_id);
vo.setDeviceType(device_type);
vo.setChannel(channel);
vo.setAppId(pkgid);
vo.setAmount(Float.valueOf(payprice));
vo.setCreateTime(DateUtil.getCurrentTime());
vo.setPayType(Constants.PAY_TYPE_YANDEX);
vo.setCallbackUrl(cburl);
ret = YandexCharge.getTransactionId(vo);
}
else if (stype.equals("3"))
{
//创建订单并且返回订单结果
Orders vo = new Orders();
vo.setImei(imei);
vo.setUId(uid);
vo.setItemId(itemid);
vo.setGversion(gversion);
vo.setOsversion(osversion);
vo.setDeviceId(device_id);
vo.setDeviceType(device_type);
vo.setChannel(channel);
vo.setAppId(pkgid);
vo.setAmount(Float.valueOf(payprice));
vo.setCreateTime(DateUtil.getCurrentTime());
vo.setPayType(Constants.PAY_TYPE_YANDEX);
vo.setCallbackUrl(cburl);
YandexOrderVO yandexvo = new YandexOrderVO();
yandexvo.setPkname(pkgid);
yandexvo.setSubscriptionID(subscriptionID);
yandexvo.setPmtoken(pmtoken);
System.out.println("yandex charge ->" + uid + "(" + System.currentTimeMillis() + ")");
ret = YandexCharge.getTransactionIdAndStatus(vo,yandexvo);
}
else if (stype.equals("2"))
{
YandexOrderVO yandexvo = new YandexOrderVO();
yandexvo.setPkname(pkgid);
yandexvo.setSubscriptionID(subscriptionID);
yandexvo.setPmtoken(pmtoken);
System.out.println("yandex check order ids->(" + (uid == null ? "-" : uid) + ")" + payIds);
ret = YandexCharge.checkOrdersStatus(payIds,yandexvo);
}
else
{
ret = "model is invalid";
}
System.out.println("yandex order id->" + ret);
response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.println(ret);
out.flush();
out.close();
}
/**
* Initialization of the servlet. <br>
*
* @throws ServletException
* if an error occure
*/
public void init() throws ServletException
{
// Put your code here
}
}
| [
"you@example.com"
] | you@example.com | |
5ccb14957813da0d4a4487d570deeb49a21f952f | e2d0051b86a7771820239f4c7642d9d55934a363 | /app/src/main/java/com/ted/ListFragment.java | e2ae2a50247572e3496b7b91a9f8b0bbe82710f0 | [] | no_license | slaventini/ted | bc4b02de9cbb3ee0139a3dae552f3686c7eb091b | 84de474a827939a6bbf16eb86b17f1515e6d0923 | refs/heads/master | 2021-01-13T02:16:59.432076 | 2015-06-22T06:35:27 | 2015-06-22T06:35:27 | 37,842,609 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 9,652 | java | package com.ted;
import android.app.FragmentManager;
import android.content.Context;
import android.graphics.Bitmap;
import android.os.AsyncTask;
import android.os.Bundle;
import android.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.ProgressBar;
import android.widget.TextView;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
import org.xmlpull.v1.XmlPullParserFactory;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.StringReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
/**
* A simple {@link Fragment} subclass.
*/
public class ListFragment extends Fragment {
private ListView mList;
private boolean mFillTheList = true;
private ImmageArrayAdapter mImmageAdapter;
private int mSelectedPos;
class TED {
public String title;
public String image_url;
public String link;
public String enclosure;
}
class ImmageArrayAdapter extends ArrayAdapter<TED> {
public ImmageArrayAdapter(Context context, List<TED> values) {
super(context, R.layout.image_list_item, values);
}
@Override
public View getView(int position, View convertView, ViewGroup parent) {
Tag tag;
if (convertView == null) {
LayoutInflater inflater = (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
convertView = inflater.inflate(R.layout.image_list_item, parent, false);
convertView.setTag(tag = new Tag(convertView));
} else {
tag = (Tag) convertView.getTag();
}
final TED ted = getItem(position);
tag.img.setImageBitmap(null);
tag.title.setText(ted.title);
mSelectedPos = position;
tag.img.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
DetailFragment detail = new DetailFragment();
Bundle args = new Bundle();
args.putString("url", ted.enclosure);
args.putString("title", ted.title);
detail.setArguments(args);
//FragmentManager fragmentManager = getFragmentManager();
//fragmentManager.beginTransaction().replace(R.id.container, detail).commit();
getFragmentManager().beginTransaction().addToBackStack(null).replace(R.id.container, detail).commit();
}
});
// рисуем элемент списка в фоне
new AsyncTask<Tag, Void, Bitmap>(){
private Tag tag;
@Override
protected Bitmap doInBackground(Tag... tags) {
tag = tags[0];
if ( ted.image_url != null && !ted.image_url.isEmpty()) {
try {
return Utils.loadImage(ted.image_url);
} catch (Exception e) {
e.printStackTrace();
}
}
return null;
}
@Override
protected void onPostExecute(Bitmap bitmap) {
super.onPostExecute(bitmap);
if ( bitmap != null) {
tag.img.setImageBitmap(bitmap);
}
}
}.execute(tag);
return convertView;
}
final class Tag {
final ImageView img;
final ProgressBar progress;
final TextView title;
Tag(View view){
img = (ImageView) view.findViewById(R.id.img);
title = (TextView) view.findViewById(R.id.title);
progress = (ProgressBar) view.findViewById(R.id.progress);
}
}
}
public ListFragment() {
// Required empty public constructor
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View rootView = inflater.inflate(R.layout.fragment_list, container, false);
mList = (ListView)rootView.findViewById(R.id.list);
return rootView;
}
@Override
public void onViewCreated(View view, Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
}
@Override
public void onStart() {
super.onStart();
if (this.mFillTheList) {
new AsyncTask<Void, Void, List<TED>>(){
@Override
protected List<TED> doInBackground(Void... params) {
List<TED> result = null;
try {
String feed = getAndroidPitRssFeed();
result = parse(feed);
} catch (XmlPullParserException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
return result;
}
@Override
protected void onPostExecute(List<TED> listTED) {
super.onPostExecute(listTED);
if (listTED != null) {
mImmageAdapter = new ImmageArrayAdapter(getActivity(), listTED);
mList.setAdapter(mImmageAdapter);
}
}
@Override
protected void onPreExecute() {
super.onPreExecute();
}
}.execute();
mFillTheList = false;
} else {
mList.setAdapter(mImmageAdapter);
mList.setSelection(mSelectedPos);
}
}
public String getAndroidPitRssFeed(){
InputStream in = null;
try {
//URL url = new URL("http://www.androidpit.com/feed/main.xml");
URL url = new URL("http://www.ted.com/themes/rss/id/6");
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
in = conn.getInputStream();
ByteArrayOutputStream out = new ByteArrayOutputStream();
byte[] buffer = new byte[1024];
for (int count; (count = in.read(buffer)) != -1; ) {
out.write(buffer, 0, count);
}
byte[] response = out.toByteArray();
String rssFeed = new String(response, "UTF-8");
return rssFeed;
//mRssFeed.setText(rssFeed);
} catch (IOException e) {
e.printStackTrace();
} finally {
if (in != null) {
try {
in.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
return null;
}
public List<TED> parse(String feed) throws XmlPullParserException, IOException {
XmlPullParserFactory factory = XmlPullParserFactory.newInstance();
XmlPullParser xpp = factory.newPullParser();
xpp.setInput(new StringReader(feed));
return readRss(xpp);
}
private List<TED> readRss(XmlPullParser parser) throws XmlPullParserException, IOException {
List<TED> items = new ArrayList<>();
TED ted = null;
int eventType = parser.getEventType();
while (eventType != XmlPullParser.END_DOCUMENT) {
if(eventType == XmlPullParser.START_DOCUMENT) {
Log.d("RSS", "Start document");
} else if(eventType == XmlPullParser.START_TAG) {
if (parser.getName().equalsIgnoreCase("item")) {
ted = new TED();
} else if (parser.getName().equalsIgnoreCase("enclosure")) {
if (ted != null) {
String url = parser.getAttributeValue(0);
ted.enclosure = url;
}
} else if (parser.getName().equalsIgnoreCase("title")) {
if (ted != null) {
parser.next();
eventType = parser.getEventType();
if(eventType == XmlPullParser.TEXT) {
ted.title = parser.getText();
}
}
} else if (parser.getName().equalsIgnoreCase("itunes:image")) {
if (ted != null) {
String image_url = parser.getAttributeValue(0);
ted.image_url = image_url;
}
}
//Log.d("RSS", "Start tag " + parser.getName());
} else if(eventType == XmlPullParser.END_TAG) {
if (parser.getName().equalsIgnoreCase("item")) {
items.add(ted);
}
//Log.d("RSS", "End tag " + parser.getName());
} else if(eventType == XmlPullParser.TEXT) {
//Log.d("RSS", "Text " + parser.getText());
}
eventType = parser.next();
}
System.out.println("End document");
return items;
}
}
| [
"slaventii@mail.ru"
] | slaventii@mail.ru |
68a449072e08f4a60d7481f82ea4931b3e07f00f | 1b02d0a5fe044a40972bcafcb59ae1a0c5175247 | /src/main/java/iit/cloudcopmuting/constellation/dao/ConstellationManagementDao.java | f50da3b6d3bc0ab367e7198244b9b838f6147a88 | [] | no_license | BuddhiShameera/sateliteConstellationServiceDev | d540362a8509dbfcca1989baba4aacd450249be2 | 03a8ac8e95645375c8a5abd74ec5dd9bdf7bd138 | refs/heads/main | 2023-02-13T12:37:03.883695 | 2021-01-13T08:39:54 | 2021-01-13T08:39:54 | 326,500,049 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 655 | java | package iit.cloudcopmuting.constellation.dao;
import java.util.List;
import iit.cloudcopmuting.constellation.dto.ConstellationDetails;
import iit.cloudcopmuting.constellation.response.Response;
public interface ConstellationManagementDao {
public List<ConstellationDetails> getAllConstellations();
public int createConstellation(ConstellationDetails payload);
public List<ConstellationDetails> getConstellationById(int constellationID);
public int addConstellationToSatelite(int constellationID, int sateliteID);
public int detachConstellationFromSatelite(int constellationID);
public List<ConstellationDetails> getUnasignedConstellations();
}
| [
"bshameera82@gmail.com"
] | bshameera82@gmail.com |
26c31605b6acde74ed00b1a4aaa15a54a587d532 | 46b89f3ae69e7e0b74ea9ac24c72adcc4accc5a0 | /src/main/java/itao/workspace/springboot/config/dataSource/FirstDataSourceConfig.java | a770b0db7b526575034691e699e511e11466f02e | [] | no_license | itaoboy/spring-boot | d587d5c0b9d053cab92d6512d3fede2c25a453fc | fdaff5fb2525a85951756d1efceefa9ad7c3facc | refs/heads/master | 2020-04-29T11:54:55.612498 | 2019-04-03T13:32:32 | 2019-04-03T13:32:32 | 176,118,048 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,557 | java | package itao.workspace.springboot.config.dataSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.orm.jpa.EntityManagerFactoryBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.orm.jpa.JpaTransactionManager;
import org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean;
import org.springframework.transaction.PlatformTransactionManager;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import javax.persistence.EntityManager;
import javax.sql.DataSource;
/**
* sakila的数据源配置类
*/
@Configuration
@EnableTransactionManagement
@EnableJpaRepositories(
entityManagerFactoryRef = "entityManagerFactoryPrimary",
transactionManagerRef = "transactionManagerPrimary",
basePackages = { "itao.workspace.springboot.jpa.repository.sakila" }) //设置Repository所在位置
public class FirstDataSourceConfig {
@Autowired
@Qualifier("firstDataSource")
private DataSource firstDataSource;
@Primary
@Bean(name = "entityManagerPrimary")
public EntityManager entityManager(EntityManagerFactoryBuilder builder) {
return entityManagerFactoryPrimary(builder).getObject().createEntityManager();
}
/**
* @param builder 接收EntityManagerFactoryBuilder类型的参数
* @return 返回LocalContainerEntityManagerFactoryBean类型的对象
*/
@Primary
@Bean(name = "entityManagerFactoryPrimary")
public LocalContainerEntityManagerFactoryBean entityManagerFactoryPrimary(EntityManagerFactoryBuilder builder) {
return builder
.dataSource(firstDataSource)
.packages("itao.workspace.springboot.jpa.entity.sakila") //设置实体类所在位置
.persistenceUnit("primaryPersistenceUnit")
.build();
}
/**
* @param builder 接受EntityManagerFactoryBuilder类型的参数
* @return 返回PlatformTransactionManager类型的对象
*/
@Primary
@Bean(name = "transactionManagerPrimary")
public PlatformTransactionManager transactionManagerPrimary(EntityManagerFactoryBuilder builder) {
return new JpaTransactionManager(entityManagerFactoryPrimary(builder).getObject());
}
}
| [
"1716367679@qq.com"
] | 1716367679@qq.com |
02d12a6a8ea72b3aa3700f935c9bf6a77540c8a0 | bf75f5743039144f40cca2a7f00a38c89908b46e | /src/main/java/pl/jpetryk/traveltotem/domain/package-info.java | 051b0f1865b4cbd01e89cfe304b5b9069b9223b8 | [] | no_license | janpetryk/traveltotem | 12cd7e400eaf94ed57bfbf837494cf9e78cb774d | bbd721407229f22828f596155ad7d1270cdc8388 | refs/heads/master | 2021-01-12T01:06:10.583847 | 2017-02-20T14:35:51 | 2017-02-20T14:35:51 | 78,344,373 | 0 | 1 | null | 2020-09-18T09:13:04 | 2017-01-08T13:29:09 | Java | UTF-8 | Java | false | false | 70 | java | /**
* JPA domain objects.
*/
package pl.jpetryk.traveltotem.domain;
| [
"jasiek.petryk@gmail.com"
] | jasiek.petryk@gmail.com |
dc709189671a199e10d3d4e26549899702fdfd89 | 51c79f2d492ccb205edead76cdb82987413fc91f | /JavaFXProgramming/src/ch17/exam15/AppMain.java | 2e0e458cbecbcc2e80c4f9560407ce4714fecb6a | [] | no_license | cheolmin-Kim/TestRepository | f11f0b90d90802508e3c50be18f354ebc7a08203 | 0237f9c2c8e64e361109aebfe1787cd92870f4ff | refs/heads/master | 2021-01-20T00:45:41.075079 | 2017-08-22T04:07:18 | 2017-08-22T04:07:18 | 89,181,930 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 1,171 | java |
package ch17.exam15;
//프로그램적으로 레이아웃 만들기
import javafx.application.Application;
import static javafx.application.Application.launch;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
public class AppMain extends Application{
@Override
public void start(Stage primaryStage) throws Exception {
Parent parent = FXMLLoader.load(getClass().getResource("root.fxml")); //정적메소드 load, 첫번째 태그에 대한 객체를 만들어서 번지를 리턴,getrosource는 url을 리턴//controller객체가 만들어지고 initialize까지 실행이 된다.
//HBox hbox = (HBox)FXMLLoader.load(getClass().getResource("root.fxml"));
//Scene scene = new Scene(hbox); 도 동일함
Scene scene = new Scene(parent);
primaryStage.setScene(scene);
primaryStage.setTitle("AppMain"); //창제목
primaryStage.show();
primaryStage.setOnCloseRequest(event ->{
System.out.println("끄지마");
});
}
public static void main(String[] args) {
launch(args);
}
}
| [
"kcm7582@naver.com"
] | kcm7582@naver.com |
54b32cb7f4142abbead5d78e5a1ea8be3a2f18f0 | 792a2ada782005cbd8cbc2bebca5e17ce2b029dc | /frameworks/micronaut/micronautguide/src/test/java/example/micronaut/HelloControllerTest.java | c901a592fe3269ed9ee5a923414cdb6204f076e7 | [] | no_license | AlexanderScherbatiy/samples | e372e5056a5e94dc0ecf5069a669488306dadc0f | 911434ff272694cb4a6550b3cd6d0c0db8e0250f | refs/heads/master | 2022-10-25T18:04:03.254373 | 2022-06-02T16:14:14 | 2022-06-02T16:14:14 | 74,009,096 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 774 | java | package example.micronaut;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import io.micronaut.http.HttpRequest;
import io.micronaut.http.client.HttpClient;
import io.micronaut.http.client.annotation.Client;
import io.micronaut.test.extensions.junit5.annotation.MicronautTest;
import org.junit.jupiter.api.Test;
import jakarta.inject.Inject;
@MicronautTest
public class HelloControllerTest {
@Inject
@Client("/")
HttpClient client;
@Test
public void testHello() {
HttpRequest<String> request = HttpRequest.GET("/hello");
String body = client.toBlocking().retrieve(request);
assertNotNull(body);
assertEquals("Hello, World!", body);
}
}
| [
"alexander.scherbatiy@bell-sw.com"
] | alexander.scherbatiy@bell-sw.com |
0316872647e61bd8544370980e1239c347720661 | 01f1da3f32621cbb89bf7f3b4d4cc627bfc48ec4 | /game/states/play/buildings/City.java | b69eca493ee9ff8deb3098925f0d6e8192c0de83 | [] | no_license | miriti/igdc96-rumble | 0e34e0040f8a9db2995b6d26a8b0378f5deeffeb | d2058eb16349cad9d81b22fa7d56f179057d8dda | refs/heads/master | 2020-05-31T22:59:09.095925 | 2013-08-09T07:50:23 | 2013-08-09T07:50:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 727 | java | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package game.states.play.buildings;
import engine.core.TextureManager;
import engine.display.Image;
import game.states.play.Explosion;
import game.states.play.PlayObject;
/**
*
* @author Michael Miriti <michael@miriti.ru>
*/
public class City extends PlayObject {
public City() {
Image img = new Image(TextureManager.getTexture("game/gameData/sprites/city.png"));
addChildAt(img, -img.getWidth() / 2, -img.getHeight());
}
@Override
protected void onDeath() {
Explosion e = new Explosion(250);
parent.addChildAt(e, position.x, position.y);
super.onDeath();
}
}
| [
"michael@miriti.ru"
] | michael@miriti.ru |
3d2a0abecdfff0c80dbf4881df5eba31c2e1381a | 09960b68707da3891f45ac2eda90e177a742b28d | /web/ahnew/src/main/java/com/szty/aihao/service/mvnforumquote_service.java | fbd897636586ba91e8814fa19415d8d87d524048 | [] | no_license | jiangyiman/szty | a72434d586f836f8a9039b3a5a293f614a1e4b99 | 9087733b2b88b6ac0e0cd7d13652f02b42cdb848 | refs/heads/master | 2021-05-30T22:03:01.114487 | 2016-03-25T06:25:18 | 2016-03-25T06:25:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,887 | java | /*
*@===================================================================
*@项目说明
*@作者:宋春林
*@版本信息:@Copy Right 2011-2015
*@文件: iDataMvnforumquote.java
*@项目名称:JAVA项目管理
*@创建时间:2015/10/15
*@===================================================================
*/
package com.szty.aihao.service;
import com.szty.aihao.dao.mvnforumquote_Dao;
import com.szty.aihao.core.mvnforumquote_core;
import com.szty.aihao.factory.classFactory;
import java.util.Dictionary;
import java.util.List;
/**
*@文件说明
*@MVNFORUMQUOTE逻辑层接口
*@作者:宋春林
*/
public class mvnforumquote_service
{
public mvnforumquote_core _dal=classFactory.getmvnforumquote();
/**
* 向数据库中插入一条新记录。
* @param MVNFORUMQUOTE实体
* @return 新插入记录的编号
*/
public int insert_mvnforumquote (mvnforumquote_Dao _MVNFORUMQUOTEModel ) throws Exception{
return _dal.insert_mvnforumquote( _MVNFORUMQUOTEModel);
}
/**
* 向数据库中插入一条新记录。
* @param MVNFORUMQUOTEprrameter
* @return 新插入记录的编号
*/
public int insert_mvnforumquote(Object[] _para) throws Exception{
return _dal.insert_mvnforumquote( _para);
}
/**
* 向数据库中插入一条新记录。
* @param MVNFORUMQUOTE实体
* @return 影响的行数
*/
public int update_mvnforumquote(mvnforumquote_Dao _MVNFORUMQUOTEModel) throws Exception{
return _dal.update_mvnforumquote( _MVNFORUMQUOTEModel);
}
/**
* 删除数据表MVNFORUMQUOTE中的一条记录
* @param MVNFORUMQUOTE实体
* @return 新插入记录的编号
*/
public int delete_mvnforumquote(int Quoteid) throws Exception{
return _dal.delete_mvnforumquote( Quoteid);
}
/**
* 得到 mvnforumquote 数据实体
* @param Quoteid">Quoteid
* @return<mvnforumquote 数据实体
* @throws Exception
*/
public mvnforumquote_Dao get_mvnforumquoteDao(int Quoteid) throws Exception{
return _dal.get_mvnforumquoteDao( Quoteid);
}
/**
* 根据MVNFORUMQUOTE返回的查询DataRow创建一个MVNFORUMQUOTEEntity对象
* @param MVNFORUMQUOTE row
* @returnMVNFORUMQUOTEList对象
* @throws Exception
*/
public List<mvnforumquote_Dao> get_mvnforumquote_All() throws Exception{
return _dal.get_mvnforumquote_All();
}
/**
* 根据MVNFORUMQUOTE返回的查询DataRow创建一个MVNFORUMQUOTEEntity对象
* @param MVNFORUMQUOTE row
* @returnMVNFORUMQUOTEList对象
* @throws Exception
*/
public List<mvnforumquote_Dao> get_mvnforumquote_All(String strWhere) throws Exception{
return _dal.get_mvnforumquote_All(strWhere);
}
/* 根据SCLTEST返回 分页数据
*
* @param SCLTEST
* row
* @returnSCLTESTList对象
* @throws Exception
*/
public List<mvnforumquote_Dao> get_mvnforumquote_Page(int pageSize, int pageIndex,String strWhere) throws Exception
{
return _dal.get_mvnforumquote_Page(pageSize,pageIndex,strWhere);
}
/**
* 根据MVNFORUMQUOTE返回的查询DataRow创建一个MVNFORUMQUOTEEntity对象
* @param MVNFORUMQUOTE row
* @returnMVNFORUMQUOTEDictionary对象
* @throws Exception
*/
public Dictionary<Integer, mvnforumquote_Dao> get_mvnforumquote_Dictionary(String strWhere) throws Exception{
return _dal.get_mvnforumquote_Dictionary(strWhere);
}
/**
* 更新MVNFORUMQUOTE字段加一
* @param FieldName
* @param sid
*/
public int create_mvnforumquote_UpdateIncreate(String FieldName,int sid) throws Exception{
return _dal.create_mvnforumquote_UpdateIncreate( FieldName, sid);
}
/**
* 更新MVNFORUMQUOTEInt型字段
* @param FieldName
* @param Num
* @param sid
*/
public int create_mvnforumquote_UpdateInteger(String FieldName,int Num,int sid) throws Exception{
return _dal.create_mvnforumquote_UpdateInteger( FieldName, Num, sid);
}
/**
* 更新MVNFORUMQUOTEIString型字段
* @param FieldName
* @param Value
* @param sid
*/
public int createmvnforumquote_UpdateString(String FieldName,String Value,int sid) throws Exception{
return _dal.create_mvnforumquote_UpdateString( FieldName, Value, sid);
}
}
| [
"279941737@qq.com"
] | 279941737@qq.com |
640d8e0d5f80d5f2853ca7ec6773bb4448521dd7 | 56bd4fc28b70e895ed8736694a501065493cc9e3 | /libgdx_collision_starting_point/core/src/com/mygdx/game/Player2.java | b60288bee09c6263a790adbcfce5d31b73adc0f5 | [] | no_license | Nkosie199/CollisionDetection | 5b06c095d99588743f9eaf9d4952bf87b974cfd0 | 7e25e8b1222b9eb0c9c02a67f6bb836d2fcbb16a | refs/heads/master | 2020-09-06T14:19:21.685603 | 2019-11-08T11:04:33 | 2019-11-08T11:04:33 | 220,449,004 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 737 | java | package com.mygdx.game;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input.Keys;
import com.badlogic.gdx.graphics.Texture;
import com.mygdx.game.Entity;
public class Player2 extends Entity {
public Player2(MyGdxGame game, float x, float y, int width, int height, float speed, Texture texture, String shape) {
super(game, x, y, width, height, speed, texture, shape);
}
@Override
public void update(float delta) {
dx = 0;
dy = 0;
// move
if(Gdx.input.isKeyPressed(Keys.W)) {
dy = speed * delta;
}
if(Gdx.input.isKeyPressed(Keys.S)) {
dy = -speed * delta;
}
if(Gdx.input.isKeyPressed(Keys.A)) {
dx = -speed * delta;
}
if(Gdx.input.isKeyPressed(Keys.D)) {
dx = speed * delta;
}
}
} | [
"nkosigumede@yahoo.com"
] | nkosigumede@yahoo.com |
211f6e37e2ff7f4bd1a8ae9a26a5f4abe21706c2 | c8df418e292665aebe71a700b37c7f5fc5e0081d | /Test/src/springaop/aop02/Math.java | bb352fa7fbd1f0e564a8f4ac3d393e2415bd13b3 | [] | no_license | ziew323/Design-Pattern | be5cd4dff0f0a4cb183861f9f70acc6606ba85bd | d255de35920753336f722bb3e6e5398594542f49 | refs/heads/master | 2021-01-10T01:47:56.053882 | 2017-05-05T10:21:41 | 2017-05-05T10:21:41 | 53,837,083 | 0 | 0 | null | 2016-11-21T01:39:00 | 2016-03-14T07:54:08 | Java | UTF-8 | Java | false | false | 804 | java | package springaop.aop02;
import org.springframework.stereotype.Service;
/**
* 被代理的目标类
*/
@Service("math")
public class Math {
//加
public int add(int n1, int n2) {
int result = n1 + n2;
System.out.println(n1 + "+" + n2 + "=" + result);
return result;
}
//减
public int sub(int n1, int n2) {
int result = n1 - n2;
System.out.println(n1 + "-" + n2 + "=" + result);
return result;
}
//乘
public int mut(int n1, int n2) {
int result = n1 * n2;
System.out.println(n1 + "X" + n2 + "=" + result);
return result;
}
//除
public int div(int n1, int n2) {
int result = n1 / n2;
System.out.println(n1 + "/" + n2 + "=" + result);
return result;
}
} | [
"793124133@qq.com"
] | 793124133@qq.com |
b78aa6e5cfac66f3f3ff514391836c76c6f2861a | 32aa4bedde28b2a128c18c841df285f539034f06 | /src/main/java/com/lzy/parttime/service/LoginService.java | 7453db6a80b3d9b709a4da61a1a5793fcc981975 | [] | no_license | yangchunjian/parttime | 621fce642fa84c36798f7226d5e73a9d5f12c587 | 1f155c28cefe30f887738e831e6026feca69a36c | refs/heads/master | 2020-03-27T12:18:05.103091 | 2018-02-07T09:55:35 | 2018-02-07T09:55:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 387 | java | package com.lzy.parttime.service;
import com.lzy.parttime.entity.User;
import com.lzy.parttime.utils.Result;
/**
*
* @author 李兆阳
* @description : [登录业务层接口]
*
* @时间: 2017年10月19日 上午11:05:13
*/
public interface LoginService {
/**
*
* @TODO: [登录验证]
* @createTime:2017年10月20日下午5:16:35
*/
Result doLogin(User user);
}
| [
"1353337123@qq.com"
] | 1353337123@qq.com |
6eac1ac477588af3cb932af809e979323c022162 | ebc9e093648063674baba7c1f9e421b1deca9c7a | /app/src/main/java/pt/ulisboa/tecnico/cmov/airdesk/Exception/FileNotFoundException.java | 67fa37f667dcaa6811e9e21ecffd0bfbaaaddaf8 | [] | no_license | hugosednax/AirDesk | 08567635817112e3e313dabcb19389521b0d5a72 | 8aadae9f51ba337095a5f47e66291a78ea13d47e | refs/heads/master | 2020-04-10T21:00:45.762650 | 2015-05-14T20:51:43 | 2015-05-14T20:51:43 | 31,960,759 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 241 | java | package pt.ulisboa.tecnico.cmov.airdesk.Exception;
/**
* Created by Filipe Teixeira on 13/03/2015.
*/
public class FileNotFoundException extends Exception{
public FileNotFoundException(String message){
super(message);
}
}
| [
"filipelteixeira@gmail.com"
] | filipelteixeira@gmail.com |
fb9cd71f55816b54d2106e551f1f70b77333ab2e | f49cf673639f9e6431882d269734964022174e7f | /coding-common/src/main/java/com/liuyiling/common/util/StatLog.java | d23931547f237ec432a11ba4ebfda44f2166c4ca | [] | no_license | liuyiling/coding | ea4be8d3d7e364c972d3599d37017cbcd5077a8f | 1e5bdcc67f1e836ee1b72dfdb2177e744835f843 | refs/heads/master | 2020-04-12T02:31:33.603305 | 2018-10-16T08:23:16 | 2018-10-16T08:23:16 | 55,755,129 | 3 | 0 | null | null | null | null | UTF-8 | Java | false | false | 13,930 | java | package com.liuyiling.common.util;
import com.alibaba.fastjson.JSONObject;
import com.liuyiling.common.log.LogCollectorFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.text.DecimalFormat;
import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicLong;
/**
* 统计操作执行时间的日志工具
* Created by liuyl on 2016/12/21.
*/
public class StatLog implements Runnable {
private static Logger LOGGER = LoggerFactory.getLogger("debug_stat");
private static AtomicLong count = new AtomicLong(0L);
private static AtomicLong errorCount = new AtomicLong(0L);
private static Map<String, AtomicLong> statVars = new ConcurrentHashMap();
private static Map<String, AtomicLong> lastStatVars = new ConcurrentHashMap();
private static Map<String, AtomicLong> maxStatVars = new ConcurrentHashMap();
private static AtomicBoolean outOfMemory = new AtomicBoolean(false);
private static Map<String, StatLog.ProcessStat> processStats = new ConcurrentHashMap();
private static Map<String, StatLog.ProcessStat> processStatsLast = new ConcurrentHashMap();
private static Map<String, StatLog.ProcessStat> processStatsMax = new ConcurrentHashMap();
private static AtomicBoolean pausePrint = new AtomicBoolean(false);
private static Map<String, ThreadPoolExecutor> executors = new ConcurrentHashMap();
private static Set<String> cacheStatKeys = new HashSet();
private static long startTime;
private static long interval;
private boolean isStopped;
static {
printStat(5000L);
}
public static StatLog printStat(long interval) {
LOGGER.info("Start Api Server stat LOGGER.");
final StatLog statLog = new StatLog(System.currentTimeMillis(), interval);
final Thread thread = new Thread(statLog, "StatLog");
//该统计日志的时间作为后台运行
thread.setDaemon(true);
thread.start();
Runtime.getRuntime().addShutdownHook(new Thread() {
public void run() {
try {
statLog.shutdown();
thread.interrupt();
thread.join();
} catch (InterruptedException var2) {
}
}
});
return statLog;
}
public StatLog(long startTime2, long interval2) {
startTime = startTime2;
interval = interval2;
}
public static void setPausePrint(boolean print) {
pausePrint.set(print);
}
public static long inc() {
return count.incrementAndGet();
}
public static long get() {
return count.get();
}
public static long dec() {
return count.decrementAndGet();
}
public static synchronized void registerVar(String var) {
if (statVars.get(var) == null) {
statVars.put(var, new AtomicLong(0L));
lastStatVars.put(var, new AtomicLong(0L));
maxStatVars.put(var, new AtomicLong(0L));
}
}
public static void registerExecutor(String name, ThreadPoolExecutor executor) {
executors.put(name, executor);
}
public static long inc(String var) {
return inc(var, 1);
}
public static long inc(String var, int value) {
AtomicLong c = (AtomicLong) statVars.get(var);
if (c == null) {
registerVar(var);
c = (AtomicLong) statVars.get(var);
}
long r = c.addAndGet((long) value);
if (r < 0L) {
r = 0L;
c.set(0L);
}
return r;
}
public static long dec(String var) {
AtomicLong c = (AtomicLong) statVars.get(var);
return c != null ? c.decrementAndGet() : 0L;
}
public static long inc(int delta) {
return count.addAndGet((long) delta);
}
/**
* 增加某个操作的处理时间
*
* @param var 例如:jedis.incr
* @param processCount 操作次数
* @param processTime 操作耗时
*/
public static void incProcessTime(String var, int processCount, long processTime) {
incProcessTime(processStats, var, processCount, processTime);
incProcessTime(processStatsLast, var, processCount, processTime);
}
private static void incProcessTime(Map<String, StatLog.ProcessStat> pstats, String var, int processCount, long processTime) {
StatLog.ProcessStat ps = pstats.get(var);
if (ps == null) {
ps = new StatLog.ProcessStat();
pstats.put(var, ps);
}
ps.addStat(processCount, processTime);
}
public static long incError() {
return errorCount.incrementAndGet();
}
public static long decError() {
return errorCount.decrementAndGet();
}
public static long getError() {
return errorCount.get();
}
public static long incError(int delta) {
return errorCount.addAndGet((long) delta);
}
public static void resetStartTime(long newTime) {
startTime = newTime;
}
public static void addCacheStatKeySuffix(String keySuffix) {
cacheStatKeys.add(keySuffix);
}
public static boolean isCacheStatkey(String keySuffix) {
return keySuffix == null ? false : cacheStatKeys.contains(keySuffix);
}
public void shutdown() {
this.isStopped = true;
}
public void run() {
long lastCount = 0L;
long cnt = 0L;
long lastTime = 0L;
long max = 0L;
while (!this.isStopped) {
try {
synchronized (this) {
this.wait(interval);
}
if (!pausePrint.get()) {
long e = System.currentTimeMillis();
if (e == 0L) {
break;
}
if (e != startTime) {
cnt = count.get();
long cur = (cnt - lastCount) * 1000L / (e - lastTime);
if (cur > max) {
max = cur;
}
LOGGER.info("---------------------------");
LOGGER.info("JAVA HEAP: " + memoryReport() + ", UP TIME: " + (e - startTime) / 1000L + ", min: " + (e - startTime) / 60000L);
TreeSet keys = new TreeSet(statVars.keySet());
StringBuilder sb = new StringBuilder("[");
boolean firstLoop = true;
Iterator jsonLog = keys.iterator();
while (jsonLog.hasNext()) {
String i = (String) jsonLog.next();
AtomicLong c = (AtomicLong) statVars.get(i);
AtomicLong entry = (AtomicLong) lastStatVars.get(i);
AtomicLong m1 = (AtomicLong) maxStatVars.get(i);
long cnt1 = c.get();
if (cnt1 != 0L) {
long max1 = m1.get();
long lastCount1 = entry.get();
long avg1 = cnt1 * 1000L / (e - startTime);
long cur1 = (cnt1 - lastCount1) * 1000L / (e - lastTime);
if (cur1 > max1) {
max1 = (long) ((int) cur1);
}
if (!firstLoop) {
sb.append(",");
} else {
firstLoop = false;
}
sb.append("{\"").append(i).append("\":[").append(cnt1).append(",").append(avg1).append(",").append(cur1).append(",").append(max1).append("]}\n");
m1.set(max1);
entry.set(cnt1);
}
}
sb.append("]");
LOGGER.info(sb.toString());
if (processStats.size() > 0) {
LOGGER.info(this.statProcessSt().toString());
}
sb.delete(0, sb.length());
sb.append("pool:[ ");
StringBuilder var33 = new StringBuilder();
var33.append("[");
int var34 = 0;
Map.Entry var36;
for (Iterator var35 = executors.entrySet().iterator(); var35.hasNext(); var33.append(this.statJsonExecutor((String) var36.getKey(), (ThreadPoolExecutor) var36.getValue()))) {
var36 = (Map.Entry) var35.next();
sb.append(this.statExecutor((String) var36.getKey(), (ThreadPoolExecutor) var36.getValue())).append(", ");
if (var34++ > 0) {
var33.append(",");
}
}
var33.append("]");
LOGGER.info(sb.append(" ]").toString());
LogCollectorFactory.getLogCollector().log("common-pool", "threadpool", var33.toString());
lastTime = e;
lastCount = cnt;
}
}
} catch (InterruptedException var32) {
var32.printStackTrace();
}
}
LOGGER.info("Stat LOGGER stop");
}
private StringBuilder statProcessSt() {
StringBuilder pstatSb = (new StringBuilder(processStats.size() * 64)).append("processStat: ");
String psKey;
for (Iterator var2 = processStats.entrySet().iterator(); var2.hasNext(); processStatsLast.put(psKey, new StatLog.ProcessStat())) {
Map.Entry entry = (Map.Entry) var2.next();
psKey = (String) entry.getKey();
StatLog.ProcessStat ps = (StatLog.ProcessStat) entry.getValue();
StatLog.ProcessStat psLast = (StatLog.ProcessStat) processStatsLast.get(psKey);
StatLog.ProcessStat psMax = (StatLog.ProcessStat) processStatsMax.get(psKey);
if (psMax == null || psMax.getAvgTime() < psLast.getAvgTime()) {
processStatsMax.put(psKey, psLast);
psMax = (StatLog.ProcessStat) processStatsMax.get(psKey);
}
if (ps.getAvgTime() > 0L) {
pstatSb.append((String) entry.getKey()).append("{").append(ps.getCount()).append("=").append(ps.getAvgTime()).append(",").append(psLast.getCount()).append("=").append(psLast.getAvgTime()).append(",").append(psMax.getCount()).append("=").append(psMax.getAvgTime()).append("},\n ");
}
}
if (pstatSb.lastIndexOf(",") > 0) {
pstatSb.delete(pstatSb.lastIndexOf(","), pstatSb.length() - 1);
}
return pstatSb;
}
public static String memoryReport() {
Runtime runtime = Runtime.getRuntime();
double freeMemory = (double) runtime.freeMemory() / 1048576.0D;
double maxMemory = (double) runtime.maxMemory() / 1048576.0D;
double totalMemory = (double) runtime.totalMemory() / 1048576.0D;
double usedMemory = totalMemory - freeMemory;
double percentFree = (maxMemory - usedMemory) / maxMemory * 100.0D;
if (percentFree < 10.0D) {
outOfMemory.set(true);
LOGGER.error("Detected OutOfMemory potentia memory > 90%, stop broadcast presence !!!!!!");
} else if (outOfMemory.get() && percentFree > 20.0D) {
outOfMemory.set(false);
LOGGER.error("Detected memory return to normal, memory < 80%, resume broadcast presence.");
}
double percentUsed = 100.0D - percentFree;
DecimalFormat mbFormat = new DecimalFormat("#0.00");
DecimalFormat percentFormat = new DecimalFormat("#0.0");
StringBuilder sb = new StringBuilder(" ");
sb.append(mbFormat.format(usedMemory)).append("MB of ").append(mbFormat.format(maxMemory)).append(" MB (").append(percentFormat.format(percentUsed)).append("%) used");
return sb.toString();
}
public static boolean isOutOfMemory() {
return outOfMemory.get();
}
private String statExecutor(String name, ThreadPoolExecutor executor) {
StringBuilder strBuf = new StringBuilder(32);
strBuf.append(name).append("{").append(executor.getQueue().size()).append(",").append(executor.getCompletedTaskCount()).append(",").append(executor.getTaskCount()).append(",").append(executor.getActiveCount()).append(",").append(executor.getCorePoolSize()).append("}\n");
return strBuf.toString();
}
private String statJsonExecutor(String name, ThreadPoolExecutor executor) {
JSONObject jb = new JSONObject();
jb.put("name", name);
jb.put("act", executor.getActiveCount());
jb.put("core", executor.getCorePoolSize());
jb.put("max", executor.getMaximumPoolSize());
return jb.toString();
}
/**
* 处理统计日志的实体
*/
public static class ProcessStat {
public AtomicLong count = new AtomicLong();
public AtomicLong time = new AtomicLong();
public ProcessStat() {
}
private void addStat(int pcount, long ptime) {
this.count.addAndGet((long) pcount);
this.time.addAndGet(ptime);
}
private long getCount() {
return this.count.get();
}
private long getAvgTime() {
return this.count.get() > 0L ? this.time.get() / this.count.get() : 0L;
}
}
}
| [
"lyl3@meitu.com"
] | lyl3@meitu.com |
f65a0744c41847359b0467f2310751f67cb0b1cb | 3594fe31082506836cee25fc18326ac4d5170191 | /elar.cap/eoe.cap/src/main/java/edu/mass/doe/cap/util/CAPValidationUtil.java | e99a897e34ecf21c9b0fa9ef75879f6a5d258fb3 | [] | no_license | veerappanvs/elae.cap | a80802135ced7e0abb1915a043d02218106ce379 | f561d189d6560c9515fa58c716c38fad1c678a8c | refs/heads/master | 2020-04-13T17:03:58.024397 | 2018-12-27T21:35:03 | 2018-12-27T21:35:03 | 163,338,085 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 12,971 | java | package edu.mass.doe.cap.util;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.validator.EmailValidator;
import org.apache.commons.validator.routines.DoubleValidator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.BindingResult;
import org.springframework.web.multipart.MultipartFile;
import edu.mass.doe.cap.file.io.FileSystemStorageService;
import edu.mass.doe.cap.file.io.StorageService;
/**
* The Class CAPValidationUtil.
*/
public class CAPValidationUtil {
/**
* Validate MEPID.
*
* @param mepid the mepid
* @param fieldName the field name
* @param bindingResult the binding result
* @return true, if successful
*/
public static boolean validateMEPID(String mepid, String fieldName, BindingResult bindingResult) {
String className = bindingResult.getObjectName();
boolean result = true;
if (mepid == null || mepid.isEmpty())
result = false;
if (result) {
Pattern pattern = Pattern.compile("^5\\d{7}");
Matcher matcher = pattern.matcher(mepid.toString());
result = matcher.matches();
if (!result)
bindingResult.rejectValue(fieldName, "pattern." + className + "." + fieldName);
}
return result;
}
/**
* Validate required.
*
* @param value the value
* @param fieldName the field name
* @param bindingResult the binding result
* @return true, if successful
*/
public static boolean validateRequired(Object value, String fieldName, BindingResult bindingResult) {
String className = bindingResult.getObjectName();
boolean result = true;
if (value == null)
result = false;
if (result && value.getClass().getSimpleName().equals("String")) {
if (((String) value).trim().isEmpty())
result = false;
}
if (!result)
bindingResult.rejectValue(fieldName, "required." + className + "." + fieldName);
return result;
}
/**
* Validate required.
*
* @param value the value
* @param fieldName the field name
* @param errorCode the error code
* @param bindingResult the binding result
* @param msg the msg
* @return true, if successful
*/
public static boolean validateRequired(Object value, String fieldName, String errorCode,
BindingResult bindingResult, String msg) {
String className = bindingResult.getObjectName();
boolean result = true;
if (value == null)
result = false;
if (result && value.getClass().getSimpleName().equals("String")) {
if (((String) value).trim().isEmpty())
result = false;
}
if (!result)
bindingResult.rejectValue(fieldName, "required." + className + "." + errorCode, new Object[] { msg }, null);
return result;
}
/**
* Validate date before.
*
* @param date1 the date 1
* @param date2 the date 2
* @param fieldName the field name
* @param bindingResult the binding result
* @param msg the msg
* @return true, if successful
*/
public static boolean validateDateBefore(Date date1, Date date2, String fieldName, BindingResult bindingResult,
Object[] msg) {
boolean result = true;
if (date1.before(date2)) {
bindingResult.rejectValue(fieldName, "date.before", msg, null);
result = false;
}
return result;
}
/**
* Validat time before.
*
* @param date1 the date 1
* @param date2 the date 2
* @param fieldName the field name
* @param bindingResult the binding result
* @param msg the msg
* @return true, if successful
*/
public static boolean validatTimeBefore(Date date1, Date date2, String fieldName, BindingResult bindingResult,
Object[] msg) {
boolean result = true;
if (date1.before(date2)) {
bindingResult.rejectValue(fieldName, "time.before", msg, null);
result = false;
}
return result;
}
/**
* Validat observation time.
*
* @param date1 the date 1
* @param date2 the date 2
* @param fieldName the field name
* @param bindingResult the binding result
* @param msg the msg
* @return true, if successful
*/
public static boolean validatObservationTime(Date date1, Date date2, String fieldName, BindingResult bindingResult,
Object[] msg) {
boolean result = true;
if (date1.before(date2)) {
bindingResult.rejectValue(fieldName, "time.before", msg, null);
result = false;
}
if (date1.equals(date2)) {
bindingResult.rejectValue(fieldName, "time.equal", msg, null);
result = false;
}
return result;
}
/**
* Validate cycle start date.
*
* @param date1 the date 1
* @param startDate the start date
* @param endDate the end date
* @param fieldName the field name
* @param bindingResult the binding result
* @param msg the msg
* @return true, if successful
*/
public static boolean validateCycleStartDate(Date date1, Date startDate,Date endDate, String fieldName, BindingResult bindingResult,
Object[] msg) {
boolean result = true;
Object[] msg1=new Object[2];
msg1[0]=msg[0];
msg1[1]=msg[1];
if (date1.before(startDate)) {
bindingResult.rejectValue(fieldName, "date.before",msg1, null);
result = false;
}
msg1=new Object[2];
msg1[0]=msg[0];
msg1[1]=msg.length>2?msg[2]:"Todays Date";
if (date1.after(endDate)) {
bindingResult.rejectValue(fieldName, "date.after", msg1, null);
result = false;
}
return result;
}
/**
* Validate email.
*
* @param email the email
* @param fieldName the field name
* @param bindingResult the binding result
* @param msg the msg
* @return true, if successful
*/
public static boolean validateEmail(String email,String fieldName, BindingResult bindingResult,Object[] msg) {
boolean result = true;
if(email==null || email.isEmpty())
return result;
EmailValidator emailValidator = EmailValidator.getInstance();
if(!emailValidator.isValid(email)){
bindingResult.rejectValue(fieldName, "email.invalid", msg, null);
result = false;
}
return result;
}
/**
* Validate related fields.
*
* @param email1 the email 1
* @param email2 the email 2
* @param fieldName the field name
* @param bindingResult the binding result
* @param msg the msg
* @return true, if successful
*/
public static boolean validateRelatedFields(String email1,String email2,String fieldName, BindingResult bindingResult,Object[] msg) {
boolean result = true;
if( email1==null || email2.isEmpty()||email2==null || email2.isEmpty())
return result;
if(!email1.equals(email2)){
bindingResult.rejectValue(fieldName, "field.notmatching", msg, null);
result = false;
}
return result;
}
/**
* Validate alphanumeric space.
*
* @param text the text
* @param fieldName the field name
* @param bindingResult the binding result
* @param msg the msg
* @return true, if successful
*/
public static boolean validateAlphanumericSpace(String text,String fieldName, BindingResult bindingResult,Object[] msg) {
boolean result = true;
if(text==null || text.isEmpty())
return result;
if(!StringUtils.isAlphanumericSpace(text)){
bindingResult.rejectValue(fieldName, "text.invalid", msg, null);
result = false;
}
return result;
}
/**
* Validate numeric.
*
* @param text the text
* @param fieldName the field name
* @param bindingResult the binding result
* @param msg the msg
* @return true, if successful
*/
public static boolean validateNumeric(String text,String fieldName, BindingResult bindingResult,Object[] msg) {
boolean result = true;
if(text==null || text.isEmpty())
return result;
if(!StringUtils.isNumeric(text)){
bindingResult.rejectValue(fieldName, "numeric.invalid", msg, null);
result = false;
}
return result;
}
/**
* Validate double.
*
* @param text the text
* @param fieldName the field name
* @param bindingResult the binding result
* @param msg the msg
* @return true, if successful
*/
public static boolean validateDouble(String text,String fieldName, BindingResult bindingResult,Object[] msg) {
boolean result = true;
if(text==null || text.isEmpty())
return result;
DoubleValidator doubleValidator = DoubleValidator.getInstance();
if(!doubleValidator.isValid(text)){
bindingResult.rejectValue(fieldName, "numeric.invalid", msg, null);
result = false;
}
return result;
}
/**
* Validate message.
*
* @param text the text
* @param fieldName the field name
* @param bindingResult the binding result
* @param msg the msg
* @return true, if successful
*/
public static boolean validateMessage(String text,String fieldName, BindingResult bindingResult,Object[] msg) {
boolean result = true;
if(text==null||text.length()<1){
bindingResult.rejectValue(fieldName, "message.required", msg, null);
result=false;
}
if(result&&text.trim().isEmpty()){
bindingResult.rejectValue(fieldName, "message.invalid", msg, null);
result=false;
}
return result;
}
/**
* Validate text.
*
* @param text the text
* @param fieldName the field name
* @param bindingResult the binding result
* @param msg the msg
* @return true, if successful
*/
public static boolean validateText(String text,String fieldName, BindingResult bindingResult,Object[] msg) {
boolean result = true;
if(text==null || text.isEmpty())
return result;
Pattern pattern= Pattern.compile("[^\u0000-\u007F]|[@`~#$%^&*|]");
Matcher matcher=pattern.matcher(text);
if(matcher.find()){
bindingResult.rejectValue(fieldName, "text.invalid", msg, null);
result = false;
}
return result;
}
/**
* Validate file.
*
* @param file the file
* @param cycleId the cycle id
* @param storageService the storage service
* @param fieldName the field name
* @param bindingResult the binding result
* @param msg the msg
* @return true, if successful
* @throws IOException Signals that an I/O exception has occurred.
*/
public static boolean validateFile(MultipartFile file,Long cycleId,StorageService storageService,String fieldName, BindingResult bindingResult,Object[] msg) throws IOException {
boolean result = true;
List<String> contentTypes = Arrays.asList("application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","audio/mpeg","audio/mp3","audio/wav","text/css","text/html","text/csv","text/plain","image/png","image/bmp","image/jpeg","image/gif");
if(file.isEmpty() ){
bindingResult.rejectValue(fieldName, "cap.file.missing", msg, null);
result=false;
}
if(result &&!contentTypes.contains(file.getContentType())){
bindingResult.rejectValue(fieldName, "cap.file.invalid", msg, null);
result=false;
}
if(result &&file.getSize()<1){
bindingResult.rejectValue(fieldName, "cap.file.empty", msg, null);
result=false;
}
if(result){
Long size=storageService.repoSize(cycleId)+file.getSize();
if(size > 52428800L){
bindingResult.rejectValue(fieldName, "cap.folder.max.exceed", msg, null);
result=false;
}
}
return result;
}
/**
* Validate CAP file.
*
* @param file the file
* @param fieldName the field name
* @param bindingResult the binding result
* @param msg the msg
* @return true, if successful
* @throws IOException Signals that an I/O exception has occurred.
*/
public static boolean validateCAPFile(MultipartFile file,String fieldName, BindingResult bindingResult,Object[] msg) throws IOException {
boolean result = true;
List<String> contentTypes = Arrays.asList("text/csv","application/vnd.ms-excel");
if(file.getOriginalFilename()==null ){
bindingResult.rejectValue(fieldName, "cap.file.missing", msg, null);
result=false;
}
if(result &&!contentTypes.contains(file.getContentType())){
bindingResult.rejectValue(fieldName, "cap.bulk.upload.invalid", msg, null);
result=false;
}
if(result &&file.getSize()<1){
bindingResult.rejectValue(fieldName, "cap.file.empty", msg, null);
result=false;
}
return result;
}
}
| [
"veerappanvs@gmail.com"
] | veerappanvs@gmail.com |
663c3b81882c1a3f3ec46b4afb5ecc6e4b1df004 | 6b4b34c9ad78ed81eb019da8f5eb09e861ec630f | /DDWA/ContactListSpringMVC/src/main/java/com/dm/contactlist/dao/SearchTerm.java | ea1bc360d32367dc5c18428e13ee450ddc15a479 | [] | no_license | janssenda/thenewcarag | 497440b3314491f9b87890505e48d4dd48396421 | beea1e1c777fd3bc332cc5e2ba7476926c706b85 | refs/heads/master | 2021-01-19T14:18:39.649854 | 2018-07-02T22:15:38 | 2018-07-02T22:15:38 | 100,893,528 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 113 | java | package com.dm.contactlist.dao;
public enum SearchTerm {
FIRST_NAME, LAST_NAME, COMPANY, PHONE, EMAIL
}
| [
"janssenda@gmail.com"
] | janssenda@gmail.com |
549f6d6d15589d73fe4d1523d9eca88f00711150 | 8616e3c3509661a6b4906fe92e5a70c8da5e68d9 | /app/src/main/java/br/com/zupfilms/ui/home/fragments/favorite/FavoriteViewModel.java | 45f7d98259662341b736d36f78cce7f617e552ad | [] | no_license | tiagomnunes89/AppZupflix | c418a3e120222154ebb9047dd2f31ed746dcbc84 | 70c74921dc2677547789c4c8dfe7914096e70645 | refs/heads/master | 2022-10-31T03:53:57.010716 | 2020-09-25T13:04:55 | 2020-09-25T13:04:55 | 183,666,940 | 2 | 0 | null | 2022-10-06T17:39:26 | 2019-04-26T17:11:05 | Java | UTF-8 | Java | false | false | 153 | java | package br.com.zupfilms.ui.home.fragments.favorite;
import br.com.zupfilms.ui.BaseViewModel;
public class FavoriteViewModel extends BaseViewModel {
}
| [
"tiagomnunes@hotmail.com"
] | tiagomnunes@hotmail.com |
9312df291c7151aab7d950b7e74dac81150fde97 | 4fd4a14067fcdb065dfbea7f8d7bd933787c6ebf | /backstage-ordersdk/src/main/java/com/baojia/backstage/ordersdk/services/IPaymentRecordService.java | 5483f029da2e864d8736f5d789a5bef5c6fdd4b2 | [] | no_license | zhaowenen/backstage | bc8111b2335b875024d071881e8ddce1313d3954 | 7fb9a23d569e351b1ec6faabdc007594a7d6c4e6 | refs/heads/master | 2020-03-19T02:46:58.418063 | 2018-06-01T03:32:14 | 2018-06-01T03:32:14 | 135,660,162 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 662 | java | package com.baojia.backstage.ordersdk.services;
import com.baojia.backstage.ordersdk.models.PaymentRecordEntity;
import com.baomidou.mybatisplus.service.IService;
import java.util.Map;
/**
* @author wxr
* @Title: IPaymentRecordService
* @Description: 支付流水
* @date 2018/5/26 11:05
*/
public interface IPaymentRecordService extends IService<PaymentRecordEntity> {
/**
* @Description: 根据订单编号查询订单用户信息
* @param orderNo ,num
* @return OrdersUserEntity
* @throws
* @author wxr
* @date 2018/5/26
*/
PaymentRecordEntity getPaymentRecordByOid(Map<String,Object> map);
}
| [
"weixuerui@mmuu.com"
] | weixuerui@mmuu.com |
949c8506cefbaf52f76209f98f4865fdab4165d0 | 7cb5caa047c6f401104b797f091d33c0f05f9fe9 | /Automation Project 2020/src/main/java/com/usa/utility/Reporting.java | 70b74c6550888e02a1d5d4b41476fe317bf0bcac | [] | no_license | Automation-Champion/Irin-jenkins | ce50608a922d8eaf1e761c22ef842d87b1f10d78 | 190e1e4adbe7e8daabbb09585d5be908ba5c5eac | refs/heads/master | 2022-07-14T06:03:19.110416 | 2020-03-27T00:01:11 | 2020-03-27T00:01:11 | 250,398,585 | 0 | 0 | null | 2022-05-20T21:30:02 | 2020-03-26T23:53:17 | HTML | UTF-8 | Java | false | false | 3,688 | java | package com.usa.utility;
import java.io.File;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.testng.ITestContext;
import org.testng.ITestResult;
import org.testng.TestListenerAdapter;
import com.aventstack.extentreports.ExtentReports;
import com.aventstack.extentreports.ExtentTest;
import com.aventstack.extentreports.Status;
import com.aventstack.extentreports.markuputils.ExtentColor;
import com.aventstack.extentreports.markuputils.MarkupHelper;
import com.aventstack.extentreports.reporter.ExtentHtmlReporter;
import com.aventstack.extentreports.reporter.configuration.ChartLocation;
import com.aventstack.extentreports.reporter.configuration.Theme;
public class Reporting extends TestListenerAdapter {
public ExtentHtmlReporter htmlReporter;
public ExtentReports extent;
public ExtentTest logger;
public void onStart(ITestContext testContext) {
String timeStamp = new SimpleDateFormat("yyyy.MM.dd.HH.mm.ss").format(new Date());// time stamp
String repName = "report-" + timeStamp + ".html";
htmlReporter = new ExtentHtmlReporter(System.getProperty("user.dir") + "/ExtentReport/" + repName);// specify location
// of the report
htmlReporter.loadXMLConfig(System.getProperty("user.dir") + "/extent-config.xml");
extent = new ExtentReports();
extent.attachReporter(htmlReporter);
extent.setSystemInfo("Host name", "Mohammed Alam");
extent.setSystemInfo("Environemnt", "UAT");
extent.setSystemInfo("user", "Alam");
htmlReporter.config().setDocumentTitle("Automation Test Project"); // Tile of report
htmlReporter.config().setReportName("Functional Test Report"); // name of the report
htmlReporter.config().setTestViewChartLocation(ChartLocation.TOP); // location of the chart
htmlReporter.config().setTheme(Theme.DARK);
}
public void onTestSuccess(ITestResult tr) {
logger = extent.createTest(tr.getName()); // create new entry in th report
logger.log(Status.PASS, MarkupHelper.createLabel(tr.getName(), ExtentColor.GREEN)); // send the passed
// information to the report
// with GREEN colo // highlighted
}
public void onTestFailure(ITestResult tr) {
logger = extent.createTest(tr.getName()); // create new entry in th report
logger.log(Status.FAIL, MarkupHelper.createLabel(tr.getName(), ExtentColor.RED)); // send the passed information
// to the report with GREEN
// color highlighte
String screenshotPath = System.getProperty("user.dir") + "\\Screenshots\\" + tr.getName() + ".png";
File f = new File(screenshotPath);
if (f.exists()) {
try {
logger.fail("Screenshot is below:" + logger.addScreenCaptureFromPath(screenshotPath));
} catch (IOException e) {
e.printStackTrace();
}
}
}
public void onTestSkipped(ITestResult tr) {
logger = extent.createTest(tr.getName()); // create new entry in th report
logger.log(Status.SKIP, MarkupHelper.createLabel(tr.getName(), ExtentColor.ORANGE));
}
public void onFinish(ITestContext testContext) {
extent.flush();
}
}
// How to generate extends report
// 1 we need dependencies
// 2, we Config.xml file
// 3. create class inside utility/listener package
// 4. class implements ITestListienar
// 5, Automatically overwrite all predefine method
// 6. On test flure method we have to do macanisum about screenshot
// 7. also we have to configure extend report file and location
// 8. We have connected with TestNG.xml file
| [
"mdhaque@mds-macbook-pro"
] | mdhaque@mds-macbook-pro |
4f7224a24f76d940844cf2097f9e355f5282f10b | 782a7cc6f4c873226435d7a17a299de8f2e47bf4 | /src/com/dsa/saurabh/level01/Graphs/BreadthFirstSearch/NearestDistance.java | da81e06f84d935db767060d529cc3107c409aea6 | [] | no_license | saurabhchaturvedy/dsa_musings_2021 | 2b1b847c809f038e54a301a67db9f760eb863912 | 646035c98c237d04023f9d5ead434213930f2f91 | refs/heads/master | 2023-03-29T21:08:01.387258 | 2021-04-04T12:04:10 | 2021-04-04T12:04:10 | 329,242,661 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,303 | java | package com.dsa.saurabh.level01.Graphs.BreadthFirstSearch;
public class NearestDistance {
static int[][] answer;
private static void nearestCellDistance(int[][] array) {
answer = new int[array.length][array[0].length];
for (int i = 0; i < array.length; i++) {
for (int j = 0; j < array[0].length; j++) {
int minDistance = Integer.MAX_VALUE;
for (int x = 0; x < array.length; x++) {
for (int y = 0; y < array[0].length; y++) {
if (array[x][y] == 1) {
int distance = Math.abs(x - i) + Math.abs(y - j);
minDistance = Math.min(minDistance, distance);
}
}
}
answer[i][j] = minDistance;
}
}
}
public static void main(String[] args) {
int matrix1[][] = new int[][]{
{0, 1, 0},
{0, 0, 0},
{1, 0, 0}
};
nearestCellDistance(matrix1);
for (int i = 0; i < answer.length; i++) {
for (int j = 0; j < answer[i].length; j++) {
System.out.print(answer[i][j] + " ");
}
System.out.println();
}
}
}
| [
"saurabh.chaturvedi@mendix.com"
] | saurabh.chaturvedi@mendix.com |
547f24ed82fa01e7020db143ced1c3dac60229cc | 5963d99a585e2bb5d986854e6fb8c1554373f823 | /HessAndroid/app/src/main/java/com/hess/hessandroid/dialogs/TimePickerFragment.java | a21743d2ec09cba2fadb343f9379c7602fc432ff | [] | no_license | ImGregHenry/HESS | 8766b60f4d1863dcaf5f994762a6bf0234fadb05 | 4d23dc12e4c0fbe1c47f4b4865a92508fbab14eb | refs/heads/master | 2021-01-21T21:54:30.568583 | 2016-03-24T05:22:55 | 2016-03-24T05:22:55 | 41,596,714 | 0 | 0 | null | 2015-10-15T00:58:27 | 2015-08-29T14:50:01 | JavaScript | UTF-8 | Java | false | false | 1,137 | java | package com.hess.hessandroid.dialogs;
import android.app.Activity;
import android.app.Dialog;
import android.app.DialogFragment;
import android.app.TimePickerDialog;
import android.os.Bundle;
import android.text.format.DateFormat;
public class TimePickerFragment extends DialogFragment {
private TimePickerDialog.OnTimeSetListener mListener;
private Activity mActivity;
private int mMin;
private int mHour;
@Override
public void onAttach(Activity activity) {
super.onAttach(activity);
mActivity = activity;
try {
mListener = (TimePickerDialog.OnTimeSetListener) activity;
} catch (ClassCastException e) {
throw new ClassCastException(activity.toString() + " must implement OnTimeSetListener");
}
}
public void setTime(int hour, int min) {
mHour = hour;
mMin = min;
}
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
TimePickerDialog tp = new TimePickerDialog(mActivity, mListener, mHour, mMin,
DateFormat.is24HourFormat(getActivity()));
return tp;
}
}
| [
"imsupergreg@live.com"
] | imsupergreg@live.com |
d852df911118a888e3c79fb88798c0bfe60a9f34 | 0acd299390245fbb09e7f8aabb77a66cfde6f034 | /src/Component/Purchases_panel.java | 70f6e2f635dfed0dc43eb785129eeab642279b64 | [] | no_license | GnnGaston/SUPPERMARKET_SYSTEM | f43d9b7ba45f082b0d1efe3119daff80db7fd6b8 | 139365797e010a2ea3c973faffbf9d6773eb0fef | refs/heads/master | 2021-01-10T17:32:58.390129 | 2016-02-01T15:31:41 | 2016-02-01T15:31:41 | 50,851,343 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 23,796 | 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 Component;
/**
*
* @author asha
*/
public class Purchases_panel extends javax.swing.JPanel {
/**
* Creates new form Sales_panel
*/
public Purchases_panel() {
initComponents();
}
/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
jTextField1 = new javax.swing.JTextField();
jTextField2 = new javax.swing.JTextField();
jLabel3 = new javax.swing.JLabel();
jTextField3 = new javax.swing.JTextField();
jTextField4 = new javax.swing.JTextField();
jLabel4 = new javax.swing.JLabel();
jButton1 = new javax.swing.JButton();
jTextField5 = new javax.swing.JTextField();
jLabel5 = new javax.swing.JLabel();
jScrollPane1 = new javax.swing.JScrollPane();
jTable1 = new javax.swing.JTable();
jPanel1 = new javax.swing.JPanel();
jPanel2 = new javax.swing.JPanel();
jLabel6 = new javax.swing.JLabel();
jLabel7 = new javax.swing.JLabel();
jScrollPane2 = new javax.swing.JScrollPane();
jTextArea1 = new javax.swing.JTextArea();
jTextField6 = new javax.swing.JTextField();
jTextField7 = new javax.swing.JTextField();
jTextField8 = new javax.swing.JTextField();
jLabel8 = new javax.swing.JLabel();
jLabel9 = new javax.swing.JLabel();
jTextField10 = new javax.swing.JTextField();
jLabel11 = new javax.swing.JLabel();
jButton2 = new javax.swing.JButton();
jButton3 = new javax.swing.JButton();
jPanel3 = new javax.swing.JPanel();
jLabel10 = new javax.swing.JLabel();
jTextField9 = new javax.swing.JTextField();
setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Purchase > Details", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 12), new java.awt.Color(0, 51, 51))); // NOI18N
jLabel1.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
jLabel1.setText("Document No");
jLabel2.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
jLabel2.setText("Product Barcode");
jTextField1.setPreferredSize(new java.awt.Dimension(160, 26));
jTextField2.setPreferredSize(new java.awt.Dimension(160, 26));
jLabel3.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
jLabel3.setText("Purchase Date");
jTextField3.setPreferredSize(new java.awt.Dimension(160, 26));
jTextField4.setPreferredSize(new java.awt.Dimension(160, 26));
jLabel4.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
jLabel4.setText("Poduct Name");
jButton1.setText("Pay");
jButton1.setPreferredSize(new java.awt.Dimension(130, 25));
jTextField5.setPreferredSize(new java.awt.Dimension(160, 26));
jLabel5.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
jLabel5.setText("Quantity");
jTable1.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{null, null, null, null, null, null, null},
{null, null, null, null, null, null, null},
{null, null, null, null, null, null, null},
{null, null, null, null, null, null, null}
},
new String [] {
"SNO", "Product Code", "Product Name", "Category", "Price", "Qty", "Total"
}
));
jScrollPane1.setViewportView(jTable1);
jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Supplier > Info", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 12), new java.awt.Color(0, 51, 51))); // NOI18N
jPanel2.setBackground(new java.awt.Color(51, 51, 0));
jLabel6.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
jLabel6.setForeground(new java.awt.Color(255, 255, 255));
jLabel6.setText("Name");
jLabel7.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
jLabel7.setForeground(new java.awt.Color(255, 255, 255));
jLabel7.setText("Address");
jTextArea1.setColumns(20);
jTextArea1.setRows(5);
jScrollPane2.setViewportView(jTextArea1);
jTextField6.setPreferredSize(new java.awt.Dimension(120, 25));
javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
jPanel2.setLayout(jPanel2Layout);
jPanel2Layout.setHorizontalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(jLabel6)
.addGap(18, 18, 18)
.addComponent(jTextField6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(jLabel7)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 189, Short.MAX_VALUE)
.addGap(8, 8, 8)))
.addContainerGap())
);
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel6))
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGap(27, 27, 27)
.addComponent(jLabel7)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 87, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap())))
);
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
jTextField7.setPreferredSize(new java.awt.Dimension(100, 25));
jTextField8.setPreferredSize(new java.awt.Dimension(100, 25));
jLabel8.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
jLabel8.setText("Given");
jLabel9.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
jLabel9.setText("Balance");
jTextField10.setPreferredSize(new java.awt.Dimension(120, 25));
jLabel11.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
jLabel11.setText("Invoice");
jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/suppermarket/Save-icon.png"))); // NOI18N
jButton2.setText("Save");
jButton2.setPreferredSize(new java.awt.Dimension(120, 25));
jButton3.setText("Cancel");
jButton3.setPreferredSize(new java.awt.Dimension(120, 25));
jPanel3.setBackground(new java.awt.Color(51, 51, 0));
jLabel10.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
jLabel10.setForeground(new java.awt.Color(255, 255, 255));
jLabel10.setText("Grand Total");
jTextField9.setPreferredSize(new java.awt.Dimension(135, 25));
javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
jPanel3.setLayout(jPanel3Layout);
jPanel3Layout.setHorizontalGroup(
jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel3Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel10)
.addGap(62, 62, 62)
.addComponent(jTextField9, javax.swing.GroupLayout.PREFERRED_SIZE, 174, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap())
);
jPanel3Layout.setVerticalGroup(
jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel3Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel10)
.addComponent(jTextField9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap())
);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
this.setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGap(31, 31, 31)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(41, 41, 41)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel4)
.addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(31, 31, 31)
.addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(118, 118, 118)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGap(0, 0, Short.MAX_VALUE))
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jScrollPane1)
.addGroup(layout.createSequentialGroup()
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(50, 50, 50)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel9)
.addComponent(jLabel8))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel11)
.addGap(44, 44, 44)
.addComponent(jTextField10, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(39, 39, 39)
.addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE))))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addGap(301, 301, 301)
.addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))))
.addContainerGap())))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(18, 18, 18)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel1)
.addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel3)
.addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel2)
.addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel4)
.addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel5))
.addGap(18, 18, 18)
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 159, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel8))
.addGap(18, 18, 18))
.addGroup(layout.createSequentialGroup()
.addGap(27, 27, 27)
.addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(27, 27, 27)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jTextField10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel11))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jTextField8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel9))
.addGap(43, 43, 43))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(32, 32, 32))))
.addGroup(layout.createSequentialGroup()
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
);
}// </editor-fold>//GEN-END:initComponents
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JButton jButton3;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel10;
private javax.swing.JLabel jLabel11;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel4;
private javax.swing.JLabel jLabel5;
private javax.swing.JLabel jLabel6;
private javax.swing.JLabel jLabel7;
private javax.swing.JLabel jLabel8;
private javax.swing.JLabel jLabel9;
private javax.swing.JPanel jPanel1;
private javax.swing.JPanel jPanel2;
private javax.swing.JPanel jPanel3;
private javax.swing.JScrollPane jScrollPane1;
private javax.swing.JScrollPane jScrollPane2;
private javax.swing.JTable jTable1;
private javax.swing.JTextArea jTextArea1;
private javax.swing.JTextField jTextField1;
private javax.swing.JTextField jTextField10;
private javax.swing.JTextField jTextField2;
private javax.swing.JTextField jTextField3;
private javax.swing.JTextField jTextField4;
private javax.swing.JTextField jTextField5;
private javax.swing.JTextField jTextField6;
private javax.swing.JTextField jTextField7;
private javax.swing.JTextField jTextField8;
private javax.swing.JTextField jTextField9;
// End of variables declaration//GEN-END:variables
}
| [
"athumangaston@gmail.com"
] | athumangaston@gmail.com |
2b48467623317a1164ba56262bf267085bb5ab72 | fbfdac7d4f11c68809880735c1dc039071a11687 | /common/src/main/java/com/springcloud/common/vo/PageInfo.java | 895c5ecc595e1870031478c9672ffa18c9c873e2 | [] | no_license | liuhuanming/springcloud-demo1 | b8c8a0cf6962dc492898e4bf0ad398f5b5f7c858 | cb323a0fae036b05954c7690cc435bd009efd0dd | refs/heads/master | 2022-06-22T20:29:23.950898 | 2021-03-03T15:29:13 | 2021-03-03T15:29:13 | 220,017,677 | 0 | 0 | null | 2022-06-21T04:15:06 | 2019-11-06T14:37:04 | Java | UTF-8 | Java | false | false | 1,244 | java | package com.springcloud.common.vo;
import com.springcloud.common.util.CopyUtil;
import lombok.Data;
import org.springframework.data.domain.Page;
import java.util.List;
/**
* @description:
* @author: Administrator
* @date: 2021-02-28 8:36
*/
@Data
public class PageInfo<M> {
private int page;//当前页码
private int pageSize;//页面大小
private String sidx;//排序字段
private String sord;//排序方式
private List<M> rows;//分页结果
private int records;//总记录数
private int total;//总页数
/**
* 获取统一分页结果
*/
public static <M> PageInfo<M> of(Page page, Class<M> entityModelClass) {
int records = (int) page.getTotalElements();
int pageSize = page.getSize();
int total = records % pageSize == 0 ? records / pageSize : records / pageSize + 1;
PageInfo<M> pageInfo = new PageInfo<>();
pageInfo.setPage(page.getNumber() + 1);//页码
pageInfo.setPageSize(pageSize);//页面大小
pageInfo.setRows(CopyUtil.copyList(page.getContent(), entityModelClass));//分页结果
pageInfo.setRecords(records);//总记录数
pageInfo.setTotal(total);//总页数
return pageInfo;
}
}
| [
"1334393253@qq.com"
] | 1334393253@qq.com |
5b08d50b86b576572159b261aa0b5d27e38288a0 | 131193ce860a3783cd9a82e4633742c7e08f671f | /p2p/core/src/main/java/com/eloan/base/query/QueryObject.java | 5c70d734a27963132954c1785c4738f72b6141ee | [] | no_license | zhumeilu/p2p | 0cc1b79a25f72da82b0c7ce2d26a5576e706c868 | 52913ebc042dae9778ef6127d1c27b74786e97b2 | refs/heads/master | 2021-01-21T21:09:46.370560 | 2017-05-24T16:29:48 | 2017-05-24T16:29:48 | 92,313,248 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 268 | java | package com.eloan.base.query;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class QueryObject {
private int currentPage = 1;
private int pageSize = 10;
public int getStart() {
return (currentPage - 1) * pageSize;
}
}
| [
"824434649@qq.com"
] | 824434649@qq.com |
de447e47286acd110814d71d00fef5ac850580ee | af8c0ffa4f2181708532f2b852ca4b718f84eb19 | /diorite-config/src/main/java/org/diorite/cfg/system/Template.java | 2a16213fe72053b4ecfcffcf43b8ef900e369328 | [
"MIT"
] | permissive | Diorite/Diorite-old | 1a5e91483fe6e46e305f866f10cff22846b19816 | bfe35f695876f633ae970442f673188e4ff99c9b | refs/heads/master | 2021-01-22T15:21:39.404346 | 2016-08-09T18:10:57 | 2016-08-09T18:10:57 | 65,502,014 | 3 | 6 | null | null | null | null | UTF-8 | Java | false | false | 16,223 | java | /*
* The MIT License (MIT)
*
* Copyright (c) 2016. Diorite (by Bartłomiej Mazur (aka GotoFinal))
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package org.diorite.cfg.system;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.util.Map;
import org.apache.commons.lang3.StringUtils;
import org.diorite.cfg.system.elements.TemplateElement.ElementPlace;
import org.diorite.utils.reflections.ReflectElement;
/**
* Object representation of class yaml template, used to generate
* string with yaml, from given object.
*
* @param <T> type of object.
*/
public interface Template<T>
{
/**
* @return name of template.
*/
String getName();
/**
* @return type of template.
*/
Class<T> getType();
/**
* @return header comment, may be null.
*/
String getHeader();
/**
* @return footer comment, may be null.
*/
String getFooter();
/**
* @return copy of map contains all fields data.
*/
Map<ConfigField, ReflectElement<?>> getFields();
/**
* @return copy of map with mapping key{@literal ->}field.
*/
Map<String, ConfigField> getFieldsNameMap();
/**
* @return class loader used by template.
*/
ClassLoader getDefaultClassLoader();
/**
* Load object from string using this template.
*
* @param str string with object data in yaml.
* @param classLoader other class loader to use when creating objects.
*
* @return object created from yaml data and template.
*/
T load(String str, ClassLoader classLoader);
/**
* Load object from {@link Reader} using this template.
*
* @param reader {@link Reader} with object data in yaml.
* @param classLoader other class loader to use when creating objects.
*
* @return object created from yaml data and template.
*/
T load(Reader reader, ClassLoader classLoader);
/**
* Load object from {@link InputStream} using this template.
*
* @param is {@link InputStream} with object data in yaml.
* @param classLoader other class loader to use when creating objects.
*
* @return object created from yaml data and template.
*/
T load(InputStream is, ClassLoader classLoader);
/**
* Load object from string using this template.
*
* @param str string with object data in yaml.
*
* @return object created from yaml data and template.
*/
default T load(final String str)
{
return this.load(str, this.getDefaultClassLoader());
}
/**
* Load object from {@link Reader} using this template.
*
* @param reader {@link Reader} with object data in yaml.
*
* @return object created from yaml data and template.
*/
default T load(final Reader reader)
{
return this.load(reader, this.getDefaultClassLoader());
}
/**
* Load object from {@link InputStream} using this template.
*
* @param is {@link InputStream} with object data in yaml.
*
* @return object created from yaml data and template.
*/
default T load(final InputStream is)
{
return this.load(is, this.getDefaultClassLoader());
}
/**
* Load object from {@link File} using this template.
*
* @param file {@link File} with object data in yaml.
* @param charset encoding of file.
* @param classLoader other class loader to use when creating objects.
*
* @return object created from yaml data and template.
*
* @throws IOException if file can't be found or it can't be opened.
*/
default T load(final File file, final Charset charset, final ClassLoader classLoader) throws IOException
{
try (final InputStreamReader in = new InputStreamReader(new FileInputStream(file), charset))
{
return this.load(in, classLoader);
}
}
/**
* Load object from {@link File} using this template.
*
* @param file {@link File} with object data in yaml.
* @param charset encoding of file.
*
* @return object created from yaml data and template.
*
* @throws IOException if file can't be found or it can't be opened.
*/
default T load(final File file, final Charset charset) throws IOException
{
return this.load(file, charset, this.getDefaultClassLoader());
}
/**
* Load object from {@link File} using this template. (UTF-8)
*
* @param file {@link File} with object data in yaml.
*
* @return object created from yaml data and template.
*
* @throws IOException if file can't be found or it can't be opened.
* @see #load(File, Charset)
*/
default T load(final File file) throws IOException
{
return this.load(file, StandardCharsets.UTF_8);
}
/**
* dump object to selected {@link Appendable}.
*
* @param writer {@link Appendable} to use, all data will be added here.
* @param object object to dump. (will be represented as YAML string in writer)
* @param level current indent level.
* @param writeComments if comments should be added to node.
* @param elementPlace element place, used in many templates to check current style and choose valid format.
* @param forceDefaultValues if true, all values will be set to default ones.
* @param <E> exact type of appendable, used to return this same type as given.
*
* @return this same appendalbe as given, after adding string yaml representation of given object.
*
* @throws IOException from {@link Appendable}
*/
<E extends Appendable> E dump(E writer, T object, int level, boolean writeComments, ElementPlace elementPlace, boolean forceDefaultValues) throws IOException;
/**
* dump object to selected {@link Appendable}.
*
* @param writer {@link Appendable} to use, all data will be added here.
* @param object object to dump. (will be represented as YAML string in writer)
* @param level current indent level.
* @param writeComments if comments should be added to node.
* @param elementPlace element place, used in many templates to check current style and choose valid format.
* @param <E> exact type of appendable, used to return this same type as given.
*
* @return this same appendalbe as given, after adding string yaml representation of given object.
*
* @throws IOException from {@link Appendable}
*/
default <E extends Appendable> E dump(final E writer, final T object, final int level, final boolean writeComments, final ElementPlace elementPlace) throws IOException
{
return this.dump(writer, object, level, writeComments, elementPlace, false);
}
/**
* dump object to selected {@link Appendable}.
*
* @param writer {@link Appendable} to use, all data will be added here.
* @param object object to dump. (will be represented as YAML string in writer)
* @param level current indent level.
* @param writeComments if comments should be added to node.
* @param <E> exact type of appendable, used to return this same type as given.
*
* @return this same appendalbe as given, after adding string yaml representation of given object.
*
* @throws IOException from {@link Appendable}\
*/
default <E extends Appendable> E dump(final E writer, final T object, final int level, final boolean writeComments) throws IOException
{
return this.dump(writer, object, level, writeComments, ElementPlace.NORMAL);
}
/**
* dump object to selected {@link Appendable}.
*
* @param writer {@link Appendable} to use, all data will be added here.
* @param object object to dump. (will be represented as YAML string in writer)
* @param level current indent level.
* @param <E> exact type of appendable, used to return this same type as given.
*
* @return this same appendalbe as given, after adding string yaml representation of given object.
*
* @throws IOException from {@link Appendable}\
*/
default <E extends Appendable> E dump(final E writer, final T object, final int level) throws IOException
{
return this.dump(writer, object, level, true, ElementPlace.NORMAL);
}
/**
* dump object to selected {@link Appendable}.
*
* @param writer {@link Appendable} to use, all data will be added here.
* @param object object to dump. (will be represented as YAML string in writer)
* @param forceDefaultValues if true, all values will be set to default ones.
* @param <E> exact type of appendable, used to return this same type as given.
*
* @return this same appendalbe as given, after adding string yaml representation of given object.
*
* @throws IOException from {@link Appendable}\
*/
default <E extends Appendable> E dump(final E writer, final T object, final boolean forceDefaultValues) throws IOException
{
return this.dump(writer, object, 0, true, ElementPlace.NORMAL, forceDefaultValues);
}
/**
* dump object to selected {@link Appendable}.
*
* @param writer {@link Appendable} to use, all data will be added here.
* @param object object to dump. (will be represented as YAML string in writer)
* @param <E> exact type of appendable, used to return this same type as given.
*
* @return this same appendalbe as given, after adding string yaml representation of given object.
*
* @throws IOException from {@link Appendable}\
*/
default <E extends Appendable> E dump(final E writer, final T object) throws IOException
{
return this.dump(writer, object, 0, true, ElementPlace.NORMAL, false);
}
/**
* dump object to selected {@link File} in YAML text format.
*
* @param file file to use, it will be created if needed.
* @param object object to dump. (will be represented as YAML string in file)
* @param charset encoding of file. * @param forceDefaultValues if true, all values will be set to default ones.
* @param forceDefaultValues if true, all values will be set to default ones.
*
* @throws IOException if file can't be created/edited.
*/
void dump(File file, T object, Charset charset, boolean forceDefaultValues) throws IOException;
/**
* dump object to selected {@link File} in YAML text format.
*
* @param file file to use, it will be created if needed.
* @param object object to dump. (will be represented as YAML string in file)
* @param charset encoding of file. * @param forceDefaultValues if true, all values will be set to default ones.
*
* @throws IOException if file can't be created/edited.
*/
default void dump(final File file, final T object, final Charset charset) throws IOException
{
this.dump(file, object, charset, false);
}
/**
* dump object to selected {@link File} in YAML text format.
*
* @param file file to use, it will be created if needed.
* @param object object to dump. (will be represented as YAML string in file)
* @param forceDefaultValues if true, all values will be set to default ones.
*
* @throws IOException if file can't be created/edited.
*/
default void dump(final File file, final T object, final boolean forceDefaultValues) throws IOException
{
this.dump(file, object, StandardCharsets.UTF_8, forceDefaultValues);
}
/**
* dump object to selected {@link File} in YAML text format.
*
* @param file file to use, it will be created if needed.
* @param object object to dump. (will be represented as YAML string in file)
*
* @throws IOException if file can't be created/edited.
*/
default void dump(final File file, final T object) throws IOException
{
this.dump(file, object, StandardCharsets.UTF_8, false);
}
/**
* dump object to YAML string.
*
* @param object object to dump. (will be represented as YAML string in writer)
* @param forceDefaultValues if true, all values will be set to default ones.
*
* @return string yaml representation of given object.
*/
String dumpAsString(T object, boolean forceDefaultValues);
/**
* dump object to YAML string.
*
* @param object object to dump. (will be represented as YAML string in writer)
*
* @return string yaml representation of given object.
*/
default String dumpAsString(final T object)
{
return this.dumpAsString(object, false);
}
/**
* Fill object with default values
*
* @param obj object to fill.
*
* @return this same - given - object.
*/
T fillDefaults(T obj);
/**
* Append indent (2 spaces per level)
*
* @param writer {@link Appendable} to use, all data will be added here.
* @param level current indent level.
*
* @throws IOException from {@link Appendable}
*/
static void spaces(final Appendable writer, final int level) throws IOException
{
if (level <= 0)
{
return;
}
for (int i = 0; i < level; i++)
{
writer.append(" ");
}
}
/**
* Append comment to given {@link Appendable}
*
* @param writer {@link Appendable} to use, all data will be added here.
* @param string comment string to add, may be multi-line.
* @param level current indent level.
* @param addSpace if true, additional space will be added before first # and no indent for first line.
*
* @throws IOException from {@link Appendable}
*/
static void appendComment(final Appendable writer, final String string, final int level, final boolean addSpace) throws IOException
{
if (string != null)
{
final String[] split = StringUtils.split(string, '\n');
boolean first = true;
for (int i = 0, splitLength = split.length; i < splitLength; i++)
{
final String str = split[i];
if (! first || ! addSpace)
{
spaces(writer, level);
writer.append("# ");
}
else
{
first = false;
writer.append(" # ");
}
writer.append(str);
if ((i + 1) < splitLength)
{
writer.append('\n');
}
}
}
}
}
| [
"bartlomiejkmazur@gmail.com"
] | bartlomiejkmazur@gmail.com |
305eb0b745898852ac74eb14c11ca654e533539d | 4dc61209c34c280c91e9f533f81b1c61d0aa4914 | /SmartPhone.java | f7d8966e652c9d0774d7d669f8fb24071cb95cba | [] | no_license | BBK-PiJ-2015-56/Phones | 5b435868ffdb62b02db72f6e6b500b433f9ad7a6 | 2ae10f68acb36e585f5c8141d62d74e7151b9948 | refs/heads/master | 2016-09-01T08:43:47.091443 | 2015-10-31T18:29:05 | 2015-10-31T18:29:05 | 45,211,299 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 592 | java | public class SmartPhone extends MobilePhone{
//constructor calls the constructor of MobilePhone, which in turn calls the
// constructor of OldPhone, with the arg String brand
public SmartPhone(String brand){
super(brand);
}
public void browseWeb(String url){
System.out.println("Searching for: " + url);
}
public int findPosition(){
return 012345;
}
public void call(String number){
if (number.substring(0,2).equals("00")) {
System.out.println ("Calling <" + number + "> over the internet...");
storeNumber(number);
}
else {
super.call(number);
}
}
} | [
"pdomok01@CSPC089.dcs.bbk.ac.uk"
] | pdomok01@CSPC089.dcs.bbk.ac.uk |
22040a7f20a2eacd76f7adcd6ceae552e4e34c3b | 6a75b37068ee2886eeec8cdfc079bcd5c9238c25 | /tt-spring-mvcToboot/src/main/java/com/hy/tt/Mylifecycle.java | 93ae881c99f31191bba0bc34c54ddd4180597dc5 | [] | no_license | CristianoTian/tt-springboot-base | 3ce971766b8d40d3369f67950352665c68ad6fb2 | 94c5ae7e9dd0aafac2c5524b3acf8a8cc544c028 | refs/heads/master | 2022-12-24T18:40:42.522096 | 2020-09-24T08:43:20 | 2020-09-24T08:43:20 | 186,396,303 | 1 | 0 | null | 2022-12-15T23:32:10 | 2019-05-13T10:16:48 | Java | UTF-8 | Java | false | false | 620 | java | package com.hy.tt;
import org.springframework.context.SmartLifecycle;
import org.springframework.stereotype.Component;
/**
* @auther thy
* @date 2019/10/31
*/
@Component
public class Mylifecycle implements SmartLifecycle {
private volatile boolean running = false;
public Mylifecycle() {
System.out.println("构造方法!!!");
}
public void start() {
System.out.println("lifycycle start");
running = true;
}
public void stop() {
System.out.println("lifycycle stop");
running = false;
}
public boolean isRunning() {
return running;
}
public int getPhase() {
return DEFAULT_PHASE;
}
}
| [
"912992145@qq.com"
] | 912992145@qq.com |
a28b8d685a127625bff079980a480decf42b7a1d | c76b1c837fbd6e158def62c0ec9b3acb3566a790 | /Android/java/doraemonkit/src/main/java/com/didichuxing/doraemonkit/kit/health/HealthFragmentChild0.java | d7df79a314d104c4ea45fb79874a78e38bd6c344 | [
"Apache-2.0"
] | permissive | yanghui1216/DoraemonKit | c786d0e1c7c39f03ff29a736697fae00c0e1798d | c461eaff8b9ed0d2e867d62d051acd9ce590bb8b | refs/heads/master | 2023-05-25T12:17:50.989860 | 2021-05-31T08:48:42 | 2021-05-31T08:48:42 | 368,030,063 | 1 | 0 | Apache-2.0 | 2021-05-30T04:08:19 | 2021-05-17T02:14:34 | Java | UTF-8 | Java | false | false | 7,023 | java | package com.didichuxing.doraemonkit.kit.health;
import android.content.DialogInterface;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AlertDialog;
import com.didichuxing.doraemonkit.util.AppUtils;
import com.didichuxing.doraemonkit.util.ToastUtils;
import com.didichuxing.doraemonkit.R;
import com.didichuxing.doraemonkit.config.GlobalConfig;
import com.didichuxing.doraemonkit.constant.DoKitConstant;
import com.didichuxing.doraemonkit.kit.core.BaseFragment;
import com.didichuxing.doraemonkit.util.DoKitCommUtil;
import com.didichuxing.doraemonkit.util.LogHelper;
import com.didichuxing.doraemonkit.widget.dialog.DialogListener;
import com.didichuxing.doraemonkit.widget.dialog.DialogProvider;
import com.didichuxing.doraemonkit.widget.dialog.UniversalDialogFragment;
/**
* 健康体检fragment
*/
public class HealthFragmentChild0 extends BaseFragment {
TextView mTitle;
ImageView mController;
UserInfoDialogProvider mUserInfoDialogProvider;
@Override
protected int onRequestLayout() {
return R.layout.dk_fragment_health_child0;
}
@Override
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
if (getActivity() == null) {
return;
}
mTitle = findViewById(R.id.tv_title);
mController = findViewById(R.id.iv_btn);
if (DoKitConstant.APP_HEALTH_RUNNING) {
mTitle.setVisibility(View.VISIBLE);
mController.setImageResource(R.mipmap.dk_health_stop);
} else {
mTitle.setVisibility(View.INVISIBLE);
mController.setImageResource(R.mipmap.dk_health_start);
}
mUserInfoDialogProvider = new UserInfoDialogProvider(null, new DialogListener() {
@Override
public boolean onPositive() {
if (mUserInfoDialogProvider != null) {
//上传健康体检数据
boolean isCheck = mUserInfoDialogProvider.uploadAppHealthInfo(new UploadAppHealthCallback() {
@Override
public void onSuccess(String response) {
LogHelper.i(TAG, "上传成功===>" + response);
ToastUtils.showShort(DoKitCommUtil.getString(R.string.dk_health_upload_successed));
//重置状态
GlobalConfig.setAppHealth(false);
DoKitConstant.APP_HEALTH_RUNNING = false;
mTitle.setVisibility(View.INVISIBLE);
mController.setImageResource(R.mipmap.dk_health_start);
//关闭健康体检监控
AppHealthInfoUtil.getInstance().stop();
AppHealthInfoUtil.getInstance().release();
}
@Override
public void onError(String response) {
LogHelper.e(TAG, "error response===>" + response);
ToastUtils.showShort(DoKitCommUtil.getString(R.string.dk_health_upload_failed));
}
});
return isCheck;
}
return true;
}
@Override
public boolean onNegative() {
return true;
}
@Override
public void onCancel() {
ToastUtils.showShort(DoKitCommUtil.getString(R.string.dk_health_upload_droped));
//重置状态
GlobalConfig.setAppHealth(false);
DoKitConstant.APP_HEALTH_RUNNING = false;
mTitle.setVisibility(View.INVISIBLE);
mController.setImageResource(R.mipmap.dk_health_start);
//关闭健康体检监控
AppHealthInfoUtil.getInstance().stop();
AppHealthInfoUtil.getInstance().release();
}
});
mController.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if (getActivity() == null) {
return;
}
//当前处于健康体检状态
if (DoKitConstant.APP_HEALTH_RUNNING) {
if (mUserInfoDialogProvider != null) {
showDialog(mUserInfoDialogProvider);
}
} else {
new AlertDialog.Builder(getActivity())
.setTitle(DoKitCommUtil.getString(R.string.dk_health_upload_title))
.setMessage(DoKitCommUtil.getString(R.string.dk_health_upload_message))
.setCancelable(false)
.setPositiveButton("ok", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
dialog.dismiss();
if (mController != null) {
ToastUtils.showShort(DoKitCommUtil.getString(R.string.dk_health_funcation_start));
GlobalConfig.setAppHealth(true);
DoKitConstant.APP_HEALTH_RUNNING = true;
//重启app
mController.postDelayed(new Runnable() {
@Override
public void run() {
AppUtils.relaunchApp();
android.os.Process.killProcess(android.os.Process.myPid());
System.exit(1);
}
}, 2000);
}
}
})
.setNegativeButton("cancel", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
dialog.dismiss();
}
}).show();
}
}
});
}
@Override
public void showDialog(DialogProvider provider) {
UniversalDialogFragment dialog = new UniversalDialogFragment();
provider.setHost(dialog);
dialog.setProvider(provider);
provider.show(getChildFragmentManager());
}
}
| [
"jackjintai@didiglobal.com"
] | jackjintai@didiglobal.com |
74b4e8759ce519571b23b6f058cedf30c6664f4c | 4da9097315831c8639a8491e881ec97fdf74c603 | /src/StockIT-v1-release_source_from_JADX/sources/com/google/android/gms/internal/vision/zzaa.java | f61aefca24eaace1ac7b2bfe1ae39d071be65fdd | [
"Apache-2.0"
] | permissive | atul-vyshnav/2021_IBM_Code_Challenge_StockIT | 5c3c11af285cf6f032b7c207e457f4c9a5b0c7e1 | 25c26a4cc59a3f3e575f617b59acc202ee6ee48a | refs/heads/main | 2023-08-11T06:17:05.659651 | 2021-10-01T08:48:06 | 2021-10-01T08:48:06 | 410,595,708 | 1 | 1 | null | null | null | null | UTF-8 | Java | false | false | 365 | java | package com.google.android.gms.internal.vision;
import android.os.IInterface;
import android.os.RemoteException;
import com.google.android.gms.dynamic.IObjectWrapper;
/* compiled from: com.google.android.gms:play-services-vision@@19.0.0 */
public interface zzaa extends IInterface {
zzy zza(IObjectWrapper iObjectWrapper, zzah zzah) throws RemoteException;
}
| [
"57108396+atul-vyshnav@users.noreply.github.com"
] | 57108396+atul-vyshnav@users.noreply.github.com |
f6f49e281354abd90f19458f3ccb0b2cc709818d | bd55bf7217c9f5b03ebfe80c317d552ed295bc40 | /core/src/main/java/org/wso2/msf4j/config/TransportsFileConfiguration.java | 4bf770fa2481b2e654e146348b730d2e638d8e1c | [
"Apache-2.0"
] | permissive | senthuran16/msf4j | 6111f0af98db30bbfec5148b1dfd466b5192ef2d | 6fc95ce0526d7694bb056d129c46f1b5acf43ade | refs/heads/master | 2022-11-02T09:03:22.802934 | 2019-08-13T03:36:53 | 2019-08-13T03:36:53 | 202,126,364 | 1 | 0 | Apache-2.0 | 2019-08-13T11:06:29 | 2019-08-13T11:06:29 | null | UTF-8 | Java | false | false | 3,034 | java | /*
* Copyright (c) 2019 WSO2 Inc. (http://wso2.com) All Rights Reserved.
*
* WSO2 Inc. 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.wso2.msf4j.config;
import org.wso2.carbon.config.annotation.Configuration;
import org.wso2.msf4j.internal.MSF4JConstants;
import org.wso2.transport.http.netty.contract.config.SenderConfiguration;
import org.wso2.transport.http.netty.contract.config.TransportProperty;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
/**
* YAML File representation of a transport configuration.
*/
@Configuration(namespace = MSF4JConstants.WSO2_TRANSPORT_HTTP_CONFIG_NAMESPACE,
description = "HTTP transport configuration")
public class TransportsFileConfiguration {
private Set<TransportProperty> transportProperties = new HashSet<>();
private Set<ListenerFileConfiguration> listenerConfigurations;
private Set<SenderConfiguration> senderConfigurations;
public TransportsFileConfiguration() {
ListenerFileConfiguration listenerConfiguration = new ListenerFileConfiguration();
listenerConfigurations = new HashSet<>();
listenerConfigurations.add(listenerConfiguration);
SenderConfiguration senderConfiguration = new SenderConfiguration();
senderConfigurations = new HashSet<>();
senderConfigurations.add(senderConfiguration);
}
public Set<ListenerFileConfiguration> getListenerConfigurations() {
if (listenerConfigurations == null) {
return Collections.emptySet();
}
return Collections.unmodifiableSet(listenerConfigurations);
}
public Set<SenderConfiguration> getSenderConfigurations() {
if (senderConfigurations == null) {
return Collections.emptySet();
}
return Collections.unmodifiableSet(senderConfigurations);
}
public void setListenerConfigurations(Set<ListenerFileConfiguration> listenerConfigurations) {
this.listenerConfigurations = Collections.unmodifiableSet(listenerConfigurations);
}
public void setSenderConfigurations(Set<SenderConfiguration> senderConfigurations) {
this.senderConfigurations = Collections.unmodifiableSet(senderConfigurations);
}
public Set<TransportProperty> getTransportProperties() {
return transportProperties;
}
public void setTransportProperties(Set<TransportProperty> transportProperties) {
this.transportProperties = transportProperties;
}
}
| [
"niveathika@wso2.com"
] | niveathika@wso2.com |
bb6d9fe0f5489088e33e2ffea99b659ee6139a7a | 41b4429334b5c3662d460484812309eb7f65366b | /src/main/java/com/payspec/service/UserService.java | 94929144bf34228b7c121696ecaf9c6b9cbef152 | [] | no_license | bolarge/payspec | 1ad9d391c478d622295029f6e4732348f67b65d3 | fcb3f0e0ee75a4277a7ff5895f33e65e9a30542d | refs/heads/master | 2023-05-24T17:09:56.664088 | 2021-04-11T01:45:52 | 2021-04-11T01:45:52 | 159,040,993 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 489 | java | package com.payspec.service;
import com.payspec.domain.model.user.User;
import org.springframework.dao.DataAccessException;
import java.util.Collection;
public interface UserService {
User findUserById(Long id) throws DataAccessException;
Collection<User> findAllUser() throws DataAccessException;
//Page<User> findAll(Pageable pageable) throws DataAccessException;
User saveUser(User user) throws DataAccessException;
//void deleteUser(Long userId) throws DataAccessException;
}
| [
"bolaji.salau@gmail.com"
] | bolaji.salau@gmail.com |
e64b6ba33fd634bcc4f8c13253c1c269e19e19d4 | be73270af6be0a811bca4f1710dc6a038e4a8fd2 | /crash-reproduction-moho/results/XWIKI-13372-9-15-MOEAD-WeightedSum:TestLen:CallDiversity/org/xwiki/extension/xar/internal/handler/packager/Packager_ESTest_scaffolding.java | 0982542b489a040f5fe14a20ea6cbf5a08750d60 | [] | no_license | STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application | cf118b23ecb87a8bf59643e42f7556b521d1f754 | 3bb39683f9c343b8ec94890a00b8f260d158dfe3 | refs/heads/master | 2022-07-29T14:44:00.774547 | 2020-08-10T15:14:49 | 2020-08-10T15:14:49 | 285,804,495 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 462 | java | /**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Wed Apr 08 06:47:29 UTC 2020
*/
package org.xwiki.extension.xar.internal.handler.packager;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
@EvoSuiteClassExclude
public class Packager_ESTest_scaffolding {
// Empty scaffolding for empty test suite
}
| [
"pouria.derakhshanfar@gmail.com"
] | pouria.derakhshanfar@gmail.com |
cbb386b70d812935b059bba2c02d0025ad9de7cc | df0f823ca985fec087782f437f23dba62c60d054 | /src/main/java/io/henriquels25/fantasysport/player/exception/TeamServiceUnavailableException.java | 6c9880037540e8814bfbc562b7654d576810b380 | [
"MIT"
] | permissive | henriquels25/fantasy-sport-api | 72e8e283f06f931b87100ad9195c63d293f61cb3 | 758bddd3bdf03a72e11f73cd5c63a1ad32f3917e | refs/heads/main | 2023-01-22T15:20:56.486822 | 2020-11-28T15:35:01 | 2020-11-28T15:35:01 | 310,690,708 | 21 | 1 | MIT | 2020-11-28T15:35:02 | 2020-11-06T19:42:54 | Java | UTF-8 | Java | false | false | 286 | java | package io.henriquels25.fantasysport.player.exception;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus(HttpStatus.SERVICE_UNAVAILABLE)
public class TeamServiceUnavailableException extends RuntimeException {
}
| [
"hschmidt@avenuecode.com"
] | hschmidt@avenuecode.com |
0cf3fa22ac86aa51ef81d85cf51c9f0da1b72664 | 414fbca863560e175ef4264d201ee6645b186fe0 | /src/main/java/org/tschiedel/blank/controle/IndexController.java | 8079b4566cd2b666b391a1619b5b31fa933bd8f4 | [] | no_license | danielsousat/web_blank_project | 61458ad65a0c6af05954ed6086d9f6dd5720fe5a | e7afebe35029f67dd72928c9399a72e7dff56ebe | refs/heads/master | 2016-09-09T21:49:07.050549 | 2014-06-05T16:09:29 | 2014-06-05T16:09:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 641 | java | /**
*
*/
package org.tschiedel.blank.controle;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.tschiedel.blank.util.Paginas;
/**
* Descricao:
*
* <br><br>Data: 28/04/2014
* @author Daniel Tschiedel
* <br>daniel.sousa@valec.gov.br
*/
@Controller
@Scope("singleton")
public class IndexController {
@RequestMapping(value = Paginas.INDEX_CAMINHO, method = RequestMethod.GET)
public String index() {
return Paginas.INDEX_JSP;
}
}
| [
"danielsousat@gmail.com"
] | danielsousat@gmail.com |
7bd6f98362ca853f61c3172182c341cb2067916f | 37a33ab95d715b6e131b8cce28624de7e99828f0 | /src/radlab/rain/workload/mailapp/MailAppGenerator.java | bedb48bd3104d2ec7b90a869c064e36158f2a8b8 | [] | no_license | JohannesSteck/rain_Mailservice_Extension | a4e2b5bc5e163149ad28c14c0474bf55bf488c47 | 7967f74fc53ea77de5e34834f2ba7686dc542655 | refs/heads/master | 2016-09-06T12:19:51.248262 | 2013-06-03T17:45:40 | 2013-06-03T17:45:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 14,962 | java | /*
* Copyright (c) 2010, Regents of the University of California
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* * 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.
* * Neither the name of the University of California, Berkeley
* nor the names of its contributors may be used to endorse or promote
* products derived from this software without specific prior written
* permission.
*
* 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 OWNER 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 radlab.rain.workload.mailapp;
import java.util.Random;
import org.json.JSONException;
import org.json.JSONObject;
import radlab.rain.Generator;
import radlab.rain.LoadProfile;
import radlab.rain.Operation;
import radlab.rain.ScenarioTrack;
import radlab.rain.util.HttpTransport;
import radlab.rain.util.KBLogNormalIntegerGenerator;
import radlab.rain.util.LogNormalIntegerGenerator;
import radlab.rain.util.storage.KeyGenerator;
import radlab.rain.util.storage.UniformKeyGenerator;
import radlab.rain.util.storage.YCSBzipfianGenerator;
import radlab.rain.util.storage.ZipfKeyGenerator;
/**
* The SampleGenerator class generates operations for a single user thread
* by producing the next operation to execute given the last operation. The
* next operation is decided through the use of a load mix matrix.
*/
public class MailAppGenerator extends Generator
{
// Operation indices used in the mix matrix.
public static final int SendMailOPERATION = 0;
public static final int POPReceiveMailOPERATION = 1;
//public static final int ReceiveMailLeaveOnServerOPERATION = 2;
public static final int POPDeleteMailOPERATION = 2;
public static final int POPEmptyOPERATION = 3;
private java.util.Random _randomNumberGenerator;
private HttpTransport _http;
private PopAction pop;
private SmtpAction smtp;
private String MAILSIZEDISTRIBUTION_PARAM = "mailSizeDistribution";
private String mailSizeDistribution="uniform";
private String MAILSIZEMIN_PARAM = "minMailSize";
private int minMailSize=64;
private String MAILSIZEMAX_PARAM = "maxMailSize";
private int maxMailSize=6400;
private String MAILSIZEZIPF_A_PARAM = "zipfMailSize_a";
private double mailSizeZipf_a=1.001;
private String MAILSIZEZIPF_R_PARAM = "zipfMailSize_r";
private double mailSizeZipf_r=3.456;
private String MAILSIZELOGNROMAL_MEAN_PARAM="logNormalMailSize_mean";
private double mailSizeLogNormal_mean=0.87;
private String MAILSIZELOGNROMAL_SIGMA_PARAM="logNormalMailSize_sigma";
private double mailSizeLogNormal_sigma=0.739;
private KeyGenerator mailSizeGenerator;
private String MAILCOUNTDISTRIBUTION_PARAM = "mailCountDistribution";
private String mailCountDistribution="uniform";
private String MAILCOUNTMIN_PARAM = "minMailCount";
private int minMailCount=1;
private String MAILCOUNTMAX_PARAM = "maxMailCount";
private int maxMailCount=100;
private String MAILCOUNTZIPF_A_PARAM = "zipfMailCount_a";
private double mailCountZipf_a=1.001;
private String MAILCOUNTZIPF_R_PARAM = "zipfMailCount_r";
private double mailCountZipf_r=3.456;
private String MAILCOUNTLOGNROMAL_MEAN_PARAM="logNormalMailCount_mean";
private double mailCountLogNormal_mean=0.87;
private String MAILCOUNTLOGNROMAL_SIGMA_PARAM="logNormalMailCount_sigma";
private double mailCountLogNormal_sigma=0.739;
private KeyGenerator mailCountGenerator;
private String USERCHOOSER_PARAM = "userChooserDistribution";
private String userChooserDistribution="uniform";
private String MINUSERKEY_PARAM = "minUserKey";
private int minUserKey=1;
private String MAXUSERKEY_PARAM = "maxUserKey";
private int maxUserKey=100;
private String USERZIPF_A_PARAM = "zipfUser_a";
private double zipfUser_a=1.001;
private String USERZIPF_R_PARAM = "zipfUser_r";
private double zipfUser_r=3.456;
private KeyGenerator userKeyGenerator;
private String RETRIEVECOUNTDISTRIBUTION_PARAM="retrieveCountDistribution";
private String retrieveCountDistribution="uniform";
private String RETRIEVEZIPF_A_PARAM = "zipfRetrieve_a";
private double zipfRetrieve_a=1.001;
private String RETRIEVEZIPF_R_PARAM = "zipfRetrieve_r";
private double zipfRetrieve_r=3.456;
private KeyGenerator retrieveCountGenerator;
private String DELETECOUNTDISTRIBUTION_PARAM="deleteCountDistribution";
private String deleteCountDistribution="ycsbZipfian";
private String DELETEZIPF_A_PARAM = "zipfDelete_a";
private double zipfDelete_a=1.001;
private String DELETEZIPF_R_PARAM = "zipfDelete_r";
private double zipfDelete_r=3.456;
private KeyGenerator deleteCountGenerator;
private String ENDPOINT_PARAM = "endpoint";
public String endpointAddress="localhost";
/**
* Initialize a <code>SampleGenerator</code> given a <code>ScenarioTrack</code>.
*
* @param track The track configuration with which to run this generator.
*/
public MailAppGenerator( ScenarioTrack track )
{
super( track );
// TODO: Fill me in.
}
/**
* Initialize this generator.
*/
public void initialize()
{
this._randomNumberGenerator = new Random();
this._http = new HttpTransport();
this.pop=new PopAction(this);
this.smtp=new SmtpAction();
//mailSizeGenerator=new UniformKeyGenerator(minMailSize,maxMailSize,_randomNumberGenerator.nextLong());
//mailCountGenerator=new UniformKeyGenerator(minMailCount,maxMailCount,_randomNumberGenerator.nextLong());
//userKeyGenerator=new UniformKeyGenerator(minUserKey,maxUserKey,_randomNumberGenerator.nextLong());
}
@Override
public void configure( JSONObject config ) throws JSONException
{
try{
this._randomNumberGenerator = new java.util.Random();
mailSizeDistribution=config.getString(MAILSIZEDISTRIBUTION_PARAM);
minMailSize=config.getInt(MAILSIZEMIN_PARAM);
maxMailSize=config.getInt(MAILSIZEMAX_PARAM);
System.out.println(mailSizeDistribution+" "+minMailSize+" "+maxMailSize);
if(mailSizeDistribution.equals("lognormal")){
mailSizeLogNormal_mean=config.getDouble(MAILSIZELOGNROMAL_MEAN_PARAM);
mailSizeLogNormal_sigma=config.getDouble(MAILSIZELOGNROMAL_SIGMA_PARAM);
//Parameters in KB, generated values in Bytes
mailSizeGenerator=new KBLogNormalIntegerGenerator(Math.round(minMailSize/1024), Math.round(maxMailSize/1024), mailSizeLogNormal_mean, mailSizeLogNormal_sigma);
}else if(mailSizeDistribution.equals("zipfian")){
mailSizeZipf_a=config.getDouble(MAILSIZEZIPF_A_PARAM);
mailSizeZipf_r=config.getDouble(MAILSIZEZIPF_R_PARAM);
mailSizeGenerator=new ZipfKeyGenerator(mailSizeZipf_a,mailSizeZipf_r,minMailSize,maxMailSize,_randomNumberGenerator.nextLong());
}else {
mailSizeGenerator=
new UniformKeyGenerator(
minMailSize,
maxMailSize,
_randomNumberGenerator.nextLong()
);
}
mailCountDistribution=config.getString(MAILCOUNTDISTRIBUTION_PARAM);
minMailCount=config.getInt(MAILCOUNTMIN_PARAM);
maxMailCount=config.getInt(MAILCOUNTMAX_PARAM);
if(mailCountDistribution.equals("lognormal")){
mailCountLogNormal_mean=config.getDouble(MAILCOUNTLOGNROMAL_MEAN_PARAM);
mailCountLogNormal_sigma=config.getDouble(MAILCOUNTLOGNROMAL_SIGMA_PARAM);
mailCountGenerator=new LogNormalIntegerGenerator(minMailCount,maxMailCount,mailCountLogNormal_mean,mailCountLogNormal_sigma);
}else if(mailCountDistribution.equals("zipfian")){
mailSizeZipf_a=config.getDouble(MAILCOUNTZIPF_A_PARAM);
mailSizeZipf_r=config.getDouble(MAILCOUNTZIPF_R_PARAM);
mailCountGenerator=new ZipfKeyGenerator(mailCountZipf_a,mailCountZipf_r,minMailCount,maxMailCount,_randomNumberGenerator.nextLong());
}else {
mailCountGenerator=new UniformKeyGenerator(minMailCount,maxMailCount,_randomNumberGenerator.nextLong());
}
userChooserDistribution=config.getString(USERCHOOSER_PARAM);
minUserKey=config.getInt(MINUSERKEY_PARAM);
maxUserKey=config.getInt(MAXUSERKEY_PARAM);
System.out.println(userChooserDistribution+" "+minUserKey+" "+maxUserKey);
if(userChooserDistribution.equals("zipfian")){
zipfUser_a=config.getDouble(USERZIPF_A_PARAM);
zipfUser_r=config.getDouble(USERZIPF_R_PARAM);
userKeyGenerator=new ZipfKeyGenerator(zipfUser_a,zipfUser_r,minUserKey,maxUserKey,_randomNumberGenerator.nextLong());
}else {
userKeyGenerator=new UniformKeyGenerator(minUserKey,maxUserKey,_randomNumberGenerator.nextLong());
}
deleteCountDistribution=config.getString(DELETECOUNTDISTRIBUTION_PARAM);
retrieveCountDistribution=config.getString(RETRIEVECOUNTDISTRIBUTION_PARAM);
if(deleteCountDistribution.equals("ycsbZipfian")){
//use the ported Zipfian Generator from YCSB
}else if(deleteCountDistribution.equals("zipfian")){
zipfDelete_a=config.getDouble(DELETEZIPF_A_PARAM);
zipfDelete_r=config.getDouble(DELETEZIPF_R_PARAM);
}
if(retrieveCountDistribution.equals("ycsbZipfian")){
}else if(retrieveCountDistribution.equals("zipfian")){
zipfRetrieve_a=config.getDouble(RETRIEVEZIPF_A_PARAM);
zipfRetrieve_r=config.getDouble(RETRIEVEZIPF_R_PARAM);
}
endpointAddress=config.getString(ENDPOINT_PARAM);
}catch (Exception e) {
System.out.println("-------------------------------");
e.printStackTrace();
}
}
/**
* Returns the next <code>Operation</code> given the <code>lastOperation</code>
* according to the current mix matrix.
*
* @param lastOperation The last <code>Operation</code> that was executed.
*/
public Operation nextRequest( int lastOperation )
{
LoadProfile currentLoad = this.getTrack().getCurrentLoadProfile();
int nextOperation = -1;
if( lastOperation == -1 )
{
nextOperation = 0;
}
else
{
// Get the selection matrix
double[][] selectionMix = this.getTrack().getMixMatrix(currentLoad.getMixName()).getSelectionMix();
double rand = this._randomNumberGenerator.nextDouble();
int j;
for ( j = 0; j < selectionMix.length; j++ )
{
if ( rand <= selectionMix[lastOperation][j] )
{
break;
}
}
nextOperation = j;
}
return getOperation( nextOperation );
}
/**
* Returns the current think time. The think time is duration between
* receiving the response of an operation and the execution of its
* succeeding operation during synchronous execution (i.e. closed loop).
*/
public long getThinkTime()
{
return _thinkTime;
}
/**
* Returns the current cycle time. The cycle time is duration between
* the execution of an operation and the execution of its succeeding
* operation during asynchronous execution (i.e. open loop).
*/
public long getCycleTime()
{
return _cycleTime;
}
/**
* Disposes of unnecessary objects at the conclusion of a benchmark run.
*/
public void dispose()
{
// TODO: Fill me in.
}
/**
* Returns the pre-existing HTTP transport.
*
* @return An HTTP transport.
*/
public HttpTransport getHttpTransport()
{
return this._http;
}
/**
* Creates a newly instantiated, prepared operation.
*
* @param opIndex The type of operation to instantiate.
* @return A prepared operation.
*/
public Operation getOperation( int opIndex )
{
switch( opIndex )
{
case SendMailOPERATION: return this.createSendMailOperation();
case POPReceiveMailOPERATION: return this.createReceiveMailOperation();
case POPDeleteMailOPERATION: return this.createPOPDeleteMailOperation();
case POPEmptyOPERATION: return this.createPOPEmptyMailOperation();
//case ReceiveMailLeaveOnServerOPERATION: return this.createReceiveMailLeaveOnServerOperation();
default: return null;
}
}
public SendMailOperation createSendMailOperation()
{
SendMailOperation op = new SendMailOperation( this.getTrack().getInteractive(), this.getScoreboard(), this );
op.prepare( this );
return op;
}
public POPReceiveMailOperation createReceiveMailOperation()
{
POPReceiveMailOperation op = new POPReceiveMailOperation( this.getTrack().getInteractive(), this.getScoreboard(), this );
op.prepare( this );
return op;
}
public POPDeleteMailOperation createPOPDeleteMailOperation()
{
POPDeleteMailOperation op = new POPDeleteMailOperation( this.getTrack().getInteractive(), this.getScoreboard(), this );
op.prepare( this );
return op;
}
public POPEmptyOperation createPOPEmptyMailOperation()
{
POPEmptyOperation op = new POPEmptyOperation(this.getTrack().getInteractive(), this.getScoreboard(), this);
op.prepare( this );
return op;
}
public SmtpAction getSmtpAction(){
return this.smtp;
}
public PopAction getPopAction(){
return this.pop;
}
public Random getRandomGenerator(){
return this._randomNumberGenerator;
}
public String getEndpointAddress(){
return endpointAddress;
}
public KeyGenerator getUserKeyGenerator(){
return userKeyGenerator;
}
public KeyGenerator getMailSizeGenerator(){
return mailSizeGenerator;
}
public KeyGenerator getMailCountGenerator(){
return mailCountGenerator;
}
public KeyGenerator getRetrieveCountGenerator(int min, int max){
if(retrieveCountDistribution.equalsIgnoreCase("ycsbZipfian")){
return new YCSBzipfianGenerator(min, max);
}else if(retrieveCountDistribution.equalsIgnoreCase("zipfian")){
return new ZipfKeyGenerator(zipfRetrieve_a, zipfRetrieve_r, min, max, _randomNumberGenerator.nextLong());
}else{
return new UniformKeyGenerator(min, max, _randomNumberGenerator.nextLong());
}
}
public KeyGenerator getDeleteCountGenerator(int min, int max){
if(deleteCountDistribution.equalsIgnoreCase("ycsbZipfian")){
return new YCSBzipfianGenerator(min, max);
}else if(deleteCountDistribution.equalsIgnoreCase("zipfian")){
return new ZipfKeyGenerator(zipfDelete_a, zipfDelete_r, min, max, _randomNumberGenerator.nextLong());
}else{
return new UniformKeyGenerator(min, max, _randomNumberGenerator.nextLong());
}
}
}
| [
"jms@jsq-systems.de"
] | jms@jsq-systems.de |
4efad36dae3ecabd4f2aa8f68b1a190410257935 | a41953ce5cb8abd78f8df39c5e621f59dc3e5a1c | /src/com/stefanini/pokemon/enums/EnumTipoPokemon.java | 41bd223fe3adcaf8bb46fbecec52fa5f6552cc01 | [] | no_license | tiagocmds/hackatonFinal | 9511692b686a1417c2b3dc9e676063700b220fc8 | 0e57c5f47f627897e0b2330d476abc75363a0fbc | refs/heads/master | 2020-04-06T12:58:55.232322 | 2018-11-14T16:10:53 | 2018-11-14T16:10:53 | 157,478,417 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 914 | java | package com.stefanini.pokemon.enums;
import com.stefanini.pokemon.entities.TipoPokemon;
public enum EnumTipoPokemon {
RAIO(1, "Raio") {
@Override
public TipoPokemon getTipo() {
return new TipoPokemon(this.getCodigo(),
this.getDescricao());
}
},
FOGO(2, "Fogo") {
@Override
public TipoPokemon getTipo() {
return new TipoPokemon(this.getCodigo(),
this.getDescricao());
}
},
AGUA(3, "Água") {
@Override
public TipoPokemon getTipo() {
return new TipoPokemon(this.getCodigo(),
this.getDescricao());
}
};
private Integer codigo;
private String descricao;
private EnumTipoPokemon(Integer codigo, String descricao) {
this.codigo = codigo;
this.descricao = descricao;
}
public TipoPokemon getTipo() {
return null;
}
public Integer getCodigo() {
return codigo;
}
public String getDescricao() {
return descricao;
}
}
| [
"tiaqgo.cmds@gmail.con"
] | tiaqgo.cmds@gmail.con |
39d3a461e9ff61367c2f502a60b77960a6e6d21e | 661785a6d2fd9a231a0ef669c6db429ff265f548 | /src/controller/command/helper/LoginCheck.java | 8d2cecd00ca0ef558e1671c7390b21b90319c979 | [] | no_license | heeya90/ProjectShoppingMall | 5b007a1911c4dbfbcadfc400c3c07081e3c9c717 | 8d3bbfe3bac6753a01ce8a4eca6a840994d9caf3 | refs/heads/master | 2020-06-02T05:44:38.309838 | 2012-07-29T12:30:49 | 2012-07-29T12:30:49 | null | 0 | 0 | null | null | null | null | UHC | Java | false | false | 1,164 | java | package controller.command.helper;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import model.beans.HelperBean;
import model.service.HelperService;
import controller.command.CommandHandler;
public class LoginCheck implements CommandHandler{
public String process(HttpServletRequest request,
HttpServletResponse response) throws Throwable {
//1.명령어와 관련된 비즈니스 로직 처리
String id = request.getParameter("adminId");
String pw = request.getParameter("adminPwd");
System.out.println(id+" getParameter "+pw);
HelperBean hb = new HelperService().login();
String status=null;
System.out.println(hb.getId() + " " +hb.getPw());
if( id.equals(hb.getId()) && pw.equals(hb.getPw())){
status = "ok";
}else{
if(!id.equals(hb.getId())){
status = "id";
}
if(!pw.equals(hb.getPw())){
status = "pw";
}
}
//2.뷰 페이지에서 사용할 정보 저장
System.out.println(status);
request.setAttribute("status", status);
//3.뷰 페이지의 URI 리턴
return "/ajaxreturnpage/LoginCheck.jsp";
}
}
| [
"heeya90@gmail.com"
] | heeya90@gmail.com |
8039b3aae538d2d96a5389c3e48a3b74737bfe11 | 5491573a9312a10727b968c8a8dadd44b0ef0889 | /fblog-common/src/main/java/com/fblog/common/vo/ItemCatData.java | 6840ac5121ceacd5c8a444854e1e02dfa2bb9e9a | [] | no_license | miorbnli/fblog | abf0cf55ba82a9a31ef4b1ac87c4f40d57e46a6e | 3297f54ffe9d0bd51e7df440615b3357b5075e2a | refs/heads/master | 2021-04-27T11:48:37.484412 | 2018-02-11T00:51:51 | 2018-02-11T00:51:51 | 120,998,687 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 619 | java | package com.fblog.common.vo;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
public class ItemCatData {
//序列化成json数据时为 u
@JsonProperty("u")
private String url;
@JsonProperty("n")
private String name;
@JsonProperty("i")
private List<?> items;
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public List<?> getItems() {
return items;
}
public void setItems(List<?> items) {
this.items = items;
}
}
| [
"458482643@qq.com"
] | 458482643@qq.com |
1e78f9cc5be426d1aa2853d51fa698544e973e65 | 584f7876df70fc6355602a2ca366ea484b0821eb | /app/src/main/java/ru/dialog/tabletfragmentnavigation/slidr/model/SlidrInterface.java | 2c741b9266a26b0556a295e2208510523dcd3941 | [] | no_license | BxVictoria/sample-tablet-navigation | 9623f04d28ff753fb1d4eda83ad6b92e53467d0c | e776fb376c29c1a58f27a61d9b7eb59ad240be0b | refs/heads/master | 2023-01-22T20:44:53.280850 | 2020-11-13T12:00:41 | 2020-11-13T12:00:41 | 312,563,848 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 131 | java | package ru.dialog.tabletfragmentnavigation.slidr.model;
public interface SlidrInterface {
void lock();
void unlock();
}
| [
"viktoriya.bakhayeva@dataart.com"
] | viktoriya.bakhayeva@dataart.com |
78dd2340ea81bcc18d8c54bd05621bf979bf479c | 70b54a239e13ebdfe2ec9eaf3d043ea653924a4c | /Command/command/Command.java | 04bde5f730bebe55b4384d4383f49269b75cbc39 | [] | no_license | zakimal/DesignPattern | e5bb6c327fb9d29b5a787dfc66fbfca90aae8542 | 67a98d35bb5ca0bff8acfa03e8990b7321acedaf | refs/heads/master | 2020-04-10T09:04:40.989958 | 2019-01-15T03:30:24 | 2019-01-15T03:30:24 | 160,925,344 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 79 | java | package command;
public interface Command {
public abstract void execute();
} | [
"oza777you@gmail.com"
] | oza777you@gmail.com |
7fdd271a2ceed2dd5417eded1e5fe8a68608a93d | 68f569b02586f04c7ec3cc980baada7b1fd19a44 | /src/com/example/java/Main.java | 8404e0f9b099bb4103595cec9759d1442fbfc2ad | [] | no_license | jperez8089/advancedArraysMad105 | 7a61f53c2ea588d918ebc56bc5709b1a34ec9d37 | 1f711b010bf2208489229e8eafc02847a53909fe | refs/heads/master | 2021-05-04T15:36:12.794463 | 2018-02-04T23:36:19 | 2018-02-04T23:36:19 | 120,233,619 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 711 | java | package com.example.java;
public class Main {
public static void main(String[] args) {
System.out.println("Array of an Ice Cream Stand and its inventory");
String[] iceCreamStand = {"Dry Ice", "flavored Ice Cream", "Cones", "Cart", "Toppings"};
double[] inventory = {3,5,2,1,100};
for (int i = 0; i < iceCreamStand.length; i++) {
System.out.println(iceCreamStand[i] + " \n" + inventory[i]);
}
for (int i = 0; i<iceCreamStand.length; i++){
if (iceCreamStand[i] == "flavored Ice Cream"){
inventory[i] += 10;
System.out.println(iceCreamStand[i] + "\n" + inventory[i]);
}
}
}
} | [
"javierperezprimary@Javiers-MacBook-Pro.local"
] | javierperezprimary@Javiers-MacBook-Pro.local |
9ac3fcb4066531ef6183616d97448092ce1dfd61 | 043c67fc0705da28e81079c5b1b569b0acf06c54 | /src/com/prj/dao/impl/OrdersDao.java | 9ef197c304ae4f504c86ff6ae7ca530bce4e43ac | [] | no_license | byq963/crm | 57ff0d2d79d66e2af110f7b796975af2fc9dfb2c | 586247929e2955cb2aca444152a8ec1ff7906d6f | refs/heads/master | 2021-01-20T13:44:55.659344 | 2017-05-07T10:45:39 | 2017-05-07T10:45:39 | 90,524,619 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,041 | java | package com.prj.dao.impl;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.prj.bean.CustCustomer;
import com.prj.bean.Orders;
import com.prj.dao.IOrdersDao;
public class OrdersDao extends BaseDao implements IOrdersDao {
public boolean add(Orders order) {
return super.addT(order);
}
public boolean delete(Orders order) {
return super.updateT(order);
}
public boolean update(Orders order) {
return super.updateT(order);
}
public Orders get(Long ordeNo) {
return (Orders) super.getT(Orders.class, ordeNo);
}
public List<Orders> queryOrdersByPage(CustCustomer custCustomer,int page, int pagesize) {
StringBuffer str=new StringBuffer("from Orders where 1=1 ");
Map<String,Object> maps=new HashMap<String, Object>();
if(custCustomer!=null&&!custCustomer.equals("")){
str.append("and custCustomer =:custCustomer ");
maps.put("custCustomer", custCustomer);
}
return super.queryByPage(str.toString(), maps, page, pagesize);
}
}
| [
"byq963@gmail.com"
] | byq963@gmail.com |
29601d5d4afb2ca8b7920656e6af31f89bf76643 | 63e9fb6e0ae181bfa9f6552bf31985fc60897ad6 | /context-management/UserContextRefinement/src/main/java/org/societies/context/user/refinement/impl/bayesianLibrary/bayesianLearner/interfaces/RandomVariable.java | b835bde6230d6e08f77bd7d16b54d059e2080c31 | [
"BSD-2-Clause",
"BSD-2-Clause-Views"
] | permissive | societies/SOCIETIES-Platform | 6503b84b11b21f5bd4b5f1db0c22c4356b4a3f02 | 7050936833dcadf5cf318921ba97154843a05a46 | HEAD | 2016-09-05T22:29:20.159081 | 2014-05-20T10:53:33 | 2014-05-20T10:53:33 | 2,576,064 | 15 | 4 | null | null | null | null | UTF-8 | Java | false | false | 2,347 | java | package org.societies.context.user.refinement.impl.bayesianLibrary.bayesianLearner.interfaces;
import org.societies.context.user.refinement.impl.bayesianLibrary.bayesianLearner.exceptions.NodeValueIndexNotInNodeRangeException;
import org.societies.context.user.refinement.impl.bayesianLibrary.bayesianLearner.exceptions.NodeValueTextNotInNodeRangeException;
/**
* This Interface specifies how a discrete random variable should behave. It has
* a range of possible values and maintains the node values and their names. The
* RV also has a name.
* In addition, there are three controls that specify the order the random variable
* may take in a causal network:
* - AOOG: Allow Only OutGoing arcs from this RV
* - DNAOG: Don't Allow OutGoing arcs from this RV
* - _HIERARCHYx where x is an integer >= zero. A node can have an arc to another iff it has lower or equal hierarchy
*
* @author robert_p
*
*/
public interface RandomVariable extends Comparable<RandomVariable> {
public int[] getNodeRange();
/**
* Reverse mapping of getNodeRange()
*
* @param nodeValue
* (must be zero or positive)
* @return the position in the NodeRange (from 0 to length-1) that
* corresponds to the node value passed
* @throws NodeValueIndexNotInNodeRangeException
*/
public int getNodeRangePositionFromValue(int nodeValue)
throws NodeValueIndexNotInNodeRangeException;
public String getNodeValueText(int nodeValue)
throws NodeValueIndexNotInNodeRangeException;
/**
* We assume a unqiue name. Used in compareTo, hashCode and equals. Only the
* name counts - not the value!
*
* @return the unique name of the Node
*/
public String getName();
public int getNodeValueFromText(String nodeValueText)
throws NodeValueTextNotInNodeRangeException;
public String toStringLong();
public boolean doesNotAllowOutgoingArrows();
public int getHierarchy() ;
public boolean allowsOnlyOutgoingArrows();
public final String DoesNotAllowOutgoing = "DNAOG";
public final String AllowsOnlyOutgoing = "AOOG";
public final String HierarchyIndicator = "_HIERARCHY";
/**
* Return the non observed value (must be negative and must not be zero)
*
* @return the non observed value
*/
// public int getNOBSValue();
}
| [
"korbinian.frank@dlr.de"
] | korbinian.frank@dlr.de |
5ef5fd3a97cb186060ab45bd3935aa592f1493da | dbef9dff715cf47f023aad25a18e393e69edb606 | /src/main/java/org/jenkinsci/plugins/pendingChanges/ScmPendingChangesProvider.java | 1344b261dcd78ec2f9a2986f457d40c215bd1405 | [] | no_license | Kelfitas/pendingchanges-plugin | 72d94900b36904626bd8e2facbf913cb3c5095ce | 55a078507997cc3308b399345ffcc2cd580b63af | refs/heads/master | 2020-04-06T11:45:37.833495 | 2018-11-29T14:41:15 | 2018-11-29T14:41:15 | 157,429,016 | 0 | 0 | null | 2018-11-13T18:45:20 | 2018-11-13T18:45:20 | null | UTF-8 | Java | false | false | 1,971 | java | /*
* The MIT License
*
* Copyright (c) 2013, Andreas Vogler
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package org.jenkinsci.plugins.pendingChanges;
import hudson.ExtensionPoint;
import hudson.model.AbstractProject;
import hudson.scm.ChangeLogSet;
import hudson.scm.SCM;
/**
* Provide pluggable access to the change logs of a SCM.
*
* @author avogler
*/
public interface ScmPendingChangesProvider extends ExtensionPoint {
/**
* Check whether this ScmPendingChangesProvider supports this SCM implementation
* @param scm the SCM to check
* @return true if this SCM is supported
*/
boolean supports(SCM scm);
/**
* Retrieve all changes made since last successful build.
*
* @param project use SCM config of this project to retrieve changes
* @return
*/
ChangeLogSet getPendingChanges(AbstractProject project);
}
| [
"Andreas.Vogler@geneon.de"
] | Andreas.Vogler@geneon.de |
aeafdb7606a6106eabe537d56144a8eb9e053ea6 | 0480fe12a04765b390606203deeb94224d02660c | /src/main/java/com/fmbah/netty/nio7/discard/NioDiscardServerHandler.java | 6b42f3dbff851c5da08184ac065be2acbc62ec40 | [] | no_license | fmbah/netty_lecture | 8082f44635e793d530b5ebcac4d3d0af26159bb1 | e5d8a214979692538cada99fcafb1f1a977fa05c | refs/heads/master | 2020-04-07T20:27:48.548316 | 2019-03-20T09:32:23 | 2019-03-20T09:32:23 | 158,689,251 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 849 | java | package com.fmbah.netty.nio7.discard;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* @ClassName NioDiscardServerHandler
* @Description
* @Author root
* @Date 18-11-27 下午5:02
* @Version 1.0
**/
public class NioDiscardServerHandler extends SimpleChannelInboundHandler<Object> {
static final Logger logger = LoggerFactory.getLogger(NioDiscardServerHandler.class);
@Override
protected void channelRead0(ChannelHandlerContext ctx, Object msg) throws Exception {
logger.info("ctx channel {} received: {}", ctx.channel(), msg);
}
@Override
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {
cause.printStackTrace();
ctx.close();
}
}
| [
"807966224@qq.com"
] | 807966224@qq.com |
b18482649e7427b891d8342dc2d9ae499b81737d | b66ee2d8a6351f6164754d10698857cf96b63d0b | /src/main/java/com/wx/dto/CodeObj.java | 85a629285b752fc9b72b45293ca4d9edb5ed4623 | [] | no_license | zy6128012/wxshop | 53e89b86bec6aa26f49c3c1b6d568728ebbe6f69 | 1c5f7ebf5cf851fdbb17c6d37118071323ffe780 | refs/heads/master | 2020-03-07T08:11:43.106462 | 2018-07-27T06:52:21 | 2018-07-27T06:52:21 | 127,370,538 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,395 | java | package com.wx.dto;
public class CodeObj {
private Integer codeid;
public Integer getCodevalue() {
return codevalue;
}
public void setCodevalue(Integer codevalue) {
this.codevalue = codevalue;
}
private Integer codevalue;
private String codename;
private Integer codetype;
private Integer parentid;
private String extinfo;
private String memo;
public Integer getCodeid() {
return codeid;
}
public void setCodeid(Integer codeid) {
this.codeid = codeid;
}
public String getCodename() {
return codename;
}
public void setCodename(String codename) {
this.codename = codename == null ? null : codename.trim();
}
public Integer getCodetype() {
return codetype;
}
public void setCodetype(Integer codetype) {
this.codetype = codetype;
}
public Integer getParentid() {
return parentid;
}
public void setParentid(Integer parentid) {
this.parentid = parentid;
}
public String getExtinfo() {
return extinfo;
}
public void setExtinfo(String extinfo) {
this.extinfo = extinfo == null ? null : extinfo.trim();
}
public String getMemo() {
return memo;
}
public void setMemo(String memo) {
this.memo = memo == null ? null : memo.trim();
}
} | [
"zy6128012@163.com"
] | zy6128012@163.com |
b62a715547cbd16cafcb0d3e3b760745666f074e | 25bf904af83a794b3c114e1388f2f3d25655902b | /mail-distributor-service/src/test/java/com/example/maildistributorservice/MailDistributorServiceApplicationTests.java | 8949ecf979d2b93df00081b80a09c1c8c6a180d2 | [] | no_license | kamilNope/mail-company | 0b2a449da9b4e1a943d12b3ef389d850695eb481 | a12af0ea46f7805bacf32326bc6bc77adaa2f69e | refs/heads/master | 2023-08-22T16:15:30.057694 | 2021-10-06T10:56:11 | 2021-10-06T10:56:11 | 414,159,179 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 251 | java | package com.example.maildistributorservice;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class MailDistributorServiceApplicationTests {
@Test
void contextLoads() {
}
}
| [
"kamil.niedzielak.ctr@sabre.com"
] | kamil.niedzielak.ctr@sabre.com |
f63b2605e213e97b2f93d428fab6eec03b514502 | 5bbdd98a7b5e848d7db194f4a7f456ed0d972b65 | /src/main/java/frc/robot/commands/ShooterSetHoodState.java | fb0e982f4c8cf65330f25c8fae24ce421088aa47 | [] | no_license | Adm-Crunch/FRC-5254-2020 | bbd586287535d342651608bce668dbac37070065 | 5a0a43b2be2cd73507a48ecbafa6386019707cf9 | refs/heads/master | 2023-08-25T02:43:52.953816 | 2020-03-09T21:54:11 | 2020-03-09T21:54:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,474 | java | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2019 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project. */
/*----------------------------------------------------------------------------*/
package frc.robot.commands;
import edu.wpi.first.wpilibj2.command.CommandBase;
import frc.robot.subsystems.Shooter;
import frc.robot.subsystems.Shooter.HoodState;
public class ShooterSetHoodState extends CommandBase {
/** Creates a new ShooterSetHoodState. */
private Shooter m_shooter;
private HoodState hoodState;
public ShooterSetHoodState(Shooter shooter, HoodState state) {
// Use addRequirements() here to declare subsystem dependencies.
m_shooter = shooter;
hoodState = state;
}
// Called when the command is initially scheduled.
@Override
public void initialize() {}
// Called every time the scheduler runs while the command is scheduled.
@Override
public void execute() {
m_shooter.setHoodState(hoodState);
}
// Called once the command ends or is interrupted.
@Override
public void end(boolean interrupted) {}
// Returns true when the command should end.
@Override
public boolean isFinished() {
return true;
}
}
| [
"justin@tervay.com"
] | justin@tervay.com |
837b7481987d14b9c77c823487be43a2142d6a2d | 8a161ee1b7007e015500bbbaeba9a95eba2731d5 | /ch07/src/sec06/package1/A.java | 2569321b8a3faccfa9f0e9ac40b35986c9f0587e | [] | no_license | rchemist0123/myJava | 55f74a8e92ce5816407cae2ae41fc9676876079c | 8f8ac6d1c5c5b59d1d1ae2c20c52558baee91aea | refs/heads/master | 2023-03-12T19:06:56.837761 | 2020-12-28T12:00:06 | 2020-12-28T12:00:06 | null | 0 | 0 | null | null | null | null | UHC | Java | false | false | 245 | java | package sec06.package1;
public class A {
//field
protected String field;
//Constructor
protected A() {}//생성자가 public이라면 다른 패키지에서도 사용 가능함.
//Method
protected void method() {}
}
| [
"COM@DESKTOP-L2F7LSG"
] | COM@DESKTOP-L2F7LSG |
052d0a7896dc92840b5c9384933f8d8e1e5954d2 | 911b6ea84df621ae4fa15d940e88057ed7094874 | /Liuyanban_SpringMVC_DG/src/main/Java/liuyanban/controller/UserController.java | 3446e8da8bf6f1bc6669b2e9fd52aea8f2ace195 | [] | no_license | DrakeLyz/Test | 4caeebec4e25a371e27c6c0a50637e28c7bf8ce0 | 733f167de7a449cc1f7400c3508171bb5d03ceb3 | refs/heads/master | 2021-04-29T06:27:47.282823 | 2017-01-18T08:32:07 | 2017-01-18T08:32:07 | 77,967,488 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,917 | java | package liuyanban.controller;
import liuyanban.entity.User;
import liuyanban.service.UserServiceImpl;
import net.sf.json.JSONObject;
import net.sf.json.JSONArray;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.servlet.http.HttpSession;
import java.util.List;
@Controller
@RequestMapping(value = "/User/*")
public class UserController {
//登录Action
@ResponseBody
@RequestMapping(value = "/Login", produces = {"application/json;charset=UTF-8"})
public String Login(String loginId, String loginPwd, HttpSession session) {
JSONObject json = new JSONObject();
try {
User user = new UserServiceImpl().getUserByloginId(loginId.trim());
if (user.getPwd().equals(loginPwd)) {
session.setAttribute("User", user);
json.put("TFMark", true);
json.put("Msg", "欢迎您," + user.getName() + " !");
q return json.toString();
} else {
json.put("TFMark", false);
json.put("Msg", "账号或密码错误,请重新输入 !");
return json.toString();
}
} catch (Exception ee) {
json.put("TFMark", false);
json.put("Msg", "输入有误,请重试 !");
return json.toString();
}
}
//注销Action
@RequestMapping(value = "LogOut")
public String LogOut(HttpSession session) {
session.removeAttribute("User");
return "/Views/User/Login";
}
//获得User列表
@ResponseBody
@RequestMapping(value = "getUserList", method = RequestMethod.GET, produces = {"application/json;charset=UTF-8"})
public String getUserList() {
List<User> userList = new UserServiceImpl().getUserALL();
JSONArray jsonArray = JSONArray.fromObject(userList);
JSONObject jsonObject=new JSONObject();
jsonObject.put("TFMark",true);
jsonObject.put("userList",jsonArray);
return jsonObject.toString();
}
//获得User对象
@ResponseBody
@RequestMapping(value = "getUserByUserId", method = RequestMethod.GET, produces = {"application/json;charset=UTF-8"})
public String getUserByUserId(String userId) {
User user=new UserServiceImpl().getUserByUserId(Integer.parseInt(userId));
JSONObject jsonUser=JSONObject.fromObject(user);
JSONObject jsonObject=new JSONObject();
jsonObject.put("TFMark",true);
jsonObject.put("User",jsonUser);
return jsonObject.toString();
}
//添加用户--注册
@ResponseBody
@RequestMapping(value = "addUser", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public String addUser(String loginId,String Pwd,String userName,String Image) {
User user=new User();
user.setLoginId(loginId);
user.setPwd(Pwd);
user.setName(userName);
user.setJurisdiction("user");
user.setImage(Image);
UserServiceImpl userService=new UserServiceImpl();
boolean isExist=userService.isExist(user.getLoginId());
boolean isAdd=userService.addUser(user);
if(isExist)
{
JSONObject jsonObject=new JSONObject();
jsonObject.put("TFMark",false);
jsonObject.put("isExist",true);
return jsonObject.toString();
}
if (isAdd)
{
JSONObject jsonObject=new JSONObject();
jsonObject.put("TFMark",true);
return jsonObject.toString();
}
else
{
JSONObject jsonObject=new JSONObject();
jsonObject.put("TFMark",false);
return jsonObject.toString();
}
}
}
| [
"383288840@qq.com"
] | 383288840@qq.com |
a96e517a88d2827176a0425cafebfaf1caaec8e7 | 7a1445cfac9d4d1f122859415041f0cc1cbde283 | /AsteroidsEntity/Asteroid/src/main/java/dk/sdu/mmmi/cbse/asteroid/EntityPlugin.java | 9bf293901d719b4fa008f9234516c8146eba4102 | [] | no_license | NotHolst/CBSE-Portfolio | 472f56e44db0cfe5df21891b083eee2f41b635c1 | 5f95ea6b52271babdfe7bcf88ad00c897088af43 | refs/heads/master | 2020-05-24T20:45:59.850037 | 2017-05-02T02:49:43 | 2017-05-02T02:49:43 | 84,879,025 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,094 | java | package dk.sdu.mmmi.cbse.asteroid;
import dk.sdu.mmmi.cbse.common.data.Entity;
import dk.sdu.mmmi.cbse.common.data.EntityType;
import dk.sdu.mmmi.cbse.common.data.GameData;
import dk.sdu.mmmi.cbse.common.data.World;
import dk.sdu.mmmi.cbse.common.services.IGamePluginService;
import java.util.Random;
public class EntityPlugin implements IGamePluginService {
public EntityPlugin() {
}
@Override
public void start(GameData gameData, World world) {
for(int i = 0; i < 1; i++){
Entity entity = new Entity();
entity.setPosition(gameData.getDisplayWidth()/2, gameData.getDisplayHeight()/2);
entity.setType(EntityType.ASTEROIDS);
entity.setRadius(200);
Random r = new Random();
entity.setDx(-50/2 + r.nextInt(50));
entity.setDy(-50/2 + r.nextInt(50));
world.addEntity(entity);
}
}
@Override
public void stop(GameData gameData, World world) {
for(Entity asteroid : world.getEntities(EntityType.ASTEROIDS))world.removeEntity(asteroid);
}
}
| [
"moviemastersdk@gmail.com"
] | moviemastersdk@gmail.com |
556c5eb387516532a271ec39bc0a215cf2c4847e | 3349bbe24e91033262a53c745f82f006f540c29e | /com/planet_ink/coffee_mud/Commands/AutoInvoke.java | 83a9032387103235c65a052eb0d4acafdd91e0e2 | [
"Apache-2.0"
] | permissive | mikepitts25/Capstone-MUD | dbf43f35f9066c876be4019d26400af2d29401e2 | 60f18713a35a659d40781d8ac5c91e583e01c202 | refs/heads/master | 2021-01-22T07:42:59.034694 | 2017-09-04T02:44:49 | 2017-09-04T02:44:49 | 102,310,650 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 7,827 | java | package com.planet_ink.coffee_mud.Commands;
import com.planet_ink.coffee_mud.core.interfaces.*;
import com.planet_ink.coffee_mud.core.*;
import com.planet_ink.coffee_mud.core.collections.*;
import com.planet_ink.coffee_mud.Abilities.interfaces.*;
import com.planet_ink.coffee_mud.Areas.interfaces.*;
import com.planet_ink.coffee_mud.Behaviors.interfaces.*;
import com.planet_ink.coffee_mud.CharClasses.interfaces.*;
import com.planet_ink.coffee_mud.Commands.interfaces.*;
import com.planet_ink.coffee_mud.Common.interfaces.*;
import com.planet_ink.coffee_mud.Common.interfaces.Session.InputCallback;
import com.planet_ink.coffee_mud.Exits.interfaces.*;
import com.planet_ink.coffee_mud.Items.interfaces.*;
import com.planet_ink.coffee_mud.Libraries.interfaces.*;
import com.planet_ink.coffee_mud.Locales.interfaces.*;
import com.planet_ink.coffee_mud.MOBS.interfaces.*;
import com.planet_ink.coffee_mud.Races.interfaces.*;
import java.util.*;
/*
Copyright 2005-2017 Bo Zimmerman
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.
*/
public class AutoInvoke extends StdCommand
{
public AutoInvoke(){}
private final String[] access=I(new String[]{"AUTOINVOKE"});
@Override
public String[] getAccessWords()
{
return access;
}
protected enum AutoInvokeCommand
{
TOGGLE,
INVOKE,
UNINVOKE
}
protected void autoInvoke(MOB mob, Ability foundA, String s, Set<String> effects, AutoInvokeCommand cmd)
{
final PlayerStats pStats = mob.playerStats();
if(foundA==null)
mob.tell(L("'@x1' is invalid.",s));
else
if(effects.contains(foundA.ID()))
{
if((cmd == AutoInvokeCommand.UNINVOKE) || (cmd == AutoInvokeCommand.TOGGLE))
{
if(pStats != null)
pStats.addAutoInvokeList(foundA.ID());
foundA=mob.fetchEffect(foundA.ID());
if(foundA!=null)
{
mob.delEffect(foundA);
if(mob.fetchEffect(foundA.ID())!=null)
mob.tell(L("@x1 failed to successfully deactivate.",foundA.name()));
else
mob.tell(L("@x1 successfully deactivated.",foundA.name()));
}
}
}
else
{
if((cmd == AutoInvokeCommand.INVOKE) || (cmd == AutoInvokeCommand.TOGGLE))
{
if(pStats != null)
pStats.removeAutoInvokeList(foundA.ID());
foundA.autoInvocation(mob, true);
if(mob.fetchEffect(foundA.ID())!=null)
mob.tell(L("@x1 successfully invoked.",foundA.name()));
else
mob.tell(L("@x1 failed to successfully invoke.",foundA.name()));
}
}
}
@Override
public boolean execute(final MOB mob, final List<String> commands, final int metaFlags)
throws java.io.IOException
{
final List<Ability> abilities=new Vector<Ability>();
final Set<String> abilityids=new TreeSet<String>();
for(int a=0;a<mob.numAbilities();a++)
{
final Ability A=mob.fetchAbility(a);
if((A!=null)
&&(A.isAutoInvoked())
&&((A.classificationCode()&Ability.ALL_ACODES)!=Ability.ACODE_LANGUAGE)
&&((A.classificationCode()&Ability.ALL_ACODES)!=Ability.ACODE_PROPERTY))
{
abilities.add(A);
abilityids.add(A.ID());
}
}
final Set<String> effects=new TreeSet<String>();
for(int a=0;a<mob.numEffects();a++)
{
final Ability A=mob.fetchEffect(a);
if((A!=null)
&&(abilityids.contains(A.ID()))
&&(!A.isSavable()))
effects.add(A.ID());
}
abilityids.clear();
Collections.sort(abilities,new Comparator<Ability>()
{
@Override
public int compare(Ability o1, Ability o2)
{
if(o1==null)
{
if(o2==null)
return 0;
return -1;
}
else
if(o2==null)
return 1;
else
return o1.name().compareToIgnoreCase(o2.name());
}
});
final StringBuffer str=new StringBuffer(L("^xAuto-invoking abilities:^?^.\n\r^N"));
int col=0;
for(Ability A : abilities)
{
if(A!=null)
{
if(effects.contains(A.ID()))
str.append(L("@x1.^xACTIVE^?^.^N ",CMStrings.padRightWith(A.Name(),'.',29)));
else
str.append(L("@x1^xINACTIVE^?^.^N",CMStrings.padRightWith(A.Name(),'.',29)));
if(++col==2)
{
col=0;
str.append("\n\r");
}
else
str.append(" ");
}
}
if(col==1)
str.append("\n\r");
mob.tell(str.toString());
final Session session=mob.session();
if(session!=null)
{
final AutoInvoke me=this;
session.prompt(new InputCallback(InputCallback.Type.PROMPT,"",0)
{
@Override
public void showPrompt()
{
session.promptPrint(L("Enter one to toggle or RETURN: "));
}
@Override
public void timedOut()
{
}
@Override
public void callBack()
{
String s=this.input;
if(s.trim().length()==0)
return;
AutoInvokeCommand cmd=AutoInvokeCommand.TOGGLE;
if(s.toUpperCase().startsWith("INVOKE "))
{
s=s.substring(7).trim();
cmd=AutoInvokeCommand.INVOKE;
}
else
if(s.toUpperCase().startsWith("UNINVOKE "))
{
s=s.substring(9).trim();
cmd=AutoInvokeCommand.UNINVOKE;
}
boolean startsWith=s.endsWith("*");
if(startsWith)
s=s.substring(0,s.length()-1).toLowerCase();
boolean endsWith=s.startsWith("*");
if(endsWith)
s=s.substring(1).toLowerCase();
if(startsWith || endsWith)
{
for(Ability A : abilities)
{
if((A!=null)
&&(A.name().equalsIgnoreCase(s)
|| (startsWith && A.name().toLowerCase().startsWith(s))
|| (endsWith && A.name().toLowerCase().endsWith(s))))
{
me.autoInvoke(mob, A, s, effects, cmd);
}
}
}
else
if(s.length()>0)
{
Ability foundA=null;
for(Ability A : abilities)
{
if((A!=null)
&&(A.name().equalsIgnoreCase(s)
|| (startsWith && A.name().toLowerCase().startsWith(s))
|| (endsWith && A.name().toLowerCase().endsWith(s))))
{
foundA = A;
break;
}
}
if(foundA==null)
{
for(Ability A : abilities)
{
if((A!=null)&&(CMLib.english().containsString(A.name(),s)))
{
foundA = A;
break;
}
}
}
me.autoInvoke(mob, foundA, s, effects, cmd);
}
mob.recoverCharStats();
mob.recoverPhyStats();
mob.recoverMaxState();
if(mob.location()!=null)
mob.location().recoverRoomStats();
mob.recoverCharStats();
mob.recoverPhyStats();
mob.recoverMaxState();
CMLib.threads().executeRunnable(new Runnable()
{
public void run()
{
session.prompt(new InputCallback(InputCallback.Type.PROMPT,"",0)
{
@Override
public void showPrompt()
{
session.promptPrint(L("Enter to continue: "));
}
@Override
public void timedOut()
{
}
@Override
public void callBack()
{
try
{
me.execute(mob, commands, metaFlags);
}
catch(Exception e)
{
}
}
});
}
});
}
});
}
return false;
}
@Override
public boolean canBeOrdered()
{
return true;
}
}
| [
"bo@zimmers.net"
] | bo@zimmers.net |
542b2d0a53cfc6f759e903796b1b2827bebc71fb | 57e225ebc7df3cdd1f9e8ffa1162a58ecb83c21b | /actions/reportConfig/AllureTestListener.java | 5fceae3f3bcd960169686c43e8e13e8d86d4b601 | [] | no_license | xuansangnguyen95/pet-project | fe601d205b84e9dd1365e6eb3c218d15c392093b | 6031ca7c68f984f7a15b7fee03172ab571cb6050 | refs/heads/master | 2023-03-20T22:15:06.818012 | 2021-03-18T11:08:16 | 2021-03-18T11:08:16 | 302,001,852 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,109 | java | package reportConfig;
import org.openqa.selenium.OutputType;
import org.openqa.selenium.TakesScreenshot;
import org.openqa.selenium.WebDriver;
import org.testng.ITestContext;
import org.testng.ITestListener;
import org.testng.ITestResult;
import commons.AbstractTest;
import io.qameta.allure.Attachment;
public class AllureTestListener implements ITestListener {
private static String getTestMethodName(ITestResult iTestResult) {
return iTestResult.getMethod().getConstructorOrMethod().getName();
}
// Screenshot attachments for Allure
@Attachment(value = "Screenshot of {0}", type = "image/png")
public static byte[] saveScreenshotPNG(String testName, WebDriver driver) {
return (byte[]) ((TakesScreenshot) driver).getScreenshotAs(OutputType.BYTES);
}
// Text attachments for Allure
@Attachment(value = "Text attachment of {0}", type = "text/plain")
public static String saveTextLog(String message) {
return message;
}
// HTML attachments for Allure
@Attachment(value = "{0}", type = "text/html")
public static String attachHtml(String html) {
return html;
}
@Override
public void onTestFailure(ITestResult iTestResult) {
Object testClass = iTestResult.getInstance();
WebDriver driver = ((AbstractTest) testClass).getDriver();
saveScreenshotPNG(iTestResult.getName(), driver);
saveTextLog(getTestMethodName(iTestResult) + " failed and screenshot taken!");
}
@Override
public void onStart(ITestContext iTestContext) {
// TODO Auto-generated method stub
}
@Override
public void onTestSkipped(ITestResult iTestResult) {
// TODO Auto-generated method stub
}
@Override
public void onTestFailedButWithinSuccessPercentage(ITestResult iTestResult) {
// TODO Auto-generated method stub
}
@Override
public void onFinish(ITestContext arg0) {
// TODO Auto-generated method stub
}
@Override
public void onTestStart(ITestResult arg0) {
// TODO Auto-generated method stub
}
@Override
public void onTestSuccess(ITestResult arg0) {
// TODO Auto-generated method stub
}
} | [
"Sang@192.168.5.80"
] | Sang@192.168.5.80 |
4e0c6d268086ac0950c7805a75449102a94771c6 | e35429cbae4967b4be03c3a4d174c95416da8419 | /src/main/java/com/github/edgallojr/citiesapi/states/entities/State.java | 149ac4dd2179abb40a785d1d4727d360a686ce1f | [
"MIT"
] | permissive | edgallojr/cities-api | 8b67f1cc3c0f965408421c7c60656edf45b5e893 | 27df82fcc6b8e2b2d269b84b7e56c9866a2a1cc4 | refs/heads/main | 2023-07-13T19:21:00.828050 | 2021-08-18T16:46:01 | 2021-08-18T16:46:01 | 397,287,883 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,953 | java | package com.github.edgallojr.citiesapi.states.entities;
import com.github.edgallojr.citiesapi.countries.entities.Country;
import com.vladmihalcea.hibernate.type.json.JsonBinaryType;
import java.util.List;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.Type;
import org.hibernate.annotations.TypeDef;
import org.hibernate.annotations.TypeDefs;
@Entity(name = "State")
@Table(name = "estado")
@TypeDefs({
@TypeDef(name = "jsonb", typeClass = JsonBinaryType.class)
})
public class State {
@Id
private Long id;
@Column(name = "nome")
private String name;
private String uf;
private Integer ibge;
// 2nd - @ManyToOne
@ManyToOne
@JoinColumn(name = "pais", referencedColumnName = "id")
private Country country;
@Type(type = "jsonb")
@Basic(fetch = FetchType.LAZY)
@Column(name = "ddd", columnDefinition = "jsonb")
private List<Integer> ddd;
public State() {
}
/**
*
* @param id
* @param name
* @param uf
* @param ibge
* @param country
* @param ddd
*/
public State(Long id, String name, String uf, Integer ibge,
Country country, List<Integer> ddd) {
this.id = id;
this.name = name;
this.uf = uf;
this.ibge = ibge;
this.country = country;
this.ddd = ddd;
}
public Long getId() {
return id;
}
public String getName() {
return name;
}
public String getUf() {
return uf;
}
public Integer getIbge() {
return ibge;
}
public List<Integer> getDdd() {
return ddd;
}
public Country getCountry() {
return country;
}
} | [
"edgallojr@hotmail.com"
] | edgallojr@hotmail.com |
9adb72824df254180983c7a14955144e8d97db03 | bb66c3197c526a567d6e6d39b7338474610e40c8 | /springStarto1/src/main/java/com/shiyi/proxy/ServiceHandler.java | facb4c3ec51906b16da05424995b2bb0c44f3517 | [] | no_license | LONGHOO/startJava | 5b4fb75dad6c8519de24d1bc3a27053fe5443368 | 3da12f9285d3c519a7e8e0c3d5e45d454a85ff56 | refs/heads/master | 2022-12-25T02:31:56.543382 | 2019-07-23T06:15:53 | 2019-07-23T06:15:53 | 165,496,196 | 0 | 0 | null | 2022-12-16T04:37:15 | 2019-01-13T11:17:27 | JavaScript | UTF-8 | Java | false | false | 613 | java | package com.shiyi.proxy;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
/**
* @Author: 十一
* @Date: 2019-04-14 14:09
* @Descrption
**/
public class ServiceHandler implements InvocationHandler {
private ServiceImpl serviceImpl;
public void setService(ServiceImpl service){
this.serviceImpl = service;
}
@Override
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
System.out.println("before");
method.invoke(serviceImpl,args);
System.out.println("after");
return null;
}
}
| [
"1144258019@qq.com"
] | 1144258019@qq.com |
1b58ac081618585d9fe94f7e80d8275aa3d5de52 | 092c76fcc6c411ee77deef508e725c1b8277a2fe | /hybris/bin/ext-template/ychinaacceleratorstorefront/web/src/de/hybris/platform/ychinaaccelerator/storefront/interceptors/beforecontroller/AjaxHardLoginBeforeControllerHandler.java | 3d940833fdd4b02ef8114f72bd66be19ab7310ea | [
"MIT"
] | permissive | BaggaShivanshu2/hybris-bookstore-tutorial | 4de5d667bae82851fe4743025d9cf0a4f03c5e65 | 699ab7fd8514ac56792cb911ee9c1578d58fc0e3 | refs/heads/master | 2022-11-28T12:15:32.049256 | 2020-08-05T11:29:14 | 2020-08-05T11:29:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,797 | java | /*
*
* [y] hybris Platform
*
* Copyright (c) 2000-2015 hybris AG
* All rights reserved.
*
* This software is the confidential and proprietary information of hybris
* ("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 hybris.
*
*/
package de.hybris.platform.ychinaaccelerator.storefront.interceptors.beforecontroller;
import de.hybris.platform.acceleratorcms.services.CMSPageContextService;
import de.hybris.platform.servicelayer.user.UserService;
import de.hybris.platform.ychinaaccelerator.storefront.interceptors.BeforeControllerHandler;
import java.io.IOException;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.log4j.Logger;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.web.method.HandlerMethod;
/**
* Spring MVC interceptor that validates that the spring security user and the hybris session user are in sync. If the
* spring security user and the hybris session user are not in sync then the session is invalidated and the visitor is
* redirect to the homepage.
*/
public class AjaxHardLoginBeforeControllerHandler implements BeforeControllerHandler
{
private static final Logger LOG = Logger.getLogger(AjaxHardLoginBeforeControllerHandler.class);
@Resource(name = "userService")
private UserService userService;
@Resource(name = "cmsPageContextService")
private CMSPageContextService cmsPageContextService;
@Override
public boolean beforeController(final HttpServletRequest request, final HttpServletResponse response,
final HandlerMethod handler) throws IOException
{
// Skip this security check when run from within the WCMS Cockpit
if (isPreviewDataModelValid(request))
{
return true;
}
final String islocalSubmit = request.getParameter("islocalSubmit");
final Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
if (authentication != null)
{
final Object principal = authentication.getPrincipal();
if (principal instanceof String)
{
final String springSecurityUserId = (String) principal;
final String hybrisUserId = userService.getCurrentUser().getUid();
if (!springSecurityUserId.equals(hybrisUserId))
{
LOG.error("User miss-match springSecurityUserId [" + springSecurityUserId + "] hybris session user ["
+ hybrisUserId + "]. Invalidating session.");
// Invalidate session and redirect to the root page
request.getSession().invalidate();
if ("1".equals(islocalSubmit))
{
final String encodedRedirectUrl = response.encodeRedirectURL(request.getContextPath()
+ "/checkout/multi/timeout");
response.sendRedirect(encodedRedirectUrl);
return false;
}
if ("2".equals(islocalSubmit))
{
final String encodedRedirectUrl = response.encodeRedirectURL(request.getContextPath() + "/login/checkout");
response.sendRedirect(encodedRedirectUrl);
return false;
}
final String encodedRedirectUrl = response.encodeRedirectURL(request.getContextPath() + "/");
response.sendRedirect(encodedRedirectUrl);
return false;
}
}
}
return true;
}
/**
* Checks whether there is a preview data setup for the current request
*
* @param httpRequest
* current request
* @return true whether is valid otherwise false
*/
protected boolean isPreviewDataModelValid(final HttpServletRequest httpRequest)
{
return cmsPageContextService.getCmsPageRequestContextData(httpRequest).getPreviewData() != null;
}
}
| [
"xelilim@hotmail.com"
] | xelilim@hotmail.com |
b0578aba85ffbddc9ecff15c438fb32a9e24bb82 | 02d9f94d11081cbcf1824f6da29e2514546d6a68 | /src/tests/LoginTest.java | 1bdc7132aa417c852100812f360074abe64c7883 | [] | no_license | varmasuri/datadrivernframeworkjnuit | 21229da484e5ad360d1741f5b060c0530255a4ae | 54871714fb9c4faa83664f33bce30207adef37b3 | refs/heads/master | 2020-04-06T04:42:30.072859 | 2017-03-06T03:23:01 | 2017-03-06T03:23:01 | 82,882,958 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 543 | java | package tests;
import java.io.IOException;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import util.TestUtil;
public class LoginTest extends TestBase{
@Before
public void beforeTest() throws IOException {
initialize();
}
@Test
public void loginTest() {
driver.get(CONFIG.getProperty("testSiteName"));
TestUtil.doLogin("radhi.kr@gmail.com", "Radhi@8153");
if(!isLoggedIn) {
// reporterror
}
}
@After
public void afterTest() {
tearDown();
}
}
| [
"varma.suri@gmail.com"
] | varma.suri@gmail.com |
8b93f4e812e166a22d87b68d385f2380eb6441b4 | ea3d934d92c30b756d85215bde1ac09cae705c68 | /demo-basic/src/main/java/com/demo/basic/entity/AdminUserT.java | 4c359cf390532e852c1561076ef53ca0c820d4f1 | [] | no_license | xy-yyyy/demo-api | 57d1413fbd767b3e35b1b1350936f0bd1691d9a0 | b8cf852af525ef33bafc8a8cdb6bc9f19b4d8a4b | refs/heads/master | 2023-07-04T00:15:29.008894 | 2021-07-26T07:36:07 | 2021-07-26T07:36:07 | 356,794,292 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,838 | java | package com.demo.basic.entity;
import java.time.LocalDateTime;
import javax.persistence.*;
import lombok.Data;
import lombok.experimental.Accessors;
@Data
@Accessors(chain = true)
@Table(name = "`admin_user_t`")
public class AdminUserT {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column admin_user_t.id
*
* @mbg.generated Mon Nov 30 14:31:50 CST 2020
*/
private String id;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column admin_user_t.login_name
*
* @mbg.generated Mon Nov 30 14:31:50 CST 2020
*/
private String loginName;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column admin_user_t.password
*
* @mbg.generated Mon Nov 30 14:31:50 CST 2020
*/
private String password;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column admin_user_t.nick_name
*
* @mbg.generated Mon Nov 30 14:31:50 CST 2020
*/
private String nickName;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column admin_user_t.real_name
*
* @mbg.generated Mon Nov 30 14:31:50 CST 2020
*/
private String realName;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column admin_user_t.phone
*
* @mbg.generated Mon Nov 30 14:31:50 CST 2020
*/
private String phone;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column admin_user_t.email
*
* @mbg.generated Mon Nov 30 14:31:50 CST 2020
*/
private String email;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column admin_user_t.remark
*
* @mbg.generated Mon Nov 30 14:31:50 CST 2020
*/
private String remark;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column admin_user_t.locked
*
* @mbg.generated Mon Nov 30 14:31:50 CST 2020
*/
private Boolean locked;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column admin_user_t.create_id
*
* @mbg.generated Mon Nov 30 14:31:50 CST 2020
*/
private String createId;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column admin_user_t.create_time
*
* @mbg.generated Mon Nov 30 14:31:50 CST 2020
*/
private LocalDateTime createTime;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column admin_user_t.update_id
*
* @mbg.generated Mon Nov 30 14:31:50 CST 2020
*/
private String updateId;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column admin_user_t.update_time
*
* @mbg.generated Mon Nov 30 14:31:50 CST 2020
*/
private LocalDateTime updateTime;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column admin_user_t.version
*
* @mbg.generated Mon Nov 30 14:31:50 CST 2020
*/
private Integer version;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column admin_user_t.removed
*
* @mbg.generated Mon Nov 30 14:31:50 CST 2020
*/
private Boolean removed;
} | [
"771616768@qq.com"
] | 771616768@qq.com |
0aac58e4c6bb51838e49407f655211a28807e04a | 36804dca2e2e6770daae1bc5bcf7427f9052f23c | /testOpenErp/src/com/openerp/model/SaleOrder.java | 631a9f69643fb99d37c05100af6328620580737b | [] | no_license | nourchene-benslimane/openAndroid | e7d4102e72cf10391a2af247a8d323bd46dad1fd | 85c49e3ece8788fedd024c6a46fcce34b6d03671 | refs/heads/master | 2020-04-20T03:21:54.946109 | 2012-11-08T08:57:24 | 2012-11-08T08:57:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,254 | java | package com.openerp.model;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import android.util.Log;
import com.j256.ormlite.dao.ForeignCollection;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.field.ForeignCollectionField;
import com.j256.ormlite.table.DatabaseTable;
@DatabaseTable
public class SaleOrder {
@DatabaseField(generatedId=true)
private int id;
@DatabaseField
private String name;
@DatabaseField
private String state;
@DatabaseField
private Date dateOrder;
@DatabaseField
private Double amounTax;
@DatabaseField(foreign=true,foreignAutoRefresh=true)
private ResPartner resPartner;
@DatabaseField
private int idPostgres;
@DatabaseField
private String createDate;
@DatabaseField
private String writeDate;
@ForeignCollectionField
private ForeignCollection<SaleOrderLine> lines;
private static final String TAG = "SaleOrder class";
public SaleOrder(){}
public SaleOrder(String name, String state, Date dateOrder,
Double amounTax, ResPartner resPartner, int idPostgres) {
Log.i(TAG, "______________________ IN first ResPartner Constructor ______________________");
this.name = name;
this.state = state;
this.dateOrder = dateOrder;
this.amounTax = amounTax;
this.resPartner = resPartner;
this.idPostgres = idPostgres;
}
public SaleOrder(String name, String state, Date dateOrder,
Double amounTax, int idPostgres) {
Log.i(TAG, "______________________ IN second ResPartner Constructor ______________________");
this.name = name;
this.state = state;
this.dateOrder = dateOrder;
this.amounTax = amounTax;
this.idPostgres = idPostgres;
}
public SaleOrder(String name, String state, Date dateOrder,
Double amounTax, ResPartner resPartner, int idPostgres, String createDate, String writeDate) {
Log.i(TAG, "______________________ IN first ResPartner Constructor ______________________");
this.name = name;
this.state = state;
this.dateOrder = dateOrder;
this.amounTax = amounTax;
this.resPartner = resPartner;
this.idPostgres = idPostgres;
this.createDate=createDate;
this.writeDate=writeDate;
}
public SaleOrder(String name, String state, Date dateOrder,
Double amounTax, int idPostgres, String createDate, String writeDate) {
Log.i(TAG, "______________________ IN second ResPartner Constructor ______________________");
this.name = name;
this.state = state;
this.dateOrder = dateOrder;
this.amounTax = amounTax;
this.idPostgres = idPostgres;
this.createDate=createDate;
this.writeDate=writeDate;
}
/*
* Getters and setters
*/
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
public Date getDateOrder() {
return dateOrder;
}
public void setDateOrder(Date dateOrder) {
this.dateOrder = dateOrder;
}
public Double getAmounTax() {
return amounTax;
}
public void setAmounTax(Double amounTax) {
this.amounTax = amounTax;
}
public ResPartner getResPartner() {
return resPartner;
}
public void setResPartner(ResPartner resPartner) {
this.resPartner = resPartner;
}
public int getIdPostgres() {
return idPostgres;
}
public void setIdPostgres(int idPostgres) {
this.idPostgres = idPostgres;
}
public void setCreateDate(String createDate){
this.createDate=createDate;
}
public void setWriteDate(String writeDate){
this.writeDate=writeDate;
}
public String getCreateDate(){
return createDate;
}
public String getWriteDate(){
return writeDate;
}
public void setLines(ForeignCollection<SaleOrderLine> lines) {
this.lines = lines;
}
public List<SaleOrderLine> getLines() {
ArrayList<SaleOrderLine> lineList = new ArrayList<SaleOrderLine>();
for (SaleOrderLine ln : lines) {
lineList.add(ln);
}
return lineList;
}
/*
* toString
*/
@Override
public String toString() {
return "SaleOrder [id=" + id + ", name=" + name + ", state=" + state
+ ", dateOrder=" + dateOrder + ", idPostgres=" + idPostgres
+ "]";
}
}
| [
"nourchene.benslimane@gmail.com"
] | nourchene.benslimane@gmail.com |
4e6a6791bca0d6272f2746d1fcaf8c54a2649027 | ed166738e5dec46078b90f7cca13a3c19a1fd04b | /minor/guice-OOM-error-reproduction/src/main/java/gen/Q_Gen84.java | f27485c34b44ed5f5c056f6183dd183adee8e5f8 | [] | no_license | michalradziwon/script | 39efc1db45237b95288fe580357e81d6f9f84107 | 1fd5f191621d9da3daccb147d247d1323fb92429 | refs/heads/master | 2021-01-21T21:47:16.432732 | 2016-03-23T02:41:50 | 2016-03-23T02:41:50 | 22,663,317 | 2 | 0 | null | null | null | null | UTF-8 | Java | false | false | 326 | java |
package gen;
public class Q_Gen84 {
@com.google.inject.Inject
public Q_Gen84(Q_Gen85 q_gen85){
System.out.println(this.getClass().getCanonicalName() + " created. " + q_gen85 );
}
@com.google.inject.Inject public void injectInterfaceWithoutImpl(gen.InterfaceWithoutImpl i){} // should expolode :)
}
| [
"michal.radzi.won@gmail.com"
] | michal.radzi.won@gmail.com |
eba4f5bbc6fb20705193d1c2b77c5f5ab195fb85 | 60c5ecb1cd51b3b2424dc8986e71af39a5206194 | /code/REST Service/aholdaiserver/src/main/java/aholdai/aholdaiserver/services/recipeservice/RecipeServiceImpl.java | 37cb55844160931a4b3602d79c2458189f342676 | [] | no_license | aniketkadam20/Ahold-Grocery_AIHealthyEating-master- | e3be1f607708143591711a7c242d269e7e7febe9 | caec28ee20686a8ee5b225c206081fdbeb235548 | refs/heads/master | 2022-12-09T01:32:49.067489 | 2019-10-27T02:33:50 | 2019-10-27T02:33:50 | 217,795,399 | 0 | 0 | null | 2022-11-24T06:40:52 | 2019-10-27T02:32:11 | Java | UTF-8 | Java | false | false | 1,860 | java | package aholdai.aholdaiserver.services.recipeservice;
import aholdai.aholdaiserver.models.Recipe;
import aholdai.aholdaiserver.repositories.recipeRepository.Base.recipeRepository;
import aholdai.aholdaiserver.services.recipeservice.Base.RecipeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Comparator;
import java.util.List;
import java.util.stream.Collectors;
@Service
public class RecipeServiceImpl implements RecipeService {
private recipeRepository recipeRepository;
@Autowired
public RecipeServiceImpl (recipeRepository recipeRepository) {
this.recipeRepository = recipeRepository;
}
@Override
public List<Recipe> getAllRecipes() {
return recipeRepository.getAllRecipes();
}
@Override
public List<Recipe> searchByIngredient(String ingredient) {
return recipeRepository
.getAllRecipes()
.stream()
.filter(recipe -> recipe.getIngredients()
.stream()
.anyMatch(food -> food.getFoodName().equals(ingredient)))
.collect(Collectors.toList());
}
@Override
public List<Recipe> getSortedByCalories() {
return recipeRepository
.getAllRecipes()
.stream()
.sorted(Comparator.comparing(Recipe::getCalories))
.collect(Collectors.toList());
}
@Override
public List<Recipe> getFilteredByIngredient(String ingredient) {
return recipeRepository
.getAllRecipes()
.stream()
.filter(recipe -> {
return !recipe.getIngredients().contains(ingredient);
})
.collect(Collectors.toList());
}
}
| [
"kadamaniket20@gmail.com"
] | kadamaniket20@gmail.com |
03df62804fe01c0db676f28ae53d21bd3ded1ba4 | 75d94463f078ae872e91a8f904562247ee8e8f90 | /src/day15_methodcreation/C3_MethodOverloading.java | bd61f0d9fb204e79dbee1db66ae1fe0857c48740 | [] | no_license | Emine45/winter2021turkish | 1e7450deafe2a168121c66a6015f06f5193471cc | 7f52bc6ec80b3e1b8cce5263fe9015d9e062f3fd | refs/heads/master | 2023-03-24T17:22:19.473734 | 2021-03-25T22:15:59 | 2021-03-25T22:15:59 | 339,443,839 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,837 | java | package day15_methodcreation;
public class C3_MethodOverloading {
public static void main(String[] args) {
// Javada ayni isimle birden fazla method olusturulursa buna overloading denir
// Overloading yapabilmek icin Method Signature'larinin farkli olmasi gerekir
// Medhod Signature = isim + parametre sayisi + parametre data turu
// birbirini kapsayan data turleri oldugunda Java en optimim cozumu uretir
// (bire bir uyan varsa o methodu calistirir, bire bir uyan yoksa en fazla uyan method'u kullanir
// Eger kapsayan bir method da bulamazsa Java CTE verir
toplama(50,90); // integer method sonucu : 140
toplama(20.3,12.5); // double method sonucu : 32.8
toplama(60.2, 50); // double method sonucu : 110.2
toplama(30, 67.4); // integer/double method sonucu : 97.4
toplama('a','b'); // char method sonucu : 195
toplama("Ali", "Veli"); // String method sonucu : AliVeli
toplama(12,3);
}
public static void toplama(int sayi1, int sayi2) {
System.out.println("integer method sonucu : " + (sayi1+sayi2));
}
public static void toplama(double sayi1, double sayi2) {
System.out.println("double method sonucu : " + (sayi1+sayi2));
}
public static void toplama(int sayi1, double sayi2) {
System.out.println("integer/double method sonucu : " + (sayi1+sayi2));
}
public static void toplama( double sayi2, int sayi1) {
System.out.println("double/integer method sonucu : " + (sayi1+sayi2));
}
//Bu bolumu kapatirsak char yerine integer olani calistirir cunku ascii degerini topladigi icin.
public static void toplama(char char1, char char2) {
System.out.println("char method sonucu : " + (char1+char2));
}
public static void toplama(String str1, String str2) {
System.out.println("String method sonucu : " + (str1+str2));
}
}
| [
"btrusa45@gmail.com"
] | btrusa45@gmail.com |
65528c9c130462d9f7b13ed795caa3030e180bcb | 27f0e630870a759d83c164a8f15c25033f4f9a79 | /陈玮玮/陈玮玮+阶段3/jd/src/main/java/com/jd/entity/User.java | 7125fa6c534481bfcffebb548f33d4fb7e80674a | [] | no_license | java-lexian/stage3_homework | 6e9920ea919957b9065a8a1a915d87b7dd0f1b20 | a316f927ad4d07cb09a82c7f5039f5f22f140848 | refs/heads/master | 2021-01-01T00:40:39.554907 | 2020-02-15T08:52:59 | 2020-02-15T08:52:59 | 239,101,045 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,032 | java | package com.jd.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* <p>
*
* </p>
*
* @author cww
* @since 2020-02-03
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class User extends Model<User> {
private static final long serialVersionUID = 1L;
@TableId(value = "user_id", type = IdType.AUTO)
private Integer userId;
private String username;
private String password;
private String sex;
private String age;
private String email;
private String phone;
private Integer circleId;
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getSex() {
return sex;
}
public void setSex(String sex) {
this.sex = sex;
}
public String getAge() {
return age;
}
public void setAge(String age) {
this.age = age;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public Integer getCircleId() {
return circleId;
}
public void setCircleId(Integer circleId) {
this.circleId = circleId;
}
@Override
protected Serializable pkVal() {
return this.userId;
}
}
| [
"wei013570@163.com"
] | wei013570@163.com |
3bec12ab6458348c22e766ed26183a9eeb19b67e | 8b7cf7246965fe1aa1364e873882e089f8cd88f7 | /Iteratori e ciclo foreach/BinaryTreePreIterator/BinaryTreePreIterator.java | 1783651f99a0b58ab031a5f8fe68f19167be19bb | [] | no_license | mfaella/Java-practice | c54afaba1c3351c0ad8308280a52cd3314252af7 | 2199735e12749394e81e4f1503f0d7119b3fc5f5 | refs/heads/main | 2023-08-28T07:23:55.093516 | 2021-11-10T07:51:58 | 2021-11-10T07:51:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 998 | java | import javax.swing.text.html.HTMLDocument;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.NoSuchElementException;
public class BinaryTreePreIterator implements Iterator<BinaryTreeNode> {
protected LinkedList<BinaryTreeNode> visiting;
public BinaryTreePreIterator(BinaryTreeNode root) {
visiting = new LinkedList<>();
visiting.addFirst(root);
}
@Override
public boolean hasNext() {
return (!visiting.isEmpty());
}
@Override
public BinaryTreeNode next() {
if (!hasNext()) {
throw new NoSuchElementException("No more elements");
}
return preorderNext();
}
private BinaryTreeNode preorderNext() {
BinaryTreeNode node = visiting.getFirst();
if (node.getRight() != null) {
visiting.addFirst(node.getRight());
}
if (node.getLeft() != null) {
visiting.addFirst(node.getLeft());
}
return node;
}
}
| [
"tonydinu02@gmail.com"
] | tonydinu02@gmail.com |
6fd2b9df2a31393cb756e32c44304608b191a0c1 | 26e8828d07e67cf83d1e0feb79ffae4ebe5155d1 | /remote_control/LightOnCommand.java | 37804e93692e28410eb876cc84ea93b601dae523 | [] | no_license | chiragkaushik/Command-Pattern | 5a60933e83f175caa7df848f0de63229c0603693 | 73a872f892371dd728b8bdb1b2f862d6a4254742 | refs/heads/main | 2023-03-30T20:05:27.802510 | 2021-04-11T11:15:07 | 2021-04-11T11:15:07 | 349,683,993 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 194 | java | public class LightOnCommand implements Command{
Light light;
LightOnCommand(Light light){
this.light = light;
}
public void execute(){
this.light.on();
}
}
| [
"chiragkaushik517@gmail.com"
] | chiragkaushik517@gmail.com |
13748b7c1d52012cd8474d4a37752d0fe31238cb | 045d5f359b498c7aec937b51d3249d258ee3a6bd | /src/main/java/io/springboot/pay/api/AliPayStatus.java | 9fa686bb037b034761cf9abc66cf72916b4f531c | [] | no_license | springboot-community/springboot-pay | b11df002fa1809eb70c1443a33240627b48d5ce8 | 95a145b4903cc051e0223ea263996176e267a0bf | refs/heads/master | 2022-07-19T22:09:07.997143 | 2019-07-10T05:44:25 | 2019-07-10T05:44:25 | 195,393,509 | 3 | 1 | null | 2022-06-17T02:17:34 | 2019-07-05T10:51:00 | Java | UTF-8 | Java | false | false | 726 | java | package io.springboot.pay.api;
public enum AliPayStatus {
WAIT_BUYER_PAY(1, "等待付款"),
TRADE_CLOSED(2, "订单关闭"),
TRADE_SUCCESS(3, "支付成功"),
TRADE_FINISHED(4, "交易完结")
;
private int code;
private String desc;
AliPayStatus(String desc) {
this.desc = desc;
}
AliPayStatus(int code, String desc) {
this.code = code;
this.desc = desc;
}
public int getCode() {
return code;
}
public void setCode(int code) {
this.code = code;
}
public String getDesc() {
return desc;
}
public void setDesc(String desc) {
this.desc = desc;
}
}
| [
"i@ojbk.plus"
] | i@ojbk.plus |
172a08bc40d707094a3c3f0d36741753eb38986f | 2e6d8ac7a47ce271ede0a01bececaaddc8bd4753 | /csp/src/test/java/com/custom/spring/AppTest.java | bb31f55980cc01f4affa84a5b7d3a66dc91d6af6 | [] | no_license | huangfuliang/boke | 4c4ebf47892416bb374e2cbf1d32e4dc3fab867f | 5f4a66b813d9eb1d8ae4df7c581484dbb9707339 | refs/heads/master | 2021-07-07T09:38:31.591712 | 2017-09-29T13:20:37 | 2017-09-29T13:20:37 | 105,274,539 | 2 | 0 | null | null | null | null | UTF-8 | Java | false | false | 645 | java | package com.custom.spring;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
/**
* Unit test for simple App.
*/
public class AppTest
extends TestCase
{
/**
* Create the test case
*
* @param testName name of the test case
*/
public AppTest( String testName )
{
super( testName );
}
/**
* @return the suite of tests being tested
*/
public static Test suite()
{
return new TestSuite( AppTest.class );
}
/**
* Rigourous Test :-)
*/
public void testApp()
{
assertTrue( true );
}
}
| [
"huangfl6@asiainfo.com"
] | huangfl6@asiainfo.com |
c7b9d00b3508b62d193241ad0fba809efb12146a | 7a9eef15b0f34a008fa971b16573a302f74b13dc | /src/edu/warbot/game/WarGameSettings.java | af8cc2d57159973c1507e0656d2165c5afcac986 | [] | no_license | Dekat/Warbot | a605b41388b478636c1d4bcd129d2c11dc64cac4 | 44be8b08c133487df42d59ec27f30e2859c10c2a | refs/heads/master | 2020-03-31T00:24:35.239908 | 2015-03-26T06:14:50 | 2015-03-26T06:14:50 | 29,595,481 | 5 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,304 | java | package edu.warbot.game;
import edu.warbot.agents.ControllableWarAgent;
import edu.warbot.agents.enums.WarAgentType;
import edu.warbot.agents.percepts.InRadiusPerceptsGetter;
import edu.warbot.agents.percepts.PerceptsGetter;
import edu.warbot.launcher.SituationLoader;
import edu.warbot.launcher.UserPreferences;
import edu.warbot.launcher.WarGameConfig;
import edu.warbot.maps.AbstractWarMap;
import edu.warbot.maps.DefaultWarMap;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.logging.Level;
public class WarGameSettings {
private Map<WarAgentType, Integer> _nbAgentOfEachType;
private WarGameMode _gameMode;
private Object[] gameModeArguments;
private Level _defaultLogLevel;
private int _foodAppearanceRate;
private Class<? extends PerceptsGetter> _perceptsGetter;
private boolean _isEnabledEnhancedGraphism;
private List<Team> selectedTeams;
private SituationLoader situationLoader;
private AbstractWarMap selectedMap;
public WarGameSettings() {
this._nbAgentOfEachType = new HashMap<>();
this.selectedTeams = new ArrayList<>();
restartParameters();
}
private void restartParameters() {
for (WarAgentType a : WarAgentType.values()) {
_nbAgentOfEachType.put(a, UserPreferences.getNbAgentsAtStartOfType(a.toString()));
}
_gameMode = WarGameMode.Duel;
gameModeArguments = new Object[]{};
_defaultLogLevel = UserPreferences.getLoggerLevel();
_foodAppearanceRate = UserPreferences.getFoodAppearanceRate();
_perceptsGetter = WarGameConfig.getDefaultPerception();
_isEnabledEnhancedGraphism = false; // TODO set 3D as alternative viewer
this.selectedMap = new DefaultWarMap();
}
public void setNbAgentOfType(WarAgentType agent, int number) {
_nbAgentOfEachType.put(agent, number);
}
public int getNbAgentOfType(WarAgentType agent) {
return _nbAgentOfEachType.get(agent);
}
public WarGameMode getGameMode() {
return _gameMode;
}
public void setGameMode(WarGameMode gameMode) {
_gameMode = gameMode;
}
public int getFoodAppearanceRate() {
return this._foodAppearanceRate;
}
public void setFoodAppearanceRate(int rate) {
_foodAppearanceRate = rate;
}
public void setDefaultLogLevel(Level level) {
_defaultLogLevel = level;
}
public Level getLogLevel() {
return _defaultLogLevel;
}
public Class<? extends PerceptsGetter> getPerceptsGetterClass() {
return _perceptsGetter;
}
public void setPerceptsGetterClass(Class<? extends PerceptsGetter> perceptsGetter) {
_perceptsGetter = perceptsGetter;
}
public PerceptsGetter getPerceptsGetterNewInstance(ControllableWarAgent agent, WarGame game) {
try {
return _perceptsGetter.getConstructor(ControllableWarAgent.class, WarGame.class).newInstance(agent, game);
} catch (InstantiationException | IllegalAccessException | IllegalArgumentException | InvocationTargetException | NoSuchMethodException | SecurityException e) {
System.err.println("La classe " + _perceptsGetter.getName() + " ne peut pas être instanciée. InRadiusPerceptsGetter pris à la place.");
e.printStackTrace();
return new InRadiusPerceptsGetter(agent, game);
}
}
public boolean isEnabledEnhancedGraphism() {
return _isEnabledEnhancedGraphism;
}
public void setEnabledEnhancedGraphism(boolean bool) {
_isEnabledEnhancedGraphism = bool;
}
public List<Team> getSelectedTeams() {
return selectedTeams;
}
public void addSelectedTeam(Team team) {
selectedTeams.add(team);
}
public void prepareForNewGame() {
for(Team t : selectedTeams)
t.removeAllAgents();
selectedTeams.clear();
situationLoader = null;
}
public SituationLoader getSituationLoader() {
return situationLoader;
}
public void setSituationLoader(SituationLoader situationLoader) {
this.situationLoader = situationLoader;
}
public AbstractWarMap getSelectedMap() {
return selectedMap;
}
public void setSelectedMap(AbstractWarMap selectedMap) {
this.selectedMap = selectedMap;
}
public void setGameModeArguments(Object[] gameModeArguments) {
this.gameModeArguments = gameModeArguments;
}
public Object[] getGameModeArguments() {
return gameModeArguments;
}
}
| [
"dekat68@gmail.com"
] | dekat68@gmail.com |
5cb8adab91cf901d743187063ad32b01fb3ca7e3 | ecbededcd038c43ceeaee8ca47a004258d5bf70f | /GOP/GranuleJIDE/src/granulej/bean/MyTreeCellRenderer.java | 0fb6223d63f0a142a8ca06eb84a5ef5565c67f09 | [
"Apache-2.0"
] | permissive | xjtu311/GranuleJ | 46d2fa67a3eceb18dd93eebb7e62d4457ca59465 | 967f7a1f5eaf7e054fe638f5b9a82a462f06e83d | refs/heads/master | 2021-01-18T17:56:09.669544 | 2017-07-16T12:48:11 | 2017-07-16T12:48:11 | 86,825,986 | 1 | 0 | null | 2017-03-31T14:08:26 | 2017-03-31T14:08:26 | null | UTF-8 | Java | false | false | 897 | java | package granulej.bean;
import java.awt.Color;
import java.awt.Component;
import javax.swing.JTree;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.DefaultTreeCellRenderer;
public class MyTreeCellRenderer extends DefaultTreeCellRenderer {
/**
*
*/
private static final long serialVersionUID = 1L;
public Component getTreeCellRendererComponent(JTree tree, Object value,
boolean selected, boolean expanded, boolean leaf, int row,
boolean hasFocus) {
DefaultMutableTreeNode node = (DefaultMutableTreeNode) value;
MyTreeNode jtreeNode = (MyTreeNode) node.getUserObject();
this.setIcon(jtreeNode.getIcon());
this.setText(jtreeNode.getName());
this.setOpaque(true);
if (selected) {
this.setBackground(new Color(178, 180, 191));
} else {
this.setBackground(new Color(255, 255, 255));
}
return this;
}
}
| [
"wangyang@WangYangs-Macbook-Pro.local"
] | wangyang@WangYangs-Macbook-Pro.local |
a1c10228411ee7fed4c4256d18f9c0a877d23ce6 | cbc9c6d7b5542b2fa47e8624825d9a7421762ba6 | /src/main/java/com/test/cartecomerce/repository/ICartProductRepository.java | 7cf2a6af007db72d6cb83f15bb5d6ea5f24991a8 | [] | no_license | Neutron21/apiEcomerce | 9a026462c7da026ad91889d94c4b1e5e7c7bdbab | 7a29d614bee3f9330ac27e840b92868d5bbf69fa | refs/heads/master | 2023-04-08T17:14:46.773718 | 2021-04-21T02:06:24 | 2021-04-21T02:06:24 | 360,000,276 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 410 | java | package com.test.cartecomerce.repository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import com.test.cartecomerce.entity.CartProduct;
public interface ICartProductRepository extends CrudRepository<CartProduct, String> {
@Query(value = "SELECT SUM(precio*cantidad) FROM Product_Cart", nativeQuery = true)
public Float checkEvent();
}
| [
"tanerkratos@hotmail.com"
] | tanerkratos@hotmail.com |
83fa7ac41dc64b16497993cbffb85112d94f21fd | fb5a03608e1eb84f84b6f325192b8272f1dd24d5 | /src/main/java/io/github/jhipster/application/web/rest/util/HeaderUtil.java | 7afb44e46f3c767f71fc33a8a2102e3e83b8275c | [] | no_license | anshu0646/ansh | abfc04853a4f5c6fd45378fbe7586ba321408e81 | 8aa16e554a99d003908cb30cc0c369f612d856c1 | refs/heads/master | 2021-05-08T21:14:52.884653 | 2018-01-31T03:51:46 | 2018-01-31T03:51:46 | 119,631,752 | 0 | 1 | null | 2020-09-18T06:55:35 | 2018-01-31T03:51:44 | Java | UTF-8 | Java | false | false | 1,558 | java | package io.github.jhipster.application.web.rest.util;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpHeaders;
/**
* Utility class for HTTP headers creation.
*/
public final class HeaderUtil {
private static final Logger log = LoggerFactory.getLogger(HeaderUtil.class);
private HeaderUtil() {
}
public static HttpHeaders createAlert(String message, String param) {
HttpHeaders headers = new HttpHeaders();
headers.add("X-anshApp-alert", message);
headers.add("X-anshApp-params", param);
return headers;
}
public static HttpHeaders createEntityCreationAlert(String entityName, String param) {
return createAlert("A new " + entityName + " is created with identifier " + param, param);
}
public static HttpHeaders createEntityUpdateAlert(String entityName, String param) {
return createAlert("A " + entityName + " is updated with identifier " + param, param);
}
public static HttpHeaders createEntityDeletionAlert(String entityName, String param) {
return createAlert("A " + entityName + " is deleted with identifier " + param, param);
}
public static HttpHeaders createFailureAlert(String entityName, String errorKey, String defaultMessage) {
log.error("Entity processing failed, {}", defaultMessage);
HttpHeaders headers = new HttpHeaders();
headers.add("X-anshApp-error", defaultMessage);
headers.add("X-anshApp-params", entityName);
return headers;
}
}
| [
"jhipster-bot@users.noreply.github.com"
] | jhipster-bot@users.noreply.github.com |
5b2fdaf6136480e4b55b43a83f2424e2f2d5fd73 | 8aa447639ff483145865264f06fe30fed8ec08b3 | /consume/src/main/java/com/consume/feignInterface/SchedualServiceHi.java | 15ebec34bbaac68dbc93577421b43b8dec63e6e1 | [] | no_license | yang8364/celebration | 7a2ede481d590966a09a1ff5a65f9ee42212262a | 03301544add462cf97e519dd4a708068e38e7786 | refs/heads/master | 2022-07-12T01:59:34.131865 | 2019-11-01T06:24:27 | 2019-11-01T06:24:27 | 216,519,922 | 0 | 0 | null | 2022-06-21T02:09:16 | 2019-10-21T08:46:01 | Java | UTF-8 | Java | false | false | 579 | java | package com.consume.feignInterface;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
/**
* @author lenovo
*/
@FeignClient(value = "service-production")
public interface SchedualServiceHi {
/**
* syahello
* @param name
* @return
*/
@RequestMapping(value = "/hi",method = RequestMethod.GET)
String sayHi(@RequestParam(value = "name") String name);
}
| [
"ych0z01@sp.noahwm.com"
] | ych0z01@sp.noahwm.com |
804064435b03272634b6c8a5c4910238c469de73 | 4e3389830ca0810afb2100518f7e52cc45db0e6c | /src/main/java/com/casino/casino/security/JwtAuthenticationEntryPoint.java | 56b608756843c592a37ef13fecfe74253eeb8c01 | [] | no_license | Xolsk/React-Spring-MySQL-Casino-Back-End | bf13c6d0fad012cb5f915276952dc59eda7e7e93 | 64340ee281fc107829a7413ecde8eade5869ac1e | refs/heads/master | 2021-05-21T03:19:13.145373 | 2020-04-07T13:12:30 | 2020-04-07T13:12:30 | 252,520,010 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 781 | java | package com.casino.casino.security;
import java.io.IOException;
import java.io.Serializable;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.core.AuthenticationException;
import org.springframework.security.web.AuthenticationEntryPoint;
import org.springframework.stereotype.Component;
@Component
public class JwtAuthenticationEntryPoint implements AuthenticationEntryPoint, Serializable {
private static final long serialVersionUID = -7858869558953243875L;
@Override
public void commence(HttpServletRequest request, HttpServletResponse response,
AuthenticationException authException) throws IOException {
response.sendError(HttpServletResponse.SC_UNAUTHORIZED, "Unauthorized");
}
}
| [
"carlaguso@gmail.com"
] | carlaguso@gmail.com |
da4bfed6ffff85b8b9cf484cf5a3a5ba9bf3a90f | 30a5f62a45c5505fcc7e547e1668ed65f072d558 | /game/src/main/java/Main.java | e0de4c63d2c50254225671087bcd35c4f28e2d49 | [
"MIT"
] | permissive | Trzi891/ProgrammingLabAutumn2018 | fe683763d8573246cfe04e8dfe74fe7b292c42f1 | efbd33bac403e4fcd22ff298796c64801bdf7493 | refs/heads/master | 2020-03-29T07:37:18.563558 | 2019-02-01T00:28:05 | 2019-02-01T00:28:05 | 149,672,359 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 134 | java | import javax.swing.*;
public class Main extends JFrame {
public static void main(String[] args) {
new MyPanel();
}
}
| [
"wy1079125249@icloud.com"
] | wy1079125249@icloud.com |
7f54e1ffa4afe4ef322f245abf1ef4b965a00a46 | a715e8312a90d099b72c24e5b7da1372c9fe67fb | /python/ipnb/src/org/jetbrains/plugins/ipnb/editor/panels/code/IpnbImagePanel.java | cd79a38f3e2365391fe37d3760ce748f18c38f3f | [
"Apache-2.0"
] | permissive | wiltonlazary/bugvm-studio | ff98c1beca1f890013aa05ecd67f137a14a70c32 | 5861389424a51181c58178576c78cf35c0ceb1b5 | refs/heads/master | 2021-01-24T20:58:41.730805 | 2015-12-18T19:34:14 | 2015-12-18T19:34:14 | 56,322,614 | 2 | 1 | null | 2016-04-15T13:34:56 | 2016-04-15T13:34:56 | null | UTF-8 | Java | false | false | 1,424 | java | package org.jetbrains.plugins.ipnb.editor.panels.code;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.util.text.StringUtil;
import com.intellij.ui.components.JBLabel;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.plugins.ipnb.editor.IpnbEditorUtil;
import org.jetbrains.plugins.ipnb.format.cells.output.IpnbImageOutputCell;
import sun.misc.BASE64Decoder;
import javax.imageio.ImageIO;
import javax.swing.*;
import java.awt.image.BufferedImage;
import java.io.ByteArrayInputStream;
import java.io.IOException;
public class IpnbImagePanel extends IpnbCodeOutputPanel<IpnbImageOutputCell> {
private static final Logger LOG = Logger.getInstance(IpnbImagePanel.class);
public IpnbImagePanel(@NotNull final IpnbImageOutputCell cell) {
super(cell);
}
@Override
protected JComponent createViewPanel() {
final String png = myCell.getBase64String();
final JBLabel label = new JBLabel();
if (!StringUtil.isEmptyOrSpaces(png)) {
try {
byte[] btDataFile = new BASE64Decoder().decodeBuffer(png);
BufferedImage image = ImageIO.read(new ByteArrayInputStream(btDataFile));
label.setIcon(new ImageIcon(image));
}
catch (IOException e) {
LOG.error("Couldn't parse image. " + e.getMessage());
}
}
label.setBackground(IpnbEditorUtil.getBackground());
label.setOpaque(true);
return label;
}
}
| [
"github@ibinti.com"
] | github@ibinti.com |
9ee9d30a102f1e0f5e4a5ad001509c9531033a14 | 21aa6ee5026e49d9c9f15614924bbd2f040bcad2 | /src/main/java/net/lunglet/svm/SVCKernel.java | b809196a6132d2d14058b0a0d6eb6b0572956967 | [] | no_license | alberts/array4j | 02d177aceef3bcd50a666b6a6aa26768470c3cb9 | 13bb2e3636e61584e8818708d6643abc748c4010 | refs/heads/master | 2016-09-11T13:14:08.926558 | 2008-05-28T14:33:23 | 2008-05-28T14:33:23 | 32,113,828 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,380 | java | package net.lunglet.svm;
final class SVCKernel extends Kernel {
private final Cache cache;
private final float[] QD;
private final byte[] y;
SVCKernel(final SvmProblem prob, final SvmParameter param, final byte[] y_) {
super(prob.l, prob.x, prob.kernel, param);
y = y_.clone();
cache = new Cache(prob.l, (long) (param.cache_size * (1 << 20)));
QD = new float[prob.l];
for (int i = 0; i < prob.l; i++) {
QD[i] = (float) kernel_function(i, i);
}
}
@Override
float[] getQ(final int i, final int len) {
float[][] data = new float[1][];
int start;
if ((start = cache.getData(i, data, len)) < len) {
for (int j = start; j < len; j++) {
data[0][j] = (float) (y[i] * y[j] * kernel_function(i, j));
}
}
return data[0];
}
@Override
float[] getQD() {
return QD;
}
@Override
void swapIndex(final int i, final int j) {
cache.swapIndex(i, j);
super.swapIndex(i, j);
do {
byte other = y[i];
y[i] = y[j];
y[j] = other;
} while (false);
do {
float other = QD[i];
QD[i] = QD[j];
QD[j] = other;
} while (false);
}
}
| [
"fullung@91ab28ee-cd28-0410-b00c-5fca7c34108d"
] | fullung@91ab28ee-cd28-0410-b00c-5fca7c34108d |
1d448b9fa55cd869030535f3975752f4d8d0f660 | 6a6a54776b6fecd8c35d6474d23a05be0bc1100e | /.history/Assignment/Main_20211022163253.java | 8626618a87b9284ea36f8f936a2af904f45b86f0 | [] | no_license | Tuns0704/DataStructures-and-Algorithms | 6793cc03956da47452c7f20742c79c31ef76fc36 | 655aa977f83f15778bc4007edbcd216dd94af789 | refs/heads/master | 2023-08-28T16:47:51.986001 | 2021-11-04T05:39:25 | 2021-11-04T05:39:25 | 424,480,787 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 6,699 | java | import java.util.ArrayList;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
// Create a collection container object
ArrayList<Student> list = new ArrayList<>();
lo:
while (true) {
// 1. Build the main interface menu
System.out.println("--------Welcome to the student management system--------");
System.out.println("1. Add students");
System.out.println("2. Delete students");
System.out.println("3. Revise students");
System.out.println("4. View students");
System.out.println("5. Sign out");
System.out.println("Please enter your choice:");
System.out.println("--------------------------------------------------------");
String choice = sc.next();
switch (choice) {
case "1":
//System.out.println("add student");
addStudent(list);
break;
case "2":
//System.out.println("delete student");
deleteStudent(list);
break;
case "3":
//System.out.println (the "revised student");
updateStudent(list);
break;
case "4":
// System.out.println("view students");
queryStudents(list);
break;
case "5":
System.out.println("Thank you for your use");
break lo;
default:
System.out.println("Your input is wrong");
break;
}
}
}
// How to modify students
public static void updateStudent(ArrayList<Student> list) {
System.out.println("Please input the student number you want to modify:");
Scanner sc = new Scanner(System.in);
String updateSid = sc.next();
// 3. Call getIndex method to find the index position of the student number in the collection
int index = getIndex(list,updateSid);
// 4. Judge whether the student number exists in the set according to the index
if(index == -1){
// Does not exist: prompt
System.out.println("No information, Please re-enter");
}else{
// Presence: receiving new student information
System.out.println("Please enter a new student name:");
String name = sc.next();
System.out.println("Please enter the new student age:");
int age = sc.nextInt();
System.out.println("Please enter a new student's birthday:");
String birthday = sc.next();
// Encapsulate as a new student object
Student stu = new Student(updateSid, name, age, birthday);
// Call the set method of the collection to complete the modification
list.set(index, stu);
System.out.println("Modified successfully!");
}
}
// How to delete students
public static void deleteStudent(ArrayList<Student> list) {
// 1. Give prompt information (please input the student number you want to delete)
System.out.println("Please enter the student number you want to delete:");
// 2. The keyboard receives the student number to be deleted
Scanner sc = new Scanner(System.in);
String deleteSid = sc.next();
// 3. Call getIndex method to find the index position of the student number in the collection
int index = getIndex(list,deleteSid);
// 4. Judge whether the student number exists in the set according to the index
if(index == -1){
// Does not exist: prompt
System.out.println("No information, Please re-enter");
}else{
// Existing: delete
list.remove(index);
System.out.println("Successfully deleted!");
}
}
// How to view students
public static void queryStudents(ArrayList<Student> list) {
// 1. Judge whether there is data in the set, if not, give a prompt directly
if(list.size() == 0){
System.out.println("no message, Please add and query again");
return;
}
// 2. Presence: displays the header data
System.out.println("Student ID\t Full name\t Age\t Birthday");
// 3. Traverse the collection, get the information of each student object, and print it on the console
for (int i = 0; i < list.size(); i++) {
Student stu = list.get(i);
System.out.println(stu.getSid() + "\t" + stu.getName() + "\t" + stu.getAge() + "\t\t" + stu.getBirthday());
}
}
// How to add students
public static void addStudent(ArrayList<Student> list) {
Scanner sc = new Scanner(System.in);
// 1. Give the input prompt information
String sid="", name = "", birthday="";
int age;
while(true){
System.out.println("Please input student number:");
sid = sc.next();
int index = getIndex(list, sid);
if(index == -1){
// sid does not exist, student number can be used
break;
}
}
System.out.println("Please enter your name:");
name = sc.next();
System.out.println("Please enter age:");
age = sc.nextInt();
System.out.println("Please enter your birthday:");
birthday = sc.next();
// 2. Encapsulate the information entered by the keyboard as the student object
Student stu = new Student(sid,name,age,birthday);
// 3. Add the encapsulated Student object to the collection container
list.add(stu);
// 4. Give the message of adding success
System.out.println("Added successfully!");
}
/*
getIndex : Receive a collection object, receive a student number
Find the index position of the student number in the collection
*/
public static int getIndex(ArrayList<Student> list, String sid){
// 1. Suppose the incoming student number does not exist in the set
int index = -1;
// 2. Traverse the collection, get each student object, ready to search
for (int i = 0; i < list.size(); i++) {
Student stu = list.get(i);
// 3. Get the student number of each student
String id = stu.getSid();
// 4. Use the obtained student number to compare with the incoming student number
if(id.equals(sid)){
// Existence: let the index variable record the correct index position
index = i;
}
}
return index;
}
}
| [
"tuanmoitap@gmail.com"
] | tuanmoitap@gmail.com |
f28bd3bb1d6437c1469772a4c6633d665542f055 | ddb58139fb2ff29d29897070fdbb12afcb3b312a | /TestGraphic/gen/com/example/testgraphic/R.java | 97c9fa346035dda814ba498a1a7c88213f9a90a6 | [] | no_license | pingPat/TestGraphicAR | c6b165722884967abf4078f6d9e37f2ef3988e15 | 7606ed12cbb74a4a0f4d3b61eb53f91be191a54a | refs/heads/master | 2016-08-05T09:43:04.690602 | 2015-02-07T21:34:31 | 2015-02-07T21:34:31 | 30,466,801 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 349,734 | 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.example.testgraphic;
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=0x7f050000;
public static final int abc_action_bar_embed_tabs_pre_jb=0x7f050001;
public static final int abc_action_bar_expanded_action_views_exclusive=0x7f050002;
/** 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=0x7f050005;
/** 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=0x7f050004;
public static final int abc_config_showMenuShortcutsWhenKeyboardPresent=0x7f050003;
}
public static final class color {
public static final int abc_background_cache_hint_selector_material_dark=0x7f060031;
public static final int abc_background_cache_hint_selector_material_light=0x7f060032;
public static final int abc_input_method_navigation_guard=0x7f060003;
public static final int abc_primary_text_disable_only_material_dark=0x7f060033;
public static final int abc_primary_text_disable_only_material_light=0x7f060034;
public static final int abc_primary_text_material_dark=0x7f060035;
public static final int abc_primary_text_material_light=0x7f060036;
public static final int abc_search_url_text=0x7f060037;
public static final int abc_search_url_text_normal=0x7f060000;
public static final int abc_search_url_text_pressed=0x7f060002;
public static final int abc_search_url_text_selected=0x7f060001;
public static final int abc_secondary_text_material_dark=0x7f060038;
public static final int abc_secondary_text_material_light=0x7f060039;
public static final int accent_material_dark=0x7f06000f;
public static final int accent_material_light=0x7f06000e;
public static final int background_floating_material_dark=0x7f060006;
public static final int background_floating_material_light=0x7f060007;
public static final int background_material_dark=0x7f060004;
public static final int background_material_light=0x7f060005;
/** White 50%
*/
public static final int bright_foreground_disabled_material_dark=0x7f060016;
/** Black 50%
*/
public static final int bright_foreground_disabled_material_light=0x7f060017;
public static final int bright_foreground_inverse_material_dark=0x7f060018;
public static final int bright_foreground_inverse_material_light=0x7f060019;
public static final int bright_foreground_material_dark=0x7f060014;
public static final int bright_foreground_material_light=0x7f060015;
public static final int button_material_dark=0x7f060010;
public static final int button_material_light=0x7f060011;
public static final int dim_foreground_disabled_material_dark=0x7f06001c;
public static final int dim_foreground_disabled_material_light=0x7f06001d;
public static final int dim_foreground_material_dark=0x7f06001a;
public static final int dim_foreground_material_light=0x7f06001b;
/** TODO: This is 40% alpha on the default accent color.
*/
public static final int highlighted_text_material_dark=0x7f060020;
/** TODO: This is 40% alpha on the default accent color.
*/
public static final int highlighted_text_material_light=0x7f060021;
public static final int hint_foreground_material_dark=0x7f06001e;
public static final int hint_foreground_material_light=0x7f06001f;
public static final int link_text_material_dark=0x7f060022;
public static final int link_text_material_light=0x7f060023;
public static final int material_blue_grey_800=0x7f06002e;
public static final int material_blue_grey_900=0x7f06002f;
public static final int material_blue_grey_950=0x7f060030;
public static final int material_deep_teal_200=0x7f06002c;
public static final int material_deep_teal_500=0x7f06002d;
public static final int primary_dark_material_dark=0x7f06000a;
public static final int primary_dark_material_light=0x7f06000b;
public static final int primary_material_dark=0x7f060008;
public static final int primary_material_light=0x7f060009;
public static final int primary_text_default_material_dark=0x7f060026;
public static final int primary_text_default_material_light=0x7f060024;
/** 30% of default values
*/
public static final int primary_text_disabled_material_dark=0x7f06002a;
/** 26% of default values
*/
public static final int primary_text_disabled_material_light=0x7f060028;
public static final int ripple_material_dark=0x7f06000c;
public static final int ripple_material_light=0x7f06000d;
public static final int secondary_text_default_material_dark=0x7f060027;
public static final int secondary_text_default_material_light=0x7f060025;
public static final int secondary_text_disabled_material_dark=0x7f06002b;
public static final int secondary_text_disabled_material_light=0x7f060029;
public static final int switch_thumb_normal_material_dark=0x7f060012;
public static final int switch_thumb_normal_material_light=0x7f060013;
}
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=0x7f070014;
/** 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=0x7f070015;
/** Vertical padding around action bar icons.
*/
public static final int abc_action_bar_icon_vertical_padding_material=0x7f070016;
/** Size of the indeterminate Progress Bar
Size of the indeterminate Progress Bar
*/
public static final int abc_action_bar_progress_bar_size=0x7f070005;
/** Maximum height for a stacked tab bar as part of an action bar
*/
public static final int abc_action_bar_stacked_max_height=0x7f070004;
/** 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=0x7f070003;
/** Bottom margin for action bar subtitles
*/
public static final int abc_action_bar_subtitle_bottom_margin_material=0x7f070018;
/** Top margin for action bar subtitles
*/
public static final int abc_action_bar_subtitle_top_margin_material=0x7f070017;
public static final int abc_action_button_min_height_material=0x7f07001b;
public static final int abc_action_button_min_width_material=0x7f07001a;
public static final int abc_action_button_min_width_overflow_material=0x7f070019;
/** 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=0x7f070002;
/** Default insets (outer padding) around controls
*/
public static final int abc_control_inset_material=0x7f070010;
/** Default inner padding within controls
*/
public static final int abc_control_padding_material=0x7f070011;
/** Width of the icon in a dropdown list
*/
public static final int abc_dropdownitem_icon_width=0x7f07000b;
/** Text padding for dropdown items
*/
public static final int abc_dropdownitem_text_padding_left=0x7f070009;
public static final int abc_dropdownitem_text_padding_right=0x7f07000a;
public static final int abc_panel_menu_list_width=0x7f070006;
/** Preferred width of the search view.
*/
public static final int abc_search_view_preferred_width=0x7f070008;
/** 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=0x7f070007;
public static final int abc_text_size_body_1_material=0x7f070025;
public static final int abc_text_size_body_2_material=0x7f070024;
public static final int abc_text_size_button_material=0x7f070027;
public static final int abc_text_size_caption_material=0x7f070026;
public static final int abc_text_size_display_1_material=0x7f07001f;
public static final int abc_text_size_display_2_material=0x7f07001e;
public static final int abc_text_size_display_3_material=0x7f07001d;
public static final int abc_text_size_display_4_material=0x7f07001c;
public static final int abc_text_size_headline_material=0x7f070020;
public static final int abc_text_size_large_material=0x7f070028;
public static final int abc_text_size_medium_material=0x7f070029;
public static final int abc_text_size_menu_material=0x7f070023;
public static final int abc_text_size_small_material=0x7f07002a;
public static final int abc_text_size_subhead_material=0x7f070022;
/** Use the default subtitle sizes on tablets.
Default text size for action bar subtitle.
*/
public static final int abc_text_size_subtitle_material_toolbar=0x7f070013;
public static final int abc_text_size_title_material=0x7f070021;
/** Use the default title sizes on tablets.
Default text size for action bar title.
*/
public static final int abc_text_size_title_material_toolbar=0x7f070012;
/** 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=0x7f07002b;
public static final int activity_vertical_margin=0x7f07002c;
/** 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=0x7f07000e;
/** 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=0x7f07000f;
/** 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=0x7f07000c;
/** 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=0x7f07000d;
public static final int disabled_alpha_material_dark=0x7f070001;
public static final int disabled_alpha_material_light=0x7f070000;
}
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 ic_launcher=0x7f020033;
}
public static final class id {
public static final int action_bar=0x7f090033;
public static final int action_bar_activity_content=0x7f090003;
public static final int action_bar_container=0x7f090032;
public static final int action_bar_root=0x7f09002e;
public static final int action_bar_spinner=0x7f090002;
public static final int action_bar_subtitle=0x7f090021;
public static final int action_bar_title=0x7f090020;
public static final int action_context_bar=0x7f090034;
public static final int action_menu_divider=0x7f090005;
public static final int action_menu_presenter=0x7f090006;
public static final int action_mode_bar=0x7f090030;
public static final int action_mode_bar_stub=0x7f09002f;
public static final int action_mode_close_button=0x7f090022;
public static final int action_settings=0x7f090042;
public static final int activity_chooser_view_content=0x7f090023;
public static final int always=0x7f090014;
public static final int beginning=0x7f09001b;
public static final int bottom=0x7f09001e;
public static final int checkbox=0x7f09002b;
public static final int collapseActionView=0x7f090015;
public static final int decor_content_parent=0x7f090031;
public static final int default_activity_button=0x7f090026;
public static final int dialog=0x7f090019;
public static final int disableHome=0x7f09000d;
public static final int dropdown=0x7f09001a;
public static final int edit_query=0x7f090035;
public static final int end=0x7f09001c;
public static final int expand_activities_button=0x7f090024;
public static final int expanded_menu=0x7f09002a;
public static final int home=0x7f090000;
public static final int homeAsUp=0x7f09000e;
public static final int icon=0x7f090028;
public static final int ifRoom=0x7f090016;
public static final int image=0x7f090025;
public static final int listMode=0x7f09000a;
public static final int list_item=0x7f090027;
public static final int middle=0x7f09001d;
public static final int never=0x7f090017;
public static final int none=0x7f09000f;
public static final int normal=0x7f09000b;
public static final int preview=0x7f090041;
public static final int progress_circular=0x7f090007;
public static final int progress_horizontal=0x7f090008;
public static final int radio=0x7f09002d;
public static final int search_badge=0x7f090037;
public static final int search_bar=0x7f090036;
public static final int search_button=0x7f090038;
public static final int search_close_btn=0x7f09003d;
public static final int search_edit_frame=0x7f090039;
public static final int search_go_btn=0x7f09003f;
public static final int search_mag_icon=0x7f09003a;
public static final int search_plate=0x7f09003b;
public static final int search_src_text=0x7f09003c;
public static final int search_voice_btn=0x7f090040;
public static final int shortcut=0x7f09002c;
public static final int showCustom=0x7f090010;
public static final int showHome=0x7f090011;
public static final int showTitle=0x7f090012;
public static final int split_action_bar=0x7f090004;
public static final int submit_area=0x7f09003e;
public static final int tabMode=0x7f09000c;
public static final int title=0x7f090029;
public static final int top=0x7f09001f;
public static final int up=0x7f090001;
public static final int useLogo=0x7f090013;
public static final int withText=0x7f090018;
public static final int wrap_content=0x7f090009;
}
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=0x7f080000;
}
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 support_simple_spinner_dropdown_item=0x7f030018;
}
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;
/** 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.example.testgraphic:background}</code></td><td> Specifies a background drawable for the action bar.</td></tr>
<tr><td><code>{@link #ActionBar_backgroundSplit com.example.testgraphic: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.example.testgraphic: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.example.testgraphic:contentInsetEnd}</code></td><td> Minimum inset for content views within a bar.</td></tr>
<tr><td><code>{@link #ActionBar_contentInsetLeft com.example.testgraphic:contentInsetLeft}</code></td><td> Minimum inset for content views within a bar.</td></tr>
<tr><td><code>{@link #ActionBar_contentInsetRight com.example.testgraphic:contentInsetRight}</code></td><td> Minimum inset for content views within a bar.</td></tr>
<tr><td><code>{@link #ActionBar_contentInsetStart com.example.testgraphic:contentInsetStart}</code></td><td> Minimum inset for content views within a bar.</td></tr>
<tr><td><code>{@link #ActionBar_customNavigationLayout com.example.testgraphic:customNavigationLayout}</code></td><td> Specifies a layout for custom navigation.</td></tr>
<tr><td><code>{@link #ActionBar_displayOptions com.example.testgraphic:displayOptions}</code></td><td> Options affecting how the action bar is displayed.</td></tr>
<tr><td><code>{@link #ActionBar_divider com.example.testgraphic:divider}</code></td><td> Specifies the drawable used for item dividers.</td></tr>
<tr><td><code>{@link #ActionBar_elevation com.example.testgraphic:elevation}</code></td><td> Elevation for the action bar itself </td></tr>
<tr><td><code>{@link #ActionBar_height com.example.testgraphic:height}</code></td><td> Specifies a fixed height.</td></tr>
<tr><td><code>{@link #ActionBar_hideOnContentScroll com.example.testgraphic: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.example.testgraphic:homeAsUpIndicator}</code></td><td> Up navigation glyph </td></tr>
<tr><td><code>{@link #ActionBar_homeLayout com.example.testgraphic: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.example.testgraphic:icon}</code></td><td> Specifies the drawable used for the application icon.</td></tr>
<tr><td><code>{@link #ActionBar_indeterminateProgressStyle com.example.testgraphic:indeterminateProgressStyle}</code></td><td> Specifies a style resource to use for an indeterminate progress spinner.</td></tr>
<tr><td><code>{@link #ActionBar_itemPadding com.example.testgraphic: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.example.testgraphic:logo}</code></td><td> Specifies the drawable used for the application logo.</td></tr>
<tr><td><code>{@link #ActionBar_navigationMode com.example.testgraphic:navigationMode}</code></td><td> The type of navigation to use.</td></tr>
<tr><td><code>{@link #ActionBar_popupTheme com.example.testgraphic: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.example.testgraphic: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.example.testgraphic:progressBarStyle}</code></td><td> Specifies a style resource to use for an embedded progress bar.</td></tr>
<tr><td><code>{@link #ActionBar_subtitle com.example.testgraphic:subtitle}</code></td><td> Specifies subtitle text used for navigationMode="normal" </td></tr>
<tr><td><code>{@link #ActionBar_subtitleTextStyle com.example.testgraphic:subtitleTextStyle}</code></td><td> Specifies a style to use for subtitle text.</td></tr>
<tr><td><code>{@link #ActionBar_title com.example.testgraphic:title}</code></td><td> Specifies title text used for navigationMode="normal" </td></tr>
<tr><td><code>{@link #ActionBar_titleTextStyle com.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic:background}</code></td><td> Specifies a background for the action mode bar.</td></tr>
<tr><td><code>{@link #ActionMode_backgroundSplit com.example.testgraphic:backgroundSplit}</code></td><td> Specifies a background for the split action mode bar.</td></tr>
<tr><td><code>{@link #ActionMode_closeItemLayout com.example.testgraphic: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.example.testgraphic:height}</code></td><td> Specifies a fixed height for the action mode bar.</td></tr>
<tr><td><code>{@link #ActionMode_subtitleTextStyle com.example.testgraphic:subtitleTextStyle}</code></td><td> Specifies a style to use for subtitle text.</td></tr>
<tr><td><code>{@link #ActionMode_titleTextStyle com.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic:color}</code></td><td> The drawing color for the bars </td></tr>
<tr><td><code>{@link #DrawerArrowToggle_drawableSize com.example.testgraphic:drawableSize}</code></td><td> The total size of the drawable </td></tr>
<tr><td><code>{@link #DrawerArrowToggle_gapBetweenBars com.example.testgraphic: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.example.testgraphic: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.example.testgraphic:spinBars}</code></td><td> Whether bars should rotate or not during transition </td></tr>
<tr><td><code>{@link #DrawerArrowToggle_thickness com.example.testgraphic:thickness}</code></td><td> The thickness (stroke size) for the bar paint </td></tr>
<tr><td><code>{@link #DrawerArrowToggle_topBottomBarArrowSize com.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic:divider}</code></td><td> Drawable to use as a vertical divider between buttons.</td></tr>
<tr><td><code>{@link #LinearLayoutCompat_dividerPadding com.example.testgraphic:dividerPadding}</code></td><td> Size of padding on either end of a divider.</td></tr>
<tr><td><code>{@link #LinearLayoutCompat_measureWithLargestChild com.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic:actionLayout}</code></td><td> An optional layout to be used as an action view.</td></tr>
<tr><td><code>{@link #MenuItem_actionProviderClass com.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic:closeIcon}</code></td><td> Close button icon </td></tr>
<tr><td><code>{@link #SearchView_commitIcon com.example.testgraphic:commitIcon}</code></td><td> Commit icon shown in the query suggestion row </td></tr>
<tr><td><code>{@link #SearchView_goIcon com.example.testgraphic:goIcon}</code></td><td> Go button icon </td></tr>
<tr><td><code>{@link #SearchView_iconifiedByDefault com.example.testgraphic:iconifiedByDefault}</code></td><td> The default state of the SearchView.</td></tr>
<tr><td><code>{@link #SearchView_layout com.example.testgraphic:layout}</code></td><td> The layout to use for the search view.</td></tr>
<tr><td><code>{@link #SearchView_queryBackground com.example.testgraphic:queryBackground}</code></td><td> Background for the section containing the search query </td></tr>
<tr><td><code>{@link #SearchView_queryHint com.example.testgraphic: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.example.testgraphic:searchIcon}</code></td><td> Search icon </td></tr>
<tr><td><code>{@link #SearchView_submitBackground com.example.testgraphic:submitBackground}</code></td><td> Background for the section containing the action (e.</td></tr>
<tr><td><code>{@link #SearchView_suggestionRowLayout com.example.testgraphic:suggestionRowLayout}</code></td><td> Layout for query suggestion rows </td></tr>
<tr><td><code>{@link #SearchView_voiceIcon com.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic:prompt}</code></td><td> The prompt to display when the spinner's dialog is shown.</td></tr>
<tr><td><code>{@link #Spinner_spinnerMode com.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic:showText}</code></td><td> Whether to draw on/off text.</td></tr>
<tr><td><code>{@link #SwitchCompat_splitTrack com.example.testgraphic: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.example.testgraphic:switchMinWidth}</code></td><td> Minimum width for the switch component </td></tr>
<tr><td><code>{@link #SwitchCompat_switchPadding com.example.testgraphic:switchPadding}</code></td><td> Minimum space between the switch and caption text </td></tr>
<tr><td><code>{@link #SwitchCompat_switchTextAppearance com.example.testgraphic:switchTextAppearance}</code></td><td> TextAppearance style for text displayed on the switch thumb.</td></tr>
<tr><td><code>{@link #SwitchCompat_thumbTextPadding com.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic:actionBarDivider}</code></td><td> Custom divider drawable to use for elements in the action bar.</td></tr>
<tr><td><code>{@link #Theme_actionBarItemBackground com.example.testgraphic:actionBarItemBackground}</code></td><td> Custom item state list drawable background for action bar items.</td></tr>
<tr><td><code>{@link #Theme_actionBarPopupTheme com.example.testgraphic: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.example.testgraphic: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.example.testgraphic:actionBarSplitStyle}</code></td><td> Reference to a style for the split Action Bar.</td></tr>
<tr><td><code>{@link #Theme_actionBarStyle com.example.testgraphic:actionBarStyle}</code></td><td> Reference to a style for the Action Bar </td></tr>
<tr><td><code>{@link #Theme_actionBarTabBarStyle com.example.testgraphic:actionBarTabBarStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_actionBarTabStyle com.example.testgraphic:actionBarTabStyle}</code></td><td> Default style for tabs within an action bar </td></tr>
<tr><td><code>{@link #Theme_actionBarTabTextStyle com.example.testgraphic:actionBarTabTextStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_actionBarTheme com.example.testgraphic: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.example.testgraphic: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.example.testgraphic:actionButtonStyle}</code></td><td> Default action button style.</td></tr>
<tr><td><code>{@link #Theme_actionDropDownStyle com.example.testgraphic:actionDropDownStyle}</code></td><td> Default ActionBar dropdown style.</td></tr>
<tr><td><code>{@link #Theme_actionMenuTextAppearance com.example.testgraphic: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.example.testgraphic:actionMenuTextColor}</code></td><td> Color for text that appears within action menu items.</td></tr>
<tr><td><code>{@link #Theme_actionModeBackground com.example.testgraphic:actionModeBackground}</code></td><td> Background drawable to use for action mode UI </td></tr>
<tr><td><code>{@link #Theme_actionModeCloseButtonStyle com.example.testgraphic:actionModeCloseButtonStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_actionModeCloseDrawable com.example.testgraphic:actionModeCloseDrawable}</code></td><td> Drawable to use for the close action mode button </td></tr>
<tr><td><code>{@link #Theme_actionModeCopyDrawable com.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic:actionModeStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_actionModeWebSearchDrawable com.example.testgraphic: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.example.testgraphic:actionOverflowButtonStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_actionOverflowMenuStyle com.example.testgraphic:actionOverflowMenuStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_activityChooserViewStyle com.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic:colorAccent}</code></td><td> Bright complement to the primary branding color.</td></tr>
<tr><td><code>{@link #Theme_colorButtonNormal com.example.testgraphic:colorButtonNormal}</code></td><td> The color applied to framework buttons in their normal state.</td></tr>
<tr><td><code>{@link #Theme_colorControlActivated com.example.testgraphic:colorControlActivated}</code></td><td> The color applied to framework controls in their activated (ex.</td></tr>
<tr><td><code>{@link #Theme_colorControlHighlight com.example.testgraphic:colorControlHighlight}</code></td><td> The color applied to framework control highlights (ex.</td></tr>
<tr><td><code>{@link #Theme_colorControlNormal com.example.testgraphic:colorControlNormal}</code></td><td> The color applied to framework controls in their normal state.</td></tr>
<tr><td><code>{@link #Theme_colorPrimary com.example.testgraphic:colorPrimary}</code></td><td> The primary branding color for the app.</td></tr>
<tr><td><code>{@link #Theme_colorPrimaryDark com.example.testgraphic:colorPrimaryDark}</code></td><td> Dark variant of the primary branding color.</td></tr>
<tr><td><code>{@link #Theme_colorSwitchThumbNormal com.example.testgraphic:colorSwitchThumbNormal}</code></td><td> The color applied to framework switch thumbs in their normal state.</td></tr>
<tr><td><code>{@link #Theme_dividerHorizontal com.example.testgraphic: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.example.testgraphic: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.example.testgraphic:dropDownListViewStyle}</code></td><td> ListPopupWindow compatibility </td></tr>
<tr><td><code>{@link #Theme_dropdownListPreferredItemHeight com.example.testgraphic:dropdownListPreferredItemHeight}</code></td><td> The preferred item height for dropdown lists.</td></tr>
<tr><td><code>{@link #Theme_editTextBackground com.example.testgraphic:editTextBackground}</code></td><td> EditText background drawable.</td></tr>
<tr><td><code>{@link #Theme_editTextColor com.example.testgraphic:editTextColor}</code></td><td> EditText text foreground color.</td></tr>
<tr><td><code>{@link #Theme_homeAsUpIndicator com.example.testgraphic:homeAsUpIndicator}</code></td><td> Specifies a drawable to use for the 'home as up' indicator.</td></tr>
<tr><td><code>{@link #Theme_listChoiceBackgroundIndicator com.example.testgraphic:listChoiceBackgroundIndicator}</code></td><td> Drawable used as a background for selected list items.</td></tr>
<tr><td><code>{@link #Theme_listPopupWindowStyle com.example.testgraphic:listPopupWindowStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_listPreferredItemHeight com.example.testgraphic:listPreferredItemHeight}</code></td><td> The preferred list item height.</td></tr>
<tr><td><code>{@link #Theme_listPreferredItemHeightLarge com.example.testgraphic:listPreferredItemHeightLarge}</code></td><td> A larger, more robust list item height.</td></tr>
<tr><td><code>{@link #Theme_listPreferredItemHeightSmall com.example.testgraphic:listPreferredItemHeightSmall}</code></td><td> A smaller, sleeker list item height.</td></tr>
<tr><td><code>{@link #Theme_listPreferredItemPaddingLeft com.example.testgraphic:listPreferredItemPaddingLeft}</code></td><td> The preferred padding along the left edge of list items.</td></tr>
<tr><td><code>{@link #Theme_listPreferredItemPaddingRight com.example.testgraphic:listPreferredItemPaddingRight}</code></td><td> The preferred padding along the right edge of list items.</td></tr>
<tr><td><code>{@link #Theme_panelBackground com.example.testgraphic: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.example.testgraphic:panelMenuListTheme}</code></td><td> Default Panel Menu style.</td></tr>
<tr><td><code>{@link #Theme_panelMenuListWidth com.example.testgraphic:panelMenuListWidth}</code></td><td> Default Panel Menu width.</td></tr>
<tr><td><code>{@link #Theme_popupMenuStyle com.example.testgraphic:popupMenuStyle}</code></td><td> Default PopupMenu style.</td></tr>
<tr><td><code>{@link #Theme_popupWindowStyle com.example.testgraphic:popupWindowStyle}</code></td><td> Default PopupWindow style.</td></tr>
<tr><td><code>{@link #Theme_searchViewStyle com.example.testgraphic:searchViewStyle}</code></td><td> Style for the search query widget.</td></tr>
<tr><td><code>{@link #Theme_selectableItemBackground com.example.testgraphic: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.example.testgraphic:selectableItemBackgroundBorderless}</code></td><td> Background drawable for borderless standalone items that need focus/pressed states.</td></tr>
<tr><td><code>{@link #Theme_spinnerDropDownItemStyle com.example.testgraphic:spinnerDropDownItemStyle}</code></td><td> Default Spinner style.</td></tr>
<tr><td><code>{@link #Theme_spinnerStyle com.example.testgraphic:spinnerStyle}</code></td><td> Default Spinner style.</td></tr>
<tr><td><code>{@link #Theme_switchStyle com.example.testgraphic:switchStyle}</code></td><td> Default style for the Switch widget.</td></tr>
<tr><td><code>{@link #Theme_textAppearanceLargePopupMenu com.example.testgraphic: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.example.testgraphic:textAppearanceListItem}</code></td><td> The preferred TextAppearance for the primary text of list items.</td></tr>
<tr><td><code>{@link #Theme_textAppearanceListItemSmall com.example.testgraphic:textAppearanceListItemSmall}</code></td><td> The preferred TextAppearance for the primary text of small list items.</td></tr>
<tr><td><code>{@link #Theme_textAppearanceSearchResultSubtitle com.example.testgraphic:textAppearanceSearchResultSubtitle}</code></td><td> Text color, typeface, size, and style for system search result subtitle.</td></tr>
<tr><td><code>{@link #Theme_textAppearanceSearchResultTitle com.example.testgraphic:textAppearanceSearchResultTitle}</code></td><td> Text color, typeface, size, and style for system search result title.</td></tr>
<tr><td><code>{@link #Theme_textAppearanceSmallPopupMenu com.example.testgraphic: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.example.testgraphic: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.example.testgraphic:toolbarNavigationButtonStyle}</code></td><td> Default Toolar NavigationButtonStyle </td></tr>
<tr><td><code>{@link #Theme_toolbarStyle com.example.testgraphic:toolbarStyle}</code></td><td> Default Toolbar style.</td></tr>
<tr><td><code>{@link #Theme_windowActionBar com.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic:actionBarStyle
*/
public static final int Theme_actionBarStyle = 14;
/**
<p>This symbol is the offset where the {@link com.example.testgraphic.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.example.testgraphic: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.example.testgraphic:actionBarTabStyle
*/
public static final int Theme_actionBarTabStyle = 8;
/**
<p>This symbol is the offset where the {@link com.example.testgraphic.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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic:actionModeBackground
*/
public static final int Theme_actionModeBackground = 25;
/**
<p>This symbol is the offset where the {@link com.example.testgraphic.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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic:actionModeSplitBackground
*/
public static final int Theme_actionModeSplitBackground = 26;
/**
<p>This symbol is the offset where the {@link com.example.testgraphic.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.example.testgraphic: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.example.testgraphic:actionModeWebSearchDrawable
*/
public static final int Theme_actionModeWebSearchDrawable = 34;
/**
<p>This symbol is the offset where the {@link com.example.testgraphic.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.example.testgraphic:actionOverflowButtonStyle
*/
public static final int Theme_actionOverflowButtonStyle = 11;
/**
<p>This symbol is the offset where the {@link com.example.testgraphic.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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic:listChoiceBackgroundIndicator
*/
public static final int Theme_listChoiceBackgroundIndicator = 74;
/**
<p>This symbol is the offset where the {@link com.example.testgraphic.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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic:buttonGravity}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_collapseIcon com.example.testgraphic:collapseIcon}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_contentInsetEnd com.example.testgraphic:contentInsetEnd}</code></td><td> Minimum inset for content views within a bar.</td></tr>
<tr><td><code>{@link #Toolbar_contentInsetLeft com.example.testgraphic:contentInsetLeft}</code></td><td> Minimum inset for content views within a bar.</td></tr>
<tr><td><code>{@link #Toolbar_contentInsetRight com.example.testgraphic:contentInsetRight}</code></td><td> Minimum inset for content views within a bar.</td></tr>
<tr><td><code>{@link #Toolbar_contentInsetStart com.example.testgraphic:contentInsetStart}</code></td><td> Minimum inset for content views within a bar.</td></tr>
<tr><td><code>{@link #Toolbar_maxButtonHeight com.example.testgraphic:maxButtonHeight}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_navigationContentDescription com.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic:subtitle}</code></td><td> Specifies subtitle text used for navigationMode="normal" </td></tr>
<tr><td><code>{@link #Toolbar_subtitleTextAppearance com.example.testgraphic:subtitleTextAppearance}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_theme com.example.testgraphic:theme}</code></td><td> Specifies a theme override for a view.</td></tr>
<tr><td><code>{@link #Toolbar_title com.example.testgraphic:title}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_titleMarginBottom com.example.testgraphic:titleMarginBottom}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_titleMarginEnd com.example.testgraphic:titleMarginEnd}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_titleMarginStart com.example.testgraphic:titleMarginStart}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_titleMarginTop com.example.testgraphic:titleMarginTop}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_titleMargins com.example.testgraphic:titleMargins}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_titleTextAppearance com.example.testgraphic: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.example.testgraphic.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.example.testgraphic:buttonGravity
*/
public static final int Toolbar_buttonGravity = 18;
/**
<p>This symbol is the offset where the {@link com.example.testgraphic.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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic:contentInsetStart
*/
public static final int Toolbar_contentInsetStart = 4;
/**
<p>This symbol is the offset where the {@link com.example.testgraphic.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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic:subtitle
*/
public static final int Toolbar_subtitle = 3;
/**
<p>This symbol is the offset where the {@link com.example.testgraphic.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.example.testgraphic: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.example.testgraphic:theme
*/
public static final int Toolbar_theme = 17;
/**
<p>This symbol is the offset where the {@link com.example.testgraphic.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.example.testgraphic:title
*/
public static final int Toolbar_title = 2;
/**
<p>This symbol is the offset where the {@link com.example.testgraphic.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.example.testgraphic:titleMarginBottom
*/
public static final int Toolbar_titleMarginBottom = 15;
/**
<p>This symbol is the offset where the {@link com.example.testgraphic.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.example.testgraphic:titleMarginEnd
*/
public static final int Toolbar_titleMarginEnd = 13;
/**
<p>This symbol is the offset where the {@link com.example.testgraphic.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.example.testgraphic:titleMarginStart
*/
public static final int Toolbar_titleMarginStart = 12;
/**
<p>This symbol is the offset where the {@link com.example.testgraphic.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.example.testgraphic:titleMarginTop
*/
public static final int Toolbar_titleMarginTop = 14;
/**
<p>This symbol is the offset where the {@link com.example.testgraphic.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.example.testgraphic:titleMargins
*/
public static final int Toolbar_titleMargins = 11;
/**
<p>This symbol is the offset where the {@link com.example.testgraphic.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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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.example.testgraphic: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;
};
}
| [
"patpat1993@gmail.com"
] | patpat1993@gmail.com |
7d250fa156f02af01e0f5157f2c56288ac9d15df | 7239b7a851570a57e29232b12ca4f6c6b49a0768 | /shipping-service/src/test/java/com/xabe/orchestration/shipping/infrastructure/persistence/ShippingRepositoryImplTest.java | c871a0455f4886a763aeb82fcaea7ef896e45801 | [] | no_license | xabe/saga-orchestration | 91d5060a71869ef2b265eb7ea26cc257c17bc014 | f6664503205c1a9d4b61c51a432332a6b29e2b1a | refs/heads/master | 2023-07-25T19:50:17.279395 | 2021-09-03T16:56:22 | 2021-09-03T16:56:22 | 398,327,113 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 8,962 | java | package com.xabe.orchestration.shipping.infrastructure.persistence;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.hasSize;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.notNullValue;
import static org.hamcrest.Matchers.nullValue;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import com.xabe.orchestration.shipping.infrastructure.ShippingMother;
import com.xabe.orchestration.shipping.domain.entity.Shipping;
import com.xabe.orchestration.shipping.domain.repository.ShippingRepository;
import com.xabe.orchestration.shipping.infrastructure.persistence.dto.ShippingDTO;
import com.xabe.orchestration.shipping.infrastructure.persistence.mapper.PersistenceMapperImpl;
import io.smallrye.mutiny.Uni;
import java.util.List;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.mockito.ArgumentCaptor;
import org.slf4j.Logger;
class ShippingRepositoryImplTest {
private ShippingRepositoryPanache shippingRepositoryPanache;
private ShippingRepository shippingRepository;
@BeforeEach
public void setUp() throws Exception {
final Logger logger = mock(Logger.class);
this.shippingRepositoryPanache = mock(ShippingRepositoryPanache.class);
this.shippingRepository = new ShippingRepositoryImpl(logger, new PersistenceMapperImpl(), this.shippingRepositoryPanache);
}
@Test
public void shouldGetShipping() throws Exception {
//Given
final Long id = 1L;
final ShippingDTO shippingDTO = ShippingMother.createShippingDTO();
when(this.shippingRepositoryPanache.findById(id)).thenReturn(Uni.createFrom().item(shippingDTO));
//When
final Uni<Shipping> result = this.shippingRepository.getShipping(id);
//Then
assertThat(result, is(notNullValue()));
final Shipping shipping = result.subscribeAsCompletionStage().get();
assertThat(shipping.getId(), is(shippingDTO.getId()));
assertThat(shipping.getPurchaseId(), is(shippingDTO.getPurchaseId()));
assertThat(shipping.getUserId(), is(shippingDTO.getUserId()));
assertThat(shipping.getProductId(), is(shippingDTO.getProductId()));
assertThat(shipping.getPrice(), is(shippingDTO.getPrice().get()));
assertThat(shipping.getStatus().name(), is(shippingDTO.getStatus().name()));
assertThat(shipping.getCreatedAt(), is(shippingDTO.getCreatedAt()));
}
@Test
public void shouldGetAllShipments() throws Exception {
//Given
final ShippingDTO shippingDTO = ShippingMother.createShippingDTO();
when(this.shippingRepositoryPanache.listAll()).thenReturn(Uni.createFrom().item(List.of(shippingDTO)));
//When
final Uni<List<Shipping>> result = this.shippingRepository.getShipments();
//Then
assertThat(result, is(notNullValue()));
final List<Shipping> shippings = result.subscribeAsCompletionStage().get();
assertThat(shippings, is(notNullValue()));
assertThat(shippings, is(hasSize(1)));
final Shipping shipping = shippings.get(0);
assertThat(shipping.getId(), is(shippingDTO.getId()));
assertThat(shipping.getPurchaseId(), is(shippingDTO.getPurchaseId()));
assertThat(shipping.getUserId(), is(shippingDTO.getUserId()));
assertThat(shipping.getProductId(), is(shippingDTO.getProductId()));
assertThat(shipping.getPrice(), is(shippingDTO.getPrice().get()));
assertThat(shipping.getStatus().name(), is(shippingDTO.getStatus().name()));
assertThat(shipping.getCreatedAt(), is(shippingDTO.getCreatedAt()));
}
@Test
public void shouldCreateShipping() throws Exception {
//Given
final Shipping shipping = ShippingMother.createShipping();
final ShippingDTO shippingDTO = ShippingMother.createShippingDTO();
final ArgumentCaptor<ShippingDTO> argumentCaptor = ArgumentCaptor.forClass(ShippingDTO.class);
when(this.shippingRepositoryPanache.persistAndFlush(argumentCaptor.capture())).thenReturn(Uni.createFrom().item(shippingDTO));
//When
final Uni<Shipping> result = this.shippingRepository.create(shipping);
//Then
assertThat(result, is(notNullValue()));
final Shipping shippingResult = result.subscribeAsCompletionStage().get();
assertThat(shippingResult.getId(), is(shippingDTO.getId()));
assertThat(shippingResult.getPurchaseId(), is(shippingDTO.getPurchaseId()));
assertThat(shippingResult.getUserId(), is(shippingDTO.getUserId()));
assertThat(shippingResult.getProductId(), is(shippingDTO.getProductId()));
assertThat(shippingResult.getPrice(), is(shippingDTO.getPrice().get()));
assertThat(shippingResult.getStatus().name(), is(shippingDTO.getStatus().name()));
assertThat(shippingResult.getCreatedAt(), is(shippingDTO.getCreatedAt()));
final ShippingDTO value = argumentCaptor.getValue();
assertThat(value.getId(), is(nullValue()));
assertThat(value.getPurchaseId(), is(shipping.getPurchaseId()));
assertThat(value.getUserId(), is(shipping.getUserId()));
assertThat(value.getProductId(), is(shipping.getProductId()));
assertThat(value.getPrice().get(), is(shipping.getPrice()));
assertThat(value.getStatus().name(), is(shipping.getStatus().name()));
assertThat(value.getCreatedAt(), is(shipping.getCreatedAt()));
}
@Test
public void shouldUpdateShippingNew() throws Exception {
//Given
final Long id = 1L;
final Shipping shipping = ShippingMother.createShipping();
final ShippingDTO shippingDTO = ShippingMother.createShippingDTO();
final ArgumentCaptor<ShippingDTO> argumentCaptor = ArgumentCaptor.forClass(ShippingDTO.class);
when(this.shippingRepositoryPanache.findById(id)).thenReturn(Uni.createFrom().nullItem());
when(this.shippingRepositoryPanache.persistAndFlush(argumentCaptor.capture())).thenReturn(Uni.createFrom().item(shippingDTO));
//When
final Uni<Shipping> result = this.shippingRepository.update(id, shipping);
//Then
assertThat(result, is(notNullValue()));
final Shipping shippingResult = result.subscribeAsCompletionStage().get();
assertThat(shippingResult.getId(), is(shippingDTO.getId()));
assertThat(shippingResult.getPurchaseId(), is(shippingDTO.getPurchaseId()));
assertThat(shippingResult.getUserId(), is(shippingDTO.getUserId()));
assertThat(shippingResult.getProductId(), is(shippingDTO.getProductId()));
assertThat(shippingResult.getPrice(), is(shippingDTO.getPrice().get()));
assertThat(shippingResult.getStatus().name(), is(shippingDTO.getStatus().name()));
assertThat(shippingResult.getCreatedAt(), is(shippingDTO.getCreatedAt()));
final ShippingDTO value = argumentCaptor.getValue();
assertThat(value.getId(), is(nullValue()));
assertThat(value.getPurchaseId(), is(shipping.getPurchaseId()));
assertThat(value.getUserId(), is(shipping.getUserId()));
assertThat(value.getProductId(), is(shipping.getProductId()));
assertThat(value.getPrice().get(), is(shipping.getPrice()));
assertThat(value.getStatus().name(), is(shipping.getStatus().name()));
assertThat(value.getCreatedAt(), is(shipping.getCreatedAt()));
}
@Test
public void shouldUpdateShippingOld() throws Exception {
//Given
final Long id = 1L;
final Shipping shipping = ShippingMother.createShippingNew();
final ShippingDTO shippingDTO = ShippingMother.createShippingDTO();
final ArgumentCaptor<ShippingDTO> argumentCaptor = ArgumentCaptor.forClass(ShippingDTO.class);
when(this.shippingRepositoryPanache.findById(id)).thenReturn(Uni.createFrom().item(shippingDTO));
when(this.shippingRepositoryPanache.persistAndFlush(argumentCaptor.capture())).thenReturn(Uni.createFrom().item(shippingDTO));
//When
final Uni<Shipping> result = this.shippingRepository.update(id, shipping);
//Then
assertThat(result, is(notNullValue()));
final Shipping shippingResult = result.subscribeAsCompletionStage().get();
assertThat(shippingResult.getId(), is(shippingDTO.getId()));
assertThat(shippingResult.getPurchaseId(), is(shippingDTO.getPurchaseId()));
assertThat(shippingResult.getUserId(), is(shippingDTO.getUserId()));
assertThat(shippingResult.getProductId(), is(shippingDTO.getProductId()));
assertThat(shippingResult.getPrice(), is(shippingDTO.getPrice().get()));
assertThat(shippingResult.getStatus().name(), is(shippingDTO.getStatus().name()));
assertThat(shippingResult.getCreatedAt(), is(shippingDTO.getCreatedAt()));
final ShippingDTO value = argumentCaptor.getValue();
assertThat(value.getId(), is(shipping.getId()));
assertThat(value.getPurchaseId(), is(shipping.getPurchaseId()));
assertThat(value.getUserId(), is(shipping.getUserId()));
assertThat(value.getProductId(), is(shipping.getProductId()));
assertThat(value.getPrice().get(), is(shipping.getPrice()));
assertThat(value.getStatus().name(), is(shipping.getStatus().name()));
assertThat(value.getCreatedAt(), is(shipping.getCreatedAt()));
}
} | [
"chabirae@ext.zara.com"
] | chabirae@ext.zara.com |
5f7487939553bca57dd407dca33ca799ace71e0e | 4f24e6b0b08ad1c23e238e08807705153b9bc8aa | /libs/datetimepicker/src/com/android/datetimepicker/time/RadialTextsView.java | b6f98c9165115b7bd2d25f7fabe3353439ee6f9b | [] | no_license | nvanbenschoten/Toga | c24ba07edac7f20b9b0dbb273cf5f3143645aced | 3b66ab20da9f97f303d9b751fe9e83126626c841 | refs/heads/master | 2020-05-18T11:21:28.312925 | 2013-11-05T00:42:40 | 2013-11-05T00:42:40 | 13,791,279 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 14,640 | java | /*
* Copyright (C) 2013 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.android.datetimepicker.time;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Paint.Align;
import android.graphics.Typeface;
import android.util.Log;
import android.view.View;
import com.android.datetimepicker.R;
import com.nineoldandroids.animation.Keyframe;
import com.nineoldandroids.animation.ObjectAnimator;
import com.nineoldandroids.animation.PropertyValuesHolder;
import com.nineoldandroids.animation.ValueAnimator;
import com.nineoldandroids.animation.ValueAnimator.AnimatorUpdateListener;
/**
* A view to show a series of numbers in a circular pattern.
*/
public class RadialTextsView extends View {
private final static String TAG = "RadialTextsView";
private final Paint mPaint = new Paint();
private boolean mDrawValuesReady;
private boolean mIsInitialized;
private Typeface mTypefaceLight;
private Typeface mTypefaceRegular;
private String[] mTexts;
private String[] mInnerTexts;
private boolean mIs24HourMode;
private boolean mHasInnerCircle;
private float mCircleRadiusMultiplier;
private float mAmPmCircleRadiusMultiplier;
private float mNumbersRadiusMultiplier;
private float mInnerNumbersRadiusMultiplier;
private float mTextSizeMultiplier;
private float mInnerTextSizeMultiplier;
private int mXCenter;
private int mYCenter;
private float mCircleRadius;
private boolean mTextGridValuesDirty;
private float mTextSize;
private float mInnerTextSize;
private float[] mTextGridHeights;
private float[] mTextGridWidths;
private float[] mInnerTextGridHeights;
private float[] mInnerTextGridWidths;
private float mAnimationRadiusMultiplier;
private float mTransitionMidRadiusMultiplier;
private float mTransitionEndRadiusMultiplier;
ObjectAnimator mDisappearAnimator;
ObjectAnimator mReappearAnimator;
private InvalidateUpdateListener mInvalidateUpdateListener;
public RadialTextsView(Context context) {
super(context);
mIsInitialized = false;
}
public void initialize(Resources res, String[] texts, String[] innerTexts,
boolean is24HourMode, boolean disappearsOut) {
if (mIsInitialized) {
Log.e(TAG, "This RadialTextsView may only be initialized once.");
return;
}
// Set up the paint.
int numbersTextColor = res.getColor(R.color.numbers_text_color);
mPaint.setColor(numbersTextColor);
String typefaceFamily = res.getString(R.string.radial_numbers_typeface);
mTypefaceLight = Typeface.create(typefaceFamily, Typeface.NORMAL);
String typefaceFamilyRegular = res.getString(R.string.sans_serif);
mTypefaceRegular = Typeface.create(typefaceFamilyRegular, Typeface.NORMAL);
mPaint.setAntiAlias(true);
mPaint.setTextAlign(Align.CENTER);
mTexts = texts;
mInnerTexts = innerTexts;
mIs24HourMode = is24HourMode;
mHasInnerCircle = (innerTexts != null);
// Calculate the radius for the main circle.
if (is24HourMode) {
mCircleRadiusMultiplier = Float.parseFloat(
res.getString(R.string.circle_radius_multiplier_24HourMode));
} else {
mCircleRadiusMultiplier = Float.parseFloat(
res.getString(R.string.circle_radius_multiplier));
mAmPmCircleRadiusMultiplier =
Float.parseFloat(res.getString(R.string.ampm_circle_radius_multiplier));
}
// Initialize the widths and heights of the grid, and calculate the values for the numbers.
mTextGridHeights = new float[7];
mTextGridWidths = new float[7];
if (mHasInnerCircle) {
mNumbersRadiusMultiplier = Float.parseFloat(
res.getString(R.string.numbers_radius_multiplier_outer));
mTextSizeMultiplier = Float.parseFloat(
res.getString(R.string.text_size_multiplier_outer));
mInnerNumbersRadiusMultiplier = Float.parseFloat(
res.getString(R.string.numbers_radius_multiplier_inner));
mInnerTextSizeMultiplier = Float.parseFloat(
res.getString(R.string.text_size_multiplier_inner));
mInnerTextGridHeights = new float[7];
mInnerTextGridWidths = new float[7];
} else {
mNumbersRadiusMultiplier = Float.parseFloat(
res.getString(R.string.numbers_radius_multiplier_normal));
mTextSizeMultiplier = Float.parseFloat(
res.getString(R.string.text_size_multiplier_normal));
}
mAnimationRadiusMultiplier = 1;
mTransitionMidRadiusMultiplier = 1f + (0.05f * (disappearsOut? -1 : 1));
mTransitionEndRadiusMultiplier = 1f + (0.3f * (disappearsOut? 1 : -1));
mInvalidateUpdateListener = new InvalidateUpdateListener();
mTextGridValuesDirty = true;
mIsInitialized = true;
}
/**
* Allows for smoother animation.
*/
@Override
public boolean hasOverlappingRendering() {
return false;
}
/**
* Used by the animation to move the numbers in and out.
*/
public void setAnimationRadiusMultiplier(float animationRadiusMultiplier) {
mAnimationRadiusMultiplier = animationRadiusMultiplier;
mTextGridValuesDirty = true;
}
@Override
public void onDraw(Canvas canvas) {
int viewWidth = getWidth();
if (viewWidth == 0 || !mIsInitialized) {
return;
}
if (!mDrawValuesReady) {
mXCenter = getWidth() / 2;
mYCenter = getHeight() / 2;
mCircleRadius = Math.min(mXCenter, mYCenter) * mCircleRadiusMultiplier;
if (!mIs24HourMode) {
// We'll need to draw the AM/PM circles, so the main circle will need to have
// a slightly higher center. To keep the entire view centered vertically, we'll
// have to push it up by half the radius of the AM/PM circles.
float amPmCircleRadius = mCircleRadius * mAmPmCircleRadiusMultiplier;
mYCenter -= amPmCircleRadius / 2;
}
mTextSize = mCircleRadius * mTextSizeMultiplier;
if (mHasInnerCircle) {
mInnerTextSize = mCircleRadius * mInnerTextSizeMultiplier;
}
// Because the text positions will be static, pre-render the animations.
renderAnimations();
mTextGridValuesDirty = true;
mDrawValuesReady = true;
}
// Calculate the text positions, but only if they've changed since the last onDraw.
if (mTextGridValuesDirty) {
float numbersRadius =
mCircleRadius * mNumbersRadiusMultiplier * mAnimationRadiusMultiplier;
// Calculate the positions for the 12 numbers in the main circle.
calculateGridSizes(numbersRadius, mXCenter, mYCenter,
mTextSize, mTextGridHeights, mTextGridWidths);
if (mHasInnerCircle) {
// If we have an inner circle, calculate those positions too.
float innerNumbersRadius =
mCircleRadius * mInnerNumbersRadiusMultiplier * mAnimationRadiusMultiplier;
calculateGridSizes(innerNumbersRadius, mXCenter, mYCenter,
mInnerTextSize, mInnerTextGridHeights, mInnerTextGridWidths);
}
mTextGridValuesDirty = false;
}
// Draw the texts in the pre-calculated positions.
drawTexts(canvas, mTextSize, mTypefaceLight, mTexts, mTextGridWidths, mTextGridHeights);
if (mHasInnerCircle) {
drawTexts(canvas, mInnerTextSize, mTypefaceRegular, mInnerTexts,
mInnerTextGridWidths, mInnerTextGridHeights);
}
}
/**
* Using the trigonometric Unit Circle, calculate the positions that the text will need to be
* drawn at based on the specified circle radius. Place the values in the textGridHeights and
* textGridWidths parameters.
*/
private void calculateGridSizes(float numbersRadius, float xCenter, float yCenter,
float textSize, float[] textGridHeights, float[] textGridWidths) {
/*
* The numbers need to be drawn in a 7x7 grid, representing the points on the Unit Circle.
*/
float offset1 = numbersRadius;
// cos(30) = a / r => r * cos(30) = a => r * √3/2 = a
float offset2 = numbersRadius * ((float) Math.sqrt(3)) / 2f;
// sin(30) = o / r => r * sin(30) = o => r / 2 = a
float offset3 = numbersRadius / 2f;
mPaint.setTextSize(textSize);
// We'll need yTextBase to be slightly lower to account for the text's baseline.
yCenter -= (mPaint.descent() + mPaint.ascent()) / 2;
textGridHeights[0] = yCenter - offset1;
textGridWidths[0] = xCenter - offset1;
textGridHeights[1] = yCenter - offset2;
textGridWidths[1] = xCenter - offset2;
textGridHeights[2] = yCenter - offset3;
textGridWidths[2] = xCenter - offset3;
textGridHeights[3] = yCenter;
textGridWidths[3] = xCenter;
textGridHeights[4] = yCenter + offset3;
textGridWidths[4] = xCenter + offset3;
textGridHeights[5] = yCenter + offset2;
textGridWidths[5] = xCenter + offset2;
textGridHeights[6] = yCenter + offset1;
textGridWidths[6] = xCenter + offset1;
}
/**
* Draw the 12 text values at the positions specified by the textGrid parameters.
*/
private void drawTexts(Canvas canvas, float textSize, Typeface typeface, String[] texts,
float[] textGridWidths, float[] textGridHeights) {
mPaint.setTextSize(textSize);
mPaint.setTypeface(typeface);
canvas.drawText(texts[0], textGridWidths[3], textGridHeights[0], mPaint);
canvas.drawText(texts[1], textGridWidths[4], textGridHeights[1], mPaint);
canvas.drawText(texts[2], textGridWidths[5], textGridHeights[2], mPaint);
canvas.drawText(texts[3], textGridWidths[6], textGridHeights[3], mPaint);
canvas.drawText(texts[4], textGridWidths[5], textGridHeights[4], mPaint);
canvas.drawText(texts[5], textGridWidths[4], textGridHeights[5], mPaint);
canvas.drawText(texts[6], textGridWidths[3], textGridHeights[6], mPaint);
canvas.drawText(texts[7], textGridWidths[2], textGridHeights[5], mPaint);
canvas.drawText(texts[8], textGridWidths[1], textGridHeights[4], mPaint);
canvas.drawText(texts[9], textGridWidths[0], textGridHeights[3], mPaint);
canvas.drawText(texts[10], textGridWidths[1], textGridHeights[2], mPaint);
canvas.drawText(texts[11], textGridWidths[2], textGridHeights[1], mPaint);
}
/**
* Render the animations for appearing and disappearing.
*/
private void renderAnimations() {
Keyframe kf0, kf1, kf2, kf3;
float midwayPoint = 0.2f;
int duration = 500;
// Set up animator for disappearing.
kf0 = Keyframe.ofFloat(0f, 1);
kf1 = Keyframe.ofFloat(midwayPoint, mTransitionMidRadiusMultiplier);
kf2 = Keyframe.ofFloat(1f, mTransitionEndRadiusMultiplier);
PropertyValuesHolder radiusDisappear = PropertyValuesHolder.ofKeyframe(
"animationRadiusMultiplier", kf0, kf1, kf2);
kf0 = Keyframe.ofFloat(0f, 1f);
kf1 = Keyframe.ofFloat(1f, 0f);
PropertyValuesHolder fadeOut = PropertyValuesHolder.ofKeyframe("alpha", kf0, kf1);
mDisappearAnimator = ObjectAnimator.ofPropertyValuesHolder(
this, radiusDisappear, fadeOut).setDuration(duration);
mDisappearAnimator.addUpdateListener(mInvalidateUpdateListener);
// Set up animator for reappearing.
float delayMultiplier = 0.25f;
float transitionDurationMultiplier = 1f;
float totalDurationMultiplier = transitionDurationMultiplier + delayMultiplier;
int totalDuration = (int) (duration * totalDurationMultiplier);
float delayPoint = (delayMultiplier * duration) / totalDuration;
midwayPoint = 1 - (midwayPoint * (1 - delayPoint));
kf0 = Keyframe.ofFloat(0f, mTransitionEndRadiusMultiplier);
kf1 = Keyframe.ofFloat(delayPoint, mTransitionEndRadiusMultiplier);
kf2 = Keyframe.ofFloat(midwayPoint, mTransitionMidRadiusMultiplier);
kf3 = Keyframe.ofFloat(1f, 1);
PropertyValuesHolder radiusReappear = PropertyValuesHolder.ofKeyframe(
"animationRadiusMultiplier", kf0, kf1, kf2, kf3);
kf0 = Keyframe.ofFloat(0f, 0f);
kf1 = Keyframe.ofFloat(delayPoint, 0f);
kf2 = Keyframe.ofFloat(1f, 1f);
PropertyValuesHolder fadeIn = PropertyValuesHolder.ofKeyframe("alpha", kf0, kf1, kf2);
mReappearAnimator = ObjectAnimator.ofPropertyValuesHolder(
this, radiusReappear, fadeIn).setDuration(totalDuration);
mReappearAnimator.addUpdateListener(mInvalidateUpdateListener);
}
public ObjectAnimator getDisappearAnimator() {
if (!mIsInitialized || !mDrawValuesReady || mDisappearAnimator == null) {
Log.e(TAG, "RadialTextView was not ready for animation.");
return null;
}
return mDisappearAnimator;
}
public ObjectAnimator getReappearAnimator() {
if (!mIsInitialized || !mDrawValuesReady || mReappearAnimator == null) {
Log.e(TAG, "RadialTextView was not ready for animation.");
return null;
}
return mReappearAnimator;
}
private class InvalidateUpdateListener implements AnimatorUpdateListener {
@Override
public void onAnimationUpdate(ValueAnimator animation) {
RadialTextsView.this.invalidate();
}
}
}
| [
"nvanbenschoten@gmail.com"
] | nvanbenschoten@gmail.com |
8db81dce85a07f323b2150e01f4607ee44a3a422 | dd1117055928acd073147e6718bcb17513747a24 | /LpfManage/src/Json/NewBridge.java | 4c35d5c7e0cc394e6dda5c318c2087514c870c53 | [] | no_license | acai418755769/myProject | bb5b143f8325adbd7385771999e6311846e06a87 | 130945fb008eabba92501f646c3f95b91e02ee0e | refs/heads/master | 2020-12-24T12:20:03.435876 | 2016-06-20T10:54:18 | 2016-06-20T10:54:18 | 61,540,126 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 795 | java | package Json;
public class NewBridge {
private int id;
private int _uid;
private String bname;
private int rtimes;
private int ctimes;
private int mtimes;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public int get_uid() {
return _uid;
}
public void set_uid(int uid) {
_uid = uid;
}
public String getBname() {
return bname;
}
public void setBname(String bname) {
this.bname = bname;
}
public int getRtimes() {
return rtimes;
}
public void setRtimes(int rtimes) {
this.rtimes = rtimes;
}
public int getCtimes() {
return ctimes;
}
public void setCtimes(int ctimes) {
this.ctimes = ctimes;
}
public int getMtimes() {
return mtimes;
}
public void setMtimes(int mtimes) {
this.mtimes = mtimes;
}
}
| [
"acai418755769@126.com"
] | acai418755769@126.com |
e19a218e12ef12abe3ee987c035efd713eecab67 | 3e32df055027c751de161a9d978ad4823f46a38c | /client/src/main/java/nz/co/fitnet/wizard/HelpAction.java | c888e10bd97bee091573a3671c1c915b616788b2 | [] | no_license | williamanzac/dnd-tools | 11d28c7130c6cfcc3f8050085f0d7da663c192d3 | aeb6530920a5c7aba095f1944a49a2d98bc5f9c1 | refs/heads/master | 2023-08-16T05:42:49.673734 | 2023-03-30T19:28:10 | 2023-03-30T19:28:10 | 123,676,485 | 0 | 0 | null | 2023-08-15T14:59:43 | 2018-03-03T09:09:13 | Java | UTF-8 | Java | false | false | 1,843 | java | /**
* Wizard Framework
* Copyright 2004 - 2005 Andrew Pietsch
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* $Id: HelpAction.java,v 1.3 2005/05/16 23:06:57 pietschy Exp $
*/
package nz.co.fitnet.wizard;
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import javax.swing.Action;
/**
*
*/
class HelpAction extends AbstractAction {
/**
*
*/
private static final long serialVersionUID = 4960250970019852402L;
private final Wizard wizard;
private HelpBroker broker;
protected HelpAction(final Wizard wizard) {
super(I18n.getString("help.text"));
this.wizard = wizard;
putValue(Action.MNEMONIC_KEY, new Integer(I18n.getMnemonic("help.mnemonic")));
wizard.addPropertyChangeListener("helpBroker", evt -> configureState());
configureState();
}
@Override
public void actionPerformed(final ActionEvent e) {
final HelpBroker helpBroker = wizard.getHelpBroker();
if (helpBroker != null) {
helpBroker.activateHelp(wizard, wizard.getModel());
}
}
private void configureState() {
setEnabled(wizard.getHelpBroker() != null);
}
}
| [
"william.anzac@gmail.com"
] | william.anzac@gmail.com |
f55679eeca88f0ea177c3ea0baa1bbee7ac9e233 | 4cf576955660797a593f03ea620f4ffcfd94678a | /src/main/java/com/home/practice/cep/composition/challenge/v1/Wall.java | 70c484615449f845275dd2382617afa8441cb49e | [] | no_license | dsarateanu/java-practice | 35dfea9ee649fb1a67f6777dd92e8bcc635f0261 | 8c9577f62582a227655de5838800567687302d85 | refs/heads/master | 2020-04-05T18:11:45.716509 | 2018-11-11T15:22:22 | 2018-11-11T15:22:22 | 157,091,933 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 257 | java | package com.home.practice.cep.composition.challenge.v1;
public class Wall {
private String direction;
public Wall(String direction) {
this.direction = direction;
}
public String getDirection() {
return direction;
}
}
| [
"daniel.sarateanu@yahoo.com"
] | daniel.sarateanu@yahoo.com |
fcb9a47d4a2d5a72eae6e8b3dc353de51389b68f | 2270e5018c00356ac8f78de0bad3d0241f02efff | /CSAI -- Project 1/part2/BinaryHeap.java | d6d6e04fb2f009797e7f3d6d041f7d95f50f6189 | [] | no_license | mingyaoxiao/CSAI---Project-1 | 711206bef007732735b53216e0fef766df9d9118 | 3f398b7a1f0c6cf016e43097a3db50f8570e36cf | refs/heads/master | 2020-04-22T07:47:14.448696 | 2019-02-28T04:30:23 | 2019-02-28T04:30:23 | 170,225,217 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,034 | java | package part2;
import java.util.ArrayList;
import java.util.Comparator;
public class BinaryHeap<E>
{
public ArrayList<E> heap;
public Comparator<E> comp;
public BinaryHeap(Comparator<E> c)
{
heap = new ArrayList<E>();
comp = c;
}
public void clear()
{
heap.clear();
}
public boolean contains(E c)
{
return heap.contains(c);
}
public int parent(int n)
{
return (n - 1) / 2;
}
public int leftChild(int n)
{
return 2 * n + 1;
}
public int rightChild(int n)
{
return 2 * n + 2;
}
public void insert(E c)
{
heap.add(c);
int index = heap.size() - 1;
heapifyUp(index);
}
public void delete(E c)
{
int index = heap.indexOf(c);
if(index == heap.size() - 1)
{
heap.remove(heap.size() - 1);
return;
}
E temp = heap.remove(heap.size() - 1);
heap.set(index, temp);
if(index > 0 && comp.compare(heap.get(index), heap.get(parent(index))) < 0)
heapifyUp(index);
else
heapifyDown(index);
}
public void swap(int a, int b)
{
E c = heap.get(a);
heap.set(a, heap.get(b));
heap.set(b, c);
}
public E peek()
{
if(heap.size() == 0)
return null;
else
return heap.get(0);
}
public E poll()
{
if(heap.size() == 0)
return null;
else if(heap.size() == 1)
{
return heap.remove(0);
}
else
{
E min = heap.get(0);
heap.set(0, heap.remove(heap.size() - 1));
heapifyDown(0);
return min;
}
}
public void heapifyUp(int x)
{
while(x > 0 && comp.compare(heap.get(x), heap.get(parent(x))) < 0)
{
swap(x, parent(x));
x = parent(x);
}
}
public void heapifyDown(int x)
{
int l = leftChild(x);
int r = rightChild(x);
int min = Integer.MIN_VALUE;
if(l <= heap.size() - 1 && comp.compare(heap.get(l), heap.get(x)) < 0)
min = l;
else
min = x;
if(r <= heap.size() - 1 && comp.compare(heap.get(r), heap.get(min)) < 0)
min = r;
if(x != min)
{
swap(x, min);
heapifyDown(min);
}
}
/*
public static void main(String[] args)
{
BinaryHeap<String> pq = new BinaryHeap<String>(String::compareTo);
pq.insert("cat");
pq.insert("dog");
pq.insert("bee");
System.out.println("Smallest is: " + pq.peek());
System.out.println("Smallest again: " + pq.poll());
System.out.println("Next smallest is: " + pq.poll());
System.out.println("Is it empty? : " + pq.heap.isEmpty());
pq.insert("eagle");
System.out.println("Next smallest is: " + pq.poll());
System.out.println("Next smallest is: " + pq.poll());
System.out.println("Is it empty? : " + pq.heap.isEmpty());
System.out.println("Min of empty queue: " + pq.peek());
System.out.println("Remove min of empty queue: " + pq.poll());
pq.insert("bear");
System.out.println("Smallest is: " + pq.peek());
System.out.println("Smallest again: " + pq.poll());
pq.insert("cat");
pq.insert("dog");
pq.insert("sheep");
pq.insert("cow");
pq.insert("eagle");
pq.insert("bee");
pq.insert("lion");
pq.insert("tiger");
pq.insert("zebra");
pq.insert("ant");
System.out.println("Bigger example:");
System.out.println("Smallest is: " + pq.poll());
System.out.println("Next smallest is: " + pq.poll());
System.out.println("Next smallest is: " + pq.poll());
System.out.println("Next smallest is: " + pq.poll());
System.out.println("Next smallest is: " + pq.poll());
System.out.println("Next smallest is: " + pq.poll());
System.out.println("Next smallest is: " + pq.poll());
System.out.println("Next smallest is: " + pq.poll());
System.out.println("Next smallest is: " + pq.poll());
System.out.println("Next smallest is: " + pq.poll());
System.out.println("Next smallest is: " + pq.poll());
pq.insert("lol");
pq.clear();
if(pq.contains("lol"))
System.out.println("yes");
else
System.out.println("no");
}
*/
}
| [
"mx63@scarletmail.rutgers.edu"
] | mx63@scarletmail.rutgers.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.