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
ef4aaaf72366fb0b0a95837da00172c7bf2d5458
2e59950c3a0e32c9748c1e3303d5530f6e9b67ca
/Thinksns_v4.0/src/com/abcs/sociax/t4/android/topic/FragmentRecommendTopicList.java
e642f08ce5136dfd4d7378711025616aafe4a8ea
[]
no_license
xiaozhugua/Myhuarenb
a27e87451c792a76ade79fc29d7050997ac2bdf6
9a81815ce90a7b4e5c22ff99fb8fc5e13844d326
refs/heads/master
2021-01-23T02:05:42.432793
2017-05-31T04:05:42
2017-05-31T04:05:42
92,902,840
0
1
null
null
null
null
UTF-8
Java
false
false
3,602
java
package com.abcs.sociax.t4.android.topic; import android.app.Activity; import android.view.View; import android.widget.AdapterView; import com.abcs.sociax.android.R; import com.abcs.sociax.api.Api; import com.abcs.sociax.modle.RecentTopic; import com.abcs.sociax.t4.adapter.AdapterTopicfromT3; import com.thinksns.sociax.thinksnsbase.base.BaseListFragment; import com.thinksns.sociax.thinksnsbase.base.BaseListPresenter; import com.thinksns.sociax.thinksnsbase.base.ListBaseAdapter; import com.thinksns.sociax.thinksnsbase.bean.ListData; import org.greenrobot.eventbus.EventBus; import org.json.JSONArray; import org.json.JSONObject; import java.io.Serializable; /** * Created by hedong on 16/3/9. * ๅˆ›ๅปบๅพฎๅšๆ—ถ๏ผŒ้€‰ๆ‹ฉๆ’ๅ…ฅไธ€ๆก่ฏ้ข˜ */ public class FragmentRecommendTopicList extends BaseListFragment<RecentTopic> { private AtTopicActivity topicActivity; @Override public void onAttach(Activity activity) { super.onAttach(activity); if(activity instanceof AtTopicActivity) topicActivity = (AtTopicActivity)activity; } public static FragmentRecommendTopicList newInstance() { FragmentRecommendTopicList fragmentRecommendTopicList = new FragmentRecommendTopicList(); return fragmentRecommendTopicList; } @Override protected ListBaseAdapter<RecentTopic> getListAdapter() { return new AdapterTopicfromT3(getActivity()); } @Override protected void initListViewAttrs() { super.initListViewAttrs(); mListView.setSelector(getResources().getDrawable(R.drawable.listitem_selector)); } @Override protected void initPresenter() { mPresenter = new BaseListPresenter<RecentTopic>(getActivity(), this) { @Override public ListData<RecentTopic> parseList(String result) { try { JSONArray jsonArray = new JSONArray(result); ListData<RecentTopic> listData = new ListData<RecentTopic>(); for (int j = 0; j < jsonArray.length(); j++) { JSONObject jsonTopic = jsonArray.getJSONObject(j); RecentTopic reTopic = new RecentTopic(jsonTopic); listData.add(reTopic); } return listData; } catch (Exception e) { e.printStackTrace(); } return null; } @Override protected ListData<RecentTopic> readList(Serializable seri) { return (ListData<RecentTopic>)seri; } @Override public String getCachePrefix() { return "topic_list"; } @Override public void loadNetData() { new Api.Users().getRecentTopic(getPageSize(),getMaxId(), mHandler); } }; mPresenter.setCacheKey("recommend_topic"); } @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { RecentTopic topic = mAdapter.getItem((int)id); if(topic == null) { return; } EventBus.getDefault().post(topic); if(topicActivity != null) topicActivity.setResult(topic.getName()); } @Override public void onLoadDataSuccess(ListData<RecentTopic> data) { mEmptyLayout.setErrorImag(R.drawable.ic_no_nr); mEmptyLayout.setNoDataContent(getResources().getString(R.string.empty_content)); super.onLoadDataSuccess(data); } }
55e6195803f1f972a8d6cc366d37796c71d8048f
8296ebddaa7e807806ef05885a007c23cd7546ab
/app/build/gen/com/gsoe/nuba/BuildConfig.java
ff702bf87836d90ae20bbb7c69ba33d0e97fcd49
[]
no_license
jsturmoeh/nuba
1d58ddec2d2b7b7182de5a311ccf7e42faacdebc
70fb3e94f1baa48b41cab4ce2751461e43730834
refs/heads/master
2020-07-30T01:40:40.477915
2019-09-21T19:23:44
2019-09-21T19:23:44
210,041,123
0
0
null
null
null
null
UTF-8
Java
false
false
155
java
/** Automatically generated file. DO NOT MODIFY */ package com.gsoe.nuba; public final class BuildConfig { public final static boolean DEBUG = true; }
873387e4d106b6c81c73ff384d9b975eb74122a7
5177176d110e0afe77c857229d2e4a717e7e0940
/AnShengApplication/zatgov/src/main/java/com/safetys/greenrobot/greendao/gen/DaoSession.java
5f5fe02aa0faaa39bf50072c03f0bcaa0711e10d
[]
no_license
RickyYu/CommonAndroid
12bf6793d3b814f0bcb694605a7cf49cf0ed93db
25fe2535d39ece61715355eed0d330e94f294039
refs/heads/master
2021-08-30T13:39:47.750892
2017-12-18T05:46:40
2017-12-18T05:46:40
106,800,196
0
0
null
null
null
null
UTF-8
Java
false
false
2,481
java
package com.safetys.greenrobot.greendao.gen; import java.util.Map; import org.greenrobot.greendao.AbstractDao; import org.greenrobot.greendao.AbstractDaoSession; import org.greenrobot.greendao.database.Database; import org.greenrobot.greendao.identityscope.IdentityScopeType; import org.greenrobot.greendao.internal.DaoConfig; import com.safetys.zatgov.bean.CompanyVo; import com.safetys.zatgov.bean.ReviewInfoGov; import com.safetys.zatgov.bean.UserInfo; import com.safetys.greenrobot.greendao.gen.CompanyVoDao; import com.safetys.greenrobot.greendao.gen.ReviewInfoGovDao; import com.safetys.greenrobot.greendao.gen.UserInfoDao; // THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT. /** * {@inheritDoc} * * @see org.greenrobot.greendao.AbstractDaoSession */ public class DaoSession extends AbstractDaoSession { private final DaoConfig companyVoDaoConfig; private final DaoConfig reviewInfoGovDaoConfig; private final DaoConfig userInfoDaoConfig; private final CompanyVoDao companyVoDao; private final ReviewInfoGovDao reviewInfoGovDao; private final UserInfoDao userInfoDao; public DaoSession(Database db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig> daoConfigMap) { super(db); companyVoDaoConfig = daoConfigMap.get(CompanyVoDao.class).clone(); companyVoDaoConfig.initIdentityScope(type); reviewInfoGovDaoConfig = daoConfigMap.get(ReviewInfoGovDao.class).clone(); reviewInfoGovDaoConfig.initIdentityScope(type); userInfoDaoConfig = daoConfigMap.get(UserInfoDao.class).clone(); userInfoDaoConfig.initIdentityScope(type); companyVoDao = new CompanyVoDao(companyVoDaoConfig, this); reviewInfoGovDao = new ReviewInfoGovDao(reviewInfoGovDaoConfig, this); userInfoDao = new UserInfoDao(userInfoDaoConfig, this); registerDao(CompanyVo.class, companyVoDao); registerDao(ReviewInfoGov.class, reviewInfoGovDao); registerDao(UserInfo.class, userInfoDao); } public void clear() { companyVoDaoConfig.clearIdentityScope(); reviewInfoGovDaoConfig.clearIdentityScope(); userInfoDaoConfig.clearIdentityScope(); } public CompanyVoDao getCompanyVoDao() { return companyVoDao; } public ReviewInfoGovDao getReviewInfoGovDao() { return reviewInfoGovDao; } public UserInfoDao getUserInfoDao() { return userInfoDao; } }
5f5d5035e71495b8af0807f9428a31c3848e45e7
e0e5fb00b9225fc78e4ee282c4c8b22a26b38bfb
/src/Human_Action_Backend/Action_ControllerNetwork.java
38cda3af907ff43b1a9b8e03ecc07ce18d3395c3
[]
no_license
vprvix/Kamisado
a23d192b3f9fe07751cdcb53121ace0ce10dc6dc
d8e12c39723d4d1c26f4586e4884210b876e7ffe
refs/heads/master
2021-08-23T11:51:12.255566
2017-12-04T19:58:26
2017-12-04T19:58:26
113,084,862
0
0
null
null
null
null
UTF-8
Java
false
false
4,489
java
package Human_Action_Backend; import java.util.List; import java.util.StringTokenizer; import javax.swing.JOptionPane; import Data.Move; import Exceptions.DrawException; import Exceptions.GameWonException; import Exceptions.RoundWinException; import GUIs.GameUI; import Modelling.BoardModel; import Network.Client; import Network.Network_Client; import Players.Ai; import Players.Player; public class Action_ControllerNetwork implements Action_Controller_GUI { GameUI gameUI; Network_Client NC; String remoteUser; Thread listen; BoardModel currentModel; Move newMove; public Action_ControllerNetwork(GameUI gUI, String userName) { gameUI = gUI; NC = new Client(); String ip = JOptionPane.showInputDialog("Host's address: ", "192.168.1.2"); NC.connect(ip, userName); remoteUser = NC.getUsername(); currentModel = NC.getModel(); gameUI.updateUI(currentModel); currentModel = null; listen(); } @Override public boolean buttonBoardClick(String buttonName) { if (currentModel != null) { StringTokenizer buttonPosition = new StringTokenizer(buttonName, ","); int x = Integer.valueOf(buttonPosition.nextToken()); int y = Integer.valueOf(buttonPosition.nextToken()); if (!currentModel.isFirstTurn()) { for (Move move : currentModel.getAvailibleMoves()) { if (move.getTarget()[0] == x && move.getTarget()[1] == y) { try { if (currentModel.isValidMove(move)) { currentModel.movePiece(move.getTarget()); updateMaster(move); } else { display("Invalid move"); } } catch (RoundWinException e) { if (e.getWinner().getScore() >= currentModel.REQUIRED_SCORE) { display("Game winner"); NC.send(move); this.resign(); } else { display("Round Winner"); updateMaster(move); } } catch (GameWonException e) { display("Game winner"); NC.send(move); this.resign(); } catch (DrawException e) { display("Draw"); updateMaster(move); } } } return true; } else { if (y == 7) { newMove = new Move(); int[] coord = { x, y }; newMove.setOrigin(coord); try { currentModel.movePiece(x, y); } catch (RoundWinException | DrawException | GameWonException e) { } return true; } else if (newMove != null) { newMove.setTarget(x, y); try { currentModel.movePiece(x, y); } catch (RoundWinException | DrawException | GameWonException e) { } NC.send(newMove); return true; } else { return false; } } } else { display("Not your turn"); return false; } } private void updateMaster(Move move) { NC.send(move); gameUI.updateUI(currentModel); currentModel = null; } private void listen() { listen = new Thread(new Runnable() { public void run() { while (NC != null && !NC.isClosed()) { currentModel = NC.getModel(); if (currentModel != null) { if (currentModel.getCurrentPlayer() == null) { display("This is our darkest hour, Good Bye"); NC.close(); } else { gameUI.updateUI(currentModel); currentModel.setGameUI(gameUI); } } } } }); listen.start(); } @Override public ActionController saveButtonClick() { if (currentModel != null) { Player AI = new Ai(remoteUser, 2); if (currentModel.getfirstPlayer().getUsername().equals(remoteUser)) { ActionController returnable = new ActionControllerLocalSingle(currentModel, currentModel.getfirstPlayer(), AI); return returnable; } else { ActionController returnable = new ActionControllerLocalSingle(currentModel, currentModel.getsecondPlayer(), AI); return returnable; } } display("Needs to be your turn to save"); return null; } @Override public boolean loadButtonClick(GameUI gameUI, String FileADDR) { return false; } @Override public boolean undoButtonClick() { return false; } @Override public boolean exitButtonClick() { return false; } @Override public List<String> loadStart() { return null; } @Override public void resetUI(GameUI gameUI) { this.gameUI = gameUI; currentModel.setGameUI(gameUI); } @Override public void resign() { NC.close(); if (currentModel != null) currentModel = null; } @Override public void inGameResign() { NC.close(); } private void display(String str) { JOptionPane.showMessageDialog(null, str); } }
7ccf1cb9c6369229d86278df07c04adb7777c1bd
954da2cee5ce5f3011e85f5442f3424ac48acd95
/src/io/github/christopher/algorithm/leetcode/happy_number/Solution.java
fc5d9de4987a940b0b9d104aabe14b9516753086
[]
no_license
christopher-ustb/algorithm
ed9072c4d10a98d307835738b20d00a30c3a973d
ecb34a810bd9e604e70da47826043375453a5567
refs/heads/master
2021-01-12T09:59:30.626724
2020-04-22T09:24:50
2020-04-22T09:24:50
76,327,381
0
0
null
null
null
null
UTF-8
Java
false
false
962
java
package io.github.christopher.algorithm.leetcode.happy_number; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; /** * @author wangchao003 20/2/17. */ public class Solution { private Set<Integer> set = new HashSet<>(); public boolean isHappy(int n) { if (set.contains(n)) { return false; } else { set.add(n); } List<Integer> bits10 = new ArrayList<>(); while (n != 0) { bits10.add(n % 10); n /= 10; } int sumOfBitsSquare = 0; for (Integer b : bits10) { sumOfBitsSquare += b * b; } if (sumOfBitsSquare == 1) { return true; } else { return isHappy(sumOfBitsSquare); } } public static void main(String[] args) { Solution solution = new Solution(); System.out.println(solution.isHappy(18)); } }
9231a04c7e3d1244a695d54339230ec5a6e94e13
26af630184ef6ddfc5fb068e7187259d0fed9858
/src/test/java/org/elasticsearch/demo/BasicTest.java
56030e991f07ed94261cb88c9bbf4951a66a4c80
[]
no_license
moisei/elasticsearch.demo
0b0eb3c14c114a0700329c0c7fa0df11c5d992fc
600732ab7f86f1322436d85716831de89788eb00
refs/heads/master
2021-01-17T21:54:09.178066
2011-12-03T10:16:47
2011-12-03T10:16:47
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,786
java
package org.elasticsearch.demo; import org.elasticsearch.action.search.SearchResponse; import org.elasticsearch.client.Client; import org.elasticsearch.client.Requests; import org.elasticsearch.common.xcontent.XContentFactory; import org.elasticsearch.index.query.QueryBuilder; import org.elasticsearch.index.query.QueryBuilders; import org.elasticsearch.node.Node; import org.elasticsearch.node.NodeBuilder; import org.elasticsearch.search.SearchHit; import org.testng.annotations.Test; import java.io.IOException; import java.util.ArrayList; import java.util.List; import static org.testng.Assert.assertEquals; import static org.testng.Assert.assertTrue; public class BasicTest extends AbstractTest { private byte[] createSource(String room, String color) throws IOException { return XContentFactory.jsonBuilder() .startObject() .field("room", room) .field("color", color) .endObject() .copiedBytes(); } @Test public void simple() throws IOException { // For unit tests it is recommended to use local node. // This is to ensure that your node will never join existing cluster on the network. Node node = NodeBuilder.nodeBuilder() .settings(settings) .local(true) .node(); Client client = node.client(); client.prepareIndex("house", "room", "1").setSource(createSource("livingroom","red")).execute().actionGet(); client.prepareIndex("house", "room", "2").setSource(createSource("familyroom","white")).execute().actionGet(); client.prepareIndex("house", "room", "3").setSource(createSource("kitchen","blue")).execute().actionGet(); client.prepareIndex("house", "room", "4").setSource(createSource("bathroom","white")).execute().actionGet(); client.prepareIndex("house", "room", "5").setSource(createSource("garage","blue")).execute().actionGet(); client.admin().indices().refresh(Requests.refreshRequest("_all")).actionGet(); QueryBuilder queryBuilder = QueryBuilders.termQuery("color", "white"); SearchResponse resp = client.prepareSearch("house") .setTypes("room") // .setSearchType(SearchType.DEFAULT) .setQuery(queryBuilder) // .setFrom(0).setSize(60).setExplain(true) .execute() .actionGet(); List<String> expected = new ArrayList<String>(); expected.add("2"); expected.add("4"); assertEquals(expected.size(), resp.hits().getTotalHits()); for (SearchHit hit : resp.hits().getHits()) { assertTrue(expected.contains(hit.id())); } client.close(); node.close(); } }
36ba8aca069185906b642440ae6904228b51f0d5
ae5188951cce9a02934bd6f975d568cb69c9aa5f
/router/build/generated/source/r/debug/com/hpdroid/router/R.java
8e1913858cb9f661b793bf21b4e526a9a5b7a359
[]
no_license
marryperry/Common
46793b7cf5cc143dfa63900d15fcf398c3d38643
b27ad2d69551d02139443339d7d6928ba634fc86
refs/heads/master
2020-06-12T16:35:20.706042
2016-12-26T10:10:29
2016-12-26T10:10:29
75,793,600
1
0
null
2016-12-07T05:55:02
2016-12-07T03:02:06
Java
UTF-8
Java
false
false
368,517
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.hpdroid.router; public final class R { public static final class anim { public static int abc_fade_in=0x7f040000; public static int abc_fade_out=0x7f040001; public static int abc_grow_fade_in_from_bottom=0x7f040002; public static int abc_popup_enter=0x7f040003; public static int abc_popup_exit=0x7f040004; public static int abc_shrink_fade_out_from_bottom=0x7f040005; public static int abc_slide_in_bottom=0x7f040006; public static int abc_slide_in_top=0x7f040007; public static int abc_slide_out_bottom=0x7f040008; public static int abc_slide_out_top=0x7f040009; } public static final class attr { /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int actionBarDivider=0x7f01003b; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int actionBarItemBackground=0x7f01003c; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int actionBarPopupTheme=0x7f010035; /** <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 int actionBarSize=0x7f01003a; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int actionBarSplitStyle=0x7f010037; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int actionBarStyle=0x7f010036; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int actionBarTabBarStyle=0x7f010031; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int actionBarTabStyle=0x7f010030; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int actionBarTabTextStyle=0x7f010032; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int actionBarTheme=0x7f010038; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int actionBarWidgetTheme=0x7f010039; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int actionButtonStyle=0x7f010055; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int actionDropDownStyle=0x7f010051; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int actionLayout=0x7f0100a3; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int actionMenuTextAppearance=0x7f01003d; /** <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 int actionMenuTextColor=0x7f01003e; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int actionModeBackground=0x7f010041; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int actionModeCloseButtonStyle=0x7f010040; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int actionModeCloseDrawable=0x7f010043; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int actionModeCopyDrawable=0x7f010045; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int actionModeCutDrawable=0x7f010044; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int actionModeFindDrawable=0x7f010049; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int actionModePasteDrawable=0x7f010046; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int actionModePopupWindowStyle=0x7f01004b; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int actionModeSelectAllDrawable=0x7f010047; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int actionModeShareDrawable=0x7f010048; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int actionModeSplitBackground=0x7f010042; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int actionModeStyle=0x7f01003f; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int actionModeWebSearchDrawable=0x7f01004a; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int actionOverflowButtonStyle=0x7f010033; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int actionOverflowMenuStyle=0x7f010034; /** <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 int actionProviderClass=0x7f0100a5; /** <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 int actionViewClass=0x7f0100a4; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int activityChooserViewStyle=0x7f01005d; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int alertDialogButtonGroupStyle=0x7f010080; /** <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 int alertDialogCenterButtons=0x7f010081; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int alertDialogStyle=0x7f01007f; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int alertDialogTheme=0x7f010082; /** <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 int allowStacking=0x7f010094; /** <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 int arrowHeadLength=0x7f01009b; /** <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 int arrowShaftLength=0x7f01009c; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int autoCompleteTextViewStyle=0x7f010087; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int background=0x7f01000c; /** <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 int backgroundSplit=0x7f01000e; /** <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 int backgroundStacked=0x7f01000d; /** <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 int backgroundTint=0x7f0100cf; /** <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>src_over</code></td><td>3</td><td></td></tr> <tr><td><code>src_in</code></td><td>5</td><td></td></tr> <tr><td><code>src_atop</code></td><td>9</td><td></td></tr> <tr><td><code>multiply</code></td><td>14</td><td></td></tr> <tr><td><code>screen</code></td><td>15</td><td></td></tr> </table> */ public static int backgroundTintMode=0x7f0100d0; /** <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 int barLength=0x7f01009d; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int borderlessButtonStyle=0x7f01005a; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int buttonBarButtonStyle=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 int buttonBarNegativeButtonStyle=0x7f010085; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int buttonBarNeutralButtonStyle=0x7f010086; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int buttonBarPositiveButtonStyle=0x7f010084; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int buttonBarStyle=0x7f010056; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int buttonPanelSideLayout=0x7f01001f; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int buttonStyle=0x7f010088; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int buttonStyleSmall=0x7f010089; /** <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 int buttonTint=0x7f010095; /** <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>src_over</code></td><td>3</td><td></td></tr> <tr><td><code>src_in</code></td><td>5</td><td></td></tr> <tr><td><code>src_atop</code></td><td>9</td><td></td></tr> <tr><td><code>multiply</code></td><td>14</td><td></td></tr> <tr><td><code>screen</code></td><td>15</td><td></td></tr> </table> */ public static int buttonTintMode=0x7f010096; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int checkboxStyle=0x7f01008a; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int checkedTextViewStyle=0x7f01008b; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int closeIcon=0x7f0100ad; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int closeItemLayout=0x7f01001c; /** <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 int collapseContentDescription=0x7f0100c6; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int collapseIcon=0x7f0100c5; /** <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 int color=0x7f010097; /** <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 int colorAccent=0x7f010078; /** <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 int colorButtonNormal=0x7f01007c; /** <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 int colorControlActivated=0x7f01007a; /** <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 int colorControlHighlight=0x7f01007b; /** <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 int colorControlNormal=0x7f010079; /** <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 int colorPrimary=0x7f010076; /** <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 int colorPrimaryDark=0x7f010077; /** <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 int colorSwitchThumbNormal=0x7f01007d; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int commitIcon=0x7f0100b2; /** <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 int contentInsetEnd=0x7f010017; /** <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 int contentInsetLeft=0x7f010018; /** <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 int contentInsetRight=0x7f010019; /** <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 int contentInsetStart=0x7f010016; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int controlBackground=0x7f01007e; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int customNavigationLayout=0x7f01000f; /** <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 int defaultQueryHint=0x7f0100ac; /** <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 int dialogPreferredPadding=0x7f01004f; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int dialogTheme=0x7f01004e; /** <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 int displayOptions=0x7f010005; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int divider=0x7f01000b; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int dividerHorizontal=0x7f01005c; /** <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 int dividerPadding=0x7f0100a1; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int dividerVertical=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 int drawableSize=0x7f010099; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int drawerArrowStyle=0x7f010000; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int dropDownListViewStyle=0x7f01006e; /** <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 int dropdownListPreferredItemHeight=0x7f010052; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int editTextBackground=0x7f010063; /** <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 int editTextColor=0x7f010062; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int editTextStyle=0x7f01008c; /** <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 int elevation=0x7f01001a; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int expandActivityOverflowButtonDrawable=0x7f01001e; /** <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 int gapBetweenBars=0x7f01009a; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int goIcon=0x7f0100ae; /** <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 int height=0x7f010001; /** <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 int hideOnContentScroll=0x7f010015; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int homeAsUpIndicator=0x7f010054; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int homeLayout=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 int icon=0x7f010009; /** <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 int iconifiedByDefault=0x7f0100aa; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int imageButtonStyle=0x7f010064; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int indeterminateProgressStyle=0x7f010012; /** <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 int initialActivityCount=0x7f01001d; /** <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 int isLightTheme=0x7f010002; /** <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 int itemPadding=0x7f010014; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int layout=0x7f0100a9; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int listChoiceBackgroundIndicator=0x7f010075; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int listDividerAlertDialog=0x7f010050; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int listItemLayout=0x7f010023; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int listLayout=0x7f010020; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int listPopupWindowStyle=0x7f01006f; /** <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 int listPreferredItemHeight=0x7f010069; /** <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 int listPreferredItemHeightLarge=0x7f01006b; /** <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 int listPreferredItemHeightSmall=0x7f01006a; /** <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 int listPreferredItemPaddingLeft=0x7f01006c; /** <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 int listPreferredItemPaddingRight=0x7f01006d; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int logo=0x7f01000a; /** <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 int logoDescription=0x7f0100c9; /** <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 int maxButtonHeight=0x7f0100c4; /** <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 int measureWithLargestChild=0x7f01009f; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int multiChoiceItemLayout=0x7f010021; /** <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 int navigationContentDescription=0x7f0100c8; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int navigationIcon=0x7f0100c7; /** <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></td></tr> <tr><td><code>listMode</code></td><td>1</td><td></td></tr> <tr><td><code>tabMode</code></td><td>2</td><td></td></tr> </table> */ public static int navigationMode=0x7f010004; /** <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 int overlapAnchor=0x7f0100a7; /** <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 int paddingEnd=0x7f0100cd; /** <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 int paddingStart=0x7f0100cc; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int panelBackground=0x7f010072; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int panelMenuListTheme=0x7f010074; /** <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 int panelMenuListWidth=0x7f010073; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int popupMenuStyle=0x7f010060; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int popupTheme=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 int popupWindowStyle=0x7f010061; /** <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 int preserveIconSpacing=0x7f0100a6; /** <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 int progressBarPadding=0x7f010013; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int progressBarStyle=0x7f010011; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int queryBackground=0x7f0100b4; /** <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 int queryHint=0x7f0100ab; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int radioButtonStyle=0x7f01008d; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int ratingBarStyle=0x7f01008e; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int ratingBarStyleIndicator=0x7f01008f; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int ratingBarStyleSmall=0x7f010090; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int searchHintIcon=0x7f0100b0; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int searchIcon=0x7f0100af; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int searchViewStyle=0x7f010068; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int seekBarStyle=0x7f010091; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int selectableItemBackground=0x7f010058; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int selectableItemBackgroundBorderless=0x7f010059; /** <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></td></tr> <tr><td><code>ifRoom</code></td><td>1</td><td></td></tr> <tr><td><code>always</code></td><td>2</td><td></td></tr> <tr><td><code>withText</code></td><td>4</td><td></td></tr> <tr><td><code>collapseActionView</code></td><td>8</td><td></td></tr> </table> */ public static int showAsAction=0x7f0100a2; /** <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 int showDividers=0x7f0100a0; /** <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 int showText=0x7f0100bc; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int singleChoiceItemLayout=0x7f010022; /** <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 int spinBars=0x7f010098; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int spinnerDropDownItemStyle=0x7f010053; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int spinnerStyle=0x7f010092; /** <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 int splitTrack=0x7f0100bb; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int srcCompat=0x7f010024; /** <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 int state_above_anchor=0x7f0100a8; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int submitBackground=0x7f0100b5; /** <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 int subtitle=0x7f010006; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int subtitleTextAppearance=0x7f0100be; /** <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 int subtitleTextColor=0x7f0100cb; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int subtitleTextStyle=0x7f010008; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int suggestionRowLayout=0x7f0100b3; /** <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 int switchMinWidth=0x7f0100b9; /** <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 int switchPadding=0x7f0100ba; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int switchStyle=0x7f010093; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int switchTextAppearance=0x7f0100b8; /** <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 int textAllCaps=0x7f010025; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int textAppearanceLargePopupMenu=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 int textAppearanceListItem=0x7f010070; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int textAppearanceListItemSmall=0x7f010071; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int textAppearanceSearchResultSubtitle=0x7f010066; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int textAppearanceSearchResultTitle=0x7f010065; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int textAppearanceSmallPopupMenu=0x7f01004d; /** <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 int textColorAlertDialogListItem=0x7f010083; /** <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 int textColorSearchUrl=0x7f010067; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int theme=0x7f0100ce; /** <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 int thickness=0x7f01009e; /** <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 int thumbTextPadding=0x7f0100b7; /** <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 int title=0x7f010003; /** <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 int titleMarginBottom=0x7f0100c3; /** <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 int titleMarginEnd=0x7f0100c1; /** <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 int titleMarginStart=0x7f0100c0; /** <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 int titleMarginTop=0x7f0100c2; /** <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 int titleMargins=0x7f0100bf; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int titleTextAppearance=0x7f0100bd; /** <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 int titleTextColor=0x7f0100ca; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int titleTextStyle=0x7f010007; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int toolbarNavigationButtonStyle=0x7f01005f; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int toolbarStyle=0x7f01005e; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int track=0x7f0100b6; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static int voiceIcon=0x7f0100b1; /** <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 int windowActionBar=0x7f010026; /** <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 int windowActionBarOverlay=0x7f010028; /** <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 int windowActionModeOverlay=0x7f010029; /** <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 int windowFixedHeightMajor=0x7f01002d; /** <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 int windowFixedHeightMinor=0x7f01002b; /** <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 int windowFixedWidthMajor=0x7f01002a; /** <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 int windowFixedWidthMinor=0x7f01002c; /** <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 int windowMinWidthMajor=0x7f01002e; /** <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 int windowMinWidthMinor=0x7f01002f; /** <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 int windowNoTitle=0x7f010027; } public static final class bool { public static int abc_action_bar_embed_tabs=0x7f060003; public static int abc_action_bar_embed_tabs_pre_jb=0x7f060001; public static int abc_action_bar_expanded_action_views_exclusive=0x7f060004; public static int abc_allow_stacked_button_bar=0x7f060000; public static int abc_config_actionMenuItemAllCaps=0x7f060005; public static int abc_config_allowActionMenuItemTextWithIcon=0x7f060002; public static int abc_config_closeDialogWhenTouchOutside=0x7f060006; public static int abc_config_showMenuShortcutsWhenKeyboardPresent=0x7f060007; } public static final class color { public static int abc_background_cache_hint_selector_material_dark=0x7f0a003a; public static int abc_background_cache_hint_selector_material_light=0x7f0a003b; public static int abc_color_highlight_material=0x7f0a003c; public static int abc_input_method_navigation_guard=0x7f0a0000; public static int abc_primary_text_disable_only_material_dark=0x7f0a003d; public static int abc_primary_text_disable_only_material_light=0x7f0a003e; public static int abc_primary_text_material_dark=0x7f0a003f; public static int abc_primary_text_material_light=0x7f0a0040; public static int abc_search_url_text=0x7f0a0041; public static int abc_search_url_text_normal=0x7f0a0001; public static int abc_search_url_text_pressed=0x7f0a0002; public static int abc_search_url_text_selected=0x7f0a0003; public static int abc_secondary_text_material_dark=0x7f0a0042; public static int abc_secondary_text_material_light=0x7f0a0043; public static int accent_material_dark=0x7f0a0004; public static int accent_material_light=0x7f0a0005; public static int background_floating_material_dark=0x7f0a0006; public static int background_floating_material_light=0x7f0a0007; public static int background_material_dark=0x7f0a0008; public static int background_material_light=0x7f0a0009; public static int bright_foreground_disabled_material_dark=0x7f0a000a; public static int bright_foreground_disabled_material_light=0x7f0a000b; public static int bright_foreground_inverse_material_dark=0x7f0a000c; public static int bright_foreground_inverse_material_light=0x7f0a000d; public static int bright_foreground_material_dark=0x7f0a000e; public static int bright_foreground_material_light=0x7f0a000f; public static int button_material_dark=0x7f0a0010; public static int button_material_light=0x7f0a0011; public static int dim_foreground_disabled_material_dark=0x7f0a0012; public static int dim_foreground_disabled_material_light=0x7f0a0013; public static int dim_foreground_material_dark=0x7f0a0014; public static int dim_foreground_material_light=0x7f0a0015; public static int foreground_material_dark=0x7f0a0016; public static int foreground_material_light=0x7f0a0017; public static int highlighted_text_material_dark=0x7f0a0018; public static int highlighted_text_material_light=0x7f0a0019; public static int hint_foreground_material_dark=0x7f0a001a; public static int hint_foreground_material_light=0x7f0a001b; public static int material_blue_grey_800=0x7f0a001c; public static int material_blue_grey_900=0x7f0a001d; public static int material_blue_grey_950=0x7f0a001e; public static int material_deep_teal_200=0x7f0a001f; public static int material_deep_teal_500=0x7f0a0020; public static int material_grey_100=0x7f0a0021; public static int material_grey_300=0x7f0a0022; public static int material_grey_50=0x7f0a0023; public static int material_grey_600=0x7f0a0024; public static int material_grey_800=0x7f0a0025; public static int material_grey_850=0x7f0a0026; public static int material_grey_900=0x7f0a0027; public static int primary_dark_material_dark=0x7f0a0028; public static int primary_dark_material_light=0x7f0a0029; public static int primary_material_dark=0x7f0a002a; public static int primary_material_light=0x7f0a002b; public static int primary_text_default_material_dark=0x7f0a002c; public static int primary_text_default_material_light=0x7f0a002d; public static int primary_text_disabled_material_dark=0x7f0a002e; public static int primary_text_disabled_material_light=0x7f0a002f; public static int ripple_material_dark=0x7f0a0030; public static int ripple_material_light=0x7f0a0031; public static int secondary_text_default_material_dark=0x7f0a0032; public static int secondary_text_default_material_light=0x7f0a0033; public static int secondary_text_disabled_material_dark=0x7f0a0034; public static int secondary_text_disabled_material_light=0x7f0a0035; public static int switch_thumb_disabled_material_dark=0x7f0a0036; public static int switch_thumb_disabled_material_light=0x7f0a0037; public static int switch_thumb_material_dark=0x7f0a0044; public static int switch_thumb_material_light=0x7f0a0045; public static int switch_thumb_normal_material_dark=0x7f0a0038; public static int switch_thumb_normal_material_light=0x7f0a0039; } public static final class dimen { public static int abc_action_bar_content_inset_material=0x7f07000d; public static int abc_action_bar_default_height_material=0x7f070001; public static int abc_action_bar_default_padding_end_material=0x7f07000e; public static int abc_action_bar_default_padding_start_material=0x7f07000f; public static int abc_action_bar_icon_vertical_padding_material=0x7f070011; public static int abc_action_bar_overflow_padding_end_material=0x7f070012; public static int abc_action_bar_overflow_padding_start_material=0x7f070013; public static int abc_action_bar_progress_bar_size=0x7f070002; public static int abc_action_bar_stacked_max_height=0x7f070014; public static int abc_action_bar_stacked_tab_max_width=0x7f070015; public static int abc_action_bar_subtitle_bottom_margin_material=0x7f070016; public static int abc_action_bar_subtitle_top_margin_material=0x7f070017; public static int abc_action_button_min_height_material=0x7f070018; public static int abc_action_button_min_width_material=0x7f070019; public static int abc_action_button_min_width_overflow_material=0x7f07001a; public static int abc_alert_dialog_button_bar_height=0x7f070000; public static int abc_button_inset_horizontal_material=0x7f07001b; public static int abc_button_inset_vertical_material=0x7f07001c; public static int abc_button_padding_horizontal_material=0x7f07001d; public static int abc_button_padding_vertical_material=0x7f07001e; public static int abc_config_prefDialogWidth=0x7f070005; public static int abc_control_corner_material=0x7f07001f; public static int abc_control_inset_material=0x7f070020; public static int abc_control_padding_material=0x7f070021; public static int abc_dialog_fixed_height_major=0x7f070006; public static int abc_dialog_fixed_height_minor=0x7f070007; public static int abc_dialog_fixed_width_major=0x7f070008; public static int abc_dialog_fixed_width_minor=0x7f070009; public static int abc_dialog_list_padding_vertical_material=0x7f070022; public static int abc_dialog_min_width_major=0x7f07000a; public static int abc_dialog_min_width_minor=0x7f07000b; public static int abc_dialog_padding_material=0x7f070023; public static int abc_dialog_padding_top_material=0x7f070024; public static int abc_disabled_alpha_material_dark=0x7f070025; public static int abc_disabled_alpha_material_light=0x7f070026; public static int abc_dropdownitem_icon_width=0x7f070027; public static int abc_dropdownitem_text_padding_left=0x7f070028; public static int abc_dropdownitem_text_padding_right=0x7f070029; public static int abc_edit_text_inset_bottom_material=0x7f07002a; public static int abc_edit_text_inset_horizontal_material=0x7f07002b; public static int abc_edit_text_inset_top_material=0x7f07002c; public static int abc_floating_window_z=0x7f07002d; public static int abc_list_item_padding_horizontal_material=0x7f07002e; public static int abc_panel_menu_list_width=0x7f07002f; public static int abc_search_view_preferred_width=0x7f070030; public static int abc_search_view_text_min_width=0x7f07000c; public static int abc_seekbar_track_background_height_material=0x7f070031; public static int abc_seekbar_track_progress_height_material=0x7f070032; public static int abc_select_dialog_padding_start_material=0x7f070033; public static int abc_switch_padding=0x7f070010; public static int abc_text_size_body_1_material=0x7f070034; public static int abc_text_size_body_2_material=0x7f070035; public static int abc_text_size_button_material=0x7f070036; public static int abc_text_size_caption_material=0x7f070037; public static int abc_text_size_display_1_material=0x7f070038; public static int abc_text_size_display_2_material=0x7f070039; public static int abc_text_size_display_3_material=0x7f07003a; public static int abc_text_size_display_4_material=0x7f07003b; public static int abc_text_size_headline_material=0x7f07003c; public static int abc_text_size_large_material=0x7f07003d; public static int abc_text_size_medium_material=0x7f07003e; public static int abc_text_size_menu_material=0x7f07003f; public static int abc_text_size_small_material=0x7f070040; public static int abc_text_size_subhead_material=0x7f070041; public static int abc_text_size_subtitle_material_toolbar=0x7f070003; public static int abc_text_size_title_material=0x7f070042; public static int abc_text_size_title_material_toolbar=0x7f070004; public static int disabled_alpha_material_dark=0x7f070043; public static int disabled_alpha_material_light=0x7f070044; public static int highlight_alpha_material_colored=0x7f070045; public static int highlight_alpha_material_dark=0x7f070046; public static int highlight_alpha_material_light=0x7f070047; public static int notification_large_icon_height=0x7f070048; public static int notification_large_icon_width=0x7f070049; public static int notification_subtext_size=0x7f07004a; } public static final class drawable { public static int abc_ab_share_pack_mtrl_alpha=0x7f020000; public static int abc_action_bar_item_background_material=0x7f020001; public static int abc_btn_borderless_material=0x7f020002; public static int abc_btn_check_material=0x7f020003; public static int abc_btn_check_to_on_mtrl_000=0x7f020004; public static int abc_btn_check_to_on_mtrl_015=0x7f020005; public static int abc_btn_colored_material=0x7f020006; public static int abc_btn_default_mtrl_shape=0x7f020007; public static int abc_btn_radio_material=0x7f020008; public static int abc_btn_radio_to_on_mtrl_000=0x7f020009; public static int abc_btn_radio_to_on_mtrl_015=0x7f02000a; public static int abc_btn_rating_star_off_mtrl_alpha=0x7f02000b; public static int abc_btn_rating_star_on_mtrl_alpha=0x7f02000c; public static int abc_btn_switch_to_on_mtrl_00001=0x7f02000d; public static int abc_btn_switch_to_on_mtrl_00012=0x7f02000e; public static int abc_cab_background_internal_bg=0x7f02000f; public static int abc_cab_background_top_material=0x7f020010; public static int abc_cab_background_top_mtrl_alpha=0x7f020011; public static int abc_control_background_material=0x7f020012; public static int abc_dialog_material_background_dark=0x7f020013; public static int abc_dialog_material_background_light=0x7f020014; public static int abc_edit_text_material=0x7f020015; public static int abc_ic_ab_back_mtrl_am_alpha=0x7f020016; public static int abc_ic_clear_mtrl_alpha=0x7f020017; public static int abc_ic_commit_search_api_mtrl_alpha=0x7f020018; public static int abc_ic_go_search_api_mtrl_alpha=0x7f020019; public static int abc_ic_menu_copy_mtrl_am_alpha=0x7f02001a; public static int abc_ic_menu_cut_mtrl_alpha=0x7f02001b; public static int abc_ic_menu_moreoverflow_mtrl_alpha=0x7f02001c; public static int abc_ic_menu_paste_mtrl_am_alpha=0x7f02001d; public static int abc_ic_menu_selectall_mtrl_alpha=0x7f02001e; public static int abc_ic_menu_share_mtrl_alpha=0x7f02001f; public static int abc_ic_search_api_mtrl_alpha=0x7f020020; public static int abc_ic_star_black_16dp=0x7f020021; public static int abc_ic_star_black_36dp=0x7f020022; public static int abc_ic_star_half_black_16dp=0x7f020023; public static int abc_ic_star_half_black_36dp=0x7f020024; public static int abc_ic_voice_search_api_mtrl_alpha=0x7f020025; public static int abc_item_background_holo_dark=0x7f020026; public static int abc_item_background_holo_light=0x7f020027; public static int abc_list_divider_mtrl_alpha=0x7f020028; public static int abc_list_focused_holo=0x7f020029; public static int abc_list_longpressed_holo=0x7f02002a; public static int abc_list_pressed_holo_dark=0x7f02002b; public static int abc_list_pressed_holo_light=0x7f02002c; public static int abc_list_selector_background_transition_holo_dark=0x7f02002d; public static int abc_list_selector_background_transition_holo_light=0x7f02002e; public static int abc_list_selector_disabled_holo_dark=0x7f02002f; public static int abc_list_selector_disabled_holo_light=0x7f020030; public static int abc_list_selector_holo_dark=0x7f020031; public static int abc_list_selector_holo_light=0x7f020032; public static int abc_menu_hardkey_panel_mtrl_mult=0x7f020033; public static int abc_popup_background_mtrl_mult=0x7f020034; public static int abc_ratingbar_full_material=0x7f020035; public static int abc_ratingbar_indicator_material=0x7f020036; public static int abc_ratingbar_small_material=0x7f020037; public static int abc_scrubber_control_off_mtrl_alpha=0x7f020038; public static int abc_scrubber_control_to_pressed_mtrl_000=0x7f020039; public static int abc_scrubber_control_to_pressed_mtrl_005=0x7f02003a; public static int abc_scrubber_primary_mtrl_alpha=0x7f02003b; public static int abc_scrubber_track_mtrl_alpha=0x7f02003c; public static int abc_seekbar_thumb_material=0x7f02003d; public static int abc_seekbar_track_material=0x7f02003e; public static int abc_spinner_mtrl_am_alpha=0x7f02003f; public static int abc_spinner_textfield_background_material=0x7f020040; public static int abc_switch_thumb_material=0x7f020041; public static int abc_switch_track_mtrl_alpha=0x7f020042; public static int abc_tab_indicator_material=0x7f020043; public static int abc_tab_indicator_mtrl_alpha=0x7f020044; public static int abc_text_cursor_material=0x7f020045; public static int abc_textfield_activated_mtrl_alpha=0x7f020046; public static int abc_textfield_default_mtrl_alpha=0x7f020047; public static int abc_textfield_search_activated_mtrl_alpha=0x7f020048; public static int abc_textfield_search_default_mtrl_alpha=0x7f020049; public static int abc_textfield_search_material=0x7f02004a; public static int notification_template_icon_bg=0x7f02004b; } public static final class id { public static int action0=0x7f0b0050; public static int action_bar=0x7f0b0041; public static int action_bar_activity_content=0x7f0b0000; public static int action_bar_container=0x7f0b0040; public static int action_bar_root=0x7f0b003c; public static int action_bar_spinner=0x7f0b0001; public static int action_bar_subtitle=0x7f0b0022; public static int action_bar_title=0x7f0b0021; public static int action_context_bar=0x7f0b0042; public static int action_divider=0x7f0b0054; public static int action_menu_divider=0x7f0b0002; public static int action_menu_presenter=0x7f0b0003; public static int action_mode_bar=0x7f0b003e; public static int action_mode_bar_stub=0x7f0b003d; public static int action_mode_close_button=0x7f0b0023; public static int activity_chooser_view_content=0x7f0b0024; public static int alertTitle=0x7f0b0030; public static int always=0x7f0b001c; public static int beginning=0x7f0b0019; public static int buttonPanel=0x7f0b002b; public static int cancel_action=0x7f0b0051; public static int checkbox=0x7f0b0039; public static int chronometer=0x7f0b0057; public static int collapseActionView=0x7f0b001d; public static int contentPanel=0x7f0b0031; public static int custom=0x7f0b0037; public static int customPanel=0x7f0b0036; public static int decor_content_parent=0x7f0b003f; public static int default_activity_button=0x7f0b0027; public static int disableHome=0x7f0b000c; public static int edit_query=0x7f0b0043; public static int end=0x7f0b001a; public static int end_padder=0x7f0b005c; public static int expand_activities_button=0x7f0b0025; public static int expanded_menu=0x7f0b0038; public static int home=0x7f0b0004; public static int homeAsUp=0x7f0b000d; public static int icon=0x7f0b0029; public static int ifRoom=0x7f0b001e; public static int image=0x7f0b0026; public static int info=0x7f0b005b; public static int line1=0x7f0b0055; public static int line3=0x7f0b0059; public static int listMode=0x7f0b0009; public static int list_item=0x7f0b0028; public static int media_actions=0x7f0b0053; public static int middle=0x7f0b001b; public static int multiply=0x7f0b0014; public static int never=0x7f0b001f; public static int none=0x7f0b000e; public static int normal=0x7f0b000a; public static int parentPanel=0x7f0b002d; public static int progress_circular=0x7f0b0005; public static int progress_horizontal=0x7f0b0006; public static int radio=0x7f0b003b; public static int screen=0x7f0b0015; public static int scrollIndicatorDown=0x7f0b0035; public static int scrollIndicatorUp=0x7f0b0032; public static int scrollView=0x7f0b0033; public static int search_badge=0x7f0b0045; public static int search_bar=0x7f0b0044; public static int search_button=0x7f0b0046; public static int search_close_btn=0x7f0b004b; public static int search_edit_frame=0x7f0b0047; public static int search_go_btn=0x7f0b004d; public static int search_mag_icon=0x7f0b0048; public static int search_plate=0x7f0b0049; public static int search_src_text=0x7f0b004a; public static int search_voice_btn=0x7f0b004e; public static int select_dialog_listview=0x7f0b004f; public static int shortcut=0x7f0b003a; public static int showCustom=0x7f0b000f; public static int showHome=0x7f0b0010; public static int showTitle=0x7f0b0011; public static int spacer=0x7f0b002c; public static int split_action_bar=0x7f0b0007; public static int src_atop=0x7f0b0016; public static int src_in=0x7f0b0017; public static int src_over=0x7f0b0018; public static int status_bar_latest_event_content=0x7f0b0052; public static int submit_area=0x7f0b004c; public static int tabMode=0x7f0b000b; public static int text=0x7f0b005a; public static int text2=0x7f0b0058; public static int textSpacerNoButtons=0x7f0b0034; public static int time=0x7f0b0056; public static int title=0x7f0b002a; public static int title_template=0x7f0b002f; public static int topPanel=0x7f0b002e; public static int up=0x7f0b0008; public static int useLogo=0x7f0b0012; public static int withText=0x7f0b0020; public static int wrap_content=0x7f0b0013; } public static final class integer { public static int abc_config_activityDefaultDur=0x7f090001; public static int abc_config_activityShortDur=0x7f090002; public static int abc_max_action_buttons=0x7f090000; public static int cancel_button_image_alpha=0x7f090003; public static int status_bar_notification_info_maxnum=0x7f090004; } public static final class layout { public static int abc_action_bar_title_item=0x7f030000; public static int abc_action_bar_up_container=0x7f030001; public static int abc_action_bar_view_list_nav_layout=0x7f030002; public static int abc_action_menu_item_layout=0x7f030003; public static int abc_action_menu_layout=0x7f030004; public static int abc_action_mode_bar=0x7f030005; public static int abc_action_mode_close_item_material=0x7f030006; public static int abc_activity_chooser_view=0x7f030007; public static int abc_activity_chooser_view_list_item=0x7f030008; public static int abc_alert_dialog_button_bar_material=0x7f030009; public static int abc_alert_dialog_material=0x7f03000a; public static int abc_dialog_title_material=0x7f03000b; public static int abc_expanded_menu_layout=0x7f03000c; public static int abc_list_menu_item_checkbox=0x7f03000d; public static int abc_list_menu_item_icon=0x7f03000e; public static int abc_list_menu_item_layout=0x7f03000f; public static int abc_list_menu_item_radio=0x7f030010; public static int abc_popup_menu_item_layout=0x7f030011; public static int abc_screen_content_include=0x7f030012; public static int abc_screen_simple=0x7f030013; public static int abc_screen_simple_overlay_action_mode=0x7f030014; public static int abc_screen_toolbar=0x7f030015; public static int abc_search_dropdown_item_icons_2line=0x7f030016; public static int abc_search_view=0x7f030017; public static int abc_select_dialog_material=0x7f030018; public static int notification_media_action=0x7f030019; public static int notification_media_cancel_action=0x7f03001a; public static int notification_template_big_media=0x7f03001b; public static int notification_template_big_media_narrow=0x7f03001c; public static int notification_template_lines=0x7f03001d; public static int notification_template_media=0x7f03001e; public static int notification_template_part_chronometer=0x7f03001f; public static int notification_template_part_time=0x7f030020; public static int select_dialog_item_material=0x7f030021; public static int select_dialog_multichoice_material=0x7f030022; public static int select_dialog_singlechoice_material=0x7f030023; public static int support_simple_spinner_dropdown_item=0x7f030024; } public static final class string { public static int abc_action_bar_home_description=0x7f050000; public static int abc_action_bar_home_description_format=0x7f050001; public static int abc_action_bar_home_subtitle_description_format=0x7f050002; public static int abc_action_bar_up_description=0x7f050003; public static int abc_action_menu_overflow_description=0x7f050004; public static int abc_action_mode_done=0x7f050005; public static int abc_activity_chooser_view_see_all=0x7f050006; public static int abc_activitychooserview_choose_application=0x7f050007; public static int abc_capital_off=0x7f050008; public static int abc_capital_on=0x7f050009; public static int abc_search_hint=0x7f05000a; public static int abc_searchview_description_clear=0x7f05000b; public static int abc_searchview_description_query=0x7f05000c; public static int abc_searchview_description_search=0x7f05000d; public static int abc_searchview_description_submit=0x7f05000e; public static int abc_searchview_description_voice=0x7f05000f; public static int abc_shareactionprovider_share_with=0x7f050010; public static int abc_shareactionprovider_share_with_application=0x7f050011; public static int abc_toolbar_collapse_description=0x7f050012; public static int app_name=0x7f050014; public static int status_bar_notification_info_overflow=0x7f050013; } public static final class style { public static int AlertDialog_AppCompat=0x7f080086; public static int AlertDialog_AppCompat_Light=0x7f080087; public static int Animation_AppCompat_Dialog=0x7f080088; public static int Animation_AppCompat_DropDownUp=0x7f080089; public static int Base_AlertDialog_AppCompat=0x7f08008a; public static int Base_AlertDialog_AppCompat_Light=0x7f08008b; public static int Base_Animation_AppCompat_Dialog=0x7f08008c; public static int Base_Animation_AppCompat_DropDownUp=0x7f08008d; public static int Base_DialogWindowTitle_AppCompat=0x7f08008e; public static int Base_DialogWindowTitleBackground_AppCompat=0x7f08008f; public static int Base_TextAppearance_AppCompat=0x7f080036; public static int Base_TextAppearance_AppCompat_Body1=0x7f080037; public static int Base_TextAppearance_AppCompat_Body2=0x7f080038; public static int Base_TextAppearance_AppCompat_Button=0x7f080020; public static int Base_TextAppearance_AppCompat_Caption=0x7f080039; public static int Base_TextAppearance_AppCompat_Display1=0x7f08003a; public static int Base_TextAppearance_AppCompat_Display2=0x7f08003b; public static int Base_TextAppearance_AppCompat_Display3=0x7f08003c; public static int Base_TextAppearance_AppCompat_Display4=0x7f08003d; public static int Base_TextAppearance_AppCompat_Headline=0x7f08003e; public static int Base_TextAppearance_AppCompat_Inverse=0x7f08000b; public static int Base_TextAppearance_AppCompat_Large=0x7f08003f; public static int Base_TextAppearance_AppCompat_Large_Inverse=0x7f08000c; public static int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Large=0x7f080040; public static int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Small=0x7f080041; public static int Base_TextAppearance_AppCompat_Medium=0x7f080042; public static int Base_TextAppearance_AppCompat_Medium_Inverse=0x7f08000d; public static int Base_TextAppearance_AppCompat_Menu=0x7f080043; public static int Base_TextAppearance_AppCompat_SearchResult=0x7f080090; public static int Base_TextAppearance_AppCompat_SearchResult_Subtitle=0x7f080044; public static int Base_TextAppearance_AppCompat_SearchResult_Title=0x7f080045; public static int Base_TextAppearance_AppCompat_Small=0x7f080046; public static int Base_TextAppearance_AppCompat_Small_Inverse=0x7f08000e; public static int Base_TextAppearance_AppCompat_Subhead=0x7f080047; public static int Base_TextAppearance_AppCompat_Subhead_Inverse=0x7f08000f; public static int Base_TextAppearance_AppCompat_Title=0x7f080048; public static int Base_TextAppearance_AppCompat_Title_Inverse=0x7f080010; public static int Base_TextAppearance_AppCompat_Widget_ActionBar_Menu=0x7f08007f; public static int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle=0x7f080049; public static int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse=0x7f08004a; public static int Base_TextAppearance_AppCompat_Widget_ActionBar_Title=0x7f08004b; public static int Base_TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse=0x7f08004c; public static int Base_TextAppearance_AppCompat_Widget_ActionMode_Subtitle=0x7f08004d; public static int Base_TextAppearance_AppCompat_Widget_ActionMode_Title=0x7f08004e; public static int Base_TextAppearance_AppCompat_Widget_Button=0x7f08004f; public static int Base_TextAppearance_AppCompat_Widget_Button_Inverse=0x7f080080; public static int Base_TextAppearance_AppCompat_Widget_DropDownItem=0x7f080091; public static int Base_TextAppearance_AppCompat_Widget_PopupMenu_Large=0x7f080050; public static int Base_TextAppearance_AppCompat_Widget_PopupMenu_Small=0x7f080051; public static int Base_TextAppearance_AppCompat_Widget_Switch=0x7f080052; public static int Base_TextAppearance_AppCompat_Widget_TextView_SpinnerItem=0x7f080053; public static int Base_TextAppearance_Widget_AppCompat_ExpandedMenu_Item=0x7f080092; public static int Base_TextAppearance_Widget_AppCompat_Toolbar_Subtitle=0x7f080054; public static int Base_TextAppearance_Widget_AppCompat_Toolbar_Title=0x7f080055; public static int Base_Theme_AppCompat=0x7f080056; public static int Base_Theme_AppCompat_CompactMenu=0x7f080093; public static int Base_Theme_AppCompat_Dialog=0x7f080011; public static int Base_Theme_AppCompat_Dialog_Alert=0x7f080094; public static int Base_Theme_AppCompat_Dialog_FixedSize=0x7f080095; public static int Base_Theme_AppCompat_Dialog_MinWidth=0x7f080096; public static int Base_Theme_AppCompat_DialogWhenLarge=0x7f080001; public static int Base_Theme_AppCompat_Light=0x7f080057; public static int Base_Theme_AppCompat_Light_DarkActionBar=0x7f080097; public static int Base_Theme_AppCompat_Light_Dialog=0x7f080012; public static int Base_Theme_AppCompat_Light_Dialog_Alert=0x7f080098; public static int Base_Theme_AppCompat_Light_Dialog_FixedSize=0x7f080099; public static int Base_Theme_AppCompat_Light_Dialog_MinWidth=0x7f08009a; public static int Base_Theme_AppCompat_Light_DialogWhenLarge=0x7f080002; public static int Base_ThemeOverlay_AppCompat=0x7f08009b; public static int Base_ThemeOverlay_AppCompat_ActionBar=0x7f08009c; public static int Base_ThemeOverlay_AppCompat_Dark=0x7f08009d; public static int Base_ThemeOverlay_AppCompat_Dark_ActionBar=0x7f08009e; public static int Base_ThemeOverlay_AppCompat_Light=0x7f08009f; public static int Base_V11_Theme_AppCompat_Dialog=0x7f080013; public static int Base_V11_Theme_AppCompat_Light_Dialog=0x7f080014; public static int Base_V12_Widget_AppCompat_AutoCompleteTextView=0x7f08001c; public static int Base_V12_Widget_AppCompat_EditText=0x7f08001d; public static int Base_V21_Theme_AppCompat=0x7f080058; public static int Base_V21_Theme_AppCompat_Dialog=0x7f080059; public static int Base_V21_Theme_AppCompat_Light=0x7f08005a; public static int Base_V21_Theme_AppCompat_Light_Dialog=0x7f08005b; public static int Base_V22_Theme_AppCompat=0x7f08007d; public static int Base_V22_Theme_AppCompat_Light=0x7f08007e; public static int Base_V23_Theme_AppCompat=0x7f080081; public static int Base_V23_Theme_AppCompat_Light=0x7f080082; public static int Base_V7_Theme_AppCompat=0x7f0800a0; public static int Base_V7_Theme_AppCompat_Dialog=0x7f0800a1; public static int Base_V7_Theme_AppCompat_Light=0x7f0800a2; public static int Base_V7_Theme_AppCompat_Light_Dialog=0x7f0800a3; public static int Base_V7_Widget_AppCompat_AutoCompleteTextView=0x7f0800a4; public static int Base_V7_Widget_AppCompat_EditText=0x7f0800a5; public static int Base_Widget_AppCompat_ActionBar=0x7f0800a6; public static int Base_Widget_AppCompat_ActionBar_Solid=0x7f0800a7; public static int Base_Widget_AppCompat_ActionBar_TabBar=0x7f0800a8; public static int Base_Widget_AppCompat_ActionBar_TabText=0x7f08005c; public static int Base_Widget_AppCompat_ActionBar_TabView=0x7f08005d; public static int Base_Widget_AppCompat_ActionButton=0x7f08005e; public static int Base_Widget_AppCompat_ActionButton_CloseMode=0x7f08005f; public static int Base_Widget_AppCompat_ActionButton_Overflow=0x7f080060; public static int Base_Widget_AppCompat_ActionMode=0x7f0800a9; public static int Base_Widget_AppCompat_ActivityChooserView=0x7f0800aa; public static int Base_Widget_AppCompat_AutoCompleteTextView=0x7f08001e; public static int Base_Widget_AppCompat_Button=0x7f080061; public static int Base_Widget_AppCompat_Button_Borderless=0x7f080062; public static int Base_Widget_AppCompat_Button_Borderless_Colored=0x7f080063; public static int Base_Widget_AppCompat_Button_ButtonBar_AlertDialog=0x7f0800ab; public static int Base_Widget_AppCompat_Button_Colored=0x7f080083; public static int Base_Widget_AppCompat_Button_Small=0x7f080064; public static int Base_Widget_AppCompat_ButtonBar=0x7f080065; public static int Base_Widget_AppCompat_ButtonBar_AlertDialog=0x7f0800ac; public static int Base_Widget_AppCompat_CompoundButton_CheckBox=0x7f080066; public static int Base_Widget_AppCompat_CompoundButton_RadioButton=0x7f080067; public static int Base_Widget_AppCompat_CompoundButton_Switch=0x7f0800ad; public static int Base_Widget_AppCompat_DrawerArrowToggle=0x7f080000; public static int Base_Widget_AppCompat_DrawerArrowToggle_Common=0x7f0800ae; public static int Base_Widget_AppCompat_DropDownItem_Spinner=0x7f080068; public static int Base_Widget_AppCompat_EditText=0x7f08001f; public static int Base_Widget_AppCompat_ImageButton=0x7f080069; public static int Base_Widget_AppCompat_Light_ActionBar=0x7f0800af; public static int Base_Widget_AppCompat_Light_ActionBar_Solid=0x7f0800b0; public static int Base_Widget_AppCompat_Light_ActionBar_TabBar=0x7f0800b1; public static int Base_Widget_AppCompat_Light_ActionBar_TabText=0x7f08006a; public static int Base_Widget_AppCompat_Light_ActionBar_TabText_Inverse=0x7f08006b; public static int Base_Widget_AppCompat_Light_ActionBar_TabView=0x7f08006c; public static int Base_Widget_AppCompat_Light_PopupMenu=0x7f08006d; public static int Base_Widget_AppCompat_Light_PopupMenu_Overflow=0x7f08006e; public static int Base_Widget_AppCompat_ListPopupWindow=0x7f08006f; public static int Base_Widget_AppCompat_ListView=0x7f080070; public static int Base_Widget_AppCompat_ListView_DropDown=0x7f080071; public static int Base_Widget_AppCompat_ListView_Menu=0x7f080072; public static int Base_Widget_AppCompat_PopupMenu=0x7f080073; public static int Base_Widget_AppCompat_PopupMenu_Overflow=0x7f080074; public static int Base_Widget_AppCompat_PopupWindow=0x7f0800b2; public static int Base_Widget_AppCompat_ProgressBar=0x7f080015; public static int Base_Widget_AppCompat_ProgressBar_Horizontal=0x7f080016; public static int Base_Widget_AppCompat_RatingBar=0x7f080075; public static int Base_Widget_AppCompat_RatingBar_Indicator=0x7f080084; public static int Base_Widget_AppCompat_RatingBar_Small=0x7f080085; public static int Base_Widget_AppCompat_SearchView=0x7f0800b3; public static int Base_Widget_AppCompat_SearchView_ActionBar=0x7f0800b4; public static int Base_Widget_AppCompat_SeekBar=0x7f080076; public static int Base_Widget_AppCompat_Spinner=0x7f080077; public static int Base_Widget_AppCompat_Spinner_Underlined=0x7f080003; public static int Base_Widget_AppCompat_TextView_SpinnerItem=0x7f080078; public static int Base_Widget_AppCompat_Toolbar=0x7f0800b5; public static int Base_Widget_AppCompat_Toolbar_Button_Navigation=0x7f080079; public static int Platform_AppCompat=0x7f080017; public static int Platform_AppCompat_Light=0x7f080018; public static int Platform_ThemeOverlay_AppCompat=0x7f08007a; public static int Platform_ThemeOverlay_AppCompat_Dark=0x7f08007b; public static int Platform_ThemeOverlay_AppCompat_Light=0x7f08007c; public static int Platform_V11_AppCompat=0x7f080019; public static int Platform_V11_AppCompat_Light=0x7f08001a; public static int Platform_V14_AppCompat=0x7f080021; public static int Platform_V14_AppCompat_Light=0x7f080022; public static int Platform_Widget_AppCompat_Spinner=0x7f08001b; public static int RtlOverlay_DialogWindowTitle_AppCompat=0x7f080028; public static int RtlOverlay_Widget_AppCompat_ActionBar_TitleItem=0x7f080029; public static int RtlOverlay_Widget_AppCompat_DialogTitle_Icon=0x7f08002a; public static int RtlOverlay_Widget_AppCompat_PopupMenuItem=0x7f08002b; public static int RtlOverlay_Widget_AppCompat_PopupMenuItem_InternalGroup=0x7f08002c; public static int RtlOverlay_Widget_AppCompat_PopupMenuItem_Text=0x7f08002d; public static int RtlOverlay_Widget_AppCompat_Search_DropDown=0x7f08002e; public static int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon1=0x7f08002f; public static int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon2=0x7f080030; public static int RtlOverlay_Widget_AppCompat_Search_DropDown_Query=0x7f080031; public static int RtlOverlay_Widget_AppCompat_Search_DropDown_Text=0x7f080032; public static int RtlOverlay_Widget_AppCompat_SearchView_MagIcon=0x7f080033; public static int RtlUnderlay_Widget_AppCompat_ActionButton=0x7f080034; public static int RtlUnderlay_Widget_AppCompat_ActionButton_Overflow=0x7f080035; public static int TextAppearance_AppCompat=0x7f0800b6; public static int TextAppearance_AppCompat_Body1=0x7f0800b7; public static int TextAppearance_AppCompat_Body2=0x7f0800b8; public static int TextAppearance_AppCompat_Button=0x7f0800b9; public static int TextAppearance_AppCompat_Caption=0x7f0800ba; public static int TextAppearance_AppCompat_Display1=0x7f0800bb; public static int TextAppearance_AppCompat_Display2=0x7f0800bc; public static int TextAppearance_AppCompat_Display3=0x7f0800bd; public static int TextAppearance_AppCompat_Display4=0x7f0800be; public static int TextAppearance_AppCompat_Headline=0x7f0800bf; public static int TextAppearance_AppCompat_Inverse=0x7f0800c0; public static int TextAppearance_AppCompat_Large=0x7f0800c1; public static int TextAppearance_AppCompat_Large_Inverse=0x7f0800c2; public static int TextAppearance_AppCompat_Light_SearchResult_Subtitle=0x7f0800c3; public static int TextAppearance_AppCompat_Light_SearchResult_Title=0x7f0800c4; public static int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large=0x7f0800c5; public static int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small=0x7f0800c6; public static int TextAppearance_AppCompat_Medium=0x7f0800c7; public static int TextAppearance_AppCompat_Medium_Inverse=0x7f0800c8; public static int TextAppearance_AppCompat_Menu=0x7f0800c9; public static int TextAppearance_AppCompat_SearchResult_Subtitle=0x7f0800ca; public static int TextAppearance_AppCompat_SearchResult_Title=0x7f0800cb; public static int TextAppearance_AppCompat_Small=0x7f0800cc; public static int TextAppearance_AppCompat_Small_Inverse=0x7f0800cd; public static int TextAppearance_AppCompat_Subhead=0x7f0800ce; public static int TextAppearance_AppCompat_Subhead_Inverse=0x7f0800cf; public static int TextAppearance_AppCompat_Title=0x7f0800d0; public static int TextAppearance_AppCompat_Title_Inverse=0x7f0800d1; public static int TextAppearance_AppCompat_Widget_ActionBar_Menu=0x7f0800d2; public static int TextAppearance_AppCompat_Widget_ActionBar_Subtitle=0x7f0800d3; public static int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse=0x7f0800d4; public static int TextAppearance_AppCompat_Widget_ActionBar_Title=0x7f0800d5; public static int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse=0x7f0800d6; public static int TextAppearance_AppCompat_Widget_ActionMode_Subtitle=0x7f0800d7; public static int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse=0x7f0800d8; public static int TextAppearance_AppCompat_Widget_ActionMode_Title=0x7f0800d9; public static int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse=0x7f0800da; public static int TextAppearance_AppCompat_Widget_Button=0x7f0800db; public static int TextAppearance_AppCompat_Widget_Button_Inverse=0x7f0800dc; public static int TextAppearance_AppCompat_Widget_DropDownItem=0x7f0800dd; public static int TextAppearance_AppCompat_Widget_PopupMenu_Large=0x7f0800de; public static int TextAppearance_AppCompat_Widget_PopupMenu_Small=0x7f0800df; public static int TextAppearance_AppCompat_Widget_Switch=0x7f0800e0; public static int TextAppearance_AppCompat_Widget_TextView_SpinnerItem=0x7f0800e1; public static int TextAppearance_StatusBar_EventContent=0x7f080023; public static int TextAppearance_StatusBar_EventContent_Info=0x7f080024; public static int TextAppearance_StatusBar_EventContent_Line2=0x7f080025; public static int TextAppearance_StatusBar_EventContent_Time=0x7f080026; public static int TextAppearance_StatusBar_EventContent_Title=0x7f080027; public static int TextAppearance_Widget_AppCompat_ExpandedMenu_Item=0x7f0800e2; public static int TextAppearance_Widget_AppCompat_Toolbar_Subtitle=0x7f0800e3; public static int TextAppearance_Widget_AppCompat_Toolbar_Title=0x7f0800e4; public static int Theme_AppCompat=0x7f0800e5; public static int Theme_AppCompat_CompactMenu=0x7f0800e6; public static int Theme_AppCompat_DayNight=0x7f080004; public static int Theme_AppCompat_DayNight_DarkActionBar=0x7f080005; public static int Theme_AppCompat_DayNight_Dialog=0x7f080006; public static int Theme_AppCompat_DayNight_Dialog_Alert=0x7f080007; public static int Theme_AppCompat_DayNight_Dialog_MinWidth=0x7f080008; public static int Theme_AppCompat_DayNight_DialogWhenLarge=0x7f080009; public static int Theme_AppCompat_DayNight_NoActionBar=0x7f08000a; public static int Theme_AppCompat_Dialog=0x7f0800e7; public static int Theme_AppCompat_Dialog_Alert=0x7f0800e8; public static int Theme_AppCompat_Dialog_MinWidth=0x7f0800e9; public static int Theme_AppCompat_DialogWhenLarge=0x7f0800ea; public static int Theme_AppCompat_Light=0x7f0800eb; public static int Theme_AppCompat_Light_DarkActionBar=0x7f0800ec; public static int Theme_AppCompat_Light_Dialog=0x7f0800ed; public static int Theme_AppCompat_Light_Dialog_Alert=0x7f0800ee; public static int Theme_AppCompat_Light_Dialog_MinWidth=0x7f0800ef; public static int Theme_AppCompat_Light_DialogWhenLarge=0x7f0800f0; public static int Theme_AppCompat_Light_NoActionBar=0x7f0800f1; public static int Theme_AppCompat_NoActionBar=0x7f0800f2; public static int ThemeOverlay_AppCompat=0x7f0800f3; public static int ThemeOverlay_AppCompat_ActionBar=0x7f0800f4; public static int ThemeOverlay_AppCompat_Dark=0x7f0800f5; public static int ThemeOverlay_AppCompat_Dark_ActionBar=0x7f0800f6; public static int ThemeOverlay_AppCompat_Light=0x7f0800f7; public static int Widget_AppCompat_ActionBar=0x7f0800f8; public static int Widget_AppCompat_ActionBar_Solid=0x7f0800f9; public static int Widget_AppCompat_ActionBar_TabBar=0x7f0800fa; public static int Widget_AppCompat_ActionBar_TabText=0x7f0800fb; public static int Widget_AppCompat_ActionBar_TabView=0x7f0800fc; public static int Widget_AppCompat_ActionButton=0x7f0800fd; public static int Widget_AppCompat_ActionButton_CloseMode=0x7f0800fe; public static int Widget_AppCompat_ActionButton_Overflow=0x7f0800ff; public static int Widget_AppCompat_ActionMode=0x7f080100; public static int Widget_AppCompat_ActivityChooserView=0x7f080101; public static int Widget_AppCompat_AutoCompleteTextView=0x7f080102; public static int Widget_AppCompat_Button=0x7f080103; public static int Widget_AppCompat_Button_Borderless=0x7f080104; public static int Widget_AppCompat_Button_Borderless_Colored=0x7f080105; public static int Widget_AppCompat_Button_ButtonBar_AlertDialog=0x7f080106; public static int Widget_AppCompat_Button_Colored=0x7f080107; public static int Widget_AppCompat_Button_Small=0x7f080108; public static int Widget_AppCompat_ButtonBar=0x7f080109; public static int Widget_AppCompat_ButtonBar_AlertDialog=0x7f08010a; public static int Widget_AppCompat_CompoundButton_CheckBox=0x7f08010b; public static int Widget_AppCompat_CompoundButton_RadioButton=0x7f08010c; public static int Widget_AppCompat_CompoundButton_Switch=0x7f08010d; public static int Widget_AppCompat_DrawerArrowToggle=0x7f08010e; public static int Widget_AppCompat_DropDownItem_Spinner=0x7f08010f; public static int Widget_AppCompat_EditText=0x7f080110; public static int Widget_AppCompat_ImageButton=0x7f080111; public static int Widget_AppCompat_Light_ActionBar=0x7f080112; public static int Widget_AppCompat_Light_ActionBar_Solid=0x7f080113; public static int Widget_AppCompat_Light_ActionBar_Solid_Inverse=0x7f080114; public static int Widget_AppCompat_Light_ActionBar_TabBar=0x7f080115; public static int Widget_AppCompat_Light_ActionBar_TabBar_Inverse=0x7f080116; public static int Widget_AppCompat_Light_ActionBar_TabText=0x7f080117; public static int Widget_AppCompat_Light_ActionBar_TabText_Inverse=0x7f080118; public static int Widget_AppCompat_Light_ActionBar_TabView=0x7f080119; public static int Widget_AppCompat_Light_ActionBar_TabView_Inverse=0x7f08011a; public static int Widget_AppCompat_Light_ActionButton=0x7f08011b; public static int Widget_AppCompat_Light_ActionButton_CloseMode=0x7f08011c; public static int Widget_AppCompat_Light_ActionButton_Overflow=0x7f08011d; public static int Widget_AppCompat_Light_ActionMode_Inverse=0x7f08011e; public static int Widget_AppCompat_Light_ActivityChooserView=0x7f08011f; public static int Widget_AppCompat_Light_AutoCompleteTextView=0x7f080120; public static int Widget_AppCompat_Light_DropDownItem_Spinner=0x7f080121; public static int Widget_AppCompat_Light_ListPopupWindow=0x7f080122; public static int Widget_AppCompat_Light_ListView_DropDown=0x7f080123; public static int Widget_AppCompat_Light_PopupMenu=0x7f080124; public static int Widget_AppCompat_Light_PopupMenu_Overflow=0x7f080125; public static int Widget_AppCompat_Light_SearchView=0x7f080126; public static int Widget_AppCompat_Light_Spinner_DropDown_ActionBar=0x7f080127; public static int Widget_AppCompat_ListPopupWindow=0x7f080128; public static int Widget_AppCompat_ListView=0x7f080129; public static int Widget_AppCompat_ListView_DropDown=0x7f08012a; public static int Widget_AppCompat_ListView_Menu=0x7f08012b; public static int Widget_AppCompat_PopupMenu=0x7f08012c; public static int Widget_AppCompat_PopupMenu_Overflow=0x7f08012d; public static int Widget_AppCompat_PopupWindow=0x7f08012e; public static int Widget_AppCompat_ProgressBar=0x7f08012f; public static int Widget_AppCompat_ProgressBar_Horizontal=0x7f080130; public static int Widget_AppCompat_RatingBar=0x7f080131; public static int Widget_AppCompat_RatingBar_Indicator=0x7f080132; public static int Widget_AppCompat_RatingBar_Small=0x7f080133; public static int Widget_AppCompat_SearchView=0x7f080134; public static int Widget_AppCompat_SearchView_ActionBar=0x7f080135; public static int Widget_AppCompat_SeekBar=0x7f080136; public static int Widget_AppCompat_Spinner=0x7f080137; public static int Widget_AppCompat_Spinner_DropDown=0x7f080138; public static int Widget_AppCompat_Spinner_DropDown_ActionBar=0x7f080139; public static int Widget_AppCompat_Spinner_Underlined=0x7f08013a; public static int Widget_AppCompat_TextView_SpinnerItem=0x7f08013b; public static int Widget_AppCompat_Toolbar=0x7f08013c; public static int Widget_AppCompat_Toolbar_Button_Navigation=0x7f08013d; } public static final class styleable { /** Attributes that can be used with a ActionBar. <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.huanxiao.router:background}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_backgroundSplit com.huanxiao.router:backgroundSplit}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_backgroundStacked com.huanxiao.router:backgroundStacked}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_contentInsetEnd com.huanxiao.router:contentInsetEnd}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_contentInsetLeft com.huanxiao.router:contentInsetLeft}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_contentInsetRight com.huanxiao.router:contentInsetRight}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_contentInsetStart com.huanxiao.router:contentInsetStart}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_customNavigationLayout com.huanxiao.router:customNavigationLayout}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_displayOptions com.huanxiao.router:displayOptions}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_divider com.huanxiao.router:divider}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_elevation com.huanxiao.router:elevation}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_height com.huanxiao.router:height}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_hideOnContentScroll com.huanxiao.router:hideOnContentScroll}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_homeAsUpIndicator com.huanxiao.router:homeAsUpIndicator}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_homeLayout com.huanxiao.router:homeLayout}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_icon com.huanxiao.router:icon}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_indeterminateProgressStyle com.huanxiao.router:indeterminateProgressStyle}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_itemPadding com.huanxiao.router:itemPadding}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_logo com.huanxiao.router:logo}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_navigationMode com.huanxiao.router:navigationMode}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_popupTheme com.huanxiao.router:popupTheme}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_progressBarPadding com.huanxiao.router:progressBarPadding}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_progressBarStyle com.huanxiao.router:progressBarStyle}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_subtitle com.huanxiao.router:subtitle}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_subtitleTextStyle com.huanxiao.router:subtitleTextStyle}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_title com.huanxiao.router:title}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_titleTextStyle com.huanxiao.router:titleTextStyle}</code></td><td></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 = { 0x7f010001, 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, 0x7f010054 }; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#background} attribute's value can be found in the {@link #ActionBar} 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.huanxiao.router:background */ public static int ActionBar_background = 10; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#backgroundSplit} attribute's value can be found in the {@link #ActionBar} array. <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>". @attr name com.huanxiao.router:backgroundSplit */ public static int ActionBar_backgroundSplit = 12; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#backgroundStacked} attribute's value can be found in the {@link #ActionBar} array. <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>". @attr name com.huanxiao.router:backgroundStacked */ public static int ActionBar_backgroundStacked = 11; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#contentInsetEnd} attribute's value can be found in the {@link #ActionBar} 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.huanxiao.router:contentInsetEnd */ public static int ActionBar_contentInsetEnd = 21; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#contentInsetLeft} attribute's value can be found in the {@link #ActionBar} 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.huanxiao.router:contentInsetLeft */ public static int ActionBar_contentInsetLeft = 22; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#contentInsetRight} attribute's value can be found in the {@link #ActionBar} 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.huanxiao.router:contentInsetRight */ public static int ActionBar_contentInsetRight = 23; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#contentInsetStart} attribute's value can be found in the {@link #ActionBar} 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.huanxiao.router:contentInsetStart */ public static int ActionBar_contentInsetStart = 20; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#customNavigationLayout} attribute's value can be found in the {@link #ActionBar} 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.huanxiao.router:customNavigationLayout */ public static int ActionBar_customNavigationLayout = 13; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#displayOptions} attribute's value can be found in the {@link #ActionBar} array. <p>Must be one or more (separated by '|') of the following constant values.</p> <table> <colgroup align="left" /> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Constant</th><th>Value</th><th>Description</th></tr> <tr><td><code>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> @attr name com.huanxiao.router:displayOptions */ public static int ActionBar_displayOptions = 3; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#divider} attribute's value can be found in the {@link #ActionBar} 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.huanxiao.router:divider */ public static int ActionBar_divider = 9; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#elevation} attribute's value can be found in the {@link #ActionBar} 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.huanxiao.router:elevation */ public static int ActionBar_elevation = 24; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#height} attribute's value can be found in the {@link #ActionBar} 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.huanxiao.router:height */ public static int ActionBar_height = 0; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#hideOnContentScroll} attribute's value can be found in the {@link #ActionBar} array. <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. @attr name com.huanxiao.router:hideOnContentScroll */ public static int ActionBar_hideOnContentScroll = 19; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#homeAsUpIndicator} attribute's value can be found in the {@link #ActionBar} 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.huanxiao.router:homeAsUpIndicator */ public static int ActionBar_homeAsUpIndicator = 26; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#homeLayout} attribute's value can be found in the {@link #ActionBar} 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.huanxiao.router:homeLayout */ public static int ActionBar_homeLayout = 14; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#icon} attribute's value can be found in the {@link #ActionBar} 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.huanxiao.router:icon */ public static int ActionBar_icon = 7; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#indeterminateProgressStyle} attribute's value can be found in the {@link #ActionBar} 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.huanxiao.router:indeterminateProgressStyle */ public static int ActionBar_indeterminateProgressStyle = 16; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#itemPadding} attribute's value can be found in the {@link #ActionBar} 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.huanxiao.router:itemPadding */ public static int ActionBar_itemPadding = 18; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#logo} attribute's value can be found in the {@link #ActionBar} 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.huanxiao.router:logo */ public static int ActionBar_logo = 8; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#navigationMode} attribute's value can be found in the {@link #ActionBar} array. <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></td></tr> <tr><td><code>listMode</code></td><td>1</td><td></td></tr> <tr><td><code>tabMode</code></td><td>2</td><td></td></tr> </table> @attr name com.huanxiao.router:navigationMode */ public static int ActionBar_navigationMode = 2; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#popupTheme} attribute's value can be found in the {@link #ActionBar} 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.huanxiao.router:popupTheme */ public static int ActionBar_popupTheme = 25; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#progressBarPadding} attribute's value can be found in the {@link #ActionBar} 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.huanxiao.router:progressBarPadding */ public static int ActionBar_progressBarPadding = 17; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#progressBarStyle} attribute's value can be found in the {@link #ActionBar} 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.huanxiao.router:progressBarStyle */ public static int ActionBar_progressBarStyle = 15; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#subtitle} attribute's value can be found in the {@link #ActionBar} 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.huanxiao.router:subtitle */ public static int ActionBar_subtitle = 4; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#subtitleTextStyle} attribute's value can be found in the {@link #ActionBar} 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.huanxiao.router:subtitleTextStyle */ public static int ActionBar_subtitleTextStyle = 6; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#title} attribute's value can be found in the {@link #ActionBar} 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.huanxiao.router:title */ public static int ActionBar_title = 1; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#titleTextStyle} attribute's value can be found in the {@link #ActionBar} 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.huanxiao.router:titleTextStyle */ public static int ActionBar_titleTextStyle = 5; /** Attributes that can be used with a ActionBarLayout. <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 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 int ActionMenuItemView_android_minWidth = 0; /** Attributes that can be used with a ActionMenuView. */ 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.huanxiao.router:background}</code></td><td></td></tr> <tr><td><code>{@link #ActionMode_backgroundSplit com.huanxiao.router:backgroundSplit}</code></td><td></td></tr> <tr><td><code>{@link #ActionMode_closeItemLayout com.huanxiao.router:closeItemLayout}</code></td><td></td></tr> <tr><td><code>{@link #ActionMode_height com.huanxiao.router:height}</code></td><td></td></tr> <tr><td><code>{@link #ActionMode_subtitleTextStyle com.huanxiao.router:subtitleTextStyle}</code></td><td></td></tr> <tr><td><code>{@link #ActionMode_titleTextStyle com.huanxiao.router:titleTextStyle}</code></td><td></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, 0x7f010007, 0x7f010008, 0x7f01000c, 0x7f01000e, 0x7f01001c }; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#background} attribute's value can be found in the {@link #ActionMode} 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.huanxiao.router:background */ public static int ActionMode_background = 3; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#backgroundSplit} attribute's value can be found in the {@link #ActionMode} array. <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>". @attr name com.huanxiao.router:backgroundSplit */ public static int ActionMode_backgroundSplit = 4; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#closeItemLayout} attribute's value can be found in the {@link #ActionMode} 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.huanxiao.router:closeItemLayout */ public static int ActionMode_closeItemLayout = 5; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#height} attribute's value can be found in the {@link #ActionMode} 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.huanxiao.router:height */ public static int ActionMode_height = 0; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#subtitleTextStyle} attribute's value can be found in the {@link #ActionMode} 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.huanxiao.router:subtitleTextStyle */ public static int ActionMode_subtitleTextStyle = 2; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#titleTextStyle} attribute's value can be found in the {@link #ActionMode} 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.huanxiao.router:titleTextStyle */ public static int ActionMode_titleTextStyle = 1; /** Attributes that can be used with 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.huanxiao.router:expandActivityOverflowButtonDrawable}</code></td><td></td></tr> <tr><td><code>{@link #ActivityChooserView_initialActivityCount com.huanxiao.router:initialActivityCount}</code></td><td></td></tr> </table> @see #ActivityChooserView_expandActivityOverflowButtonDrawable @see #ActivityChooserView_initialActivityCount */ public static final int[] ActivityChooserView = { 0x7f01001d, 0x7f01001e }; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#expandActivityOverflowButtonDrawable} attribute's value can be found in the {@link #ActivityChooserView} 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.huanxiao.router:expandActivityOverflowButtonDrawable */ public static int ActivityChooserView_expandActivityOverflowButtonDrawable = 1; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#initialActivityCount} attribute's value can be found in the {@link #ActivityChooserView} 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.huanxiao.router:initialActivityCount */ public static int ActivityChooserView_initialActivityCount = 0; /** Attributes that can be used with a AlertDialog. <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 #AlertDialog_android_layout android:layout}</code></td><td></td></tr> <tr><td><code>{@link #AlertDialog_buttonPanelSideLayout com.huanxiao.router:buttonPanelSideLayout}</code></td><td></td></tr> <tr><td><code>{@link #AlertDialog_listItemLayout com.huanxiao.router:listItemLayout}</code></td><td></td></tr> <tr><td><code>{@link #AlertDialog_listLayout com.huanxiao.router:listLayout}</code></td><td></td></tr> <tr><td><code>{@link #AlertDialog_multiChoiceItemLayout com.huanxiao.router:multiChoiceItemLayout}</code></td><td></td></tr> <tr><td><code>{@link #AlertDialog_singleChoiceItemLayout com.huanxiao.router:singleChoiceItemLayout}</code></td><td></td></tr> </table> @see #AlertDialog_android_layout @see #AlertDialog_buttonPanelSideLayout @see #AlertDialog_listItemLayout @see #AlertDialog_listLayout @see #AlertDialog_multiChoiceItemLayout @see #AlertDialog_singleChoiceItemLayout */ public static final int[] AlertDialog = { 0x010100f2, 0x7f01001f, 0x7f010020, 0x7f010021, 0x7f010022, 0x7f010023 }; /** <p>This symbol is the offset where the {@link android.R.attr#layout} attribute's value can be found in the {@link #AlertDialog} array. @attr name android:layout */ public static int AlertDialog_android_layout = 0; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#buttonPanelSideLayout} attribute's value can be found in the {@link #AlertDialog} 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.huanxiao.router:buttonPanelSideLayout */ public static int AlertDialog_buttonPanelSideLayout = 1; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#listItemLayout} attribute's value can be found in the {@link #AlertDialog} 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.huanxiao.router:listItemLayout */ public static int AlertDialog_listItemLayout = 5; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#listLayout} attribute's value can be found in the {@link #AlertDialog} 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.huanxiao.router:listLayout */ public static int AlertDialog_listLayout = 2; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#multiChoiceItemLayout} attribute's value can be found in the {@link #AlertDialog} 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.huanxiao.router:multiChoiceItemLayout */ public static int AlertDialog_multiChoiceItemLayout = 3; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#singleChoiceItemLayout} attribute's value can be found in the {@link #AlertDialog} 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.huanxiao.router:singleChoiceItemLayout */ public static int AlertDialog_singleChoiceItemLayout = 4; /** Attributes that can be used with a AppCompatImageView. <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 #AppCompatImageView_android_src android:src}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatImageView_srcCompat com.huanxiao.router:srcCompat}</code></td><td></td></tr> </table> @see #AppCompatImageView_android_src @see #AppCompatImageView_srcCompat */ public static final int[] AppCompatImageView = { 0x01010119, 0x7f010024 }; /** <p>This symbol is the offset where the {@link android.R.attr#src} attribute's value can be found in the {@link #AppCompatImageView} array. @attr name android:src */ public static int AppCompatImageView_android_src = 0; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#srcCompat} attribute's value can be found in the {@link #AppCompatImageView} 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.huanxiao.router:srcCompat */ public static int AppCompatImageView_srcCompat = 1; /** Attributes that can be used with a AppCompatTextView. <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 #AppCompatTextView_android_textAppearance android:textAppearance}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTextView_textAllCaps com.huanxiao.router:textAllCaps}</code></td><td></td></tr> </table> @see #AppCompatTextView_android_textAppearance @see #AppCompatTextView_textAllCaps */ public static final int[] AppCompatTextView = { 0x01010034, 0x7f010025 }; /** <p>This symbol is the offset where the {@link android.R.attr#textAppearance} attribute's value can be found in the {@link #AppCompatTextView} array. @attr name android:textAppearance */ public static int AppCompatTextView_android_textAppearance = 0; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#textAllCaps} attribute's value can be found in the {@link #AppCompatTextView} array. <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>". @attr name com.huanxiao.router:textAllCaps */ public static int AppCompatTextView_textAllCaps = 1; /** Attributes that can be used with a AppCompatTheme. <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 #AppCompatTheme_actionBarDivider com.huanxiao.router:actionBarDivider}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionBarItemBackground com.huanxiao.router:actionBarItemBackground}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionBarPopupTheme com.huanxiao.router:actionBarPopupTheme}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionBarSize com.huanxiao.router:actionBarSize}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionBarSplitStyle com.huanxiao.router:actionBarSplitStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionBarStyle com.huanxiao.router:actionBarStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionBarTabBarStyle com.huanxiao.router:actionBarTabBarStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionBarTabStyle com.huanxiao.router:actionBarTabStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionBarTabTextStyle com.huanxiao.router:actionBarTabTextStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionBarTheme com.huanxiao.router:actionBarTheme}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionBarWidgetTheme com.huanxiao.router:actionBarWidgetTheme}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionButtonStyle com.huanxiao.router:actionButtonStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionDropDownStyle com.huanxiao.router:actionDropDownStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionMenuTextAppearance com.huanxiao.router:actionMenuTextAppearance}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionMenuTextColor com.huanxiao.router:actionMenuTextColor}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionModeBackground com.huanxiao.router:actionModeBackground}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionModeCloseButtonStyle com.huanxiao.router:actionModeCloseButtonStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionModeCloseDrawable com.huanxiao.router:actionModeCloseDrawable}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionModeCopyDrawable com.huanxiao.router:actionModeCopyDrawable}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionModeCutDrawable com.huanxiao.router:actionModeCutDrawable}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionModeFindDrawable com.huanxiao.router:actionModeFindDrawable}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionModePasteDrawable com.huanxiao.router:actionModePasteDrawable}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionModePopupWindowStyle com.huanxiao.router:actionModePopupWindowStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionModeSelectAllDrawable com.huanxiao.router:actionModeSelectAllDrawable}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionModeShareDrawable com.huanxiao.router:actionModeShareDrawable}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionModeSplitBackground com.huanxiao.router:actionModeSplitBackground}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionModeStyle com.huanxiao.router:actionModeStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionModeWebSearchDrawable com.huanxiao.router:actionModeWebSearchDrawable}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionOverflowButtonStyle com.huanxiao.router:actionOverflowButtonStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionOverflowMenuStyle com.huanxiao.router:actionOverflowMenuStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_activityChooserViewStyle com.huanxiao.router:activityChooserViewStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_alertDialogButtonGroupStyle com.huanxiao.router:alertDialogButtonGroupStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_alertDialogCenterButtons com.huanxiao.router:alertDialogCenterButtons}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_alertDialogStyle com.huanxiao.router:alertDialogStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_alertDialogTheme com.huanxiao.router:alertDialogTheme}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_android_windowAnimationStyle android:windowAnimationStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_android_windowIsFloating android:windowIsFloating}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_autoCompleteTextViewStyle com.huanxiao.router:autoCompleteTextViewStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_borderlessButtonStyle com.huanxiao.router:borderlessButtonStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_buttonBarButtonStyle com.huanxiao.router:buttonBarButtonStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_buttonBarNegativeButtonStyle com.huanxiao.router:buttonBarNegativeButtonStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_buttonBarNeutralButtonStyle com.huanxiao.router:buttonBarNeutralButtonStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_buttonBarPositiveButtonStyle com.huanxiao.router:buttonBarPositiveButtonStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_buttonBarStyle com.huanxiao.router:buttonBarStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_buttonStyle com.huanxiao.router:buttonStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_buttonStyleSmall com.huanxiao.router:buttonStyleSmall}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_checkboxStyle com.huanxiao.router:checkboxStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_checkedTextViewStyle com.huanxiao.router:checkedTextViewStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_colorAccent com.huanxiao.router:colorAccent}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_colorButtonNormal com.huanxiao.router:colorButtonNormal}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_colorControlActivated com.huanxiao.router:colorControlActivated}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_colorControlHighlight com.huanxiao.router:colorControlHighlight}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_colorControlNormal com.huanxiao.router:colorControlNormal}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_colorPrimary com.huanxiao.router:colorPrimary}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_colorPrimaryDark com.huanxiao.router:colorPrimaryDark}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_colorSwitchThumbNormal com.huanxiao.router:colorSwitchThumbNormal}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_controlBackground com.huanxiao.router:controlBackground}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_dialogPreferredPadding com.huanxiao.router:dialogPreferredPadding}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_dialogTheme com.huanxiao.router:dialogTheme}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_dividerHorizontal com.huanxiao.router:dividerHorizontal}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_dividerVertical com.huanxiao.router:dividerVertical}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_dropDownListViewStyle com.huanxiao.router:dropDownListViewStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_dropdownListPreferredItemHeight com.huanxiao.router:dropdownListPreferredItemHeight}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_editTextBackground com.huanxiao.router:editTextBackground}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_editTextColor com.huanxiao.router:editTextColor}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_editTextStyle com.huanxiao.router:editTextStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_homeAsUpIndicator com.huanxiao.router:homeAsUpIndicator}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_imageButtonStyle com.huanxiao.router:imageButtonStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_listChoiceBackgroundIndicator com.huanxiao.router:listChoiceBackgroundIndicator}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_listDividerAlertDialog com.huanxiao.router:listDividerAlertDialog}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_listPopupWindowStyle com.huanxiao.router:listPopupWindowStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_listPreferredItemHeight com.huanxiao.router:listPreferredItemHeight}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_listPreferredItemHeightLarge com.huanxiao.router:listPreferredItemHeightLarge}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_listPreferredItemHeightSmall com.huanxiao.router:listPreferredItemHeightSmall}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_listPreferredItemPaddingLeft com.huanxiao.router:listPreferredItemPaddingLeft}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_listPreferredItemPaddingRight com.huanxiao.router:listPreferredItemPaddingRight}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_panelBackground com.huanxiao.router:panelBackground}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_panelMenuListTheme com.huanxiao.router:panelMenuListTheme}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_panelMenuListWidth com.huanxiao.router:panelMenuListWidth}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_popupMenuStyle com.huanxiao.router:popupMenuStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_popupWindowStyle com.huanxiao.router:popupWindowStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_radioButtonStyle com.huanxiao.router:radioButtonStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_ratingBarStyle com.huanxiao.router:ratingBarStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_ratingBarStyleIndicator com.huanxiao.router:ratingBarStyleIndicator}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_ratingBarStyleSmall com.huanxiao.router:ratingBarStyleSmall}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_searchViewStyle com.huanxiao.router:searchViewStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_seekBarStyle com.huanxiao.router:seekBarStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_selectableItemBackground com.huanxiao.router:selectableItemBackground}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_selectableItemBackgroundBorderless com.huanxiao.router:selectableItemBackgroundBorderless}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_spinnerDropDownItemStyle com.huanxiao.router:spinnerDropDownItemStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_spinnerStyle com.huanxiao.router:spinnerStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_switchStyle com.huanxiao.router:switchStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_textAppearanceLargePopupMenu com.huanxiao.router:textAppearanceLargePopupMenu}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_textAppearanceListItem com.huanxiao.router:textAppearanceListItem}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_textAppearanceListItemSmall com.huanxiao.router:textAppearanceListItemSmall}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_textAppearanceSearchResultSubtitle com.huanxiao.router:textAppearanceSearchResultSubtitle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_textAppearanceSearchResultTitle com.huanxiao.router:textAppearanceSearchResultTitle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_textAppearanceSmallPopupMenu com.huanxiao.router:textAppearanceSmallPopupMenu}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_textColorAlertDialogListItem com.huanxiao.router:textColorAlertDialogListItem}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_textColorSearchUrl com.huanxiao.router:textColorSearchUrl}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_toolbarNavigationButtonStyle com.huanxiao.router:toolbarNavigationButtonStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_toolbarStyle com.huanxiao.router:toolbarStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_windowActionBar com.huanxiao.router:windowActionBar}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_windowActionBarOverlay com.huanxiao.router:windowActionBarOverlay}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_windowActionModeOverlay com.huanxiao.router:windowActionModeOverlay}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_windowFixedHeightMajor com.huanxiao.router:windowFixedHeightMajor}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_windowFixedHeightMinor com.huanxiao.router:windowFixedHeightMinor}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_windowFixedWidthMajor com.huanxiao.router:windowFixedWidthMajor}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_windowFixedWidthMinor com.huanxiao.router:windowFixedWidthMinor}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_windowMinWidthMajor com.huanxiao.router:windowMinWidthMajor}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_windowMinWidthMinor com.huanxiao.router:windowMinWidthMinor}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_windowNoTitle com.huanxiao.router:windowNoTitle}</code></td><td></td></tr> </table> @see #AppCompatTheme_actionBarDivider @see #AppCompatTheme_actionBarItemBackground @see #AppCompatTheme_actionBarPopupTheme @see #AppCompatTheme_actionBarSize @see #AppCompatTheme_actionBarSplitStyle @see #AppCompatTheme_actionBarStyle @see #AppCompatTheme_actionBarTabBarStyle @see #AppCompatTheme_actionBarTabStyle @see #AppCompatTheme_actionBarTabTextStyle @see #AppCompatTheme_actionBarTheme @see #AppCompatTheme_actionBarWidgetTheme @see #AppCompatTheme_actionButtonStyle @see #AppCompatTheme_actionDropDownStyle @see #AppCompatTheme_actionMenuTextAppearance @see #AppCompatTheme_actionMenuTextColor @see #AppCompatTheme_actionModeBackground @see #AppCompatTheme_actionModeCloseButtonStyle @see #AppCompatTheme_actionModeCloseDrawable @see #AppCompatTheme_actionModeCopyDrawable @see #AppCompatTheme_actionModeCutDrawable @see #AppCompatTheme_actionModeFindDrawable @see #AppCompatTheme_actionModePasteDrawable @see #AppCompatTheme_actionModePopupWindowStyle @see #AppCompatTheme_actionModeSelectAllDrawable @see #AppCompatTheme_actionModeShareDrawable @see #AppCompatTheme_actionModeSplitBackground @see #AppCompatTheme_actionModeStyle @see #AppCompatTheme_actionModeWebSearchDrawable @see #AppCompatTheme_actionOverflowButtonStyle @see #AppCompatTheme_actionOverflowMenuStyle @see #AppCompatTheme_activityChooserViewStyle @see #AppCompatTheme_alertDialogButtonGroupStyle @see #AppCompatTheme_alertDialogCenterButtons @see #AppCompatTheme_alertDialogStyle @see #AppCompatTheme_alertDialogTheme @see #AppCompatTheme_android_windowAnimationStyle @see #AppCompatTheme_android_windowIsFloating @see #AppCompatTheme_autoCompleteTextViewStyle @see #AppCompatTheme_borderlessButtonStyle @see #AppCompatTheme_buttonBarButtonStyle @see #AppCompatTheme_buttonBarNegativeButtonStyle @see #AppCompatTheme_buttonBarNeutralButtonStyle @see #AppCompatTheme_buttonBarPositiveButtonStyle @see #AppCompatTheme_buttonBarStyle @see #AppCompatTheme_buttonStyle @see #AppCompatTheme_buttonStyleSmall @see #AppCompatTheme_checkboxStyle @see #AppCompatTheme_checkedTextViewStyle @see #AppCompatTheme_colorAccent @see #AppCompatTheme_colorButtonNormal @see #AppCompatTheme_colorControlActivated @see #AppCompatTheme_colorControlHighlight @see #AppCompatTheme_colorControlNormal @see #AppCompatTheme_colorPrimary @see #AppCompatTheme_colorPrimaryDark @see #AppCompatTheme_colorSwitchThumbNormal @see #AppCompatTheme_controlBackground @see #AppCompatTheme_dialogPreferredPadding @see #AppCompatTheme_dialogTheme @see #AppCompatTheme_dividerHorizontal @see #AppCompatTheme_dividerVertical @see #AppCompatTheme_dropDownListViewStyle @see #AppCompatTheme_dropdownListPreferredItemHeight @see #AppCompatTheme_editTextBackground @see #AppCompatTheme_editTextColor @see #AppCompatTheme_editTextStyle @see #AppCompatTheme_homeAsUpIndicator @see #AppCompatTheme_imageButtonStyle @see #AppCompatTheme_listChoiceBackgroundIndicator @see #AppCompatTheme_listDividerAlertDialog @see #AppCompatTheme_listPopupWindowStyle @see #AppCompatTheme_listPreferredItemHeight @see #AppCompatTheme_listPreferredItemHeightLarge @see #AppCompatTheme_listPreferredItemHeightSmall @see #AppCompatTheme_listPreferredItemPaddingLeft @see #AppCompatTheme_listPreferredItemPaddingRight @see #AppCompatTheme_panelBackground @see #AppCompatTheme_panelMenuListTheme @see #AppCompatTheme_panelMenuListWidth @see #AppCompatTheme_popupMenuStyle @see #AppCompatTheme_popupWindowStyle @see #AppCompatTheme_radioButtonStyle @see #AppCompatTheme_ratingBarStyle @see #AppCompatTheme_ratingBarStyleIndicator @see #AppCompatTheme_ratingBarStyleSmall @see #AppCompatTheme_searchViewStyle @see #AppCompatTheme_seekBarStyle @see #AppCompatTheme_selectableItemBackground @see #AppCompatTheme_selectableItemBackgroundBorderless @see #AppCompatTheme_spinnerDropDownItemStyle @see #AppCompatTheme_spinnerStyle @see #AppCompatTheme_switchStyle @see #AppCompatTheme_textAppearanceLargePopupMenu @see #AppCompatTheme_textAppearanceListItem @see #AppCompatTheme_textAppearanceListItemSmall @see #AppCompatTheme_textAppearanceSearchResultSubtitle @see #AppCompatTheme_textAppearanceSearchResultTitle @see #AppCompatTheme_textAppearanceSmallPopupMenu @see #AppCompatTheme_textColorAlertDialogListItem @see #AppCompatTheme_textColorSearchUrl @see #AppCompatTheme_toolbarNavigationButtonStyle @see #AppCompatTheme_toolbarStyle @see #AppCompatTheme_windowActionBar @see #AppCompatTheme_windowActionBarOverlay @see #AppCompatTheme_windowActionModeOverlay @see #AppCompatTheme_windowFixedHeightMajor @see #AppCompatTheme_windowFixedHeightMinor @see #AppCompatTheme_windowFixedWidthMajor @see #AppCompatTheme_windowFixedWidthMinor @see #AppCompatTheme_windowMinWidthMajor @see #AppCompatTheme_windowMinWidthMinor @see #AppCompatTheme_windowNoTitle */ public static final int[] AppCompatTheme = { 0x01010057, 0x010100ae, 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, 0x7f010055, 0x7f010056, 0x7f010057, 0x7f010058, 0x7f010059, 0x7f01005a, 0x7f01005b, 0x7f01005c, 0x7f01005d, 0x7f01005e, 0x7f01005f, 0x7f010060, 0x7f010061, 0x7f010062, 0x7f010063, 0x7f010064, 0x7f010065, 0x7f010066, 0x7f010067, 0x7f010068, 0x7f010069, 0x7f01006a, 0x7f01006b, 0x7f01006c, 0x7f01006d, 0x7f01006e, 0x7f01006f, 0x7f010070, 0x7f010071, 0x7f010072, 0x7f010073, 0x7f010074, 0x7f010075, 0x7f010076, 0x7f010077, 0x7f010078, 0x7f010079, 0x7f01007a, 0x7f01007b, 0x7f01007c, 0x7f01007d, 0x7f01007e, 0x7f01007f, 0x7f010080, 0x7f010081, 0x7f010082, 0x7f010083, 0x7f010084, 0x7f010085, 0x7f010086, 0x7f010087, 0x7f010088, 0x7f010089, 0x7f01008a, 0x7f01008b, 0x7f01008c, 0x7f01008d, 0x7f01008e, 0x7f01008f, 0x7f010090, 0x7f010091, 0x7f010092, 0x7f010093 }; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#actionBarDivider} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:actionBarDivider */ public static int AppCompatTheme_actionBarDivider = 23; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#actionBarItemBackground} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:actionBarItemBackground */ public static int AppCompatTheme_actionBarItemBackground = 24; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#actionBarPopupTheme} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:actionBarPopupTheme */ public static int AppCompatTheme_actionBarPopupTheme = 17; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#actionBarSize} attribute's value can be found in the {@link #AppCompatTheme} array. <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> @attr name com.huanxiao.router:actionBarSize */ public static int AppCompatTheme_actionBarSize = 22; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#actionBarSplitStyle} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:actionBarSplitStyle */ public static int AppCompatTheme_actionBarSplitStyle = 19; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#actionBarStyle} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:actionBarStyle */ public static int AppCompatTheme_actionBarStyle = 18; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#actionBarTabBarStyle} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:actionBarTabBarStyle */ public static int AppCompatTheme_actionBarTabBarStyle = 13; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#actionBarTabStyle} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:actionBarTabStyle */ public static int AppCompatTheme_actionBarTabStyle = 12; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#actionBarTabTextStyle} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:actionBarTabTextStyle */ public static int AppCompatTheme_actionBarTabTextStyle = 14; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#actionBarTheme} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:actionBarTheme */ public static int AppCompatTheme_actionBarTheme = 20; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#actionBarWidgetTheme} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:actionBarWidgetTheme */ public static int AppCompatTheme_actionBarWidgetTheme = 21; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#actionButtonStyle} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:actionButtonStyle */ public static int AppCompatTheme_actionButtonStyle = 49; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#actionDropDownStyle} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:actionDropDownStyle */ public static int AppCompatTheme_actionDropDownStyle = 45; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#actionMenuTextAppearance} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:actionMenuTextAppearance */ public static int AppCompatTheme_actionMenuTextAppearance = 25; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#actionMenuTextColor} attribute's value can be found in the {@link #AppCompatTheme} array. <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>". @attr name com.huanxiao.router:actionMenuTextColor */ public static int AppCompatTheme_actionMenuTextColor = 26; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#actionModeBackground} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:actionModeBackground */ public static int AppCompatTheme_actionModeBackground = 29; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#actionModeCloseButtonStyle} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:actionModeCloseButtonStyle */ public static int AppCompatTheme_actionModeCloseButtonStyle = 28; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#actionModeCloseDrawable} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:actionModeCloseDrawable */ public static int AppCompatTheme_actionModeCloseDrawable = 31; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#actionModeCopyDrawable} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:actionModeCopyDrawable */ public static int AppCompatTheme_actionModeCopyDrawable = 33; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#actionModeCutDrawable} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:actionModeCutDrawable */ public static int AppCompatTheme_actionModeCutDrawable = 32; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#actionModeFindDrawable} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:actionModeFindDrawable */ public static int AppCompatTheme_actionModeFindDrawable = 37; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#actionModePasteDrawable} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:actionModePasteDrawable */ public static int AppCompatTheme_actionModePasteDrawable = 34; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#actionModePopupWindowStyle} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:actionModePopupWindowStyle */ public static int AppCompatTheme_actionModePopupWindowStyle = 39; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#actionModeSelectAllDrawable} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:actionModeSelectAllDrawable */ public static int AppCompatTheme_actionModeSelectAllDrawable = 35; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#actionModeShareDrawable} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:actionModeShareDrawable */ public static int AppCompatTheme_actionModeShareDrawable = 36; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#actionModeSplitBackground} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:actionModeSplitBackground */ public static int AppCompatTheme_actionModeSplitBackground = 30; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#actionModeStyle} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:actionModeStyle */ public static int AppCompatTheme_actionModeStyle = 27; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#actionModeWebSearchDrawable} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:actionModeWebSearchDrawable */ public static int AppCompatTheme_actionModeWebSearchDrawable = 38; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#actionOverflowButtonStyle} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:actionOverflowButtonStyle */ public static int AppCompatTheme_actionOverflowButtonStyle = 15; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#actionOverflowMenuStyle} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:actionOverflowMenuStyle */ public static int AppCompatTheme_actionOverflowMenuStyle = 16; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#activityChooserViewStyle} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:activityChooserViewStyle */ public static int AppCompatTheme_activityChooserViewStyle = 57; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#alertDialogButtonGroupStyle} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:alertDialogButtonGroupStyle */ public static int AppCompatTheme_alertDialogButtonGroupStyle = 92; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#alertDialogCenterButtons} attribute's value can be found in the {@link #AppCompatTheme} array. <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. @attr name com.huanxiao.router:alertDialogCenterButtons */ public static int AppCompatTheme_alertDialogCenterButtons = 93; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#alertDialogStyle} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:alertDialogStyle */ public static int AppCompatTheme_alertDialogStyle = 91; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#alertDialogTheme} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:alertDialogTheme */ public static int AppCompatTheme_alertDialogTheme = 94; /** <p>This symbol is the offset where the {@link android.R.attr#windowAnimationStyle} attribute's value can be found in the {@link #AppCompatTheme} array. @attr name android:windowAnimationStyle */ public static int AppCompatTheme_android_windowAnimationStyle = 1; /** <p>This symbol is the offset where the {@link android.R.attr#windowIsFloating} attribute's value can be found in the {@link #AppCompatTheme} array. @attr name android:windowIsFloating */ public static int AppCompatTheme_android_windowIsFloating = 0; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#autoCompleteTextViewStyle} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:autoCompleteTextViewStyle */ public static int AppCompatTheme_autoCompleteTextViewStyle = 99; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#borderlessButtonStyle} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:borderlessButtonStyle */ public static int AppCompatTheme_borderlessButtonStyle = 54; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#buttonBarButtonStyle} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:buttonBarButtonStyle */ public static int AppCompatTheme_buttonBarButtonStyle = 51; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#buttonBarNegativeButtonStyle} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:buttonBarNegativeButtonStyle */ public static int AppCompatTheme_buttonBarNegativeButtonStyle = 97; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#buttonBarNeutralButtonStyle} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:buttonBarNeutralButtonStyle */ public static int AppCompatTheme_buttonBarNeutralButtonStyle = 98; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#buttonBarPositiveButtonStyle} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:buttonBarPositiveButtonStyle */ public static int AppCompatTheme_buttonBarPositiveButtonStyle = 96; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#buttonBarStyle} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:buttonBarStyle */ public static int AppCompatTheme_buttonBarStyle = 50; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#buttonStyle} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:buttonStyle */ public static int AppCompatTheme_buttonStyle = 100; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#buttonStyleSmall} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:buttonStyleSmall */ public static int AppCompatTheme_buttonStyleSmall = 101; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#checkboxStyle} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:checkboxStyle */ public static int AppCompatTheme_checkboxStyle = 102; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#checkedTextViewStyle} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:checkedTextViewStyle */ public static int AppCompatTheme_checkedTextViewStyle = 103; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#colorAccent} attribute's value can be found in the {@link #AppCompatTheme} array. <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. @attr name com.huanxiao.router:colorAccent */ public static int AppCompatTheme_colorAccent = 84; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#colorButtonNormal} attribute's value can be found in the {@link #AppCompatTheme} array. <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. @attr name com.huanxiao.router:colorButtonNormal */ public static int AppCompatTheme_colorButtonNormal = 88; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#colorControlActivated} attribute's value can be found in the {@link #AppCompatTheme} array. <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. @attr name com.huanxiao.router:colorControlActivated */ public static int AppCompatTheme_colorControlActivated = 86; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#colorControlHighlight} attribute's value can be found in the {@link #AppCompatTheme} array. <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. @attr name com.huanxiao.router:colorControlHighlight */ public static int AppCompatTheme_colorControlHighlight = 87; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#colorControlNormal} attribute's value can be found in the {@link #AppCompatTheme} array. <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. @attr name com.huanxiao.router:colorControlNormal */ public static int AppCompatTheme_colorControlNormal = 85; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#colorPrimary} attribute's value can be found in the {@link #AppCompatTheme} array. <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. @attr name com.huanxiao.router:colorPrimary */ public static int AppCompatTheme_colorPrimary = 82; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#colorPrimaryDark} attribute's value can be found in the {@link #AppCompatTheme} array. <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. @attr name com.huanxiao.router:colorPrimaryDark */ public static int AppCompatTheme_colorPrimaryDark = 83; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#colorSwitchThumbNormal} attribute's value can be found in the {@link #AppCompatTheme} array. <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. @attr name com.huanxiao.router:colorSwitchThumbNormal */ public static int AppCompatTheme_colorSwitchThumbNormal = 89; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#controlBackground} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:controlBackground */ public static int AppCompatTheme_controlBackground = 90; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#dialogPreferredPadding} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:dialogPreferredPadding */ public static int AppCompatTheme_dialogPreferredPadding = 43; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#dialogTheme} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:dialogTheme */ public static int AppCompatTheme_dialogTheme = 42; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#dividerHorizontal} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:dividerHorizontal */ public static int AppCompatTheme_dividerHorizontal = 56; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#dividerVertical} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:dividerVertical */ public static int AppCompatTheme_dividerVertical = 55; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#dropDownListViewStyle} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:dropDownListViewStyle */ public static int AppCompatTheme_dropDownListViewStyle = 74; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#dropdownListPreferredItemHeight} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:dropdownListPreferredItemHeight */ public static int AppCompatTheme_dropdownListPreferredItemHeight = 46; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#editTextBackground} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:editTextBackground */ public static int AppCompatTheme_editTextBackground = 63; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#editTextColor} attribute's value can be found in the {@link #AppCompatTheme} array. <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>". @attr name com.huanxiao.router:editTextColor */ public static int AppCompatTheme_editTextColor = 62; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#editTextStyle} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:editTextStyle */ public static int AppCompatTheme_editTextStyle = 104; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#homeAsUpIndicator} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:homeAsUpIndicator */ public static int AppCompatTheme_homeAsUpIndicator = 48; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#imageButtonStyle} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:imageButtonStyle */ public static int AppCompatTheme_imageButtonStyle = 64; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#listChoiceBackgroundIndicator} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:listChoiceBackgroundIndicator */ public static int AppCompatTheme_listChoiceBackgroundIndicator = 81; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#listDividerAlertDialog} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:listDividerAlertDialog */ public static int AppCompatTheme_listDividerAlertDialog = 44; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#listPopupWindowStyle} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:listPopupWindowStyle */ public static int AppCompatTheme_listPopupWindowStyle = 75; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#listPreferredItemHeight} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:listPreferredItemHeight */ public static int AppCompatTheme_listPreferredItemHeight = 69; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#listPreferredItemHeightLarge} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:listPreferredItemHeightLarge */ public static int AppCompatTheme_listPreferredItemHeightLarge = 71; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#listPreferredItemHeightSmall} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:listPreferredItemHeightSmall */ public static int AppCompatTheme_listPreferredItemHeightSmall = 70; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#listPreferredItemPaddingLeft} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:listPreferredItemPaddingLeft */ public static int AppCompatTheme_listPreferredItemPaddingLeft = 72; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#listPreferredItemPaddingRight} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:listPreferredItemPaddingRight */ public static int AppCompatTheme_listPreferredItemPaddingRight = 73; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#panelBackground} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:panelBackground */ public static int AppCompatTheme_panelBackground = 78; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#panelMenuListTheme} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:panelMenuListTheme */ public static int AppCompatTheme_panelMenuListTheme = 80; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#panelMenuListWidth} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:panelMenuListWidth */ public static int AppCompatTheme_panelMenuListWidth = 79; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#popupMenuStyle} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:popupMenuStyle */ public static int AppCompatTheme_popupMenuStyle = 60; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#popupWindowStyle} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:popupWindowStyle */ public static int AppCompatTheme_popupWindowStyle = 61; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#radioButtonStyle} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:radioButtonStyle */ public static int AppCompatTheme_radioButtonStyle = 105; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#ratingBarStyle} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:ratingBarStyle */ public static int AppCompatTheme_ratingBarStyle = 106; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#ratingBarStyleIndicator} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:ratingBarStyleIndicator */ public static int AppCompatTheme_ratingBarStyleIndicator = 107; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#ratingBarStyleSmall} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:ratingBarStyleSmall */ public static int AppCompatTheme_ratingBarStyleSmall = 108; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#searchViewStyle} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:searchViewStyle */ public static int AppCompatTheme_searchViewStyle = 68; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#seekBarStyle} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:seekBarStyle */ public static int AppCompatTheme_seekBarStyle = 109; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#selectableItemBackground} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:selectableItemBackground */ public static int AppCompatTheme_selectableItemBackground = 52; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#selectableItemBackgroundBorderless} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:selectableItemBackgroundBorderless */ public static int AppCompatTheme_selectableItemBackgroundBorderless = 53; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#spinnerDropDownItemStyle} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:spinnerDropDownItemStyle */ public static int AppCompatTheme_spinnerDropDownItemStyle = 47; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#spinnerStyle} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:spinnerStyle */ public static int AppCompatTheme_spinnerStyle = 110; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#switchStyle} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:switchStyle */ public static int AppCompatTheme_switchStyle = 111; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#textAppearanceLargePopupMenu} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:textAppearanceLargePopupMenu */ public static int AppCompatTheme_textAppearanceLargePopupMenu = 40; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#textAppearanceListItem} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:textAppearanceListItem */ public static int AppCompatTheme_textAppearanceListItem = 76; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#textAppearanceListItemSmall} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:textAppearanceListItemSmall */ public static int AppCompatTheme_textAppearanceListItemSmall = 77; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#textAppearanceSearchResultSubtitle} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:textAppearanceSearchResultSubtitle */ public static int AppCompatTheme_textAppearanceSearchResultSubtitle = 66; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#textAppearanceSearchResultTitle} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:textAppearanceSearchResultTitle */ public static int AppCompatTheme_textAppearanceSearchResultTitle = 65; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#textAppearanceSmallPopupMenu} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:textAppearanceSmallPopupMenu */ public static int AppCompatTheme_textAppearanceSmallPopupMenu = 41; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#textColorAlertDialogListItem} attribute's value can be found in the {@link #AppCompatTheme} array. <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>". @attr name com.huanxiao.router:textColorAlertDialogListItem */ public static int AppCompatTheme_textColorAlertDialogListItem = 95; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#textColorSearchUrl} attribute's value can be found in the {@link #AppCompatTheme} array. <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>". @attr name com.huanxiao.router:textColorSearchUrl */ public static int AppCompatTheme_textColorSearchUrl = 67; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#toolbarNavigationButtonStyle} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:toolbarNavigationButtonStyle */ public static int AppCompatTheme_toolbarNavigationButtonStyle = 59; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#toolbarStyle} attribute's value can be found in the {@link #AppCompatTheme} 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.huanxiao.router:toolbarStyle */ public static int AppCompatTheme_toolbarStyle = 58; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#windowActionBar} attribute's value can be found in the {@link #AppCompatTheme} array. <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. @attr name com.huanxiao.router:windowActionBar */ public static int AppCompatTheme_windowActionBar = 2; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#windowActionBarOverlay} attribute's value can be found in the {@link #AppCompatTheme} array. <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. @attr name com.huanxiao.router:windowActionBarOverlay */ public static int AppCompatTheme_windowActionBarOverlay = 4; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#windowActionModeOverlay} attribute's value can be found in the {@link #AppCompatTheme} array. <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. @attr name com.huanxiao.router:windowActionModeOverlay */ public static int AppCompatTheme_windowActionModeOverlay = 5; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#windowFixedHeightMajor} attribute's value can be found in the {@link #AppCompatTheme} array. <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. @attr name com.huanxiao.router:windowFixedHeightMajor */ public static int AppCompatTheme_windowFixedHeightMajor = 9; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#windowFixedHeightMinor} attribute's value can be found in the {@link #AppCompatTheme} array. <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. @attr name com.huanxiao.router:windowFixedHeightMinor */ public static int AppCompatTheme_windowFixedHeightMinor = 7; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#windowFixedWidthMajor} attribute's value can be found in the {@link #AppCompatTheme} array. <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. @attr name com.huanxiao.router:windowFixedWidthMajor */ public static int AppCompatTheme_windowFixedWidthMajor = 6; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#windowFixedWidthMinor} attribute's value can be found in the {@link #AppCompatTheme} array. <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. @attr name com.huanxiao.router:windowFixedWidthMinor */ public static int AppCompatTheme_windowFixedWidthMinor = 8; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#windowMinWidthMajor} attribute's value can be found in the {@link #AppCompatTheme} array. <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. @attr name com.huanxiao.router:windowMinWidthMajor */ public static int AppCompatTheme_windowMinWidthMajor = 10; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#windowMinWidthMinor} attribute's value can be found in the {@link #AppCompatTheme} array. <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. @attr name com.huanxiao.router:windowMinWidthMinor */ public static int AppCompatTheme_windowMinWidthMinor = 11; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#windowNoTitle} attribute's value can be found in the {@link #AppCompatTheme} array. <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. @attr name com.huanxiao.router:windowNoTitle */ public static int AppCompatTheme_windowNoTitle = 3; /** Attributes that can be used with a ButtonBarLayout. <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 #ButtonBarLayout_allowStacking com.huanxiao.router:allowStacking}</code></td><td></td></tr> </table> @see #ButtonBarLayout_allowStacking */ public static final int[] ButtonBarLayout = { 0x7f010094 }; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#allowStacking} attribute's value can be found in the {@link #ButtonBarLayout} array. <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. @attr name com.huanxiao.router:allowStacking */ public static int ButtonBarLayout_allowStacking = 0; /** Attributes that can be used with a CompoundButton. <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 #CompoundButton_android_button android:button}</code></td><td></td></tr> <tr><td><code>{@link #CompoundButton_buttonTint com.huanxiao.router:buttonTint}</code></td><td></td></tr> <tr><td><code>{@link #CompoundButton_buttonTintMode com.huanxiao.router:buttonTintMode}</code></td><td></td></tr> </table> @see #CompoundButton_android_button @see #CompoundButton_buttonTint @see #CompoundButton_buttonTintMode */ public static final int[] CompoundButton = { 0x01010107, 0x7f010095, 0x7f010096 }; /** <p>This symbol is the offset where the {@link android.R.attr#button} attribute's value can be found in the {@link #CompoundButton} array. @attr name android:button */ public static int CompoundButton_android_button = 0; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#buttonTint} attribute's value can be found in the {@link #CompoundButton} array. <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. @attr name com.huanxiao.router:buttonTint */ public static int CompoundButton_buttonTint = 1; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#buttonTintMode} attribute's value can be found in the {@link #CompoundButton} array. <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>src_over</code></td><td>3</td><td></td></tr> <tr><td><code>src_in</code></td><td>5</td><td></td></tr> <tr><td><code>src_atop</code></td><td>9</td><td></td></tr> <tr><td><code>multiply</code></td><td>14</td><td></td></tr> <tr><td><code>screen</code></td><td>15</td><td></td></tr> </table> @attr name com.huanxiao.router:buttonTintMode */ public static int CompoundButton_buttonTintMode = 2; /** 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_arrowHeadLength com.huanxiao.router:arrowHeadLength}</code></td><td></td></tr> <tr><td><code>{@link #DrawerArrowToggle_arrowShaftLength com.huanxiao.router:arrowShaftLength}</code></td><td></td></tr> <tr><td><code>{@link #DrawerArrowToggle_barLength com.huanxiao.router:barLength}</code></td><td></td></tr> <tr><td><code>{@link #DrawerArrowToggle_color com.huanxiao.router:color}</code></td><td></td></tr> <tr><td><code>{@link #DrawerArrowToggle_drawableSize com.huanxiao.router:drawableSize}</code></td><td></td></tr> <tr><td><code>{@link #DrawerArrowToggle_gapBetweenBars com.huanxiao.router:gapBetweenBars}</code></td><td></td></tr> <tr><td><code>{@link #DrawerArrowToggle_spinBars com.huanxiao.router:spinBars}</code></td><td></td></tr> <tr><td><code>{@link #DrawerArrowToggle_thickness com.huanxiao.router:thickness}</code></td><td></td></tr> </table> @see #DrawerArrowToggle_arrowHeadLength @see #DrawerArrowToggle_arrowShaftLength @see #DrawerArrowToggle_barLength @see #DrawerArrowToggle_color @see #DrawerArrowToggle_drawableSize @see #DrawerArrowToggle_gapBetweenBars @see #DrawerArrowToggle_spinBars @see #DrawerArrowToggle_thickness */ public static final int[] DrawerArrowToggle = { 0x7f010097, 0x7f010098, 0x7f010099, 0x7f01009a, 0x7f01009b, 0x7f01009c, 0x7f01009d, 0x7f01009e }; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#arrowHeadLength} attribute's value can be found in the {@link #DrawerArrowToggle} 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.huanxiao.router:arrowHeadLength */ public static int DrawerArrowToggle_arrowHeadLength = 4; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#arrowShaftLength} attribute's value can be found in the {@link #DrawerArrowToggle} 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.huanxiao.router:arrowShaftLength */ public static int DrawerArrowToggle_arrowShaftLength = 5; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#barLength} attribute's value can be found in the {@link #DrawerArrowToggle} 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.huanxiao.router:barLength */ public static int DrawerArrowToggle_barLength = 6; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#color} attribute's value can be found in the {@link #DrawerArrowToggle} array. <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. @attr name com.huanxiao.router:color */ public static int DrawerArrowToggle_color = 0; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#drawableSize} attribute's value can be found in the {@link #DrawerArrowToggle} 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.huanxiao.router:drawableSize */ public static int DrawerArrowToggle_drawableSize = 2; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#gapBetweenBars} attribute's value can be found in the {@link #DrawerArrowToggle} 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.huanxiao.router:gapBetweenBars */ public static int DrawerArrowToggle_gapBetweenBars = 3; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#spinBars} attribute's value can be found in the {@link #DrawerArrowToggle} array. <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. @attr name com.huanxiao.router:spinBars */ public static int DrawerArrowToggle_spinBars = 1; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#thickness} attribute's value can be found in the {@link #DrawerArrowToggle} 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.huanxiao.router:thickness */ public static int DrawerArrowToggle_thickness = 7; /** 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></td></tr> <tr><td><code>{@link #LinearLayoutCompat_android_baselineAlignedChildIndex android:baselineAlignedChildIndex}</code></td><td></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></td></tr> <tr><td><code>{@link #LinearLayoutCompat_android_weightSum android:weightSum}</code></td><td></td></tr> <tr><td><code>{@link #LinearLayoutCompat_divider com.huanxiao.router:divider}</code></td><td></td></tr> <tr><td><code>{@link #LinearLayoutCompat_dividerPadding com.huanxiao.router:dividerPadding}</code></td><td></td></tr> <tr><td><code>{@link #LinearLayoutCompat_measureWithLargestChild com.huanxiao.router:measureWithLargestChild}</code></td><td></td></tr> <tr><td><code>{@link #LinearLayoutCompat_showDividers com.huanxiao.router:showDividers}</code></td><td></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, 0x7f01000b, 0x7f01009f, 0x7f0100a0, 0x7f0100a1 }; /** <p>This symbol is the offset where the {@link android.R.attr#baselineAligned} attribute's value can be found in the {@link #LinearLayoutCompat} array. @attr name android:baselineAligned */ public static int LinearLayoutCompat_android_baselineAligned = 2; /** <p>This symbol is the offset where the {@link android.R.attr#baselineAlignedChildIndex} attribute's value can be found in the {@link #LinearLayoutCompat} array. @attr name android:baselineAlignedChildIndex */ public static 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 int LinearLayoutCompat_android_gravity = 0; /** <p>This symbol is the offset where the {@link android.R.attr#orientation} attribute's value can be found in the {@link #LinearLayoutCompat} array. @attr name android:orientation */ public static int LinearLayoutCompat_android_orientation = 1; /** <p>This symbol is the offset where the {@link android.R.attr#weightSum} attribute's value can be found in the {@link #LinearLayoutCompat} array. @attr name android:weightSum */ public static int LinearLayoutCompat_android_weightSum = 4; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#divider} attribute's value can be found in the {@link #LinearLayoutCompat} 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.huanxiao.router:divider */ public static int LinearLayoutCompat_divider = 5; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#dividerPadding} attribute's value can be found in the {@link #LinearLayoutCompat} 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.huanxiao.router:dividerPadding */ public static int LinearLayoutCompat_dividerPadding = 8; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#measureWithLargestChild} attribute's value can be found in the {@link #LinearLayoutCompat} array. <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. @attr name com.huanxiao.router:measureWithLargestChild */ public static int LinearLayoutCompat_measureWithLargestChild = 6; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#showDividers} attribute's value can be found in the {@link #LinearLayoutCompat} array. <p>Must be one or more (separated by '|') of the following constant values.</p> <table> <colgroup align="left" /> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Constant</th><th>Value</th><th>Description</th></tr> <tr><td><code>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> @attr name com.huanxiao.router:showDividers */ public static 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 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 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 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 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></td></tr> <tr><td><code>{@link #ListPopupWindow_android_dropDownVerticalOffset android:dropDownVerticalOffset}</code></td><td></td></tr> </table> @see #ListPopupWindow_android_dropDownHorizontalOffset @see #ListPopupWindow_android_dropDownVerticalOffset */ public static final int[] ListPopupWindow = { 0x010102ac, 0x010102ad }; /** <p>This symbol is the offset where the {@link android.R.attr#dropDownHorizontalOffset} attribute's value can be found in the {@link #ListPopupWindow} array. @attr name android:dropDownHorizontalOffset */ public static int ListPopupWindow_android_dropDownHorizontalOffset = 0; /** <p>This symbol is the offset where the {@link android.R.attr#dropDownVerticalOffset} attribute's value can be found in the {@link #ListPopupWindow} array. @attr name android:dropDownVerticalOffset */ public static int ListPopupWindow_android_dropDownVerticalOffset = 1; /** Attributes that can be used with a MenuGroup. <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></td></tr> <tr><td><code>{@link #MenuGroup_android_enabled android:enabled}</code></td><td></td></tr> <tr><td><code>{@link #MenuGroup_android_id android:id}</code></td><td></td></tr> <tr><td><code>{@link #MenuGroup_android_menuCategory android:menuCategory}</code></td><td></td></tr> <tr><td><code>{@link #MenuGroup_android_orderInCategory android:orderInCategory}</code></td><td></td></tr> <tr><td><code>{@link #MenuGroup_android_visible android:visible}</code></td><td></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>This symbol is the offset where the {@link android.R.attr#checkableBehavior} attribute's value can be found in the {@link #MenuGroup} array. @attr name android:checkableBehavior */ public static int MenuGroup_android_checkableBehavior = 5; /** <p>This symbol is the offset where the {@link android.R.attr#enabled} attribute's value can be found in the {@link #MenuGroup} array. @attr name android:enabled */ public static int MenuGroup_android_enabled = 0; /** <p>This symbol is the offset where the {@link android.R.attr#id} attribute's value can be found in the {@link #MenuGroup} array. @attr name android:id */ public static int MenuGroup_android_id = 1; /** <p>This symbol is the offset where the {@link android.R.attr#menuCategory} attribute's value can be found in the {@link #MenuGroup} array. @attr name android:menuCategory */ public static int MenuGroup_android_menuCategory = 3; /** <p>This symbol is the offset where the {@link android.R.attr#orderInCategory} attribute's value can be found in the {@link #MenuGroup} array. @attr name android:orderInCategory */ public static int MenuGroup_android_orderInCategory = 4; /** <p>This symbol is the offset where the {@link android.R.attr#visible} attribute's value can be found in the {@link #MenuGroup} array. @attr name android:visible */ public static int MenuGroup_android_visible = 2; /** Attributes that can be used with a MenuItem. <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.huanxiao.router:actionLayout}</code></td><td></td></tr> <tr><td><code>{@link #MenuItem_actionProviderClass com.huanxiao.router:actionProviderClass}</code></td><td></td></tr> <tr><td><code>{@link #MenuItem_actionViewClass com.huanxiao.router:actionViewClass}</code></td><td></td></tr> <tr><td><code>{@link #MenuItem_android_alphabeticShortcut android:alphabeticShortcut}</code></td><td></td></tr> <tr><td><code>{@link #MenuItem_android_checkable android:checkable}</code></td><td></td></tr> <tr><td><code>{@link #MenuItem_android_checked android:checked}</code></td><td></td></tr> <tr><td><code>{@link #MenuItem_android_enabled android:enabled}</code></td><td></td></tr> <tr><td><code>{@link #MenuItem_android_icon android:icon}</code></td><td></td></tr> <tr><td><code>{@link #MenuItem_android_id android:id}</code></td><td></td></tr> <tr><td><code>{@link #MenuItem_android_menuCategory android:menuCategory}</code></td><td></td></tr> <tr><td><code>{@link #MenuItem_android_numericShortcut android:numericShortcut}</code></td><td></td></tr> <tr><td><code>{@link #MenuItem_android_onClick android:onClick}</code></td><td></td></tr> <tr><td><code>{@link #MenuItem_android_orderInCategory android:orderInCategory}</code></td><td></td></tr> <tr><td><code>{@link #MenuItem_android_title android:title}</code></td><td></td></tr> <tr><td><code>{@link #MenuItem_android_titleCondensed android:titleCondensed}</code></td><td></td></tr> <tr><td><code>{@link #MenuItem_android_visible android:visible}</code></td><td></td></tr> <tr><td><code>{@link #MenuItem_showAsAction com.huanxiao.router:showAsAction}</code></td><td></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, 0x7f0100a2, 0x7f0100a3, 0x7f0100a4, 0x7f0100a5 }; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#actionLayout} attribute's value can be found in the {@link #MenuItem} 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.huanxiao.router:actionLayout */ public static int MenuItem_actionLayout = 14; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#actionProviderClass} attribute's value can be found in the {@link #MenuItem} 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.huanxiao.router:actionProviderClass */ public static int MenuItem_actionProviderClass = 16; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#actionViewClass} attribute's value can be found in the {@link #MenuItem} 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.huanxiao.router:actionViewClass */ public static int MenuItem_actionViewClass = 15; /** <p>This symbol is the offset where the {@link android.R.attr#alphabeticShortcut} attribute's value can be found in the {@link #MenuItem} array. @attr name android:alphabeticShortcut */ public static int MenuItem_android_alphabeticShortcut = 9; /** <p>This symbol is the offset where the {@link android.R.attr#checkable} attribute's value can be found in the {@link #MenuItem} array. @attr name android:checkable */ public static int MenuItem_android_checkable = 11; /** <p>This symbol is the offset where the {@link android.R.attr#checked} attribute's value can be found in the {@link #MenuItem} array. @attr name android:checked */ public static int MenuItem_android_checked = 3; /** <p>This symbol is the offset where the {@link android.R.attr#enabled} attribute's value can be found in the {@link #MenuItem} array. @attr name android:enabled */ public static int MenuItem_android_enabled = 1; /** <p>This symbol is the offset where the {@link android.R.attr#icon} attribute's value can be found in the {@link #MenuItem} array. @attr name android:icon */ public static int MenuItem_android_icon = 0; /** <p>This symbol is the offset where the {@link android.R.attr#id} attribute's value can be found in the {@link #MenuItem} array. @attr name android:id */ public static int MenuItem_android_id = 2; /** <p>This symbol is the offset where the {@link android.R.attr#menuCategory} attribute's value can be found in the {@link #MenuItem} array. @attr name android:menuCategory */ public static int MenuItem_android_menuCategory = 5; /** <p>This symbol is the offset where the {@link android.R.attr#numericShortcut} attribute's value can be found in the {@link #MenuItem} array. @attr name android:numericShortcut */ public static int MenuItem_android_numericShortcut = 10; /** <p>This symbol is the offset where the {@link android.R.attr#onClick} attribute's value can be found in the {@link #MenuItem} array. @attr name android:onClick */ public static int MenuItem_android_onClick = 12; /** <p>This symbol is the offset where the {@link android.R.attr#orderInCategory} attribute's value can be found in the {@link #MenuItem} array. @attr name android:orderInCategory */ public static int MenuItem_android_orderInCategory = 6; /** <p>This symbol is the offset where the {@link android.R.attr#title} attribute's value can be found in the {@link #MenuItem} array. @attr name android:title */ public static int MenuItem_android_title = 7; /** <p>This symbol is the offset where the {@link android.R.attr#titleCondensed} attribute's value can be found in the {@link #MenuItem} array. @attr name android:titleCondensed */ public static int MenuItem_android_titleCondensed = 8; /** <p>This symbol is the offset where the {@link android.R.attr#visible} attribute's value can be found in the {@link #MenuItem} array. @attr name android:visible */ public static int MenuItem_android_visible = 4; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#showAsAction} attribute's value can be found in the {@link #MenuItem} array. <p>Must be one or more (separated by '|') of the following constant values.</p> <table> <colgroup align="left" /> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Constant</th><th>Value</th><th>Description</th></tr> <tr><td><code>never</code></td><td>0</td><td></td></tr> <tr><td><code>ifRoom</code></td><td>1</td><td></td></tr> <tr><td><code>always</code></td><td>2</td><td></td></tr> <tr><td><code>withText</code></td><td>4</td><td></td></tr> <tr><td><code>collapseActionView</code></td><td>8</td><td></td></tr> </table> @attr name com.huanxiao.router:showAsAction */ public static 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></td></tr> <tr><td><code>{@link #MenuView_android_horizontalDivider android:horizontalDivider}</code></td><td></td></tr> <tr><td><code>{@link #MenuView_android_itemBackground android:itemBackground}</code></td><td></td></tr> <tr><td><code>{@link #MenuView_android_itemIconDisabledAlpha android:itemIconDisabledAlpha}</code></td><td></td></tr> <tr><td><code>{@link #MenuView_android_itemTextAppearance android:itemTextAppearance}</code></td><td></td></tr> <tr><td><code>{@link #MenuView_android_verticalDivider android:verticalDivider}</code></td><td></td></tr> <tr><td><code>{@link #MenuView_android_windowAnimationStyle android:windowAnimationStyle}</code></td><td></td></tr> <tr><td><code>{@link #MenuView_preserveIconSpacing com.huanxiao.router:preserveIconSpacing}</code></td><td></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, 0x7f0100a6 }; /** <p>This symbol is the offset where the {@link android.R.attr#headerBackground} attribute's value can be found in the {@link #MenuView} array. @attr name android:headerBackground */ public static int MenuView_android_headerBackground = 4; /** <p>This symbol is the offset where the {@link android.R.attr#horizontalDivider} attribute's value can be found in the {@link #MenuView} array. @attr name android:horizontalDivider */ public static int MenuView_android_horizontalDivider = 2; /** <p>This symbol is the offset where the {@link android.R.attr#itemBackground} attribute's value can be found in the {@link #MenuView} array. @attr name android:itemBackground */ public static int MenuView_android_itemBackground = 5; /** <p>This symbol is the offset where the {@link android.R.attr#itemIconDisabledAlpha} attribute's value can be found in the {@link #MenuView} array. @attr name android:itemIconDisabledAlpha */ public static int MenuView_android_itemIconDisabledAlpha = 6; /** <p>This symbol is the offset where the {@link android.R.attr#itemTextAppearance} attribute's value can be found in the {@link #MenuView} array. @attr name android:itemTextAppearance */ public static int MenuView_android_itemTextAppearance = 1; /** <p>This symbol is the offset where the {@link android.R.attr#verticalDivider} attribute's value can be found in the {@link #MenuView} array. @attr name android:verticalDivider */ public static int MenuView_android_verticalDivider = 3; /** <p>This symbol is the offset where the {@link android.R.attr#windowAnimationStyle} attribute's value can be found in the {@link #MenuView} array. @attr name android:windowAnimationStyle */ public static int MenuView_android_windowAnimationStyle = 0; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#preserveIconSpacing} attribute's value can be found in the {@link #MenuView} array. <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. @attr name com.huanxiao.router:preserveIconSpacing */ public static 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.huanxiao.router:overlapAnchor}</code></td><td></td></tr> </table> @see #PopupWindow_android_popupBackground @see #PopupWindow_overlapAnchor */ public static final int[] PopupWindow = { 0x01010176, 0x7f0100a7 }; /** <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 int PopupWindow_android_popupBackground = 0; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#overlapAnchor} attribute's value can be found in the {@link #PopupWindow} array. <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. @attr name com.huanxiao.router:overlapAnchor */ public static 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.huanxiao.router:state_above_anchor}</code></td><td></td></tr> </table> @see #PopupWindowBackgroundState_state_above_anchor */ public static final int[] PopupWindowBackgroundState = { 0x7f0100a8 }; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#state_above_anchor} attribute's value can be found in the {@link #PopupWindowBackgroundState} array. <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. @attr name com.huanxiao.router:state_above_anchor */ public static 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></td></tr> <tr><td><code>{@link #SearchView_android_inputType android:inputType}</code></td><td></td></tr> <tr><td><code>{@link #SearchView_android_maxWidth android:maxWidth}</code></td><td></td></tr> <tr><td><code>{@link #SearchView_closeIcon com.huanxiao.router:closeIcon}</code></td><td></td></tr> <tr><td><code>{@link #SearchView_commitIcon com.huanxiao.router:commitIcon}</code></td><td></td></tr> <tr><td><code>{@link #SearchView_defaultQueryHint com.huanxiao.router:defaultQueryHint}</code></td><td></td></tr> <tr><td><code>{@link #SearchView_goIcon com.huanxiao.router:goIcon}</code></td><td></td></tr> <tr><td><code>{@link #SearchView_iconifiedByDefault com.huanxiao.router:iconifiedByDefault}</code></td><td></td></tr> <tr><td><code>{@link #SearchView_layout com.huanxiao.router:layout}</code></td><td></td></tr> <tr><td><code>{@link #SearchView_queryBackground com.huanxiao.router:queryBackground}</code></td><td></td></tr> <tr><td><code>{@link #SearchView_queryHint com.huanxiao.router:queryHint}</code></td><td></td></tr> <tr><td><code>{@link #SearchView_searchHintIcon com.huanxiao.router:searchHintIcon}</code></td><td></td></tr> <tr><td><code>{@link #SearchView_searchIcon com.huanxiao.router:searchIcon}</code></td><td></td></tr> <tr><td><code>{@link #SearchView_submitBackground com.huanxiao.router:submitBackground}</code></td><td></td></tr> <tr><td><code>{@link #SearchView_suggestionRowLayout com.huanxiao.router:suggestionRowLayout}</code></td><td></td></tr> <tr><td><code>{@link #SearchView_voiceIcon com.huanxiao.router:voiceIcon}</code></td><td></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_defaultQueryHint @see #SearchView_goIcon @see #SearchView_iconifiedByDefault @see #SearchView_layout @see #SearchView_queryBackground @see #SearchView_queryHint @see #SearchView_searchHintIcon @see #SearchView_searchIcon @see #SearchView_submitBackground @see #SearchView_suggestionRowLayout @see #SearchView_voiceIcon */ public static final int[] SearchView = { 0x010100da, 0x0101011f, 0x01010220, 0x01010264, 0x7f0100a9, 0x7f0100aa, 0x7f0100ab, 0x7f0100ac, 0x7f0100ad, 0x7f0100ae, 0x7f0100af, 0x7f0100b0, 0x7f0100b1, 0x7f0100b2, 0x7f0100b3, 0x7f0100b4, 0x7f0100b5 }; /** <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 int SearchView_android_focusable = 0; /** <p>This symbol is the offset where the {@link android.R.attr#imeOptions} attribute's value can be found in the {@link #SearchView} array. @attr name android:imeOptions */ public static int SearchView_android_imeOptions = 3; /** <p>This symbol is the offset where the {@link android.R.attr#inputType} attribute's value can be found in the {@link #SearchView} array. @attr name android:inputType */ public static int SearchView_android_inputType = 2; /** <p>This symbol is the offset where the {@link android.R.attr#maxWidth} attribute's value can be found in the {@link #SearchView} array. @attr name android:maxWidth */ public static int SearchView_android_maxWidth = 1; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#closeIcon} attribute's value can be found in the {@link #SearchView} 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.huanxiao.router:closeIcon */ public static int SearchView_closeIcon = 8; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#commitIcon} attribute's value can be found in the {@link #SearchView} 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.huanxiao.router:commitIcon */ public static int SearchView_commitIcon = 13; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#defaultQueryHint} attribute's value can be found in the {@link #SearchView} 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.huanxiao.router:defaultQueryHint */ public static int SearchView_defaultQueryHint = 7; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#goIcon} attribute's value can be found in the {@link #SearchView} 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.huanxiao.router:goIcon */ public static int SearchView_goIcon = 9; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#iconifiedByDefault} attribute's value can be found in the {@link #SearchView} array. <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. @attr name com.huanxiao.router:iconifiedByDefault */ public static int SearchView_iconifiedByDefault = 5; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#layout} attribute's value can be found in the {@link #SearchView} 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.huanxiao.router:layout */ public static int SearchView_layout = 4; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#queryBackground} attribute's value can be found in the {@link #SearchView} 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.huanxiao.router:queryBackground */ public static int SearchView_queryBackground = 15; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#queryHint} attribute's value can be found in the {@link #SearchView} 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.huanxiao.router:queryHint */ public static int SearchView_queryHint = 6; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#searchHintIcon} attribute's value can be found in the {@link #SearchView} 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.huanxiao.router:searchHintIcon */ public static int SearchView_searchHintIcon = 11; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#searchIcon} attribute's value can be found in the {@link #SearchView} 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.huanxiao.router:searchIcon */ public static int SearchView_searchIcon = 10; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#submitBackground} attribute's value can be found in the {@link #SearchView} 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.huanxiao.router:submitBackground */ public static int SearchView_submitBackground = 16; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#suggestionRowLayout} attribute's value can be found in the {@link #SearchView} 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.huanxiao.router:suggestionRowLayout */ public static int SearchView_suggestionRowLayout = 14; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#voiceIcon} attribute's value can be found in the {@link #SearchView} 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.huanxiao.router:voiceIcon */ public static int SearchView_voiceIcon = 12; /** 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_dropDownWidth android:dropDownWidth}</code></td><td></td></tr> <tr><td><code>{@link #Spinner_android_entries android:entries}</code></td><td></td></tr> <tr><td><code>{@link #Spinner_android_popupBackground android:popupBackground}</code></td><td></td></tr> <tr><td><code>{@link #Spinner_android_prompt android:prompt}</code></td><td></td></tr> <tr><td><code>{@link #Spinner_popupTheme com.huanxiao.router:popupTheme}</code></td><td></td></tr> </table> @see #Spinner_android_dropDownWidth @see #Spinner_android_entries @see #Spinner_android_popupBackground @see #Spinner_android_prompt @see #Spinner_popupTheme */ public static final int[] Spinner = { 0x010100b2, 0x01010176, 0x0101017b, 0x01010262, 0x7f01001b }; /** <p>This symbol is the offset where the {@link android.R.attr#dropDownWidth} attribute's value can be found in the {@link #Spinner} array. @attr name android:dropDownWidth */ public static int Spinner_android_dropDownWidth = 3; /** <p>This symbol is the offset where the {@link android.R.attr#entries} attribute's value can be found in the {@link #Spinner} array. @attr name android:entries */ public static int Spinner_android_entries = 0; /** <p>This symbol is the offset where the {@link android.R.attr#popupBackground} attribute's value can be found in the {@link #Spinner} array. @attr name android:popupBackground */ public static int Spinner_android_popupBackground = 1; /** <p>This symbol is the offset where the {@link android.R.attr#prompt} attribute's value can be found in the {@link #Spinner} array. @attr name android:prompt */ public static int Spinner_android_prompt = 2; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#popupTheme} attribute's value can be found in the {@link #Spinner} 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.huanxiao.router:popupTheme */ public static int Spinner_popupTheme = 4; /** 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></td></tr> <tr><td><code>{@link #SwitchCompat_android_textOn android:textOn}</code></td><td></td></tr> <tr><td><code>{@link #SwitchCompat_android_thumb android:thumb}</code></td><td></td></tr> <tr><td><code>{@link #SwitchCompat_showText com.huanxiao.router:showText}</code></td><td></td></tr> <tr><td><code>{@link #SwitchCompat_splitTrack com.huanxiao.router:splitTrack}</code></td><td></td></tr> <tr><td><code>{@link #SwitchCompat_switchMinWidth com.huanxiao.router:switchMinWidth}</code></td><td></td></tr> <tr><td><code>{@link #SwitchCompat_switchPadding com.huanxiao.router:switchPadding}</code></td><td></td></tr> <tr><td><code>{@link #SwitchCompat_switchTextAppearance com.huanxiao.router:switchTextAppearance}</code></td><td></td></tr> <tr><td><code>{@link #SwitchCompat_thumbTextPadding com.huanxiao.router:thumbTextPadding}</code></td><td></td></tr> <tr><td><code>{@link #SwitchCompat_track com.huanxiao.router:track}</code></td><td></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, 0x7f0100b6, 0x7f0100b7, 0x7f0100b8, 0x7f0100b9, 0x7f0100ba, 0x7f0100bb, 0x7f0100bc }; /** <p>This symbol is the offset where the {@link android.R.attr#textOff} attribute's value can be found in the {@link #SwitchCompat} array. @attr name android:textOff */ public static int SwitchCompat_android_textOff = 1; /** <p>This symbol is the offset where the {@link android.R.attr#textOn} attribute's value can be found in the {@link #SwitchCompat} array. @attr name android:textOn */ public static int SwitchCompat_android_textOn = 0; /** <p>This symbol is the offset where the {@link android.R.attr#thumb} attribute's value can be found in the {@link #SwitchCompat} array. @attr name android:thumb */ public static int SwitchCompat_android_thumb = 2; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#showText} attribute's value can be found in the {@link #SwitchCompat} array. <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. @attr name com.huanxiao.router:showText */ public static int SwitchCompat_showText = 9; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#splitTrack} attribute's value can be found in the {@link #SwitchCompat} array. <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. @attr name com.huanxiao.router:splitTrack */ public static int SwitchCompat_splitTrack = 8; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#switchMinWidth} attribute's value can be found in the {@link #SwitchCompat} 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.huanxiao.router:switchMinWidth */ public static int SwitchCompat_switchMinWidth = 6; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#switchPadding} attribute's value can be found in the {@link #SwitchCompat} 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.huanxiao.router:switchPadding */ public static int SwitchCompat_switchPadding = 7; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#switchTextAppearance} attribute's value can be found in the {@link #SwitchCompat} 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.huanxiao.router:switchTextAppearance */ public static int SwitchCompat_switchTextAppearance = 5; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#thumbTextPadding} attribute's value can be found in the {@link #SwitchCompat} 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.huanxiao.router:thumbTextPadding */ public static int SwitchCompat_thumbTextPadding = 4; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#track} attribute's value can be found in the {@link #SwitchCompat} 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.huanxiao.router:track */ public static int SwitchCompat_track = 3; /** Attributes that can be used with a TextAppearance. <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 #TextAppearance_android_shadowColor android:shadowColor}</code></td><td></td></tr> <tr><td><code>{@link #TextAppearance_android_shadowDx android:shadowDx}</code></td><td></td></tr> <tr><td><code>{@link #TextAppearance_android_shadowDy android:shadowDy}</code></td><td></td></tr> <tr><td><code>{@link #TextAppearance_android_shadowRadius android:shadowRadius}</code></td><td></td></tr> <tr><td><code>{@link #TextAppearance_android_textColor android:textColor}</code></td><td></td></tr> <tr><td><code>{@link #TextAppearance_android_textSize android:textSize}</code></td><td></td></tr> <tr><td><code>{@link #TextAppearance_android_textStyle android:textStyle}</code></td><td></td></tr> <tr><td><code>{@link #TextAppearance_android_typeface android:typeface}</code></td><td></td></tr> <tr><td><code>{@link #TextAppearance_textAllCaps com.huanxiao.router:textAllCaps}</code></td><td></td></tr> </table> @see #TextAppearance_android_shadowColor @see #TextAppearance_android_shadowDx @see #TextAppearance_android_shadowDy @see #TextAppearance_android_shadowRadius @see #TextAppearance_android_textColor @see #TextAppearance_android_textSize @see #TextAppearance_android_textStyle @see #TextAppearance_android_typeface @see #TextAppearance_textAllCaps */ public static final int[] TextAppearance = { 0x01010095, 0x01010096, 0x01010097, 0x01010098, 0x01010161, 0x01010162, 0x01010163, 0x01010164, 0x7f010025 }; /** <p>This symbol is the offset where the {@link android.R.attr#shadowColor} attribute's value can be found in the {@link #TextAppearance} array. @attr name android:shadowColor */ public static int TextAppearance_android_shadowColor = 4; /** <p>This symbol is the offset where the {@link android.R.attr#shadowDx} attribute's value can be found in the {@link #TextAppearance} array. @attr name android:shadowDx */ public static int TextAppearance_android_shadowDx = 5; /** <p>This symbol is the offset where the {@link android.R.attr#shadowDy} attribute's value can be found in the {@link #TextAppearance} array. @attr name android:shadowDy */ public static int TextAppearance_android_shadowDy = 6; /** <p>This symbol is the offset where the {@link android.R.attr#shadowRadius} attribute's value can be found in the {@link #TextAppearance} array. @attr name android:shadowRadius */ public static int TextAppearance_android_shadowRadius = 7; /** <p>This symbol is the offset where the {@link android.R.attr#textColor} attribute's value can be found in the {@link #TextAppearance} array. @attr name android:textColor */ public static int TextAppearance_android_textColor = 3; /** <p>This symbol is the offset where the {@link android.R.attr#textSize} attribute's value can be found in the {@link #TextAppearance} array. @attr name android:textSize */ public static int TextAppearance_android_textSize = 0; /** <p>This symbol is the offset where the {@link android.R.attr#textStyle} attribute's value can be found in the {@link #TextAppearance} array. @attr name android:textStyle */ public static int TextAppearance_android_textStyle = 2; /** <p>This symbol is the offset where the {@link android.R.attr#typeface} attribute's value can be found in the {@link #TextAppearance} array. @attr name android:typeface */ public static int TextAppearance_android_typeface = 1; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#textAllCaps} attribute's value can be found in the {@link #TextAppearance} array. <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>". @attr name com.huanxiao.router:textAllCaps */ public static int TextAppearance_textAllCaps = 8; /** 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></td></tr> <tr><td><code>{@link #Toolbar_collapseContentDescription com.huanxiao.router:collapseContentDescription}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_collapseIcon com.huanxiao.router:collapseIcon}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_contentInsetEnd com.huanxiao.router:contentInsetEnd}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_contentInsetLeft com.huanxiao.router:contentInsetLeft}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_contentInsetRight com.huanxiao.router:contentInsetRight}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_contentInsetStart com.huanxiao.router:contentInsetStart}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_logo com.huanxiao.router:logo}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_logoDescription com.huanxiao.router:logoDescription}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_maxButtonHeight com.huanxiao.router:maxButtonHeight}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_navigationContentDescription com.huanxiao.router:navigationContentDescription}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_navigationIcon com.huanxiao.router:navigationIcon}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_popupTheme com.huanxiao.router:popupTheme}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_subtitle com.huanxiao.router:subtitle}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_subtitleTextAppearance com.huanxiao.router:subtitleTextAppearance}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_subtitleTextColor com.huanxiao.router:subtitleTextColor}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_title com.huanxiao.router:title}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_titleMarginBottom com.huanxiao.router:titleMarginBottom}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_titleMarginEnd com.huanxiao.router:titleMarginEnd}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_titleMarginStart com.huanxiao.router:titleMarginStart}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_titleMarginTop com.huanxiao.router:titleMarginTop}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_titleMargins com.huanxiao.router:titleMargins}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_titleTextAppearance com.huanxiao.router:titleTextAppearance}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_titleTextColor com.huanxiao.router:titleTextColor}</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_logo @see #Toolbar_logoDescription @see #Toolbar_maxButtonHeight @see #Toolbar_navigationContentDescription @see #Toolbar_navigationIcon @see #Toolbar_popupTheme @see #Toolbar_subtitle @see #Toolbar_subtitleTextAppearance @see #Toolbar_subtitleTextColor @see #Toolbar_title @see #Toolbar_titleMarginBottom @see #Toolbar_titleMarginEnd @see #Toolbar_titleMarginStart @see #Toolbar_titleMarginTop @see #Toolbar_titleMargins @see #Toolbar_titleTextAppearance @see #Toolbar_titleTextColor */ public static final int[] Toolbar = { 0x010100af, 0x01010140, 0x7f010003, 0x7f010006, 0x7f01000a, 0x7f010016, 0x7f010017, 0x7f010018, 0x7f010019, 0x7f01001b, 0x7f0100bd, 0x7f0100be, 0x7f0100bf, 0x7f0100c0, 0x7f0100c1, 0x7f0100c2, 0x7f0100c3, 0x7f0100c4, 0x7f0100c5, 0x7f0100c6, 0x7f0100c7, 0x7f0100c8, 0x7f0100c9, 0x7f0100ca, 0x7f0100cb }; /** <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 int Toolbar_android_gravity = 0; /** <p>This symbol is the offset where the {@link android.R.attr#minHeight} attribute's value can be found in the {@link #Toolbar} array. @attr name android:minHeight */ public static int Toolbar_android_minHeight = 1; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#collapseContentDescription} 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.huanxiao.router:collapseContentDescription */ public static int Toolbar_collapseContentDescription = 19; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#collapseIcon} attribute's value can be found in the {@link #Toolbar} array. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". @attr name com.huanxiao.router:collapseIcon */ public static int Toolbar_collapseIcon = 18; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#contentInsetEnd} 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.huanxiao.router:contentInsetEnd */ public static int Toolbar_contentInsetEnd = 6; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#contentInsetLeft} 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.huanxiao.router:contentInsetLeft */ public static int Toolbar_contentInsetLeft = 7; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#contentInsetRight} 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.huanxiao.router:contentInsetRight */ public static int Toolbar_contentInsetRight = 8; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#contentInsetStart} 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.huanxiao.router:contentInsetStart */ public static int Toolbar_contentInsetStart = 5; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#logo} 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.huanxiao.router:logo */ public static int Toolbar_logo = 4; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#logoDescription} 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.huanxiao.router:logoDescription */ public static int Toolbar_logoDescription = 22; /** <p>This symbol is the offset where the {@link com.hpdroid.router.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.huanxiao.router:maxButtonHeight */ public static int Toolbar_maxButtonHeight = 17; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#navigationContentDescription} 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.huanxiao.router:navigationContentDescription */ public static int Toolbar_navigationContentDescription = 21; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#navigationIcon} 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.huanxiao.router:navigationIcon */ public static int Toolbar_navigationIcon = 20; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#popupTheme} 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.huanxiao.router:popupTheme */ public static int Toolbar_popupTheme = 9; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#subtitle} 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.huanxiao.router:subtitle */ public static int Toolbar_subtitle = 3; /** <p>This symbol is the offset where the {@link com.hpdroid.router.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.huanxiao.router:subtitleTextAppearance */ public static int Toolbar_subtitleTextAppearance = 11; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#subtitleTextColor} attribute's value can be found in the {@link #Toolbar} array. <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. @attr name com.huanxiao.router:subtitleTextColor */ public static int Toolbar_subtitleTextColor = 24; /** <p>This symbol is the offset where the {@link com.hpdroid.router.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.huanxiao.router:title */ public static int Toolbar_title = 2; /** <p>This symbol is the offset where the {@link com.hpdroid.router.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.huanxiao.router:titleMarginBottom */ public static int Toolbar_titleMarginBottom = 16; /** <p>This symbol is the offset where the {@link com.hpdroid.router.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.huanxiao.router:titleMarginEnd */ public static int Toolbar_titleMarginEnd = 14; /** <p>This symbol is the offset where the {@link com.hpdroid.router.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.huanxiao.router:titleMarginStart */ public static int Toolbar_titleMarginStart = 13; /** <p>This symbol is the offset where the {@link com.hpdroid.router.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.huanxiao.router:titleMarginTop */ public static int Toolbar_titleMarginTop = 15; /** <p>This symbol is the offset where the {@link com.hpdroid.router.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.huanxiao.router:titleMargins */ public static int Toolbar_titleMargins = 12; /** <p>This symbol is the offset where the {@link com.hpdroid.router.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.huanxiao.router:titleTextAppearance */ public static int Toolbar_titleTextAppearance = 10; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#titleTextColor} attribute's value can be found in the {@link #Toolbar} array. <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. @attr name com.huanxiao.router:titleTextColor */ public static int Toolbar_titleTextColor = 23; /** 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></td></tr> <tr><td><code>{@link #View_android_theme android:theme}</code></td><td></td></tr> <tr><td><code>{@link #View_paddingEnd com.huanxiao.router:paddingEnd}</code></td><td></td></tr> <tr><td><code>{@link #View_paddingStart com.huanxiao.router:paddingStart}</code></td><td></td></tr> <tr><td><code>{@link #View_theme com.huanxiao.router:theme}</code></td><td></td></tr> </table> @see #View_android_focusable @see #View_android_theme @see #View_paddingEnd @see #View_paddingStart @see #View_theme */ public static final int[] View = { 0x01010000, 0x010100da, 0x7f0100cc, 0x7f0100cd, 0x7f0100ce }; /** <p>This symbol is the offset where the {@link android.R.attr#focusable} attribute's value can be found in the {@link #View} array. @attr name android:focusable */ public static int View_android_focusable = 1; /** <p>This symbol is the offset where the {@link android.R.attr#theme} attribute's value can be found in the {@link #View} array. @attr name android:theme */ public static int View_android_theme = 0; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#paddingEnd} attribute's value can be found in the {@link #View} 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.huanxiao.router:paddingEnd */ public static int View_paddingEnd = 3; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#paddingStart} attribute's value can be found in the {@link #View} 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.huanxiao.router:paddingStart */ public static int View_paddingStart = 2; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#theme} attribute's value can be found in the {@link #View} 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.huanxiao.router:theme */ public static int View_theme = 4; /** Attributes that can be used with a ViewBackgroundHelper. <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 #ViewBackgroundHelper_android_background android:background}</code></td><td></td></tr> <tr><td><code>{@link #ViewBackgroundHelper_backgroundTint com.huanxiao.router:backgroundTint}</code></td><td></td></tr> <tr><td><code>{@link #ViewBackgroundHelper_backgroundTintMode com.huanxiao.router:backgroundTintMode}</code></td><td></td></tr> </table> @see #ViewBackgroundHelper_android_background @see #ViewBackgroundHelper_backgroundTint @see #ViewBackgroundHelper_backgroundTintMode */ public static final int[] ViewBackgroundHelper = { 0x010100d4, 0x7f0100cf, 0x7f0100d0 }; /** <p>This symbol is the offset where the {@link android.R.attr#background} attribute's value can be found in the {@link #ViewBackgroundHelper} array. @attr name android:background */ public static int ViewBackgroundHelper_android_background = 0; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#backgroundTint} attribute's value can be found in the {@link #ViewBackgroundHelper} array. <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. @attr name com.huanxiao.router:backgroundTint */ public static int ViewBackgroundHelper_backgroundTint = 1; /** <p>This symbol is the offset where the {@link com.hpdroid.router.R.attr#backgroundTintMode} attribute's value can be found in the {@link #ViewBackgroundHelper} array. <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>src_over</code></td><td>3</td><td></td></tr> <tr><td><code>src_in</code></td><td>5</td><td></td></tr> <tr><td><code>src_atop</code></td><td>9</td><td></td></tr> <tr><td><code>multiply</code></td><td>14</td><td></td></tr> <tr><td><code>screen</code></td><td>15</td><td></td></tr> </table> @attr name com.huanxiao.router:backgroundTintMode */ public static int ViewBackgroundHelper_backgroundTintMode = 2; /** 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></td></tr> <tr><td><code>{@link #ViewStubCompat_android_layout android:layout}</code></td><td></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 int ViewStubCompat_android_id = 0; /** <p>This symbol is the offset where the {@link android.R.attr#inflatedId} attribute's value can be found in the {@link #ViewStubCompat} array. @attr name android:inflatedId */ public static int ViewStubCompat_android_inflatedId = 2; /** <p>This symbol is the offset where the {@link android.R.attr#layout} attribute's value can be found in the {@link #ViewStubCompat} array. @attr name android:layout */ public static int ViewStubCompat_android_layout = 1; }; }
7e91721975e0619d89c3be65105c005de44ea910
a968c58a549acf69d728a9f815b1dd471ef5d3da
/MyApplication/app/src/main/java/com/capstone/application/adapter/FollowRequestListAdapter.java
29e2a5eed0b4ac2e73993dbc328575e2b597d2c3
[]
no_license
femosso/CapstoneProject
9159cc34a5179e8e7e7dfa0d029820b9d7f1bf4a
1f2de5eca36d8f39829ba17060db74eec44a8489
refs/heads/master
2020-02-26T14:18:30.858694
2016-02-16T00:12:06
2016-02-16T00:12:06
42,463,930
2
0
null
null
null
null
UTF-8
Java
false
false
7,615
java
package com.capstone.application.adapter; import android.app.ProgressDialog; import android.content.SharedPreferences; import android.os.AsyncTask; import android.preference.PreferenceManager; import android.support.v7.widget.RecyclerView; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import android.widget.TextView; import com.android.volley.toolbox.ImageLoader; import com.android.volley.toolbox.NetworkImageView; import com.capstone.application.R; import com.capstone.application.activity.FollowRequestActivity; import com.capstone.application.model.FollowDataRequest; import com.capstone.application.model.FollowDataResponse; import com.capstone.application.model.JsonResponse; import com.capstone.application.model.Teen; import com.capstone.application.model.User; import com.capstone.application.utils.Constants; import com.capstone.application.utils.RestUriConstants; import com.capstone.application.volley.AppController; import org.springframework.http.HttpStatus; import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter; import org.springframework.web.client.RestTemplate; import java.io.File; import java.util.List; public class FollowRequestListAdapter extends RecyclerView.Adapter<FollowRequestListAdapter.ViewHolderItem> { private static final String TAG = FollowRequestListAdapter.class.getName(); private FollowRequestActivity mActivity; private List<User> mUserItems; private ImageLoader mImageLoader = AppController.getInstance().getImageLoader(); public class ViewHolderItem extends RecyclerView.ViewHolder { NetworkImageView thumbNail; TextView fullName; TextView userType; Button confirm; Button deny; public ViewHolderItem(View itemView) { super(itemView); thumbNail = (NetworkImageView) itemView.findViewById(R.id.imgThumbnail); fullName = (TextView) itemView.findViewById(R.id.txtFullName); userType = (TextView) itemView.findViewById(R.id.txtUserType); confirm = (Button) itemView.findViewById(R.id.btnConfirm); deny = (Button) itemView.findViewById(R.id.btnDeny); } } public FollowRequestListAdapter(FollowRequestActivity activity, List<User> userItems) { mActivity = activity; mUserItems = userItems; } @Override public ViewHolderItem onCreateViewHolder(ViewGroup parent, int viewType) { View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.row_follow_request, parent, false); return new ViewHolderItem(view); } @Override public void onBindViewHolder(ViewHolderItem holder, final int position) { if (mImageLoader == null) { mImageLoader = AppController.getInstance().getImageLoader(); } holder.confirm.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { confirmFollowRequest(mUserItems.get(position), true); } }); holder.deny.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { confirmFollowRequest(mUserItems.get(position), false); } }); // getting user data for the row User user = mUserItems.get(position); if (user != null) { String url = Constants.getServerUrl(mActivity) + RestUriConstants.TEEN_CONTROLLER + File.separator + RestUriConstants.PHOTO + "?" + RestUriConstants.PARAM_EMAIL + "=" + user.getEmail(); // thumbnail image of the follower holder.thumbNail.setImageUrl(url, mImageLoader); if (user.getFirstName() != null) { holder.fullName.setText(user.getFirstName() + " " + user.getLastName()); } holder.userType.setText(mActivity.getString(R.string.user_type) + (user.getType() == Constants.UserType.TEEN.ordinal() ? mActivity.getString(R.string.user_type_teen) : mActivity.getString(R.string.user_type_follower))); } } @Override public long getItemId(int position) { return position; } @Override public int getItemCount() { return mUserItems.size(); } public void setData(List<User> userItems) { mUserItems = userItems; } private void confirmFollowRequest(User user, boolean follow) { if (user != null) { SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(mActivity); String loggedEmail = sharedPreferences.getString(Constants.LOGGED_EMAIL, null); if (loggedEmail != null) { Teen loggedTeen = new Teen(); loggedTeen.setEmail(loggedEmail); // associate the logged teen with the follower (which can be a teen or not) FollowDataRequest followData = new FollowDataRequest(user, loggedTeen, follow); new ConfirmFollowTask().execute(followData); } } } private class ConfirmFollowTask extends AsyncTask<FollowDataRequest, Void, FollowDataResponse> { private ProgressDialog dialog; public ConfirmFollowTask() { dialog = new ProgressDialog(mActivity); } @Override protected void onPreExecute() { dialog.setMessage(mActivity.getString(R.string.progress_dialog_sending)); dialog.show(); } @Override protected FollowDataResponse doInBackground(FollowDataRequest... params) { Log.d(TAG, "Contacting server to send follow request confirmation"); FollowDataRequest followData = params[0]; FollowDataResponse result = null; try { // The URL for making the GET request final String url = Constants.getServerUrl(mActivity) + RestUriConstants.TEEN_CONTROLLER + File.separator + RestUriConstants.FOLLOW + File.separator + RestUriConstants.SUBMIT; // Create a new RestTemplate instance RestTemplate restTemplate = new RestTemplate(); // Add the String message converter restTemplate.getMessageConverters().add(new MappingJackson2HttpMessageConverter()); // Make the HTTP POST request, marshaling the response to FollowDataResponse object result = restTemplate.postForObject(url, followData, FollowDataResponse.class); } catch (Exception e) { e.printStackTrace(); } return result; } @Override protected void onPostExecute(FollowDataResponse result) { if (dialog.isShowing()) { dialog.dismiss(); } if (result != null) { JsonResponse jsonResponse = result.getResponse(); List<User> updatedUserList = result.getFollowRequestList(); // refresh UI with the new follow request list update if (jsonResponse.getStatus() == HttpStatus.OK && updatedUserList != null) { setData(updatedUserList); notifyDataSetChanged(); mActivity.refreshUi(updatedUserList); } } } } }
9e89a4f3fe969e9048d4929437018d3e4320969c
e009c93d4f31a36597f1008e127c56bde6ad6b90
/app/src/main/java/com/natalya/nodcalculator/AboutActivity.java
65f0e2d388e559c1e9283af872d722d65ecf5f04
[]
no_license
NatalyaRaisun/NOD
7cd7fc3f44ec80484169069c06bd0345f947ad87
f342f76e715e632b1c4227889d52062a7bbec322
refs/heads/master
2020-03-30T16:45:10.555278
2018-10-15T08:54:25
2018-10-15T08:54:25
151,424,803
2
0
null
null
null
null
UTF-8
Java
false
false
573
java
package com.natalya.nodcalculator; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.widget.TextView; public class AboutActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_about); Intent intent = getIntent(); String message = intent.getStringExtra(Main.EXTRA_MESSAGE); TextView textView = findViewById(R.id.textView); textView.setText(message); } }
00faa1abcb0529979cb42ecb2749c997fa52a9e8
cc4283be3dbe5f06e7e0c85a42733b8889bc6e3a
/Valid Palindrome.java
5bf2dae88f2661720a00568259482139b63dc12c
[]
no_license
vsd550/Algorithms
50053c47597f00450fbe974e9fa50cd9ba0c1539
b77e405eba0e9bfe570129cc8d1ae288621d5ca9
refs/heads/master
2020-03-22T14:36:37.822644
2018-02-28T07:49:46
2018-02-28T07:49:46
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,155
java
/* Valid Palindrome Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. Logic: Take two pointers, traverse from start and end, ignore the characters those are not digit or letter, if charcter at start is not equal to character at end, its not palindrome else its palindrome if start and end cross over. */ public class Solution { /** * @param s A string * @return Whether the string is a valid palindrome */ public boolean isPalindrome(String s) { int start = 0, end = s.length()-1; while (start <= end) { while (start <= end && (!Character.isDigit(s.charAt(start)) || !Character.isLetter(s.charAt(start)))) start++; while (start <= end && (!Character.isDigit(s.charAt(start)) || !Character.isLetter(s.charAt(start)))) end--; if (start <= end && (Character.isDigit(s.charAt(start)) && (Character.isDigit(s.charAt(end)) && s.charAt(start) != s.charAt(end)) || (Character.toLowerCase(s.charAt(start)) != Character.toLowerCase(s.charAt(end))))) { return false; } else { start++; end--; } } return true; } }
c9559d01e14f57cff9e9de3ed20898eb5bde1bb4
46c7b0b2ca4bbb1f44ffefa57230e25d6d04ac76
/src/main/java/com/js/sas/service/DictionaryService.java
e4056d1c0f4f4669ed607143e0ec2094b934ab0b
[ "Apache-2.0" ]
permissive
zhaochlive/sas
1a08f353a945bf8338603085a8f09917ba6a70af
486463bd2d9a3377bb5a1dd25be6da6176087bed
refs/heads/master
2022-10-03T06:05:55.118265
2020-06-13T13:31:30
2020-06-13T13:31:30
193,008,875
0
3
Apache-2.0
2022-09-08T01:01:33
2019-06-21T01:22:51
Java
UTF-8
Java
false
false
702
java
package com.js.sas.service; import com.js.sas.entity.Dictionary; import com.js.sas.repository.DictionaryRepository; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; import java.util.List; /** * @ClassName DictionaryService * @Description ๅญ—ๅ…ธ่กจService * @Author zc * @Date 2019/8/3 15:46 **/ @Service @Slf4j public class DictionaryService { private final DictionaryRepository dictionaryRepository; public DictionaryService(DictionaryRepository dictionaryRepository) { this.dictionaryRepository = dictionaryRepository; } public List<Dictionary> findByCode(String code) { return dictionaryRepository.findByCode(code); } }
e8b3a39ebcf8d1b3c3da26ea4e754c6c34621e0d
9065c36ceb79b5979d9b258fbda18c321ce81a23
/src/listadoproductos/LoadXMLIni.java
7ef0020e40aec89a20c0dc0d6440beb6019bae1e
[]
no_license
postNuKe/ListadoProductos
6cdb3262230f58c6d98bb8a159bd710317a9c689
758400f297bbe088a912c0971a20466e66a73104
refs/heads/master
2023-02-11T09:42:36.101140
2021-01-10T18:02:41
2021-01-10T18:02:41
272,184,815
0
0
null
null
null
null
UTF-8
Java
false
false
14,997
java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package listadoproductos; import listadoproductos.info.Brand; import listadoproductos.info.Product; import listadoproductos.info.Listado; import java.io.File; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.List; import javax.xml.bind.JAXBContext; import javax.xml.bind.Marshaller; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.DocumentBuilder; import org.w3c.dom.Document; import org.w3c.dom.NodeList; import org.w3c.dom.Node; import org.w3c.dom.Element; import com.sun.xml.bind.marshaller.*; import java.io.IOException; import java.io.Writer; import listadoproductos.info.BrandProduct; /** * * @author user */ public final class LoadXMLIni { private static String LISTADO_PRODUCTOS_XML = "./listado.xml"; private static Date date = new Date(); private static ArrayList<String> listPages = new ArrayList<String>(); private static ArrayList<Brand> brands = new ArrayList<Brand>(); public LoadXMLIni(String pathListado){ try { //cargamos las monedas Currency currencies = new Currency(); setPathListado(pathListado); ArrayList<Product> productList = new ArrayList<>(); SimpleDateFormat formatter = new SimpleDateFormat("yyyy_MM_dd_HH_mm_ss"); //PrintStream fileOut = new PrintStream("./ofertas/" + formatter.format(date) + ".txt"); //System.setOut(fileOut); formatter = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss"); System.out.println(formatter.format(date)); //Path path = Paths.get(pathListado); //path.getParent() //String path = new File("").getAbsolutePath(); String path = new File(ListadoProductos.class.getProtectionDomain().getCodeSource().getLocation().toURI()).getParent(); File inputFile = new File( path + "/config.xml"); if(!inputFile.exists()){//si no encuentra el config puede pues que lo coja del local inputFile = new File("./config.xml"); } System.out.println("ruta config: " + inputFile.getPath()); DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance(); DocumentBuilder dBuilder = dbFactory.newDocumentBuilder(); Document doc = dBuilder.parse(inputFile); doc.getDocumentElement().normalize(); //MARCAS //System.out.println("Root element :" + doc.getDocumentElement().getNodeName()); NodeList nBrands = doc.getElementsByTagName("brand"); for (int temp = 0; temp < nBrands.getLength(); temp++) { Node nBrand = nBrands.item(temp); if (nBrand.getNodeType() == Node.ELEMENT_NODE) { Element eBrand = (Element) nBrand; Brand brand = new Brand(); brand.setName(eBrand.getElementsByTagName("name").item(0).getTextContent()); brand.setUri(eBrand.getElementsByTagName("website").item(0).getTextContent()); brand.setPercent(eBrand.getElementsByTagName("percent").item(0).getTextContent()); //System.out.println("BRAND: " + brand.getName()); NodeList nEquals = eBrand.getElementsByTagName("equals"); for (int temp2 = 0; temp2 < nEquals.getLength(); temp2++) { Node nEqual = nEquals.item(temp2); if (nEqual.getNodeType() == Node.ELEMENT_NODE) { Element eEqual = (Element) nEqual; brand.addEquals(eEqual.getTextContent()); //System.out.print("||" + eEqual.getTextContent()); } } //collection, productos marcados con porcentaje concreto, //con youtubes etc... Node nCollection = eBrand.getElementsByTagName("collection").item(0); if(nCollection != null && nCollection.getNodeType() == Node.ELEMENT_NODE){ Element eProduct = (Element) nCollection; NodeList nProducts = eProduct.getElementsByTagName("product"); for (int i = 0; i < nProducts.getLength(); i++) { Node nProduct = nProducts.item(i); if (nProduct.getNodeType() == Node.ELEMENT_NODE) { BrandProduct brandProduct = new BrandProduct(); eProduct = (Element) nProduct; brandProduct.setName(eProduct.getAttribute("name")); Node nPercent = eProduct.getElementsByTagName("percent").item(0); if(nPercent != null){ if (nPercent.getNodeType() == Node.ELEMENT_NODE) { brandProduct.setPercent(nPercent.getTextContent()); } } NodeList nReviews = eProduct.getElementsByTagName("youtubeReview"); for (int j = 0; j < nReviews.getLength(); j++) { Node nReview = nReviews.item(j); if (nReview.getNodeType() == Node.ELEMENT_NODE) { Element eReview = (Element) nReview; brandProduct.addYoutubeReviews(eReview.getTextContent()); //System.out.print("||" + eEqual.getTextContent()); } } brand.addProduct(brandProduct); System.out.println(brandProduct.toString()); } } } brands.add(brand); //System.out.println(""); } } /* System.out.println("++++++++++++++"); for (Brand brand : brands) { System.out.print(brand.getName() + " : "); for (String equals : brand.getEquals()) { System.out.print(" @@ " + equals); } System.out.println(""); } */ //System.out.println("Root element :" + doc.getDocumentElement().getNodeName()); NodeList nShops = doc.getElementsByTagName("shop"); for (int temp = 0; temp < nShops.getLength(); temp++) { Node nShop = nShops.item(temp); //System.out.println("\nCurrent Element :" + nShop.getNodeName()); if (nShop.getNodeType() == Node.ELEMENT_NODE) { Element eShop = (Element) nShop; /* System.out.println("Shop name : " + eShop.getAttribute("name")); System.out.println("BaseUri : " + eShop .getElementsByTagName("baseUri") .item(0) .getTextContent()); */ LoadPage lPage = new LoadPage(); lPage.setBrands(brands); lPage.setBaseName(eShop.getAttribute("name")); lPage.setCountry(eShop.getAttribute("country")); lPage.setCurrency(eShop.getAttribute("currency")); lPage.setCurrencies(currencies); lPage.setBaseUri(eShop.getElementsByTagName("baseUri").item(0).getTextContent()); lPage.setUriRemoveStringAfter(eShop.getElementsByTagName("uriRemoveStringAfter").item(0).getTextContent()); Node pricePlus = eShop.getElementsByTagName("pricePlus").item(0); if(pricePlus != null){ if (pricePlus.getNodeType() == Node.ELEMENT_NODE) { lPage.setPricePlus(pricePlus.getTextContent()); } }else lPage.setPricePlus("1.0"); //FIND PRODUCTOS //definimos los tags a encontrar en la web para cada pagina Node nFind = eShop.getElementsByTagName("find").item(0); if(nFind.getNodeType() == Node.ELEMENT_NODE){ Element eFind = (Element) nFind; lPage.setFindProduct(eFind.getElementsByTagName("product").item(0).getTextContent()); lPage.setFindName(eFind.getElementsByTagName("name").item(0).getTextContent()); lPage.setFindPrice(eFind.getElementsByTagName("price").item(0).getTextContent()); lPage.setFindUri(eFind.getElementsByTagName("uri").item(0).getTextContent()); lPage.setFindSpecial(eFind.getElementsByTagName("special").item(0).getTextContent()); lPage.setFindSpecialPrice(eFind.getElementsByTagName("specialPrice").item(0).getTextContent()); lPage.setFindNoStock(eFind.getElementsByTagName("noStock").item(0).getTextContent()); lPage.setFindHasReviews(eFind.getElementsByTagName("hasReviews").item(0).getTextContent()); //Product Page lPage.setPPComments(eFind.getElementsByTagName("pPComments").item(0).getTextContent()); Node nProduct = eFind.getElementsByTagName("special").item(0); Element eProduct = (Element) nProduct; } //remove cadenas de texto NodeList nRemoves = eShop.getElementsByTagName("remove"); List<String> rStrings = new ArrayList<>(); for (int temp2 = 0; temp2 < nRemoves.getLength(); temp2++) { Node nRemove = nRemoves.item(temp2); rStrings.add(nRemove.getTextContent()); } lPage.setRStrings(rStrings); //remove Between cadenas de texto nRemoves = eShop.getElementsByTagName("removeRegex"); rStrings = new ArrayList<>(); for (int temp2 = 0; temp2 < nRemoves.getLength(); temp2++) { Node nRemove = nRemoves.item(temp2); rStrings.add(nRemove.getTextContent()); } lPage.setRRegexStrings(rStrings); //PAGES DENTRO DE ESTA SHOP NodeList nPages = eShop.getElementsByTagName("page"); for (int temp2 = 0; temp2 < nPages.getLength(); temp2++) { Node nPage = nPages.item(temp2); //System.out.println("\nCurrent Element :" + nPage.getNodeName()); if (nShop.getNodeType() == Node.ELEMENT_NODE) { Element ePage = (Element) nPage; lPage.setName(ePage.getAttribute("name")); //miramos si la pagina es autoincrement if(ePage.getAttribute("autoincrement").equals("true")){ //System.out.println(ePage.getAttribute("name")); boolean repeat = true; Integer increment = 1; while(repeat){ String tempUri = ePage.getTextContent() .concat(String.valueOf(increment)); lPage.setUri(tempUri); //System.out.println(ePage.getTextContent()); lPage.load(); //si no ha encontrado mas productos pues //paramos el while if(lPage.getProductUriSize() == 0){ repeat = false; }else{ listPages.add(tempUri); increment++; } } }else{ //System.out.println(ePage.getAttribute("name")); lPage.setUri(ePage.getTextContent()); //System.out.println(ePage.getTextContent()); lPage.load(); listPages.add(ePage.getTextContent()); } } } productList.addAll(lPage.getProductList()); } } // create productList, assign products var listado = new Listado(); listado.setDate(formatter.format(date)); listado.setProductList(productList); listado.setListPages(listPages); // create JAXB context and instantiate marshaller var context = JAXBContext.newInstance(Listado.class); var m = context.createMarshaller(); m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE); m.setProperty(CharacterEscapeHandler.class.getName(), new CharacterEscapeHandler() { @Override public void escape(char[] ac, int i, int j, boolean flag, Writer writer) throws IOException { writer.write(ac, i, j); } }); // Write to System.out //m.marshal(listado, System.out); // Write to File m.marshal(listado, new File(LISTADO_PRODUCTOS_XML)); } catch (Exception e) { e.printStackTrace(); } } public void setPathListado(String path){ this.LISTADO_PRODUCTOS_XML = path; } }
[ "user@pc" ]
user@pc
b48317708e2d974200e2d16084d10c918a83b5dd
c22a0fc0a74ca22c5a9d4eb40ef268c2684281db
/src/main/test/com/stackroute/junitdemo/SeriesSumTest.java
0608d6bf19ea766ac65c4f8e9796e90c45a2c1b9
[]
no_license
arpmazu1/practice-exercise-with-testing-1
00b952cd488183d6451b2edc83c3ba9bb31b7ba0
d7dc63e266e45a9e7b05705c6ce69a4253b4dc3f
refs/heads/master
2020-06-11T16:35:34.960386
2019-07-03T12:18:32
2019-07-03T12:18:32
194,025,586
0
0
null
null
null
null
UTF-8
Java
false
false
1,356
java
package com.stackroute.junitdemo; import org.junit.*; import static org.junit.Assert.*; public class SeriesSumTest { SeriesSum se; @Before public void setUp(){ System.out.println("Inside before"); se= new SeriesSum(); } @After public void tearDown(){ System.out.println("After"); se=null; } @BeforeClass public static void setUpBeforeClass(){ System.out.println("Before class"); } @AfterClass public static void tearDownBeforeClass(){ System.out.println("After class"); } @Test public void givenNumbersShouldReturnCorrectMessage(){ //arange String a[]={"1","2","3","0"}; //Act String result= se.AddSeries(a); //Assert assertEquals("Sum of the numbers:6",result); } @Test public void givenCharacterShouldReturnErrorMessage(){ //arange String a[]={"a","4","3","0"}; //Act String result= se.AddSeries(a); //Assert assertEquals("Error: not a valid input",result); } @Test public void givenAnotherShouldReturnCorrectMessage(){ //arange String a[]={"7",null,"3","0"}; //Act String result= se.AddSeries(a); //Assert assertEquals("Error: not a valid input",result); } }
318fe9d3cd7fa080dbd7da2925051c2c50b1f033
598773837db0b61f212d8c661880809304f0f8c1
/Day 8/Engineer.java
4a73fd831eb3992e45dc6b8f55c7b7536dd995b2
[]
no_license
chakraborty9569/LetsUpgrade-Java
90fd0bf52ed37dd106af0106849d90aa52c2d853
a9f72ffb4b35775b4b98d8488ddfcb7c78ce7fcb
refs/heads/main
2023-01-05T18:37:38.904157
2020-11-01T12:57:49
2020-11-01T12:57:49
302,951,710
0
0
null
null
null
null
UTF-8
Java
false
false
396
java
public class Engineer extends Employee{ public void operations() { System.out.println("Engineers are professionals who invent, design, analyze, build and test machines, " + "complex systems, structures, gadgets and materials to fulfill functional objectives and requirements " + "while considering the limitations imposed by practicality, regulation, safety and cost."); } }
8479c13fbe6ea8e71a12ce18b3591ad047bf075f
6ecaca3124a10ff73e78083402ca21e570a650e8
/012_servlet_jsp_member/src/main/java/com/github/melpis/member/servlet/MemberLogoutServlet.java
1363215aad1b04024179a5984cda099daeec097d
[]
no_license
melpis/study
d100657a638d9e2379b0f76ccc19522eb0b138ea
a3b037696b3c8b31860e61b5178118ac402e51f4
refs/heads/master
2021-01-11T20:24:29.705221
2017-02-14T12:40:10
2017-02-14T12:40:10
79,110,675
3
1
null
2017-02-10T11:18:42
2017-01-16T11:08:55
Java
UTF-8
Java
false
false
2,050
java
package com.github.melpis.member.servlet; import java.io.IOException; import javax.servlet.ServletConfig; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; /** * Servlet implementation class MemberLogoutServlet */ public class MemberLogoutServlet extends HttpServlet { private static final long serialVersionUID = 1L; private String viewName = null; private String errorPage = null; /** * @see HttpServlet#HttpServlet() */ public MemberLogoutServlet() { super(); } @Override public void init(ServletConfig config) throws ServletException { super.init(config); this.viewName = config.getInitParameter("ViewName"); } /** * @see HttpServlet#service(HttpServletRequest request, HttpServletResponse response) */ protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { //1. ๋ฐ์ดํ„ฐ ์ถ”์ถœ //2. ์œ ํšจ์„ฑ ๊ฒ€์‚ฌ //3. ์ฒ˜๋ฆฌ HttpSession session = request.getSession(false); if (session == null) { try { throw new Exception("๋กœ๊ทธ์ธ์ด ํ•„์š”ํ•œ ํŽ˜์ด์ง€"); } catch (Exception e) { request.setAttribute("error", e); request.getRequestDispatcher(this.errorPage); return; } } else if (session.getAttribute("userId") == null) { try { throw new Exception("๋กœ๊ทธ์ธ์ด ํ•„์š”ํ•œ ํŽ˜์ด์ง€"); } catch (Exception e) { request.setAttribute("error", e); request.getRequestDispatcher(this.errorPage); return; } } else { session.invalidate(); } //4. ๊ฒฐ๊ณผ ์ถœ๋ ฅ request.getRequestDispatcher(this.viewName).forward(request, response); } }
5929b1eeaeb6ca9050ba0c246aa014ce4366a329
babdfa09099bfe1ec0106ed7a6dfe97e6cd49e0f
/netty-client/src/test/java/com/taomee/bigdata/opensource/TestChannel.java
f477247110bb17d3f423e6bdb24e7ff5e3340d8a
[]
no_license
hj022000/netty-program
6fefa6860ae7a0722c5c713ecffb60679587810e
75182b1e5da5ab0e5ff47ac50ba27a930eb86780
refs/heads/master
2020-12-02T22:52:34.692043
2017-07-07T10:40:15
2017-07-07T10:40:15
96,194,903
0
0
null
null
null
null
UTF-8
Java
false
false
259
java
package com.taomee.bigdata.opensource; import io.netty.channel.Channel; /** * Author looper. * Company TaoMee.Inc, ShangHai. * Date 2017/7/5. */ public class TestChannel { public static void main(String[] args) { Channel channel; } }
0a35c5ac061ad9ccebffdc8148893fe80d5bd76f
90b2d133a5cedc9758d3dac8a50e3747c59a2f6a
/draco/src/java/game/com/game/draco/app/rank/RankHttpClient.java
c0d4187baccbe46c73af6851b7f5e423629fe132
[]
no_license
brandonlamb/game-server-mmorpg
890f191b727b760e018bcf173c54978b1d4e50a8
50f869a180b2333db35801a827ab99634dd8217b
refs/heads/master
2020-05-15T20:58:14.830098
2017-03-27T09:44:40
2017-03-27T09:44:40
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,713
java
package com.game.draco.app.rank; import org.apache.http.HttpResponse; import org.apache.http.HttpStatus; import org.apache.http.client.methods.HttpGet; import org.apache.http.impl.client.DefaultHttpClient; import org.apache.http.params.HttpConnectionParams; import org.apache.http.params.HttpParams; import org.apache.http.util.EntityUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import sacred.alliance.magic.util.HttpUtil; public class RankHttpClient { public static final String RESP_NOT_SC_OK = "!200"; public static final String RESP_ERROR = ""; private static Logger logger = LoggerFactory.getLogger(RankHttpClient.class); private static final int connectionTimeout = 1000*2 ; private static final int soTimeout = 1000*2 ; private static final String charsetName = "UTF-8" ; public static String get(String url) { DefaultHttpClient httpclient = null ; try { httpclient = HttpUtil.getHttpClient(url); HttpParams params = httpclient.getParams(); HttpConnectionParams.setConnectionTimeout(params, connectionTimeout); HttpConnectionParams.setSoTimeout(params, soTimeout); HttpGet httpGet = new HttpGet(url); HttpResponse response = httpclient.execute(httpGet); int code = response.getStatusLine().getStatusCode(); if (code < HttpStatus.SC_OK || code >= HttpStatus.SC_MULTIPLE_CHOICES) { logger.error("rankApp getPageData error, code: " + code + ", url: " + url); return RESP_NOT_SC_OK; } return EntityUtils.toString(response.getEntity(), charsetName); } catch (Exception e) { logger.error("", e); return RESP_ERROR; }finally{ if(null != httpclient){ httpclient.getConnectionManager().shutdown() ; } } } }
acb6214d90c337be61f770dcc1ce07397e25678b
257cf2ac16176c7544153e9ce21d958a9d6cd31b
/back-end/src/main/java/br/com/rca/votos/api/cidadao/CidadaoPutResource.java
0e4f33af088c50c7d50d806f9803461a0f7de614
[]
no_license
RaphaelAguiar/vote
25425d5b134bd32ada3c4b030fc5c12377a22c6c
62d96c3f5d79244ae1f7f96c5686a90bca153f46
refs/heads/master
2020-03-18T02:32:37.274791
2018-05-27T20:17:30
2018-05-27T20:17:30
134,195,629
0
0
null
null
null
null
UTF-8
Java
false
false
1,130
java
package br.com.rca.votos.api.cidadao; import br.com.rca.votos.application.cidadao.CidadaoCandidatar; import br.com.rca.votos.application.eleicao.EleicaoVotar; import br.com.rca.votos.security.LogginService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PutMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RestController; @RestController public class CidadaoPutResource { private final CidadaoCandidatar cidadaoCandidatar; private final LogginService logginService; @Autowired public CidadaoPutResource(CidadaoCandidatar cidadaoCandidatar, LogginService logginService) { this.cidadaoCandidatar = cidadaoCandidatar; this.logginService = logginService; } @PutMapping("/api/cidadao") public void put(@RequestBody CidadaoPutParam cidadaoPutParam) { if (cidadaoPutParam.getCargo() != null) cidadaoCandidatar.candidatar( logginService.getUser().getCpf(), cidadaoPutParam.getCargo() ); } }
7109eaa978fc9d571bc45ab5be466ae6c64bfc57
89468c0939a2e7689057281d3361c75fabf793af
/src/main/java/ru/ailp/repo/EventLogRepo.java
873a5d333166f544fa5aca19c075de3795904e79
[]
no_license
jus1096/AILP-CRUD
1e086e9396f79c8225a14135f06484fc90ad691a
2f3056c4f9e60c7b9aaa592460498136c4128550
refs/heads/master
2022-06-25T18:53:02.074448
2020-05-09T19:19:21
2020-05-09T19:19:21
null
0
0
null
null
null
null
UTF-8
Java
false
false
168
java
package ru.ailp.repo; import ru.ailp.entity.EventLogEntity; import ru.ailp.repo.abstr.CommonRepo; public interface EventLogRepo extends CommonRepo<EventLogEntity> { }
[ "aurora" ]
aurora
2004e0645eafa09b3e4d0b8f903c661f2c85e473
0fb5b61f82c59f77ca28d279c3538cf3af49b973
/src/main/java/com/lucare/invoke/assembly/IntegerInfo.java
598d9bef148d2cc6777e95f5009ad0b8242d25cd
[]
no_license
fengchangsheng/lucare-frame
d0c17f86c79f59d995bc460bdf37f2fe183ca851
069d72105f6fc7369d441a99fe861236b3c35373
refs/heads/master
2021-01-10T12:10:59.133807
2016-03-29T09:20:55
2016-03-29T09:20:55
54,901,745
0
0
null
null
null
null
UTF-8
Java
false
false
912
java
package com.lucare.invoke.assembly; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import java.io.PrintWriter; import java.util.Map; /** * Created by Lucare.Feng on 2016/3/27. */ public class IntegerInfo extends ConstInfo { static final int tag = 3; int value; public IntegerInfo(int i) { this.value = i; } public IntegerInfo(DataInputStream in) throws IOException { this.value = in.readInt(); } public int getTag() { return 3; } public int copy(ConstPool src, ConstPool dest, Map<?, ?> map) { return dest.addIntegerInfo(this.value); } public void write(DataOutputStream out) throws IOException { out.writeByte(3); out.writeInt(this.value); } public void print(PrintWriter out) { out.print("Integer "); out.println(this.value); } }
[ "fengchangsheng" ]
fengchangsheng
28ee3b00d7fc0ce54cc015eb351fa374e9755703
5997adffc99ae70acd0b2e04c87645a64ac88c93
/GUI/CoachDialog.java
7d65f77621f32fe6b3b75e6b28ebe9a68b0b51d2
[]
no_license
shawnchendev/cs3716
618eb62cc12c8e67d2cc4ea207c697de442de03b
ed65c6cfd29338cae5ec14e696fb4bf8daadbf76
refs/heads/master
2020-07-02T12:00:43.103160
2016-11-22T03:23:31
2016-11-22T03:23:31
74,304,693
0
0
null
2016-11-20T21:46:49
2016-11-20T21:46:49
null
UTF-8
Java
false
false
2,648
java
import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.*; public class CoachDialog extends JDialog { private JPanel contentPanel; private JTextField fnameField, lnameField, emailField, phoneField; public CoachDialog() { contentPanel = new JPanel(); setTitle("Register Coach"); setContentPane(contentPanel); setBounds(100, 100, 400, 300); setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); contentPanel.setLayout(new GridLayout(4, 1, 0, 10)); JPanel namePane = new JPanel(); namePane.setLayout(new GridLayout(2, 2, 0, 5)); JLabel lbl_1 = new JLabel("First Name:"); fnameField = new JTextField(); fnameField.setColumns(15); JLabel lbl_2 = new JLabel("Last Name:"); lnameField = new JTextField(); lnameField.setColumns(15); namePane.add(lbl_1); namePane.add(fnameField); namePane.add(lbl_2); namePane.add(lnameField); contentPanel.add(namePane); JPanel infoPane = new JPanel(); infoPane.setLayout(new GridLayout(2, 2, 0, 10)); JLabel lbl_4 = new JLabel("Email"); emailField = new JTextField(); emailField.setText(""); infoPane.add(lbl_4); infoPane.add(emailField); JLabel lbl_5 = new JLabel("Phone"); phoneField = new JTextField(); phoneField.setText(""); infoPane.add(lbl_5); infoPane.add(phoneField); contentPanel.add(infoPane); JPanel buttonPanel = new JPanel(); JButton add_b = new JButton("Add"); JButton reset_b = new JButton("Reset"); JButton cancel_b = new JButton("Canacel"); ActionListener ButtonListener = new ActionListener() { public void actionPerformed(ActionEvent e) { if (e.getSource().equals(cancel_b)) { dispose(); } if (e.getSource().equals(reset_b)) { lnameField.setText(""); fnameField.setText(""); emailField.setText(""); phoneField.setText(""); } if (e.getSource().equals(add_b)) { WriteFile f = new WriteFile(); f.setFilename("Coach.txt"); String line = fnameField.getText() + " " + lnameField.getText() + "-" + emailField.getText() + "-" + phoneField.getText(); f.setLine(line); f.writeline(); JOptionPane.showMessageDialog(null, line, "Tournament", JOptionPane.ERROR_MESSAGE); } } }; add_b.addActionListener(ButtonListener); reset_b.addActionListener(ButtonListener); cancel_b.addActionListener(ButtonListener); buttonPanel.add(add_b); buttonPanel.add(reset_b); buttonPanel.add(cancel_b); contentPanel.add(buttonPanel); setResizable(false); setVisible(true); } }
f8d07260b5906c1127e0584b8d5c6989b3f82c53
f00b1ff4e7bae6d5de8d1f258a5593dc5addc934
/account-persist/src/main/java/com/juvenxu/mvnbook/account/persist/Service/impl/AccountPersistServiceImpl.java
26f1bac8881cbbaf638a2e103d89ef4a06d75e03
[]
no_license
zhming/account
8bd4d1d18aee65303f5e99d7cabd156c6dfbeb01
e9ea7399f2200b318f9a291ecfc07f64181a19b9
refs/heads/master
2021-01-23T03:48:20.252020
2015-04-07T08:03:53
2015-04-07T08:03:53
32,307,838
0
0
null
null
null
null
UTF-8
Java
false
false
4,670
java
package com.juvenxu.mvnbook.account.persist.Service.impl; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStreamWriter; import java.io.Writer; import java.util.List; import org.dom4j.Document; import org.dom4j.DocumentException; import org.dom4j.DocumentFactory; import org.dom4j.Element; import org.dom4j.io.OutputFormat; import org.dom4j.io.SAXReader; import org.dom4j.io.XMLWriter; import com.juvenxu.mvnbook.account.persist.Account; import com.juvenxu.mvnbook.account.persist.Service.AccountPersistService; import com.juvenxu.mvnbook.account.persist.exception.AccountPersistException; public class AccountPersistServiceImpl implements AccountPersistService { private String file; private SAXReader reader = new SAXReader(); private static final String ELEMENT_ROOT = "account-persist"; private static final String ELEMENT_ACCOUNTS = "accounts"; private static final String ELEMENT_ACCOUNT = "account"; private static final String ELEMENT_ACCOUNT_ID = "id"; private static final String ELEMENT_ACCOUNT_NAME = "name"; private static final String ELEMENT_ACCOUNT_PASSWORD = "password"; private static final String ELEMENT_ACCOUNT_EMAIL = "email"; private static final String ELEMENT_ACCOUNT_ACTIVATED = "activated"; public Account createAccount(Account account) throws AccountPersistException { if (readAccount(account.getId()) != null){ throw new AccountPersistException("the record is existed.", new Exception()); } Document doc = readDocument(); Element root = doc.getRootElement(); Element accountsEle = root.element(ELEMENT_ACCOUNTS); Element accountEle = accountsEle.addElement(ELEMENT_ACCOUNT); accountEle.addElement(ELEMENT_ACCOUNT_ID).addText(account.getId()); accountEle.addElement(ELEMENT_ACCOUNT_NAME).addText(account.getName()); accountEle.addElement(ELEMENT_ACCOUNT_PASSWORD).addText(account.getPassword()); accountEle.addElement(ELEMENT_ACCOUNT_EMAIL).addText(account.getEmail()); accountEle.addElement(ELEMENT_ACCOUNT_ACTIVATED).addText("" + account.isActivated()); writeDocument(doc); return null; } public void deleteAccount(String id) throws AccountPersistException { // TODO Auto-generated method stub } @SuppressWarnings("unchecked") public Account readAccount(String id) throws AccountPersistException { Document doc = readDocument(); Element accountsEle = doc.getRootElement().element(ELEMENT_ACCOUNTS); for (Element accountEle : (List<Element>) accountsEle.elements()) { if (accountEle.elementText(ELEMENT_ACCOUNT_ID).equals(id)) { return buildAccount(accountEle); } } return null; } public Account upAccount(Account account) throws AccountPersistException { return null; } private Account buildAccount(Element accountEle) { Account account = new Account(); account.setId(accountEle.elementText(ELEMENT_ACCOUNT_ID)); account.setName(accountEle.elementText(ELEMENT_ACCOUNT_NAME)); account.setPassword(accountEle.elementText(ELEMENT_ACCOUNT_PASSWORD)); account.setEmail(accountEle.elementText(ELEMENT_ACCOUNT_EMAIL)); account.setActivated("true".equals(accountEle .elementText(ELEMENT_ACCOUNT_ACTIVATED)) ? true : false); return account; } private Document readDocument() throws AccountPersistException { File dataFile = new File(file); if (!dataFile.exists()) { dataFile.getParentFile().mkdirs(); Document doc = DocumentFactory.getInstance().createDocument(); Element rootEle = doc.addElement(ELEMENT_ROOT); rootEle.addElement(ELEMENT_ACCOUNTS); writeDocument(doc); } try { return reader.read(new File(file)); } catch (DocumentException e) { throw new AccountPersistException( "Unable to read persist data xml", e); } } private void writeDocument(Document doc) throws AccountPersistException { Writer out = null; try { out = new OutputStreamWriter(new FileOutputStream(file), "utf-8"); XMLWriter writer = new XMLWriter(out, OutputFormat.createPrettyPrint()); writer.write(doc); } catch (IOException e) { throw new AccountPersistException( "Unable to write persist data xml", e); } finally { try { if (out != null) { out.close(); } } catch (IOException e) { throw new AccountPersistException( "Unable to close persist data xml writer.", e); } } } public String getFile() { return file; } public void setFile(String file) { this.file = file; } }
86f2b10c9edfe28d530571b94498dc7a49c51ab3
89bedf3e111cdfd7b80f39b2eca3791a0dda276f
/argouml-app-v0.26/tests/org/argouml/uml/ui/behavior/collaborations/TestUMLAssociationEndRoleBaseListModel.java
bb3045fd28094e5d17d9b161672d8fc88a344710
[]
no_license
TheProjecter/plea-spl
b80b622fcf4dee6a73ae72db4fc7f4826bef0549
c28b308160c6ef8e68440d90a7710bff270f22c3
refs/heads/master
2020-05-28T14:14:30.727459
2014-10-03T18:43:35
2014-10-03T18:43:35
42,946,066
0
0
null
null
null
null
UTF-8
Java
false
false
5,690
java
// $Id: TestUMLAssociationEndRoleBaseListModel.java 14381 2008-04-19 03:26:17Z tfmorris $ // Copyright (c) 1996-2007 The Regents of the University of California. All // Rights Reserved. Permission to use, copy, modify, and distribute this // software and its documentation without fee, and without a written // agreement is hereby granted, provided that the above copyright notice // and this paragraph appear in all copies. This software program and // documentation are copyrighted by The Regents of the University of // California. The software program and documentation are supplied "AS // IS", without any accompanying services from The Regents. The Regents // does not warrant that the operation of the program will be // uninterrupted or error-free. The end-user understands that the program // was developed for research purposes and is advised not to rely // exclusively on the program for any reason. IN NO EVENT SHALL THE // UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, // SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS, // ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF // THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF // SUCH DAMAGE. THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY // WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF // MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE // PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THE UNIVERSITY OF // CALIFORNIA HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT, // UPDATES, ENHANCEMENTS, OR MODIFICATIONS. package org.argouml.uml.ui.behavior.collaborations; import java.util.Collection; import junit.framework.TestCase; import org.argouml.model.InitializeModel; import org.argouml.model.Model; import org.argouml.uml.ui.UMLModelElementListModel2; /** * @since Oct 27, 2002 * @author [email protected] */ public class TestUMLAssociationEndRoleBaseListModel extends TestCase { private Object elem; private UMLModelElementListModel2 model; private Object baseAssoc; private Object baseEnd; private Object assocRole; /** * Constructor for TestUMLAssociationEndRoleBaseListModel. * * @param arg0 is the name of the test case. */ public TestUMLAssociationEndRoleBaseListModel(String arg0) { super(arg0); } /* * @see junit.framework.TestCase#setUp() */ protected void setUp() throws Exception { super.setUp(); InitializeModel.initializeDefault(); Object classifier = Model.getCoreFactory().createClass(); Object collaboration = Model.getCollaborationsFactory().buildCollaboration(classifier); elem = Model.getCollaborationsFactory().createAssociationEndRole(); Object classNamespace = Model.getModelManagementFactory().createPackage(); baseAssoc = Model.getCoreFactory().buildAssociation( Model.getCoreFactory().buildClass("from", classNamespace), false, Model.getCoreFactory().buildClass("to", classNamespace), true, "association"); Model.getCoreHelper().addOwnedElement(collaboration, baseAssoc); Object from = Model.getCollaborationsFactory().buildClassifierRole(collaboration); Object to = Model.getCollaborationsFactory().buildClassifierRole(collaboration); assocRole = Model.getCollaborationsFactory().buildAssociationRole(from, to); Model.getCoreHelper().setName(assocRole, "TestAssocRole"); Model.getCoreHelper().setAssociation(elem, assocRole); Model.getCollaborationsHelper().setBase(assocRole, baseAssoc); baseEnd = Model.getCoreFactory().createAssociationEnd(); Model.getCoreHelper().setAssociation(baseEnd, baseAssoc); model = new UMLAssociationEndRoleBaseListModel(); model.setTarget(elem); Model.getPump().flushModelEvents(); } /* * @see junit.framework.TestCase#tearDown() */ protected void tearDown() throws Exception { Model.getUmlFactory().delete(elem); Model.getUmlFactory().delete(assocRole); Collection connections = Model.getFacade().getConnections(baseAssoc); Model.getUmlFactory().delete(baseAssoc); for (Object connection : connections) { Model.getUmlFactory().delete(connection); } connections = null; Model.getUmlFactory().delete(baseEnd); model = null; super.tearDown(); } /** * Test setting the Base. */ public void testAdd() { Model.getCollaborationsHelper().setBase(elem, baseEnd); Model.getPump().flushModelEvents(); assertEquals(1, model.getSize()); assertEquals(baseEnd, model.get(0)); } /** * Testing that we have an empty model to begin with. */ public void testEmpty() { assertEquals(0, model.size()); try { model.get(0); fail(); } catch (ArrayIndexOutOfBoundsException ex) { // This is what we expect. } } /** * Test removing. */ public void testRemove() { Model.getCollaborationsHelper().setBase(elem, baseEnd); Model.getCollaborationsHelper().setBase(elem, null); Model.getPump().flushModelEvents(); assertEquals(0, model.getSize()); } }
337ce2373f1a90128882f6745dbd08a1725ad343
fff3302fe8193d13360f12e5b13d376ef76cf4d6
/AppLock/com/domobile/applock/service/NotificationService.java
13bd9d2cded2ea8ffa0fcdc082108651bdc8c652
[]
no_license
shaolin-example-com-my-shopify-com/KidWatcher
2912950b7ca4773c3d29005b9d231ad6035b4912
f67a81b757043159ea358b7f9e4b16fd6be0e0c0
refs/heads/master
2022-04-25T17:19:28.800922
2020-04-30T02:53:20
2020-04-30T02:53:20
260,098,439
0
0
null
2020-04-30T02:51:49
2020-04-30T02:51:48
null
UTF-8
Java
false
false
15,306
java
package com.domobile.applock.service; import android.annotation.TargetApi; import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.content.res.Resources; import android.graphics.Bitmap; import android.graphics.Bitmap.Config; import android.graphics.Canvas; import android.graphics.PorterDuff.Mode; import android.os.AsyncTask; import android.os.Build.VERSION; import android.os.Bundle; import android.os.Handler; import android.os.IBinder; import android.os.Looper; import android.os.PowerManager; import android.service.notification.NotificationListenerService; import android.service.notification.StatusBarNotification; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.v4.app.NotificationCompat; import android.support.v4.app.NotificationCompat.Builder; import android.text.TextUtils; import android.view.LayoutInflater; import android.view.ViewGroup; import android.widget.RemoteViews; import android.widget.TextView; import com.domobile.applock.C1017n; import com.domobile.applock.MainActivity; import com.domobile.applock.R; import com.domobile.applock.p012e.C0896a; import com.domobile.applock.p012e.C0896a.C0895a; import com.domobile.applock.p012e.C0898c; import com.domobile.applock.p012e.C0899d; import com.domobile.applock.p012e.C0900e; import com.domobile.applock.p013f.C0903a; import com.domobile.frame.p000a.C1148d; import com.domobile.frame.p000a.C1258c; import com.domobile.lockbean.C1365d; import com.domobile.lockbean.C1371j; import java.util.ArrayList; @TargetApi(18) public class NotificationService extends NotificationListenerService implements C0895a { private Handler f1984a = new Handler(Looper.getMainLooper()); private Handler f1985b = new Handler(Looper.getMainLooper()); private PowerManager f1986c; private Runnable f1987d = new C10631(this); class C10631 implements Runnable { final /* synthetic */ NotificationService f1980a; C10631(NotificationService notificationService) { this.f1980a = notificationService; } public void run() { this.f1980a.m2234a(false); this.f1980a.m2240d(); } } private void m2229a() { try { if (!LockService.m2172a()) { startService(new Intent(this, LockService.class)); } } catch (Exception e) { } } private void m2230a(C0899d c0899d, Bitmap bitmap, boolean z) { try { NotificationManager notificationManager = (NotificationManager) getSystemService("notification"); if (z) { notificationManager.cancel(77); } Intent intent = new Intent(this, MainActivity.class); intent.addFlags(268435456); intent.putExtra("com.domobile.elock.EXTRA_NOTIFICATION_LOCK", true); PendingIntent activity = PendingIntent.getActivity(this, 0, intent, 134217728); Builder builder = new Builder(this); builder.setAutoCancel(false); builder.setOngoing(true); if (z) { builder.setSmallIcon(R.drawable.privacy_notification_anim); } else { builder.setSmallIcon(R.drawable.privacy_notification_anim_1); } builder.setTicker(getString(R.string.notification_lock_title)); builder.setContentTitle(getString(R.string.notification_lock_title)); builder.setContentText(""); builder.setContentIntent(activity); builder.setWhen(System.currentTimeMillis()); if (VERSION.SDK_INT < 24 || C1365d.m3438a(this.f1986c)) { builder.setPriority(0); } else { builder.setPriority(1).setVibrate(new long[]{100}); } builder.setLights(c0899d.f1347h, c0899d.f1348i, c0899d.f1349j); if (VERSION.SDK_INT >= 21) { builder.setVisibility(1); } RemoteViews remoteViews = new RemoteViews(getPackageName(), R.layout.notification_lock_remoteviews); builder.setCustomContentView(remoteViews); remoteViews.setImageViewBitmap(R.id.imvAppList, bitmap); remoteViews.setTextViewText(R.id.txvPostTime, c0899d.m1577b()); Notification build = builder.build(); build.flags |= 32; notificationManager.notify(77, build); } catch (Exception e) { m2236b(c0899d, bitmap, z); } } private void m2234a(final boolean z) { final ArrayList c = C0900e.m1586c(); if (c.size() <= 0) { mo2476b(); } else { C1148d.m2513a(new AsyncTask<Object, Object, Bitmap>(this) { final /* synthetic */ NotificationService f1983c; protected Bitmap m2227a(Object... objArr) { return this.f1983c.m2242a(c); } protected void m2228a(Bitmap bitmap) { this.f1983c.m2230a((C0899d) c.get(0), bitmap, z); this.f1983c.m2238c(); } protected /* synthetic */ Object doInBackground(Object[] objArr) { return m2227a(objArr); } protected /* synthetic */ void onPostExecute(Object obj) { m2228a((Bitmap) obj); } }, new Object[0]); } } private void m2235b(StatusBarNotification statusBarNotification) { ArrayList b = C1017n.m2039b(); if (b.contains(new C1371j("com.domobile.notification")) && b.contains(new C1371j(statusBarNotification.getPackageName()))) { C0899d a = m2243a(statusBarNotification); if (a != null) { C1258c.m2987b("Receive Notification:" + a.toString()); m2239c(statusBarNotification); C0896a.m1545a().m1557a(a, statusBarNotification.getNotification()); } } } private void m2236b(C0899d c0899d, Bitmap bitmap, boolean z) { int i = 1; try { NotificationManager notificationManager = (NotificationManager) getSystemService("notification"); if (z) { notificationManager.cancel(77); } Intent intent = new Intent(this, MainActivity.class); intent.addFlags(268435456); intent.putExtra("com.domobile.elock.EXTRA_NOTIFICATION_LOCK", true); PendingIntent activity = PendingIntent.getActivity(this, 0, intent, 134217728); Notification notification = new Notification(); if (z) { notification.icon = R.drawable.privacy_notification_anim; } else { notification.icon = R.drawable.privacy_notification_anim_1; } notification.tickerText = getString(R.string.notification_lock_title); notification.contentIntent = activity; notification.when = System.currentTimeMillis(); if (VERSION.SDK_INT < 24 || C1365d.m3438a(this.f1986c)) { notification.priority = 0; notification.ledARGB = c0899d.f1347h; notification.ledOnMS = c0899d.f1348i; notification.ledOffMS = c0899d.f1349j; int i2 = (notification.ledOnMS == 0 || notification.ledOffMS == 0) ? 0 : 1; int i3 = notification.flags & -2; if (i2 == 0) { i = 0; } notification.flags = i | i3; } else { notification.priority = 1; notification.vibrate = new long[]{100}; } if (VERSION.SDK_INT >= 21) { notification.visibility = 1; } RemoteViews remoteViews = new RemoteViews(getPackageName(), R.layout.notification_lock_remoteviews); notification.contentView = remoteViews; remoteViews.setImageViewBitmap(R.id.imvAppList, bitmap); remoteViews.setTextViewText(R.id.txvPostTime, c0899d.m1577b()); notification.flags |= 32; notification.flags |= 2; notificationManager.notify(77, notification); C1258c.m2987b("compatDisplayNotification"); } catch (Exception e) { } } private synchronized void m2238c() { m2241e(); m2240d(); } private void m2239c(StatusBarNotification statusBarNotification) { if (VERSION.SDK_INT >= 21) { cancelNotification(statusBarNotification.getKey()); } else { cancelNotification(statusBarNotification.getPackageName(), statusBarNotification.getTag(), statusBarNotification.getId()); } } private synchronized void m2240d() { this.f1984a.postDelayed(this.f1987d, 60000); } private synchronized void m2241e() { this.f1984a.removeCallbacks(this.f1987d); } public Bitmap m2242a(@NonNull ArrayList<C0899d> arrayList) { int i = 0; Resources resources = getResources(); int i2 = resources.getDisplayMetrics().widthPixels; int dimensionPixelSize = resources.getDimensionPixelSize(R.dimen.icon_size_mid); int dimensionPixelSize2 = resources.getDimensionPixelSize(R.dimen.PaddingSizeSmall); dimensionPixelSize = (i2 - dimensionPixelSize) - (dimensionPixelSize2 * 4); int dimensionPixelSize3 = resources.getDimensionPixelSize(R.dimen.icon_size_tin); int i3 = dimensionPixelSize / (dimensionPixelSize3 + dimensionPixelSize2); i2 = arrayList.size(); if (i2 > i3) { i2 = i3; } Bitmap createBitmap = Bitmap.createBitmap(dimensionPixelSize, dimensionPixelSize3, Config.ARGB_8888); Canvas canvas = new Canvas(createBitmap); canvas.drawColor(0, Mode.CLEAR); dimensionPixelSize = 0; while (dimensionPixelSize < i2) { Bitmap c = C0898c.m1571c(this, ((C0899d) arrayList.get(dimensionPixelSize)).f1342c); if (c == null) { i3 = i; } else { Bitmap a = C0903a.m1590a(c, dimensionPixelSize3, dimensionPixelSize3); canvas.drawBitmap(a, (float) i, 0.0f, null); i3 = (dimensionPixelSize3 + dimensionPixelSize2) + i; if (!(a == c || a.isRecycled())) { a.recycle(); } } dimensionPixelSize++; i = i3; } return createBitmap; } @Nullable @TargetApi(18) public C0899d m2243a(StatusBarNotification statusBarNotification) { if (statusBarNotification == null || statusBarNotification.isOngoing() || !statusBarNotification.isClearable()) { return null; } if (statusBarNotification.getPackageName().equals(getPackageName())) { return null; } if (statusBarNotification.getPackageName().startsWith("com.android")) { return null; } try { if (VERSION.SDK_INT >= 19) { Object obj = statusBarNotification.getNotification().extras.get(NotificationCompat.EXTRA_PROGRESS_MAX); if (obj != null && ((Integer) obj).intValue() > 0) { return null; } } } catch (Exception e) { } try { CharSequence charSequence; CharSequence charSequence2; Context createPackageContext = createPackageContext(statusBarNotification.getPackageName(), 3); Resources resources = createPackageContext.getResources(); C0899d c0899d = new C0899d(); String str = ""; str = ""; c0899d.f1347h = statusBarNotification.getNotification().ledARGB; c0899d.f1348i = statusBarNotification.getNotification().ledOnMS; c0899d.f1349j = statusBarNotification.getNotification().ledOffMS; if (VERSION.SDK_INT >= 19) { Bundle bundle = statusBarNotification.getNotification().extras; charSequence = bundle.getCharSequence(NotificationCompat.EXTRA_TITLE); charSequence2 = bundle.getCharSequence(NotificationCompat.EXTRA_TEXT); } else { RemoteViews remoteViews = statusBarNotification.getNotification().contentView; ViewGroup viewGroup = (ViewGroup) LayoutInflater.from(createPackageContext).inflate(remoteViews.getLayoutId(), null); remoteViews.reapply(this, viewGroup); int identifier = resources.getIdentifier("android:id/title", null, null); int identifier2 = resources.getIdentifier("android:id/text", null, null); TextView textView = (TextView) viewGroup.findViewById(identifier); TextView textView2 = (TextView) viewGroup.findViewById(identifier2); charSequence = textView.getText(); charSequence2 = textView2.getText(); } if (TextUtils.isEmpty(charSequence) || TextUtils.isEmpty(charSequence2)) { return null; } c0899d.f1344e = charSequence.toString(); c0899d.f1345f = charSequence2.toString(); c0899d.f1341b = statusBarNotification.getId(); c0899d.f1342c = statusBarNotification.getPackageName(); c0899d.f1343d = statusBarNotification.getPostTime(); c0899d.f1340a = statusBarNotification.getPackageName() + "_" + statusBarNotification.getId(); c0899d.f1346g = C0898c.m1565a() + ".png"; c0899d.f1351l = C0898c.m1564a(statusBarNotification.getNotification().contentIntent); return c0899d; } catch (Exception e2) { return null; } } public void mo2475a(C0899d c0899d) { m2234a(true); } public void mo2476b() { C1258c.m2987b("onNotificationCleared"); m2241e(); this.f1985b.removeCallbacksAndMessages(null); ((NotificationManager) getSystemService("notification")).cancel(77); } public void mo2478b(C0899d c0899d) { m2234a(false); } public IBinder onBind(Intent intent) { C1258c.m2987b("NotificationService onBind"); m2229a(); m2234a(false); return super.onBind(intent); } public void onCreate() { super.onCreate(); this.f1986c = (PowerManager) getSystemService("power"); C1258c.m2987b("NotificationService onCreate"); C0896a.m1545a().m1555a((C0895a) this); } public void onDestroy() { super.onDestroy(); C1258c.m2987b("NotificationService onDestroy"); C0896a.m1545a().m1559b((C0895a) this); } public void onNotificationPosted(StatusBarNotification statusBarNotification) { m2235b(statusBarNotification); } public void onNotificationRemoved(StatusBarNotification statusBarNotification) { } public int onStartCommand(Intent intent, int i, int i2) { super.onStartCommand(intent, i, i2); return 1; } }
d860953a22bc9629d3338c06be8a0a4c31bb1494
c9f60875eab52f2f3d70b918281ad0bd08010b7f
/webworkspace3/mybatis_03/src/org/kh/users/model/service/UsersService.java
e31c8e8aae1cce75b3dffb66d30ed5fa04f17eca
[]
no_license
skosko00/seongmin
8acc7db105a9e70d8e69805702e4debbe7f428f8
8ca7995ab6fdd7514a1ff49741e9ef45f6f315e7
refs/heads/master
2021-01-20T18:30:09.156647
2018-07-18T00:25:29
2018-07-18T00:25:29
90,919,920
1
0
null
null
null
null
UTF-8
Java
false
false
1,140
java
package org.kh.users.model.service; import java.util.ArrayList; import org.apache.ibatis.session.SqlSession; import org.kh.common.SqlSessionTemplate; import org.kh.users.model.dao.UsersDAO; import org.kh.users.model.vo.Check; import org.kh.users.model.vo.Search; import org.kh.users.model.vo.User; public class UsersService { public ArrayList<User> checkUserList(Check check) { SqlSession session = SqlSessionTemplate.getSession(); ArrayList<User> list = new UsersDAO().checkUserList(session, check); return list; } public ArrayList<User> searchUserList(Search search) { SqlSession session = SqlSessionTemplate.getSession(); ArrayList<User> list = new UsersDAO().searchUserList(session, search); return list; } public ArrayList<User> search2UserList(User user) { SqlSession session = SqlSessionTemplate.getSession(); ArrayList<User> list = new UsersDAO().search2UserList(session, user); return list; } public ArrayList<User> search3UserList(String[] addr) { SqlSession session = SqlSessionTemplate.getSession(); ArrayList<User> list = new UsersDAO().search3UserList(session, addr); return list; } }
ce34bf7da8e7717b644ce8651778f6bb1a02bbf9
210323aa445100d9055550db1c98130dbb9aa328
/pup-code-domain/src/main/java/info/pupcode/model/cfg/Identity.java
e2f2b83b220c24a78215a83b453d7ee3be5ee895
[ "Apache-2.0" ]
permissive
PUPInitiative/pup-code-poc
82a9790280b74c5c81d05c808f0fe3382cb35d96
b662f5c2f0348ac24ce37b212d667f91e0d17007
refs/heads/master
2020-04-10T22:51:00.927646
2015-11-17T17:02:48
2015-11-17T17:02:48
42,389,784
1
0
null
null
null
null
UTF-8
Java
false
false
2,059
java
package info.pupcode.model.cfg; import org.apache.commons.lang.builder.EqualsBuilder; import org.apache.commons.lang.builder.HashCodeBuilder; import org.springframework.data.jpa.domain.AbstractAuditable; import javax.persistence.*; import java.io.Serializable; import java.util.HashSet; import java.util.Set; /** * Created by fabientronche1 on 23.10.15. */ @Entity @Table(name = "IDENTITY") public class Identity extends AbstractAuditable<Identity, Long> implements Serializable { @Column(name = "NICKNAME", columnDefinition = "The nickname of the Identity", length = 100, unique = true, nullable = false) private String nickname; @Column(name = "EMAIL", columnDefinition = "The nickname of the Identity", unique = true, nullable = false) private String email; @OneToMany private Set<PhoneNumber> phoneNumberSet = new HashSet<PhoneNumber>(); public Identity() { } public String getNickname() { return nickname; } public void setNickname(String nickname) { this.nickname = nickname; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Identity identity = (Identity) o; return new EqualsBuilder() .append(getId(), identity.getId()) .append(nickname, identity.nickname) .append(email, identity.email) .isEquals(); } @Override public int hashCode() { return new HashCodeBuilder(17, 37) .append(getId()) .append(nickname) .append(email) .toHashCode(); } public Set<PhoneNumber> getPhoneNumberSet() { return phoneNumberSet; } public void setPhoneNumberSet(Set<PhoneNumber> phoneNumberSet) { this.phoneNumberSet = phoneNumberSet; } }
8126f33373c25aff21a11aadf7805754864179f5
318f56fcc6fc4d68259ea4781d3e696c62783379
/basetemplate/Systool/SystemTool/ServerTool/src/com/server/data/DBSource.java
bfe2ba442ba6eab935fefa1a79caebef99fdb878
[]
no_license
dream962/Dream
a7950d3e04410fb25c3282862dabe8b3c3404e3e
e68c386598c7c22ee8998c8d405855677b781e7a
refs/heads/master
2021-01-12T18:30:49.629941
2020-03-16T02:20:00
2020-03-16T02:20:00
71,342,069
0
0
null
null
null
null
UTF-8
Java
false
false
9,684
java
package com.server.data; import java.sql.Connection; import java.sql.DatabaseMetaData; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.ResultSetMetaData; import java.sql.SQLException; import java.sql.Statement; import java.util.ArrayList; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.Map.Entry; import com.server.data.ConfigData.DataBaseConfig; import java.util.Set; public class DBSource implements IDataSource { private DataBaseConfig data; public List<String> dBList=new ArrayList<>(); public List<String> TableList=new ArrayList<>(); public DBSource(DataBaseConfig data) { this.data = data; } public Connection getConn() { try { Class.forName(data.driverName); Connection conn = DriverManager.getConnection(data.url, data.userName, data.password); return conn; } catch (ClassNotFoundException | SQLException e) { e.printStackTrace(); } return null; } public Connection getConn(String dbName) { try { Class.forName(data.driverName); Connection conn = DriverManager.getConnection(data.url + "/" + dbName + "?allowMultiQueries=true", data.userName, data.password); return conn; } catch (ClassNotFoundException | SQLException e) { e.printStackTrace(); } return null; } public void close(ResultSet rs, Statement stmt, Connection conn) { if (rs != null) { try { rs.close(); } catch (SQLException e) { e.printStackTrace(); } } if (stmt != null) { try { stmt.close(); } catch (SQLException e) { e.printStackTrace(); } } if (conn != null) { try { conn.close(); } catch (SQLException e) { e.printStackTrace(); } } } /** * ่Žทๅพ—ๅฏ่ฟžๆŽฅ็š„ๆ‰€ๆœ‰ๆ•ฐๆฎๅบ“ๅ็งฐ */ public List<String> getDatabase() { Connection conn = null; DatabaseMetaData metaData = null; ResultSet rs = null; List<String> databases = new ArrayList<String>(); try { conn = getConn(); metaData = conn.getMetaData(); rs = metaData.getCatalogs(); while (rs.next()) { String database = rs.getString("TABLE_CAT"); databases.add(database); } dBList.clear(); dBList.addAll(databases); } catch (SQLException e) { e.printStackTrace(); } finally { close(rs, null, conn); } return databases; } /** * ่Žทๅพ—ๅฝ“ๅ‰ๆ•ฐๆฎๅบ“ๆ‰€ๆœ‰่กจๅ */ public List<String> getTables(String dbName) { Connection conn = null; DatabaseMetaData metaData = null; ResultSet rs = null; try { conn = getConn(dbName); metaData = conn.getMetaData(); rs = metaData.getTables(null, null, null, new String[] { "TABLE" }); TableList.clear(); while (rs.next()) { String tableName = rs.getString("TABLE_NAME"); TableList.add(tableName); } } catch (SQLException e) { e.printStackTrace(); } finally { close(rs, null, conn); } return TableList; } /** * ่Žทๅพ—ๆ•ฐๆฎ่กจๅ…ทไฝ“ไฟกๆฏ */ public Map<String, FieldInfo> getTableFieldList(String dbName,String tableName) { Map<String, FieldInfo> fieldMap = new LinkedHashMap<String, FieldInfo>(); Connection conn = null; PreparedStatement pstm = null; ResultSet rs = null; ResultSetMetaData rsMetaData = null; try { // ่Žทๅพ—ๆ•ฐๆฎ่กจๅ„ไธชๅญ—ๆฎต็š„ๆณจ้‡Š conn = getConn("information_schema"); String sql = "SELECT * FROM COLUMNS WHERE TABLE_SCHEMA='" + dbName + "' AND TABLE_NAME='" + tableName + "'"; pstm = conn.prepareStatement(sql); rs = pstm.executeQuery(); while (rs.next()) { FieldInfo field = new FieldInfo(); field.setName(rs.getString("column_name")); field.setComment(rs.getString("column_comment")); fieldMap.put(rs.getString("column_name"), field); field.setNull(rs.getBoolean("is_nullable")); } conn = getConn(dbName); sql = "select * from " + tableName; pstm = conn.prepareStatement(sql); rs = pstm.executeQuery(); rsMetaData = rs.getMetaData(); pstm.getParameterMetaData(); int cols = rsMetaData.getColumnCount(); // ๆŸฅ่ฏข่Žทๅ–็ป“ๆžœ็š„ๅˆ—ๆ•ฐ for (int i = 1; i <= cols; i++) { // ๅญ—ๆฎตๅ String name = rsMetaData.getColumnName(i); // ๅญ—ๆฎตJavaไธญๅ€ผ็ฑปๅž‹ String javaType = rsMetaData.getColumnClassName(i); String SqlType = rsMetaData.getColumnTypeName(i); if (SqlType.contains("UNSIGNED")) { SqlType = SqlType.replace("UNSIGNED", "").trim(); } if (javaType == "[B") { javaType = "byte[]"; } else if (javaType == "java.lang.Boolean") { javaType = "boolean"; } else if (javaType == "java.lang.Integer") { javaType = "int"; } else if (javaType == "java.lang.Long") { if (SqlType.toLowerCase().equals("bigint")) javaType = "long"; else javaType = "int"; } else if (javaType == "java.lang.Float") { javaType = "float"; } else if (javaType == "java.lang.String") { javaType = "String"; } else if (javaType == "java.sql.Timestamp") { javaType = "Date"; } else if (javaType == "java.math.BigInteger") { javaType = "long"; if (rsMetaData.getColumnDisplaySize(i) == 1) javaType = "boolean"; if (rsMetaData.getColumnDisplaySize(i) == 11) javaType = "int"; } if (fieldMap.get(name) != null) { fieldMap.get(name).setJavaType(javaType); // ๅญ—ๆฎต SQL Type fieldMap.get(name).setSqlType(SqlType); // ๅญ—ๆฎต้•ฟๅบฆ fieldMap.get(name).setLen( (rsMetaData.getColumnDisplaySize(i))); } // TODO ่Žทๅ–keyๅญ—ๆฎต ResultSet pkRSet = conn.getMetaData().getPrimaryKeys(null, dbName, tableName); while (pkRSet.next()) { FieldInfo key = fieldMap.get(pkRSet.getObject(4)); if (key != null) { key.setPrimaryKey(true); } } } Set<Entry<String, FieldInfo>> set = fieldMap.entrySet(); for (Entry<String, FieldInfo> entry : set) { FieldInfo fieldInfo = entry.getValue(); if (!fieldInfo.isPrimaryKey()) { continue; } String clmName = fieldInfo.getName(); ResultSet clmSet = conn.getMetaData().getColumns(null, dbName,tableName, clmName); while (clmSet.next()) { String flag = (String) clmSet.getObject("IS_AUTOINCREMENT"); if (flag.equals("YES")) { fieldInfo.setAotuIncreamte(true); } } } } catch (Exception e) { e.printStackTrace(); } finally { close(rs, pstm, conn); } System.err.println("load table:"+tableName); return fieldMap; } public int execute(String dbName, String sql) { Connection connection = null; PreparedStatement pstm = null; try { connection = getConn(dbName); pstm = connection.prepareStatement(sql); int result = pstm.executeUpdate(); return result; } catch (Exception e) { e.printStackTrace(); } finally { System.err.println(sql); close(null, pstm, connection); } return -1; } }
d2f212388dd17fac5efe2d7fb615ebe0ab4fa1f0
432321d010e9f6d4ae6d26333a7937c0f902aa25
/Object Oriented Programming/Calendar/MyCalendarTester.java
cb087789fca89f7105b749ec2cc0db6887e0d0f0
[]
no_license
bobgel12/Java-Project
9baa9d92b96ebb794170f554ccb3e27d6b16739d
b8f3c8cde0bf58d07a5c5e816d6204cf53160449
refs/heads/master
2020-03-08T22:42:19.224215
2018-04-06T18:50:07
2018-04-06T18:50:07
128,438,906
0
0
null
null
null
null
UTF-8
Java
false
false
13,370
java
import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.text.DateFormat; import java.time.DateTimeException; import java.time.LocalDateTime; import java.time.LocalTime; import java.util.ArrayList; import java.util.Calendar; import java.util.GregorianCalendar; import java.util.Scanner; /** * My Calendar. * @author PhucLe * @since March 19, 2018 */ public class MyCalendarTester { private static LocalDateTime currentDate; private static ArrayList<Event> Events; private static MyCalendar calendar; private static Scanner sc = new Scanner(System.in);; // Array keep the name of month private static String[] months = { "", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" }; // Array keep the days in given month private static int[] days = { 0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; // Main method public static void main(String[] args) throws IOException { Running(); } // Method to generate events public static void Initialize() { GregorianCalendar c1 = new GregorianCalendar(2017, 3, 2); GregorianCalendar c2 = new GregorianCalendar(2018, 6, 4); Event e1 = new Event("Dr. Kim's Office", LocalTime.of(9, 15), LocalTime.of(10, 15), c1); Event e2 = new Event("Dentist", LocalTime.of(13, 15), LocalTime.of(14, 0), c1); Event e3 = new Event("Job Interview", LocalTime.of(15, 0), LocalTime.of(16, 0), c2); calendar.addEvent(e1, c1); calendar.addEvent(e2, c1); calendar.addEvent(e3, c2); } // Menu management method public static void Running() throws IOException { // Create calendar field calendar = new MyCalendar(); boolean shouldRun = true; // Begin the Menu loop while (shouldRun) { currentDate = LocalDateTime.now(); System.out.println("Welcome to your calendar!"); try { Events = calendar.extractEvent(); displayCalendar(Events, currentDate.getYear(), currentDate.getMonthValue()); } catch(NullPointerException a) { displayCalendar(null, currentDate.getYear(), currentDate.getMonthValue()); } System.out.println("Select one of the following options: \n" + "[L]oad [V]iew by [C]reate [G]o to [E]ventlist [D]elete [Q]uit"); sc = new Scanner(System.in); String input = sc.nextLine(); switch (input.toUpperCase()){ // Load option case "L": getFile(); break; // View option case "V": System.out.println("[D]ay view or [M]onth view ? "); String input2 = sc.nextLine(); switch (input2.toUpperCase()) { // Day View option case "D": System.out.println("[D]ay view"); calendar.getEvent(new GregorianCalendar()); boolean run = true; while(run) { int year = currentDate.getYear(); int month = currentDate.getMonthValue(); int day = currentDate.getDayOfMonth(); while(run) { System.out.println("[P]revious or [N]ext or [M]ain menu ? "); String input4 = sc.nextLine(); switch (input4.toUpperCase()){ case "P": day --; if(day == 0) { month --; if (month == 0) { year --; month = 12; } } calendar.getEvent(new GregorianCalendar(year, month - 1, day)); break; case "N": day ++; if(day > days[month]) { month ++; if (month > 12) { year --; month = 1; } } calendar.getEvent(new GregorianCalendar(year, month -1, day)); break; case "M": run = false; break; } } } break; // Month View option case "M": System.out.println("[M]onth view"); boolean run1 = true; displayCalendar(Events, currentDate.getYear(), currentDate.getMonthValue()); while(run1) { int year = currentDate.getYear(); int month = currentDate.getMonthValue(); while(run1) { System.out.println("[P]revious or [N]ext or [M]ain menu ? "); String input4 = sc.nextLine(); switch (input4.toUpperCase()){ case "P": month --; if (month == 0) { year --; month = 12; } displayCalendar(Events, year, month); break; case "N": month ++; if(month > 12) { year ++; month = 1; } displayCalendar(Events, year, month); break; case "M": run1 = false; break; } } } break; default: break; } break; // Create option case "C": boolean again = true; GregorianCalendar inputDate = null; LocalTime[] inputTime; String inputName; Event inputEvent = null; while(again) { System.out.println("Please enter new event information!"); again = false; inputDate = getInputDate(); inputTime = getInputTime(); inputName = getInputName(); inputEvent = new Event(inputName, inputTime[0],inputTime[1],inputDate); for(Event event : Events) { if (event.getName().toUpperCase().equals(inputEvent.getName().toUpperCase()) && event.getDate().equals(inputEvent.getDate())) { again = true; System.out.println("Duplicated Event!"); } } } DateFormat defaultDate = DateFormat.getDateInstance( DateFormat.FULL ); System.out.println(defaultDate.format(inputDate.getTime())); calendar.addEvent(inputEvent, inputDate); break; // Go to option case "G": GregorianCalendar inputDate1 = getInputDate(); calendar.getEvent(inputDate1); break; // Get all events option case "E": calendar.getAllEvent(); break; // Delete option case "D": GregorianCalendar inputDate2 = getInputDate(); calendar.getEvent(inputDate2); System.out.println("[S]elected or [A]ll"); String input3 = sc.nextLine(); switch (input3.toUpperCase()) { // Delete selected event in day only case "S": ArrayList<Event> todayEvent = calendar.getEventforGivenDay(inputDate2); if(todayEvent != null) { for (int i = 0; i < todayEvent.size(); i++) { System.out.println(i+1+ ": "+ todayEvent.get(i).toString()); } System.out.println("Please select the desired Event to delete by number: "); String input5 = sc.nextLine(); calendar.deleteEvent(todayEvent.get(Integer.parseInt(input5)-1), inputDate2); break; } else { System.out.println("There is no event at selected day"); } break; // Delete all event in day case "A": calendar.deleteAllinDay(inputDate2); break; default: break; } break; // Quit and save events to file events.ser case "Q": createFile(); shouldRun = false; break; default: break; } } } // Method to create .ser file to save all events public static void createFile() throws IOException { ArrayList<Event> array = calendar.extractEvent(); try { FileOutputStream fileOut = new FileOutputStream("events.ser"); ObjectOutputStream out = new ObjectOutputStream(fileOut); out.writeObject(array); out.close(); fileOut.close(); System.out.printf("Serialized data is saved in events.ser \n"); } catch (IOException i) { i.printStackTrace(); } } // Method to e04xtract the .ser file public static void getFile() { ArrayList<Event> array = new ArrayList<Event>(); try { FileInputStream fileIn = new FileInputStream("events.ser"); ObjectInputStream in = new ObjectInputStream(fileIn); array = (ArrayList<Event>) in.readObject(); in.close(); fileIn.close(); } catch (IOException i) { System.out.println("This is the first run"); return; } catch (ClassNotFoundException c) { System.out.println("This is the first run"); return; } for (Event e : array) { calendar.addEvent(e, e.getDate()); } } // Method to get the Name input for new Event public static String getInputName() { String rv = ""; while (rv == "") { System.out.print("Name of Event: "); rv = sc.nextLine(); } return rv; } // Method to get correct input time for Event public static LocalTime[] getInputTime() { LocalTime[] rv = new LocalTime[2]; String[] arrOfStr = new String[10]; boolean flag0 = true; while(flag0) { System.out.println("Does the event has ending time? Enter yes or no"); String endtime = sc.nextLine(); if(endtime.equals("yes")) { boolean run = true; while (run) { System.out.println("Enter the in format StartingTime-hh:StartingTime-mm:EndingTime-hh:EndingTime-mm (ex: 08:00:10:45)"); String date = sc.nextLine(); arrOfStr = date.split(":", 4); boolean flag = true; if ((arrOfStr.length != 4)) { flag = false; } for (String a : arrOfStr) { if (a.isEmpty()) { flag = false; } try { Integer.parseInt(a); } catch (NumberFormatException c) { flag = false; } if (a.length() != 2) { flag = false; } } if(flag) { try { rv[0] = LocalTime.of(Integer.parseInt(arrOfStr[0]),Integer.parseInt(arrOfStr[1])); rv[1] = LocalTime.of(Integer.parseInt(arrOfStr[2]),Integer.parseInt(arrOfStr[3])); if(rv[0].isBefore(rv[1])) { run = false; } else { System.out.print("Starting time has to be before Ending time!"); run = true; } } catch (NumberFormatException n) { run = true; } catch (DateTimeException d) { run = true; } } } flag0 = false; } else if (endtime.equals("no")) { boolean run = true; while (run) { System.out.println("Enter the in format StartingTime-hh:StartingTime-mm(ex: 08:00)"); String date = sc.nextLine(); arrOfStr = date.split(":", 2); boolean flag = true; if ((arrOfStr.length != 2)) { flag = false; } for (String a : arrOfStr) { if (a.isEmpty()) { flag = false; } try { Integer.parseInt(a); } catch (NumberFormatException c) { flag = false; } if (a.length() != 2) { flag = false; } } if(flag) { try { rv[0] = LocalTime.of(Integer.parseInt(arrOfStr[0]),Integer.parseInt(arrOfStr[1])); run = false; } catch (NumberFormatException n) { run = true; } catch (DateTimeException d) { run = true; } } } flag0 = false; } else { System.out.println("Please enter yes or no!"); } } return rv; } // Method for getting correct input date public static GregorianCalendar getInputDate() { String[] arrOfStr = new String[10]; while (true) { System.out.println("Enter the date in format MM/DD/YYYY"); String date = sc.nextLine(); arrOfStr = date.split("/", 4); boolean flag = true; // Check for empry field for (String a : arrOfStr) { if (a.isEmpty()) flag = false; try { Integer.parseInt(a); } catch (NumberFormatException c) { flag = false; } } // Check for enough field if ((arrOfStr.length == 3)) { if ((arrOfStr[0].length() != 2) || (arrOfStr[1].length() != 2) || (arrOfStr[2].length() != 4)) { flag = false; } else flag = true; } else flag = false; if (flag) break; System.out.print("You entered wrong date format!"); } GregorianCalendar rv = new GregorianCalendar(Integer.parseInt(arrOfStr[2]), Integer.parseInt(arrOfStr[0]) - 1, Integer.parseInt(arrOfStr[1])); return rv; } // Method checking if the year is leap year public static boolean checkLeapYear(int year) { if ((year % 4 == 0) && (year % 100 != 0)) return true; if (year % 400 == 0) return true; return false; } // Method getting the first day of given month, year public static int getday(int month, int day, int year) { int y = year - (14 - month) / 12; int x = y + y / 4 - y / 100 + y / 400; int m = month + 12 * ((14 - month) / 12) - 2; int d = (day + x + (31 * m) / 12) % 7; return d; } // Display calendar by month public static void displayCalendar(ArrayList<Event> Events, int year, int month) { if (month == 2 && checkLeapYear(year)) { days[month] = 29; } int[] temp = new int[days[month]+1]; if(Events != null) { temp = getEventdayin(month , year); } System.out.println(" " + months[month] + " " + year); System.out.println(" Sun Mon Tue Wed Thu Fri Sat"); int firstDay = getday(month, 1, year); for (int i = 0; i < firstDay; i++) System.out.print(" "); for (int i = 1; i <= days[month]; i++) { if (temp[i] == 1) { System.out.printf("{%4d}", i); } else { System.out.printf("%4d ", i); } if (((i + firstDay) % 7 == 0) || (i == days[month])) System.out.println(); } } // Method to get the days in month that has events public static int[] getEventdayin(int givenMonth, int givenYear) { ArrayList<Event> array = calendar.extractEvent(); int[] rv = new int[days[givenMonth]+1]; for(int i = 0; i < array.size(); i++) { if(array.get(i).getDate().get(Calendar.YEAR) == givenYear) { if(array.get(i).getDate().get(Calendar.MONTH) + 1 == (givenMonth)) { rv[array.get(i).getDate().get(Calendar.DAY_OF_MONTH)] = 1; } } } return rv; } }
95cd5ae283d2dfd94ec93ba3c70c02555945160a
c79f5bb7f5e8f227aa7d58b1ae6fcb0d9be718e0
/src/main/java/org/launchcode/controllers/UserController.java
3a81410462dc38af1aa65096e5df84b3dd72cc96
[]
no_license
mrkish/cheese-mvc-persistent
3eab36bbfe344dee5463acf3ebec4eccdcd3a9f3
9030d3033b0ac771ef003b6367400e09271f5de8
refs/heads/master
2020-03-20T19:13:57.199536
2018-06-25T23:45:38
2018-06-25T23:45:38
137,627,741
0
0
null
2018-06-17T04:02:22
2018-06-17T04:02:22
null
UTF-8
Java
false
false
2,606
java
package org.launchcode.controllers; import org.launchcode.models.User; import org.launchcode.models.data.CheeseDao; import org.launchcode.models.data.MenuDao; import org.launchcode.models.data.forms.UserDao; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.validation.Errors; import org.springframework.web.bind.annotation.CookieValue; import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import javax.validation.Valid; @Controller @RequestMapping(value = "user") public class UserController { @Autowired CheeseDao cheeseDao; @Autowired MenuDao menuDao; @Autowired UserDao userDao; @RequestMapping(value = "") public String login(Model model) { model.addAttribute("title", "Login"); model.addAttribute(new User()); return "user/login"; } @RequestMapping(value = "register", method= RequestMethod.GET) public String displayRegisterForm(Model model) { model.addAttribute("title", "Register New User"); model.addAttribute("user", new User()); return "user/register"; } @RequestMapping(value = "register", method = RequestMethod.POST) public String processRegisterFrom(Model model, @ModelAttribute @Valid User user, Errors errors ) { if (errors.hasErrors()) { model.addAttribute("title", "Register New User"); return "user/login"; } userDao.save(user); return "redirect:cheese/"; } @RequestMapping(value = "login", method = RequestMethod.GET) public String displayUserLogin(Model model) { model.addAttribute("title", "Login"); return "user/login"; } @RequestMapping(value = "login", method = RequestMethod.POST) public String processUserLogin(Model model, @ModelAttribute User user, Errors errors) { if(errors.hasErrors()) { model.addAttribute("title", "Login"); return "redirect:login"; } // TODO: Add HTTPResponseServlet stuff here to set cookies/store a user session. return "cheese/index"; } @RequestMapping(value = "logout", method = RequestMethod.POST) public String processUserLogout(Model model, @CookieValue User user) { // TODO: Remove user cookies from session to handle logout functionality. return "user/login"; } }
053ce41f4b70eae3e47465960dfd5e25e56df489
93f30b526d16e0e4c5ad9c6c91c8f4c936f51311
/kings-n-things-client/src/com/kingsandthings/client/game/board/BoardView.java
214a0f3b722f13ceb69792389ad84274f9531d98
[]
no_license
cdtinney/kings-n-things-client
6430700f28254c5d6fa6ede83441f790c43b5413
02367e278538aa721dd1a3891e5d9fb4a809ca8e
refs/heads/master
2021-01-19T03:03:01.608094
2017-02-09T14:27:55
2017-02-09T14:27:55
17,608,677
0
0
null
null
null
null
UTF-8
Java
false
false
11,138
java
package com.kingsandthings.client.game.board; import java.beans.PropertyChangeEvent; import java.util.logging.Logger; import javafx.collections.FXCollections; import javafx.collections.ObservableList; import javafx.event.ActionEvent; import javafx.event.EventHandler; import javafx.geometry.Insets; import javafx.geometry.Pos; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.control.ComboBox; import javafx.scene.control.Label; import javafx.scene.image.Image; import javafx.scene.image.ImageView; import javafx.scene.layout.HBox; import javafx.scene.layout.Pane; import javafx.scene.layout.VBoxBuilder; import javafx.stage.Modality; import javafx.stage.Stage; import javafx.stage.StageStyle; import com.kingsandthings.client.game.Updatable; import com.kingsandthings.common.events.PropertyChangeDispatcher; import com.kingsandthings.common.model.Game; import com.kingsandthings.common.model.board.Tile; public class BoardView extends Pane implements Updatable { private static Logger LOGGER = Logger.getLogger(BoardView.class.getName()); private TileView[][] tileViews = new TileView[10][10]; private Stage diceStage; private Label instructions; public void initialize(Game game) { getStyleClass().addAll("pane", "board"); int initialX = 70; int initialY = 190; int xOffset = 79; int yOffset = 91; int columnOffset = 45; tileViews = generateTileViews(initialX, initialY, xOffset, yOffset, columnOffset, 10); addTileViews(tileViews); addInstructionText(); addDiceStage(); initializeTiles(game.getBoard().getTiles()); addListeners(); } public void update(Game game) { Tile[][] modelTiles = game.getBoard().getTiles(); for (int i=0; i<modelTiles.length; ++i) { for (int j=0; j<modelTiles[i].length; ++j) { if (tileViews[i][j] != null && modelTiles[i][j] != null) { tileViews[i][j].setTile(modelTiles[i][j], false); } } } } public void setInstruction(String text) { instructions.setText(text); } public TileView[][] getTiles() { return tileViews; } public void initializeTiles(Tile[][] modelTiles) { for (int i=0; i<modelTiles.length; ++i) { for (int j=0; j<modelTiles[i].length; ++j) { Tile tile = modelTiles[i][j]; try { final TileView view = tileViews[i][j]; if (tile == null || view == null) { continue; } view.initialize(tile); } catch (IndexOutOfBoundsException e) { LOGGER.warning("Model and view tile array size mismatch - " + e.getMessage()); } } } } @SuppressWarnings("rawtypes") public Integer getDiceValue() { if (diceStage == null) { return -1; } if(diceStage.getScene() == null) { return -1; } Integer val = (Integer) ((ComboBox) diceStage.getScene().lookup("#diceValue")).getValue(); return val; } public void showDice() { if (diceStage.getOwner() == null) { diceStage.initOwner(getScene().getWindow()); } Stage parent = (Stage) getScene().getWindow(); diceStage.setX(parent.getX() + parent.getWidth() / 2 - 175); diceStage.setY(parent.getY() + parent.getHeight() / 2 + 350); diceStage.showAndWait(); } private void addListeners() { PropertyChangeDispatcher.getInstance().addListener(Tile.class, "owner", this, "onTileOwnerChange"); PropertyChangeDispatcher.getInstance().addListener(Tile.class, "fort", this, "onTileFortChanged"); PropertyChangeDispatcher.getInstance().addListener(Tile.class, "things", this, "onTileThingsChange"); PropertyChangeDispatcher.getInstance().addListener(Tile.class, "battleToResolve", this,"onBattleChange"); PropertyChangeDispatcher.getInstance().addListener(Tile.class, "specialIncome", this,"onTileSpecialIncomeChange"); } @SuppressWarnings("unused") private void onBattleChange(PropertyChangeEvent evt) { TileView view = getViewFromEvent(evt); if (view == null) { return; } view.updateBattleHighlight(); } @SuppressWarnings("unused") private void onTileOwnerChange(PropertyChangeEvent evt) { TileView view = getViewFromEvent(evt); if (view == null) { return; } view.updateControlMarkerView(); view.setImage(view.getTile().getImage()); } @SuppressWarnings("unused") private void onTileThingsChange(PropertyChangeEvent evt) { TileView view = getViewFromEvent(evt); if (view == null) { return; } view.updateThingsStackView(); } @SuppressWarnings("unused") private void onTileFortChanged(PropertyChangeEvent evt) { TileView view = getViewFromEvent(evt); if (view == null) { return; } view.updateFortView(); } @SuppressWarnings("unused") private void onTileSpecialIncomeChange(PropertyChangeEvent evt) { TileView view = getViewFromEvent(evt); if (view == null) { return; } view.updateSpecialIncomeView(); } private TileView getViewFromEvent(PropertyChangeEvent evt) { Tile tile = (Tile) evt.getSource(); if (tile == null) { LOGGER.warning("Event source is not a Tile"); return null; } TileView view = findTileView(tile); if (view == null) { LOGGER.warning("No TileView found for the specified Tile"); } return view; } private TileView findTileView(Tile tile) { for (TileView[] row : tileViews) { for (TileView view : row) { if (view == null) continue; if (view.getTile().equals(tile)) return view; } } return null; } private void addTileViews(TileView[][] tiles) { for (TileView[] row : tiles) { for (TileView tile : row) { if (tile != null) { getChildren().add(tile); } } } } private void addDiceStage() { diceStage = new Stage(); diceStage.initStyle(StageStyle.TRANSPARENT); diceStage.initModality(Modality.APPLICATION_MODAL); ImageView imgView = new ImageView(new Image("/images/extra/dice.png")); imgView.setPreserveRatio(true); imgView.setFitWidth(30); Button rollDiceButton = new Button("Roll Dice", imgView); rollDiceButton.getStyleClass().addAll("diceButton", "nofocus"); rollDiceButton.setPrefHeight(40); rollDiceButton.setPrefWidth(130); ObservableList<Integer> options = FXCollections.observableArrayList( 1, 2, 3, 4, 5, 6 ); ComboBox<Integer> comboBox = new ComboBox<Integer>(options); comboBox.setId("diceValue"); HBox box = new HBox(10); box.setAlignment(Pos.CENTER); box.getChildren().addAll(rollDiceButton, comboBox); Scene myDialogScene = new Scene(VBoxBuilder.create().children(box).alignment(Pos.CENTER).padding(new Insets(0)).build()); diceStage.setScene(myDialogScene); rollDiceButton.setOnAction(new EventHandler<ActionEvent>() { @Override public void handle(ActionEvent event) { diceStage.close(); } }); } private void addInstructionText() { instructions = new Label("instructions go here"); instructions.getStyleClass().add("instructionsText"); instructions.setPrefWidth(getBoundsInParent().getWidth() + 75); getChildren().add(instructions); } private TileView[][] generateTileViews(int initialX, int initialY, int xOffset, int yOffset, int columnOffset, int size) { TileView[][] tiles = new TileView[size][size]; // column 0 tiles[0][0] = new TileView(null, initialX, initialY); tiles[1][0] = new TileView(null, initialX, initialY + yOffset); tiles[2][0] = new TileView(null, initialX, initialY + yOffset*2); tiles[3][0] = new TileView(null, initialX, initialY + yOffset*3); // column 1 tiles[0][1] = new TileView(null, initialX + xOffset, initialY - columnOffset); tiles[1][1] = new TileView(null, initialX + xOffset, initialY + yOffset - columnOffset); tiles[2][1] = new TileView(null, initialX + xOffset, initialY + yOffset*2 - columnOffset); tiles[3][1] = new TileView(null, initialX + xOffset, initialY + yOffset*3 - columnOffset); tiles[4][1] = new TileView(null, initialX + xOffset, initialY + yOffset*4 - columnOffset); // column 3 tiles[0][2] = new TileView(null, initialX + xOffset*2, initialY - columnOffset*2); tiles[1][2] = new TileView(null, initialX + xOffset*2, initialY + yOffset - columnOffset*2); tiles[2][2] = new TileView(null, initialX + xOffset*2, initialY + yOffset*2 - columnOffset*2); tiles[3][2] = new TileView(null, initialX + xOffset*2, initialY + yOffset*3 - columnOffset*2); tiles[4][2] = new TileView(null, initialX + xOffset*2, initialY + yOffset*4 - columnOffset*2); tiles[5][2] = new TileView(null, initialX + xOffset*2, initialY + yOffset*5 - columnOffset*2); // column 4 (center) tiles[0][3] = new TileView(null, initialX + xOffset*3, initialY - columnOffset*3); tiles[1][3] = new TileView(null, initialX + xOffset*3, initialY + yOffset - columnOffset*3); tiles[2][3] = new TileView(null, initialX + xOffset*3, initialY + yOffset*2 - columnOffset*3); tiles[3][3] = new TileView(null, initialX + xOffset*3, initialY + yOffset*3 - columnOffset*3); tiles[4][3] = new TileView(null, initialX + xOffset*3, initialY + yOffset*4 - columnOffset*3); tiles[5][3] = new TileView(null, initialX + xOffset*3, initialY + yOffset*5 - columnOffset*3); tiles[6][3] = new TileView(null, initialX + xOffset*3, initialY + yOffset*6 - columnOffset*3); // column 5 tiles[0][4] = new TileView(null, initialX + xOffset*4, initialY - columnOffset*2); tiles[1][4] = new TileView(null, initialX + xOffset*4, initialY + yOffset - columnOffset*2); tiles[2][4] = new TileView(null, initialX + xOffset*4, initialY + yOffset*2 - columnOffset*2); tiles[3][4] = new TileView(null, initialX + xOffset*4, initialY + yOffset*3 - columnOffset*2); tiles[4][4] = new TileView(null, initialX + xOffset*4, initialY + yOffset*4 - columnOffset*2); tiles[5][4] = new TileView(null, initialX + xOffset*4, initialY + yOffset*5 - columnOffset*2); // column 6 tiles[0][5] = new TileView(null, initialX + xOffset*5, initialY - columnOffset); tiles[1][5] = new TileView(null, initialX + xOffset*5, initialY + yOffset - columnOffset); tiles[2][5] = new TileView(null, initialX + xOffset*5, initialY + yOffset*2 - columnOffset); tiles[3][5] = new TileView(null, initialX + xOffset*5, initialY + yOffset*3 - columnOffset); tiles[4][5] = new TileView(null, initialX + xOffset*5, initialY + yOffset*4 - columnOffset); // column 7 tiles[0][6] = new TileView(null, initialX + xOffset*6, initialY); tiles[1][6] = new TileView(null, initialX + xOffset*6, initialY + yOffset); tiles[2][6] = new TileView(null, initialX + xOffset*6, initialY + yOffset*2); tiles[3][6] = new TileView(null, initialX + xOffset*6, initialY + yOffset*3); return tiles; } }
ca3148f99908093ee6d43bcaccfb44d2d7cc1f40
9637a4bde6a5c89d979b7d2b8a440637abd9d597
/src/main/java/com/electroworld/ProductModel/ProductServiceImpl.java
26a06243ad38d7c14821476bd07fb794bbfa4cbb
[]
no_license
ritush29/electroworld
14f7c9beceb1e5b1dcf5405e20e2ee9fd3ada524
8826cbe0ea2dbd46f03662baa0d3bb8701afaeeb
refs/heads/master
2020-04-02T12:50:21.689971
2016-08-11T12:22:48
2016-08-11T12:22:48
65,077,463
0
0
null
null
null
null
UTF-8
Java
false
false
1,290
java
package com.electroworld.ProductModel; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.EnableTransactionManagement; import org.springframework.transaction.annotation.Transactional; import com.electroworld.ProductModel.Product; import com.electroworld.ProductModel.ProductService; @Service public class ProductServiceImpl implements ProductService { @Autowired ProductDAO dao; @Transactional public void insertProduct(Product p) { dao.insertProduct(p); } @Transactional public void updateProduct(Product p) { dao.updateProduct(p); } @Transactional public void deleteProduct(int pid) { dao.deleteProduct(pid); } @Transactional public Product getProduct(int pid) { return dao.getProduct(pid); } @Transactional public List<Product> getAllProducts() { return dao.getAllProducts(); } @Transactional public long getMaxProductId() { long id = -1; List<Product> l = dao.getAllProducts(); for( Product prod : l ) { if( prod.getProductId() > id ) id = prod.getProductId(); } return id; } @Transactional public Product getProductWithMaxId() { return dao.getProductWithMaxId(); } }
eb608f03710a6e8ef3fcbe9fc06adcdecfeb54e5
ea8d5fa624c8f2b20be40bba7b90c7f868d8783c
/src/main/java/com/boot/alberto/SignupValidationApplication.java
7e082db14efca80e22b5c73cd153b501339e2476
[]
no_license
muqui/Validation-in-Spring-Boot
66cfde257104196dab82178afe10522a534c80c6
781b1b1997b53d815a08e5ccc05f30ab48a1f044
refs/heads/main
2023-09-04T02:44:15.913549
2021-11-04T20:11:17
2021-11-04T20:11:17
420,553,029
0
0
null
null
null
null
UTF-8
Java
false
false
329
java
package com.boot.alberto; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class SignupValidationApplication { public static void main(String[] args) { SpringApplication.run(SignupValidationApplication.class, args); } }
86d95e08c26cc0abbda355441158947e917c4348
94cc4c4b3a746d42c2ed7697b4d848a2a1076767
/posystem/src/main/java/br/valinorti/posystem/entity/User.java
876abc025d90fcd741145a8a65b3461604b09d17
[]
no_license
rchiarinelli/posystem
0d27b29bc988bb848ec952c4474ab30f60561e48
6767bc701a3820f1ea5713351a7932fa102b259a
refs/heads/master
2021-08-24T02:55:15.799067
2017-12-07T19:01:43
2017-12-07T19:01:43
113,320,578
0
0
null
null
null
null
UTF-8
Java
false
false
3,425
java
/** * */ package br.valinorti.posystem.entity; import java.io.Serializable; import java.util.Set; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.OneToMany; import javax.persistence.Table; import org.hibernate.annotations.Fetch; import org.hibernate.annotations.FetchMode; /** * @author leafar * */ @Entity @Table(name="t_user") public class User implements Serializable { /** * */ private static final long serialVersionUID = -1822333369324134675L; @Id @Column(name="user_login",nullable=false) private String login; @Column(name="user_password",nullable=false) private String password; @Column(name="user_email",nullable=false) private String email; @ManyToOne(fetch=FetchType.EAGER,targetEntity=Subscriber.class) @JoinColumn(name="id_subscriber",nullable=false) @Fetch(FetchMode.JOIN) private Subscriber subscriber; @OneToMany(cascade={CascadeType.ALL},targetEntity=Permission.class,fetch=FetchType.LAZY) @JoinColumn(name="user_login") @Fetch(FetchMode.JOIN) private Set<Permission> permissions; /* (non-Javadoc) * @see java.lang.Object#hashCode() */ @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((email == null) ? 0 : email.hashCode()); result = prime * result + ((login == null) ? 0 : login.hashCode()); result = prime * result + ((password == null) ? 0 : password.hashCode()); return result; } /* (non-Javadoc) * @see java.lang.Object#equals(java.lang.Object) */ @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; User other = (User) obj; if (email == null) { if (other.email != null) return false; } else if (!email.equals(other.email)) return false; if (login == null) { if (other.login != null) return false; } else if (!login.equals(other.login)) return false; if (password == null) { if (other.password != null) return false; } else if (!password.equals(other.password)) return false; return true; } /** * @return the login */ public String getLogin() { return login; } /** * @return the password */ public String getPassword() { return password; } /** * @return the email */ public String getEmail() { return email; } /** * @return the subscriber */ public Subscriber getSubscriber() { return subscriber; } /** * @return the permissions */ public Set<Permission> getPermissions() { return permissions; } /** * @param login the login to set */ public void setLogin(String login) { this.login = login; } /** * @param password the password to set */ public void setPassword(String password) { this.password = password; } /** * @param email the email to set */ public void setEmail(String email) { this.email = email; } /** * @param subscriber the subscriber to set */ public void setSubscriber(Subscriber subscriber) { this.subscriber = subscriber; } /** * @param permissions the permissions to set */ public void setPermissions(Set<Permission> permissions) { this.permissions = permissions; } }
7ac4537a60ab08b94c7e302acff2be9622b82927
41ae950b46036a9ebe6a221fcc0a23601bfbf190
/LeetCode/src/problem1201_1300/Problem1254.java
ad59f47bf8941fb17ccac4f9e92e677fe96d2d7f
[]
no_license
yuruiyin/AlgorithmLearn
f7a88a499d050fa9c5d666514a74de0f0a56d001
4224b664e6d05f233512f77088f6d1437a87cd97
refs/heads/master
2023-07-08T09:19:41.101604
2023-07-03T01:48:08
2023-07-03T01:48:08
143,147,502
4
2
null
null
null
null
UTF-8
Java
false
false
2,696
java
package problem1201_1300; import java.util.ArrayList; import java.util.LinkedList; import java.util.List; public class Problem1254 { private boolean[][] visited; private boolean bfs(int[][] grid, int row, int col) { int rowCount = grid.length; int colCount = grid[0].length; LinkedList<int[]> queue = new LinkedList<>(); queue.addLast(new int[]{row, col}); visited[row][col] = true; boolean isClosedLand = true; while (!queue.isEmpty()) { List<int[]> ansList = new ArrayList<>(); while (!queue.isEmpty()) { ansList.add(queue.removeFirst()); } for (int[] node : ansList) { int curRow = node[0]; int curCol = node[1]; if (curRow == 0 || curRow == rowCount - 1 || curCol == 0 || curCol == colCount - 1) { isClosedLand = false; } // ไธŠ if (curRow > 0 && grid[curRow-1][curCol] == 0 && !visited[curRow-1][curCol]) { queue.add(new int[]{curRow-1, curCol}); visited[curRow-1][curCol] = true; } // ไธ‹ if (curRow < rowCount - 1 && grid[curRow+1][curCol] == 0 && !visited[curRow+1][curCol]) { queue.add(new int[]{curRow+1, curCol}); visited[curRow+1][curCol] = true; } // ๅทฆ if (curCol > 0 && grid[curRow][curCol-1] == 0 && !visited[curRow][curCol-1]) { queue.add(new int[]{curRow, curCol-1}); visited[curRow][curCol-1] = true; } // ๅณ if (curCol < colCount - 1 && grid[curRow][curCol+1] == 0 && !visited[curRow][curCol+1]) { queue.add(new int[]{curRow, curCol+1}); visited[curRow][curCol+1] = true; } } } return isClosedLand; } public int closedIsland(int[][] grid) { // bfs int rowCount = grid.length; int colCount = grid[0].length; visited = new boolean[rowCount][colCount]; int ans = 0; for (int i = 1; i < rowCount; i++) { for (int j = 1; j < colCount; j++) { if (grid[i][j] == 1 || visited[i][j]) { continue; } boolean isClosedLand = bfs(grid, i, j); if (isClosedLand) { ans++; } } } return ans; } public static void main(String[] args) { } }
33c82e1ae0d573c27335e5ced1ba9c7c7f9bbf5e
2a2357c229ae6ff74575f50f127c2a5293f9e7db
/src/main/java/pl/kozlowska/blog/service/interfaces/AttachmentService.java
83ac252114cb797c3c944de4f281dd9d79b16c17
[]
no_license
Julia-K/spring-boot-blog
5edd58e22434d3c8369246af1c61b2ec7db06eef
387f11a9aa2d5f3d75e4940cfb7c46363ec62927
refs/heads/main
2023-03-02T04:55:32.438382
2021-01-31T19:58:30
2021-01-31T19:58:30
333,970,172
0
0
null
null
null
null
UTF-8
Java
false
false
472
java
package pl.kozlowska.blog.service.interfaces; import org.springframework.web.multipart.MultipartFile; import pl.kozlowska.blog.models.Attachment; import java.util.List; public interface AttachmentService { Attachment findById(int id); List<Attachment> findAll(); List<Attachment> saveAll(); Attachment save(MultipartFile file, int id); Attachment save(Attachment attachment); void deleteById(int id); void deleteAllByPostId(int id); }
dd8548f98521eec74914043ec287fa38bfd31413
065c1f648e8dd061a20147ff9c0dbb6b5bc8b9be
/ant_cluster/8775/tar_7.java
ae300c0e5969e8264d3de64651cbe42a307b1922
[]
no_license
martinezmatias/GenPat-data-C3
63cfe27efee2946831139747e6c20cf952f1d6f6
b360265a6aa3bb21bd1d64f1fc43c3b37d0da2a4
refs/heads/master
2022-04-25T17:59:03.905613
2020-04-15T14:41:34
2020-04-15T14:41:34
null
0
0
null
null
null
null
UTF-8
Java
false
false
18,125
java
/* * The Apache Software License, Version 1.1 * * Copyright (c) 2000-2003 The Apache Software Foundation. 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. The end-user documentation included with the redistribution, if * any, must include the following acknowlegement: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowlegement may appear in the software itself, * if and wherever such third-party acknowlegements normally appear. * * 4. The names "Ant" and "Apache Software * Foundation" must not be used to endorse or promote products derived * from this software without prior written permission. For written * permission, please contact [email protected]. * * 5. Products derived from this software may not be called "Apache" * nor may "Apache" appear in their names without prior written * permission of the Apache Group. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 APACHE SOFTWARE FOUNDATION OR * ITS 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. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. */ package org.apache.tools.ant.taskdefs; import java.io.File; import java.io.IOException; import java.util.Vector; import org.apache.tools.ant.BuildException; import org.apache.tools.ant.ExitException; import org.apache.tools.ant.Project; import org.apache.tools.ant.Task; import org.apache.tools.ant.types.Commandline; import org.apache.tools.ant.types.CommandlineJava; import org.apache.tools.ant.types.Environment; import org.apache.tools.ant.types.Path; import org.apache.tools.ant.types.PropertySet; import org.apache.tools.ant.types.Reference; /** * Launcher for Java applications. Allows use of * the same JVM for the called application thus resulting in much * faster operation. * * @author Stefano Mazzocchi * <a href="mailto:[email protected]">[email protected]</a> * @author Stefan Bodewig * @author <a href="mailto:[email protected]">Donal Quinlan</a> * * @since Ant 1.1 * * @ant.task category="java" */ public class Java extends Task { private CommandlineJava cmdl = new CommandlineJava(); private Environment env = new Environment(); private boolean fork = false; private boolean newEnvironment = false; private File dir = null; private boolean failOnError = false; private boolean append = false; private Long timeout = null; private Redirector redirector = new Redirector(this); private String resultProperty; /** * Do the execution. */ public void execute() throws BuildException { File savedDir = dir; int err = -1; try { err = executeJava(); if (fork && Execute.isFailure(err)) { if (failOnError) { throw new BuildException("Java returned: " + err, getLocation()); } else { log("Java Result: " + err, Project.MSG_ERR); } } maybeSetResultPropertyValue(err); } finally { dir = savedDir; } } /** * Do the execution and return a return code. * * @return the return code from the execute java class if it was * executed in a separate VM (fork = "yes"). */ public int executeJava() throws BuildException { String classname = cmdl.getClassname(); if (classname == null && cmdl.getJar() == null) { throw new BuildException("Classname must not be null."); } if (!fork && cmdl.getJar() != null) { throw new BuildException("Cannot execute a jar in non-forked mode." + " Please set fork='true'. "); } if (fork) { log(cmdl.describeCommand(), Project.MSG_VERBOSE); } else { if (cmdl.getVmCommand().size() > 1) { log("JVM args ignored when same JVM is used.", Project.MSG_WARN); } if (dir != null) { log("Working directory ignored when same JVM is used.", Project.MSG_WARN); } if (newEnvironment || null != env.getVariables()) { log("Changes to environment variables are ignored when same " + "JVM is used.", Project.MSG_WARN); } if (cmdl.getBootclasspath() != null) { log("bootclasspath ignored when same JVM is used.", Project.MSG_WARN); } log("Running in same VM " + cmdl.describeJavaCommand(), Project.MSG_VERBOSE); } try { if (fork) { return run(cmdl.getCommandline()); } else { try { run(cmdl); return 0; } catch (ExitException ex) { return ex.getStatus(); } } } catch (BuildException e) { if (failOnError) { throw e; } else { log(e.getMessage(), Project.MSG_ERR); return 0; } } catch (Throwable t) { if (failOnError) { throw new BuildException(t); } else { log(t.getMessage(), Project.MSG_ERR); return 0; } } } /** * Set the classpath to be used when running the Java class * * @param s an Ant Path object containing the classpath. */ public void setClasspath(Path s) { createClasspath().append(s); } /** * Adds a path to the classpath. */ public Path createClasspath() { return cmdl.createClasspath(getProject()).createPath(); } /** * Adds a path to the bootclasspath. * @since Ant 1.6 */ public Path createBootclasspath() { return cmdl.createBootclasspath(getProject()).createPath(); } /** * Classpath to use, by reference. */ public void setClasspathRef(Reference r) { createClasspath().setRefid(r); } /** * The location of the JAR file to execute. */ public void setJar(File jarfile) throws BuildException { if (cmdl.getClassname() != null) { throw new BuildException("Cannot use 'jar' and 'classname' " + "attributes in same command."); } cmdl.setJar(jarfile.getAbsolutePath()); } /** * Sets the Java class to execute. */ public void setClassname(String s) throws BuildException { if (cmdl.getJar() != null) { throw new BuildException("Cannot use 'jar' and 'classname' " + "attributes in same command"); } cmdl.setClassname(s); } /** * Deprecated: use nested arg instead. * Set the command line arguments for the class. * @ant.attribute ignore="true" */ public void setArgs(String s) { log("The args attribute is deprecated. " + "Please use nested arg elements.", Project.MSG_WARN); cmdl.createArgument().setLine(s); } /** * Adds a command-line argument. */ public Commandline.Argument createArg() { return cmdl.createArgument(); } /** * The name of a property in which the return code of the * command should be stored. Only of interest if failonerror=false. * * @since Ant 1.6 */ public void setResultProperty(String resultProperty) { this.resultProperty = resultProperty; } /** * helper method to set result property to the * passed in value if appropriate */ protected void maybeSetResultPropertyValue(int result) { String res = Integer.toString(result); if (resultProperty != null) { project.setNewProperty(resultProperty, res); } } /** * If true, execute in a new VM. */ public void setFork(boolean s) { this.fork = s; } /** * Set the command line arguments for the JVM. */ public void setJvmargs(String s) { log("The jvmargs attribute is deprecated. " + "Please use nested jvmarg elements.", Project.MSG_WARN); cmdl.createVmArgument().setLine(s); } /** * Adds a JVM argument. */ public Commandline.Argument createJvmarg() { return cmdl.createVmArgument(); } /** * Set the command used to start the VM (only if not forking). */ public void setJvm(String s) { cmdl.setVm(s); } /** * Adds a system property. */ public void addSysproperty(Environment.Variable sysp) { cmdl.addSysproperty(sysp); } /** * Adds a set of properties as system properties. * * @since Ant 1.6 */ public void addSyspropertyset(PropertySet sysp) { cmdl.addSyspropertyset(sysp); } /** * If true, then fail if the command exits with a * returncode other than 0 */ public void setFailonerror(boolean fail) { failOnError = fail; } /** * The working directory of the process */ public void setDir(File d) { this.dir = d; } /** * File the output of the process is redirected to. */ public void setOutput(File out) { redirector.setOutput(out); } /** * Set the input to use for the task */ public void setInput(File input) { redirector.setInput(input); } /** * Set the string to use as input * * @param inputString the string which is used as the input source */ public void setInputString(String inputString) { redirector.setInputString(inputString); } /** * Controls whether error output of exec is logged. This is only useful * when output is being redirected and error output is desired in the * Ant log */ public void setLogError(boolean logError) { redirector.setLogError(logError); } /** * File the error stream of the process is redirected to. * * @since ant 1.6 */ public void setError(File error) { redirector.setError(error); } /** * Property name whose value should be set to the output of * the process. */ public void setOutputproperty(String outputProp) { redirector.setOutputProperty(outputProp); } /** * Property name whose value should be set to the error of * the process. * * @since ant 1.6 */ public void setErrorProperty(String errorProperty) { redirector.setErrorProperty(errorProperty); } /** * Corresponds to -mx or -Xmx depending on VM version. */ public void setMaxmemory(String max) { cmdl.setMaxmemory(max); } /** * Sets the JVM version. * @param value JVM version */ public void setJVMVersion(String value) { cmdl.setVmversion(value); } /** * Adds an environment variable. * * <p>Will be ignored if we are not forking a new VM. * * @since Ant 1.5 */ public void addEnv(Environment.Variable var) { env.addVariable(var); } /** * If true, use a completely new environment. * * <p>Will be ignored if we are not forking a new VM. * * @since Ant 1.5 */ public void setNewenvironment(boolean newenv) { newEnvironment = newenv; } /** * If true, append output to existing file. * * @since Ant 1.5 */ public void setAppend(boolean append) { this.append = append; } /** * Timeout in milliseconds after which the process will be killed. * * @since Ant 1.5 */ public void setTimeout(Long value) { timeout = value; } /** * Pass output sent to System.out to specified output file. * * @since Ant 1.5 */ protected void handleOutput(String output) { if (redirector.getOutputStream() != null) { redirector.handleOutput(output); } else { super.handleOutput(output); } } public int handleInput(byte[] buffer, int offset, int length) throws IOException { if (redirector.getInputStream() != null) { return redirector.handleInput(buffer, offset, length); } else { return super.handleInput(buffer, offset, length); } } /** * Pass output sent to System.out to specified output file. * * @since Ant 1.5.2 */ protected void handleFlush(String output) { if (redirector.getOutputStream() != null) { redirector.handleFlush(output); } else { super.handleFlush(output); } } /** * Pass output sent to System.err to specified output file. * * @since Ant 1.5 */ protected void handleErrorOutput(String output) { if (redirector.getErrorStream() != null) { redirector.handleErrorOutput(output); } else { super.handleErrorOutput(output); } } /** * Pass output sent to System.err to specified output file. * * @since Ant 1.5.2 */ protected void handleErrorFlush(String output) { if (redirector.getErrorStream() != null) { redirector.handleErrorFlush(output); } else { super.handleErrorOutput(output); } } /** * Executes the given classname with the given arguments as it * was a command line application. */ private void run(CommandlineJava command) throws BuildException { try { ExecuteJava exe = new ExecuteJava(); exe.setJavaCommand(command.getJavaCommand()); exe.setClasspath(command.getClasspath()); exe.setSystemProperties(command.getSystemProperties()); exe.setTimeout(timeout); redirector.createStreams(); exe.execute(getProject()); redirector.complete(); } catch (IOException e) { throw new BuildException(e); } } /** * Executes the given classname with the given arguments in a separate VM. */ private int run(String[] command) throws BuildException { Execute exe = new Execute(redirector.createHandler(), createWatchdog()); exe.setAntRun(getProject()); if (dir == null) { dir = getProject().getBaseDir(); } else if (!dir.exists() || !dir.isDirectory()) { throw new BuildException(dir.getAbsolutePath() + " is not a valid directory", getLocation()); } exe.setWorkingDirectory(dir); String[] environment = env.getVariables(); if (environment != null) { for (int i = 0; i < environment.length; i++) { log("Setting environment variable: " + environment[i], Project.MSG_VERBOSE); } } exe.setNewenvironment(newEnvironment); exe.setEnvironment(environment); exe.setCommandline(command); try { int rc = exe.execute(); if (exe.killedProcess()) { log("Timeout: killed the sub-process", Project.MSG_WARN); } redirector.complete(); return rc; } catch (IOException e) { throw new BuildException(e, getLocation()); } } /** * Executes the given classname with the given arguments as it * was a command line application. */ protected void run(String classname, Vector args) throws BuildException { CommandlineJava cmdj = new CommandlineJava(); cmdj.setClassname(classname); for (int i = 0; i < args.size(); i++) { cmdj.createArgument().setValue((String) args.elementAt(i)); } run(cmdj); } /** * Clear out the arguments to this java task. */ public void clearArgs() { cmdl.clearJavaArgs(); } /** * Create the Watchdog to kill a runaway process. * * @since Ant 1.5 */ protected ExecuteWatchdog createWatchdog() throws BuildException { if (timeout == null) { return null; } return new ExecuteWatchdog(timeout.longValue()); } }
3c2b7a0481fb7b20e856ed6496268856125caaca
853cc7b6a6dd7633b19a4bd902d72aa4106b570a
/src/main/java/com/patrick/service/base/ZhConsumerComplainService.java
3299a31709e6916a4bd2b41fe89b943baabdfe6b
[]
no_license
Snowing-J/family_service_platform
36cb4f10a9537cff410ccf74760ec4b4f3874f92
9c1110b5043e954ec5c2295a94e2e7803af026ba
refs/heads/main
2023-08-19T22:26:33.069432
2021-10-18T08:47:48
2021-10-18T08:47:48
416,817,975
0
0
null
null
null
null
UTF-8
Java
false
false
314
java
package com.patrick.service.base; import com.patrick.bean.ZhConsumerComplain; import com.baomidou.mybatisplus.extension.service.IService; /** * <p> * ไธšไธปๆŠ•่ฏ‰ ๆœๅŠก็ฑป * </p> * * @author lian * @since 2021-10-06 */ public interface ZhConsumerComplainService extends IService<ZhConsumerComplain> { }
b4a4cd22b82b9c885b69da98da9b67886227a5e0
ab6a2ff861d77f571d7d059fb55118ec129d031e
/lucense2/src/main/com/adichad/lucense/expression/fieldSource/DoubleValueSource.java
e5e1127c72e6d39d03b42a1a2c21f0a8b63028c3
[]
no_license
adichad/lucense
6d84092d887cd97521d96e446b7200f918f0909a
2355cf00b5dfff002c9acd90d71d5a58851d4c79
refs/heads/master
2021-02-15T06:13:31.396527
2020-03-04T14:23:44
2020-03-04T14:23:44
244,870,609
0
1
null
null
null
null
UTF-8
Java
false
false
281
java
package com.adichad.lucense.expression.fieldSource; import java.io.IOException; import org.apache.lucene.document.Document; public interface DoubleValueSource extends ValueSource { public double getValue(Document doc); public double getValue(int doc) throws IOException; }
1586de996d4028eb29e4abbe7f17ae57623cda1d
f77d04f1e0f64a6a5e720ce24b65b1ccb3c546d2
/zyj-hec-master/hap-core/src/main/java/com/hand/hap/security/CasLoginFailureHandler.java
45ec4db69dd0f3f42fe266962104fbe6c50a6d21
[]
no_license
floodboad/zyj-hssp
3139a4e73ec599730a67360cd04aa34bc9eaf611
dc0ef445935fa48b7a6e86522ec64da0042dc0f3
refs/heads/master
2023-05-27T21:28:01.290266
2020-01-03T06:21:59
2020-01-03T06:29:37
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,114
java
package com.hand.hap.security; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.security.core.AuthenticationException; import org.springframework.security.web.authentication.AuthenticationFailureHandler; /** * cas็™ปๅฝ•ๅคฑ่ดฅhandler. * * @author qiang.zeng * @date 2018/7/19 */ public class CasLoginFailureHandler implements AuthenticationFailureHandler { private static final Logger log = LoggerFactory.getLogger(CasLoginFailureHandler.class); @Override public void onAuthenticationFailure(HttpServletRequest request, HttpServletResponse response, AuthenticationException exception) throws IOException, ServletException { if (log.isDebugEnabled()) { log.debug("cas login failed"); } request.setAttribute("exception", exception); request.getRequestDispatcher("/casLoginFailure").forward(request, response); } }
e54a31ff75002a3e9828edb65af677e8fb75e3f1
a34bbed0a0d716cc2b39cfd1dee69cefc92263a7
/src/main/java/org/kartashov/part3_core_java_api/datetime/temporaladjuster/FirstTuesdayAdjuster.java
4189f8c6588c44d7398f4d68f3fa9755a549df4b
[]
no_license
serhiikartashov/java-se
2e8a0d535ce221b34dcf5abdd80011ad303788f0
2d9c774d8df62eeae6911b4260974067fcfdb169
refs/heads/master
2022-11-27T09:42:31.375292
2022-11-15T13:17:02
2022-11-15T13:17:02
156,975,124
0
0
null
null
null
null
UTF-8
Java
false
false
626
java
package org.kartashov.part3_core_java_api.datetime.temporaladjuster; import java.time.DayOfWeek; import java.time.LocalDate; import java.time.temporal.Temporal; import java.time.temporal.TemporalAdjuster; import java.time.temporal.TemporalAdjusters; public class FirstTuesdayAdjuster implements TemporalAdjuster { @Override public Temporal adjustInto(Temporal input) { LocalDate date = LocalDate.from(input); LocalDate nextMonth = date.plusMonths(1); LocalDate firstTuesdayInNextMonth = nextMonth.with(TemporalAdjusters .firstInMonth(DayOfWeek.TUESDAY)); return input.with(firstTuesdayInNextMonth); } }
8ac37fbbd5a3129bf3fd3d4c15e74e660c332cd3
406c23c75fc8cdbc4224b0645086670e08a995df
/OOSD/src/Exercises/chap5/FormatAnInteger37.java
6bb3da1b237c2cd46400fdced6240992b1be168d
[]
no_license
Prithpal-Sooriya/1st-Year-Object-Oriented-Systems-Development-Java-Exercises
7c7024f62955f016c7cdac2e4845f7a03b8daf67
bcfd7adac1fb18cf421abbb21c64a8fda87f8b5c
refs/heads/master
2021-01-17T10:58:15.177419
2016-08-22T22:42:17
2016-08-22T22:42:17
60,912,106
0
0
null
null
null
null
UTF-8
Java
false
false
1,606
java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package exercises.chap5; /** * * @author Prithpal */ /* write a method called: String formaT(int number, it width) returns a string for the number with one or mroe prefix 0's size of the string is the width for example: format(34, 4) returns 0034 format(35, 5) returns 00034 if number is larger than width return original number format(34, 1) returns 34 */ public class FormatAnInteger37 { public static void main(String[] args) { //call method, and see if it works in all cases System.out.println(format(34, 4)); System.out.println(format(34, 5)); System.out.println(format(34, 1)); } public static String format(int number, int width){ int numberSize; //first we have to check if the width is large enough int temp = (int) Math.log10(number); //only issue with using logs is that 1, 10, 100, ect will be 1 less actual width size (so +1) if(temp % 1 == 0){ numberSize = temp + 1; } else{ numberSize = (int) Math.ceil(temp); } //now check number size to width and return correct value if(numberSize >= width){ return String.valueOf(number); } else{ //find out how many 0's we need to add at front numberSize = width - numberSize; //add 0's String s = ""; for(int i = 0; i < numberSize; i++){ s += "0"; } s += String.valueOf(number); return s; } } }
9c1fe4074c1276cda21a8f2191f65343e56da3e4
69a4f2d51ebeea36c4d8192e25cfb5f3f77bef5e
/methods/Method_28491.java
172503d171eefc56cc0ceaafb37912a597a2c8ef
[]
no_license
P79N6A/icse_20_user_study
5b9c42c6384502fdc9588430899f257761f1f506
8a3676bc96059ea2c4f6d209016f5088a5628f3c
refs/heads/master
2020-06-24T08:25:22.606717
2019-07-25T15:31:16
2019-07-25T15:31:16
null
0
0
null
null
null
null
UTF-8
Java
false
false
353
java
@Override public boolean layoutDependsOn(final CoordinatorLayout parent,final FloatingActionButton child,final View dependency){ if (BottomNavigation.class.isInstance(dependency)) { return true; } else if (Snackbar.SnackbarLayout.class.isInstance(dependency)) { return true; } return super.layoutDependsOn(parent,child,dependency); }
c3a2cdf4195672f4005ad57a87e42aeb8377e987
a7995a853290193abbac8790572017cdeb227fe2
/src/Backtracking/NO320GeneralizedAbbreviation/SolutionI.java
6879df9ed3ec1193e80dc18c5073cfc858b63187
[]
no_license
JJFly-JOJO/LeetCode
c42775973f025f5d8c82ca1f0921f0de117ca6de
0c172a87ca4e0f23e68f388186c77f9e51370660
refs/heads/master
2023-07-09T20:47:22.363062
2021-08-11T16:57:06
2021-08-11T16:57:06
328,843,633
0
1
null
null
null
null
UTF-8
Java
false
false
1,998
java
package Backtracking.NO320GeneralizedAbbreviation; import java.util.ArrayList; import java.util.List; /** * @author zzj * @version 1.0 * @date 2020/11/13 22:02 * @description */ public class SolutionI { private int len; public List<String> generateAbbreviations(String word) { List<String> res = new ArrayList<>(); len = word.length(); //็‰นๅˆค res.add(word); if (len == 0) { return res; } res.add(String.valueOf(len)); StringBuilder sb = new StringBuilder(); //ๆœ€ๅค–ๅฑ‚ไธบ่ฆ็ผฉๅ†™็š„ๆ€ปไธชๆ•ฐ for (int i = 1; i < len; i++) { //ๅฝ“ๅ‰ๅฑ‚็ผฉๅ†™ไธชๆ•ฐ for (int j = 1; j <= i; j++) { int last = len - j; //ไปŽ็ฌฌkไฝ็ผฉๅ†™ for (int k = 0; k <= last; k++) { sb.append(word, 0, k).append(j); dfs(k + j, i - j, sb, word, res); //ๆ˜“้”™็‚น๏ผ๏ผ๏ผ-----------------------------ๅฝ“append(j)็š„jไธบไธคไฝๆ•ฐๆ—ถ ่ฟ™้‡Œไผšๅ‡บ็Žฐdelete้”™่ฏฏ //ไผšๅคšๅ‡บไธ€ไธช1 10n------>1i10 sb.delete(sb.length() - k - String.valueOf(j).length(), sb.length()); } } } return res; } private void dfs(int start, int l, StringBuilder sb, String word, List<String> res) { if (l == 0) { sb.append(word, start, len); res.add(sb.toString()); sb.delete(sb.length() - (len - start), sb.length()); return; } //ๅฝ“ๅ‰ๅฑ‚็ผฉๅ†™ไธชๆ•ฐ for (int i = 1; i <= l; i++) { int last = len - i; //ไปŽ็ฌฌkไฝๅผ€ๅง‹็ผฉๅ†™ for (int k = start + 1; k <= last; k++) { sb.append(word, start, k).append(i); dfs(k + i, l - i, sb, word, res); sb.delete(sb.length() - (k - start + String.valueOf(i).length()), sb.length()); } } } }
091485f51ad404bca8f78e33341ec501743a3916
1324448cd1636b94d2cf85ae49e5cdf310101d7b
/hotel/src/com/briup/www/servlet/ToShowAllFoodPageServlet.java
e115422669cba99e1c1a9cf00979b9c70df1844b
[]
no_license
wangfali/javaee
9ecd7b35ca8bebe2578a952d01a0c035e11b9c96
cf6092c7af4415e5f71a509b761181e96ce92bb5
refs/heads/master
2021-01-22T21:07:56.769875
2017-08-05T08:32:06
2017-08-05T08:32:06
85,397,173
0
0
null
null
null
null
UTF-8
Java
false
false
1,381
java
package com.briup.www.servlet; import java.io.IOException; 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.briup.www.entity.Food; import com.briup.www.entity.PageBean; import com.briup.www.service.impl.ImplFoodService; /** * ๅˆ†้กต * @author wangfali *@version 1.0 *@date 2016ๅนด12ๆœˆ23ๆ—ฅ */ @WebServlet("/ToShowAllFoodPageServlet") public class ToShowAllFoodPageServlet extends HttpServlet { private static final long serialVersionUID = 1L; public ToShowAllFoodPageServlet() { super(); } protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doPost(request, response); } protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { //่Žทๅ–็ฌฌไธ€้กต็š„ๅˆ†้กตๆถˆๆฏๅนถ่ฟ›่กŒๅฐ่ฃ… PageBean<Food> pageBean = new PageBean<Food>(); //่Žทๅ–ๅˆ†้กต็š„ไฟกๆฏ try { new ImplFoodService().getAll(pageBean); //ๅฐ†ๅฏน่ฑกๅฐ่ฃ…่ฟ›่กŒ่ฝฌๅ‘ request.setAttribute("pageBean", pageBean); //่ฝฌๅ‘ request.getRequestDispatcher("/app/detail/caidan.jsp").forward(request, response);; } catch (Exception e) { e.printStackTrace(); } } }
84e892f41b38605d38af9ff532b4ebe5e2f9eeb2
dd9f8951d86919632125339269feeaa8e22c2acf
/MusicManager/MusicManager/src/Server/PlayServer.java
1b479caffc33d48ffa6b254cc0ad9980a5dbccef
[]
no_license
actumn/KonkukUnivAssignment
976101defcc9e76077da1f600b3e3c88a44ce2d7
ee44b854c915b62d80bc9d892867f083b55780a7
refs/heads/master
2021-09-23T14:13:27.354914
2018-09-24T09:08:56
2018-09-24T09:08:56
94,598,984
2
0
null
null
null
null
UTF-8
Java
false
false
3,296
java
package Server; import Model.Main; import java.io.*; import java.net.ServerSocket; import java.net.Socket; import java.util.ArrayList; /** * Created by Lee on 2015-06-19. */ public class PlayServer { /** * Created by Lee on 2015-06-07. */ private static int uniqueId; ArrayList<PlayThread> al; public PlayServer(){ al = new ArrayList<PlayThread>(); } public void start(){ try { ServerSocket serverSocket = new ServerSocket(Main.portPlay); while (Server.keepGoing) { Socket socket = serverSocket.accept(); if(!Server.keepGoing){ break; } PlayThread t = new PlayThread(socket); al.add(t); t.start(); } //I was asked to stop serverSocket.close();; for(int i = 0; i < al.size(); ++i){ PlayThread tc = al.get(i); tc.close(); } } catch (IOException e) { e.printStackTrace(); } } public synchronized void remove(int id){ //scan the array list until we found the Id for(int i = 0; i < al.size(); ++i){ PlayThread ct = al.get(i); //found it if(ct.id == id){ al.remove(i); return; } } } class PlayThread extends Thread { Socket socket; DataInputStream dis; DataOutputStream dos; InputStream is; BufferedReader br; int id; public PlayThread(Socket socket){ this.socket = socket; id = ++uniqueId; try{ is = socket.getInputStream(); br = new BufferedReader(new InputStreamReader(is)); String filename = br.readLine(); dis = new DataInputStream(new FileInputStream(new File(Main.fileRoot+"\\"+filename))); dos = new DataOutputStream(socket.getOutputStream()); } catch(IOException e){ e.printStackTrace(); } } @Override public void run() { try { int b = 0; while((b = dis.read()) != -1){ if(!socket.isConnected()) { System.out.println("์—ฐ๊ฒฐ ๋Š๊น€"); break; } dos.writeByte(b); dos.flush(); } System.out.println("Send ์™„๋ฃŒ"); close(); } catch (IOException e) { System.out.println("์—ฐ๊ฒฐ ๋Š๊น€"); remove(id); close(); //e.printStackTrace(); } remove(id); close(); } private void close(){ try{ if(dis != null) dis.close(); if(dos != null) dos.close(); if(is != null) is.close(); if(socket != null) socket.close(); } catch(Exception e){ } } } }
9290727e9c235e4825e50d1482969c1acd83faf3
a7fe148cd8ca0208643dee441ef7925304e4b12a
/travel/ui/src/main/java/com/travelsystem/controller/SearchController.java
79f8508359f7157cbd31ae602937878b5a923131
[]
no_license
Artamm/Travel-system
b71666dd6c7dcccbfa3254912ce623b2bf325742
4f1b761e9f46820a862d369a95218fbe3223543a
refs/heads/master
2022-12-30T19:06:07.511697
2020-10-03T20:27:31
2020-10-03T20:27:31
299,413,167
0
0
null
null
null
null
UTF-8
Java
false
false
13,375
java
package com.travelsystem.controller; import com.travelsystem.logic.services.DestinationService; import com.travelsystem.logic.services.JourneyService; import com.travelsystem.logic.services.SearchService; import com.travelsystem.logic.services.UserService; import com.travelsystem.model.dao.*; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.core.annotation.AuthenticationPrincipal; import org.springframework.security.core.parameters.P; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.validation.BindingResult; import org.springframework.web.bind.annotation.*; import javax.servlet.http.HttpServletRequest; import java.util.ArrayList; import java.util.List; @Controller public class SearchController { private final SearchService searchService; private final JourneyService journeyService; private final DestinationService destinationService; private final UserService userService; @Autowired public SearchController(SearchService searchService, JourneyService journeyService, DestinationService destinationService, UserService userService) { this.searchService = searchService; this.journeyService = journeyService; this.destinationService = destinationService; this.userService = userService; } @GetMapping("/find") public String SearchPage(Model model, @AuthenticationPrincipal User id) { modelAttributes(model, id); model.addAttribute("parameters", new Journey()); model.addAttribute("parametersD", new Destination()); return "advancedSearch"; } @GetMapping(value = {"/search/{location}", "search/location/{location}"}) public String redirectSearch(@PathVariable("location") String location, Model model, @AuthenticationPrincipal User id) { List<Destination> destinations = new ArrayList<>(); modelAttributes(model, id); checkDestination(destinations, location); Journey parameter = new Journey(); parameter.setTitle(location); model.addAttribute("freeSearch", parameter); model.addAttribute("destinationList", destinations); model.addAttribute("journeyList", searchService.findByDestinationName(location)); model.addAttribute("parameters", new Journey()); model.addAttribute("parametersD", new Destination()); return "advancedSearch"; } @GetMapping(value = "/search", params = {"free"}) public String FreeSearch(@ModelAttribute Journey parameter, Model model, @AuthenticationPrincipal User id, final BindingResult bindingResult, @RequestParam(value = "choice", required = false) boolean choice) { if (parameter.getTitle().isEmpty() | parameter.getTitle() == null) { return "redirect:/find"; } List<Journey> journeys = new ArrayList<>(); List<Destination> destinations = new ArrayList<>(); //------------------Check Journeys--------------------- modelAttributes(model, id); checkJourney(journeys, parameter.getTitle()); checkDestination(destinations, parameter.getTitle()); model.addAttribute("freeSearch", parameter); model.addAttribute("journeyList", journeys); model.addAttribute("destinationList", destinations); model.addAttribute("parameters", new Journey()); model.addAttribute("parametersD", new Destination()); return "advancedSearch"; } private void checkJourney(List<Journey> journeys, String parameter) { if (searchService.findByTitle(parameter) != null) { journeys.addAll(searchService.findByTitle(parameter)); } if (searchService.findByOrganizator(parameter) != null) { List<Journey> tempList = searchService.findByOrganizator(parameter); for (Journey journey : tempList) { if (!journeys.contains(journey)) { journeys.add(journey); } } } } private void checkDestination(List<Destination> destinations, String parameter) { if (searchService.findByName(parameter) != null) { destinations.add(searchService.findByName(parameter)); } if (searchService.findByCountry(parameter) != null) { List<Destination> tempList = searchService.findByCountry(parameter); for (Destination destination : tempList) { if (!destinations.contains(destination)) { destinations.add(destination); } } } } @RequestMapping(method = RequestMethod.GET, value = "find/journey", params = {"AddTag"}) public String addTag(@ModelAttribute("parameters") Journey journey, @AuthenticationPrincipal User id, final BindingResult bindingResult, @RequestParam(value = "choice", required = false) boolean choice, Model model) { journey.getTags().add(new Tag()); modelAttributes(model, id); model.addAttribute("parameters", journey); model.addAttribute("parametersD", new Destination()); return "advancedSearch"; } @RequestMapping(method = RequestMethod.GET, value = "find/journey", params = {"DeleteTag"}) public String DeleteTag(@ModelAttribute("parameters") Journey journey, @AuthenticationPrincipal User id, final BindingResult bindingResult, final HttpServletRequest req, @RequestParam(value = "choice", required = false) boolean choice, Model model) { final Integer rowId = Integer.valueOf(req.getParameter("DeleteTag")); journey.getTags().remove(rowId.intValue()); modelAttributes(model, id); model.addAttribute("parameters", journey); model.addAttribute("parametersD", new Destination()); return "advancedSearch"; } @RequestMapping(method = RequestMethod.GET, value = "/find/location", params = {"AddCategory"}) public String addCategory(@ModelAttribute("parametersD") Destination destination, @AuthenticationPrincipal User id, final BindingResult bindingResult, Model model) { destination.getCategories().add(Category.OTHERS); modelAttributes(model, id); model.addAttribute("parameters", new Journey()); model.addAttribute("parametersD", destination); return "advancedSearch"; } @RequestMapping(method = RequestMethod.GET, value = "/find/location", params = {"DeleteCategory"}) public String DeleteCategory(@ModelAttribute("parametersD") Destination destination, @AuthenticationPrincipal User id, final BindingResult bindingResult, final HttpServletRequest req, Model model) { final Integer rowId = Integer.valueOf(req.getParameter("DeleteCategory")); destination.getCategories().remove(rowId.intValue()); modelAttributes(model, id); model.addAttribute("parameters", new Journey()); model.addAttribute("parametersD", destination); return "advancedSearch"; } @RequestMapping(method = RequestMethod.GET, value = "/find/journey") public String showJourneys(@ModelAttribute("parameters") Journey journey, @AuthenticationPrincipal User id, final BindingResult bindingResult, final HttpServletRequest req, Model model) { modelAttributes(model, id); model.addAttribute("parameters", journey); model.addAttribute("parametersD", new Destination()); model.addAttribute("journeyList", checkJourneys(journey)); model.addAttribute("destinationList", new ArrayList<Destination>()); return "advancedSearch"; } private boolean emptyEntry(Journey journey) { return journey.getTitle().equals("") & journey.getOrganizator().getUsername().equals("") & !journey.isActive() & !journey.isByInvitation() & journey.getStart_position().getName().equals("") & journey.getTags().isEmpty() & journey.getStart_date() == null; } private List<Journey> checkJourneys(Journey journey) { List<Journey> journeyList = new ArrayList<>(); //in case of empty entry if (emptyEntry(journey)){ return journeyService.allJourneys(); } // finds if at least 2 parameters match if (journey.isActive()) { journeyList.addAll(searchService.findActiveJourneysByParameters(journey.getTitle(), journey.getStart_position().getName(), new Integer(journey.getPeopleNumber()), journey.getStart_date(),journey.getStart_date(), journey.isActive())); } else{ journeyList.addAll(searchService.findAllJourneysByParameters(journey.getTitle(), journey.getStart_position().getName(), new Integer(journey.getPeopleNumber()), journey.getStart_date(),journey.getStart_date(), journey.isActive())); } //same with organizator active/not if (!journey.getOrganizator().getUsername().equals("")) { if (searchService.findByOrganizator(journey.getOrganizator().getUsername()) != null) if (journey.isActive()) searchService.findByOrganizator(journey.getOrganizator().getUsername()).stream().filter(Journey::isActive).forEach(journeyList::add); else journeyList.addAll(searchService.findByOrganizator(journey.getOrganizator().getUsername())); } //cause in thymeleaf page it's = open if(journey.isByInvitation()){ List<Journey> filtered = new ArrayList<>(); try { journeyList.stream().filter(x -> !x.isByInvitation()).forEach(filtered::add); return filtered; } catch (NullPointerException ex){ return new ArrayList<Journey>(); } } else{ return journeyList; } } @RequestMapping(method = RequestMethod.GET, value = "/find/location") public String showDestinations(@ModelAttribute("parametersD") Destination destination, @AuthenticationPrincipal User id, final BindingResult bindingResult, final HttpServletRequest req, Model model) { modelAttributes(model, id); model.addAttribute("parameters", new Journey()); model.addAttribute("parametersD", destination); model.addAttribute("destinationList", checkDestinations(destination)); model.addAttribute("journeyList", new ArrayList<Journey>()); return "advancedSearch"; } @GetMapping("/search/tag/{name}") public String findAllByTag(@PathVariable("name") String tagName, Model model, @AuthenticationPrincipal User id) { List<String> tags = new ArrayList<>(); tags.add(tagName); modelAttributes(model, id); model.addAttribute("parameters", new Journey()); model.addAttribute("parametersD", new Destination()); model.addAttribute("destinationList", new ArrayList<Destination>()); List<Journey> journeys = searchService.findByTags(tags); model.addAttribute("journeyList", journeys); return "advancedSearch"; } @GetMapping("/search/category/{name}") public String findAllByCategory(@PathVariable("name") String tagName, Model model, @AuthenticationPrincipal User id) { List<String> categories = new ArrayList<>(); categories.add(tagName); modelAttributes(model, id); model.addAttribute("parameters", new Journey()); List<Journey> journeys = searchService.findJourneyByCategories(categories); model.addAttribute("parametersD", new Destination()); model.addAttribute("destinationList", searchService.findDestinationByStringCategory(tagName)); model.addAttribute("journeyList", journeys); return "advancedSearch"; } private void modelAttributes(Model model, @AuthenticationPrincipal User id) { User user = userService.userById(id.getId()); model.addAttribute("personJourney", journeyService.userActiveJourneys(user)); model.addAttribute("personActiveJourney", journeyService.userActiveJourneys(user)); model.addAttribute("personPastJourney", journeyService.userPastJourneys(user)); model.addAttribute("organizator", journeyService.userOrganizator(user)); model.addAttribute("freeSearch", new Journey()); model.addAttribute("journeyList", journeyService.allJourneys()); model.addAttribute("destinationList", destinationService.destinationListUsers()); model.addAttribute("user", user); model.addAttribute("users", userService.findAll()); model.addAttribute("requestNumber", journeyService.premoderatedRequests(user).size() + journeyService.userInvitedInJourneys(user).size()); model.addAttribute("upcoming", journeyService.upcomingJourneys(user)); } private List<Destination> checkDestinations(Destination destination) { List<Destination> destinations = new ArrayList<>(); if (destination == null) return destinationService.destinationListUsers(); else { destinations.addAll(searchService.findbyAllParametersNotStrict(destination)); } if (destination.getCategories() != null) { destinations.addAll(searchService.findDestinationByCategories(destination.getCategories())); } return destinations; } }
995ea074961325e2c7a3401e110a702706bca837
9101d4e81de917a72008f0db54a856a24e42914c
/Kedu/src/main/java/org/kedu/controller/KeywordController.java
dc715b1c28b3d885add3e9723294e0ac1004543b
[]
no_license
hJPark1225/hjPark1225
b17af26762020c2f2d7acaaa50f67cec0115486c
ce5842a19aad22f35713b24ffc431f069a4b3289
refs/heads/master
2021-01-20T15:41:35.115451
2016-06-12T16:10:03
2016-06-12T16:10:03
60,969,237
0
0
null
null
null
null
UTF-8
Java
false
false
3,994
java
package org.kedu.controller; import java.util.List; import javax.inject.Inject; import org.kedu.domain.Criteria; import org.kedu.domain.GuidewordVO; import org.kedu.domain.KeywordVO; import org.kedu.domain.PageMaker; import org.kedu.service.GuidewordService; import org.kedu.service.KeywordService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.snu.ids.ha.index.Keyword; import org.snu.ids.ha.index.KeywordExtractor; import org.snu.ids.ha.index.KeywordList; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.servlet.mvc.support.RedirectAttributes; @Controller @RequestMapping("/keyword/*") public class KeywordController { private static final Logger logger = LoggerFactory.getLogger(KeywordController.class); @Inject private KeywordService service; @Inject private GuidewordService gService; @RequestMapping(value="/register", method = RequestMethod.GET) public void registerGET(KeywordVO keyword, Model model)throws Exception{ logger.info("register get........"); } @RequestMapping(value = "/register", method = RequestMethod.POST) public String registPOST(KeywordVO keyword, RedirectAttributes rttr)throws Exception{ logger.info("regist post..........."); logger.info(keyword.toString()); service.regist(keyword); rttr.addFlashAttribute("msg", "SUCCESS"); return "redirect:/keyword/listPage"; } @RequestMapping(value = "/extract", method = RequestMethod.GET) public String extracGuideword(Model model)throws Exception{ List<KeywordVO> keywords= service.listAll(); for(KeywordVO keyword : keywords){ if(!keyword.isExtracting()){ String strToExtrtKwrd = keyword.getWord(); KeywordExtractor ke = new KeywordExtractor(); KeywordList kl = ke.extractKeyword(strToExtrtKwrd, true); for( int i = 0; i < kl.size(); i++ ) { Keyword kwrd = kl.get(i); //System.out.println(kwrd.getString() + "\t" + kwrd.getCnt()); GuidewordVO gvo = new GuidewordVO(); gvo.setGuideword(kwrd.getString()); gvo.setKeyword_id(keyword.getKno()); gService.regist(gvo); } keyword.setExtracting(true); service.updateExtracting(keyword); } } return "redirect:/keyword/listPage"; } @RequestMapping(value = "/listAll", method = RequestMethod.GET) public void listAll(Model model)throws Exception { logger.info("show all list.........."); model.addAttribute("list", service.listAll()); } @RequestMapping(value = "/read", method = RequestMethod.GET) public void read(@RequestParam("kno") int kno, Model model) throws Exception { model.addAttribute(service.read(kno)); } @RequestMapping(value ="/remove", method = RequestMethod.POST) public String remove(@RequestParam("kno") int kno, RedirectAttributes rttr) throws Exception { service.remove(kno); rttr.addFlashAttribute("msg", "SUCCESS"); return "redirect:/keyword/listAll"; } @RequestMapping(value = "/listCri", method = RequestMethod.GET) public void keywordListPage(Criteria cri, Model model) throws Exception { logger.info("show list Page with Criteria.........."); //System.out.println(service.listAll()); model.addAttribute("list", service.listCriteria(cri)); } @RequestMapping(value = "/listPage", method = RequestMethod.GET) public void listPage(Criteria cri, Model model) throws Exception { logger.info(cri.toString()); model.addAttribute("list", service.listCriteria(cri)); PageMaker pageMaker = new PageMaker(); pageMaker.setCri(cri); pageMaker.setTotalCount(service.listCountCriteria(cri)); model.addAttribute("pageMaker", pageMaker); } }
7c908a073f64feff7a24acec160afde2585d89f3
1b15fe5acedc014df2e0ae108a4c929dccf0911d
/src/main/java/com/turk/framework/SystemError.java
f78ffce7faf4c673462a90f79171fd960776ce52
[]
no_license
feinzaghi/Capricorn
9fb9593828e4447a9735079bad6b440014f322b3
e1fca2926b1842577941b070a826a2448739a2e8
refs/heads/master
2020-06-14T11:43:29.627233
2017-01-24T03:19:28
2017-01-24T03:19:28
75,029,435
0
0
null
null
null
null
UTF-8
Java
false
false
868
java
package com.turk.framework; public class SystemError { private String code; private String des; private String cause; private String action; public SystemError() { } public SystemError(String code, String des, String cause, String action) { this.code = code; this.des = des; this.cause = cause; this.action = action; } public String getCode() { return this.code; } public void setCode(String code) { this.code = code; } public String getDes() { return this.des; } public void setDes(String des) { this.des = des; } public String getCause() { return this.cause; } public void setCause(String cause) { this.cause = cause; } public String getAction() { return this.action; } public void setAction(String action) { this.action = action; } }
76109bb12b1b556dd711411545f17dfd203f74f0
668d8ba1c73b5d9c0ee9140af1545771d70a3081
/lib_txt/src/main/java/com/u2tzjtne/libtxt/util/BookUtil.java
5230f0e96aec7633f926605d47c374d633f0c49d
[]
no_license
U2tzJTNE/BookReader
e063239addba420ea6b2e9f15cc751667a4ec942
d6a2f335a01546f0a832edc4862bb52e50f3ad08
refs/heads/master
2023-05-02T07:17:51.704557
2021-05-18T06:02:00
2021-05-18T06:02:00
258,159,929
3
2
null
null
null
null
UTF-8
Java
false
false
9,396
java
package com.u2tzjtne.libtxt.util; import android.content.ContentValues; import android.os.Environment; import android.text.TextUtils; import com.u2tzjtne.libtxt.bean.Cache; import com.u2tzjtne.libtxt.db.BookCatalogue; import com.u2tzjtne.libtxt.db.BookList; import org.litepal.crud.DataSupport; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.lang.ref.WeakReference; import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.List; /** * @author Administrator * @date 2016/8/11 0011 */ public class BookUtil { private static final String CACHED_PATH = Environment.getExternalStorageDirectory() + "/libtxt/"; /** * ๅญ˜ๅ‚จ็š„ๅญ—็ฌฆๆ•ฐ */ private static final int cachedSize = 30000; private final ArrayList<Cache> myArray = new ArrayList<>(); /** * ็›ฎๅฝ• */ private List<BookCatalogue> directoryList = new ArrayList<>(); private String bookName; private String bookPath; private long bookLen; private long position; private BookList bookList; public BookUtil() { File file = new File(CACHED_PATH); if (!file.exists()) { file.mkdir(); } } public synchronized void openBook(BookList bookList) throws IOException { this.bookList = bookList; //ๅฆ‚ๆžœๅฝ“ๅ‰็ผ“ๅญ˜ไธๆ˜ฏ่ฆๆ‰“ๅผ€็š„ไนฆๆœฌๅฐฑ็ผ“ๅญ˜ไนฆๆœฌๅŒๆ—ถๅˆ ้™ค็ผ“ๅญ˜ if (bookPath == null || !bookPath.equals(bookList.getBookpath())) { cleanCacheFile(); this.bookPath = bookList.getBookpath(); bookName = FileUtils.getFileName(bookPath); cacheBook(); } } private void cleanCacheFile() { File file = new File(CACHED_PATH); if (!file.exists()) { file.mkdir(); } else { File[] files = file.listFiles(); if (files != null) { for (File value : files) { value.delete(); } } } } public int next(boolean back) { position += 1; if (position > bookLen) { position = bookLen; return -1; } char result = current(); if (back) { position -= 1; } return result; } public char[] nextLine() { if (position >= bookLen) { return null; } StringBuilder line = new StringBuilder(); while (position < bookLen) { int word = next(false); if (word == -1) { break; } char wordChar = (char) word; if ("\r".equals(wordChar + "") && "\n".equals(((char) next(true)) + "")) { next(false); break; } line.append(wordChar); } return line.toString().toCharArray(); } public char[] preLine() { if (position <= 0) { return null; } StringBuilder line = new StringBuilder(); while (position >= 0) { int word = pre(false); if (word == -1) { break; } char wordChar = (char) word; if ("\n".equals(wordChar + "") && "\r".equals(((char) pre(true)) + "")) { pre(false); break; } line.insert(0, wordChar); } return line.toString().toCharArray(); } public char current() { int cachePos = 0; int pos = 0; int len = 0; for (int i = 0; i < myArray.size(); i++) { long size = myArray.get(i).getSize(); if (size + len - 1 >= position) { cachePos = i; pos = (int) (position - len); break; } len += size; } char[] charArray = block(cachePos); return charArray[pos]; } public int pre(boolean back) { position -= 1; if (position < 0) { position = 0; return -1; } char result = current(); if (back) { position += 1; } return result; } public long getPosition() { return position; } public void setPosition(long position) { this.position = position; } /** * ็ผ“ๅญ˜ไนฆๆœฌ * @throws IOException */ private void cacheBook() throws IOException { String mStrCharsetName; if (TextUtils.isEmpty(bookList.getCharset())) { mStrCharsetName = FileUtils.getCharset(bookPath); if (mStrCharsetName == null) { mStrCharsetName = "utf-8"; } ContentValues values = new ContentValues(); values.put("charset", mStrCharsetName); DataSupport.update(BookList.class, values, bookList.getId()); } else { mStrCharsetName = bookList.getCharset(); } File file = new File(bookPath); InputStreamReader reader = new InputStreamReader(new FileInputStream(file), mStrCharsetName); int index = 0; bookLen = 0; directoryList.clear(); myArray.clear(); while (true) { char[] buf = new char[cachedSize]; int result = reader.read(buf); if (result == -1) { reader.close(); break; } String bufStr = new String(buf); bufStr = bufStr.replaceAll("\r\n+\\s*", "\r\n\u3000\u3000"); bufStr = bufStr.replaceAll("\u0000", ""); buf = bufStr.toCharArray(); bookLen += buf.length; Cache cache = new Cache(); cache.setSize(buf.length); cache.setData(new WeakReference<char[]>(buf)); myArray.add(cache); try { File cacheBook = new File(fileName(index)); if (!cacheBook.exists()) { cacheBook.createNewFile(); } final OutputStreamWriter writer = new OutputStreamWriter(new FileOutputStream(fileName(index)), StandardCharsets.UTF_16LE); writer.write(buf); writer.close(); } catch (IOException e) { throw new RuntimeException("Error during writing " + fileName(index)); } index++; } new Thread() { @Override public void run() { getChapter(); } }.start(); } /** * ่Žทๅ–็ซ ่Š‚ */ private synchronized void getChapter() { try { long size = 0; for (int i = 0; i < myArray.size(); i++) { char[] buf = block(i); String bufStr = new String(buf); String[] paragraphs = bufStr.split("\r\n"); for (String str : paragraphs) { if (str.length() <= 30 && (str.matches(".*็ฌฌ.{1,8}็ซ .*") || str.matches(".*็ฌฌ.{1,8}่Š‚.*"))) { BookCatalogue bookCatalogue = new BookCatalogue(); bookCatalogue.setBookCatalogueStartPos(size); bookCatalogue.setBookCatalogue(str); bookCatalogue.setBookpath(bookPath); directoryList.add(bookCatalogue); } if (str.contains("\u3000\u3000")) { size += str.length() + 2; } else if (str.contains("\u3000")) { size += str.length() + 1; } else { size += str.length(); } } } } catch (Exception e) { e.printStackTrace(); } } public List<BookCatalogue> getDirectoryList() { return directoryList; } public long getBookLen() { return bookLen; } private String fileName(int index) { return CACHED_PATH + bookName + index; } /** * ่Žทๅ–ไนฆๆœฌ็ผ“ๅญ˜ * @param index * @return */ private char[] block(int index) { if (myArray.size() == 0) { return new char[1]; } char[] block = myArray.get(index).getData().get(); if (block == null) { try { File file = new File(fileName(index)); int size = (int) file.length(); if (size < 0) { throw new RuntimeException("Error during reading " + fileName(index)); } block = new char[size / 2]; InputStreamReader reader = new InputStreamReader(new FileInputStream(file), StandardCharsets.UTF_16LE); if (reader.read(block) != block.length) { throw new RuntimeException("Error during reading " + fileName(index)); } reader.close(); } catch (IOException e) { throw new RuntimeException("Error during reading " + fileName(index)); } Cache cache = myArray.get(index); cache.setData(new WeakReference<>(block)); } return block; } }
f0742d08219e0bd25a64dcaceb6a37f172704e25
30a1bf3994b9482afaf337b996b69e0b998de08c
/src/Logica/Formula_medica.java
aafc86306d70d7ebf9710a5015ebbf6f0fc6508d
[]
no_license
Equipoabc/ProyectoClinica
45ef2f9d102f4ccae3f42e7b15a68aa85cf34f51
c27f7fbbc5b2a561b9782503776319e27b5314ff
refs/heads/master
2021-05-08T01:26:32.292943
2017-12-20T15:14:16
2017-12-20T15:14:16
107,920,942
0
0
null
null
null
null
UTF-8
Java
false
false
1,033
java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package Logica; /** * * @author Ivรกn */ public class Formula_medica { private String codigo_formula; private String id_empleado; public Formula_medica(){ codigo_formula = ""; id_empleado = ""; } /** * @return the codigo_formula */ public String getCodigo_formula() { return codigo_formula; } /** * @param codigo_formula the codigo_formula to set */ public void setCodigo_formula(String codigo_formula) { this.codigo_formula = codigo_formula; } /** * @return the id_empleado */ public String getId_empleado() { return id_empleado; } /** * @param id_empleado the id_empleado to set */ public void setId_empleado(String id_empleado) { this.id_empleado = id_empleado; } }
c29d5f7c587e1257f8b34e74bc051c50955ab119
3652bd85754bf549e5bbd197942f8b72fd5faa4a
/src/com/senati/eti/Caso5.java
9860e1182b366abb30c917234cd23c81f1452e4c
[]
no_license
sebas1899/Casos_Guia_3
1c89d2f0ef9b3fd7f1a3f9b1cd85670382775a03
d3aab613e2b0d34e52d11b318ac7137662ebe1c9
refs/heads/main
2023-03-29T14:54:03.473824
2021-03-29T04:17:41
2021-03-29T04:17:41
352,512,377
0
0
null
null
null
null
UTF-8
Java
false
false
488
java
package com.senati.eti; import java.util.Scanner; public class Caso5 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int i = 1, num_menor = 0, n =0; while (i <=5) { System.out.print("Ingresar nรบmero: " + i + ":"); n = sc.nextInt(); if (n < num_menor) num_menor = n ; i++; } System.out.println("El nรบmero menor es: " + num_menor); } }
619f1e5f11c8f558e962dee3e6aea16e4a00b118
086322844763ac442378896ab472b9adb62bae88
/src/com/mx/springdemo/controller/CustomerController.java
fe080f69a033f8de4cd9421a9f4397a024d4eb5c
[]
no_license
pangmx/web-customer-tracker-aop
addfbb693bf8960ebb5cf07dbda2043794b5c021
e5452fb32fe8aaceed44b5f38113a0cea9cfd423
refs/heads/master
2020-06-23T08:55:23.768294
2019-07-24T06:51:56
2019-07-24T07:05:24
198,577,176
0
0
null
null
null
null
UTF-8
Java
false
false
2,256
java
package com.mx.springdemo.controller; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import com.mx.springdemo.entity.Customer; import com.mx.springdemo.service.CustomerService; @Controller @RequestMapping("/customer") public class CustomerController { //get Spring to inject the customer service @Autowired private CustomerService customerService; @GetMapping("/list") public String listCustomers(Model model) { List<Customer> customers = customerService.getCustomers(); model.addAttribute("customers", customers); return "list-customers"; } @GetMapping("/showFormForAddCustomer") public String showFormForAddCustomer(Model model) { Customer customer = new Customer(); model.addAttribute("customer", customer); return "customer-form"; } @PostMapping("/saveCustomer") public String saveCustomer(@ModelAttribute("customer") Customer customer) { customerService.saveCustomer(customer); return "redirect:/customer/list"; } @GetMapping("/showFormForUpdate") public String showFormForUpdate(@RequestParam("customerId") int customerId, Model model) { //get customer by id Customer customer = customerService.getCustomer(customerId); //set customer into model model.addAttribute("customer", customer); return "customer-form"; } @GetMapping("/deleteCustomer") public String deleteCustomer(@RequestParam("customerId") int customerId, Model model) { customerService.deleteCustomer(customerId); return "redirect:/customer/list"; } @GetMapping("/searchCustomer") public String searchCustomer(@RequestParam("theSearchName") String searchName, Model model){ List<Customer> customers = customerService.searchCustomers(searchName); model.addAttribute("customers", customers); return "list-customers"; } }
81c3c6aa55770907475ac91cc0aeadc796afc133
dd74e43ba393782a6646e3cdfbf96e0bce7915e7
/src/Assignment10/SList.java
b1095a3057f4e8487665f1c33e16ecaf7ba7638d
[]
no_license
ramya-ailla/JavaAssignments
7902f461e6a9ae713eb5755d1848ba29a861269a
46f587f9c7a8fa66d212614dd338eb133b1096c3
refs/heads/master
2023-06-28T13:52:39.856877
2021-07-27T06:34:05
2021-07-27T06:34:05
389,631,132
0
0
null
null
null
null
UTF-8
Java
false
false
479
java
package Assignment10; public class SList <T>{ public Node<T> head; public int size; public SList(){ head=null; size=0; } public SListIterator<T> iterator(){ return new SListIterator<>(this); } public String toString(){ String list =""; Node<T> currNode = head; while (currNode!=null){ list=list+currNode.data+" "; currNode=currNode.next; } return list; } }
b38ea7733d8734d6a2eb3e4a7c2f1d4285fafdf7
78ae94751cc6700f31e63b9ec24657e74ae5c2f7
/lib_base/src/main/java/com/yumeng/libbase/activity/matisse/matisse/adapter/AlbumsAdapter.java
32b0e7c4c353b041e36536fb0e52a332348ee8df
[]
no_license
xihehe/ProjectFrame
a30b3720a695d0cff7cc1d16b64a03e9188d2c7b
c782d3678db4e0e03787433a3ba1662a5350ddb2
refs/heads/master
2023-04-07T14:47:48.901461
2021-04-09T07:00:30
2021-04-09T07:00:30
256,432,860
1
0
null
null
null
null
UTF-8
Java
false
false
2,782
java
/* * Copyright 2017 Zhihu 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.yumeng.libbase.activity.matisse.matisse.adapter; import android.content.Context; import android.content.res.TypedArray; import android.database.Cursor; import android.graphics.drawable.Drawable; import android.net.Uri; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.CursorAdapter; import android.widget.ImageView; import android.widget.TextView; import com.yumeng.libbase.R; import com.yumeng.libbase.activity.matisse.matisse.Album; import com.yumeng.libbase.activity.matisse.matisse.SelectionSpec; import java.io.File; public class AlbumsAdapter extends CursorAdapter { private final Drawable mPlaceholder; public AlbumsAdapter(Context context, Cursor c, boolean autoRequery) { super(context, c, autoRequery); TypedArray ta = context.getTheme().obtainStyledAttributes( new int[]{R.attr.album_thumbnail_placeholder}); mPlaceholder = ta.getDrawable(0); ta.recycle(); } public AlbumsAdapter(Context context, Cursor c, int flags) { super(context, c, flags); TypedArray ta = context.getTheme().obtainStyledAttributes( new int[]{R.attr.album_thumbnail_placeholder}); mPlaceholder = ta.getDrawable(0); ta.recycle(); } @Override public View newView(Context context, Cursor cursor, ViewGroup parent) { return LayoutInflater.from(context).inflate(R.layout.album_list_item, parent, false); } @Override public void bindView(View view, Context context, Cursor cursor) { Album album = Album.valueOf(cursor); ((TextView) view.findViewById(R.id.album_name)).setText(album.getDisplayName(context)); ((TextView) view.findViewById(R.id.album_media_count)).setText(String.valueOf(album.getCount())); // do not need to load animated Gif SelectionSpec.getInstance().imageEngine.loadThumbnail(context, context.getResources().getDimensionPixelSize(R .dimen.media_grid_size), mPlaceholder, (ImageView) view.findViewById(R.id.album_cover), Uri.fromFile(new File(album.getCoverPath()))); } }
75856f3a4c92d2a5f3d0afcb5279d6dc8c98bfe0
c499151789396429d7cc455f7e37895e2bcef9b5
/oop/src/main/java/epam/com/oop/Choco.java
e1a668b99b1394b1c23ca64b194ad6743806af1c
[]
no_license
gmonisha535/gmonisha-oppsweets
88880d9ecbee5a3b7ff1138e0630653b687ccbc9
76c846cafe8ba19917a50d0b5a9c04e88a6ca558
refs/heads/master
2021-02-10T09:12:55.692423
2020-03-02T12:59:53
2020-03-02T12:59:53
244,368,721
0
0
null
null
null
null
UTF-8
Java
false
false
154
java
package epam.com.oop; class Choco extends Sweets{ Choco(String name,String flavour,int weight,int cost){ super(name,flavour,weight,cost); } }
dab6663dc6a49c48b6d03fc9098398ea923941ec
c94299bc24e16da60ca5560e18f5b4be55dc0241
/src/test/java/hello/core/scan/filter/ComponentFilterAppConfigTest.java
e3fa6aed727b75e334f0441010fe49f9c87ac2e2
[]
no_license
seolys/java-spring-core-beginner
a1e9e807bb4f3d35d8db39f3217e394b5a94b5de
bb8f945a4dea068cbad6dccbef5a51e8905269dd
refs/heads/master
2022-12-28T23:37:42.121427
2020-10-11T06:00:53
2020-10-11T06:00:53
299,332,824
0
0
null
null
null
null
UTF-8
Java
false
false
1,273
java
package hello.core.scan.filter; import static org.assertj.core.api.Assertions.assertThat; import static org.springframework.context.annotation.ComponentScan.Filter; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.NoSuchBeanDefinitionException; import org.springframework.context.ApplicationContext; import org.springframework.context.annotation.AnnotationConfigApplicationContext; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.FilterType; public class ComponentFilterAppConfigTest { @Test void filterScan() { ApplicationContext ac = new AnnotationConfigApplicationContext(ComponentFilterAppConfig.class); BeanA beanA = ac.getBean("beanA", BeanA.class); assertThat(beanA).isNotNull(); Assertions.assertThrows(NoSuchBeanDefinitionException.class, () -> ac.getBean("beanB", BeanB.class)); } @Configuration @ComponentScan( includeFilters = @Filter(type = FilterType.ANNOTATION, classes = MyIncludeComponent.class), excludeFilters = @Filter(type = FilterType.ANNOTATION, classes = MyExcludeComponent.class) ) static class ComponentFilterAppConfig { } }
36f5c6bb0ceadd7de685adf0ba2dfe1f27e6dcac
60d08e1409d6f6fb2914d300fa94210f2ee7ad3e
/PetLifeHouse/src/com/boqii/petlifehouse/fragments/MyOrderFragment.java
28999e96ca8d20f9c3a3ea32726a97a7acc27eb0
[]
no_license
boqiidujun/petlifehouse
59acfb452dc34cda2981bd9d6bef4d5ef6d1c15b
38e6dcb2df4d8ef5b15df903fb88853f5b233cc5
refs/heads/master
2020-12-24T14:55:52.993010
2014-06-10T01:54:30
2014-06-10T01:54:30
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,939
java
package com.boqii.petlifehouse.fragments; import java.util.ArrayList; import java.util.Calendar; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import android.content.Intent; import android.os.AsyncTask; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.AbsListView; import android.widget.AbsListView.OnScrollListener; import android.widget.AdapterView; import android.widget.AdapterView.OnItemClickListener; import android.widget.ProgressBar; import android.widget.TextView; import android.widget.Toast; import com.boqii.petlifehouse.R; import com.boqii.petlifehouse.activities.MyTicketDetailActivity; import com.boqii.petlifehouse.activities.PayOrderActivity; import com.boqii.petlifehouse.activities.TicketDetailActivity; import com.boqii.petlifehouse.adapter.OrderAdapter; import com.boqii.petlifehouse.baseactivities.BaseApplication; import com.boqii.petlifehouse.baseactivities.BaseFragment; import com.boqii.petlifehouse.baseservice.NetworkService; import com.boqii.petlifehouse.entities.MyTicket; import com.boqii.petlifehouse.entities.Order; import com.boqii.petlifehouse.utilities.Constants; import com.boqii.petlifehouse.utilities.HttpManager; import com.boqii.petlifehouse.utilities.Util; import com.boqii.petlifehouse.widgets.XListView; import com.boqii.petlifehouse.widgets.XListView.IXListViewListener; public class MyOrderFragment extends BaseFragment implements IXListViewListener { private XListView listview; private ProgressBar progress; private View view; private OrderAdapter mAdapter; private ArrayList<Order> list; private int index; private HttpManager mManager; private BaseApplication app; private TextView no_data; @Override public void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); app = (BaseApplication) getActivity().getApplication(); if(getArguments().containsKey("INDEX")) index = getArguments().getInt("INDEX"); } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { view = inflater.inflate(R.layout.fragment_list, container, false); initView(); return view; } boolean isRefresh; private void initView() { mManager = new HttpManager(getActivity()); list = new ArrayList<Order>(); no_data = (TextView)view.findViewById(R.id.nodata); no_data.setVisibility(View.GONE); listview = (XListView)view.findViewById(R.id.list); listview.setPullLoadEnable(false); listview.setXListViewListener(this); progress = (ProgressBar)view.findViewById(R.id.progresss); mAdapter = new OrderAdapter(getActivity(), list, index); listview.setAdapter(mAdapter); listview.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) { if (list != null && list.size() > arg2 - 1) { Order o = list.get(arg2 - 1); switch (o.OrderStatus) { case 2: startActivity(new Intent(getActivity(), PayOrderActivity.class).putExtra("ORDER", o)); break; case 3: MyTicket t = new MyTicket(); t.MyTicketId = o.OrderTicketId; startActivity(new Intent(getActivity(), MyTicketDetailActivity.class).putExtra("MYTICKET", t)); break; case 4: case 5: startActivity(new Intent(getActivity(), TicketDetailActivity.class).putExtra("TICKETID", o.TicketId)); break; default: break; } } } }); listview.setOnScrollListener(new OnScrollListener() { @Override public void onScrollStateChanged(AbsListView view, int scrollState) { // TODO Auto-generated method stub } @Override public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) { if(firstVisibleItem + visibleItemCount >= totalItemCount - 1 && totalItemCount > 0){ if(!isRefresh){ initData(); } } } }); initData(); } boolean isLoadDone; private void initData() { if(isLoadDone) return; isRefresh = true; mManager.Excute(new AsyncTask<Void, Void, String>() { @Override protected String doInBackground(Void... params) { return NetworkService.getInstance(getActivity()).GetMyOrderList(app.user.UserID, index, list.size(), 10); } @Override protected void onPostExecute(String result) { isRefresh = false; if(!Util.isEmpty(result)){ try { JSONObject obj = new JSONObject(result); if (obj.optInt("ResponseStatus", -1) == Constants.RESPONSE_OK) { JSONArray array = obj.optJSONArray("ResponseData"); if(array != null && array.length() > 0){ for (int i = 0; i < array.length(); i++) { JSONObject data = array.optJSONObject(i); Order o = Order.JsonToSelf(data); list.add(o); } mAdapter.notifyDataSetChanged(); }else{ isLoadDone = true; } if(list != null && list.size() == 0){ no_data.setVisibility(View.VISIBLE); }else no_data.setVisibility(View.GONE); progress.setVisibility(View.GONE); }else{ Toast.makeText(getActivity(), obj.optString("ResponseMsg"), Toast.LENGTH_LONG).show(); } } catch (JSONException e) { e.printStackTrace(); } } RefreshDone(); } }); } @Override public void onRefresh() { list.clear(); isLoadDone = false; initData(); } @Override public void onLoadMore() { // TODO Auto-generated method stub } private void RefreshDone(){ long time=System.currentTimeMillis(); Calendar mCalendar=Calendar.getInstance(); mCalendar.setTimeInMillis(time); int mHour=mCalendar.get(Calendar.HOUR); int mMinuts=mCalendar.get(Calendar.MINUTE); listview.stopRefresh(); listview.setRefreshTime(mHour+":"+mMinuts); } }
411ce1c577390cc4f42834b49e5892c36dc8f791
351758bb163e7a88cdbad2bd3e85bf979f740d74
/oauth2/src/main/java/com/okta/spring/boot/oauth/OktaOAuth2Configurer.java
bab86dcce6be1e7275b3930717e5bec36a47287b
[ "Apache-2.0" ]
permissive
entrix/okta-spring-boot
aea7c67584169a92dbb369d67260c2842f4d343a
d216144f4159fb2e3c5a07d29a9f7c53c73b2d71
refs/heads/master
2021-12-10T23:13:33.301071
2019-11-05T06:28:01
2019-11-05T06:28:01
184,426,405
0
0
null
2021-08-01T05:30:40
2019-05-01T14:13:08
Java
UTF-8
Java
false
false
5,356
java
/* * Copyright 2018-Present Okta, 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.okta.spring.boot.oauth; import com.okta.spring.boot.oauth.config.OktaOAuth2Properties; import com.okta.spring.boot.oauth.http.UserAgentRequestInterceptor; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.boot.autoconfigure.security.oauth2.client.OAuth2ClientProperties; import org.springframework.boot.autoconfigure.security.oauth2.resource.OAuth2ResourceServerProperties; import org.springframework.context.ApplicationContext; import org.springframework.http.converter.FormHttpMessageConverter; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer; import org.springframework.security.oauth2.client.endpoint.DefaultAuthorizationCodeTokenResponseClient; import org.springframework.security.oauth2.client.endpoint.OAuth2AccessTokenResponseClient; import org.springframework.security.oauth2.client.endpoint.OAuth2AuthorizationCodeGrantRequest; import org.springframework.security.oauth2.client.http.OAuth2ErrorResponseErrorHandler; import org.springframework.security.oauth2.core.http.converter.OAuth2AccessTokenResponseHttpMessageConverter; import org.springframework.web.client.RestTemplate; import java.util.Arrays; import static org.springframework.util.StringUtils.isEmpty; final class OktaOAuth2Configurer extends AbstractHttpConfigurer<OktaOAuth2Configurer, HttpSecurity> { private static final Logger log = LoggerFactory.getLogger(OktaOAuth2Configurer.class); @Override public void init(HttpSecurity http) throws Exception { ApplicationContext context = http.getSharedObject(ApplicationContext.class); // make sure OktaOAuth2Properties are available if (!context.getBeansOfType(OktaOAuth2Properties.class).isEmpty()) { OktaOAuth2Properties oktaOAuth2Properties = context.getBean(OktaOAuth2Properties.class); // if OAuth2ClientProperties bean is not available do NOT configure if (!context.getBeansOfType(OAuth2ClientProperties.class).isEmpty() && !isEmpty(oktaOAuth2Properties.getIssuer()) && !isEmpty(oktaOAuth2Properties.getClientId()) && !isEmpty(oktaOAuth2Properties.getClientSecret())) { // configure Okta user services configureLogin(http, oktaOAuth2Properties); } else { log.debug("OAuth/OIDC Login not configured due to missing issuer, client-id, or client-secret property"); } if (!context.getBeansOfType(OAuth2ResourceServerProperties.class).isEmpty() && !isEmpty(oktaOAuth2Properties.getIssuer())) { // configure Okta specific auth converter (extracts authorities from `groupsClaim` configureResourceServer(http, oktaOAuth2Properties); } else { log.debug("OAuth resource server not configured due to missing issuer or client-id property"); } } } private void configureLogin(HttpSecurity http, OktaOAuth2Properties oktaOAuth2Properties) throws Exception { http.oauth2Login() .userInfoEndpoint() .userService(new OktaOAuth2UserService(oktaOAuth2Properties.getGroupsClaim())) .oidcUserService(new OktaOidcUserService(oktaOAuth2Properties.getGroupsClaim())) .and() .tokenEndpoint() .accessTokenResponseClient(accessTokenResponseClient()); if (oktaOAuth2Properties.getRedirectUri() != null) { http.oauth2Login().redirectionEndpoint().baseUri(oktaOAuth2Properties.getRedirectUri()); } } private void configureResourceServer(HttpSecurity http, OktaOAuth2Properties oktaOAuth2Properties) throws Exception { http.oauth2ResourceServer() .jwt().jwtAuthenticationConverter(new OktaJwtAuthenticationConverter(oktaOAuth2Properties.getGroupsClaim())); } private OAuth2AccessTokenResponseClient<OAuth2AuthorizationCodeGrantRequest> accessTokenResponseClient() { RestTemplate restTemplate = new RestTemplate(Arrays.asList(new FormHttpMessageConverter(), new OAuth2AccessTokenResponseHttpMessageConverter())); restTemplate.setErrorHandler(new OAuth2ErrorResponseErrorHandler()); restTemplate.getInterceptors().add(new UserAgentRequestInterceptor()); DefaultAuthorizationCodeTokenResponseClient accessTokenResponseClient = new DefaultAuthorizationCodeTokenResponseClient(); accessTokenResponseClient.setRestOperations(restTemplate); return accessTokenResponseClient; } }
875b0618edb4fb4e811dd6b5ac98191d9a78efdf
22f0266689001ceb0fc94af3c5868600a1c6c2c9
/app/src/main/java/com/example/ankita/braintrainer/MainActivity.java
fb135850cdab6949f3fb90e663746c15883e231e
[]
no_license
AnkitaGole123/BrainTrainer
ac7f2a78dcaf6ca7c2ae769f7421f1338c9cccce
33d22ca9e36caabc5b50aff38cabf3de47ddd910
refs/heads/master
2020-04-06T13:22:50.050490
2018-11-14T05:44:54
2018-11-14T05:44:54
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,277
java
package com.example.ankita.braintrainer; import android.annotation.SuppressLint; import android.os.CountDownTimer; import android.support.constraint.ConstraintLayout; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.ImageView; import android.widget.TextView; import android.widget.Toast; import java.util.ArrayList; import java.util.Random; public class MainActivity extends AppCompatActivity { Button goButton; ArrayList<Integer> answers = new ArrayList<Integer>(); int locationOfCorrectAnswer; TextView resultTextView; int score = 0; int numberOfQuestion; TextView scoreTextView; Button button0, button1, button2, button3; TextView sumTextView; TextView timerTextView; Button playAgainButton; ConstraintLayout gameLayout; public void playAgain(View view) { score = 0; numberOfQuestion = 0; timerTextView.setText("60s"); scoreTextView.setText(Integer.toString(score)+"/"+Integer.toString(numberOfQuestion)); newQuestion(); playAgainButton.setVisibility(View.VISIBLE); resultTextView.setText(""); new CountDownTimer(30100,1000) { @Override public void onTick(long l) { timerTextView.setText(String.valueOf(l / 1000) + "s"); } @Override public void onFinish() { Toast.makeText(MainActivity.this, "Done", Toast.LENGTH_SHORT).show(); playAgainButton.setVisibility(View.VISIBLE); } }.start(); } @SuppressLint("SetTextI18n") public void chooseAnswer(View view) { if (Integer.toString(locationOfCorrectAnswer).equals(view.getTag().toString())) { resultTextView.setText("Correct!"); score++; } else { resultTextView.setText("Wrong :("); } numberOfQuestion++; scoreTextView.setText(Integer.toString(score)+"/"+Integer.toString(numberOfQuestion)); newQuestion(); } public void Start(View view) { goButton.setVisibility(View.INVISIBLE); gameLayout.setVisibility(View.VISIBLE); playAgain(findViewById(R.id.timerTextView)); } @SuppressLint("SetTextI18n") public void newQuestion() { Random rand = new Random(); int a = rand.nextInt(21); int b = rand.nextInt(21); sumTextView.setText(Integer.toString(a) + " + " + Integer.toString(b)); locationOfCorrectAnswer = rand.nextInt(4); answers.clear(); for (int i=0; i<4; i++) { if (i == locationOfCorrectAnswer) { answers.add(a+b); } else { int wrongAnswer = rand.nextInt(41); while (wrongAnswer == a+b) { wrongAnswer = rand.nextInt(41); } answers.add(wrongAnswer); } } button0.setText(Integer.toString(answers.get(0))); button1.setText(Integer.toString(answers.get(1))); button2.setText(Integer.toString(answers.get(2))); button3.setText(Integer.toString(answers.get(3))); } @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); // call all the id using findViewById sumTextView = findViewById(R.id.sumTextView); button0 = findViewById(R.id.button0); button1 = findViewById(R.id.button1); button2 = findViewById(R.id.button2); button3 = findViewById(R.id.button3); resultTextView = findViewById(R.id.resultTextView); scoreTextView = findViewById(R.id.scoreTextView); timerTextView = findViewById(R.id.timerTextView); playAgainButton = findViewById(R.id.playAgainButton); gameLayout = findViewById(R.id.gameLayout); goButton = findViewById(R.id.goButton); //set visibility on goButton Button should be visible goButton.setVisibility(View.VISIBLE); //set visibility on layout when goButton visible layout is invisible gameLayout.setVisibility(View.INVISIBLE); } }
1a6e03235fa1681e43b41755018243fe0642573d
097f1d22e07d503b090ee56d4619f04839b17728
/java/Spring_fundamentals/Counter/src/main/java/com/codingdojo/counter/ServletInitializer.java
24da4ac9e50827a90ca869cea5e6582c09b94a44
[]
no_license
pramilagm/Java-coding_dojo
62662de5743f47e025f6633c857bc8f76dcac1a0
c416841249c203a5a595ef3939e3815f160adc7b
refs/heads/master
2020-09-17T05:11:13.948670
2019-12-20T05:22:58
2019-12-20T05:22:58
224,000,356
2
0
null
null
null
null
UTF-8
Java
false
false
413
java
package com.codingdojo.counter; import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; public class ServletInitializer extends SpringBootServletInitializer { @Override protected SpringApplicationBuilder configure(SpringApplicationBuilder application) { return application.sources(CounterApplication.class); } }
6b2fccd409c268839ae1c76f7f47a31b5df89f51
926d9fb0d947b1ecee3094c1560c6bf5096908b6
/src/main/java/anubahv/insuracne/insuranceagency/services/UserDetailsServiceImpl.java
e9778bc22bdd3a570ed45b8911ce6337ebeee917
[]
no_license
kavyanshgangwar/InsuranceAgency
e3e9a58c832fddd8a001ec59e76a9d9235037073
47837ad72126169913dd2513c710c46df92feacb
refs/heads/master
2023-01-06T19:39:02.002282
2020-11-15T19:30:51
2020-11-15T19:30:51
298,500,160
2
1
null
null
null
null
UTF-8
Java
false
false
1,532
java
package anubahv.insuracne.insuranceagency.services; import anubahv.insuracne.insuranceagency.models.User; import anubahv.insuracne.insuranceagency.repository.UserRepository; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.core.GrantedAuthority; import org.springframework.security.core.authority.SimpleGrantedAuthority; import org.springframework.security.core.userdetails.UserDetails; import org.springframework.security.core.userdetails.UserDetailsService; import org.springframework.security.core.userdetails.UsernameNotFoundException; import org.springframework.stereotype.Service; import java.util.ArrayList; import java.util.List; @Service public class UserDetailsServiceImpl implements UserDetailsService { UserRepository userRepository; @Autowired public UserDetailsServiceImpl(UserRepository userRepository) { this.userRepository = userRepository; } @Override public UserDetails loadUserByUsername(String email) throws UsernameNotFoundException { User user = userRepository.findByEmail(email); List<GrantedAuthority> grantList = new ArrayList<>(); String[] roles = user.getRole().split(" "); for(int i=0;i<roles.length;i++){ GrantedAuthority authority = new SimpleGrantedAuthority(roles[i]); grantList.add(authority); } return new org.springframework.security.core.userdetails.User( user.getEmail(),user.getPassword(),grantList ); } }
4b4bdf0cbb204870be6701c2e4341b85c7cdfe24
059cc347e6766b8ffbb5f2fd8e7d77cefd78272a
/guns-gateway/src/main/java/com/stylefeng/guns/rest/modular/film/vo/FilmRequestVo.java
05ac72aeed9b3125d139d177786cb509be61f0fa
[ "Apache-2.0" ]
permissive
linxuanwei/guns-film
265904727f4c23c5e7323f231b193f60d829ba39
8e0c48c64836c2036ce6a595f60fb5ecc46bb76f
refs/heads/master
2022-10-26T04:37:47.762384
2020-02-16T14:03:38
2020-02-16T14:03:38
240,855,926
0
0
NOASSERTION
2022-10-12T20:36:55
2020-02-16T08:20:18
Java
UTF-8
Java
false
false
395
java
package com.stylefeng.guns.rest.modular.film.vo; import lombok.Data; /** * @author Seven.Lin * @date 2020/2/9 10:54 */ @Data public class FilmRequestVo { private Integer showType = 1; private Integer sortId = 1; private Integer sourceId = 99; private Integer catId = 99; private Integer yearId = 99; private Integer nowPage = 1; private Integer pagesize = 18; }
d9b623cd1288f79fe96837014433844bc25f7f67
218b57be0714e1e8a77ed94745e55e146150cb60
/src/main/java/cn/itcast/tree/OrderedBinaryTree.java
47b2733ae669476959f6e71ff8c509ba4078ca04
[]
no_license
Shang-Delin/algorithm_java
6bf771ce183d89e4a50466918e6b0c1832861d66
ee532732a30e468cd0588334b3d344ad29ae1c18
refs/heads/master
2022-01-13T08:20:03.498535
2019-07-18T13:12:29
2019-07-18T13:12:29
null
0
0
null
null
null
null
UTF-8
Java
false
false
7,457
java
package cn.itcast.tree; import org.junit.Test; /** * @author:fudingcheng * @date:2019-02-01 * @description: ๆœ‰ๅบไบŒๅ‰ๆ ‘ */ public class OrderedBinaryTree { /** * ๆ น่Š‚็‚น */ private Node root; /** * ๆ’ๅ…ฅ่Š‚็‚น * * @param value */ public void insert(long value, String sValue) { //ๅฐ่ฃ…่Š‚็‚น Node newNode = new Node(value, sValue); //ๅผ•็”จๅฝ“ๅ‰่Š‚็‚น Node current = root; //ๅบ”็”จ็ˆถ่Š‚็‚น Node parent; //ๅฆ‚ๆžœrootไธบnull,็ฌฌไธ€ๆฌกๆ’ๅ…ฅ็š„ๆ—ถๅ€™ if (root == null) { root = newNode; return; } else { //้ž็ฌฌไธ€ๆฌกๆ’ๅ…ฅ //้ๅކๆ ‘ while (true) { //็ˆถ่Š‚็‚นๆŒ‡ๅ‘ๅฝ“ๅ‰่Š‚็‚น parent = current; if (current.data > value) { //ๅฆ‚ๆžœๅฝ“ๅ‰ๆŒ‡ๅ‘็š„่Š‚็‚นๆ•ฐๆฎๆฏ”ๆ’ๅ…ฅ็š„ๆ•ฐๆฎๅคง,ๅˆ™่ตฐๅ‘ๅทฆๅญๆ ‘ current = current.leftChild; if (current == null) { parent.leftChild = newNode; return; } } else { //ๅฆ‚ๆžœๅฝ“ๅ‰ๆŒ‡ๅ‘็š„่Š‚็‚น็š„ๆ•ฐๆฎๆฏ”ๆ’ๅ…ฅๆ•ฐๆฎๅฐ,ๅˆ™่ตฐๅ‘ๅณๅญๆ ‘ current = current.rightChild; if (current == null) { parent.rightChild = newNode; return; } } } } } /** * ๆŸฅๆ‰พ่Š‚็‚น * * @param value */ public Node find(long value) { //ๅบ”็”จๅฝ“ๅ‰่Š‚็‚น,ไปŽๆ น่Š‚็‚นๅผ€ๅง‹ Node current = root; //ๅพช็Žฏ,ๅช่ฆๆŸฅๆ‰พๅ€ผไธ็ญ‰ไบŽๅฝ“ๅ‰่Š‚็‚น็š„ๆ•ฐๆฎ้กนๅฐฑไธ€่‡ดๆŸฅๆ‰พ while (current.data != value) { //่ฟ›่กŒๆฏ”่พƒ,ๅฆ‚ๆžœๅฝ“ๅ‰่Š‚็‚น็š„ๅ€ผๅคงไบŽๆŸฅๆ‰พๅ€ผ,ๅˆ™่ตฐๅ‘ๅทฆๅญๆ ‘ if (current.data > value) { current = current.leftChild; } else { //ๅฆ‚ๆžœๅฝ“ๅ‰่Š‚็‚น็š„ๅ€ผๅฐไบŽๆŸฅๆ‰พๅ€ผ,ๅˆ™่ตฐๅ‘ๅณๅญๆ ‘ current = current.rightChild; } //ๅฆ‚ๆžœๆŸฅไธๅˆฐ,่ฟ”ๅ›žnull if (current == null) { return null; } } return current; } /** * ๅ‰ๅบ้ๅކ: * (1)่ฎฟ้—ฎๆ น่Š‚็‚น * (2)ๅ…ˆๅบ้ๅކๅทฆๅญๆ ‘ * (3)ๅ…ˆๅบ้ๅކๅณๅญๆ ‘ * * @param localNode */ public void frontOrder(Node localNode) { if (localNode != null) { //่ฎฟ้—ฎๆ น่Š‚็‚น System.out.println(localNode.data + "," + localNode.sData); //ๅ‰ๅบ้ๅކๅทฆๅญๆ ‘ frontOrder(localNode.leftChild); //ๅ‰ๅบ้ๅކๅณๅญๆ ‘ frontOrder(localNode.rightChild); } } /** * ไธญๅบ้ๅކ * (1)ไธญๅบ้ๅކๅทฆๅญๆ ‘ * (2)่ฎฟ้—ฎๆ น่Š‚็‚น * (3)ไธญๅบ้ๅކๅณๅญๆ ‘ * * @param localNode */ public void inOrder(Node localNode) { if (localNode != null) { //ไธญๅบ้ๅކๅทฆๅญๆ ‘ inOrder(localNode.leftChild); //่ฎฟ้—ฎๆ น่Š‚็‚น System.out.println(localNode.data + "," + localNode.sData); //ไธญๅบ้ๅކๅณๅญๆ ‘ inOrder(localNode.rightChild); } } /** * ๅŽ็ปญ้ๅކ * (1)ๅŽๅบ้ๅކๅทฆๅญๆ ‘ * (2)ๅŽๅบ้ๅކๅณๅญๆ ‘ * (3)่ฎฟ้—ฎๆ น่Š‚็‚น * * @param localNode */ public void afterOrder(Node localNode) { if (localNode != null) { //ๅŽ็ปญ้ๅކๅทฆๅญๆ ‘ afterOrder(localNode.leftChild); //ๅŽ็ปญ้ๅކๅณๅญๆ ‘ afterOrder(localNode.rightChild); //่ฎฟ้—ฎๆ น่Š‚็‚น System.out.println(localNode.data + "," + localNode.sData); } } /** * ๅˆ ้™ค่Š‚็‚น * * @param value */ public boolean delete(long value) { //ๅผ•็”จๅฝ“ๅ‰่Š‚็‚น,ไปŽๆ น่Š‚็‚นๅผ€ๅง‹ Node current = root; //ๅบ”็”จๅฝ“ๅ‰่Š‚็‚น็š„็ˆถ่Š‚็‚น Node parent = root; //ๅฝ“ๅ‰ๆ˜ฏๅฆไธบๅทฆ่Š‚็‚นๆ ‡่ฎฐ boolean isLeftChild = true; //ๆŸฅๆ‰พ่Š‚็‚น while (current.data != value) { parent = current; if (current.data > value) { current = current.leftChild; } else { current = current.rightChild; isLeftChild = false; } if (current == null) { return false; } } //ๅฆ‚ๆžœๆ˜ฏๅถๅญ่Š‚็‚น if (current.leftChild == null && current.rightChild == null) { if (current == root) { root = null; } else if (isLeftChild) { parent.leftChild = null; } else { parent.rightChild = null; } } else if (current.rightChild == null) { //ๅ•ๆ”ฏ่Š‚็‚น,ๅทฆ่Š‚็‚นไธบ็ฉบ if (current == root) { root = root.leftChild; } else if (isLeftChild) { parent.leftChild = current.leftChild; } else { parent.rightChild = current.rightChild; } } else if (current.leftChild == null) { //ๅ•ๆ”ฏ่Š‚็‚น,ๅทฆ่Š‚็‚นไธบ็ฉบ if (current == root) { root = root.rightChild; } else if (isLeftChild) { parent.leftChild = current.leftChild; } else { parent.rightChild = current.rightChild; } } else { //ๅฆ‚ๆžœๆ˜ฏๅŒๆ”ฏ่Š‚็‚น //1.ๆŸฅๆ‰พๅŽ็ปง่Š‚็‚น //2.ๅˆ ้™คๅŽ็ปง็ป“็‚น //3.่ฎฉๅŽ็ปง็ป“็‚น็š„็ˆถ่Š‚็‚น็งฐไธบๅ…ถๅณๅญๆ ‘็š„็ˆถ่Š‚็‚น //4.่ฎฉๅŽ็ปง่Š‚็‚นๆ›ฟไปฃๅพ…ๅˆ ้™ค็š„่Š‚็‚น Node successor = getSuccessor(current); if(current == root) { root = successor; } else if(isLeftChild) { parent.leftChild = successor; } else{ parent.rightChild = successor; } successor.leftChild = current.leftChild; } return true; } /** * ๆŸฅๆ‰พๅŽ็ปง่Š‚็‚น * * @param delNode * @return */ private Node getSuccessor(Node delNode) { //ๅผ•็”จๅŽ็ปง่Š‚็‚น Node successor = delNode; //ๅบ”็”จๅŽ็ปง่Š‚็‚น็ˆถ่Š‚็‚น Node successorParent = delNode; //ๅผ•็”จๅฝ“ๅ‰่Š‚็‚น Node current = delNode.rightChild; //่ตฐๅ‘ๅทฆๅญๆ ‘,ๆŸฅๆ‰พๅŽ็ปง่Š‚็‚น while (current!=null){ successorParent = successor; successor = current; current = current.leftChild; } //ๅˆคๆ–ญๆ˜ฏๅฆๆ‰พๅˆฐ if(successor!=delNode.rightChild){ successorParent.leftChild = successor.rightChild; successor.rightChild = delNode.rightChild; } return successor; } @Test public void testTree() { OrderedBinaryTree tree = new OrderedBinaryTree(); tree.insert(8, "a"); tree.insert(10, "b"); tree.insert(6, "c"); tree.insert(5, "d"); tree.insert(9, "e"); tree.insert(4, "f"); tree.frontOrder(tree.root); System.out.println("-------------------------"); tree.inOrder(tree.root); System.out.println("-------------------------"); tree.afterOrder(tree.root); } }
583ccb22722355ecbcb7eb1540b18d62003d7e10
7d696d858a83c7effb241ffcd9015fc703de1d00
/ListFrag.java
a4fb1a60b88914ab29c6e5eb44a63712915634a4
[]
no_license
cormacld/project
d22f3fcbd4e698ceeec36debccae0d644374d325
e02e555f8d233aed1a08705193c08e4afff4bee9
refs/heads/master
2020-05-23T23:12:03.384764
2019-05-16T08:57:21
2019-05-16T08:57:21
186,989,515
0
0
null
null
null
null
UTF-8
Java
false
false
1,426
java
package com.example.sql; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; /** * A simple {@link Fragment} subclass. */ public class ListFrag extends Fragment { RecyclerView recyclerView; RecyclerView.Adapter myAdapter; RecyclerView.LayoutManager layoutManager; View view; public ListFrag() { // Required empty public constructor } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { view= inflater.inflate(R.layout.fragment_list, container, false); return view; } @Override public void onActivityCreated(@Nullable Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); recyclerView= view.findViewById(R.id.rvList); recyclerView.setHasFixedSize(true); layoutManager= new LinearLayoutManager(this.getActivity()); recyclerView.setLayoutManager(layoutManager); myAdapter= new PlayerAdapter(this.getActivity(),ApplicationClass.players); recyclerView.setAdapter(myAdapter); } }
5b7f75f8a18264c632e94d8394a8316785b20c65
c81963cab526c4dc24bee21840f2388caf7ff4cf
/io/opencensus/tags/InternalUtils.java
2179f429dfdd26d71a2a29000c7364db96f7db1b
[]
no_license
ryank231231/jp.co.penet.gekidanprince
ba2f38e732828a4454402aa7ef93a501f8b7541e
d76db01eeadf228d31006e4e71700739edbf214f
refs/heads/main
2023-02-19T01:38:54.459230
2021-01-16T10:04:22
2021-01-16T10:04:22
329,815,191
0
0
null
null
null
null
UTF-8
Java
false
false
370
java
package io.opencensus.tags; import java.util.Iterator; public final class InternalUtils { public static Iterator<Tag> getTags(TagContext paramTagContext) { return paramTagContext.getIterator(); } } /* Location: Y:\classes2-dex2jar.jar!\io\opencensus\tags\InternalUtils.class * Java compiler version: 6 (50.0) * JD-Core Version: 1.1.3 */
c88b0eb23efd95a0707c54be155f85d4963005d8
393f85db1e08ed3bee5b0f738cf2ad11c870f2f9
/src/main/org/codehaus/groovy/antlr/treewalker/Visitor.java
94bc68bda520d5c2e8ba4d0d6a7dedb507c58aed
[ "Apache-2.0" ]
permissive
chanwit/groovy
4a0c02244f928094ff8e18d04a4d5d0ccea7f05e
9cbd75c4ffd69f08333db079e0535446140403b4
refs/heads/master
2022-02-15T14:06:50.938079
2009-02-21T15:15:18
2009-02-21T15:15:18
112,256
6
2
NOASSERTION
2022-02-01T00:58:06
2009-01-22T01:10:49
Java
UTF-8
Java
false
false
13,227
java
/* * Copyright 2005 Jeremy Rayner * * 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.codehaus.groovy.antlr.treewalker; import org.codehaus.groovy.antlr.GroovySourceAST; /** * An interface for visiting a GroovySourceAST node. * * @author <a href="mailto:[email protected]">Jeremy Rayner</a> * @version $Revision$ */ public interface Visitor { int OPENING_VISIT = 1; int SECOND_VISIT = 2; // only used on rare occasions, e.g. the '(' in this snippet... @Foo ( a=1, b=2, c=3) int SUBSEQUENT_VISIT = 3; int CLOSING_VISIT = 4; void setUp(); void visitAbstract(GroovySourceAST t, int visit); void visitAnnotation(GroovySourceAST t, int visit); void visitAnnotations(GroovySourceAST t, int visit); void visitAnnotationArrayInit(GroovySourceAST t, int visit); void visitAnnotationDef(GroovySourceAST t, int visit); void visitAnnotationFieldDef(GroovySourceAST t, int visit); void visitAnnotationMemberValuePair(GroovySourceAST t, int visit); void visitArrayDeclarator(GroovySourceAST t, int visit); void visitAssign(GroovySourceAST t, int visit); void visitAt(GroovySourceAST t, int visit); void visitBand(GroovySourceAST t, int visit); void visitBandAssign(GroovySourceAST t, int visit); void visitBigSuffix(GroovySourceAST t, int visit); void visitBlock(GroovySourceAST t, int visit); void visitBnot(GroovySourceAST t, int visit); void visitBor(GroovySourceAST t, int visit); void visitBorAssign(GroovySourceAST t, int visit); void visitBsr(GroovySourceAST t, int visit); void visitBsrAssign(GroovySourceAST t, int visit); void visitBxor(GroovySourceAST t, int visit); void visitBxorAssign(GroovySourceAST t, int visit); void visitCaseGroup(GroovySourceAST t, int visit); void visitClassDef(GroovySourceAST t, int visit); void visitClosedBlock(GroovySourceAST t, int visit); void visitClosureList(GroovySourceAST t, int visit); void visitClosureOp(GroovySourceAST t, int visit); void visitColon(GroovySourceAST t, int visit); void visitComma(GroovySourceAST t, int visit); void visitCompareTo(GroovySourceAST t, int visit); void visitCtorCall(GroovySourceAST t, int visit); void visitCtorIdent(GroovySourceAST t, int visit); void visitDec(GroovySourceAST t, int visit); void visitDigit(GroovySourceAST t, int visit); void visitDiv(GroovySourceAST t, int visit); void visitDivAssign(GroovySourceAST t, int visit); void visitDollar(GroovySourceAST t, int visit); void visitDot(GroovySourceAST t, int visit); void visitDynamicMember(GroovySourceAST t, int visit); void visitElist(GroovySourceAST t, int visit); void visitEmptyStat(GroovySourceAST t, int visit); void visitEnumConstantDef(GroovySourceAST t, int visit); void visitEnumDef(GroovySourceAST t, int visit); void visitEof(GroovySourceAST t, int visit); void visitEqual(GroovySourceAST t, int visit); void visitEsc(GroovySourceAST t, int visit); void visitExponent(GroovySourceAST t, int visit); void visitExpr(GroovySourceAST t, int visit); void visitExtendsClause(GroovySourceAST t, int visit); void visitFinal(GroovySourceAST t, int visit); void visitFloatSuffix(GroovySourceAST t, int visit); void visitForCondition(GroovySourceAST t, int visit); void visitForEachClause(GroovySourceAST t, int visit); void visitForInit(GroovySourceAST t, int visit); void visitForInIterable(GroovySourceAST t, int visit); void visitForIterator(GroovySourceAST t, int visit); void visitGe(GroovySourceAST t, int visit); void visitGt(GroovySourceAST t, int visit); void visitHexDigit(GroovySourceAST t, int visit); void visitIdent(GroovySourceAST t, int visit); void visitImplementsClause(GroovySourceAST t, int visit); void visitImplicitParameters(GroovySourceAST t, int visit); void visitImport(GroovySourceAST t, int visit); void visitInc(GroovySourceAST t, int visit); void visitIndexOp(GroovySourceAST t, int visit); void visitInstanceInit(GroovySourceAST t, int visit); void visitInterfaceDef(GroovySourceAST t, int visit); void visitLabeledArg(GroovySourceAST t, int visit); void visitLabeledStat(GroovySourceAST t, int visit); void visitLand(GroovySourceAST t, int visit); void visitLbrack(GroovySourceAST t, int visit); void visitLcurly(GroovySourceAST t, int visit); void visitLe(GroovySourceAST t, int visit); void visitLetter(GroovySourceAST t, int visit); void visitListConstructor(GroovySourceAST t, int visit); void visitLiteralAs(GroovySourceAST t, int visit); void visitLiteralAssert(GroovySourceAST t, int visit); void visitLiteralBoolean(GroovySourceAST t, int visit); void visitLiteralBreak(GroovySourceAST t, int visit); void visitLiteralByte(GroovySourceAST t, int visit); void visitLiteralCase(GroovySourceAST t, int visit); void visitLiteralCatch(GroovySourceAST t, int visit); void visitLiteralChar(GroovySourceAST t, int visit); void visitLiteralClass(GroovySourceAST t, int visit); void visitLiteralContinue(GroovySourceAST t, int visit); void visitLiteralDef(GroovySourceAST t, int visit); void visitLiteralDefault(GroovySourceAST t, int visit); void visitLiteralDouble(GroovySourceAST t, int visit); void visitLiteralElse(GroovySourceAST t, int visit); void visitLiteralEnum(GroovySourceAST t, int visit); void visitLiteralExtends(GroovySourceAST t, int visit); void visitLiteralFalse(GroovySourceAST t, int visit); void visitLiteralFinally(GroovySourceAST t, int visit); void visitLiteralFloat(GroovySourceAST t, int visit); void visitLiteralFor(GroovySourceAST t, int visit); void visitLiteralIf(GroovySourceAST t, int visit); void visitLiteralImplements(GroovySourceAST t, int visit); void visitLiteralImport(GroovySourceAST t, int visit); void visitLiteralIn(GroovySourceAST t, int visit); void visitLiteralInstanceof(GroovySourceAST t, int visit); void visitLiteralInt(GroovySourceAST t, int visit); void visitLiteralInterface(GroovySourceAST t, int visit); void visitLiteralLong(GroovySourceAST t, int visit); void visitLiteralNative(GroovySourceAST t, int visit); void visitLiteralNew(GroovySourceAST t, int visit); void visitLiteralNull(GroovySourceAST t, int visit); void visitLiteralPackage(GroovySourceAST t, int visit); void visitLiteralPrivate(GroovySourceAST t, int visit); void visitLiteralProtected(GroovySourceAST t, int visit); void visitLiteralPublic(GroovySourceAST t, int visit); void visitLiteralReturn(GroovySourceAST t, int visit); void visitLiteralShort(GroovySourceAST t, int visit); void visitLiteralStatic(GroovySourceAST t, int visit); void visitLiteralSuper(GroovySourceAST t, int visit); void visitLiteralSwitch(GroovySourceAST t, int visit); void visitLiteralSynchronized(GroovySourceAST t, int visit); void visitLiteralThis(GroovySourceAST t, int visit); void visitLiteralThreadsafe(GroovySourceAST t, int visit); void visitLiteralThrow(GroovySourceAST t, int visit); void visitLiteralThrows(GroovySourceAST t, int visit); void visitLiteralTransient(GroovySourceAST t, int visit); void visitLiteralTrue(GroovySourceAST t, int visit); void visitLiteralTry(GroovySourceAST t, int visit); void visitLiteralVoid(GroovySourceAST t, int visit); void visitLiteralVolatile(GroovySourceAST t, int visit); void visitLiteralWhile(GroovySourceAST t, int visit); void visitLnot(GroovySourceAST t, int visit); void visitLor(GroovySourceAST t, int visit); void visitLparen(GroovySourceAST t, int visit); void visitLt(GroovySourceAST t, int visit); void visitMapConstructor(GroovySourceAST t, int visit); void visitMemberPointer(GroovySourceAST t, int visit); void visitMethodCall(GroovySourceAST t, int visit); void visitMethodDef(GroovySourceAST t, int visit); void visitMinus(GroovySourceAST t, int visit); void visitMinusAssign(GroovySourceAST t, int visit); void visitMlComment(GroovySourceAST t, int visit); void visitMod(GroovySourceAST t, int visit); void visitModifiers(GroovySourceAST t, int visit); void visitModAssign(GroovySourceAST t, int visit); void visitNls(GroovySourceAST t, int visit); void visitNotEqual(GroovySourceAST t, int visit); void visitNullTreeLookahead(GroovySourceAST t, int visit); void visitNumBigDecimal(GroovySourceAST t, int visit); void visitNumBigInt(GroovySourceAST t, int visit); void visitNumDouble(GroovySourceAST t, int visit); void visitNumFloat(GroovySourceAST t, int visit); void visitNumInt(GroovySourceAST t, int visit); void visitNumLong(GroovySourceAST t, int visit); void visitObjblock(GroovySourceAST t, int visit); void visitOneNl(GroovySourceAST t, int visit); void visitOptionalDot(GroovySourceAST t, int visit); void visitPackageDef(GroovySourceAST t, int visit); void visitParameters(GroovySourceAST t, int visit); void visitParameterDef(GroovySourceAST t, int visit); void visitPlus(GroovySourceAST t, int visit); void visitPlusAssign(GroovySourceAST t, int visit); void visitPostDec(GroovySourceAST t, int visit); void visitPostInc(GroovySourceAST t, int visit); void visitQuestion(GroovySourceAST t, int visit); void visitRangeExclusive(GroovySourceAST t, int visit); void visitRangeInclusive(GroovySourceAST t, int visit); void visitRbrack(GroovySourceAST t, int visit); void visitRcurly(GroovySourceAST t, int visit); void visitRegexpCtorEnd(GroovySourceAST t, int visit); void visitRegexpLiteral(GroovySourceAST t, int visit); void visitRegexpSymbol(GroovySourceAST t, int visit); void visitRegexFind(GroovySourceAST t, int visit); void visitRegexMatch(GroovySourceAST t, int visit); void visitRparen(GroovySourceAST t, int visit); void visitSelectSlot(GroovySourceAST t, int visit); void visitSemi(GroovySourceAST t, int visit); void visitShComment(GroovySourceAST t, int visit); void visitSl(GroovySourceAST t, int visit); void visitSlist(GroovySourceAST t, int visit); void visitSlAssign(GroovySourceAST t, int visit); void visitSlComment(GroovySourceAST t, int visit); void visitSpreadArg(GroovySourceAST t, int visit); void visitSpreadDot(GroovySourceAST t, int visit); void visitSpreadMapArg(GroovySourceAST t, int visit); void visitSr(GroovySourceAST t, int visit); void visitSrAssign(GroovySourceAST t, int visit); void visitStar(GroovySourceAST t, int visit); void visitStarAssign(GroovySourceAST t, int visit); void visitStarStar(GroovySourceAST t, int visit); void visitStarStarAssign(GroovySourceAST t, int visit); void visitStaticImport(GroovySourceAST t, int visit); void visitStaticInit(GroovySourceAST t, int visit); void visitStrictfp(GroovySourceAST t, int visit); void visitStringCh(GroovySourceAST t, int visit); void visitStringConstructor(GroovySourceAST t, int visit); void visitStringCtorEnd(GroovySourceAST t, int visit); void visitStringCtorMiddle(GroovySourceAST t, int visit); void visitStringCtorStart(GroovySourceAST t, int visit); void visitStringLiteral(GroovySourceAST t, int visit); void visitStringNl(GroovySourceAST t, int visit); void visitSuperCtorCall(GroovySourceAST t, int visit); void visitTripleDot(GroovySourceAST t, int visit); void visitType(GroovySourceAST t, int visit); void visitTypecast(GroovySourceAST t, int visit); void visitTypeArgument(GroovySourceAST t, int visit); void visitTypeArguments(GroovySourceAST t, int visit); void visitTypeLowerBounds(GroovySourceAST t, int visit); void visitTypeParameter(GroovySourceAST t, int visit); void visitTypeParameters(GroovySourceAST t, int visit); void visitTypeUpperBounds(GroovySourceAST t, int visit); void visitUnaryMinus(GroovySourceAST t, int visit); void visitUnaryPlus(GroovySourceAST t, int visit); void visitUnusedConst(GroovySourceAST t, int visit); void visitUnusedDo(GroovySourceAST t, int visit); void visitUnusedGoto(GroovySourceAST t, int visit); void visitVariableDef(GroovySourceAST t, int visit); void visitVariableParameterDef(GroovySourceAST t, int visit); void visitVocab(GroovySourceAST t, int visit); void visitWildcardType(GroovySourceAST t, int visit); void visitWs(GroovySourceAST t, int visit); void visitDefault(GroovySourceAST t,int visit); void tearDown(); void push(GroovySourceAST t); GroovySourceAST pop(); }
[ "paulk@a5544e8c-8a19-0410-ba12-f9af4593a198" ]
paulk@a5544e8c-8a19-0410-ba12-f9af4593a198
4502f30318b5ccdee13912a46ac2e8707beff2dd
0dea2f104f1b0b01149ba5e25ca8e125d1fe8404
/codeforces/779/C.java
b54836a49235a5ecd0ad0f1cda551ad73c8f493e
[]
no_license
sudhanshu-mallick/All-My-Submissions
d14f82c38515d6140338daf5b77bdf2675c8aab6
68a97691fad0368a4ba4c39576e45ba8462ad3ae
refs/heads/master
2023-06-22T16:01:20.872407
2021-07-03T13:07:00
2021-07-26T08:25:14
377,220,272
1
0
null
null
null
null
UTF-8
Java
false
false
1,597
java
import java.util.*; import java.io.*; public class Dishonest_Sellers { static class FastReader { BufferedReader br; StringTokenizer st; public FastReader() { br = new BufferedReader(new InputStreamReader(System.in)); } String next() { while (st == null || !st.hasMoreElements()) { try { st = new StringTokenizer(br.readLine()); } catch (IOException e) { e.printStackTrace(); } } return st.nextToken(); } int nextInt() { return Integer.parseInt(next()); } long nextLong() { return Long.parseLong(next()); } double nextDouble() { return Double.parseDouble(next()); } String nextLine() { String str = ""; try { str = br.readLine(); } catch (IOException e) { e.printStackTrace(); } return str; } } public static void main(String[] args) { // TODO Auto-generated method stub FastReader t = new FastReader(); PrintWriter o = new PrintWriter(System.out); int n = t.nextInt(); int k = t.nextInt(); Node node[] = new Node[n]; int[] a = new int[n], b = new int[n]; int sum = 0; for (int i = 0; i < n; ++i) a[i] = t.nextInt(); for (int i = 0; i < n; ++i) b[i] = t.nextInt(); for (int i = 0; i < n; ++i) node[i] = new Node(a[i], b[i]); Arrays.sort(node, (Node x, Node y) -> x.dif - y.dif); for (int i = 0; i < n; ++i) { if (i < k) sum += node[i].a; else sum += Math.min(node[i].a, node[i].b); } o.println(sum); o.flush(); o.close(); } } class Node { int dif, a, b; Node(int a, int b) { this.a = a; this.b = b; dif = a - b; } }
27d3dd738ccdb2402472457e3c013457213280a3
acb0aa45c70ff7b94b3035e6fdc7e908bf2657c9
/app/src/main/java/com/fsck/k9/ui/dialog/ApgDeprecationWarningDialog.java
e398ec39c3b22e855c39eb741ba4c94f8ca9b6a7
[]
no_license
zxf1864/ATPIF
ee238d3faa255ae271ec71387c65859b3dcebb6d
41a5c5299f6dd033a8871a2669e64f1059a86e3c
refs/heads/master
2020-12-30T11:40:41.239541
2017-12-18T07:25:11
2017-12-18T07:25:17
91,522,863
1
0
null
null
null
null
UTF-8
Java
false
false
1,389
java
package com.fsck.k9.ui.dialog; import android.annotation.SuppressLint; import android.app.AlertDialog; import android.app.Dialog; import android.content.Context; import android.content.DialogInterface; import android.text.method.LinkMovementMethod; import android.view.LayoutInflater; import android.view.View; import android.widget.TextView; import com.afei.atpif.R; public class ApgDeprecationWarningDialog extends AlertDialog { public ApgDeprecationWarningDialog(Context context) { super(context); LayoutInflater inflater = LayoutInflater.from(context); @SuppressLint("InflateParams") View contentView = inflater.inflate(R.layout.dialog_apg_deprecated, null); TextView textViewLearnMore = (TextView) contentView.findViewById(R.id.apg_learn_more); makeTextViewLinksClickable(textViewLearnMore); setIcon(R.drawable.ic_apg_small); setTitle(R.string.apg_deprecated_title); setView(contentView); setButton(Dialog.BUTTON_NEUTRAL, context.getString(R.string.apg_deprecated_ok), new OnClickListener() { @Override public void onClick(DialogInterface dialogInterface, int i) { cancel(); } }); } private void makeTextViewLinksClickable(TextView textView) { textView.setMovementMethod(LinkMovementMethod.getInstance()); } }
8ba2b95afca5c9bce57827d337a37d83478c032d
acdf1ecc1a3423c950807ae81ae4b2b5de8d7486
/Voronoi-Diagram-Visualizer/src/hse/visualizer/VDFrame.java
a0dc3e3a5295c5f1c57fe463b5d8761f67764ccf
[ "Apache-2.0" ]
permissive
Greatshock/Voronoi-Diagram-Visualizer
27fa4feadb33f35d3a85722b826d6302e2489bbf
86bfba2efe919ae2da9a39eeef0f1fbe5b4a0655
refs/heads/master
2021-08-31T20:44:22.439168
2017-12-22T21:07:53
2017-12-22T21:07:53
80,112,075
0
0
null
null
null
null
UTF-8
Java
false
false
5,453
java
package hse.visualizer; /* * @author Nikita Marinosyan * @date 20.04.2017 * Higher School of Economics, * Faculty of Computer Science, * Department of Software Engineering */ import hse.fortune.VCanvas; import hse.utilities.Utilities; import javax.swing.*; import java.awt.*; public class VDFrame extends JFrame implements Runnable { private static final int FRAME_WIDTH = 1080; private static final int FRAME_HEIGHT = 720; private static final String aboutText = "Voronoi Diagram Visualizer app allows you to watch how Voronoi Diagram\n" + "is being built step by step with Fortune algorithm to the defined set of " + "points\n" + "Designed by: Nikita Marinosyan\n" + "Email: [email protected]\n" + "Higher School of Economics, Faculty of Computer Science\n" + "2017"; private VCanvas canvas; private Controls controls; private Thread thread; private VDFrame() { init(); start(); controls.buttons[5].doClick(); controls.buttons[0].doClick(); } /** * Method to init the frame */ private void init() { // Set default properties onPaint(); // Create menu createMenu(); // Create the canvas, controls and import settings setLayout(new BorderLayout()); canvas = new VCanvas(this.getWidth(), this.getHeight() - 115, 32); add(BorderLayout.NORTH, new Settings(canvas)); add(BorderLayout.SOUTH, controls = new Controls(canvas)); add(BorderLayout.CENTER, canvas); } /** * Method that starts the thread */ private void start() { if(thread == null) { controls.thread = new Thread(this); thread = controls.thread; thread.start(); } } @SuppressWarnings("InfiniteLoopStatement") public void run() { if(thread != null) { while(true) { canvas.init(); while(canvas.singleStep()) { try { Thread.sleep(25L); } catch(InterruptedException _ex) { System.out.print("Program has been interrupted"); } } controls.threadRunning(false); } } } /** * Method to set the default values to the frame's properties */ private void onPaint() { setTitle("Voronoi Diagram Visualizer (Fortune Algorithm)"); setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); setSize(new Dimension(FRAME_WIDTH, FRAME_HEIGHT)); setResizable(false); setLayout(null); setLocationRelativeTo(null); setIconImage(new ImageIcon(getClass().getResource("/icon.png")).getImage()); } /** * Method which creates the menu bar */ private void createMenu() { JMenuBar menuBar = new JMenuBar(); setJMenuBar(menuBar); /*--------------------------------------------- Create separator ---------------------------------------------*/ JSeparator separator = new JSeparator(SwingConstants.VERTICAL); separator.setMaximumSize(new Dimension(10, 50)); /*------------------------------------------- Create help menu -----------------------------------------------*/ JMenu helpMenu = new JMenu("Help"); menuBar.add(helpMenu); JMenuItem manual = new JMenuItem("Manual"); JFrame manualWindow = new JFrame("Manual"); JTextPane manualText = new JTextPane(); manualText.setEditable(false); manualText.setContentType("text/html"); manualText.setText(Utilities.readAllTextFromResource("manual.html")); manualText.setCaretPosition(0); manualWindow.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); manualWindow.setSize(700, 700); manualWindow.setResizable(false); JScrollPane jsp = new JScrollPane(manualText); manualWindow.add(jsp); manualWindow.setLocation(this.getX() + 380, this.getY()); manual.addActionListener(e -> openManual(manualWindow)); helpMenu.add(manual); JMenuItem about = new JMenuItem("About the program"); helpMenu.add(about).addActionListener(e -> openAbout()); menuBar.add(separator); } /** * Method to handle manual menu button pressing * Opens new window with complete manual on the app */ private void openManual(JFrame manualWindow) { controls.buttons[0].doClick(); manualWindow.setVisible(true); } /** * Method to handle aboutMenu button pressing * Opens new window with brief info about the app */ private void openAbout() { // Pause visualization controls.buttons[0].doClick(); // Show about frame JOptionPane.showMessageDialog(this, aboutText); } public static void main(String[] args) { VDFrame vdFrame = new VDFrame(); vdFrame.setVisible(true); } }
bb747aaf80f2c0ae50575675981d73d2cc72bb05
ee3220083fe7cfaf4bfb0ff6cc9bbe80f12a83e2
/src/main/java/com/sberbank/credit/repository/ProductRepository.java
1b1558d658f17361a5cfaf50cd9742eabe383f2d
[]
no_license
PunkGagarin/credit
40b4912fa93924e57d25329d668df486dafa84dd
4c541eb443799b0a64c23ceac8a2621799b2d084
refs/heads/master
2022-12-22T20:13:24.348949
2019-12-22T16:40:03
2019-12-22T16:40:03
227,882,464
0
0
null
2022-12-15T23:30:52
2019-12-13T16:42:33
Java
UTF-8
Java
false
false
356
java
package com.sberbank.credit.repository; import com.sberbank.credit.model.entity.ProductEntity; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.JpaSpecificationExecutor; public interface ProductRepository extends JpaRepository<ProductEntity, Long>, JpaSpecificationExecutor<ProductEntity> { }
360a16431d27c7d878c375c274870d93439b6547
7f298c2bf9ff5a61eeb87e3929e072c9a04c8832
/spring-expression/src/test/java/org/springframework/expression/spel/MapAccessTests.java
5af405d6684677a569bafd98a3bf233be459010b
[ "Apache-2.0" ]
permissive
stwen/my-spring5
1ca1e85786ba1b5fdb90a583444a9c030fe429dd
d44be68874b8152d32403fe87c39ae2a8bebac18
refs/heads/master
2023-02-17T19:51:32.686701
2021-01-15T05:39:14
2021-01-15T05:39:14
322,756,105
0
0
null
null
null
null
UTF-8
Java
false
false
6,002
java
/* * Copyright 2002-2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.springframework.expression.spel; import java.util.HashMap; import java.util.Map; import org.junit.Test; import org.springframework.expression.AccessException; import org.springframework.expression.EvaluationContext; import org.springframework.expression.Expression; import org.springframework.expression.ExpressionParser; import org.springframework.expression.PropertyAccessor; import org.springframework.expression.TypedValue; import org.springframework.expression.spel.standard.SpelExpressionParser; import org.springframework.expression.spel.support.StandardEvaluationContext; import org.springframework.tests.Assume; import org.springframework.tests.TestGroup; import org.springframework.util.StopWatch; import static org.hamcrest.Matchers.*; import static org.junit.Assert.*; /** * Testing variations on map access. * * @author Andy Clement */ public class MapAccessTests extends AbstractExpressionTests { @Test public void testSimpleMapAccess01() { evaluate("testMap.get('monday')", "montag", String.class); } @Test public void testMapAccessThroughIndexer() { evaluate("testMap['monday']", "montag", String.class); } @Test public void testCustomMapAccessor() throws Exception { ExpressionParser parser = new SpelExpressionParser(); StandardEvaluationContext ctx = TestScenarioCreator.getTestEvaluationContext(); ctx.addPropertyAccessor(new MapAccessor()); Expression expr = parser.parseExpression("testMap.monday"); Object value = expr.getValue(ctx, String.class); assertEquals("montag", value); } @Test public void testVariableMapAccess() throws Exception { ExpressionParser parser = new SpelExpressionParser(); StandardEvaluationContext ctx = TestScenarioCreator.getTestEvaluationContext(); ctx.setVariable("day", "saturday"); Expression expr = parser.parseExpression("testMap[#day]"); Object value = expr.getValue(ctx, String.class); assertEquals("samstag", value); } @Test public void testGetValue() { Map<String, String> props1 = new HashMap<>(); props1.put("key1", "value1"); props1.put("key2", "value2"); props1.put("key3", "value3"); Object bean = new TestBean("name1", new TestBean("name2", null, "Description 2", 15, props1), "description 1", 6, props1); ExpressionParser parser = new SpelExpressionParser(); Expression expr = parser.parseExpression("testBean.properties['key2']"); assertEquals("value2", expr.getValue(bean)); } @Test public void testGetValueFromRootMap() { Map<String, String> map = new HashMap<>(); map.put("key", "value"); ExpressionParser spelExpressionParser = new SpelExpressionParser(); Expression expr = spelExpressionParser.parseExpression("#root['key']"); assertEquals("value", expr.getValue(map)); } @Test public void testGetValuePerformance() throws Exception { Assume.group(TestGroup.PERFORMANCE); Map<String, String> map = new HashMap<>(); map.put("key", "value"); EvaluationContext context = new StandardEvaluationContext(map); ExpressionParser spelExpressionParser = new SpelExpressionParser(); Expression expr = spelExpressionParser.parseExpression("#root['key']"); StopWatch s = new StopWatch(); s.start(); for (int i = 0; i < 10000; i++) { expr.getValue(context); } s.stop(); assertThat(s.getTotalTimeMillis(), lessThan(200L)); } public static class TestBean { private String name; private TestBean testBean; private String description; private Integer priority; private Map<String, String> properties; public TestBean(String name, TestBean testBean, String description, Integer priority, Map<String, String> props) { this.name = name; this.testBean = testBean; this.description = description; this.priority = priority; this.properties = props; } public String getName() { return name; } public void setName(String name) { this.name = name; } public TestBean getTestBean() { return testBean; } public void setTestBean(TestBean testBean) { this.testBean = testBean; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public Integer getPriority() { return priority; } public void setPriority(Integer priority) { this.priority = priority; } public Map<String, String> getProperties() { return properties; } public void setProperties(Map<String, String> properties) { this.properties = properties; } } public static class MapAccessor implements PropertyAccessor { @Override public boolean canRead(EvaluationContext context, Object target, String name) throws AccessException { return (((Map<?, ?>) target).containsKey(name)); } @Override public TypedValue read(EvaluationContext context, Object target, String name) throws AccessException { return new TypedValue(((Map<?, ?>) target).get(name)); } @Override public boolean canWrite(EvaluationContext context, Object target, String name) throws AccessException { return true; } @Override @SuppressWarnings("unchecked") public void write(EvaluationContext context, Object target, String name, Object newValue) throws AccessException { ((Map<Object, Object>) target).put(name, newValue); } @Override public Class<?>[] getSpecificTargetClasses() { return new Class<?>[]{Map.class}; } } }
63848cb73808f5be25e78e1b6b685fab3a08c8da
5b2cdf8b50fc826e6989afb0f0e332db7c058b7e
/problem_solving/a_very_big_sum/answer.java
5a4f22eaebae6781e866d47dd5c6f458f8020072
[]
no_license
mrunal3/Hackerrank
7ed4b73403756db5c105d2913d85cdd1936483d6
2c7cc55e24536e6b4569179ec9f0659d5f37e209
refs/heads/main
2023-01-14T07:10:47.219905
2020-11-24T17:39:31
2020-11-24T17:39:31
313,323,851
1
0
null
null
null
null
UTF-8
Java
false
false
127
java
static long aVeryBigSum(long[] ar) { long sum = 0; for (long item : ar) { sum += item; } return sum; }
3930dbd96364ee21465a863753e72fa94c30c79b
5e0a33c218e018c2dc71b5505be0c7b9974cb15f
/tests/com/chess/tests/TestBoard.java
de8abcd8e5ac2748012bca5929d0281d57a8ae8e
[]
no_license
aeris170/TigerTooth-Chess
1332bedc53de003c3821e2e66e5ca63dda3f305c
1e312514dce24eeeb92b5263decc1c7fb2e7c604
refs/heads/master
2020-04-29T11:27:23.601002
2019-08-16T15:36:17
2019-08-16T15:36:17
176,098,880
3
0
null
2020-04-27T00:31:25
2019-03-17T12:36:56
Java
UTF-8
Java
false
false
11,434
java
package com.chess.tests; import static org.junit.Assert.assertTrue; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertEquals; import com.chess.pgn.FenUtilities; import com.chess.engine.classic.Alliance; import com.chess.engine.classic.board.Move; import com.chess.engine.classic.board.Tile; import com.chess.engine.classic.pieces.Pawn; import com.chess.engine.classic.pieces.King; import com.chess.engine.classic.pieces.Rook; import com.chess.engine.classic.board.Board; import com.chess.engine.classic.pieces.Piece; import com.chess.engine.classic.pieces.Queen; import com.chess.engine.classic.pieces.Knight; import com.chess.engine.classic.pieces.Bishop; import com.chess.engine.classic.board.MoveUtils; import com.chess.engine.classic.board.BoardUtils; import com.chess.engine.classic.board.Board.Builder; import com.chess.engine.classic.board.MoveTransition; import com.chess.engine.classic.board.Move.MoveFactory; import com.chess.engine.classic.player.ai.BoardEvaluator; import com.chess.engine.classic.player.ai.StandardBoardEvaluator; import org.junit.Test; import com.google.common.collect.Iterables; public class TestBoard { @Test public void initialBoard() { final Board board = Board.createStandardBoard(); assertEquals(board.currentPlayer().getLegalMoves().size(), 20); assertEquals(board.currentPlayer().getOpponent().getLegalMoves().size(), 20); assertFalse(board.currentPlayer().isInCheck()); assertFalse(board.currentPlayer().isInCheckMate()); assertFalse(board.currentPlayer().isCastled()); assertTrue(board.currentPlayer().isKingSideCastleCapable()); assertTrue(board.currentPlayer().isQueenSideCastleCapable()); assertEquals(board.currentPlayer(), board.whitePlayer()); assertEquals(board.currentPlayer().getOpponent(), board.blackPlayer()); assertFalse(board.currentPlayer().getOpponent().isInCheck()); assertFalse(board.currentPlayer().getOpponent().isInCheckMate()); assertFalse(board.currentPlayer().getOpponent().isCastled()); assertTrue(board.currentPlayer().getOpponent().isKingSideCastleCapable()); assertTrue(board.currentPlayer().getOpponent().isQueenSideCastleCapable()); assertTrue(board.whitePlayer().toString().equals("White")); assertTrue(board.blackPlayer().toString().equals("Black")); final Iterable<Piece> allPieces = board.getAllPieces(); final Iterable<Move> allMoves = Iterables.concat(board.whitePlayer().getLegalMoves(), board.blackPlayer().getLegalMoves()); for (final Move move : allMoves) { assertFalse(move.isAttack()); assertFalse(move.isCastlingMove()); assertEquals(MoveUtils.exchangeScore(move), 1); } assertEquals(Iterables.size(allMoves), 40); assertEquals(Iterables.size(allPieces), 32); assertFalse(BoardUtils.isEndGame(board)); assertFalse(BoardUtils.isThreatenedBoardImmediate(board)); assertEquals(StandardBoardEvaluator.get().evaluate(board, 0), 0); assertEquals(board.getTile(35).getPiece(), null); assertEquals(board.getTile(35).getTileCoordinate(), 35); } @Test public void testPlainKingMove() { final Builder builder = new Builder(); // Black Layout builder.setPiece(new King(Alliance.BLACK, 4, false, false)); builder.setPiece(new Pawn(Alliance.BLACK, 12)); // White Layout builder.setPiece(new Pawn(Alliance.WHITE, 52)); builder.setPiece(new King(Alliance.WHITE, 60, false, false)); builder.setMoveMaker(Alliance.WHITE); // Set the current player final Board board = builder.build(); System.out.println(board); assertEquals(board.whitePlayer().getLegalMoves().size(), 6); assertEquals(board.blackPlayer().getLegalMoves().size(), 6); assertFalse(board.currentPlayer().isInCheck()); assertFalse(board.currentPlayer().isInCheckMate()); assertFalse(board.currentPlayer().getOpponent().isInCheck()); assertFalse(board.currentPlayer().getOpponent().isInCheckMate()); assertEquals(board.currentPlayer(), board.whitePlayer()); assertEquals(board.currentPlayer().getOpponent(), board.blackPlayer()); BoardEvaluator evaluator = StandardBoardEvaluator.get(); System.out.println(evaluator.evaluate(board, 0)); assertEquals(StandardBoardEvaluator.get().evaluate(board, 0), 0); final Move move = MoveFactory.createMove(board, BoardUtils.INSTANCE.getCoordinateAtPosition("e1"), BoardUtils.INSTANCE.getCoordinateAtPosition("f1")); final MoveTransition moveTransition = board.currentPlayer().makeMove(move); assertEquals(moveTransition.getTransitionMove(), move); assertEquals(moveTransition.getFromBoard(), board); assertEquals(moveTransition.getToBoard().currentPlayer(), moveTransition.getToBoard().blackPlayer()); assertTrue(moveTransition.getMoveStatus().isDone()); assertEquals(moveTransition.getToBoard().whitePlayer().getPlayerKing().getPiecePosition(), 61); System.out.println(moveTransition.getToBoard()); } @Test public void testBoardConsistency() { final Board board = Board.createStandardBoard(); assertEquals(board.currentPlayer(), board.whitePlayer()); final MoveTransition t1 = board.currentPlayer().makeMove(MoveFactory.createMove(board, BoardUtils.INSTANCE.getCoordinateAtPosition("e2"), BoardUtils.INSTANCE.getCoordinateAtPosition("e4"))); final MoveTransition t2 = t1.getToBoard().currentPlayer().makeMove(MoveFactory.createMove(t1.getToBoard(), BoardUtils.INSTANCE.getCoordinateAtPosition("e7"), BoardUtils.INSTANCE.getCoordinateAtPosition("e5"))); final MoveTransition t3 = t2.getToBoard().currentPlayer().makeMove(MoveFactory.createMove(t2.getToBoard(), BoardUtils.INSTANCE.getCoordinateAtPosition("g1"), BoardUtils.INSTANCE.getCoordinateAtPosition("f3"))); final MoveTransition t4 = t3.getToBoard().currentPlayer().makeMove(MoveFactory.createMove(t3.getToBoard(), BoardUtils.INSTANCE.getCoordinateAtPosition("d7"), BoardUtils.INSTANCE.getCoordinateAtPosition("d5"))); final MoveTransition t5 = t4.getToBoard().currentPlayer().makeMove(MoveFactory.createMove(t4.getToBoard(), BoardUtils.INSTANCE.getCoordinateAtPosition("e4"), BoardUtils.INSTANCE.getCoordinateAtPosition("d5"))); final MoveTransition t6 = t5.getToBoard().currentPlayer().makeMove(MoveFactory.createMove(t5.getToBoard(), BoardUtils.INSTANCE.getCoordinateAtPosition("d8"), BoardUtils.INSTANCE.getCoordinateAtPosition("d5"))); final MoveTransition t7 = t6.getToBoard().currentPlayer().makeMove(MoveFactory.createMove(t6.getToBoard(), BoardUtils.INSTANCE.getCoordinateAtPosition("f3"), BoardUtils.INSTANCE.getCoordinateAtPosition("g5"))); final MoveTransition t8 = t7.getToBoard().currentPlayer().makeMove(MoveFactory.createMove(t7.getToBoard(), BoardUtils.INSTANCE.getCoordinateAtPosition("f7"), BoardUtils.INSTANCE.getCoordinateAtPosition("f6"))); final MoveTransition t9 = t8.getToBoard().currentPlayer().makeMove(MoveFactory.createMove(t8.getToBoard(), BoardUtils.INSTANCE.getCoordinateAtPosition("d1"), BoardUtils.INSTANCE.getCoordinateAtPosition("h5"))); final MoveTransition t10 = t9.getToBoard().currentPlayer().makeMove(MoveFactory.createMove(t9.getToBoard(), BoardUtils.INSTANCE.getCoordinateAtPosition("g7"), BoardUtils.INSTANCE.getCoordinateAtPosition("g6"))); final MoveTransition t11 = t10.getToBoard().currentPlayer().makeMove(MoveFactory.createMove(t10.getToBoard(), BoardUtils.INSTANCE.getCoordinateAtPosition("h5"), BoardUtils.INSTANCE.getCoordinateAtPosition("h4"))); final MoveTransition t12 = t11.getToBoard().currentPlayer().makeMove(MoveFactory.createMove(t11.getToBoard(), BoardUtils.INSTANCE.getCoordinateAtPosition("f6"), BoardUtils.INSTANCE.getCoordinateAtPosition("g5"))); final MoveTransition t13 = t12.getToBoard().currentPlayer().makeMove(MoveFactory.createMove(t12.getToBoard(), BoardUtils.INSTANCE.getCoordinateAtPosition("h4"), BoardUtils.INSTANCE.getCoordinateAtPosition("g5"))); final MoveTransition t14 = t13.getToBoard().currentPlayer().makeMove(MoveFactory.createMove(t13.getToBoard(), BoardUtils.INSTANCE.getCoordinateAtPosition("d5"), BoardUtils.INSTANCE.getCoordinateAtPosition("e4"))); assertTrue(t14.getToBoard().whitePlayer().getActivePieces().size() == calculatedActivesFor(t14.getToBoard(), Alliance.WHITE)); assertTrue(t14.getToBoard().blackPlayer().getActivePieces().size() == calculatedActivesFor(t14.getToBoard(), Alliance.BLACK)); } @Test(expected = RuntimeException.class) public void testInvalidBoard() { final Builder builder = new Builder(); // Black Layout builder.setPiece(new Rook(Alliance.BLACK, 0)); builder.setPiece(new Knight(Alliance.BLACK, 1)); builder.setPiece(new Bishop(Alliance.BLACK, 2)); builder.setPiece(new Queen(Alliance.BLACK, 3)); builder.setPiece(new Bishop(Alliance.BLACK, 5)); builder.setPiece(new Knight(Alliance.BLACK, 6)); builder.setPiece(new Rook(Alliance.BLACK, 7)); builder.setPiece(new Pawn(Alliance.BLACK, 8)); builder.setPiece(new Pawn(Alliance.BLACK, 9)); builder.setPiece(new Pawn(Alliance.BLACK, 10)); builder.setPiece(new Pawn(Alliance.BLACK, 11)); builder.setPiece(new Pawn(Alliance.BLACK, 12)); builder.setPiece(new Pawn(Alliance.BLACK, 13)); builder.setPiece(new Pawn(Alliance.BLACK, 14)); builder.setPiece(new Pawn(Alliance.BLACK, 15)); // White Layout builder.setPiece(new Pawn(Alliance.WHITE, 48)); builder.setPiece(new Pawn(Alliance.WHITE, 49)); builder.setPiece(new Pawn(Alliance.WHITE, 50)); builder.setPiece(new Pawn(Alliance.WHITE, 51)); builder.setPiece(new Pawn(Alliance.WHITE, 52)); builder.setPiece(new Pawn(Alliance.WHITE, 53)); builder.setPiece(new Pawn(Alliance.WHITE, 54)); builder.setPiece(new Pawn(Alliance.WHITE, 55)); builder.setPiece(new Rook(Alliance.WHITE, 56)); builder.setPiece(new Knight(Alliance.WHITE, 57)); builder.setPiece(new Bishop(Alliance.WHITE, 58)); builder.setPiece(new Queen(Alliance.WHITE, 59)); builder.setPiece(new Bishop(Alliance.WHITE, 61)); builder.setPiece(new Knight(Alliance.WHITE, 62)); builder.setPiece(new Rook(Alliance.WHITE, 63)); // white to move builder.setMoveMaker(Alliance.WHITE); // build the board builder.build(); } @Test public void testAlgebreicNotation() { assertEquals(BoardUtils.INSTANCE.getPositionAtCoordinate(0), "a8"); assertEquals(BoardUtils.INSTANCE.getPositionAtCoordinate(1), "b8"); assertEquals(BoardUtils.INSTANCE.getPositionAtCoordinate(2), "c8"); assertEquals(BoardUtils.INSTANCE.getPositionAtCoordinate(3), "d8"); assertEquals(BoardUtils.INSTANCE.getPositionAtCoordinate(4), "e8"); assertEquals(BoardUtils.INSTANCE.getPositionAtCoordinate(5), "f8"); assertEquals(BoardUtils.INSTANCE.getPositionAtCoordinate(6), "g8"); assertEquals(BoardUtils.INSTANCE.getPositionAtCoordinate(7), "h8"); } @Test public void tt() { final Board.Builder builder = new Board.Builder(); // BLACK LAYOUT builder.setPiece(new King(Alliance.BLACK, 4, false, false)); // WHITE LAYOUT builder.setPiece(new King(Alliance.WHITE, 60, false, false)); builder.setPiece(new Bishop(Alliance.WHITE, 61)); // white to move builder.setMoveMaker(Alliance.WHITE); final Board board = builder.build(); System.out.println(FenUtilities.createFENFromGame(board)); } private static int calculatedActivesFor(final Board board, final Alliance alliance) { int count = 0; for (final Tile t : board.getGameBoard()) { if (t.isTileOccupied() && t.getPiece().getPieceAllegiance().equals(alliance)) { count++; } } return count; } }
71aeeeeecc4bf909766c8edbd4972a0b824a8b94
1fad976be5b4b10d96962baedd502e82dbea7154
/src/main/java/com/cryptoStreamAPI/common/DateTimeUtil.java
fe66bc00662c2b86488dfd2fe91358732d429f2e
[]
no_license
kanthgithub/CryptoStreamAPI
baac36f3d276ff28d47184867fc406db2e8a1ddf
37e49e6491462b8aa7f64d021fce273fcffcf7f2
refs/heads/master
2020-04-08T05:16:17.595830
2018-11-27T16:00:20
2018-11-27T16:00:20
159,053,669
0
0
null
null
null
null
UTF-8
Java
false
false
2,235
java
package com.cryptoStreamAPI.common; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.time.Instant; import java.time.LocalDateTime; import java.time.ZoneOffset; import java.time.format.DateTimeFormatter; public class DateTimeUtil { public static final Logger log = LoggerFactory.getLogger(DateTimeUtil.class); public static final DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyyMMddHH"); public static final ZoneOffset ZONE_OFFSET = ZoneOffset.ofHours(8); private static final int SECOND = 1000; private static final int MINUTE = 60 * SECOND; private static final int HOUR = 60 * MINUTE; /** * * @return timeStamp in epochMillis */ public static Long getCurrentTimeStampInEpochMillis(){ Instant instant = Instant.now().atOffset(ZONE_OFFSET).toInstant(); return instant.toEpochMilli(); } /** * * @return timeStamp in epochMillis */ public static Long getTimeStampInEpochMillis(LocalDateTime localDateTime){ Instant instant = localDateTime.toInstant(ZONE_OFFSET); return instant.toEpochMilli(); } /** * * @return timeStamp in LocalDateTime */ public static LocalDateTime getCurrentTimeStamp(){ return LocalDateTime.now().atOffset(ZONE_OFFSET).toLocalDateTime(); } /** * * @param format * @param date * @return formatted DateString */ public static String getDateAsFormattedString(String format,LocalDateTime date){ LocalDateTime dateArgument = date==null ? getCurrentTimeStamp() : date; String formatArgument = format!=null ? format : "yyyyMMdd"; DateTimeFormatter dtf = DateTimeFormatter.ofPattern(formatArgument); return dtf.format(dateArgument); } /** * * @param format * @param dateString * @return LocalDateTime */ public static LocalDateTime parseStringAsLocalDateTime(String format,String dateString){ String formatArgument = format!=null ? format : "yyyy-MM-dd'T'HH:mm:ss"; DateTimeFormatter dtf = DateTimeFormatter.ofPattern(formatArgument); return LocalDateTime.from(dtf.parse(dateString)); } }
e9dd9518d3bd9fd5737360d6f292d8c47e284351
fc160694094b89ab09e5c9a0f03db80437eabc93
/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/FoldersClient.java
69669994052f8e25f778a0b893ef9c0e96489bc8
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
googleapis/google-cloud-java
4f4d97a145e0310db142ecbc3340ce3a2a444e5e
6e23c3a406e19af410a1a1dd0d0487329875040e
refs/heads/main
2023-09-04T09:09:02.481897
2023-08-31T20:45:11
2023-08-31T20:45:11
26,181,278
1,122
685
Apache-2.0
2023-09-13T21:21:23
2014-11-04T17:57:16
Java
UTF-8
Java
false
false
111,331
java
/* * Copyright 2023 Google LLC * * 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 * * https://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.google.cloud.resourcemanager.v3; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.httpjson.longrunning.OperationsClient; import com.google.api.gax.longrunning.OperationFuture; import com.google.api.gax.paging.AbstractFixedSizeCollection; import com.google.api.gax.paging.AbstractPage; import com.google.api.gax.paging.AbstractPagedListResponse; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.UnaryCallable; import com.google.api.resourcenames.ResourceName; import com.google.cloud.resourcemanager.v3.stub.FoldersStub; import com.google.cloud.resourcemanager.v3.stub.FoldersStubSettings; import com.google.common.util.concurrent.MoreExecutors; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.Operation; import com.google.protobuf.FieldMask; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** * Service Description: Manages Cloud Platform folder resources. Folders can be used to organize the * resources under an organization and to control the policies applied to groups of resources. * * <p>This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * FolderName name = FolderName.of("[FOLDER]"); * Folder response = foldersClient.getFolder(name); * } * }</pre> * * <p>Note: close() needs to be called on the FoldersClient object to clean up resources such as * threads. In the example above, try-with-resources is used, which automatically calls close(). * * <p>The surface of this class includes several types of Java methods for each of the API's * methods: * * <ol> * <li>A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. * <li>A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. * <li>A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. * </ol> * * <p>See the individual methods for example code. * * <p>Many parameters require resource names to be formatted in a particular way. To assist with * these names, this class includes a format method for each type of name, and additionally a parse * method to extract the individual identifiers contained within names that are returned. * * <p>This class can be customized by passing in a custom instance of FoldersSettings to create(). * For example: * * <p>To customize credentials: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * FoldersSettings foldersSettings = * FoldersSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) * .build(); * FoldersClient foldersClient = FoldersClient.create(foldersSettings); * }</pre> * * <p>To customize the endpoint: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * FoldersSettings foldersSettings = FoldersSettings.newBuilder().setEndpoint(myEndpoint).build(); * FoldersClient foldersClient = FoldersClient.create(foldersSettings); * }</pre> * * <p>To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over * the wire: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * FoldersSettings foldersSettings = FoldersSettings.newHttpJsonBuilder().build(); * FoldersClient foldersClient = FoldersClient.create(foldersSettings); * }</pre> * * <p>Please refer to the GitHub repository's samples for more quickstart code snippets. */ @Generated("by gapic-generator-java") public class FoldersClient implements BackgroundResource { private final FoldersSettings settings; private final FoldersStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; /** Constructs an instance of FoldersClient with default settings. */ public static final FoldersClient create() throws IOException { return create(FoldersSettings.newBuilder().build()); } /** * Constructs an instance of FoldersClient, using the given settings. The channels are created * based on the settings passed in, or defaults for any settings that are not set. */ public static final FoldersClient create(FoldersSettings settings) throws IOException { return new FoldersClient(settings); } /** * Constructs an instance of FoldersClient, using the given stub for making calls. This is for * advanced usage - prefer using create(FoldersSettings). */ public static final FoldersClient create(FoldersStub stub) { return new FoldersClient(stub); } /** * Constructs an instance of FoldersClient, using the given settings. This is protected so that it * is easy to make a subclass, but otherwise, the static factory methods should be preferred. */ protected FoldersClient(FoldersSettings settings) throws IOException { this.settings = settings; this.stub = ((FoldersStubSettings) settings.getStubSettings()).createStub(); this.operationsClient = com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } protected FoldersClient(FoldersStub stub) { this.settings = null; this.stub = stub; this.operationsClient = com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } public final FoldersSettings getSettings() { return settings; } public FoldersStub getStub() { return stub; } /** * Returns the OperationsClient that can be used to query the status of a long-running operation * returned by another API method call. */ public final com.google.longrunning.OperationsClient getOperationsClient() { return operationsClient; } /** * Returns the OperationsClient that can be used to query the status of a long-running operation * returned by another API method call. */ @BetaApi public final OperationsClient getHttpJsonOperationsClient() { return httpJsonOperationsClient; } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Retrieves a folder identified by the supplied resource name. Valid folder resource names have * the format `folders/{folder_id}` (for example, `folders/1234`). The caller must have * `resourcemanager.folders.get` permission on the identified folder. * * <p>Sample code: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * FolderName name = FolderName.of("[FOLDER]"); * Folder response = foldersClient.getFolder(name); * } * }</pre> * * @param name Required. The resource name of the folder to retrieve. Must be of the form * `folders/{folder_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Folder getFolder(FolderName name) { GetFolderRequest request = GetFolderRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getFolder(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Retrieves a folder identified by the supplied resource name. Valid folder resource names have * the format `folders/{folder_id}` (for example, `folders/1234`). The caller must have * `resourcemanager.folders.get` permission on the identified folder. * * <p>Sample code: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * String name = FolderName.of("[FOLDER]").toString(); * Folder response = foldersClient.getFolder(name); * } * }</pre> * * @param name Required. The resource name of the folder to retrieve. Must be of the form * `folders/{folder_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Folder getFolder(String name) { GetFolderRequest request = GetFolderRequest.newBuilder().setName(name).build(); return getFolder(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Retrieves a folder identified by the supplied resource name. Valid folder resource names have * the format `folders/{folder_id}` (for example, `folders/1234`). The caller must have * `resourcemanager.folders.get` permission on the identified folder. * * <p>Sample code: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * GetFolderRequest request = * GetFolderRequest.newBuilder().setName(FolderName.of("[FOLDER]").toString()).build(); * Folder response = foldersClient.getFolder(request); * } * }</pre> * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Folder getFolder(GetFolderRequest request) { return getFolderCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Retrieves a folder identified by the supplied resource name. Valid folder resource names have * the format `folders/{folder_id}` (for example, `folders/1234`). The caller must have * `resourcemanager.folders.get` permission on the identified folder. * * <p>Sample code: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * GetFolderRequest request = * GetFolderRequest.newBuilder().setName(FolderName.of("[FOLDER]").toString()).build(); * ApiFuture<Folder> future = foldersClient.getFolderCallable().futureCall(request); * // Do something. * Folder response = future.get(); * } * }</pre> */ public final UnaryCallable<GetFolderRequest, Folder> getFolderCallable() { return stub.getFolderCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists the folders that are direct descendants of supplied parent resource. `list()` provides a * strongly consistent view of the folders underneath the specified parent resource. `list()` * returns folders sorted based upon the (ascending) lexical ordering of their display_name. The * caller must have `resourcemanager.folders.list` permission on the identified parent. * * <p>Sample code: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * ResourceName parent = FolderName.of("[FOLDER]"); * for (Folder element : foldersClient.listFolders(parent).iterateAll()) { * // doThingsWith(element); * } * } * }</pre> * * @param parent Required. The name of the parent resource whose folders are being listed. Only * children of this parent resource are listed; descendants are not listed. * <p>If the parent is a folder, use the value `folders/{folder_id}`. If the parent is an * organization, use the value `organizations/{org_id}`. * <p>Access to this method is controlled by checking the `resourcemanager.folders.list` * permission on the `parent`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListFoldersPagedResponse listFolders(ResourceName parent) { ListFoldersRequest request = ListFoldersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .build(); return listFolders(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists the folders that are direct descendants of supplied parent resource. `list()` provides a * strongly consistent view of the folders underneath the specified parent resource. `list()` * returns folders sorted based upon the (ascending) lexical ordering of their display_name. The * caller must have `resourcemanager.folders.list` permission on the identified parent. * * <p>Sample code: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * String parent = FolderName.of("[FOLDER]").toString(); * for (Folder element : foldersClient.listFolders(parent).iterateAll()) { * // doThingsWith(element); * } * } * }</pre> * * @param parent Required. The name of the parent resource whose folders are being listed. Only * children of this parent resource are listed; descendants are not listed. * <p>If the parent is a folder, use the value `folders/{folder_id}`. If the parent is an * organization, use the value `organizations/{org_id}`. * <p>Access to this method is controlled by checking the `resourcemanager.folders.list` * permission on the `parent`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListFoldersPagedResponse listFolders(String parent) { ListFoldersRequest request = ListFoldersRequest.newBuilder().setParent(parent).build(); return listFolders(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists the folders that are direct descendants of supplied parent resource. `list()` provides a * strongly consistent view of the folders underneath the specified parent resource. `list()` * returns folders sorted based upon the (ascending) lexical ordering of their display_name. The * caller must have `resourcemanager.folders.list` permission on the identified parent. * * <p>Sample code: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * ListFoldersRequest request = * ListFoldersRequest.newBuilder() * .setParent(FolderName.of("[FOLDER]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setShowDeleted(true) * .build(); * for (Folder element : foldersClient.listFolders(request).iterateAll()) { * // doThingsWith(element); * } * } * }</pre> * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListFoldersPagedResponse listFolders(ListFoldersRequest request) { return listFoldersPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists the folders that are direct descendants of supplied parent resource. `list()` provides a * strongly consistent view of the folders underneath the specified parent resource. `list()` * returns folders sorted based upon the (ascending) lexical ordering of their display_name. The * caller must have `resourcemanager.folders.list` permission on the identified parent. * * <p>Sample code: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * ListFoldersRequest request = * ListFoldersRequest.newBuilder() * .setParent(FolderName.of("[FOLDER]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setShowDeleted(true) * .build(); * ApiFuture<Folder> future = foldersClient.listFoldersPagedCallable().futureCall(request); * // Do something. * for (Folder element : future.get().iterateAll()) { * // doThingsWith(element); * } * } * }</pre> */ public final UnaryCallable<ListFoldersRequest, ListFoldersPagedResponse> listFoldersPagedCallable() { return stub.listFoldersPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists the folders that are direct descendants of supplied parent resource. `list()` provides a * strongly consistent view of the folders underneath the specified parent resource. `list()` * returns folders sorted based upon the (ascending) lexical ordering of their display_name. The * caller must have `resourcemanager.folders.list` permission on the identified parent. * * <p>Sample code: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * ListFoldersRequest request = * ListFoldersRequest.newBuilder() * .setParent(FolderName.of("[FOLDER]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setShowDeleted(true) * .build(); * while (true) { * ListFoldersResponse response = foldersClient.listFoldersCallable().call(request); * for (Folder element : response.getFoldersList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); * if (!Strings.isNullOrEmpty(nextPageToken)) { * request = request.toBuilder().setPageToken(nextPageToken).build(); * } else { * break; * } * } * } * }</pre> */ public final UnaryCallable<ListFoldersRequest, ListFoldersResponse> listFoldersCallable() { return stub.listFoldersCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Search for folders that match specific filter criteria. `search()` provides an eventually * consistent view of the folders a user has access to which meet the specified filter criteria. * * <p>This will only return folders on which the caller has the permission * `resourcemanager.folders.get`. * * <p>Sample code: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * String query = "query107944136"; * for (Folder element : foldersClient.searchFolders(query).iterateAll()) { * // doThingsWith(element); * } * } * }</pre> * * @param query Optional. Search criteria used to select the folders to return. If no search * criteria is specified then all accessible folders will be returned. * <p>Query expressions can be used to restrict results based upon displayName, state and * parent, where the operators `=` (`:`) `NOT`, `AND` and `OR` can be used along with the * suffix wildcard symbol `&#42;`. * <p>The `displayName` field in a query expression should use escaped quotes for values that * include whitespace to prevent unexpected behavior. * <p>``` | Field | Description | * |-------------------------|----------------------------------------| | displayName | * Filters by displayName. | | parent | Filters by parent (for example: folders/123). | | * state, lifecycleState | Filters by state. | ``` * <p>Some example queries are: * <ul> * <li>Query `displayName=Test&#42;` returns Folder resources whose display name starts with * "Test". * <li>Query `state=ACTIVE` returns Folder resources with `state` set to `ACTIVE`. * <li>Query `parent=folders/123` returns Folder resources that have `folders/123` as a * parent resource. * <li>Query `parent=folders/123 AND state=ACTIVE` returns active Folder resources that have * `folders/123` as a parent resource. * <li>Query `displayName=\\\\"Test String\\\\"` returns Folder resources with display names * that include both "Test" and "String". * </ul> * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SearchFoldersPagedResponse searchFolders(String query) { SearchFoldersRequest request = SearchFoldersRequest.newBuilder().setQuery(query).build(); return searchFolders(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Search for folders that match specific filter criteria. `search()` provides an eventually * consistent view of the folders a user has access to which meet the specified filter criteria. * * <p>This will only return folders on which the caller has the permission * `resourcemanager.folders.get`. * * <p>Sample code: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * SearchFoldersRequest request = * SearchFoldersRequest.newBuilder() * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setQuery("query107944136") * .build(); * for (Folder element : foldersClient.searchFolders(request).iterateAll()) { * // doThingsWith(element); * } * } * }</pre> * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SearchFoldersPagedResponse searchFolders(SearchFoldersRequest request) { return searchFoldersPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Search for folders that match specific filter criteria. `search()` provides an eventually * consistent view of the folders a user has access to which meet the specified filter criteria. * * <p>This will only return folders on which the caller has the permission * `resourcemanager.folders.get`. * * <p>Sample code: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * SearchFoldersRequest request = * SearchFoldersRequest.newBuilder() * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setQuery("query107944136") * .build(); * ApiFuture<Folder> future = foldersClient.searchFoldersPagedCallable().futureCall(request); * // Do something. * for (Folder element : future.get().iterateAll()) { * // doThingsWith(element); * } * } * }</pre> */ public final UnaryCallable<SearchFoldersRequest, SearchFoldersPagedResponse> searchFoldersPagedCallable() { return stub.searchFoldersPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Search for folders that match specific filter criteria. `search()` provides an eventually * consistent view of the folders a user has access to which meet the specified filter criteria. * * <p>This will only return folders on which the caller has the permission * `resourcemanager.folders.get`. * * <p>Sample code: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * SearchFoldersRequest request = * SearchFoldersRequest.newBuilder() * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setQuery("query107944136") * .build(); * while (true) { * SearchFoldersResponse response = foldersClient.searchFoldersCallable().call(request); * for (Folder element : response.getFoldersList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); * if (!Strings.isNullOrEmpty(nextPageToken)) { * request = request.toBuilder().setPageToken(nextPageToken).build(); * } else { * break; * } * } * } * }</pre> */ public final UnaryCallable<SearchFoldersRequest, SearchFoldersResponse> searchFoldersCallable() { return stub.searchFoldersCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a folder in the resource hierarchy. Returns an `Operation` which can be used to track * the progress of the folder creation workflow. Upon success, the `Operation.response` field will * be populated with the created Folder. * * <p>In order to succeed, the addition of this new folder must not violate the folder naming, * height, or fanout constraints. * * <p>+ The folder's `display_name` must be distinct from all other folders that share its parent. * + The addition of the folder must not cause the active folder hierarchy to exceed a height of * 10. Note, the full active + deleted folder hierarchy is allowed to reach a height of 20; this * provides additional headroom when moving folders that contain deleted folders. + The addition * of the folder must not cause the total number of folders under its parent to exceed 300. * * <p>If the operation fails due to a folder constraint violation, some errors may be returned by * the `CreateFolder` request, with status code `FAILED_PRECONDITION` and an error description. * Other folder constraint violations will be communicated in the `Operation`, with the specific * `PreconditionFailure` returned in the details list in the `Operation.error` field. * * <p>The caller must have `resourcemanager.folders.create` permission on the identified parent. * * <p>Sample code: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * Folder folder = Folder.newBuilder().build(); * Folder response = foldersClient.createFolderAsync(folder).get(); * } * }</pre> * * @param folder Required. The folder being created, only the display name and parent will be * consulted. All other fields will be ignored. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture<Folder, CreateFolderMetadata> createFolderAsync(Folder folder) { CreateFolderRequest request = CreateFolderRequest.newBuilder().setFolder(folder).build(); return createFolderAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a folder in the resource hierarchy. Returns an `Operation` which can be used to track * the progress of the folder creation workflow. Upon success, the `Operation.response` field will * be populated with the created Folder. * * <p>In order to succeed, the addition of this new folder must not violate the folder naming, * height, or fanout constraints. * * <p>+ The folder's `display_name` must be distinct from all other folders that share its parent. * + The addition of the folder must not cause the active folder hierarchy to exceed a height of * 10. Note, the full active + deleted folder hierarchy is allowed to reach a height of 20; this * provides additional headroom when moving folders that contain deleted folders. + The addition * of the folder must not cause the total number of folders under its parent to exceed 300. * * <p>If the operation fails due to a folder constraint violation, some errors may be returned by * the `CreateFolder` request, with status code `FAILED_PRECONDITION` and an error description. * Other folder constraint violations will be communicated in the `Operation`, with the specific * `PreconditionFailure` returned in the details list in the `Operation.error` field. * * <p>The caller must have `resourcemanager.folders.create` permission on the identified parent. * * <p>Sample code: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * CreateFolderRequest request = * CreateFolderRequest.newBuilder().setFolder(Folder.newBuilder().build()).build(); * Folder response = foldersClient.createFolderAsync(request).get(); * } * }</pre> * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture<Folder, CreateFolderMetadata> createFolderAsync( CreateFolderRequest request) { return createFolderOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a folder in the resource hierarchy. Returns an `Operation` which can be used to track * the progress of the folder creation workflow. Upon success, the `Operation.response` field will * be populated with the created Folder. * * <p>In order to succeed, the addition of this new folder must not violate the folder naming, * height, or fanout constraints. * * <p>+ The folder's `display_name` must be distinct from all other folders that share its parent. * + The addition of the folder must not cause the active folder hierarchy to exceed a height of * 10. Note, the full active + deleted folder hierarchy is allowed to reach a height of 20; this * provides additional headroom when moving folders that contain deleted folders. + The addition * of the folder must not cause the total number of folders under its parent to exceed 300. * * <p>If the operation fails due to a folder constraint violation, some errors may be returned by * the `CreateFolder` request, with status code `FAILED_PRECONDITION` and an error description. * Other folder constraint violations will be communicated in the `Operation`, with the specific * `PreconditionFailure` returned in the details list in the `Operation.error` field. * * <p>The caller must have `resourcemanager.folders.create` permission on the identified parent. * * <p>Sample code: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * CreateFolderRequest request = * CreateFolderRequest.newBuilder().setFolder(Folder.newBuilder().build()).build(); * OperationFuture<Folder, CreateFolderMetadata> future = * foldersClient.createFolderOperationCallable().futureCall(request); * // Do something. * Folder response = future.get(); * } * }</pre> */ public final OperationCallable<CreateFolderRequest, Folder, CreateFolderMetadata> createFolderOperationCallable() { return stub.createFolderOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a folder in the resource hierarchy. Returns an `Operation` which can be used to track * the progress of the folder creation workflow. Upon success, the `Operation.response` field will * be populated with the created Folder. * * <p>In order to succeed, the addition of this new folder must not violate the folder naming, * height, or fanout constraints. * * <p>+ The folder's `display_name` must be distinct from all other folders that share its parent. * + The addition of the folder must not cause the active folder hierarchy to exceed a height of * 10. Note, the full active + deleted folder hierarchy is allowed to reach a height of 20; this * provides additional headroom when moving folders that contain deleted folders. + The addition * of the folder must not cause the total number of folders under its parent to exceed 300. * * <p>If the operation fails due to a folder constraint violation, some errors may be returned by * the `CreateFolder` request, with status code `FAILED_PRECONDITION` and an error description. * Other folder constraint violations will be communicated in the `Operation`, with the specific * `PreconditionFailure` returned in the details list in the `Operation.error` field. * * <p>The caller must have `resourcemanager.folders.create` permission on the identified parent. * * <p>Sample code: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * CreateFolderRequest request = * CreateFolderRequest.newBuilder().setFolder(Folder.newBuilder().build()).build(); * ApiFuture<Operation> future = foldersClient.createFolderCallable().futureCall(request); * // Do something. * Operation response = future.get(); * } * }</pre> */ public final UnaryCallable<CreateFolderRequest, Operation> createFolderCallable() { return stub.createFolderCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates a folder, changing its `display_name`. Changes to the folder `display_name` will be * rejected if they violate either the `display_name` formatting rules or the naming constraints * described in the [CreateFolder][google.cloud.resourcemanager.v3.Folders.CreateFolder] * documentation. * * <p>The folder's `display_name` must start and end with a letter or digit, may contain letters, * digits, spaces, hyphens and underscores and can be between 3 and 30 characters. This is * captured by the regular expression: `[\\\\p{L}\\\\p{N}][\\\\p{L}\\\\p{N}_- * ]{1,28}[\\\\p{L}\\\\p{N}]`. The caller must have `resourcemanager.folders.update` permission on * the identified folder. * * <p>If the update fails due to the unique name constraint then a `PreconditionFailure` * explaining this violation will be returned in the Status.details field. * * <p>Sample code: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * Folder folder = Folder.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); * Folder response = foldersClient.updateFolderAsync(folder, updateMask).get(); * } * }</pre> * * @param folder Required. The new definition of the Folder. It must include the `name` field, * which cannot be changed. * @param updateMask Required. Fields to be updated. Only the `display_name` can be updated. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture<Folder, UpdateFolderMetadata> updateFolderAsync( Folder folder, FieldMask updateMask) { UpdateFolderRequest request = UpdateFolderRequest.newBuilder().setFolder(folder).setUpdateMask(updateMask).build(); return updateFolderAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates a folder, changing its `display_name`. Changes to the folder `display_name` will be * rejected if they violate either the `display_name` formatting rules or the naming constraints * described in the [CreateFolder][google.cloud.resourcemanager.v3.Folders.CreateFolder] * documentation. * * <p>The folder's `display_name` must start and end with a letter or digit, may contain letters, * digits, spaces, hyphens and underscores and can be between 3 and 30 characters. This is * captured by the regular expression: `[\\\\p{L}\\\\p{N}][\\\\p{L}\\\\p{N}_- * ]{1,28}[\\\\p{L}\\\\p{N}]`. The caller must have `resourcemanager.folders.update` permission on * the identified folder. * * <p>If the update fails due to the unique name constraint then a `PreconditionFailure` * explaining this violation will be returned in the Status.details field. * * <p>Sample code: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * UpdateFolderRequest request = * UpdateFolderRequest.newBuilder() * .setFolder(Folder.newBuilder().build()) * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); * Folder response = foldersClient.updateFolderAsync(request).get(); * } * }</pre> * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture<Folder, UpdateFolderMetadata> updateFolderAsync( UpdateFolderRequest request) { return updateFolderOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates a folder, changing its `display_name`. Changes to the folder `display_name` will be * rejected if they violate either the `display_name` formatting rules or the naming constraints * described in the [CreateFolder][google.cloud.resourcemanager.v3.Folders.CreateFolder] * documentation. * * <p>The folder's `display_name` must start and end with a letter or digit, may contain letters, * digits, spaces, hyphens and underscores and can be between 3 and 30 characters. This is * captured by the regular expression: `[\\\\p{L}\\\\p{N}][\\\\p{L}\\\\p{N}_- * ]{1,28}[\\\\p{L}\\\\p{N}]`. The caller must have `resourcemanager.folders.update` permission on * the identified folder. * * <p>If the update fails due to the unique name constraint then a `PreconditionFailure` * explaining this violation will be returned in the Status.details field. * * <p>Sample code: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * UpdateFolderRequest request = * UpdateFolderRequest.newBuilder() * .setFolder(Folder.newBuilder().build()) * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); * OperationFuture<Folder, UpdateFolderMetadata> future = * foldersClient.updateFolderOperationCallable().futureCall(request); * // Do something. * Folder response = future.get(); * } * }</pre> */ public final OperationCallable<UpdateFolderRequest, Folder, UpdateFolderMetadata> updateFolderOperationCallable() { return stub.updateFolderOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates a folder, changing its `display_name`. Changes to the folder `display_name` will be * rejected if they violate either the `display_name` formatting rules or the naming constraints * described in the [CreateFolder][google.cloud.resourcemanager.v3.Folders.CreateFolder] * documentation. * * <p>The folder's `display_name` must start and end with a letter or digit, may contain letters, * digits, spaces, hyphens and underscores and can be between 3 and 30 characters. This is * captured by the regular expression: `[\\\\p{L}\\\\p{N}][\\\\p{L}\\\\p{N}_- * ]{1,28}[\\\\p{L}\\\\p{N}]`. The caller must have `resourcemanager.folders.update` permission on * the identified folder. * * <p>If the update fails due to the unique name constraint then a `PreconditionFailure` * explaining this violation will be returned in the Status.details field. * * <p>Sample code: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * UpdateFolderRequest request = * UpdateFolderRequest.newBuilder() * .setFolder(Folder.newBuilder().build()) * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); * ApiFuture<Operation> future = foldersClient.updateFolderCallable().futureCall(request); * // Do something. * Operation response = future.get(); * } * }</pre> */ public final UnaryCallable<UpdateFolderRequest, Operation> updateFolderCallable() { return stub.updateFolderCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Moves a folder under a new resource parent. Returns an `Operation` which can be used to track * the progress of the folder move workflow. Upon success, the `Operation.response` field will be * populated with the moved folder. Upon failure, a `FolderOperationError` categorizing the * failure cause will be returned - if the failure occurs synchronously then the * `FolderOperationError` will be returned in the `Status.details` field. If it occurs * asynchronously, then the FolderOperation will be returned in the `Operation.error` field. In * addition, the `Operation.metadata` field will be populated with a `FolderOperation` message as * an aid to stateless clients. Folder moves will be rejected if they violate either the naming, * height, or fanout constraints described in the * [CreateFolder][google.cloud.resourcemanager.v3.Folders.CreateFolder] documentation. The caller * must have `resourcemanager.folders.move` permission on the folder's current and proposed new * parent. * * <p>Sample code: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * FolderName name = FolderName.of("[FOLDER]"); * ResourceName destinationParent = FolderName.of("[FOLDER]"); * Folder response = foldersClient.moveFolderAsync(name, destinationParent).get(); * } * }</pre> * * @param name Required. The resource name of the Folder to move. Must be of the form * folders/{folder_id} * @param destinationParent Required. The resource name of the folder or organization which should * be the folder's new parent. Must be of the form `folders/{folder_id}` or * `organizations/{org_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture<Folder, MoveFolderMetadata> moveFolderAsync( FolderName name, ResourceName destinationParent) { MoveFolderRequest request = MoveFolderRequest.newBuilder() .setName(name == null ? null : name.toString()) .setDestinationParent(destinationParent == null ? null : destinationParent.toString()) .build(); return moveFolderAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Moves a folder under a new resource parent. Returns an `Operation` which can be used to track * the progress of the folder move workflow. Upon success, the `Operation.response` field will be * populated with the moved folder. Upon failure, a `FolderOperationError` categorizing the * failure cause will be returned - if the failure occurs synchronously then the * `FolderOperationError` will be returned in the `Status.details` field. If it occurs * asynchronously, then the FolderOperation will be returned in the `Operation.error` field. In * addition, the `Operation.metadata` field will be populated with a `FolderOperation` message as * an aid to stateless clients. Folder moves will be rejected if they violate either the naming, * height, or fanout constraints described in the * [CreateFolder][google.cloud.resourcemanager.v3.Folders.CreateFolder] documentation. The caller * must have `resourcemanager.folders.move` permission on the folder's current and proposed new * parent. * * <p>Sample code: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * FolderName name = FolderName.of("[FOLDER]"); * String destinationParent = FolderName.of("[FOLDER]").toString(); * Folder response = foldersClient.moveFolderAsync(name, destinationParent).get(); * } * }</pre> * * @param name Required. The resource name of the Folder to move. Must be of the form * folders/{folder_id} * @param destinationParent Required. The resource name of the folder or organization which should * be the folder's new parent. Must be of the form `folders/{folder_id}` or * `organizations/{org_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture<Folder, MoveFolderMetadata> moveFolderAsync( FolderName name, String destinationParent) { MoveFolderRequest request = MoveFolderRequest.newBuilder() .setName(name == null ? null : name.toString()) .setDestinationParent(destinationParent) .build(); return moveFolderAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Moves a folder under a new resource parent. Returns an `Operation` which can be used to track * the progress of the folder move workflow. Upon success, the `Operation.response` field will be * populated with the moved folder. Upon failure, a `FolderOperationError` categorizing the * failure cause will be returned - if the failure occurs synchronously then the * `FolderOperationError` will be returned in the `Status.details` field. If it occurs * asynchronously, then the FolderOperation will be returned in the `Operation.error` field. In * addition, the `Operation.metadata` field will be populated with a `FolderOperation` message as * an aid to stateless clients. Folder moves will be rejected if they violate either the naming, * height, or fanout constraints described in the * [CreateFolder][google.cloud.resourcemanager.v3.Folders.CreateFolder] documentation. The caller * must have `resourcemanager.folders.move` permission on the folder's current and proposed new * parent. * * <p>Sample code: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * String name = FolderName.of("[FOLDER]").toString(); * ResourceName destinationParent = FolderName.of("[FOLDER]"); * Folder response = foldersClient.moveFolderAsync(name, destinationParent).get(); * } * }</pre> * * @param name Required. The resource name of the Folder to move. Must be of the form * folders/{folder_id} * @param destinationParent Required. The resource name of the folder or organization which should * be the folder's new parent. Must be of the form `folders/{folder_id}` or * `organizations/{org_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture<Folder, MoveFolderMetadata> moveFolderAsync( String name, ResourceName destinationParent) { MoveFolderRequest request = MoveFolderRequest.newBuilder() .setName(name) .setDestinationParent(destinationParent == null ? null : destinationParent.toString()) .build(); return moveFolderAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Moves a folder under a new resource parent. Returns an `Operation` which can be used to track * the progress of the folder move workflow. Upon success, the `Operation.response` field will be * populated with the moved folder. Upon failure, a `FolderOperationError` categorizing the * failure cause will be returned - if the failure occurs synchronously then the * `FolderOperationError` will be returned in the `Status.details` field. If it occurs * asynchronously, then the FolderOperation will be returned in the `Operation.error` field. In * addition, the `Operation.metadata` field will be populated with a `FolderOperation` message as * an aid to stateless clients. Folder moves will be rejected if they violate either the naming, * height, or fanout constraints described in the * [CreateFolder][google.cloud.resourcemanager.v3.Folders.CreateFolder] documentation. The caller * must have `resourcemanager.folders.move` permission on the folder's current and proposed new * parent. * * <p>Sample code: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * String name = FolderName.of("[FOLDER]").toString(); * String destinationParent = FolderName.of("[FOLDER]").toString(); * Folder response = foldersClient.moveFolderAsync(name, destinationParent).get(); * } * }</pre> * * @param name Required. The resource name of the Folder to move. Must be of the form * folders/{folder_id} * @param destinationParent Required. The resource name of the folder or organization which should * be the folder's new parent. Must be of the form `folders/{folder_id}` or * `organizations/{org_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture<Folder, MoveFolderMetadata> moveFolderAsync( String name, String destinationParent) { MoveFolderRequest request = MoveFolderRequest.newBuilder() .setName(name) .setDestinationParent(destinationParent) .build(); return moveFolderAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Moves a folder under a new resource parent. Returns an `Operation` which can be used to track * the progress of the folder move workflow. Upon success, the `Operation.response` field will be * populated with the moved folder. Upon failure, a `FolderOperationError` categorizing the * failure cause will be returned - if the failure occurs synchronously then the * `FolderOperationError` will be returned in the `Status.details` field. If it occurs * asynchronously, then the FolderOperation will be returned in the `Operation.error` field. In * addition, the `Operation.metadata` field will be populated with a `FolderOperation` message as * an aid to stateless clients. Folder moves will be rejected if they violate either the naming, * height, or fanout constraints described in the * [CreateFolder][google.cloud.resourcemanager.v3.Folders.CreateFolder] documentation. The caller * must have `resourcemanager.folders.move` permission on the folder's current and proposed new * parent. * * <p>Sample code: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * MoveFolderRequest request = * MoveFolderRequest.newBuilder() * .setName(FolderName.of("[FOLDER]").toString()) * .setDestinationParent(FolderName.of("[FOLDER]").toString()) * .build(); * Folder response = foldersClient.moveFolderAsync(request).get(); * } * }</pre> * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture<Folder, MoveFolderMetadata> moveFolderAsync( MoveFolderRequest request) { return moveFolderOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Moves a folder under a new resource parent. Returns an `Operation` which can be used to track * the progress of the folder move workflow. Upon success, the `Operation.response` field will be * populated with the moved folder. Upon failure, a `FolderOperationError` categorizing the * failure cause will be returned - if the failure occurs synchronously then the * `FolderOperationError` will be returned in the `Status.details` field. If it occurs * asynchronously, then the FolderOperation will be returned in the `Operation.error` field. In * addition, the `Operation.metadata` field will be populated with a `FolderOperation` message as * an aid to stateless clients. Folder moves will be rejected if they violate either the naming, * height, or fanout constraints described in the * [CreateFolder][google.cloud.resourcemanager.v3.Folders.CreateFolder] documentation. The caller * must have `resourcemanager.folders.move` permission on the folder's current and proposed new * parent. * * <p>Sample code: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * MoveFolderRequest request = * MoveFolderRequest.newBuilder() * .setName(FolderName.of("[FOLDER]").toString()) * .setDestinationParent(FolderName.of("[FOLDER]").toString()) * .build(); * OperationFuture<Folder, MoveFolderMetadata> future = * foldersClient.moveFolderOperationCallable().futureCall(request); * // Do something. * Folder response = future.get(); * } * }</pre> */ public final OperationCallable<MoveFolderRequest, Folder, MoveFolderMetadata> moveFolderOperationCallable() { return stub.moveFolderOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Moves a folder under a new resource parent. Returns an `Operation` which can be used to track * the progress of the folder move workflow. Upon success, the `Operation.response` field will be * populated with the moved folder. Upon failure, a `FolderOperationError` categorizing the * failure cause will be returned - if the failure occurs synchronously then the * `FolderOperationError` will be returned in the `Status.details` field. If it occurs * asynchronously, then the FolderOperation will be returned in the `Operation.error` field. In * addition, the `Operation.metadata` field will be populated with a `FolderOperation` message as * an aid to stateless clients. Folder moves will be rejected if they violate either the naming, * height, or fanout constraints described in the * [CreateFolder][google.cloud.resourcemanager.v3.Folders.CreateFolder] documentation. The caller * must have `resourcemanager.folders.move` permission on the folder's current and proposed new * parent. * * <p>Sample code: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * MoveFolderRequest request = * MoveFolderRequest.newBuilder() * .setName(FolderName.of("[FOLDER]").toString()) * .setDestinationParent(FolderName.of("[FOLDER]").toString()) * .build(); * ApiFuture<Operation> future = foldersClient.moveFolderCallable().futureCall(request); * // Do something. * Operation response = future.get(); * } * }</pre> */ public final UnaryCallable<MoveFolderRequest, Operation> moveFolderCallable() { return stub.moveFolderCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Requests deletion of a folder. The folder is moved into the * [DELETE_REQUESTED][google.cloud.resourcemanager.v3.Folder.State.DELETE_REQUESTED] state * immediately, and is deleted approximately 30 days later. This method may only be called on an * empty folder, where a folder is empty if it doesn't contain any folders or projects in the * [ACTIVE][google.cloud.resourcemanager.v3.Folder.State.ACTIVE] state. If called on a folder in * [DELETE_REQUESTED][google.cloud.resourcemanager.v3.Folder.State.DELETE_REQUESTED] state the * operation will result in a no-op success. The caller must have `resourcemanager.folders.delete` * permission on the identified folder. * * <p>Sample code: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * FolderName name = FolderName.of("[FOLDER]"); * Folder response = foldersClient.deleteFolderAsync(name).get(); * } * }</pre> * * @param name Required. The resource name of the folder to be deleted. Must be of the form * `folders/{folder_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture<Folder, DeleteFolderMetadata> deleteFolderAsync(FolderName name) { DeleteFolderRequest request = DeleteFolderRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteFolderAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Requests deletion of a folder. The folder is moved into the * [DELETE_REQUESTED][google.cloud.resourcemanager.v3.Folder.State.DELETE_REQUESTED] state * immediately, and is deleted approximately 30 days later. This method may only be called on an * empty folder, where a folder is empty if it doesn't contain any folders or projects in the * [ACTIVE][google.cloud.resourcemanager.v3.Folder.State.ACTIVE] state. If called on a folder in * [DELETE_REQUESTED][google.cloud.resourcemanager.v3.Folder.State.DELETE_REQUESTED] state the * operation will result in a no-op success. The caller must have `resourcemanager.folders.delete` * permission on the identified folder. * * <p>Sample code: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * String name = FolderName.of("[FOLDER]").toString(); * Folder response = foldersClient.deleteFolderAsync(name).get(); * } * }</pre> * * @param name Required. The resource name of the folder to be deleted. Must be of the form * `folders/{folder_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture<Folder, DeleteFolderMetadata> deleteFolderAsync(String name) { DeleteFolderRequest request = DeleteFolderRequest.newBuilder().setName(name).build(); return deleteFolderAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Requests deletion of a folder. The folder is moved into the * [DELETE_REQUESTED][google.cloud.resourcemanager.v3.Folder.State.DELETE_REQUESTED] state * immediately, and is deleted approximately 30 days later. This method may only be called on an * empty folder, where a folder is empty if it doesn't contain any folders or projects in the * [ACTIVE][google.cloud.resourcemanager.v3.Folder.State.ACTIVE] state. If called on a folder in * [DELETE_REQUESTED][google.cloud.resourcemanager.v3.Folder.State.DELETE_REQUESTED] state the * operation will result in a no-op success. The caller must have `resourcemanager.folders.delete` * permission on the identified folder. * * <p>Sample code: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * DeleteFolderRequest request = * DeleteFolderRequest.newBuilder().setName(FolderName.of("[FOLDER]").toString()).build(); * Folder response = foldersClient.deleteFolderAsync(request).get(); * } * }</pre> * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture<Folder, DeleteFolderMetadata> deleteFolderAsync( DeleteFolderRequest request) { return deleteFolderOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Requests deletion of a folder. The folder is moved into the * [DELETE_REQUESTED][google.cloud.resourcemanager.v3.Folder.State.DELETE_REQUESTED] state * immediately, and is deleted approximately 30 days later. This method may only be called on an * empty folder, where a folder is empty if it doesn't contain any folders or projects in the * [ACTIVE][google.cloud.resourcemanager.v3.Folder.State.ACTIVE] state. If called on a folder in * [DELETE_REQUESTED][google.cloud.resourcemanager.v3.Folder.State.DELETE_REQUESTED] state the * operation will result in a no-op success. The caller must have `resourcemanager.folders.delete` * permission on the identified folder. * * <p>Sample code: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * DeleteFolderRequest request = * DeleteFolderRequest.newBuilder().setName(FolderName.of("[FOLDER]").toString()).build(); * OperationFuture<Folder, DeleteFolderMetadata> future = * foldersClient.deleteFolderOperationCallable().futureCall(request); * // Do something. * Folder response = future.get(); * } * }</pre> */ public final OperationCallable<DeleteFolderRequest, Folder, DeleteFolderMetadata> deleteFolderOperationCallable() { return stub.deleteFolderOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Requests deletion of a folder. The folder is moved into the * [DELETE_REQUESTED][google.cloud.resourcemanager.v3.Folder.State.DELETE_REQUESTED] state * immediately, and is deleted approximately 30 days later. This method may only be called on an * empty folder, where a folder is empty if it doesn't contain any folders or projects in the * [ACTIVE][google.cloud.resourcemanager.v3.Folder.State.ACTIVE] state. If called on a folder in * [DELETE_REQUESTED][google.cloud.resourcemanager.v3.Folder.State.DELETE_REQUESTED] state the * operation will result in a no-op success. The caller must have `resourcemanager.folders.delete` * permission on the identified folder. * * <p>Sample code: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * DeleteFolderRequest request = * DeleteFolderRequest.newBuilder().setName(FolderName.of("[FOLDER]").toString()).build(); * ApiFuture<Operation> future = foldersClient.deleteFolderCallable().futureCall(request); * // Do something. * Operation response = future.get(); * } * }</pre> */ public final UnaryCallable<DeleteFolderRequest, Operation> deleteFolderCallable() { return stub.deleteFolderCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Cancels the deletion request for a folder. This method may be called on a folder in any state. * If the folder is in the [ACTIVE][google.cloud.resourcemanager.v3.Folder.State.ACTIVE] state the * result will be a no-op success. In order to succeed, the folder's parent must be in the * [ACTIVE][google.cloud.resourcemanager.v3.Folder.State.ACTIVE] state. In addition, reintroducing * the folder into the tree must not violate folder naming, height, and fanout constraints * described in the [CreateFolder][google.cloud.resourcemanager.v3.Folders.CreateFolder] * documentation. The caller must have `resourcemanager.folders.undelete` permission on the * identified folder. * * <p>Sample code: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * FolderName name = FolderName.of("[FOLDER]"); * Folder response = foldersClient.undeleteFolderAsync(name).get(); * } * }</pre> * * @param name Required. The resource name of the folder to undelete. Must be of the form * `folders/{folder_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture<Folder, UndeleteFolderMetadata> undeleteFolderAsync( FolderName name) { UndeleteFolderRequest request = UndeleteFolderRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return undeleteFolderAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Cancels the deletion request for a folder. This method may be called on a folder in any state. * If the folder is in the [ACTIVE][google.cloud.resourcemanager.v3.Folder.State.ACTIVE] state the * result will be a no-op success. In order to succeed, the folder's parent must be in the * [ACTIVE][google.cloud.resourcemanager.v3.Folder.State.ACTIVE] state. In addition, reintroducing * the folder into the tree must not violate folder naming, height, and fanout constraints * described in the [CreateFolder][google.cloud.resourcemanager.v3.Folders.CreateFolder] * documentation. The caller must have `resourcemanager.folders.undelete` permission on the * identified folder. * * <p>Sample code: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * String name = FolderName.of("[FOLDER]").toString(); * Folder response = foldersClient.undeleteFolderAsync(name).get(); * } * }</pre> * * @param name Required. The resource name of the folder to undelete. Must be of the form * `folders/{folder_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture<Folder, UndeleteFolderMetadata> undeleteFolderAsync(String name) { UndeleteFolderRequest request = UndeleteFolderRequest.newBuilder().setName(name).build(); return undeleteFolderAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Cancels the deletion request for a folder. This method may be called on a folder in any state. * If the folder is in the [ACTIVE][google.cloud.resourcemanager.v3.Folder.State.ACTIVE] state the * result will be a no-op success. In order to succeed, the folder's parent must be in the * [ACTIVE][google.cloud.resourcemanager.v3.Folder.State.ACTIVE] state. In addition, reintroducing * the folder into the tree must not violate folder naming, height, and fanout constraints * described in the [CreateFolder][google.cloud.resourcemanager.v3.Folders.CreateFolder] * documentation. The caller must have `resourcemanager.folders.undelete` permission on the * identified folder. * * <p>Sample code: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * UndeleteFolderRequest request = * UndeleteFolderRequest.newBuilder().setName(FolderName.of("[FOLDER]").toString()).build(); * Folder response = foldersClient.undeleteFolderAsync(request).get(); * } * }</pre> * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture<Folder, UndeleteFolderMetadata> undeleteFolderAsync( UndeleteFolderRequest request) { return undeleteFolderOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Cancels the deletion request for a folder. This method may be called on a folder in any state. * If the folder is in the [ACTIVE][google.cloud.resourcemanager.v3.Folder.State.ACTIVE] state the * result will be a no-op success. In order to succeed, the folder's parent must be in the * [ACTIVE][google.cloud.resourcemanager.v3.Folder.State.ACTIVE] state. In addition, reintroducing * the folder into the tree must not violate folder naming, height, and fanout constraints * described in the [CreateFolder][google.cloud.resourcemanager.v3.Folders.CreateFolder] * documentation. The caller must have `resourcemanager.folders.undelete` permission on the * identified folder. * * <p>Sample code: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * UndeleteFolderRequest request = * UndeleteFolderRequest.newBuilder().setName(FolderName.of("[FOLDER]").toString()).build(); * OperationFuture<Folder, UndeleteFolderMetadata> future = * foldersClient.undeleteFolderOperationCallable().futureCall(request); * // Do something. * Folder response = future.get(); * } * }</pre> */ public final OperationCallable<UndeleteFolderRequest, Folder, UndeleteFolderMetadata> undeleteFolderOperationCallable() { return stub.undeleteFolderOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Cancels the deletion request for a folder. This method may be called on a folder in any state. * If the folder is in the [ACTIVE][google.cloud.resourcemanager.v3.Folder.State.ACTIVE] state the * result will be a no-op success. In order to succeed, the folder's parent must be in the * [ACTIVE][google.cloud.resourcemanager.v3.Folder.State.ACTIVE] state. In addition, reintroducing * the folder into the tree must not violate folder naming, height, and fanout constraints * described in the [CreateFolder][google.cloud.resourcemanager.v3.Folders.CreateFolder] * documentation. The caller must have `resourcemanager.folders.undelete` permission on the * identified folder. * * <p>Sample code: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * UndeleteFolderRequest request = * UndeleteFolderRequest.newBuilder().setName(FolderName.of("[FOLDER]").toString()).build(); * ApiFuture<Operation> future = foldersClient.undeleteFolderCallable().futureCall(request); * // Do something. * Operation response = future.get(); * } * }</pre> */ public final UnaryCallable<UndeleteFolderRequest, Operation> undeleteFolderCallable() { return stub.undeleteFolderCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets the access control policy for a folder. The returned policy may be empty if no such policy * or resource exists. The `resource` field should be the folder's resource name, for example: * "folders/1234". The caller must have `resourcemanager.folders.getIamPolicy` permission on the * identified folder. * * <p>Sample code: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * ResourceName resource = FolderName.of("[FOLDER]"); * Policy response = foldersClient.getIamPolicy(resource); * } * }</pre> * * @param resource REQUIRED: The resource for which the policy is being requested. See the * operation documentation for the appropriate value for this field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Policy getIamPolicy(ResourceName resource) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) .build(); return getIamPolicy(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets the access control policy for a folder. The returned policy may be empty if no such policy * or resource exists. The `resource` field should be the folder's resource name, for example: * "folders/1234". The caller must have `resourcemanager.folders.getIamPolicy` permission on the * identified folder. * * <p>Sample code: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * String resource = FolderName.of("[FOLDER]").toString(); * Policy response = foldersClient.getIamPolicy(resource); * } * }</pre> * * @param resource REQUIRED: The resource for which the policy is being requested. See the * operation documentation for the appropriate value for this field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Policy getIamPolicy(String resource) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().setResource(resource).build(); return getIamPolicy(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets the access control policy for a folder. The returned policy may be empty if no such policy * or resource exists. The `resource` field should be the folder's resource name, for example: * "folders/1234". The caller must have `resourcemanager.folders.getIamPolicy` permission on the * identified folder. * * <p>Sample code: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * GetIamPolicyRequest request = * GetIamPolicyRequest.newBuilder() * .setResource(FolderName.of("[FOLDER]").toString()) * .setOptions(GetPolicyOptions.newBuilder().build()) * .build(); * Policy response = foldersClient.getIamPolicy(request); * } * }</pre> * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Policy getIamPolicy(GetIamPolicyRequest request) { return getIamPolicyCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets the access control policy for a folder. The returned policy may be empty if no such policy * or resource exists. The `resource` field should be the folder's resource name, for example: * "folders/1234". The caller must have `resourcemanager.folders.getIamPolicy` permission on the * identified folder. * * <p>Sample code: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * GetIamPolicyRequest request = * GetIamPolicyRequest.newBuilder() * .setResource(FolderName.of("[FOLDER]").toString()) * .setOptions(GetPolicyOptions.newBuilder().build()) * .build(); * ApiFuture<Policy> future = foldersClient.getIamPolicyCallable().futureCall(request); * // Do something. * Policy response = future.get(); * } * }</pre> */ public final UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() { return stub.getIamPolicyCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Sets the access control policy on a folder, replacing any existing policy. The `resource` field * should be the folder's resource name, for example: "folders/1234". The caller must have * `resourcemanager.folders.setIamPolicy` permission on the identified folder. * * <p>Sample code: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * ResourceName resource = FolderName.of("[FOLDER]"); * Policy policy = Policy.newBuilder().build(); * Policy response = foldersClient.setIamPolicy(resource, policy); * } * }</pre> * * @param resource REQUIRED: The resource for which the policy is being specified. See the * operation documentation for the appropriate value for this field. * @param policy REQUIRED: The complete policy to be applied to the `resource`. The size of the * policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud * Platform services (such as Projects) might reject them. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Policy setIamPolicy(ResourceName resource, Policy policy) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) .setPolicy(policy) .build(); return setIamPolicy(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Sets the access control policy on a folder, replacing any existing policy. The `resource` field * should be the folder's resource name, for example: "folders/1234". The caller must have * `resourcemanager.folders.setIamPolicy` permission on the identified folder. * * <p>Sample code: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * String resource = FolderName.of("[FOLDER]").toString(); * Policy policy = Policy.newBuilder().build(); * Policy response = foldersClient.setIamPolicy(resource, policy); * } * }</pre> * * @param resource REQUIRED: The resource for which the policy is being specified. See the * operation documentation for the appropriate value for this field. * @param policy REQUIRED: The complete policy to be applied to the `resource`. The size of the * policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud * Platform services (such as Projects) might reject them. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Policy setIamPolicy(String resource, Policy policy) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder().setResource(resource).setPolicy(policy).build(); return setIamPolicy(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Sets the access control policy on a folder, replacing any existing policy. The `resource` field * should be the folder's resource name, for example: "folders/1234". The caller must have * `resourcemanager.folders.setIamPolicy` permission on the identified folder. * * <p>Sample code: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * SetIamPolicyRequest request = * SetIamPolicyRequest.newBuilder() * .setResource(FolderName.of("[FOLDER]").toString()) * .setPolicy(Policy.newBuilder().build()) * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); * Policy response = foldersClient.setIamPolicy(request); * } * }</pre> * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Policy setIamPolicy(SetIamPolicyRequest request) { return setIamPolicyCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Sets the access control policy on a folder, replacing any existing policy. The `resource` field * should be the folder's resource name, for example: "folders/1234". The caller must have * `resourcemanager.folders.setIamPolicy` permission on the identified folder. * * <p>Sample code: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * SetIamPolicyRequest request = * SetIamPolicyRequest.newBuilder() * .setResource(FolderName.of("[FOLDER]").toString()) * .setPolicy(Policy.newBuilder().build()) * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); * ApiFuture<Policy> future = foldersClient.setIamPolicyCallable().futureCall(request); * // Do something. * Policy response = future.get(); * } * }</pre> */ public final UnaryCallable<SetIamPolicyRequest, Policy> setIamPolicyCallable() { return stub.setIamPolicyCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Returns permissions that a caller has on the specified folder. The `resource` field should be * the folder's resource name, for example: "folders/1234". * * <p>There are no permissions required for making this API call. * * <p>Sample code: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * ResourceName resource = FolderName.of("[FOLDER]"); * List<String> permissions = new ArrayList<>(); * TestIamPermissionsResponse response = foldersClient.testIamPermissions(resource, permissions); * } * }</pre> * * @param resource REQUIRED: The resource for which the policy detail is being requested. See the * operation documentation for the appropriate value for this field. * @param permissions The set of permissions to check for the `resource`. Permissions with * wildcards (such as '&#42;' or 'storage.&#42;') are not allowed. For more information see * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TestIamPermissionsResponse testIamPermissions( ResourceName resource, List<String> permissions) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) .addAllPermissions(permissions) .build(); return testIamPermissions(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Returns permissions that a caller has on the specified folder. The `resource` field should be * the folder's resource name, for example: "folders/1234". * * <p>There are no permissions required for making this API call. * * <p>Sample code: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * String resource = FolderName.of("[FOLDER]").toString(); * List<String> permissions = new ArrayList<>(); * TestIamPermissionsResponse response = foldersClient.testIamPermissions(resource, permissions); * } * }</pre> * * @param resource REQUIRED: The resource for which the policy detail is being requested. See the * operation documentation for the appropriate value for this field. * @param permissions The set of permissions to check for the `resource`. Permissions with * wildcards (such as '&#42;' or 'storage.&#42;') are not allowed. For more information see * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TestIamPermissionsResponse testIamPermissions( String resource, List<String> permissions) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() .setResource(resource) .addAllPermissions(permissions) .build(); return testIamPermissions(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Returns permissions that a caller has on the specified folder. The `resource` field should be * the folder's resource name, for example: "folders/1234". * * <p>There are no permissions required for making this API call. * * <p>Sample code: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * TestIamPermissionsRequest request = * TestIamPermissionsRequest.newBuilder() * .setResource(FolderName.of("[FOLDER]").toString()) * .addAllPermissions(new ArrayList<String>()) * .build(); * TestIamPermissionsResponse response = foldersClient.testIamPermissions(request); * } * }</pre> * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { return testIamPermissionsCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Returns permissions that a caller has on the specified folder. The `resource` field should be * the folder's resource name, for example: "folders/1234". * * <p>There are no permissions required for making this API call. * * <p>Sample code: * * <pre>{@code * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FoldersClient foldersClient = FoldersClient.create()) { * TestIamPermissionsRequest request = * TestIamPermissionsRequest.newBuilder() * .setResource(FolderName.of("[FOLDER]").toString()) * .addAllPermissions(new ArrayList<String>()) * .build(); * ApiFuture<TestIamPermissionsResponse> future = * foldersClient.testIamPermissionsCallable().futureCall(request); * // Do something. * TestIamPermissionsResponse response = future.get(); * } * }</pre> */ public final UnaryCallable<TestIamPermissionsRequest, TestIamPermissionsResponse> testIamPermissionsCallable() { return stub.testIamPermissionsCallable(); } @Override public final void close() { stub.close(); } @Override public void shutdown() { stub.shutdown(); } @Override public boolean isShutdown() { return stub.isShutdown(); } @Override public boolean isTerminated() { return stub.isTerminated(); } @Override public void shutdownNow() { stub.shutdownNow(); } @Override public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { return stub.awaitTermination(duration, unit); } public static class ListFoldersPagedResponse extends AbstractPagedListResponse< ListFoldersRequest, ListFoldersResponse, Folder, ListFoldersPage, ListFoldersFixedSizeCollection> { public static ApiFuture<ListFoldersPagedResponse> createAsync( PageContext<ListFoldersRequest, ListFoldersResponse, Folder> context, ApiFuture<ListFoldersResponse> futureResponse) { ApiFuture<ListFoldersPage> futurePage = ListFoldersPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, input -> new ListFoldersPagedResponse(input), MoreExecutors.directExecutor()); } private ListFoldersPagedResponse(ListFoldersPage page) { super(page, ListFoldersFixedSizeCollection.createEmptyCollection()); } } public static class ListFoldersPage extends AbstractPage<ListFoldersRequest, ListFoldersResponse, Folder, ListFoldersPage> { private ListFoldersPage( PageContext<ListFoldersRequest, ListFoldersResponse, Folder> context, ListFoldersResponse response) { super(context, response); } private static ListFoldersPage createEmptyPage() { return new ListFoldersPage(null, null); } @Override protected ListFoldersPage createPage( PageContext<ListFoldersRequest, ListFoldersResponse, Folder> context, ListFoldersResponse response) { return new ListFoldersPage(context, response); } @Override public ApiFuture<ListFoldersPage> createPageAsync( PageContext<ListFoldersRequest, ListFoldersResponse, Folder> context, ApiFuture<ListFoldersResponse> futureResponse) { return super.createPageAsync(context, futureResponse); } } public static class ListFoldersFixedSizeCollection extends AbstractFixedSizeCollection< ListFoldersRequest, ListFoldersResponse, Folder, ListFoldersPage, ListFoldersFixedSizeCollection> { private ListFoldersFixedSizeCollection(List<ListFoldersPage> pages, int collectionSize) { super(pages, collectionSize); } private static ListFoldersFixedSizeCollection createEmptyCollection() { return new ListFoldersFixedSizeCollection(null, 0); } @Override protected ListFoldersFixedSizeCollection createCollection( List<ListFoldersPage> pages, int collectionSize) { return new ListFoldersFixedSizeCollection(pages, collectionSize); } } public static class SearchFoldersPagedResponse extends AbstractPagedListResponse< SearchFoldersRequest, SearchFoldersResponse, Folder, SearchFoldersPage, SearchFoldersFixedSizeCollection> { public static ApiFuture<SearchFoldersPagedResponse> createAsync( PageContext<SearchFoldersRequest, SearchFoldersResponse, Folder> context, ApiFuture<SearchFoldersResponse> futureResponse) { ApiFuture<SearchFoldersPage> futurePage = SearchFoldersPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, input -> new SearchFoldersPagedResponse(input), MoreExecutors.directExecutor()); } private SearchFoldersPagedResponse(SearchFoldersPage page) { super(page, SearchFoldersFixedSizeCollection.createEmptyCollection()); } } public static class SearchFoldersPage extends AbstractPage<SearchFoldersRequest, SearchFoldersResponse, Folder, SearchFoldersPage> { private SearchFoldersPage( PageContext<SearchFoldersRequest, SearchFoldersResponse, Folder> context, SearchFoldersResponse response) { super(context, response); } private static SearchFoldersPage createEmptyPage() { return new SearchFoldersPage(null, null); } @Override protected SearchFoldersPage createPage( PageContext<SearchFoldersRequest, SearchFoldersResponse, Folder> context, SearchFoldersResponse response) { return new SearchFoldersPage(context, response); } @Override public ApiFuture<SearchFoldersPage> createPageAsync( PageContext<SearchFoldersRequest, SearchFoldersResponse, Folder> context, ApiFuture<SearchFoldersResponse> futureResponse) { return super.createPageAsync(context, futureResponse); } } public static class SearchFoldersFixedSizeCollection extends AbstractFixedSizeCollection< SearchFoldersRequest, SearchFoldersResponse, Folder, SearchFoldersPage, SearchFoldersFixedSizeCollection> { private SearchFoldersFixedSizeCollection(List<SearchFoldersPage> pages, int collectionSize) { super(pages, collectionSize); } private static SearchFoldersFixedSizeCollection createEmptyCollection() { return new SearchFoldersFixedSizeCollection(null, 0); } @Override protected SearchFoldersFixedSizeCollection createCollection( List<SearchFoldersPage> pages, int collectionSize) { return new SearchFoldersFixedSizeCollection(pages, collectionSize); } } }
ea0a094eb7e12ee59ff9efb7925fe07ddabd5802
ab08b594638b6223beecdfc24b99865950c8e166
/src/main/java/com/rsel/dto/DataSource.java
ec2a6eb4169d190f0a99dbc06dd9deaf6f00dd59
[ "Apache-2.0" ]
permissive
RaviTejaBollimuntha/RS-E-Learning-Blog-master
ebb2a36e99d6dc701fb46d70a85cca709d1a39a4
fdd80272b9b1d2b76857f134af22bdfae69f0da4
refs/heads/master
2020-03-24T23:27:51.319366
2018-11-04T04:41:32
2018-11-04T04:41:32
143,136,610
1
0
null
null
null
null
UTF-8
Java
false
false
1,711
java
package com.rsel.dto; /** ย * Establish a parameter object for the database connection ย * Created on 2017/3/4. ย */ public class DataSource { /** ย ย ย ย ย * Database url ย ย ย ย ย */ private String url; /** ย ย ย ย ย * database username ย ย ย ย ย */ private String username; /** ย ย ย ย ย * Database password ย ย ย ย ย */ private String password; /** ย ย ย ย ย * Database driver name ย ย ย ย ย */ private String drivercClassName; /** ย ย ย ย ย * Database name ย ย ย ย ย */ private String dbName; public String getDbName() { return dbName; } public void setDbName(String dbName) { this.dbName = dbName; } public String getUrl() { return url; } public String getUsername() { return username; } public String getPassword() { return password; } public String getDrivercClassName() { return drivercClassName; } public void setUrl(String url) { this.url = url; } public void setUsername(String username) { this.username = username; } public void setPassword(String password) { this.password = password; } public void setDrivercClassName(String drivercClassName) { this.drivercClassName = drivercClassName; } @Override public String toString() { return "DataSource{" + "url='" + url + '\'' + ", username='" + username + '\'' + ", password='" + password + '\'' + ", drivercClassName='" + drivercClassName + '\'' + ", dbName='" + dbName + '\'' + '}'; } }
b9eba6d9ee3ee09e61fd752dd264f5e8e038d5c4
542ab01cdb857ae3e44e328f213d3d8002110b31
/Factors of a number/Main.java
6c0de2dbdecf8a152de8d4cc0c0b29580952a8ae
[]
no_license
RiddhiKotecha/Playground
caf079e3809c7c8489339e6aa4f5e9cb0111dccd
2d4a8829f14ea2573913e4b6792171eb4182ccc4
refs/heads/master
2020-04-15T15:40:52.778851
2019-05-28T22:53:39
2019-05-28T22:53:39
164,804,098
0
0
null
null
null
null
UTF-8
Java
false
false
336
java
import java.util.Scanner; class Main{ public static void main (String[] args) { // Type your code here Scanner in=new Scanner(System.in); int num=in.nextInt(); for(int fact=1;fact<=num;fact++) { if(num%fact==0) System.out.println(fact); } } }
0ab0ae942a2fc47d4db29811cbc9d7490e1e6d03
088c627950d9937cd8e4c13da8a68d0b676dce36
/src/main/java/com/example/oauth/AuthorizationServerConfiguration.java
a96ffbc4a955442e6b39f2c8f2f90ffb9a659376
[]
no_license
646950117/oauth
3a7a6da44639ad26d7b73d0b2ea7ba08cc96f864
77055bcdd52bf4d62712eb293f66f15fb15b4a70
refs/heads/master
2020-05-02T15:08:25.376748
2019-03-27T16:36:20
2019-03-27T16:36:20
178,032,177
0
0
null
null
null
null
UTF-8
Java
false
false
2,699
java
package com.example.oauth; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.context.EnvironmentAware; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.core.env.Environment; import org.springframework.security.authentication.AuthenticationManager; import org.springframework.security.oauth2.config.annotation.configurers.ClientDetailsServiceConfigurer; import org.springframework.security.oauth2.config.annotation.web.configuration.AuthorizationServerConfigurerAdapter; import org.springframework.security.oauth2.config.annotation.web.configuration.EnableAuthorizationServer; import org.springframework.security.oauth2.config.annotation.web.configurers.AuthorizationServerEndpointsConfigurer; import org.springframework.security.oauth2.provider.token.TokenStore; import org.springframework.security.oauth2.provider.token.store.InMemoryTokenStore; @Configuration @EnableAuthorizationServer public class AuthorizationServerConfiguration extends AuthorizationServerConfigurerAdapter { private Logger logger = LoggerFactory.getLogger(AuthorizationServerConfiguration.class); private static final String ENV_OAUTH = "authentication.oauth."; private static final String PROP_CLIENTID = "clientid"; private static final String PROP_SECRET = "secret"; private static final String PROP_TOKEN_VALIDITY_SECONDS = "tokenValidityInSeconds"; @Autowired @Qualifier("authenticationManagerBean")//่ฎค่ฏๆ–นๅผ private AuthenticationManager authenticationManager ; @Bean public TokenStore tokenStore(){ //่ฟ™ไธชๆ˜ฏๅŸบไบŽJDBC็š„ๅฎž็Žฐ๏ผŒไปค็‰Œ๏ผˆAccess Token๏ผ‰ไผšไฟๅญ˜ๅˆฐๆ•ฐๆฎๅบ“ return new InMemoryTokenStore(); } @Override public void configure(AuthorizationServerEndpointsConfigurer endpoints) throws Exception { endpoints.tokenStore(tokenStore()) .authenticationManager(authenticationManager) ; } public void configure(ClientDetailsServiceConfigurer clients) throws Exception { clients.inMemory() // ไฝฟ็”จin-memoryๅญ˜ๅ‚จ .withClient("")//client_id็”จๆฅๆ ‡่ฏ†ๅฎขๆˆท็š„Id .scopes("read", "write") //ๅ…่ฎธๆŽˆๆƒ่Œƒๅ›ด .authorities("ROLE_ADMIN","ROLE_USER")//ๅฎขๆˆท็ซฏๅฏไปฅไฝฟ็”จ็š„ๆƒ้™ .authorizedGrantTypes("password", "refresh_token")//ๅ…่ฎธๆŽˆๆƒ็ฑปๅž‹ .secret("")//secretๅฎขๆˆท็ซฏๅฎ‰ๅ…จ็  .accessTokenValiditySeconds(1800); } }
[ "l" ]
l
14caf7e2a98f396fe3a48b6226f340290e173841
3ebd689c0e6555db70ad87040c2a5b06ccb77b16
/deprecated/main/java/org/firescape/server/GameVars.java
657be8877f233cd8e202a0b6d716c162d6c83155
[]
no_license
davehughes/firescape
7984e4bf3df98cff8d6cdb9f4d9671bee2037ff8
65c4e0fbe080f1842b548ffdd220ab686714e2d6
refs/heads/master
2021-05-06T12:22:07.053345
2017-12-08T02:05:09
2017-12-08T02:05:09
113,106,863
0
0
null
2017-12-04T23:26:24
2017-12-04T23:26:24
null
UTF-8
Java
false
false
1,782
java
package org.firescape.server; /** * @author Ent All Game variables that may be tweaked by the Control Panel will be stored here. */ public class GameVars { /** * FireScape's current version. */ public static double projectVersion = 1.1; /** * if the server is running or not. */ public static boolean serverRunning; /** * the Amount of minutes the server saves all profiles (Default) is 15 minutes. */ public static int saveAll = 15; /** * the Server name, will be used when logging in, and anything else that needs to print the server's name. */ public static String serverName = "FireScape Test Bed"; /** * the Server's location it's being hosted at. */ public static String serverLocation = "Australia"; /** * the amount of Users Online. */ public static int usersOnline; /** * the Moderators that are currently Online. */ public static int modsOnline; /** * the Admin's that are currently online. */ public static int adminsOnline; /** * the Maximum amount of users allowed on this server */ public static int maxUsers = 200; /** * User Peak (Since last Shutdown) the most users that have been online. */ public static int userPeak; /** * Experience multiplier - name says it all. */ public static double expMultiplier = 1.0; /** * Arrow delay speed (Default */ public static int rangedDelaySpeed = 2000; /** * the Client version code to verify the correct client connecting. */ public static int clientVersion = 3; /** * the port number */ public static int portNumber = 43594; /** * if fatigue is used or not. */ public static boolean useFatigue = true; }
ab9a43603fd9222663dca298a9bcbf044bf80f40
ac0ed01aca47ee0bc53d71901cb3c4fbba35a68d
/src/main/java/myreader/resource/exception/handler/DefaultExceptionHandler.java
225b6d6a02aa46367c1e99b8d11a9463a4a06a28
[]
no_license
mhcrnl/myreader
d4da12a7b67ce8d7326680a4bdeffd3ebce33ee7
fd2305e8766e9583b3d4546319aa16490b572bf1
refs/heads/master
2021-01-18T04:04:28.091053
2015-08-06T22:41:09
2015-08-06T22:41:09
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,192
java
package myreader.resource.exception.handler; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.core.Ordered; import org.springframework.core.annotation.AnnotationUtils; import org.springframework.core.annotation.Order; import org.springframework.http.HttpStatus; import org.springframework.web.bind.annotation.ControllerAdvice; import org.springframework.web.bind.annotation.ExceptionHandler; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.ResponseStatus; /** * @author Kamill Sokol */ @Order(Ordered.LOWEST_PRECEDENCE) @ControllerAdvice public class DefaultExceptionHandler { private static final Logger log = LoggerFactory.getLogger(DefaultExceptionHandler.class); @ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR) @ResponseBody @ExceptionHandler(Exception.class) public Error exception(Exception e) throws Exception { if (AnnotationUtils.findAnnotation(e.getClass(), ResponseStatus.class) != null) { throw e; } log.error(e.getMessage(), e); return new Error(HttpStatus.INTERNAL_SERVER_ERROR.value(), e.getMessage()); } }
df0a0c8fb35abef003c67fcc422ab2983b84d6c8
11718f30112ba5fa93ec73fef08bdbf13e9a2324
/HelpMe_Spring/src/main/java/com/helpme/controller/ReservationController.java
07b289552d11da5eda62eabc18dd909166296790
[]
no_license
savious2319/HelpMe
2d91d7823cf88e872daef951c5cca6991da3933b
1f428f1309588978331bc07fe6a263cc4aa6efad
refs/heads/master
2023-04-18T03:00:12.193385
2021-04-19T03:51:56
2021-04-19T03:51:56
323,792,358
0
1
null
null
null
null
UTF-8
Java
false
false
5,486
java
package com.helpme.controller; import java.util.HashMap; import javax.servlet.http.HttpServletRequest; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import com.google.gson.JsonObject; import com.helpme.domain.ReservationVO; import com.helpme.service.ClientService; import com.helpme.service.HelperService; import com.helpme.service.ReservationService; import lombok.AllArgsConstructor; import lombok.extern.log4j.Log4j; @RequestMapping("/reservation/") @RestController @AllArgsConstructor @Log4j public class ReservationController { private ReservationService res_service; private ClientService client_service; private HelperService helper_service; //๊ณ ๊ฐ ์˜ˆ์•ฝ @PostMapping(value = "/makeReservation/{clientName}/{datepicker}/", consumes = "application/json", produces = { MediaType.TEXT_PLAIN_VALUE}) public ResponseEntity<String> makeReservation(HttpServletRequest request, @RequestBody ReservationVO res, @PathVariable("clientName") String clientName, @PathVariable("datepicker") String datepicker) { log.info("ReservationVO : " + res); JsonObject jo = new JsonObject(); String helper_id = (String) request.getSession().getAttribute("session_id"); if (!client_service.getClientNameByName(clientName)) { jo.addProperty("check", "fail"); } else { int client_no = client_service.getClientNo(clientName); int points_spent = 0; points_spent = (int) (res.getEndTime() - res.getStartTime()) * helper_service.getFare(helper_id); res.setPointsSpent(points_spent); log.info("client name : " + clientName); log.info("client_no : " + client_no); log.info("service : " + res.getService()); log.info("meetingArea : " + res.getMeetingArea()); log.info("meetingPlace : " + res.getMeetingPlace()); log.info("meetingDate : " + datepicker); log.info("meetingStartTime : " + res.getStartTime()); log.info("meetingEndTime : " + res.getEndTime()); log.info("points_spent : " + res.getPointsSpent()); res.setHelperId(helper_id); res.setClientNo(client_no); //์˜ˆ์•ฝ ๋‚ ์งœ๋ฅผ ๊ฐ€๊ณตํ•˜๋Š” ์ž‘์—… String[] calendar = datepicker.split(" "); String month = ""; switch (calendar[1]) { case "Jan": month = "01"; break; case "Feb": month = "02"; break; case "Mar": month = "03"; break; case "Apr": month = "04"; break; case "May": month = "05"; break; case "Jun": month = "06"; break; case "Jul": month = "07"; break; case "Aug": month = "08"; break; case "Sep": month = "09"; break; case "Oct": month = "10"; break; case "Nov": month = "11"; break; case "Dec": month = "12"; break; } String date = month + "/" + calendar[2] + "/" + calendar[3]; log.info("date : " + date); res.setMeetingDate(date); res_service.insertReservation(res); String res_status = ""; for (ReservationVO r : res_service.getReservationByHelperId(helper_id)) { res_status = r.getResStatus(); } HashMap<String, Object> data = new HashMap<>(); data.put("client_no", client_no); data.put("helper_id", helper_id); int res_no = res_service.getResNo(data); log.info("res_no : " + res_no); String meetingStartTime = res.getStartTime() + ""; String meetingEndTime = res.getEndTime() + ""; if (meetingStartTime.contains(".5")) { meetingStartTime = meetingStartTime.substring(0, meetingStartTime.indexOf(".")) + ":30"; } else { meetingStartTime = meetingStartTime.substring(0, meetingStartTime.indexOf(".")) + ":00"; } if (meetingEndTime.contains(".5")) { meetingEndTime = meetingEndTime.substring(0, meetingEndTime.indexOf(".")) + ":30"; } else { meetingEndTime = meetingEndTime.substring(0, meetingEndTime.indexOf(".")) + ":00"; } log.info("meetingStartTime : " + meetingStartTime); log.info("meetingEndTime : " + meetingEndTime); jo.addProperty("client_no", client_no); jo.addProperty("helper_id", helper_id); jo.addProperty("res_no", res_no); jo.addProperty("clientName", clientName); jo.addProperty("date", date); jo.addProperty("meetingStartTime", meetingStartTime); jo.addProperty("meetingEndTime", meetingEndTime); jo.addProperty("meetingArea", res.getMeetingArea()); jo.addProperty("service", res.getService()); jo.addProperty("pointsSpent", points_spent); jo.addProperty("res_status", res_status); jo.addProperty("check", "success"); } return new ResponseEntity<>(jo.toString(), HttpStatus.OK); } //๊ณ ๊ฐ ์˜ˆ์•ฝ ์ˆ˜์ • ๋ฐ ์ทจ์†Œ @DeleteMapping(value="/deleteReservation/{res_no}", produces= {MediaType.TEXT_PLAIN_VALUE}) public ResponseEntity<String> deleteReservation(@PathVariable("res_no") int res_no){ log.info("res_no : " + res_no); int result = res_service.deleteReservationByResNo(res_no); String resNo = res_no + ""; return result == 1 ? new ResponseEntity<>(resNo, HttpStatus.OK) : new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR); } }
07a0161c64c3b2c45ac5bfbd3060a93613938a51
9a5056482e521ae51fb087a6d2517f4695b8c431
/app/src/main/java/com/udacity/stockhawk/widget/StockWidgetRemoteViewsService.java
864da373f34427c8df02e391aeb0b33f7a3528f9
[]
no_license
fotism23/stock-hawk
30b46f590a2ed93d3e61397833420a4dfe8e774a
88eb82b2e0e6f5da038e1f3a6dab02bc277947e4
refs/heads/master
2021-01-20T18:04:34.804954
2017-05-12T10:53:35
2017-05-12T10:53:35
90,902,842
0
0
null
null
null
null
UTF-8
Java
false
false
3,965
java
package com.udacity.stockhawk.widget; import android.content.Intent; import android.database.Cursor; import android.net.Uri; import android.os.Binder; import android.util.Log; import android.widget.AdapterView; import android.widget.RemoteViews; import android.widget.RemoteViewsService; import com.udacity.stockhawk.R; import com.udacity.stockhawk.data.Contract; public class StockWidgetRemoteViewsService extends RemoteViewsService { @Override public RemoteViewsFactory onGetViewFactory(Intent intent) { return new RemoteViewsFactory() { private Cursor data = null; @Override public void onCreate() { /* Do Nothing */ } @Override public void onDataSetChanged() { if (data != null) { data.close(); } final long identityToken = Binder.clearCallingIdentity(); data = getContentResolver().query(Contract.Quote.URI, new String[]{Contract.Quote._ID, Contract.Quote.COLUMN_SYMBOL, Contract.Quote.COLUMN_PRICE, Contract.Quote.COLUMN_ABSOLUTE_CHANGE, Contract.Quote.COLUMN_PERCENTAGE_CHANGE, Contract.Quote.COLUMN_HISTORY}, null, null, null ); Binder.restoreCallingIdentity(identityToken); } @Override public void onDestroy() { if (data != null) { data.close(); data = null; } } @Override public int getCount() { return data == null ? 0 : data.getCount(); } @Override public RemoteViews getViewAt(int position) { if (position == AdapterView.INVALID_POSITION || data == null || !data.moveToPosition(position)) { return null; } RemoteViews views = new RemoteViews(getPackageName(), R.layout.widget_detail_list_item); views.setTextViewText(R.id.widget_symbol, data.getString(Contract.Quote.POSITION_SYMBOL)); views.setTextViewText(R.id.widget_price, data.getString(Contract.Quote.POSITION_PRICE)); float percentageChange = data.getFloat(Contract.Quote.POSITION_PERCENTAGE_CHANGE); String percentageChangeStr = Float.toString(percentageChange); if (percentageChange > 0) { views.setInt(R.id.widget_change, "setBackgroundResource", R.drawable.percent_change_pill_green); percentageChangeStr = "+" + percentageChangeStr; } else { views.setInt(R.id.widget_change, "setBackgroundResource", R.drawable.percent_change_pill_red); } views.setTextViewText(R.id.widget_change, percentageChangeStr); final Intent fillInIntent = new Intent(); Uri stockUri = Contract.Quote.makeUriForStock(data.getString(Contract.Quote.POSITION_SYMBOL)); fillInIntent.putExtra(getString(R.string.extra_stock_selected), stockUri.toString()); views.setOnClickFillInIntent(R.id.widget_list_item, fillInIntent); return views; } @Override public RemoteViews getLoadingView() { return new RemoteViews(getPackageName(), R.layout.list_item_quote); } @Override public int getViewTypeCount() { return 1; } @Override public long getItemId(int position) { return position; } @Override public boolean hasStableIds() { return true; } }; } }
5d8170ffd5c84475e9aae5dad399eb32e9f923f6
7784b1ba6837c43f4e7f2bb6dbc257451bb1af47
/COS80007 - Advanced Java/Lectures Notes/Week 3 - Graphics 2D Part 1/Graphics2D/src/com/graphics2D/main/AttributeStringDemo.java
7697e337f3c89f7fbab3cd7ec230eb6098b5309e
[]
no_license
szeyick/University
dc35c098da8848c55aa196f9f9a21b695d1c5ca8
0278c7e20862d7e88eb689d95c206dfe5b484446
refs/heads/master
2016-08-09T04:17:26.673148
2015-11-12T11:14:54
2015-11-12T11:14:54
39,887,685
0
0
null
null
null
null
UTF-8
Java
false
false
2,333
java
package com.graphics2D.main; import java.awt.Color; import java.awt.Font; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.RenderingHints; import java.awt.font.TextAttribute; import java.text.AttributedString; import javax.swing.JFrame; import javax.swing.JPanel; import com.graphics2D.frame.MyJFrame; /** * The AttributeStringDemo. * <p> * This class is to demonstrate how we can use an AttributeString * to individually set attributes to individual characters within * a string. The attributes will then be reflected to when the text * string is drawn onto the display. * <p> * @author szeyick * @version 0.1 */ public class AttributeStringDemo { /** * The frame that components will be added to. */ private static JFrame frame; /** * The program main. * @param args - Command line arguments. */ public static void main(String[] args) { frame = new MyJFrame("Graphics2D Attributed String"); frame.add(new MyAttributedStringPanel()); frame.setVisible(true); } /** * The MyAttributedStringPanel. * <p> * This class is responsible for being the component that * is drawn on. * <p> * @author szeyick * @version 0.1 */ private static class MyAttributedStringPanel extends JPanel { /** * Constructor. */ public MyAttributedStringPanel() { setBackground(Color.WHITE); } /** * Draw some text onto the screen and demonstrate * anti-aliasing with RenderingHints. */ @Override protected void paintComponent(Graphics g) { super.paintComponent(g); Graphics2D g2 = (Graphics2D) g; RenderingHints hints = new RenderingHints(null); Font serifFont = new Font("Serif", Font.PLAIN, 50); Font sansSerifFont = new Font("Monospaced", Font.PLAIN, 50); hints.put(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); AttributedString string = new AttributedString("Hello World"); // Set "Hello" to display in serif font. // Set "World" to display in sansserif font. string.addAttribute(TextAttribute.FONT, serifFont, 0, 5); string.addAttribute(TextAttribute.FONT, sansSerifFont, 6, 11); string.addAttribute(TextAttribute.FOREGROUND, Color.BLUE, 6, 11); g2.setRenderingHints(hints); g2.drawString(string.getIterator(), getWidth() / 4, getHeight() / 2); } } }
9da22e9fa816ebb78dbe84135f82662d7044b3fd
64187444babbb7642dff7b8ac8be597b9b52041e
/back/src/main/java/shop/dbdbdip/back/model/product/ProductCreateModel.java
62a027b267a69d23ebe13b3e6ccdc6c86bb5d46f
[]
no_license
BBackJK/dbdbdip
27b264972ee1087ffaa1c7b11e20871b83d41820
9d0fde8e2cbae4843c0e8b4e0c502ab2407e11f2
refs/heads/master
2022-12-13T22:26:29.144500
2020-09-03T04:10:16
2020-09-03T04:10:16
289,208,664
0
0
null
null
null
null
UTF-8
Java
false
false
1,128
java
package shop.dbdbdip.back.model.product; public class ProductCreateModel { private String name; private String category; private String price; private String imagePath; private String description; private int quantity; private boolean sellable; public String getName() { return name; } public void setName(String name) { this.name = name; } public String getCategory() { return category; } public void setCategory(String category) { this.category = category; } public String getPrice() { return price; } public void setPrice(String price) { this.price = price; } public String getImagePath() { return imagePath; } public void setImagePath(String imagePath) { this.imagePath = imagePath; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public int getQuantity() { return quantity; } public void setQuantity(int quantity) { this.quantity = quantity; } public boolean isSellable() { return sellable; } public void setSellable(boolean sellable) { this.sellable = sellable; } }
98f106b50463bfc468ca7d93ba931aa35074587b
c43e64c9f34b785cbd3960d89ee1333b7e35d982
/src/main/java/ex31/App.java
1088e2f4bb9d627a9c996482c0a97df310e33492
[]
no_license
MaverickRaider/Hickey-cop3330-assignment2
3afb06d62c548adffca6de8823f2d1049d604705
ae4ce7a2b7bb3147094299092f9e22122f010f92
refs/heads/master
2023-05-15T19:16:21.177962
2021-06-14T03:09:36
2021-06-14T03:09:36
376,689,771
0
0
null
null
null
null
UTF-8
Java
false
false
2,135
java
/* * UCF COP3330 Summer 2021 Assignment 2 Solution * Copyright 2021 Michael Hickey */ package ex31; import java.util.Scanner; public class App { public static void main(String[] args) { System.out.print("Enter your Resting Pulse: "); int restingPulse = intValidCheck(); System.out.print("Enter your Age: "); int age = intValidCheck(); karvonenHeartRate(restingPulse, age); } public static void karvonenHeartRate(int restingPulse, int age) { double intensity = 55; System.out.println(); System.out.println("Resting Pulse: " + restingPulse + " Age: " + age); System.out.println(); System.out.println("Intensity | Rate"); System.out.println("------------|--------"); for (int i = 0; i <= 8; i++) { double targetHeartRate = (((220 - age) - restingPulse) * (intensity/100)) + restingPulse; int intTargetHeartRate = (int)Math.ceil(targetHeartRate); System.out.println(intensity + "% | " + intTargetHeartRate + " bpm"); intensity = intensity + 5; } } public static String scanIn() { Scanner in = new Scanner(System.in); return in.nextLine(); } public static int intValidCheck() { int val = 0; String input; do { input = scanIn(); if(!letterChecker(input)){ val = Integer.parseInt(input); if (val < 0) { System.out.println("Sorry. That's not a valid input."); } } if (letterChecker(input)) System.out.println("Sorry. That's not a valid input."); } while (letterChecker(input) || val < 0); return val; } public static boolean letterChecker(String str) { boolean isInvalid = false; char[] strCheck = str.toCharArray(); for (int i = 0; i < str.length(); i++) { if (Character.isLetter(strCheck[i])) { isInvalid = true; } } return isInvalid; } }
37a0a0022b52bee1422232f24b2360f1105fdb33
3c67bec216f1b48ee5c99a9e51e5002f85ee5dee
/src/main/java/com/test/model/Error.java
f1ed818deb756f6c9447a1ef6bfc4921b0543885
[]
no_license
RajeswarM-NIIT/v3stage2test
23707cbaa9d2a91ee0febee250d14b4dcdadbe1f
6e9e228a52ef9b751e812ddbe4eb5977e7044929
refs/heads/master
2021-07-12T01:09:36.131206
2017-10-14T09:39:31
2017-10-14T09:39:31
106,914,419
0
0
null
null
null
null
UTF-8
Java
false
false
460
java
package com.test.model; public class Error { private int errorNo; private String errorMessage; public Error(){ } public Error(int n, String m){ errorNo=n; errorMessage=m; } public int getErrorNo() { return errorNo; } public void setErrorNo(int errorNo) { this.errorNo = errorNo; } public String getErrorMessage() { return errorMessage; } public void setErrorMessage(String errorMessage) { this.errorMessage = errorMessage; } }
e42ffb59ab9d9c9192fafe56bd3c29d3ec0f8075
325b43d09442045d6ec2122f8e8585ccabf1406b
/DateExamples/ChristmasDaysTo.java
c5393ce7a191348d54b1505e677ef1c93c24c90d
[]
no_license
MatrixMike/javaLowLevel
56b137d14b1f90a0403476b7c2719ff3e333163a
84444629ea2f889d249d23aeb96a88698cf3a3c9
refs/heads/master
2022-02-25T22:04:17.859696
2022-02-02T09:45:02
2022-02-02T09:45:02
40,069,192
1
1
null
null
null
null
UTF-8
Java
false
false
3,127
java
/* * Friday13.java * * Copyright 2015 Michael Hewitt <[email protected]> * 11 November 2015 * Obviously did not get changed to reflect the title, see Friday13.java * Some code here that does not work correctly over year boundaries */ /* DAY_OF_WEEK was 3 = Tuesday ; 5 =Thursday */ // package Friday13; removed to make compile and run import java.util.stream.LongStream; import java.text.SimpleDateFormat; import java.util.*; public class ChristmasDaysTo { public static void main (String args[]) { Calendar cldr = Calendar.getInstance(); // change 'M' - MM -> 2 digits; MMM -> 3 letters Calendar cldr_now; SimpleDateFormat dateformatter = new SimpleDateFormat("dd-MMM-yyyy"); // ("dd-MM-yyyy E 'at' hh:mm:ss a zzz"); String testStr; long next13th = 99; // testStr = "fred"; int daysAhead = 1000; int first_time_through = 0 ; // change to boolean int dateDiff; System.out.println("Next Friday the thirteenth is on"); for (long n= - cldr.get(Calendar.DAY_OF_MONTH); n<daysAhead; n=n+1) { // n was int now long // find current first of month // F13 -> 13, 6 // Monday 9 -> 9, 2 if ( (cldr.get(Calendar.DAY_OF_MONTH)==13) && (cldr.get(Calendar.DAY_OF_WEEK)==6) ) { testStr = dateformatter.format(cldr.getTime()); System.out.print(testStr); if (first_time_through == 0){ cldr_now = Calendar.getInstance(); dateDiff = (cldr.get(Calendar.DAY_OF_YEAR) - cldr_now.get(Calendar.DAY_OF_YEAR)); System.out.print(" which is in "+ dateDiff + " days. "); first_time_through++ ; // save n and calculate difference between n and today -> i.e. n // display as a next13th = n; System.out.println(" next 13 is " + next13th + " DOM "+ cldr.get(Calendar.DAY_OF_MONTH)); } System.out.println(); } cldr.add(Calendar.DAY_OF_YEAR, +1); } // System.out.println("Number of dates found is "+first_time_through); // wrong - bug // System.out.println(factorialStreamsMJH(16)); // System.out.println(EventsWithStreams(300)); } public static long factorialStreamsMJH(long n){ // StringBuilder sb = new StringBuilder; return LongStream.rangeClosed(1, n) // was (1,31) // .filter( w -> (w % 2) ==1 ) // filter out those numbers from the modulus .filter( w -> (w % 3) ==0 ) // pass through Fizz 3 .filter( w -> (w % 5) ==0 ) // pass through Buzz 5 thus together finds FizzBuzz // .collect(Collector.toList()); //.skip(3) .reduce(0, (long a, long b) -> a + b); // System.out.print( "number " + n); } public static long EventsWithStreams(long n){ // StringBuilder sb = new StringBuilder; return LongStream.rangeClosed(1, n) // was (1,31) // .filter( w -> (w % 2) ==1 ) // filter out those numbers from the modulus .filter( w -> (w % 3) ==0 ) // pass through Fizz 3 .filter( w -> (w % 5) ==0 ) // pass through Buzz 5 thus together finds FizzBuzz // .collect(Collector.toList()); //.skip(3) .reduce(0, (long a, long b) -> a + b); // System.out.print( "number " + n); } }
5598eb6daf02a716cffe3bbb11eae16cf27f6cd2
e87f76b9dee9879e81dae464fd183e22da3a0c06
/app/src/main/java/c346/rp/edu/p02_holidays/holiday.java
1491a492d67d999e629e2a7b24f0dfd78fb2b56f
[]
no_license
Gerad20/P02holidays
bd0824f23ea1e79c0eeef8c13480ad6dffd12349
a6005184e97b188f99b858d47ab66a797e45954e
refs/heads/master
2022-06-26T00:32:30.652613
2020-05-04T05:53:49
2020-05-04T05:53:49
261,091,823
0
0
null
null
null
null
UTF-8
Java
false
false
451
java
package c346.rp.edu.p02_holidays; public class holiday { private String name; private int image; private String date; public holiday(String name,int image, String date) { this.name = name; this.image = image; this.date = date; } public String getName() { return name; } public int getImage() { return image; } public String getDate() { return date; } }
27860d26c50e103fd6dc4824649620c460fd1e2a
440ce58c0def99dc9c24f7424da1f6239b671fce
/TriangelArea.java
47fa61ea01e6395d9433a321b70d47d299ffed2e
[]
no_license
jahorulislam/java_beginning
9ea67dbb5ec5162404404040281def67cebcfc9f
85d6e98b8d2ce2eb4d757eeb5024e3d5d92ec82f
refs/heads/master
2022-09-22T00:14:13.484833
2020-06-01T17:25:08
2020-06-01T17:25:08
268,585,525
0
0
null
null
null
null
UTF-8
Java
false
false
517
java
package javabegenner; import java.util.Scanner; public class TriangelArea { public static void main(String[] args) { Scanner input = new Scanner(System.in); double b,h,area; System.out.println("\"Enter base\"="); b=input.nextDouble(); System.out.println("\"Enter height\"="); h=input.nextDouble(); area=.5*b*h; System.out.println("Area of triangel="+area); } }
45f00567dc2eb8f2cc909590c5c7d2a71b318f71
dbe24a05a5993ab493b2560bf11dc6c7bb7ae615
/AndroidStudio Projects/Course_Registration/app/src/test/java/com/example/course_registration/ExampleUnitTest.java
0a869e7a2485b6915d421f9b8d5ddd3cbcea0919
[]
no_license
sabapathyn/AndroidStudio_Projects
01c5bf1befb49f95f341778addefb72d05535b96
fdf1a99d466c31ce425f47f46fd93d7cbc0fe4dd
refs/heads/master
2023-03-21T16:15:06.230838
2021-03-16T00:12:09
2021-03-16T00:12:09
348,159,741
0
0
null
null
null
null
UTF-8
Java
false
false
392
java
package com.example.course_registration; import org.junit.Test; import static org.junit.Assert.*; /** * Example local unit test, which will execute on the development machine (host). * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ public class ExampleUnitTest { @Test public void addition_isCorrect() { assertEquals(4, 2 + 2); } }
3753e890a4181e6806c958e04e8fd23d05589904
35029f02d7573415d6fc558cfeeb19c7bfa1e3cc
/gs-accessing-data-jpa-complete/src/main/java/hello/model/Customer267.java
16bc0b784792eff8233148c5465fbb86f8f16bdf
[]
no_license
MirekSz/spring-boot-slow-startup
e06fe9d4f3831ee1e79cf3735f6ceb8c50340cbe
3b1e9e4ebd4a95218b142b7eb397d0eaa309e771
refs/heads/master
2021-06-25T22:50:21.329236
2017-02-19T19:08:24
2017-02-19T19:08:24
59,591,530
0
2
null
null
null
null
UTF-8
Java
false
false
707
java
package hello.model; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; @Entity public class Customer267 { @Id @GeneratedValue(strategy=GenerationType.AUTO) private long id; private String firstName; private String lastName; protected Customer267() {} public Customer267(String firstName, String lastName) { this.firstName = firstName; this.lastName = lastName; } @Override public String toString() { return String.format( "Customer267[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName); } }
[ "miro1994" ]
miro1994
4b2f54876d6fa28f6e91e5541d093072f473034e
c4d1992bbfe4552ad16ff35e0355b08c9e4998d6
/releases/2.1.1/src/testcases/org/apache/poi/ss/format/TestCellFormat.java
3e0b1507feb75dce3fed62a67a81dd93aca099e7
[]
no_license
BGCX261/zkpoi-svn-to-git
36f2a50d2618c73e40f24ddc2d3df5aadc8eca30
81a63fb1c06a2dccff20cab1291c7284f1687508
refs/heads/master
2016-08-04T08:42:59.622864
2015-08-25T15:19:51
2015-08-25T15:19:51
41,594,557
0
1
null
null
null
null
UTF-8
Java
false
false
1,325
java
/* ==================================================================== Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==================================================================== */ package org.apache.poi.ss.format; import org.apache.poi.ss.format.CellFormat; import javax.swing.*; import junit.framework.TestCase; public class TestCellFormat extends TestCase { public void testSome() { JLabel l = new JLabel(); CellFormat fmt = CellFormat.getInstance( "\"$\"#,##0.00_);[Red]\\(\"$\"#,##0.00\\)"); fmt.apply(l, 1.1); } }
d0dc578e230b71bccce050b1095ec64594300893
47e5f1df90f8f6d27f2e6966874d1860cbd6ca70
/src/main/java/com/czwj/domain/Entity_Type.java
1cad9f06136e628438869e5a8ce55fb1cb2e4559
[]
no_license
weitong-he/demo01
510cac63b1f184709acb04d3f1f425b7bca72276
35bcd2dd2716706f35e84ef9d7d68ec600552b94
refs/heads/master
2022-02-15T11:11:32.881905
2018-01-03T08:34:16
2018-01-03T08:34:16
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,177
java
package com.czwj.domain; public class Entity_Type { private int id; private int entityTypeId; private String entityTypeName; private int entityTypeOrder; private int entityTypeState; private String entityTypeRemark; public int getId() { return id; } public void setId(int id) { this.id = id; } public int getEntityTypeId() { return entityTypeId; } public void setEntityTypeId(int entityTypeId) { this.entityTypeId = entityTypeId; } public String getEntityTypeName() { return entityTypeName; } public void setEntityTypeName(String entityTypeName) { this.entityTypeName = entityTypeName; } public int getEntityTypeOrder() { return entityTypeOrder; } public void setEntityTypeOrder(int entityTypeOrder) { this.entityTypeOrder = entityTypeOrder; } public int getEntityTypeState() { return entityTypeState; } public void setEntityTypeState(int entityTypeState) { this.entityTypeState = entityTypeState; } public String getEntityTypeRemark() { return entityTypeRemark; } public void setEntityTypeRemark(String entityTypeRemark) { this.entityTypeRemark = entityTypeRemark; } }
24ea8c1742b08bbf707bd12fdb5030aa3e2eb27f
f1acfbd2af9630d362ad19dd98876596896a0782
/Examples/examples1/src/examples/core/Shape.java
86b44f20577218b552f8a1f874aa53154124f523
[]
no_license
japj91/Java-2909
682ddff086df3a11c0efbcdd08f69630da15cfa5
5a6c4a2c6aa16dc64025c4e42c7b5b9f721a9e4a
refs/heads/master
2021-04-26T09:03:20.215604
2017-10-14T17:21:08
2017-10-14T17:21:08
106,947,626
0
0
null
null
null
null
UTF-8
Java
false
false
296
java
package examples.core; import java.text.DateFormat; import java.util.Date; public class Shape { private final Date date; public Shape() { date = new Date(); } public String getDateCreated() { return DateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.LONG).format(date); } }
677dc46a2fb4e4fddc09ac265ab737547f758353
4aa760400be14d83660b60ab8b97e9ab009f75b6
/Prob266/src/QueueAtSchool.java
256b30b84613833e32e139aa3d716e1fecea50dc
[]
no_license
Chayutpol/Codeforces
2a67c5e42af167c486c475f5910354ef5fc2db46
a537def5ae21014ce8a01e6a227524a3d1c41ab1
refs/heads/main
2023-03-16T14:45:38.216483
2021-03-19T06:44:41
2021-03-19T06:44:41
329,250,476
0
0
null
null
null
null
UTF-8
Java
false
false
1,459
java
import java.util.ArrayList; import java.util.Scanner; public class QueueAtSchool { public static void main(String[] args) { Scanner s = new Scanner(System.in); int n = s.nextInt(), t = s.nextInt(); String a = s.next(); if(!a.contains("G")) System.out.println(a); else { int[] b = new int[a.length()]; for(int i = 0; i < b.length; i++) if(a.charAt(i) == 'B') b[i] = 1; for(int i = t; i > 0; i--) { int[] ans = new int[b.length]; int temp = b[0]; for(int j = 1; j < b.length; j++) { if(temp==1) { if(b[j]==0) { ans[j-1] = 0; ans[j] = 1; j++; } else ans[j-1] = temp; } else ans[j-1] = temp; if(j < b.length) temp = b[j]; if(j == b.length-1) ans[j] = temp; } b = ans; for(int K = 0; K < b.length; K++) System.out.print(((b[K] == 1)? "B" : "G")); System.out.println(); } for(int i = 0; i < b.length; i++) System.out.print(((b[i] == 1)? "B" : "G")); } } }
a9fd3a9fc7dc37b3b3239d5ff4a5df9614bc8269
249693557cdfc0e64dfe93b9b47a14267a538a37
/app/src/main/java/com/hlong/finallt/Fragments/MainAdapter.java
91dd26d73718ee9aa25b622326704cfe31dd71b6
[]
no_license
mthlong/BaiCuoiKy
c80af5b73debbea186c690556cece46d81e25756
52bfa6072910bb940d0f2898b93cbf23a16aaf7e
refs/heads/master
2023-02-05T09:21:26.996936
2020-12-29T07:52:58
2020-12-29T07:52:58
325,207,399
0
0
null
null
null
null
UTF-8
Java
false
false
1,705
java
package com.hlong.finallt.Fragments; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.ImageView; import android.widget.TextView; import com.hlong.finallt.R; public class MainAdapter extends BaseAdapter { private Context context; private LayoutInflater inflater; private String[] food; private String[] review1; private int[] numberImage; public MainAdapter(Context c,String[] food, int[] numberImage, String[] review1) { context =c; this.food = food; this.numberImage = numberImage; this.review1=review1; } @Override public int getCount() { return review1.length; } @Override public Object getItem(int position) { return null; } @Override public long getItemId(int position) { return 0; } @Override public View getView(int position, View convertView, ViewGroup parent) { if (inflater == null){ inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); } if (convertView == null) { convertView = inflater.inflate(R.layout.row_item, null); } ImageView imageView = convertView.findViewById(R.id.imgFoodUpdate); TextView textView = convertView.findViewById(R.id.textView); TextView textViewrv1 = convertView.findViewById(R.id.textViewrv1); imageView.setImageResource(numberImage[position]); textView.setText(food[position]); textViewrv1.setText(review1[position]); return convertView; } }
2807740ee041ecbc431eef21b2e278d3e2835752
9189fbb7afc52bb05fa7f1f8620fea750b12c0d6
/android/ttlock-capacitor/build/generated/source/r/debug/android/support/v7/recyclerview/R.java
c302a75b209fadac9daf91f33dd6cb4e6e39660a
[]
no_license
Carozonator/ttlock-capacitor
da97ecf3ee5a688938e12628e2bcc03030130cc0
31e79321ca45a5817153bda57a11be9312462ecf
refs/heads/master
2020-04-27T05:33:46.105625
2019-03-21T08:58:18
2019-03-21T08:58:18
174,084,047
0
0
null
null
null
null
UTF-8
Java
false
false
11,091
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 android.support.v7.recyclerview; public final class R { public static final class attr { public static int coordinatorLayoutStyle = 0x7f04006d; public static int fastScrollEnabled = 0x7f040090; public static int fastScrollHorizontalThumbDrawable = 0x7f040091; public static int fastScrollHorizontalTrackDrawable = 0x7f040092; public static int fastScrollVerticalThumbDrawable = 0x7f040093; public static int fastScrollVerticalTrackDrawable = 0x7f040094; public static int font = 0x7f040095; public static int fontProviderAuthority = 0x7f040097; public static int fontProviderCerts = 0x7f040098; public static int fontProviderFetchStrategy = 0x7f040099; public static int fontProviderFetchTimeout = 0x7f04009a; public static int fontProviderPackage = 0x7f04009b; public static int fontProviderQuery = 0x7f04009c; public static int fontStyle = 0x7f04009d; public static int fontWeight = 0x7f04009e; public static int keylines = 0x7f0400ba; public static int layoutManager = 0x7f0400bc; public static int layout_anchor = 0x7f0400bd; public static int layout_anchorGravity = 0x7f0400be; public static int layout_behavior = 0x7f0400bf; public static int layout_dodgeInsetEdges = 0x7f0400c2; public static int layout_insetEdge = 0x7f0400c3; public static int layout_keyline = 0x7f0400c4; public static int reverseLayout = 0x7f0400f7; public static int spanCount = 0x7f040107; public static int stackFromEnd = 0x7f04010d; public static int statusBarBackground = 0x7f040111; } public static final class bool { public static int abc_action_bar_embed_tabs = 0x7f050001; } public static final class color { public static int notification_action_color_filter = 0x7f060059; public static int notification_icon_bg_color = 0x7f06005a; public static int ripple_material_light = 0x7f060065; public static int secondary_text_default_material_light = 0x7f060067; } public static final class dimen { public static int compat_button_inset_horizontal_material = 0x7f08004e; public static int compat_button_inset_vertical_material = 0x7f08004f; public static int compat_button_padding_horizontal_material = 0x7f080050; public static int compat_button_padding_vertical_material = 0x7f080051; public static int compat_control_corner_material = 0x7f080052; public static int fastscroll_default_thickness = 0x7f08007b; public static int fastscroll_margin = 0x7f08007c; public static int fastscroll_minimum_range = 0x7f08007d; public static int item_touch_helper_max_drag_scroll_per_frame = 0x7f080085; public static int item_touch_helper_swipe_escape_max_velocity = 0x7f080086; public static int item_touch_helper_swipe_escape_velocity = 0x7f080087; public static int notification_action_icon_size = 0x7f080088; public static int notification_action_text_size = 0x7f080089; public static int notification_big_circle_margin = 0x7f08008a; public static int notification_content_margin_start = 0x7f08008b; public static int notification_large_icon_height = 0x7f08008c; public static int notification_large_icon_width = 0x7f08008d; public static int notification_main_column_padding_top = 0x7f08008e; public static int notification_media_narrow_margin = 0x7f08008f; public static int notification_right_icon_size = 0x7f080090; public static int notification_right_side_padding_top = 0x7f080091; public static int notification_small_icon_background_padding = 0x7f080092; public static int notification_small_icon_size_as_large = 0x7f080093; public static int notification_subtext_size = 0x7f080094; public static int notification_top_pad = 0x7f080095; public static int notification_top_pad_large_text = 0x7f080096; } public static final class drawable { public static int notification_action_background = 0x7f090075; public static int notification_bg = 0x7f090076; public static int notification_bg_low = 0x7f090077; public static int notification_bg_low_normal = 0x7f090078; public static int notification_bg_low_pressed = 0x7f090079; public static int notification_bg_normal = 0x7f09007a; public static int notification_bg_normal_pressed = 0x7f09007b; public static int notification_icon_background = 0x7f09007c; public static int notification_template_icon_bg = 0x7f09007d; public static int notification_template_icon_low_bg = 0x7f09007e; public static int notification_tile_bg = 0x7f09007f; public static int notify_panel_notification_icon_bg = 0x7f090080; } public static final class id { public static int action_container = 0x7f0c0009; public static int action_divider = 0x7f0c000b; public static int action_image = 0x7f0c000c; public static int action_text = 0x7f0c0012; public static int actions = 0x7f0c0013; public static int async = 0x7f0c0019; public static int blocking = 0x7f0c001b; public static int bottom = 0x7f0c001c; public static int chronometer = 0x7f0c0026; public static int end = 0x7f0c0035; public static int forever = 0x7f0c003b; public static int icon = 0x7f0c003e; public static int icon_group = 0x7f0c003f; public static int info = 0x7f0c0042; public static int italic = 0x7f0c0043; public static int item_touch_helper_previous_elevation = 0x7f0c0044; public static int left = 0x7f0c0046; public static int line1 = 0x7f0c0048; public static int line3 = 0x7f0c0049; public static int none = 0x7f0c0052; public static int normal = 0x7f0c0053; public static int notification_background = 0x7f0c0054; public static int notification_main_column = 0x7f0c0055; public static int notification_main_column_container = 0x7f0c0056; public static int right = 0x7f0c005e; public static int right_icon = 0x7f0c005f; public static int right_side = 0x7f0c0060; public static int start = 0x7f0c007e; public static int tag_transition_group = 0x7f0c0083; public static int text = 0x7f0c0084; public static int text2 = 0x7f0c0085; public static int time = 0x7f0c008b; public static int title = 0x7f0c008c; public static int top = 0x7f0c008f; } public static final class integer { public static int status_bar_notification_info_maxnum = 0x7f0d000b; } public static final class layout { public static int notification_action = 0x7f0f002e; public static int notification_action_tombstone = 0x7f0f002f; public static int notification_template_custom_big = 0x7f0f0036; public static int notification_template_icon_group = 0x7f0f0037; public static int notification_template_part_chronometer = 0x7f0f003b; public static int notification_template_part_time = 0x7f0f003c; } public static final class string { public static int status_bar_notification_info_overflow = 0x7f150059; } public static final class style { public static int TextAppearance_Compat_Notification = 0x7f160102; public static int TextAppearance_Compat_Notification_Info = 0x7f160103; public static int TextAppearance_Compat_Notification_Line2 = 0x7f160105; public static int TextAppearance_Compat_Notification_Time = 0x7f160108; public static int TextAppearance_Compat_Notification_Title = 0x7f16010a; public static int Widget_Compat_NotificationActionContainer = 0x7f160180; public static int Widget_Compat_NotificationActionText = 0x7f160181; public static int Widget_Support_CoordinatorLayout = 0x7f16018d; } public static final class styleable { public static int[] CoordinatorLayout = { 0x7f0400ba, 0x7f040111 }; public static int CoordinatorLayout_keylines = 0; public static int CoordinatorLayout_statusBarBackground = 1; public static int[] CoordinatorLayout_Layout = { 0x010100b3, 0x7f0400bd, 0x7f0400be, 0x7f0400bf, 0x7f0400c2, 0x7f0400c3, 0x7f0400c4 }; public static int CoordinatorLayout_Layout_android_layout_gravity = 0; public static int CoordinatorLayout_Layout_layout_anchor = 1; public static int CoordinatorLayout_Layout_layout_anchorGravity = 2; public static int CoordinatorLayout_Layout_layout_behavior = 3; public static int CoordinatorLayout_Layout_layout_dodgeInsetEdges = 4; public static int CoordinatorLayout_Layout_layout_insetEdge = 5; public static int CoordinatorLayout_Layout_layout_keyline = 6; public static int[] FontFamily = { 0x7f040097, 0x7f040098, 0x7f040099, 0x7f04009a, 0x7f04009b, 0x7f04009c }; public static int FontFamily_fontProviderAuthority = 0; public static int FontFamily_fontProviderCerts = 1; public static int FontFamily_fontProviderFetchStrategy = 2; public static int FontFamily_fontProviderFetchTimeout = 3; public static int FontFamily_fontProviderPackage = 4; public static int FontFamily_fontProviderQuery = 5; public static int[] FontFamilyFont = { 0x01010532, 0x0101053f, 0x01010533, 0x7f040095, 0x7f04009d, 0x7f04009e }; public static int FontFamilyFont_android_font = 0; public static int FontFamilyFont_android_fontStyle = 1; public static int FontFamilyFont_android_fontWeight = 2; public static int FontFamilyFont_font = 3; public static int FontFamilyFont_fontStyle = 4; public static int FontFamilyFont_fontWeight = 5; public static int[] RecyclerView = { 0x010100f1, 0x010100c4, 0x7f040090, 0x7f040091, 0x7f040092, 0x7f040093, 0x7f040094, 0x7f0400bc, 0x7f0400f7, 0x7f040107, 0x7f04010d }; public static int RecyclerView_android_descendantFocusability = 0; public static int RecyclerView_android_orientation = 1; public static int RecyclerView_fastScrollEnabled = 2; public static int RecyclerView_fastScrollHorizontalThumbDrawable = 3; public static int RecyclerView_fastScrollHorizontalTrackDrawable = 4; public static int RecyclerView_fastScrollVerticalThumbDrawable = 5; public static int RecyclerView_fastScrollVerticalTrackDrawable = 6; public static int RecyclerView_layoutManager = 7; public static int RecyclerView_reverseLayout = 8; public static int RecyclerView_spanCount = 9; public static int RecyclerView_stackFromEnd = 10; } }
545493d40343a9fc5c405e0e5e8a4b60558c94f8
cd18d6d83874d2d049ed705523fa00a4fca559bc
/java-algo/src/rps/GameRpsMain.java
2f185a7f027acfa853429b1b93f96bd2a33e2a9c
[]
no_license
YeonWooSeong/set4
41ead7df4c896249da16655f51119cda23025620
8e5d26f4973528bd8ba67352e8407b6d969a0ebb
refs/heads/master
2021-05-29T06:03:19.311215
2015-10-01T09:38:34
2015-10-01T09:38:34
null
0
0
null
null
null
null
UTF-8
Java
false
false
945
java
package rps; import java.util.Scanner; /* * /*System.out.println("์ปดํ“จํ„ฐ๋Š” ๋ฐ”์œ„๋ฅผ ๋ƒˆ๊ณ  ๋‹น์‹ ์€ ๋ณด์ž๊ธฐ๋ฅผ ๋ƒˆ์Šต๋‹ˆ๋‹ค ๋”ฐ๋ผ์„œ ๋‹น์‹ ์ด ์ด๊ฒผ๊ณ  ์ปดํ“จํ„ฐ๊ฐ€ ์กŒ์Šต๋‹ˆ๋‹ค."); */ public class GameRpsMain { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println("๊ฐ€์œ„ ๋ฐ”์œ„ ๋ณด ๊ฒŒ์ž„์„ ์‹œ์ž‘ํ•ฉ๋‹ˆ๋‹ค."); GameRps game = new GameRps(); gameRpsService service = new GameRpsServiceImpl(); // ๊นŠ์€ ๋ณต์‚ฌ (deep copy) GameRpsValidation valid = new GameRpsValidation(); int start =1 , limit = 3; while (true) { //๋ฌดํ•œ๋ฃจํ”„ System.out.println("๊ฐ€์œ„ :1 ๋ฐ”์œ„ :2 ๋ณด :3 ์„ ์ž…๋ ฅํ•˜์„ธ์š”"); int userval =scanner.nextInt(); if (userval<start||userval>limit) { System.out.println(valid.showRange(start,limit)); continue; } game.setComval(); System.out.println(service.playGame(userval, game.getComval())); } } }
3a18ea1b01d565d77604baa42f04454dee7886c9
61d6c6d6f3b0d60eec83da132a6224a442c05350
/petfund/src/com/wdkj/xyfund/entity/File.java
3eb9bcaef5230f3e5958c18071cc206049600f11
[]
no_license
419995258/petfund
6849c676ac4e68070d498eaba3556c60e6353e9c
87a85ef12a016fac13beb12acc4ac315d4615f2d
refs/heads/master
2021-01-11T18:32:47.516234
2018-11-14T10:02:30
2018-11-14T10:02:30
79,556,048
0
0
null
null
null
null
UTF-8
Java
false
false
2,204
java
package com.wdkj.xyfund.entity; public class File { private Integer id; private String name; private String fileurl; private String filetype; private Long size; private String bucket; private String accessType; private Boolean fileStatus; private Integer userId; private Integer type; private Integer stuus; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name == null ? null : name.trim(); } public String getFileurl() { return fileurl; } public void setFileurl(String fileurl) { this.fileurl = fileurl == null ? null : fileurl.trim(); } public String getFiletype() { return filetype; } public void setFiletype(String filetype) { this.filetype = filetype == null ? null : filetype.trim(); } public Long getSize() { return size; } public void setSize(Long size) { this.size = size; } public String getBucket() { return bucket; } public void setBucket(String bucket) { this.bucket = bucket == null ? null : bucket.trim(); } public String getAccessType() { return accessType; } public void setAccessType(String accessType) { this.accessType = accessType == null ? null : accessType.trim(); } public Boolean getFileStatus() { return fileStatus; } public void setFileStatus(Boolean fileStatus) { this.fileStatus = fileStatus; } public Integer getUserId() { return userId; } public void setUserId(Integer userId) { this.userId = userId; } public Integer getType() { return type; } public void setType(Integer type) { this.type = type; } public Integer getStuus() { return stuus; } public void setStuus(Integer stuus) { this.stuus = stuus; } }
886215f2e4df1f74630168ba9c3dbff278bdef21
d45f9444e42d4b2241cad3ca2c306c8f3e5119ef
/count/src/com/example/count/MainActivity.java
8e6c2eb7693cf159cccb73360ccb7d071dbbeee9
[]
no_license
whiteearrings/counter
269ba1c01237baded783240225812a4770a269dd
c32b42ab90719f78b67f1524edbfcd893e8a2c3b
refs/heads/master
2020-03-28T18:37:04.714023
2014-10-19T04:09:01
2014-10-19T04:09:01
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,196
java
package com.example.count; import android.support.v7.app.ActionBarActivity; import android.support.v7.app.ActionBar; import android.support.v4.app.Fragment; import android.text.Editable; import android.app.Activity; import android.app.AlertDialog; import android.content.DialogInterface; import android.os.Bundle; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.view.View.OnClickListener; import android.view.ViewGroup; import android.widget.Button; import android.widget.EditText; import android.widget.LinearLayout; import android.widget.RelativeLayout; import android.widget.TextView; import android.widget.Toast; import android.os.Build; public class MainActivity extends Activity { private Button newTask; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); newTask = (Button)findViewById(R.id.button1); } int ct=0; public void createTask(View view) { String task=""; AlertDialog.Builder alert = new AlertDialog.Builder(this); alert.setTitle("Task"); alert.setMessage("Enter Task "); final EditText input = new EditText(this); alert.setView(input); alert.setPositiveButton("Ok", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { Editable value = input.getText(); addToScreen(value.toString()); } }); alert.setNegativeButton("Cancel", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { // Canceled. } }); alert.show(); } public void addToScreen(String task) { Toast.makeText(getApplicationContext(),"hi",Toast.LENGTH_SHORT).show(); LinearLayout rr = (LinearLayout) findViewById(R.id.ll); rr.setOrientation(LinearLayout.VERTICAL); TextView tv1 = new TextView(MainActivity.this); tv1.setId(ct); tv1.setText(task+"-0"); rr.addView(tv1); final String t=task; tv1.setOnClickListener(new OnClickListener() { public void onClick(View v) { int ids=v.getId(); TextView task = (TextView)findViewById(ids); Toast.makeText(getApplicationContext(),"clicked",Toast.LENGTH_SHORT).show(); String count=(String) task.getText(); String c=count.split("-")[1]; int cnt=Integer.parseInt(c); cnt++; Toast.makeText(getApplicationContext(),c,Toast.LENGTH_SHORT).show(); task.setText(t+"-"+cnt); } }); Button myButton = new Button(MainActivity.this); myButton.setId(ct); myButton.setText("change"); myButton.setBackgroundColor(0xFFF0111); myButton.setOnClickListener(new OnClickListener() { public void onClick(View v) { } }); rr.addView(myButton); ct++; } }