blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
4
410
content_id
stringlengths
40
40
detected_licenses
sequencelengths
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
689M
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
131 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
32 values
content
stringlengths
3
9.45M
authors
sequencelengths
1
1
author_id
stringlengths
0
313
291c3cd5daea8a92b360da62b972acf5d7c9541c
fc5b25e11738c9a4917d5a8eb5510e9be202f937
/source/test/java/com/restfb/types/UserTest.java
0134e7ee5aa128d65c5216d975d9f6e85ce5bb1a
[ "MIT" ]
permissive
fullcontact/restfb
fbca83208aa2bb9e3a582e69af7e40b559d6d915
a2bddbe2396cd0e9906fbead494fb90b7a7f4f46
refs/heads/master
2023-03-05T06:37:06.852066
2015-01-07T21:26:20
2015-01-07T21:26:20
28,934,643
0
1
null
2015-01-07T21:18:33
2015-01-07T21:18:33
null
UTF-8
Java
false
false
2,587
java
/* * Copyright (c) 2010-2014 Norbert Bartels * 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 com.restfb.types; import com.restfb.AbstractJsonMapperTests; import com.restfb.types.User.Picture; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import org.junit.Test; public class UserTest extends AbstractJsonMapperTests { @Test public void checkUserPicture() { User exampleUser = createJsonMapper().toJavaObject(jsonFromClasspath("v1_0/user-picture"), User.class); assertEquals("Tester", exampleUser.getName()); assertEquals("123456789", exampleUser.getId()); Picture pic = exampleUser.getPicture(); assertFalse(pic.getIsSilhouette()); assertNotNull(pic.getUrl()); assertEquals("https://fbcdn-profile-a.akamaihd.net/profilepic", pic.getUrl()); } @Test public void checkUserNoPicture() { User exampleUser = createJsonMapper().toJavaObject(jsonFromClasspath("v1_0/user-no-picture"), User.class); assertEquals("Tester", exampleUser.getName()); assertEquals("123456789", exampleUser.getId()); assertTrue(null == exampleUser.getPicture()); } }
2cf70deae4b9c3ac9eb8a6eacc89c314aee9f57d
d45337ca02bec9ab1727d722f70ec0f9c118f8a0
/src/strings_and_dialogs/MorningZombie.java
991b8dc7b3eaaccb8a091ffdbaa4d282accfb0f3
[]
no_license
League-Level0-Student/level-0-module-0-CesarTadeo
c80004d41eab28f59f067991665e6d6621dfe3bc
9a304fc8b8f688a3fd9dbf4b53900c2aa1e2f5bc
refs/heads/master
2020-04-04T14:37:05.367538
2018-11-03T18:27:55
2018-11-03T18:27:55
156,005,349
0
0
null
null
null
null
UTF-8
Java
false
false
613
java
package strings_and_dialogs; import javax.swing.JOptionPane; public class MorningZombie { public static void main(String[] args) { JOptionPane.showMessageDialog(null,"Wake Up"); JOptionPane.showMessageDialog(null, "Eat Breakfast"); JOptionPane.showMessageDialog(null,"Drive to school"); JOptionPane.showMessageDialog(null,"Learn At School"); JOptionPane.showMessageDialog(null,"Drive Home"); JOptionPane.showMessageDialog(null,"Do Homework"); JOptionPane.showMessageDialog(null,"Take a shower"); JOptionPane.showMessageDialog(null,"Eat Dinner"); JOptionPane.showMessageDialog(null,"Repeat"); } }
2fd1b0b635bd33b462b63170707d6d56963673ad
90a58fe73c64888593ef3c88ea23faeb05259c37
/AdjacencyList.java
5f2f2a6e7af5567d747d059702dd80c9c4d507b3
[]
no_license
ie03-aizu-2019/ie03project-team_brother
f0332c22aa43f98ba8fa9fe5b139737e9013f09b
298b772a6b5625c2fa4047d8930a55c996475956
refs/heads/master
2020-05-07T11:52:26.020211
2019-07-29T05:04:43
2019-07-29T05:04:43
180,478,911
0
0
null
null
null
null
UTF-8
Java
false
false
1,037
java
import java.util.Map; import java.util.Map.Entry; import java.util.HashMap; import java.util.Set; class AdjacencyList{ /*adlist has Map(Index,distance)*/ private Map<Integer,Double> adlist; AdjacencyList(){ adlist = new HashMap<Integer,Double>(); } public void put(int key,double d){ adlist.put((Integer)key,(Double)d); } public double get(int key){ double i=adlist.get((Integer)key); if((Double)i!=null){ return (double)i; }else{ return -1.0; } } public boolean remove(int key){ double i=adlist.remove((Integer)key); if((Double)i!=null){ return true; }else{ return false; } } public boolean containsKey(int key){ return adlist.containsKey((Integer)key); } public HashMap deepcopy(){ return new HashMap<Integer,Double>(adlist); } public Set<Integer> keySet(){ return adlist.keySet(); } public Set<Entry<Integer,Double>> entrySet(){ return adlist.entrySet(); }//usage(blog): https://qiita.com/kei2100/items/0ce97733c92fdcb9c5a9 }
5415d94289dc90a0958b1b1d7c3ecf67bc0feefc
de8bae2c0fe2862e48ba2237647de4b1c2014b3b
/src/java/ups/generated/jaxb/ship/PaymentType.java
c5f9771b8090081d1817b38e28db47f13027cd93
[]
no_license
millettjon/sistemi
e0b257ec0a15c95e20c94e563882fe04f7bb0c93
c878dd503b94ff643f9cd6927479a1e456238f2f
refs/heads/master
2022-12-07T04:04:26.274266
2020-09-09T16:53:52
2020-09-09T16:53:52
294,168,626
0
0
null
null
null
null
UTF-8
Java
false
false
2,411
java
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2014.02.18 at 09:59:43 PM CST // package ups.generated.jaxb.ship; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for PaymentType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="PaymentType"> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="Code" type="{http://www.w3.org/2001/XMLSchema}string"/> * &lt;element name="Description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "PaymentType", propOrder = { "code", "description" }) public class PaymentType { @XmlElement(name = "Code", required = true) protected String code; @XmlElement(name = "Description") protected String description; /** * Gets the value of the code property. * * @return * possible object is * {@link String } * */ public String getCode() { return code; } /** * Sets the value of the code property. * * @param value * allowed object is * {@link String } * */ public void setCode(String value) { this.code = value; } /** * Gets the value of the description property. * * @return * possible object is * {@link String } * */ public String getDescription() { return description; } /** * Sets the value of the description property. * * @param value * allowed object is * {@link String } * */ public void setDescription(String value) { this.description = value; } }
ba4ed7780fe7f94b802e0741c276a37de05d65e6
c1ca1690c4d41301e3bf8c286bf51d1cf2676e68
/app/src/main/java/com/example/hyungtaecfigur/dicttalk/NotificationsActivity.java
04e6feb120b12f6cfc8a5fee4c13485e00aaa386
[]
no_license
hyungtaecf/DictTalk
8cc8a1bfbd46341226080cb4b5209efbcc885d3a
0cf9ccfea9c8b43b51f3d3bb3954dd28257f9eb6
refs/heads/master
2020-04-19T14:42:33.511330
2020-03-08T00:57:13
2020-03-08T00:57:13
168,251,476
0
0
null
null
null
null
UTF-8
Java
false
false
2,219
java
package com.example.hyungtaecfigur.dicttalk; import android.content.Intent; import android.support.annotation.NonNull; import android.support.design.widget.BottomNavigationView; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.support.v7.widget.Toolbar; import android.view.MenuItem; public class NotificationsActivity extends AppCompatActivity { //TODO Notifications when friends make a request //TODO Notifications when someone answers a request //TODO Notifications when someone like a contribution //TODO Notifications when someone dislike a contribution //TODO Notifications when someone comment a contribution //TODO Notifications when someone makes a mention //TODO Notifications when someone add a contribution to a word that the user added @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_notifications); initializeToolbarAndBottomNavigation(); } public void initializeToolbarAndBottomNavigation() { Toolbar toolbar = (Toolbar) findViewById(R.id.app_bar); setSupportActionBar(toolbar); BottomNavigationView bottomNavigationView = (BottomNavigationView) findViewById(R.id.bottom_navigation); bottomNavigationView.setOnNavigationItemSelectedListener(new BottomNavigationView.OnNavigationItemSelectedListener() { @Override public boolean onNavigationItemSelected(@NonNull MenuItem item) { switch (item.getItemId()) { case R.id.action_mainMenu: startActivity(new Intent(getApplicationContext(), MainMenuActivity.class)); break; case R.id.action_notifications: startActivity(new Intent(getApplicationContext(), NotificationsActivity.class)); break; case R.id.action_profile: startActivity(new Intent(getApplicationContext(), MyProfileActivity.class)); break; } return true; } }); } }
cb000fe85802dde9b06cf185225d6d8d7c33b20e
736cf2870cbb51d619f56a693875e90868d9b8da
/server/src/main/java/com/smash/revolance/ui/server/model/ReviewBean.java
d6bba3541adc7a3d72d7a27c778af6dd5c62db9d
[]
no_license
TheSmash/revolance-ui-monitoring
cec3eee8756131b51dceb1ef96cc0720476d69cb
691c0c037ce159b5b650797ab6e434101a1458f5
refs/heads/master
2021-01-19T21:28:08.705451
2014-01-25T11:27:00
2014-01-25T11:27:00
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,327
java
package com.smash.revolance.ui.server.model; /* * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * ui-monitoring-server * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * Copyright (C) 2012 - 2014 RevoLance * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program. If not, see * <http://www.gnu.org/licenses/gpl-3.0.html>. * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ import java.util.ArrayList; import java.util.List; import java.util.UUID; /** * Created by ebour on 12/01/14. */ public class ReviewBean { private String id = ""; private String application = ""; private String referenceApplication = ""; List<String> reviewedPages = new ArrayList<>(); private String status = "created"; private int applicationPagesCount = 0; private int progress = 0; private String reviewer = ""; public ReviewBean() { this.id = UUID.randomUUID().toString(); } public void setApplication(String application) { this.application = application; } public void setReferenceApplication(String referenceApplication) { this.referenceApplication = referenceApplication; } public String getId() { return this.id; } public String getReferenceApplication() { return this.referenceApplication; } public String getApplication() { return this.application; } public boolean hasBeenReviewed(String page) { return this.reviewedPages.contains(page); } public void addReviewedPage(String page) { if(!this.hasBeenReviewed(page)) { this.reviewedPages.add(page); } } public String getStatus() { return this.status; } public void setApplicationPagesCount(int applicationPagesCount) { this.applicationPagesCount = applicationPagesCount; } public int getApplicationPagesCount() { return applicationPagesCount; } public void setId(String id) { this.id = id; } public void setStatus(String status) { this.status = status; } public void setReviewer(String reviewer) { this.reviewer = reviewer; } public String getReviewer() { return reviewer; } public void clearReviewedPagesList() { this.reviewedPages.clear(); } public List<String> getReviewedPages() { return this.reviewedPages; } public int getProgress() { return progress; } public void setProgress(int progress) { this.progress = progress; } }
9a6366cd0024ca456e12dc78c1e37598d3bb48d2
0cb24f859d65898a4c2c2db9a3613c7295b838d3
/08_2_mvc/src/main/java/spring/MemberDao.java
a887bd27562f3bf6a41905f60a169a8631eca194
[]
no_license
dongmin7208/java_spring-work
eec02ed737f3c9b66823815918e6a84188d4e925
d622c907083489b417aee56e6199230ff5065dcb
refs/heads/main
2023-06-12T11:50:22.505108
2021-07-01T07:56:43
2021-07-01T07:56:43
381,952,220
0
0
null
null
null
null
UTF-8
Java
false
false
2,323
java
package spring; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.SQLException; import java.sql.Timestamp; import java.util.Collection; import java.util.List; import javax.sql.DataSource; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.jdbc.core.PreparedStatementCreator; import org.springframework.jdbc.support.GeneratedKeyHolder; import org.springframework.jdbc.support.KeyHolder; public class MemberDao { private JdbcTemplate jdbcTemplate; public MemberDao(DataSource dataSource){ this.jdbcTemplate = new JdbcTemplate(dataSource); } public Member selectByEmail(String email){ List<Member> results = jdbcTemplate.query( "select * from Member where EMAIL = ?", new MemberRowMapper(), email); return results.isEmpty() ? null : results.get(0); } public Collection<Member> selectAll(){ List<Member> results = jdbcTemplate.query( "select * from MEMBER", new MemberRowMapper()); return results; } public int count(){ Integer count = jdbcTemplate.queryForObject( "select count(*) from MEMBER", Integer.class); return count; } public void update(Member member){ jdbcTemplate.update( "update MEMBER set NAME = ?, PASSWORD = ? where EMAIL = ?", member.getName(), member.getPassword(), member.getEmail()); } public void insert(final Member member){ KeyHolder keyHolder = new GeneratedKeyHolder(); System.out.println(jdbcTemplate); jdbcTemplate.update(new PreparedStatementCreator(){ @Override public PreparedStatement createPreparedStatement(Connection con) throws SQLException { //파라미터로 전달받은 Connection을 이용해서 PreparedStatement 생성 String query = "insert into MEMBER (ID, EMAIL, PASSWORD, NAME, REGDATE) values (MEMBER_SEQ.nextval,?,?,?,?)"; PreparedStatement pstmt = con.prepareStatement(query, new String[] {"ID"}); //인덱스 파라미터 값 설정 pstmt.setString(1, member.getEmail()); pstmt.setString(2, member.getPassword()); pstmt.setString(3, member.getName()); pstmt.setTimestamp(4, new Timestamp( member.getRegisterDate().getTime()) ); //생성한 PreparedStatement 객체 반환 return pstmt; } }, keyHolder); Number keyValue = keyHolder.getKey(); member.setId(keyValue.longValue()); } }
2fd12b11e2745d11b32051d971aabc61299d45e7
a690678262433d5a37bc3f692005f73e7342ee2f
/Sockets-ICD/src/Graphics/Scenes/RegisterWindow.java
75dd97c10fe546cbf032290566e894f65f8191a0
[]
no_license
BADLZ/ICD
f541f179b5f8ef4dadf704cef9b9a3ce839df5ee
9708c6dddc3bf35451c073a86c010049c066605a
refs/heads/master
2020-05-16T07:25:48.989097
2019-04-28T16:25:17
2019-04-28T16:25:17
182,877,709
0
0
null
null
null
null
ISO-8859-1
Java
false
false
4,609
java
package Graphics.Scenes; import java.awt.Color; import java.awt.Font; import java.awt.event.KeyAdapter; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.io.File; import javax.imageio.ImageIO; import javax.swing.ImageIcon; import javax.swing.JLabel; import javax.swing.JTextField; import javax.swing.SwingConstants; import Client.Aluno.ClienteAluno; import Client.Professor.ClienteProfessor; import Graphics.SceneManager; import Graphics.Aesthetics.FancyButton; import Graphics.Aesthetics.FancyTextField; public class RegisterWindow extends JLabel { private static final long serialVersionUID = 1L; private SceneManager sm; private ClienteAluno c; private ClienteProfessor p; private JLabel error; private JTextField numberfield, birthdayfield, namefield; private ImageIcon registerBtnimg, registerBtnpressedimg, btnVoltarimg, btnVoltarpressedimg, textfieldimg; public RegisterWindow(SceneManager sm, ClienteAluno c, ClienteProfessor p) { this.sm = sm; this.c = c; this.p = p; initialize(); } private void initialize() { try { registerBtnimg = new ImageIcon(ImageIO.read(new File("src/Images/registerBtn.png"))); registerBtnpressedimg = new ImageIcon(ImageIO.read(new File("src/Images/registerBtnpressed.png"))); btnVoltarimg = new ImageIcon(ImageIO.read(new File("src/Images/voltarBtn.png"))); btnVoltarpressedimg = new ImageIcon(ImageIO.read(new File("src/Images/voltarBtnpressed.png"))); textfieldimg = new ImageIcon(ImageIO.read(new File("src/Images/textfieldimg.png"))); } catch (Exception e) { e.printStackTrace(); } setIcon(sm.getBackground()); namefield = new FancyTextField("Enter Your Name", sm.screenWidth / 2 - 95, sm.screenHeight / 2 - 250, 195, 30); add(namefield); JLabel img1 = new JLabel(textfieldimg); img1.setBounds(sm.screenWidth / 2 - 210, sm.screenHeight / 2 - 310, 420, 150); add(img1); numberfield = new FancyTextField("Enter Your Number", sm.screenWidth / 2 - 95, sm.screenHeight / 2 - 150, 195, 30); add(numberfield); JLabel img2 = new JLabel(textfieldimg); img2.setBounds(sm.screenWidth / 2 - 210, sm.screenHeight / 2 - 210, 420, 150); add(img2); birthdayfield = new FancyTextField("Birthday(dd/mm/yyyy)", sm.screenWidth / 2 - 95, sm.screenHeight / 2 - 50, 198, 30); birthdayfield.addKeyListener(new KeyListener() { @Override public void keyTyped(KeyEvent e) { if (birthdayfield.getText().length() == 2) { birthdayfield.setText(birthdayfield.getText() + "/"); } if (birthdayfield.getText().length() == 5) { birthdayfield.setText(birthdayfield.getText() + "/"); } } @Override public void keyReleased(KeyEvent e) { } @Override public void keyPressed(KeyEvent e) { } }); add(birthdayfield); JLabel img3 = new JLabel(textfieldimg); img3.setBounds(sm.screenWidth / 2 - 210, sm.screenHeight / 2 - 110, 420, 150); add(img3); error = new JLabel("", SwingConstants.CENTER); Font font = new Font("Consolas", Font.BOLD, 12); error.setFont(font); error.setForeground(Color.red); error.setBounds(sm.screenWidth / 2 - 121, sm.screenHeight / 2 + 10, 270, 30); add(error); FancyButton btnRegisto = new FancyButton("btnRegisto", sm.screenWidth / 2 - 100, sm.screenHeight / 2 + 35, 200, 67, registerBtnimg, registerBtnpressedimg); btnRegisto.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent arg0) { tryRegister(); } }); btnRegisto.addKeyListener(new KeyAdapter() { @Override public void keyPressed(KeyEvent e) { if (e.getKeyCode() == KeyEvent.VK_ENTER) tryRegister(); } }); add(btnRegisto); FancyButton btnVoltar = new FancyButton("btnVoltar", sm.screenWidth / 2 - 100, sm.screenHeight / 2 + 115, 200, 67, btnVoltarimg, btnVoltarpressedimg); btnVoltar.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent arg0) { sm.changeCards("MainScreen"); } }); add(btnVoltar); } private void tryRegister() { String number = numberfield.getText(); String name = namefield.getText(); String date = birthdayfield.getText(); if (name != null && number != null && date != null) { if(c.VerificarData(date)) { if (c.Registar(name, date, number)) { sm.changeCards("WaitingRoom"); } else { error.setText("Número já existe na base de dados"); error.setOpaque(true); } }else { error.setText("Data mal formatada"); error.setOpaque(true); } } } }
333388c62244d7018e550fe3d62b3ca0ccd9849f
c45dabc23df219bdde63f14c0b5996dfdae18f5c
/src/main/java/com/scusa/HelloWorld.java
a1c2832f3a870421a0fe580e07f681d3ad586a93
[]
no_license
scusa-git/GradleCopyDependencies
8028bf8d8b3f7d2eb2898a9250d17a4574987473
68fb7aebe989a2ceb76a21b61d8485b775a7ba84
refs/heads/master
2021-05-08T18:09:06.521445
2018-03-02T10:12:49
2018-03-02T10:12:49
119,503,550
0
0
null
null
null
null
UTF-8
Java
false
false
316
java
package com.scusa; import org.joda.time.LocalTime; public class HelloWorld { public static void main(String[] args) { LocalTime currentTime = new LocalTime(); System.out.println("The current local time is: " + currentTime); Greeter greeter = new Greeter(); System.out.println(greeter.sayHello()); } }
adc259c61d570e175894d6a02c8dce860c7fe14c
b0eae6d331a3493b783f0acceb57f36017b1c254
/src/main/java/com/nickdnepr/strategy/utils/Strings.java
a03232add96ea999c7cedc40fda551231b0a839e
[]
no_license
Nickdnepr/StrategyCore
127580bc6c8f7203630579ff3278c5c59e447bfd
526baddefcc1de9b5e6d35fa5ab0cecbc933d086
refs/heads/master
2020-04-30T15:38:21.498455
2019-09-09T09:20:13
2019-09-09T09:20:13
176,925,441
0
0
null
null
null
null
UTF-8
Java
false
false
607
java
package com.nickdnepr.strategy.utils; public class Strings { public static final String HELLO_STRING = "available commands:\n" + "nm - new map\n" + "sh - show map\n" + "ap - add point\n" + "pr - load preset map\n" + "r - make route\n" + "un - show list of units\n" + "au - add unit\n" + "sur - set unit route\n" + "mou - move selected unit\n" + "cls - clear screen\n" + "shh - show heights map\n" + "end - end round\n" + "help - print help"; }
02c6b761a35137e8bd4ffaf8071b30849a30b157
36237a84c3ae0da3335716d9efb81caf5920661e
/app/src/main/java/com/leo/test/Presentation/AplicationDetail/Interfaces/IAplicationPresenter.java
71f6ff9fa913e8a9530bdc17b41c75dfc0e445cf
[]
no_license
leonardog89/test
ba609c00a17fd83a3d0ec11c71e7bba0cbfb3813
a352493b973d63a346147a10ac23b5a006aee612
refs/heads/master
2021-07-13T12:24:01.520394
2017-10-19T03:49:33
2017-10-19T03:49:33
107,494,252
0
0
null
null
null
null
UTF-8
Java
false
false
498
java
package com.leo.test.Presentation.AplicationDetail.Interfaces; import android.content.Context; import com.leo.test.Models.ItunesEntry; /** * Created by leonardo on 14/08/16. */ public interface IAplicationPresenter { void onCreate(); void onDestroy(); void getAplicationByTitle(String title,Context context); void getAplicationByTitleFromPersistence(String title,Context context); void ongetAplicationSucces(ItunesEntry aplication); void onEventMainThread(Object o); }
7f6f368384ba82ae468c08a2644e44fd851363f3
04f727f27901e4ecafb9de9297035731aa108a2d
/Zipfile.java
c7c0f3ca5538b6eed614f74bf897572eed6f7e80
[]
no_license
pra012/Seventh-May
4908166ec2c2884769dce62d2622eb0ba639085e
ffa1706feb75c9fedb17a22a2e652a1be5d2cc54
refs/heads/main
2023-04-29T16:55:10.879063
2021-05-11T05:44:41
2021-05-11T05:44:41
366,254,922
0
0
null
null
null
null
UTF-8
Java
false
false
732
java
import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.util.zip.ZipEntry; import java.util.zip.ZipOutputStream; public class CompressZipFile { public static void main(String[] args) { try (FileOutputStream fos = new FileOutputStream("C:/Project_Work/samples/src_sample.zip"); ZipOutputStream zos = new ZipOutputStream(fos); FileInputStream in = new FileInputStream("C:/Project_Work/samples/sample.txt");) { ZipEntry ze= new ZipEntry("sample.txt"); zos.putNextEntry(ze); byte[] buffer = new byte[1024]; int len; while ((len = in.read(buffer)) > 0) { zos.write(buffer, 0, len); } } catch (IOException e) { e.printStackTrace(); } } }
5849e6a9d40479d4e9b94493007201f7679d8112
b36084e7802353073a5154778be7019f06b93e47
/src/main/java/com/ico/ltd/spring5recipeapp/Spring5RecipeAppApplication.java
9e39f8ab3ba22993ba9bc225134896b7fe2a053f
[]
no_license
Anthony17J8/spring5-recipe-app
61579f621393ad4a1175cd123606188cc7769ce1
c12edb88761abb3cb0538007e9c4e4fd7d05c376
refs/heads/master
2020-07-29T21:49:11.179816
2019-11-28T17:55:32
2019-11-28T17:55:32
209,974,370
0
0
null
null
null
null
UTF-8
Java
false
false
341
java
package com.ico.ltd.spring5recipeapp; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class Spring5RecipeAppApplication { public static void main(String[] args) { SpringApplication.run(Spring5RecipeAppApplication.class, args); } }
90acf1a2fb2cfba55a3a3829dc178ae7d9aa79d4
1b91b31b06eef94b019e6654a1db052b1e0371bf
/src/main/java/com/jt/order/dao/OrderProductDao.java
5e0ad4f7ff7184c9e134ce23a4c8ba06c7756409
[]
no_license
alonewolf20/CGB1806-BAOAN
dd898d5b57a86e2ce4a45b0f075513b4b9e2c2ab
c5b40f4becd67227839e7cbe95bac3eafbff6706
refs/heads/master
2020-03-29T22:30:33.971086
2018-09-22T17:03:37
2018-09-22T17:03:37
150,424,808
0
0
null
null
null
null
UTF-8
Java
false
false
325
java
package com.jt.order.dao; import java.util.List; import com.jt.order.ov.OrderProduct; /** * 这了接口用来关联订单表和商品表 * @author SZC * */ public interface OrderProductDao { /** * 基于订单id查询商品id * @param id * @return */ List<OrderProduct> findProductByOrderId(Integer id); }
[ "Sun80233" ]
Sun80233
080c6279e82e770f9a44e4e0abbca2e2354ed102
ba285ab9f39f0b9b7be2d20919443e8074fe0f37
/library/src/main/java/com/wit/android/support/fragment/annotation/FactoryFragment.java
9a15b731a926db193fb425203fed6b1e38d8f836
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
kkvarma/android_fragments
8422afcc8a9b84849fa1b98bd7fd6a590fed6180
1dc359de1a0b7ddd3fcc652e4b5a1768308fc1c7
refs/heads/master
2020-04-15T08:52:29.819887
2014-10-07T18:15:36
2014-10-07T18:15:36
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,406
java
/* * ================================================================================================= * Copyright (C) 2014 Martin Albedinsky [Wolf-ITechnologies] * ================================================================================================= * Licensed under the Apache License, Version 2.0 or later (further "License" only). * ------------------------------------------------------------------------------------------------- * You may use this file only in compliance with the License. More details and copy of this License * you may obtain at * * http://www.apache.org/licenses/LICENSE-2.0 * * You can redistribute, modify or publish any part of the code written within this file but as it * is described in the License, the software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES or CONDITIONS OF ANY KIND. * * See the License for the specific language governing permissions and limitations under the License. * ================================================================================================= */ package com.wit.android.support.fragment.annotation; import android.support.v4.app.Fragment; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * <h4>Annotation Overview</h4> * Annotation type used to mark an <b>int</b> field which specifies an id of fragment provided by * instance of {@link com.wit.android.support.fragment.manage.BaseFragmentFactory BaseFragmentFactory}. * <h6>Usage</h6> * <ul> * <li>{@link com.wit.android.support.fragment.manage.BaseFragmentFactory BaseFragmentFactory}</li> * </ul> * * @author Martin Albedinsky */ @Target({ElementType.FIELD, ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME) public @interface FactoryFragment { /** * Type of the desired fragment of which instance should be instantiated when calling * {@link com.wit.android.support.fragment.manage.BaseFragmentFactory#createFragmentInstance(int, android.os.Bundle) BaseFragmentFactory#createFragmentInstance(int, android.os.Bundle)} * for this id . */ Class<? extends Fragment> type() default Fragment.class; /** * Name of the desired fragment to be placed within TAG used when showing such a fragment. */ String taggedName() default ""; }
02fbec61f1bf5604d38ca24ab58d3c9fe9f078df
9194181617b08a95a7712e524321647302208a87
/ReferenceProject/MiShare1_0/src/com/cmmobi/looklook/common/view/ExpressionView.java
3d0ca6680a4838093a40f3a834f098d11d7fb0bc
[]
no_license
Lucaziki/WeFlow
2dae5beaa1a156094934f92fc6739562f6fca9ee
08c56de996efad33dc43ee51931d45b03ce77651
refs/heads/master
2021-01-18T20:49:29.591710
2015-05-06T06:23:37
2015-05-06T06:23:37
null
0
0
null
null
null
null
UTF-8
Java
false
false
13,302
java
/** * */ package com.cmmobi.looklook.common.view; import java.util.ArrayList; import java.util.HashMap; import java.util.regex.Matcher; import java.util.regex.Pattern; import android.app.Activity; import android.graphics.drawable.Drawable; import android.support.v4.view.ViewPager; import android.support.v4.view.ViewPager.OnPageChangeListener; import android.text.Html; import android.text.Html.ImageGetter; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.view.ViewGroup.LayoutParams; import android.view.inputmethod.InputMethodManager; import android.widget.AbsListView; import android.widget.AdapterView.OnItemClickListener; import android.widget.BaseAdapter; import android.widget.EditText; import android.widget.GridView; import android.widget.ImageView; import android.widget.PopupWindow; import android.widget.TextView; import com.cmmobi.looklook.R; import com.cmmobi.looklook.common.adapter.ExpressionAdapter; /** * @author wuxiang * * @create 2013-4-10 */ public class ExpressionView implements OnPageChangeListener { private View expressionLayout; private ViewPager expressionPager; private LayoutInflater inflater; private ArrayList<View> expressionTabs = new ArrayList<View>(); private Activity activity; private ImageView[] ivPageDots; private GridView gv1; private GridView gv2; private GridView gv3; // private static HashMap<String, Integer> EXPHM = new HashMap<String, Integer>(); private InputMethodManager inputMethodManager; private EditText editText; View popupWindow_view; PopupWindow fdj; /** * * @param activity * @param editText * 需要输入表情的编辑框 */ public ExpressionView(Activity activity, EditText editText) { this.activity = activity; this.editText = editText; expressionLayout = activity.findViewById(R.id.rl_expression); expressionPager = (ViewPager) activity.findViewById(R.id.vp_expression); inflater = LayoutInflater.from(activity); View tab1 = inflater.inflate(R.layout.del_include_expression_tab1, null); View tab2 = inflater.inflate(R.layout.del_include_expression_tab2, null); View tab3 = inflater.inflate(R.layout.del_include_expression_tab3, null); gv1 = (GridView) tab1.findViewById(R.id.gv_tab1); gv2 = (GridView) tab2.findViewById(R.id.gv_tab2); gv3 = (GridView) tab3.findViewById(R.id.gv_tab3); gv1.setAdapter(new GridViewAdapter(FriendsExpressionView.icons1, FriendsExpressionView.expTextTab1)); gv2.setAdapter(new GridViewAdapter(FriendsExpressionView.icons2, FriendsExpressionView.expTextTab2)); expressionTabs.add(tab1); expressionTabs.add(tab2); expressionTabs.add(tab3); expressionPager.setAdapter(new ExpressionAdapter(activity, expressionTabs)); expressionPager.setOnPageChangeListener(this); ivPageDots = new ImageView[3]; ivPageDots[0] = (ImageView) expressionLayout.findViewById(R.id.iv_dot1); ivPageDots[1] = (ImageView) expressionLayout.findViewById(R.id.iv_dot2); ivPageDots[2] = (ImageView) expressionLayout.findViewById(R.id.iv_dot3); editText.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { if (View.GONE != expressionLayout.getVisibility()) expressionLayout.setVisibility(View.GONE); } }); inputMethodManager = ((InputMethodManager) activity .getSystemService(Activity.INPUT_METHOD_SERVICE)); popupWindow_view = activity.getLayoutInflater().inflate( R.layout.del_activity_homepage_biaoqing_fagndajing_popupwindow, null, false); fdj = new PopupWindow(popupWindow_view, ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT, false); } public void setOnclickListener(OnItemClickListener onItemClickListener) { gv1.setOnItemClickListener(onItemClickListener); gv2.setOnItemClickListener(onItemClickListener); gv3.setOnItemClickListener(onItemClickListener); } // 取出edittext字符串中的表情字段 private static ArrayList<String> getTextExpressions(String expressionText) { if (expressionText != null && expressionText.length() > 0) { ArrayList<String> list = new ArrayList<String>(); Pattern pattern = Pattern.compile("\\[[\\u4e00-\\u9fa5]*?\\]"); Matcher matcher = pattern.matcher(expressionText); while (matcher.find()) { list.add(matcher.group()); } return list; } return null; } // textview中显示文字+表情 public void replacedExpressions(String expressionText, TextView tv) { ArrayList<String> list = getTextExpressions(expressionText); if (list != null && list.size() > 0) { int len = list.size(); int expStart = 0; int expEnd = 0; tv.setText(null); for (int i = 0; i < len; i++) { String exp = list.get(i); expEnd = expressionText.indexOf(exp, expStart); expressionText = expressionText.replaceFirst("\\[" + exp + "\\]", ""); tv.append(expressionText, expStart, expEnd); tv.append(Html.fromHtml("<img src='" + FriendsExpressionView.EXPHM.get(exp) + "'/>", imageGetter, null)); expStart = expEnd; } tv.append(expressionText, expStart, expressionText.length()); } else { tv.append(expressionText); } } // 取出edittext字符串中的表情字段 private static ArrayList<String> getTextExpressions2(String expressionText) { if (expressionText != null && expressionText.length() > 0) { ArrayList<String> list = new ArrayList<String>(); // Pattern pattern = Pattern.compile("\\[[\\u4e00-\\u9fa5]*?\\]"); Pattern pattern = Pattern.compile("\\[[\\u4e00-\\u9fa5a-zA-Z]*?\\]"); Matcher matcher = pattern.matcher(expressionText); while (matcher.find()) { list.add(matcher.group()); } return list; } return null; } // textview中显示文字+表情 public void replacedExpressions2(String expressionText, TextView tv) { tv.setText(null); if(expressionText==null){ return; } ArrayList<String> list = getTextExpressions2(expressionText); Log.d("replacedExpressions", "list="+list); if (list != null && list.size() > 0) { int len = list.size(); int expStart = 0; int expEnd = 0; tv.setText(null); for (int i = 0; i < len; i++) { String exp = list.get(i); if(FriendsExpressionView.EXPHM.get(exp)!=null){ int expSrc=FriendsExpressionView.EXPHM.get(exp); expEnd = expressionText.indexOf(exp, expStart); exp=exp.replace("[", ""); exp=exp.replace("]", ""); expressionText = expressionText.replaceFirst("\\[" + exp + "\\]", ""); tv.append(expressionText, expStart, expEnd); tv.append(Html.fromHtml("<img src='" +expSrc + "'/>", imageGetter, null)); expStart = expEnd; }else{ expStart = 0; expEnd = 0; } } tv.append(expressionText, expStart, expressionText.length()); } else { Log.d("replacedExpressions", "expressionText="+expressionText); Log.d("replacedExpressions", "tv.getText()="+tv.getText()); tv.append(expressionText); } } @Override public void onPageScrollStateChanged(int arg0) { } @Override public void onPageScrolled(int arg0, float arg1, int arg2) { } @Override public void onPageSelected(int arg0) { switch (arg0) { case 0: ivPageDots[0].setImageResource(R.drawable.del_biaoqing_fanye_2); ivPageDots[1].setImageResource(R.drawable.del_biaoqing_fanye_1); ivPageDots[2].setImageResource(R.drawable.del_biaoqing_fanye_1); break; case 1: ivPageDots[0].setImageResource(R.drawable.del_biaoqing_fanye_1); ivPageDots[1].setImageResource(R.drawable.del_biaoqing_fanye_2); ivPageDots[2].setImageResource(R.drawable.del_biaoqing_fanye_1); break; case 2: ivPageDots[0].setImageResource(R.drawable.del_biaoqing_fanye_1); ivPageDots[1].setImageResource(R.drawable.del_biaoqing_fanye_1); ivPageDots[2].setImageResource(R.drawable.del_biaoqing_fanye_2); break; default: break; } } public void load() { editText.requestFocus(); if (View.GONE == expressionLayout.getVisibility()) { inputMethodManager.hideSoftInputFromWindow(activity .getCurrentFocus().getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS); expressionLayout.setVisibility(View.VISIBLE); } else { inputMethodManager.showSoftInput(editText, 0); expressionLayout.setVisibility(View.GONE); } } public int getVisibility() { return expressionLayout.getVisibility(); } public void show(boolean show) { editText.requestFocus(); if (show) { inputMethodManager.hideSoftInputFromWindow(activity .getCurrentFocus().getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS); expressionLayout.setVisibility(View.VISIBLE); } else { inputMethodManager.showSoftInput(editText, 0); expressionLayout.setVisibility(View.GONE); } } /*private static final Integer[] icons1 = { R.drawable.bq_ai, R.drawable.bq_baibai, R.drawable.bq_beishang, R.drawable.bq_bishi, R.drawable.bq_bizui, R.drawable.bq_buyao, R.drawable.bq_changzui, R.drawable.bq_chijing, R.drawable.bq_daihaqian, R.drawable.bq_dangao, R.drawable.bq_good, R.drawable.bq_guzhang, R.drawable.bq_haha, R.drawable.bq_haixiao, R.drawable.bq_han, R.drawable.bq_hehe, R.drawable.bq_heixiang, R.drawable.bq_huaxin, R.drawable.bq_jiyang, R.drawable.bq_keai, }; private static final Integer[] icons2 = { R.drawable.bq_keling, R.drawable.bq_ku, R.drawable.bq_kun, R.drawable.bq_lai, R.drawable.bq_landelini, R.drawable.bq_lazhu, R.drawable.bq_lei, R.drawable.bq_liwu, R.drawable.bq_lu, R.drawable.bq_nvma, R.drawable.bq_ok, R.drawable.bq_paopao, R.drawable.bq_qinqin, R.drawable.bq_ruo, R.drawable.bq_shangxin, R.drawable.bq_shiwang, R.drawable.bq_shuijiao, R.drawable.bq_taikaixing, R.drawable.bq_touxiao, R.drawable.bq_tu, }; private static final Integer[] icons3 = { R.drawable.bq_wapishi, R.drawable.bq_weiqu, R.drawable.bq_xin, R.drawable.bq_xu, R.drawable.bq_ye, R.drawable.bq_yinxian, R.drawable.bq_yiwen, R.drawable.bq_youhenhen, R.drawable.bq_yun, R.drawable.bq_zhuaikuang, R.drawable.bq_zhutou, R.drawable.bq_zuohenhen, }; private static final String[] expTextTab1 = { "[衰]", "[拜拜]", "[可怜]", "[鄙视]", "[闭嘴]", "[不要]", "[馋嘴]", "[吃惊]", "[打哈气]", "[蛋糕]", "[good]", "[鼓掌]", "[哈哈]", "[害羞]", "[汗]", "[呵呵]", "[黑线]", "[花心]", "[鬼脸]", "[可爱]", }; private static final String[] expTextTab2 = { "[悲伤]", "[酷]", "[懒得理你]", "[来]", "[思考]", "[蜡烛]", "[泪]", "[礼物]", "[怒]", "[怒骂]", "[ok]", "[太开心]", "[亲亲]", "[弱]", "[伤心]", "[失望]", "[睡觉]", "[爱你]", "[偷笑]", "[生病]", }; private static final String[] expTextTab3 = { "[挖鼻屎]", "[委屈]", "[心]", "[嘘]", "[耶]", "[嘻嘻]", "[疑问]", "[右哼哼]", "[晕]", "[抓狂]", "[猪头]", "[左哼哼]", }; static { for (int i = 0; i < 20; i++) { EXPHM.put(expTextTab1[i], icons1[i]); } for (int i = 0; i < 20; i++) { EXPHM.put(expTextTab2[i], icons2[i]); } for (int i = 0; i < 12; i++) { EXPHM.put(expTextTab3[i], icons3[i]); } }*/ ImageGetter imageGetter = new ImageGetter() { @Override public Drawable getDrawable(String source) { int id = Integer.parseInt(source); Drawable drawable = activity.getResources().getDrawable(id); drawable.setBounds(0, 0, drawable.getIntrinsicWidth() / 2, drawable.getIntrinsicHeight() / 2); return drawable; } }; class GridViewAdapter extends BaseAdapter { Integer[] icons; String[] expText; public GridViewAdapter(Integer[] icons, String[] expText) { this.icons = icons; this.expText = expText; } @Override public int getCount() { return icons.length; } @Override public Object getItem(int position) { return icons[position]; } @Override public long getItemId(int position) { return position; } @Override public View getView(int position, View convertView, ViewGroup parent) { final int id = icons[position]; ImageView iv; iv = new ImageView(activity); iv.setBackgroundResource(id); iv.setLayoutParams(new AbsListView.LayoutParams( LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); iv.setTag(expText[position]); /*iv.setOnTouchListener(new OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { int action = event.getAction(); if (action == MotionEvent.ACTION_DOWN) { ImageView bq = (ImageView) popupWindow_view .findViewById(R.id.iv_biaoqing); bq.setImageResource(id); fdj.setOutsideTouchable(true); fdj.setBackgroundDrawable(activity.getResources() .getDrawable(R.drawable.dot_big)); Bitmap bm = BitmapFactory.decodeResource( activity.getResources(), R.drawable.fangdajing); int bm_width = bm.getWidth(); int bm_height = bm.getHeight(); fdj.showAsDropDown(v, (v.getWidth() - bm_width) / 2, 0 - (v.getHeight() / 2 + bm_height)); Log.e("MotionEvent", "ACTION_DOWN"); return true; } else if (action == MotionEvent.ACTION_UP) { fdj.dismiss(); Log.e("MotionEvent", "ACTION_UP"); return true; } return false; } });*/ return iv; } } }
5b743138897c86d1e2daf3e58e6dd56fdef18473
ebf42ef169d9fc8960b36d46e7092f5f7aa5d0ed
/app/platforms/android/app/build/generated/source/buildConfig/debug/br/com/apprev/BuildConfig.java
41015d4f628b05d611df8a83520bdc5934ce8f2f
[]
no_license
AndreDeveloper/cordova-app
904ffcc108d22f434a021cc45c9837307e50fdeb
25ee0b7a20bee1cb6fe5680dcad9c761ac290a9b
refs/heads/master
2021-09-07T20:35:48.325022
2018-02-28T16:53:00
2018-02-28T16:53:00
118,159,987
0
0
null
null
null
null
UTF-8
Java
false
false
439
java
/** * Automatically generated file. DO NOT MODIFY */ package br.com.apprev; public final class BuildConfig { public static final boolean DEBUG = Boolean.parseBoolean("true"); public static final String APPLICATION_ID = "br.com.apprev"; public static final String BUILD_TYPE = "debug"; public static final String FLAVOR = ""; public static final int VERSION_CODE = 10000; public static final String VERSION_NAME = "1.0.0"; }
05e9c1d41fce8448f32f58638b54145487d6276f
38e6cddbfed11e6c8dde094143a996586718977c
/HUD.java
6a39030a4a92712e2def616114164a9b2ec7e6a6
[]
no_license
ryanmcfarland14/Test1
9479a4d18faf1dc509a559320600e8657934a58a
03fe6e981edf1dd2e0413fbef8145028b8c3437c
refs/heads/master
2020-03-22T18:33:38.145956
2018-10-25T18:41:42
2018-10-25T18:41:42
140,467,417
0
0
null
null
null
null
UTF-8
Java
false
false
5,214
java
package mainGame; import java.awt.Color; import java.awt.Font; import java.awt.Graphics; import java.util.ArrayList; /** * The main Heads Up Display of the game * * @author Brandon Loehle 5/30/16 * */ public class HUD { private double greenValue = 255; protected Font font; protected int score = 0; private int level = 1; protected Color scoreColor = Color.white; private int extraLives = 0; protected HUDRectangle HUDBackground; protected HUDRectangle healthBarBackground; protected HUDRectangle healthBar; protected HUDText scoreText; protected HUDText levelText; private HUDText livesText; private HUDText abilityText; protected ArrayList<HUDElement> HUDElementList; public HUD() { font = new Font("Amoebic", 1, 30); HUDBackground = new HUDRectangle(0, 0, Color.GRAY, 1920, 90); healthBarBackground = new HUDRectangle(10, 10, Color.BLACK, 410, 44); healthBar = new HUDRectangle(15, 15, new Color(75, (int) greenValue, 0), 100, 32); scoreText = new HUDText(700, 64, scoreColor, font); levelText = new HUDText(1100, 64, scoreColor, font); livesText = new HUDText(1300, 64, scoreColor, font); abilityText = new HUDText(1500, 64, scoreColor, font); HUDElementList = new ArrayList<HUDElement>(); HUDElementList.add(HUDBackground); HUDElementList.add(healthBarBackground); HUDElementList.add(healthBar); HUDElementList.add(scoreText); HUDElementList.add(levelText); HUDElementList.add(livesText); HUDElementList.add(abilityText); } public void tick() { this.greenValue = Game.clamp(greenValue, 0, 255); } public void render(Graphics g) { for (HUDElement element : this.HUDElementList) { element.render(g); } } public void updateScoreColor(Color color) { this.scoreColor = color; } public void updateHealth(int health) { healthBar.setWidth(health * 4); } public void updateScoreText(int score) { scoreText.setText("Score: " + score); } public void updateLevelText(int level) { levelText.setText("Level: " + level); } public void updateLivesText(int lives) { livesText.setText("Lives: " + lives); } public void updateAbilityText(Player.Ability ability, int abilityUses) { String abilityName = ""; switch (ability) { case FreezeTime: abilityName = "Time Freezes:"; break; case ClearScreen: abilityName = "Screen Clears:"; break; case LevelSkip: abilityName = "Level Skips:"; break; default: System.out.println("NOTHING TO SHOW"); break; } if (ability == Player.Ability.None) { abilityText.setText(""); } else { abilityText.setText(abilityName + " " + abilityUses); } } public void tickScore() { score++; updateScoreText(score); } public void setScore(int score) { this.score = score; } public int getScore() { return score; } public int getLevel() { return level; } public void setLevel(int level) { this.level = level; } public void setExtraLives(int lives) { this.extraLives = lives; } public int getExtraLives() { return this.extraLives; } public void activateDoubleHealth() { healthBar.setHeight(64); healthBarBackground.setHeight(76); } public void resetHealth() { healthBar.setHeight(32); healthBarBackground.setHeight(44); } protected class HUDElement { protected int xPos; protected int yPos; protected Color color; public HUDElement(int xPos, int yPos, Color color) { this.xPos = (int) Game.scaleX(xPos); this.yPos = (int) Game.scaleY(yPos); this.color = color; } public void render(Graphics g) {} public int getxPos() { return xPos; } public void setxPos(int xPos) { this.xPos = (int) Game.scaleX(xPos); } public int getyPos() { return yPos; } public void setyPos(int yPos) { this.yPos = (int) Game.scaleY(yPos); } public Color getColor() { return color; } public void setColor(Color color) { this.color = color; } } protected class HUDRectangle extends HUDElement { private int width; private int height; public HUDRectangle(int xPos, int yPos, Color color, int width, int height) { super(xPos, yPos, color); this.width = (int) Game.scaleX(width); this.height = (int) Game.scaleY(height); } public void render(Graphics g) { g.setColor(color); g.fillRect(xPos, yPos, width, height); } public void setWidth(int width) { this.width = (int) Game.scaleX(width); } public void setHeight(int height) { this.height = (int) Game.scaleY(height); } } protected class HUDText extends HUDElement { private int size; private Font font; private String text = ""; public HUDText(int xPos, int yPos, Color color, Font font) { super(xPos, yPos, color); this.font = font; } public void render(Graphics g) { g.setColor(color); g.setFont(font); g.drawString(text, xPos, yPos); } public void setText(String text) { this.text = text; } } }
05db50aa59d7a6192f9a15d2cb97ad9688837ed1
07e10a0316dd8ce00d71b006d3e70b328995d4b0
/src/behaviorpattern/observer/concretesubject/Transporter.java
fe3a6963fa80a07c52c3ccac3bc3ead1c28f328a
[]
no_license
kgy-study-javabase/DesignPattern
fc498622d108add4d1028c2330468d7b4dcbb024
a7d38c5fd93b72ce245913329a698128e25c3b58
refs/heads/master
2021-08-27T21:05:10.649532
2017-11-28T07:45:20
2017-11-28T07:45:20
112,302,086
1
0
null
null
null
null
UTF-8
Java
false
false
685
java
package behaviorpattern.observer.concretesubject; import java.util.ArrayList; import java.util.List; import behaviorpattern.observer.observer.Watcher; import behaviorpattern.observer.subject.Watched; /** * 具体的被观察者 * * 具体目标角色(Concrete Subject) * * @author Administrator */ public class Transporter implements Watched { private List<Watcher> list = new ArrayList<Watcher>(); @Override public void addWatcher(Watcher watcher) { list.add(watcher); } @Override public void removeWatcher(Watcher watcher) { list.remove(watcher); } @Override public void notifyWatchers() { for (Watcher watcher : list) { watcher.update(); } } }
c8498a2a082e6f7345a19aa8a968c01d03ecbe94
0b565c6839fa4bd7fe81b5b4ca13e43c796eab4d
/src/main/java/cyk/git/fileDiff/modify/type/javadoc/JavaDocInsert.java
d4537462f9748de8df63693d599977f7096aa8a2
[]
no_license
caoyingkui/CommitAnalyzer
9040937ce783e269994c72fc6541201639f9d865
3acc1bfc532bc74f1f7e0eeda42e01a4b3979a84
refs/heads/master
2020-11-26T08:47:25.941899
2019-12-19T13:43:22
2019-12-19T13:43:22
229,019,462
0
0
null
null
null
null
UTF-8
Java
false
false
1,824
java
package cyk.git.fileDiff.modify.type.javadoc; import ch.uzh.ifi.seal.changedistiller.model.classifiers.ChangeType; import ch.uzh.ifi.seal.changedistiller.model.entities.Insert; import ch.uzh.ifi.seal.changedistiller.model.entities.SourceCodeChange; import cyk.git.fileDiff.method.ChangedMethod; import cyk.git.fileDiff.method.MethodDiff; import cyk.git.fileDiff.modify.type.Modify; import cyk.git.fileDiff.modify.type.Order; /** * Created by kvirus on 2019/5/20 9:14 * Email @ [email protected] * <p> * | ******* ** ** ** ** * | ** ** ** ** ** * | ** ** *** * | ** ** ** ** * | ******* ** ** ** */ @Order(order = Order.OrderValue.JAVADOC) public class JavaDocInsert extends Modify { public static int count = 0; public String javadoc; public static JavaDocInsert match(MethodDiff method) { if (!(method instanceof ChangedMethod)) return null; boolean s = false; JavaDocInsert result = new JavaDocInsert(); ChangedMethod cMethod = (ChangedMethod) method; for (SourceCodeChange change : cMethod.getSourceCodeChanges()) { if (change.getChangeType() == ChangeType.DOC_INSERT) { Insert insert = (Insert) change; result.javadoc = insert.getChangedEntity().getUniqueName(); s = true; break; } } return s && (++count) > 0 ? result : null; } @Override protected void build() { } @Override public String getContent() { return super.getContent(); } @Override public void extend(String str) { super.extend(str); } @Override public boolean equals(Object obj) { return false; } }
846d6e05543c07660230e5bc2fb9a5773c0f7570
7b733d7be68f0fa4df79359b57e814f5253fc72d
/system/src/main/java/com/percussion/design/objectstore/PSContentEditorDependencyMacroResolver.java
43a255eed49c73942c3a201e2195fc3e03402128
[ "LicenseRef-scancode-dco-1.1", "Apache-2.0", "OFL-1.1", "LGPL-2.0-or-later" ]
permissive
percussion/percussioncms
318ac0ef62dce12eb96acf65fc658775d15d95ad
c8527de53c626097d589dc28dba4a4b5d6e4dd2b
refs/heads/development
2023-08-31T14:34:09.593627
2023-08-31T14:04:23
2023-08-31T14:04:23
331,373,975
18
6
Apache-2.0
2023-09-14T21:29:25
2021-01-20T17:03:38
Java
UTF-8
Java
false
false
9,433
java
/* * Copyright 1999-2023 Percussion Software, Inc. * * 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.percussion.design.objectstore; import java.util.Iterator; /** * This class is responsible for resolving macros in content editor dependency * parameters. Macros take the form "$(macroName)". The following macros are * currently supported: * <br> * <table border=1> * <tr><th>macroName</th><th>Resolution</th></tr> * <tr><td>fieldName</td><td>replaced by the html field name that this control * is associated with</td></tr> * </table> */ public class PSContentEditorDependencyMacroResolver { /** * Walks the values of <code>parameters</code>, mutating any macro names to * to the macro's value. * <p> * A warning will be generated if a immutable <code>IPSReplacementValue * </code> contains a macro. * * @param mapping the mapping that contains the dependency whose parameters * we are modifing; may not be <code>null</code>. * @param parameters the parameters from the dependency as <code> * IPSParameter</code> objects; may not be <code>null</code>. * @throws IllegalArgumentException if either argument is <code>null</code>, * or if <code>parameters</code> contains objects other than * <code>IPSParameter</code>. * @throws IllegalStateException if a macro is contained in an immutable * replacement value */ public static void replaceMacroWithValue(PSDisplayMapping mapping, Iterator<Object> parameters) { if (null == mapping) throw new IllegalArgumentException("mapping may not be null"); if (null == parameters) throw new IllegalArgumentException("parameters may not be null"); while (parameters.hasNext()) { Object o = parameters.next(); if (o instanceof IPSParameter) { IPSParameter parameter = (IPSParameter) o; IPSReplacementValue value = parameter.getValue(); String macroName = extractMacroName( value ); if (macroName != null) { // can only resolve macros if the replacement value is mutable if (value instanceof IPSMutatableReplacementValue) { String macroValue = resolveMacro( mapping, macroName ); if (macroValue != null) ((IPSMutatableReplacementValue)value).setValueText( macroValue ); } else { throw new IllegalStateException( "macro supplied on immutable replacement value" ); } } } else throw new IllegalArgumentException( "Only IPSParameters may be supplied as parameters" ); } } /** * Walks the <code>templateParameters</code> and <code>instanceParameters * </code> in synch, and when the template's parameter's value is found to * have a macro, the instance's parameter's value is checked to see if it is * equal to the value of that macro, and if so, the instance's parameter's * value is mutated to the macro name. * <p> * The loop will terminate when either <code>Iterator</code> is exhausted. * If the template and the instance differ in the number of parameters, the * extra parameters will not be processed. * <p> * This method assumes that the template's ordering of parameters does not * differ from the instance's ordering of parameters. If this assumption * is violated, the macro values will not be restored to macro names. * * @param context the content editor component that contains the control * with the dependency whose parameters we are modifing; may not be <code> * null</code>. * @param templateParameters the parameters from the dependency template * (obtained from the control metadata) as <code>IPSParameter</code> * objects; may not be <code>null</code>. * @param instanceParameters the parameters from the dependency being loaded * as <code>IPSParameter</code> objects; may not be <code>null</code>. * @throws IllegalArgumentException if any argument is <code>null</code>, * or if either <code>Iterator</code> contains objects other than * <code>IPSParameter</code>. */ public static void replaceValueWithMacro(PSDisplayMapping context, Iterator<Object> templateParameters, Iterator<Object> instanceParameters) { if (null == context) throw new IllegalArgumentException("context may not be null"); if (null == templateParameters || null == instanceParameters) throw new IllegalArgumentException("neither parameters may be null"); while (templateParameters.hasNext() && instanceParameters.hasNext()) { Object templateObj = templateParameters.next(); Object instanceObj = instanceParameters.next(); if (templateObj instanceof IPSParameter && instanceObj instanceof IPSParameter) { IPSParameter templateParameter = (IPSParameter) templateObj; IPSParameter instanceParameter = (IPSParameter) instanceObj; IPSReplacementValue templateValue = templateParameter.getValue(); String macroName = extractMacroName( templateValue ); if (macroName != null) { // template has a macro; does instance have its value? String macroValue = resolveMacro( context, macroName ); IPSReplacementValue instanceValue = instanceParameter.getValue(); if (instanceValue instanceof IPSMutatableReplacementValue && macroValue != null ) { IPSMutatableReplacementValue mutatableValue = (IPSMutatableReplacementValue) instanceValue; if ( mutatableValue.getValueText().equals( macroValue )) mutatableValue.setValueText( MACRO_PREFIX + macroName + MACRO_SUFFIX ); } } } else throw new IllegalArgumentException( "Only IPSParameters may be supplied as parameters" ); } } /** * Searches <code>value</code> for a macro name and returns the name. * * @param value object that may contain macro; asssumed not <code>null</code> * @return name of macro (without prefix or suffix), or <code>null</code> * if no macro found. */ private static String extractMacroName(IPSReplacementValue value) { String macroName = null; String valueText = value.getValueText(); if (valueText != null && valueText.startsWith( MACRO_PREFIX ) && valueText.endsWith( MACRO_SUFFIX )) macroName = valueText.substring( MACRO_PREFIX.length(), valueText.length() - MACRO_SUFFIX.length() ); return macroName; } /** * Determines a macro's value using the given <code>context</code>. * * @param context component that contains the dependency; assumed not * <code>null</code>. * @param macroName name of the macro to resolve (without prefix or suffix); * assumed not <code>null</code>. * * @return the value of the macro in the given context, or <code>null</code> * if the macro could not be resolved. */ private static String resolveMacro(PSDisplayMapping context, String macroName) { String macroValue = null; if (macroName.equals("fieldName") || macroName.equals("simpleChildFieldSet")) { macroValue = context.getFieldRef(); } else if (macroName.equals(("simpleChildField"))) { PSDisplayMapper mapper = context.getDisplayMapper(); if (mapper != null) { Iterator mappings = mapper.iterator(); while (mappings.hasNext()) { /* * A simple child will always only have one field mapped. That * is the one we need to extract. */ PSDisplayMapping mapping = (PSDisplayMapping) mappings.next(); macroValue = mapping.getFieldRef(); } } else { /* * The workbench did already resolve the correct mapping for us. */ macroValue = context.getFieldRef(); } } else { // an unknown macro was specified -- do nothing } return macroValue; } /** Prefix for all macro names */ private static final String MACRO_PREFIX = "$("; /** Suffix for all macro names */ private static final String MACRO_SUFFIX = ")"; }
e073641afc625db0bc566c3a6083ec8a2e29ce61
a02a47aefce50e12b3131fdc69152ba1f78d3b55
/src/JavaCalculator.java
91fdba8107cc9e18bb48ea40166689ca2ad34053
[]
no_license
emorilebo/JavaCalculator
e547b0793fe12e7d6d00e9f4a019ceadd366d7d8
0343c141946929d26e8b19faa9d3acb387cfe8ba
refs/heads/master
2021-03-07T14:21:31.395936
2020-03-10T10:29:53
2020-03-10T10:29:53
246,271,685
0
0
null
null
null
null
UTF-8
Java
false
false
7,947
java
import javax.swing.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class JavaCalculator { private double total1 = 0.0; private double total2 = 0.0; private char math_operator; private JPanel JavaCalculator; private JTextField displayText; private JButton btnOne; private JButton btnFour; private JButton btnSeven; private JButton btnZero; private JButton btnTwo; private JButton btnFive; private JButton btnEight; private JButton btnDot; private JButton btnThree; private JButton btnSix; private JButton btnNine; private JButton clearButton; private JButton btnPlus; private JButton btnMultiply; private JButton btnEquals; private JButton scientificButton; private JButton btnMinus; private JButton btnDivide; private JButton btnBackSpace; private void getOperator(String btnText){ math_operator = btnText.charAt(0); total1 = total1 +Double.parseDouble(displayText.getText()); displayText.setText(""); } public JavaCalculator() { btnOne.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { String btnOneText = displayText.getText() + btnOne.getText(); displayText.setText(btnOneText); } }); btnTwo.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { String btnTwoText = displayText.getText() + btnTwo.getText(); displayText.setText(btnTwoText); } }); btnThree.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { String btnThreeText = displayText.getText() + btnThree.getText(); displayText.setText(btnThreeText); } }); btnFour.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { String btnFourText = displayText.getText() + btnFour.getText(); displayText.setText(btnFourText); } }); btnFive.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { String btnFiveText = displayText.getText() + btnFive.getText(); displayText.setText(btnFiveText); } }); btnSix.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { String btnSixText = displayText.getText() + btnSix.getText(); displayText.setText(btnSixText); } }); btnSeven.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { String btnSevenText = displayText.getText() + btnSeven.getText(); displayText.setText(btnSevenText); } }); btnEight.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { String btnEightText = displayText.getText() + btnEight.getText(); displayText.setText(btnEightText); } }); btnNine.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { String btnNineText = displayText.getText() + btnNine.getText(); displayText.setText(btnNineText); } }); btnZero.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { String btnZeroText = displayText.getText() + btnZero.getText(); displayText.setText(btnZeroText); } }); btnPlus.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { // total1 = total1 + Double.parseDouble(displayText.getText()); // displayText.setText(""); String buttonText = btnPlus.getText(); getOperator(buttonText); } }); btnMinus.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { String buttonText = btnMinus.getText(); getOperator(buttonText); } }); btnMultiply.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { String buttonText = btnMultiply.getText(); getOperator(buttonText); } }); btnDivide.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { String buttonText = btnDivide.getText(); getOperator(buttonText); } }); btnEquals.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { switch (math_operator){ case '+' : total2 = total1 + Double.parseDouble(displayText.getText()); break; case '-': total2 = total1 - Double.parseDouble(displayText.getText()); break; case '*': total2 = total1 * Double.parseDouble(displayText.getText()); break; case '/': total2 = total1 / Double.parseDouble(displayText.getText()); break; } displayText.setText(Double.toString(total2)); total1 = 0; } }); clearButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { total2 = 0; displayText.setText(""); } }); btnDot.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { //Make it neater with "0." instead of just "." if(displayText.getText().equals("")){ displayText.setText("0."); } //Avoid bug caused by ".." or "1.." or ".2." as not acceptable for calculator else if(displayText.getText().contains(".")) { btnDot.setEnabled(false); }//Only accept else { String btnDotText = displayText.getText() + btnDot.getText(); displayText.setText(btnDotText); } btnDot.setEnabled(true ); } }); btnBackSpace.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { String currentText = displayText.getText(); int len = currentText.length(); if(len>0){ String newDisplay = currentText.substring(0,len-1); displayText.setText(newDisplay); }else{ displayText.setText("There is nothing to delete"); } } }); } public static void main(String[] args) { JFrame frame = new JFrame("JavaCalculator"); frame.setContentPane(new JavaCalculator().JavaCalculator); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.pack(); frame.setVisible(true); } }
94c86c8551b25ab17b9468d04857766d4a32c2b6
83202eb3fc58a3273fd8fd66942113a27d7e3d58
/Tic-Tac-Toe with AI/task/src/tictactoe/ComputerPlayer.java
e63059acd7eed3fa542cacac4f7826f24e2bad2f
[]
no_license
mikestagney/Tic-Tac-Toe-with-AI
0da29dade184d23973d2609ef111bcf1e07af509
ab61e5b32c12cacc28781f03861eb778ec99fc69
refs/heads/master
2023-05-15T05:55:51.811425
2021-06-15T03:13:31
2021-06-15T03:13:31
355,758,618
0
0
null
null
null
null
UTF-8
Java
false
false
136
java
package tictactoe; public class ComputerPlayer extends Player { public ComputerPlayer(char piece) { super(piece); } }
a5b3b37c80281e8a83cac295e6099e96ab065ee9
14140dbf1d982c6b6b4672d43a6dbdcfd2088ae4
/src/wh/trainwork/train/Getprize.java
f6b7d910e55b652441bf156a3659fbdf0353a642
[]
no_license
thisisnotCodefarmer/Studying
7ffdf3e4667b5e3de6020706afe035336002b6ac
5dc4d48e2365a3ac4248395c5a1fdddbd0dfe765
refs/heads/master
2020-03-24T22:28:03.349211
2018-08-17T02:07:34
2018-08-17T02:07:34
143,086,870
0
0
null
null
null
null
UTF-8
Java
false
false
428
java
package wh.trainwork.train; import java.util.Scanner; public class Getprize { public static void main(String[] args){ Scanner input=new Scanner(System.in); System.out.println("输入张浩的JAVA成绩:"); int Score=input.nextInt(); if(Score>98){ System.out.println("不错奖励一个MP4!"); }else{ System.out.println("接受惩罚"); } } }
88141b558de4abb43705633c39a2c6a5295895f1
5354cbd529f3bd5887e49db56bc8ce474326711e
/src/main/java/net/dv8tion/jda/internal/handle/InteractionCreateHandler.java
85770a37a860885b4e308a750fa23201ff0b985f
[ "Apache-2.0" ]
permissive
Andre601/JDA
ffce0249092508be1260e1c22eb364c55e7e5e8c
7171c427086953ce58e8427363708b175ccacfe2
refs/heads/master
2023-03-04T13:46:43.311758
2023-02-24T12:00:31
2023-02-24T12:00:31
231,244,678
1
3
Apache-2.0
2021-03-04T17:38:46
2020-01-01T17:31:25
null
UTF-8
Java
false
false
6,678
java
/* * Copyright 2015 Austin Keener, Michael Ritter, Florian Spieß, and the JDA contributors * * 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 net.dv8tion.jda.internal.handle; import net.dv8tion.jda.api.entities.Guild; import net.dv8tion.jda.api.entities.channel.middleman.GuildChannel; import net.dv8tion.jda.api.events.interaction.GenericInteractionCreateEvent; import net.dv8tion.jda.api.events.interaction.ModalInteractionEvent; import net.dv8tion.jda.api.events.interaction.command.CommandAutoCompleteInteractionEvent; import net.dv8tion.jda.api.events.interaction.command.MessageContextInteractionEvent; import net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent; import net.dv8tion.jda.api.events.interaction.command.UserContextInteractionEvent; import net.dv8tion.jda.api.events.interaction.component.ButtonInteractionEvent; import net.dv8tion.jda.api.events.interaction.component.EntitySelectInteractionEvent; import net.dv8tion.jda.api.events.interaction.component.StringSelectInteractionEvent; import net.dv8tion.jda.api.interactions.InteractionType; import net.dv8tion.jda.api.interactions.commands.Command; import net.dv8tion.jda.api.interactions.components.Component; import net.dv8tion.jda.api.utils.data.DataObject; import net.dv8tion.jda.internal.JDAImpl; import net.dv8tion.jda.internal.interactions.InteractionImpl; import net.dv8tion.jda.internal.interactions.modal.ModalInteractionImpl; import net.dv8tion.jda.internal.interactions.command.CommandAutoCompleteInteractionImpl; import net.dv8tion.jda.internal.interactions.command.MessageContextInteractionImpl; import net.dv8tion.jda.internal.interactions.command.SlashCommandInteractionImpl; import net.dv8tion.jda.internal.interactions.command.UserContextInteractionImpl; import net.dv8tion.jda.internal.interactions.component.ButtonInteractionImpl; import net.dv8tion.jda.internal.interactions.component.EntitySelectInteractionImpl; import net.dv8tion.jda.internal.interactions.component.StringSelectInteractionImpl; import net.dv8tion.jda.internal.requests.WebSocketClient; public class InteractionCreateHandler extends SocketHandler { public InteractionCreateHandler(JDAImpl api) { super(api); } @Override protected Long handleInternally(DataObject content) { int type = content.getInt("type"); int version = content.getInt("version", 1); if (version != 1) { WebSocketClient.LOG.debug("Received interaction with version {}. This version is currently unsupported by this version of JDA. Consider updating!", version); return null; } long guildId = content.getUnsignedLong("guild_id", 0); Guild guild = api.getGuildById(guildId); if (api.getGuildSetupController().isLocked(guildId)) return guildId; if (guildId != 0 && guild == null) return null; // discard event if it is not from a guild we are currently in if (guild != null) { GuildChannel channel = guild.getGuildChannelById(content.getUnsignedLong("channel_id", 0)); if (channel == null || !channel.getType().isMessage()) // TODO: This might break when interactions can be used outside of message channels in the future, not the case right now though! { WebSocketClient.LOG.debug("Discarding INTERACTION_CREATE event from unexpected channel type. Channel: {}", channel); return null; } } switch (InteractionType.fromKey(type)) { case COMMAND: // slash commands handleCommand(content); break; case COMPONENT: // buttons/components handleAction(content); break; case COMMAND_AUTOCOMPLETE: api.handleEvent( new CommandAutoCompleteInteractionEvent(api, responseNumber, new CommandAutoCompleteInteractionImpl(api, content))); break; case MODAL_SUBMIT: api.handleEvent( new ModalInteractionEvent(api, responseNumber, new ModalInteractionImpl(api, content))); break; default: api.handleEvent( new GenericInteractionCreateEvent(api, responseNumber, new InteractionImpl(api, content))); } return null; } private void handleCommand(DataObject content) { switch (Command.Type.fromId(content.getObject("data").getInt("type"))) { case SLASH: api.handleEvent( new SlashCommandInteractionEvent(api, responseNumber, new SlashCommandInteractionImpl(api, content))); break; case MESSAGE: api.handleEvent( new MessageContextInteractionEvent(api, responseNumber, new MessageContextInteractionImpl(api, content))); break; case USER: api.handleEvent( new UserContextInteractionEvent(api, responseNumber, new UserContextInteractionImpl(api, content))); break; } } private void handleAction(DataObject content) { switch (Component.Type.fromKey(content.getObject("data").getInt("component_type"))) { case BUTTON: api.handleEvent( new ButtonInteractionEvent(api, responseNumber, new ButtonInteractionImpl(api, content))); break; case STRING_SELECT: api.handleEvent( new StringSelectInteractionEvent(api, responseNumber, new StringSelectInteractionImpl(api, content))); break; case USER_SELECT: case ROLE_SELECT: case MENTIONABLE_SELECT: case CHANNEL_SELECT: api.handleEvent( new EntitySelectInteractionEvent(api, responseNumber, new EntitySelectInteractionImpl(api, content))); break; } } }
14f78d248e1c28632b9fa77253724fa87973be99
7cdbad6421e2eba98903162219619500683cc298
/TransactionProcessing/test/com/dhana/test/TestCryptoUtil.java
c4fc25c7c3d633f3445da04fbc50359cf18e9733
[]
no_license
DhanaTontanahal/java_file_processor
68723cd63c1f5247d0d16ad3878baf95062d1bfc
3aea39324beac2d761304fad1c4127f0c5c4fd8a
refs/heads/master
2022-10-22T17:14:04.205938
2020-06-12T15:43:07
2020-06-12T15:43:07
271,802,809
1
0
null
null
null
null
UTF-8
Java
false
false
569
java
package com.dhana.test; import com.gb.cs.encrypt.CryptoUtil; public class TestCryptoUtil { public static void main(String[] args) throws Exception { CryptoUtil cryptoUtil=new CryptoUtil(); String key="ezeon8547"; String plain="Dhana@12tds"; String enc=cryptoUtil.encrypt(key, plain); System.out.println("Original text: "+plain); System.out.println("Encrypted text: "+enc); String plainAfter=cryptoUtil.decrypt(key, enc); System.out.println("Original text after decryption: "+plainAfter); } }
94906fb2a020ccdfdfa2b475a9b22cbb351083c4
9089284ef26e528b449f75f315597cee33a2504d
/src/main/java/com/ups/xolt/codesamples/request/jaxb/DimensionsType.java
efade92e9f83d7bff629bde9c70350b1747ecf4f
[]
no_license
TheRealMarcusChiu/JavaApiUps
f50798fcaf688a429db700f84b616a9606160804
cbd33a6fc3321af89545c2ff526965565c13be1b
refs/heads/master
2020-12-30T10:12:06.805935
2017-08-03T13:58:34
2017-08-03T13:58:34
99,238,603
1
2
null
null
null
null
UTF-8
Java
false
false
3,863
java
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2017.08.03 at 08:56:33 AM CDT // package com.ups.xolt.codesamples.request.jaxb; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for DimensionsType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="DimensionsType"&gt; * &lt;complexContent&gt; * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; * &lt;sequence&gt; * &lt;element name="UnitOfMeasurement" type="{}UnitOfMeasurementType"/&gt; * &lt;element name="Length" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; * &lt;element name="Width" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; * &lt;element name="Height" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; * &lt;/sequence&gt; * &lt;/restriction&gt; * &lt;/complexContent&gt; * &lt;/complexType&gt; * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "DimensionsType", propOrder = { "unitOfMeasurement", "length", "width", "height" }) public class DimensionsType { @XmlElement(name = "UnitOfMeasurement", required = true) protected UnitOfMeasurementType unitOfMeasurement; @XmlElement(name = "Length", required = true) protected String length; @XmlElement(name = "Width", required = true) protected String width; @XmlElement(name = "Height", required = true) protected String height; /** * Gets the value of the unitOfMeasurement property. * * @return * possible object is * {@link UnitOfMeasurementType } * */ public UnitOfMeasurementType getUnitOfMeasurement() { return unitOfMeasurement; } /** * Sets the value of the unitOfMeasurement property. * * @param value * allowed object is * {@link UnitOfMeasurementType } * */ public void setUnitOfMeasurement(UnitOfMeasurementType value) { this.unitOfMeasurement = value; } /** * Gets the value of the length property. * * @return * possible object is * {@link String } * */ public String getLength() { return length; } /** * Sets the value of the length property. * * @param value * allowed object is * {@link String } * */ public void setLength(String value) { this.length = value; } /** * Gets the value of the width property. * * @return * possible object is * {@link String } * */ public String getWidth() { return width; } /** * Sets the value of the width property. * * @param value * allowed object is * {@link String } * */ public void setWidth(String value) { this.width = value; } /** * Gets the value of the height property. * * @return * possible object is * {@link String } * */ public String getHeight() { return height; } /** * Sets the value of the height property. * * @param value * allowed object is * {@link String } * */ public void setHeight(String value) { this.height = value; } }
cdebe9e660a68b3e526de66fe35a7808408ccbcd
02b785ac7a771a6cc790bfeb34876718d1cf7318
/src/main/java/com/em/sdk/core/protocol/core/methods/response/ShhMessages.java
81b95f067cbefb869336c0844d261ea36cc10b64
[]
no_license
eminerchain/eminer-web3j-sdk
6ccbd09c2e4707e4bf5cef7a2bb657e6711929d1
6689e9c807814c3c252356f3f836785d79e5342c
refs/heads/master
2022-12-28T07:01:46.269890
2020-10-10T08:35:05
2020-10-10T08:35:05
302,834,521
0
0
null
null
null
null
UTF-8
Java
false
false
5,932
java
package com.em.sdk.core.protocol.core.methods.response; import com.em.sdk.core.protocol.core.Response; import com.em.sdk.utils.Numeric; import java.math.BigInteger; import java.util.List; /** * Whisper messages returned by: * <ul> * <li>shh_getFilterChanges</li> * <li>shh_getMessages</li> * </ul> * * <p>See * <a href="https://github.com/ethereum/wiki/wiki/JSON-RPC#shh_getfilterchanges">docs</a> * for further details.</p> */ public class ShhMessages extends Response<List<ShhMessages.SshMessage>> { public List<SshMessage> getMessages() { return getResult(); } public static class SshMessage { private String hash; private String from; private String to; private String expiry; private String ttl; private String sent; private List<String> topics; private String payload; private String workProved; public SshMessage() { } public SshMessage(String hash, String from, String to, String expiry, String ttl, String sent, List<String> topics, String payload, String workProved) { this.hash = hash; this.from = from; this.to = to; this.expiry = expiry; this.ttl = ttl; this.sent = sent; this.topics = topics; this.payload = payload; this.workProved = workProved; } public String getHash() { return hash; } public void setHash(String hash) { this.hash = hash; } public String getFrom() { return from; } public void setFrom(String from) { this.from = from; } public String getTo() { return to; } public void setTo(String to) { this.to = to; } public BigInteger getExpiry() { return Numeric.decodeQuantity(expiry); } public String getExpiryRaw() { return expiry; } public void setExpiry(String expiry) { this.expiry = expiry; } public BigInteger getTtl() { return Numeric.decodeQuantity(ttl); } public String getTtlRaw() { return ttl; } public void setTtl(String ttl) { this.ttl = ttl; } public BigInteger getSent() { return Numeric.decodeQuantity(sent); } public String getSentRaw() { return sent; } public void setSent(String sent) { this.sent = sent; } public List<String> getTopics() { return topics; } public void setTopics(List<String> topics) { this.topics = topics; } public String getPayload() { return payload; } public void setPayload(String payload) { this.payload = payload; } public BigInteger getWorkProved() { return Numeric.decodeQuantity(workProved); } public String getWorkProvedRaw() { return workProved; } public void setWorkProved(String workProved) { this.workProved = workProved; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof SshMessage)) { return false; } SshMessage that = (SshMessage) o; if (getHash() != null ? !getHash().equals(that.getHash()) : that.getHash() != null) { return false; } if (getFrom() != null ? !getFrom().equals(that.getFrom()) : that.getFrom() != null) { return false; } if (getTo() != null ? !getTo().equals(that.getTo()) : that.getTo() != null) { return false; } if (getExpiryRaw() != null ? !getExpiryRaw().equals(that.getExpiryRaw()) : that.getExpiryRaw() != null) { return false; } if (getTtlRaw() != null ? !getTtlRaw().equals(that.getTtlRaw()) : that.getTtlRaw() != null) { return false; } if (getSentRaw() != null ? !getSentRaw().equals(that.getSentRaw()) : that.getSentRaw() != null) { return false; } if (getTopics() != null ? !getTopics().equals(that.getTopics()) : that.getTopics() != null) { return false; } if (getPayload() != null ? !getPayload().equals(that.getPayload()) : that.getPayload() != null) { return false; } return getWorkProvedRaw() != null ? getWorkProvedRaw().equals(that.getWorkProvedRaw()) : that.getWorkProvedRaw() == null; } @Override public int hashCode() { int result = getHash() != null ? getHash().hashCode() : 0; result = 31 * result + (getFrom() != null ? getFrom().hashCode() : 0); result = 31 * result + (getTo() != null ? getTo().hashCode() : 0); result = 31 * result + (getExpiryRaw() != null ? getExpiryRaw().hashCode() : 0); result = 31 * result + (getTtlRaw() != null ? getTtlRaw().hashCode() : 0); result = 31 * result + (getSentRaw() != null ? getSentRaw().hashCode() : 0); result = 31 * result + (getTopics() != null ? getTopics().hashCode() : 0); result = 31 * result + (getPayload() != null ? getPayload().hashCode() : 0); result = 31 * result + (getWorkProvedRaw() != null ? getWorkProvedRaw().hashCode() : 0); return result; } } }
af5a70a7b0e01f4cf3dbda7a11f28e86e91470d8
bd2ba1ef792f98aae5d57a9bd7b862ff6d63813e
/SudokuSolverJava/Model/src/test/java/prokom/sudoku/ColumnTest.java
a2f05a613a490c42a4bdd5c613d7c494e79ce5a9
[]
no_license
vitaliytsn/SudokuSolverJava
19e525269cfcde3d7c32734b6ed6442297e4fb44
80a8a28afcdbab368f4729e295a513be947f1075
refs/heads/master
2020-03-20T18:17:35.234723
2018-06-16T13:04:13
2018-06-16T13:04:13
137,581,179
0
0
null
null
null
null
UTF-8
Java
false
false
839
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. */ import prokom.sudoku.SudokuBoard; import prokom.sudoku.SudokuColumn; import org.junit.AfterClass; import org.junit.Test; import static org.junit.Assert.*; /** * * @author Vitalii */ public class ColumnTest { @Test public void testSudoColumn() { SudokuBoard s= new SudokuBoard(); s.set(0, 1, 1); s.set(0, 2, 2); s.set(0, 3, 3); s.set(0, 4, 4); s.set(0, 5, 5); s.set(0, 6, 6); s.set(0, 7, 7); s.set(0, 8, 8); SudokuColumn column = s.getColumn(0); boolean d=column.verify(2); assertFalse(d); } }
8923aff1ff41bbd2b9ab0096571f0bb48aa1e500
65d2f8d2b3eee21db2872b4ff63431b67bfa97b0
/src/test/java/tec/units/ri/unit/UnitsTest.java
2d16295a458031f61b0e7887b2ff8d7ca40ba0a3
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
lanouettea/unit-ri
e6164e29768c71e87fc24769f0d5df9b246bc8ac
590ad5db232334e166c58a056b7c864025c30670
refs/heads/master
2021-01-22T04:28:30.779448
2015-04-20T14:49:21
2015-04-20T14:49:21
34,073,425
0
0
null
2015-04-16T18:33:47
2015-04-16T18:33:46
Java
UTF-8
Java
false
false
3,661
java
/** * Unit-API - Units of Measurement API for Java * Copyright (c) 2005-2014, Jean-Marie Dautelle, Werner Keil, V2COM. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * * 3. Neither the name of JSR-363 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 HOLDER OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ package tec.units.ri.unit; import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.Test; import tec.units.ri.AbstractUnit; import static org.junit.Assert.*; import static tec.units.ri.spi.SI.GRAM; import static tec.units.ri.spi.SIPrefix.KILO; /** * * @author Werner Keil */ public class UnitsTest { public UnitsTest() { } @BeforeClass public static void setUpClass() throws Exception { } @AfterClass public static void tearDownClass() throws Exception { } @Test public void testParse() { assertEquals(KILO(GRAM), AbstractUnit.parse("kg")); // TODO: Problem with kg... } @Test public void testAnnotate() { } @Test public void testGetAnnotation() { } @Test public void testGetUnannotatedUnit() { } @Test public void testIsSystemUnit() { } @Test public void testToString() { } @Test public void testGetConverterToSystemUnit() { } @Test public void testGetSymbol() { } @Test public void testGetSystemUnit() { } @Test public void testGetProductUnits() { } @Test public void testGetDimension() { } @Test public void testIsCompatible() { } @Test public void testAsType() { } @Test public void testGetConverterTo() { } @Test public void testGetConverterToAny() { } @Test public void testAlternate() { } @Test public void testTransform() { } @Test public void testAdd() { } @Test public void testMultiply_double() { } @Test public void testMultiply_ErrorType() { } @Test public void testInverse() { } @Test public void testDivide_double() { } @Test public void testDivide_ErrorType() { } @Test public void testRoot() { } @Test public void testPow() { } @Test public void testHashCode() { } @Test public void testEquals() { } }
2d9ece86c23319ea08ff634896fac435958bc545
f2daf8efbb1657ff26aee05d312a8aad362e9ab6
/slf4j-toys/src/test/java/org/slf4j/impl/TestLogger.java
691afda0bf8f5f837d0f96afd8804b0ff1779966
[ "Apache-2.0" ]
permissive
IdelsTak/slf4j-toys
a06b053db13671aaad67e405adcfdb46d7bf3af7
738dcbfe6e4301650db241190d94fab04a3db72a
refs/heads/master
2022-12-29T14:59:28.714402
2019-11-24T19:48:48
2019-11-24T19:48:48
null
0
0
null
null
null
null
UTF-8
Java
false
false
12,491
java
/* * Copyright 2019 Daniel Felix Ferber * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.slf4j.impl; import java.io.ByteArrayOutputStream; import java.io.PrintStream; import java.util.ArrayList; import java.util.List; import org.slf4j.Logger; import org.slf4j.Marker; import org.slf4j.impl.TestLoggerEvent.Level; /** * @author Daniel Felix Ferber */ public class TestLogger implements Logger { private final String name; private boolean traceEnabled = true; private boolean debugEnabled = true; private boolean infoEnabled = true; private boolean warnEnabled = true; private boolean errorEnabled = true; private final List<TestLoggerEvent> loggerEvents = new ArrayList<TestLoggerEvent>(); public TestLogger(final String name) { this.name = name; } @Override public String getName() { return name; } @Override public boolean isTraceEnabled() { return traceEnabled; } private void addEvent(final TestLoggerEvent event) { loggerEvents.add(event); } public void clearEvents() { loggerEvents.clear(); } public void setTraceEnabled(final boolean traceEnabled) { this.traceEnabled = traceEnabled; } public void setDebugEnabled(final boolean debugEnabled) { this.debugEnabled = debugEnabled; } public void setInfoEnabled(final boolean infoEnabled) { this.infoEnabled = infoEnabled; } public void setWarnEnabled(final boolean warnEnabled) { this.warnEnabled = warnEnabled; } public void setErrorEnabled(final boolean errorEnabled) { this.errorEnabled = errorEnabled; } public void setEnabled(final boolean enabled) { this.errorEnabled = enabled; this.warnEnabled = enabled; this.infoEnabled = enabled; this.debugEnabled = enabled; this.traceEnabled = enabled; } @Override public void trace(final String message) { log(Level.TRACE, message); } @Override public void trace(final String format, final Object arg) { log(Level.TRACE, format, arg); } @Override public void trace(final String format, final Object arg1, final Object arg2) { log(Level.TRACE, format, arg1, arg2); } @Override public void trace(final String format, final Object... args) { log(Level.TRACE, format, args); } @Override public void trace(final String msg, final Throwable throwable) { log(Level.TRACE, msg, throwable); } @Override public boolean isTraceEnabled(final Marker marker) { return traceEnabled; } @Override public void trace(final Marker marker, final String msg) { log(Level.TRACE, marker, msg); } @Override public void trace(final Marker marker, final String format, final Object arg) { log(Level.TRACE, marker, format, arg); } @Override public void trace(final Marker marker, final String format, final Object arg1, final Object arg2) { log(Level.TRACE, marker, format, arg1, arg2); } @Override public void trace(final Marker marker, final String format, final Object... args) { log(Level.TRACE, marker, format, args); } @Override public void trace(final Marker marker, final String msg, final Throwable throwable) { log(Level.TRACE, marker, msg, throwable); } @Override public boolean isDebugEnabled() { return debugEnabled; } @Override public void debug(final String message) { log(Level.DEBUG, message); } @Override public void debug(final String format, final Object arg) { log(Level.DEBUG, format, arg); } @Override public void debug(final String format, final Object arg1, final Object arg2) { log(Level.DEBUG, format, arg1, arg2); } @Override public void debug(final String format, final Object... args) { log(Level.DEBUG, format, args); } @Override public void debug(final String msg, final Throwable throwable) { log(Level.DEBUG, msg, throwable); } @Override public boolean isDebugEnabled(final Marker marker) { return debugEnabled; } @Override public void debug(final Marker marker, final String msg) { log(Level.DEBUG, marker, msg); } @Override public void debug(final Marker marker, final String format, final Object arg) { log(Level.DEBUG, marker, format, arg); } @Override public void debug(final Marker marker, final String format, final Object arg1, final Object arg2) { log(Level.DEBUG, marker, format, arg1, arg2); } @Override public void debug(final Marker marker, final String format, final Object... args) { log(Level.DEBUG, marker, format, args); } @Override public void debug(final Marker marker, final String msg, final Throwable throwable) { log(Level.DEBUG, marker, msg, throwable); } @Override public boolean isInfoEnabled() { return infoEnabled; } @Override public void info(final String message) { log(Level.INFO, message); } @Override public void info(final String format, final Object arg) { log(Level.INFO, format, arg); } @Override public void info(final String format, final Object arg1, final Object arg2) { log(Level.INFO, format, arg1, arg2); } @Override public void info(final String format, final Object... args) { log(Level.INFO, format, args); } @Override public void info(final String msg, final Throwable throwable) { log(Level.INFO, msg, throwable); } @Override public boolean isInfoEnabled(final Marker marker) { return infoEnabled; } @Override public void info(final Marker marker, final String msg) { log(Level.INFO, marker, msg); } @Override public void info(final Marker marker, final String format, final Object arg) { log(Level.INFO, marker, format, arg); } @Override public void info(final Marker marker, final String format, final Object arg1, final Object arg2) { log(Level.INFO, marker, format, arg1, arg2); } @Override public void info(final Marker marker, final String format, final Object... args) { log(Level.INFO, marker, format, args); } @Override public void info(final Marker marker, final String msg, final Throwable throwable) { log(Level.INFO, marker, msg, throwable); } @Override public boolean isWarnEnabled() { return warnEnabled; } @Override public void warn(final String message) { log(Level.WARN, message); } @Override public void warn(final String format, final Object arg) { log(Level.WARN, format, arg); } @Override public void warn(final String format, final Object arg1, final Object arg2) { log(Level.WARN, format, arg1, arg2); } @Override public void warn(final String format, final Object... args) { log(Level.WARN, format, args); } @Override public void warn(final String msg, final Throwable throwable) { log(Level.WARN, msg, throwable); } @Override public boolean isWarnEnabled(final Marker marker) { return warnEnabled; } @Override public void warn(final Marker marker, final String msg) { log(Level.WARN, marker, msg); } @Override public void warn(final Marker marker, final String format, final Object arg) { log(Level.WARN, marker, format, arg); } @Override public void warn(final Marker marker, final String format, final Object arg1, final Object arg2) { log(Level.WARN, marker, format, arg1, arg2); } @Override public void warn(final Marker marker, final String format, final Object... args) { log(Level.WARN, marker, format, args); } @Override public void warn(final Marker marker, final String msg, final Throwable throwable) { log(Level.WARN, marker, msg, throwable); } @Override public boolean isErrorEnabled() { return errorEnabled; } @Override public void error(final String message) { log(Level.ERROR, message); } @Override public void error(final String format, final Object arg) { log(Level.ERROR, format, arg); } @Override public void error(final String format, final Object arg1, final Object arg2) { log(Level.ERROR, format, arg1, arg2); } @Override public void error(final String format, final Object... args) { log(Level.ERROR, format, args); } @Override public void error(final String msg, final Throwable throwable) { log(Level.ERROR, msg, throwable); } @Override public boolean isErrorEnabled(final Marker marker) { return errorEnabled; } @Override public void error(final Marker marker, final String msg) { log(Level.ERROR, marker, msg); } @Override public void error(final Marker marker, final String format, final Object arg) { log(Level.ERROR, marker, format, arg); } @Override public void error(final Marker marker, final String format, final Object arg1, final Object arg2) { log(Level.ERROR, marker, format, arg1, arg2); } @Override public void error(final Marker marker, final String format, final Object... args) { log(Level.ERROR, marker, format, args); } @Override public void error(final Marker marker, final String msg, final Throwable throwable) { log(Level.ERROR, marker, msg, throwable); } private void log(final Level level, final String format, final Object... args) { addLoggingEvent(level, null, null, format, args); } private void log(final Level level, final String msg, final Throwable throwable) { addLoggingEvent(level, null, throwable, msg, (Object[]) null); } private void log(final Level level, final Marker marker, final String format, final Object... args) { addLoggingEvent(level, marker, null, format, args); } private void log(final Level level, final Marker marker, final String msg, final Throwable throwable) { addLoggingEvent(level, marker, throwable, msg, (Object[]) null); } private void log(final Level level, final String format, final Marker marker, final Object[] args) { addLoggingEvent(level, marker, null, format, args); } private void addLoggingEvent( final Level level, final Marker marker, final Throwable throwable, final String format, final Object... args) { final TestLoggerEvent event = new TestLoggerEvent(name, level, null, marker, throwable, format, args); loggerEvents.add(event); print(event); } private void print(final TestLoggerEvent event) { final PrintStream ps = event.getLevel() == Level.ERROR || event.getLevel() == Level.WARN ? System.err : System.out; ps.println(formatLogStatement(event)); ps.flush(); } private String formatLogStatement(final TestLoggerEvent event) { if (event.getThrowable() == null) { return event.getLevel() + " " + event.getLoggerName() + ": " + event.getFormattedMessage(); } ByteArrayOutputStream s = new ByteArrayOutputStream(); event.getThrowable().printStackTrace(new PrintStream(s)); String st = new String(s.toByteArray()); return event.getLevel() + " " + event.getLoggerName() + ": " + event.getFormattedMessage() + "\n" + st; } public int getEventCount() { return loggerEvents.size(); } public TestLoggerEvent getEvent(final int i) { return loggerEvents.get(i); } }
4e629b66c1f9b511a8a31f37e9364873df06854c
fee023a8a356bb01cefaa4134204ca3bc6610872
/android/gen/com/locator/R.java
04dceb7e41ddb73a7f81ccd4b434aeca6a2f4479
[]
no_license
zviadm/locator
ae4101bd98e33529cd4389218961b41807e7ab31
973f7b0e3b073d7d59f6619218cb43fa134e97a3
refs/heads/master
2016-09-05T15:25:16.079956
2012-03-08T17:53:49
2012-03-08T17:53:49
3,564,240
3
1
null
null
null
null
UTF-8
Java
false
false
1,085
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.locator; public final class R { public static final class attr { } public static final class drawable { public static final int icon=0x7f020000; } public static final class id { public static final int but_end_tracking=0x7f050002; public static final int but_gather_samples=0x7f050005; public static final int but_snapshot=0x7f050003; public static final int but_start_tracking=0x7f050001; public static final int progress_samples=0x7f050006; public static final int text_location_id=0x7f050004; public static final int text_num_samples=0x7f050000; public static final int text_routers=0x7f050007; } public static final class layout { public static final int main=0x7f030000; } public static final class string { public static final int app_name=0x7f040000; } }
ccd7e9cda9e35ab0423b38468db043cda3511e4e
85dbd28370e24c27baecfbad616dd598015791bc
/src/main/java/com/iotek/service/impl/DeptAndJobServiceImpl.java
e69a947196df842e80b0f29e96749d5709df5869
[]
no_license
Crimson19/hr_project
d70fd3814007201b9130c182f4b714015110c8d6
fd1cb7b52f16ab90fa58ba54bd313fa3cd359911
refs/heads/master
2021-09-10T12:03:10.238617
2018-03-26T01:52:32
2018-03-26T01:52:32
125,200,979
0
0
null
null
null
null
UTF-8
Java
false
false
870
java
package com.iotek.service.impl; import com.iotek.dao.DeptAndJobDao; import com.iotek.po.DeptAndJob; import com.iotek.service.DeptAndJobService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; @Service(value = "deptAndJobService") public class DeptAndJobServiceImpl implements DeptAndJobService { @Autowired private DeptAndJobDao deptAndJobDao; @Override public boolean addDeptAndJob(DeptAndJob deptAndJob) { return deptAndJobDao.addDeptAndJob(deptAndJob); } @Override public DeptAndJob updateDeptAndJob(DeptAndJob deptAndJob) { return deptAndJobDao.updateDeptAndJob(deptAndJob); } @Override public List<DeptAndJob> queryDeptAndJob(DeptAndJob deptAndJob) { return deptAndJobDao.queryDeptAndJob(deptAndJob); } }
adb48c063dc5dae2343cf05298d4dbda3af48b12
4093d8ec7f7a71f0936c245cd77592feffa58b1b
/src/cs475_lambda_rehm/LambdaExpr.java
361408abdaf8d095ded53b208ba5f2ca40c7a6b5
[]
no_license
chadrehm/lambda-parser
1a292245d03cfc83036e6ae909462d4d00f875b9
de079698e9616d4c967ca079103b3253db04d5d6
refs/heads/master
2023-03-07T07:19:45.988248
2021-02-21T17:01:43
2021-02-21T17:01:43
340,919,717
0
0
null
null
null
null
UTF-8
Java
false
false
285
java
/** * @author Chad Rehm * @data 2/18/21 * @descriptioin this interface describes the lambda class contract */ package cs475_lambda_rehm; public interface LambdaExpr { public String copy(); public LambdaExpr substitute(Variable var, LambdaExpr value); public ExprKind type(); }
5b6ae41f54a6d0bf6172e1356d5968f1e7f6bfc0
302dc07f01d0ce5fc9439610031b61665f5ed85e
/src/a_begin/Score2.java
c3b7498748e60de549ef91d862994912737fc06d
[]
no_license
jihyun5120/JHTA
d4ebbc934263c711b74cfeefa6782708578f8fb1
53285c285d04f1eede12fb94dcd7c43b32857113
refs/heads/master
2021-01-04T08:18:27.875280
2020-05-24T11:21:05
2020-05-24T11:21:05
240,463,076
0
0
null
null
null
null
UHC
Java
false
false
620
java
/* * 파일명 : Score2.java * 조건 : 하나의 문자열과 실수형 점수, 그리고 하나의 문자로 되어있는 학점이 발생한다. 적당한 변수에 저장한 후 출력하시오. * 출력 이름: 홍길동 * 점수: 100.0 * 학점: A */ package a_begin; public class Score2 { public static void main(String[] args) { String name = "홍길동"; double score = 100; //float score = 100f; char grade = 'A'; //String grade = "A"; System.out.println("이름: " + name); System.out.println("점수: " + score); System.out.println("학점: " + grade); } }
c3746c3a4c057bbedbc68d48461fc02280ddfed2
991b2ff6786182e666c7c8446d815fe0bb6e2d85
/src/main/java/cn/com/showings/service/IMajorAreaService.java
430bb8a2b729c6f9f34e65b54ec5af6fc3ced950
[]
no_license
cc8848/HouseRent-3
b448b7ead99112210d62f66c959878d09b2aa63b
93f84421d7ca0b019dba0a3e400bc61e5ddb7d29
refs/heads/master
2021-01-02T08:17:57.675366
2017-02-17T01:46:33
2017-02-17T01:46:33
null
0
0
null
null
null
null
UTF-8
Java
false
false
880
java
package cn.com.showings.service; import cn.com.showings.pojo.MajorArea; import java.util.List; /** * 知识产权声明:本文件自创建起,其内容的知识产权即归属于原作者,任何他人不可擅自复制或模仿. * 创建者: wu 创建时间: 2016/12/16 * 类说明: * 更新记录: */ public interface IMajorAreaService { /** * 添加指定用户的擅长地区 * * @param userID 用户ID * @param areaID 地区编号 * @return * @throws Exception */ boolean add(int userID, int areaID) throws Exception; /** * 删除指定用户的擅长地区 * * @param userID 用户ID * @param areaID 地区编号 * @return * @throws Exception */ boolean remove(int userID, int areaID) throws Exception; List<MajorArea> getMajorAreaByUser(int userID) throws Exception; }
6eda451b39d44768e58452bfc55d67c1482a775c
927c83fa9f8678915daee3f960c2da24d9cff872
/src/main/java/com/app/bookstore/repository/CategoriaRepository.java
d74ad547b4e4363167f53602f07eed8e946e2dbc
[]
no_license
jowcarvajal/bookstore-app-starter
32d8c2c9354a236493ec1a205718e2c37cb5ce95
634d335e4fb3489aa4435de704a86019092348b1
refs/heads/master
2023-03-11T02:00:43.010264
2021-02-21T22:57:50
2021-02-21T22:57:50
340,734,600
0
0
null
null
null
null
UTF-8
Java
false
false
291
java
package com.app.bookstore.repository; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import com.app.bookstore.domain.Categoria; @Repository public interface CategoriaRepository extends JpaRepository<Categoria, Integer>{ }
0f8d881e6424aa6a9247b523259e803d12c809b3
3c55aa69c1d94d49f7e3beaed04586d2fc8eb0e7
/binding2/mdsal-binding2-generator-impl/src/main/java/org/opendaylight/mdsal/binding/javav2/generator/impl/GeneratedClassLoadingStrategy.java
5d8185912663b5fc4dcb3f9da4d483d0c4e34492
[]
no_license
SoonPoong-Hong/mdsal
dee8a88e3900ff2776e7ab18da51ffa626fb1d1a
70faf85793f1639b7fc192a28b25d66e10806cab
refs/heads/master
2020-04-07T06:41:12.797753
2018-03-02T03:35:52
2018-03-06T14:50:04
124,189,614
1
0
null
2018-03-07T06:25:14
2018-03-07T06:25:14
null
UTF-8
Java
false
false
1,480
java
/* * Copyright (c) 2017 Cisco Systems, Inc. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ package org.opendaylight.mdsal.binding.javav2.generator.impl; import com.google.common.annotations.Beta; import org.opendaylight.mdsal.binding.javav2.generator.api.ClassLoadingStrategy; import org.opendaylight.mdsal.binding.javav2.model.api.Type; import org.opendaylight.yangtools.util.ClassLoaderUtils; @Beta public abstract class GeneratedClassLoadingStrategy implements ClassLoadingStrategy { private static final GeneratedClassLoadingStrategy TCCL_STRATEGY = new TCCLClassLoadingStrategy(); @Override public Class<?> loadClass(final Type type) throws ClassNotFoundException { return loadClass(type.getFullyQualifiedName()); } @Override public abstract Class<?> loadClass(String fqcn) throws ClassNotFoundException; public static ClassLoadingStrategy getTCCLClassLoadingStrategy() { return TCCL_STRATEGY; } private static final class TCCLClassLoadingStrategy extends GeneratedClassLoadingStrategy { @Override public Class<?> loadClass(final String fullyQualifiedName) throws ClassNotFoundException { return ClassLoaderUtils.loadClassWithTCCL(fullyQualifiedName); } } }
3b0a3b9169702f361236603c408d1cf02b71618e
0536d8e36f3be3917d51b9ba297ab3dc3458869f
/AndroidApp/protocoder/src/org/protocoder/apidoc/APIManagerDoc.java
2856ed37d7446d6f141216be697deaac64697853
[ "MIT" ]
permissive
movilujo/protocoder
941a97ef050ba6ad80015b2db17988ac2926131f
6dbaa4144bd36292a8e779864ecbe2158a229d03
refs/heads/master
2021-01-15T15:00:22.641979
2014-07-08T19:41:14
2014-07-08T19:41:14
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,443
java
/* * Protocoder * A prototyping platform for Android devices * * Victor Diaz Barrales [email protected] * * Copyright (C) 2014 Victor Diaz * Copyright (C) 2013 Motorola Mobility LLC * * 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.protocoder.apidoc; import java.util.Vector; class APIManagerDoc { public Vector<APIManagerClass> apiClasses = new Vector<APIManagerClass>(); }
d3a9f4eb39379f4e41e224bbfd534d9c48a11ed6
699082db55d0fe28a2759d2c3ceff9358a1945f9
/Computer Summative/src/computersummative/Platforms.java
bc50bcf6977bdf9875630ac61585e36815edb290
[]
no_license
mannyray/InfiniteFun
b46182f4b8ba7d198a44e3025e8fd9d2c6f0b969
934f7688b4e81d79a6c39fd8ea668cfff2e32f89
refs/heads/master
2021-01-21T01:44:24.344037
2016-06-23T01:48:16
2016-06-23T01:48:16
61,764,047
0
0
null
null
null
null
UTF-8
Java
false
false
4,296
java
//'Infinite Fun' by Braden, Dan and Stan. package computersummative; import java.awt.*; public class Platforms { private int platformWidth;//varialbes used in class private int platformHeight; private int x; private int y; private int speed; private int arc; private int height; private int width; private int hHeight; private int hWidth; private int moving; private int addition; public int loser; private String platformTypeChoice; public String platformType[] = {"spiky","r","r","r","moving","spiky","r","r","r","r","moving","invisy","moving","moving","invisy"};//types of platforms (r is regular, moving is moving, invisy is fall through and spiky is spiked) private int[] sideSpeed={5,1,-2,-7,8,-5};//moving platform speed types public boolean GameOver; public boolean collision; public Platforms(Dimensions d,WallGenerator wg,int yStart, Hero h){//constructor --> defines the variables platformWidth = d.width/12; platformHeight = 10;//speed dimensions speed = wg.speed;//vertical speed of the platforms arc = 2;//curve of the platforms height = d.height; width = d.height;//dimensions of the screen arc = 3; y = yStart;//y coordinate x = (int)(Math.floor(Math.random()*width/2)+width/4);//x coordinate hHeight = h.HeroHeight; hWidth = h.HeroWidth;//hero dimensions platformTypeChoice= "r";//all platform types in the first moment are regular } public void paint(Graphics g){//painthing method if(platformTypeChoice.equals("moving")){//if the colour is moving, its colour is moving g.setColor(Color.MAGENTA); } else{ g.setColor(Color.red);//all others are red } g.fillRoundRect(x,y,platformWidth,platformHeight,arc,arc);//draw platforms if(platformTypeChoice.equals("invisy")){//if its fall through - draw a white slash through it g.setColor(Color.white); g.drawLine(x,y+platformHeight/2,x+platformWidth,y+platformHeight/2); } if(platformTypeChoice.equals("spiky")){//if spiky draw spikes for(int i = 0; i < platformWidth; i += platformWidth/10){ g.setColor(Color.white); g.drawLine(x+i, y, x+i, y-20); }/////////////////////////////////////////only the moving platforms, regular and fall through platforms and spiky platforms mix up their horizontal speeds to create a 'harder' aspect } } public void tracker(){ y -= speed; addition += moving; if(addition>100||addition<-100){ moving *=-1; } x -= moving; if(y+platformWidth<=0){ y = height; x = (int)(Math.floor(Math.random()*width/2)+width/4); platformTypeChoice= platformType[(int)Math.floor(Math.random()*platformType.length)]; if(platformTypeChoice.equals("moving")){ moving = sideSpeed[(int)(Math.floor(Math.random()*sideSpeed.length))]; } } } public boolean collision(Hero hh,boolean coll,int l){ collision = false; if(!coll){//if the platforms hasn't collided already, check for collisions based on coordinates and dimensions if(hh.x>=x-hWidth+1&&hh.x<=x+platformWidth&&hh.y<y&&hh.y+hHeight>=y+1&&!platformTypeChoice.equals("spiky")&&!platformTypeChoice.equals("invisy")){ collision = true; //for regular platforms and other except spiked and fall through } else if(hh.x>=x-hWidth+1&&hh.x<=x+platformWidth&&hh.y<y&&hh.y+hHeight>=y+1&&platformTypeChoice.equals("spiky")){ GameOver = true;//for spiked platforms loser = l; } else{//for fall through platforms collision = false; } } else{//passes the value of the collision on if was already true collision = coll; } return(collision); } public int loser(int l){//loser determining method if(l!=0){ loser = l; } return(loser); } }
1e6e608f395bae5d416678f6f4b6d326a41449cc
33c6351a35563d2684dbcf3bd4ed865166827165
/src/main/java/com/topov/usermanagement/validation/validator/UserUpdateValidator.java
586233b888463cb54d85b91e4934b4112b93abc2
[]
no_license
TopoVV/user-management
3da1f1a70521f42084b0873efb3dcae3dddd5882
5fe346e20347f5ceb5a7e7e46583531de564c436
refs/heads/main
2023-01-06T11:49:18.973085
2020-11-03T13:18:18
2020-11-03T13:18:18
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,650
java
package com.topov.usermanagement.validation.validator; import com.topov.usermanagement.exception.UserManagementException; import com.topov.usermanagement.model.User; import com.topov.usermanagement.repository.UserRepository; import com.topov.usermanagement.validation.UserUpdateValidation; import com.topov.usermanagement.validation.constraint.UniqueLogin; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.stereotype.Component; import javax.validation.ConstraintValidator; import javax.validation.ConstraintValidatorContext; public class UserUpdateValidator implements ConstraintValidator<UniqueLogin, UserUpdateValidation> { private UserRepository userRepository; @Override public boolean isValid(UserUpdateValidation userUpdateValidation, ConstraintValidatorContext ctx) { User user = userRepository.findById(userUpdateValidation.getUserId()) .orElseThrow(() -> new UserManagementException("User not found", null, HttpStatus.NOT_FOUND)); String login = userUpdateValidation.getLogin(); if (!user.getLogin().equals(login) && userRepository.existsByLogin(login)) { ctx.disableDefaultConstraintViolation(); ctx.buildConstraintViolationWithTemplate(ctx.getDefaultConstraintMessageTemplate()) .addPropertyNode("Login") .addConstraintViolation(); return false; } return true; } @Autowired public void setUserRepository(UserRepository userRepository) { this.userRepository = userRepository; } }
4aadf0cd731494ee05e640d79399a7b8d271a069
5c37ee64c4553ec6f7fa0ca5c52d408006fd111c
/src/main/java/ro/fasttrackit/curs8/model/entity/Address.java
8aa00122c27903bb634b8f5c4f60a1ad95aef13e
[]
no_license
bulzanstefan/fullstack01-curs8-code
29ebbb184f871e838090e91d19a9d702b4b01065
91add751895913ebfbde0348bd741da1e70b61d7
refs/heads/master
2023-04-09T14:03:19.552745
2021-04-19T21:06:46
2021-04-19T21:06:46
359,598,545
0
0
null
null
null
null
UTF-8
Java
false
false
448
java
package ro.fasttrackit.curs8.model.entity; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; @Entity @Data @NoArgsConstructor @AllArgsConstructor @Builder public class Address { @Id @GeneratedValue private Long id; private String street; private String city; }
367caf03809588b31b4386ccf065e0d78f3c5248
cf5d863814c092cbecf29df28886f8774f3e82c4
/src/test/java/com/min/minapp/MybatisTest.java
6b3ed8acc69663ca6f805ce44b6cf703ada70e02
[]
no_license
dufma9385/Study_Spring_blog
30a13f8dcf981ed38b6f8113759a45150218d3ae
b5083bffb3e74b5eb57347c23d009dc774d87a44
refs/heads/master
2023-01-28T23:17:20.723992
2020-12-14T02:13:15
2020-12-14T02:13:15
295,439,863
0
0
null
2020-09-15T15:02:25
2020-09-14T14:22:12
Java
UTF-8
Java
false
false
1,034
java
package com.mycompany.myapp; import javax.annotation.Resource; import javax.inject.Inject; import org.apache.ibatis.session.SqlSession; import org.apache.ibatis.session.SqlSessionFactory; import org.junit.Test; import org.junit.runner.RunWith; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations = { "classpath:spring/dataSource-context.xml" }) public class MybatisTest { private static final Logger logger = LoggerFactory.getLogger(MybatisTest.class); @Inject private SqlSessionFactory sessionFactory; @Test public void testSessionFactory() { logger.info("\n Session Factory : " + sessionFactory); } @Test public void testSqlSession() { try (SqlSession session = sessionFactory.openSession()){ logger.info("\n Sql Session : " + session); } catch (Exception e) { e.printStackTrace(); } } }
4125f38859028d6f2c584a6885681110e4e311ac
768d54fff9888b8f960499b833b5d0fa4d4d8867
/pranveraapp-common/src/main/java/com/pranveraapp/common/logging/DisableSupportLoggerAdapter.java
704ca734c0c092e091867601cdb304b7e33ddfac
[]
no_license
ehaxhi/pranveraapp
b0b7ee94e64ccf6083b18ef1780ce4bc49bba515
bfe887c4caae65ec78ca444139766b768aab8d6f
refs/heads/master
2023-04-10T06:31:08.873609
2023-03-25T16:04:19
2023-03-25T16:04:19
52,970,638
0
0
null
null
null
null
UTF-8
Java
false
false
1,588
java
package com.pranveraapp.common.logging; /** * <p>An implementation of SupportLoggerAdapter that would disable SupportLogger logging. (i.e. do nothing)</p> * @author elion */ public class DisableSupportLoggerAdapter implements SupportLoggerAdapter { @Override public String getName() { return null; } @Override public void setName(String name) { //do nothing } @Override public void support(String message) { //do nothing } @Override public void support(String message, Throwable t) { //do nothing } @Override public void lifecycle(LifeCycleEvent lifeCycleEvent, String message) { //do nothing } @Override public void debug(String message) { //do nothing } @Override public void debug(String message, Throwable t) { //do nothing } @Override public void error(String message) { //do nothing } @Override public void error(String message, Throwable t) { //do nothing } @Override public void fatal(String message) { //do nothing } @Override public void fatal(String message, Throwable t) { //do nothing } @Override public void info(String message) { //do nothing } @Override public void info(String message, Throwable t) { //do nothing } @Override public void warn(String message) { //do nothing } @Override public void warn(String message, Throwable t) { //do nothing } }
587fefb55a1dbeb9fe9a994390e764d21e7ed010
2e866fa46692a58b88e3b33cb0ff1a3693432795
/platform/external-system-impl/testSrc/com/intellij/openapi/externalSystem/service/project/manage/ExternalSystemTaskActivatorTest.java
b92871abee1c609afa73008d75638b90c332da45
[ "Apache-2.0" ]
permissive
ForNeVeR/intellij-community
44fd60cac8854984088afb668f97bf18ade89ec3
0f9b0c5e806ca9532a128cc9c622601700e24aa7
refs/heads/master
2020-09-11T15:08:09.707044
2019-11-15T23:24:56
2019-11-15T23:41:38
222,079,787
0
1
Apache-2.0
2019-12-02T21:03:37
2019-11-16T10:01:54
null
UTF-8
Java
false
false
9,353
java
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.openapi.externalSystem.service.project.manage; import com.intellij.execution.configurations.ConfigurationType; import com.intellij.openapi.externalSystem.ExternalSystemManager; import com.intellij.openapi.externalSystem.model.DataNode; import com.intellij.openapi.externalSystem.model.ExternalSystemException; import com.intellij.openapi.externalSystem.model.ProjectKeys; import com.intellij.openapi.externalSystem.model.project.ModuleData; import com.intellij.openapi.externalSystem.model.project.ProjectData; import com.intellij.openapi.externalSystem.model.task.ExternalSystemTaskId; import com.intellij.openapi.externalSystem.model.task.ExternalSystemTaskNotificationListener; import com.intellij.openapi.externalSystem.service.execution.AbstractExternalSystemTaskConfigurationType; import com.intellij.openapi.externalSystem.service.execution.ProgressExecutionMode; import com.intellij.openapi.externalSystem.service.project.ExternalSystemProjectResolver; import com.intellij.openapi.externalSystem.task.ExternalSystemTaskManager; import com.intellij.openapi.externalSystem.test.TestExternalProjectSettings; import com.intellij.openapi.externalSystem.test.TestExternalSystemExecutionSettings; import com.intellij.openapi.externalSystem.test.TestExternalSystemManager; import com.intellij.openapi.externalSystem.util.ExternalSystemApiUtil; import com.intellij.openapi.externalSystem.util.ExternalSystemUtil; import com.intellij.openapi.module.Module; import com.intellij.openapi.module.ModuleManager; import com.intellij.openapi.util.Key; import com.intellij.openapi.util.KeyWithDefaultValue; import com.intellij.openapi.util.registry.Registry; import com.intellij.openapi.util.text.StringUtil; import com.intellij.task.ProjectTaskManager; import com.intellij.task.ProjectTaskRunner; import com.intellij.testFramework.ExtensionTestUtil; import com.intellij.testFramework.HeavyPlatformTestCase; import com.intellij.testFramework.PlatformTestUtil; import one.util.streamex.StreamEx; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import org.jetbrains.concurrency.Promise; import java.util.Collections; import java.util.List; import static com.intellij.openapi.externalSystem.service.project.manage.ExternalSystemTaskActivator.Phase.*; import static com.intellij.openapi.externalSystem.test.ExternalSystemTestUtil.TEST_EXTERNAL_SYSTEM_ID; import static com.intellij.openapi.externalSystem.util.ExternalSystemConstants.USE_IN_PROCESS_COMMUNICATION_REGISTRY_KEY_SUFFIX; import static java.util.Collections.emptyList; public class ExternalSystemTaskActivatorTest extends HeavyPlatformTestCase { private static final Key<StringBuilder> TASKS_TRACE = KeyWithDefaultValue.create("tasks trace", StringBuilder::new); private static final String TEST_MODULE_NAME = "MyModule"; @Override public void setUp() throws Exception { edt(() -> super.setUp()); TestExternalSystemManager testExternalSystemManager = new MyTestExternalSystemManager(); List<ExternalSystemManager<?, ?, ?, ?, ?>> externalSystemManagers = StreamEx.of(ExternalSystemManager.EP_NAME.extensions()).append(testExternalSystemManager).toList(); ExtensionTestUtil.maskExtensions(ExternalSystemManager.EP_NAME, externalSystemManagers, getTestRootDisposable()); ExtensionTestUtil.maskExtensions(ConfigurationType.CONFIGURATION_TYPE_EP, Collections.<ConfigurationType>singletonList(new TestTaskConfigurationType()), getTestRootDisposable()); ExtensionTestUtil.maskExtensions(ProjectTaskRunner.EP_NAME, emptyList(), getTestRootDisposable()); Registry.addKey(TEST_EXTERNAL_SYSTEM_ID.getId() + USE_IN_PROCESS_COMMUNICATION_REGISTRY_KEY_SUFFIX, "", true, false); String projectPath = "/project/path"; TestExternalProjectSettings projectSettings = new TestExternalProjectSettings(); projectSettings.setExternalProjectPath(projectPath); ExternalSystemUtil .linkExternalProject(TEST_EXTERNAL_SYSTEM_ID, projectSettings, myProject, null, false, ProgressExecutionMode.MODAL_SYNC); } @Override public void tearDown() throws Exception { edt(() -> super.tearDown()); } @Override protected boolean runInDispatchThread() { return false; } public void testBeforeAfterBuildTasks() { Module module = ModuleManager.getInstance(myProject).findModuleByName(TEST_MODULE_NAME); ExternalProjectsManagerImpl.getInstance(myProject).init(); addTaskTrigger("beforeBuildTask1", BEFORE_COMPILE, module); addTaskTrigger("beforeBuildTask2", BEFORE_COMPILE, module); addTaskTrigger("afterBuildTask1", AFTER_COMPILE, module); addTaskTrigger("afterBuildTask2", AFTER_COMPILE, module); addTaskTrigger("beforeReBuildTask1", BEFORE_REBUILD, module); addTaskTrigger("beforeReBuildTask2", BEFORE_REBUILD, module); addTaskTrigger("afterReBuildTask1", AFTER_REBUILD, module); addTaskTrigger("afterReBuildTask2", AFTER_REBUILD, module); build(module); assertEquals("beforeBuildTask1,beforeBuildTask2,afterBuildTask1,afterBuildTask2", TASKS_TRACE.get(myProject).toString()); TASKS_TRACE.get(myProject).setLength(0); rebuild(module); assertEquals("beforeReBuildTask1,beforeReBuildTask2,afterReBuildTask1,afterReBuildTask2", TASKS_TRACE.get(myProject).toString()); } private void addTaskTrigger(String taskName, ExternalSystemTaskActivator.Phase phase, Module module) { String projectPath = ExternalSystemApiUtil.getExternalProjectPath(module); ExternalSystemTaskActivator taskActivator = ExternalProjectsManagerImpl.getInstance(myProject).getTaskActivator(); taskActivator.addTask(new ExternalSystemTaskActivator.TaskActivationEntry(TEST_EXTERNAL_SYSTEM_ID, phase, projectPath, taskName)); } private void build(@NotNull Module module) { Promise<ProjectTaskManager.Result> promise = ProjectTaskManager.getInstance(module.getProject()).build(module); edt(() -> PlatformTestUtil.waitForPromise(promise)); } private void rebuild(@NotNull Module module) { Promise<ProjectTaskManager.Result> promise = ProjectTaskManager.getInstance(module.getProject()).rebuild(module); edt(() -> PlatformTestUtil.waitForPromise(promise)); } private static class TestTaskConfigurationType extends AbstractExternalSystemTaskConfigurationType { private TestTaskConfigurationType() {super(TEST_EXTERNAL_SYSTEM_ID);} } private class MyTestExternalSystemManager extends TestExternalSystemManager { private MyTestExternalSystemManager() {super(ExternalSystemTaskActivatorTest.this.myProject);} @NotNull @Override public Class<? extends ExternalSystemProjectResolver<TestExternalSystemExecutionSettings>> getProjectResolverClass() { return TestProjectResolver.class; } @Override public Class<? extends ExternalSystemTaskManager<TestExternalSystemExecutionSettings>> getTaskManagerClass() { return TestTaskManager.class; } } public static class TestProjectResolver implements ExternalSystemProjectResolver<TestExternalSystemExecutionSettings> { @Nullable @Override public DataNode<ProjectData> resolveProjectInfo(@NotNull ExternalSystemTaskId id, @NotNull String projectPath, boolean isPreviewMode, @Nullable TestExternalSystemExecutionSettings settings, @NotNull ExternalSystemTaskNotificationListener listener) throws ExternalSystemException, IllegalArgumentException, IllegalStateException { DataNode<ProjectData> projectDataDataNode = new DataNode<>( ProjectKeys.PROJECT, new ProjectData(TEST_EXTERNAL_SYSTEM_ID, "MyProject", "", projectPath), null); projectDataDataNode.createChild( ProjectKeys.MODULE, new ModuleData("my-module", TEST_EXTERNAL_SYSTEM_ID, "myModuleType", TEST_MODULE_NAME, "", projectPath)); return projectDataDataNode; } @Override public boolean cancelTask(@NotNull ExternalSystemTaskId taskId, @NotNull ExternalSystemTaskNotificationListener listener) { return false; } } public static class TestTaskManager implements ExternalSystemTaskManager<TestExternalSystemExecutionSettings> { @Override public void executeTasks(@NotNull ExternalSystemTaskId id, @NotNull List<String> taskNames, @NotNull String projectPath, @Nullable TestExternalSystemExecutionSettings settings, @Nullable String jvmParametersSetup, @NotNull ExternalSystemTaskNotificationListener listener) throws ExternalSystemException { StringBuilder builder = TASKS_TRACE.get(id.findProject()); if (builder.length() != 0) { builder.append(","); } builder.append(StringUtil.join(taskNames, ",")); } @Override public boolean cancelTask(@NotNull ExternalSystemTaskId id, @NotNull ExternalSystemTaskNotificationListener listener) throws ExternalSystemException { return false; } } }
6a1aa5b018f14615eb91ba6d4d9602b87f4ea6a1
9efe16d6b1226882661f839dff1333907b7966ab
/examples/bufwriter/Buffer.java
ef6572dea79a140aef531d4c325df396c2704d78
[]
no_license
ReRui/FixExamples
059a5aefc8bc63dfe357c48ab6ae63f38a3f3cfe
a18528f96241e0e07508c22db4b0db14db9ab4bf
refs/heads/master
2021-04-18T19:46:56.435287
2018-04-24T03:35:44
2018-04-24T03:35:44
null
0
0
null
null
null
null
UTF-8
Java
false
false
667
java
package bufwriter; /** * Title: * Description: * Copyright: Copyright (c) 2003 * Company: * @author * @version 1.0 */ import java.io.DataOutputStream; import java.io.IOException; public class Buffer { public int[] _array; public int _pos; public int _size; public int _count; public Buffer(int size) { _pos = 0; _size = size; _array = new int[size]; _count = 0; } public void print(DataOutputStream outStream) { for (int i=0;i<_size;++i) { try{ if (i%20 == 0) outStream.writeChars("\n"); outStream.writeChars(_array[i]+","); } catch (IOException e) {} } return; } }
ae526b7d65b1e71276f67c3a603ddb9376562a52
f7b1e6937be838039dde4def9be81a494048a476
/java/java-basic/src/main/java/me/warriorg/basic/BinaryDecimal.java
5c8c14078c1258dd448e050d63af6f0e271696e3
[]
no_license
warriorg/java-sample
b449d044c292e331f91d9025461b96c12e0ec18a
95e23b0eb351776c8a0abec494e2b2ff3f064a99
refs/heads/master
2023-08-05T07:33:06.703111
2023-07-28T08:01:26
2023-07-28T08:01:26
200,156,989
0
0
null
null
null
null
UTF-8
Java
false
false
6,689
java
package me.warriorg.basic; import java.math.BigInteger; public class BinaryDecimal { /** * @Description: 十进制转换成二进制 * @param decimalSource * @return String */ public static String decimalToBinary(int decimalSource) { BigInteger bi = new BigInteger(String.valueOf(decimalSource)); // 转换成 BigInteger 类型,默认是十进制 return bi.toString(2); // 参数 2 指定的是转化成二进制 } /** * @Description: 二进制转换成十进制 * @param binarySource * @return int */ public static int binaryToDecimal(String binarySource) { BigInteger bi = new BigInteger(binarySource, 2); // 转换为 BigInteger 类型,参数 2 指定的是二进制 return Integer.parseInt(bi.toString()); // 默认转换成十进制 } /** * @Description: 向左移位 * @param num- 等待移位的十进制数, m- 向左移的位数 * @return int- 移位后的十进制数 */ public static int leftShift(int num, int m) { return num << m; } /** * @Description: 向右移位 * @param num- 等待移位的十进制数, m- 向右移的位数 * @return int- 移位后的十进制数 */ public static int rightShift(int num, int m) { return num >>> m; } /** * @Description: 二进制按位“或”的操作 * @param num1- 第一个数字,num2- 第二个数字 * @return 二进制按位“或”的结果 */ public static int or(int num1, int num2) { return (num1 | num2); } /** * @Description: 二进制按位“与”的操作 * @param num1- 第一个数字,num2- 第二个数字 * @return 二进制按位“与”的结果 */ public static int and(int num1, int num2) { return (num1 & num2); } /** * @Description: 二进制按位“异或”的操作 * @param num1- 第一个数字,num2- 第二个数字 * @return 二进制按位“异或”的结果 */ public static int xor(int num1, int num2) { return (num1 ^ num2); } public static void main(String[] args) { int a = 53; String binary = "110101"; System.out.println(String.format(" 数字 %d 的二进制是 %s", a, BinaryDecimal.decimalToBinary(a))); // 获取十进制数 53 的二进制数 System.out.println(String.format(" 数字 %s 的十进制是 %d", binary, BinaryDecimal.binaryToDecimal(binary))); // 获取二进制数 110101 的十进制数 int num = 53; int m = 1; System.out.println(String.format(" 数字 %d 的二进制向左移 %d 位是 %d", num, m, BinaryDecimal.leftShift(num, m))); // 测试向左移位 System.out.println(String.format(" 数字 %d 的二进制向右移 %d 位是 %d", num, m, BinaryDecimal.rightShift(num, m))); // 测试向右移位 System.out.println(); m = 3; System.out.println(String.format(" 数字 %d 的二进制向左移 %d 位是 %d", num, m, BinaryDecimal.leftShift(num, m))); // 测试向左移位 System.out.println(String.format(" 数字 %d 的二进制向右移 %d 位是 %d", num, m, BinaryDecimal.rightShift(num, m))); // 测试向右移位 a = 53; int b = 35; System.out.println(String.format(" 数字 %d(%s) 和数字 %d(%s) 的按位‘或’结果是 %d(%s)", a, decimalToBinary(a), b, decimalToBinary(b), BinaryDecimal.or(a, b), decimalToBinary(BinaryDecimal.or(a, b)))); // 获取十进制数 53 和 35 的按位“或” System.out.println(String.format(" 数字 %d(%s) 和数字 %d(%s) 的按位‘与’结果是 %d(%s)", a, decimalToBinary(a), b, decimalToBinary(b), BinaryDecimal.and(a, b), decimalToBinary(BinaryDecimal.and(a, b)))); // 获取十进制数 53 和 35 的按位“与” System.out.println(String.format(" 数字 %d(%s) 和数字 %d(%s) 的按位‘异或’结果是 %d(%s)", a, decimalToBinary(a), a, decimalToBinary(a), BinaryDecimal.xor(a, a), decimalToBinary(BinaryDecimal.xor(a, a)))); // 获取十进制数 53 和 35 的按位“异或” } /** * @Title: decimalToBinary * @Description: 十进制转二进制,方法1:余数短除法除以二 * @param decimalSource * @return: String */ public static String decimalToBinary2(int decimalSource) { StringBuilder sb = new StringBuilder(); while (decimalSource != 0) { sb.append(decimalSource % 2); decimalSource = decimalSource >> 1; } return sb.reverse().toString(); } /** * @param decimalSource * @Title: decimalToBinary * @Description: 十进制转二进制,方法2:降二次幂及减法混合运算 * @return: String */ public static String decimalToBinary3(int decimalSource) { int length = (int) (Math.log(decimalSource) / Math.log(2)); StringBuffer sb = new StringBuffer(); do { decimalSource = (int) (decimalSource - Math.pow(2, length)); int power = decimalSource <= 0 ? -1 : (int) (Math.log(decimalSource) / Math.log(2)); for (int i = length; i > power; i--) { if (i == length) { sb.append("1"); } else { sb.append("0"); } } length = power; } while (decimalSource > 0); return sb.toString(); } /** * * @Title: decimalToBinary * @Description: 十进制转二进制,方法3:位运算法 * @param decimalSource * @return * @return: String */ public static String decimalToBinary4(int decimalSource) { StringBuffer sb = new StringBuffer(); while (decimalSource != 0) { //此&运算,decimalSource & 1,目的是获取最低位的二进制数值 sb.append(decimalSource & 1); //此>>运算,decimalSource >> 1,目的是将获取到的最低位二进制数值除去 decimalSource = decimalSource >> 1; } return sb.reverse().toString(); } // 负整数转换为二进制 要点: // 取反加一 解释:将该负整数对应的正整数先转换成二进制,然后对其“取补”,再对取补后的结果加1即可。 // 例如要把-52换算成二进制: // 1.先取得52的二进制:00110100 // 2.对所得到的二进制数取反:11001011 // 3.将取反后的数值加一即可:11001100 即:(-52)10=(11001100)2 }
794af0efcb0811bad34e40cdbabd47b6501f5fb1
319aaef3b69cfd35f81433b84aa8964754f035df
/src/main/java/com/refactor/demo/loggers/DbLogger.java
324efe30a9c21895be7222bbce23e0d7e2e4bfbd
[]
no_license
to-more/refactor-test
303d6569a121b951dbd2e9928b863d1179234dc6
8f3c6325d7da460554661d6500010241970726cd
refs/heads/master
2020-04-29T09:42:16.116336
2019-03-16T23:25:26
2019-03-16T23:25:26
176,034,927
0
0
null
null
null
null
UTF-8
Java
false
false
598
java
package com.refactor.demo.loggers; import com.refactor.demo.daos.LoggerDao; import java.util.logging.Level; /** * Created by tomReq on 3/16/19. */ public class DbLogger implements Logger { private LoggerDao loggerDao; public DbLogger(LoggerDao loggerDao) { this.loggerDao = loggerDao; } @Override public void log(Level level, String message) { try { loggerDao.save(level, message); } catch (Exception e) { new ConsoleLogger().log(Level.SEVERE, "Error logging message " + message + " with logger file"); } } }
3d2e1407cb0328ff844551bca9e2d9ec20a8fb9a
0aae5e7cef5252a00de42024ce0c671df89c5c3e
/app/src/main/java/com/example/navegacion/Instante2.java
050f1b4c83dcab50270ed44b7433853ebe275a22
[]
no_license
juliancobosvargas/Navegacion
a502db7da5fd45e4ac000855d786e5f76af09837
7883adbc86b0543444ba2ff41972b801566b0b24
refs/heads/master
2023-01-21T06:44:06.999563
2020-11-27T00:45:49
2020-11-27T00:45:49
316,365,849
0
0
null
null
null
null
UTF-8
Java
false
false
961
java
package com.example.navegacion; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import java.util.Timer; import java.util.TimerTask; public class Instante2 extends AppCompatActivity { private static final long demora = 3000; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_instante2); //Tarea del Temporizador TimerTask tarea = new TimerTask() { @Override public void run() { irActividadNueva(); } }; //temporizador ejecuta la instantanea = splash Timer temporizador = new Timer(); temporizador.schedule(tarea,demora); } private void irActividadNueva() { Intent intento = new Intent(this, MainActivity.class); startActivity(intento); finish(); } }
943e6dc2df9cf2ddf9309c706dfbb7aedd24562c
fdd4dae3be546d09356bbbf161cea0340944d952
/src/main/java/com/leaftaps/leads/pages/HomePage.java
f4d6ded7c59570ba0fd1e9a006d7747a6b3f6320
[]
no_license
jothimanthiramurthy47/TestLeaftap
3de11b9a6b076152e65ef73ff167803f879de875
3d1eacb0acbe4c362b0d9759ee8930a8e7bcf80d
refs/heads/master
2023-05-11T15:50:20.530839
2019-08-10T12:33:57
2019-08-10T12:33:57
201,627,237
0
0
null
2023-05-09T18:14:29
2019-08-10T12:28:00
HTML
UTF-8
Java
false
false
460
java
package com.leaftaps.leads.pages; import com.leaftaps.base.ProjectSpecificMethods; public class HomePage extends ProjectSpecificMethods { public HomePage() { // Pagefactory code } public LoginPage clickLogout() { driver.findElementByClassName("decorativeSubmit").click(); return new LoginPage(); } public MyHomePage clickCRMSFA() { driver.findElementByLinkText("CRM/SFA").click(); return new MyHomePage(); } }
[ "Archana Pandyan@dell" ]
Archana Pandyan@dell
68dcd4e5fd1f189b6415381c16a43eaa8465bfab
909814d0566b8633afb527c723f341a230f52734
/soma7thserver/src/ManageServlet.java
55be5e57d4720d2e0b5aa5f1e07070c848e7be4a
[]
no_license
moonsoo5522/soma_mobile
a630fa94adab389aa135a4ed4677ff5fe8f889e9
705e5f46ac679723cf425c172e88eee8a5ef8537
refs/heads/master
2020-04-03T00:30:15.627924
2016-10-07T03:32:58
2016-10-07T03:32:58
63,841,564
0
0
null
null
null
null
UTF-8
Java
false
false
4,523
java
import java.io.IOException; import java.util.ArrayList; import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.google.gson.Gson; /** * Servlet implementation class ManageServlet */ @WebServlet("/ManageServlet") public class ManageServlet extends HttpServlet { private static final long serialVersionUID = 1L; /** * @see HttpServlet#HttpServlet() */ public ManageServlet() { super(); // TODO Auto-generated constructor stub } /** * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response) */ protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // TODO Auto-generated method stub response.setContentType("text/html; charset=UTF-8"); response.getWriter().append("Served at: ").append(request.getContextPath()); request.setCharacterEncoding("UTF-8"); String param = request.getParameter("header"); System.out.println(param); switch(param) { case "banlist": banlist(request, response); break; case "ban": ban(request, response); break; case "pointlist": pointlist(request, response); break; case "pointset": pointset(request, response); break; case "dollist": dollist(request, response); break; case "dolset": dolset(request, response); break; } } /** * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response) */ protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // TODO Auto-generated method stub doGet(request, response); } protected void banlist(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { MemberDAO dao = new MemberDAO(); ArrayList<Member> list = dao.getMembersInfo(); request.setAttribute("member", list); System.out.println(new Gson().toJson(list)); RequestDispatcher dis = request.getRequestDispatcher("memberlist.jsp"); dis.forward(request, response); } protected void ban(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String id = request.getParameter("id"); Member member = new Member(); member.setId(id); MemberDAO dao = new MemberDAO(member); dao.deleteMember(); response.sendRedirect("/soma7th/ban.html"); } protected void pointlist(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { MemberDAO dao = new MemberDAO(); ArrayList<Member> list = dao.getMembersInfo(); request.setAttribute("member", list); System.out.println(new Gson().toJson(list)); RequestDispatcher dis = request.getRequestDispatcher("point.jsp"); dis.forward(request, response); } protected void pointset(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String id = request.getParameter("id"); int point = Integer.parseInt(request.getParameter("point")); Member mem = new Member(); mem.setId(id); MemberDAO dao = new MemberDAO(mem); dao.setPoint(point); response.sendRedirect("/soma7th/pointconfirm.html"); } protected void dollist(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { MemberDAO dao = new MemberDAO(); ArrayList<Member> list = dao.getMembersInfo(); ArrayList<DolInfo> dolList = new ArrayList<DolInfo>(); for(int i=0; i<list.size(); i++) { Member mem = list.get(i); DolInfo info = new DolInfo(); String dol=""; for(int j=0; j<8; j++) { if(((mem.getDol() >> j) & 1) == 1) { dol+=(j+1+" "); } } info.setId(mem.getId()); info.setDol(dol); dolList.add(info); } request.setAttribute("member", dolList); RequestDispatcher dis = request.getRequestDispatcher("dollist.jsp"); dis.forward(request, response); } protected void dolset(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String id = request.getParameter("id"); int dol = Integer.parseInt(request.getParameter("dol")); Member mem = new Member(); mem.setId(id); MemberDAO dao = new MemberDAO(mem); dao.buyDol(dol); response.sendRedirect("/soma7th/dolconfirm.html"); } }
9b3329dc93aebd9aeef53a2eb2d5d6b18075dd51
eb5f5353f49ee558e497e5caded1f60f32f536b5
/sun/applet/AppletSecurityException.java
432153850793a697fef920e09c85a0319025f1d2
[]
no_license
mohitrajvardhan17/java1.8.0_151
6fc53e15354d88b53bd248c260c954807d612118
6eeab0c0fd20be34db653f4778f8828068c50c92
refs/heads/master
2020-03-18T09:44:14.769133
2018-05-23T14:28:24
2018-05-23T14:28:24
134,578,186
0
2
null
null
null
null
UTF-8
Java
false
false
1,095
java
package sun.applet; public class AppletSecurityException extends SecurityException { private String key = null; private Object[] msgobj = null; private static AppletMessageHandler amh = new AppletMessageHandler("appletsecurityexception"); public AppletSecurityException(String paramString) { super(paramString); key = paramString; } public AppletSecurityException(String paramString1, String paramString2) { this(paramString1); msgobj = new Object[1]; msgobj[0] = paramString2; } public AppletSecurityException(String paramString1, String paramString2, String paramString3) { this(paramString1); msgobj = new Object[2]; msgobj[0] = paramString2; msgobj[1] = paramString3; } public String getLocalizedMessage() { if (msgobj != null) { return amh.getMessage(key, msgobj); } return amh.getMessage(key); } } /* Location: C:\Program Files (x86)\Java\jre1.8.0_151\lib\rt.jar!\sun\applet\AppletSecurityException.class * Java compiler version: 8 (52.0) * JD-Core Version: 0.7.1 */
dbf23b29e617440b144e02aae48d5ee831e77932
32f38cd53372ba374c6dab6cc27af78f0a1b0190
/app/src/main/java/com/alipay/mobile/antui/badge/AUBadgeView.java
3a2d9f960838b8b2c29ac5046b5f7200eae7d165
[]
no_license
shuixi2013/AmapCode
9ea7aefb42e0413f348f238f0721c93245f4eac6
1a3a8d4dddfcc5439df8df570000cca12b15186a
refs/heads/master
2023-06-06T23:08:57.391040
2019-08-29T04:36:02
2019-08-29T04:36:02
null
0
0
null
null
null
null
UTF-8
Java
false
false
13,435
java
package com.alipay.mobile.antui.badge; import android.content.Context; import android.content.res.TypedArray; import android.graphics.drawable.Drawable; import android.os.Looper; import android.text.InputFilter; import android.text.InputFilter.LengthFilter; import android.text.TextUtils; import android.util.AttributeSet; import android.util.Log; import android.view.LayoutInflater; import android.view.ViewParent; import android.widget.FrameLayout; import android.widget.ImageView; import android.widget.RelativeLayout; import android.widget.RelativeLayout.LayoutParams; import android.widget.TextView; import com.alipay.mobile.antui.R; import com.alipay.mobile.antui.utils.AuiLogger; import com.alipay.mobile.antui.utils.DensityUtil; import com.alipay.mobile.security.bio.utils.HanziToPinyin.Token; import com.autonavi.minimap.ajx3.util.Constants; import java.util.HashMap; import java.util.Map; import java.util.regex.Pattern; public class AUBadgeView extends FrameLayout { public static final String KEY_BADGE_CONTENT = "badgeText"; public static final String KEY_BADGE_STYLE = "badgeType"; protected static final int MAX_MSG_COUNT = 100; private static final String TAG = "AUBadgeView"; protected boolean isCenterLocate = false; private boolean isSmallTextSize; protected Context mContext; protected volatile boolean mInited = false; private OnContentChangedListener mListener; protected int mLocateX = -1; protected int mLocateY = -1; int mTextMaxEms = -1; int mTextMaxLength = -1; int mTextMaxWidth = -1; protected int msgCount = 0; protected String msgText; protected ImageView pointImageView; protected int redHeight = 0; protected int redWidth = 0; protected Style style = Style.NONE; protected TextView txtTextView; public interface OnContentChangedListener { void onChange(Style style, String str); } public enum Style { NONE(Constants.ANIMATOR_NONE), POINT("point"), NUM("num"), TEXT("text"), MORE("more"); private static final Map<String, Style> sStringToEnum = null; private String desc; static { int i; Style[] values; sStringToEnum = new HashMap(); for (Style value : values()) { sStringToEnum.put(value.desc, value); } } private Style(String desc2) { this.desc = desc2; } public final String getDes() { return this.desc; } public static Style fromString(String symbol) { return sStringToEnum.get(symbol); } } public AUBadgeView(Context context) { super(context); init(context, null); } public AUBadgeView(Context context, AttributeSet attrs) { super(context, attrs); init(context, attrs); } public AUBadgeView(Context context, AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); init(context, attrs); } private void init(Context context, AttributeSet attrs) { if (attrs != null) { TypedArray array = context.obtainStyledAttributes(attrs, R.styleable.AUBadgeView); this.isSmallTextSize = array.getBoolean(0, false); this.mTextMaxEms = array.getInt(2, -1); this.mTextMaxLength = array.getInt(1, -1); this.mTextMaxWidth = array.getDimensionPixelOffset(3, -1); array.recycle(); } } /* access modifiers changed from: protected */ public synchronized void lazyInit() { if (!this.mInited) { LayoutInflater.from(getContext()).inflate(R.layout.default_badge_layout, this, true); this.pointImageView = (ImageView) findViewById(R.id.redPoint); this.txtTextView = (TextView) findViewById(R.id.msgText); if (this.mTextMaxLength != -1) { this.txtTextView.setFilters(new InputFilter[]{new LengthFilter(this.mTextMaxLength)}); } if (this.mTextMaxWidth != -1) { this.txtTextView.setMaxWidth(this.mTextMaxWidth); } this.mInited = true; } } private void measureRedPoint(Style style2, String text) { if (this.isCenterLocate) { if (style2 == Style.POINT) { this.redWidth = DensityUtil.dip2px(this.mContext, 10.0f); this.redHeight = DensityUtil.dip2px(this.mContext, 10.0f); } else if (style2 == Style.MORE) { this.redWidth = DensityUtil.dip2px(this.mContext, 24.0f); this.redHeight = DensityUtil.dip2px(this.mContext, 16.0f); } else { this.redHeight = DensityUtil.dip2px(this.mContext, 16.0f); this.redWidth = (int) this.txtTextView.getPaint().measureText(text); } AuiLogger.debug(TAG, "measureRedPoint redWidth = " + this.redWidth + " redHeight" + this.redHeight + " x = " + getX()); } } private void measureRedPoint(Drawable drawable) { if (this.isCenterLocate) { if (drawable == null) { this.redWidth = 35; this.redHeight = 35; return; } this.redWidth = drawable.getIntrinsicWidth(); this.redHeight = drawable.getIntrinsicHeight(); AuiLogger.debug(TAG, "measureRedPoint redWidth = " + this.redWidth + " redHeight" + this.redHeight + " x = " + getX()); } } /* access modifiers changed from: protected */ public void locate() { if (this.isCenterLocate && this.mLocateX != -1 && this.mLocateY != -1) { ViewParent parent = getParent(); if (parent != null) { int top = this.mLocateY - (this.redHeight / 2); int right = this.mLocateX - (this.redWidth / 2); AuiLogger.debug(TAG, "locate right = " + right + " top = " + top + " redWidth = " + this.redWidth); if (top < 0) { top = 0; } if (right < 0) { right = 0; } if (parent instanceof RelativeLayout) { LayoutParams params = (LayoutParams) getLayoutParams(); params.addRule(11); params.addRule(10); params.setMargins(0, top, right, 0); setLayoutParams(params); } else if (parent instanceof FrameLayout) { FrameLayout.LayoutParams params2 = (FrameLayout.LayoutParams) getLayoutParams(); params2.gravity = 53; params2.setMargins(0, top, right, 0); setLayoutParams(params2); } } } } public void setMsgCount(int msgCount2) { this.msgCount = msgCount2; if (msgCount2 <= 0) { setStyleAndContent(Style.NONE, ""); } else { setStyleAndContent(Style.NUM, String.valueOf(msgCount2)); } } public void setRedPoint(boolean isShow) { setStyleAndMsgText(Style.POINT, isShow ? "1" : "0"); } public void setMsgText(String text) { setStyleAndContent(Style.TEXT, text); } public void setSmallTextSize(boolean isSmallTextSize2) { this.isSmallTextSize = isSmallTextSize2; } public void dismiss() { setStyleAndContent(Style.NONE, ""); } public void setStyleAndContent(Style style2, String content) { if (this.mListener != null && (this.style != style2 || !TextUtils.equals(this.msgText, content))) { this.mListener.onChange(style2, content); } this.style = style2; this.msgText = content; if (Looper.myLooper() == Looper.getMainLooper()) { doRefresh(); } else { post(new a(this)); } } public void setOnContentChangedListener(OnContentChangedListener listener) { this.mListener = listener; } @Deprecated public void setStyleAndMsgText(Style style2, String text) { if (TextUtils.isEmpty(text) || TextUtils.equals(text, "0") || style2 == null) { style2 = Style.NONE; if (TextUtils.equals(text, "0")) { this.msgCount = 0; } } setStyleAndContent(style2, text); } /* access modifiers changed from: private */ public void doRefresh() { lazyInit(); if (this.txtTextView == null || this.pointImageView == null) { AuiLogger.error(TAG, "doRefresh view == null " + this.txtTextView + Token.SEPARATOR + this.pointImageView); return; } if (this.style == Style.NONE) { setVisibility(8); } else if (Style.POINT == this.style) { setBadgeImageStyles(Style.POINT, R.drawable.shock_point_small); } else if (Style.NUM == this.style) { try { int count = Integer.parseInt(this.msgText); this.msgCount = count; if (count > 0 && count < 100) { setBadgeTextStyles(Style.NUM, this.msgText); } else if (count >= 100) { setBadgeImageStyles(Style.MORE, R.drawable.shock_point_more); } } catch (NumberFormatException e) { if (TextUtils.isEmpty(this.msgText)) { AuiLogger.debug(TAG, "Style.NUM with illegal params : msgText is empty"); return; } else { AuiLogger.error(TAG, "Style.NUM with illegal params : msgText = " + this.msgText); return; } } } else if (Style.MORE == this.style) { setBadgeImageStyles(Style.MORE, R.drawable.shock_point_more); } else if (Style.TEXT == this.style) { setBadgeTextStyles(this.style, this.msgText); } else { return; } locate(); } private void setBadgeTextStyles(Style style2, String text) { if (!TextUtils.isEmpty(text)) { setVisibility(0); this.pointImageView.setVisibility(8); this.txtTextView.setVisibility(0); float customTextDpSize = getTextDpSize(); if (customTextDpSize > 0.0f) { this.txtTextView.setTextSize(1, customTextDpSize); } else if (style2 == Style.NUM) { this.txtTextView.setTextSize(1, 10.0f); } else if (!this.isSmallTextSize || text.length() < 3 || isAlphabet(text)) { this.txtTextView.setTextSize(1, 11.0f); } else { this.txtTextView.setTextSize(1, 9.0f); } if (this.mTextMaxEms > 0 && text.length() > this.mTextMaxEms) { this.txtTextView.setMaxWidth((int) ((((double) this.mTextMaxEms) + 0.2d) * ((double) this.txtTextView.getLineHeight()))); } this.txtTextView.setText(text); Drawable customBg = getBgDrawable(style2); if (customBg != null) { this.txtTextView.setBackgroundDrawable(customBg); measureRedPoint(customBg); return; } this.txtTextView.setBackgroundResource(R.drawable.shock_point_large); measureRedPoint(style2, text); } } private boolean isAlphabet(String text) { return Pattern.compile("[a-zA-Z]").matcher(text).find(); } private void setBadgeImageStyles(Style style2, int resId) { setVisibility(0); this.pointImageView.setVisibility(0); this.txtTextView.setVisibility(8); Drawable customBg = getBgDrawable(style2); if (customBg != null) { this.pointImageView.setImageDrawable(customBg); measureRedPoint(customBg); return; } this.pointImageView.setImageResource(resId); measureRedPoint(style2, ""); } public Style getBadgeViewStyle() { return this.style; } public String getBadgeViewContent() { return this.msgText; } @Deprecated public int getMsgCount() { return this.msgCount; } public void setCenterLocate(boolean centerLocate) { this.isCenterLocate = centerLocate; } public boolean isCenterLocate() { return this.isCenterLocate; } public void setCenterMargin(int top, int right) { this.mLocateX = right; this.mLocateY = top; Log.w(TAG, "setCenterMargin set top,right top = " + top + " right =" + right); locate(); } public void setMaxLines(int maxLines) { this.txtTextView.setMaxLines(maxLines); } /* access modifiers changed from: protected */ @Deprecated public Drawable getBgDrawable(Style style2, int msgCount2) { return null; } /* access modifiers changed from: protected */ public Drawable getBgDrawable(Style style2) { return getBgDrawable(style2, this.msgCount); } /* access modifiers changed from: protected */ public Drawable getRedPointDrawable() { return null; } /* access modifiers changed from: protected */ public float getTextDpSize() { return -1.0f; } }
c7b1474f087e470b52c669c44bdab77bf0bd8e34
6e77e4f93cf556e3a8bc122761d60ae62681b3d3
/android/app/src/main/java/com/phone/BackUp.java
f641378c7f997c864e2313303ccd08fc5916ccf3
[]
no_license
Abinaabzz/access-your-phone
9c88724d11039027d45cc8693a99797f1e4f9813
16d992849ea8d3e4310548eeb7027588181a6b14
refs/heads/master
2020-12-28T14:17:54.825300
2020-07-08T11:10:58
2020-07-08T11:10:58
238,366,398
0
0
null
null
null
null
UTF-8
Java
false
false
11,562
java
package com.example.phone; import androidx.appcompat.app.AppCompatActivity; import android.app.Activity; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.net.Uri; import android.os.Bundle; import android.os.Environment; import android.provider.MediaStore; import android.widget.Toast; import java.io.BufferedInputStream; import java.io.DataOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.OutputStream; import java.net.Socket; import java.net.UnknownHostException; import java.util.ArrayList; public class BackUp extends AppCompatActivity { String fname; static String str = ""; private static final int SERVERPORT = 7003; private static final String SERVER_IP = "192.168.43.85"; SQLiteDatabase db; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_back_up); String ftyp=getIntent().getStringExtra("ftyp"); Toast.makeText(this, ftyp, Toast.LENGTH_SHORT).show(); if(ftyp.equals("Vb")) { getvideos(); } else if(ftyp.equals("Ab")) { getaudios(); } else if(ftyp.equals("Ib")) { getimages(); } } private void getimages() { String str = getPathOfAllImages(this); Toast.makeText(getApplicationContext(), str, Toast.LENGTH_LONG).show(); String t = "Image"; VideoSendToClient(str, t); } private void getaudios() { //String str = getPathOfAllMusic(this); String t = "Music"; VideoSendToClient(str, t); } private void getvideos() { String str = getPathOfAllVideo(this); String t = "Video"; VideoSendToClient(str, t); } // INSERT FUNCTION @@@@@@@@@@@@@@@@@ public void VideoSendToClient(String path, String typ) { String[] fles = str.split("#"); for (int i = 0; i < fles.length; i++) { if (fles[i] != null) { int cut = path.lastIndexOf('/'); if (cut != -1) { fname = path.substring(cut + 1); } } Nametoclient(fname, typ); File vdofle = new File(fles[i]); byte[] bytes = new byte[(int) vdofle.length()]; BufferedInputStream bis; Socket socket = null; try { socket = new Socket(SERVER_IP, 5000); bis = new BufferedInputStream(new FileInputStream(vdofle)); bis.read(bytes, 0, bytes.length); OutputStream os = socket.getOutputStream(); os.write(bytes, 0, bytes.length); os.flush(); socket.close(); } catch (UnknownHostException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } catch (Exception e) { // TODO: handle exception Toast.makeText(getApplicationContext(), e.toString(), Toast.LENGTH_LONG).show(); } } } private void Nametoclient(String example, String t) { // example="#"+Login.uid+"#"+t; Socket socket = null; DataOutputStream dataOutputStream = null; try { socket = new Socket(SERVER_IP, SERVERPORT); dataOutputStream = new DataOutputStream(socket.getOutputStream()); // dataInputStream = new DataInputStream(socket.getInputStream()); // String example = "B"; byte[] bytes = example.getBytes("UTF-8"); dataOutputStream.write(bytes, 0, bytes.length); // textIn.setText(dataInputStream.readUTF()); } catch (UnknownHostException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } finally { if (socket != null) { try { socket.close(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } try { dataOutputStream.close(); } catch (Exception e) { } } } } // PATH GETTING FUNCTIONS @@@@@@@@@@@@@@@@@@@@@@@@@@ @SuppressWarnings("deprecation") public static void getPathOfAllMusic(Activity activity) { String absolutePathOfImage = null; String nameOfFile = null; String absolutePathOfFileWithoutFileName = null; Uri uri; Cursor cursor; int column_index; int column_displayname; int lastIndex; // absolutePathOfImages.clear(); ArrayList<String> absolutePathOfImageList = new ArrayList<String>(); if (absolutePathOfImageList.isEmpty()) { // uri = // android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI; uri = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI; // uri = MediaStore.Video.Media.EXTERNAL_CONTENT_URI; String[] projection = { MediaStore.MediaColumns.DATA, MediaStore.MediaColumns.DISPLAY_NAME }; cursor = activity.managedQuery(uri, projection, null, null, null); column_index = cursor .getColumnIndexOrThrow(MediaStore.MediaColumns.DATA); column_displayname = cursor .getColumnIndexOrThrow(MediaStore.MediaColumns.DISPLAY_NAME); // cursor.moveToFirst(); while (cursor.moveToNext()) { // for(int i=0; i<cursor.getColumnCount();i++){ // Log.i(TAG,cursor.getColumnName(i)+".....Data Present ...."+cursor.getString(i)); // } // Log.i(TAG,"====================================="); absolutePathOfImage = cursor.getString(column_index); nameOfFile = cursor.getString(column_displayname); lastIndex = absolutePathOfImage.lastIndexOf(nameOfFile); lastIndex = lastIndex >= 0 ? lastIndex : nameOfFile.length() - 1; absolutePathOfFileWithoutFileName = absolutePathOfImage .substring(0, lastIndex); if (!((absolutePathOfFileWithoutFileName.equals(Environment .getExternalStorageDirectory() + "/SlideShow/")))) { if (absolutePathOfImage != null) { absolutePathOfImageList.add(absolutePathOfImage); //str += absolutePathOfImage + "#"; } } } } //return str; } @SuppressWarnings("deprecation") public static String getPathOfAllVideo(Activity activity) { String absolutePathOfImage = null; String nameOfFile = null; String absolutePathOfFileWithoutFileName = null; Uri uri; Cursor cursor; int column_index; int column_displayname; int lastIndex; // absolutePathOfImages.clear(); ArrayList<String> absolutePathOfImageList = new ArrayList<String>(); if (absolutePathOfImageList.isEmpty()) { // uri = // android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI; // uri = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI; uri = MediaStore.Video.Media.EXTERNAL_CONTENT_URI; String[] projection = { MediaStore.MediaColumns.DATA, MediaStore.MediaColumns.DISPLAY_NAME }; cursor = activity.managedQuery(uri, projection, null, null, null); column_index = cursor .getColumnIndexOrThrow(MediaStore.MediaColumns.DATA); column_displayname = cursor .getColumnIndexOrThrow(MediaStore.MediaColumns.DISPLAY_NAME); // cursor.moveToFirst(); while (cursor.moveToNext()) { absolutePathOfImage = cursor.getString(column_index); nameOfFile = cursor.getString(column_displayname); lastIndex = absolutePathOfImage.lastIndexOf(nameOfFile); lastIndex = lastIndex >= 0 ? lastIndex : nameOfFile.length() - 1; absolutePathOfFileWithoutFileName = absolutePathOfImage .substring(0, lastIndex); if (!((absolutePathOfFileWithoutFileName.equals(Environment .getExternalStorageDirectory() + "/SlideShow/")))) { if (absolutePathOfImage != null) { absolutePathOfImageList.add(absolutePathOfImage); str += absolutePathOfImage + "#"; } } } } return str; } @SuppressWarnings("deprecation") public static String getPathOfAllImages(Activity activity) { String absolutePathOfImage = null; String nameOfFile = null; String absolutePathOfFileWithoutFileName = null; Uri uri; Cursor cursor; int column_index; int column_displayname; int lastIndex; // absolutePathOfImages.clear(); ArrayList<String> absolutePathOfImageList = new ArrayList<String>(); if (absolutePathOfImageList.isEmpty()) { uri = android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI; // uri = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI; String[] projection = { MediaStore.MediaColumns.DATA, MediaStore.MediaColumns.DISPLAY_NAME }; cursor = activity.managedQuery(uri, projection, null, null, null); column_index = cursor .getColumnIndexOrThrow(MediaStore.MediaColumns.DATA); column_displayname = cursor .getColumnIndexOrThrow(MediaStore.MediaColumns.DISPLAY_NAME); // cursor.moveToFirst(); while (cursor.moveToNext()) { absolutePathOfImage = cursor.getString(column_index); nameOfFile = cursor.getString(column_displayname); lastIndex = absolutePathOfImage.lastIndexOf(nameOfFile); lastIndex = lastIndex >= 0 ? lastIndex : nameOfFile.length() - 1; absolutePathOfFileWithoutFileName = absolutePathOfImage .substring(0, lastIndex); if (!((absolutePathOfFileWithoutFileName.equals(Environment .getExternalStorageDirectory() + "/SlideShow/")))) { if (absolutePathOfImage != null) { absolutePathOfImageList.add(absolutePathOfImage); str += absolutePathOfImage + "#"; } } } } return str; } }
fd05fd7d5f96f945490415daf2fd0d1b56ce679c
d5f09c7b0e954cd20dd613af600afd91b039c48a
/sources/com/ali/auth/third/core/model/SNSSignInAccount.java
a0906c003d8da68b035348616e1292459505e9f2
[]
no_license
t0HiiBwn/CoolapkRelease
af5e00c701bf82c4e90b1033f5c5f9dc8526f4b3
a6a2b03e32cde0e5163016e0078391271a8d33ab
refs/heads/main
2022-07-29T23:28:35.867734
2021-03-26T11:41:18
2021-03-26T11:41:18
345,290,891
5
2
null
null
null
null
UTF-8
Java
false
false
2,528
java
package com.ali.auth.third.core.model; import android.os.Parcel; import android.os.Parcelable; public class SNSSignInAccount implements Parcelable { public static final Parcelable.Creator<SNSSignInAccount> CREATOR = new Parcelable.Creator<SNSSignInAccount>() { /* class com.ali.auth.third.core.model.SNSSignInAccount.AnonymousClass1 */ /* renamed from: a */ public SNSSignInAccount createFromParcel(Parcel parcel) { return new SNSSignInAccount(parcel); } /* renamed from: a */ public SNSSignInAccount[] newArray(int i) { return new SNSSignInAccount[i]; } }; public String app_id; public String company; public String countryAbbr; public String countryFullName; public String email; public String firstName; public String lastName; public boolean neetBindExpressOpenId; public int site; public String snsType; public String token; public String trustOpenId; public String userId; public SNSSignInAccount() { } protected SNSSignInAccount(Parcel parcel) { this.snsType = parcel.readString(); this.userId = parcel.readString(); this.token = parcel.readString(); this.email = parcel.readString(); this.firstName = parcel.readString(); this.lastName = parcel.readString(); this.company = parcel.readString(); this.countryFullName = parcel.readString(); this.countryAbbr = parcel.readString(); } @Override // android.os.Parcelable public int describeContents() { return 0; } @Override // java.lang.Object public String toString() { return "SNSSignInAccount{snsType='" + this.snsType + "', userId='" + this.userId + "', token='" + this.token + "', email='" + this.email + "', firstName='" + this.firstName + "', lastName='" + this.lastName + "', company='" + this.company + "', countryFullName='" + this.countryFullName + "', countryAbbr='" + this.countryAbbr + "'}"; } @Override // android.os.Parcelable public void writeToParcel(Parcel parcel, int i) { parcel.writeString(this.snsType); parcel.writeString(this.userId); parcel.writeString(this.token); parcel.writeString(this.email); parcel.writeString(this.firstName); parcel.writeString(this.lastName); parcel.writeString(this.company); parcel.writeString(this.countryFullName); parcel.writeString(this.countryAbbr); } }
bb3f698dac078b7c1a796051503d5521a3c9393d
571ac84a34f70837f7c884a9bbc5306749a27617
/app/src/main/java/android/rezkyauliapratama/id/robusta/model/api/Location.java
140641dda261fa3d10e86607dd2e2aec833e4f6d
[ "MIT" ]
permissive
rezkyauliapratama/robusta
a1246c96904bd936e432f2cf70b2edcd398ca375
d81433d6a24f18a8ca6d95e3c91440193fb010e8
refs/heads/master
2021-08-24T05:11:03.401173
2017-12-08T05:41:18
2017-12-08T05:41:18
113,459,653
1
0
MIT
2017-12-08T05:41:19
2017-12-07T14:19:47
Java
UTF-8
Java
false
false
854
java
package android.rezkyauliapratama.id.robusta.model.api; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; public class Location { @SerializedName("alamat") @Expose private String alamat; @SerializedName("latitude") @Expose private Double latitude; @SerializedName("longitude") @Expose private Double longitude; public String getAlamat() { return alamat; } public void setAlamat(String alamat) { this.alamat = alamat; } public Double getLatitude() { return latitude; } public void setLatitude(Double latitude) { this.latitude = latitude; } public Double getLongitude() { return longitude; } public void setLongitude(Double longitude) { this.longitude = longitude; } }
dbf7a915084e96d51300b228138e48db8b9c361c
cb008e9b21c3ee7f6b503f367959e29f1b654f0c
/app/src/main/java/com/summersama/fisimili/ui/service/DownloadService.java
be741165bf25be6dfe93caf03c0f20446d7f0bef
[ "MIT" ]
permissive
LoveLoliii/FiSiMiLi
a696d5e1f04cd8ac486648f9d560c2f7ad7b77a4
2582476395425c09443cfb5a617e4960d8ebbdc5
refs/heads/master
2022-01-30T12:56:53.766640
2022-01-19T03:27:34
2022-01-19T03:27:34
177,764,885
0
0
null
null
null
null
UTF-8
Java
false
false
6,997
java
package com.summersama.fisimili.ui.service; import android.app.Activity; import android.app.Service; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.os.AsyncTask; import android.os.Build; import android.os.Environment; import android.os.IBinder; import android.text.TextUtils; import android.util.Log; import android.widget.Toast; import androidx.core.content.FileProvider; import com.summersama.fisimili.utils.FNApplication; import com.summersama.fisimili.utils.ProgressResponseBody; import okhttp3.*; import java.io.*; /** * @author Loveloliii */ public class DownloadService extends Service { private static final String TAG = DownloadService.class.getCanonicalName(); @Override public int onStartCommand(Intent intent, int flags, int startId) { String url = intent.getStringExtra("url"); if(url == null){ url =""; } Log.i(TAG, "onStartCommand: "+url); //启动下载任务 new DownLoadTask().execute(url); return super.onStartCommand(intent, flags, startId); } @Override public IBinder onBind(Intent intent) { throw new UnsupportedOperationException("Not yet implemented"); } /** * 下载任务 */ private class DownLoadTask extends AsyncTask<String,Void,String> { @Override protected String doInBackground(String... params) { startDownload(params); return null; } } private void startDownload(String[] params) { Request request = new Request.Builder() .url(params[0]) .build(); final ProgressResponseBody.ProgressListener listener = (bytesRead, contentLength, done) -> { final int percent = (int) (100 * bytesRead / contentLength); Intent intent = new Intent(); intent.setAction("updateR"); intent.putExtra("progress",percent); //发送广播 sendBroadcast(intent); Log.d(TAG,"下载:"+bytesRead+"--->"+contentLength+":"+(100*bytesRead)/contentLength+"%"); }; OkHttpClient client = new OkHttpClient.Builder() .addNetworkInterceptor(chain -> { Response response = chain.proceed(chain.request()); return response.newBuilder() .body(new ProgressResponseBody(response.body(),listener)) .build(); }).build(); //发送响应 Call call = client.newCall(request); call.enqueue(new Callback() { @Override public void onFailure(Call call, IOException e) { } @Override public void onResponse(Call call, Response response) throws IOException { save(response); } }); } private void save(Response response) { /* long length = response.body().contentLength(); if (length == 0){ Intent i = install(null); if (PApplication.topActivity().getPackageManager().queryIntentActivities(i, 0).size() > 0) { PApplication.topActivity().startActivityForResult(i, 99); } return; }*/ // 保存文件到本地 InputStream is = null; RandomAccessFile randomAccessFile = null; BufferedInputStream bis = null; byte[] buff = new byte[2048]; int len = 0; try { is = response.body().byteStream(); bis =new BufferedInputStream(is); File file = getFile(); // 随机访问文件,可以指定断点续传的起始位置 randomAccessFile = new RandomAccessFile(file, "rwd"); //randomAccessFile.seek (startsPoint); while ((len = bis.read(buff)) != -1) { randomAccessFile.write(buff, 0, len); } // 下载完成 Intent i = install(); if (i != null && context.getPackageManager().queryIntentActivities(i, 0).size() > 0) { FNApplication.topActivity().startActivityForResult(i, 99); }else { FNApplication.topActivity().runOnUiThread(()-> Toast.makeText(activity,"can not download",Toast.LENGTH_SHORT).show()); } } catch (Exception e) { e.printStackTrace(); } finally { try { if (is != null) { is.close(); } if (bis != null){ bis.close(); } if (randomAccessFile != null) { randomAccessFile.close(); } } catch (Exception e) { e.printStackTrace(); } } } private Context activity = FNApplication.getContext(); private Context context = FNApplication.getContext(); private Intent install() { File x =getFile(); if (!x.exists()){ return null; } Intent intent = new Intent(Intent.ACTION_VIEW); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { //区别于 FLAG_GRANT_READ_URI_PERMISSION 跟 FLAG_GRANT_WRITE_URI_PERMISSION, URI权限会持久存在即使重启,直到明确的用 revokeUriPermission(Uri, int) 撤销。 这个flag只提供可能持久授权。但是接收的应用必须调用ContentResolver的takePersistableUriPermission(Uri, int)方法实现 intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION | Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION); Uri fileUri = FileProvider.getUriForFile(activity, activity.getApplicationContext().getPackageName() + ".fileProvider", x); intent.setDataAndType(fileUri, "application/vnd.android.package-archive"); } else { intent.setDataAndType(Uri.fromFile(x), "application/vnd.android.package-archive"); } return intent; } private File getFile() { String path = ""; if (Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED) || !Environment.isExternalStorageRemovable()) { try { path = activity.getExternalCacheDir().getAbsolutePath(); } catch (Exception e) { e.printStackTrace(); } if (TextUtils.isEmpty(path)) { path = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS).getAbsolutePath(); } } else { path =activity.getCacheDir().getAbsolutePath(); } File file = new File(path+File.separator+"install"+File.separator+"app-release.apk"); File parentPath = new File(path+File.separator+"install"); if(!parentPath.exists()){ parentPath.mkdirs(); } return file; } }
5e0be56805657eb486811d75c6b496785163f992
69a257c87edb5d9f2b169f3543cf712c4efc948f
/j8/src/main/java/com/trc/j8/App.java
a6b4b4f91e68b173112430a07ce1ca69962c7792
[]
no_license
trcdkr/j8
3a790167a6f407018c9e068a487572f1cce9967c
c4e0cbfadcb9ed9f6a8d6b94f565c8698766ef9c
refs/heads/master
2020-06-04T17:44:25.151621
2015-04-01T11:41:43
2015-04-01T12:13:03
33,190,631
0
0
null
null
null
null
UTF-8
Java
false
false
194
java
package com.trc.j8; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Yes Yes Hello World! Hello World!" ); } }
f9201c1929fb971d5d56fe93669da7d4143aca47
5d450bbe9bd0babdf58d09f54fcf554bd13be494
/src/main/java/com/example/excel/impl/ExcelserviceImpl.java
52c3d9f0f9b900a9cf9549d3329af235afb9e77e
[]
no_license
liu4295101/excel
972fe26a30fea85bd9a90312a5f27a7b0518cb8c
4ed7b66f3668f6f19767b2d987e28ad635d1fba6
refs/heads/master
2022-07-16T21:26:13.068336
2020-04-17T02:33:57
2020-04-17T02:33:57
256,379,437
0
0
null
null
null
null
UTF-8
Java
false
false
980
java
package com.example.excel.impl; import com.example.excel.service.Excelservice; import com.example.excel.util.Excelutil; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.web.multipart.MultipartHttpServletRequest; import java.util.List; import java.util.Map; @Service public class ExcelserviceImpl implements Excelservice { @Autowired Excelutil excelutil; @Override public boolean analysisFile(MultipartHttpServletRequest mreq) { List<Map> maps = null; try { maps = excelutil.analysisFile (mreq); } catch (Exception e) { return false; } if(maps==null){ return false; }else{ // System.out.println("===="+maps+"================"); for (Map m:maps){ System.out.println(m.get("姓名")); } return true; } } }
635fe54af9bd3bf9098bde7802d5b96642559c74
c13da44fd0627df92d8c17b8cc248bb05ce5e8af
/src/main/java/chart/treemap/TreemapElementFactory.java
707cf4a4b3e227e40b553965230cc3bbf0129f8d
[ "Apache-2.0" ]
permissive
AdamStuart/appFX
a411929b3f2249205b0a7a862bc594b24f63ecf4
3e87cea537cb777ccaad312a31a1be916482e24e
refs/heads/master2
2021-01-24T06:47:20.363628
2017-05-16T18:27:31
2017-05-16T18:27:31
43,520,600
2
2
null
2016-06-07T21:49:58
2015-10-01T20:55:19
Java
UTF-8
Java
false
false
2,305
java
package chart.treemap; import java.util.HashMap; import java.util.List; import java.util.Map; import chart.treemap.paint.ColorBucket; import chart.treemap.paint.ColorGroup; import javafx.scene.Parent; import javafx.scene.paint.Color; /** * @author Tadas Subonis <[email protected]> */ class TreemapElementFactory { private final ColorBucket colorBucket = ColorBucket.createBucket(); private Map<TreemapDtoElement, ColorGroup> colorGroupCache = new HashMap<>(); private Map<TreemapDtoElement, Color> colorCache = new HashMap<>(); public Parent createElement(TreemapDtoElement dtoElement, ColorGroup colorGroup) { ColorGroup realColorGroup = getColorGroup(dtoElement, colorGroup); Color color = getColor(dtoElement, realColorGroup); if (dtoElement.isContainer() && !dtoElement.getItem().getItems().isEmpty()) { final List<Item> items = dtoElement.getItem().getItems(); final double width = dtoElement.getWidth(); final double height = dtoElement.getHeight(); System.out.println(String.format("size = %.2f x %.2f", width, height)) ; return new TreemapLayout(width, height, items, realColorGroup, this); } return new TreemapRectangle(dtoElement, color); } private Color getColor(TreemapDtoElement dtoElement, ColorGroup realColorGroup) { if (colorCache.containsKey(dtoElement)) return colorCache.get(dtoElement); Color color = realColorGroup.fetchColor(); colorCache.put(dtoElement, color); return color; } private ColorGroup getColorGroup(TreemapDtoElement dtoElement, ColorGroup colorGroup) { if (colorGroupCache.containsKey(dtoElement)) return colorGroupCache.get(dtoElement); ColorGroup realColorGroup = colorGroup; if (dtoElement.isContainer() && !dtoElement.getItem().getItems().isEmpty()) realColorGroup = colorBucket.fetchColorGroup(dtoElement.getItem().getItems().size()); colorGroupCache.put(dtoElement, realColorGroup); return realColorGroup; } public TreemapLayout createTreemapLayout(double w, double h, List<Item> items) { return new TreemapLayout(w, h, items, colorBucket.fetchColorGroup(items.size()), this); } }
d36534d9c7cc5326f025210e594bf7aa9c954b03
4887aca745c37d852f11cc038b9a2170f8f89b74
/src/main/java/com/blog/controller/CommentController.java
d7b70822b6bd35a2a56f1fcb919baf05ab5e6799
[]
no_license
ljq112233/MyBlog
3f4eb0ca70295286d62ef9e72b3d3fdad34626bb
146ba0439868eae5c2430c691e75e2e7867a8386
refs/heads/master
2023-07-17T13:37:19.283801
2021-08-31T14:51:12
2021-08-31T14:51:12
392,277,780
0
0
null
null
null
null
UTF-8
Java
false
false
2,317
java
package com.blog.controller;/** * @author Lu Jianqiang * @date 2021/7/29 20 04 * discription */ import com.blog.pojo.Comment; import com.blog.pojo.User; import com.blog.service.BlogService; import com.blog.service.CommentService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PostMapping; import javax.servlet.http.HttpSession; import java.util.prefs.BackingStoreException; /** * @ClassName CommentController * @Description TODO * @Author Lu Jianqiang * @Date 2021/7/29 20:04 * @Version 1.0 */ @Controller public class CommentController { @Autowired private CommentService commentService; @Autowired private BlogService blogService; @Value("${comment.avatar}") private String avatar; /** * @Description: 展示留言 * @Param: [blogId, model] * @return: java.lang.String * @Author: Lu Jianqiang * @Date: 2021/7/29 */ @GetMapping("/comments/{blogId}") public String comments(@PathVariable Long blogId, Model model){ model.addAttribute("comments",commentService.getCommentByBlogId(blogId)); model.addAttribute("blog",blogService.getDetailedBlog(blogId)); return "blog :: commentList"; } /** * @Description: 提交评论 * @Param: [comment, session] * @return: java.lang.String * @Author: Lu Jianqiang * @Date: 2021/7/29 */ @PostMapping("/comments") public String post(Comment comment, HttpSession session){ Long blogId = comment.getBlog().getId(); comment.setBlog(blogService.getDetailedBlog(blogId)); comment.setBlogId(blogId); User user = (User) session.getAttribute("user"); if (user != null){ comment.setAvatar(user.getAvatar()); comment.setAdminComment(true); }else{ comment.setAvatar(avatar); } System.out.println(comment); commentService.saveComment(comment); return "redirect:/comments/"+blogId; } }
f63dba13172beac790aaf50afb682dc2d7b35363
1f16f2801fa430d980778ca31c7c4e66502ddda4
/자바 초급 실습 코드/java22_Broker/src/broker/domain/CustomerRec.java
0e9dee42ad46cb182f2b7fcaf5b88bf5f4b94baf
[]
no_license
atlanboa/Java
3befc1335c104c315768059436485f92e6d17d3c
ac7ab022115e9fda007aa30feb8934a564dc9363
refs/heads/master
2020-09-11T00:29:58.712926
2020-04-19T08:58:55
2020-04-19T08:58:55
221,879,353
0
0
null
null
null
null
UTF-8
Java
false
false
1,930
java
package broker.domain; /* * 고객에 대한 정보를 보유하고 있는 클래스 * 필드 어떻게 지정할래? ssn name address 하고 hasing 해야하니까 sharesRec 가져야함니다 * 그럼 반론 니는 그럼 주식을 한개밖에 못가져 * -> 어레이리스트안에 제네릭을 shares하면 되겠지 * 어레이리스트에 이산하 대우증권 800개 이산하 현대증권 500개 이런 식으로 쭉 가짐 */ import java.util.ArrayList; public class CustomerRec { private String ssn; private String name; //컬럼명은 cust_name private String address; private ArrayList<SharesRec> portfolio; //생성자 몇개>???? 2개 아니니까 묻겠지 디폴트 하나 더 있는거는 상관 없음 //3개임 왜? 주식 보유안하고 회원가입만 한 회원이 잇을 수 있자나 public CustomerRec() {} //회원가입만 한 고객 public CustomerRec(String ssn, String name, String address) { super(); this.ssn = ssn; this.name = name; this.address = address; } //주식까지 보유한 고객 public CustomerRec(String ssn, String name, String address, ArrayList<SharesRec> portfolio) { super(); this.ssn = ssn; this.name = name; this.address = address; this.portfolio = portfolio; } public String getSsn() { return ssn; } public void setSsn(String ssn) { this.ssn = ssn; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getAddress() { return address; } public void setAddress(String address) { this.address = address; } public ArrayList<SharesRec> getPortfolio() { return portfolio; } public void setPortfolio(ArrayList<SharesRec> portfolio) { this.portfolio = portfolio; } @Override public String toString() { return "CustomerRec [ssn=" + ssn + ", name=" + name + ", address=" + address + ", portfolio=" + portfolio + "]"+"\n"; } }
7f0ec1171e4efc058c6d9b867c775cca787e5f3d
6ca134922512d438593a8fca6dd2159dd41c811d
/src/main/java/com/rambo/demo/hello/HelloController.java
be3942350f8ddfcade3f04bff4586ee62c973a50
[]
no_license
panyong/spring_boot_study_demo
46e66b633441be6af17f7892f28a136659d151ef
c7125540449529749846b56d9ee1cac43b143499
refs/heads/master
2020-05-16T11:01:09.520762
2019-07-09T05:04:59
2019-07-09T05:04:59
183,002,218
0
0
null
null
null
null
UTF-8
Java
false
false
1,708
java
package com.rambo.demo.hello; import com.rambo.demo.base.exceptionhandler.exceptions.CommonException; import com.rambo.demo.base.response.BaseResult; import com.rambo.demo.base.response.BaseResultUtils; import com.rambo.demo.lombok.Demo; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Value; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RestController; import javax.validation.Valid; import java.util.Random; /** * User: za-panyong * Date: 2019/4/26 * Time: 15:42 * @author panyong */ @RestController//该注解相当于@Controller和@ResponseBody的组合,提供Restful接口,返回对象或字符串,直接由Spring转为Json返回给请求方,而不是View @RequestMapping(value = "hello")//该注解使用在类上,表示该类下的所有方法继承其value作为请求前缀,method则覆盖 @Slf4j public class HelloController { @Value("${encode.test}") private String value; /** * 相当于 @RequestMapping(value = "hello", method = RequestMethod.GET) * @return */ @RequestMapping(method = RequestMethod.GET) public BaseResult<String> hello(@Valid Demo demo) throws Exception { Random random = new Random(); int randomVal = random.nextInt(2); switch (randomVal){ case 0: throw new Exception("抛出Exception"); // break; case 1: throw new CommonException("抛出CommonException"); // break; } return BaseResultUtils.ok("Hello SpringBoot!"); } }
26e21ca4a23dd6057b074186a0681d39c5ba4270
8b7ada4466f5b509ff826ebbdfc9739f6b2f18a8
/src/main/java/application/config/SwaggerConfig.java
61522223d14dc3cfb50f4e7f0bd813bd4084c285
[]
no_license
LayDan/TestExercise
ab2bcc5520f2a1837c9ed156f76be02b1b6bbbc6
1528b93cc98e2f087a066cc139d0484a0cb5e9a8
refs/heads/master
2022-12-08T03:21:46.820263
2020-03-01T22:56:09
2020-03-01T22:56:09
243,950,876
0
0
null
2022-11-24T06:23:06
2020-02-29T10:47:26
Java
UTF-8
Java
false
false
1,370
java
package application.config; import application.controller.ProductsController; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import springfox.documentation.builders.ApiInfoBuilder; import springfox.documentation.builders.PathSelectors; import springfox.documentation.builders.RequestHandlerSelectors; import springfox.documentation.service.ApiInfo; import springfox.documentation.spi.DocumentationType; import springfox.documentation.spring.web.plugins.Docket; import springfox.documentation.swagger2.annotations.EnableSwagger2; @Configuration @EnableSwagger2 public class SwaggerConfig { @Bean public Docket api() { return new Docket(DocumentationType.SWAGGER_2).select() .apis(RequestHandlerSelectors.basePackage(ProductsController.class.getPackage().getName())) .paths(PathSelectors.regex("/shop/product")) .build() .apiInfo(apiInfo()); } private ApiInfo apiInfo() { return new ApiInfoBuilder() .title("TITLE") .description("DESCRIPTION") .version("VERSION") .termsOfServiceUrl("http://terms-of-services.url") .license("LICENSE") .licenseUrl("http://url-to-license.com") .build(); } }
4683601085bc5cd6c319e117443bd0c78b758858
2a4dd8b52ee3a380aa0fad9f53f4d643350c4e32
/src/main/java/pl/czd/entities/ProposalTemplate.java
686e6c6c283c3e3d85f6ebc9456f42ec766ce2e2
[]
no_license
robcioo/PPZ-backenf
439200e7f72f76badc1e22aa1ee127b91872c8c5
4a7787b1b9dbb4a2c5a40ee4d41b08d788a423bb
refs/heads/master
2021-01-20T01:06:05.001200
2017-08-24T10:06:58
2017-08-24T10:06:58
101,281,450
0
0
null
null
null
null
UTF-8
Java
false
false
1,171
java
package pl.czd.entities; import org.hibernate.annotations.GenericGenerator; import javax.persistence.*; import java.util.ArrayList; import java.util.List; @Entity public class ProposalTemplate { @Id @GeneratedValue(generator = "uuid") @GenericGenerator(name = "uuid", strategy = "uuid2") private String id; private String name; @OneToMany(mappedBy = "proposalTemplate", cascade = CascadeType.ALL) private List<ProposalPositionTemplate> positions; public String getId() { return id; } public void setId(String id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public List<ProposalPositionTemplate> getPositions() { return positions; } public void setPositions(List<ProposalPositionTemplate> positions) { this.positions = positions; } public void addPosition(ProposalPositionTemplate position) { if (this.positions == null) positions = new ArrayList<>(); this.positions.add(position); position.setProposalTemplate(this); } }
3e7a4d840e850220e320a849743fc7d201ed9957
f861c7e3d3d4eb67a9f635633ee6b911f9635541
/education-app/src/test/java/com/ssic/education/SpringTest.java
063e0da9df43a4bbb0c2a9c5c5cfdf4acdb4c884
[]
no_license
wwbg1988/education
f8d232f4a032a2b19cf44afc6957d4d5f7d43a35
007565c2f5f1e51529ae079005778f08a69493ab
refs/heads/master
2020-03-20T22:19:42.223159
2016-11-26T06:15:05
2016-11-26T06:15:05
74,808,441
0
1
null
null
null
null
UTF-8
Java
false
false
1,156
java
package com.ssic.education; import org.springframework.beans.factory.support.DefaultListableBeanFactory; import org.springframework.beans.factory.xml.XmlBeanDefinitionReader; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; import org.springframework.core.io.ClassPathResource; public class SpringTest { public static void main(String[] args) throws ClassNotFoundException { // ClassPathResource classPathResource = new // ClassPathResource("com/ssic/education/tta.xml"); // // DefaultListableBeanFactory factory = new // DefaultListableBeanFactory(); // // XmlBeanDefinitionReader reader = new // XmlBeanDefinitionReader(factory); // // reader.loadBeanDefinitions(classPathResource); // // System.out.println(factory); // // // Object ob = factory.getBean("viewResolverCommon"); // // System.out.println(factory.getBean("viewResolverCommon").getClass()); ApplicationContext application = new ClassPathXmlApplicationContext( "com/ssic/education/tta.xml"); System.out.println(application.getBean("viewResolverCommon")); } }
93377c7f15b992e8ca4b275233a891e42f6f17ab
80e21aba473fca691279a2ba3e40c8f7c938c8fe
/app/build/generated/not_namespaced_r_class_sources/debug/processDebugResources/r/androidx/activity/R.java
b83c19fef52e5f6929a0bf5abc47cb04f1d41fd7
[ "Apache-2.0" ]
permissive
Lorenzolai/AndroidTrivia-Starter
07704e185380a363460b46569aad4c18258cccb7
4be17943bfea0c99563dd9334bd856e57587ed85
refs/heads/master
2020-09-16T11:54:24.505371
2019-11-24T14:58:25
2019-11-24T14:58:25
223,760,942
0
0
null
null
null
null
UTF-8
Java
false
false
13,477
java
/* AUTO-GENERATED FILE. DO NOT MODIFY. * * This class was automatically generated by the * gradle plugin from the resource data it found. It * should not be modified by hand. */ package androidx.activity; public final class R { private R() {} public static final class attr { private attr() {} public static final int alpha = 0x7f030028; public static final int font = 0x7f0300f8; public static final int fontProviderAuthority = 0x7f0300fa; public static final int fontProviderCerts = 0x7f0300fb; public static final int fontProviderFetchStrategy = 0x7f0300fc; public static final int fontProviderFetchTimeout = 0x7f0300fd; public static final int fontProviderPackage = 0x7f0300fe; public static final int fontProviderQuery = 0x7f0300ff; public static final int fontStyle = 0x7f030100; public static final int fontVariationSettings = 0x7f030101; public static final int fontWeight = 0x7f030102; public static final int ttcIndex = 0x7f030258; } public static final class color { private color() {} public static final int notification_action_color_filter = 0x7f05006b; public static final int notification_icon_bg_color = 0x7f05006c; public static final int ripple_material_light = 0x7f050077; public static final int secondary_text_default_material_light = 0x7f050079; } public static final class dimen { private dimen() {} public static final int compat_button_inset_horizontal_material = 0x7f060051; public static final int compat_button_inset_vertical_material = 0x7f060052; public static final int compat_button_padding_horizontal_material = 0x7f060053; public static final int compat_button_padding_vertical_material = 0x7f060054; public static final int compat_control_corner_material = 0x7f060055; public static final int compat_notification_large_icon_max_height = 0x7f060056; public static final int compat_notification_large_icon_max_width = 0x7f060057; public static final int notification_action_icon_size = 0x7f0600c6; public static final int notification_action_text_size = 0x7f0600c7; public static final int notification_big_circle_margin = 0x7f0600c8; public static final int notification_content_margin_start = 0x7f0600c9; public static final int notification_large_icon_height = 0x7f0600ca; public static final int notification_large_icon_width = 0x7f0600cb; public static final int notification_main_column_padding_top = 0x7f0600cc; public static final int notification_media_narrow_margin = 0x7f0600cd; public static final int notification_right_icon_size = 0x7f0600ce; public static final int notification_right_side_padding_top = 0x7f0600cf; public static final int notification_small_icon_background_padding = 0x7f0600d0; public static final int notification_small_icon_size_as_large = 0x7f0600d1; public static final int notification_subtext_size = 0x7f0600d2; public static final int notification_top_pad = 0x7f0600d3; public static final int notification_top_pad_large_text = 0x7f0600d4; } public static final class drawable { private drawable() {} public static final int notification_action_background = 0x7f07006f; public static final int notification_bg = 0x7f070070; public static final int notification_bg_low = 0x7f070071; public static final int notification_bg_low_normal = 0x7f070072; public static final int notification_bg_low_pressed = 0x7f070073; public static final int notification_bg_normal = 0x7f070074; public static final int notification_bg_normal_pressed = 0x7f070075; public static final int notification_icon_background = 0x7f070076; public static final int notification_template_icon_bg = 0x7f070077; public static final int notification_template_icon_low_bg = 0x7f070078; public static final int notification_tile_bg = 0x7f070079; public static final int notify_panel_notification_icon_bg = 0x7f07007a; } public static final class id { private id() {} public static final int accessibility_action_clickable_span = 0x7f080008; public static final int accessibility_custom_action_0 = 0x7f080009; public static final int accessibility_custom_action_1 = 0x7f08000a; public static final int accessibility_custom_action_10 = 0x7f08000b; public static final int accessibility_custom_action_11 = 0x7f08000c; public static final int accessibility_custom_action_12 = 0x7f08000d; public static final int accessibility_custom_action_13 = 0x7f08000e; public static final int accessibility_custom_action_14 = 0x7f08000f; public static final int accessibility_custom_action_15 = 0x7f080010; public static final int accessibility_custom_action_16 = 0x7f080011; public static final int accessibility_custom_action_17 = 0x7f080012; public static final int accessibility_custom_action_18 = 0x7f080013; public static final int accessibility_custom_action_19 = 0x7f080014; public static final int accessibility_custom_action_2 = 0x7f080015; public static final int accessibility_custom_action_20 = 0x7f080016; public static final int accessibility_custom_action_21 = 0x7f080017; public static final int accessibility_custom_action_22 = 0x7f080018; public static final int accessibility_custom_action_23 = 0x7f080019; public static final int accessibility_custom_action_24 = 0x7f08001a; public static final int accessibility_custom_action_25 = 0x7f08001b; public static final int accessibility_custom_action_26 = 0x7f08001c; public static final int accessibility_custom_action_27 = 0x7f08001d; public static final int accessibility_custom_action_28 = 0x7f08001e; public static final int accessibility_custom_action_29 = 0x7f08001f; public static final int accessibility_custom_action_3 = 0x7f080020; public static final int accessibility_custom_action_30 = 0x7f080021; public static final int accessibility_custom_action_31 = 0x7f080022; public static final int accessibility_custom_action_4 = 0x7f080023; public static final int accessibility_custom_action_5 = 0x7f080024; public static final int accessibility_custom_action_6 = 0x7f080025; public static final int accessibility_custom_action_7 = 0x7f080026; public static final int accessibility_custom_action_8 = 0x7f080027; public static final int accessibility_custom_action_9 = 0x7f080028; public static final int action_container = 0x7f080031; public static final int action_divider = 0x7f080033; public static final int action_image = 0x7f080038; public static final int action_text = 0x7f08003e; public static final int actions = 0x7f080041; public static final int async = 0x7f08004a; public static final int blocking = 0x7f08004e; public static final int chronometer = 0x7f080058; public static final int dialog_button = 0x7f08006c; public static final int forever = 0x7f080086; public static final int icon = 0x7f080093; public static final int icon_group = 0x7f080094; public static final int info = 0x7f080097; public static final int italic = 0x7f080099; public static final int line1 = 0x7f0800a0; public static final int line3 = 0x7f0800a1; public static final int normal = 0x7f0800b7; public static final int notification_background = 0x7f0800b8; public static final int notification_main_column = 0x7f0800b9; public static final int notification_main_column_container = 0x7f0800ba; public static final int right_icon = 0x7f0800d3; public static final int right_side = 0x7f0800d4; public static final int tag_accessibility_actions = 0x7f08010b; public static final int tag_accessibility_clickable_spans = 0x7f08010c; public static final int tag_accessibility_heading = 0x7f08010d; public static final int tag_accessibility_pane_title = 0x7f08010e; public static final int tag_screen_reader_focusable = 0x7f08010f; public static final int tag_transition_group = 0x7f080110; public static final int tag_unhandled_key_event_manager = 0x7f080111; public static final int tag_unhandled_key_listeners = 0x7f080112; public static final int text = 0x7f080113; public static final int text2 = 0x7f080114; public static final int time = 0x7f08011e; public static final int title = 0x7f08011f; } public static final class integer { private integer() {} public static final int status_bar_notification_info_maxnum = 0x7f09000f; } public static final class layout { private layout() {} public static final int custom_dialog = 0x7f0b001d; public static final int notification_action = 0x7f0b0035; public static final int notification_action_tombstone = 0x7f0b0036; public static final int notification_template_custom_big = 0x7f0b003d; public static final int notification_template_icon_group = 0x7f0b003e; public static final int notification_template_part_chronometer = 0x7f0b0042; public static final int notification_template_part_time = 0x7f0b0043; } public static final class string { private string() {} public static final int status_bar_notification_info_overflow = 0x7f0f0045; } public static final class style { private style() {} public static final int TextAppearance_Compat_Notification = 0x7f100115; public static final int TextAppearance_Compat_Notification_Info = 0x7f100116; public static final int TextAppearance_Compat_Notification_Line2 = 0x7f100118; public static final int TextAppearance_Compat_Notification_Time = 0x7f10011b; public static final int TextAppearance_Compat_Notification_Title = 0x7f10011d; public static final int Widget_Compat_NotificationActionContainer = 0x7f1001c4; public static final int Widget_Compat_NotificationActionText = 0x7f1001c5; } public static final class styleable { private styleable() {} public static final int[] ColorStateListItem = { 0x10101a5, 0x101031f, 0x7f030028 }; public static final int ColorStateListItem_android_color = 0; public static final int ColorStateListItem_android_alpha = 1; public static final int ColorStateListItem_alpha = 2; public static final int[] FontFamily = { 0x7f0300fa, 0x7f0300fb, 0x7f0300fc, 0x7f0300fd, 0x7f0300fe, 0x7f0300ff }; public static final int FontFamily_fontProviderAuthority = 0; public static final int FontFamily_fontProviderCerts = 1; public static final int FontFamily_fontProviderFetchStrategy = 2; public static final int FontFamily_fontProviderFetchTimeout = 3; public static final int FontFamily_fontProviderPackage = 4; public static final int FontFamily_fontProviderQuery = 5; public static final int[] FontFamilyFont = { 0x1010532, 0x1010533, 0x101053f, 0x101056f, 0x1010570, 0x7f0300f8, 0x7f030100, 0x7f030101, 0x7f030102, 0x7f030258 }; public static final int FontFamilyFont_android_font = 0; public static final int FontFamilyFont_android_fontWeight = 1; public static final int FontFamilyFont_android_fontStyle = 2; public static final int FontFamilyFont_android_ttcIndex = 3; public static final int FontFamilyFont_android_fontVariationSettings = 4; public static final int FontFamilyFont_font = 5; public static final int FontFamilyFont_fontStyle = 6; public static final int FontFamilyFont_fontVariationSettings = 7; public static final int FontFamilyFont_fontWeight = 8; public static final int FontFamilyFont_ttcIndex = 9; public static final int[] GradientColor = { 0x101019d, 0x101019e, 0x10101a1, 0x10101a2, 0x10101a3, 0x10101a4, 0x1010201, 0x101020b, 0x1010510, 0x1010511, 0x1010512, 0x1010513 }; public static final int GradientColor_android_startColor = 0; public static final int GradientColor_android_endColor = 1; public static final int GradientColor_android_type = 2; public static final int GradientColor_android_centerX = 3; public static final int GradientColor_android_centerY = 4; public static final int GradientColor_android_gradientRadius = 5; public static final int GradientColor_android_tileMode = 6; public static final int GradientColor_android_centerColor = 7; public static final int GradientColor_android_startX = 8; public static final int GradientColor_android_startY = 9; public static final int GradientColor_android_endX = 10; public static final int GradientColor_android_endY = 11; public static final int[] GradientColorItem = { 0x10101a5, 0x1010514 }; public static final int GradientColorItem_android_color = 0; public static final int GradientColorItem_android_offset = 1; } }
26613b2ec238ffc58c9996c9bdf21ef575aa05f1
e6f32f3bb844e116be61e4502dee09867da2fea0
/src/main/java/com/PersonAPI/PersonAPI/models/PhoneModel.java
86920a01db595a4add2339ba4ac80f6ec8761131
[]
no_license
vinicius-fernandes/personAPI
215fa5125f2fd6c6ea6e679068e5872280765ca2
49a2c73eb56d0404ff4e22356c19eea7ea48486a
refs/heads/main
2023-07-09T05:39:29.461026
2021-08-14T00:26:42
2021-08-14T00:26:42
394,463,329
0
0
null
null
null
null
UTF-8
Java
false
false
552
java
package com.PersonAPI.PersonAPI.models; import com.PersonAPI.PersonAPI.enums.PhoneType; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import javax.persistence.*; @Entity @Data @Builder @AllArgsConstructor @NoArgsConstructor public class PhoneModel { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; @Enumerated(EnumType.STRING) @Column(nullable = false) private PhoneType type; @Column(nullable = false) private String number; }
b27730ef6f6bbcfcc3434167a839b5d185d2de56
351885af55631069ea22dff45b3bed0a25c7239f
/76/C0-S3-Ply-aop/src/main/java/com/yc/spring/bank/bean/Record.java
ae8eb8199f819871ac3cd502b1310ceb91859be1
[]
no_license
llsok/ycdemo
4c3821af92c45c270cda30b8a90f3a8faeb64c14
98d14b7b566ef28c0e32e2fd29ecc524f368eafd
refs/heads/master
2022-12-26T01:09:40.770448
2020-04-08T03:43:55
2020-04-08T03:43:55
216,328,207
7
13
null
2022-12-16T09:45:17
2019-10-20T08:08:52
JavaScript
UTF-8
Java
false
false
503
java
package com.yc.spring.bank.bean; public class Record { private Integer id; private Integer accountId; private Double money; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public Integer getAccountId() { return accountId; } public void setAccountId(Integer accountId) { this.accountId = accountId; } public Double getMoney() { return money; } public void setMoney(Double money) { this.money = money; } }
6106701bc170e52a56a1ec942cb68cb5c2e376ac
86bb11aa492762fe73ab28e97fc10173f2ed3100
/back/mongoApi/src/main/java/com/ssafy/lolbody/repository/UserCardRepository.java
b9d89a0af0f634f3d62dd5d7f2a2e82c1226f33a
[]
no_license
Seunghyun0606/lolbody
a573dd4e899c5f95c5d0d6099a44b8c715148f0b
43d64e4e7754e5e2bbbb00e2acb6f60163580315
refs/heads/master
2022-12-12T20:45:24.281302
2020-09-10T11:57:48
2020-09-10T11:57:48
293,455,720
0
0
null
null
null
null
UTF-8
Java
false
false
285
java
package com.ssafy.lolbody.repository; import org.springframework.data.mongodb.repository.MongoRepository; import com.ssafy.lolbody.dto.UserCardDto; public interface UserCardRepository extends MongoRepository<UserCardDto, String> { public UserCardDto findBySummonerId(String id); }
cc77fe83c438189f476a1e38812b9b59cae9d597
051000d86d3a0dc642497b3339f434078cfc6caa
/OnlineAuctionDemo/src/main/java/com/asiantech/onlineauction/entity/HandleImage.java
1a783beee7c6c4b897b952cdd7d74674b44bd26a
[]
no_license
thanhtue2011/OnlineAuctionJpa
01f7615a14a1db529508b9b1984c110b82a6eab5
ae5bc9eef4867b8d17fdf904c32e62f9cad0d0be
refs/heads/master
2021-03-12T20:02:49.537958
2015-07-09T09:20:28
2015-07-09T09:20:28
38,810,599
0
0
null
null
null
null
UTF-8
Java
false
false
807
java
package com.asiantech.onlineauction.entity; import java.io.File; import java.io.IOException; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; @Component public class HandleImage{ public static final int DEFAULT_BUFFER_SIZE = 10240; @Value("${"+SystemConstant.IMAGE_DOCROOT+"}") private String rootbaseImg; public String getPathImg(String urlImage){ //System.out.println(rootbaseImg); return rootbaseImg + File.separator + urlImage; } public String getBaseUrl(){ return rootbaseImg; } public File getFileImage(String urlImage) throws IOException{ String pathImage = getPathImg(urlImage); System.out.println(pathImage); File file = new File(pathImage); if(!file.exists()){ return null; } return file; } }
f65065dfb87b273ea465b404d373936a15ae602a
38ae330db4d2dedcc1664b45b7b89192a3ef909c
/src/com/fengshan/Thread/Daemons.java
417f7a2ae4508cd29d983550897332ca5877599b
[]
no_license
DrawBlack/Think-in-java
b3f72569034972daac447ad8e1ac67f248a0e1b3
243b87e9dea5f61424c7a58e9a34d2ccee25a0d3
refs/heads/master
2020-05-20T06:05:36.084114
2016-09-18T05:03:56
2016-09-18T05:03:56
68,196,760
0
0
null
null
null
null
UTF-8
Java
false
false
1,075
java
package com.fengshan.Thread; import java.util.concurrent.TimeUnit; /** * Created by macbookpro on 2016/9/13. * * 后台线程派生出来的子线程也是后台线程 * */ public class Daemons { public Daemons() { } public static void main(String[] args){ Thread thread=new Thread(new Daemon() ); thread.setDaemon(true); thread.start(); System.out.println("thred isDaemon:"+thread.isDaemon()); try { TimeUnit.MILLISECONDS.sleep(1); } catch (InterruptedException e) { e.printStackTrace(); } } } class Daemon implements Runnable{ private Thread[] t=new Thread[10]; @Override public void run() { for (int i=0;i<10;i++){ t[i]=new Thread(new DaemonSpawn()); } for (int i=0;i<t.length;i++){ System.out.println("t["+i+"]"+"is.isDaemon:"+t[i].isDaemon()); } Thread.yield(); } } class DaemonSpawn implements Runnable{ @Override public void run() { Thread.yield(); } }
23a4cf961bdffeca7efd7fdcfe74fa8565851146
55c0e15f03f4fc576d5ed7bffcda8c7171564bfe
/DMandroid/src/com/chen/helper/JacksonUtil.java
d31f490b4916b79d118c29c911ec123c64365a75
[]
no_license
imufun/DeviceManagement
49b1407422cf5b1bf6f0b545f84def91db758f6c
09ccf42ae5c489232bf1004533526335636b7d51
refs/heads/master
2021-01-22T15:50:24.383275
2015-11-19T01:18:42
2015-11-19T01:18:42
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,962
java
package com.chen.helper; import java.io.IOException; import android.util.Log; import com.chen.dmandroid.DeviceResponse; import com.chen.dmandroid.HistoryResponse; import com.chen.dmandroid.ResponseWithoutData; import com.chen.dmandroid.UserResponse; import com.fasterxml.jackson.core.JsonParseException; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; public class JacksonUtil { static ObjectMapper objectMapper = new ObjectMapper(); public static UserResponse convertToUserResponse(String generalSettingJsonSetting){ UserResponse userResponse = null; try { userResponse = objectMapper.readValue(generalSettingJsonSetting, UserResponse.class); } catch (JsonParseException e) { Log.e("jackson", "Exception on JsonParseException in convertToGeneralSetting", e); } catch (JsonMappingException e) { Log.e("jackson","Exception on JsonMappingException in convertToGeneralSetting", e); } catch (IOException e) { Log.e("jackson","Exception on IOException in convertToGeneralSetting", e); } return userResponse; } public static DeviceResponse convertToDeviceResponse(String generalSettingJsonSetting){ DeviceResponse deviceResponse = null; try { deviceResponse = objectMapper.readValue(generalSettingJsonSetting, DeviceResponse.class); } catch (JsonParseException e) { Log.e("jackson", "Exception on JsonParseException in convertToGeneralSetting", e); } catch (JsonMappingException e) { Log.e("jackson","Exception on JsonMappingException in convertToGeneralSetting", e); } catch (IOException e) { Log.e("jackson","Exception on IOException in convertToGeneralSetting", e); } return deviceResponse; } public static ResponseWithoutData convertToResponseWithoutData(String generalSettingJsonSetting){ ResponseWithoutData responseWithoutData = null; try { responseWithoutData = objectMapper.readValue(generalSettingJsonSetting, ResponseWithoutData.class); } catch (JsonParseException e) { Log.e("jackson", "Exception on JsonParseException in convertToGeneralSetting", e); } catch (JsonMappingException e) { Log.e("jackson","Exception on JsonMappingException in convertToGeneralSetting", e); } catch (IOException e) { Log.e("jackson","Exception on IOException in convertToGeneralSetting", e); } return responseWithoutData; } public static HistoryResponse convertToHistoryResponse(String generalSettingJsonSetting){ HistoryResponse hr = null; try { hr = objectMapper.readValue(generalSettingJsonSetting, HistoryResponse.class); } catch (JsonParseException e) { Log.e("jackson", "Exception on JsonParseException in convertToGeneralSetting", e); } catch (JsonMappingException e) { Log.e("jackson","Exception on JsonMappingException in convertToGeneralSetting", e); } catch (IOException e) { Log.e("jackson","Exception on IOException in convertToGeneralSetting", e); } return hr; } }
2853bf1f8f4be4d71bf4f9f8b3092f1f9c4def45
eb816e8267c049152ac9a4c2e932869d95251495
/src/main/java/br/com/alura/forum/controller/HelloController.java
94e689303f30c6dcaad97f084e6616d0c910c700
[]
no_license
Phelipealx/alura-spring
75caf6f1afab6c000f2f7683d3182f6aec2d62aa
58655691753fbeb5ff8e2f8db7b03283fb0f02da
refs/heads/master
2022-12-26T21:44:32.712870
2020-09-23T22:57:34
2020-09-23T22:57:34
293,796,990
0
0
null
null
null
null
UTF-8
Java
false
false
353
java
package br.com.alura.forum.controller; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; @Controller public class HelloController { @RequestMapping("/") @ResponseBody public String Hello() { return "Hello World!"; } }
62a3352cd9f0c20d7c6572d612cb665e83baf96e
3f3173b16933f2e63e829917a600ad16f17e5fd0
/calculadora/src/androidTest/java/com/everykan/calculadora/ExampleInstrumentedTest.java
0c5ae20af9b3eb44794fff3a67c892ecdabdb13e
[]
no_license
Everykan/androiddemo
f3477be0a60252b58eafcfa95d1f716e1c7c49fb
ec0a57302677d8d57e973c16f4e974b961ce5a74
refs/heads/master
2020-06-01T09:32:34.114447
2019-07-12T12:20:51
2019-07-12T12:20:51
190,732,379
0
0
null
null
null
null
UTF-8
Java
false
false
732
java
package com.everykan.calculadora; import android.content.Context; import android.support.test.InstrumentationRegistry; import android.support.test.runner.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; /** * Instrumented test, which will execute on an Android device. * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ @RunWith(AndroidJUnit4.class) public class ExampleInstrumentedTest { @Test public void useAppContext() { // Context of the app under test. Context appContext = InstrumentationRegistry.getTargetContext(); assertEquals("com.everykan.calculadora", appContext.getPackageName()); } }
76ef9e566f92710d2d86d1aa4e0048af43a2b687
1009ff94187bc9d67e03d2dd2657bc336c828200
/OnlineStore/src/automationFrameworkIntermediate/PracticeSwitchWindow_2.java
790be37eabb52bedea0627f1651c08446c99d0ef
[]
no_license
qapedro/Teste
4cba24bf6e9575cf7c1b71e9b97c4ec00e95a905
eff82e330581d265b489d98558ac26a82b91a7a8
refs/heads/master
2021-01-10T04:44:22.011869
2015-11-16T11:38:55
2015-11-16T11:38:55
46,268,445
0
0
null
null
null
null
UTF-8
Java
false
false
1,102
java
package automationFrameworkIntermediate; import java.util.concurrent.TimeUnit; import org.openqa.selenium.Alert; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; public class PracticeSwitchWindow_2 { public static WebDriver driver; public static void main(String[] args) { // Create a new instance of the Firefox driver driver = new FirefoxDriver(); // Maximize Firefox browser driver.manage().window().maximize(); /* Put an Implict wait, this means that any search for elements on the page could take the time the implict wait is set for before throwing exception */ driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); // Launch the URL driver.get("http://www.toolsqa.com/automation-practice-switch-windows/"); // Click on the button "Alert Box" driver.findElement(By.id("alert")).click(); // Switch to JavaScript Alert window Alert myAlert = driver.switchTo().alert(); // Accept the Alert myAlert.accept(); // Close Original window driver.close(); } }
4e049122afbdac3e3f840a13733f84a91bdbad6b
7823d8942feefe3c1fbdd0ad33d502afc2c20efe
/src/main/java/io/gihub/idilantha/pos/util/OrderDetailTM.java
bcd4c895e33cc395adff5dd5afcf4d4548b67243
[ "MIT" ]
permissive
IDilantha/POS-Maven-HibernateJPA-Spring
0e1c4de64e029f1812b2ca90a2cf225b83e5d8e3
30dff022d4b350b9ba6caa2916a08d399b226dae
refs/heads/master
2023-04-28T11:57:08.977744
2020-01-15T19:27:53
2020-01-15T19:27:53
234,155,969
1
0
MIT
2023-04-17T19:44:35
2020-01-15T19:25:58
Java
UTF-8
Java
false
false
1,876
java
package io.gihub.idilantha.pos.util; import javafx.scene.control.Button; public class OrderDetailTM { private String code; private String description; private int qty; private double unitPrice; private double total; private Button btnDelete; public OrderDetailTM() { } public OrderDetailTM(String code, String description, int qty, double unitPrice, double total, Button btnDelete) { this.setCode(code); this.setDescription(description); this.setQty(qty); this.setUnitPrice(unitPrice); this.setTotal(total); this.setBtnDelete(btnDelete); } public String getCode() { return code; } public void setCode(String code) { this.code = code; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public int getQty() { return qty; } public void setQty(int qty) { this.qty = qty; } public double getUnitPrice() { return unitPrice; } public void setUnitPrice(double unitPrice) { this.unitPrice = unitPrice; } public double getTotal() { return total; } public void setTotal(double total) { this.total = total; } public Button getBtnDelete() { return btnDelete; } public void setBtnDelete(Button btnDelete) { this.btnDelete = btnDelete; } @Override public String toString() { return "OrderDetailTM{" + "code='" + code + '\'' + ", description='" + description + '\'' + ", qty=" + qty + ", unitPrice=" + unitPrice + ", total=" + total + ", btnDelete=" + btnDelete + '}'; } }
3b5d56a6c29e082e4edb2c633076e10fdcd68a4b
c0563beffa9750e18e918ff4d3c05f9d4711f268
/app/src/main/java/com/example/sos/LoginGoogle.java
2d80939925b0839b3b7aa4b350513f95ac7b059b
[]
no_license
PhoneMilk7/SOS
4e1cd77f6913605961e5af4b8ca39e76454947ec
da8820eb99d0e72904c8da177c4a56c4d4bbb040
refs/heads/master
2023-02-12T04:33:41.604310
2021-01-06T01:51:50
2021-01-06T01:51:50
321,515,294
0
0
null
null
null
null
UTF-8
Java
false
false
3,452
java
package com.example.sos; //Autores: Pereda Hernandez Leonel y Verdin Garcia José Antonio import androidx.annotation.Nullable; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import android.os.PersistableBundle; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.Toast; import com.google.android.gms.auth.api.signin.GoogleSignIn; import com.google.android.gms.auth.api.signin.GoogleSignInAccount; import com.google.android.gms.auth.api.signin.GoogleSignInClient; import com.google.android.gms.auth.api.signin.GoogleSignInOptions; import com.google.android.gms.common.api.ApiException; import com.google.android.gms.common.api.GoogleApi; import com.google.android.gms.tasks.Task; public class LoginGoogle extends AppCompatActivity { int RC_SIGN_IN = 0; GoogleSignInClient mGoogleSignInClient; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_login_google); //Inicialiso el boton Button signInButton = findViewById(R.id.button); GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN) .requestEmail() .build(); mGoogleSignInClient = GoogleSignIn.getClient(this, gso); signInButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { signIn(); } }); } private void signIn() { Intent signInIntent = mGoogleSignInClient.getSignInIntent(); startActivityForResult(signInIntent, RC_SIGN_IN); } @Override public void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); // Result returned from launching the Intent from GoogleSignInClient.getSignInIntent(...); if (requestCode == RC_SIGN_IN) { // The Task returned from this call is always completed, no need to attach // a listener. Task<GoogleSignInAccount> task = GoogleSignIn.getSignedInAccountFromIntent(data); handleSignInResult(task); } } private void handleSignInResult(Task<GoogleSignInAccount> completedTask) { try { GoogleSignInAccount account = completedTask.getResult(ApiException.class); // Signed in successfully, show authenticated UI. startActivity(new Intent(LoginGoogle.this, Activity2.class)); } catch (ApiException e) { // The ApiException status code indicates the detailed failure reason. // Please refer to the GoogleSignInStatusCodes class reference for more information. Log.w("Error de inicio", "signInResult:failed code=" + e.getStatusCode()); Toast.makeText(LoginGoogle.this, "Fallo", Toast.LENGTH_LONG).show(); } } @Override protected void onStart() { // Check for existing Google Sign In account, if the user is already signed in // the GoogleSignInAccount will be non-null. GoogleSignInAccount account = GoogleSignIn.getLastSignedInAccount(this); if(account != null) { startActivity(new Intent(LoginGoogle.this, Activity2.class)); } super.onStart(); } }
464c7258a607954bc2c79ed30205be581c4d5bbe
2f6189694954810345a4c157c2b32845a8a4c90e
/src/main/java/tas/springframework/msbrewery/MsBreweryApplication.java
711e314679a9cdc28d8258a92d29f5be54e0bca1
[]
no_license
tas-man/ms-brewery
704bd930a6c59502706b84c073a82547709bd1d1
0a0dd50a3bd3e3ecab4628c6684b8c78ccc7cabe
refs/heads/master
2022-07-03T07:58:23.196950
2020-05-15T15:05:34
2020-05-15T15:05:34
258,408,458
0
0
null
null
null
null
UTF-8
Java
false
false
327
java
package tas.springframework.msbrewery; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class MsBreweryApplication { public static void main(String[] args) { SpringApplication.run(MsBreweryApplication.class, args); } }
30d01f0962fb3efb40641d5f637b8b17c7f63c5f
604e715c03b75cd33d3795b1fb652b501a84c6d1
/Mobile App/HeartRateMonitor/sources/com/google/appinventor/components/runtime/util/Synchronizer.java
228af04ffb715131adddda9f333381f038e6f095
[]
no_license
aish21/CE3002-Sensors-Lab
902ad691acd208e30e47a40c799bfcb5731bfc86
eb0c9cf0f3d3a9b5d63336057ff95c0a00ec3507
refs/heads/main
2023-08-18T19:25:04.338391
2021-10-11T08:21:57
2021-10-11T08:21:57
415,335,117
1
1
null
null
null
null
UTF-8
Java
false
false
1,048
java
package com.google.appinventor.components.runtime.util; public class Synchronizer<T> { private Throwable error; private String errorMessage; private volatile boolean finished = false; private T result; public synchronized void waitfor() { while (!this.finished) { try { wait(); } catch (InterruptedException e) { } } } public synchronized void wakeup(T result2) { this.finished = true; this.result = result2; notifyAll(); } public synchronized void error(String error2) { this.finished = true; this.errorMessage = error2; notifyAll(); } public synchronized void caught(Throwable error2) { this.finished = true; this.error = error2; notifyAll(); } public T getResult() { return this.result; } public String getError() { return this.errorMessage; } public Throwable getThrowable() { return this.error; } }
4d3fc084a8b109600d7aa79efe1fbddf51055989
c1202565d8cd3e496d4081cf148f4f0f931e68c5
/app/src/main/java/com/example/liang/siruanbei/utils/SpHelper.java
93af046a26cbd612eeb6a0e3d2969e1f89078462
[]
no_license
liang1075963999/yunchengxueyuan-app
56894caff3d12a20d8d1bc883f856348b429a510
a5ffe2559cb78ff308754136a4090eebabb24479
refs/heads/master
2021-08-30T08:40:51.380139
2017-12-17T02:01:17
2017-12-17T02:01:17
113,054,611
0
0
null
null
null
null
UTF-8
Java
false
false
1,383
java
package com.example.liang.siruanbei.utils; import android.content.Context; import android.content.SharedPreferences; /** * Created by 李 on 2017/1/26. */ public class SpHelper { private static final String SP_NAME = "sp_name"; private static SpHelper mSpHelper; private Context mAppContext; private SharedPreferences mSharedPreferences; private String info; private SpHelper(Context context){ mAppContext = context.getApplicationContext(); } //获取SpHelper的实例 public static SpHelper getInstance(Context context){ if(mSpHelper == null){ synchronized (SpHelper.class){ if(mSpHelper == null){ mSpHelper = new SpHelper(context); } } } return mSpHelper; } private SharedPreferences getSharePreferences(){ if(mSharedPreferences == null){ mSharedPreferences = mAppContext.getSharedPreferences(SP_NAME, Context.MODE_APPEND); } return mSharedPreferences; } public void setInfo(String info){ this.info = info; getSharePreferences().edit().putString("info", info).apply(); } public String getInfo(){ if(info.equals("") || info.length() == 0){ info = getSharePreferences().getString("info", ""); } return info; } }
920f241e3a10ce511b3a9362a9bf298ea25045bf
20e06a4f2de73dce91c86c204da57282d787c15e
/layout22/gen/com/example/layout22/R.java
dc6d237aba672001a0aaec87c6dcadff1d964485
[]
no_license
RibuRoyson/Data
fbc6f786d2aa712e4f2ad879f790d3f9fcf65b8f
f996cd42485875f6db4778eb52587f7f2978ee8b
refs/heads/master
2021-01-10T19:40:43.611867
2015-06-12T10:53:59
2015-06-12T10:53:59
31,011,760
0
0
null
null
null
null
UTF-8
Java
false
false
348,655
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.layout22; 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; /** 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; /** Text to set as the content description for the collapse button. <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 collapseContentDescription=0x7f010094; /** Icon drawable to use for the collapse 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 collapseIcon=0x7f010093; /** 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=0x7f090031; public static final int action_bar_activity_content=0x7f090003; public static final int action_bar_container=0x7f090030; public static final int action_bar_root=0x7f09002c; public static final int action_bar_spinner=0x7f090002; public static final int action_bar_subtitle=0x7f09001f; public static final int action_bar_title=0x7f09001e; public static final int action_context_bar=0x7f090032; public static final int action_menu_divider=0x7f090005; public static final int action_menu_presenter=0x7f090006; public static final int action_mode_bar=0x7f09002e; public static final int action_mode_bar_stub=0x7f09002d; public static final int action_mode_close_button=0x7f090020; public static final int action_settings=0x7f09003f; public static final int activity_chooser_view_content=0x7f090021; public static final int always=0x7f090014; public static final int beginning=0x7f09001b; public static final int checkbox=0x7f090029; public static final int collapseActionView=0x7f090015; public static final int decor_content_parent=0x7f09002f; public static final int default_activity_button=0x7f090024; public static final int dialog=0x7f090019; public static final int disableHome=0x7f09000d; public static final int dropdown=0x7f09001a; public static final int edit_query=0x7f090033; public static final int end=0x7f09001c; public static final int expand_activities_button=0x7f090022; public static final int expanded_menu=0x7f090028; public static final int home=0x7f090000; public static final int homeAsUp=0x7f09000e; public static final int icon=0x7f090026; public static final int ifRoom=0x7f090016; public static final int image=0x7f090023; public static final int listMode=0x7f09000a; public static final int list_item=0x7f090025; 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 progress_circular=0x7f090007; public static final int progress_horizontal=0x7f090008; public static final int radio=0x7f09002b; public static final int search_badge=0x7f090035; public static final int search_bar=0x7f090034; public static final int search_button=0x7f090036; public static final int search_close_btn=0x7f09003b; public static final int search_edit_frame=0x7f090037; public static final int search_go_btn=0x7f09003d; public static final int search_mag_icon=0x7f090038; public static final int search_plate=0x7f090039; public static final int search_src_text=0x7f09003a; public static final int search_voice_btn=0x7f09003e; public static final int shortcut=0x7f09002a; 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=0x7f09003c; public static final int tabMode=0x7f09000c; public static final int title=0x7f090027; 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=0x7f0a0005; /** 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=0x7f0a0006; /** 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=0x7f0a000d; /** 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=0x7f0a000c; /** SearchView accessibility description for clear button [CHAR LIMIT=NONE] */ public static final int abc_searchview_description_clear=0x7f0a0009; /** SearchView accessibility description for search text field [CHAR LIMIT=NONE] */ public static final int abc_searchview_description_query=0x7f0a0008; /** SearchView accessibility description for search button [CHAR LIMIT=NONE] */ public static final int abc_searchview_description_search=0x7f0a0007; /** SearchView accessibility description for submit button [CHAR LIMIT=NONE] */ public static final int abc_searchview_description_submit=0x7f0a000a; /** SearchView accessibility description for voice button [CHAR LIMIT=NONE] */ public static final int abc_searchview_description_voice=0x7f0a000b; /** Description of the choose target button in a ShareActionProvider (share UI). [CHAR LIMIT=NONE] */ public static final int abc_shareactionprovider_share_with=0x7f0a000f; /** 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=0x7f0a000e; /** Content description for the Toolbar icon used to collapse an expanded action mode. [CHAR LIMIT=NONE] */ public static final int abc_toolbar_collapse_description=0x7f0a0004; public static final int action_settings=0x7f0a0012; public static final int app_name=0x7f0a0010; public static final int hello_world=0x7f0a0011; } 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.layout22:background}</code></td><td> Specifies a background drawable for the action bar.</td></tr> <tr><td><code>{@link #ActionBar_backgroundSplit com.example.layout22: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.layout22: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.layout22:contentInsetEnd}</code></td><td> Minimum inset for content views within a bar.</td></tr> <tr><td><code>{@link #ActionBar_contentInsetLeft com.example.layout22:contentInsetLeft}</code></td><td> Minimum inset for content views within a bar.</td></tr> <tr><td><code>{@link #ActionBar_contentInsetRight com.example.layout22:contentInsetRight}</code></td><td> Minimum inset for content views within a bar.</td></tr> <tr><td><code>{@link #ActionBar_contentInsetStart com.example.layout22:contentInsetStart}</code></td><td> Minimum inset for content views within a bar.</td></tr> <tr><td><code>{@link #ActionBar_customNavigationLayout com.example.layout22:customNavigationLayout}</code></td><td> Specifies a layout for custom navigation.</td></tr> <tr><td><code>{@link #ActionBar_displayOptions com.example.layout22:displayOptions}</code></td><td> Options affecting how the action bar is displayed.</td></tr> <tr><td><code>{@link #ActionBar_divider com.example.layout22:divider}</code></td><td> Specifies the drawable used for item dividers.</td></tr> <tr><td><code>{@link #ActionBar_elevation com.example.layout22:elevation}</code></td><td> Elevation for the action bar itself </td></tr> <tr><td><code>{@link #ActionBar_height com.example.layout22:height}</code></td><td> Specifies a fixed height.</td></tr> <tr><td><code>{@link #ActionBar_hideOnContentScroll com.example.layout22: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.layout22:homeAsUpIndicator}</code></td><td> Up navigation glyph </td></tr> <tr><td><code>{@link #ActionBar_homeLayout com.example.layout22: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.layout22:icon}</code></td><td> Specifies the drawable used for the application icon.</td></tr> <tr><td><code>{@link #ActionBar_indeterminateProgressStyle com.example.layout22: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.layout22: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.layout22:logo}</code></td><td> Specifies the drawable used for the application logo.</td></tr> <tr><td><code>{@link #ActionBar_navigationMode com.example.layout22:navigationMode}</code></td><td> The type of navigation to use.</td></tr> <tr><td><code>{@link #ActionBar_popupTheme com.example.layout22: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.layout22: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.layout22: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.layout22:subtitle}</code></td><td> Specifies subtitle text used for navigationMode="normal" </td></tr> <tr><td><code>{@link #ActionBar_subtitleTextStyle com.example.layout22:subtitleTextStyle}</code></td><td> Specifies a style to use for subtitle text.</td></tr> <tr><td><code>{@link #ActionBar_title com.example.layout22:title}</code></td><td> Specifies title text used for navigationMode="normal" </td></tr> <tr><td><code>{@link #ActionBar_titleTextStyle com.example.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22:background}</code></td><td> Specifies a background for the action mode bar.</td></tr> <tr><td><code>{@link #ActionMode_backgroundSplit com.example.layout22:backgroundSplit}</code></td><td> Specifies a background for the split action mode bar.</td></tr> <tr><td><code>{@link #ActionMode_closeItemLayout com.example.layout22: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.layout22:height}</code></td><td> Specifies a fixed height for the action mode bar.</td></tr> <tr><td><code>{@link #ActionMode_subtitleTextStyle com.example.layout22:subtitleTextStyle}</code></td><td> Specifies a style to use for subtitle text.</td></tr> <tr><td><code>{@link #ActionMode_titleTextStyle com.example.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22:color}</code></td><td> The drawing color for the bars </td></tr> <tr><td><code>{@link #DrawerArrowToggle_drawableSize com.example.layout22:drawableSize}</code></td><td> The total size of the drawable </td></tr> <tr><td><code>{@link #DrawerArrowToggle_gapBetweenBars com.example.layout22: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.layout22: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.layout22:spinBars}</code></td><td> Whether bars should rotate or not during transition </td></tr> <tr><td><code>{@link #DrawerArrowToggle_thickness com.example.layout22:thickness}</code></td><td> The thickness (stroke size) for the bar paint </td></tr> <tr><td><code>{@link #DrawerArrowToggle_topBottomBarArrowSize com.example.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22:divider}</code></td><td> Drawable to use as a vertical divider between buttons.</td></tr> <tr><td><code>{@link #LinearLayoutCompat_dividerPadding com.example.layout22:dividerPadding}</code></td><td> Size of padding on either end of a divider.</td></tr> <tr><td><code>{@link #LinearLayoutCompat_measureWithLargestChild com.example.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22:actionLayout}</code></td><td> An optional layout to be used as an action view.</td></tr> <tr><td><code>{@link #MenuItem_actionProviderClass com.example.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22:closeIcon}</code></td><td> Close button icon </td></tr> <tr><td><code>{@link #SearchView_commitIcon com.example.layout22:commitIcon}</code></td><td> Commit icon shown in the query suggestion row </td></tr> <tr><td><code>{@link #SearchView_goIcon com.example.layout22:goIcon}</code></td><td> Go button icon </td></tr> <tr><td><code>{@link #SearchView_iconifiedByDefault com.example.layout22:iconifiedByDefault}</code></td><td> The default state of the SearchView.</td></tr> <tr><td><code>{@link #SearchView_layout com.example.layout22:layout}</code></td><td> The layout to use for the search view.</td></tr> <tr><td><code>{@link #SearchView_queryBackground com.example.layout22:queryBackground}</code></td><td> Background for the section containing the search query </td></tr> <tr><td><code>{@link #SearchView_queryHint com.example.layout22: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.layout22:searchIcon}</code></td><td> Search icon </td></tr> <tr><td><code>{@link #SearchView_submitBackground com.example.layout22:submitBackground}</code></td><td> Background for the section containing the action (e.</td></tr> <tr><td><code>{@link #SearchView_suggestionRowLayout com.example.layout22:suggestionRowLayout}</code></td><td> Layout for query suggestion rows </td></tr> <tr><td><code>{@link #SearchView_voiceIcon com.example.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22:showText}</code></td><td> Whether to draw on/off text.</td></tr> <tr><td><code>{@link #SwitchCompat_splitTrack com.example.layout22: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.layout22:switchMinWidth}</code></td><td> Minimum width for the switch component </td></tr> <tr><td><code>{@link #SwitchCompat_switchPadding com.example.layout22:switchPadding}</code></td><td> Minimum space between the switch and caption text </td></tr> <tr><td><code>{@link #SwitchCompat_switchTextAppearance com.example.layout22:switchTextAppearance}</code></td><td> TextAppearance style for text displayed on the switch thumb.</td></tr> <tr><td><code>{@link #SwitchCompat_thumbTextPadding com.example.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22:actionBarItemBackground}</code></td><td> Custom item state list drawable background for action bar items.</td></tr> <tr><td><code>{@link #Theme_actionBarPopupTheme com.example.layout22: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.layout22: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.layout22:actionBarSplitStyle}</code></td><td> Reference to a style for the split Action Bar.</td></tr> <tr><td><code>{@link #Theme_actionBarStyle com.example.layout22:actionBarStyle}</code></td><td> Reference to a style for the Action Bar </td></tr> <tr><td><code>{@link #Theme_actionBarTabBarStyle com.example.layout22:actionBarTabBarStyle}</code></td><td></td></tr> <tr><td><code>{@link #Theme_actionBarTabStyle com.example.layout22:actionBarTabStyle}</code></td><td> Default style for tabs within an action bar </td></tr> <tr><td><code>{@link #Theme_actionBarTabTextStyle com.example.layout22:actionBarTabTextStyle}</code></td><td></td></tr> <tr><td><code>{@link #Theme_actionBarTheme com.example.layout22: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.layout22: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.layout22:actionButtonStyle}</code></td><td> Default action button style.</td></tr> <tr><td><code>{@link #Theme_actionDropDownStyle com.example.layout22:actionDropDownStyle}</code></td><td> Default ActionBar dropdown style.</td></tr> <tr><td><code>{@link #Theme_actionMenuTextAppearance com.example.layout22: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.layout22:actionMenuTextColor}</code></td><td> Color for text that appears within action menu items.</td></tr> <tr><td><code>{@link #Theme_actionModeBackground com.example.layout22:actionModeBackground}</code></td><td> Background drawable to use for action mode UI </td></tr> <tr><td><code>{@link #Theme_actionModeCloseButtonStyle com.example.layout22:actionModeCloseButtonStyle}</code></td><td></td></tr> <tr><td><code>{@link #Theme_actionModeCloseDrawable com.example.layout22:actionModeCloseDrawable}</code></td><td> Drawable to use for the close action mode button </td></tr> <tr><td><code>{@link #Theme_actionModeCopyDrawable com.example.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22:actionModeStyle}</code></td><td></td></tr> <tr><td><code>{@link #Theme_actionModeWebSearchDrawable com.example.layout22: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.layout22:actionOverflowButtonStyle}</code></td><td></td></tr> <tr><td><code>{@link #Theme_actionOverflowMenuStyle com.example.layout22:actionOverflowMenuStyle}</code></td><td></td></tr> <tr><td><code>{@link #Theme_activityChooserViewStyle com.example.layout22: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.layout22: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.layout22: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.layout22:colorAccent}</code></td><td> Bright complement to the primary branding color.</td></tr> <tr><td><code>{@link #Theme_colorButtonNormal com.example.layout22:colorButtonNormal}</code></td><td> The color applied to framework buttons in their normal state.</td></tr> <tr><td><code>{@link #Theme_colorControlActivated com.example.layout22:colorControlActivated}</code></td><td> The color applied to framework controls in their activated (ex.</td></tr> <tr><td><code>{@link #Theme_colorControlHighlight com.example.layout22:colorControlHighlight}</code></td><td> The color applied to framework control highlights (ex.</td></tr> <tr><td><code>{@link #Theme_colorControlNormal com.example.layout22:colorControlNormal}</code></td><td> The color applied to framework controls in their normal state.</td></tr> <tr><td><code>{@link #Theme_colorPrimary com.example.layout22:colorPrimary}</code></td><td> The primary branding color for the app.</td></tr> <tr><td><code>{@link #Theme_colorPrimaryDark com.example.layout22:colorPrimaryDark}</code></td><td> Dark variant of the primary branding color.</td></tr> <tr><td><code>{@link #Theme_colorSwitchThumbNormal com.example.layout22: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.layout22: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.layout22: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.layout22:dropDownListViewStyle}</code></td><td> ListPopupWindow compatibility </td></tr> <tr><td><code>{@link #Theme_dropdownListPreferredItemHeight com.example.layout22:dropdownListPreferredItemHeight}</code></td><td> The preferred item height for dropdown lists.</td></tr> <tr><td><code>{@link #Theme_editTextBackground com.example.layout22:editTextBackground}</code></td><td> EditText background drawable.</td></tr> <tr><td><code>{@link #Theme_editTextColor com.example.layout22:editTextColor}</code></td><td> EditText text foreground color.</td></tr> <tr><td><code>{@link #Theme_homeAsUpIndicator com.example.layout22: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.layout22:listChoiceBackgroundIndicator}</code></td><td> Drawable used as a background for selected list items.</td></tr> <tr><td><code>{@link #Theme_listPopupWindowStyle com.example.layout22:listPopupWindowStyle}</code></td><td></td></tr> <tr><td><code>{@link #Theme_listPreferredItemHeight com.example.layout22:listPreferredItemHeight}</code></td><td> The preferred list item height.</td></tr> <tr><td><code>{@link #Theme_listPreferredItemHeightLarge com.example.layout22:listPreferredItemHeightLarge}</code></td><td> A larger, more robust list item height.</td></tr> <tr><td><code>{@link #Theme_listPreferredItemHeightSmall com.example.layout22:listPreferredItemHeightSmall}</code></td><td> A smaller, sleeker list item height.</td></tr> <tr><td><code>{@link #Theme_listPreferredItemPaddingLeft com.example.layout22:listPreferredItemPaddingLeft}</code></td><td> The preferred padding along the left edge of list items.</td></tr> <tr><td><code>{@link #Theme_listPreferredItemPaddingRight com.example.layout22:listPreferredItemPaddingRight}</code></td><td> The preferred padding along the right edge of list items.</td></tr> <tr><td><code>{@link #Theme_panelBackground com.example.layout22: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.layout22:panelMenuListTheme}</code></td><td> Default Panel Menu style.</td></tr> <tr><td><code>{@link #Theme_panelMenuListWidth com.example.layout22:panelMenuListWidth}</code></td><td> Default Panel Menu width.</td></tr> <tr><td><code>{@link #Theme_popupMenuStyle com.example.layout22:popupMenuStyle}</code></td><td> Default PopupMenu style.</td></tr> <tr><td><code>{@link #Theme_popupWindowStyle com.example.layout22:popupWindowStyle}</code></td><td> Default PopupWindow style.</td></tr> <tr><td><code>{@link #Theme_searchViewStyle com.example.layout22:searchViewStyle}</code></td><td> Style for the search query widget.</td></tr> <tr><td><code>{@link #Theme_selectableItemBackground com.example.layout22: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.layout22: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.layout22:spinnerDropDownItemStyle}</code></td><td> Default Spinner style.</td></tr> <tr><td><code>{@link #Theme_spinnerStyle com.example.layout22:spinnerStyle}</code></td><td> Default Spinner style.</td></tr> <tr><td><code>{@link #Theme_switchStyle com.example.layout22:switchStyle}</code></td><td> Default style for the Switch widget.</td></tr> <tr><td><code>{@link #Theme_textAppearanceLargePopupMenu com.example.layout22: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.layout22:textAppearanceListItem}</code></td><td> The preferred TextAppearance for the primary text of list items.</td></tr> <tr><td><code>{@link #Theme_textAppearanceListItemSmall com.example.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22:toolbarNavigationButtonStyle}</code></td><td> Default Toolar NavigationButtonStyle </td></tr> <tr><td><code>{@link #Theme_toolbarStyle com.example.layout22:toolbarStyle}</code></td><td> Default Toolbar style.</td></tr> <tr><td><code>{@link #Theme_windowActionBar com.example.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22:actionBarStyle */ public static final int Theme_actionBarStyle = 14; /** <p>This symbol is the offset where the {@link com.example.layout22.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.layout22: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.layout22:actionBarTabStyle */ public static final int Theme_actionBarTabStyle = 8; /** <p>This symbol is the offset where the {@link com.example.layout22.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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22:actionModeBackground */ public static final int Theme_actionModeBackground = 25; /** <p>This symbol is the offset where the {@link com.example.layout22.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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22:actionModeSplitBackground */ public static final int Theme_actionModeSplitBackground = 26; /** <p>This symbol is the offset where the {@link com.example.layout22.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.layout22: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.layout22:actionModeWebSearchDrawable */ public static final int Theme_actionModeWebSearchDrawable = 34; /** <p>This symbol is the offset where the {@link com.example.layout22.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.layout22:actionOverflowButtonStyle */ public static final int Theme_actionOverflowButtonStyle = 11; /** <p>This symbol is the offset where the {@link com.example.layout22.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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22:listChoiceBackgroundIndicator */ public static final int Theme_listChoiceBackgroundIndicator = 74; /** <p>This symbol is the offset where the {@link com.example.layout22.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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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_collapseContentDescription com.example.layout22:collapseContentDescription}</code></td><td> Text to set as the content description for the collapse button.</td></tr> <tr><td><code>{@link #Toolbar_collapseIcon com.example.layout22:collapseIcon}</code></td><td> Icon drawable to use for the collapse button.</td></tr> <tr><td><code>{@link #Toolbar_contentInsetEnd com.example.layout22:contentInsetEnd}</code></td><td> Minimum inset for content views within a bar.</td></tr> <tr><td><code>{@link #Toolbar_contentInsetLeft com.example.layout22:contentInsetLeft}</code></td><td> Minimum inset for content views within a bar.</td></tr> <tr><td><code>{@link #Toolbar_contentInsetRight com.example.layout22:contentInsetRight}</code></td><td> Minimum inset for content views within a bar.</td></tr> <tr><td><code>{@link #Toolbar_contentInsetStart com.example.layout22:contentInsetStart}</code></td><td> Minimum inset for content views within a bar.</td></tr> <tr><td><code>{@link #Toolbar_maxButtonHeight com.example.layout22:maxButtonHeight}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_navigationContentDescription com.example.layout22: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.layout22: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.layout22: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.layout22:subtitle}</code></td><td> Specifies subtitle text used for navigationMode="normal" </td></tr> <tr><td><code>{@link #Toolbar_subtitleTextAppearance com.example.layout22:subtitleTextAppearance}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_theme com.example.layout22:theme}</code></td><td> Specifies a theme override for a view.</td></tr> <tr><td><code>{@link #Toolbar_title com.example.layout22:title}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_titleMarginBottom com.example.layout22:titleMarginBottom}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_titleMarginEnd com.example.layout22:titleMarginEnd}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_titleMarginStart com.example.layout22:titleMarginStart}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_titleMarginTop com.example.layout22:titleMarginTop}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_titleMargins com.example.layout22:titleMargins}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_titleTextAppearance com.example.layout22:titleTextAppearance}</code></td><td></td></tr> </table> @see #Toolbar_android_gravity @see #Toolbar_android_minHeight @see #Toolbar_collapseContentDescription @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> @attr description Text to set as the content description for the collapse button. <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.layout22:collapseContentDescription */ public static final int Toolbar_collapseContentDescription = 19; /** <p> @attr description Icon drawable to use for the collapse 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.layout22:collapseIcon */ public static final int Toolbar_collapseIcon = 18; /** <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.layout22: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.layout22: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.layout22: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.layout22:contentInsetStart */ public static final int Toolbar_contentInsetStart = 4; /** <p>This symbol is the offset where the {@link com.example.layout22.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.layout22: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.layout22: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.layout22: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.layout22: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.layout22:subtitle */ public static final int Toolbar_subtitle = 3; /** <p>This symbol is the offset where the {@link com.example.layout22.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.layout22: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.layout22:theme */ public static final int Toolbar_theme = 17; /** <p>This symbol is the offset where the {@link com.example.layout22.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.layout22:title */ public static final int Toolbar_title = 2; /** <p>This symbol is the offset where the {@link com.example.layout22.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.layout22:titleMarginBottom */ public static final int Toolbar_titleMarginBottom = 15; /** <p>This symbol is the offset where the {@link com.example.layout22.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.layout22:titleMarginEnd */ public static final int Toolbar_titleMarginEnd = 13; /** <p>This symbol is the offset where the {@link com.example.layout22.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.layout22:titleMarginStart */ public static final int Toolbar_titleMarginStart = 12; /** <p>This symbol is the offset where the {@link com.example.layout22.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.layout22:titleMarginTop */ public static final int Toolbar_titleMarginTop = 14; /** <p>This symbol is the offset where the {@link com.example.layout22.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.layout22:titleMargins */ public static final int Toolbar_titleMargins = 11; /** <p>This symbol is the offset where the {@link com.example.layout22.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.layout22: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.layout22: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.layout22: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.layout22: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.layout22: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; }; }
eeef900d65bd6c5e4054f238e0093969ca860d2d
fa9f1eb3118058044334db966ed2076ad66d6e06
/src/main/java/ru/erik182/models/jaxb/PerfomanceSchemaType.java
392bc671278b41b0a28b45f9edc1e2d37017984a
[]
no_license
erik182182/SBP_load_testing_system
d05b9f63e34b0821e8135abb0c15ebbc1e5fd028
0cff7037a63709efd5486e6bd39c43757f07be49
refs/heads/master
2023-06-01T01:22:13.843594
2021-06-19T09:13:44
2021-06-19T09:13:44
378,360,436
0
0
null
null
null
null
UTF-8
Java
false
false
854
java
package ru.erik182.models.jaxb; import javax.xml.bind.annotation.XmlEnum; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for PerfomanceSchemaType. * * <p>The following schema fragment specifies the expected content contained within this class. * <p> * <pre> * &lt;simpleType name="PerfomanceSchemaType"> * &lt;restriction base="{urn:cbr-ru:ed:basetypes:v2.0}IdentifierTextCategory"> * &lt;enumeration value="AONS"/> * &lt;enumeration value="INDS"/> * &lt;/restriction> * &lt;/simpleType> * </pre> * */ @XmlType(name = "PerfomanceSchemaType", namespace = "urn:cbr-ru:ed:leaftypes:v2.0") @XmlEnum public enum PerfomanceSchemaType { AONS, INDS; public String value() { return name(); } public static PerfomanceSchemaType fromValue(String v) { return valueOf(v); } }
0197988fb55f7c456d0e4085aa38f87f32d9ea12
26aa1f3974e32aca1f96a6f7f5239fdf1ce954e2
/Toro_EhomeSchool/src/com/example/toro_ehomeschool/SuaicarActivity.java
4bf9db5c2d91beb1422d85748fcfa233c3b44c42
[]
no_license
zhoulonglong1986/myproject
04e97d10f0bfe5968e42e850181af6365563c546
116f9be4c99d7488c1194f4801106948c723968f
refs/heads/master
2020-08-31T09:46:45.878936
2019-10-31T02:10:01
2019-10-31T02:10:01
218,663,495
0
0
null
null
null
null
UTF-8
Java
false
false
40,793
java
package com.example.toro_ehomeschool; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.util.ArrayList; import java.util.Timer; import java.util.TimerTask; import java.util.HashMap; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import com.example.toro.bo.EhomeBo; import com.example.toro.doman.Member; import com.example.toro.doman.SchNotice; import com.example.toro.doman.Student; import com.example.toro.doman.SuaiCar; import com.example.toro.json.internal.util.AsyncImageLoader; import com.example.toro.json.internal.util.NetUtils; import com.example.toro.json.internal.util.AsyncImageLoader.Callback; import com.example.toro.response.SubmitCardataResponse; import com.example.toro.response.getStuInformationResponse; import com.example.toro.sample.Application; import com.example.toro.sample.CrashHandler; import com.example.toro.sample.Nfc; import com.example.toro.sample.SerialPortActivity; import com.example.toro.sample.db.DbHelper; import com.example.toroapi.AppConstants; import com.example.toroapi.AppUtils; import com.example.toroapi.HttpService; import com.example.toroapi.PreferencesService; import com.example.toroapi.SchThread; import com.iflytek.cloud.SpeechConstant; import com.iflytek.cloud.SpeechError; import com.iflytek.cloud.SpeechSynthesizer; import com.iflytek.cloud.SpeechUtility; import com.iflytek.cloud.SynthesizerListener; import com.linj.camera.view.CameraContainer; import com.linj.camera.view.CameraContainer.TakePictureListener; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Matrix; import android.graphics.BitmapFactory.Options; import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.Drawable; import android.media.ThumbnailUtils; import android.net.ConnectivityManager; import android.os.AsyncTask; import android.os.Build; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.annotation.SuppressLint; import android.annotation.TargetApi; import android.app.Activity; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.GridView; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView; import android.widget.Toast; @SuppressLint("NewApi") public class SuaicarActivity extends Activity implements View.OnClickListener, TakePictureListener { private ImageView iv_camera, iv_bg, iv_tanqin,iv_logo;// 相片 ,学生大图,天气 // ImageView private TextView tv_name, tv_ban, tv_week, tv_wendu;// 学生名字,班级,星期(天气),温度 // TextView private LinearLayout ll_wifi; private WatercAdapter qinsuAdapters; private DbHelper db;// 数据库操作对象 private HashMap<String, ArrayList<String>> map = new HashMap<String, ArrayList<String>>();// 用于模拟测试 private getStuInformationResponse stuInformationres = new getStuInformationResponse();// 请求学生数据 private String WCid;// 当前刷卡人的cid private CameraContainer mContainer;// 照相机 控件 private SubmitCardataResponse submitCardataResponse; // 提交刷卡数据 Response private String carnum = "";// 刷卡卡号 private Long sucartime = 0L; private SchView[] schViews = new SchView[5]; private int interval=0; private TextView tv_sch06_title,tv_sch06_body,tv_sch06_time;//公告小图文字 private ArrayList<Bitmap> bitmapList = new ArrayList<Bitmap>(); /** * 语音播报 */ private SpeechSynthesizer mTts;// 讯飞语音播报 接口 /** * 常量 */ public final static int MSG_SUKA = 0;// 刷卡 public final static int SCH_Time = 3;// 长时间没刷卡监听 public final static int GET_STU = 4;// 获取学生数据 public final static int GET_STU_OFFNET = 6;// 获取学生数据 断网状态 public final static int GET_STU_SQL = 5;// 获取学生数据 private SchThread suaicarThread = null;// 监听长时间没刷卡后跳回 公告页面 private int suaicarTime = 0;// 刷 卡间隔 单位秒 /** * 刷卡数据上传 线程池 */ private ExecutorService exe = Executors.newFixedThreadPool(5); /** * 网络监听广播 */ private BroadcastReceiver networkBroadcast = null; private IntentFilter filter = null; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); try { setContentView(R.layout.activity_suaicar); setupView();// 设置控件 init(); // 初始化 变量 } catch (Exception e) { // TODO: handle exception e.printStackTrace(); } } /** * 设置控件 */ private void setupView() { iv_logo=(ImageView)this.findViewById(R.id.iv_logo); iv_logo.setOnClickListener(this); iv_bg = (ImageView) findViewById(R.id.iv_bg); // 学生ImageView tv_name = (TextView) findViewById(R.id.tv_name); // 名字TextView tv_ban = (TextView) findViewById(R.id.tv_ban); // 班级 TextView tv_week = (TextView) findViewById(R.id.tv_week); // 星期 TextView tv_wendu = (TextView) findViewById(R.id.tv_wendu); // 温度 TextView iv_tanqin = (ImageView) findViewById(R.id.iv_tanqin); // 天气 TextView ll_wifi = (LinearLayout) findViewById(R.id.ll_wifi); // 照相机 控件 mContainer = (CameraContainer) findViewById(R.id.container); iv_camera=(ImageView)this.findViewById(R.id.iv_camera);//相片 ImageView /** * 文本公告 */ //文本公告TextView控件 tv_sch06_title=(TextView)this.findViewById(R.id.tv_sch06_title); tv_sch06_body=(TextView)this.findViewById(R.id.tv_sch06_body); tv_sch06_time=(TextView)this.findViewById(R.id.tv_sch06_time); if(Application.schTxtList.size()>0){ setTextSch(Application.schTxtList.get(0)); } } /** * 初始化 变量 */ private void init() { //setLogo(); // 获取传过来的 cid try { carnum = getIntent().getStringExtra("cid"); db = DbHelper.getInstance(this);// 初始化数据库对象 interval=Application.interval; } catch (Exception e) { // TODO: handle exception e.printStackTrace(); } /** * 设置温度和天气 */ tv_week.setText(AppUtils.StringData()); if (!"".equals(Application.wendu)) { tv_wendu.setVisibility(View.VISIBLE); tv_wendu.setText(Application.wendu); iv_tanqin.setVisibility(View.VISIBLE); iv_tanqin.setImageResource(Application.tanqin); } /** * 设置 讯飞语音 播放 */ SpeechUtility.createUtility(SuaicarActivity.this, "appid=56aad6cb"); mTts = SpeechSynthesizer.createSynthesizer(this, null); mTts.setParameter(SpeechConstant.VOICE_NAME, "xiaoyan"); mTts.setParameter(SpeechConstant.SPEED, "50"); mTts.setParameter(SpeechConstant.VOLUME, "80"); mTts.setParameter(SpeechConstant.ENGINE_TYPE, SpeechConstant.TYPE_CLOUD); if (AppConstants.isTest) { // textModel(); } /** * 获取公告数据,开始公告轮播 */ wifiConnect(true); /** * 注册网络监听广播 和刷卡广播 */ GridView lv_qinsus = (GridView) this.findViewById(R.id.lv_qinsus);// 流水 // gridViewy qinsuAdapters = new WatercAdapter(this, bitmapList, lv_qinsus); lv_qinsus.setAdapter(qinsuAdapters); /** * 注册网络监听广播 和刷卡广播 */ regNetReceiver(); } private void setLogo(){ AsyncImageLoader asyncImageLoader=asyncImageLoader=new AsyncImageLoader(SuaicarActivity.this, new Callback() { @Override public void imageLoaded(String path, Bitmap bitmap) { // 根据路径为tag 查找imageView Drawable drawable =new BitmapDrawable(bitmap); iv_logo.setBackground(drawable); } }); Bitmap bitmap=asyncImageLoader.loadBitmap("logo.png",1); if(null==bitmap){ //schview.getIv().setBackground(null); }else{ Drawable drawable =new BitmapDrawable(bitmap); iv_logo.setBackground(drawable); }; } /** * 注册网络监听广播 和刷卡广播 */ private void regNetReceiver() { AppConstants.netConnect = NetUtils.isNetworkConnected(SuaicarActivity.this); filter = new IntentFilter(); filter.addAction(ConnectivityManager.CONNECTIVITY_ACTION); filter.addAction(Application.SERIAL_PORT); networkBroadcast = new BroadcastReceiver() { public void onReceive(Context context, Intent intent) { String action = intent.getAction(); if (Application.SERIAL_PORT.equals(action)) { String cid = intent.getStringExtra("cid"); carnum = cid; readyCamera(cid); // 拍照 } else if (ConnectivityManager.CONNECTIVITY_ACTION.equals(action)) { boolean isConnected = NetUtils.isNetworkConnected(context); if (isConnected) { wifiConnect(false); AppConstants.netConnect = true; // 有网络后,自动上传没有传完的数据。 // queryScdata(); } else { wifiConnect(true);// 没网络显示 网络断开连接图标 AppConstants.netConnect = false; } } } }; registerReceiver(networkBroadcast, filter); } @Override protected void onResume() { // TODO Auto-generated method stub super.onResume(); if (AppConstants.isbDebug) { System.out.println("====================SuaicarActivity onResume()"); } // 如果 是由公告页面进入刷卡界面( 延时2秒 拍照) new Thread() { public void run() { try { Thread.sleep(2000);// 延时2秒 拍照 } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } readyCamera(carnum); }; }.start(); registerReceiver(networkBroadcast, filter); } @Override protected void onPause() { // TODO Auto-generated method stub super.onPause(); try { unregisterReceiver(networkBroadcast); if (null != bitmapList) { for (Bitmap map : bitmapList) { if (!map.isRecycled()) { map.isRecycled(); } } } bitmapList = null; } catch (Exception e) { // TODO: handle exception e.printStackTrace(); } } /** * 设置纯文字公告 */ private void setTextSch(SchNotice txtSch){ if(null!=txtSch){ tv_sch06_title.setText(txtSch.getTitle()); tv_sch06_body.setText("  "+txtSch.getTxt()); tv_sch06_time.setText(AppUtils.getYearMonthDayHourMinuteSecond(txtSch.getTime(),1)+"");//要转换成时间 } } /** * 获取视频的缩略图 * */ @TargetApi(Build.VERSION_CODES.JELLY_BEAN) @SuppressLint("NewApi") private Bitmap getVideoThumbnail(String videoPath, int width, int height, int kind) { Bitmap bitmap = ThumbnailUtils.createVideoThumbnail(videoPath, kind); // 获取视频的缩略图 System.out.println("w" + bitmap.getWidth()); System.out.println("h" + bitmap.getHeight()); bitmap = ThumbnailUtils.extractThumbnail(bitmap, width, height, ThumbnailUtils.OPTIONS_RECYCLE_INPUT); return bitmap; } /** * 根据指定的图像路径和大小来获取缩略图 此方法有两点好处: 1. * 使用较小的内存空间,第一次获取的bitmap实际上为null,只是为了读取宽度和高度, * 第二次读取的bitmap是根据比例压缩过的图像,第三次读取的bitmap是所要的缩略图。 2. * 缩略图对于原图像来讲没有拉伸,这里使用了2.2版本的新工具ThumbnailUtils,使 用这个工具生成的图像不会被拉伸。 * * @param imagePath * 图像的路径 * @param width * 指定输出图像的宽度 * @param height * 指定输出图像的高度 * @return 生成的缩略图 */ private Bitmap getImageThumbnail(String imagePath, int width, int height) { Bitmap bitmap = null; BitmapFactory.Options options = new BitmapFactory.Options(); options.inJustDecodeBounds = true; // 获取这个图片的宽和高,注意此处的bitmap为null bitmap = BitmapFactory.decodeFile(imagePath, options); options.inJustDecodeBounds = false; // 设为 false // 计算缩放比 int h = options.outHeight; int w = options.outWidth; int beWidth = w / width; int beHeight = h / height; int be = 1; if (beWidth < beHeight) { be = beWidth; } else { be = beHeight; } if (be <= 0) { be = 1; } options.inSampleSize = be; // 重新读入图片,读取缩放后的bitmap,注意这次要把options.inJustDecodeBounds 设为 false bitmap = BitmapFactory.decodeFile(imagePath, options); // 利用ThumbnailUtils来创建缩略图,这里要指定要缩放哪个Bitmap对象 bitmap = ThumbnailUtils.extractThumbnail(bitmap, width, height, ThumbnailUtils.OPTIONS_RECYCLE_INPUT); return bitmap; } /** * 测试模式数据 */ private void textModel() { ArrayList<String> list = new ArrayList<String>(); list.add("http://e5ex.com/man02.jpg"); list.add("http://e5ex.com/man03.jpg"); list.add("http://e5ex.com/man04.jpg"); list.add("http://e5ex.com/man05.jpg"); map.put("0000005618b4171d", list); ArrayList<String> ists = new ArrayList<String>(); ists.add("http://e5ex.com/man11.jpg"); ists.add("http://e5ex.com/man12.jpg"); ists.add("http://e5ex.com/man13.jpg"); ists.add("http://e5ex.com/man14.jpg"); map.put("00000000fd3e9dc1", ists); } /** * 设置语音播放监听接口 */ private SynthesizerListener mSynListener = new SynthesizerListener() { @Override public void onBufferProgress(int arg0, int arg1, int arg2, String arg3) { // TODO Auto-generated method stub } @Override public void onCompleted(SpeechError arg0) { // TODO Auto-generated method stub } @Override public void onEvent(int arg0, int arg1, int arg2, Bundle arg3) { // TODO Auto-generated method stub } @Override public void onSpeakBegin() { // TODO Auto-generated method stub } @Override public void onSpeakPaused() { // TODO Auto-generated method stub } @Override public void onSpeakProgress(int arg0, int arg1, int arg2) { // TODO Auto-generated method stub } @Override public void onSpeakResumed() { // TODO Auto-generated method stub } }; private Bitmap showImage(String path) { Bitmap bm = null; try { String fileName = path.substring(path.lastIndexOf("/") + 1); String filepath = Application.stuPath + fileName; BitmapFactory.Options bfOptions = new BitmapFactory.Options(); bfOptions.inDither = false; // Disable Dithering mode bfOptions.inPurgeable = true; // Tell to gc that whether it needs // free memory, the Bitmap can be // cleared bfOptions.inInputShareable = true; // Which kind of reference will // be used to recover the Bitmap // data after being clear, when // it will be used in the future bfOptions.inTempStorage = new byte[32 * 1024]; File file = new File(filepath); FileInputStream fs = null; try { fs = new FileInputStream(file); } catch (FileNotFoundException e) { // TODO do something intelligent e.printStackTrace(); } try { if (fs != null) bm = BitmapFactory.decodeFileDescriptor(fs.getFD(), null, bfOptions); } catch (IOException e) { // TODO do something intelligent e.printStackTrace(); } finally { if (fs != null) { try { fs.close(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } // bm=BitmapFactory.decodeFile(path, bfOptions); This one causes // error: java.lang.OutOfMemoryError: bitmap size exceeds VM budget // im.setImageBitmap(bm); // bm.recycle(); // bm=null; } catch (Exception e) { // TODO: handle exception e.printStackTrace(); } return bm; } /** * grivView 适配器 * */ class QinsuAdapter extends BaseAdapter { LayoutInflater inflater; ArrayList<String> qinsuList; AsyncImageLoader loader; Context contexts; GridView gridView; public QinsuAdapter(Context context, ArrayList<String> list, GridView gridview) { if (null != list) { qinsuList = list; } else { qinsuList = new ArrayList<String>(); } this.contexts = context; this.gridView = gridview; this.inflater = LayoutInflater.from(context); this.loader = new AsyncImageLoader(context, new Callback() { @Override public void imageLoaded(String path, Bitmap bitmap) { // 根据路径为tag 查找imageView ImageView iv = (ImageView) gridView.findViewWithTag(path); // 显示图片 if (iv != null) { if (bitmap != null) { Drawable drawable = new BitmapDrawable(bitmap); iv.setBackground(drawable); } else { // iv.setBackground(null); } } } }); } @Override public int getCount() { return qinsuList.size(); } @Override public Object getItem(int position) { return qinsuList.get(position); } @Override public long getItemId(int position) { return position; } /** * 更新listview中显示的数据集 * * @param musics */ public void changeData(ArrayList<String> list) { this.setQinsuList(list);// 变更数据集 this.notifyDataSetChanged();// 刷新listview // Log.i("info", "Updatemenu.count=" + Updatemenu.size()); } public void setQinsuList(ArrayList<String> qinsuList) { if (null != qinsuList) { this.qinsuList = qinsuList; } else { this.qinsuList = new ArrayList<String>(); } } @Override public View getView(int position, View convertView, ViewGroup parent) { ViewHolder viewHolder; try { if (convertView == null) { convertView = inflater.inflate(R.layout.relatives_item, null); viewHolder = new ViewHolder(); viewHolder.iv_item = (ImageView) convertView .findViewById(R.id.iv_item); convertView.setTag(viewHolder); } else { viewHolder = (ViewHolder) convertView.getTag(); } String PhotoUrl = qinsuList.get(position); if ("1".equals(PhotoUrl)) { } else if (!"".equals(PhotoUrl)) { viewHolder.iv_item.setTag(PhotoUrl); Bitmap bm = showImage(PhotoUrl); if (null != bm) { Drawable drawable = new BitmapDrawable(bm); viewHolder.iv_item.setBackground(drawable); } else { bm = loader.loadBitmap(PhotoUrl, 2); if (bm != null) { Drawable drawable = new BitmapDrawable(bm); viewHolder.iv_item.setBackground(drawable); } else { // viewHolder.iv_item.setBackground(null); } } } } catch (Exception e) { // TODO: handle exception e.printStackTrace(); } return convertView; } class ViewHolder { ImageView iv_item; } } /** * grivView 适配器 * */ class WatercAdapter extends BaseAdapter { LayoutInflater inflater; ArrayList<Bitmap> qinsuList; AsyncImageLoader loader; Context contexts; GridView gridView; public WatercAdapter(Context context, ArrayList<Bitmap> list, GridView gridview) { try { if (null != list) { qinsuList = list; } else { qinsuList = new ArrayList<Bitmap>(); } this.contexts = context; this.gridView = gridview; this.inflater = LayoutInflater.from(context); this.loader = new AsyncImageLoader(context, new Callback() { @Override public void imageLoaded(String path, Bitmap bitmap) { // 根据路径为tag 查找imageView ImageView iv = (ImageView) gridView .findViewWithTag(path); // 显示图片 if (iv != null) { if (bitmap != null) { Drawable drawable = new BitmapDrawable(bitmap); iv.setBackground(drawable); } else { // iv.setBackground(null); } } } }); } catch (Exception e) { // TODO: handle exception e.printStackTrace(); } } @Override public int getCount() { return qinsuList.size(); } @Override public Object getItem(int position) { return qinsuList.get(position); } @Override public long getItemId(int position) { return position; } /** * 更新listview中显示的数据集 * * @param musics */ public void changeData(ArrayList<Bitmap> list) { this.setQinsuList(list);// 变更数据集 this.notifyDataSetChanged();// 刷新listview // Log.i("info", "Updatemenu.count=" + Updatemenu.size()); } public void setQinsuList(ArrayList<Bitmap> qinsuList) { if (null != qinsuList) { this.qinsuList = qinsuList; } else { this.qinsuList = new ArrayList<Bitmap>(); } } @Override public View getView(int position, View convertView, ViewGroup parent) { try { if (AppConstants.isbDebug) { System.out .println("==============================getView()"); } ViewHolder viewHolder; if (convertView == null) { convertView = inflater.inflate(R.layout.watercourse_item, null); viewHolder = new ViewHolder(); viewHolder.iv_item = (ImageView) convertView .findViewById(R.id.iv_item); convertView.setTag(viewHolder); } else { viewHolder = (ViewHolder) convertView.getTag(); } Bitmap bm = qinsuList.get(qinsuList.size() - (position + 1)); Drawable drawable = new BitmapDrawable(bm); viewHolder.iv_item.setBackground(drawable); /* * if(!"".equals(PhotoUrl)){ * viewHolder.iv_item.setTag(PhotoUrl); * * // 加载图片 Bitmap bm = loader.loadBitmap(PhotoUrl,0); * * if (bm != null) { Drawable drawable =new BitmapDrawable(bm); * viewHolder.iv_item.setBackground(drawable); } else { // * viewHolder.iv_item.setBackground(null); } } */ } catch (Exception e) { // TODO: handle exception e.printStackTrace(); } return convertView; } class ViewHolder { ImageView iv_item; } } /** * 刷 卡监听 */ /** * 全局 Handler 处理 */ private Handler handler = new Handler() { public void handleMessage(android.os.Message msg) { try { switch (msg.what) { case MSG_SUKA: String carnum = msg.obj.toString(); if (null != carnum && !"".equals(carnum)) { readyCamera(carnum); // 拍照 // requestStu(carnum);//请求学生数据 } break; case GET_STU: String cid = msg.obj.toString(); if (WCid.equals(cid) && null != stuInformationres && stuInformationres.isSuccess()) { if (null != stuInformationres.getRid()&& !"".equals(stuInformationres.getRid())) { Student stu = new Student(); stu.setId(stuInformationres.getRid()); stu.setCids(stuInformationres.getCids()); stu.setMembers(stuInformationres.getMembers()); ArrayList<Member> memebers = stu.getMembers(); Member me = new Member(); ArrayList<String> list = new ArrayList<String>() {}; for (Member member : memebers) { if ("".equals(member.getRelatship())||"0".equals(member.getRelatship())) { me = member; refreshView(member); } else { if (!"".equals(member.getPhoto())) { list.add(member.getPhoto()); } } } //refreshView(me); db.insertOrStu(stu.getId(), stu);// 将获取的学生数据 再插入数据库 } else { Member me = new Member(); me.setPhoto("1"); refreshView(me); ArrayList<String> list = new ArrayList<String>() { }; list.add("1"); list.add("1"); list.add("1"); list.add("1"); mTts.startSpeaking("无效卡", mSynListener);// 语音播报 } }else{ Member me = new Member(); me.setPhoto("1"); refreshView(me); ArrayList<String> list = new ArrayList<String>() { }; list.add("1"); list.add("1"); list.add("1"); list.add("1"); mTts.startSpeaking("无效卡", mSynListener);// 语音播报 } break; case GET_STU_SQL: String cids = msg.obj.toString(); if (WCid.equals(cids)) { if (AppConstants.isbDebug) { System.out.println("==================GET_STU_SQL更新学生数据时间"+ System.currentTimeMillis()); } refreshView(mes); if (AppConstants.isbDebug) { System.out.println("==================GET_STU_SQL更新view时间"+ System.currentTimeMillis()); } } break; case SCH_Time: // suaicarThread.play=false; Intent intent = new Intent(SuaicarActivity.this, MainActivity.class); startActivity(intent); SuaicarActivity.this.finish(); break; default: break; } } catch (Exception e) { // TODO: handle exception e.printStackTrace(); } }; }; /** * 拍照 */ private void readyCamera(final String cid) { try { suaicarTime = 0; if (null == suaicarThread) { suaicarThread = new SchThread() { // 逻辑代码体 @Override protected void runPersonelLogic() { try { if (suaicarTime > interval) { this.play = false; Message msg = new Message(); msg.what = SCH_Time; handler.sendMessage(msg); return; } else { Thread.sleep(2000); suaicarTime++; } } catch (InterruptedException e) { e.printStackTrace(); } } }; suaicarThread.setUncaughtExceptionHandler(CrashHandler .getInstance()); suaicarThread.start(); } sucartime = System.currentTimeMillis(); mContainer.takePicture(SuaicarActivity.this, cid, sucartime); } catch (Exception e) { // TODO: handle exception e.printStackTrace(); } } private Member mes = new Member(); private ArrayList<String> listsss = new ArrayList<String>(); /** * 请求学生数据 线程 * * @param cid */ private void queryStu(final String cid) { new Thread() { @Override public void run() { super.run(); try { WCid = cid; // 是否是模拟测试 if (AppConstants.isTest) { Message msg = new Message(); msg.obj = cid; msg.what = GET_STU_SQL; if (AppConstants.isbDebug) { System.out.println("==================GET_STU_SQL获取学生数据时间"+ System.currentTimeMillis()); } if (cid.equals("00803c167265f704")) { listsss = map.get("00000000fd3e9dc1"); mes.setPhoto("http://e5ex.com/left01.jpg"); mes.setName("刘小宝"); mes.setRelatship("幼儿大一班"); } else { listsss = map.get("0000005618b4171d"); mes.setPhoto("http://e5ex.com/left02.jpg"); mes.setName("周小宝"); mes.setRelatship("幼儿大二班"); } if (AppConstants.isbDebug) { System.out .println("==================GET_STU_SQL获取到学生数据时间" + System.currentTimeMillis()); } handler.sendMessage(msg); } else { // 根据刷卡的卡号从 存储中 提取数据 然后刷新界面 Message msgss = new Message(); msgss.obj = cid; msgss.what = GET_STU_SQL; Student stu = db.queryStus(cid); listsss = new ArrayList<String>(); if (!"".equals(stu.getId())) { ArrayList<Member> memebers = stu.getMembers(); for (Member member : memebers) { if ("0".equals(member.getRelatship()) || "".equals(member.getRelatship())) { mes = member; } else { if (!"".equals(member.getPhoto())) { listsss.add(member.getPhoto()); } } } handler.sendMessage(msgss); } else {// 如果 数据库中没有,则请求网络 // 如果 有网络则请求学生数据//没网络不处理 Message msgs = new Message(); msgs.obj = cid; msgs.what = GET_STU; if (AppConstants.netConnect) { // 向服务器请求学生列表 stuInformationres = EhomeBo.getStuInformation(AppConstants.Mid, cid, 0 + ""); handler.sendMessage(msgs); }else{ stuInformationres =null; handler.sendMessage(msgs); } } } } catch (Exception e) { e.printStackTrace(); } } }.start(); } /** * 刷新学生个人信息 */ private void refreshView(Member member) { try { if (null != member) { if ("1".equals(member.getPhoto())) { Drawable drawable = getResources().getDrawable( R.drawable.no); iv_bg.setBackground(drawable); } else if (!"".equals(member.getPhoto())) { iv_bg.setTag(member.getPhoto()); Bitmap bitmap = showImage(member.getPhoto()); if (null != bitmap) { Drawable drawable = new BitmapDrawable(bitmap); iv_bg.setBackground(drawable); } else { AsyncImageLoader asyncImageLoade = new AsyncImageLoader( this, new Callback() { @Override public void imageLoaded(String path, Bitmap bitmap) { // TODO Auto-generated method stub if (null != bitmap && iv_bg.getTag().toString() .equals(path)) { Drawable drawable = new BitmapDrawable( bitmap); iv_bg.setBackground(drawable); } else { // iv_bg.setBackground(null); } } }); bitmap = asyncImageLoade.loadBitmap(member.getPhoto(), 0); if (null != bitmap) { Drawable drawable = new BitmapDrawable(bitmap); iv_bg.setBackground(drawable); } else { // iv_bg.setBackground(null); } } } } else { member = new Member(); // iv_bg.setBackground(null); } tv_name.setText(member.getName());// 名字 tv_ban.setText(member.getClazz());// 班级 mTts.startSpeaking("欢迎" + member.getName() + "同学", mSynListener);// 语音播报 } catch (Exception e) { // TODO: handle exception e.printStackTrace(); } } /** * * 解析天气 */ private void todayParse(String weather) { try { String temp = weather.replace("'", ""); String[] tempArr = temp.split(","); String wd = ""; String tq = ""; String fx = ""; if (tempArr.length > 0) { for (int i = 0; i < tempArr.length; i++) { if (tempArr[i].indexOf("t1:") != -1) { wd = tempArr[i].substring(3, tempArr[i].length()) + "℃"; } else if (tempArr[i].indexOf("t2:") != -1) { wd = wd + "~" + tempArr[i].substring(3, tempArr[i].length()) + "℃"; } } tv_wendu.setVisibility(View.VISIBLE); tv_wendu.setText(wd); iv_tanqin.setVisibility(View.VISIBLE); iv_tanqin.setImageResource(imageResoId(tq)); } } catch (Exception e) { // TODO: handle exception e.printStackTrace(); } } /** * 是否有网络 f:true =有网络 false 无网络 */ private void wifiConnect(boolean f) { if (f) { ll_wifi.setVisibility(View.VISIBLE); } else { ll_wifi.setVisibility(View.GONE); } } /** * 天气图片设置 */ private int imageResoId(String weather) { int resoid = R.drawable.s_2; try { if (weather.indexOf("多云") != -1 || weather.indexOf("晴") != -1) {// 多云转晴,以下类同 // indexOf:包含字串 resoid = R.drawable.s_1; } else if (weather.indexOf("多云") != -1 && weather.indexOf("阴") != -1) { resoid = R.drawable.s_2; } else if (weather.indexOf("阴") != -1 && weather.indexOf("雨") != -1) { resoid = R.drawable.s_3; } else if (weather.indexOf("晴") != -1 && weather.indexOf("雨") != -1) { resoid = R.drawable.s_12; } else if (weather.indexOf("晴") != -1 && weather.indexOf("雾") != -1) { resoid = R.drawable.s_12; } else if (weather.indexOf("晴") != -1) { resoid = R.drawable.s_13; } else if (weather.indexOf("多云") != -1) { resoid = R.drawable.s_2; } else if (weather.indexOf("阵雨") != -1) { resoid = R.drawable.s_3; } else if (weather.indexOf("小雨") != -1) { resoid = R.drawable.s_3; } else if (weather.indexOf("中雨") != -1) { resoid = R.drawable.s_4; } else if (weather.indexOf("大雨") != -1) { resoid = R.drawable.s_5; } else if (weather.indexOf("暴雨") != -1) { resoid = R.drawable.s_5; } else if (weather.indexOf("冰雹") != -1) { resoid = R.drawable.s_6; } else if (weather.indexOf("雷阵雨") != -1) { resoid = R.drawable.s_7; } else if (weather.indexOf("小雪") != -1) { resoid = R.drawable.s_8; } else if (weather.indexOf("中雪") != -1) { resoid = R.drawable.s_9; } else if (weather.indexOf("大雪") != -1) { resoid = R.drawable.s_10; } else if (weather.indexOf("暴雪") != -1) { resoid = R.drawable.s_10; } else if (weather.indexOf("扬沙") != -1) { resoid = R.drawable.s_11; } else if (weather.indexOf("沙尘") != -1) { resoid = R.drawable.s_11; } else if (weather.indexOf("雾") != -1) { resoid = R.drawable.s_12; } } catch (Exception e) { // TODO: handle exception e.printStackTrace(); } return resoid; } /** * * @param cardType * 刷卡 校验(校验 异或 运算) */ public boolean xor(int cardType, int[] cardNumber, int check) { for (int i = 0; i < cardNumber.length; i++) { cardType = cardType ^ cardNumber[i]; } if (check == cardType) { return true; } return false; } public int[] bytetoInteger(byte[] src) { int[] ints = new int[src.length]; if (src == null || src.length <= 0) { return null; } for (int i = 0; i < src.length; i++) { int v = src[i] & 0xFF; ints[i] = v; } return ints; } /** * 刷卡数据解析 * * @param src * @return */ public String bytesToHexString(byte[] src) { StringBuilder stringBuilder = new StringBuilder(); if (src == null || src.length <= 0) { return null; } for (int i = 0; i < src.length; i++) { int v = src[i] & 0xFF; String hv = Integer.toHexString(v); if (hv.length() < 2) { stringBuilder.append(0); } stringBuilder.append(hv); } return stringBuilder.toString(); } /** * 有网的时候 将刷卡 本地数据 传到网络上 */ private void queryScdata() { try { ArrayList<SuaiCar> suaicarList = db.querySuaiCar(); for (SuaiCar cuaicar : suaicarList) { // 如果没有传过就传 if (cuaicar.getState() == 0) { exe.execute(new CuaiCarThread(cuaicar.getCid(), cuaicar .getTime()));// 用线程池 队列提交刷卡数据 } } } catch (Exception e) { // TODO: handle exception e.printStackTrace(); } } /** * 将刷卡数据保存在本地 */ private void saveScdata(String cid, String time) { try { db.insertOrSuaiCar(new SuaiCar(cid, cid, time, 0)); } catch (Exception e) { // TODO: handle exception e.printStackTrace(); } } /** * 提交 刷卡数据线程 */ class CuaiCarThread extends Thread { String cid; String time; public CuaiCarThread(String cids, String times) { this.cid = cids; this.time = times; } @Override public void run() { // TODO Auto-generated method stub super.run(); try { File file = getStuImage(cid); // 向服务器请求学生列表 submitCardataResponse = EhomeBo.submitgCard(cid, file, time); if (submitCardataResponse == null) { if (AppConstants.isbDebug) { System.out .println("===================submitCardataRespons===null"); } } else if (!submitCardataResponse.isSuccess()) { if (AppConstants.isbDebug) { System.out .println("===================submitCardataRespons===false"); } } else { if (AppConstants.isbDebug) { // 提交刷卡数据成功 System.out .println("===================submitCardataRespons===true"); } } } catch (Exception e) { e.printStackTrace(); if (AppConstants.isbDebug) { System.out .println("===================submitCardataRespons===error"); } } } } /** * 根据 卡 ID 去 存储中 找图片 * * @param cid * @return */ private File getStuImage(String cid) { String path = Application.suaicar + cid + ".jpg"; File file = new File(path); if (!file.exists()) { return null; } return file; } @Override public void onClick(View arg0) { // TODO Auto-generated method stub switch (arg0.getId()) { case R.id.iv_logo: Intent intent=new Intent(SuaicarActivity.this,SettingActivity.class); startActivity(intent); this.finish(); break; default: break; } } @Override protected void onDestroy() { try { // TODO Auto-generated method stu if (AppConstants.isbDebug) { System.out .println("====================SuaicarActivity onDestroy()"); } super.onDestroy(); // Activity销毁时停止播放,释放资源。不做这个操作,即使退出还是能听到视频播放的声音 if (null != mTts) { mTts.stopSpeaking(); // 退出时释放连接 mTts.destroy(); } /** * 当主界面停止时 发广播重启 */ /** * Intent intent = new Intent("android.intent.action.RSTART"); * sendBroadcast(intent); */ } catch (Exception e) { // TODO: handle exception e.printStackTrace(); } } /** * 异步请求天气预报 * * @author Administrator * */ private class QueryAsyncTask extends AsyncTask { @Override protected void onPostExecute(Object result) { try { // progressDialog.dismiss(); if (result != null) { String weatherResult = (String) result; if (weatherResult.split(";").length > 1) { String a = weatherResult.split(";")[1]; if (a.split("=").length > 1) { String b = a.split("=")[1]; String c = b.substring(1, b.length() - 1); String[] resultArr = c.split("\\}"); if (resultArr.length > 0) { todayParse(resultArr[0]);// 解析当天天气 } } else { if (AppConstants.isbDebug) { System.out.println("查无天气信息"); } } } else { if (AppConstants.isbDebug) { System.out.println("查无天气信息"); } } } else { if (AppConstants.isbDebug) { System.out.println("查无天气信息"); } } /** * 设置日期(星期几) */ tv_week.setText(AppUtils.StringData()); super.onPostExecute(result); } catch (Exception e) { // TODO: handle exception e.printStackTrace(); } } @Override protected Object doInBackground(Object... params) { return HttpService.getWeather((String) params[0]); } } /** * 图片水平翻转 * * @param bmp * @return */ public Bitmap convertBmp(Bitmap bmp) { int w = bmp.getWidth(); int h = bmp.getHeight(); Matrix matrix = new Matrix(); matrix.postScale(-1, 1); // 镜像水平翻转 Bitmap convertBmp = Bitmap.createBitmap(bmp, 0, 0, w, h, matrix, true); return convertBmp; } @Override public void onTakePictureEnd(Bitmap bm) { // TODO Auto-generated method stub } /** * 照相返回监听 */ @Override public void onAnimtionEnd(Bitmap bm, boolean isVideo) { try { // TODO Auto-generated method stub if (bm != null) { // 生成缩略图 if(iv_camera.getTag()!=null&&iv_camera.getTag().equals("true")){ bitmapList.add(bm); if (bitmapList.size() > 8) { bitmapList.remove(0); } qinsuAdapters.changeData(bitmapList); } if (AppConstants.isbDebug) { System.out.println("========================生成图片时间" + System.currentTimeMillis()); } Drawable drawable = new BitmapDrawable(bm); iv_camera.setBackground(drawable); iv_camera.setTag("true"); if (AppConstants.isbDebug) { System.out.println("==================设置图片时间" + System.currentTimeMillis()); } System.out.println("===============carnum=" + carnum); queryStu(carnum); /** * 发送刷卡数据处理广播 */ Intent intent = new Intent(); intent.setAction(Application.SUACARS); intent.putExtra("cid", carnum); intent.putExtra("time", sucartime + ""); SuaicarActivity.this.sendBroadcast(intent); } } catch (Exception e) { // TODO: handle exception e.printStackTrace(); } } /** * 公告View * * @author Administrator * */ class SchView { TextView tv_body; TextView tv_time; public SchView(TextView tv_bodys, TextView tv_times) { this.tv_body = tv_bodys; this.tv_time = tv_times; } public TextView getTv_body() { return tv_body; } public void setTv_body(TextView tv_body) { this.tv_body = tv_body; } public TextView getTv_time() { return tv_time; } public void setTv_time(TextView tv_time) { this.tv_time = tv_time; } } }
baaf74b80638e97e59d023b587101c7e5ae08b99
e3bf460e53d65d4c15b4ebf408493dbb7202c434
/json-ld/src/main/java/io/apptik/json/jsonld/ontology/Foaf.java
08f5763f450038fdf23d0fd4c16d76adbae0b673
[ "Apache-2.0" ]
permissive
Leo11221/JustJson
e419a95eaa04c4cb715b2544ae70812b6703b26e
cd1a8453682ad08f0ca60c4bd3ff15641355d87c
refs/heads/master
2020-04-22T22:26:50.285757
2019-02-19T15:50:25
2019-02-27T13:52:28
170,708,381
0
0
null
2019-02-14T14:56:04
2019-02-14T14:56:03
null
UTF-8
Java
false
false
125
java
package io.apptik.json.jsonld.ontology; import io.apptik.json.jsonld.OntContext; public class Foaf extends OntContext { }
9ca19b154d015a022c463ff4b6993d95bde8c624
5b9a0b86d23efeb1e48840ba9257a78eb73bac42
/src/com/coolchoice/monumentphoto/dbmigration/DBMigration8.java
55a212f45efb10fe441699103fe0c66a6c192949
[]
no_license
sashasolig/pd_mobile
367321176ecfa1c6344d284cc2016c1aab59aa46
70fcb042fbc1c8cabf0e45b0c2da954446bef11a
refs/heads/master
2021-01-10T21:50:25.101769
2015-06-01T20:34:42
2015-06-01T20:34:42
36,683,591
0
0
null
null
null
null
UTF-8
Java
false
false
1,791
java
package com.coolchoice.monumentphoto.dbmigration; import java.io.File; import android.database.sqlite.SQLiteDatabase; import android.os.Environment; import android.util.Log; import com.coolchoice.monumentphoto.ConfigureLog4J; import com.coolchoice.monumentphoto.Settings; import com.j256.ormlite.support.ConnectionSource; public class DBMigration8 implements IDBMigrate { @Override public void migrate(SQLiteDatabase db, ConnectionSource connectionSource) { File file = new File(Environment.getExternalStorageDirectory() + File.separator + "MonumentPhoto" + File.separator); File newFile = new File(Environment.getExternalStorageDirectory() + File.separator + Settings.getStorageDirPhoto() + File.separator); if(file.exists()){ if(newFile.exists()){ deleteFolder(newFile); } boolean success = file.renameTo(newFile); try{ ConfigureLog4J.configure(); }catch(Exception exc){ Log.e("ConfigureLog4J", "ConfigureLog4J", exc); } if(success){ db.beginTransaction(); try { db.execSQL("update placephoto set UriString = replace(UriString , '/MonumentPhoto/','/MobileKeeper/');"); db.setTransactionSuccessful(); } finally { db.endTransaction(); } } } } private void deleteFolder(File fileOrDirectory) { if (fileOrDirectory.isDirectory()){ for (File child : fileOrDirectory.listFiles()){ deleteFolder(child); } } fileOrDirectory.delete(); } }
b7161d041226755f4b7434075466f0484237f865
45553d3d8d2ebf713f5d0aa361d39ece12394495
/src/main/java/com/feed_the_beast/ftbu/gui/GuiViewCrash.java
276c577c8458b78ac4ad1b499bdeb50a9f1b5952
[]
no_license
Cricketville/FTBUtilities
4967c3e46a19fb80076d6f535287e757e2a94375
05996657a3ad57e596ca0c3953847fc7a83f2443
refs/heads/master
2021-05-06T03:36:05.504139
2017-12-12T10:16:45
2017-12-12T10:16:45
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,779
java
package com.feed_the_beast.ftbu.gui; import com.feed_the_beast.ftbl.lib.client.ClientUtils; import com.feed_the_beast.ftbl.lib.gui.Button; import com.feed_the_beast.ftbl.lib.gui.GuiBase; import com.feed_the_beast.ftbl.lib.gui.GuiIcons; import com.feed_the_beast.ftbl.lib.gui.GuiLang; import com.feed_the_beast.ftbl.lib.gui.Panel; import com.feed_the_beast.ftbl.lib.gui.PanelScrollBar; import com.feed_the_beast.ftbl.lib.gui.SimpleButton; import com.feed_the_beast.ftbl.lib.gui.TextField; import com.feed_the_beast.ftbl.lib.gui.Widget; import com.feed_the_beast.ftbl.lib.gui.WidgetLayout; import com.feed_the_beast.ftbl.lib.icon.Icon; import com.feed_the_beast.ftbl.lib.util.StringUtils; import com.feed_the_beast.ftbu.api.FTBULang; import java.util.ArrayList; import java.util.Collection; import java.util.List; /** * @author LatvianModder */ public class GuiViewCrash extends GuiBase { private final List<String> text; private final TextField name; private final Panel textPanel; private final PanelScrollBar scrollH, scrollV; private final Button close, upload, reset; public GuiViewCrash(String n, Collection<String> l) { super(0, 0); name = new TextField(this, 8, 12, 0, 20, n); text = new ArrayList<>(l); textPanel = new Panel(this, 9, 33, 0, 0) { @Override public void addWidgets() { for (String s : text) { add(new TextField(gui, 2, 0, 0, 0, StringUtils.fixTabs(s, 2), Widget.UNICODE)); } updateWidgetPositions(); } @Override public void updateWidgetPositions() { int wi = 0; for (Widget w : widgets) { wi = Math.max(wi, w.width); } scrollH.setElementSize(wi + 4); scrollH.setScrollStep(scrollH.getScrollStep() * 5D); scrollV.setElementSize(align(WidgetLayout.VERTICAL)); scrollV.setScrollStep(scrollV.getScrollStep() * 3D); } @Override public Icon getIcon() { return gui.getTheme().getContainerSlot(); } }; textPanel.addFlags(Panel.DEFAULTS | Widget.UNICODE); scrollH = new PanelScrollBar(this, 8, 0, 0, 16, 0, textPanel) { @Override public Plane getPlane() { return Plane.HORIZONTAL; } @Override public boolean canMouseScroll() { return true; } @Override public boolean shouldRender() { return true; } }; scrollV = new PanelScrollBar(this, 0, 32, 16, 0, 0, textPanel) { @Override public boolean canMouseScroll() { return true; } @Override public boolean shouldRender() { return true; } }; close = new SimpleButton(this, 0, 8, GuiLang.CLOSE, GuiIcons.CLOSE, (gui1, button) -> gui1.closeGui()) { @Override public Icon getIcon() { return getButtonBackground().withBorder(-2).combineWith(super.getIcon()); } }; upload = new SimpleButton(this, 0, 8, FTBULang.UPLOAD_CRASH, GuiIcons.UP, (gui1, button) -> { ClientUtils.execClientCommand("/ftb view_crash " + name.text.get(0) + " upload"); gui1.closeGui(false); }) { @Override public Icon getIcon() { return getButtonBackground().withBorder(-2).combineWith(super.getIcon()); } }; reset = new SimpleButton(this, 0, 0, "", Icon.EMPTY, (gui1, button) -> { scrollH.setValue(0D); scrollV.setValue(0D); }); } @Override public void onInit() { setWidth(getScreen().getScaledWidth()); setHeight(getScreen().getScaledHeight()); close.setX(width - 24); upload.setX(width - 48); scrollH.width = width - 32; scrollV.height = height - 56; textPanel.setWidth(scrollH.width - 2); textPanel.setHeight(scrollV.height - 2); reset.posX = scrollV.posX = width - 24; reset.posY = scrollH.posY = height - 24; } @Override public void addWidgets() { addAll(textPanel, scrollH, scrollV, close, upload, reset, name); } }
9f229fd1f0851bc53a33423f208eed89763120a5
89cf53fb451b42a3c10453532a7f7c1a9214f3ba
/modules/flowable-ui-admin/flowable-ui-admin-logic/src/main/java/org/flowable/ui/admin/service/RobustaWorkerCacheImpl.java
c3dd543885cc837c80ca8cd6f68a5641bcab49b8
[ "Apache-2.0" ]
permissive
egemenalan/flowable-training
566f75615d484fd1613d5eab230dd124ac83ceea
ac15d546507c533102e100111f99b438973fe718
refs/heads/master
2020-04-28T16:05:12.181993
2019-03-21T13:57:47
2019-03-21T13:57:47
175,398,644
3
1
null
null
null
null
UTF-8
Java
false
false
6,550
java
/* Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.flowable.ui.admin.service; import java.util.ArrayList; import java.util.Collection; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeUnit; import javax.annotation.PostConstruct; import org.flowable.idm.api.RobustaWorker; import org.flowable.idm.api.RobustaWorkerDefinitionService; import org.flowable.spring.boot.ldap.FlowableLdapProperties; import org.flowable.ui.admin.cache.RobustaWorkerCache; import org.flowable.ui.admin.model.RobustaWorkerInformation; import org.flowable.ui.common.properties.FlowableCommonAppProperties; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.authentication.LockedException; import org.springframework.security.core.GrantedAuthority; import org.springframework.security.core.authority.SimpleGrantedAuthority; import org.springframework.security.core.userdetails.UsernameNotFoundException; import org.springframework.stereotype.Service; import com.google.common.cache.CacheBuilder; import com.google.common.cache.CacheLoader; import com.google.common.cache.LoadingCache; import com.google.common.util.concurrent.UncheckedExecutionException; /** * Cache containing User objects to prevent too much DB-traffic (users exist separately from the Flowable tables, they need to be fetched afterward one by one to join with those entities). * <p> * TODO: This could probably be made more efficient with bulk getting. The Google cache impl allows this: override loadAll and use getAll() to fetch multiple entities. * * @author Egemen ALAN * */ @Service public class RobustaWorkerCacheImpl implements RobustaWorkerCache { @Autowired protected FlowableCommonAppProperties properties; protected FlowableLdapProperties ldapProperties; // @Autowired // protected RobustaWorkerDefinitionService robustaWorkerDefinitionService; @Autowired protected RobustaWorkerService robustaWorkerService; protected LoadingCache<String, CachedWorker> workerCache; @PostConstruct protected void initCache() { FlowableCommonAppProperties.Cache cache = properties.getCacheWorkers(); long workerCacheMaxSize = cache.getMaxSize(); long workerCacheMaxAge = cache.getMaxAge(); // workerCache = CacheBuilder.newBuilder().maximumSize(workerCacheMaxSize) // .expireAfterAccess(workerCacheMaxAge, TimeUnit.SECONDS).recordStats().build(new CacheLoader<String, CachedWorker>() { // public CachedWorker load(final String workerId) throws Exception { // RobustaWorker workerFromDatabase = null; // if (ldapProperties == null || !ldapProperties.isEnabled()) { // workerFromDatabase = robustaWorkerDefinitionService.createWorkerQuery().workerIdIgnoreCase(workerId.toLowerCase()).singleResult(); // } else { // workerFromDatabase = robustaWorkerDefinitionService.createWorkerQuery().workerId(workerId).singleResult(); // } // // if (workerFromDatabase == null) { // throw new UsernameNotFoundException("Worker " + workerId + " was not found in the database"); // } // // Collection<GrantedAuthority> grantedAuthorities = new ArrayList<>(); // RobustaWorkerInformation workerInformation = robustaWorkerService.getWorkerInformation(workerFromDatabase.getId()); // for (String privilege : workerInformation.getPrivileges()) { // grantedAuthorities.add(new SimpleGrantedAuthority(privilege)); // } // // return new CachedWorker(workerFromDatabase, grantedAuthorities); // } // }); } public void putWorker(String workerId, CachedWorker cachedWorker) { workerCache.put(workerId, cachedWorker); } public CachedWorker getWorker(String workerId) { return getWorker(workerId, false, false, true); // always check validity by default } public CachedWorker getWorker(String workerId, boolean throwExceptionOnNotFound, boolean throwExceptionOnInactive, boolean checkValidity) { try { // The cache is a LoadingCache and will fetch the value itself CachedWorker cachedWorker = workerCache.get(workerId); return cachedWorker; } catch (ExecutionException e) { return null; } catch (UncheckedExecutionException uee) { // Some magic with the exceptions is needed: // the exceptions like UserNameNotFound and Locked cannot // bubble up, since Spring security will react on them otherwise if (uee.getCause() instanceof RuntimeException) { RuntimeException runtimeException = (RuntimeException) uee.getCause(); if (runtimeException instanceof UsernameNotFoundException) { if (throwExceptionOnNotFound) { throw runtimeException; } else { return null; } } if (runtimeException instanceof LockedException) { if (throwExceptionOnNotFound) { throw runtimeException; } else { return null; } } } throw uee; } } @Override public void invalidate(String workerId) { workerCache.invalidate(workerId); } @Autowired(required = false) public void setLdapProperties(FlowableLdapProperties ldapProperties) { this.ldapProperties = ldapProperties; } }
0de08ee56c2499a0dd5b887dac5ff7ff20a0bc1a
1702982561569df407472f4dc91c5e88d5fd4b38
/src/main/java/list/CopyRandomList.java
455f25b01d0ac85383c2dab555e2aefddc42fd54
[]
no_license
darcy1990/darcy-leetcode
9f635354a07f46bf2ad1a99d3b955951d12078b1
c92ada4ef6676161fb4d3ed0af9ffbafa70b5137
refs/heads/master
2023-02-24T00:44:18.771918
2023-02-11T01:36:06
2023-02-11T01:36:06
38,557,608
0
0
null
null
null
null
UTF-8
Java
false
false
1,294
java
package list; import java.util.HashMap; import java.util.Map; /** * @Author: Zhongming Yuan * @Date: 2021/8/21 5:25 下午 */ public class CopyRandomList { public Node copyRandomList(Node head) { if (head == null) { return null; } Node k = head; Map<Node, Node> random = new HashMap<>(); Map<Node, Node> pairs = new HashMap<>(); Map<Node, Node> cPairs = new HashMap<>(); Node dum = new Node(0); Node l = dum; while (k != null) { Node n = new Node(k.val); l.next = n; Node c1 = k; Node c2 = n; random.put(c1, c1.random); pairs.put(c2, c1); cPairs.put(c1, c2); k = k.next; l = l.next; } Node j = dum.next; while (j != null) { Node f = pairs.get(j); Node r = random.get(f); Node s = cPairs.get(r); j.random = s; j = j.next; } return dum.next; } public static class Node { int val; public Node next; public Node random; public Node(int val) { this.val = val; this.next = null; this.random = null; } } }
d01da9bd32b1191c7bf0383753ac41fa7dac6e67
c1a47d014c8537212d65957ae97cd9953d97d5fd
/app/src/androidTest/java/com/example/facebooklog/ExampleInstrumentedTest.java
0f2a316167bd2b0bc5bf464203780f52c4025785
[]
no_license
ayeshajagirdar/FacebookLog
74048461a0cba7550dc449e68d88850be65259ae
8673733ffc135d5a60ea9dcb0ff9eba181a65574
refs/heads/master
2023-06-03T00:23:24.899148
2021-06-17T14:42:25
2021-06-17T14:42:25
377,862,424
0
0
null
null
null
null
UTF-8
Java
false
false
760
java
package com.example.facebooklog; import android.content.Context; import androidx.test.platform.app.InstrumentationRegistry; import androidx.test.ext.junit.runners.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; /** * Instrumented test, which will execute on an Android device. * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ @RunWith(AndroidJUnit4.class) public class ExampleInstrumentedTest { @Test public void useAppContext() { // Context of the app under test. Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); assertEquals("com.example.facebooklog", appContext.getPackageName()); } }
4fd8a9a984fec9158ec2844dbaf2b3f2b41db85c
8a86d3871f759273dc1a8c6cf2dc33e49f20ce5c
/packages/ts-exporter/src/main/java/org/uberfire/jsbridge/tsexporter/meta/Translatable.java
4559c8bb300f730ab6eea98ab1f151226e0fcd95
[]
no_license
tiagobento/appformer-js-old
704625e9becf9b5200970416a2e41d8da5158c23
2a001374f5baa16288cbff967bf0fb38f70305c8
refs/heads/master
2020-03-22T10:21:55.614911
2019-01-31T18:17:22
2019-01-31T18:17:22
139,897,590
0
1
null
null
null
null
UTF-8
Java
false
false
1,091
java
/* * Copyright 2018 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.uberfire.jsbridge.tsexporter.meta; import java.util.List; import org.uberfire.jsbridge.tsexporter.dependency.ImportEntry; public interface Translatable { String toTypeScript(final SourceUsage sourceUsage); List<ImportEntry> getAggregatedImportEntries(); default boolean canBeSubclassed() { return false; } enum SourceUsage { TYPE_ARGUMENT_USE, TYPE_ARGUMENT_DECLARATION, IMPORT_STATEMENT, } }
ac38fa7dd28c65850379239cb4e882a0311c3f76
8b39ec4dbaf74644a8ae963f4d051c6fef7d097d
/Squarelotron/src/squarelotron/LargeSquarelotron.java
642be1824f85a4aa31ebf4467bf01f8cc86efda4
[]
no_license
hangfei/Java
ef12cf373f49e40d9afaf92c411b30a549525d57
75e5ecfb48eff41707107139c54f33b68a46da3e
refs/heads/master
2016-09-10T23:24:02.042341
2014-02-22T13:51:57
2014-02-22T13:51:57
17,079,851
0
1
null
null
null
null
UTF-8
Java
false
false
8,711
java
package squarelotron; import java.util.Arrays; /** * The large(5*5) squarelotron. * @author Handfei Lin, Indira Kassymkhanova * */ public class LargeSquarelotron extends Squarelotron implements SquarelotronMethods { int[] copylotron = new int[25]; int slength =5; /** * These are the constructors for squarelotrons. * Given an int[] of the correct size (either 16 or 25 numbers), initializes a squarelotron. * @param array */ private LargeSquarelotron(int[] array) { // TODO Auto-generated constructor stub squarelotron = to2D(array); } /** * Creates a 2D matrix from 1D array * @param array * @return */ private int[][] to2D(int[] array) { int[][] array2D = new int[slength][slength]; int n = 0; for(int i=0; i < 5; i++) { for(int j = 0; j < slength; j++) { array2D[i][j] = array[n]; n++; } } return array2D; } /** * Constructs and returns a squarelotron if the following conditions are met: * (1) The given array is either 16 or 25 in length * (2) all the numbers in the array are nonnegative (zero is allowed) and less than or equal to 99. */ public static Squarelotron makeSquarelotron (int[] array) throws IllegalArgumentException{ if (array.length !=25){ throw new IllegalArgumentException("It is not 5x5"); } for (int i=0; i<array.length; i++){ if (array[i]<0 && array[i]>99){ throw new IllegalArgumentException("Numbers must be non-negative! and <= 99!"); } } LargeSquarelotron sSquarelotron = new LargeSquarelotron(array); return sSquarelotron; } /** * transform the squarelotron to 1D array * @return */ public int[] numbers(){ int[] slotron = new int[25]; int k = 0; for (int i = 0; i< slength; i++){ for (int j = 0; j<slength; j++){ slotron[k] = squarelotron[i][j]; copylotron[k] = squarelotron[i][j]; k++; } } return slotron; } /** * This method performs the Upside-Down Flip of the squarelotron * @param ring * @return */ public Squarelotron upsideDownFlip(String ring){ if (ring.equals("outer")){ int k = 0; for (int i = 0; i < slength; i++){ for (int j = 0; j<slength; j++){ if (i<4 && i>0 && j<4 && j>0){ copylotron[k] = squarelotron[i][j]; } else copylotron[k] = squarelotron[4-i][j]; k++; } } } else if (ring.equals("inner")){ int k = 0; for (int i = 0; i < slength; i++){ for (int j = 0; j<slength; j++){ if (i<4 && i>0 && j<4 && j>0){ copylotron[k] = squarelotron[4-i][j]; } else { copylotron[k] = squarelotron[i][j]; } k++; } } } LargeSquarelotron flipSquarelotron = new LargeSquarelotron(copylotron); return flipSquarelotron; } /** * This method performs the Left-Right Flip of the squarelotron * @param ring * @return */ public Squarelotron leftRightFlip(String ring){ int[] copylotron = new int[25]; if (ring.equals("outer")){ int k = 0; for (int i = 0; i < slength; i++){ for (int j = 0; j < slength; j++){ if ((i<4 && i>0) && (j<4 && j>0)){ copylotron[k] = squarelotron[i][j]; } else copylotron[k] = squarelotron[i][4-j]; k++; } } } else if (ring.equals("inner")){ int k = 0; for (int i = 0; i < slength; i++){ for (int j = 0; j<slength; j++){ if ((i<4 && i>0) && (j<4 && j>0)){ copylotron[k] = squarelotron[i][4-j]; } else copylotron[k] = squarelotron[i][j]; k++; } } } LargeSquarelotron flipSquarelotron = new LargeSquarelotron(copylotron); return flipSquarelotron; } /** * This method performs the Main Inverse Diagonal of the squarelotron * opposite to ordinary diagonal * @param ring * @return */ public Squarelotron inverseDiagonalFlip(String ring){ if (ring.equals("outer")){ int k = 0; for (int i = 0; i < slength; i++){ for (int j = 0; j<slength; j++){ if (i<4 && i>0 && j<4 && j>0){ copylotron[k] = squarelotron[i][j]; } else copylotron[k] = squarelotron[4-j][4-i]; k++; } } } else if (ring.equals("inner")){ int k = 0; for (int i = 0; i < slength; i++){ for (int j = 0; j<slength; j++){ if (i<4 && i>0 && j<4 && j>0){ copylotron[k] = squarelotron[4-j][4-i]; } else copylotron[k] = squarelotron[i][j]; k++; } } } LargeSquarelotron flipSquarelotron = new LargeSquarelotron(copylotron); return flipSquarelotron; } /** * This method performs the Main Diagonal Flip of the squarelotron * @param ring * @return */ public Squarelotron mainDiagonalFlip(String ring){ if (ring.equals("outer")){ int k = 0; for (int i = 0; i < slength; i++){ for (int j = 0; j<slength; j++){ if (i<4 && i>0 && j<4 && j>0){ copylotron[k] = squarelotron[i][j]; } else copylotron[k] = squarelotron[j][i]; k++; } } } else if (ring.equals("inner")){ int k = 0; for (int i = 0; i < slength; i++){ for (int j = 0; j<slength; j++){ if (i<4 && i>0 && j<4 && j>0){ copylotron[k] = squarelotron[j][i]; } else copylotron[k] = squarelotron[i][j]; k++; } } } LargeSquarelotron flipSquarelotron = new LargeSquarelotron(copylotron); return flipSquarelotron; } /** * The argument side should be one of the four strings "left", "right", "top", and "bottom". * The two indicated columns (leftmost or rightmost), or the two indicated rows * (top two rows or bottom two rows) should be interchanged. */ /** * side flip */ public Squarelotron sideFlip(String ring){ int k = 0; for (int i = 0; i < slength; i++){ for (int j = 0; j<slength; j++){ copylotron[k] = squarelotron[i][j]; if ((i==0 && ring.equals("top")) || (i==3 && ring.equals("bottom"))){ copylotron[k] = squarelotron[i+1][j]; } if ((i==1 && ring.equals("top")) || (i==4 && ring.equals("bottom"))){ copylotron[k] = squarelotron[i-1][j]; } if ((j==3 && ring.equals("right"))|| (j==0 && ring.equals("left"))){ copylotron[k] = squarelotron[i][j+1]; } if ((j==4 && ring.equals("right"))|| (j==1 && ring.equals("left"))){ copylotron[k] = squarelotron[i][j-1]; } k++; } } return makeSquarelotron (copylotron); } /** * The argument numberOfTurns indicates the number of times the squarelotron * should be rotated 90. Any integer, including zero and negative integers, * is allowable as the second argument. A value of -1 indicates a 90 */ public void rotateRight(int numberOfTurns){ int n = numberOfTurns; int[][] temp = squarelotron; if ((Math.abs(numberOfTurns) % 4 == 0 && numberOfTurns > 0) ){ n = 0; } else if (( ((numberOfTurns%4) == 1) && numberOfTurns > 0)|| (((Math.abs(numberOfTurns)%4) == 3) && numberOfTurns < 0)){ n = 1; } else if (( ((numberOfTurns%4) == 2) && numberOfTurns > 0)|| (((Math.abs(numberOfTurns)%4) == 2) && numberOfTurns < 0)){ n = 2; } else if (( ((numberOfTurns%4) == 3) && numberOfTurns > 0)|| (((Math.abs(numberOfTurns)%4) == 1) && numberOfTurns < 0)){ n = 3; } while (n > 0) { int k = 0; int z = 0; for (int i = 0; i < slength; i++){ for (int j = 0; j < slength; j++) { copylotron[k] = temp[slength-1-j][z]; k++; } z++; } temp = to2D(copylotron); n--; } squarelotron = temp; } /** * Returns true if the object is a squarelotron that is equal to this squarelotron, * and false otherwise. * Squarelotrons that are the same except for rotations are considered equal. * Squarelotrons of different sizes are never equal. */ @Override public boolean equals(Object object) { if (! (object instanceof Squarelotron)) { return false; } Squarelotron that = (Squarelotron) object; return Arrays.deepEquals(this.squarelotron, that.squarelotron); } /** * Makes a good representation of the squarelotron (matrix) */ @Override public String toString(){ String tostring = ""; for (int i=0; i<slength; i++) { for (int j=0; j<slength; j++) { if (squarelotron[i][j] > 11) { tostring = tostring + Integer.toString(squarelotron[i][j])+" "; } else { tostring = tostring + Integer.toString(squarelotron[i][j])+" "; } } tostring = tostring + "\n"; } return tostring; } }
f3e0f24cd053e0d5a2a22de0da362b0ae2cb45a0
2104c8ea0771fa9f3d1f8f01380ac9e03478b947
/src/com/cpe316/Opon.java
bff559c14c010e3caadcef33dc8b6dd54cc8745e
[]
no_license
yinkatej/Ayo-Olopon
c18669e12c94839eddda25c324945f6ad3bbafd7
15db0b54720c136ca73b04610d2409aae37321e6
refs/heads/master
2023-09-05T13:35:58.181296
2021-11-23T14:47:58
2021-11-23T14:47:58
431,146,654
0
0
null
null
null
null
UTF-8
Java
false
false
5,035
java
package com.cpe316; import static java.lang.Thread.sleep; import java.util.Arrays; import java.util.InputMismatchException; import java.util.Scanner; import java.util.Random; public class Opon { //FuzzyLogic logic = new FuzzyLogic(); public static int[] board = new int[13]; public static int[] board1 = new int[13]; private int playerOne; private int playerTwo; static int count, selection, value; public boolean isRowEmpty(int a, int b){ int check =0; for (int i = a; i<=b; i++){ check +=board1[i]; } return check == 0; } public void intialize() { // final int startSeed = 4; // for (int x = 0; x < board.length; x++) { // board[x] = startSeed; // } Arrays.fill(board,4); } public void display() throws InterruptedException { sleep(2000); for (int x = 6; x >= 1; x--) { System.out.printf("%2s ", String.valueOf(board[x])); //System.out.println(); } System.out.println(); for (int x = 7; x <= 12; x++) { System.out.printf("%2s ", String.valueOf(board[x])); //System.out.println(); } System.out.printf("%nCaptures by COM: %s%nCaptures by USER: %s%n", playerOne, playerTwo); } // public void start(){ // System.out.printf( // " ******%n" + // " ********%n" + // " *** **%n" + // " **"); // } public void play(int[] board) { count = selection; int boardContent = board[selection]; board[selection] = 0; do { selection++; if (selection > 12) selection = 1; if (selection == count) continue; board[selection]++; boardContent--; } while (boardContent != 0); } public void capture(int value) { int player1=0, player2 = 0; int territory = selection; System.arraycopy(board, 0, board1, 0, 13); if (value < 7 && territory > 6) { while (board1[territory] <= 3 & board1[territory]>1) { player1 += board1[territory]; board1[territory]=0; territory--; if (board1[territory]==0) break; if (territory<=6) break; } if (!isRowEmpty(1, 6)) System.arraycopy(board1, 0, board, 0 , 13); playerOne += player1; playerTwo += player2; } else if (value > 6 && territory < 7) { while (board1[territory] <= 3 & board1[territory]>1) { player2 += board1[territory]; board1[territory]=0; territory--; if (board1[territory]==0) break; if (territory>=7) break; } if (!isRowEmpty(7, 12)) System.arraycopy(board1, 0, board, 0 , 13); playerOne += player1; playerTwo += player2; } //Arrays.stream(board1).filter(e-> e<=6).reduce(0,(a,b)-> a+b); } public static void main(String[] args) throws InterruptedException { FuzzyLogic log = new FuzzyLogic(); var random = new Random(); Opon ayo = new Opon(); Scanner input = new Scanner(System.in); ayo.intialize(); ayo.display(); while (true) { boolean b = true; do {System.out.println("Enter a number to play"); try {value = input.nextInt()+6 ; if (value>12 || value < 7 ) throw new OutOfRangeException(); else if (Opon.board[value]==0) throw new EmptyContentException(); b = false; selection = value; } catch (OutOfRangeException e) { System.err.println("XXX Please input a No within range 1 and 6"); } catch (EmptyContentException e){ //e.printStackTrace(); System.err.println( " This hole is" + " empty, please select another"); } catch (InputMismatchException e){ System.err.println("Input is not valid"); } } while (b); ayo.play(Opon.board); ayo.capture(value); ayo.display(); sleep(2000); // computer Plays..................................... value = log.play(); if (value == 0 || Opon.board[value]==0) { do { value = 1 + random.nextInt(6); } while (Opon.board[value] == 0); } selection = value; System.out.println(value ); //System.out.print(log.copyBoard); ayo.play(Opon.board); ayo.capture(value); ayo.display(); } } }
bf57f90aecc1dfdd0c13c41a875ea398c32fca24
994501719c6300b9c94940995932f1c903e710b8
/gnu_classpath/java/awt/event/AdjustmentEvent.java
623dab5eaed72223f652581cec4114873a906a28
[]
no_license
qingw/haskell-java-parser
d4fd018cb92787f275cf98be6202a679e958d472
4effc3f225f12f49deb36b87175dc5a66fb93776
refs/heads/master
2021-01-17T22:42:19.829354
2010-10-22T06:06:02
2010-10-22T06:06:02
null
0
0
null
null
null
null
UTF-8
Java
false
false
7,160
java
/* AdjustmentEvent.java -- an adjustable value was changed Copyright (C) 1999, 2002, 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath 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 General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ package java.awt.event; import java.awt.AWTEvent; import java.awt.Adjustable; /** * This class represents an event that is generated when an adjustable * value is changed. * * @author Aaron M. Renn <[email protected]> * @see Adjustable * @see AdjustmentListener * @since 1.1 * @status updated to 1.4 */ public class AdjustmentEvent extends AWTEvent { /** * Compatible with JDK 1.1+. */ private static final long serialVersionUID = 5700290645205279921L; /** This is the first id in the range of ids used by adjustment events. */ public static final int ADJUSTMENT_FIRST = 601; /** This is the last id in the range of ids used by adjustment events. */ public static final int ADJUSTMENT_LAST = 601; /** This is the id indicating an adjustment value changed. */ public static final int ADJUSTMENT_VALUE_CHANGED = 601; /** Adjustment type for unit increments. */ public static final int UNIT_INCREMENT = 1; /** Adjustment type for unit decrements. */ public static final int UNIT_DECREMENT = 2; /** Adjustment type for block decrements. */ public static final int BLOCK_DECREMENT = 3; /** Adjustment type for block increments. */ public static final int BLOCK_INCREMENT = 4; /** Adjustment type for tracking adjustments. */ public static final int TRACK = 5; /** * The adjustable object that caused the event. * * @see #getAdjustable() * @serial the cause */ private final Adjustable adjustable; /** * The type of adjustment, one of {@link #UNIT_INCREMENT}, * {@link #UNIT_DECREMENT}, {@link #BLOCK_INCREMENT}, * {@link #BLOCK_DECREMENT}, or {@link #TRACK}. * * @see #getAdjustmentType() * @serial the adjustment type */ private final int adjustmentType; /** * The new value of the adjustable; it should be in the range of the * adjustable cause. * * @see #getValue() * @serial the adjustment value */ private final int value; /** * True if this is in a series of multiple adjustment events. * * @see #getValueIsAdjusting() * @serial true if this is not the last adjustment * @since 1.4 */ private final boolean isAdjusting; /** * Initializes an instance of <code>AdjustmentEvent</code> with the * specified source, id, type, and value. Note that an invalid id leads to * unspecified results. * * @param source the source of the event * @param id the event id * @param type the event type, one of the constants of this class * @param value the value of the adjustment * @throws IllegalArgumentException if source is null */ public AdjustmentEvent(Adjustable source, int id, int type, int value) { this(source, id, type, value, false); } /** * Initializes an instance of <code>AdjustmentEvent</code> with the * specified source, id, type, and value. Note that an invalid id leads to * unspecified results. * * @param source the source of the event * @param id the event id * @param type the event type, one of the constants of this class * @param value the value of the adjustment * @param isAdjusting if this event is in a chain of adjustments * @throws IllegalArgumentException if source is null * @since 1.4 */ public AdjustmentEvent(Adjustable source, int id, int type, int value, boolean isAdjusting) { super(source, id); this.adjustmentType = type; this.value = value; adjustable = source; this.isAdjusting = isAdjusting; } /** * This method returns the source of the event as an <code>Adjustable</code>. * * @return the <code>Adjustable</code> source of the event */ public Adjustable getAdjustable() { return adjustable; } /** * Returns the new value of the adjustable object. * * @return the value of the event */ public int getValue() { return value; } /** * Returns the type of the event, which will be one of * {@link #UNIT_INCREMENT}, {@link #UNIT_DECREMENT}, * {@link #BLOCK_INCREMENT}, {@link #BLOCK_DECREMENT}, or {@link #TRACK}. * * @return the type of the event */ public int getAdjustmentType() { return adjustmentType; } /** * Test if this event is part of a sequence of multiple adjustements. * * @return true if this is not the last adjustment * @since 1.4 */ public boolean getValueIsAdjusting() { return isAdjusting; } /** * Returns a string that describes the event. This is in the format * <code>"ADJUSTMENT_VALUE_CHANGED,adjType=" + &lt;type&gt; + ",value=" * + getValue() + ",isAdjusting=" + getValueIsAdjusting()</code>, where * type is the name of the constant returned by getAdjustmentType(). * * @return a string that describes the event */ public String paramString() { return (id == ADJUSTMENT_VALUE_CHANGED ? "ADJUSTMENT_VALUE_CHANGED,adjType=" : "unknown type,adjType=") + (adjustmentType == UNIT_INCREMENT ? "UNIT_INCREMENT,value=" : adjustmentType == UNIT_DECREMENT ? "UNIT_DECREMENT,value=" : adjustmentType == BLOCK_INCREMENT ? "BLOCK_INCREMENT,value=" : adjustmentType == BLOCK_DECREMENT ? "BLOCK_DECREMENT,value=" : adjustmentType == TRACK ? "TRACK,value=" : "unknown type,value=") + value + ",isAdjusting=" + isAdjusting; } } // class AdjustmentEvent
212e989508961248794d5ae198f061ad825391ca
ae9d0f16c940859e56f83da98e0f5b8f4654d71f
/src/test/java/com/catalyst/drive/entities/TestUser.java
e557d8bf9ea58d60c29dc69a1ed75b83d25ded4f
[ "Apache-2.0" ]
permissive
netopsadmin/CatalystDrive
044482cfeb0eb4b1abafe24dadecca47d18a991f
da2e53f227c0e69d8ffbfb48c3b0d0109c159497
refs/heads/master
2021-04-15T04:38:01.317595
2013-11-04T21:30:15
2013-11-04T21:30:15
126,854,051
0
0
null
null
null
null
UTF-8
Java
false
false
1,156
java
package com.catalyst.drive.entities; import static org.junit.Assert.*; import java.util.HashSet; import java.util.Set; import org.junit.Test; import com.catalyst.drive.TestBase; import com.catalyst.drive.entities.Role; import com.catalyst.drive.entities.User; public class TestUser extends TestBase { @Test @Override public void testBasicFunctionality() { User user0 = new User(); user0.setId(0); User user1 = new User(); user1.setId(1); assertTrue(!user0.equals(user1)); user1.setId(0); assertTrue(user0.equals(user1)); assertTrue(!user0.equals(new Object())); assertEquals(user0.toString(), "entities.User[ id=" + 0 + " ]"); assertEquals(user0.hashCode(), 0); } @Test public void testGettersAndSetters() { User user = new User(); Integer id = 0; user.setId(id); assertEquals(user.getId(), id); String username = "test"; user.setUsername(username); assertEquals(user.getUsername(), username); String password = "pass"; user.setPassword(password); assertEquals(user.getPassword(), password); Set<Role> roles = new HashSet<Role>(); user.setRoles(roles); assertEquals(user.getRoles(), roles); } }
76d8bf8dc366a8ffe11aeff852778df5d5a254dd
f6da044ec6e4d1c15a4829ba55f6a067ed5217fd
/src/main/java/ca/ulaval/glo4003/spamdul/shared/api/ApiExceptionWrapper.java
c2f88c8be41840d884b5361f4caa7d26f669b80e
[]
no_license
vigenere23/SPAMDUL
a0e245424121aad8ebc97749c9839bb9d8b9880e
795869921f2ca05ebf19fc44330325d074c1f7b4
refs/heads/main
2023-02-20T18:41:42.634506
2021-01-26T15:24:19
2021-01-26T15:24:45
321,693,886
1
0
null
2021-01-26T15:11:13
2020-12-15T14:33:57
Java
UTF-8
Java
false
false
1,486
java
package ca.ulaval.glo4003.spamdul.shared.api; import ca.ulaval.glo4003.spamdul.shared.api.exceptions.NotFoundException; import ca.ulaval.glo4003.spamdul.shared.api.exceptions.ServerErrorException; import ca.ulaval.glo4003.spamdul.shared.api.exceptions.UserErrorException; import ca.ulaval.glo4003.spamdul.shared.usecases.exceptions.InvalidArgumentException; import ca.ulaval.glo4003.spamdul.shared.usecases.exceptions.ItemNotFoundException; import ca.ulaval.glo4003.spamdul.shared.usecases.exceptions.UnauthorizedException; import ca.ulaval.glo4003.spamdul.shared.usecases.exceptions.UnhandledException; import java.util.concurrent.Callable; public class ApiExceptionWrapper { public static <T> T wrap(Callable<T> function) { try { return function.call(); } catch (ItemNotFoundException exception) { throw new NotFoundException(exception); } catch (IllegalArgumentException | InvalidArgumentException exception) { throw new UserErrorException(exception); } catch (UnauthorizedException exception) { throw new ca.ulaval.glo4003.spamdul.shared.api.exceptions.UnauthorizedException(exception); } catch (UnhandledException exception) { throw new ServerErrorException(exception); } catch (Exception exception) { throw new ServerErrorException(exception); } } public static void wrap(Runnable function) { Callable<Void> callable = () -> { function.run(); return null; }; wrap(callable); } }
bbe163c07db6fee3505f13dae1adc05d0d53bc7c
276ac1717075ed1f827cbb04d12379440a613045
/GameSapper/src/game/ActionField.java
cf85009b6b9f0891ed45cf7941f4f44d126b548d
[]
no_license
gpevnev/Sapper
2b8e38886a05ed14c157d5bab2d65edab5dbaa49
cbaad37922c1050f146d4f7fc5f17210ef040d55
refs/heads/master
2021-01-23T16:06:31.959766
2017-09-07T20:07:57
2017-09-07T20:07:57
102,725,372
0
0
null
2017-09-07T10:44:11
2017-09-07T10:44:11
null
UTF-8
Java
false
false
6,166
java
package game; import java.util.ArrayList; import java.util.HashSet; import java.util.List; /** * Created by Sergey on 07.07.2017. */ public class ActionField extends Field implements IGame { private List<IGameListener> listeners = new ArrayList<>(); private int counterTagged = 0; private int counterCorrectTagged = 0; private boolean gameFinished = false; public ActionField(final int row, final int column, final int counterBomb) { super(row, column, counterBomb); } public void openCell(final int row, final int column) { if (gameFinished || isOutOfBounds(row, column)) return; if (!fieldCreated) { openFirstCell(row, column); sayGameStart(); } Cell cell = this.getCell(row, column); if (cell.isOpened) { if (cell.isNumber() && !cell.isTagged) { openAdjacentCells(cell); } } else if (cell.isBomb()) { openBombCell(cell); } else if (cell.isNumber()) { openNumberCell(cell); sayCellChange(cell); } else if (cell.isEmptyPoint()) { openEmptyCell(cell); sayCellChange(cell); } } public void putTagged(final int row, final int column) { if (isOutOfBounds(row, column)) return; Cell cell = field[row][column]; if (!cell.isTagged && cell.isOpened) return; int add = 1; if (!cell.isTagged) { setTagged(cell.row, cell.column); } else { add = -1; removeTagged(cell.row, cell.column); } counterTagged += add; if (cell.isBomb()) counterCorrectTagged += add; if (counterCorrectTagged == getCounterBomb() && counterCorrectTagged == counterTagged) { sayGameOver(true); } sayScoreChange(); sayCellChange(cell); } public void addListener (IGameListener listener) { listeners.add(listener); } protected void setGameFinished() { gameFinished = true; } private void sayGameOver(boolean isWin) { setGameFinished(); for (IGameListener listener : listeners) { listener.gameOver(isWin); } } private void sayCellChange(Cell c) { for (IGameListener listener : listeners) { listener.cellChange(c); } } private void sayScoreChange() { for (IGameListener listener : listeners) { listener.scoreChange(counterTagged); } } private void sayGameStart() { for (IGameListener listener : listeners) { listener.gameStart(); } } private HashSet<Cell> getStartCells(final int row, final int column) { HashSet<Cell> startCells = new HashSet<>(); for (int i = -1; i <= 1; i++) { for (int j = -1; j <= 1; j++) { int curRow = row + i; int curColumn = column + j; if (!isOutOfBounds(curRow, curColumn)) { startCells.add(getCell(curRow, curColumn)); } } } return startCells; } protected void openFirstCell(final int row, final int column) { HashSet<Cell> startCells = getStartCells(row, column); createField(startCells); } private boolean isCorrectFlagsCounter(Cell cell) { int counterFlags = 0; boolean hasWrongFlag = false; for (int i = -1; i <= 1; i++) { for (int j = -1; j <= 1; j++) { int curRow = cell.row + i; int curColumn = cell.column + j; if (isOutOfBounds(curRow, curColumn) || (i == 0 && j == 0)) continue; Cell curCell = getCell(curRow, curColumn); if (curCell.isTagged) { if (!curCell.isBomb()) { hasWrongFlag = true; } counterFlags++; } } } if (counterFlags == cell.getNumber()) { if (hasWrongFlag) { sayGameOver(false); } return !hasWrongFlag; } return false; } private void openAdjacentCells(Cell cell) { if (!isCorrectFlagsCounter(cell)) return; boolean cellChanged = false; for (int rowIndex = -1; rowIndex <= 1; rowIndex++) { for (int columnIndex = -1; columnIndex <= 1; columnIndex++) { int curRow = cell.row + rowIndex; int curColumn = cell.column + columnIndex; if (columnIndex == 0 && rowIndex == 0 || isOutOfBounds(curRow, curColumn)) continue; Cell cur = getCell(curRow, curColumn); if (cur.isOpened) continue; cellChanged = true; if (cur.isEmptyPoint()) { openEmptyCell(cur); } else if (cur.isNumber()) { openNumberCell(cur); } } } if (cellChanged) { sayCellChange(cell); } } private void openEmptyCells(Cell cell) { for (int i = -1; i <= 1; i++) { for (int j = -1; j <= 1; j++) { int curRow = cell.row + i; int curColumn = cell.column + j; if (isOutOfBounds(curRow, curColumn)) continue; Cell curCell = getCell(curRow, curColumn); if (curCell.isOpened) continue; curCell.openCell(); if (curCell.isEmptyPoint()) { openEmptyCell(curCell); } else if (curCell.isNumber()) { openNumberCell(curCell); } } } } private void openEmptyCell(Cell cell) { openEmptyCells(cell); } private void openNumberCell(Cell cell) { cell.openCell(); } private void openBombCell(Cell cell) { cell.openCell(); sayGameOver(false); } }
4bb650c0c370c356aa6f18f48e6b8a25c4130556
2fbd9b01fe38b213da451bfa52919a07abe08dd3
/gmall-sms/src/main/java/com/atguigu/gmall/sms/dao/SpuBoundsDao.java
9c9a0e5c7e4d3ea22b547eb708f6c8e1844d1182
[ "Apache-2.0" ]
permissive
wsmGo/gmall
dbc67bd7fc4cfb802e1514879b4414382dec5ba0
e13a1377c091a947a6294f8cd3346903bf01ddaa
refs/heads/master
2022-12-21T14:40:03.025186
2019-12-20T02:10:58
2019-12-20T02:10:58
225,277,926
0
0
Apache-2.0
2019-12-02T03:54:17
2019-12-02T03:32:51
JavaScript
UTF-8
Java
false
false
379
java
package com.atguigu.gmall.sms.dao; import com.atguigu.gmall.sms.entity.SpuBoundsEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; /** * 商品spu积分设置 * * @author 530 * @email [email protected] * @date 2019-12-02 19:14:37 */ @Mapper public interface SpuBoundsDao extends BaseMapper<SpuBoundsEntity> { }
15ecb5377ad4dc338649756d5622ff7bd9ea5192
44572d942b6833493f99073a5b8ce0ce53288a88
/src/polymorphism/MountainBike.java
d709d85befa25e028ca2d9e0ce9944ff32d42571
[]
no_license
deashadow/StormsurgeJAVA
a308ff4e562abd91587de128dd0676dd7c087f56
7db896c47af8c67f0efd29496ad6d9e48e4a7d73
refs/heads/main
2023-06-20T09:10:16.921788
2021-07-20T18:47:12
2021-07-20T18:47:12
384,498,981
0
0
null
null
null
null
UTF-8
Java
false
false
747
java
package polymorphism; public class MountainBike extends Bicycle { private String suspension; public MountainBike( int startCadence, int startSpeed, int startGear, String suspensionType){ super(startCadence, startSpeed, startGear); this.setSuspension(suspensionType); } public String getSuspension(){ return this.suspension; } public void setSuspension(String suspensionType) { this.suspension = suspensionType; } public void printDescription() { super.printDescription(); System.out.println("The " + "MountainBike has a" + getSuspension() + " suspension."); } }
26cab20a850a44c1f4c50c077d8e4594676f915f
e0e1dc1b1272119ee95001187d11232662327d34
/spring-drools/drools-demo-app-versioned/src/main/java/com/rmpader/springdrools/data/repository/RuleArtifactRepository.java
b50eaefd10cddfe8a40bde3f888850877c685d9b
[]
no_license
tomng92/blogstuff
92f8aa416c1fad61a37e03416ef9be4e605dfcab
5ebee2c81192ed09fa29e93e8a245853754c92dc
refs/heads/master
2021-08-14T22:52:50.549464
2017-11-16T23:23:24
2017-11-16T23:23:24
111,033,340
0
0
null
2017-11-16T23:21:03
2017-11-16T23:21:01
null
UTF-8
Java
false
false
346
java
package com.rmpader.springdrools.data.repository; import com.rmpader.springdrools.data.domain.RuleArtifact; import org.springframework.data.repository.PagingAndSortingRepository; /** * @author RMPader */ public interface RuleArtifactRepository extends PagingAndSortingRepository<RuleArtifact, Long> { RuleArtifact findByActiveTrue(); }