hexsha
stringlengths
40
40
size
int64
3
1.05M
ext
stringclasses
1 value
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
5
1.02k
max_stars_repo_name
stringlengths
4
126
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
list
max_stars_count
float64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
5
1.02k
max_issues_repo_name
stringlengths
4
114
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
list
max_issues_count
float64
1
92.2k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
5
1.02k
max_forks_repo_name
stringlengths
4
136
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
list
max_forks_count
float64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
avg_line_length
float64
2.55
99.9
max_line_length
int64
3
1k
alphanum_fraction
float64
0.25
1
index
int64
0
1M
content
stringlengths
3
1.05M
9241ea68c024ebad0779abb135548079d9c17459
258
java
Java
src/org/zelo/ast/expression/Symbol.java
sasquatch-mc/zelo
b869c98982d17fe9a6c1a6377d53662948656675
[ "Apache-2.0" ]
1
2017-03-24T11:51:11.000Z
2017-03-24T11:51:11.000Z
src/org/zelo/ast/expression/Symbol.java
sasquatch-mc/zelo
b869c98982d17fe9a6c1a6377d53662948656675
[ "Apache-2.0" ]
null
null
null
src/org/zelo/ast/expression/Symbol.java
sasquatch-mc/zelo
b869c98982d17fe9a6c1a6377d53662948656675
[ "Apache-2.0" ]
null
null
null
16.125
40
0.635659
1,002,075
package org.zelo.ast.expression; import org.zelo.ast.name.Name; public class Symbol extends Expression { private final Name name; public Symbol(Name name) { this.name = name; } public Name getName() { return name; } }
9241eb09f24fa2ad0fb81ca37211ef4a3a6aae53
1,036
java
Java
app/src/main/java/com/hzy/wan/adapter/HomeAdapter.java
ThornJuice/wan-mvp
35aa466c833716b7a79d99989c0217126a68c025
[ "Apache-2.0" ]
null
null
null
app/src/main/java/com/hzy/wan/adapter/HomeAdapter.java
ThornJuice/wan-mvp
35aa466c833716b7a79d99989c0217126a68c025
[ "Apache-2.0" ]
null
null
null
app/src/main/java/com/hzy/wan/adapter/HomeAdapter.java
ThornJuice/wan-mvp
35aa466c833716b7a79d99989c0217126a68c025
[ "Apache-2.0" ]
null
null
null
35.724138
103
0.707529
1,002,076
package com.hzy.wan.adapter; import androidx.annotation.Nullable; import com.chad.library.adapter.base.BaseQuickAdapter; import com.chad.library.adapter.base.BaseViewHolder; import com.hzy.wan.R; import com.hzy.wan.bean.HomeArticleBean; import java.util.List; public class HomeAdapter extends BaseQuickAdapter<HomeArticleBean.DataBean.DatasBean, BaseViewHolder> { public HomeAdapter(@Nullable List<HomeArticleBean.DataBean.DatasBean> data) { super(R.layout.item_home_article, data); } @Override protected void convert(BaseViewHolder helper, HomeArticleBean.DataBean.DatasBean item) { helper.setText(R.id.tv_title, item.getTitle()); if (item.getShareUser() != null) { helper.setText(R.id.tv_share_name, "分享者:" + item.getShareUser()); } else { helper.setText(R.id.tv_share_name, "作者:" + item.getAuthor()); } helper.setText(R.id.tv_type, "分类:" + item.getSuperChapterName()); helper.setText(R.id.tv_date, item.getNiceShareDate()); } }
9241ec5fc7c50dd508b0c37cc70bf6c4f0e52fa3
1,234
java
Java
2015-DS/MaterialBaseMaps/app/src/main/java/com/esri/runtime/android/materialbasemaps/presenter/OnTaskCompleted.java
liangzuan1983/arcgis-runtime-demos-android
4edbacbcc16d1db653fd5958a2ee859bfb7bb740
[ "Apache-2.0" ]
33
2015-01-30T18:23:06.000Z
2019-07-10T13:19:45.000Z
2015-DS/MaterialBaseMaps/app/src/main/java/com/esri/runtime/android/materialbasemaps/presenter/OnTaskCompleted.java
trcflyer/arcgis-runtime-demos-android
bc1b462d874269df06f5e5116f3bec109d3b26cf
[ "Apache-2.0" ]
23
2015-03-11T14:56:10.000Z
2021-11-29T09:15:05.000Z
2015-DS/MaterialBaseMaps/app/src/main/java/com/esri/runtime/android/materialbasemaps/presenter/OnTaskCompleted.java
trcflyer/arcgis-runtime-demos-android
bc1b462d874269df06f5e5116f3bec109d3b26cf
[ "Apache-2.0" ]
45
2015-04-12T06:37:05.000Z
2021-02-24T07:50:13.000Z
33.351351
93
0.755267
1,002,077
/* Copyright 2015 Esri * * 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. * * A copy of the license is available in the repository's * https://github.com/Esri/arcgis-runtime-demos-android/blob/master/license.txt * * For information about licensing your deployed app, see * https://developers.arcgis.com/android/guide/license-your-app.htm * */ package com.esri.runtime.android.materialbasemaps.presenter; import com.esri.runtime.android.materialbasemaps.model.BasemapItem; import java.util.ArrayList; /** * Interface to process response from an operation on a background thread */ public interface OnTaskCompleted { /** * Return BasemapItems */ void processResults(ArrayList<BasemapItem> basemapItems); }
9241ed3a26905aad3b3393835eb4610ca4cfacf4
5,576
java
Java
src/main/java/edu/illinois/lis/search/RunQueriesKernelDensity.java
jiyinhe/microblog-demos
933f34c74025c77ea61c08706be5c19a46149a4f
[ "Apache-2.0" ]
1
2017-04-18T10:21:44.000Z
2017-04-18T10:21:44.000Z
src/main/java/edu/illinois/lis/search/RunQueriesKernelDensity.java
jiyinhe/microblog-demos
933f34c74025c77ea61c08706be5c19a46149a4f
[ "Apache-2.0" ]
null
null
null
src/main/java/edu/illinois/lis/search/RunQueriesKernelDensity.java
jiyinhe/microblog-demos
933f34c74025c77ea61c08706be5c19a46149a4f
[ "Apache-2.0" ]
null
null
null
35.515924
114
0.737984
1,002,078
package edu.illinois.lis.search; import java.io.File; import java.io.PrintStream; import java.util.Arrays; import java.util.Iterator; import java.util.List; import cc.twittertools.search.api.TrecSearchThriftClient; import cc.twittertools.thrift.gen.TResult; import edu.illinois.lis.query.TrecTemporalTopicSet; import edu.illinois.lis.rerank.KernelDensityReranker; import edu.illinois.lis.temporal.TimestampOracle; import edu.illinois.lis.utils.ListUtils; import edu.illinois.lis.utils.ParameterBroker; import edu.illinois.lis.utils.TimeUtils; public class RunQueriesKernelDensity { private static final String DEFAULT_RUNTAG = "lucene4lm"; private static final double DAY = 60.0 * 60.0 * 24.0;; private static final String HOST_OPTION = "host"; private static final String PORT_OPTION = "port"; private static final String QUERIES_OPTION = "queries"; private static final String NUM_RESULTS_OPTION = "num_results"; private static final String NUM_RERANK_OPTION = "num_rerank"; private static final String GROUP_OPTION = "group"; private static final String TOKEN_OPTION = "token"; private static final String RUNTAG_OPTION = "runtag"; private static final String ORACLE_FILE_OPTION = "oracle_epochs"; private static final String QRELS_FILE_OPTION = "qrels"; private static final String USE_ORACLE_OPTION = "use_oracle"; private RunQueriesKernelDensity() {} public static void main(String[] args) throws Exception { ParameterBroker params = new ParameterBroker(args[0]); PrintStream out = new PrintStream(System.out, true, "UTF-8"); PrintStream err = new PrintStream(System.err, true, "UTF-8"); TrecTemporalTopicSet topicsFile = TrecTemporalTopicSet.fromFile(new File(params.getParamValue(QUERIES_OPTION))); // max number of docs to send to output int numResults = 1000; try { if (params.getParamValue(NUM_RESULTS_OPTION) != null) { numResults = Integer.parseInt(params.getParamValue(NUM_RESULTS_OPTION)); } } catch (NumberFormatException e) { err.println("Invalid " + NUM_RESULTS_OPTION + ": " + params.getParamValue(NUM_RESULTS_OPTION)); System.exit(-1); } // max number of docs to analyze for re-ranking int numRerank = numResults; try { if (params.getParamValue(NUM_RERANK_OPTION) != null) { numResults = Integer.parseInt(params.getParamValue(NUM_RERANK_OPTION)); } } catch (NumberFormatException e) { err.println("Invalid " + NUM_RERANK_OPTION + ": " + params.getParamValue(NUM_RERANK_OPTION)); System.exit(-1); } if(numRerank > numResults) { err.println("num_rerank must by <= num_results"); System.exit(-1); } boolean useOracle = false; if(params.getParamValue(USE_ORACLE_OPTION) != null) { try { useOracle = Boolean.parseBoolean(params.getParamValue(USE_ORACLE_OPTION)); } catch (Exception e) { err.println("Invalid " + USE_ORACLE_OPTION + ": must be either true/false or blank."); System.exit(-1); } } if(useOracle==true) err.println("using oracle condition"); // authentication credentials String group = params.getParamValue(GROUP_OPTION); if(group==null) { err.println("Invalid " + GROUP_OPTION + ": must set a valid group ID"); System.exit(-1); } String token = params.getParamValue(TOKEN_OPTION); if(group==null) { err.println("Invalid " + TOKEN_OPTION + ": must set a valid authentication token"); System.exit(-1); } TrecSearchThriftClient client = new TrecSearchThriftClient(params.getParamValue(HOST_OPTION), Integer.parseInt(params.getParamValue(PORT_OPTION)), group, token); // if we're using the oracle condition TimestampOracle oracle = new TimestampOracle(params.getParamValue(QRELS_FILE_OPTION), params.getParamValue(ORACLE_FILE_OPTION)); for(edu.illinois.lis.query.TrecTemporalTopic query : topicsFile) { err.println(query.getId()); List<TResult> results = client.search(query.getQuery(), query.getQueryTweetTime(), numResults); // get the query epoch double queryEpoch = query.getEpoch(); List<Double> rawEpochs = TimeUtils.extractEpochsFromResults(results); // groom our hit times wrt to query time List<Double> scaledEpochs = TimeUtils.adjustEpochsToLandmark(rawEpochs, queryEpoch, DAY); double[] densityTrainingData = ListUtils.listToArray(scaledEpochs); double[] densityWeights = new double[densityTrainingData.length]; Arrays.fill(densityWeights, 1.0/(double)densityWeights.length); // if we're using our oracle, we need the right training data if(useOracle) { List<Double> oracleRawEpochs = oracle.getEpochsForQuery(query.getId()); List<Double> oracleScaledEpochs = TimeUtils.adjustEpochsToLandmark(oracleRawEpochs, queryEpoch, DAY); densityTrainingData = ListUtils.listToArray(oracleScaledEpochs); densityWeights = new double[densityTrainingData.length]; Arrays.fill(densityWeights, 1.0/(double)densityWeights.length); } if(densityTrainingData != null && densityTrainingData.length > 2) { KernelDensityReranker reranker = new KernelDensityReranker(results, scaledEpochs, densityTrainingData, densityWeights); results = reranker.getReranked(); } String runTag = params.getParamValue(RUNTAG_OPTION); if(runTag==null) runTag = DEFAULT_RUNTAG; int i = 1; Iterator<TResult> hitIterator = results.iterator(); while(hitIterator.hasNext()) { TResult hit = hitIterator.next(); out.println(String.format("%s Q0 %s %d %f %s", query.getId(), hit.getId(), i, hit.getRsv(), runTag)); if(i++ >= numResults) break; } } out.close(); } }
9241eeeb922f4431467bab64d5e8997e6f8176eb
3,969
java
Java
MultipleViewRecyclerView/app/src/main/java/com/example/multipleviewsrecyclerview/MainActivity.java
narendra-ct/AndroidLearning
c5a2c90321a8d1c4e97d8e9d025fb8366c395d74
[ "BSD-2-Clause" ]
null
null
null
MultipleViewRecyclerView/app/src/main/java/com/example/multipleviewsrecyclerview/MainActivity.java
narendra-ct/AndroidLearning
c5a2c90321a8d1c4e97d8e9d025fb8366c395d74
[ "BSD-2-Clause" ]
null
null
null
MultipleViewRecyclerView/app/src/main/java/com/example/multipleviewsrecyclerview/MainActivity.java
narendra-ct/AndroidLearning
c5a2c90321a8d1c4e97d8e9d025fb8366c395d74
[ "BSD-2-Clause" ]
null
null
null
33.923077
130
0.644243
1,002,079
package com.example.multipleviewsrecyclerview; import androidx.annotation.NonNull; import androidx.appcompat.app.AppCompatActivity; import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.RecyclerView; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.Menu; import android.view.MenuItem; import android.widget.Toast; import com.example.multipleviewsrecyclerview.model.NonCuratedItem; import com.fxn.pix.Options; import com.fxn.pix.Pix; import com.fxn.utility.ImageQuality; import java.util.ArrayList; public class MainActivity extends AppCompatActivity implements RecyclerViewAdapter.ONNClickListener { private static final String TAG = "MainActivity"; private NonCuratedItem newItem = new NonCuratedItem(); private RecyclerViewAdapter adapter; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); initRecyclerView(); //set interface or allocate interface // getSupportActionBar().setTitle("Page Title"); } @Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.main_menu,menu); return true; // return super.onCreateOptionsMenu(menu); } @Override public boolean onOptionsItemSelected(@NonNull MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_name) { navigateToNext(); return true; } return super.onOptionsItemSelected(item); } private void navigateToNext() { Intent intent = new Intent(this, LocationActivity.class); startActivity(intent); } private void initRecyclerView() { Log.d(TAG, "initRecyclerView: "); RecyclerView recyclerView = findViewById(R.id.recyclerView); adapter = new RecyclerViewAdapter(this, newItem, this); recyclerView.setAdapter(adapter); recyclerView.setLayoutManager(new LinearLayoutManager(this)); } @Override public void onAddImageClick() { Toast.makeText(this,"onAddImageClick",Toast.LENGTH_LONG).show(); Options options = Options.init() .setRequestCode(100) //Request code for activity results .setCount(6) //Number of images to restict selection count .setFrontfacing(false) //Front Facing camera on start .setImageQuality(ImageQuality.HIGH) //Image Quality .setScreenOrientation(Options.SCREEN_ORIENTATION_PORTRAIT) //Orientaion .setPath("/pix/images") //Custom Path For Image Storage .setPreSelectedUrls(newItem.getImages() != null ? newItem.getImages() : new ArrayList<>()); Pix.start(MainActivity.this, options); } @Override public void onDeleteImageClick(Integer index) { Toast.makeText(this,"onDeleteImageClick" + index,Toast.LENGTH_LONG).show(); } @Override public void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if (resultCode == Activity.RESULT_OK && requestCode == 100) { ArrayList<String> returnValue = data.getStringArrayListExtra(Pix.IMAGE_RESULTS); Log.d(TAG, "returnValue " + returnValue); // update in UI newItem = adapter.getUpdatedItem(); newItem.setImages(returnValue); adapter.setUpdatedNewItem(newItem); adapter.notifyDataSetChanged(); } } }
9241ef9c59ecae71e30f5760945817fc68df581e
4,226
java
Java
src/main/java/com/max/epi/graph/TransformOneStringToAnother.java
mstepan/elements-of-programmin-interviews
f66a1ae02c693b3ea279fc7063df7c29a8df86cc
[ "MIT" ]
null
null
null
src/main/java/com/max/epi/graph/TransformOneStringToAnother.java
mstepan/elements-of-programmin-interviews
f66a1ae02c693b3ea279fc7063df7c29a8df86cc
[ "MIT" ]
4
2020-12-08T08:40:58.000Z
2022-01-04T16:35:48.000Z
src/main/java/com/max/epi/graph/TransformOneStringToAnother.java
mstepan/elements-of-programming-interviews
f66a1ae02c693b3ea279fc7063df7c29a8df86cc
[ "MIT" ]
null
null
null
25.92638
101
0.533602
1,002,080
package com.max.epi.graph; import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Collections; import java.util.HashSet; import java.util.Iterator; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.Queue; import java.util.Set; import static com.google.common.base.Preconditions.checkNotNull; /** * 19.7. Transform one string to another. * <p> * Let 's' and 't' be strings and 'D' a dictionary, i.e., a set of strings. Define s to produce t if * there exists a sequence of strings from the dictionary P = (So, Si,...,Sn ) such that the * first string is 's', the last string is 't', and adjacent strings have the same length and differ * in exactly one character. The sequence P is called a production sequence. * <p> * For example: * if the dictionary is {bat, cot,dog,dag,dot, cat), then (cat, cot, dot,dog) is production sequence. * <p> * V = dic.size() * E = up to V^2 * time: O(V + E) * space: O(V) */ final class TransformOneStringToAnother { private TransformOneStringToAnother() { throw new IllegalStateException("Can't instantiate utility only class"); } static List<String> productionSequence(String s, String t, Set<String> dic) { checkNotNull(s); checkNotNull(t); checkNotNull(dic); checkAllStringsHaveSameLength(dic); if (s.length() != t.length() || !dic.contains(s) || !dic.contains(t)) { return Collections.emptyList(); } if (s.equals(t)) { return Collections.singletonList(s); } Map<String, List<String>> graph = buildGraph(dic); Queue<Sol> q = new ArrayDeque<>(); q.add(new Sol(s)); Set<String> marked = new HashSet<>(); marked.add(s); while (!q.isEmpty()) { Sol cur = q.poll(); if (cur.str.equals(t)) { return cur.toReverseList(); } for (String adj : graph.get(cur.str)) { if (!marked.contains(adj)) { q.add(new Sol(adj, cur)); marked.add(adj); } } } return Collections.emptyList(); } private static void checkAllStringsHaveSameLength(Set<String> dic) { if (dic.isEmpty()) { return; } Iterator<String> it = dic.iterator(); final int length = it.next().length(); while(it.hasNext() ){ if( it.next().length() != length ){ throw new IllegalStateException("Not all strings have same length."); } } } private static Map<String, List<String>> buildGraph(Set<String> dic) { assert dic != null; Map<String, List<String>> res = new LinkedHashMap<>(); for (String ver : dic) { res.put(ver, new ArrayList<>()); } for (String str : res.keySet()) { for (String other : res.keySet()) { if (!str.equals(other) && hasOneCharDifference(str, other)) { res.get(str).add(other); res.get(other).add(str); } } } return res; } private static boolean hasOneCharDifference(String str, String other) { assert str != null && other != null; if (str.length() != other.length()) { return false; } int diffsCnt = 0; for (int i = 0; i < str.length(); ++i) { if (str.charAt(i) != other.charAt(i)) { ++diffsCnt; } } return diffsCnt == 1; } private static final class Sol { final String str; final Sol next; Sol(String str, Sol next) { this.str = str; this.next = next; } Sol(String str) { this(str, null); } List<String> toReverseList() { List<String> res = new ArrayList<>(); Sol cur = this; while (cur != null) { res.add(cur.str); cur = cur.next; } Collections.reverse(res); return res; } } }
9241f164ea180fd82a01918e34b77d7b6117abe7
1,783
java
Java
src/Model/TypeDisplay.java
yinwil27/PortfolioRepositorySQLJava
90b0e7064bf0cc9b43ea6dc1eec210a2a3bc7c56
[ "MIT" ]
null
null
null
src/Model/TypeDisplay.java
yinwil27/PortfolioRepositorySQLJava
90b0e7064bf0cc9b43ea6dc1eec210a2a3bc7c56
[ "MIT" ]
null
null
null
src/Model/TypeDisplay.java
yinwil27/PortfolioRepositorySQLJava
90b0e7064bf0cc9b43ea6dc1eec210a2a3bc7c56
[ "MIT" ]
null
null
null
26.220588
80
0.58553
1,002,081
/* * 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 Model; /** * * @author Wakiti */ public class TypeDisplay { int Month; String Type; int Count; public TypeDisplay(int Month, String Type, int Count) { this.Month = Month; this.Type = Type; this.Count = Count; } /** * getMonth , grabs month * * • a compatible feature suitable to your application that would extend * functionality to the next version if you were to update the application : * Java SE should work */ public String getMonth() { switch(Month){ case 1: return "January"; case 2: return "February"; case 3: return "March"; case 4: return "April"; case 5: return "May"; case 6: return "June"; case 7: return "July"; case 8: return "August"; case 9: return "September"; case 10: return "October"; case 11: return "November"; default: return "December"; } } /** * getType , grabs type * * • a compatible feature suitable to your application that would extend * functionality to the next version if you were to update the application : * Java SE should work */ public String getType() { return Type; } /** * getCount , grabs count * * • a compatible feature suitable to your application that would extend * functionality to the next version if you were to update the application : * Java SE should work */ public int getCount() { return Count; } }
9241f1d1f491cdd94005bebd111af99f422d7bbe
942
java
Java
FoodtruckClient/app/src/main/java/com/busytrack/foodtruckclient/generic/viewmodel/BaseViewModel.java
radusalagean/foodtruck-app-android
1c598c9b6ff1065864ceaf98dc2065e40bcf14ed
[ "Apache-2.0" ]
null
null
null
FoodtruckClient/app/src/main/java/com/busytrack/foodtruckclient/generic/viewmodel/BaseViewModel.java
radusalagean/foodtruck-app-android
1c598c9b6ff1065864ceaf98dc2065e40bcf14ed
[ "Apache-2.0" ]
null
null
null
FoodtruckClient/app/src/main/java/com/busytrack/foodtruckclient/generic/viewmodel/BaseViewModel.java
radusalagean/foodtruck-app-android
1c598c9b6ff1065864ceaf98dc2065e40bcf14ed
[ "Apache-2.0" ]
null
null
null
33.642857
93
0.761146
1,002,082
package com.busytrack.foodtruckclient.generic.viewmodel; import com.busytrack.foodtruckclient.generic.contentinvalidation.InvalidationBundle; import com.busytrack.foodtruckclient.generic.contentinvalidation.InvalidationEffect; public abstract class BaseViewModel { /** * The invalidation effects accumulated while the fragment is in background. * Once the fragment is in the foreground again, the effects will be processed and then * will be cleared from this variable. */ protected int invalidationEffects; public int getInvalidationEffects() { return invalidationEffects; } public void clearInvalidationEffects() { this.invalidationEffects = InvalidationEffect.NONE; } /** * Override to implement the handling logic of every {@link InvalidationBundle} received */ protected abstract void processInvalidationBundle(InvalidationBundle invalidationBundle); }
9241f322d57d459bf6f5cd2c050ae0751554322e
421,238
java
Java
android/app/build/generated/source/r/release/com/andreea/R.java
AkankshaShrimal/React-Native-ChatBot
a939188a41a3a2cef97c121553e3a0bbd6014f41
[ "MIT" ]
9
2018-05-25T13:18:58.000Z
2020-12-19T09:44:09.000Z
android/app/build/generated/source/r/release/com/andreea/R.java
AkankshaShrimal/React-Native-ChatBot
a939188a41a3a2cef97c121553e3a0bbd6014f41
[ "MIT" ]
2
2018-05-25T05:51:25.000Z
2018-05-25T12:09:03.000Z
android/app/build/generated/source/r/release/com/andreea/R.java
AkankshaShrimal/React-Native-ChatBot
a939188a41a3a2cef97c121553e3a0bbd6014f41
[ "MIT" ]
3
2020-05-08T07:26:10.000Z
2022-02-09T17:00:18.000Z
58.367466
165
0.656323
1,002,083
/* 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.andreea; public final class R { public static final class anim { public static final int abc_fade_in=0x7f050000; public static final int abc_fade_out=0x7f050001; public static final int abc_grow_fade_in_from_bottom=0x7f050002; public static final int abc_popup_enter=0x7f050003; public static final int abc_popup_exit=0x7f050004; public static final int abc_shrink_fade_out_from_bottom=0x7f050005; public static final int abc_slide_in_bottom=0x7f050006; public static final int abc_slide_in_top=0x7f050007; public static final int abc_slide_out_bottom=0x7f050008; public static final int abc_slide_out_top=0x7f050009; public static final int catalyst_fade_in=0x7f05000a; public static final int catalyst_fade_out=0x7f05000b; public static final int catalyst_push_up_in=0x7f05000c; public static final int catalyst_push_up_out=0x7f05000d; public static final int catalyst_slide_down=0x7f05000e; public static final int catalyst_slide_up=0x7f05000f; } 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final int actionLayout=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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final int actionProviderClass=0x7f0100be; /** <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character. <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int actionViewClass=0x7f0100bd; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int activityChooserViewStyle=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 final int actualImageResource=0x7f0100d0; /** <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>none</code></td><td>-1</td><td></td></tr> <tr><td><code>fitXY</code></td><td>0</td><td></td></tr> <tr><td><code>fitStart</code></td><td>1</td><td></td></tr> <tr><td><code>fitCenter</code></td><td>2</td><td></td></tr> <tr><td><code>fitEnd</code></td><td>3</td><td></td></tr> <tr><td><code>center</code></td><td>4</td><td></td></tr> <tr><td><code>centerInside</code></td><td>5</td><td></td></tr> <tr><td><code>centerCrop</code></td><td>6</td><td></td></tr> <tr><td><code>focusCrop</code></td><td>7</td><td></td></tr> </table> */ public static final int actualImageScaleType=0x7f0100aa; /** <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character. <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int actualImageUri=0x7f0100cf; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final int background=0x7f01000c; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int backgroundImage=0x7f0100ab; /** <p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>". */ public static final int backgroundSplit=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 final 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 final int backgroundTint=0x7f0100ea; /** <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 final int backgroundTintMode=0x7f0100eb; /** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final int closeIcon=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 final 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 final int collapseContentDescription=0x7f0100e1; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int collapseIcon=0x7f0100e0; /** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int color=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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final int commitIcon=0x7f0100cb; /** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int contentInsetEnd=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 final 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 final 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 final 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 final 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 final 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 final int defaultQueryHint=0x7f0100c5; /** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int 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 final 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 final 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 final 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 final 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 final int dividerPadding=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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final int expandActivityOverflowButtonDrawable=0x7f01001e; /** <p>Must be an integer value, such as "<code>100</code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int fadeDuration=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 final int failureImage=0x7f0100a5; /** <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>none</code></td><td>-1</td><td></td></tr> <tr><td><code>fitXY</code></td><td>0</td><td></td></tr> <tr><td><code>fitStart</code></td><td>1</td><td></td></tr> <tr><td><code>fitCenter</code></td><td>2</td><td></td></tr> <tr><td><code>fitEnd</code></td><td>3</td><td></td></tr> <tr><td><code>center</code></td><td>4</td><td></td></tr> <tr><td><code>centerInside</code></td><td>5</td><td></td></tr> <tr><td><code>centerCrop</code></td><td>6</td><td></td></tr> <tr><td><code>focusCrop</code></td><td>7</td><td></td></tr> </table> */ public static final int failureImageScaleType=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 final 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 final int goIcon=0x7f0100c7; /** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int height=0x7f010001; /** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int hideOnContentScroll=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 final 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 final 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 final 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 final int iconifiedByDefault=0x7f0100c3; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final 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 final 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 final 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 final 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 final 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 final int layout=0x7f0100c2; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int listChoiceBackgroundIndicator=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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final int logoDescription=0x7f0100e4; /** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int maxButtonHeight=0x7f0100df; /** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int measureWithLargestChild=0x7f0100b8; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final 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 final int navigationContentDescription=0x7f0100e3; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int navigationIcon=0x7f0100e2; /** <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 final 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 final int overlapAnchor=0x7f0100c0; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int overlayImage=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 final int paddingEnd=0x7f0100e8; /** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int paddingStart=0x7f0100e7; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int panelBackground=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 final 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 final 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 final int placeholderImage=0x7f0100a1; /** <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>none</code></td><td>-1</td><td></td></tr> <tr><td><code>fitXY</code></td><td>0</td><td></td></tr> <tr><td><code>fitStart</code></td><td>1</td><td></td></tr> <tr><td><code>fitCenter</code></td><td>2</td><td></td></tr> <tr><td><code>fitEnd</code></td><td>3</td><td></td></tr> <tr><td><code>center</code></td><td>4</td><td></td></tr> <tr><td><code>centerInside</code></td><td>5</td><td></td></tr> <tr><td><code>centerCrop</code></td><td>6</td><td></td></tr> <tr><td><code>focusCrop</code></td><td>7</td><td></td></tr> </table> */ public static final int placeholderImageScaleType=0x7f0100a2; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int popupMenuStyle=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 final 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 final 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 final int preserveIconSpacing=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 final int pressedStateOverlayImage=0x7f0100ad; /** <p>Must be an integer value, such as "<code>100</code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int progressBarAutoRotateInterval=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 final int progressBarImage=0x7f0100a7; /** <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>none</code></td><td>-1</td><td></td></tr> <tr><td><code>fitXY</code></td><td>0</td><td></td></tr> <tr><td><code>fitStart</code></td><td>1</td><td></td></tr> <tr><td><code>fitCenter</code></td><td>2</td><td></td></tr> <tr><td><code>fitEnd</code></td><td>3</td><td></td></tr> <tr><td><code>center</code></td><td>4</td><td></td></tr> <tr><td><code>centerInside</code></td><td>5</td><td></td></tr> <tr><td><code>centerCrop</code></td><td>6</td><td></td></tr> <tr><td><code>focusCrop</code></td><td>7</td><td></td></tr> </table> */ public static final int progressBarImageScaleType=0x7f0100a8; /** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int progressBarPadding=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 final 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 final int queryBackground=0x7f0100cd; /** <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character. <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int queryHint=0x7f0100c4; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final 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 final 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 final 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 final 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 final int retryImage=0x7f0100a3; /** <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>none</code></td><td>-1</td><td></td></tr> <tr><td><code>fitXY</code></td><td>0</td><td></td></tr> <tr><td><code>fitStart</code></td><td>1</td><td></td></tr> <tr><td><code>fitCenter</code></td><td>2</td><td></td></tr> <tr><td><code>fitEnd</code></td><td>3</td><td></td></tr> <tr><td><code>center</code></td><td>4</td><td></td></tr> <tr><td><code>centerInside</code></td><td>5</td><td></td></tr> <tr><td><code>centerCrop</code></td><td>6</td><td></td></tr> <tr><td><code>focusCrop</code></td><td>7</td><td></td></tr> </table> */ public static final int retryImageScaleType=0x7f0100a4; /** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int roundAsCircle=0x7f0100ae; /** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int roundBottomLeft=0x7f0100b3; /** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int roundBottomRight=0x7f0100b2; /** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int roundTopLeft=0x7f0100b0; /** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int roundTopRight=0x7f0100b1; /** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int roundWithOverlayColor=0x7f0100b4; /** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int roundedCornerRadius=0x7f0100af; /** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int roundingBorderColor=0x7f0100b6; /** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int roundingBorderPadding=0x7f0100b7; /** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int roundingBorderWidth=0x7f0100b5; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int searchHintIcon=0x7f0100c9; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int searchIcon=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 final 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 final 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 final 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 final 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 final int showAsAction=0x7f0100bb; /** <p>Must be one or more (separated by '|') of the following constant values.</p> <table> <colgroup align="left" /> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Constant</th><th>Value</th><th>Description</th></tr> <tr><td><code>none</code></td><td>0</td><td></td></tr> <tr><td><code>beginning</code></td><td>1</td><td></td></tr> <tr><td><code>middle</code></td><td>2</td><td></td></tr> <tr><td><code>end</code></td><td>4</td><td></td></tr> </table> */ public static final int showDividers=0x7f0100b9; /** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int showText=0x7f0100d7; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final 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 final 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 final 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 final 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 final int splitTrack=0x7f0100d6; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final 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 final int state_above_anchor=0x7f0100c1; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int submitBackground=0x7f0100ce; /** <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character. <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int subtitle=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 final int subtitleTextAppearance=0x7f0100d9; /** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int subtitleTextColor=0x7f0100e6; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int subtitleTextStyle=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 final int suggestionRowLayout=0x7f0100cc; /** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int switchMinWidth=0x7f0100d4; /** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int switchPadding=0x7f0100d5; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int switchStyle=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 final int switchTextAppearance=0x7f0100d3; /** <p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>May be a boolean value, either "<code>true</code>" or "<code>false</code>". */ public static final int textAllCaps=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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final int theme=0x7f0100e9; /** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int thickness=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 final int thumbTextPadding=0x7f0100d2; /** <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character. <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int title=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 final int titleMarginBottom=0x7f0100de; /** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int titleMarginEnd=0x7f0100dc; /** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int titleMarginStart=0x7f0100db; /** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int titleMarginTop=0x7f0100dd; /** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int titleMargins=0x7f0100da; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int titleTextAppearance=0x7f0100d8; /** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int titleTextColor=0x7f0100e5; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int titleTextStyle=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 final 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 final 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 final int track=0x7f0100d1; /** <p>Must be a floating point value, such as "<code>1.2</code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int viewAspectRatio=0x7f0100a0; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int voiceIcon=0x7f0100ca; /** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int windowActionBar=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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final int windowNoTitle=0x7f010027; } public static final class bool { public static final int abc_action_bar_embed_tabs=0x7f080003; public static final int abc_action_bar_embed_tabs_pre_jb=0x7f080001; public static final int abc_action_bar_expanded_action_views_exclusive=0x7f080004; public static final int abc_allow_stacked_button_bar=0x7f080000; public static final int abc_config_actionMenuItemAllCaps=0x7f080005; public static final int abc_config_allowActionMenuItemTextWithIcon=0x7f080002; public static final int abc_config_closeDialogWhenTouchOutside=0x7f080006; public static final int abc_config_showMenuShortcutsWhenKeyboardPresent=0x7f080007; } public static final class color { public static final int abc_background_cache_hint_selector_material_dark=0x7f0c003b; public static final int abc_background_cache_hint_selector_material_light=0x7f0c003c; public static final int abc_color_highlight_material=0x7f0c003d; public static final int abc_input_method_navigation_guard=0x7f0c0000; public static final int abc_primary_text_disable_only_material_dark=0x7f0c003e; public static final int abc_primary_text_disable_only_material_light=0x7f0c003f; public static final int abc_primary_text_material_dark=0x7f0c0040; public static final int abc_primary_text_material_light=0x7f0c0041; public static final int abc_search_url_text=0x7f0c0042; public static final int abc_search_url_text_normal=0x7f0c0001; public static final int abc_search_url_text_pressed=0x7f0c0002; public static final int abc_search_url_text_selected=0x7f0c0003; public static final int abc_secondary_text_material_dark=0x7f0c0043; public static final int abc_secondary_text_material_light=0x7f0c0044; public static final int accent_material_dark=0x7f0c0004; public static final int accent_material_light=0x7f0c0005; public static final int background_floating_material_dark=0x7f0c0006; public static final int background_floating_material_light=0x7f0c0007; public static final int background_material_dark=0x7f0c0008; public static final int background_material_light=0x7f0c0009; public static final int bright_foreground_disabled_material_dark=0x7f0c000a; public static final int bright_foreground_disabled_material_light=0x7f0c000b; public static final int bright_foreground_inverse_material_dark=0x7f0c000c; public static final int bright_foreground_inverse_material_light=0x7f0c000d; public static final int bright_foreground_material_dark=0x7f0c000e; public static final int bright_foreground_material_light=0x7f0c000f; public static final int button_material_dark=0x7f0c0010; public static final int button_material_light=0x7f0c0011; public static final int catalyst_redbox_background=0x7f0c0012; public static final int dim_foreground_disabled_material_dark=0x7f0c0013; public static final int dim_foreground_disabled_material_light=0x7f0c0014; public static final int dim_foreground_material_dark=0x7f0c0015; public static final int dim_foreground_material_light=0x7f0c0016; public static final int foreground_material_dark=0x7f0c0017; public static final int foreground_material_light=0x7f0c0018; public static final int highlighted_text_material_dark=0x7f0c0019; public static final int highlighted_text_material_light=0x7f0c001a; public static final int hint_foreground_material_dark=0x7f0c001b; public static final int hint_foreground_material_light=0x7f0c001c; public static final int material_blue_grey_800=0x7f0c001d; public static final int material_blue_grey_900=0x7f0c001e; public static final int material_blue_grey_950=0x7f0c001f; public static final int material_deep_teal_200=0x7f0c0020; public static final int material_deep_teal_500=0x7f0c0021; public static final int material_grey_100=0x7f0c0022; public static final int material_grey_300=0x7f0c0023; public static final int material_grey_50=0x7f0c0024; public static final int material_grey_600=0x7f0c0025; public static final int material_grey_800=0x7f0c0026; public static final int material_grey_850=0x7f0c0027; public static final int material_grey_900=0x7f0c0028; public static final int primary_dark_material_dark=0x7f0c0029; public static final int primary_dark_material_light=0x7f0c002a; public static final int primary_material_dark=0x7f0c002b; public static final int primary_material_light=0x7f0c002c; public static final int primary_text_default_material_dark=0x7f0c002d; public static final int primary_text_default_material_light=0x7f0c002e; public static final int primary_text_disabled_material_dark=0x7f0c002f; public static final int primary_text_disabled_material_light=0x7f0c0030; public static final int ripple_material_dark=0x7f0c0031; public static final int ripple_material_light=0x7f0c0032; public static final int secondary_text_default_material_dark=0x7f0c0033; public static final int secondary_text_default_material_light=0x7f0c0034; public static final int secondary_text_disabled_material_dark=0x7f0c0035; public static final int secondary_text_disabled_material_light=0x7f0c0036; public static final int switch_thumb_disabled_material_dark=0x7f0c0037; public static final int switch_thumb_disabled_material_light=0x7f0c0038; public static final int switch_thumb_material_dark=0x7f0c0045; public static final int switch_thumb_material_light=0x7f0c0046; public static final int switch_thumb_normal_material_dark=0x7f0c0039; public static final int switch_thumb_normal_material_light=0x7f0c003a; } public static final class dimen { public static final int abc_action_bar_content_inset_material=0x7f09000d; public static final int abc_action_bar_default_height_material=0x7f090001; public static final int abc_action_bar_default_padding_end_material=0x7f09000e; public static final int abc_action_bar_default_padding_start_material=0x7f09000f; public static final int abc_action_bar_icon_vertical_padding_material=0x7f090011; public static final int abc_action_bar_overflow_padding_end_material=0x7f090012; public static final int abc_action_bar_overflow_padding_start_material=0x7f090013; public static final int abc_action_bar_progress_bar_size=0x7f090002; public static final int abc_action_bar_stacked_max_height=0x7f090014; public static final int abc_action_bar_stacked_tab_max_width=0x7f090015; public static final int abc_action_bar_subtitle_bottom_margin_material=0x7f090016; public static final int abc_action_bar_subtitle_top_margin_material=0x7f090017; public static final int abc_action_button_min_height_material=0x7f090018; public static final int abc_action_button_min_width_material=0x7f090019; public static final int abc_action_button_min_width_overflow_material=0x7f09001a; public static final int abc_alert_dialog_button_bar_height=0x7f090000; public static final int abc_button_inset_horizontal_material=0x7f09001b; public static final int abc_button_inset_vertical_material=0x7f09001c; public static final int abc_button_padding_horizontal_material=0x7f09001d; public static final int abc_button_padding_vertical_material=0x7f09001e; public static final int abc_config_prefDialogWidth=0x7f090005; public static final int abc_control_corner_material=0x7f09001f; public static final int abc_control_inset_material=0x7f090020; public static final int abc_control_padding_material=0x7f090021; public static final int abc_dialog_fixed_height_major=0x7f090006; public static final int abc_dialog_fixed_height_minor=0x7f090007; public static final int abc_dialog_fixed_width_major=0x7f090008; public static final int abc_dialog_fixed_width_minor=0x7f090009; public static final int abc_dialog_list_padding_vertical_material=0x7f090022; public static final int abc_dialog_min_width_major=0x7f09000a; public static final int abc_dialog_min_width_minor=0x7f09000b; public static final int abc_dialog_padding_material=0x7f090023; public static final int abc_dialog_padding_top_material=0x7f090024; public static final int abc_disabled_alpha_material_dark=0x7f090025; public static final int abc_disabled_alpha_material_light=0x7f090026; public static final int abc_dropdownitem_icon_width=0x7f090027; public static final int abc_dropdownitem_text_padding_left=0x7f090028; public static final int abc_dropdownitem_text_padding_right=0x7f090029; public static final int abc_edit_text_inset_bottom_material=0x7f09002a; public static final int abc_edit_text_inset_horizontal_material=0x7f09002b; public static final int abc_edit_text_inset_top_material=0x7f09002c; public static final int abc_floating_window_z=0x7f09002d; public static final int abc_list_item_padding_horizontal_material=0x7f09002e; public static final int abc_panel_menu_list_width=0x7f09002f; public static final int abc_search_view_preferred_width=0x7f090030; public static final int abc_search_view_text_min_width=0x7f09000c; public static final int abc_seekbar_track_background_height_material=0x7f090031; public static final int abc_seekbar_track_progress_height_material=0x7f090032; public static final int abc_select_dialog_padding_start_material=0x7f090033; public static final int abc_switch_padding=0x7f090010; public static final int abc_text_size_body_1_material=0x7f090034; public static final int abc_text_size_body_2_material=0x7f090035; public static final int abc_text_size_button_material=0x7f090036; public static final int abc_text_size_caption_material=0x7f090037; public static final int abc_text_size_display_1_material=0x7f090038; public static final int abc_text_size_display_2_material=0x7f090039; public static final int abc_text_size_display_3_material=0x7f09003a; public static final int abc_text_size_display_4_material=0x7f09003b; public static final int abc_text_size_headline_material=0x7f09003c; public static final int abc_text_size_large_material=0x7f09003d; public static final int abc_text_size_medium_material=0x7f09003e; public static final int abc_text_size_menu_material=0x7f09003f; public static final int abc_text_size_small_material=0x7f090040; public static final int abc_text_size_subhead_material=0x7f090041; public static final int abc_text_size_subtitle_material_toolbar=0x7f090003; public static final int abc_text_size_title_material=0x7f090042; public static final int abc_text_size_title_material_toolbar=0x7f090004; public static final int disabled_alpha_material_dark=0x7f090043; public static final int disabled_alpha_material_light=0x7f090044; public static final int highlight_alpha_material_colored=0x7f090045; public static final int highlight_alpha_material_dark=0x7f090046; public static final int highlight_alpha_material_light=0x7f090047; public static final int notification_large_icon_height=0x7f090048; public static final int notification_large_icon_width=0x7f090049; public static final int notification_subtext_size=0x7f09004a; } public static final class drawable { public static final int abc_ab_share_pack_mtrl_alpha=0x7f020000; public static final int abc_action_bar_item_background_material=0x7f020001; public static final int abc_btn_borderless_material=0x7f020002; public static final int abc_btn_check_material=0x7f020003; public static final int abc_btn_check_to_on_mtrl_000=0x7f020004; public static final int abc_btn_check_to_on_mtrl_015=0x7f020005; public static final int abc_btn_colored_material=0x7f020006; public static final int abc_btn_default_mtrl_shape=0x7f020007; public static final int abc_btn_radio_material=0x7f020008; public static final int abc_btn_radio_to_on_mtrl_000=0x7f020009; public static final int abc_btn_radio_to_on_mtrl_015=0x7f02000a; public static final int abc_btn_rating_star_off_mtrl_alpha=0x7f02000b; public static final int abc_btn_rating_star_on_mtrl_alpha=0x7f02000c; public static final int abc_btn_switch_to_on_mtrl_00001=0x7f02000d; public static final int abc_btn_switch_to_on_mtrl_00012=0x7f02000e; public static final int abc_cab_background_internal_bg=0x7f02000f; public static final int abc_cab_background_top_material=0x7f020010; public static final int abc_cab_background_top_mtrl_alpha=0x7f020011; public static final int abc_control_background_material=0x7f020012; public static final int abc_dialog_material_background_dark=0x7f020013; public static final int abc_dialog_material_background_light=0x7f020014; public static final int abc_edit_text_material=0x7f020015; public static final int abc_ic_ab_back_mtrl_am_alpha=0x7f020016; public static final int abc_ic_clear_mtrl_alpha=0x7f020017; public static final int abc_ic_commit_search_api_mtrl_alpha=0x7f020018; public static final int abc_ic_go_search_api_mtrl_alpha=0x7f020019; public static final int abc_ic_menu_copy_mtrl_am_alpha=0x7f02001a; public static final int abc_ic_menu_cut_mtrl_alpha=0x7f02001b; public static final int abc_ic_menu_moreoverflow_mtrl_alpha=0x7f02001c; public static final int abc_ic_menu_paste_mtrl_am_alpha=0x7f02001d; public static final int abc_ic_menu_selectall_mtrl_alpha=0x7f02001e; public static final int abc_ic_menu_share_mtrl_alpha=0x7f02001f; public static final int abc_ic_search_api_mtrl_alpha=0x7f020020; public static final int abc_ic_star_black_16dp=0x7f020021; public static final int abc_ic_star_black_36dp=0x7f020022; public static final int abc_ic_star_half_black_16dp=0x7f020023; public static final int abc_ic_star_half_black_36dp=0x7f020024; public static final int abc_ic_voice_search_api_mtrl_alpha=0x7f020025; public static final int abc_item_background_holo_dark=0x7f020026; public static final int abc_item_background_holo_light=0x7f020027; public static final int abc_list_divider_mtrl_alpha=0x7f020028; public static final int abc_list_focused_holo=0x7f020029; public static final int abc_list_longpressed_holo=0x7f02002a; public static final int abc_list_pressed_holo_dark=0x7f02002b; public static final int abc_list_pressed_holo_light=0x7f02002c; public static final int abc_list_selector_background_transition_holo_dark=0x7f02002d; public static final int abc_list_selector_background_transition_holo_light=0x7f02002e; public static final int abc_list_selector_disabled_holo_dark=0x7f02002f; public static final int abc_list_selector_disabled_holo_light=0x7f020030; public static final int abc_list_selector_holo_dark=0x7f020031; public static final int abc_list_selector_holo_light=0x7f020032; public static final int abc_menu_hardkey_panel_mtrl_mult=0x7f020033; public static final int abc_popup_background_mtrl_mult=0x7f020034; public static final int abc_ratingbar_full_material=0x7f020035; public static final int abc_ratingbar_indicator_material=0x7f020036; public static final int abc_ratingbar_small_material=0x7f020037; public static final int abc_scrubber_control_off_mtrl_alpha=0x7f020038; public static final int abc_scrubber_control_to_pressed_mtrl_000=0x7f020039; public static final int abc_scrubber_control_to_pressed_mtrl_005=0x7f02003a; public static final int abc_scrubber_primary_mtrl_alpha=0x7f02003b; public static final int abc_scrubber_track_mtrl_alpha=0x7f02003c; public static final int abc_seekbar_thumb_material=0x7f02003d; public static final int abc_seekbar_track_material=0x7f02003e; public static final int abc_spinner_mtrl_am_alpha=0x7f02003f; public static final int abc_spinner_textfield_background_material=0x7f020040; public static final int abc_switch_thumb_material=0x7f020041; public static final int abc_switch_track_mtrl_alpha=0x7f020042; public static final int abc_tab_indicator_material=0x7f020043; public static final int abc_tab_indicator_mtrl_alpha=0x7f020044; public static final int abc_text_cursor_material=0x7f020045; public static final int abc_textfield_activated_mtrl_alpha=0x7f020046; public static final int abc_textfield_default_mtrl_alpha=0x7f020047; public static final int abc_textfield_search_activated_mtrl_alpha=0x7f020048; public static final int abc_textfield_search_default_mtrl_alpha=0x7f020049; public static final int abc_textfield_search_material=0x7f02004a; public static final int images_chat=0x7f02004b; public static final int images_robo=0x7f02004c; public static final int images_user=0x7f02004d; public static final int node_modules_reactnativeelements_src_rating_images_bell=0x7f02004e; public static final int node_modules_reactnativeelements_src_rating_images_heart=0x7f02004f; public static final int node_modules_reactnativeelements_src_rating_images_rocket=0x7f020050; public static final int node_modules_reactnativeelements_src_rating_images_star=0x7f020051; public static final int node_modules_reactnavigation_src_views_assets_backicon=0x7f020052; public static final int node_modules_reactnavigation_src_views_assets_backiconmask=0x7f020053; public static final int notification_template_icon_bg=0x7f020054; } public static final class id { public static final int action0=0x7f0d005b; public static final int action_bar=0x7f0d004b; public static final int action_bar_activity_content=0x7f0d0000; public static final int action_bar_container=0x7f0d004a; public static final int action_bar_root=0x7f0d0046; public static final int action_bar_spinner=0x7f0d0001; public static final int action_bar_subtitle=0x7f0d002c; public static final int action_bar_title=0x7f0d002b; public static final int action_context_bar=0x7f0d004c; public static final int action_divider=0x7f0d005f; public static final int action_menu_divider=0x7f0d0002; public static final int action_menu_presenter=0x7f0d0003; public static final int action_mode_bar=0x7f0d0048; public static final int action_mode_bar_stub=0x7f0d0047; public static final int action_mode_close_button=0x7f0d002d; public static final int activity_chooser_view_content=0x7f0d002e; public static final int alertTitle=0x7f0d003a; public static final int always=0x7f0d0026; public static final int beginning=0x7f0d0023; public static final int buttonPanel=0x7f0d0035; public static final int cancel_action=0x7f0d005c; public static final int catalyst_redbox_title=0x7f0d006a; public static final int center=0x7f0d001b; public static final int centerCrop=0x7f0d001c; public static final int centerInside=0x7f0d001d; public static final int checkbox=0x7f0d0043; public static final int chronometer=0x7f0d0062; public static final int collapseActionView=0x7f0d0027; public static final int contentPanel=0x7f0d003b; public static final int custom=0x7f0d0041; public static final int customPanel=0x7f0d0040; public static final int decor_content_parent=0x7f0d0049; public static final int default_activity_button=0x7f0d0031; public static final int disableHome=0x7f0d000e; public static final int edit_query=0x7f0d004d; public static final int end=0x7f0d0024; public static final int end_padder=0x7f0d0067; public static final int expand_activities_button=0x7f0d002f; public static final int expanded_menu=0x7f0d0042; public static final int fitCenter=0x7f0d001e; public static final int fitEnd=0x7f0d001f; public static final int fitStart=0x7f0d0020; public static final int fitXY=0x7f0d0021; public static final int focusCrop=0x7f0d0022; public static final int fps_text=0x7f0d005a; public static final int home=0x7f0d0004; public static final int homeAsUp=0x7f0d000f; public static final int icon=0x7f0d0033; public static final int ifRoom=0x7f0d0028; public static final int image=0x7f0d0030; public static final int info=0x7f0d0066; public static final int line1=0x7f0d0060; public static final int line3=0x7f0d0064; public static final int listMode=0x7f0d000b; public static final int list_item=0x7f0d0032; public static final int media_actions=0x7f0d005e; public static final int middle=0x7f0d0025; public static final int multiply=0x7f0d0016; public static final int never=0x7f0d0029; public static final int none=0x7f0d0010; public static final int normal=0x7f0d000c; public static final int parentPanel=0x7f0d0037; public static final int progress_circular=0x7f0d0005; public static final int progress_horizontal=0x7f0d0006; public static final int radio=0x7f0d0045; public static final int react_test_id=0x7f0d0007; public static final int rn_frame_file=0x7f0d0069; public static final int rn_frame_method=0x7f0d0068; public static final int rn_redbox_copy_button=0x7f0d0071; public static final int rn_redbox_dismiss_button=0x7f0d006f; public static final int rn_redbox_line_separator=0x7f0d006c; public static final int rn_redbox_loading_indicator=0x7f0d006d; public static final int rn_redbox_reload_button=0x7f0d0070; public static final int rn_redbox_report_button=0x7f0d0072; public static final int rn_redbox_report_label=0x7f0d006e; public static final int rn_redbox_stack=0x7f0d006b; public static final int screen=0x7f0d0017; public static final int scrollIndicatorDown=0x7f0d003f; public static final int scrollIndicatorUp=0x7f0d003c; public static final int scrollView=0x7f0d003d; public static final int search_badge=0x7f0d004f; public static final int search_bar=0x7f0d004e; public static final int search_button=0x7f0d0050; public static final int search_close_btn=0x7f0d0055; public static final int search_edit_frame=0x7f0d0051; public static final int search_go_btn=0x7f0d0057; public static final int search_mag_icon=0x7f0d0052; public static final int search_plate=0x7f0d0053; public static final int search_src_text=0x7f0d0054; public static final int search_voice_btn=0x7f0d0058; public static final int select_dialog_listview=0x7f0d0059; public static final int shortcut=0x7f0d0044; public static final int showCustom=0x7f0d0011; public static final int showHome=0x7f0d0012; public static final int showTitle=0x7f0d0013; public static final int spacer=0x7f0d0036; public static final int split_action_bar=0x7f0d0008; public static final int src_atop=0x7f0d0018; public static final int src_in=0x7f0d0019; public static final int src_over=0x7f0d001a; public static final int status_bar_latest_event_content=0x7f0d005d; public static final int submit_area=0x7f0d0056; public static final int tabMode=0x7f0d000d; public static final int text=0x7f0d0065; public static final int text2=0x7f0d0063; public static final int textSpacerNoButtons=0x7f0d003e; public static final int time=0x7f0d0061; public static final int title=0x7f0d0034; public static final int title_template=0x7f0d0039; public static final int topPanel=0x7f0d0038; public static final int up=0x7f0d0009; public static final int useLogo=0x7f0d0014; public static final int view_tag_native_id=0x7f0d000a; public static final int withText=0x7f0d002a; public static final int wrap_content=0x7f0d0015; } public static final class integer { public static final int abc_config_activityDefaultDur=0x7f0b0001; public static final int abc_config_activityShortDur=0x7f0b0002; public static final int abc_max_action_buttons=0x7f0b0000; public static final int cancel_button_image_alpha=0x7f0b0003; public static final int status_bar_notification_info_maxnum=0x7f0b0004; } public static final class layout { public static final int abc_action_bar_title_item=0x7f040000; public static final int abc_action_bar_up_container=0x7f040001; public static final int abc_action_bar_view_list_nav_layout=0x7f040002; public static final int abc_action_menu_item_layout=0x7f040003; public static final int abc_action_menu_layout=0x7f040004; public static final int abc_action_mode_bar=0x7f040005; public static final int abc_action_mode_close_item_material=0x7f040006; public static final int abc_activity_chooser_view=0x7f040007; public static final int abc_activity_chooser_view_list_item=0x7f040008; public static final int abc_alert_dialog_button_bar_material=0x7f040009; public static final int abc_alert_dialog_material=0x7f04000a; public static final int abc_dialog_title_material=0x7f04000b; public static final int abc_expanded_menu_layout=0x7f04000c; public static final int abc_list_menu_item_checkbox=0x7f04000d; public static final int abc_list_menu_item_icon=0x7f04000e; public static final int abc_list_menu_item_layout=0x7f04000f; public static final int abc_list_menu_item_radio=0x7f040010; public static final int abc_popup_menu_item_layout=0x7f040011; public static final int abc_screen_content_include=0x7f040012; public static final int abc_screen_simple=0x7f040013; public static final int abc_screen_simple_overlay_action_mode=0x7f040014; public static final int abc_screen_toolbar=0x7f040015; public static final int abc_search_dropdown_item_icons_2line=0x7f040016; public static final int abc_search_view=0x7f040017; public static final int abc_select_dialog_material=0x7f040018; public static final int dev_loading_view=0x7f040019; public static final int fps_view=0x7f04001a; public static final int notification_media_action=0x7f04001b; public static final int notification_media_cancel_action=0x7f04001c; public static final int notification_template_big_media=0x7f04001d; public static final int notification_template_big_media_narrow=0x7f04001e; public static final int notification_template_lines=0x7f04001f; public static final int notification_template_media=0x7f040020; public static final int notification_template_part_chronometer=0x7f040021; public static final int notification_template_part_time=0x7f040022; public static final int redbox_item_frame=0x7f040023; public static final int redbox_item_title=0x7f040024; public static final int redbox_view=0x7f040025; public static final int select_dialog_item_material=0x7f040026; public static final int select_dialog_multichoice_material=0x7f040027; public static final int select_dialog_singlechoice_material=0x7f040028; public static final int support_simple_spinner_dropdown_item=0x7f040029; } public static final class mipmap { public static final int ic_launcher=0x7f030000; } public static final class string { public static final int abc_action_bar_home_description=0x7f070000; public static final int abc_action_bar_home_description_format=0x7f070001; public static final int abc_action_bar_home_subtitle_description_format=0x7f070002; public static final int abc_action_bar_up_description=0x7f070003; public static final int abc_action_menu_overflow_description=0x7f070004; public static final int abc_action_mode_done=0x7f070005; public static final int abc_activity_chooser_view_see_all=0x7f070006; public static final int abc_activitychooserview_choose_application=0x7f070007; public static final int abc_capital_off=0x7f070008; public static final int abc_capital_on=0x7f070009; public static final int abc_search_hint=0x7f07000a; public static final int abc_searchview_description_clear=0x7f07000b; public static final int abc_searchview_description_query=0x7f07000c; public static final int abc_searchview_description_search=0x7f07000d; public static final int abc_searchview_description_submit=0x7f07000e; public static final int abc_searchview_description_voice=0x7f07000f; public static final int abc_shareactionprovider_share_with=0x7f070010; public static final int abc_shareactionprovider_share_with_application=0x7f070011; public static final int abc_toolbar_collapse_description=0x7f070012; public static final int app_name=0x7f070014; public static final int catalyst_copy_button=0x7f070015; public static final int catalyst_debugjs=0x7f070016; public static final int catalyst_debugjs_nuclide=0x7f070017; public static final int catalyst_debugjs_nuclide_failure=0x7f070018; public static final int catalyst_debugjs_off=0x7f070019; public static final int catalyst_dismiss_button=0x7f07001a; public static final int catalyst_element_inspector=0x7f07001b; public static final int catalyst_heap_capture=0x7f07001c; public static final int catalyst_hot_module_replacement=0x7f07001d; public static final int catalyst_hot_module_replacement_off=0x7f07001e; public static final int catalyst_jsload_error=0x7f07001f; public static final int catalyst_live_reload=0x7f070020; public static final int catalyst_live_reload_off=0x7f070021; public static final int catalyst_loading_from_url=0x7f070022; public static final int catalyst_perf_monitor=0x7f070023; public static final int catalyst_perf_monitor_off=0x7f070024; public static final int catalyst_poke_sampling_profiler=0x7f070025; public static final int catalyst_reload_button=0x7f070026; public static final int catalyst_reloadjs=0x7f070027; public static final int catalyst_remotedbg_error=0x7f070028; public static final int catalyst_remotedbg_message=0x7f070029; public static final int catalyst_report_button=0x7f07002a; public static final int catalyst_settings=0x7f07002b; public static final int catalyst_settings_title=0x7f07002c; public static final int status_bar_notification_info_overflow=0x7f070013; } public static final class style { public static final int AlertDialog_AppCompat=0x7f0a0086; public static final int AlertDialog_AppCompat_Light=0x7f0a0087; public static final int Animation_AppCompat_Dialog=0x7f0a0088; public static final int Animation_AppCompat_DropDownUp=0x7f0a0089; public static final int Animation_Catalyst_RedBox=0x7f0a008a; /** Customize your theme here. */ public static final int AppTheme=0x7f0a008b; public static final int Base_AlertDialog_AppCompat=0x7f0a008c; public static final int Base_AlertDialog_AppCompat_Light=0x7f0a008d; public static final int Base_Animation_AppCompat_Dialog=0x7f0a008e; public static final int Base_Animation_AppCompat_DropDownUp=0x7f0a008f; public static final int Base_DialogWindowTitle_AppCompat=0x7f0a0090; public static final int Base_DialogWindowTitleBackground_AppCompat=0x7f0a0091; public static final int Base_TextAppearance_AppCompat=0x7f0a0036; public static final int Base_TextAppearance_AppCompat_Body1=0x7f0a0037; public static final int Base_TextAppearance_AppCompat_Body2=0x7f0a0038; public static final int Base_TextAppearance_AppCompat_Button=0x7f0a0020; public static final int Base_TextAppearance_AppCompat_Caption=0x7f0a0039; public static final int Base_TextAppearance_AppCompat_Display1=0x7f0a003a; public static final int Base_TextAppearance_AppCompat_Display2=0x7f0a003b; public static final int Base_TextAppearance_AppCompat_Display3=0x7f0a003c; public static final int Base_TextAppearance_AppCompat_Display4=0x7f0a003d; public static final int Base_TextAppearance_AppCompat_Headline=0x7f0a003e; public static final int Base_TextAppearance_AppCompat_Inverse=0x7f0a000b; public static final int Base_TextAppearance_AppCompat_Large=0x7f0a003f; public static final int Base_TextAppearance_AppCompat_Large_Inverse=0x7f0a000c; public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Large=0x7f0a0040; public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Small=0x7f0a0041; public static final int Base_TextAppearance_AppCompat_Medium=0x7f0a0042; public static final int Base_TextAppearance_AppCompat_Medium_Inverse=0x7f0a000d; public static final int Base_TextAppearance_AppCompat_Menu=0x7f0a0043; public static final int Base_TextAppearance_AppCompat_SearchResult=0x7f0a0092; public static final int Base_TextAppearance_AppCompat_SearchResult_Subtitle=0x7f0a0044; public static final int Base_TextAppearance_AppCompat_SearchResult_Title=0x7f0a0045; public static final int Base_TextAppearance_AppCompat_Small=0x7f0a0046; public static final int Base_TextAppearance_AppCompat_Small_Inverse=0x7f0a000e; public static final int Base_TextAppearance_AppCompat_Subhead=0x7f0a0047; public static final int Base_TextAppearance_AppCompat_Subhead_Inverse=0x7f0a000f; public static final int Base_TextAppearance_AppCompat_Title=0x7f0a0048; public static final int Base_TextAppearance_AppCompat_Title_Inverse=0x7f0a0010; public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Menu=0x7f0a007f; public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle=0x7f0a0049; public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse=0x7f0a004a; public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title=0x7f0a004b; public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse=0x7f0a004c; public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Subtitle=0x7f0a004d; public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Title=0x7f0a004e; public static final int Base_TextAppearance_AppCompat_Widget_Button=0x7f0a004f; public static final int Base_TextAppearance_AppCompat_Widget_Button_Inverse=0x7f0a0080; public static final int Base_TextAppearance_AppCompat_Widget_DropDownItem=0x7f0a0093; public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Large=0x7f0a0050; public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Small=0x7f0a0051; public static final int Base_TextAppearance_AppCompat_Widget_Switch=0x7f0a0052; public static final int Base_TextAppearance_AppCompat_Widget_TextView_SpinnerItem=0x7f0a0053; public static final int Base_TextAppearance_Widget_AppCompat_ExpandedMenu_Item=0x7f0a0094; public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Subtitle=0x7f0a0054; public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Title=0x7f0a0055; public static final int Base_Theme_AppCompat=0x7f0a0056; public static final int Base_Theme_AppCompat_CompactMenu=0x7f0a0095; public static final int Base_Theme_AppCompat_Dialog=0x7f0a0011; public static final int Base_Theme_AppCompat_Dialog_Alert=0x7f0a0096; public static final int Base_Theme_AppCompat_Dialog_FixedSize=0x7f0a0097; public static final int Base_Theme_AppCompat_Dialog_MinWidth=0x7f0a0098; public static final int Base_Theme_AppCompat_DialogWhenLarge=0x7f0a0001; public static final int Base_Theme_AppCompat_Light=0x7f0a0057; public static final int Base_Theme_AppCompat_Light_DarkActionBar=0x7f0a0099; public static final int Base_Theme_AppCompat_Light_Dialog=0x7f0a0012; public static final int Base_Theme_AppCompat_Light_Dialog_Alert=0x7f0a009a; public static final int Base_Theme_AppCompat_Light_Dialog_FixedSize=0x7f0a009b; public static final int Base_Theme_AppCompat_Light_Dialog_MinWidth=0x7f0a009c; public static final int Base_Theme_AppCompat_Light_DialogWhenLarge=0x7f0a0002; public static final int Base_ThemeOverlay_AppCompat=0x7f0a009d; public static final int Base_ThemeOverlay_AppCompat_ActionBar=0x7f0a009e; public static final int Base_ThemeOverlay_AppCompat_Dark=0x7f0a009f; public static final int Base_ThemeOverlay_AppCompat_Dark_ActionBar=0x7f0a00a0; public static final int Base_ThemeOverlay_AppCompat_Light=0x7f0a00a1; public static final int Base_V11_Theme_AppCompat_Dialog=0x7f0a0013; public static final int Base_V11_Theme_AppCompat_Light_Dialog=0x7f0a0014; public static final int Base_V12_Widget_AppCompat_AutoCompleteTextView=0x7f0a001c; public static final int Base_V12_Widget_AppCompat_EditText=0x7f0a001d; public static final int Base_V21_Theme_AppCompat=0x7f0a0058; public static final int Base_V21_Theme_AppCompat_Dialog=0x7f0a0059; public static final int Base_V21_Theme_AppCompat_Light=0x7f0a005a; public static final int Base_V21_Theme_AppCompat_Light_Dialog=0x7f0a005b; public static final int Base_V22_Theme_AppCompat=0x7f0a007d; public static final int Base_V22_Theme_AppCompat_Light=0x7f0a007e; public static final int Base_V23_Theme_AppCompat=0x7f0a0081; public static final int Base_V23_Theme_AppCompat_Light=0x7f0a0082; public static final int Base_V7_Theme_AppCompat=0x7f0a00a2; public static final int Base_V7_Theme_AppCompat_Dialog=0x7f0a00a3; public static final int Base_V7_Theme_AppCompat_Light=0x7f0a00a4; public static final int Base_V7_Theme_AppCompat_Light_Dialog=0x7f0a00a5; public static final int Base_V7_Widget_AppCompat_AutoCompleteTextView=0x7f0a00a6; public static final int Base_V7_Widget_AppCompat_EditText=0x7f0a00a7; public static final int Base_Widget_AppCompat_ActionBar=0x7f0a00a8; public static final int Base_Widget_AppCompat_ActionBar_Solid=0x7f0a00a9; public static final int Base_Widget_AppCompat_ActionBar_TabBar=0x7f0a00aa; public static final int Base_Widget_AppCompat_ActionBar_TabText=0x7f0a005c; public static final int Base_Widget_AppCompat_ActionBar_TabView=0x7f0a005d; public static final int Base_Widget_AppCompat_ActionButton=0x7f0a005e; public static final int Base_Widget_AppCompat_ActionButton_CloseMode=0x7f0a005f; public static final int Base_Widget_AppCompat_ActionButton_Overflow=0x7f0a0060; public static final int Base_Widget_AppCompat_ActionMode=0x7f0a00ab; public static final int Base_Widget_AppCompat_ActivityChooserView=0x7f0a00ac; public static final int Base_Widget_AppCompat_AutoCompleteTextView=0x7f0a001e; public static final int Base_Widget_AppCompat_Button=0x7f0a0061; public static final int Base_Widget_AppCompat_Button_Borderless=0x7f0a0062; public static final int Base_Widget_AppCompat_Button_Borderless_Colored=0x7f0a0063; public static final int Base_Widget_AppCompat_Button_ButtonBar_AlertDialog=0x7f0a00ad; public static final int Base_Widget_AppCompat_Button_Colored=0x7f0a0083; public static final int Base_Widget_AppCompat_Button_Small=0x7f0a0064; public static final int Base_Widget_AppCompat_ButtonBar=0x7f0a0065; public static final int Base_Widget_AppCompat_ButtonBar_AlertDialog=0x7f0a00ae; public static final int Base_Widget_AppCompat_CompoundButton_CheckBox=0x7f0a0066; public static final int Base_Widget_AppCompat_CompoundButton_RadioButton=0x7f0a0067; public static final int Base_Widget_AppCompat_CompoundButton_Switch=0x7f0a00af; public static final int Base_Widget_AppCompat_DrawerArrowToggle=0x7f0a0000; public static final int Base_Widget_AppCompat_DrawerArrowToggle_Common=0x7f0a00b0; public static final int Base_Widget_AppCompat_DropDownItem_Spinner=0x7f0a0068; public static final int Base_Widget_AppCompat_EditText=0x7f0a001f; public static final int Base_Widget_AppCompat_ImageButton=0x7f0a0069; public static final int Base_Widget_AppCompat_Light_ActionBar=0x7f0a00b1; public static final int Base_Widget_AppCompat_Light_ActionBar_Solid=0x7f0a00b2; public static final int Base_Widget_AppCompat_Light_ActionBar_TabBar=0x7f0a00b3; public static final int Base_Widget_AppCompat_Light_ActionBar_TabText=0x7f0a006a; public static final int Base_Widget_AppCompat_Light_ActionBar_TabText_Inverse=0x7f0a006b; public static final int Base_Widget_AppCompat_Light_ActionBar_TabView=0x7f0a006c; public static final int Base_Widget_AppCompat_Light_PopupMenu=0x7f0a006d; public static final int Base_Widget_AppCompat_Light_PopupMenu_Overflow=0x7f0a006e; public static final int Base_Widget_AppCompat_ListPopupWindow=0x7f0a006f; public static final int Base_Widget_AppCompat_ListView=0x7f0a0070; public static final int Base_Widget_AppCompat_ListView_DropDown=0x7f0a0071; public static final int Base_Widget_AppCompat_ListView_Menu=0x7f0a0072; public static final int Base_Widget_AppCompat_PopupMenu=0x7f0a0073; public static final int Base_Widget_AppCompat_PopupMenu_Overflow=0x7f0a0074; public static final int Base_Widget_AppCompat_PopupWindow=0x7f0a00b4; public static final int Base_Widget_AppCompat_ProgressBar=0x7f0a0015; public static final int Base_Widget_AppCompat_ProgressBar_Horizontal=0x7f0a0016; public static final int Base_Widget_AppCompat_RatingBar=0x7f0a0075; public static final int Base_Widget_AppCompat_RatingBar_Indicator=0x7f0a0084; public static final int Base_Widget_AppCompat_RatingBar_Small=0x7f0a0085; public static final int Base_Widget_AppCompat_SearchView=0x7f0a00b5; public static final int Base_Widget_AppCompat_SearchView_ActionBar=0x7f0a00b6; public static final int Base_Widget_AppCompat_SeekBar=0x7f0a0076; public static final int Base_Widget_AppCompat_Spinner=0x7f0a0077; public static final int Base_Widget_AppCompat_Spinner_Underlined=0x7f0a0003; public static final int Base_Widget_AppCompat_TextView_SpinnerItem=0x7f0a0078; public static final int Base_Widget_AppCompat_Toolbar=0x7f0a00b7; public static final int Base_Widget_AppCompat_Toolbar_Button_Navigation=0x7f0a0079; public static final int CalendarDatePickerDialog=0x7f0a00b8; public static final int CalendarDatePickerStyle=0x7f0a00b9; public static final int ClockTimePickerDialog=0x7f0a00ba; public static final int ClockTimePickerStyle=0x7f0a00bb; public static final int DialogAnimationFade=0x7f0a00bc; public static final int DialogAnimationSlide=0x7f0a00bd; public static final int Platform_AppCompat=0x7f0a0017; public static final int Platform_AppCompat_Light=0x7f0a0018; public static final int Platform_ThemeOverlay_AppCompat=0x7f0a007a; public static final int Platform_ThemeOverlay_AppCompat_Dark=0x7f0a007b; public static final int Platform_ThemeOverlay_AppCompat_Light=0x7f0a007c; public static final int Platform_V11_AppCompat=0x7f0a0019; public static final int Platform_V11_AppCompat_Light=0x7f0a001a; public static final int Platform_V14_AppCompat=0x7f0a0021; public static final int Platform_V14_AppCompat_Light=0x7f0a0022; public static final int Platform_Widget_AppCompat_Spinner=0x7f0a001b; public static final int RtlOverlay_DialogWindowTitle_AppCompat=0x7f0a0028; public static final int RtlOverlay_Widget_AppCompat_ActionBar_TitleItem=0x7f0a0029; public static final int RtlOverlay_Widget_AppCompat_DialogTitle_Icon=0x7f0a002a; public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem=0x7f0a002b; public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_InternalGroup=0x7f0a002c; public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_Text=0x7f0a002d; public static final int RtlOverlay_Widget_AppCompat_Search_DropDown=0x7f0a002e; public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon1=0x7f0a002f; public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon2=0x7f0a0030; public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Query=0x7f0a0031; public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Text=0x7f0a0032; public static final int RtlOverlay_Widget_AppCompat_SearchView_MagIcon=0x7f0a0033; public static final int RtlUnderlay_Widget_AppCompat_ActionButton=0x7f0a0034; public static final int RtlUnderlay_Widget_AppCompat_ActionButton_Overflow=0x7f0a0035; public static final int SpinnerDatePickerDialog=0x7f0a00be; public static final int SpinnerDatePickerStyle=0x7f0a00bf; public static final int SpinnerTimePickerDialog=0x7f0a00c0; public static final int SpinnerTimePickerStyle=0x7f0a00c1; public static final int TextAppearance_AppCompat=0x7f0a00c2; public static final int TextAppearance_AppCompat_Body1=0x7f0a00c3; public static final int TextAppearance_AppCompat_Body2=0x7f0a00c4; public static final int TextAppearance_AppCompat_Button=0x7f0a00c5; public static final int TextAppearance_AppCompat_Caption=0x7f0a00c6; public static final int TextAppearance_AppCompat_Display1=0x7f0a00c7; public static final int TextAppearance_AppCompat_Display2=0x7f0a00c8; public static final int TextAppearance_AppCompat_Display3=0x7f0a00c9; public static final int TextAppearance_AppCompat_Display4=0x7f0a00ca; public static final int TextAppearance_AppCompat_Headline=0x7f0a00cb; public static final int TextAppearance_AppCompat_Inverse=0x7f0a00cc; public static final int TextAppearance_AppCompat_Large=0x7f0a00cd; public static final int TextAppearance_AppCompat_Large_Inverse=0x7f0a00ce; public static final int TextAppearance_AppCompat_Light_SearchResult_Subtitle=0x7f0a00cf; public static final int TextAppearance_AppCompat_Light_SearchResult_Title=0x7f0a00d0; public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large=0x7f0a00d1; public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small=0x7f0a00d2; public static final int TextAppearance_AppCompat_Medium=0x7f0a00d3; public static final int TextAppearance_AppCompat_Medium_Inverse=0x7f0a00d4; public static final int TextAppearance_AppCompat_Menu=0x7f0a00d5; public static final int TextAppearance_AppCompat_SearchResult_Subtitle=0x7f0a00d6; public static final int TextAppearance_AppCompat_SearchResult_Title=0x7f0a00d7; public static final int TextAppearance_AppCompat_Small=0x7f0a00d8; public static final int TextAppearance_AppCompat_Small_Inverse=0x7f0a00d9; public static final int TextAppearance_AppCompat_Subhead=0x7f0a00da; public static final int TextAppearance_AppCompat_Subhead_Inverse=0x7f0a00db; public static final int TextAppearance_AppCompat_Title=0x7f0a00dc; public static final int TextAppearance_AppCompat_Title_Inverse=0x7f0a00dd; public static final int TextAppearance_AppCompat_Widget_ActionBar_Menu=0x7f0a00de; public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle=0x7f0a00df; public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse=0x7f0a00e0; public static final int TextAppearance_AppCompat_Widget_ActionBar_Title=0x7f0a00e1; public static final int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse=0x7f0a00e2; public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle=0x7f0a00e3; public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse=0x7f0a00e4; public static final int TextAppearance_AppCompat_Widget_ActionMode_Title=0x7f0a00e5; public static final int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse=0x7f0a00e6; public static final int TextAppearance_AppCompat_Widget_Button=0x7f0a00e7; public static final int TextAppearance_AppCompat_Widget_Button_Inverse=0x7f0a00e8; public static final int TextAppearance_AppCompat_Widget_DropDownItem=0x7f0a00e9; public static final int TextAppearance_AppCompat_Widget_PopupMenu_Large=0x7f0a00ea; public static final int TextAppearance_AppCompat_Widget_PopupMenu_Small=0x7f0a00eb; public static final int TextAppearance_AppCompat_Widget_Switch=0x7f0a00ec; public static final int TextAppearance_AppCompat_Widget_TextView_SpinnerItem=0x7f0a00ed; public static final int TextAppearance_StatusBar_EventContent=0x7f0a0023; public static final int TextAppearance_StatusBar_EventContent_Info=0x7f0a0024; public static final int TextAppearance_StatusBar_EventContent_Line2=0x7f0a0025; public static final int TextAppearance_StatusBar_EventContent_Time=0x7f0a0026; public static final int TextAppearance_StatusBar_EventContent_Title=0x7f0a0027; public static final int TextAppearance_Widget_AppCompat_ExpandedMenu_Item=0x7f0a00ee; public static final int TextAppearance_Widget_AppCompat_Toolbar_Subtitle=0x7f0a00ef; public static final int TextAppearance_Widget_AppCompat_Toolbar_Title=0x7f0a00f0; public static final int Theme=0x7f0a00f1; public static final int Theme_AppCompat=0x7f0a00f2; public static final int Theme_AppCompat_CompactMenu=0x7f0a00f3; public static final int Theme_AppCompat_DayNight=0x7f0a0004; public static final int Theme_AppCompat_DayNight_DarkActionBar=0x7f0a0005; public static final int Theme_AppCompat_DayNight_Dialog=0x7f0a0006; public static final int Theme_AppCompat_DayNight_Dialog_Alert=0x7f0a0007; public static final int Theme_AppCompat_DayNight_Dialog_MinWidth=0x7f0a0008; public static final int Theme_AppCompat_DayNight_DialogWhenLarge=0x7f0a0009; public static final int Theme_AppCompat_DayNight_NoActionBar=0x7f0a000a; public static final int Theme_AppCompat_Dialog=0x7f0a00f4; public static final int Theme_AppCompat_Dialog_Alert=0x7f0a00f5; public static final int Theme_AppCompat_Dialog_MinWidth=0x7f0a00f6; public static final int Theme_AppCompat_DialogWhenLarge=0x7f0a00f7; public static final int Theme_AppCompat_Light=0x7f0a00f8; public static final int Theme_AppCompat_Light_DarkActionBar=0x7f0a00f9; public static final int Theme_AppCompat_Light_Dialog=0x7f0a00fa; public static final int Theme_AppCompat_Light_Dialog_Alert=0x7f0a00fb; public static final int Theme_AppCompat_Light_Dialog_MinWidth=0x7f0a00fc; public static final int Theme_AppCompat_Light_DialogWhenLarge=0x7f0a00fd; public static final int Theme_AppCompat_Light_NoActionBar=0x7f0a00fe; public static final int Theme_AppCompat_NoActionBar=0x7f0a00ff; public static final int Theme_Catalyst=0x7f0a0100; public static final int Theme_Catalyst_RedBox=0x7f0a0101; public static final int Theme_FullScreenDialog=0x7f0a0102; public static final int Theme_FullScreenDialogAnimatedFade=0x7f0a0103; public static final int Theme_FullScreenDialogAnimatedSlide=0x7f0a0104; public static final int Theme_ReactNative_AppCompat_Light=0x7f0a0105; public static final int Theme_ReactNative_AppCompat_Light_NoActionBar_FullScreen=0x7f0a0106; public static final int ThemeOverlay_AppCompat=0x7f0a0107; public static final int ThemeOverlay_AppCompat_ActionBar=0x7f0a0108; public static final int ThemeOverlay_AppCompat_Dark=0x7f0a0109; public static final int ThemeOverlay_AppCompat_Dark_ActionBar=0x7f0a010a; public static final int ThemeOverlay_AppCompat_Light=0x7f0a010b; public static final int Widget_AppCompat_ActionBar=0x7f0a010c; public static final int Widget_AppCompat_ActionBar_Solid=0x7f0a010d; public static final int Widget_AppCompat_ActionBar_TabBar=0x7f0a010e; public static final int Widget_AppCompat_ActionBar_TabText=0x7f0a010f; public static final int Widget_AppCompat_ActionBar_TabView=0x7f0a0110; public static final int Widget_AppCompat_ActionButton=0x7f0a0111; public static final int Widget_AppCompat_ActionButton_CloseMode=0x7f0a0112; public static final int Widget_AppCompat_ActionButton_Overflow=0x7f0a0113; public static final int Widget_AppCompat_ActionMode=0x7f0a0114; public static final int Widget_AppCompat_ActivityChooserView=0x7f0a0115; public static final int Widget_AppCompat_AutoCompleteTextView=0x7f0a0116; public static final int Widget_AppCompat_Button=0x7f0a0117; public static final int Widget_AppCompat_Button_Borderless=0x7f0a0118; public static final int Widget_AppCompat_Button_Borderless_Colored=0x7f0a0119; public static final int Widget_AppCompat_Button_ButtonBar_AlertDialog=0x7f0a011a; public static final int Widget_AppCompat_Button_Colored=0x7f0a011b; public static final int Widget_AppCompat_Button_Small=0x7f0a011c; public static final int Widget_AppCompat_ButtonBar=0x7f0a011d; public static final int Widget_AppCompat_ButtonBar_AlertDialog=0x7f0a011e; public static final int Widget_AppCompat_CompoundButton_CheckBox=0x7f0a011f; public static final int Widget_AppCompat_CompoundButton_RadioButton=0x7f0a0120; public static final int Widget_AppCompat_CompoundButton_Switch=0x7f0a0121; public static final int Widget_AppCompat_DrawerArrowToggle=0x7f0a0122; public static final int Widget_AppCompat_DropDownItem_Spinner=0x7f0a0123; public static final int Widget_AppCompat_EditText=0x7f0a0124; public static final int Widget_AppCompat_ImageButton=0x7f0a0125; public static final int Widget_AppCompat_Light_ActionBar=0x7f0a0126; public static final int Widget_AppCompat_Light_ActionBar_Solid=0x7f0a0127; public static final int Widget_AppCompat_Light_ActionBar_Solid_Inverse=0x7f0a0128; public static final int Widget_AppCompat_Light_ActionBar_TabBar=0x7f0a0129; public static final int Widget_AppCompat_Light_ActionBar_TabBar_Inverse=0x7f0a012a; public static final int Widget_AppCompat_Light_ActionBar_TabText=0x7f0a012b; public static final int Widget_AppCompat_Light_ActionBar_TabText_Inverse=0x7f0a012c; public static final int Widget_AppCompat_Light_ActionBar_TabView=0x7f0a012d; public static final int Widget_AppCompat_Light_ActionBar_TabView_Inverse=0x7f0a012e; public static final int Widget_AppCompat_Light_ActionButton=0x7f0a012f; public static final int Widget_AppCompat_Light_ActionButton_CloseMode=0x7f0a0130; public static final int Widget_AppCompat_Light_ActionButton_Overflow=0x7f0a0131; public static final int Widget_AppCompat_Light_ActionMode_Inverse=0x7f0a0132; public static final int Widget_AppCompat_Light_ActivityChooserView=0x7f0a0133; public static final int Widget_AppCompat_Light_AutoCompleteTextView=0x7f0a0134; public static final int Widget_AppCompat_Light_DropDownItem_Spinner=0x7f0a0135; public static final int Widget_AppCompat_Light_ListPopupWindow=0x7f0a0136; public static final int Widget_AppCompat_Light_ListView_DropDown=0x7f0a0137; public static final int Widget_AppCompat_Light_PopupMenu=0x7f0a0138; public static final int Widget_AppCompat_Light_PopupMenu_Overflow=0x7f0a0139; public static final int Widget_AppCompat_Light_SearchView=0x7f0a013a; public static final int Widget_AppCompat_Light_Spinner_DropDown_ActionBar=0x7f0a013b; public static final int Widget_AppCompat_ListPopupWindow=0x7f0a013c; public static final int Widget_AppCompat_ListView=0x7f0a013d; public static final int Widget_AppCompat_ListView_DropDown=0x7f0a013e; public static final int Widget_AppCompat_ListView_Menu=0x7f0a013f; public static final int Widget_AppCompat_PopupMenu=0x7f0a0140; public static final int Widget_AppCompat_PopupMenu_Overflow=0x7f0a0141; public static final int Widget_AppCompat_PopupWindow=0x7f0a0142; public static final int Widget_AppCompat_ProgressBar=0x7f0a0143; public static final int Widget_AppCompat_ProgressBar_Horizontal=0x7f0a0144; public static final int Widget_AppCompat_RatingBar=0x7f0a0145; public static final int Widget_AppCompat_RatingBar_Indicator=0x7f0a0146; public static final int Widget_AppCompat_RatingBar_Small=0x7f0a0147; public static final int Widget_AppCompat_SearchView=0x7f0a0148; public static final int Widget_AppCompat_SearchView_ActionBar=0x7f0a0149; public static final int Widget_AppCompat_SeekBar=0x7f0a014a; public static final int Widget_AppCompat_Spinner=0x7f0a014b; public static final int Widget_AppCompat_Spinner_DropDown=0x7f0a014c; public static final int Widget_AppCompat_Spinner_DropDown_ActionBar=0x7f0a014d; public static final int Widget_AppCompat_Spinner_Underlined=0x7f0a014e; public static final int Widget_AppCompat_TextView_SpinnerItem=0x7f0a014f; public static final int Widget_AppCompat_Toolbar=0x7f0a0150; public static final int Widget_AppCompat_Toolbar_Button_Navigation=0x7f0a0151; } public static final class xml { public static final int preferences=0x7f060000; } 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.andreea:background}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_backgroundSplit com.andreea:backgroundSplit}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_backgroundStacked com.andreea:backgroundStacked}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_contentInsetEnd com.andreea:contentInsetEnd}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_contentInsetLeft com.andreea:contentInsetLeft}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_contentInsetRight com.andreea:contentInsetRight}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_contentInsetStart com.andreea:contentInsetStart}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_customNavigationLayout com.andreea:customNavigationLayout}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_displayOptions com.andreea:displayOptions}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_divider com.andreea:divider}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_elevation com.andreea:elevation}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_height com.andreea:height}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_hideOnContentScroll com.andreea:hideOnContentScroll}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_homeAsUpIndicator com.andreea:homeAsUpIndicator}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_homeLayout com.andreea:homeLayout}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_icon com.andreea:icon}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_indeterminateProgressStyle com.andreea:indeterminateProgressStyle}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_itemPadding com.andreea:itemPadding}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_logo com.andreea:logo}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_navigationMode com.andreea:navigationMode}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_popupTheme com.andreea:popupTheme}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_progressBarPadding com.andreea:progressBarPadding}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_progressBarStyle com.andreea:progressBarStyle}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_subtitle com.andreea:subtitle}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_subtitleTextStyle com.andreea:subtitleTextStyle}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_title com.andreea:title}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_titleTextStyle com.andreea: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.andreea.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.andreea:background */ public static final int ActionBar_background = 10; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:backgroundSplit */ public static final int ActionBar_backgroundSplit = 12; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:backgroundStacked */ public static final int ActionBar_backgroundStacked = 11; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:contentInsetEnd */ public static final int ActionBar_contentInsetEnd = 21; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:contentInsetLeft */ public static final int ActionBar_contentInsetLeft = 22; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:contentInsetRight */ public static final int ActionBar_contentInsetRight = 23; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:contentInsetStart */ public static final int ActionBar_contentInsetStart = 20; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:customNavigationLayout */ public static final int ActionBar_customNavigationLayout = 13; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:displayOptions */ public static final int ActionBar_displayOptions = 3; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:divider */ public static final int ActionBar_divider = 9; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:elevation */ public static final int ActionBar_elevation = 24; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:height */ public static final int ActionBar_height = 0; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:hideOnContentScroll */ public static final int ActionBar_hideOnContentScroll = 19; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:homeAsUpIndicator */ public static final int ActionBar_homeAsUpIndicator = 26; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:homeLayout */ public static final int ActionBar_homeLayout = 14; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:icon */ public static final int ActionBar_icon = 7; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:indeterminateProgressStyle */ public static final int ActionBar_indeterminateProgressStyle = 16; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:itemPadding */ public static final int ActionBar_itemPadding = 18; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:logo */ public static final int ActionBar_logo = 8; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:navigationMode */ public static final int ActionBar_navigationMode = 2; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:popupTheme */ public static final int ActionBar_popupTheme = 25; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:progressBarPadding */ public static final int ActionBar_progressBarPadding = 17; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:progressBarStyle */ public static final int ActionBar_progressBarStyle = 15; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:subtitle */ public static final int ActionBar_subtitle = 4; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:subtitleTextStyle */ public static final int ActionBar_subtitleTextStyle = 6; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:title */ public static final int ActionBar_title = 1; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:titleTextStyle */ public static final 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 final int ActionBarLayout_android_layout_gravity = 0; /** Attributes that can be used with a ActionMenuItemView. <p>Includes the following attributes:</p> <table> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Attribute</th><th>Description</th></tr> <tr><td><code>{@link #ActionMenuItemView_android_minWidth android:minWidth}</code></td><td></td></tr> </table> @see #ActionMenuItemView_android_minWidth */ public static final int[] ActionMenuItemView = { 0x0101013f }; /** <p>This symbol is the offset where the {@link android.R.attr#minWidth} attribute's value can be found in the {@link #ActionMenuItemView} array. @attr name android:minWidth */ public static final int ActionMenuItemView_android_minWidth = 0; /** 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.andreea:background}</code></td><td></td></tr> <tr><td><code>{@link #ActionMode_backgroundSplit com.andreea:backgroundSplit}</code></td><td></td></tr> <tr><td><code>{@link #ActionMode_closeItemLayout com.andreea:closeItemLayout}</code></td><td></td></tr> <tr><td><code>{@link #ActionMode_height com.andreea:height}</code></td><td></td></tr> <tr><td><code>{@link #ActionMode_subtitleTextStyle com.andreea:subtitleTextStyle}</code></td><td></td></tr> <tr><td><code>{@link #ActionMode_titleTextStyle com.andreea: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.andreea.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.andreea:background */ public static final int ActionMode_background = 3; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:backgroundSplit */ public static final int ActionMode_backgroundSplit = 4; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:closeItemLayout */ public static final int ActionMode_closeItemLayout = 5; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:height */ public static final int ActionMode_height = 0; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:subtitleTextStyle */ public static final int ActionMode_subtitleTextStyle = 2; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:titleTextStyle */ public static final 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.andreea:expandActivityOverflowButtonDrawable}</code></td><td></td></tr> <tr><td><code>{@link #ActivityChooserView_initialActivityCount com.andreea: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.andreea.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.andreea:expandActivityOverflowButtonDrawable */ public static final int ActivityChooserView_expandActivityOverflowButtonDrawable = 1; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:initialActivityCount */ public static final 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.andreea:buttonPanelSideLayout}</code></td><td></td></tr> <tr><td><code>{@link #AlertDialog_listItemLayout com.andreea:listItemLayout}</code></td><td></td></tr> <tr><td><code>{@link #AlertDialog_listLayout com.andreea:listLayout}</code></td><td></td></tr> <tr><td><code>{@link #AlertDialog_multiChoiceItemLayout com.andreea:multiChoiceItemLayout}</code></td><td></td></tr> <tr><td><code>{@link #AlertDialog_singleChoiceItemLayout com.andreea: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 final int AlertDialog_android_layout = 0; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:buttonPanelSideLayout */ public static final int AlertDialog_buttonPanelSideLayout = 1; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:listItemLayout */ public static final int AlertDialog_listItemLayout = 5; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:listLayout */ public static final int AlertDialog_listLayout = 2; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:multiChoiceItemLayout */ public static final int AlertDialog_multiChoiceItemLayout = 3; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:singleChoiceItemLayout */ public static final 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.andreea: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 final int AppCompatImageView_android_src = 0; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:srcCompat */ public static final 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.andreea: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 final int AppCompatTextView_android_textAppearance = 0; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:textAllCaps */ public static final 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.andreea:actionBarDivider}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionBarItemBackground com.andreea:actionBarItemBackground}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionBarPopupTheme com.andreea:actionBarPopupTheme}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionBarSize com.andreea:actionBarSize}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionBarSplitStyle com.andreea:actionBarSplitStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionBarStyle com.andreea:actionBarStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionBarTabBarStyle com.andreea:actionBarTabBarStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionBarTabStyle com.andreea:actionBarTabStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionBarTabTextStyle com.andreea:actionBarTabTextStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionBarTheme com.andreea:actionBarTheme}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionBarWidgetTheme com.andreea:actionBarWidgetTheme}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionButtonStyle com.andreea:actionButtonStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionDropDownStyle com.andreea:actionDropDownStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionMenuTextAppearance com.andreea:actionMenuTextAppearance}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionMenuTextColor com.andreea:actionMenuTextColor}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionModeBackground com.andreea:actionModeBackground}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionModeCloseButtonStyle com.andreea:actionModeCloseButtonStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionModeCloseDrawable com.andreea:actionModeCloseDrawable}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionModeCopyDrawable com.andreea:actionModeCopyDrawable}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionModeCutDrawable com.andreea:actionModeCutDrawable}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionModeFindDrawable com.andreea:actionModeFindDrawable}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionModePasteDrawable com.andreea:actionModePasteDrawable}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionModePopupWindowStyle com.andreea:actionModePopupWindowStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionModeSelectAllDrawable com.andreea:actionModeSelectAllDrawable}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionModeShareDrawable com.andreea:actionModeShareDrawable}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionModeSplitBackground com.andreea:actionModeSplitBackground}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionModeStyle com.andreea:actionModeStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionModeWebSearchDrawable com.andreea:actionModeWebSearchDrawable}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionOverflowButtonStyle com.andreea:actionOverflowButtonStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_actionOverflowMenuStyle com.andreea:actionOverflowMenuStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_activityChooserViewStyle com.andreea:activityChooserViewStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_alertDialogButtonGroupStyle com.andreea:alertDialogButtonGroupStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_alertDialogCenterButtons com.andreea:alertDialogCenterButtons}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_alertDialogStyle com.andreea:alertDialogStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_alertDialogTheme com.andreea: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.andreea:autoCompleteTextViewStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_borderlessButtonStyle com.andreea:borderlessButtonStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_buttonBarButtonStyle com.andreea:buttonBarButtonStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_buttonBarNegativeButtonStyle com.andreea:buttonBarNegativeButtonStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_buttonBarNeutralButtonStyle com.andreea:buttonBarNeutralButtonStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_buttonBarPositiveButtonStyle com.andreea:buttonBarPositiveButtonStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_buttonBarStyle com.andreea:buttonBarStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_buttonStyle com.andreea:buttonStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_buttonStyleSmall com.andreea:buttonStyleSmall}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_checkboxStyle com.andreea:checkboxStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_checkedTextViewStyle com.andreea:checkedTextViewStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_colorAccent com.andreea:colorAccent}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_colorButtonNormal com.andreea:colorButtonNormal}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_colorControlActivated com.andreea:colorControlActivated}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_colorControlHighlight com.andreea:colorControlHighlight}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_colorControlNormal com.andreea:colorControlNormal}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_colorPrimary com.andreea:colorPrimary}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_colorPrimaryDark com.andreea:colorPrimaryDark}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_colorSwitchThumbNormal com.andreea:colorSwitchThumbNormal}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_controlBackground com.andreea:controlBackground}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_dialogPreferredPadding com.andreea:dialogPreferredPadding}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_dialogTheme com.andreea:dialogTheme}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_dividerHorizontal com.andreea:dividerHorizontal}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_dividerVertical com.andreea:dividerVertical}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_dropDownListViewStyle com.andreea:dropDownListViewStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_dropdownListPreferredItemHeight com.andreea:dropdownListPreferredItemHeight}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_editTextBackground com.andreea:editTextBackground}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_editTextColor com.andreea:editTextColor}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_editTextStyle com.andreea:editTextStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_homeAsUpIndicator com.andreea:homeAsUpIndicator}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_imageButtonStyle com.andreea:imageButtonStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_listChoiceBackgroundIndicator com.andreea:listChoiceBackgroundIndicator}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_listDividerAlertDialog com.andreea:listDividerAlertDialog}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_listPopupWindowStyle com.andreea:listPopupWindowStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_listPreferredItemHeight com.andreea:listPreferredItemHeight}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_listPreferredItemHeightLarge com.andreea:listPreferredItemHeightLarge}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_listPreferredItemHeightSmall com.andreea:listPreferredItemHeightSmall}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_listPreferredItemPaddingLeft com.andreea:listPreferredItemPaddingLeft}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_listPreferredItemPaddingRight com.andreea:listPreferredItemPaddingRight}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_panelBackground com.andreea:panelBackground}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_panelMenuListTheme com.andreea:panelMenuListTheme}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_panelMenuListWidth com.andreea:panelMenuListWidth}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_popupMenuStyle com.andreea:popupMenuStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_popupWindowStyle com.andreea:popupWindowStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_radioButtonStyle com.andreea:radioButtonStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_ratingBarStyle com.andreea:ratingBarStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_ratingBarStyleIndicator com.andreea:ratingBarStyleIndicator}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_ratingBarStyleSmall com.andreea:ratingBarStyleSmall}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_searchViewStyle com.andreea:searchViewStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_seekBarStyle com.andreea:seekBarStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_selectableItemBackground com.andreea:selectableItemBackground}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_selectableItemBackgroundBorderless com.andreea:selectableItemBackgroundBorderless}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_spinnerDropDownItemStyle com.andreea:spinnerDropDownItemStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_spinnerStyle com.andreea:spinnerStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_switchStyle com.andreea:switchStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_textAppearanceLargePopupMenu com.andreea:textAppearanceLargePopupMenu}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_textAppearanceListItem com.andreea:textAppearanceListItem}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_textAppearanceListItemSmall com.andreea:textAppearanceListItemSmall}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_textAppearanceSearchResultSubtitle com.andreea:textAppearanceSearchResultSubtitle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_textAppearanceSearchResultTitle com.andreea:textAppearanceSearchResultTitle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_textAppearanceSmallPopupMenu com.andreea:textAppearanceSmallPopupMenu}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_textColorAlertDialogListItem com.andreea:textColorAlertDialogListItem}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_textColorSearchUrl com.andreea:textColorSearchUrl}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_toolbarNavigationButtonStyle com.andreea:toolbarNavigationButtonStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_toolbarStyle com.andreea:toolbarStyle}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_windowActionBar com.andreea:windowActionBar}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_windowActionBarOverlay com.andreea:windowActionBarOverlay}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_windowActionModeOverlay com.andreea:windowActionModeOverlay}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_windowFixedHeightMajor com.andreea:windowFixedHeightMajor}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_windowFixedHeightMinor com.andreea:windowFixedHeightMinor}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_windowFixedWidthMajor com.andreea:windowFixedWidthMajor}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_windowFixedWidthMinor com.andreea:windowFixedWidthMinor}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_windowMinWidthMajor com.andreea:windowMinWidthMajor}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_windowMinWidthMinor com.andreea:windowMinWidthMinor}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTheme_windowNoTitle com.andreea: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.andreea.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.andreea:actionBarDivider */ public static final int AppCompatTheme_actionBarDivider = 23; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:actionBarItemBackground */ public static final int AppCompatTheme_actionBarItemBackground = 24; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:actionBarPopupTheme */ public static final int AppCompatTheme_actionBarPopupTheme = 17; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:actionBarSize */ public static final int AppCompatTheme_actionBarSize = 22; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:actionBarSplitStyle */ public static final int AppCompatTheme_actionBarSplitStyle = 19; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:actionBarStyle */ public static final int AppCompatTheme_actionBarStyle = 18; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:actionBarTabBarStyle */ public static final int AppCompatTheme_actionBarTabBarStyle = 13; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:actionBarTabStyle */ public static final int AppCompatTheme_actionBarTabStyle = 12; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:actionBarTabTextStyle */ public static final int AppCompatTheme_actionBarTabTextStyle = 14; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:actionBarTheme */ public static final int AppCompatTheme_actionBarTheme = 20; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:actionBarWidgetTheme */ public static final int AppCompatTheme_actionBarWidgetTheme = 21; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:actionButtonStyle */ public static final int AppCompatTheme_actionButtonStyle = 49; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:actionDropDownStyle */ public static final int AppCompatTheme_actionDropDownStyle = 45; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:actionMenuTextAppearance */ public static final int AppCompatTheme_actionMenuTextAppearance = 25; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:actionMenuTextColor */ public static final int AppCompatTheme_actionMenuTextColor = 26; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:actionModeBackground */ public static final int AppCompatTheme_actionModeBackground = 29; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:actionModeCloseButtonStyle */ public static final int AppCompatTheme_actionModeCloseButtonStyle = 28; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:actionModeCloseDrawable */ public static final int AppCompatTheme_actionModeCloseDrawable = 31; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:actionModeCopyDrawable */ public static final int AppCompatTheme_actionModeCopyDrawable = 33; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:actionModeCutDrawable */ public static final int AppCompatTheme_actionModeCutDrawable = 32; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:actionModeFindDrawable */ public static final int AppCompatTheme_actionModeFindDrawable = 37; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:actionModePasteDrawable */ public static final int AppCompatTheme_actionModePasteDrawable = 34; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:actionModePopupWindowStyle */ public static final int AppCompatTheme_actionModePopupWindowStyle = 39; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:actionModeSelectAllDrawable */ public static final int AppCompatTheme_actionModeSelectAllDrawable = 35; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:actionModeShareDrawable */ public static final int AppCompatTheme_actionModeShareDrawable = 36; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:actionModeSplitBackground */ public static final int AppCompatTheme_actionModeSplitBackground = 30; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:actionModeStyle */ public static final int AppCompatTheme_actionModeStyle = 27; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:actionModeWebSearchDrawable */ public static final int AppCompatTheme_actionModeWebSearchDrawable = 38; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:actionOverflowButtonStyle */ public static final int AppCompatTheme_actionOverflowButtonStyle = 15; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:actionOverflowMenuStyle */ public static final int AppCompatTheme_actionOverflowMenuStyle = 16; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:activityChooserViewStyle */ public static final int AppCompatTheme_activityChooserViewStyle = 57; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:alertDialogButtonGroupStyle */ public static final int AppCompatTheme_alertDialogButtonGroupStyle = 92; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:alertDialogCenterButtons */ public static final int AppCompatTheme_alertDialogCenterButtons = 93; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:alertDialogStyle */ public static final int AppCompatTheme_alertDialogStyle = 91; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:alertDialogTheme */ public static final 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 final 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 final int AppCompatTheme_android_windowIsFloating = 0; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:autoCompleteTextViewStyle */ public static final int AppCompatTheme_autoCompleteTextViewStyle = 99; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:borderlessButtonStyle */ public static final int AppCompatTheme_borderlessButtonStyle = 54; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:buttonBarButtonStyle */ public static final int AppCompatTheme_buttonBarButtonStyle = 51; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:buttonBarNegativeButtonStyle */ public static final int AppCompatTheme_buttonBarNegativeButtonStyle = 97; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:buttonBarNeutralButtonStyle */ public static final int AppCompatTheme_buttonBarNeutralButtonStyle = 98; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:buttonBarPositiveButtonStyle */ public static final int AppCompatTheme_buttonBarPositiveButtonStyle = 96; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:buttonBarStyle */ public static final int AppCompatTheme_buttonBarStyle = 50; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:buttonStyle */ public static final int AppCompatTheme_buttonStyle = 100; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:buttonStyleSmall */ public static final int AppCompatTheme_buttonStyleSmall = 101; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:checkboxStyle */ public static final int AppCompatTheme_checkboxStyle = 102; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:checkedTextViewStyle */ public static final int AppCompatTheme_checkedTextViewStyle = 103; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:colorAccent */ public static final int AppCompatTheme_colorAccent = 84; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:colorButtonNormal */ public static final int AppCompatTheme_colorButtonNormal = 88; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:colorControlActivated */ public static final int AppCompatTheme_colorControlActivated = 86; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:colorControlHighlight */ public static final int AppCompatTheme_colorControlHighlight = 87; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:colorControlNormal */ public static final int AppCompatTheme_colorControlNormal = 85; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:colorPrimary */ public static final int AppCompatTheme_colorPrimary = 82; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:colorPrimaryDark */ public static final int AppCompatTheme_colorPrimaryDark = 83; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:colorSwitchThumbNormal */ public static final int AppCompatTheme_colorSwitchThumbNormal = 89; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:controlBackground */ public static final int AppCompatTheme_controlBackground = 90; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:dialogPreferredPadding */ public static final int AppCompatTheme_dialogPreferredPadding = 43; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:dialogTheme */ public static final int AppCompatTheme_dialogTheme = 42; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:dividerHorizontal */ public static final int AppCompatTheme_dividerHorizontal = 56; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:dividerVertical */ public static final int AppCompatTheme_dividerVertical = 55; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:dropDownListViewStyle */ public static final int AppCompatTheme_dropDownListViewStyle = 74; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:dropdownListPreferredItemHeight */ public static final int AppCompatTheme_dropdownListPreferredItemHeight = 46; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:editTextBackground */ public static final int AppCompatTheme_editTextBackground = 63; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:editTextColor */ public static final int AppCompatTheme_editTextColor = 62; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:editTextStyle */ public static final int AppCompatTheme_editTextStyle = 104; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:homeAsUpIndicator */ public static final int AppCompatTheme_homeAsUpIndicator = 48; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:imageButtonStyle */ public static final int AppCompatTheme_imageButtonStyle = 64; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:listChoiceBackgroundIndicator */ public static final int AppCompatTheme_listChoiceBackgroundIndicator = 81; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:listDividerAlertDialog */ public static final int AppCompatTheme_listDividerAlertDialog = 44; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:listPopupWindowStyle */ public static final int AppCompatTheme_listPopupWindowStyle = 75; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:listPreferredItemHeight */ public static final int AppCompatTheme_listPreferredItemHeight = 69; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:listPreferredItemHeightLarge */ public static final int AppCompatTheme_listPreferredItemHeightLarge = 71; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:listPreferredItemHeightSmall */ public static final int AppCompatTheme_listPreferredItemHeightSmall = 70; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:listPreferredItemPaddingLeft */ public static final int AppCompatTheme_listPreferredItemPaddingLeft = 72; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:listPreferredItemPaddingRight */ public static final int AppCompatTheme_listPreferredItemPaddingRight = 73; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:panelBackground */ public static final int AppCompatTheme_panelBackground = 78; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:panelMenuListTheme */ public static final int AppCompatTheme_panelMenuListTheme = 80; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:panelMenuListWidth */ public static final int AppCompatTheme_panelMenuListWidth = 79; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:popupMenuStyle */ public static final int AppCompatTheme_popupMenuStyle = 60; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:popupWindowStyle */ public static final int AppCompatTheme_popupWindowStyle = 61; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:radioButtonStyle */ public static final int AppCompatTheme_radioButtonStyle = 105; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:ratingBarStyle */ public static final int AppCompatTheme_ratingBarStyle = 106; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:ratingBarStyleIndicator */ public static final int AppCompatTheme_ratingBarStyleIndicator = 107; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:ratingBarStyleSmall */ public static final int AppCompatTheme_ratingBarStyleSmall = 108; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:searchViewStyle */ public static final int AppCompatTheme_searchViewStyle = 68; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:seekBarStyle */ public static final int AppCompatTheme_seekBarStyle = 109; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:selectableItemBackground */ public static final int AppCompatTheme_selectableItemBackground = 52; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:selectableItemBackgroundBorderless */ public static final int AppCompatTheme_selectableItemBackgroundBorderless = 53; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:spinnerDropDownItemStyle */ public static final int AppCompatTheme_spinnerDropDownItemStyle = 47; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:spinnerStyle */ public static final int AppCompatTheme_spinnerStyle = 110; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:switchStyle */ public static final int AppCompatTheme_switchStyle = 111; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:textAppearanceLargePopupMenu */ public static final int AppCompatTheme_textAppearanceLargePopupMenu = 40; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:textAppearanceListItem */ public static final int AppCompatTheme_textAppearanceListItem = 76; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:textAppearanceListItemSmall */ public static final int AppCompatTheme_textAppearanceListItemSmall = 77; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:textAppearanceSearchResultSubtitle */ public static final int AppCompatTheme_textAppearanceSearchResultSubtitle = 66; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:textAppearanceSearchResultTitle */ public static final int AppCompatTheme_textAppearanceSearchResultTitle = 65; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:textAppearanceSmallPopupMenu */ public static final int AppCompatTheme_textAppearanceSmallPopupMenu = 41; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:textColorAlertDialogListItem */ public static final int AppCompatTheme_textColorAlertDialogListItem = 95; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:textColorSearchUrl */ public static final int AppCompatTheme_textColorSearchUrl = 67; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:toolbarNavigationButtonStyle */ public static final int AppCompatTheme_toolbarNavigationButtonStyle = 59; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:toolbarStyle */ public static final int AppCompatTheme_toolbarStyle = 58; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:windowActionBar */ public static final int AppCompatTheme_windowActionBar = 2; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:windowActionBarOverlay */ public static final int AppCompatTheme_windowActionBarOverlay = 4; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:windowActionModeOverlay */ public static final int AppCompatTheme_windowActionModeOverlay = 5; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:windowFixedHeightMajor */ public static final int AppCompatTheme_windowFixedHeightMajor = 9; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:windowFixedHeightMinor */ public static final int AppCompatTheme_windowFixedHeightMinor = 7; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:windowFixedWidthMajor */ public static final int AppCompatTheme_windowFixedWidthMajor = 6; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:windowFixedWidthMinor */ public static final int AppCompatTheme_windowFixedWidthMinor = 8; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:windowMinWidthMajor */ public static final int AppCompatTheme_windowMinWidthMajor = 10; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:windowMinWidthMinor */ public static final int AppCompatTheme_windowMinWidthMinor = 11; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:windowNoTitle */ public static final 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.andreea: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.andreea.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.andreea:allowStacking */ public static final 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.andreea:buttonTint}</code></td><td></td></tr> <tr><td><code>{@link #CompoundButton_buttonTintMode com.andreea: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 final int CompoundButton_android_button = 0; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:buttonTint */ public static final int CompoundButton_buttonTint = 1; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:buttonTintMode */ public static final 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.andreea:arrowHeadLength}</code></td><td></td></tr> <tr><td><code>{@link #DrawerArrowToggle_arrowShaftLength com.andreea:arrowShaftLength}</code></td><td></td></tr> <tr><td><code>{@link #DrawerArrowToggle_barLength com.andreea:barLength}</code></td><td></td></tr> <tr><td><code>{@link #DrawerArrowToggle_color com.andreea:color}</code></td><td></td></tr> <tr><td><code>{@link #DrawerArrowToggle_drawableSize com.andreea:drawableSize}</code></td><td></td></tr> <tr><td><code>{@link #DrawerArrowToggle_gapBetweenBars com.andreea:gapBetweenBars}</code></td><td></td></tr> <tr><td><code>{@link #DrawerArrowToggle_spinBars com.andreea:spinBars}</code></td><td></td></tr> <tr><td><code>{@link #DrawerArrowToggle_thickness com.andreea: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.andreea.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.andreea:arrowHeadLength */ public static final int DrawerArrowToggle_arrowHeadLength = 4; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:arrowShaftLength */ public static final int DrawerArrowToggle_arrowShaftLength = 5; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:barLength */ public static final int DrawerArrowToggle_barLength = 6; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:color */ public static final int DrawerArrowToggle_color = 0; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:drawableSize */ public static final int DrawerArrowToggle_drawableSize = 2; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:gapBetweenBars */ public static final int DrawerArrowToggle_gapBetweenBars = 3; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:spinBars */ public static final int DrawerArrowToggle_spinBars = 1; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:thickness */ public static final int DrawerArrowToggle_thickness = 7; /** Attributes that can be used with a GenericDraweeHierarchy. <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 #GenericDraweeHierarchy_actualImageScaleType com.andreea:actualImageScaleType}</code></td><td></td></tr> <tr><td><code>{@link #GenericDraweeHierarchy_backgroundImage com.andreea:backgroundImage}</code></td><td></td></tr> <tr><td><code>{@link #GenericDraweeHierarchy_fadeDuration com.andreea:fadeDuration}</code></td><td></td></tr> <tr><td><code>{@link #GenericDraweeHierarchy_failureImage com.andreea:failureImage}</code></td><td></td></tr> <tr><td><code>{@link #GenericDraweeHierarchy_failureImageScaleType com.andreea:failureImageScaleType}</code></td><td></td></tr> <tr><td><code>{@link #GenericDraweeHierarchy_overlayImage com.andreea:overlayImage}</code></td><td></td></tr> <tr><td><code>{@link #GenericDraweeHierarchy_placeholderImage com.andreea:placeholderImage}</code></td><td></td></tr> <tr><td><code>{@link #GenericDraweeHierarchy_placeholderImageScaleType com.andreea:placeholderImageScaleType}</code></td><td></td></tr> <tr><td><code>{@link #GenericDraweeHierarchy_pressedStateOverlayImage com.andreea:pressedStateOverlayImage}</code></td><td></td></tr> <tr><td><code>{@link #GenericDraweeHierarchy_progressBarAutoRotateInterval com.andreea:progressBarAutoRotateInterval}</code></td><td></td></tr> <tr><td><code>{@link #GenericDraweeHierarchy_progressBarImage com.andreea:progressBarImage}</code></td><td></td></tr> <tr><td><code>{@link #GenericDraweeHierarchy_progressBarImageScaleType com.andreea:progressBarImageScaleType}</code></td><td></td></tr> <tr><td><code>{@link #GenericDraweeHierarchy_retryImage com.andreea:retryImage}</code></td><td></td></tr> <tr><td><code>{@link #GenericDraweeHierarchy_retryImageScaleType com.andreea:retryImageScaleType}</code></td><td></td></tr> <tr><td><code>{@link #GenericDraweeHierarchy_roundAsCircle com.andreea:roundAsCircle}</code></td><td></td></tr> <tr><td><code>{@link #GenericDraweeHierarchy_roundBottomLeft com.andreea:roundBottomLeft}</code></td><td></td></tr> <tr><td><code>{@link #GenericDraweeHierarchy_roundBottomRight com.andreea:roundBottomRight}</code></td><td></td></tr> <tr><td><code>{@link #GenericDraweeHierarchy_roundTopLeft com.andreea:roundTopLeft}</code></td><td></td></tr> <tr><td><code>{@link #GenericDraweeHierarchy_roundTopRight com.andreea:roundTopRight}</code></td><td></td></tr> <tr><td><code>{@link #GenericDraweeHierarchy_roundWithOverlayColor com.andreea:roundWithOverlayColor}</code></td><td></td></tr> <tr><td><code>{@link #GenericDraweeHierarchy_roundedCornerRadius com.andreea:roundedCornerRadius}</code></td><td></td></tr> <tr><td><code>{@link #GenericDraweeHierarchy_roundingBorderColor com.andreea:roundingBorderColor}</code></td><td></td></tr> <tr><td><code>{@link #GenericDraweeHierarchy_roundingBorderPadding com.andreea:roundingBorderPadding}</code></td><td></td></tr> <tr><td><code>{@link #GenericDraweeHierarchy_roundingBorderWidth com.andreea:roundingBorderWidth}</code></td><td></td></tr> <tr><td><code>{@link #GenericDraweeHierarchy_viewAspectRatio com.andreea:viewAspectRatio}</code></td><td></td></tr> </table> @see #GenericDraweeHierarchy_actualImageScaleType @see #GenericDraweeHierarchy_backgroundImage @see #GenericDraweeHierarchy_fadeDuration @see #GenericDraweeHierarchy_failureImage @see #GenericDraweeHierarchy_failureImageScaleType @see #GenericDraweeHierarchy_overlayImage @see #GenericDraweeHierarchy_placeholderImage @see #GenericDraweeHierarchy_placeholderImageScaleType @see #GenericDraweeHierarchy_pressedStateOverlayImage @see #GenericDraweeHierarchy_progressBarAutoRotateInterval @see #GenericDraweeHierarchy_progressBarImage @see #GenericDraweeHierarchy_progressBarImageScaleType @see #GenericDraweeHierarchy_retryImage @see #GenericDraweeHierarchy_retryImageScaleType @see #GenericDraweeHierarchy_roundAsCircle @see #GenericDraweeHierarchy_roundBottomLeft @see #GenericDraweeHierarchy_roundBottomRight @see #GenericDraweeHierarchy_roundTopLeft @see #GenericDraweeHierarchy_roundTopRight @see #GenericDraweeHierarchy_roundWithOverlayColor @see #GenericDraweeHierarchy_roundedCornerRadius @see #GenericDraweeHierarchy_roundingBorderColor @see #GenericDraweeHierarchy_roundingBorderPadding @see #GenericDraweeHierarchy_roundingBorderWidth @see #GenericDraweeHierarchy_viewAspectRatio */ public static final int[] GenericDraweeHierarchy = { 0x7f01009f, 0x7f0100a0, 0x7f0100a1, 0x7f0100a2, 0x7f0100a3, 0x7f0100a4, 0x7f0100a5, 0x7f0100a6, 0x7f0100a7, 0x7f0100a8, 0x7f0100a9, 0x7f0100aa, 0x7f0100ab, 0x7f0100ac, 0x7f0100ad, 0x7f0100ae, 0x7f0100af, 0x7f0100b0, 0x7f0100b1, 0x7f0100b2, 0x7f0100b3, 0x7f0100b4, 0x7f0100b5, 0x7f0100b6, 0x7f0100b7 }; /** <p>This symbol is the offset where the {@link com.andreea.R.attr#actualImageScaleType} attribute's value can be found in the {@link #GenericDraweeHierarchy} 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>none</code></td><td>-1</td><td></td></tr> <tr><td><code>fitXY</code></td><td>0</td><td></td></tr> <tr><td><code>fitStart</code></td><td>1</td><td></td></tr> <tr><td><code>fitCenter</code></td><td>2</td><td></td></tr> <tr><td><code>fitEnd</code></td><td>3</td><td></td></tr> <tr><td><code>center</code></td><td>4</td><td></td></tr> <tr><td><code>centerInside</code></td><td>5</td><td></td></tr> <tr><td><code>centerCrop</code></td><td>6</td><td></td></tr> <tr><td><code>focusCrop</code></td><td>7</td><td></td></tr> </table> @attr name com.andreea:actualImageScaleType */ public static final int GenericDraweeHierarchy_actualImageScaleType = 11; /** <p>This symbol is the offset where the {@link com.andreea.R.attr#backgroundImage} attribute's value can be found in the {@link #GenericDraweeHierarchy} 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.andreea:backgroundImage */ public static final int GenericDraweeHierarchy_backgroundImage = 12; /** <p>This symbol is the offset where the {@link com.andreea.R.attr#fadeDuration} attribute's value can be found in the {@link #GenericDraweeHierarchy} array. <p>Must be an integer value, such as "<code>100</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.andreea:fadeDuration */ public static final int GenericDraweeHierarchy_fadeDuration = 0; /** <p>This symbol is the offset where the {@link com.andreea.R.attr#failureImage} attribute's value can be found in the {@link #GenericDraweeHierarchy} 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.andreea:failureImage */ public static final int GenericDraweeHierarchy_failureImage = 6; /** <p>This symbol is the offset where the {@link com.andreea.R.attr#failureImageScaleType} attribute's value can be found in the {@link #GenericDraweeHierarchy} 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>none</code></td><td>-1</td><td></td></tr> <tr><td><code>fitXY</code></td><td>0</td><td></td></tr> <tr><td><code>fitStart</code></td><td>1</td><td></td></tr> <tr><td><code>fitCenter</code></td><td>2</td><td></td></tr> <tr><td><code>fitEnd</code></td><td>3</td><td></td></tr> <tr><td><code>center</code></td><td>4</td><td></td></tr> <tr><td><code>centerInside</code></td><td>5</td><td></td></tr> <tr><td><code>centerCrop</code></td><td>6</td><td></td></tr> <tr><td><code>focusCrop</code></td><td>7</td><td></td></tr> </table> @attr name com.andreea:failureImageScaleType */ public static final int GenericDraweeHierarchy_failureImageScaleType = 7; /** <p>This symbol is the offset where the {@link com.andreea.R.attr#overlayImage} attribute's value can be found in the {@link #GenericDraweeHierarchy} 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.andreea:overlayImage */ public static final int GenericDraweeHierarchy_overlayImage = 13; /** <p>This symbol is the offset where the {@link com.andreea.R.attr#placeholderImage} attribute's value can be found in the {@link #GenericDraweeHierarchy} 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.andreea:placeholderImage */ public static final int GenericDraweeHierarchy_placeholderImage = 2; /** <p>This symbol is the offset where the {@link com.andreea.R.attr#placeholderImageScaleType} attribute's value can be found in the {@link #GenericDraweeHierarchy} 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>none</code></td><td>-1</td><td></td></tr> <tr><td><code>fitXY</code></td><td>0</td><td></td></tr> <tr><td><code>fitStart</code></td><td>1</td><td></td></tr> <tr><td><code>fitCenter</code></td><td>2</td><td></td></tr> <tr><td><code>fitEnd</code></td><td>3</td><td></td></tr> <tr><td><code>center</code></td><td>4</td><td></td></tr> <tr><td><code>centerInside</code></td><td>5</td><td></td></tr> <tr><td><code>centerCrop</code></td><td>6</td><td></td></tr> <tr><td><code>focusCrop</code></td><td>7</td><td></td></tr> </table> @attr name com.andreea:placeholderImageScaleType */ public static final int GenericDraweeHierarchy_placeholderImageScaleType = 3; /** <p>This symbol is the offset where the {@link com.andreea.R.attr#pressedStateOverlayImage} attribute's value can be found in the {@link #GenericDraweeHierarchy} 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.andreea:pressedStateOverlayImage */ public static final int GenericDraweeHierarchy_pressedStateOverlayImage = 14; /** <p>This symbol is the offset where the {@link com.andreea.R.attr#progressBarAutoRotateInterval} attribute's value can be found in the {@link #GenericDraweeHierarchy} array. <p>Must be an integer value, such as "<code>100</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.andreea:progressBarAutoRotateInterval */ public static final int GenericDraweeHierarchy_progressBarAutoRotateInterval = 10; /** <p>This symbol is the offset where the {@link com.andreea.R.attr#progressBarImage} attribute's value can be found in the {@link #GenericDraweeHierarchy} 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.andreea:progressBarImage */ public static final int GenericDraweeHierarchy_progressBarImage = 8; /** <p>This symbol is the offset where the {@link com.andreea.R.attr#progressBarImageScaleType} attribute's value can be found in the {@link #GenericDraweeHierarchy} 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>none</code></td><td>-1</td><td></td></tr> <tr><td><code>fitXY</code></td><td>0</td><td></td></tr> <tr><td><code>fitStart</code></td><td>1</td><td></td></tr> <tr><td><code>fitCenter</code></td><td>2</td><td></td></tr> <tr><td><code>fitEnd</code></td><td>3</td><td></td></tr> <tr><td><code>center</code></td><td>4</td><td></td></tr> <tr><td><code>centerInside</code></td><td>5</td><td></td></tr> <tr><td><code>centerCrop</code></td><td>6</td><td></td></tr> <tr><td><code>focusCrop</code></td><td>7</td><td></td></tr> </table> @attr name com.andreea:progressBarImageScaleType */ public static final int GenericDraweeHierarchy_progressBarImageScaleType = 9; /** <p>This symbol is the offset where the {@link com.andreea.R.attr#retryImage} attribute's value can be found in the {@link #GenericDraweeHierarchy} 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.andreea:retryImage */ public static final int GenericDraweeHierarchy_retryImage = 4; /** <p>This symbol is the offset where the {@link com.andreea.R.attr#retryImageScaleType} attribute's value can be found in the {@link #GenericDraweeHierarchy} 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>none</code></td><td>-1</td><td></td></tr> <tr><td><code>fitXY</code></td><td>0</td><td></td></tr> <tr><td><code>fitStart</code></td><td>1</td><td></td></tr> <tr><td><code>fitCenter</code></td><td>2</td><td></td></tr> <tr><td><code>fitEnd</code></td><td>3</td><td></td></tr> <tr><td><code>center</code></td><td>4</td><td></td></tr> <tr><td><code>centerInside</code></td><td>5</td><td></td></tr> <tr><td><code>centerCrop</code></td><td>6</td><td></td></tr> <tr><td><code>focusCrop</code></td><td>7</td><td></td></tr> </table> @attr name com.andreea:retryImageScaleType */ public static final int GenericDraweeHierarchy_retryImageScaleType = 5; /** <p>This symbol is the offset where the {@link com.andreea.R.attr#roundAsCircle} attribute's value can be found in the {@link #GenericDraweeHierarchy} 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.andreea:roundAsCircle */ public static final int GenericDraweeHierarchy_roundAsCircle = 15; /** <p>This symbol is the offset where the {@link com.andreea.R.attr#roundBottomLeft} attribute's value can be found in the {@link #GenericDraweeHierarchy} 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.andreea:roundBottomLeft */ public static final int GenericDraweeHierarchy_roundBottomLeft = 20; /** <p>This symbol is the offset where the {@link com.andreea.R.attr#roundBottomRight} attribute's value can be found in the {@link #GenericDraweeHierarchy} 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.andreea:roundBottomRight */ public static final int GenericDraweeHierarchy_roundBottomRight = 19; /** <p>This symbol is the offset where the {@link com.andreea.R.attr#roundTopLeft} attribute's value can be found in the {@link #GenericDraweeHierarchy} 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.andreea:roundTopLeft */ public static final int GenericDraweeHierarchy_roundTopLeft = 17; /** <p>This symbol is the offset where the {@link com.andreea.R.attr#roundTopRight} attribute's value can be found in the {@link #GenericDraweeHierarchy} 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.andreea:roundTopRight */ public static final int GenericDraweeHierarchy_roundTopRight = 18; /** <p>This symbol is the offset where the {@link com.andreea.R.attr#roundWithOverlayColor} attribute's value can be found in the {@link #GenericDraweeHierarchy} 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.andreea:roundWithOverlayColor */ public static final int GenericDraweeHierarchy_roundWithOverlayColor = 21; /** <p>This symbol is the offset where the {@link com.andreea.R.attr#roundedCornerRadius} attribute's value can be found in the {@link #GenericDraweeHierarchy} 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.andreea:roundedCornerRadius */ public static final int GenericDraweeHierarchy_roundedCornerRadius = 16; /** <p>This symbol is the offset where the {@link com.andreea.R.attr#roundingBorderColor} attribute's value can be found in the {@link #GenericDraweeHierarchy} 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.andreea:roundingBorderColor */ public static final int GenericDraweeHierarchy_roundingBorderColor = 23; /** <p>This symbol is the offset where the {@link com.andreea.R.attr#roundingBorderPadding} attribute's value can be found in the {@link #GenericDraweeHierarchy} 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.andreea:roundingBorderPadding */ public static final int GenericDraweeHierarchy_roundingBorderPadding = 24; /** <p>This symbol is the offset where the {@link com.andreea.R.attr#roundingBorderWidth} attribute's value can be found in the {@link #GenericDraweeHierarchy} 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.andreea:roundingBorderWidth */ public static final int GenericDraweeHierarchy_roundingBorderWidth = 22; /** <p>This symbol is the offset where the {@link com.andreea.R.attr#viewAspectRatio} attribute's value can be found in the {@link #GenericDraweeHierarchy} array. <p>Must be a floating point value, such as "<code>1.2</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.andreea:viewAspectRatio */ public static final int GenericDraweeHierarchy_viewAspectRatio = 1; /** 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.andreea:divider}</code></td><td></td></tr> <tr><td><code>{@link #LinearLayoutCompat_dividerPadding com.andreea:dividerPadding}</code></td><td></td></tr> <tr><td><code>{@link #LinearLayoutCompat_measureWithLargestChild com.andreea:measureWithLargestChild}</code></td><td></td></tr> <tr><td><code>{@link #LinearLayoutCompat_showDividers com.andreea: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, 0x7f0100b8, 0x7f0100b9, 0x7f0100ba }; /** <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 final 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 final int LinearLayoutCompat_android_baselineAlignedChildIndex = 3; /** <p>This symbol is the offset where the {@link android.R.attr#gravity} attribute's value can be found in the {@link #LinearLayoutCompat} array. @attr name android:gravity */ public static final int LinearLayoutCompat_android_gravity = 0; /** <p>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 final 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 final int LinearLayoutCompat_android_weightSum = 4; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:divider */ public static final int LinearLayoutCompat_divider = 5; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:dividerPadding */ public static final int LinearLayoutCompat_dividerPadding = 8; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:measureWithLargestChild */ public static final int LinearLayoutCompat_measureWithLargestChild = 6; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:showDividers */ public static final int LinearLayoutCompat_showDividers = 7; /** Attributes that can be used with a LinearLayoutCompat_Layout. <p>Includes the following attributes:</p> <table> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Attribute</th><th>Description</th></tr> <tr><td><code>{@link #LinearLayoutCompat_Layout_android_layout_gravity android:layout_gravity}</code></td><td></td></tr> <tr><td><code>{@link #LinearLayoutCompat_Layout_android_layout_height android:layout_height}</code></td><td></td></tr> <tr><td><code>{@link #LinearLayoutCompat_Layout_android_layout_weight android:layout_weight}</code></td><td></td></tr> <tr><td><code>{@link #LinearLayoutCompat_Layout_android_layout_width android:layout_width}</code></td><td></td></tr> </table> @see #LinearLayoutCompat_Layout_android_layout_gravity @see #LinearLayoutCompat_Layout_android_layout_height @see #LinearLayoutCompat_Layout_android_layout_weight @see #LinearLayoutCompat_Layout_android_layout_width */ public static final int[] LinearLayoutCompat_Layout = { 0x010100b3, 0x010100f4, 0x010100f5, 0x01010181 }; /** <p>This symbol is the offset where the {@link android.R.attr#layout_gravity} attribute's value can be found in the {@link #LinearLayoutCompat_Layout} array. @attr name android:layout_gravity */ public static final int LinearLayoutCompat_Layout_android_layout_gravity = 0; /** <p>This symbol is the offset where the {@link android.R.attr#layout_height} attribute's value can be found in the {@link #LinearLayoutCompat_Layout} array. @attr name android:layout_height */ public static final int LinearLayoutCompat_Layout_android_layout_height = 2; /** <p>This symbol is the offset where the {@link android.R.attr#layout_weight} attribute's value can be found in the {@link #LinearLayoutCompat_Layout} array. @attr name android:layout_weight */ public static final int LinearLayoutCompat_Layout_android_layout_weight = 3; /** <p>This symbol is the offset where the {@link android.R.attr#layout_width} attribute's value can be found in the {@link #LinearLayoutCompat_Layout} array. @attr name android:layout_width */ public static final int LinearLayoutCompat_Layout_android_layout_width = 1; /** Attributes that can be used with a ListPopupWindow. <p>Includes the following attributes:</p> <table> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Attribute</th><th>Description</th></tr> <tr><td><code>{@link #ListPopupWindow_android_dropDownHorizontalOffset android:dropDownHorizontalOffset}</code></td><td></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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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.andreea:actionLayout}</code></td><td></td></tr> <tr><td><code>{@link #MenuItem_actionProviderClass com.andreea:actionProviderClass}</code></td><td></td></tr> <tr><td><code>{@link #MenuItem_actionViewClass com.andreea: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.andreea: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, 0x7f0100bb, 0x7f0100bc, 0x7f0100bd, 0x7f0100be }; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:actionLayout */ public static final int MenuItem_actionLayout = 14; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:actionProviderClass */ public static final int MenuItem_actionProviderClass = 16; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:actionViewClass */ public static final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final int MenuItem_android_visible = 4; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:showAsAction */ public static final int MenuItem_showAsAction = 13; /** Attributes that can be used with a MenuView. <p>Includes the following attributes:</p> <table> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Attribute</th><th>Description</th></tr> <tr><td><code>{@link #MenuView_android_headerBackground android:headerBackground}</code></td><td></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.andreea: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, 0x7f0100bf }; /** <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 final 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 final 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 final 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 final 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 final 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 final 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 final int MenuView_android_windowAnimationStyle = 0; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:preserveIconSpacing */ public static final int MenuView_preserveIconSpacing = 7; /** Attributes that can be used with a PopupWindow. <p>Includes the following attributes:</p> <table> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Attribute</th><th>Description</th></tr> <tr><td><code>{@link #PopupWindow_android_popupBackground android:popupBackground}</code></td><td></td></tr> <tr><td><code>{@link #PopupWindow_overlapAnchor com.andreea:overlapAnchor}</code></td><td></td></tr> </table> @see #PopupWindow_android_popupBackground @see #PopupWindow_overlapAnchor */ public static final int[] PopupWindow = { 0x01010176, 0x7f0100c0 }; /** <p>This symbol is the offset where the {@link android.R.attr#popupBackground} attribute's value can be found in the {@link #PopupWindow} array. @attr name android:popupBackground */ public static final int PopupWindow_android_popupBackground = 0; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:overlapAnchor */ public static final int PopupWindow_overlapAnchor = 1; /** Attributes that can be used with a PopupWindowBackgroundState. <p>Includes the following attributes:</p> <table> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Attribute</th><th>Description</th></tr> <tr><td><code>{@link #PopupWindowBackgroundState_state_above_anchor com.andreea:state_above_anchor}</code></td><td></td></tr> </table> @see #PopupWindowBackgroundState_state_above_anchor */ public static final int[] PopupWindowBackgroundState = { 0x7f0100c1 }; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:state_above_anchor */ public static final int PopupWindowBackgroundState_state_above_anchor = 0; /** Attributes that can be used with a SearchView. <p>Includes the following attributes:</p> <table> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Attribute</th><th>Description</th></tr> <tr><td><code>{@link #SearchView_android_focusable android:focusable}</code></td><td></td></tr> <tr><td><code>{@link #SearchView_android_imeOptions android:imeOptions}</code></td><td></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.andreea:closeIcon}</code></td><td></td></tr> <tr><td><code>{@link #SearchView_commitIcon com.andreea:commitIcon}</code></td><td></td></tr> <tr><td><code>{@link #SearchView_defaultQueryHint com.andreea:defaultQueryHint}</code></td><td></td></tr> <tr><td><code>{@link #SearchView_goIcon com.andreea:goIcon}</code></td><td></td></tr> <tr><td><code>{@link #SearchView_iconifiedByDefault com.andreea:iconifiedByDefault}</code></td><td></td></tr> <tr><td><code>{@link #SearchView_layout com.andreea:layout}</code></td><td></td></tr> <tr><td><code>{@link #SearchView_queryBackground com.andreea:queryBackground}</code></td><td></td></tr> <tr><td><code>{@link #SearchView_queryHint com.andreea:queryHint}</code></td><td></td></tr> <tr><td><code>{@link #SearchView_searchHintIcon com.andreea:searchHintIcon}</code></td><td></td></tr> <tr><td><code>{@link #SearchView_searchIcon com.andreea:searchIcon}</code></td><td></td></tr> <tr><td><code>{@link #SearchView_submitBackground com.andreea:submitBackground}</code></td><td></td></tr> <tr><td><code>{@link #SearchView_suggestionRowLayout com.andreea:suggestionRowLayout}</code></td><td></td></tr> <tr><td><code>{@link #SearchView_voiceIcon com.andreea: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, 0x7f0100c2, 0x7f0100c3, 0x7f0100c4, 0x7f0100c5, 0x7f0100c6, 0x7f0100c7, 0x7f0100c8, 0x7f0100c9, 0x7f0100ca, 0x7f0100cb, 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 #SearchView} array. @attr name android:focusable */ public static final 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 final 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 final 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 final int SearchView_android_maxWidth = 1; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:closeIcon */ public static final int SearchView_closeIcon = 8; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:commitIcon */ public static final int SearchView_commitIcon = 13; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:defaultQueryHint */ public static final int SearchView_defaultQueryHint = 7; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:goIcon */ public static final int SearchView_goIcon = 9; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:iconifiedByDefault */ public static final int SearchView_iconifiedByDefault = 5; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:layout */ public static final int SearchView_layout = 4; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:queryBackground */ public static final int SearchView_queryBackground = 15; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:queryHint */ public static final int SearchView_queryHint = 6; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:searchHintIcon */ public static final int SearchView_searchHintIcon = 11; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:searchIcon */ public static final int SearchView_searchIcon = 10; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:submitBackground */ public static final int SearchView_submitBackground = 16; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:suggestionRowLayout */ public static final int SearchView_suggestionRowLayout = 14; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:voiceIcon */ public static final int SearchView_voiceIcon = 12; /** Attributes that can be used with a SimpleDraweeView. <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 #SimpleDraweeView_actualImageResource com.andreea:actualImageResource}</code></td><td></td></tr> <tr><td><code>{@link #SimpleDraweeView_actualImageUri com.andreea:actualImageUri}</code></td><td></td></tr> </table> @see #SimpleDraweeView_actualImageResource @see #SimpleDraweeView_actualImageUri */ public static final int[] SimpleDraweeView = { 0x7f0100cf, 0x7f0100d0 }; /** <p>This symbol is the offset where the {@link com.andreea.R.attr#actualImageResource} attribute's value can be found in the {@link #SimpleDraweeView} 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.andreea:actualImageResource */ public static final int SimpleDraweeView_actualImageResource = 1; /** <p>This symbol is the offset where the {@link com.andreea.R.attr#actualImageUri} attribute's value can be found in the {@link #SimpleDraweeView} 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.andreea:actualImageUri */ public static final int SimpleDraweeView_actualImageUri = 0; /** 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.andreea: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 final 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 final 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 final 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 final int Spinner_android_prompt = 2; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:popupTheme */ public static final 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.andreea:showText}</code></td><td></td></tr> <tr><td><code>{@link #SwitchCompat_splitTrack com.andreea:splitTrack}</code></td><td></td></tr> <tr><td><code>{@link #SwitchCompat_switchMinWidth com.andreea:switchMinWidth}</code></td><td></td></tr> <tr><td><code>{@link #SwitchCompat_switchPadding com.andreea:switchPadding}</code></td><td></td></tr> <tr><td><code>{@link #SwitchCompat_switchTextAppearance com.andreea:switchTextAppearance}</code></td><td></td></tr> <tr><td><code>{@link #SwitchCompat_thumbTextPadding com.andreea:thumbTextPadding}</code></td><td></td></tr> <tr><td><code>{@link #SwitchCompat_track com.andreea: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, 0x7f0100d1, 0x7f0100d2, 0x7f0100d3, 0x7f0100d4, 0x7f0100d5, 0x7f0100d6, 0x7f0100d7 }; /** <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 final 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 final 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 final int SwitchCompat_android_thumb = 2; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:showText */ public static final int SwitchCompat_showText = 9; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:splitTrack */ public static final int SwitchCompat_splitTrack = 8; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:switchMinWidth */ public static final int SwitchCompat_switchMinWidth = 6; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:switchPadding */ public static final int SwitchCompat_switchPadding = 7; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:switchTextAppearance */ public static final int SwitchCompat_switchTextAppearance = 5; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:thumbTextPadding */ public static final int SwitchCompat_thumbTextPadding = 4; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:track */ public static final 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.andreea: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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final int TextAppearance_android_typeface = 1; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:textAllCaps */ public static final int TextAppearance_textAllCaps = 8; /** Attributes that can be used with a TextStyle. <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 #TextStyle_android_ellipsize android:ellipsize}</code></td><td></td></tr> <tr><td><code>{@link #TextStyle_android_maxLines android:maxLines}</code></td><td></td></tr> <tr><td><code>{@link #TextStyle_android_shadowColor android:shadowColor}</code></td><td></td></tr> <tr><td><code>{@link #TextStyle_android_shadowDx android:shadowDx}</code></td><td></td></tr> <tr><td><code>{@link #TextStyle_android_shadowDy android:shadowDy}</code></td><td></td></tr> <tr><td><code>{@link #TextStyle_android_shadowRadius android:shadowRadius}</code></td><td></td></tr> <tr><td><code>{@link #TextStyle_android_singleLine android:singleLine}</code></td><td></td></tr> <tr><td><code>{@link #TextStyle_android_textAppearance android:textAppearance}</code></td><td></td></tr> <tr><td><code>{@link #TextStyle_android_textColor android:textColor}</code></td><td></td></tr> <tr><td><code>{@link #TextStyle_android_textSize android:textSize}</code></td><td></td></tr> <tr><td><code>{@link #TextStyle_android_textStyle android:textStyle}</code></td><td></td></tr> </table> @see #TextStyle_android_ellipsize @see #TextStyle_android_maxLines @see #TextStyle_android_shadowColor @see #TextStyle_android_shadowDx @see #TextStyle_android_shadowDy @see #TextStyle_android_shadowRadius @see #TextStyle_android_singleLine @see #TextStyle_android_textAppearance @see #TextStyle_android_textColor @see #TextStyle_android_textSize @see #TextStyle_android_textStyle */ public static final int[] TextStyle = { 0x01010034, 0x01010095, 0x01010097, 0x01010098, 0x010100ab, 0x01010153, 0x0101015d, 0x01010161, 0x01010162, 0x01010163, 0x01010164 }; /** <p>This symbol is the offset where the {@link android.R.attr#ellipsize} attribute's value can be found in the {@link #TextStyle} array. @attr name android:ellipsize */ public static final int TextStyle_android_ellipsize = 4; /** <p>This symbol is the offset where the {@link android.R.attr#maxLines} attribute's value can be found in the {@link #TextStyle} array. @attr name android:maxLines */ public static final int TextStyle_android_maxLines = 5; /** <p>This symbol is the offset where the {@link android.R.attr#shadowColor} attribute's value can be found in the {@link #TextStyle} array. @attr name android:shadowColor */ public static final int TextStyle_android_shadowColor = 7; /** <p>This symbol is the offset where the {@link android.R.attr#shadowDx} attribute's value can be found in the {@link #TextStyle} array. @attr name android:shadowDx */ public static final int TextStyle_android_shadowDx = 8; /** <p>This symbol is the offset where the {@link android.R.attr#shadowDy} attribute's value can be found in the {@link #TextStyle} array. @attr name android:shadowDy */ public static final int TextStyle_android_shadowDy = 9; /** <p>This symbol is the offset where the {@link android.R.attr#shadowRadius} attribute's value can be found in the {@link #TextStyle} array. @attr name android:shadowRadius */ public static final int TextStyle_android_shadowRadius = 10; /** <p>This symbol is the offset where the {@link android.R.attr#singleLine} attribute's value can be found in the {@link #TextStyle} array. @attr name android:singleLine */ public static final int TextStyle_android_singleLine = 6; /** <p>This symbol is the offset where the {@link android.R.attr#textAppearance} attribute's value can be found in the {@link #TextStyle} array. @attr name android:textAppearance */ public static final int TextStyle_android_textAppearance = 0; /** <p>This symbol is the offset where the {@link android.R.attr#textColor} attribute's value can be found in the {@link #TextStyle} array. @attr name android:textColor */ public static final int TextStyle_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 #TextStyle} array. @attr name android:textSize */ public static final int TextStyle_android_textSize = 1; /** <p>This symbol is the offset where the {@link android.R.attr#textStyle} attribute's value can be found in the {@link #TextStyle} array. @attr name android:textStyle */ public static final int TextStyle_android_textStyle = 2; /** 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.andreea:collapseContentDescription}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_collapseIcon com.andreea:collapseIcon}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_contentInsetEnd com.andreea:contentInsetEnd}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_contentInsetLeft com.andreea:contentInsetLeft}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_contentInsetRight com.andreea:contentInsetRight}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_contentInsetStart com.andreea:contentInsetStart}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_logo com.andreea:logo}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_logoDescription com.andreea:logoDescription}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_maxButtonHeight com.andreea:maxButtonHeight}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_navigationContentDescription com.andreea:navigationContentDescription}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_navigationIcon com.andreea:navigationIcon}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_popupTheme com.andreea:popupTheme}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_subtitle com.andreea:subtitle}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_subtitleTextAppearance com.andreea:subtitleTextAppearance}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_subtitleTextColor com.andreea:subtitleTextColor}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_title com.andreea:title}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_titleMarginBottom com.andreea:titleMarginBottom}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_titleMarginEnd com.andreea:titleMarginEnd}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_titleMarginStart com.andreea:titleMarginStart}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_titleMarginTop com.andreea:titleMarginTop}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_titleMargins com.andreea:titleMargins}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_titleTextAppearance com.andreea:titleTextAppearance}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_titleTextColor com.andreea: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, 0x7f0100d8, 0x7f0100d9, 0x7f0100da, 0x7f0100db, 0x7f0100dc, 0x7f0100dd, 0x7f0100de, 0x7f0100df, 0x7f0100e0, 0x7f0100e1, 0x7f0100e2, 0x7f0100e3, 0x7f0100e4, 0x7f0100e5, 0x7f0100e6 }; /** <p>This symbol is the offset where the {@link android.R.attr#gravity} attribute's value can be found in the {@link #Toolbar} array. @attr name android:gravity */ public static final int Toolbar_android_gravity = 0; /** <p>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 final int Toolbar_android_minHeight = 1; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:collapseContentDescription */ public static final int Toolbar_collapseContentDescription = 19; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:collapseIcon */ public static final int Toolbar_collapseIcon = 18; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:contentInsetEnd */ public static final int Toolbar_contentInsetEnd = 6; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:contentInsetLeft */ public static final int Toolbar_contentInsetLeft = 7; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:contentInsetRight */ public static final int Toolbar_contentInsetRight = 8; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:contentInsetStart */ public static final int Toolbar_contentInsetStart = 5; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:logo */ public static final int Toolbar_logo = 4; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:logoDescription */ public static final int Toolbar_logoDescription = 22; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:maxButtonHeight */ public static final int Toolbar_maxButtonHeight = 17; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:navigationContentDescription */ public static final int Toolbar_navigationContentDescription = 21; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:navigationIcon */ public static final int Toolbar_navigationIcon = 20; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:popupTheme */ public static final int Toolbar_popupTheme = 9; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:subtitle */ public static final int Toolbar_subtitle = 3; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:subtitleTextAppearance */ public static final int Toolbar_subtitleTextAppearance = 11; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:subtitleTextColor */ public static final int Toolbar_subtitleTextColor = 24; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:title */ public static final int Toolbar_title = 2; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:titleMarginBottom */ public static final int Toolbar_titleMarginBottom = 16; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:titleMarginEnd */ public static final int Toolbar_titleMarginEnd = 14; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:titleMarginStart */ public static final int Toolbar_titleMarginStart = 13; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:titleMarginTop */ public static final int Toolbar_titleMarginTop = 15; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:titleMargins */ public static final int Toolbar_titleMargins = 12; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:titleTextAppearance */ public static final int Toolbar_titleTextAppearance = 10; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:titleTextColor */ public static final 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.andreea:paddingEnd}</code></td><td></td></tr> <tr><td><code>{@link #View_paddingStart com.andreea:paddingStart}</code></td><td></td></tr> <tr><td><code>{@link #View_theme com.andreea: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, 0x7f0100e7, 0x7f0100e8, 0x7f0100e9 }; /** <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 final 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 final int View_android_theme = 0; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:paddingEnd */ public static final int View_paddingEnd = 3; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:paddingStart */ public static final int View_paddingStart = 2; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:theme */ public static final 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.andreea:backgroundTint}</code></td><td></td></tr> <tr><td><code>{@link #ViewBackgroundHelper_backgroundTintMode com.andreea:backgroundTintMode}</code></td><td></td></tr> </table> @see #ViewBackgroundHelper_android_background @see #ViewBackgroundHelper_backgroundTint @see #ViewBackgroundHelper_backgroundTintMode */ public static final int[] ViewBackgroundHelper = { 0x010100d4, 0x7f0100ea, 0x7f0100eb }; /** <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 final int ViewBackgroundHelper_android_background = 0; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:backgroundTint */ public static final int ViewBackgroundHelper_backgroundTint = 1; /** <p>This symbol is the offset where the {@link com.andreea.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.andreea:backgroundTintMode */ public static final 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 final 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 final 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 final int ViewStubCompat_android_layout = 1; }; }
9241f39144db934e9bcf16316f7364b68cdd6329
4,150
java
Java
components/identity-mgt/org.wso2.carbon.identity.mgt/src/main/java/org/wso2/carbon/identity/mgt/store/InMemoryIdentityDataStore.java
manjulaRathnayaka/carbon-identity
847413855843e4149dec3acb367b34546dc0fbd0
[ "Apache-2.0" ]
null
null
null
components/identity-mgt/org.wso2.carbon.identity.mgt/src/main/java/org/wso2/carbon/identity/mgt/store/InMemoryIdentityDataStore.java
manjulaRathnayaka/carbon-identity
847413855843e4149dec3acb367b34546dc0fbd0
[ "Apache-2.0" ]
null
null
null
components/identity-mgt/org.wso2.carbon.identity.mgt/src/main/java/org/wso2/carbon/identity/mgt/store/InMemoryIdentityDataStore.java
manjulaRathnayaka/carbon-identity
847413855843e4149dec3acb367b34546dc0fbd0
[ "Apache-2.0" ]
null
null
null
37.053571
141
0.690361
1,002,084
/* * Copyright (c) WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * 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.wso2.carbon.identity.mgt.store; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.wso2.carbon.context.CarbonContext; import org.wso2.carbon.identity.base.IdentityException; import org.wso2.carbon.identity.mgt.dto.UserIdentityClaimsDO; import org.wso2.carbon.user.api.UserStoreManager; import javax.cache.Cache; import javax.cache.CacheManager; import javax.cache.Caching; /** * */ public class InMemoryIdentityDataStore extends UserIdentityDataStore { private static final String IDENTITY_LOGIN_DATA_CACHE_MANAGER = "IDENTITY_LOGIN_DATA_CACHE_MANAGER"; private static final String IDENTITY_LOGIN_DATA_CACHE = "IDENTITY_LOGIN_DATA_CACHE"; //protected Cache<String, UserIdentityClaimsDO> cache = getCache();//CarbonUtils.getLocalCache("IDENTITY_LOGIN_DATA_CACHE"); private static Log log = LogFactory.getLog(InMemoryIdentityDataStore.class); protected Cache<String, UserIdentityClaimsDO> getCache() { CacheManager manager = Caching.getCacheManagerFactory().getCacheManager(InMemoryIdentityDataStore.IDENTITY_LOGIN_DATA_CACHE_MANAGER); Cache<String, UserIdentityClaimsDO> cache = manager.getCache(InMemoryIdentityDataStore.IDENTITY_LOGIN_DATA_CACHE); return cache; } @Override public void store(UserIdentityClaimsDO userIdentityDTO, UserStoreManager userStoreManager) throws IdentityException { if (userIdentityDTO != null && userIdentityDTO.getUserName() != null) { String key = CarbonContext.getThreadLocalCarbonContext().getTenantId() + userIdentityDTO.getUserName(); // if (cache.containsKey(key)) { // invalidateCache(userIdentityDTO.getUserName()); // } Cache<String, UserIdentityClaimsDO> cache = getCache(); if (cache != null) { cache.put(key, userIdentityDTO); } } } @Override public UserIdentityClaimsDO load(String userName, UserStoreManager userStoreManager) { Cache<String, UserIdentityClaimsDO> cache = getCache(); if (userName != null && cache != null) { return (UserIdentityClaimsDO) cache.get(CarbonContext.getThreadLocalCarbonContext().getTenantId() + userName); } return null; } public void remove(String userName, UserStoreManager userStoreManager) throws IdentityException { Cache<String, UserIdentityClaimsDO> cache = getCache(); if (userName == null) { return; } cache.remove(CarbonContext.getThreadLocalCarbonContext().getTenantId() + userName); // invalidateCache(userName); } // public void invalidateCache(String userName){ // // if (log.isDebugEnabled()) { // log.debug("Init invalidation caching process"); // } // sending cluster message // CacheInvalidator invalidator = IdentityMgtServiceComponent.getCacheInvalidator(); // try { // if (invalidator != null) { // invalidator.invalidateCache("IDENTITY_LOGIN_DATA_CACHE", // CarbonContext.getCurrentContext().getTenantId() + // userName); // if (log.isDebugEnabled()) { // log.debug("Calling invalidation cache"); // } // } else { // if (log.isDebugEnabled()) { // log.debug("Not calling invalidation cache"); // } // } // } catch (CacheException e) { // log.error("Error while invalidating cache", e); // } // } }
9241f39278e0159686920f9bc0993d69b1968958
1,265
java
Java
wms-bill-manage/src/main/java/com/deer/wms/bill/manage/service/impl/MtAloneTagServiceImpl.java
yuanfayang/wms-parent
17d7796daf9f75d05c8505f69f2bc2baf3192cc6
[ "0BSD" ]
null
null
null
wms-bill-manage/src/main/java/com/deer/wms/bill/manage/service/impl/MtAloneTagServiceImpl.java
yuanfayang/wms-parent
17d7796daf9f75d05c8505f69f2bc2baf3192cc6
[ "0BSD" ]
null
null
null
wms-bill-manage/src/main/java/com/deer/wms/bill/manage/service/impl/MtAloneTagServiceImpl.java
yuanfayang/wms-parent
17d7796daf9f75d05c8505f69f2bc2baf3192cc6
[ "0BSD" ]
null
null
null
28.75
111
0.774704
1,002,085
package com.deer.wms.bill.manage.service.impl; import com.deer.wms.bill.manage.dao.MtAloneTagMapper; import com.deer.wms.bill.manage.model.MtAloneTag; import com.deer.wms.bill.manage.model.MtAloneTagCriteria; import com.deer.wms.bill.manage.service.MtAloneTagService; import com.deer.wms.project.seed.core.service.AbstractService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import java.util.List; import com.deer.wms.bill.manage.model.MtAloneTag; /** * Created by on 2018/12/30. */ @Service @Transactional public class MtAloneTagServiceImpl extends AbstractService<MtAloneTag, Integer> implements MtAloneTagService { @Autowired private MtAloneTagMapper mtAloneTagMapper; @Override public List<MtAloneTag> findList(MtAloneTagCriteria criteria) { return mtAloneTagMapper.findList(criteria); } @Override public void deleteByTagCode(MtAloneTagCriteria criteria) { mtAloneTagMapper.deleteByTagCode(criteria); } @Override public MtAloneTag findDefaultTag(MtAloneTagCriteria criteria) { return mtAloneTagMapper.findDefaultTag(criteria); } }
9241f6a004bd2f5d31505acde995b8d8a928a053
1,262
java
Java
domain-services/jbb-security/src/main/java/org/jbb/security/impl/rememberme/model/PersistentLoginEntity.java
jbb-project/jbb
cefa12cda40804395b2d6e8bea0fb8352610b761
[ "Apache-2.0" ]
4
2017-02-23T15:35:33.000Z
2020-08-03T22:00:17.000Z
domain-services/jbb-security/src/main/java/org/jbb/security/impl/rememberme/model/PersistentLoginEntity.java
jbb-project/jbb
cefa12cda40804395b2d6e8bea0fb8352610b761
[ "Apache-2.0" ]
1
2019-05-14T18:54:24.000Z
2019-05-14T18:54:24.000Z
domain-services/jbb-security/src/main/java/org/jbb/security/impl/rememberme/model/PersistentLoginEntity.java
jbb-project/jbb
cefa12cda40804395b2d6e8bea0fb8352610b761
[ "Apache-2.0" ]
3
2018-03-29T15:51:09.000Z
2019-11-25T02:46:41.000Z
22.140351
67
0.72504
1,002,086
/* * Copyright (C) 2018 the original author or authors. * * This file is part of jBB Application Project. * * Licensed under the Apache License, Version 2.0 (the "License"); * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 */ package org.jbb.security.impl.rememberme.model; import java.time.LocalDateTime; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Table; import javax.validation.constraints.NotNull; import lombok.Builder; import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.Setter; import lombok.experimental.Tolerate; import org.hibernate.envers.Audited; import org.jbb.lib.db.domain.BaseEntity; @Getter @Setter @Entity @Audited @Table(name = "JBB_PERSISTENT_LOGINS") @Builder @EqualsAndHashCode(callSuper = true) public class PersistentLoginEntity extends BaseEntity { @NotNull @Column(name = "member_id") private Long memberId; @NotNull @Column(name = "series") private String series; @NotNull @Column(name = "token") private String token; @Column(name = "last_used") @NotNull private LocalDateTime lastUsed; @Tolerate PersistentLoginEntity() { // for JPA } }
9241f6bf26e0bdff81ce47554c5797f602a93aaa
841
java
Java
back/src/main/java/back/api/model/enumeration/NaturezaDividaDebitoEnum.java
Fellipe0/aplicacao-movel
71cb6f25df63cde34f0712d2f994d0f84d8e3b62
[ "MIT" ]
null
null
null
back/src/main/java/back/api/model/enumeration/NaturezaDividaDebitoEnum.java
Fellipe0/aplicacao-movel
71cb6f25df63cde34f0712d2f994d0f84d8e3b62
[ "MIT" ]
null
null
null
back/src/main/java/back/api/model/enumeration/NaturezaDividaDebitoEnum.java
Fellipe0/aplicacao-movel
71cb6f25df63cde34f0712d2f994d0f84d8e3b62
[ "MIT" ]
null
null
null
20.512195
90
0.722949
1,002,087
package back.api.model.enumeration; import back.api.util.StringUtil; import lombok.Getter; /** * * @author suleiman-am * */ @Getter public enum NaturezaDividaDebitoEnum { NAO_TRIBUTARIA("Não Tributária"), TRIBUTARIA("Tributária"); private String descricao; private NaturezaDividaDebitoEnum(String descricao) { this.descricao = descricao; } public static NaturezaDividaDebitoEnum get(String nome) { try { if(StringUtil.isNotNullOrEmpity(nome)) { return NaturezaDividaDebitoEnum.valueOf(nome.toUpperCase()); } } catch (Exception e) {} return NaturezaDividaDebitoEnum.NAO_TRIBUTARIA; } public static String getDetalhe(Object nome) { try { if(nome != null) { return NaturezaDividaDebitoEnum.valueOf(nome.toString().toUpperCase()).getDescricao(); } } catch (Exception e) {} return "-"; } }
9241f807b11d5cb0c78dbf114795592340a31594
12,075
java
Java
androidbrowserhelper/src/main/java/com/google/androidbrowserhelper/trusted/TwaLauncher.java
flunder-io/android-browser-helper
5599654c4118cda17d5dffa1b44ab9c8a9efb8db
[ "Apache-2.0" ]
null
null
null
androidbrowserhelper/src/main/java/com/google/androidbrowserhelper/trusted/TwaLauncher.java
flunder-io/android-browser-helper
5599654c4118cda17d5dffa1b44ab9c8a9efb8db
[ "Apache-2.0" ]
null
null
null
androidbrowserhelper/src/main/java/com/google/androidbrowserhelper/trusted/TwaLauncher.java
flunder-io/android-browser-helper
5599654c4118cda17d5dffa1b44ab9c8a9efb8db
[ "Apache-2.0" ]
null
null
null
39.204545
103
0.681077
1,002,088
// Copyright 2019 Google Inc. All Rights Reserved. // // 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.google.androidbrowserhelper.trusted; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.util.Log; import androidx.annotation.Nullable; import androidx.browser.customtabs.CustomTabsClient; import androidx.browser.customtabs.CustomTabsIntent; import androidx.browser.customtabs.CustomTabsService; import androidx.browser.customtabs.CustomTabsServiceConnection; import androidx.browser.customtabs.CustomTabsSession; import androidx.browser.trusted.TrustedWebActivityIntentBuilder; import androidx.core.content.ContextCompat; import com.google.androidbrowserhelper.trusted.splashscreens.SplashScreenStrategy; /** * Encapsulates the steps necessary to launch a Trusted Web Activity, such as establishing a * connection with {@link CustomTabsService}. */ public class TwaLauncher { private static final String TAG = "TwaLauncher"; private static final int DEFAULT_SESSION_ID = 96375; public static final FallbackStrategy CCT_FALLBACK_STRATEGY = (context, twaBuilder, providerPackage, completionCallback) -> { // CustomTabsIntent will fall back to launching the Browser if there are no Custom Tabs // providers installed. CustomTabsIntent intent = twaBuilder.buildCustomTabsIntent(); if (providerPackage != null) { intent.intent.setPackage(providerPackage); } intent.launchUrl(context, twaBuilder.getUri()); if (completionCallback != null) { completionCallback.run(); } }; public static final FallbackStrategy WEBVIEW_FALLBACK_STRATEGY = (context, twaBuilder, providerPackage, completionCallback) -> { Intent intent = WebViewFallbackActivity.createLaunchIntent(context, twaBuilder.getUri(), LauncherActivityMetadata.parse(context)); context.startActivity(intent); if (completionCallback != null) { completionCallback.run(); } }; private final Context mContext; @Nullable private final String mProviderPackage; @TwaProviderPicker.LaunchMode private final int mLaunchMode; private final int mSessionId; @Nullable private TwaCustomTabsServiceConnection mServiceConnection; @Nullable private CustomTabsSession mSession; private SharedPreferencesTokenStore mTokenStore; private boolean mDestroyed; public interface FallbackStrategy { void launch(Context context, TrustedWebActivityIntentBuilder twaBuilder, @Nullable String providerPackage, @Nullable Runnable completionCallback); } /** * Creates an instance that will automatically choose the browser to launch a TWA in. * If no browser supports TWA, will launch a usual Custom Tab (see {@link TwaProviderPicker}. */ public TwaLauncher(Context context) { this(context, null); } /** * Same as above, but also allows to specify a browser to launch. If specified, it is assumed to * support TWAs. */ public TwaLauncher(Context context, @Nullable String providerPackage) { this(context, providerPackage, DEFAULT_SESSION_ID, new SharedPreferencesTokenStore(context)); } /** * Same as above, but also accepts a session id. This allows to launch multiple TWAs in the same * task. */ public TwaLauncher(Context context, @Nullable String providerPackage, int sessionId, SharedPreferencesTokenStore tokenStore) { mContext = context; mSessionId = sessionId; mTokenStore = tokenStore; if (providerPackage == null) { TwaProviderPicker.Action action = TwaProviderPicker.pickProvider(context.getPackageManager()); mProviderPackage = action.provider; mLaunchMode = action.launchMode; } else { mProviderPackage = providerPackage; mLaunchMode = TwaProviderPicker.LaunchMode.TRUSTED_WEB_ACTIVITY; } } /** * Opens the specified url in a TWA. * When TWA is already running in the current task, the url will be opened in existing TWA, * if the same instance TwaLauncher is used. If another instance of TwaLauncher is used, * the TWA will be reused only if the session ids match (see constructors). * * @param url Url to open. */ public void launch(Uri url) { launch(new TrustedWebActivityIntentBuilder(url), null, null); } /** * Similar to {@link #launch(Uri)}, but allows more customization. * * @param twaBuilder {@link TrustedWebActivityIntentBuilder} containing the url to open, along with * optional parameters: status bar color, additional trusted origins, etc. * @param splashScreenStrategy {@link SplashScreenStrategy} to use for showing splash screens, * null if splash screen not needed. * @param completionCallback Callback triggered when the url has been opened. * @param fallbackStrategy Called when there is no TWA provider available or when launching * the Trusted Web Activity fails. */ public void launch(TrustedWebActivityIntentBuilder twaBuilder, @Nullable SplashScreenStrategy splashScreenStrategy, @Nullable Runnable completionCallback, FallbackStrategy fallbackStrategy) { if (mDestroyed) { throw new IllegalStateException("TwaLauncher already destroyed"); } if (mLaunchMode == TwaProviderPicker.LaunchMode.TRUSTED_WEB_ACTIVITY) { launchTwa(twaBuilder, splashScreenStrategy, completionCallback, fallbackStrategy); } else { fallbackStrategy.launch(mContext, twaBuilder, mProviderPackage, completionCallback); } } /** * Similar to {@link #launch(Uri)}, but allows more customization. Uses a Custom Tabs fallback * when a TWA provider is not available or when launching a TWA fails. * * @param twaBuilder {@link TrustedWebActivityIntentBuilder} containing the url to open, along with * optional parameters: status bar color, additional trusted origins, etc. * @param splashScreenStrategy {@link SplashScreenStrategy} to use for showing splash screens, * null if splash screen not needed. * @param completionCallback Callback triggered when the url has been opened. */ public void launch(TrustedWebActivityIntentBuilder twaBuilder, @Nullable SplashScreenStrategy splashScreenStrategy, @Nullable Runnable completionCallback) { launch(twaBuilder, splashScreenStrategy, completionCallback, CCT_FALLBACK_STRATEGY); } private void launchTwa(TrustedWebActivityIntentBuilder twaBuilder, @Nullable SplashScreenStrategy splashScreenStrategy, @Nullable Runnable completionCallback, FallbackStrategy fallbackStrategy) { if (splashScreenStrategy != null) { splashScreenStrategy.onTwaLaunchInitiated(mProviderPackage, twaBuilder); } Runnable onSessionCreatedRunnable = () -> launchWhenSessionEstablished(twaBuilder, splashScreenStrategy, completionCallback); if (mSession != null) { onSessionCreatedRunnable.run(); return; } Runnable onSessionCreationFailedRunnable = () -> { // The provider has been unable to create a session for us, we can't launch a // Trusted Web Activity. We launch a fallback specially designed to provide the // best user experience. fallbackStrategy.launch(mContext, twaBuilder, mProviderPackage, completionCallback); }; if (mServiceConnection == null) { mServiceConnection = new TwaCustomTabsServiceConnection(); } mServiceConnection.setSessionCreationRunnables( onSessionCreatedRunnable, onSessionCreationFailedRunnable); CustomTabsClient.bindCustomTabsService(mContext, mProviderPackage, mServiceConnection); } private void launchWhenSessionEstablished(TrustedWebActivityIntentBuilder twaBuilder, @Nullable SplashScreenStrategy splashScreenStrategy, @Nullable Runnable completionCallback) { if (mSession == null) { throw new IllegalStateException("mSession is null in launchWhenSessionEstablished"); } if (splashScreenStrategy != null) { splashScreenStrategy.configureTwaBuilder(twaBuilder, mSession, () -> launchWhenSplashScreenReady(twaBuilder, completionCallback)); } else { launchWhenSplashScreenReady(twaBuilder, completionCallback); } } private void launchWhenSplashScreenReady(TrustedWebActivityIntentBuilder builder, @Nullable Runnable completionCallback) { if (mDestroyed) { return; // Destroyed while preparing the splash screen (e.g. user closed the app). } Log.d(TAG, "Launching Trusted Web Activity."); Intent intent = builder.build(mSession).getIntent(); FocusActivity.addToIntent(intent, mContext); ContextCompat.startActivity(mContext, intent, null); // Remember who we connect to as the package that is allowed to delegate notifications // to us. mTokenStore.setVerifiedProvider(mProviderPackage, mContext.getPackageManager()); if (completionCallback != null) { completionCallback.run(); } } /** * Performs clean-up. */ public void destroy() { if (mDestroyed) { return; } if (mServiceConnection != null) { mContext.unbindService(mServiceConnection); } mDestroyed = true; } /** * Returns package name of the browser this TwaLauncher is launching. */ @Nullable public String getProviderPackage() { return mProviderPackage; } private class TwaCustomTabsServiceConnection extends CustomTabsServiceConnection { private Runnable mOnSessionCreatedRunnable; private Runnable mOnSessionCreationFailedRunnable; private void setSessionCreationRunnables(@Nullable Runnable onSuccess, @Nullable Runnable onFailure) { mOnSessionCreatedRunnable = onSuccess; mOnSessionCreationFailedRunnable = onFailure; } @Override public void onCustomTabsServiceConnected(ComponentName componentName, CustomTabsClient client) { if (!ChromeLegacyUtils .supportsLaunchWithoutWarmup(mContext.getPackageManager(), mProviderPackage)) { client.warmup(0); } mSession = client.newSession(null, mSessionId); if (mSession != null && mOnSessionCreatedRunnable != null) { mOnSessionCreatedRunnable.run(); } else if (mSession == null && mOnSessionCreationFailedRunnable != null) { mOnSessionCreationFailedRunnable.run(); } mOnSessionCreatedRunnable = null; mOnSessionCreationFailedRunnable = null; } @Override public void onServiceDisconnected(ComponentName componentName) { mSession = null; } } }
9241fa8b77761461f8acd387c2bd997090e038a0
9,947
java
Java
tests/core/src/main/java/com/gemstone/gemfire/internal/cache/tier/sockets/EventIDVerificationInP2PDUnitTest.java
xyxiaoyou/snappy-store
013ff282f888878cc99600e260ec1cde60112304
[ "Apache-2.0" ]
38
2016-01-04T01:31:40.000Z
2020-04-07T06:35:36.000Z
tests/core/src/main/java/com/gemstone/gemfire/internal/cache/tier/sockets/EventIDVerificationInP2PDUnitTest.java
xyxiaoyou/snappy-store
013ff282f888878cc99600e260ec1cde60112304
[ "Apache-2.0" ]
261
2016-01-07T09:14:26.000Z
2019-12-05T10:15:56.000Z
tests/core/src/main/java/com/gemstone/gemfire/internal/cache/tier/sockets/EventIDVerificationInP2PDUnitTest.java
xyxiaoyou/snappy-store
013ff282f888878cc99600e260ec1cde60112304
[ "Apache-2.0" ]
22
2016-03-09T05:47:09.000Z
2020-04-02T17:55:30.000Z
29.604167
87
0.67176
1,002,089
/* * Copyright (c) 2010-2015 Pivotal Software, Inc. All rights reserved. * * 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. See accompanying * LICENSE file. */ package com.gemstone.gemfire.internal.cache.tier.sockets; import java.util.Properties; import com.gemstone.gemfire.cache.AttributesFactory; import com.gemstone.gemfire.cache.Cache; import com.gemstone.gemfire.cache.CacheFactory; import com.gemstone.gemfire.cache.DataPolicy; import com.gemstone.gemfire.cache.EntryEvent; import com.gemstone.gemfire.cache.Region; import com.gemstone.gemfire.cache.RegionAttributes; import com.gemstone.gemfire.cache.RegionEvent; import com.gemstone.gemfire.cache.Scope; import com.gemstone.gemfire.cache.util.CacheListenerAdapter; import com.gemstone.gemfire.distributed.DistributedSystem; import com.gemstone.gemfire.internal.cache.EventID; import com.gemstone.gemfire.internal.cache.InternalCacheEvent; import dunit.DistributedTestCase; import dunit.Host; import dunit.VM; /** * Test to verify EventID generated from a peer is correctly passed on to the * other peer for create, update and destroy operations. In case of D-ACK or * GLOBAL scope the EventIDs should be same in P2P for a propagation of given * operation. In case of NO-ACK EventIDs should be different.Currently this test * is commented because of a bug. * * @author Suyog Bhokare * */ public class EventIDVerificationInP2PDUnitTest extends DistributedTestCase { private static Cache cache = null; static VM vm0 = null; private static final String REGION_NAME = "EventIDVerificationInP2PDUnitTest_region"; protected static EventID eventId; static boolean receiver = true; static boolean gotCallback = false; static int DISTRIBUTED_ACK = 1; static int GLOBAL = 2; /* Constructor */ public EventIDVerificationInP2PDUnitTest(String name) { super(name); } public void setUp() throws Exception { super.setUp(); final Host host = Host.getHost(0); vm0 = host.getVM(0); receiver = false; } public void testEventIDsDACK() throws Exception { createServerCache(new Integer(DISTRIBUTED_ACK)); vm0.invoke(EventIDVerificationInP2PDUnitTest.class, "createServerCache", new Object[] { new Integer(DISTRIBUTED_ACK) }); verifyOperations(); } public void testEventIDsGLOBAL() throws Exception { createServerCache(new Integer(GLOBAL)); vm0.invoke(EventIDVerificationInP2PDUnitTest.class, "createServerCache", new Object[] { new Integer(GLOBAL) }); verifyOperations(); } public void _testEventIDsNOACK() throws Exception { createServerCache(new Integer(0)); vm0.invoke(EventIDVerificationInP2PDUnitTest.class, "createServerCache", new Object[] { new Integer(0) }); createEntry(); Boolean pass = (Boolean)vm0.invoke(EventIDVerificationInP2PDUnitTest.class, "verifyResult", new Object[]{eventId} ); assertFalse(pass.booleanValue()); put(); pass = (Boolean)vm0.invoke(EventIDVerificationInP2PDUnitTest.class, "verifyResult", new Object[]{eventId} ); assertFalse(pass.booleanValue()); destroy(); pass = (Boolean)vm0.invoke(EventIDVerificationInP2PDUnitTest.class, "verifyResult", new Object[]{eventId} ); assertFalse(pass.booleanValue()); destroyRegion(); pass = (Boolean)vm0.invoke(EventIDVerificationInP2PDUnitTest.class, "verifyResult", new Object[]{eventId} ); assertFalse(pass.booleanValue()); } private void createCache(Properties props) throws Exception { DistributedSystem ds = getSystem(props); ds.disconnect(); ds = getSystem(props); assertNotNull(ds); cache = CacheFactory.create(ds); assertNotNull(cache); } public static void createServerCache(Integer type) throws Exception { new EventIDVerificationInP2PDUnitTest("temp").createCache(new Properties()); AttributesFactory factory = new AttributesFactory(); if (type.intValue() == DISTRIBUTED_ACK) factory.setScope(Scope.DISTRIBUTED_ACK); if (type.intValue() == GLOBAL) factory.setScope(Scope.GLOBAL); else factory.setScope(Scope.DISTRIBUTED_NO_ACK); factory.setDataPolicy(DataPolicy.REPLICATE); factory.addCacheListener(new CacheListenerAdapter() { public void afterCreate(EntryEvent event) { eventId = ((InternalCacheEvent)event).getEventId(); if (receiver) { synchronized (EventIDVerificationInP2PDUnitTest.class) { gotCallback = true; EventIDVerificationInP2PDUnitTest.class.notify(); } } } public void afterUpdate(EntryEvent event) { eventId = ((InternalCacheEvent)event).getEventId(); if (receiver) { synchronized (EventIDVerificationInP2PDUnitTest.class) { gotCallback = true; EventIDVerificationInP2PDUnitTest.class.notify(); } } } public void afterDestroy(EntryEvent event) { eventId = ((InternalCacheEvent)event).getEventId(); if (receiver) { synchronized (EventIDVerificationInP2PDUnitTest.class) { gotCallback = true; EventIDVerificationInP2PDUnitTest.class.notify(); } } } public void afterRegionDestroy(RegionEvent event) { eventId = ((InternalCacheEvent)event).getEventId(); if (receiver) { synchronized (EventIDVerificationInP2PDUnitTest.class) { gotCallback = true; EventIDVerificationInP2PDUnitTest.class.notify(); } } } public void afterRegionInvalidate(RegionEvent event) { eventId = ((InternalCacheEvent)event).getEventId(); if (receiver) { synchronized (EventIDVerificationInP2PDUnitTest.class) { gotCallback = true; EventIDVerificationInP2PDUnitTest.class.notify(); } } } }); RegionAttributes attrs = factory.create(); cache.createRegion(REGION_NAME, attrs); } public static void createEntry() { try { Region r = cache.getRegion("/" + REGION_NAME); assertNotNull(r); if (!r.containsKey("key-1")) { r.create("key-1", "key-1"); } // Verify that no invalidates occurred to this region assertEquals(r.getEntry("key-1").getValue(), "key-1"); } catch (Exception ex) { fail("failed while createEntries()", ex); } } public static void put() { try { Region r = cache.getRegion("/" + REGION_NAME); assertNotNull(r); r.put("key-1", "vm0-key-1"); // Verify that no invalidates occurred to this region assertEquals(r.getEntry("key-1").getValue(), "vm0-key-1"); } catch (Exception ex) { fail("failed while r.put()", ex); } } public static void destroy() { try { Region r = cache.getRegion("/" + REGION_NAME); assertNotNull(r); r.destroy("key-1"); } catch (Exception ex) { fail("test failed due to exception in destroy ", ex); } } public static void destroyRegion() { try { Region r = cache.getRegion("/" + REGION_NAME); assertNotNull(r); r.destroyRegion(); } catch (Exception ex) { fail("test failed due to exception in destroyRegion ", ex); } } public static void invalidateRegion() { try { Region r = cache.getRegion("/" + REGION_NAME); assertNotNull(r); r.invalidateRegion(); } catch (Exception ex) { fail("test failed due to exception in invalidateRegion ", ex); } } public static Boolean verifyResult(EventID correctId) { synchronized (EventIDVerificationInP2PDUnitTest.class) { if (!gotCallback) { try { EventIDVerificationInP2PDUnitTest.class.wait(); } catch (InterruptedException e) { Thread.currentThread().interrupt(); gotCallback = false; e.printStackTrace(); return Boolean.FALSE; } } gotCallback = false; } boolean temp = correctId.equals(eventId); return new Boolean(temp); } public static void verifyOperations() { createEntry(); Boolean pass = (Boolean)vm0.invoke(EventIDVerificationInP2PDUnitTest.class, "verifyResult", new Object[]{eventId} ); assertTrue(pass.booleanValue()); put(); pass = (Boolean)vm0.invoke(EventIDVerificationInP2PDUnitTest.class, "verifyResult", new Object[]{eventId} ); assertTrue(pass.booleanValue()); invalidateRegion(); pass = (Boolean)vm0.invoke(EventIDVerificationInP2PDUnitTest.class, "verifyResult", new Object[]{eventId} ); assertTrue(pass.booleanValue()); destroy(); pass = (Boolean)vm0.invoke(EventIDVerificationInP2PDUnitTest.class, "verifyResult", new Object[]{eventId} ); assertTrue(pass.booleanValue()); destroyRegion(); pass = (Boolean)vm0.invoke(EventIDVerificationInP2PDUnitTest.class, "verifyResult", new Object[]{eventId} ); assertTrue(pass.booleanValue()); } public void tearDown2() throws Exception { super.tearDown2(); closeCache(); vm0.invoke(EventIDVerificationInP2PDUnitTest.class, "closeCache"); } public static void closeCache() { if (cache != null && !cache.isClosed()) { cache.close(); cache.getDistributedSystem().disconnect(); } } }
9241fb183caa6d09383f00c9697d01f326811990
1,248
java
Java
src/main/java/com/github/cherimojava/orchidae/filems/FileIndexer.java
cherimojava/orchidae-filems
244567e8818906c0594169f8691d5f68a1b5dfab
[ "Apache-2.0" ]
null
null
null
src/main/java/com/github/cherimojava/orchidae/filems/FileIndexer.java
cherimojava/orchidae-filems
244567e8818906c0594169f8691d5f68a1b5dfab
[ "Apache-2.0" ]
null
null
null
src/main/java/com/github/cherimojava/orchidae/filems/FileIndexer.java
cherimojava/orchidae-filems
244567e8818906c0594169f8691d5f68a1b5dfab
[ "Apache-2.0" ]
null
null
null
30.439024
104
0.729968
1,002,090
package com.github.cherimojava.orchidae.filems; import java.util.Collections; import java.util.Optional; import java.util.Set; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.event.EventListener; import org.springframework.stereotype.Service; import com.github.cherimojava.orchidae.filems.event.FileFoundEvent; import com.github.cherimojava.orchidae.filems.persistence.FileHandle; import com.github.cherimojava.orchidae.filems.persistence.FileHandleRepository; /** * Service checking if the given file is already known to the service */ @Service public class FileIndexer { @Autowired FileHandleRepository repository; @Autowired Optional<Set<FileHandleEnricher>> enricher; @EventListener public void checkFile( FileFoundEvent e ) { Optional<FileHandle> oneByPath = repository.findOneByPath( e.getPath() ); if ( !oneByPath.isPresent() ) { FileHandle.FileHandleBuilder builder = FileHandle.builder(); enricher.orElse( Collections.emptySet() ) .forEach( fileHandleEnricher -> fileHandleEnricher.accept( builder, e.getPath() ) ); repository.insert( builder.build() ); } } }
9241fbb70a4aedf61b598de4e664b2d6e0eb0ac7
4,510
java
Java
src/main/java/swarm_wars_library/network/NetworkClientFunctions.java
antaires/battlestar
9fe6cfe2afc70db449602695a03a98b20691d96f
[ "MIT" ]
4
2019-02-11T16:48:48.000Z
2019-02-12T12:21:31.000Z
src/main/java/swarm_wars_library/network/NetworkClientFunctions.java
antaires/battlestar
9fe6cfe2afc70db449602695a03a98b20691d96f
[ "MIT" ]
11
2019-02-11T17:26:55.000Z
2019-05-22T12:43:33.000Z
src/main/java/swarm_wars_library/network/NetworkClientFunctions.java
antaires/battlestar
9fe6cfe2afc70db449602695a03a98b20691d96f
[ "MIT" ]
4
2019-02-11T16:52:45.000Z
2019-11-22T21:04:41.000Z
30.472973
114
0.554989
1,002,091
package swarm_wars_library.network; import swarm_wars_library.entities.PlayerN; import swarm_wars_library.input.Input; import java.util.HashMap; import java.util.Map; import java.util.Scanner; public class NetworkClientFunctions { private static int interval = 1000/60; private static int sleepInterval = 0; private static TerminalLogger tlogger = TerminalLogger.getInstance(); public static void startNewtork() { new Thread(new Runnable() { public void run() { try { GameClient.run(); }catch (Exception e){ e.printStackTrace(); } } }).start(); try { GameClient.countDownLatch.await(); Thread.sleep(sleepInterval); } catch (Exception e) { System.out.println("FAILED"); e.printStackTrace(); } } public static int getPlayerIdFromUser() { System.out.println("Enter your id"); Scanner scanner = new Scanner(System.in); return scanner.nextInt(); } public static void cleanBuffer() { MessageHandlerMulti.refreshClientReceiveBuffer(); } public static void sendConnect(int id) { Map<String, Object> m = new HashMap<String, Object>(); m.put(Headers.TYPE, Constants.CONNECT); m.put(Headers.PLAYER, id); MessageHandlerMulti.putPackage(m); System.out.println("Sent CONNECT"); try{Thread.sleep(interval);} catch (Exception e) { System.out.println("FAILED"); e.printStackTrace(); } } public static void sendSetup(int id) { Map<String, Object> m = new HashMap<String, Object>(); m.put(Headers.TYPE, Constants.SETUP); m.put(Headers.PLAYER, id); MessageHandlerMulti.putPackage(m); System.out.println("Sent SETUP"); try{Thread.sleep(interval);} catch (Exception e) { System.out.println("FAILED"); e.printStackTrace(); } } public static void sendStart(int id) { if(id == 1){ System.out.println("Try to send START"); while (!MessageHandlerMulti.gameStarted) { Map<String, Object> m = new HashMap(); m.put(Headers.TYPE, Constants.START); MessageHandlerMulti.putPackage(m); try{Thread.sleep(3000);} catch (Exception e) { System.out.println("FAILED"); e.printStackTrace(); } } System.out.println("Sent START"); } } public static void awaitStart() { System.out.println("Game not started yet"); while (!MessageHandlerMulti.gameStarted) { try{Thread.sleep(interval);} catch (Exception e) { System.out.println("FAILED"); e.printStackTrace(); } } System.out.println("Game started"); } public static void sendOperation(int id, int frame, Map<String, Object> m) { MessageHandlerMulti.putPackage(m); // System.out.println("Sent OPERATION - Player:" + id + " Frame:" + frame); } public static Map getPackage(int id, int frame) { Map<String, Object> rev = null; int getId = id; while (rev == null) { rev = MessageHandlerMulti.getPackage(getId, frame); if(swarm_wars_library.map.Map.getInstance().gameEnded()){ System.out.println("Game over but waiting..."); return null; } try{Thread.sleep(interval);} catch (Exception e) { e.printStackTrace(); } } // System.out.println("Get OPERATION - Player " + id + " try to get player:" + getId + " frame:" + frame); return rev; } public void checkGameEnd(int id) { } public static void sendEnd(int id, int winnerId) { Map m = new HashMap<String, Object>(); m.put(Headers.TYPE, Constants.END); m.put(Headers.PLAYER, id); m.put(Headers.WINNERID, winnerId); MessageHandlerMulti.putPackage(m); System.out.println("Player " + id + " Game ends"); } public static void threadSleep(){ try{Thread.sleep(interval);} catch (Exception e) { System.out.println("FAILED"); e.printStackTrace(); } } }
9241fcbc512d16fdc6434e27d586e3b1fe026e8e
2,496
java
Java
components/camel-docker/src/main/java/org/apache/camel/component/docker/DockerComponent.java
InfoSec812/camel
b387c6c5548ec90b61e2d49be33b06aeae58fccc
[ "Apache-2.0" ]
1
2019-03-22T09:22:57.000Z
2019-03-22T09:22:57.000Z
components/camel-docker/src/main/java/org/apache/camel/component/docker/DockerComponent.java
InfoSec812/camel
b387c6c5548ec90b61e2d49be33b06aeae58fccc
[ "Apache-2.0" ]
null
null
null
components/camel-docker/src/main/java/org/apache/camel/component/docker/DockerComponent.java
InfoSec812/camel
b387c6c5548ec90b61e2d49be33b06aeae58fccc
[ "Apache-2.0" ]
null
null
null
34.191781
118
0.689103
1,002,092
/** * 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.camel.component.docker; import java.util.Map; import org.apache.camel.Endpoint; import org.apache.camel.component.docker.exception.DockerException; import org.apache.camel.impl.DefaultComponent; /** * Represents the component that manages {@link DockerEndpoint}. */ public class DockerComponent extends DefaultComponent { private DockerConfiguration configuration; public DockerComponent() { } public DockerComponent(DockerConfiguration configuration) { this.configuration = configuration; } protected Endpoint createEndpoint(String uri, String remaining, Map<String, Object> parameters) throws Exception { DockerConfiguration configuration = getConfiguration(); String normalizedRemaining = remaining.replaceAll("/", ""); DockerOperation operation = DockerOperation.getDockerOperation(normalizedRemaining); if (operation == null) { throw new DockerException(remaining + " is not a valid operation"); } configuration.setOperation(operation); // Validate URI Parameters DockerHelper.validateParameters(operation, parameters); Endpoint endpoint = new DockerEndpoint(uri, this, configuration); setProperties(configuration, parameters); configuration.setParameters(parameters); return endpoint; } protected DockerConfiguration getConfiguration() { if (configuration == null) { configuration = new DockerConfiguration(); } return configuration; } }
9241fdb8fa316361474ba95e5438020dd633dffd
698
java
Java
BAS/src/main/java/com/hibo/cms/sys/utils/anno/LoginInfoAnno.java
zzxxmm147258/Base
60ce213ac49b764699146b1c3c56df87700c23ba
[ "Apache-2.0" ]
null
null
null
BAS/src/main/java/com/hibo/cms/sys/utils/anno/LoginInfoAnno.java
zzxxmm147258/Base
60ce213ac49b764699146b1c3c56df87700c23ba
[ "Apache-2.0" ]
null
null
null
BAS/src/main/java/com/hibo/cms/sys/utils/anno/LoginInfoAnno.java
zzxxmm147258/Base
60ce213ac49b764699146b1c3c56df87700c23ba
[ "Apache-2.0" ]
null
null
null
23.266667
58
0.697708
1,002,093
package com.hibo.cms.sys.utils.anno; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** <p>标题:用户信息注解</p> * <p>功能:请求注解 </p> * <p>版权: Copyright © 2015 HIBO</p> * <p>公司: 北京瀚铂科技有限公司</p> * <p>创建日期:2015年7月22日 下午2:10:17</p> * <p>类全名:com.hibo.cms.sys.utils.anno.SysAnnoLoginInfo</p> * 作者:Victor * 初审: * 复审: */ @Target({ElementType.PARAMETER}) @Retention(RetentionPolicy.RUNTIME) @Documented public @interface LoginInfoAnno { /** * 当前用户在request中的名字 * * @return */ // String value() default Constants.CURRENT_USER; }
9241fdc8a06a978596adfcb4be111c03cc4bae2b
1,006
java
Java
app/src/main/java/com/sreevidya/opal/model/bot/BotStuff.java
VidyaSastry/Opal-Chat-AnalyticsDashboard
8ca7ad78f65accc483732df8a84044c8c3b325f2
[ "MIT" ]
3
2017-11-01T06:38:36.000Z
2019-02-03T22:03:43.000Z
app/src/main/java/com/sreevidya/opal/model/bot/BotStuff.java
VidyaSastry/Opal-Chat-AnalyticsDashboard
8ca7ad78f65accc483732df8a84044c8c3b325f2
[ "MIT" ]
1
2018-11-17T15:04:46.000Z
2018-11-17T15:04:46.000Z
app/src/main/java/com/sreevidya/opal/model/bot/BotStuff.java
VidyaSastry/Opal-Chat-AnalyticsDashboard
8ca7ad78f65accc483732df8a84044c8c3b325f2
[ "MIT" ]
null
null
null
22.863636
86
0.565606
1,002,094
package com.sreevidya.opal.model.bot; import android.os.AsyncTask; import com.michaelwflaherty.cleverbotapi.CleverBotQuery; import java.io.IOException; public class BotStuff { private static final String API_KEY = "CC51wq65n3d09W6vnaxiL9jFCIw"; public static void getResponse(String input, final BotCallback<String> callback) { final CleverBotQuery bot = new CleverBotQuery(API_KEY, input); AsyncTask.execute(new Runnable() { @Override public void run() { String response; try { bot.sendRequest(); response = bot.getResponse(); callback.onSuccess(response); } catch (IOException e) { response = e.getMessage(); callback.onFailure(response); } } }); } public interface BotCallback<C> { void onSuccess(C c); void onFailure(C e); } }
9241fee1a948f6797599bc7b0bb5793cc4d4e6c5
4,167
java
Java
AndroidAnnotations/androidannotations-core/androidannotations/src/main/java/org/androidannotations/internal/core/handler/UiThreadHandler.java
dodgex/androidannotations
d99e1c798af0bf57daea1f82167387a42bead817
[ "Apache-2.0" ]
3,850
2016-10-09T12:41:02.000Z
2022-03-28T02:16:19.000Z
AndroidAnnotations/androidannotations-core/androidannotations/src/main/java/org/androidannotations/internal/core/handler/UiThreadHandler.java
dodgex/androidannotations
d99e1c798af0bf57daea1f82167387a42bead817
[ "Apache-2.0" ]
455
2016-10-09T11:33:31.000Z
2022-03-31T10:25:24.000Z
AndroidAnnotations/androidannotations-core/androidannotations/src/main/java/org/androidannotations/internal/core/handler/UiThreadHandler.java
dodgex/androidannotations
d99e1c798af0bf57daea1f82167387a42bead817
[ "Apache-2.0" ]
722
2016-10-10T02:08:08.000Z
2022-03-28T09:51:27.000Z
38.583333
140
0.787857
1,002,095
/** * Copyright (C) 2010-2016 eBusiness Information, Excilys Group * * 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.androidannotations.internal.core.handler; import static com.helger.jcodemodel.JExpr._new; import static com.helger.jcodemodel.JExpr.lit; import javax.lang.model.element.Element; import javax.lang.model.element.ExecutableElement; import org.androidannotations.AndroidAnnotationsEnvironment; import org.androidannotations.ElementValidation; import org.androidannotations.annotations.UiThread; import org.androidannotations.api.UiThreadExecutor; import org.androidannotations.holder.EComponentHolder; import com.helger.jcodemodel.AbstractJClass; import com.helger.jcodemodel.IJExpression; import com.helger.jcodemodel.JBlock; import com.helger.jcodemodel.JClassAlreadyExistsException; import com.helger.jcodemodel.JConditional; import com.helger.jcodemodel.JDefinedClass; import com.helger.jcodemodel.JMethod; import com.helger.jcodemodel.JOp; public class UiThreadHandler extends AbstractRunnableHandler { private static final String METHOD_CUR_THREAD = "currentThread"; private static final String METHOD_MAIN_LOOPER = "getMainLooper"; private static final String METHOD_GET_THREAD = "getThread"; private static final String METHOD_RUN_TASK = "runTask"; public UiThreadHandler(AndroidAnnotationsEnvironment environment) { super(UiThread.class, environment); } @Override public void validate(Element element, ElementValidation valid) { super.validate(element, valid); coreValidatorHelper.usesEnqueueIfHasId(element, valid); UiThread annotation = element.getAnnotation(UiThread.class); long delay = annotation.delay(); UiThread.Propagation propagation = annotation.propagation(); if (delay != 0 && propagation == UiThread.Propagation.REUSE) { valid.addWarning("propagation=REUSE is ignored when using a delay"); } } @Override public void process(Element element, EComponentHolder holder) throws Exception { ExecutableElement executableElement = (ExecutableElement) element; JMethod delegatingMethod = codeModelHelper.overrideAnnotatedMethod(executableElement, holder); JBlock previousBody = codeModelHelper.removeBody(delegatingMethod); JDefinedClass anonymousRunnableClass = codeModelHelper.createDelegatingAnonymousRunnableClass(previousBody); UiThread annotation = element.getAnnotation(UiThread.class); long delay = annotation.delay(); UiThread.Propagation propagation = annotation.propagation(); if (delay == 0 && propagation == UiThread.Propagation.REUSE) { // Put in the check for the UI thread. addUIThreadCheck(delegatingMethod, previousBody, holder); } delegatingMethod.body().add(getJClass(UiThreadExecutor.class).staticInvoke(METHOD_RUN_TASK) // .arg(annotation.id()) // .arg(_new(anonymousRunnableClass)) // .arg(lit(delay))); } /** * Add the pre-check to see if we are already in the UI thread. * * @param delegatingMethod * @param holder * @throws JClassAlreadyExistsException */ private void addUIThreadCheck(JMethod delegatingMethod, JBlock previousBody, EComponentHolder holder) throws JClassAlreadyExistsException { // Get the Thread and Looper class. AbstractJClass tClass = getClasses().THREAD; AbstractJClass lClass = getClasses().LOOPER; // invoke the methods. IJExpression lhs = tClass.staticInvoke(METHOD_CUR_THREAD); IJExpression rhs = lClass.staticInvoke(METHOD_MAIN_LOOPER).invoke(METHOD_GET_THREAD); // create the conditional and the block. JConditional con = delegatingMethod.body()._if(JOp.eq(lhs, rhs)); JBlock thenBlock = con._then().add(previousBody); thenBlock._return(); } }
9241ffbbbab95279a55c892dc591c71b8aedeff6
3,380
java
Java
cscache/src/main/java/org/cachestudy/writeitbyself/jsr107/CsCaching107Provider.java
visionarywind/demo_cache
e20c30d4500a222bae1a1c0082ef50a435764143
[ "Apache-2.0" ]
35
2018-03-28T07:09:21.000Z
2022-01-09T01:55:33.000Z
cscache/src/main/java/org/cachestudy/writeitbyself/jsr107/CsCaching107Provider.java
visionarywind/demo_cache
e20c30d4500a222bae1a1c0082ef50a435764143
[ "Apache-2.0" ]
1
2021-12-14T21:08:07.000Z
2021-12-14T21:08:07.000Z
cscache/src/main/java/org/cachestudy/writeitbyself/jsr107/CsCaching107Provider.java
visionarywind/demo_cache
e20c30d4500a222bae1a1c0082ef50a435764143
[ "Apache-2.0" ]
41
2018-01-19T09:22:29.000Z
2022-01-09T01:55:36.000Z
26.20155
147
0.752071
1,002,096
package org.cachestudy.writeitbyself.jsr107; import java.net.URI; import java.net.URISyntaxException; import java.util.Map; import java.util.Properties; import java.util.WeakHashMap; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; import javax.cache.CacheManager; import javax.cache.configuration.OptionalFeature; import javax.cache.spi.CachingProvider; public class CsCaching107Provider implements CachingProvider { private static final String DEFAULT_URI_STRING = "urn:X-cscache:jsr107-default-config"; private static final URI URI_DEFAULT; private final Map<ClassLoader, ConcurrentMap<URI, CacheManager>> cacheManagers = new WeakHashMap<ClassLoader, ConcurrentMap<URI, CacheManager>>(); static { try { URI_DEFAULT = new URI(DEFAULT_URI_STRING); } catch (URISyntaxException e) { throw new javax.cache.CacheException(e); } } @Override public void close() { // TODO Auto-generated method stub } @Override public void close(ClassLoader arg0) { // TODO Auto-generated method stub } @Override public void close(URI arg0, ClassLoader arg1) { // TODO Auto-generated method stub } @Override public CacheManager getCacheManager() { return getCacheManager(getDefaultURI(), getDefaultClassLoader(), null); } @Override public CacheManager getCacheManager(URI uri, ClassLoader classLoader) { return getCacheManager(uri, classLoader, getDefaultProperties()); } @Override public CacheManager getCacheManager(URI uri, ClassLoader classLoader, Properties properties) { uri = uri == null ? getDefaultURI() : uri; classLoader = classLoader == null ? getDefaultClassLoader() : classLoader; properties = properties == null ? new Properties() : cloneProperties(properties); ConcurrentMap<URI, CacheManager> cacheManagersByURI = cacheManagers.get(classLoader); if (cacheManagersByURI == null) { cacheManagersByURI = new ConcurrentHashMap<URI, CacheManager>(); } CacheManager cacheManager = cacheManagersByURI.get(uri); if (cacheManager == null) { cacheManager = new CsCache107Manager(this, properties, classLoader, uri); cacheManagersByURI.put(uri, cacheManager); } if (!cacheManagers.containsKey(classLoader)) { cacheManagers.put(classLoader, cacheManagersByURI); } return cacheManager; } private static Properties cloneProperties(Properties properties) { Properties clone = new Properties(); for (Map.Entry<Object, Object> entry : properties.entrySet()) { clone.put(entry.getKey(), entry.getValue()); } return clone; } @Override public ClassLoader getDefaultClassLoader() { return getClass().getClassLoader(); } @Override public Properties getDefaultProperties() { return new Properties(); } @Override public URI getDefaultURI() { return URI_DEFAULT; } @Override public boolean isSupported(OptionalFeature arg0) { // TODO Auto-generated method stub return false; } public void releaseCacheManager(URI uri, ClassLoader classLoader) { if (uri == null || classLoader == null) { throw new NullPointerException("uri or classLoader should not be null"); } ConcurrentMap<URI, CacheManager> cacheManagersByURI = cacheManagers.get(classLoader); if (cacheManagersByURI != null) { cacheManagersByURI.remove(uri); if (cacheManagersByURI.size() == 0) { cacheManagers.remove(classLoader); } } } }
92420139d2bc3203c40407146c27dd9fa9c5beab
1,274
java
Java
nio/src/main/java/jlibs/nio/http/expr/Lookup.java
vvasianovych/jlibs
9eaf68928f10f1d73ebb7b71761a8ec90caad1ac
[ "Apache-2.0" ]
59
2015-06-01T22:02:06.000Z
2022-03-02T14:46:08.000Z
nio/src/main/java/jlibs/nio/http/expr/Lookup.java
vvasianovych/jlibs
9eaf68928f10f1d73ebb7b71761a8ec90caad1ac
[ "Apache-2.0" ]
48
2015-06-01T21:57:16.000Z
2022-02-28T07:14:58.000Z
nio/src/main/java/jlibs/nio/http/expr/Lookup.java
vvasianovych/jlibs
9eaf68928f10f1d73ebb7b71761a8ec90caad1ac
[ "Apache-2.0" ]
31
2015-06-12T06:40:54.000Z
2020-09-14T04:38:40.000Z
29.813953
74
0.691888
1,002,097
/* * JLibs: Common Utilities for Java * Copyright (C) 2009 Santhosh Kumar T <[email protected]> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. */ package jlibs.nio.http.expr; import java.util.Map; /** * @author Santhosh Kumar Tekuri */ public class Lookup implements Expression{ public final Expression child; public Lookup(Expression child){ this.child = child; } @Override public Object evaluate(Object root, Object current){ String name = TypeConversion.toString(child.evaluate(root, root)); if(current instanceof Map) return ((Map)current).get(name); else return name==null ? null : ((ValueMap)current).getValue(name); } @Override public String toString(){ return child.toString(); } }
9242017722f2c1e8ed1c86176d9def10c0b78dbe
1,204
java
Java
src/leetcode/second/Code_347_TopKFrequentElements.java
17hao/algorithm
0e96883a4638b33182bd590fffd12fd6ba0783c8
[ "Apache-2.0" ]
null
null
null
src/leetcode/second/Code_347_TopKFrequentElements.java
17hao/algorithm
0e96883a4638b33182bd590fffd12fd6ba0783c8
[ "Apache-2.0" ]
1
2019-03-25T15:17:54.000Z
2019-03-25T15:20:30.000Z
src/leetcode/second/Code_347_TopKFrequentElements.java
17hao/algorithm
0e96883a4638b33182bd590fffd12fd6ba0783c8
[ "Apache-2.0" ]
null
null
null
34.4
101
0.57392
1,002,098
package leetcode.second; import java.util.*; /** * 给定一个非空的整数数组,返回其中出现频率前 k 高的元素。 * * @since 2019-12-28 Saturday 11:35 */ public class Code_347_TopKFrequentElements { static List<Integer> topKFrequent(int[] nums, int k) { List<Integer> result = new ArrayList<>(); if (nums.length == 0) return result; Map<Integer, Integer> map = new HashMap<>(); for (int num : nums) { map.put(num, map.getOrDefault(num, 0) + 1); } // Comparator接口定义了优先队列中的优先级, 谁更大谁的优先级高. // 此例中前者是父节点, 后者是待插入的数. 待插入数只有比父节点更大才能向上升, compare(待插入数, 父节点数) < 0 否则在末尾. 结果是大顶堆 // 如果写成(n1, n2) -> map.get(n1) - map.get(n2), 结果是小顶堆. PriorityQueue<Integer> queue = new PriorityQueue<>(k, (n1, n2) -> map.get(n2) - map.get(n1)); queue.addAll(map.keySet()); for (int i = 0; i < k; i++) { result.add(queue.poll()); } return result; } public static void main(String[] args) { System.out.println(topKFrequent(new int[]{1, 1, 2, 2, 3}, 2)); System.out.println(topKFrequent(new int[]{1, 1, 2, 2, 3, 3, 3, 3}, 2)); System.out.println(topKFrequent(new int[]{1, 1, 2, 2, 3}, 1)); } }
924202381f50fa48319b10673290afdc02e8fe02
295
java
Java
src/main/java/ru/home/dao/GenreDAO.java
ZhekaPresnov/Simple-CRUD-Hibernate
55db9b11ecbcba3288e98b107abad7190a467d7b
[ "Apache-2.0" ]
null
null
null
src/main/java/ru/home/dao/GenreDAO.java
ZhekaPresnov/Simple-CRUD-Hibernate
55db9b11ecbcba3288e98b107abad7190a467d7b
[ "Apache-2.0" ]
null
null
null
src/main/java/ru/home/dao/GenreDAO.java
ZhekaPresnov/Simple-CRUD-Hibernate
55db9b11ecbcba3288e98b107abad7190a467d7b
[ "Apache-2.0" ]
null
null
null
19.666667
35
0.705085
1,002,099
package ru.home.dao; import ru.home.entities.Genre; import java.util.List; public interface GenreDAO { void add(Genre genre); List<Genre> getAllOrNull(); Genre getByIdOrNull(String id); void deleteById(String id); void delete(Genre genre); void update(Genre genre); }
9242023c22c2a036c873baa7941510ce48841e5d
532
java
Java
account/src/main/java/com/twitapp/account/AccountApplication.java
toshmanuel/twit-app
5264a2e0703cc0c64cc8315bd3e4fdf0492795b9
[ "MIT" ]
null
null
null
account/src/main/java/com/twitapp/account/AccountApplication.java
toshmanuel/twit-app
5264a2e0703cc0c64cc8315bd3e4fdf0492795b9
[ "MIT" ]
1
2022-02-18T08:28:20.000Z
2022-02-18T08:28:20.000Z
account/src/main/java/com/twitapp/account/AccountApplication.java
toshmanuel/twit-app
5264a2e0703cc0c64cc8315bd3e4fdf0492795b9
[ "MIT" ]
1
2022-02-18T08:20:14.000Z
2022-02-18T08:20:14.000Z
35.466667
68
0.825188
1,002,100
package com.twitapp.account; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cloud.netflix.eureka.EnableEurekaClient; import org.springframework.cloud.openfeign.EnableFeignClients; @SpringBootApplication @EnableEurekaClient @EnableFeignClients(basePackages = "com.twitapp.clients") public class AccountApplication { public static void main(String[] args) { SpringApplication.run(AccountApplication.class, args); } }
9242027f94a9a921d6733ac0729ed6a2d19b31e2
948
java
Java
backend/monolith/mono-security-service/src/main/java/dev/alexengrig/myim/mono/security/validation/requirement/username/UsernameRequirementException.java
alexengrig/myim
ea21e6336fc46752f4108c5c840ee9a02872e8e6
[ "Apache-2.0" ]
null
null
null
backend/monolith/mono-security-service/src/main/java/dev/alexengrig/myim/mono/security/validation/requirement/username/UsernameRequirementException.java
alexengrig/myim
ea21e6336fc46752f4108c5c840ee9a02872e8e6
[ "Apache-2.0" ]
16
2022-01-21T21:29:47.000Z
2022-03-29T21:27:22.000Z
backend/monolith/mono-security-service/src/main/java/dev/alexengrig/myim/mono/security/validation/requirement/username/UsernameRequirementException.java
alexengrig/myim
ea21e6336fc46752f4108c5c840ee9a02872e8e6
[ "Apache-2.0" ]
null
null
null
33.857143
95
0.767932
1,002,101
/* * Copyright 2022 Alexengrig Dev. * * 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 dev.alexengrig.myim.mono.security.validation.requirement.username; import dev.alexengrig.myim.mono.security.validation.requirement.ValidationRequirementException; public class UsernameRequirementException extends ValidationRequirementException { public UsernameRequirementException(String message) { super(message); } }
924202b5c6a4030c6a8f2cb7375061d90eb89cf4
5,079
java
Java
modules/core/shipping/provider/dhl/src/com/dhl/dctrequestdatatypes/DCTTo.java
geetools/geeCommerce-Java-Shop-Software
48823ccf012d7a1f11a5bf7b99619a67805984f4
[ "Apache-2.0" ]
9
2016-11-24T11:41:02.000Z
2020-04-22T02:43:51.000Z
modules/core/shipping/provider/dhl/src/com/dhl/dctrequestdatatypes/DCTTo.java
geetools/geeCommerce-Java-Shop-Software
48823ccf012d7a1f11a5bf7b99619a67805984f4
[ "Apache-2.0" ]
null
null
null
modules/core/shipping/provider/dhl/src/com/dhl/dctrequestdatatypes/DCTTo.java
geetools/geeCommerce-Java-Shop-Software
48823ccf012d7a1f11a5bf7b99619a67805984f4
[ "Apache-2.0" ]
2
2020-03-28T09:23:32.000Z
2020-10-02T13:58:57.000Z
26.453125
111
0.551093
1,002,102
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.5-2 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2013.11.20 at 05:10:42 PM MSK // package com.dhl.dctrequestdatatypes; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; /** * <p> * Java class for DCTTo complex type. * * <p> * The following schema fragment specifies the expected content contained within * this class. * * <pre> * &lt;complexType name="DCTTo"> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="CountryCode"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;length value="2"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="Postalcode" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;maxLength value="12"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="City" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;maxLength value="45"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="Suburb" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;maxLength value="45"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="VatNo" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;maxLength value="35"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "DCTTo", propOrder = { "countryCode", "postalcode", "city", "suburb", "vatNo" }) public class DCTTo { @XmlElement(name = "CountryCode", required = true) protected String countryCode; @XmlElement(name = "Postalcode") protected String postalcode; @XmlElement(name = "City") protected String city; @XmlElement(name = "Suburb") protected String suburb; @XmlElement(name = "VatNo") protected String vatNo; /** * Gets the value of the countryCode property. * * @return possible object is {@link String } * */ public String getCountryCode() { return countryCode; } /** * Sets the value of the countryCode property. * * @param value * allowed object is {@link String } * */ public void setCountryCode(String value) { this.countryCode = value; } /** * Gets the value of the postalcode property. * * @return possible object is {@link String } * */ public String getPostalcode() { return postalcode; } /** * Sets the value of the postalcode property. * * @param value * allowed object is {@link String } * */ public void setPostalcode(String value) { this.postalcode = value; } /** * Gets the value of the city property. * * @return possible object is {@link String } * */ public String getCity() { return city; } /** * Sets the value of the city property. * * @param value * allowed object is {@link String } * */ public void setCity(String value) { this.city = value; } /** * Gets the value of the suburb property. * * @return possible object is {@link String } * */ public String getSuburb() { return suburb; } /** * Sets the value of the suburb property. * * @param value * allowed object is {@link String } * */ public void setSuburb(String value) { this.suburb = value; } /** * Gets the value of the vatNo property. * * @return possible object is {@link String } * */ public String getVatNo() { return vatNo; } /** * Sets the value of the vatNo property. * * @param value * allowed object is {@link String } * */ public void setVatNo(String value) { this.vatNo = value; } }
924202bb80e878ad56b114ba5f38f15018465a24
1,237
java
Java
src/main/java/fr/litopia/repository/RepositoryFactory.java
mrsolarius/projetBDD
04533666a5e3027c9e5f6ac5a537aafeecc96d4f
[ "MIT" ]
1
2022-03-10T13:52:07.000Z
2022-03-10T13:52:07.000Z
src/main/java/fr/litopia/repository/RepositoryFactory.java
mrsolarius/projetBDD
04533666a5e3027c9e5f6ac5a537aafeecc96d4f
[ "MIT" ]
11
2022-03-07T16:40:55.000Z
2022-03-27T21:12:50.000Z
src/main/java/fr/litopia/repository/RepositoryFactory.java
mrsolarius/projetBDD
04533666a5e3027c9e5f6ac5a537aafeecc96d4f
[ "MIT" ]
1
2022-03-28T07:47:05.000Z
2022-03-28T07:47:05.000Z
31.717949
100
0.783347
1,002,103
package fr.litopia.repository; import fr.litopia.repository.api.*; import fr.litopia.repository.impl.*; import javax.persistence.EntityManager; public class RepositoryFactory { public AbonneRepository newAbonneRepository(EntityManager entityManager) { return new AbonneRepositoryImpl(entityManager); } public BornetteRepository newBornetteRepository(EntityManager entityManager) { return new BornetteRepositoryImpl(entityManager); } public LocationAbonneRepository newLocationAbonneRepository(EntityManager entityManager) { return new LocationAbonneRepositoryImpl(entityManager); } public LocationNonAbonneRepository newLocationNonAbonneRepository(EntityManager entityManager) { return new LocationNonAbonneRepositoryImpl(entityManager); } public ModeleRepository newModeleRepository(EntityManager entityManager) { return new ModeleRepositoryImpl(entityManager); } public StationRepository newStationRepository(EntityManager entityManager) { return new StationRepositoryImpl(entityManager); } public VeloRepository newVeloRepository(EntityManager entityManager) { return new VeloRepositoryImpl(entityManager); } }
9242041d265af625e16c74b3eddc6a4ea282e053
1,037
java
Java
client/java/src/com/tibco/tgdb/model/TGEdgeType.java
SteveNY-Tibco/tgdb-client
8a19864ada786433c410944722199fec7a076e59
[ "Apache-2.0" ]
null
null
null
client/java/src/com/tibco/tgdb/model/TGEdgeType.java
SteveNY-Tibco/tgdb-client
8a19864ada786433c410944722199fec7a076e59
[ "Apache-2.0" ]
null
null
null
client/java/src/com/tibco/tgdb/model/TGEdgeType.java
SteveNY-Tibco/tgdb-client
8a19864ada786433c410944722199fec7a076e59
[ "Apache-2.0" ]
null
null
null
33.451613
100
0.735776
1,002,104
package com.tibco.tgdb.model; /** * Copyright 2016 TIBCO Software Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); You may not use this file except * in compliance with the License. * A copy of the License is included in the distribution package with this file. * You also 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. * File name : TGEdgeType.java * Created by: suresh * SVN Id: $Id: TGEdgeType.java 1583 2017-08-10 04:16:44Z vchung $ */ public interface TGEdgeType extends TGEntityType { TGEdge.DirectionType getDirectionType(); TGNodeType getFromNodeType(); TGNodeType getToNodeType(); }
9242045bf2e1cd34886bfa536b807d0cc4d537bf
124
java
Java
raw_dataset/60539251@[email protected]
zthang/code2vec_treelstm
0c5f98d280b506317738ba603b719cac6036896f
[ "MIT" ]
1
2020-04-24T03:35:40.000Z
2020-04-24T03:35:40.000Z
raw_dataset/60539251@[email protected]
ruanyuan115/code2vec_treelstm
0c5f98d280b506317738ba603b719cac6036896f
[ "MIT" ]
2
2020-04-23T21:14:28.000Z
2021-01-21T01:07:18.000Z
raw_dataset/62173366@[email protected]
zthang/code2vec_treelstm
0c5f98d280b506317738ba603b719cac6036896f
[ "MIT" ]
null
null
null
15.5
39
0.483871
1,002,105
public void assertFalse(boolean flag) { if (!allowDebug) { return; } if (flag) { fail(); } }
9242068206bec5ec3018bb823f2e88de2e82b1fd
2,589
java
Java
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/tests/EncoderPositionTest.java
HazenRobotics/freight-frenzy
fb530ee5dc2dd8063cb44983c551aedbc9437238
[ "MIT" ]
7
2021-10-12T19:03:53.000Z
2022-03-18T14:55:17.000Z
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/tests/EncoderPositionTest.java
HazenRobotics/freight-frenzy
fb530ee5dc2dd8063cb44983c551aedbc9437238
[ "MIT" ]
2
2021-09-30T22:34:07.000Z
2022-01-19T04:23:41.000Z
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/tests/EncoderPositionTest.java
HazenRobotics/freight-frenzy
fb530ee5dc2dd8063cb44983c551aedbc9437238
[ "MIT" ]
6
2021-10-09T18:59:13.000Z
2022-03-14T22:31:46.000Z
33.623377
129
0.672847
1,002,106
package org.firstinspires.ftc.teamcode.tests; import com.qualcomm.robotcore.eventloop.opmode.Disabled; import com.qualcomm.robotcore.eventloop.opmode.OpMode; import com.qualcomm.robotcore.eventloop.opmode.TeleOp; import com.qualcomm.robotcore.hardware.DcMotor; import org.firstinspires.ftc.teamcode.utils.EncoderTracker; import java.text.DecimalFormat; //import org.firstinspires.ftc.teamcode.utils.Tracking; @TeleOp(name = "EncoderPositionTest", group = "test") @Disabled public class EncoderPositionTest extends OpMode { DcMotor[] encoder; int[] initialPosition; String[] names; DecimalFormat format; @Override public void init( ) { names = new String[]{ "frontLeft", "backLeft", "frontRight", "backRight", "lift", "intake", "perpendicular" }; encoder = new DcMotor[names.length]; initialPosition = new int[encoder.length]; for( int i = 0; i < names.length; i++ ) { encoder[i] = hardwareMap.dcMotor.get( names[i] ); encoder[i].setMode( DcMotor.RunMode.RUN_USING_ENCODER ); initialPosition[i] = encoder[i].getCurrentPosition( ); } format = new DecimalFormat( "#.####" ); telemetry.addLine( "Init Finished." ); telemetry.update( ); } @Override public void loop( ) { for( int i = 0; i < names.length; i++ ) { // 0, 1, 2, 3 are motors, 4, is lift, 5, & 6 are dead wheels int ticksPosition = encoder[i].getCurrentPosition( ) - initialPosition[i]; double inchesPosition = 0; if( i < 4 ) // 0, 1, 2, 3, are motors inchesPosition = EncoderTracker.convertTicksDist( ticksPosition, 50 / 25.4, 537.6, 1 ); else if( i > 4 ) // 5 & 6 are dead wheels inchesPosition = EncoderTracker.convertTicksDist( ticksPosition, 50 / 25.4, 480, 30 / 48.0 ) / 4.0; else // 4 is the lift inchesPosition = EncoderTracker.convertTicksDist( ticksPosition, 32 / 25.4 / 2, 537.6, 1 ); String extraSpace = inchesPosition < 0 ? "" : " "; telemetry.addLine( names[i] + " current position:" ); telemetry.addLine( " " + ticksPosition + " ticks" ); telemetry.addLine( " " + extraSpace + format.format( inchesPosition ) + " inches" ); } telemetry.update( ); } public String roundDouble( double input, int decimalPlaces ) { // -50.98765, 3 int negate = input < 0 ? -1 : 1; // negate = -1 input *= negate; // input = 50.98765 int inputShort = (int) input; // inputShort = 50 input -= inputShort; // input = 0.98765 String output = ("" + input); // output = "0.98765" // 50 + "." return (negate * inputShort) + output.substring( 1, output.length( ) - 2 >= decimalPlaces ? decimalPlaces : output.length( ) ); } }
9242069a78eaaf3dac4b43c03720fb818d55277a
854
java
Java
src/main/java/io/renren/modules/generator/dao/RelateTaskSupervisorDao.java
404forD/teaching-supervise
696a5e34a67778e29cc3514d75241594a9df53a2
[ "Apache-2.0" ]
null
null
null
src/main/java/io/renren/modules/generator/dao/RelateTaskSupervisorDao.java
404forD/teaching-supervise
696a5e34a67778e29cc3514d75241594a9df53a2
[ "Apache-2.0" ]
null
null
null
src/main/java/io/renren/modules/generator/dao/RelateTaskSupervisorDao.java
404forD/teaching-supervise
696a5e34a67778e29cc3514d75241594a9df53a2
[ "Apache-2.0" ]
null
null
null
32.961538
89
0.792299
1,002,107
package io.renren.modules.generator.dao; import io.renren.modules.generator.entity.EvaluateEntity; import io.renren.modules.generator.entity.RelateTaskSupervisorEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.util.List; /** * * * @author chenshun * @email [email protected] * @date 2021-05-25 13:10:39 */ @Mapper public interface RelateTaskSupervisorDao extends BaseMapper<RelateTaskSupervisorEntity> { List<Integer> selectRelateIds(); Integer selectTaskIdByRelateId(@Param("relateId") Integer relateId); Integer selectUserIdByRelateId(@Param("relateId") Integer relateId); Integer selectStatusByRelateId(@Param("relateId") Integer relateId); int updateStatusByRelateId(@Param("relateId")Integer relateId); }
924207b909c2225c8c8544adbc25b86408071f94
4,720
java
Java
core-java/core-java-collection/src/main/java/io/github/kavahub/learnjava/ListBenchmark.java
kavahub/learnjava
9fbf59d5e5d9712eb88c4856fce329ba3e21e978
[ "MIT" ]
null
null
null
core-java/core-java-collection/src/main/java/io/github/kavahub/learnjava/ListBenchmark.java
kavahub/learnjava
9fbf59d5e5d9712eb88c4856fce329ba3e21e978
[ "MIT" ]
1
2021-11-18T10:01:48.000Z
2021-11-29T11:12:38.000Z
core-java/core-java-collection/src/main/java/io/github/kavahub/learnjava/ListBenchmark.java
kavahub/learnjava
9fbf59d5e5d9712eb88c4856fce329ba3e21e978
[ "MIT" ]
null
null
null
35.757576
99
0.616737
1,002,108
package io.github.kavahub.learnjava; import java.util.ArrayList; import java.util.LinkedList; import java.util.Random; import java.util.concurrent.TimeUnit; import org.openjdk.jmh.annotations.Benchmark; import org.openjdk.jmh.annotations.BenchmarkMode; import org.openjdk.jmh.annotations.Fork; import org.openjdk.jmh.annotations.Level; import org.openjdk.jmh.annotations.Measurement; import org.openjdk.jmh.annotations.Mode; import org.openjdk.jmh.annotations.OutputTimeUnit; import org.openjdk.jmh.annotations.Scope; import org.openjdk.jmh.annotations.Setup; import org.openjdk.jmh.annotations.State; import org.openjdk.jmh.annotations.Warmup; import org.openjdk.jmh.runner.Runner; import org.openjdk.jmh.runner.options.Options; import org.openjdk.jmh.runner.options.OptionsBuilder; /** * 性能测试结果如下: * * <pre> * Benchmark Mode Cnt Score Error Units * ListBenchmark.benchmark01_arrayListAdd thrpt 10 37071.421 ± 472.159 ops/ms * ListBenchmark.benchmark01_linkedListAdd thrpt 10 32530.566 ± 872.869 ops/ms * ListBenchmark.benchmark02_arrayListContains thrpt 10 2542.931 ± 26.388 ops/ms * ListBenchmark.benchmark02_linkedListContains thrpt 10 1065.221 ± 33.670 ops/ms * ListBenchmark.benchmark03_arrayListRemove thrpt 10 46655.488 ± 194.944 ops/ms * ListBenchmark.benchmark03_linkedListRemove thrpt 10 48047.383 ± 274.248 ops/ms * ListBenchmark.benchmark04_arrayListAddAt thrpt 10 15.476 ± 5.985 ops/ms * ListBenchmark.benchmark04_linkedListAddAt thrpt 10 939.467 ± 234.178 ops/ms * </pre> * * @author PinWei Wan * @since 1.0.0 * */ @BenchmarkMode(Mode.Throughput) @OutputTimeUnit(TimeUnit.MILLISECONDS) @Measurement(iterations = 10, time = 1) @Warmup(iterations = 1) @Fork(1) public class ListBenchmark { @State(Scope.Thread) public static class MyState { ArrayList<Integer> arrayList = new ArrayList<>(); LinkedList<Integer> linkedList = new LinkedList<>(); final int iterations = 1000; Random random = new Random(); Integer randomIndex; @Setup(Level.Trial) public void setUp() { for (int i = 0; i < iterations; i++) { arrayList.add(i); linkedList.add(i); } } @Setup(Level.Invocation) public void additionalSetup() { randomIndex = Integer.valueOf(random.nextInt(iterations)); } } public static void main(String[] args) throws Exception { Options options = new OptionsBuilder().include(ListBenchmark.class.getSimpleName()) .shouldFailOnError(true).build(); new Runner(options).run(); } // add @Benchmark public void benchmark01_arrayListAdd(ListBenchmark.MyState state) { // 避免OOM异常 if (state.arrayList.size() >= state.iterations * 10) { state.arrayList.clear(); } state.arrayList.add(state.randomIndex); } @Benchmark public void benchmark01_linkedListAdd(ListBenchmark.MyState state) { if (state.linkedList.size() >= state.iterations * 10) { state.linkedList.clear(); } state.linkedList.add(state.randomIndex); } // contains @Benchmark public void benchmark02_arrayListContains(ListBenchmark.MyState state) { state.arrayList.contains(state.randomIndex); } @Benchmark public void benchmark02_linkedListContains(ListBenchmark.MyState state) { state.linkedList.contains(state.randomIndex); } // remove @Benchmark public void benchmark03_arrayListRemove(ListBenchmark.MyState state) { state.arrayList.remove(state.randomIndex); } @Benchmark public void benchmark03_linkedListRemove(ListBenchmark.MyState state) { state.linkedList.remove(state.randomIndex); } // addAt @Benchmark public void benchmark04_arrayListAddAt(ListBenchmark.MyState state) { state.arrayList.add(state.randomIndex, state.randomIndex); } @Benchmark public void benchmark04_linkedListAddAt(ListBenchmark.MyState state) { state.linkedList.add(state.randomIndex, state.randomIndex); } }
924207bb85ab56a11ba95b93706e71997cab28c3
2,228
java
Java
src/jp.ac.kyushu_u.csce.modeltool.dictionary/src/jp/ac/kyushu_u/csce/modeltool/dictionary/dict/handler/ChangeModeHandler.java
Ijon1969/JODTool
e3ceb80153bdd7caee3923e967263016b6a85ce9
[ "MIT" ]
1
2017-06-09T00:46:16.000Z
2017-06-09T00:46:16.000Z
src/jp.ac.kyushu_u.csce.modeltool.dictionary/src/jp/ac/kyushu_u/csce/modeltool/dictionary/dict/handler/ChangeModeHandler.java
Ijon1969/JODTool
e3ceb80153bdd7caee3923e967263016b6a85ce9
[ "MIT" ]
null
null
null
src/jp.ac.kyushu_u.csce.modeltool.dictionary/src/jp/ac/kyushu_u/csce/modeltool/dictionary/dict/handler/ChangeModeHandler.java
Ijon1969/JODTool
e3ceb80153bdd7caee3923e967263016b6a85ce9
[ "MIT" ]
null
null
null
30.944444
97
0.726212
1,002,109
package jp.ac.kyushu_u.csce.modeltool.dictionary.dict.handler; import jp.ac.kyushu_u.csce.modeltool.dictionary.ModelToolDictionaryPlugin; import jp.ac.kyushu_u.csce.modeltool.dictionary.constant.DictionaryPreferenceConstants; import org.eclipse.core.commands.AbstractHandler; import org.eclipse.core.commands.ExecutionEvent; import org.eclipse.core.commands.ExecutionException; import org.eclipse.jface.preference.IPreferenceStore; import org.eclipse.ui.handlers.HandlerUtil; /** * 検査モード/出力モード切替のハンドラハンドラクラス * * @author KBK yoshimura */ public class ChangeModeHandler extends AbstractHandler { /** * execute * @see org.eclipse.core.commands.IHandler#execute(ExecutionEvent) */ public Object execute(ExecutionEvent event) throws ExecutionException { // トグルボタンの状態を取得(ボタンが押される前の状態) boolean toggle = HandlerUtil.toggleCommandState(event.getCommand()); // プリファレンスの設定 IPreferenceStore store = ModelToolDictionaryPlugin.getDefault().getPreferenceStore(); int mode; if (toggle) { mode = DictionaryPreferenceConstants.PV_DIC_DISP_INSPECT; } else { mode = DictionaryPreferenceConstants.PV_DIC_DISP_OUTPUT; } store.setValue(DictionaryPreferenceConstants.PK_DICTIONARY_DISPLAY_MODE, mode); // PropertyChangeListener(TableTab)で処理を行うため、以下の処理を削除 // IWorkbenchPage page = HandlerUtil.getActiveWorkbenchWindow(event).getActivePage(); // // // 辞書ビューの取得(開いていない場合処理なし) // DictionaryView view = (DictionaryView)page.findView(DictionaryConstants.PART_ID_DICTIONARY); // if (view == null) { // return null; // } // // // アクティブなタブの取得(アクティブなタブがない場合は処理なし) // TableTab tab = view.getActiveTableTab(false); // if (tab == null) { // return null; // } // // // 選択されたテーブルの行を取得(未選択の場合処理なし) // IStructuredSelection selection = (IStructuredSelection)tab.getTableViewer().getSelection(); // Entry entry = null; // if (selection.isEmpty() == false) { // entry = (Entry)selection.getFirstElement(); // } // // // 辞書のソート // Dictionary dictionary = tab.getDictionary(); // dictionary.sort(mode | Dictionary.ASC); // // // モード切替前に選択されていた項目にフォーカス // if (entry != null) { // tab.setSelection(entry); // } return null; } }
924207f81030c8753d914899a09bac74775c9ba6
1,914
java
Java
src/main/java/org/ospic/platform/security/jwt/JwtAuthenticationEntryPointJwt.java
getsuryap/platform
b2b6f3816c121c161b60479b3552d14a688f63de
[ "Apache-2.0" ]
null
null
null
src/main/java/org/ospic/platform/security/jwt/JwtAuthenticationEntryPointJwt.java
getsuryap/platform
b2b6f3816c121c161b60479b3552d14a688f63de
[ "Apache-2.0" ]
null
null
null
src/main/java/org/ospic/platform/security/jwt/JwtAuthenticationEntryPointJwt.java
getsuryap/platform
b2b6f3816c121c161b60479b3552d14a688f63de
[ "Apache-2.0" ]
null
null
null
39.875
160
0.736155
1,002,110
package org.ospic.platform.security.jwt; import java.io.IOException; import java.util.Collections; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.fasterxml.jackson.databind.ObjectMapper; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.http.MediaType; import org.springframework.security.core.AuthenticationException; import org.springframework.security.web.AuthenticationEntryPoint; import org.springframework.stereotype.Component; @Component public class JwtAuthenticationEntryPointJwt implements AuthenticationEntryPoint { private static final Logger logger = LoggerFactory.getLogger(JwtAuthenticationEntryPointJwt.class); @Override public void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException authException) throws IOException, ServletException { response.setStatus(HttpServletResponse.SC_UNAUTHORIZED); response.setContentType(MediaType.APPLICATION_JSON_VALUE); String message; final Exception exception = (Exception) request.getAttribute("exceptions"); // If yes then use it to create the response message else use the authException if (exception != null) { byte[] body = new ObjectMapper().writeValueAsBytes(Collections.singletonMap("cause", exception.toString())); response.getOutputStream().write(body); } else { if (authException.getCause() != null) { message = authException.getCause().toString() + " " + authException.getMessage(); } else { message = authException.getMessage(); } byte[] body = new ObjectMapper().writeValueAsBytes(Collections.singletonMap("error", message)); response.getOutputStream().write(body); } } }
92420874bc3f4f2164bd77e34c718467f8a365dd
1,100
java
Java
tddl-executor/src/main/java/com/taobao/tddl/executor/function/scalar/datatime/TimeFormat.java
loye168/tddl5
fd1972bd3acf090c8d7580ab0f7c2bb837ab3c41
[ "Apache-2.0" ]
19
2017-07-17T02:21:28.000Z
2021-07-19T02:23:06.000Z
tddl-executor/src/main/java/com/taobao/tddl/executor/function/scalar/datatime/TimeFormat.java
loye168/tddl5
fd1972bd3acf090c8d7580ab0f7c2bb837ab3c41
[ "Apache-2.0" ]
null
null
null
tddl-executor/src/main/java/com/taobao/tddl/executor/function/scalar/datatime/TimeFormat.java
loye168/tddl5
fd1972bd3acf090c8d7580ab0f7c2bb837ab3c41
[ "Apache-2.0" ]
46
2017-03-23T12:24:11.000Z
2021-12-20T09:59:52.000Z
30.555556
104
0.667273
1,002,111
package com.taobao.tddl.executor.function.scalar.datatime; import java.text.SimpleDateFormat; import com.taobao.tddl.executor.common.ExecutionContext; import com.taobao.tddl.executor.function.ScalarFunction; import com.taobao.tddl.executor.utils.ExecUtils; import com.taobao.tddl.optimizer.core.datatype.DataType; public class TimeFormat extends ScalarFunction { @Override public Object compute(Object[] args, ExecutionContext ec) { for (Object arg : args) { if (ExecUtils.isNull(arg)) { return null; } } java.sql.Time time = DataType.TimeType.convertFrom(args[0]); String format = DataType.StringType.convertFrom(args[1]); SimpleDateFormat dateFormat = new SimpleDateFormat(DateFormat.convertToJavaDataFormat(format)); return dateFormat.format(time); } @Override public DataType getReturnType() { return DataType.StringType; } @Override public String[] getFunctionNames() { return new String[] { "TIME_FORMAT" }; } }
92420ae2fcaf2a2183147ab3fc855b6af89134d8
1,635
java
Java
rfx-data-util/src/test/java/sample/pollapp/model/Poll.java
rfxlab/rfx
ed419c407c289159a5e11b0c2b5b66ee3fe236b2
[ "Apache-2.0" ]
5
2017-03-27T15:31:28.000Z
2021-12-11T01:45:41.000Z
rfx-data-util/src/test/java/sample/pollapp/model/Poll.java
rfxlab/rfx
ed419c407c289159a5e11b0c2b5b66ee3fe236b2
[ "Apache-2.0" ]
null
null
null
rfx-data-util/src/test/java/sample/pollapp/model/Poll.java
rfxlab/rfx
ed419c407c289159a5e11b0c2b5b66ee3fe236b2
[ "Apache-2.0" ]
11
2016-05-25T04:42:07.000Z
2021-11-03T09:02:42.000Z
18.370787
54
0.689908
1,002,112
package sample.pollapp.model; import java.util.ArrayList; import java.util.Date; import java.util.List; import com.google.gson.Gson; import com.google.gson.annotations.Expose; public class Poll implements Comparable<Poll> { @Expose int id; @Expose String question; @Expose Date publishedDate; @Expose List<Choice> choices = new ArrayList<Choice>(); @Expose int totalVotes; public int getId() { return id; } public void setId(int id) { this.id = id; } public String getQuestion() { return question; } public void setQuestion(String question) { this.question = question; } public Date getPublishedDate() { return publishedDate; } public void setPublishedDate(Date publishedDate) { this.publishedDate = publishedDate; } public List<Choice> getChoices() { return choices; } public void setChoices(List<Choice> choices) { if(choices != null){ this.choices = choices; for (Choice choice : choices) { this.totalVotes += choice.getVotes(); } } } public void addChoice(Choice choice){ this.choices.add(choice); this.totalVotes += choice.getVotes(); } @Override public String toString() { return new Gson().toJson(this); } @Override public int hashCode() { return id; } @Override public boolean equals(Object obj) { // TODO Auto-generated method stub return this.hashCode() == obj.hashCode(); } public int getTotalVotes() { return totalVotes; } @Override public int compareTo(Poll o) { if(this.getTotalVotes() < o.getTotalVotes()){ return -1; } else if(this.getTotalVotes() > o.getTotalVotes()){ return 1; } return 0; } }
92420ae615e9d28a3a010bcd194312cb23913e38
165
java
Java
src/main/java/com/infosys/api/shipment/queries/GetShipmentQuery.java
prashantonline/shipmentservice-1
27950182b8509bc98cef2e2291c23271a8873981
[ "Apache-2.0" ]
null
null
null
src/main/java/com/infosys/api/shipment/queries/GetShipmentQuery.java
prashantonline/shipmentservice-1
27950182b8509bc98cef2e2291c23271a8873981
[ "Apache-2.0" ]
null
null
null
src/main/java/com/infosys/api/shipment/queries/GetShipmentQuery.java
prashantonline/shipmentservice-1
27950182b8509bc98cef2e2291c23271a8873981
[ "Apache-2.0" ]
null
null
null
15
41
0.793939
1,002,113
package com.infosys.api.shipment.queries; import lombok.Data; import java.util.UUID; @Data public class GetShipmentQuery { private final UUID orderIdentifier; }
92420b06a3abf6bd6b0ca59f4f88af7c6a4c2f65
1,550
java
Java
src/main/java/com/zzw/github/graphql/schema/mutations/AddLabelsToLabelable.java
jzyhywxz/GitHubGraphQLAPI
eb9439fbe1a77241627b63b598a1acd998b2d8d2
[ "Apache-2.0" ]
null
null
null
src/main/java/com/zzw/github/graphql/schema/mutations/AddLabelsToLabelable.java
jzyhywxz/GitHubGraphQLAPI
eb9439fbe1a77241627b63b598a1acd998b2d8d2
[ "Apache-2.0" ]
null
null
null
src/main/java/com/zzw/github/graphql/schema/mutations/AddLabelsToLabelable.java
jzyhywxz/GitHubGraphQLAPI
eb9439fbe1a77241627b63b598a1acd998b2d8d2
[ "Apache-2.0" ]
null
null
null
59.615385
144
0.8
1,002,114
package com.zzw.github.graphql.schema.mutations; import com.zzw.github.graphql.schema.annotations.Argument; import com.zzw.github.graphql.schema.annotations.Arguments; import com.zzw.github.graphql.schema.annotations.Description; import com.zzw.github.graphql.schema.annotations.ImplementedBy; import com.zzw.github.graphql.schema.annotations.NonNull; @Description("Adds labels to a labelable object.") public class AddLabelsToLabelable { @NonNull("!") private com.zzw.github.graphql.schema.inputobjects.AddLabelsToLabelableInput input; public com.zzw.github.graphql.schema.inputobjects.AddLabelsToLabelableInput getInput() { return this.input; } public void setInput(com.zzw.github.graphql.schema.inputobjects.AddLabelsToLabelableInput input) { this.input = input; } @Description("A unique identifier for the client performing the mutation.") private com.zzw.github.graphql.schema.scalars.String clientMutationId; public com.zzw.github.graphql.schema.scalars.String getClientMutationId() { return this.clientMutationId; } public void setClientMutationId(com.zzw.github.graphql.schema.scalars.String clientMutationId) { this.clientMutationId = clientMutationId; } @Description("The item that was labeled.") private com.zzw.github.graphql.schema.interfaces.Labelable labelable; public com.zzw.github.graphql.schema.interfaces.Labelable getLabelable() { return this.labelable; } public void setLabelable(com.zzw.github.graphql.schema.interfaces.Labelable labelable) { this.labelable = labelable; } }
92420c918acae54b50cbb7125acbc57dce6e10e3
5,615
java
Java
src/main/java/com/icthh/xm/ms/entity/web/rest/RatingResource.java
likanov/xm-ms-entity
20e3cf48c7aa911aa6ca37b7da4b4fd787f54bdc
[ "Apache-2.0" ]
8
2017-10-03T09:19:40.000Z
2019-02-18T17:35:19.000Z
src/main/java/com/icthh/xm/ms/entity/web/rest/RatingResource.java
likanov/xm-ms-entity
20e3cf48c7aa911aa6ca37b7da4b4fd787f54bdc
[ "Apache-2.0" ]
30
2019-01-30T14:19:18.000Z
2021-12-23T09:58:24.000Z
src/main/java/com/icthh/xm/ms/entity/web/rest/RatingResource.java
likanov/xm-ms-entity
20e3cf48c7aa911aa6ca37b7da4b4fd787f54bdc
[ "Apache-2.0" ]
3
2021-06-15T14:56:49.000Z
2022-02-10T08:25:22.000Z
41.286765
154
0.704185
1,002,115
package com.icthh.xm.ms.entity.web.rest; import com.codahale.metrics.annotation.Timed; import com.icthh.xm.commons.exceptions.BusinessException; import com.icthh.xm.commons.exceptions.ErrorConstants; import com.icthh.xm.commons.permission.annotation.PrivilegeDescription; import com.icthh.xm.ms.entity.domain.Rating; import com.icthh.xm.ms.entity.service.RatingService; import com.icthh.xm.ms.entity.web.rest.util.HeaderUtil; import com.icthh.xm.ms.entity.web.rest.util.RespContentUtil; import org.springframework.context.annotation.Lazy; import org.springframework.http.ResponseEntity; import org.springframework.security.access.prepost.PostAuthorize; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PutMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import java.net.URI; import java.net.URISyntaxException; import java.util.List; import java.util.Optional; import javax.validation.Valid; /** * REST controller for managing Rating. */ @RestController @RequestMapping("/api") public class RatingResource { private static final String ENTITY_NAME = "rating"; private final RatingService ratingService; private final RatingResource ratingResource; public RatingResource( RatingService ratingService, @Lazy RatingResource ratingResource) { this.ratingService = ratingService; this.ratingResource = ratingResource; } /** * POST /ratings : Create a new rating. * * @param rating the rating to create * @return the ResponseEntity with status 201 (Created) and with body the new rating, or with status 400 (Bad Request) if the rating has already an ID * @throws URISyntaxException if the Location URI syntax is incorrect */ @PostMapping("/ratings") @Timed @PreAuthorize("hasPermission({'rating': #rating}, 'RATING.CREATE')") @PrivilegeDescription("Privilege to create a new rating") public ResponseEntity<Rating> createRating(@Valid @RequestBody Rating rating) throws URISyntaxException { if (rating.getId() != null) { throw new BusinessException(ErrorConstants.ERR_BUSINESS_IDEXISTS, "A new rating cannot already have an ID"); } Rating result = ratingService.save(rating); return ResponseEntity.created(new URI("/api/ratings/" + result.getId())) .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString())) .body(result); } /** * PUT /ratings : Updates an existing rating. * * @param rating the rating to update * @return the ResponseEntity with status 200 (OK) and with body the updated rating, * or with status 400 (Bad Request) if the rating is not valid, * or with status 500 (Internal Server Error) if the rating couldn't be updated * @throws URISyntaxException if the Location URI syntax is incorrect */ @PutMapping("/ratings") @Timed @PreAuthorize("hasPermission({'id': #rating.id, 'newRating': #rating}, 'rating', 'RATING.UPDATE')") @PrivilegeDescription("Privilege to updates an existing rating") public ResponseEntity<Rating> updateRating(@Valid @RequestBody Rating rating) throws URISyntaxException { if (rating.getId() == null) { //in order to call method with permissions check return this.ratingResource.createRating(rating); } Rating result = ratingService.save(rating); return ResponseEntity.ok() .headers(HeaderUtil.createEntityUpdateAlert(ENTITY_NAME, rating.getId().toString())) .body(result); } /** * GET /ratings : get all the ratings. * * @return the ResponseEntity with status 200 (OK) and the list of ratings in body */ @GetMapping("/ratings") @Timed public List<Rating> getAllRatings() { return ratingService.findAll(null); } /** * GET /ratings/:id : get the "id" rating. * * @param id the id of the rating to retrieve * @return the ResponseEntity with status 200 (OK) and with body the rating, or with status 404 (Not Found) */ @GetMapping("/ratings/{id}") @Timed @PostAuthorize("hasPermission({'returnObject': returnObject.body}, 'RATING.GET_LIST.ITEM')") @PrivilegeDescription("Privilege to get the rating by id") public ResponseEntity<Rating> getRating(@PathVariable Long id) { Rating rating = ratingService.findOne(id); return RespContentUtil.wrapOrNotFound(Optional.ofNullable(rating)); } /** * DELETE /ratings/:id : delete the "id" rating. * * @param id the id of the rating to delete * @return the ResponseEntity with status 200 (OK) */ @DeleteMapping("/ratings/{id}") @Timed @PreAuthorize("hasPermission({'id': #id}, 'rating', 'RATING.DELETE')") @PrivilegeDescription("Privilege to delete the rating by id") public ResponseEntity<Void> deleteRating(@PathVariable Long id) { ratingService.delete(id); return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build(); } }
92420d08de54e00716b5ec45289149717c60969d
7,385
java
Java
src/edu/esprit/gui/SuppParent.java
TZ92/baby-sittingFinal
cbbafb407a5a26717390d7e9189e1623ec490368
[ "MIT" ]
null
null
null
src/edu/esprit/gui/SuppParent.java
TZ92/baby-sittingFinal
cbbafb407a5a26717390d7e9189e1623ec490368
[ "MIT" ]
null
null
null
src/edu/esprit/gui/SuppParent.java
TZ92/baby-sittingFinal
cbbafb407a5a26717390d7e9189e1623ec490368
[ "MIT" ]
null
null
null
45.58642
165
0.649018
1,002,116
/* * 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 edu.esprit.gui; /** * * @author omar */ public class SuppParent extends javax.swing.JFrame { /** * Creates new form SuppParent */ public SuppParent() { initComponents(); } /** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jButton1 = new javax.swing.JButton(); jButton2 = new javax.swing.JButton(); jTextField1 = new javax.swing.JTextField(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); jLabel1.setFont(new java.awt.Font("Tahoma", 3, 18)); // NOI18N jLabel1.setText("Supprimer le profil d'un parent"); jLabel2.setFont(new java.awt.Font("Tahoma", 2, 14)); // NOI18N jLabel2.setText("CIN"); jButton1.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N jButton1.setText("Supprimer"); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); jButton2.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N jButton2.setText("Retour"); jButton2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton2ActionPerformed(evt); } }); jTextField1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jTextField1ActionPerformed(evt); } }); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addGap(0, 78, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jButton2) .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(108, 108, 108) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jButton1) .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 102, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(80, 80, 80)) .addGroup(layout.createSequentialGroup() .addGap(80, 80, 80) .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 293, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(44, 44, 44) .addComponent(jLabel1) .addGap(66, 66, 66) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(40, 40, 40) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jButton2) .addComponent(jButton1)) .addContainerGap(49, Short.MAX_VALUE)) ); pack(); }// </editor-fold>//GEN-END:initComponents private void jTextField1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField1ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_jTextField1ActionPerformed private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_jButton1ActionPerformed private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed RechercherParent rch=new RechercherParent(); rch.setVisible(true); this.setVisible(false); // TODO add your handling code here: }//GEN-LAST:event_jButton2ActionPerformed /** * @param args the command line arguments */ public static void main(String args[]) { /* Set the Nimbus look and feel */ //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html */ try { for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { if ("Nimbus".equals(info.getName())) { javax.swing.UIManager.setLookAndFeel(info.getClassName()); break; } } } catch (ClassNotFoundException ex) { java.util.logging.Logger.getLogger(SuppParent.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (InstantiationException ex) { java.util.logging.Logger.getLogger(SuppParent.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { java.util.logging.Logger.getLogger(SuppParent.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (javax.swing.UnsupportedLookAndFeelException ex) { java.util.logging.Logger.getLogger(SuppParent.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } //</editor-fold> //</editor-fold> /* Create and display the form */ java.awt.EventQueue.invokeLater(new Runnable() { public void run() { new SuppParent().setVisible(true); } }); } // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JButton jButton1; private javax.swing.JButton jButton2; private javax.swing.JLabel jLabel1; private javax.swing.JLabel jLabel2; private javax.swing.JTextField jTextField1; // End of variables declaration//GEN-END:variables }
92420deffc9903e1e06d89f0ef09a62fccccdbe4
11,211
java
Java
src/VisualizarMensagemFrame.java
alt-jams/Email
9d9ec0dba35157b36976712a568f62c9227a0544
[ "MIT" ]
null
null
null
src/VisualizarMensagemFrame.java
alt-jams/Email
9d9ec0dba35157b36976712a568f62c9227a0544
[ "MIT" ]
null
null
null
src/VisualizarMensagemFrame.java
alt-jams/Email
9d9ec0dba35157b36976712a568f62c9227a0544
[ "MIT" ]
null
null
null
46.518672
161
0.658104
1,002,117
import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence.Persistence; import javax.swing.JButton; /* * 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. */ /** * * @author Jamilly */ public class VisualizarMensagemFrame extends javax.swing.JFrame { private int id; private int op; private Usuario user; private Funcao funcoes; /** * Creates new form VisualizarMensagemFrame */ public VisualizarMensagemFrame(int id, Usuario user, int op) { initComponents(); this.user = user; this.id = id; this.op = op; funcoes = new Funcao(); if (op == 1){ responder.setVisible(false); } Mensagem m = funcoes.encontraMensagem(id); txtRemetente.setText(m.getRemetente().getEmail()); txtTitulo.setText(m.getTitulo()); txtCorpo.setText(m.getCorpo()); } /** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel1 = new javax.swing.JPanel(); jPanel2 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); logout = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); txtRemetente = new javax.swing.JTextField(); jScrollPane1 = new javax.swing.JScrollPane(); txtCorpo = new javax.swing.JTextArea(); botaoVoltar = new javax.swing.JButton(); jLabel3 = new javax.swing.JLabel(); txtTitulo = new javax.swing.JTextField(); responder = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); jPanel1.setBackground(new java.awt.Color(102, 0, 0)); jPanel2.setBackground(new java.awt.Color(240, 240, 241)); jLabel1.setFont(new java.awt.Font("Gill Sans MT", 1, 24)); // NOI18N jLabel1.setForeground(new java.awt.Color(102, 0, 0)); jLabel1.setText("Mensagem"); logout.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N logout.setForeground(new java.awt.Color(102, 0, 0)); logout.setText("<< log out"); logout.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { logoutMouseClicked(evt); } }); javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addGap(36, 36, 36) .addComponent(jLabel1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 332, Short.MAX_VALUE) .addComponent(logout, javax.swing.GroupLayout.PREFERRED_SIZE, 76, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(36, 36, 36)) ); jPanel2Layout.setVerticalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup() .addComponent(jLabel1) .addGap(21, 21, 21)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup() .addComponent(logout) .addContainerGap()))) ); jLabel2.setFont(new java.awt.Font("Gill Sans MT", 1, 14)); // NOI18N jLabel2.setForeground(new java.awt.Color(255, 255, 255)); jLabel2.setText("Remetente:"); txtRemetente.setEditable(false); txtCorpo.setEditable(false); txtCorpo.setColumns(20); txtCorpo.setRows(5); jScrollPane1.setViewportView(txtCorpo); botaoVoltar.setFont(new java.awt.Font("Gill Sans MT", 1, 12)); // NOI18N botaoVoltar.setForeground(new java.awt.Color(102, 0, 0)); botaoVoltar.setText("Voltar"); botaoVoltar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { botaoVoltarActionPerformed(evt); } }); jLabel3.setFont(new java.awt.Font("Gill Sans MT", 1, 14)); // NOI18N jLabel3.setForeground(new java.awt.Color(255, 255, 255)); jLabel3.setText("Título:"); txtTitulo.setEditable(false); responder.setFont(new java.awt.Font("Gill Sans MT", 1, 12)); // NOI18N responder.setForeground(new java.awt.Color(102, 0, 0)); responder.setText("Responder"); responder.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { responderActionPerformed(evt); } }); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(36, 36, 36) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(responder) .addGap(18, 18, 18) .addComponent(botaoVoltar, javax.swing.GroupLayout.PREFERRED_SIZE, 104, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jLabel3) .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 527, Short.MAX_VALUE) .addComponent(jLabel2) .addComponent(txtRemetente) .addComponent(txtTitulo))) .addContainerGap(37, Short.MAX_VALUE)) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(23, 23, 23) .addComponent(jLabel2) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(txtRemetente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jLabel3) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(txtTitulo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 161, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 28, Short.MAX_VALUE) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(botaoVoltar) .addComponent(responder)) .addGap(28, 28, 28)) ); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) ); pack(); }// </editor-fold>//GEN-END:initComponents private void botaoVoltarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botaoVoltarActionPerformed setVisible(false); if(op == 0){ CaixaEntradaSaidaFrame entrada = new CaixaEntradaSaidaFrame(user, 0); entrada.setVisible(true); }else{ CaixaEntradaSaidaFrame entrada = new CaixaEntradaSaidaFrame(user, 1); entrada.setVisible(true); } }//GEN-LAST:event_botaoVoltarActionPerformed private void logoutMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_logoutMouseClicked LoginFrame login = new LoginFrame(); setVisible(false); login.setVisible(true); }//GEN-LAST:event_logoutMouseClicked private void responderActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_responderActionPerformed Usuario destinatario = funcoes.getUserByEmail(txtRemetente.getText()); ResponderFrame resp = new ResponderFrame(user,destinatario,txtCorpo.getText(), txtTitulo.getText(), id); resp.setVisible(true); setVisible(false); }//GEN-LAST:event_responderActionPerformed // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JButton botaoVoltar; private javax.swing.JLabel jLabel1; private javax.swing.JLabel jLabel2; private javax.swing.JLabel jLabel3; private javax.swing.JPanel jPanel1; private javax.swing.JPanel jPanel2; private javax.swing.JScrollPane jScrollPane1; private javax.swing.JLabel logout; private javax.swing.JButton responder; private javax.swing.JTextArea txtCorpo; private javax.swing.JTextField txtRemetente; private javax.swing.JTextField txtTitulo; // End of variables declaration//GEN-END:variables }
92420e17e0f98c0507e8bdf1a16627cfdb5fac93
1,824
java
Java
Assignment 1/code/Road.java
TimSalisbury/COMP261
082f1c70a630d484ebd2fb7e4fcbe009dc538afa
[ "MIT" ]
null
null
null
Assignment 1/code/Road.java
TimSalisbury/COMP261
082f1c70a630d484ebd2fb7e4fcbe009dc538afa
[ "MIT" ]
null
null
null
Assignment 1/code/Road.java
TimSalisbury/COMP261
082f1c70a630d484ebd2fb7e4fcbe009dc538afa
[ "MIT" ]
null
null
null
24.986301
122
0.666118
1,002,118
import java.awt.*; import java.util.ArrayList; import java.util.List; public class Road{ private int ID; private String name; private String city; private Direction direction; private boolean forCar; private boolean forPed; private boolean forByc; private int speedLimit; private Class roadClass; public List<Segment> segments = new ArrayList<>(); public Road(int ID, String name, String city, int direction, int speed, int rClass, int forCar, int forPed, int forByc){ this.ID = ID; this.name = name; this.city = city; this.direction = Direction.values()[direction]; this.speedLimit = speed; this.roadClass = Class.values()[rClass]; this.forCar = forCar == 0; this.forPed = forPed == 0; this.forByc = forByc == 0; } /** * Draws the road (the segments associated to the road) to the graphics pane provided, locations based off the scale * and origin of the rendering. Roads will be highlighted in red if the boolean selected is true, as the user has * selected the road. * @param g The graphics pane in which to render to * @param scale The numbers of pixels per kilometer * @param origin The origin of the rendering * @param selected Whether or not the road has been selected */ public void redraw(Graphics g, double scale, Location origin, boolean selected){ for(Segment segment : segments){ segment.redraw(g, scale, origin, selected); } } @Override public String toString(){ return name; } /** * @return The ID of the road */ public int getID(){ return ID; } /** * @return The name of the road. */ public String getName(){ return name; } /** * @return The direction of the road */ public Direction getDirection(){ return direction; } }
92420f7efdefe3c6a3191e79f5fa55c4d73a809f
834
java
Java
test/dumps/jax/SourceRoutingStats2EntryImpl.java
sgeto/libsmi
e411eac3c596e60da10d996ca957a6c7739bdace
[ "BSD-4-Clause-UC" ]
2
2020-02-07T21:51:37.000Z
2020-05-17T15:08:28.000Z
test/dumps/jax/SourceRoutingStats2EntryImpl.java
sgeto/libsmi
e411eac3c596e60da10d996ca957a6c7739bdace
[ "BSD-4-Clause-UC" ]
null
null
null
test/dumps/jax/SourceRoutingStats2EntryImpl.java
sgeto/libsmi
e411eac3c596e60da10d996ca957a6c7739bdace
[ "BSD-4-Clause-UC" ]
null
null
null
20.85
74
0.721823
1,002,119
/* * This Java file has been generated by smidump 0.4.5. It * is intended to be edited by the application programmer and * to be used within a Java AgentX sub-agent environment. * * $Id$ */ /** This class extends the Java AgentX (JAX) implementation of the table row sourceRoutingStats2Entry defined in RMON2-MIB. */ import jax.AgentXOID; import jax.AgentXSetPhase; import jax.AgentXResponsePDU; import jax.AgentXEntry; public class SourceRoutingStats2EntryImpl extends SourceRoutingStats2Entry { // constructor public SourceRoutingStats2EntryImpl() { super(); } public long get_sourceRoutingStatsDroppedFrames() { return sourceRoutingStatsDroppedFrames; } public long get_sourceRoutingStatsCreateTime() { return sourceRoutingStatsCreateTime; } }
92421072010ced8093a3ce3f8ad7ee039d4ea37c
798
java
Java
src/main/java/link/thingscloud/simple/database/designer/util/ConsumerUtil.java
zhouhailin/simple-database-designer
1c17ab1a162f5b14c46f9e3f94dc95a4b89b3f0f
[ "Apache-2.0" ]
1
2020-02-29T16:19:09.000Z
2020-02-29T16:19:09.000Z
src/main/java/link/thingscloud/simple/database/designer/util/ConsumerUtil.java
zhouhailin/simple-database-designer
1c17ab1a162f5b14c46f9e3f94dc95a4b89b3f0f
[ "Apache-2.0" ]
null
null
null
src/main/java/link/thingscloud/simple/database/designer/util/ConsumerUtil.java
zhouhailin/simple-database-designer
1c17ab1a162f5b14c46f9e3f94dc95a4b89b3f0f
[ "Apache-2.0" ]
null
null
null
22.8
85
0.466165
1,002,120
package link.thingscloud.simple.database.designer.util; import org.springframework.util.CollectionUtils; import java.util.List; /** * @author : zhouhailin */ public class ConsumerUtil { public static <O> void doAccept(List<O> list, TripleConsumer<O, O, O> consumer) { if (CollectionUtils.isEmpty(list)) { return; } O prev; O next; int size = list.size(); for (int i = 0; i < size; i++) { if (i > 0) { prev = list.get(i - 1); } else { prev = null; } if (i < (size - 1)) { next = list.get(i + 1); } else { next = null; } consumer.accept(prev, list.get(i), next); } } }
92421241e9c6cc5da6cffee9f3dc6d558401ea34
1,609
java
Java
src/main/java/com/popupmc/variablehealth/system/spawns/SpawnIllusioner.java
PopupMC/VariableHealth
7077f57517e9e92e0a0e6c51bcb88cd92633a00b
[ "Apache-2.0" ]
null
null
null
src/main/java/com/popupmc/variablehealth/system/spawns/SpawnIllusioner.java
PopupMC/VariableHealth
7077f57517e9e92e0a0e6c51bcb88cd92633a00b
[ "Apache-2.0" ]
null
null
null
src/main/java/com/popupmc/variablehealth/system/spawns/SpawnIllusioner.java
PopupMC/VariableHealth
7077f57517e9e92e0a0e6c51bcb88cd92633a00b
[ "Apache-2.0" ]
null
null
null
35.755556
86
0.637663
1,002,121
package com.popupmc.variablehealth.system.spawns; import com.popupmc.variablehealth.VariableHealth; import com.popupmc.variablehealth.system.BaseSystem; import com.popupmc.variablehealth.system.System; import com.popupmc.variablehealth.utility.LocationTools; import com.popupmc.variablehealth.utility.RandomTools; import org.bukkit.Location; import org.bukkit.entity.Entity; import org.bukkit.entity.EntityType; import org.bukkit.entity.LivingEntity; import org.bukkit.scheduler.BukkitRunnable; import org.jetbrains.annotations.NotNull; import java.util.List; public class SpawnIllusioner extends BaseSystem { public SpawnIllusioner(@NotNull System system, @NotNull VariableHealth plugin) { super(system, plugin); } public void checkSpawn(LivingEntity entity) { if((entity.getType() == EntityType.EVOKER || entity.getType() == EntityType.VINDICATOR || entity.getType() == EntityType.PILLAGER) && RandomTools.getRandomChanceDown(15)) { Location location = entity.getLocation().clone(); new BukkitRunnable() { @Override public void run() { List<Entity> entityList = LocationTools.getEntitiesOfType( location, 100, EntityType.ILLUSIONER); if(entityList.size() >= 4) return; location.getWorld().spawnEntity(location, EntityType.ILLUSIONER); } }.runTaskLater(plugin, 20); } } }
924212ae4642a58bc5896ccd57c43f37175b46a1
8,204
java
Java
ios/src/playn/ios/IOSGLProgram.java
threerings/playn
a3fdd69861ac136fdf177f08720f2aef071943c5
[ "Apache-2.0" ]
39
2015-01-14T06:54:06.000Z
2020-10-12T09:30:27.000Z
ios/src/playn/ios/IOSGLProgram.java
threerings/playn
a3fdd69861ac136fdf177f08720f2aef071943c5
[ "Apache-2.0" ]
12
2015-01-13T05:46:20.000Z
2017-07-16T01:47:34.000Z
ios/src/playn/ios/IOSGLProgram.java
threerings/playn
a3fdd69861ac136fdf177f08720f2aef071943c5
[ "Apache-2.0" ]
24
2015-01-07T10:44:07.000Z
2020-08-14T16:23:35.000Z
34.32636
97
0.651755
1,002,122
/** * Copyright 2012 The PlayN 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 playn.ios; import cli.System.IntPtr; import cli.OpenTK.Graphics.ES20.All; import cli.OpenTK.Graphics.ES20.GL; import cli.OpenTK.Graphics.ES20.ProgramParameter; import cli.OpenTK.Graphics.ES20.ShaderParameter; import cli.OpenTK.Graphics.ES20.ShaderType; import cli.OpenTK.Graphics.ES20.VertexAttribPointerType; import playn.core.gl.GLBuffer; import playn.core.gl.GLProgram; import playn.core.gl.GLShader; public class IOSGLProgram implements GLProgram { private final int program, vertexShader, fragmentShader; public IOSGLProgram(IOSGLContext ctx, String vertexSource, String fragmentSource) { int program = 0, vertexShader = 0, fragmentShader = 0; try { program = GL.CreateProgram(); if (program == 0) throw new RuntimeException("Failed to create program: " + GL.GetError()); vertexShader = compileShader(ShaderType.wrap(ShaderType.VertexShader), vertexSource); GL.AttachShader(program, vertexShader); ctx.checkGLError("Attached vertex shader"); fragmentShader = compileShader(ShaderType.wrap(ShaderType.FragmentShader), fragmentSource); GL.AttachShader(program, fragmentShader); ctx.checkGLError("Attached fragment shader"); GL.LinkProgram(program); int[] linkStatus = new int[1]; GL.GetProgram(program, ProgramParameter.wrap(ProgramParameter.LinkStatus), linkStatus); if (linkStatus[0] != All.True) { int[] llength = new int[1]; GL.GetProgram(program, ProgramParameter.wrap(ProgramParameter.InfoLogLength), llength); cli.System.Text.StringBuilder log = new cli.System.Text.StringBuilder(llength[0]); GL.GetProgramInfoLog(program, llength[0], llength, log); throw new RuntimeException("Failed to link program: " + log.ToString()); } this.program = program; this.vertexShader = vertexShader; this.fragmentShader = fragmentShader; program = vertexShader = fragmentShader = 0; } finally { if (program != 0) GL.DeleteProgram(program); if (vertexShader != 0) GL.DeleteShader(vertexShader); if (fragmentShader != 0) GL.DeleteShader(fragmentShader); } } @Override public GLShader.Uniform1f getUniform1f(String name) { final int loc = GL.GetUniformLocation(program, name); return (loc < 0) ? null : new GLShader.Uniform1f() { private float aCached = 0; public void bind(float a) { if (aCached == a) return; aCached = a; GL.Uniform1(loc, a); } }; } @Override public GLShader.Uniform2f getUniform2f(String name) { final int loc = GL.GetUniformLocation(program, name); return (loc < 0) ? null : new GLShader.Uniform2f() { private float aCached = 0, bCached = 0; public void bind(float a, float b) { if (aCached == a && bCached == b) return; aCached = a; bCached = b; GL.Uniform2(loc, a, b); } }; } @Override public GLShader.Uniform3f getUniform3f(String name) { final int loc = GL.GetUniformLocation(program, name); return (loc < 0) ? null : new GLShader.Uniform3f() { private float aCached = 0, bCached = 0, cCached = 0; public void bind(float a, float b, float c) { if (aCached == a && bCached == b && cCached == c) return; aCached = a; bCached = b; cCached = c; GL.Uniform3(loc, a, b, c); } }; } @Override public GLShader.Uniform4f getUniform4f(String name) { final int loc = GL.GetUniformLocation(program, name); return (loc < 0) ? null : new GLShader.Uniform4f() { private float aCached = 0, bCached = 0, cCached = 0, dCached = 0; public void bind(float a, float b, float c, float d) { if (aCached == a && bCached == b && cCached == c && dCached == d) return; aCached = a; bCached = b; cCached = c; dCached = d; GL.Uniform4(loc, a, b, c, d); } }; } @Override public GLShader.Uniform1i getUniform1i(String name) { final int loc = GL.GetUniformLocation(program, name); return (loc < 0) ? null : new GLShader.Uniform1i() { private int aCached = 0; public void bind(int a) { if (aCached == a) return; aCached = a; GL.Uniform1(loc, a); } }; } @Override public GLShader.Uniform2i getUniform2i(String name) { final int loc = GL.GetUniformLocation(program, name); return (loc < 0) ? null : new GLShader.Uniform2i() { private int aCached = 0, bCached = 0; public void bind(int a, int b) { if (aCached == a && bCached == b) return; aCached = a; bCached = b; GL.Uniform2(loc, a, b); } }; } @Override public GLShader.Uniform2fv getUniform2fv(String name) { final int loc = GL.GetUniformLocation(program, name); return (loc < 0) ? null : new GLShader.Uniform2fv() { public void bind(GLBuffer.Float data, int count) { IOSGLBuffer.FloatImpl idata = (IOSGLBuffer.FloatImpl) data; idata.position = 0; GL.Uniform2(loc, count, idata.data); } }; } @Override public GLShader.Uniform4fv getUniform4fv(String name) { final int loc = GL.GetUniformLocation(program, name); return (loc < 0) ? null : new GLShader.Uniform4fv() { public void bind(GLBuffer.Float data, int count) { IOSGLBuffer.FloatImpl idata = (IOSGLBuffer.FloatImpl) data; idata.position = 0; GL.Uniform4(loc, count, idata.data); } }; } @Override public GLShader.UniformMatrix4fv getUniformMatrix4fv(String name) { final int loc = GL.GetUniformLocation(program, name); return (loc < 0) ? null : new GLShader.UniformMatrix4fv() { public void bind(GLBuffer.Float data, int count) { IOSGLBuffer.FloatImpl idata = (IOSGLBuffer.FloatImpl) data; idata.position = 0; GL.UniformMatrix4(loc, count, false, idata.data); } }; } @Override public GLShader.Attrib getAttrib(String name, final int size, final int type) { final int loc = GL.GetAttribLocation(program, name); return (loc < 0) ? null : new GLShader.Attrib() { public void bind(int stride, int offset) { GL.EnableVertexAttribArray(loc); GL.VertexAttribPointer( loc, size, VertexAttribPointerType.wrap(type), false, stride, new IntPtr(offset)); } public void unbind() { GL.DisableVertexAttribArray(loc); } }; } @Override public void bind() { GL.UseProgram(program); } @Override public void destroy() { GL.DeleteShader(vertexShader); GL.DeleteShader(fragmentShader); GL.DeleteProgram(program); } private int compileShader(ShaderType type, final String shaderSource) { int shader = GL.CreateShader(type); if (shader == 0) throw new RuntimeException("Failed to create shader: " + GL.GetError()); GL.ShaderSource(shader, 1, new String[] { shaderSource }, null); GL.CompileShader(shader); int[] compiled = new int[1]; GL.GetShader(shader, ShaderParameter.wrap(ShaderParameter.CompileStatus), compiled); if (compiled[0] == All.False) { int[] llength = new int[1]; GL.GetShader(shader, ShaderParameter.wrap(ShaderParameter.InfoLogLength), llength); cli.System.Text.StringBuilder log = new cli.System.Text.StringBuilder(llength[0]); GL.GetShaderInfoLog(shader, llength[0], llength, log); GL.DeleteShader(shader); throw new RuntimeException("Failed to compile shader (" + type + "): " + log.ToString()); } return shader; } }
924212e32305728507a83e5ba6aed78523b9bca9
1,351
java
Java
Java/src/main/java/OneLang/One/Ast/Types/IImportable.java
onelang/OneLang-CrossCompiled
ed67f2b57e7181712c7d8c2ba85f23b3812d8e3a
[ "MIT" ]
2
2020-11-15T23:38:23.000Z
2020-11-16T00:54:25.000Z
Java/src/main/java/OneLang/One/Ast/Types/IImportable.java
onelang/OneLang-CrossCompiled
ed67f2b57e7181712c7d8c2ba85f23b3812d8e3a
[ "MIT" ]
null
null
null
Java/src/main/java/OneLang/One/Ast/Types/IImportable.java
onelang/OneLang-CrossCompiled
ed67f2b57e7181712c7d8c2ba85f23b3812d8e3a
[ "MIT" ]
null
null
null
40.939394
60
0.838638
1,002,123
package OneLang.One.Ast.Types; import OneLang.One.Ast.AstTypes.ClassType; import OneLang.One.Ast.AstTypes.GenericsType; import OneLang.One.Ast.AstTypes.EnumType; import OneLang.One.Ast.AstTypes.InterfaceType; import OneLang.One.Ast.Expressions.Expression; import OneLang.One.Ast.References.ClassReference; import OneLang.One.Ast.References.EnumReference; import OneLang.One.Ast.References.ThisReference; import OneLang.One.Ast.References.MethodParameterReference; import OneLang.One.Ast.References.SuperReference; import OneLang.One.Ast.References.StaticFieldReference; import OneLang.One.Ast.References.EnumMemberReference; import OneLang.One.Ast.References.InstanceFieldReference; import OneLang.One.Ast.References.StaticPropertyReference; import OneLang.One.Ast.References.InstancePropertyReference; import OneLang.One.Ast.References.IReferencable; import OneLang.One.Ast.References.Reference; import OneLang.One.Ast.References.GlobalFunctionReference; import OneLang.One.Ast.References.StaticThisReference; import OneLang.One.Ast.References.VariableReference; import OneLang.One.Ast.AstHelper.AstHelper; import OneLang.One.Ast.Statements.Block; import OneLang.One.Ast.Interfaces.IType; public interface IImportable { String getName(); void setName(String value); Boolean getIsExported(); void setIsExported(Boolean value); }
92421324c720d41fc3f282961c16ee1329d1a95a
5,120
java
Java
pad/src/main/java/Node/Node.java
PosticaDenis/PAD_labs
d6fff9b24ca17a511629bae89ffb992963fe3edc
[ "Apache-2.0" ]
null
null
null
pad/src/main/java/Node/Node.java
PosticaDenis/PAD_labs
d6fff9b24ca17a511629bae89ffb992963fe3edc
[ "Apache-2.0" ]
null
null
null
pad/src/main/java/Node/Node.java
PosticaDenis/PAD_labs
d6fff9b24ca17a511629bae89ffb992963fe3edc
[ "Apache-2.0" ]
null
null
null
24.7343
150
0.573438
1,002,124
package node; import com.google.gson.Gson; import utils.RandomString; import utils.Student; import java.io.DataOutputStream; import java.io.IOException; import java.net.*; import java.util.*; /** * Created by c-denipost on 18-Nov-17. **/ public class Node extends Thread{ private UDPNode udpNode; private Map<String, TCPNode> connectedTo; private Map<String, TCPNode> isConnected; private String tcpHost = "localhost"; private int tcpPort; private String id; private TCPNode proxyConnection; private ServerSocket nodeSocket; private List<Student> data = new ArrayList<>(); public static Gson dataJson = new Gson(); private boolean state = false; public Node() { connectedTo = new HashMap<>(); id = new RandomString().nextString(); isConnected = new HashMap<>(); try { nodeSocket = new ServerSocket(0); tcpPort = nodeSocket.getLocalPort(); //System.out.println("For Node: " + id + " system chose port " + nodeSocket.getLocalPort()); } catch (IOException e) { e.printStackTrace(); } } @Override public void run() { try { udpNode = new UDPNode(this); udpNode.start(); while (true) { TCPNode cHandler = new TCPNode(this, nodeSocket.accept()); //System.out.println("Someone connected through TCP"); cHandler.start(); } } catch (IOException e) { System.out.println("I'm out!"); e.printStackTrace(); return; } } public void connectTo(Node node) { System.out.println("Connecting to node " + node.getNodeId()); String nodeHost = node.getTcpHost(); int nodePort = node.getTcpPort(); String nodeId = node.getNodeId(); if (nodeId.equals(id)) { System.out.println("You are trying to connect a Node to itself. Not cool!"); return; } if (connectedTo.containsKey(nodeId)) { System.out.println("You are trying to connect to the same Node multiple times. Not cool!"); return; } if (isConnected.containsKey(nodeId)) { System.out.println("The node to which you are trying to connect is already connected to the current Node. Not cool!"); return; } try { Socket nodeS = new Socket(nodeHost, nodePort); TCPNode tcpNode = new TCPNode(this, nodeS); tcpNode.start(); String identification = "identify:node:" + id + "\r"; tcpNode.send(identification); this.connectedTo.put(nodeId, tcpNode); } catch (IOException e) { System.out.println("Connection of the current node to another node failed. Maybe the node you are trying to connect is not yet started."); e.printStackTrace(); } } public String getTcpHost() { return tcpHost; } public int getTcpPort() { return tcpPort; } public int getConnectionsSize() { return connectedTo.size() + isConnected.size(); } public void setIsConnected(String key, TCPNode value) { isConnected.put(key, value); } public String getNodeId() { return id; } public TCPNode getProxyConnection() { return proxyConnection; } public boolean isState() { return state; } public void setState(boolean state) { this.state = state; } public void setProxyId(TCPNode proxyConnection) { this.proxyConnection = proxyConnection; } public Map<String, TCPNode> getConnectedTo() { return connectedTo; } public Map<String, TCPNode> getIsConnected() { return isConnected; } public static void main(String[] args) { Node n1 = new Node(); Node n2 = new Node(); Node n3 = new Node(); Node n4 = new Node(); Node n5 = new Node(); Node n6 = new Node(); List<Student> students = new ArrayList<>(); students.add(new Student("John",18)); students.add(new Student("Sully",19)); n1.setData(students); List<Student> students1 = new ArrayList<>(); students1.add(new Student("Mark",18)); students1.add(new Student("Molly",19)); n2.setData(students1); List<Student> students2 = new ArrayList<>(); students2.add(new Student("Carl",18)); students2.add(new Student("Bob",19)); n3.setData(students2); n1.start(); n2.start(); n3.start(); n4.start(); n5.start(); n6.start(); n2.connectTo(n1); n3.connectTo(n1); n3.connectTo(n2); n4.connectTo(n2); n5.connectTo(n3); } public List<Student> getData() { return data; } public void updateNodeData(Student data) { this.data.add(data); } public void setData(List<Student> data) { this.data = data; } }
9242133493e2ac2e1697cf51b2fb361622f75809
366
java
Java
GeneticAlgorithmConcept/Code_Evolution/4_Singleton/src/BigGAFactory.java
DeirdreHegarty/advanced_OOP
e62d8f2274422d3da9064e2576e2adc414eccee1
[ "MIT" ]
null
null
null
GeneticAlgorithmConcept/Code_Evolution/4_Singleton/src/BigGAFactory.java
DeirdreHegarty/advanced_OOP
e62d8f2274422d3da9064e2576e2adc414eccee1
[ "MIT" ]
null
null
null
GeneticAlgorithmConcept/Code_Evolution/4_Singleton/src/BigGAFactory.java
DeirdreHegarty/advanced_OOP
e62d8f2274422d3da9064e2576e2adc414eccee1
[ "MIT" ]
null
null
null
24.4
47
0.718579
1,002,125
// concrete factory class BigGAFactory implements GA{ public Mutate createMutatorGA(String input){ if(input.equals("Is Mutant")) return new IsMutant(); else if(input.equals("Not Mutant")) return new NotMutant(); return null; } public Selection createSelectGA(String input){ if(input.equals("Biggest")) return new TheBiggest(); return null; } }
9242133f05500684c5e14e15bc790e438d08368a
2,098
java
Java
assertj-swing/src/main/java/org/assertj/swing/keystroke/KeyStrokeMappingProviderPicker.java
DaveBrad/assertj-swing
0d74888990c5124f6a2dee90e0d848da0125f0b2
[ "Apache-2.0" ]
70
2015-01-19T08:40:59.000Z
2020-06-20T12:59:57.000Z
assertj-swing/src/main/java/org/assertj/swing/keystroke/KeyStrokeMappingProviderPicker.java
DaveBrad/assertj-swing
0d74888990c5124f6a2dee90e0d848da0125f0b2
[ "Apache-2.0" ]
143
2015-01-04T01:43:55.000Z
2020-09-13T07:42:45.000Z
assertj-swing/src/main/java/org/assertj/swing/keystroke/KeyStrokeMappingProviderPicker.java
DaveBrad/assertj-swing
0d74888990c5124f6a2dee90e0d848da0125f0b2
[ "Apache-2.0" ]
47
2015-01-26T12:41:27.000Z
2020-08-27T13:39:13.000Z
36.172414
118
0.755005
1,002,126
/* * 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. * * Copyright 2012-2018 the original author or authors. */ package org.assertj.swing.keystroke; import static org.assertj.core.util.Preconditions.checkNotNull; import static org.assertj.swing.keystroke.KeyStrokeMappingProviderNames.generateNamesFrom; import java.util.Locale; import java.util.logging.Logger; import javax.annotation.Nonnull; import org.assertj.core.util.VisibleForTesting; import org.assertj.swing.util.OSFamily; /** * Chooses a {@link KeyStrokeMappingProvider} based on OS family and locale. * * @author Alex Ruiz */ class KeyStrokeMappingProviderPicker { private static Logger LOGGER = Logger.getLogger(KeyStrokeMappingProviderPicker.class.getName()); private final KeyStrokeMappingProviderFactory factory; KeyStrokeMappingProviderPicker() { this(new KeyStrokeMappingProviderFactory()); } @VisibleForTesting KeyStrokeMappingProviderPicker(@Nonnull KeyStrokeMappingProviderFactory factory) { this.factory = factory; } KeyStrokeMappingProvider providerFor(@Nonnull OSFamily osFamily, @Nonnull Locale locale) { LOGGER.finer("providing keystroke mappings for OS=" + osFamily + ", locale=" + locale); for (String name : generateNamesFrom(osFamily, locale)) { LOGGER.finer("trying >" + name + "<"); String typeName = checkNotNull(name); KeyStrokeMappingProvider provider = factory.createProvider(typeName); if (provider != null) { LOGGER.finer("created successfully."); return provider; } } return new KeyStrokeMappingProvider_en(); } }
924213ff7610b1398d6a20436c5f28b2fd8dc626
2,174
java
Java
src/test/java/pl/lodz/p/michalsosn/io/BufferedImageIOTest.java
michalsosn/lampek
1fa04802f95b1a16c6d9f2067ad2382bcc527f3b
[ "Apache-2.0" ]
null
null
null
src/test/java/pl/lodz/p/michalsosn/io/BufferedImageIOTest.java
michalsosn/lampek
1fa04802f95b1a16c6d9f2067ad2382bcc527f3b
[ "Apache-2.0" ]
null
null
null
src/test/java/pl/lodz/p/michalsosn/io/BufferedImageIOTest.java
michalsosn/lampek
1fa04802f95b1a16c6d9f2067ad2382bcc527f3b
[ "Apache-2.0" ]
null
null
null
33.446154
82
0.580037
1,002,127
package pl.lodz.p.michalsosn.io; import org.junit.Test; import pl.lodz.p.michalsosn.domain.image.channel.Image; import pl.lodz.p.michalsosn.domain.image.channel.ImageVisitor; import pl.lodz.p.michalsosn.domain.Lift; import java.io.IOException; import java.nio.file.Path; import java.util.function.IntUnaryOperator; import java.util.stream.Stream; import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.MatcherAssert.assertThat; import static pl.lodz.p.michalsosn.io.BufferedImageIO.readImage; import static pl.lodz.p.michalsosn.io.BufferedImageIO.writeImage; /** * @author Michał Sośnicki */ public class BufferedImageIOTest { @Test public void testReadImage() throws Exception { try (Stream<Path> paths = ResourceSet.listResources(ResourceSet.IMAGES)) { paths.forEach(path -> { try { System.out.println("Test reading: " + path); Image image = readImage(path); String type = image.accept(ImageVisitor.imageVisitor( grayImage -> "Gray", rgbImage -> "RGB" )); System.out.println("Image type: " + type); image.map(Lift.lift(IntUnaryOperator.identity())); // dummy op } catch (IOException ex) { throw new AssertionError("Reading failed", ex); } }); } } @Test public void testReadWriteImage() throws Exception { try (Stream<Path> paths = ResourceSet.listResources(ResourceSet.IMAGES)) { paths.forEach(path -> { try { System.out.println("Test writing: " + path); Image image = readImage(path); Path writePath = ResourceSet.tempResource(); writeImage(image, writePath, "png"); Image recovered = readImage(writePath); assertThat(recovered, is(image)); } catch (IOException ex) { throw new AssertionError("IO operation failed", ex); } }); }; } }
924214441ab5f3b049a0651e4ea2e70c8be0befc
323
java
Java
Silc/uk/ac/derby/ldi/sili/vm/instructions/OpNeq.java
cristiantobol/LDI
8f03abff49c1998a01f0203e76328252365a1bc8
[ "Apache-2.0" ]
1
2020-08-29T22:24:59.000Z
2020-08-29T22:24:59.000Z
Silc/uk/ac/derby/ldi/sili/vm/instructions/OpNeq.java
cristiantobol/LDI
8f03abff49c1998a01f0203e76328252365a1bc8
[ "Apache-2.0" ]
null
null
null
Silc/uk/ac/derby/ldi/sili/vm/instructions/OpNeq.java
cristiantobol/LDI
8f03abff49c1998a01f0203e76328252365a1bc8
[ "Apache-2.0" ]
8
2017-03-22T09:06:39.000Z
2020-04-18T13:13:33.000Z
26.916667
49
0.76161
1,002,128
package uk.ac.derby.ldi.sili.vm.instructions; import uk.ac.derby.ldi.sili.vm.Context; import uk.ac.derby.ldi.sili.vm.Instruction; public class OpNeq extends Instruction { private final static long serialVersionUID = 0; public final void execute(Context context) { context.push(context.pop().neq(context.pop())); } }
9242154c2b0ccb8c637bb2784d65a7212d86c770
24,370
java
Java
runelite-client/src/main/java/net/runelite/client/plugins/dynamicmaxhit/DynamicMaxHit.java
whs/runelite
2ca1020939029c0a5351e2eecde581944d4130c2
[ "BSD-2-Clause" ]
7
2019-12-15T01:04:20.000Z
2021-02-09T22:27:51.000Z
runelite-client/src/main/java/net/runelite/client/plugins/dynamicmaxhit/DynamicMaxHit.java
whs/runelite
2ca1020939029c0a5351e2eecde581944d4130c2
[ "BSD-2-Clause" ]
2
2019-09-29T01:40:15.000Z
2019-12-05T00:06:41.000Z
runelite-client/src/main/java/net/runelite/client/plugins/dynamicmaxhit/DynamicMaxHit.java
whs/runelite
2ca1020939029c0a5351e2eecde581944d4130c2
[ "BSD-2-Clause" ]
17
2019-07-25T07:40:18.000Z
2022-02-06T15:26:20.000Z
27.883295
144
0.717275
1,002,129
/* * Copyright (c) 2019, ganom <https://github.com/Ganom> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ package net.runelite.client.plugins.dynamicmaxhit; import com.google.common.collect.ImmutableList; import com.google.inject.Provides; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import javax.inject.Inject; import lombok.AccessLevel; import lombok.Getter; import lombok.extern.slf4j.Slf4j; import net.runelite.api.Actor; import net.runelite.api.ChatMessageType; import net.runelite.api.Client; import net.runelite.api.GameState; import net.runelite.api.ItemDefinition; import net.runelite.api.ItemID; import net.runelite.api.Player; import net.runelite.api.events.AnimationChanged; import net.runelite.api.events.ChatMessage; import net.runelite.api.events.ConfigChanged; import net.runelite.api.events.GameStateChanged; import net.runelite.api.events.GameTick; import net.runelite.api.events.PlayerDespawned; import net.runelite.api.events.PlayerMenuOptionClicked; import net.runelite.api.events.PlayerSpawned; import net.runelite.api.events.SpotAnimationChanged; import net.runelite.api.kit.KitType; import net.runelite.api.util.Text; import net.runelite.client.config.ConfigManager; import net.runelite.client.eventbus.EventBus; import net.runelite.client.game.ItemManager; import net.runelite.client.menus.MenuManager; import net.runelite.client.plugins.Plugin; import net.runelite.client.plugins.PluginDescriptor; import net.runelite.client.plugins.PluginType; import static net.runelite.client.plugins.dynamicmaxhit.Utils.getTrueHp; import static net.runelite.client.plugins.dynamicmaxhit.Utils.predictOffensivePrayer; import net.runelite.client.ui.overlay.OverlayManager; import net.runelite.http.api.hiscore.HiscoreClient; import net.runelite.http.api.hiscore.HiscoreResult; import net.runelite.http.api.item.ItemEquipmentStats; import net.runelite.http.api.item.ItemStats; @PluginDescriptor( name = "Dynamic Max Hit", description = "Dynamic Max Hit Calculations", tags = {"broken", "op", "shit"}, type = PluginType.PVP, enabledByDefault = false ) @Slf4j public class DynamicMaxHit extends Plugin { private static final String CALC = "Max Hit"; private static final double SPEC_PER_TICK = 0.2; private static final HiscoreClient HISCORE_CLIENT = new HiscoreClient(); private static final List<Integer> NORMAL_VOID = ImmutableList.of(ItemID.VOID_KNIGHT_TOP, ItemID.VOID_KNIGHT_ROBE, ItemID.VOID_KNIGHT_GLOVES); private static final List<Integer> ELITE_VOID = ImmutableList.of(ItemID.ELITE_VOID_TOP, ItemID.ELITE_VOID_ROBE, ItemID.VOID_KNIGHT_GLOVES); private static final List<Integer> DHAROK = ImmutableList.of( ItemID.DHAROKS_GREATAXE, ItemID.DHAROKS_GREATAXE_25, ItemID.DHAROKS_GREATAXE_50, ItemID.DHAROKS_GREATAXE_75, ItemID.DHAROKS_GREATAXE_100, ItemID.DHAROKS_HELM, ItemID.DHAROKS_HELM_25, ItemID.DHAROKS_HELM_50, ItemID.DHAROKS_HELM_75, ItemID.DHAROKS_HELM_100, ItemID.DHAROKS_PLATEBODY, ItemID.DHAROKS_PLATEBODY_25, ItemID.DHAROKS_PLATEBODY_50, ItemID.DHAROKS_PLATEBODY_75, ItemID.DHAROKS_PLATEBODY_100, ItemID.DHAROKS_PLATELEGS, ItemID.DHAROKS_PLATELEGS_25, ItemID.DHAROKS_PLATELEGS_50, ItemID.DHAROKS_PLATELEGS_75, ItemID.DHAROKS_PLATELEGS_100 ); private static final String ANTIFIRE_DRINK_MESSAGE = "You drink some of your antifire potion."; private static final String ANTIFIRE_EXPIRED_MESSAGE = "<col=7f007f>Your antifire potion has expired.</col>"; private static final String EXTENDED_ANTIFIRE_DRINK_MESSAGE = "You drink some of your extended antifire potion."; private static final String EXTENDED_SUPER_ANTIFIRE_DRINK_MESSAGE = "You drink some of your extended super antifire potion."; private static final String SUPER_ANTIFIRE_DRINK_MESSAGE = "You drink some of your super antifire potion"; private static final String SUPER_ANTIFIRE_EXPIRED_MESSAGE = "<col=7f007f>Your super antifire potion has expired.</col>"; @Inject private Client client; @Inject private EventBus eventBus; @Inject private ItemManager itemManager; @Inject private OverlayManager overlayManager; @Inject private AttackerOverlay attackerOverlay; @Inject private MenuManager menuManager; @Inject private DynamicMaxHitConfig config; @Getter(AccessLevel.PACKAGE) private Map<String, Victim> victims = new HashMap<>(); private boolean antiFireActive; private ExecutorService httpExecutor = Executors.newFixedThreadPool(100); private Map<String, HiscoreResult> resultCache = new HashMap<>(); private boolean enablePrayer; private boolean enablePotions; @Provides DynamicMaxHitConfig getConfig(ConfigManager configManager) { return configManager.getConfig(DynamicMaxHitConfig.class); } @Override protected void startUp() { addSubscriptions(); victims.clear(); overlayManager.add(attackerOverlay); menuManager.addPlayerMenuItem(CALC); if (client.getGameState() == GameState.LOGGED_IN) { client.getPlayers().forEach(player -> { if (client.getLocalPlayer() == player) { return; } final Victim victim = new Victim(player); victims.put(victim.getName(), victim); }); } } @Override protected void shutDown() { eventBus.unregister(this); overlayManager.remove(attackerOverlay); menuManager.removePlayerMenuItem(CALC); } private void addSubscriptions() { eventBus.subscribe(PlayerSpawned.class, this, this::onPlayerSpawned); eventBus.subscribe(GameStateChanged.class, this, this::onGameStateChanged); eventBus.subscribe(PlayerDespawned.class, this, this::onPlayerDespawned); eventBus.subscribe(GameTick.class, this, this::onGameTick); eventBus.subscribe(AnimationChanged.class, this, this::onAnimationChanged); eventBus.subscribe(SpotAnimationChanged.class, this, this::onSpotAnimationChanged); eventBus.subscribe(ChatMessage.class, this, this::onChatMessage); eventBus.subscribe(PlayerMenuOptionClicked.class, this, this::onPlayerMenuOptionClicked); eventBus.subscribe(ConfigChanged.class, this, this::onConfigChanged); } private void onConfigChanged(ConfigChanged event) { if (!event.getGroup().equals("dynamicMaxHit")) { return; } this.enablePotions = config.enablePotions(); this.enablePrayer = config.enablePrayer(); } private void onPlayerMenuOptionClicked(PlayerMenuOptionClicked event) { if (event.getMenuOption().equals(CALC)) { final Victim victim = victims.getOrDefault(Text.standardize(event.getMenuTarget()), null); if (victim == null) { return; } updateStats(victim); victim.setManual(true); } } private void onChatMessage(ChatMessage event) { if (event.getType() != ChatMessageType.SPAM && event.getType() != ChatMessageType.GAMEMESSAGE) { return; } final String msg = event.getMessage(); switch (msg) { case ANTIFIRE_DRINK_MESSAGE: case EXTENDED_ANTIFIRE_DRINK_MESSAGE: case SUPER_ANTIFIRE_DRINK_MESSAGE: case EXTENDED_SUPER_ANTIFIRE_DRINK_MESSAGE: antiFireActive = true; break; case ANTIFIRE_EXPIRED_MESSAGE: case SUPER_ANTIFIRE_EXPIRED_MESSAGE: antiFireActive = false; break; } } private void onSpotAnimationChanged(SpotAnimationChanged event) { final Actor actor = event.getActor(); if (victims.isEmpty()) { return; } if (actor.getSpotAnimation() == 111) { final Victim victim = victims.getOrDefault(actor.getName(), null); if (victim == null) { return; } victim.setCharged(true); } } private void onAnimationChanged(AnimationChanged event) { final Actor actor = event.getActor(); if (actor.getInteracting() != client.getLocalPlayer() || !(actor instanceof Player) || actor.getAnimation() == -1) { return; } final Victim victim = victims.get(actor.getName()); if (victim == null) { return; } if (victim.getPlayer().getInteracting() != null && victim.getPlayer().getInteracting() == client.getLocalPlayer()) { if (victim.getSkills() == null) { updateStats(victim); } victim.setAttacking(true); victim.setTimer(16); } } private void onGameStateChanged(GameStateChanged event) { if (event.getGameState() == GameState.LOGGED_IN) { return; } victims.clear(); } private void onPlayerSpawned(PlayerSpawned event) { final Player player = event.getPlayer(); if (client.getLocalPlayer() == player) { return; } final Victim victim = new Victim(player); victims.put(victim.getName(), victim); } private void onPlayerDespawned(PlayerDespawned event) { final Player player = event.getPlayer(); victims.remove(Text.standardize(player.getName())); } private void onGameTick(GameTick event) { if (victims.isEmpty() || client.getLocalPlayer() == null) { return; } victims.values().forEach((v) -> { if (!v.isAttacking() && !v.isManual()) { return; } update(v); }); } private void update(Victim player) { reset(player); if (player.getSkills() == null) { return; } updateSpec(player); updatePlayerGear(player); updateTimers(player); updateAttackStyle(player); updateWeakness(player); updatePredictedMagic(player); player.setPredictedPrayer(predictOffensivePrayer(player.getPrayerLevel(), player.getAttackStyle())); player.setPotionBoost(updatePotFormula(player)); updateMaxHitMelee(player); updateMaxHitMagic(player); updateSpecMaxHit(player); if (client.isPrayerActive(player.getAttackStyle().getPrayer())) { player.setMaxHit(Math.floor(player.getMaxHit() * 0.6)); player.setSpecMaxHit(Math.floor(player.getSpecMaxHit() * 0.6)); } } private void reset(Victim player) { player.reset(); } private void updateSpec(Victim player) { if (player.getSpec() < 100) { player.setSpec(player.getSpec() + SPEC_PER_TICK); } else if (player.getSpec() > 100) { player.setSpec(100); } } private void updateStats(Victim player) { if (resultCache.containsKey(player.getName())) { player.setSkills(resultCache.get(player.getName())); player.setPrayerLevel(player.getSkills().getPrayer().getLevel()); player.setHpLevel(player.getSkills().getHitpoints().getLevel()); return; } httpExecutor.submit(() -> { HiscoreResult result; do { try { result = HISCORE_CLIENT.lookup(player.getName()); } catch (IOException ex) { result = null; try { Thread.sleep(1000); } catch (InterruptedException e) { e.printStackTrace(); } } } while (result == null); resultCache.put(player.getName(), result); player.setSkills(result); player.setPrayerLevel(player.getSkills().getPrayer().getLevel()); player.setHpLevel(player.getSkills().getHitpoints().getLevel()); }); } private void updateTimers(Victim player) { if (player.getTimer() > 0) { player.setTimer(player.getTimer() - 1); } else { player.setAttacking(false); } } private void updatePlayerGear(Victim player) { if (player.getPlayer().getPlayerAppearance() == null) { return; } final List<Integer> items = new ArrayList<>(); for (KitType kitType : KitType.values()) { if (kitType == KitType.RING || kitType == KitType.AMMUNITION) { continue; } final int id = player.getPlayer().getPlayerAppearance().getEquipmentId(kitType); if (id == -1) { continue; } if (kitType.equals(KitType.WEAPON)) { player.setWeapon(id); switch (id) { case ItemID.HEAVY_BALLISTA: case ItemID.HEAVY_BALLISTA_23630: case ItemID.LIGHT_BALLISTA: player.setRangeStr(player.getRangeStr() + 150); break; case ItemID.MAPLE_LONGBOW: case ItemID.MAPLE_SHORTBOW: player.setRangeStr(player.getRangeStr() + 31); break; case ItemID.MAGIC_SHORTBOW: case ItemID.MAGIC_SHORTBOW_20558: case ItemID.MAGIC_SHORTBOW_I: player.setRangeStr(player.getRangeStr() + 55); break; case ItemID.DARK_BOW: case ItemID.DARK_BOW_12765: case ItemID.DARK_BOW_12766: case ItemID.DARK_BOW_12767: case ItemID.DARK_BOW_12768: case ItemID.DARK_BOW_20408: player.setRangeStr(player.getRangeStr() + 60); break; case ItemID.RUNE_CROSSBOW: case ItemID.RUNE_CROSSBOW_23601: player.setRangeStr(player.getRangeStr() + 117); break; case ItemID.DRAGON_CROSSBOW: case ItemID.ARMADYL_CROSSBOW: case ItemID.ARMADYL_CROSSBOW_23611: player.setRangeStr(player.getRangeStr() + 122); break; } } if (kitType.equals(KitType.SHIELD)) { player.setShield(id); } final ItemStats item = itemManager.getItemStats(id, false); if (item == null) { log.debug("Item is null: {}", id); continue; } ItemEquipmentStats stats = item.getEquipment(); if (stats == null) { log.debug("Stats are null: {}", item); continue; } items.add(id); player.setSpeed(player.getSpeed() + stats.getAspeed()); player.setMeleeAtkCrush(player.getMeleeAtkCrush() + stats.getAcrush()); player.setMeleeAtkStab(player.getMeleeAtkStab() + stats.getAstab()); player.setMeleeAtkSlash(player.getMeleeAtkSlash() + stats.getAslash()); player.setMeleeAttack(player.getMeleeAttack() + ((stats.getAcrush() + stats.getAslash() + stats.getAstab()) / 3)); player.setMeleeDefCrush(player.getMeleeDefCrush() + stats.getDcrush()); player.setMeleeDefStab(player.getMeleeDefStab() + stats.getDstab()); player.setMeleeDefSlash(player.getMeleeDefSlash() + stats.getDslash()); player.setMeleeDefence(player.getMeleeDefence() + ((stats.getDcrush() + stats.getDslash() + stats.getDstab()) / 3)); player.setMagicAttack(player.getMagicAttack() + stats.getAmagic()); player.setRangeAttack(player.getRangeAttack() + stats.getArange()); player.setMagicDefence(player.getMagicDefence() + stats.getDmagic()); player.setRangeDefence(player.getRangeDefence() + stats.getDrange()); player.setRangeStr(player.getRangeStr() + stats.getRstr()); player.setMeleeStr(player.getMeleeStr() + stats.getStr()); player.setMagicStr(player.getMagicStr() + stats.getMdmg()); } player.setGear(items); updateMeleeStyle(player); } private void updateMeleeStyle(Victim player) { if (player.getMeleeAtkCrush() >= player.getMeleeAtkSlash() && player.getMeleeAtkCrush() >= player.getMeleeAtkStab()) { player.setMeleeStyle(Victim.MeleeStyle.CRUSH); } else if (player.getMeleeAtkSlash() >= player.getMeleeAtkCrush() && player.getMeleeAtkSlash() >= player.getMeleeAtkStab()) { player.setMeleeStyle(Victim.MeleeStyle.SLASH); } else if (player.getMeleeAtkStab() >= player.getMeleeAtkSlash() && player.getMeleeAtkStab() >= player.getMeleeAtkCrush()) { player.setMeleeStyle(Victim.MeleeStyle.STAB); } } private void updateAttackStyle(Victim player) { boolean staff = false; for (int id : player.getGear()) { ItemDefinition def = itemManager.getItemDefinition(id); if (def.getName().toLowerCase().contains("staff")) { player.setAttackStyle(AttackStyle.MAGE); staff = true; break; } } if (staff) { return; } if (player.getMagicStr() >= player.getRangeStr() && player.getMagicStr() >= player.getMeleeStr()) { player.setAttackStyle(AttackStyle.MAGE); } else if (player.getRangeStr() >= player.getMagicStr() && player.getRangeStr() >= player.getMeleeStr()) { player.setAttackStyle(AttackStyle.RANGE); } else if (player.getMeleeStr() >= player.getMagicStr() && player.getMeleeStr() >= player.getRangeStr()) { player.setAttackStyle(AttackStyle.MELEE); } } private void updateWeakness(Victim player) { if (player.getMagicDefence() <= player.getRangeDefence() && player.getMagicDefence() <= player.getMeleeDefence()) { player.setWeakness(AttackStyle.MAGE); } else if (player.getRangeDefence() <= player.getMagicDefence() && player.getRangeDefence() <= player.getMeleeDefence()) { player.setWeakness(AttackStyle.RANGE); } else if (player.getMeleeDefence() <= player.getRangeDefence() && player.getMeleeDefence() <= player.getMagicDefence()) { player.setWeakness(AttackStyle.MELEE); } } private void updatePredictedMagic(Victim player) { final int magicLevel = player.getSkills() != null ? player.getSkills().getMagic().getLevel() : 0; if (magicLevel >= 70 && magicLevel <= 81) { player.setPredictedSpell(Spells.ICE_BURST); } else if (magicLevel >= 82 && magicLevel <= 93) { player.setPredictedSpell(Spells.ICE_BLITZ); } else if (magicLevel >= 94) { player.setPredictedSpell(Spells.ICE_BARRAGE); } if (player.getShield() != ItemID.TOME_OF_FIRE) { return; } if (magicLevel >= 59 && magicLevel <= 74) { player.setPredictedSpell(Spells.FIRE_BLAST); } else if (magicLevel >= 75 && magicLevel <= 94) { player.setPredictedSpell(Spells.FIRE_WAVE); } else if (magicLevel >= 95) { player.setPredictedSpell(Spells.FIRE_SURGE); } if (!player.isCharged()) { return; } if (magicLevel >= 60) { player.setPredictedSpell(Spells.FLAMES_ZAMORAK); } } private int updatePotFormula(Victim player) { final Potions pot; switch (player.getAttackStyle()) { case RANGE: pot = Potions.RANGING_POTION; return (int) Math.floor(pot.getA() + pot.getB() * player.getSkills().getSkill(pot.getSkill()).getLevel()); case MELEE: pot = Potions.SUPER_COMBAT; return (int) Math.floor(pot.getA() + pot.getB() * player.getSkills().getSkill(pot.getSkill()).getLevel()); default: return 0; } } private void updateMaxHitMelee(Victim player) { if (player.getPredictedPrayer() == null) { return; } double prayerBonus = 1; if (this.enablePrayer) { switch (player.getPredictedPrayer()) { case SHARP_EYE: case BURST_OF_STRENGTH: prayerBonus = 1.05; break; case HAWK_EYE: case SUPERHUMAN_STRENGTH: prayerBonus = 1.1; break; case EAGLE_EYE: case ULTIMATE_STRENGTH: prayerBonus = 1.15; break; case CHIVALRY: prayerBonus = 1.18; break; case PIETY: case RIGOUR: prayerBonus = 1.23; break; } } double skillPower = 0; double estimatedStyle = 8; switch (player.getAttackStyle()) { case RANGE: skillPower = player.getSkills() != null ? player.getSkills().getRanged().getLevel() : 0; break; case MELEE: skillPower = player.getSkills() != null ? player.getSkills().getStrength().getLevel() : 0; estimatedStyle = 11; break; } if (this.enablePotions) { skillPower += player.getPotionBoost(); } double estimatedLevel = skillPower * prayerBonus; estimatedLevel = Math.floor(estimatedLevel); estimatedLevel += estimatedStyle; if (player.getGear().containsAll(NORMAL_VOID)) { estimatedLevel *= 1.10; } else if (player.getGear().containsAll(ELITE_VOID)) { estimatedLevel *= 1.10; if (player.getAttackStyle() == AttackStyle.RANGE) { estimatedLevel *= 1.125; } } double maxHit = 0; switch (player.getAttackStyle()) { case MELEE: maxHit = 0.5 + estimatedLevel * (player.getMeleeStr() + 64) / 640; break; case RANGE: maxHit = 0.5 + estimatedLevel * (player.getRangeStr() + 64) / 640; break; } maxHit = Math.floor(maxHit); int dharokPieces = 0; dharokPieces += player.getGear().stream().filter(DHAROK::contains).count(); if (dharokPieces == 4) { final double var1 = player.getHpLevel(); final double var2 = getTrueHp(player.getPlayer(), player.getHpLevel()); final double var3 = (var1 - var2) / 100; final double var4 = (var1 / 100); maxHit *= 1 + (var3 * var4); } if ((player.getGear().contains(ItemID.TZHAARKETOM) || player.getGear().contains(ItemID.TZHAARKETOM_T)) && (player.getGear().contains(ItemID.BERSERKER_NECKLACE) || player.getGear().contains(ItemID.BERSERKER_NECKLACE_OR))) { maxHit *= 1.2; } maxHit = Math.floor(maxHit); player.setMaxHit(maxHit); } private void updateSpecMaxHit(Victim player) { double maxHit = player.getMaxHit(); switch (player.getWeapon()) { case ItemID.ARMADYL_GODSWORD: case ItemID.ARMADYL_GODSWORD_20593: case ItemID.ARMADYL_GODSWORD_22665: case ItemID.ARMADYL_GODSWORD_OR: maxHit *= 1.10; maxHit = Math.floor(maxHit); maxHit *= 1.25; break; case ItemID.BANDOS_GODSWORD: case ItemID.BANDOS_GODSWORD_20782: case ItemID.BANDOS_GODSWORD_21060: case ItemID.BANDOS_GODSWORD_OR: maxHit *= 1.10; maxHit = Math.floor(maxHit); maxHit *= 1.10; break; case ItemID.BARRELCHEST_ANCHOR: case ItemID.BARRELCHEST_ANCHOR_10888: case ItemID.DRAGON_HALBERD: case ItemID.SARADOMIN_GODSWORD: case ItemID.SARADOMIN_GODSWORD_OR: case ItemID.ZAMORAK_GODSWORD: case ItemID.ZAMORAK_GODSWORD_OR: case ItemID.SARADOMIN_SWORD: maxHit *= 1.10; break; case ItemID.DRAGON_CROSSBOW: case ItemID.ARMADYL_CROSSBOW: case ItemID.ARMADYL_CROSSBOW_23611: case ItemID.RUNE_CLAWS: maxHit *= 1.15; break; case ItemID.DRAGON_LONGSWORD: case ItemID.DRAGON_SWORD: case ItemID.DRAGON_SWORD_21206: case ItemID.LIGHT_BALLISTA: case ItemID.HEAVY_BALLISTA: case ItemID.HEAVY_BALLISTA_23630: case ItemID.SARADOMINS_BLESSED_SWORD: maxHit *= 1.25; break; case ItemID.DARK_BOW: case ItemID.DARK_BOW_12765: case ItemID.DARK_BOW_12766: case ItemID.DARK_BOW_12767: case ItemID.DARK_BOW_12768: case ItemID.DARK_BOW_20408: maxHit *= 1.30; break; case ItemID.TOXIC_BLOWPIPE: case ItemID.DRAGON_MACE: maxHit *= 1.50; case ItemID.DRAGON_KNIFE: case ItemID.DRAGON_KNIFE_22812: case ItemID.DRAGON_KNIFE_22814: case ItemID.DRAGON_KNIFEP_22808: case ItemID.DRAGON_KNIFEP_22810: case ItemID.GRANITE_MAUL: case ItemID.GRANITE_MAUL_12848: case ItemID.GRANITE_MAUL_20557: case ItemID.GRANITE_MAUL_24225: case ItemID.GRANITE_MAUL_24227: case ItemID.DRAGON_CLAWS: case ItemID.DRAGON_CLAWS_20784: case ItemID.DRAGON_DAGGER: case ItemID.DRAGON_DAGGER_20407: case ItemID.DRAGON_DAGGERP: case ItemID.DRAGON_DAGGERP_5680: case ItemID.DRAGON_DAGGERP_5698: maxHit *= 2.0; break; } maxHit = Math.floor(maxHit); switch (player.getWeapon()) { case ItemID.RUNE_CROSSBOW: case ItemID.RUNE_CROSSBOW_23601: if (!antiFireActive) { double rangeLevel = player.getSkills() != null ? player.getSkills().getRanged().getLevel() : 0; maxHit += rangeLevel * 0.2; } break; } maxHit = Math.floor(maxHit); player.setSpecMaxHit(maxHit); } private void updateMaxHitMagic(Victim player) { if (player.getAttackStyle() != AttackStyle.MAGE || player.getGear().isEmpty()) { return; } double maxHit = player.getPredictedSpell().getMaxHit(); maxHit *= (1 + (float) player.getMagicStr() / 100); maxHit = Math.floor(maxHit); if (player.getShield() == ItemID.TOME_OF_FIRE) { maxHit *= 1.5; } maxHit = Math.floor(maxHit); player.setMaxHit(maxHit); } }
92421570ee6691c313b7157b760e91c00fde3b88
139
java
Java
source/crypto/crypto-framework/src/main/java/com/jd/blockchain/crypto/RandomGenerator.java
Diffblue-benchmarks/blockchain-jd-com-jdchain
fa99325a93a38be04cd80a1db7c0077d6dbfc374
[ "Apache-2.0" ]
3
2020-11-03T03:54:36.000Z
2021-08-13T07:20:50.000Z
source/crypto/crypto-framework/src/main/java/com/jd/blockchain/crypto/RandomGenerator.java
Diffblue-benchmarks/blockchain-jd-com-jdchain
fa99325a93a38be04cd80a1db7c0077d6dbfc374
[ "Apache-2.0" ]
1
2021-01-17T15:09:42.000Z
2021-01-17T15:09:42.000Z
source/crypto/crypto-framework/src/main/java/com/jd/blockchain/crypto/RandomGenerator.java
Diffblue-benchmarks/blockchain-jd-com-jdchain
fa99325a93a38be04cd80a1db7c0077d6dbfc374
[ "Apache-2.0" ]
11
2020-03-19T00:07:12.000Z
2022-03-25T08:39:18.000Z
13.9
34
0.726619
1,002,130
package com.jd.blockchain.crypto; public interface RandomGenerator { byte[] nextBytes(int size); void nextBytes(byte[] buffer); }
924217336d7da61904a5b64394b597a000835dc9
1,772
java
Java
src/main/java/com/anchor/api/services/payments/TokenParms.java
vaibhavantil2/stellar_anchor_backend
79b8a5d6cb137d9c932b50338e59be59d285547f
[ "MIT" ]
null
null
null
src/main/java/com/anchor/api/services/payments/TokenParms.java
vaibhavantil2/stellar_anchor_backend
79b8a5d6cb137d9c932b50338e59be59d285547f
[ "MIT" ]
4
2021-12-14T21:53:11.000Z
2022-03-15T02:46:16.000Z
src/main/java/com/anchor/api/services/payments/TokenParms.java
malengatiger/stellar_anchor_backend
79b8a5d6cb137d9c932b50338e59be59d285547f
[ "MIT" ]
1
2021-12-22T06:58:02.000Z
2021-12-22T06:58:02.000Z
26.848485
91
0.715011
1,002,131
package com.anchor.api.services.payments; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; @XmlRootElement() public class TokenParms { private ParamEncryption paramEncryption; public TokenParms(ParamEncryption paramEncryption) { this.paramEncryption = paramEncryption; } public ParamEncryption getParamEncryption() { return paramEncryption; } public void setParamEncryption(ParamEncryption value) { this.paramEncryption = value; } } // ParamEncryption.java class ParamEncryption { private Parameters parameters; private String xmlns; public ParamEncryption(Parameters parameters) { this.parameters = parameters; } public Parameters getParameters() { return parameters; } public void setParameters(Parameters value) { this.parameters = value; } public String getXmlns() { return xmlns; } public void setXmlns(String value) { this.xmlns = value; } } // Parameters.java class Parameters { private Parameter parameter; public Parameters(Parameter parameter) { this.parameter = parameter; } public Parameter getParameter() { return parameter; } public void setParameter(Parameter value) { this.parameter = value; } } // Parameter.java class Parameter { private String paramKey; private String paramValue; public Parameter(String paramKey, String paramValue) { this.paramKey = paramKey; this.paramValue = paramValue; } public String getParamKey() { return paramKey; } public void setParamKey(String value) { this.paramKey = value; } public String getParamValue() { return paramValue; } public void setParamValue(String value) { this.paramValue = value; } }
9242175e1fd2970e39a00f0735b4ac2ff35ec9be
976
java
Java
Examples/src/main/java/com/groupdocs/watermark/examples/advanced_usage/adding_watermarks/adding_image_watermarks/AddImageWatermark.java
groupdocs-watermark/GroupDocs.Watermark-for-Java
fed5e7f0ed1c05bfb0e3890bb03179d4dc2d90cc
[ "MIT" ]
5
2020-12-05T08:41:26.000Z
2021-11-29T11:02:41.000Z
Examples/src/main/java/com/groupdocs/watermark/examples/advanced_usage/adding_watermarks/adding_image_watermarks/AddImageWatermark.java
groupdocs-watermark/GroupDocs.Watermark-for-Java
fed5e7f0ed1c05bfb0e3890bb03179d4dc2d90cc
[ "MIT" ]
null
null
null
Examples/src/main/java/com/groupdocs/watermark/examples/advanced_usage/adding_watermarks/adding_image_watermarks/AddImageWatermark.java
groupdocs-watermark/GroupDocs.Watermark-for-Java
fed5e7f0ed1c05bfb0e3890bb03179d4dc2d90cc
[ "MIT" ]
3
2018-01-29T12:08:28.000Z
2019-11-01T09:49:49.000Z
36.148148
124
0.713115
1,002,132
package com.groupdocs.watermark.examples.advanced_usage.adding_watermarks.adding_image_watermarks; import com.groupdocs.watermark.Watermarker; import com.groupdocs.watermark.examples.Constants; import com.groupdocs.watermark.watermarks.ImageWatermark; public class AddImageWatermark { /** * This example shows how to add image watermark from a local file. */ public static void run() { // Constants.InPresentationPptx is an absolute or relative path to your document. Ex: "C:\\Docs\\presentation.pptx" Watermarker watermarker = new Watermarker(Constants.InPresentationPptx); // Use path to the image as constructor parameter ImageWatermark watermark = new ImageWatermark(Constants.WatermarkJpg); // Add watermark to the document watermarker.add(watermark); watermarker.save(Constants.OutPresentationPptx); watermark.close(); watermarker.close(); } }
924217cb65694f6a0fdd5c1126769609d20342fe
7,460
java
Java
omtd-registry-service/src/main/java/eu/openminted/registry/service/other/CorpusBuildingStateServiceImpl.java
antleb/omtd-registry
359203dadedaa94a56161ec05aaa56a2b630f5eb
[ "Apache-2.0" ]
null
null
null
omtd-registry-service/src/main/java/eu/openminted/registry/service/other/CorpusBuildingStateServiceImpl.java
antleb/omtd-registry
359203dadedaa94a56161ec05aaa56a2b630f5eb
[ "Apache-2.0" ]
25
2017-06-15T14:01:08.000Z
2021-12-09T20:05:40.000Z
omtd-registry-service/src/main/java/eu/openminted/registry/service/other/CorpusBuildingStateServiceImpl.java
antleb/omtd-registry
359203dadedaa94a56161ec05aaa56a2b630f5eb
[ "Apache-2.0" ]
2
2017-08-02T11:12:22.000Z
2017-11-03T08:19:17.000Z
41.444444
119
0.653083
1,002,133
package eu.openminted.registry.service.other; import eu.openminted.corpus.CorpusBuildingState; import eu.openminted.registry.core.domain.*; import eu.openminted.registry.core.service.*; import eu.openminted.registry.service.CorpusBuildingStatusService; import eu.openminted.registry.service.omtd.OmtdGenericService; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.mitre.openid.connect.model.OIDCAuthenticationToken; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Primary; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.security.core.context.SecurityContextHolder; import org.springframework.stereotype.Service; import java.net.UnknownHostException; import java.util.*; import java.util.concurrent.ExecutionException; import java.util.concurrent.Future; /** * Created by me :) on 30/8/2017. */ @Service("corpusBuildingStateService") @Primary public class CorpusBuildingStateServiceImpl extends AbstractGenericService<CorpusBuildingState> implements ResourceCRUDService<CorpusBuildingState>, CorpusBuildingStatusService { private static final String CORPUS_ID = "corpus_id"; private static final String[] CONNECTORS = {"CORE", "OpenAIRE"}; @Autowired ResourceTypeService resourceTypeService; private Logger logger = LogManager.getLogger(OmtdGenericService.class); public CorpusBuildingStateServiceImpl() { super(CorpusBuildingState.class); } @Override // @PostAuthorize("returnObject!=null?returnObject.token==authentication.sub:true") public CorpusBuildingState get(String id) { CorpusBuildingState resource; try { SearchService.KeyValue kv = new SearchService.KeyValue(CORPUS_ID, id); resource = parserPool.deserialize(searchService.searchId(getResourceType(), kv), typeParameterClass).get(); } catch (UnknownHostException | ExecutionException | InterruptedException e) { logger.fatal("corpusBuildingState get fatal error", e); throw new ServiceException(e); } return resource; } @Override @PreAuthorize("hasRole('ROLE_ADMIN')") public Browsing getAll(FacetFilter filter) { filter.setBrowseBy(getBrowseBy()); return getResults(filter); } @Override public Browsing getMy(FacetFilter filter) { OIDCAuthenticationToken authentication = (OIDCAuthenticationToken) SecurityContextHolder.getContext() .getAuthentication(); filter.addFilter("token", authentication.getSub()); return getResults(filter); } @Override public CorpusBuildingState add(CorpusBuildingState resource) { // OIDCAuthenticationToken authentication = (OIDCAuthenticationToken) SecurityContextHolder.getContext() // .getAuthentication(); // resource.setToken(authentication.getSub()); Resource resourceDb = new Resource(); Future<String> serialized = parserPool.serialize(resource, ParserService.ParserServiceTypes.JSON); try { resourceDb.setCreationDate(new Date()); resourceDb.setModificationDate(new Date()); resourceDb.setPayloadFormat("json"); resourceDb.setResourceType(resourceType); resourceDb.setVersion("not_set"); resourceDb.setId(resource.getId()); resourceDb.setPayload(serialized.get()); resourceService.addResource(resourceDb); return resource; } catch (InterruptedException | ExecutionException e) { throw new ServiceException(e); } } @Override public CorpusBuildingState update(CorpusBuildingState resources) { CorpusBuildingState previous; Resource $resource; SearchService.KeyValue kv = new SearchService.KeyValue( CORPUS_ID, resources.getId() ); try { $resource = searchService.searchId(getResourceType(), kv); previous = parserPool.deserialize($resource, typeParameterClass).get(); Resource resource = new Resource(); if ($resource == null) { throw new ServiceException(getResourceType() + " does not exists"); } else { if (resources.getTotalHits() == null) resources.setTotalHits(previous.getTotalHits()); if (resources.getTotalRejected() == null) resources.setTotalRejected(previous.getTotalRejected()); if (resources.getMetadataProgress() == null) resources.setMetadataProgress(previous.getMetadataProgress()); if (resources.getFulltextProgress() == null) resources.setFulltextProgress(previous.getFulltextProgress()); String serialized = parserPool.serialize(resources, ParserService.ParserServiceTypes.JSON).get(); if (!serialized.equals("failed")) { resource.setPayload(serialized); } else { throw new ServiceException("Serialization failed"); } resource = $resource; //resource.setModificationDate(new Date()); resource.setCreationDate(new Date()); resource.setPayloadFormat("json"); resource.setId($resource.getId()); resource.setPayload(serialized); resourceService.updateResource(resource); } } catch (UnknownHostException | ExecutionException | InterruptedException e) { logger.fatal("corpusBuildingState update fatal error", e); throw new ServiceException(e); } return resources; } @Override public void delete(CorpusBuildingState resource) { Resource resource1; try { SearchService.KeyValue kv = new SearchService.KeyValue( CORPUS_ID, resource.getId() ); resource1 = searchService.searchId(getResourceType(), kv); if (resource1 == null) { throw new ServiceException(getResourceType() + " does not exists"); } else { resourceService.deleteResource(resource.getId()); } } catch (UnknownHostException e) { logger.fatal(e); throw new ServiceException(e); } } @Override public String getResourceType() { return "corpusbuildingstate"; } @Override public List<CorpusBuildingState> getAggregate(String id) { List<CorpusBuildingState> resource = new ArrayList<>(); for (String connector : CONNECTORS) { try { SearchService.KeyValue kv = new SearchService.KeyValue(CORPUS_ID, id + "@" + connector); logger.info("Searching for '" + id + "@" + connector + "' to elastic"); Resource state = searchService.searchId(getResourceType(), kv); if (state != null) resource.add(parserPool.deserialize(state, typeParameterClass).get()); } catch (UnknownHostException | ExecutionException | InterruptedException e) { logger.fatal("corpusBuildingState get fatal error", e); throw new ServiceException(e); } } return resource; } }
924219e261dd09659ce3226ffbfae28c0cd9ff26
465
java
Java
addressbook-web-tests/src/test/java/ru/stqa/pft/addressbook/testtwo/TestBaseTwo.java
popowka2/java_my
7d454859615033939cc694d3df6d0cf0deb548ee
[ "Apache-2.0" ]
null
null
null
addressbook-web-tests/src/test/java/ru/stqa/pft/addressbook/testtwo/TestBaseTwo.java
popowka2/java_my
7d454859615033939cc694d3df6d0cf0deb548ee
[ "Apache-2.0" ]
null
null
null
addressbook-web-tests/src/test/java/ru/stqa/pft/addressbook/testtwo/TestBaseTwo.java
popowka2/java_my
7d454859615033939cc694d3df6d0cf0deb548ee
[ "Apache-2.0" ]
null
null
null
20.217391
74
0.72043
1,002,134
package ru.stqa.pft.addressbook.testtwo; import org.testng.annotations.AfterMethod; import org.testng.annotations.BeforeMethod; import ru.stqa.pft.addressbook.appmanagertwo.ApplicationMangerTwo; public class TestBaseTwo { protected final ApplicationMangerTwo app = new ApplicationMangerTwo(); @BeforeMethod public void setUp() throws Exception { app.init(); } @AfterMethod public void tearDown() { app.stop(); } }
924219f2d733b2467df59c9a29958d2e2e7473d2
173
java
Java
arcgistool/src/main/java/cn/sddman/arcgistool/listener/DrawGraphListener.java
lailiaomm/ArcgisTool
7aa6da51e80a6c83401b6bad6a16098dca2d0850
[ "Apache-2.0" ]
91
2018-08-11T08:59:13.000Z
2022-03-21T09:10:18.000Z
arcgistool/src/main/java/cn/sddman/arcgistool/listener/DrawGraphListener.java
lailiaomm/ArcgisTool
7aa6da51e80a6c83401b6bad6a16098dca2d0850
[ "Apache-2.0" ]
19
2018-09-18T01:42:41.000Z
2021-12-20T02:28:00.000Z
arcgistool/src/main/java/cn/sddman/arcgistool/listener/DrawGraphListener.java
lailiaomm/ArcgisTool
7aa6da51e80a6c83401b6bad6a16098dca2d0850
[ "Apache-2.0" ]
17
2018-08-14T09:20:04.000Z
2022-03-07T12:48:03.000Z
21.625
47
0.809249
1,002,135
package cn.sddman.arcgistool.listener; import cn.sddman.arcgistool.common.Variable; public interface DrawGraphListener { void drawEnd(Variable.GraphType graphType); }
92421c61bc584d70afae1c633b1bcf99b4c1fc5e
5,040
java
Java
oak-auth-external/src/test/java/org/apache/jackrabbit/oak/spi/security/authentication/external/ExternalLoginTest.java
stjepanB/jackrabbit-oak
c3a6624bc1d06b1a2166e908758585c5d3ef1f35
[ "Apache-2.0" ]
288
2015-01-11T04:09:03.000Z
2022-03-28T22:20:09.000Z
oak-auth-external/src/test/java/org/apache/jackrabbit/oak/spi/security/authentication/external/ExternalLoginTest.java
stjepanB/jackrabbit-oak
c3a6624bc1d06b1a2166e908758585c5d3ef1f35
[ "Apache-2.0" ]
154
2016-10-30T11:31:04.000Z
2022-03-31T14:20:52.000Z
oak-auth-external/src/test/java/org/apache/jackrabbit/oak/spi/security/authentication/external/ExternalLoginTest.java
stjepanB/jackrabbit-oak
c3a6624bc1d06b1a2166e908758585c5d3ef1f35
[ "Apache-2.0" ]
405
2015-01-15T16:15:56.000Z
2022-03-24T08:27:08.000Z
37.61194
134
0.680556
1,002,136
/* * 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.jackrabbit.oak.spi.security.authentication.external; import javax.jcr.SimpleCredentials; import javax.security.auth.login.LoginException; import org.apache.jackrabbit.api.security.user.Authorizable; import org.apache.jackrabbit.api.security.user.UserManager; import org.apache.jackrabbit.oak.api.ContentSession; import org.apache.jackrabbit.oak.spi.security.authentication.external.basic.DefaultSyncContext; import org.jetbrains.annotations.NotNull; import org.junit.After; import org.junit.Before; import org.junit.Test; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertTrue; /** * ExternalLoginTest... */ public class ExternalLoginTest extends ExternalLoginTestBase { @Before public void before() throws Exception { super.before(); } @After public void after() throws Exception { options.clear(); super.after(); } @Test(expected = LoginException.class) public void testLoginFailed() throws Exception { UserManager userManager = getUserManager(root); try (ContentSession cs = login(new SimpleCredentials("unknown", new char[0]))) { } finally { assertNull(userManager.getAuthorizable(USER_ID)); } } @Test public void testSyncCreateUser() throws Exception { UserManager userManager = getUserManager(root); assertNull(userManager.getAuthorizable(USER_ID)); try (ContentSession cs = login(new SimpleCredentials(USER_ID, new char[0]))) { root.refresh(); assertUser(userManager, idp); } } @Test public void testSyncCreateUserCaseInsensitive() throws Exception { UserManager userManager = getUserManager(root); assertNull(userManager.getAuthorizable(USER_ID)); try (ContentSession cs = login(new SimpleCredentials(USER_ID.toUpperCase(), new char[0]))) { root.refresh(); assertUser(userManager, idp); } } private static void assertUser(@NotNull UserManager userManager, @NotNull ExternalIdentityProvider idp) throws Exception { Authorizable a = userManager.getAuthorizable(USER_ID); assertNotNull(a); ExternalUser user = idp.getUser(USER_ID); for (String prop : user.getProperties().keySet()) { assertTrue(a.hasProperty(prop)); } assertEquals(TEST_CONSTANT_PROPERTY_VALUE, a.getProperty(TEST_CONSTANT_PROPERTY_NAME)[0].getString()); } @Test public void testSyncCreateGroup() throws Exception { UserManager userManager = getUserManager(root); try (ContentSession cs = login(new SimpleCredentials(USER_ID, new char[0]))) { root.refresh(); for (String id : new String[]{"a", "b", "c"}) { assertNotNull(userManager.getAuthorizable(id)); } for (String id : new String[]{"aa", "aaa"}) { assertNull(userManager.getAuthorizable(id)); } } } @Test public void testSyncCreateGroupNesting() throws Exception { syncConfig.user().setMembershipNestingDepth(2); UserManager userManager = getUserManager(root); try (ContentSession cs = login(new SimpleCredentials(USER_ID, new char[0]))) { root.refresh(); for (String id : new String[]{"a", "b", "c", "aa", "aaa"}) { assertNotNull(userManager.getAuthorizable(id)); } } } @Test public void testSyncUpdate() throws Exception { // create user upfront in order to test update mode UserManager userManager = getUserManager(root); ExternalUser externalUser = idp.getUser(USER_ID); Authorizable user = userManager.createUser(externalUser.getId(), null); user.setProperty(DefaultSyncContext.REP_EXTERNAL_ID, getValueFactory().createValue(externalUser.getExternalId().getString())); root.commit(); try (ContentSession cs = login(new SimpleCredentials(USER_ID, new char[0]))) { root.refresh(); assertUser(userManager, idp); } } }
92421d1c5f06b9244382a9bd316239092dd4765b
4,698
java
Java
dingdinghelper/src/main/java/com/ucmap/dingdinghelper/timing/TimingManagerUtil.java
whisper90/DingDingHelper
e5b8f65b4a174c2fd7b7eb10704bdd85c4c78a07
[ "Apache-2.0" ]
36
2020-08-03T03:40:08.000Z
2022-03-10T14:14:53.000Z
dingdinghelper/src/main/java/com/ucmap/dingdinghelper/timing/TimingManagerUtil.java
xueyitao/DingDingHelper
e5b8f65b4a174c2fd7b7eb10704bdd85c4c78a07
[ "Apache-2.0" ]
null
null
null
dingdinghelper/src/main/java/com/ucmap/dingdinghelper/timing/TimingManagerUtil.java
xueyitao/DingDingHelper
e5b8f65b4a174c2fd7b7eb10704bdd85c4c78a07
[ "Apache-2.0" ]
11
2020-05-20T03:32:34.000Z
2022-02-11T11:59:45.000Z
37.285714
97
0.561516
1,002,137
package com.ucmap.dingdinghelper.timing; import android.app.AlarmManager; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.os.Build; import java.util.Calendar; /** */ public class TimingManagerUtil { public static final String ALARM_ACTION = "com.ucmap.dingdinghelper.clock"; public static void resetTiming(Context context, long timeInMillis, Intent intent) { AlarmManager am = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); PendingIntent sender = PendingIntent.getBroadcast(context, intent.getIntExtra("id", 0), intent, PendingIntent.FLAG_CANCEL_CURRENT); int interval = (int) intent.getLongExtra("intervalMillis", 0); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { am.setWindow(AlarmManager.RTC_WAKEUP, timeInMillis, interval, sender); } } public static void cancelTiming(Context context, String action, int id) { Intent intent = new Intent(action); PendingIntent pi = PendingIntent.getBroadcast(context, id, intent, PendingIntent .FLAG_CANCEL_CURRENT); AlarmManager am = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); am.cancel(pi); } /** * @param flag 周期性时间间隔的标志,flag = 0 表示一次性的闹钟, flag = 1 表示每天提醒的闹钟(1天的时间间隔),flag = 2 * 表示按周每周提醒的闹钟(一周的周期性时间间隔) * @param hour 时 * @param minute 分 * @param id 闹钟的id * @param week week=0表示一次性闹钟或者按天的周期性闹钟,非0 的情况下是几就代表以周为周期性的周几的闹钟 */ public static void setTiming(Context context, int flag, int hour, int minute, int id, int week) { AlarmManager am = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); Calendar calendar = Calendar.getInstance(); long intervalMillis = 0; calendar.set(calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH), calendar.get (Calendar.DAY_OF_MONTH), hour, minute, 10); if (flag == 0) { intervalMillis = 0; } else if (flag == 1) { intervalMillis = 24 * 3600 * 1000; } else if (flag == 2) { intervalMillis = 24 * 3600 * 1000 * 7; } Intent intent = new Intent(ALARM_ACTION); intent.putExtra("intervalMillis", intervalMillis); intent.putExtra("id", id); PendingIntent sender = PendingIntent.getBroadcast(context, id, intent, PendingIntent .FLAG_CANCEL_CURRENT); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { //小米不精准, 原因 小米系统做了限制, 隔分钟会轮训唤醒一次检查闹钟 am.setWindow(AlarmManager.RTC_WAKEUP, calMethod(week, calendar.getTimeInMillis()), intervalMillis, sender); } else { if (flag == 0) { am.set(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), sender); } else { am.setRepeating(AlarmManager.RTC_WAKEUP, calMethod(week, calendar.getTimeInMillis ()), intervalMillis, sender); } } } /** * @param weekflag 传入的是周几 * @param dateTime 传入的是时间戳(设置当天的年月日+从选择框拿来的时分秒) * @return 返回起始闹钟时间的时间戳 */ private static long calMethod(int weekflag, long dateTime) { long time = 0; //weekflag == 0表示是按天为周期性的时间间隔或者是一次行的,weekfalg非0时表示每周几的闹钟并以周为时间间隔 if (weekflag != 0) { Calendar c = Calendar.getInstance(); int week = c.get(Calendar.DAY_OF_WEEK); if (1 == week) { week = 7; } else if (2 == week) { week = 1; } else if (3 == week) { week = 2; } else if (4 == week) { week = 3; } else if (5 == week) { week = 4; } else if (6 == week) { week = 5; } else if (7 == week) { week = 6; } if (weekflag == week) { if (dateTime > System.currentTimeMillis()) { time = dateTime; } else { time = dateTime + 7 * 24 * 3600 * 1000; } } else if (weekflag > week) { time = dateTime + (weekflag - week) * 24 * 3600 * 1000; } else if (weekflag < week) { time = dateTime + (weekflag - week + 7) * 24 * 3600 * 1000; } } else { if (dateTime > System.currentTimeMillis()) { time = dateTime; } else { time = dateTime + 24 * 3600 * 1000; } } return time; } }
92421dd7c61ce060295578c9417b91a53133c73d
2,170
java
Java
app/server/appsmith-server/src/main/java/com/appsmith/server/services/GitServiceImpl.java
sanjus-robotic-studio/appsmith
dde68ce753e6fda6e67b42c7e7a4e06c3b8ef732
[ "Apache-2.0" ]
1
2022-01-25T21:48:07.000Z
2022-01-25T21:48:07.000Z
app/server/appsmith-server/src/main/java/com/appsmith/server/services/GitServiceImpl.java
sanjus-robotic-studio/appsmith
dde68ce753e6fda6e67b42c7e7a4e06c3b8ef732
[ "Apache-2.0" ]
28
2021-09-24T16:58:28.000Z
2022-03-31T16:57:34.000Z
app/server/appsmith-server/src/main/java/com/appsmith/server/services/GitServiceImpl.java
geekup-legodevops/appsmith
1b2295d31f82e32a31a8a35ece043fec7c7ca1b2
[ "Apache-2.0" ]
null
null
null
50.465116
123
0.704608
1,002,138
package com.appsmith.server.services; import com.appsmith.external.git.GitExecutor; import com.appsmith.git.service.GitExecutorImpl; import com.appsmith.server.configurations.EmailConfig; import com.appsmith.server.helpers.GitCloudServicesUtils; import com.appsmith.server.helpers.GitFileUtils; import com.appsmith.server.helpers.ResponseUtils; import com.appsmith.server.repositories.GitDeployKeysRepository; import com.appsmith.server.services.ce.GitServiceCEImpl; import com.appsmith.server.solutions.ImportExportApplicationService; import lombok.extern.slf4j.Slf4j; import org.springframework.context.annotation.Import; import org.springframework.stereotype.Service; @Slf4j @Service @Import({GitExecutorImpl.class}) public class GitServiceImpl extends GitServiceCEImpl implements GitService { public GitServiceImpl(UserService userService, UserDataService userDataService, SessionUserService sessionUserService, ApplicationService applicationService, ApplicationPageService applicationPageService, NewPageService newPageService, NewActionService newActionService, ActionCollectionService actionCollectionService, GitFileUtils fileUtils, ImportExportApplicationService importExportApplicationService, GitExecutor gitExecutor, ResponseUtils responseUtils, EmailConfig emailConfig, AnalyticsService analyticsService, GitCloudServicesUtils gitCloudServicesUtils, GitDeployKeysRepository gitDeployKeysRepository) { super(userService, userDataService, sessionUserService, applicationService, applicationPageService, newPageService, newActionService, actionCollectionService, fileUtils, importExportApplicationService, gitExecutor, responseUtils, emailConfig, analyticsService, gitCloudServicesUtils, gitDeployKeysRepository); } }
92421df998423baa3f8fc58ab6151a959b757fce
809
java
Java
TelegramBotApi/src/main/java/Anekdot.java
WokkoGIT/CVbot
29f226fccafe8654441d3846453293910e33284d
[ "MIT" ]
null
null
null
TelegramBotApi/src/main/java/Anekdot.java
WokkoGIT/CVbot
29f226fccafe8654441d3846453293910e33284d
[ "MIT" ]
null
null
null
TelegramBotApi/src/main/java/Anekdot.java
WokkoGIT/CVbot
29f226fccafe8654441d3846453293910e33284d
[ "MIT" ]
null
null
null
33.708333
70
0.644005
1,002,139
import org.json.JSONArray; import org.json.JSONObject; import java.io.IOException; import java.io.InputStream; import java.net.URL; import java.util.Iterator; import java.util.Scanner; public class Anekdot { public static String getAnekdot() throws IOException { URL url = new URL("https://icanhazdadjoke.com/slack"); Scanner in = new Scanner((InputStream) url.getContent()); String result = ""; while (in.hasNext()) { result += in.nextLine(); } JSONObject jsonObject = new JSONObject(result); JSONArray jsonArray = jsonObject.getJSONArray("attachments"); Iterator phonesItr = jsonArray.iterator(); JSONObject test = (JSONObject) phonesItr.next(); return (String)test.get("text"); } }
92421f6d57b6269e5226df7202c0eac9e333b4ea
1,396
java
Java
royale-compiler/compiler/src/main/java/org/apache/royale/compiler/problems/UndefinedConfigNameProblem.java
alinakazi/apache-royale-0.9.8-bin-js-swf
d0e4cc7a3cb50021694de41a57196660bbcd5e65
[ "Apache-2.0" ]
null
null
null
royale-compiler/compiler/src/main/java/org/apache/royale/compiler/problems/UndefinedConfigNameProblem.java
alinakazi/apache-royale-0.9.8-bin-js-swf
d0e4cc7a3cb50021694de41a57196660bbcd5e65
[ "Apache-2.0" ]
null
null
null
royale-compiler/compiler/src/main/java/org/apache/royale/compiler/problems/UndefinedConfigNameProblem.java
alinakazi/apache-royale-0.9.8-bin-js-swf
d0e4cc7a3cb50021694de41a57196660bbcd5e65
[ "Apache-2.0" ]
null
null
null
34.04878
78
0.731375
1,002,140
/* * * 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.royale.compiler.problems; import org.apache.royale.compiler.tree.as.IIdentifierNode; /** * Error when a config constant cannot be found */ public final class UndefinedConfigNameProblem extends ParserProblem { public static final String DESCRIPTION = "Undefined config constant: '${configName}'"; public static final int errorCode = 1501; public UndefinedConfigNameProblem(IIdentifierNode site, String configName) { super(site); this.configName = configName; } public final String configName; }
92421fe97b9e5aee52c604c31426779ef9ab0600
1,498
java
Java
src/programmersguide/workingwithasposepdf/workingwithbookmarks/addbookmarkinpdf/java/AddBookmarkInPDF.java
asposemarketplace/Aspose-Pdf-Java
1882af264af974c255043e1024cb4dc754905e90
[ "MIT" ]
null
null
null
src/programmersguide/workingwithasposepdf/workingwithbookmarks/addbookmarkinpdf/java/AddBookmarkInPDF.java
asposemarketplace/Aspose-Pdf-Java
1882af264af974c255043e1024cb4dc754905e90
[ "MIT" ]
null
null
null
src/programmersguide/workingwithasposepdf/workingwithbookmarks/addbookmarkinpdf/java/AddBookmarkInPDF.java
asposemarketplace/Aspose-Pdf-Java
1882af264af974c255043e1024cb4dc754905e90
[ "MIT" ]
null
null
null
32.565217
126
0.708945
1,002,141
/* * Copyright 2001-2013 Aspose Pty Ltd. All Rights Reserved. * * This file is part of Aspose.Pdf. The source code in this file * is only intended as a supplement to the documentation, and is provided * "as is", without warranty of any kind, either expressed or implied. */ package programmersguide.workingwithasposepdf.workingwithbookmarks.addbookmarkinpdf.java; import com.aspose.pdf.*; public class AddBookmarkInPDF { public static void main(String[] args) throws Exception { // The path to the documents directory. String dataDir = "src/programmersguide/workingwithasposepdf/workingwithbookmarks/addbookmarkinpdf/data/"; //open source PDF document com.aspose.pdf.Document pdfDocument = new com.aspose.pdf.Document(dataDir + "input.pdf"); //create a bookmark object com.aspose.pdf.OutlineItemCollection pdfOutline = new com.aspose.pdf.OutlineItemCollection(pdfDocument.getOutlines()); pdfOutline.setTitle("Test Outline"); pdfOutline.setItalic(true); pdfOutline.setBold(true); //set the destination page number pdfOutline.setAction(new com.aspose.pdf.GoToAction(pdfDocument.getPages().get_Item(1).getNumber())); //add bookmark in the document's outline collection. pdfDocument.getOutlines().add(pdfOutline); // save the update document pdfDocument.save(dataDir + "output.pdf"); System.out.println("Bookmark added successfully!"); } }
924221a843c918a02ad0c7831b1ae35cb78eab09
25,884
java
Java
stark-gradle/src/main/java/com/ximsfei/stark/gradle/asm/monitor/AsmUtils.java
ximsfei/Stark
3824aacdbda7af2f7a895b335c5b4f816e23fb2c
[ "Apache-2.0" ]
365
2018-04-24T12:33:42.000Z
2021-11-09T10:14:53.000Z
stark-gradle/src/main/java/com/ximsfei/stark/gradle/asm/monitor/AsmUtils.java
baiyongchen/Stark
3824aacdbda7af2f7a895b335c5b4f816e23fb2c
[ "Apache-2.0" ]
12
2018-05-24T01:50:50.000Z
2019-08-14T17:59:37.000Z
stark-gradle/src/main/java/com/ximsfei/stark/gradle/asm/monitor/AsmUtils.java
baiyongchen/Stark
3824aacdbda7af2f7a895b335c5b4f816e23fb2c
[ "Apache-2.0" ]
47
2018-05-21T01:46:09.000Z
2021-05-26T02:04:26.000Z
45.094077
103
0.654806
1,002,142
/* * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* * Apache License * Version 2.0, January 2004 * http://www.apache.org/licenses/ * * TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION * * 1. Definitions. * * "License" shall mean the terms and conditions for use, reproduction, * and distribution as defined by Sections 1 through 9 of this document. * * "Licensor" shall mean the copyright owner or entity authorized by * the copyright owner that is granting the License. * * "Legal Entity" shall mean the union of the acting entity and all * other entities that control, are controlled by, or are under common * control with that entity. For the purposes of this definition, * "control" means (i) the power, direct or indirect, to cause the * direction or management of such entity, whether by contract or * otherwise, or (ii) ownership of fifty percent (50%) or more of the * outstanding shares, or (iii) beneficial ownership of such entity. * * "You" (or "Your") shall mean an individual or Legal Entity * exercising permissions granted by this License. * * "Source" form shall mean the preferred form for making modifications, * including but not limited to software source code, documentation * source, and configuration files. * * "Object" form shall mean any form resulting from mechanical * transformation or translation of a Source form, including but * not limited to compiled object code, generated documentation, * and conversions to other media types. * * "Work" shall mean the work of authorship, whether in Source or * Object form, made available under the License, as indicated by a * copyright notice that is included in or attached to the work * (an example is provided in the Appendix below). * * "Derivative Works" shall mean any work, whether in Source or Object * form, that is based on (or derived from) the Work and for which the * editorial revisions, annotations, elaborations, or other modifications * represent, as a whole, an original work of authorship. For the purposes * of this License, Derivative Works shall not include works that remain * separable from, or merely link (or bind by name) to the interfaces of, * the Work and Derivative Works thereof. * * "Contribution" shall mean any work of authorship, including * the original version of the Work and any modifications or additions * to that Work or Derivative Works thereof, that is intentionally * submitted to Licensor for inclusion in the Work by the copyright owner * or by an individual or Legal Entity authorized to submit on behalf of * the copyright owner. For the purposes of this definition, "submitted" * means any form of electronic, verbal, or written communication sent * to the Licensor or its representatives, including but not limited to * communication on electronic mailing lists, source code control systems, * and issue tracking systems that are managed by, or on behalf of, the * Licensor for the purpose of discussing and improving the Work, but * excluding communication that is conspicuously marked or otherwise * designated in writing by the copyright owner as "Not a Contribution." * * "Contributor" shall mean Licensor and any individual or Legal Entity * on behalf of whom a Contribution has been received by Licensor and * subsequently incorporated within the Work. * * 2. Grant of Copyright License. Subject to the terms and conditions of * this License, each Contributor hereby grants to You a perpetual, * worldwide, non-exclusive, no-charge, royalty-free, irrevocable * copyright license to reproduce, prepare Derivative Works of, * publicly display, publicly perform, sublicense, and distribute the * Work and such Derivative Works in Source or Object form. * * 3. Grant of Patent License. Subject to the terms and conditions of * this License, each Contributor hereby grants to You a perpetual, * worldwide, non-exclusive, no-charge, royalty-free, irrevocable * (except as stated in this section) patent license to make, have made, * use, offer to sell, sell, import, and otherwise transfer the Work, * where such license applies only to those patent claims licensable * by such Contributor that are necessarily infringed by their * Contribution(s) alone or by combination of their Contribution(s) * with the Work to which such Contribution(s) was submitted. If You * institute patent litigation against any entity (including a * cross-claim or counterclaim in a lawsuit) alleging that the Work * or a Contribution incorporated within the Work constitutes direct * or contributory patent infringement, then any patent licenses * granted to You under this License for that Work shall terminate * as of the date such litigation is filed. * * 4. Redistribution. You may reproduce and distribute copies of the * Work or Derivative Works thereof in any medium, with or without * modifications, and in Source or Object form, provided that You * meet the following conditions: * * (a) You must give any other recipients of the Work or * Derivative Works a copy of this License and * * (b) You must cause any modified files to carry prominent notices * stating that You changed the files and * * (c) You must retain, in the Source form of any Derivative Works * that You distribute, all copyright, patent, trademark, and * attribution notices from the Source form of the Work, * excluding those notices that do not pertain to any part of * the Derivative Works and * * (d) If the Work includes a "NOTICE" text file as part of its * distribution, then any Derivative Works that You distribute must * include a readable copy of the attribution notices contained * within such NOTICE file, excluding those notices that do not * pertain to any part of the Derivative Works, in at least one * of the following places: within a NOTICE text file distributed * as part of the Derivative Works within the Source form or * documentation, if provided along with the Derivative Works or, * within a display generated by the Derivative Works, if and * wherever such third-party notices normally appear. The contents * of the NOTICE file are for informational purposes only and * do not modify the License. You may add Your own attribution * notices within Derivative Works that You distribute, alongside * or as an addendum to the NOTICE text from the Work, provided * that such additional attribution notices cannot be construed * as modifying the License. * * You may add Your own copyright statement to Your modifications and * may provide additional or different license terms and conditions * for use, reproduction, or distribution of Your modifications, or * for any such Derivative Works as a whole, provided Your use, * reproduction, and distribution of the Work otherwise complies with * the conditions stated in this License. * * 5. Submission of Contributions. Unless You explicitly state otherwise, * any Contribution intentionally submitted for inclusion in the Work * by You to the Licensor shall be under the terms and conditions of * this License, without any additional terms or conditions. * Notwithstanding the above, nothing herein shall supersede or modify * the terms of any separate license agreement you may have executed * with Licensor regarding such Contributions. * * 6. Trademarks. This License does not grant permission to use the trade * names, trademarks, service marks, or product names of the Licensor, * except as required for reasonable and customary use in describing the * origin of the Work and reproducing the content of the NOTICE file. * * 7. Disclaimer of Warranty. Unless required by applicable law or * agreed to in writing, Licensor provides the Work (and each * Contributor provides its Contributions) on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or * implied, including, without limitation, any warranties or conditions * of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A * PARTICULAR PURPOSE. You are solely responsible for determining the * appropriateness of using or redistributing the Work and assume any * risks associated with Your exercise of permissions under this License. * * 8. Limitation of Liability. In no event and under no legal theory, * whether in tort (including negligence), contract, or otherwise, * unless required by applicable law (such as deliberate and grossly * negligent acts) or agreed to in writing, shall any Contributor be * liable to You for damages, including any direct, indirect, special, * incidental, or consequential damages of any character arising as a * result of this License or out of the use or inability to use the * Work (including but not limited to damages for loss of goodwill, * work stoppage, computer failure or malfunction, or any and all * other commercial damages or losses), even if such Contributor * has been advised of the possibility of such damages. * * 9. Accepting Warranty or Additional Liability. While redistributing * the Work or Derivative Works thereof, You may choose to offer, * and charge a fee for, acceptance of support, warranty, indemnity, * or other liability obligations and/or rights consistent with this * License. However, in accepting such obligations, You may act only * on Your own behalf and on Your sole responsibility, not on behalf * of any other Contributor, and only if You agree to indemnify, * defend, and hold each Contributor harmless for any liability * incurred by, or claims asserted against, such Contributor by reason * of your accepting any such warranty or additional liability. * * END OF TERMS AND CONDITIONS * * APPENDIX: How to apply the Apache License to your work. * * To apply the Apache License to your work, attach the following * boilerplate notice, with the fields enclosed by brackets "[]" * replaced with your own identifying information. (Don't include * the brackets!) The text should be enclosed in the appropriate * comment syntax for the file format. We also recommend that a * file or class name and description of purpose be included on the * same "printed page" as the copyright notice for easier * identification within third-party archives. * * Copyright 2018 pengfengwang * * 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.ximsfei.stark.gradle.asm.monitor; import com.android.annotations.NonNull; import com.android.annotations.Nullable; import com.google.common.collect.ImmutableList; import org.objectweb.asm.ClassReader; import org.objectweb.asm.tree.AnnotationNode; import org.objectweb.asm.tree.ClassNode; import org.objectweb.asm.tree.InnerClassNode; import java.io.BufferedInputStream; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.util.List; import java.util.jar.JarFile; import java.util.zip.ZipEntry; /** * ASM related utilities methods. */ public class AsmUtils { /** * Abstraction for a provider for {@link ClassNode} instances for a class name. */ public interface ClassNodeProvider { /** * load class bytes and return a {@link ClassNode}. * * @param className the requested class to be loaded. * @return a {@link ClassReader} with the class' bytes or null if the class file cannot be * located. * @throws IOException when locating/reading the class file. */ @Nullable ClassNode loadClassNode(@NonNull String className) throws IOException; } public static class DirectoryBasedClassReader implements ClassNodeProvider { private final File binaryFolder; public DirectoryBasedClassReader(File binaryFolder) { this.binaryFolder = binaryFolder; } @Override @Nullable public ClassNode loadClassNode(@NonNull String className) { File outerClassFile = new File(binaryFolder, className + ".class"); if (outerClassFile.exists()) { // logger.verbose("Parsing %s", outerClassFile); try (InputStream outerClassInputStream = new BufferedInputStream(new FileInputStream(outerClassFile))) { return readClass(new ClassReader(outerClassInputStream)); } catch (IOException e) { // logger.error(e, "Cannot parse %s", className); } } return null; } } public static class ClassLoaderBasedClassReader implements ClassNodeProvider { private final ClassLoader classLoader; public ClassLoaderBasedClassReader(ClassLoader classLoader) { this.classLoader = classLoader; } @Override public ClassNode loadClassNode(String className) { try (InputStream is = classLoader.getResourceAsStream(className + ".class")) { if (is == null) { throw new IOException("Failed to find byte code for " + className); } ClassReader classReader = new ClassReader(is); ClassNode node = new ClassNode(); classReader.accept(node, ClassReader.EXPAND_FRAMES); return node; } catch (Exception e) { // logging } return null; } } public static final ClassNodeProvider classLoaderBasedProvider = (className) -> { ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); try (InputStream is = classLoader.getResourceAsStream(className + ".class")) { if (is == null) { throw new IOException("Failed to find byte code for " + className); } ClassReader classReader = new ClassReader(is); ClassNode node = new ClassNode(); classReader.accept(node, ClassReader.EXPAND_FRAMES); return node; } }; public static class JarBasedClassReader implements ClassNodeProvider { private final File file; public JarBasedClassReader(File file) { this.file = file; } @Nullable @Override public ClassNode loadClassNode(@NonNull String className) throws IOException { try (JarFile jarFile = new JarFile(file)) { ZipEntry entry = jarFile.getEntry(className.replace(".", "/") + ".class"); if (entry != null) { try (InputStream is = jarFile.getInputStream(entry)) { return readClass(new ClassReader(is)); } } } return null; } } @NonNull public static List<AnnotationNode> getInvisibleAnnotationsOnClassOrOuterClasses( @NonNull ClassNodeProvider classReader, @NonNull ClassNode classNode) throws IOException { ImmutableList.Builder<AnnotationNode> listBuilder = ImmutableList.builder(); do { @SuppressWarnings("unchecked") List<AnnotationNode> invisibleAnnotations = classNode.invisibleAnnotations; if (invisibleAnnotations != null) { listBuilder.addAll(invisibleAnnotations); } String outerClassName = getOuterClassName(classNode); classNode = outerClassName != null ? classReader.loadClassNode(outerClassName) : null; } while (classNode != null); return listBuilder.build(); } /** * Read a {@link ClassNode} from a class name and all it's implemented interfaces also as {@link * ClassNode}. Store the class and its interfaces into a {@link AsmClassNode} instance. * * @param classReaderProvider provider to read class bytes from storage * @param parentClassName requested class name * @return null if the parentClassName cannot be located by the provider otherwise an {@link * AsmClassNode} encapsulating the class and its directly implemented interfaces * @throws IOException when bytes cannot be read. */ @Nullable public static AsmClassNode readClassAndInterfaces( @NonNull ClassNodeProvider classReaderProvider, @NonNull String parentClassName, @NonNull String childClassName, int targetApi) throws IOException { ClassNode classNode = loadClass(classReaderProvider, parentClassName); if (classNode == null) { // Could not locate parent class. This is as far as we can go locating parents. // logger.warning( // "IncrementalVisitor parseParents could not locate %1$s " // + "which is an ancestor of project class %2$s.\n" // + "%2$s is not eligible for hot swap. \n" // + "If the class targets a more recent platform than %3$d," // + " add a @TargetApi annotation to silence this warning.", // parentClassName, childClassName, targetApi); return null; } // read the parent. AsmClassNode parentClassNode = classNode.superName != null ? readClassAndInterfaces( classReaderProvider, classNode.superName, childClassName, targetApi) : null; // now read all implemented interfaces. ImmutableList.Builder<AsmInterfaceNode> interfaces = ImmutableList.builder(); if (!readInterfaces(classNode, classReaderProvider, interfaces)) { // if we cannot read any implemented interfaces, return null; return null; } return new AsmClassNode(classNode, parentClassNode, interfaces.build()); } /** * Loads an interface hierarchy and build a {@link AsmInterfaceNode} * * @param classReaderProvider provider of {@link ClassNode} instances. * @param interfaceName name of the interface to load the hierarchy for. * @param classNode the class implementing the interface name. * @return the interface hierarchy for interfaceName or null if class bytes cannot be located or * loaded. * @throws IOException when loading bytes from disk failed. */ @Nullable private static AsmInterfaceNode readInterfaceHierarchy( ClassNodeProvider classReaderProvider, String interfaceName, ClassNode classNode) throws IOException { ClassNode interfaceNode = loadClass(classReaderProvider, interfaceName); ImmutableList.Builder<AsmInterfaceNode> builder = ImmutableList.builder(); if (interfaceNode != null) { return readInterfaces(interfaceNode, classReaderProvider, builder) ? new AsmInterfaceNode(interfaceNode, builder.build()) : null; } else { // logger.warning( // "Cannot load interface %$1s, which is implemented" // + "by %2$s, therefore %2$s will not be eligible for hotswap.", // interfaceName, classNode.name); return null; } } /** * Read all directly implemented interfaces from the passed {@link ClassNode} instance. * * @param classNode the class * @param classReaderProvider a provider to read class bytes from storage * @param interfacesList a builder to store the list of AsmInterfaceNode for each directly * implemented interfaces, can be empty after method returns. * @return true if implemented interfaces could all be loaded, false otherwise. * @throws IOException when bytes cannot be read */ static boolean readInterfaces( @NonNull ClassNode classNode, @NonNull ClassNodeProvider classReaderProvider, @NonNull ImmutableList.Builder<AsmInterfaceNode> interfacesList) throws IOException { for (String anInterface : (List<String>) classNode.interfaces) { AsmInterfaceNode interfaceNode = readInterfaceHierarchy(classReaderProvider, anInterface, classNode); if (interfaceNode != null) { interfacesList.add(interfaceNode); } else { return false; } } return true; } @NonNull public static ClassNode readClass(@NonNull ClassReader classReader) { ClassNode node = new ClassNode(); classReader.accept(node, ClassReader.EXPAND_FRAMES); return node; } @Nullable public static AsmClassNode loadClass( @NonNull ClassNodeProvider classBytesReader, @NonNull ClassNode classNode, int targetApi) throws IOException { AsmClassNode parentedClassNode = classNode.superName != null ? readClassAndInterfaces( classBytesReader, classNode.superName, classNode.name, targetApi) : null; // read interfaces ImmutableList.Builder<AsmInterfaceNode> interfaces = ImmutableList.builder(); if (!readInterfaces(classNode, classBytesReader, interfaces)) { return null; } return new AsmClassNode(classNode, parentedClassNode, interfaces.build()); } @Nullable static ClassNode loadClass( @NonNull ClassNodeProvider classBytesReader, @NonNull String className) throws IOException { ClassNode classNode = classBytesReader.loadClassNode(className); if (classNode != null) { return classNode; } return classLoaderBasedProvider.loadClassNode(className); } @NonNull public static ClassNode readClass(ClassLoader classLoader, String className) throws IOException { try (InputStream is = classLoader.getResourceAsStream(className + ".class")) { if (is == null) { throw new IOException("Failed to find byte code for " + className); } ClassReader parentClassReader = new ClassReader(is); ClassNode node = new ClassNode(); parentClassReader.accept(node, ClassReader.EXPAND_FRAMES); return node; } } @Nullable public static ClassNode parsePackageInfo( @NonNull File inputFile) throws IOException { File packageFolder = inputFile.getParentFile(); File packageInfoClass = new File(packageFolder, "package-info.class"); if (packageInfoClass.exists()) { try (InputStream reader = new BufferedInputStream(new FileInputStream(packageInfoClass))) { ClassReader classReader = new ClassReader(reader); return readClass(classReader); } } return null; } @Nullable static String getOuterClassName(@NonNull ClassNode classNode) { if (classNode.outerClass != null) { return classNode.outerClass; } if (classNode.innerClasses != null) { @SuppressWarnings("unchecked") List<InnerClassNode> innerClassNodes = (List<InnerClassNode>) classNode.innerClasses; for (InnerClassNode innerClassNode : innerClassNodes) { if (innerClassNode.name.equals(classNode.name)) { return innerClassNode.outerName; } } } return null; } }
924221b9a67c604c2b9a1256e368dc257c4cc45e
4,671
java
Java
util/mtwilson-util-crypto-key/src/main/java/com/intel/mtwilson/util/crypto/keystore/PasswordKeyStore.java
intel-secl/common_java
79628eba5cca696b06636f78561dd29ef57e2bbb
[ "BSD-3-Clause" ]
2
2021-12-30T05:58:33.000Z
2022-03-05T03:31:34.000Z
util/mtwilson-util-crypto-key/src/main/java/com/intel/mtwilson/util/crypto/keystore/PasswordKeyStore.java
intel-secl/common_java
79628eba5cca696b06636f78561dd29ef57e2bbb
[ "BSD-3-Clause" ]
null
null
null
util/mtwilson-util-crypto-key/src/main/java/com/intel/mtwilson/util/crypto/keystore/PasswordKeyStore.java
intel-secl/common_java
79628eba5cca696b06636f78561dd29ef57e2bbb
[ "BSD-3-Clause" ]
null
null
null
45.349515
168
0.745237
1,002,143
/* * Copyright (C) 2019 Intel Corporation * SPDX-License-Identifier: BSD-3-Clause */ package com.intel.mtwilson.util.crypto.keystore; import com.intel.dcsg.cpg.io.Resource; import com.intel.dcsg.cpg.crypto.key.password.Password; import java.io.Closeable; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import java.security.GeneralSecurityException; import java.security.KeyStore; import java.security.KeyStoreException; import java.security.NoSuchAlgorithmException; import java.security.UnrecoverableKeyException; import java.security.spec.InvalidKeySpecException; import javax.crypto.SecretKey; import javax.crypto.SecretKeyFactory; import javax.crypto.spec.PBEKeySpec; /** * A wrapper around java.security.KeyStore that specializes in password entries * and simplifies use of the keystore. * * @author jbuhacoff */ public class PasswordKeyStore extends AbstractKeyStore implements Closeable { private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(PasswordKeyStore.class); private KeyStore keystore; private KeyProtectionDelegate keyProtectionDelegate; private SecretKeyFactory factory; public PasswordKeyStore(Resource keystoreResource, Password keystorePassword) throws KeyStoreException, IOException, NoSuchAlgorithmException { this(KeyStore.getDefaultType(), keystoreResource, keystorePassword); } /** * * @param keystoreType should be JCEKS or other keystore type which is capable of storing SecretKey entries * @param keystoreFile * @param keystorePassword * @throws KeyStoreException * @throws IOException */ public PasswordKeyStore(String keystoreType, File keystoreFile, char[] keystorePassword) throws KeyStoreException, IOException, NoSuchAlgorithmException { super(keystoreType, keystoreFile, keystorePassword); this.keystore = super.keystore(); this.keyProtectionDelegate = new SinglePasswordKeyProtectionDelegate(keystorePassword); this.factory = SecretKeyFactory.getInstance("PBE"); // throws NoSuchAlgorithmException } public PasswordKeyStore(String keystoreType, Resource keystoreResource, char[] keystorePassword) throws KeyStoreException, IOException, NoSuchAlgorithmException { super(keystoreType, keystoreResource, keystorePassword); this.keystore = super.keystore(); this.keyProtectionDelegate = new SinglePasswordKeyProtectionDelegate(keystorePassword); this.factory = SecretKeyFactory.getInstance("PBE"); // throws NoSuchAlgorithmException } public PasswordKeyStore(String keystoreType, Resource keystoreResource, Password keystorePassword) throws KeyStoreException, IOException, NoSuchAlgorithmException { super(keystoreType, keystoreResource, keystorePassword); this.keystore = super.keystore(); this.keyProtectionDelegate = new SinglePasswordKeyProtectionDelegate(keystorePassword); this.factory = SecretKeyFactory.getInstance("PBE"); // throws NoSuchAlgorithmException } /** * Precondition: keystore file exists (or throws FileNotFoundException) * * @param alias of the entry to retrieve * @return * @throws KeyStoreException * @throws FileNotFoundException * @throws IOException if keystore cannot be loaded * @throws NoSuchAlgorithmException is keystore cannot be loaded * @throws UnrecoverableKeyException if key cannot be loaded from keystore * @throws */ public Password get(String alias) throws KeyStoreException { try { SecretKey key = (SecretKey) keystore.getKey(alias, keyProtectionDelegate.getPassword(alias)); // throws UnrecoverableKeyException PBEKeySpec keySpec = (PBEKeySpec)factory.getKeySpec(key, PBEKeySpec.class); Password password = new Password(keySpec.getPassword()); // creates a copy of the password keySpec.clearPassword(); // clear keyspec's copy return password; } catch (GeneralSecurityException e) { throw new KeyStoreException("Cannot load key", e); } } public void set(String alias, Password password) throws KeyStoreException, InvalidKeySpecException { if (keystore.containsAlias(alias)) { log.warn("Replacing key {}", alias); } SecretKey key = factory.generateSecret(new PBEKeySpec(password.toCharArray())); // throws InvalidKeySpecException keystore.setEntry(alias, new KeyStore.SecretKeyEntry(key), new KeyStore.PasswordProtection(keyProtectionDelegate.getPassword(alias))); modified(); } }
9242223f7ab992271751a6fedb3dc76a7bc1a9ae
809
java
Java
jnode-nntp/src/main/java/org/jnode/nntp/model/Auth.java
Manjago/jnode-mirror
ecfd8fcd516719619550402d9f880b20f28786a7
[ "Apache-2.0" ]
5
2019-03-09T16:25:06.000Z
2020-12-28T19:52:34.000Z
jnode-nntp/src/main/java/org/jnode/nntp/model/Auth.java
annmuor/jnode
fd9f150316dee92a2a7affa27245009224d503b5
[ "Apache-2.0" ]
null
null
null
jnode-nntp/src/main/java/org/jnode/nntp/model/Auth.java
annmuor/jnode
fd9f150316dee92a2a7affa27245009224d503b5
[ "Apache-2.0" ]
5
2019-01-13T19:57:44.000Z
2020-12-07T23:43:08.000Z
19.261905
65
0.585909
1,002,144
package org.jnode.nntp.model; public class Auth { private Long linkId; private String user; private String address; private String ftnAddress; public Auth(String user, String address, String ftnAddress) { this.user = user; this.address = address; this.ftnAddress = ftnAddress; } public Long getLinkId() { return linkId; } public void setLinkId(Long linkId) { this.linkId = linkId; } public String getFtnAddress() { return ftnAddress; } public String getUser() { return user; } public String getAddress() { return address; } public void reset() { this.linkId = null; this.user = null; this.address = null; this.ftnAddress = null; } }
9242224aa511bb6d86d9172dbb032611552e9f96
813
java
Java
src/main/java/io/oneko/domain/ModificationAwareListProperty.java
philmtd/o-neko
c6c18478bb8f77728b57f5c367936d5cddc20030
[ "Apache-2.0" ]
4
2019-12-02T16:14:07.000Z
2021-12-13T10:28:14.000Z
src/main/java/io/oneko/domain/ModificationAwareListProperty.java
philmtd/o-neko
c6c18478bb8f77728b57f5c367936d5cddc20030
[ "Apache-2.0" ]
30
2019-10-29T14:12:42.000Z
2022-03-02T12:32:32.000Z
src/main/java/io/oneko/domain/ModificationAwareListProperty.java
philmtd/o-neko
c6c18478bb8f77728b57f5c367936d5cddc20030
[ "Apache-2.0" ]
6
2019-11-20T14:06:49.000Z
2021-06-04T16:06:17.000Z
21.972973
98
0.717097
1,002,145
package io.oneko.domain; import java.util.ArrayList; import java.util.Collections; import java.util.List; public class ModificationAwareListProperty<T> extends ModificationAwareProperty<List<T>> { public ModificationAwareListProperty(ModificationAwareIdentifiable entity, String propertyName) { super(entity, propertyName); super.init(Collections.emptyList()); } @Override public void init(List<T> value) { if (value == null) { super.init(Collections.emptyList()); } else { super.init(new ArrayList<>(value)); } } @Override public boolean set(List<T> value) { if (value == null) { return super.set(Collections.emptyList()); } else { return super.set(new ArrayList<>(value)); } } @Override public List<T> get() { return Collections.unmodifiableList(super.get()); } }
924222b956e39cf95443634be8b6673542524136
186
java
Java
src/test/groovy/bugs/G3839A1.java
michaelss/groovy-core
66278580f2177decbd18c92ffc83a35efb5f4479
[ "Apache-2.0" ]
4
2016-02-02T07:12:28.000Z
2021-07-04T23:23:40.000Z
src/test/groovy/bugs/G3839A1.java
michaelss/groovy-core
66278580f2177decbd18c92ffc83a35efb5f4479
[ "Apache-2.0" ]
null
null
null
src/test/groovy/bugs/G3839A1.java
michaelss/groovy-core
66278580f2177decbd18c92ffc83a35efb5f4479
[ "Apache-2.0" ]
3
2016-02-01T22:35:23.000Z
2019-11-18T02:56:34.000Z
26.571429
67
0.827957
1,002,146
package groovy.bugs; import org.codehaus.groovy.transform.GroovyASTTransformationClass; @GroovyASTTransformationClass(classes=G3839Transform1.class) public @interface G3839A1 {}
924225011c1d214ae35fae2096d63c58daad28af
419
java
Java
space-core/src/main/ref/roml/lang/runtime/ConnectionInfo.java
jimcoles/space
33078e3f6fdc050d4ef0c2b0fb7e7c073fde3608
[ "Apache-2.0" ]
1
2019-07-10T19:02:03.000Z
2019-07-10T19:02:03.000Z
space-core/src/main/ref/roml/lang/runtime/ConnectionInfo.java
jimcoles/space
33078e3f6fdc050d4ef0c2b0fb7e7c073fde3608
[ "Apache-2.0" ]
3
2022-01-07T23:26:01.000Z
2022-01-08T00:09:53.000Z
space-core/src/main/ref/roml/lang/runtime/ConnectionInfo.java
jimcoles/space-java
e855b24daf91f64cc5112f46746d8f21e77c2a23
[ "Apache-2.0" ]
null
null
null
16.115385
84
0.708831
1,002,147
package com.jkc.roml.dms; /* * Copyright 2002 Systematic Solutions Corporation, All Rights Reserved. * * This software is the proprietary information of Systematic Solutions Corporation. * Use is subject to license terms. * */ /** * The set of information required by a Connector to obtain a Connection. * * @author Jim Coles * @version 1.0 */ public class ConnectionInfo { ConnectionInfo() { } }
9242254589074ab86904a8f6bf6d20f9c18e6d06
4,265
java
Java
pcgen/code/src/java/plugin/pretokens/parser/PreClassLevelMaxParser.java
odraccir/pcgen-deprecated
ab07cb4250e5d0419fd805197fb040a2ea425cc8
[ "OML" ]
1
2022-03-15T22:42:34.000Z
2022-03-15T22:42:34.000Z
pcgen/code/src/java/plugin/pretokens/parser/PreClassLevelMaxParser.java
odraccir/pcgen-deprecated
ab07cb4250e5d0419fd805197fb040a2ea425cc8
[ "OML" ]
null
null
null
pcgen/code/src/java/plugin/pretokens/parser/PreClassLevelMaxParser.java
odraccir/pcgen-deprecated
ab07cb4250e5d0419fd805197fb040a2ea425cc8
[ "OML" ]
null
null
null
29.267123
102
0.69553
1,002,148
/* * PreClassLevelMaxParser.java * * Copyright 2003 (C) Chris Ward <[email protected]> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * Created on 18-Dec-2003 * * Current Ver: $Revision$ * * Last Editor: $Author$ * * Last Edited: $Date$ * */ package plugin.pretokens.parser; import pcgen.core.prereq.Prerequisite; import pcgen.core.prereq.PrerequisiteOperator; import pcgen.persistence.PersistenceLayerException; import pcgen.persistence.lst.prereq.AbstractPrerequisiteListParser; import pcgen.persistence.lst.prereq.PrerequisiteParserInterface; /** * A prerequisite parser class that handles the parsing of pre class level max tokens. * */ public class PreClassLevelMaxParser extends AbstractPrerequisiteListParser implements PrerequisiteParserInterface { /** * Get the type of prerequisite handled by this token. * @return the type of prerequisite handled by this token. */ @Override public String[] kindsHandled() { return new String[]{"CLASSLEVELMAX"}; } /** * Parse the pre req list * * @param kind The kind of the prerequisite (less the "PRE" prefix) * @param formula The body of the prerequisite. * @param invertResult Whether the prerequisite should invert the result. * @param overrideQualify * if set true, this prerequisite will be enforced in spite * of any "QUALIFY" tag that may be present. * @return PreReq * @throws PersistenceLayerException */ @Override public Prerequisite parse(String kind, String formula, boolean invertResult, boolean overrideQualify) throws PersistenceLayerException { Prerequisite prereq = super.parse(kind, formula, invertResult, overrideQualify); // ClassLevelMax is basically the inverse of class // // PRECLASSLEVELMAX:Barbarian=1 !PRECLASS:Barbarian=2 // !PRECLASSLEVELMAX:Barbarian=1 PRECLASS:Barbarian=2 // PRECLASSLEVELMAX:Fighter=1,SPELLCASTER=2 PREMULT:2,[!PRECLASS:Fighter=2],[!PRECLASS:SPELLCASTER=3] // PRECLASSLEVELMAX:Fighter,SPELLCASTER=2 PREMULT:2,[!PRECLASS:Fighter=3],[!PRECLASS:SPELLCASTER=3] // changeFromLevelMax(prereq); if (invertResult) { prereq.setOperator(prereq.getOperator().invert()); } return prereq; } // // Change all occurrences of PRECLASSLEVELMAX to PRECLASS // private void changeFromLevelMax(Prerequisite p) { for (Prerequisite subreq : p.getPrerequisites()) { changeFromLevelMax(subreq); } if (p.getKind() == null) // PREMULT { // Nothing to do. This is a PREMULT and we don't care about them. } else if ("classlevelmax".equals(p.getKind())) { p.setKind("class"); // // PRECLASS is GTEQ, so need to change operator to LT and then add 1 to the operand // which results in the of negation of the PRECLASS // 'class_levels >= 4' --> 'class_levels < 5' // // // If the entry after the '=' is non-numeric AbstractPrerequisiteListParser#parse will // have placed the entire entry into the key. We need to separate the key from the // operand. // String oper = p.getKey(); int idxEquals = oper.indexOf('='); if (idxEquals >= 0) { p.setKey(oper.substring(0, idxEquals)); oper = oper.substring(idxEquals + 1); } else { oper = p.getOperand(); } try { oper = Integer.toString(Integer.parseInt(oper) + 1); } catch (NumberFormatException nfe) { oper = "(" + oper + ")+1"; } p.setOperand(oper); p.setOperator(PrerequisiteOperator.LT); p.setCountMultiples(false); } } }
924226086603ef638c2b6388b7a3f8a25bb35c5a
3,418
java
Java
javabasic/src/main/java/com/zkzong/other/IntegerTest.java
zkzong/java
fe106ca40e78adf614628d00960f7b544f0c6d26
[ "Apache-2.0" ]
null
null
null
javabasic/src/main/java/com/zkzong/other/IntegerTest.java
zkzong/java
fe106ca40e78adf614628d00960f7b544f0c6d26
[ "Apache-2.0" ]
16
2019-10-26T09:56:05.000Z
2022-03-31T21:09:05.000Z
javabasic/src/main/java/com/zkzong/other/IntegerTest.java
zkzong/java
fe106ca40e78adf614628d00960f7b544f0c6d26
[ "Apache-2.0" ]
null
null
null
29.721739
120
0.571387
1,002,149
package com.zkzong.other; import org.junit.Test; /** * Created by Zong on 2016/8/13. */ public class IntegerTest { @Test public void integerCompare() { // http://www.importnew.com/6997.html // int的值在-128到127这个范围内JVM会将值缓存起来,因此i1和i2,虚拟机确确实实使用了相同的对象实例(内存地址相同),所以“==”会返回true的结果。 // 但是在这个范围之外就不行了 Integer i1 = 260; Integer i2 = 260; if (i1 == i2) { System.out.println("equals"); } else { System.out.println("not equals"); } System.out.println(i1.equals(i2)); Integer i3 = 100; Integer i4 = 100; if (i3 == i4) { System.out.println("equals"); } else { System.out.println("not equals"); } } @Test public void type() { // 由于Integer变量实际上是对一个Integer对象的引用,所以两个通过new生成的Integer变量永远是不相等的(因为new生成的是两个对象,其内存地址不同)。 Integer i1 = new Integer(100); Integer j1 = new Integer(100); System.out.print(i1 == j1); //false // 包装类Integer和基本数据类型int比较时,java会自动拆包装为int,然后进行比较,实际上就变为两个int变量的比较 Integer i2 = new Integer(500); int j2 = 500; System.out.print(i2 == j2); //true // 非new生成的Integer变量和new Integer()生成的变量比较时,结果为false。 // (因为非new生成的Integer变量指向的是java常量池中的对象,而new Integer()生成的变量指向堆中新建的对象,两者在内存中的地址不同) Integer i3 = new Integer(100); Integer j3 = 100; System.out.print(i3 == j3); //false // 对于两个非new生成的Integer对象,进行比较时,如果两个变量的值在区间-128到127之间,则比较结果为true,如果两个变量的值不在此区间,则比较结果为false // java在编译Integer i = 100 ;时,会翻译成为Integer i = Integer.valueOf(100); // java对于-128到127之间的数,会进行缓存,Integer i = 127时,会将127进行缓存,下次再写Integer j = 127时,就会直接从缓存中取,就不会new了 Integer i4 = 100; Integer j4 = 100; System.out.print(i4 == j4); //true Integer i5 = 128; Integer j5 = 128; System.out.print(i5 == j5); //false } @Test public void shortTest() { short s = 1; // 对于“+=”操作,系统会自动执行类型转换操作,等价于s=(short)s+1。 s += 1; // s+1的时候,结果会被“升格”为int类型。把int赋给short当然编译错误。 //s = s + 1; } @Test public void test() { Integer a = 1; Integer b = 2; Integer c = 3; Integer d = 3; Integer e = 321; Integer f = 321; Long g = 3L; Long h = 2L; System.out.println(c == d); // true System.out.println(e == f); // false System.out.println(c == (a + b)); // true System.out.println(c.equals(a + b)); // true System.out.println(g == (a + b)); // true System.out.println(g.equals(a + b)); // false System.out.println(g.equals(a + h)); // true // 第一个和第二个输出结果没有什么疑问。 // 第三句由于a+b包含了算术运算,因此会触发自动拆箱过程(会调用intValue方法),因此它们比较的是数值是否相等。 // 而对于c.equals(a+b)会先触发自动拆箱过程,再触发自动装箱过程,也就是说a+b,会先各自调用intValue方法,得到了加法运算后的数值之后,便调用Integer.valueOf方法,再进行equals比较。 // 同理对于后面的也是这样,不过要注意倒数第二个和最后一个输出的结果(如果数值是int类型的,装箱过程调用的是Integer.valueOf;如果是long类型的,装箱调用的Long.valueOf方法)。 } @Test public void tt() { int a = 10; long b = 10L; double c = 10.0; System.out.println(a == b); // true System.out.println(a == c); // true System.out.println(b == c); // true } @Test public void toBinaryString() { String s = Integer.toBinaryString(255); System.out.println(s); } }
924226d3bdc64587beb9c49e8ee4a7337b5a77cc
1,377
java
Java
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/model/RequestLimitExceededException.java
ericvincent83/aws-sdk-java
c491416f3ea9411a04d9bafedee6c6874a79e48d
[ "Apache-2.0" ]
3,372
2015-01-03T00:35:43.000Z
2022-03-31T15:56:24.000Z
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/model/RequestLimitExceededException.java
ericvincent83/aws-sdk-java
c491416f3ea9411a04d9bafedee6c6874a79e48d
[ "Apache-2.0" ]
2,391
2015-01-01T12:55:24.000Z
2022-03-31T08:01:50.000Z
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/model/RequestLimitExceededException.java
ericvincent83/aws-sdk-java
c491416f3ea9411a04d9bafedee6c6874a79e48d
[ "Apache-2.0" ]
2,876
2015-01-01T14:38:37.000Z
2022-03-29T19:53:10.000Z
36.236842
119
0.7313
1,002,150
/* * Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file 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.amazonaws.services.dynamodbv2.model; import javax.annotation.Generated; /** * <p> * Throughput exceeds the current throughput quota for your account. Please contact AWS Support at <a * href="https://aws.amazon.com/support">AWS Support</a> to request a quota increase. * </p> */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class RequestLimitExceededException extends com.amazonaws.services.dynamodbv2.model.AmazonDynamoDBException { private static final long serialVersionUID = 1L; /** * Constructs a new RequestLimitExceededException with the specified error message. * * @param message * Describes the error encountered. */ public RequestLimitExceededException(String message) { super(message); } }
924226e2193e03f6da15c558dfa6e0f78a7c1025
1,209
java
Java
core/src/main/java/io/confluent/connect/storage/schema/SchemaCompatibility.java
cricket007/kafka-connect-storage-common
5a49d083c2f2a239a113263d50cc60c820506347
[ "Apache-2.0" ]
null
null
null
core/src/main/java/io/confluent/connect/storage/schema/SchemaCompatibility.java
cricket007/kafka-connect-storage-common
5a49d083c2f2a239a113263d50cc60c820506347
[ "Apache-2.0" ]
1
2017-12-04T18:13:40.000Z
2017-12-04T18:13:40.000Z
core/src/main/java/io/confluent/connect/storage/schema/SchemaCompatibility.java
cricket007/kafka-connect-storage-common
5a49d083c2f2a239a113263d50cc60c820506347
[ "Apache-2.0" ]
null
null
null
33.583333
96
0.775021
1,002,151
/* * Copyright 2017 Confluent 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 io.confluent.connect.storage.schema; import org.apache.kafka.connect.connector.ConnectRecord; import org.apache.kafka.connect.data.Schema; import org.apache.kafka.connect.sink.SinkRecord; import org.apache.kafka.connect.source.SourceRecord; public interface SchemaCompatibility { boolean shouldChangeSchema( ConnectRecord<?> record, Schema currentkeySchema, Schema currentValueSchema ); SinkRecord project(SinkRecord record, Schema currentKeySchema, Schema currentValueSchema); SourceRecord project(SourceRecord record, Schema currentKeySchema, Schema currentValueSchema); }
924227c9b98ce2e602be38c4881c5d6acfa42a43
1,499
java
Java
src/test/java/uk/gov/hmcts/reform/divorce/orchestration/util/FlywayNoOpStrategyUTest.java
FeatureToggleStudy/div-case-orchestration-service
04a27bc606d57e6ef800c650ec8fbff973403a2e
[ "MIT" ]
null
null
null
src/test/java/uk/gov/hmcts/reform/divorce/orchestration/util/FlywayNoOpStrategyUTest.java
FeatureToggleStudy/div-case-orchestration-service
04a27bc606d57e6ef800c650ec8fbff973403a2e
[ "MIT" ]
null
null
null
src/test/java/uk/gov/hmcts/reform/divorce/orchestration/util/FlywayNoOpStrategyUTest.java
FeatureToggleStudy/div-case-orchestration-service
04a27bc606d57e6ef800c650ec8fbff973403a2e
[ "MIT" ]
null
null
null
27.759259
80
0.756504
1,002,152
package uk.gov.hmcts.reform.divorce.orchestration.util; import org.flywaydb.core.Flyway; import org.flywaydb.core.api.MigrationInfo; import org.flywaydb.core.api.MigrationInfoService; import org.flywaydb.core.api.MigrationState; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.InjectMocks; import org.mockito.Mock; import org.mockito.junit.MockitoJUnitRunner; import static org.mockito.Mockito.when; @RunWith(MockitoJUnitRunner.class) public class FlywayNoOpStrategyUTest { @Mock private Flyway flywayMock; @Mock private MigrationInfoService migrationInfoServiceMock; @Mock private MigrationInfo migrationInfoMock; @InjectMocks private FlywayNoOpStrategy classToTest; @Before public void setUp() { MigrationInfo[] migrationInfo = new MigrationInfo[1]; migrationInfo[0] = migrationInfoMock; when(flywayMock.info()).thenReturn(migrationInfoServiceMock); when(migrationInfoServiceMock.all()).thenReturn(migrationInfo); } @Test(expected = IllegalStateException.class) public void givenMigrationNotApplied_thenThrowException() { when(migrationInfoMock.getState()).thenReturn(MigrationState.AVAILABLE); classToTest.migrate(flywayMock); } @Test public void givenAllMigration_thenExecuteAsExpected() { when(migrationInfoMock.getState()).thenReturn(MigrationState.SUCCESS); classToTest.migrate(flywayMock); } }
924227f3f55335481af8c446f26b92c351212899
580
java
Java
src/main/java/es/vira/gateway/constant/HttpConstant.java
Victin09/vira-java-gateway
dd5e28803d3bda9ce42d3b90eacf643179f23f27
[ "MIT" ]
null
null
null
src/main/java/es/vira/gateway/constant/HttpConstant.java
Victin09/vira-java-gateway
dd5e28803d3bda9ce42d3b90eacf643179f23f27
[ "MIT" ]
null
null
null
src/main/java/es/vira/gateway/constant/HttpConstant.java
Victin09/vira-java-gateway
dd5e28803d3bda9ce42d3b90eacf643179f23f27
[ "MIT" ]
null
null
null
21.481481
113
0.591379
1,002,153
package es.vira.gateway.constant; /** * http constant * * @author Víctor Gómez * @since 3.0.2 */ public class HttpConstant { /** * the max request size,10MB */ public static final int MAX_CONTENT_LEN = 64 * 1024 * 1024; /** * http pre */ public static final String HTTP_PREFIX = "http://"; /** * https pre */ public static final String HTTPS_PREFIX = "https://"; /** * redirect template */ public static final String REDIRECT_TEMPLATE = "<html><meta http-equiv='refresh' content='0;url=%s'></html>"; }
924227f439388faf0e65b610a9147b029ea4b9a5
1,561
java
Java
neradb-engine/src/main/java/com/neradb/command/ddl/DropSchema.java
wplatform/db-incubator
bd3f284d545601ba0ab0379cb6bbd06eebdc82d7
[ "Apache-2.0" ]
null
null
null
neradb-engine/src/main/java/com/neradb/command/ddl/DropSchema.java
wplatform/db-incubator
bd3f284d545601ba0ab0379cb6bbd06eebdc82d7
[ "Apache-2.0" ]
null
null
null
neradb-engine/src/main/java/com/neradb/command/ddl/DropSchema.java
wplatform/db-incubator
bd3f284d545601ba0ab0379cb6bbd06eebdc82d7
[ "Apache-2.0" ]
null
null
null
25.590164
89
0.64574
1,002,154
/* * Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0, * and the EPL 1.0 (http://h2database.com/html/license.html). * Initial Developer: H2 Group */ package com.neradb.command.ddl; import com.neradb.command.CommandInterface; import com.neradb.common.DbException; import com.neradb.common.ErrorCode; import com.neradb.dbobject.Database; import com.neradb.dbobject.schema.Schema; import com.neradb.engine.Session; /** * This class represents the statement * DROP SCHEMA */ public class DropSchema extends DefineCommand { private String schemaName; private boolean ifExists; public DropSchema(Session session) { super(session); } public void setSchemaName(String name) { this.schemaName = name; } @Override public int update() { session.getUser().checkSchemaAdmin(); session.commit(true); Database db = session.getDatabase(); Schema schema = db.findSchema(schemaName); if (schema == null) { if (!ifExists) { throw DbException.get(ErrorCode.SCHEMA_NOT_FOUND_1, schemaName); } } else { if (!schema.canDrop()) { throw DbException.get(ErrorCode.SCHEMA_CAN_NOT_BE_DROPPED_1, schemaName); } db.removeDatabaseObject(session, schema); } return 0; } public void setIfExists(boolean ifExists) { this.ifExists = ifExists; } @Override public int getType() { return CommandInterface.DROP_SCHEMA; } }
92422868764b380bc933ade1fb68543b40bb48ce
3,769
java
Java
src/main/java/org/tinymediamanager/ui/dialogs/MessageHistoryDialog.java
SoapCanFly/tinyPornhubManager
d53b0ada8d0211f5d52a887945ce0428f5a65591
[ "Apache-2.0" ]
1
2022-03-15T14:00:38.000Z
2022-03-15T14:00:38.000Z
src/main/java/org/tinymediamanager/ui/dialogs/MessageHistoryDialog.java
SoapCanFly/tinyPornhubManager
d53b0ada8d0211f5d52a887945ce0428f5a65591
[ "Apache-2.0" ]
1
2022-02-12T18:24:52.000Z
2022-02-12T18:24:52.000Z
src/main/java/org/tinymediamanager/ui/dialogs/MessageHistoryDialog.java
LemonGo97/TinyMediaManager
fe6ec2b0105d4fc5b9523059dde86d105c8720f9
[ "Apache-2.0" ]
null
null
null
32.491379
101
0.73229
1,002,155
/* * Copyright 2012 - 2020 Manuel Laggner * * 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.tinymediamanager.ui.dialogs; import java.awt.BorderLayout; import java.util.HashMap; import java.util.Map; import javax.swing.BoxLayout; import javax.swing.JButton; import javax.swing.JPanel; import javax.swing.JScrollPane; import org.tinymediamanager.core.Message; import org.tinymediamanager.ui.MainWindow; import org.tinymediamanager.ui.TmmUIMessageCollector; import org.tinymediamanager.ui.panels.MessagePanel; import ca.odell.glazedlists.EventList; import ca.odell.glazedlists.event.ListEvent; import ca.odell.glazedlists.event.ListEventListener; import net.miginfocom.swing.MigLayout; /** * The class MessageHistoryDialog is used to display a history of all messages in a window * * @author Manuel Laggner */ public class MessageHistoryDialog extends TmmDialog implements ListEventListener<Message> { private static final long serialVersionUID = -5054005564554148578L; private static MessageHistoryDialog instance; private Map<Message, JPanel> messageMap; private JPanel messagesPanel; private MessageHistoryDialog() { super(MainWindow.getActiveInstance(), BUNDLE.getString("summarywindow.title"), "messageSummary"); setModal(false); setModalityType(ModalityType.MODELESS); messageMap = new HashMap<>(); JPanel panelContent = new JPanel(); getContentPane().add(panelContent, BorderLayout.CENTER); messagesPanel = new JPanel(); messagesPanel.setOpaque(false); messagesPanel.setLayout(new BoxLayout(messagesPanel, BoxLayout.PAGE_AXIS)); JScrollPane scrollPane = new JScrollPane(); scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER); scrollPane.setViewportView(messagesPanel); scrollPane.getVerticalScrollBar().setUnitIncrement(16); panelContent.setLayout(new MigLayout("", "[300lp:600lp,grow]", "[200lp:400lp,grow]")); panelContent.add(scrollPane, "cell 0 0,grow, wmin 0"); JButton btnClose = new JButton(BUNDLE.getString("Button.close")); btnClose.addActionListener(arg0 -> setVisible(false)); addDefaultButton(btnClose); TmmUIMessageCollector.instance.getMessages().addListEventListener(this); updatePanel(); } public static MessageHistoryDialog getInstance() { if (instance == null) { instance = new MessageHistoryDialog(); } return instance; } @Override public void setVisible(boolean visible) { TmmUIMessageCollector.instance.resetNewMessageCount(); super.setVisible(visible); } @Override public void listChanged(ListEvent<Message> listChanges) { updatePanel(); } private void updatePanel() { EventList<Message> list = TmmUIMessageCollector.instance.getMessages(); list.getReadWriteLock().readLock().lock(); try { for (Message message : list) { if (!messageMap.containsKey(message)) { MessagePanel panel = new MessagePanel(message); messageMap.put(message, panel); messagesPanel.add(panel); } } messagesPanel.revalidate(); messagesPanel.repaint(); } finally { list.getReadWriteLock().readLock().unlock(); } } }
924228973b1527702d09cd097f13b080fe24863e
2,854
java
Java
java-task-force-core/src/main/java/com/morethanheroic/taskforce/executor/task/TaskExecutor.java
laxika/spring-task-force
58e6dcd171febe36c82666d5b1ed8abe7a0fabb0
[ "MIT" ]
1
2021-03-07T16:39:16.000Z
2021-03-07T16:39:16.000Z
java-task-force-core/src/main/java/com/morethanheroic/taskforce/executor/task/TaskExecutor.java
laxika/spring-task-force
58e6dcd171febe36c82666d5b1ed8abe7a0fabb0
[ "MIT" ]
3
2019-08-20T17:05:41.000Z
2019-08-23T10:48:54.000Z
java-task-force-core/src/main/java/com/morethanheroic/taskforce/executor/task/TaskExecutor.java
laxika/spring-task-force
58e6dcd171febe36c82666d5b1ed8abe7a0fabb0
[ "MIT" ]
1
2019-08-20T17:13:50.000Z
2019-08-20T17:13:50.000Z
29.729167
125
0.679047
1,002,156
package com.morethanheroic.taskforce.executor.task; import com.morethanheroic.taskforce.executor.item.WorkItemProcessor; import com.morethanheroic.taskforce.sink.Sink; import com.morethanheroic.taskforce.task.domain.TaskDescriptor; import lombok.Getter; import lombok.extern.slf4j.Slf4j; import java.util.List; import java.util.Optional; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.Semaphore; /** * This class is responsible for running the tasks available in a {@link com.morethanheroic.taskforce.job.Job}. */ @Slf4j public class TaskExecutor { private final Semaphore semaphore; private final ExecutorService taskExecutorService; private final WorkItemProcessor workItemProcessor; @Getter private final int threadCount; private TaskExecutor(final int threadCount) { this.threadCount = threadCount; semaphore = new Semaphore(threadCount); taskExecutorService = Executors.newFixedThreadPool(threadCount); workItemProcessor = new WorkItemProcessor(); } public void submitTasks(final Object rawWorkItem, final List<TaskDescriptor<?, ?>> taskDescriptors, final Sink<?> sink) { acquireWorkingSlot(); taskExecutorService.submit(() -> processWorkItem(rawWorkItem, taskDescriptors, sink)); } public void shutdown() { taskExecutorService.shutdown(); } public void waitUntilFinished() { try { semaphore.acquire(threadCount); } catch (final InterruptedException e) { throw new RuntimeException("Unable to wait until all tasks are finished!", e); } } private void processWorkItem(final Object rawWorkItem, final List<TaskDescriptor<?, ?>> taskDescriptors, final Sink<?> sink) { try { workItemProcessor.processWorkItem(rawWorkItem, taskDescriptors, sink); } catch (final Exception e) { log.warn("Error while processing tasks!", e); } finally { releaseWorkingSlot(); } } private void acquireWorkingSlot() { try { semaphore.acquire(); } catch (final InterruptedException e) { throw new RuntimeException("Unable to acquire working slot!"); } } private void releaseWorkingSlot() { semaphore.release(); } public static TaskExecutor.TaskExecutorBuilder builder() { return new TaskExecutor.TaskExecutorBuilder(); } public static class TaskExecutorBuilder { private int threadCount; public TaskExecutorBuilder threadCount(final int threadCount) { this.threadCount = threadCount; return this; } public TaskExecutor build() { return new TaskExecutor(threadCount); } } }
92422a07b4b06d43d540bc1243faf6a82235002d
2,653
java
Java
flink/word-count/src/main/java/com/acgist/SetJoinApplication.java
acgist/demo
7dfc5d6cb967dafec4d5707e2f395d3e3d354d80
[ "BSD-3-Clause" ]
3
2019-07-06T02:31:44.000Z
2020-07-31T08:04:55.000Z
flink/word-count/src/main/java/com/acgist/SetJoinApplication.java
acgist/demo
7dfc5d6cb967dafec4d5707e2f395d3e3d354d80
[ "BSD-3-Clause" ]
24
2020-07-31T07:21:58.000Z
2021-12-19T08:43:42.000Z
flink/word-count/src/main/java/com/acgist/SetJoinApplication.java
acgist/demo
7dfc5d6cb967dafec4d5707e2f395d3e3d354d80
[ "BSD-3-Clause" ]
null
null
null
40.19697
169
0.64493
1,002,157
package com.acgist; import org.apache.flink.api.common.operators.Order; import org.apache.flink.api.common.typeinfo.Types; import org.apache.flink.api.java.ExecutionEnvironment; import org.apache.flink.api.java.operators.DataSource; import org.apache.flink.api.java.tuple.Tuple2; import org.apache.flink.api.java.tuple.Tuple4; import org.apache.flink.util.Collector; public class SetJoinApplication { public static void main(String[] args) throws Exception { final ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment(); final DataSource<Tuple2<Integer, String>> source = env.fromElements(Tuple2.of(1, "a"), Tuple2.of(2, "b")); final DataSource<Tuple2<Integer, String>> target = env.fromElements(Tuple2.of(1, "a"), Tuple2.of(3, "c")); // source.joinWithTiny(target) // source.joinWithHuge(target) // source.join(target, JoinHint.BROADCAST_HASH_FIRST) // ((1,a),(1,a)) source.join(target).where(0).equalTo(0).print(); // (1,a,1,a) // (2,b,0,) source.leftOuterJoin(target).where(0).equalTo(0).with((a, b) -> Tuple4.of(a.f0, a.f1, b == null ? 0 : b.f0, b == null ? "" : b.f1)) .returns(Types.TUPLE(Types.INT, Types.STRING, Types.INT, Types.STRING)).print(); // source.leftOuterJoin(target).where(0).equalTo(0).with((a, b) -> Tuple4.of(a.f0, a.f1, b == null ? 0 : b.f0, b == null ? "" : b.f1)) // .returns(Types.TUPLE(Types.INT, Types.STRING, Types.INT, Types.STRING)).withForwardedFieldsFirst("f1->f3").print(); // (0,,3,c) // (1,a,1,a) source.rightOuterJoin(target).where(0).equalTo(0).with((a, b) -> Tuple4.of(a == null ? 0 : a.f0, a == null ? "" : a.f1, b.f0, b.f1)) .returns(Types.TUPLE(Types.INT, Types.STRING, Types.INT, Types.STRING)).print(); // (0,,3,c) // (1,a,1,a) // (2,b,0,) source.fullOuterJoin(target).where(0).equalTo(0).with((a, b) -> Tuple4.of(a == null ? 0 : a.f0, a == null ? "" : a.f1, b == null ? 0 : b.f0, b == null ? "" : b.f1)) .returns(Types.TUPLE(Types.INT, Types.STRING, Types.INT, Types.STRING)).print(); // ... source.coGroup(target).where(0).equalTo(0).with((Iterable<Tuple2<Integer, String>> a, Iterable<Tuple2<Integer, String>> b, Collector<Tuple2<Integer, String>> out) -> { // 相同Key a.forEach(out::collect); b.forEach(out::collect); }) .returns(Types.TUPLE(Types.INT, Types.STRING)) .print(); // ((1,a),(1,a)) // ((1,a),(3,c)) // ((2,b),(1,a)) // ((2,b),(3,c)) source.cross(target).print(); // (1,a) // (1,a) // (2,b) // (3,c) source.union(target).print(); source.union(target) // .sortPartition(0, Order.DESCENDING) // .first(2) .groupBy(0) .sortGroup(0, Order.DESCENDING) // 每组一条 .first(1) .print(); } }
92422a88c8f69409e030baa21df500db22250e9f
12,033
java
Java
generative_core/src/main/java/com/liveramp/generative/Generative.java
LiveRamp/generative
3f03fcc8f8659c2b072e4978056825188989f784
[ "Apache-2.0" ]
6
2018-05-16T04:01:04.000Z
2021-04-08T19:32:44.000Z
generative_core/src/main/java/com/liveramp/generative/Generative.java
LiveRamp/generative
3f03fcc8f8659c2b072e4978056825188989f784
[ "Apache-2.0" ]
3
2018-05-26T03:34:53.000Z
2018-10-09T21:04:28.000Z
generative_core/src/main/java/com/liveramp/generative/Generative.java
LiveRamp/generative
3f03fcc8f8659c2b072e4978056825188989f784
[ "Apache-2.0" ]
3
2018-05-26T02:05:13.000Z
2022-02-19T09:45:19.000Z
32.609756
126
0.679465
1,002,158
package com.liveramp.generative; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Optional; import java.util.OptionalInt; import java.util.Random; import java.util.Set; import java.util.concurrent.atomic.AtomicInteger; import java.util.stream.Collectors; import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.tuple.Pair; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class Generative { private long seed = 0; private Random random; //For dealing with shrinking private Optional<Map<String, ShrinkState>> shrinkStates; private final Map<String, Pair<Object, Arbitrary>> generated; //For printing nice names for generated variables private String varName; private final AtomicInteger index; //Used for generation of "helper" random values that don't need names private Generative gen; public Generative(long seed) { this(seed, Optional.empty()); } public Generative(long seed, Map<String, ShrinkState> shrinkStates) { this(seed, Optional.ofNullable(shrinkStates)); } public Generative(long seed, Optional<Map<String, ShrinkState>> shrinkStates) { this.seed = seed; this.random = new Random(seed); this.gen = this; this.generated = new HashMap<>(); this.shrinkStates = shrinkStates.map(HashMap::new); this.index = new AtomicInteger(0); } //There's almost certainly a less dumb way to do this public Generative(Generative g, String name) { this.seed = g.seed; this.random = g.random; this.generated = g.generated; this.varName = name; this.gen = g; this.shrinkStates = g.shrinkStates; this.index = g.index; } public Random getInternalRandom() { return random; } public Generative namedVar(String name) { return new Generative(this, name); } public <T> T generate(Arbitrary<T> arbitrary) { T generatedVal = arbitrary.get(random); //We only engage shrinking behavior over named variables if (varName != null) { String realVarName = generated.containsKey(varName) ? varName + index.getAndIncrement() : varName; generatedVal = attemptShrink(generatedVal, realVarName); saveNamedVar(realVarName, arbitrary, generatedVal); } return generatedVal; } private <T> T attemptShrink(T generatedVal, String realVarName) { if (shrinkStates.isPresent()) { ShrinkState state = shrinkStates.get().get(realVarName); if (state != null && !state.shrinks.isEmpty()) { generatedVal = (T)state.shrinks.get(state.index); } } return generatedVal; } private <T> void saveNamedVar(String realVarName, Arbitrary<T> arb, T t) { if (varName != null) { generated.put(realVarName, Pair.of(t, arb)); } } public Generator<Integer> anyInteger() { return new ArbitraryBoundedInt(Integer.MIN_VALUE, Integer.MAX_VALUE).gen(this); } public Generator<Integer> anyPositiveInteger() { return anyBoundedInteger(1, Integer.MAX_VALUE); } public Generator<Integer> anyBoundedInteger(int startInclusive, int endExclusive) { return new ArbitraryBoundedInt(startInclusive, endExclusive - 1).gen(this); } public Generator<Integer> anyIntegerGreaterThan(int startExclusive) { return anyBoundedInteger(startExclusive + 1, Integer.MAX_VALUE); } public Generator<Integer> anyPositiveIntegerLessThan(int endExclusive) { return anyBoundedInteger(1, endExclusive); } public Generator<Integer> anyIntegerLessThan(int endExclusive) { return anyBoundedInteger(Integer.MIN_VALUE, endExclusive); } public Generator<byte[]> anyByteArrayOfLength(Arbitrary<Integer> length) { return new ArbitraryByteArray(length).gen(this); } public Generator<byte[]> anyByteArrayOfLength(int length) { return new ArbitraryByteArray(new Fixed<>(length)).gen(this); } public Generator<byte[]> anyByteArrayUpToLength(int length) { return anyByteArrayOfLength(gen.anyPositiveIntegerLessThan(length + 1)); } public Generator<byte[]> anyByteArray() { return anyByteArrayOfLength(gen.anyPositiveIntegerLessThan(1025)); } public <T, L extends List<T>> L shuffle(L l) { Collections.shuffle(l, random); List<T> copy = new ArrayList<>(l); //saveNamedVar(copy); return l; } public Generator<Boolean> anyBoolean() { return new ArbitraryBoolean().gen(this); } public Generator<Boolean> anyWeightedBoolean(double probabilityTrue) { return anyDoubleFrom0To1().map(d -> d < probabilityTrue); } public Generator<Double> anyDoubleFrom0To1() { return ((Arbitrary<Double>)r -> r.nextDouble()).gen(this); } public Generator<Boolean> atRandom() { return anyBoolean(); } public Generator<String> anyStringOfLength(int length) { return new ArbitraryString(length).gen(this); } public Generator<String> anyStringOfLengthUpTo(int length) { return anyStringOfLength(gen.anyPositiveIntegerLessThan(length + 1).get()); } public Generator<String> anyString() { return anyStringOfLengthUpTo(256); } public <T> Generator<List<T>> listOfLength(Arbitrary<T> items, int length) { return new ListOf<>(items, new Fixed<>(length)).gen(this); } public <T> Generator<List<T>> listOfLength(Arbitrary<T> items, Arbitrary<Integer> length) { return new ListOf<>(items, length).gen(this); } public <T> Generator<List<T>> listOfLengthUpTo(Arbitrary<T> items, int length) { Integer trueLength = gen.anyPositiveIntegerLessThan(length + 1).get(); return listOfLength(items, trueLength); } public <T> Generator<List<T>> listOf(Arbitrary<T> items) { return listOfLengthUpTo(items, 1000); } public <T> Generator<Set<T>> setOfSize(Arbitrary<T> items, int size) { return new SetOf<>(items, new Fixed<>(size)).gen(this); } public <T> Generator<Set<T>> setOfSizeUpTo(Arbitrary<T> items, int length) { return setOfSize(items, gen.anyPositiveIntegerLessThan(length + 1)); } public <T> Generator<Set<T>> setOfSize(Arbitrary<T> items, Arbitrary<Integer> length) { return new SetOf<>(items, length).gen(this); } public <T> Generator<Set<T>> setOf(Arbitrary<T> items) { return setOfSizeUpTo(items, 1000); } public <T> Generator<T> anyOf(T... options) { List<T> copy = new ArrayList<>(); Collections.addAll(copy, options); return new ElementOf<>(copy).gen(this); } public <T> Generator<T> anyOf(Collection<T> options) { return new ElementOf<>(options).gen(this); } public static void runTests(int numTests, TestBlock block, String... additionalSeeds) { int i; for (i = 0; i < numTests; i++) { runTestWithSeed(new Random().nextInt(), i, block, true); } for (String specificSeed : additionalSeeds) { runTestWithSeed(specificSeed, i, block); } } public static void runTestsWithoutShrinking(int numTests, TestBlock block, String... additionalSeeds) { int i; for (i = 0; i < numTests; i++) { runTestWithSeed(new Random().nextInt(), i, block, false); } for (String specificSeed : additionalSeeds) { runTestWithSeed(specificSeed, i, block); } } private static void runTestWithSeed(long seed, int testNumber, TestBlock block, boolean shouldShrink) { Generative gen = null; try { gen = new Generative(seed); block.run(testNumber, gen); } catch (Throwable e) { if (!shouldShrink) { logGeneratedNamedVars(gen); throw new RuntimeException("Test case failed with seed: "+ seed, e); } else { Pair<String, Throwable> shrinkSeed = shrink(seed, testNumber, gen, block); if (shrinkSeed.getRight() != null) { throw new RuntimeException("Shrunken test case failed with seed: " + shrinkSeed.getLeft(), shrinkSeed.getRight()); } else { throw new RuntimeException("Test case failed with seed: " + seed, e); } } } } private static void logGeneratedNamedVars(Generative gen) { if (gen != null) { StringBuilder vars = new StringBuilder("Generated variables were: \n"); for (Map.Entry<String, Pair<Object, Arbitrary>> entry : gen.generated.entrySet()) { vars.append(entry.getKey() + " : " + entry.getValue().getRight().prettyPrint(entry.getValue().getLeft()) + "\n"); } LOG.info(vars.toString()); } } private static void runTestWithSeed(String seed, int testNumber, TestBlock block) { Generative gen = null; try { Pair<Long, Integer> seedVars = parseSeed(seed); gen = new Generative(seedVars.getLeft()); if (seedVars.getRight() > -1) { //if we need to shrink, this is a dry run to get initial variables try { block.run(testNumber, gen); } catch (Throwable e) { //don't care about exceptions here - in fact we sort of expect them given how shrunken tests cases are derived } Map<String, ShrinkState> shrinkStates = getShrinkStatesFromGeneratedValues(gen.generated); for (int i = 0; i < seedVars.getRight(); i++) { shrinkStates = iterateShrinkStates(shrinkStates); } gen = new Generative(seedVars.getLeft(), shrinkStates); block.run(testNumber, gen); } else { block.run(testNumber, gen); } } catch (Throwable e) { logGeneratedNamedVars(gen); throw new RuntimeException("Error during test while using seed: " + seed, e); } } private static Pair<Long, Integer> parseSeed(String seed) { String[] split = StringUtils.split(seed, ";"); long seedLong = Long.parseLong(split[0]); if (split.length > 1) { return Pair.of(seedLong, Integer.parseInt(split[1])); } else { return Pair.of(seedLong, -1); } } private static Logger LOG = LoggerFactory.getLogger(Generative.class); private static Pair<String, Throwable> shrink(long seed, int testNumber, Generative originalGen, TestBlock block) { Throwable lastException = null; Map<String, Pair<Object, Arbitrary>> generated = originalGen.generated; Map<String, ShrinkState> shrinkStates = getShrinkStatesFromGeneratedValues(generated); Generative gen = null; int shrinksPerformed = 0; try { while (shrinkStates != null) { shrinksPerformed++; gen = new Generative(seed, shrinkStates); block.run(testNumber + shrinksPerformed, gen); shrinkStates = iterateShrinkStates(shrinkStates); } } catch (Throwable e) { lastException = e; } LOG.info("Returning shrunken test case - performed " + shrinksPerformed + " shrinks"); logGeneratedNamedVars(gen); return Pair.of(seed + ";" + shrinksPerformed, lastException); } private static Map<String, ShrinkState> getShrinkStatesFromGeneratedValues(Map<String, Pair<Object, Arbitrary>> generated) { return generated.entrySet().stream().collect( Collectors.toMap( e -> e.getKey(), e -> new ShrinkState<>(e.getValue().getRight().shrink(e.getValue().getLeft()), 0))); } private static Map<String, ShrinkState> iterateShrinkStates(Map<String, ShrinkState> shrinkStates) { OptionalInt minIndex = shrinkStates.values().stream().mapToInt(s -> s.index).min(); Map<String, ShrinkState> result = new HashMap<>(shrinkStates); if (minIndex.isPresent()) { for (Map.Entry<String, ShrinkState> entry : shrinkStates.entrySet()) { if (entry.getValue().index == minIndex.getAsInt() && entry.getValue().index < entry.getValue().shrinks.size()) { result.put(entry.getKey(), new ShrinkState<>(entry.getValue().shrinks, entry.getValue().index + 1)); return result; } } } return null; } private static class ShrinkState<T> { private List<T> shrinks; private int index; private ShrinkState(List<T> shrinks, int index) { this.shrinks = shrinks; this.index = index; } } }
92422bd14b14517898716f01b15ea21f3801514f
1,613
java
Java
FeatureEngine/src/main/java/io/pivotal/rtsmadlib/client/features/cache/GemfireReader.java
pivotal/Realtime-scoring-for-MADlib
4ed6500bdd3422c3d090d8c6c679d940c2b7c4f4
[ "Apache-2.0" ]
9
2019-08-13T11:02:44.000Z
2021-03-29T17:10:33.000Z
FeatureEngine/src/main/java/io/pivotal/rtsmadlib/client/features/cache/GemfireReader.java
pivotal/Realtime-scoring-for-MADlib
4ed6500bdd3422c3d090d8c6c679d940c2b7c4f4
[ "Apache-2.0" ]
1
2019-08-12T16:11:28.000Z
2019-08-12T16:11:43.000Z
FeatureEngine/src/main/java/io/pivotal/rtsmadlib/client/features/cache/GemfireReader.java
pivotal/Realtime-scoring-for-MADlib
4ed6500bdd3422c3d090d8c6c679d940c2b7c4f4
[ "Apache-2.0" ]
7
2019-10-22T04:07:40.000Z
2021-05-18T18:28:36.000Z
33.604167
95
0.699318
1,002,159
/********************************************************************************************** Copyright 2019 Pivotal Software 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 io.pivotal.rtsmadlib.client.features.cache; import java.util.Optional; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Profile; import org.springframework.stereotype.Component; import io.pivotal.rtsmadlib.client.features.cache.repo.MADlibFeaturesCacheRepository; import io.pivotal.rtsmadlib.client.features.model.MADlibFeature; import io.pivotal.rtsmadlib.client.features.model.MADlibFeatureKey; /** * @author sridhar paladugu * */ @Component @Profile("gemfire") public class GemfireReader implements CacheReader { @Autowired MADlibFeaturesCacheRepository madlibFeaturesCacheRepo; public MADlibFeature lookUpFeature(MADlibFeatureKey key){ Optional<MADlibFeature> features = madlibFeaturesCacheRepo.findById(key); return features.get(); } }
92422ca42f1416b9663a2e64f7baf240cfa31792
818
java
Java
QStore4S/src/main/java/edu/asu/qstore4s/search/elements/factory/impl/SearchConceptFactory.java
AourpallyNikhil/qstore
0c36c323128da3ee5fe1ab603d8dfe4854c61245
[ "MIT" ]
null
null
null
QStore4S/src/main/java/edu/asu/qstore4s/search/elements/factory/impl/SearchConceptFactory.java
AourpallyNikhil/qstore
0c36c323128da3ee5fe1ab603d8dfe4854c61245
[ "MIT" ]
null
null
null
QStore4S/src/main/java/edu/asu/qstore4s/search/elements/factory/impl/SearchConceptFactory.java
AourpallyNikhil/qstore
0c36c323128da3ee5fe1ab603d8dfe4854c61245
[ "MIT" ]
null
null
null
25.5625
71
0.767726
1,002,160
package edu.asu.qstore4s.search.elements.factory.impl; import org.springframework.stereotype.Service; import edu.asu.qstore4s.search.elements.ISearchConcept; import edu.asu.qstore4s.search.elements.factory.ISearchConceptFactory; import edu.asu.qstore4s.search.elements.impl.SearchConcept; @Service public class SearchConceptFactory implements ISearchConceptFactory { @Override public ISearchConcept createSearchConcept() { ISearchConcept conceptObject = new SearchConcept(); return conceptObject; } @Override public ISearchConcept createSearchConcept(String sourceUri) { ISearchConcept conceptObject = new SearchConcept(); if(sourceUri==null){ conceptObject.setSourceURI(""); } else{ conceptObject.setSourceURI(sourceUri);} return conceptObject; } }
92422d140dd51ac760e11fd15b5b1f55e8cb9b5b
758
java
Java
spring-jsr303-extra/src/main/java/com/catfish/element/WhenElement.java
lialzmChina/catfish-spring-jsr303-extra
55b145a329edd6df5863b69ef46f4b913c2885c2
[ "MIT" ]
null
null
null
spring-jsr303-extra/src/main/java/com/catfish/element/WhenElement.java
lialzmChina/catfish-spring-jsr303-extra
55b145a329edd6df5863b69ef46f4b913c2885c2
[ "MIT" ]
null
null
null
spring-jsr303-extra/src/main/java/com/catfish/element/WhenElement.java
lialzmChina/catfish-spring-jsr303-extra
55b145a329edd6df5863b69ef46f4b913c2885c2
[ "MIT" ]
null
null
null
22.969697
95
0.734828
1,002,161
package com.catfish.element; import com.catfish.ValidatorElementList; import java.io.Serializable; /** * Created by A on 2017/4/13. */ public class WhenElement implements Serializable { private ValidatorElementList<ValidaElement> validatorElements=new ValidatorElementList<>(); private Boolean expression; public ValidatorElementList<ValidaElement> getValidatorElements() { return validatorElements; } public void setValidatorElements(ValidatorElementList<ValidaElement> validatorElements) { this.validatorElements = validatorElements; } public Boolean getExpression() { return expression; } public void setExpression(Boolean expression) { this.expression = expression; } }
92422d39ebafbdd1a46f4413bc0d2fc5d9ec1edb
3,708
java
Java
app/src/main/java/com/smile/slidecalendar/ui/activity/MainActivity.java
EasyToForget/SlideCalendar
440c973f06c07822dbed80df2deabc81cf99c932
[ "Apache-2.0" ]
5
2017-03-01T10:52:30.000Z
2018-09-25T00:01:44.000Z
app/src/main/java/com/smile/slidecalendar/ui/activity/MainActivity.java
EasyToForget/SlideCalendar
440c973f06c07822dbed80df2deabc81cf99c932
[ "Apache-2.0" ]
null
null
null
app/src/main/java/com/smile/slidecalendar/ui/activity/MainActivity.java
EasyToForget/SlideCalendar
440c973f06c07822dbed80df2deabc81cf99c932
[ "Apache-2.0" ]
null
null
null
41.2
153
0.748112
1,002,162
package com.smile.slidecalendar.ui.activity; import android.graphics.Color; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v7.app.AppCompatActivity; import com.aurelhubert.ahbottomnavigation.AHBottomNavigation; import com.aurelhubert.ahbottomnavigation.AHBottomNavigationItem; import com.aurelhubert.ahbottomnavigation.AHBottomNavigationViewPager; import com.smile.slidecalendar.R; import com.smile.slidecalendar.ui.adapter.BaseFragmentAdapter; import com.smile.slidecalendar.ui.fragment.CalendarFragment; import com.smile.slidecalendar.ui.fragment.HomeFragment; import com.smile.slidecalendar.ui.fragment.MessageFragment; import com.smile.slidecalendar.ui.fragment.MyFragment; import java.util.ArrayList; import java.util.List; import butterknife.BindView; import butterknife.ButterKnife; public class MainActivity extends AppCompatActivity { @BindView(R.id.view_pager) AHBottomNavigationViewPager viewPager; @BindView(R.id.bottom_navigation) AHBottomNavigation bottomNavigation; private ArrayList<AHBottomNavigationItem> bottomNavigationItems = new ArrayList<>(); private int currentPosition; //index of current fragment @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); ButterKnife.bind(this); initView(); } /** * init fragment, add the first fragment */ private void initView() { AHBottomNavigationItem item1 = new AHBottomNavigationItem(R.string.navigation_tab_homepage, R.drawable.home_toolbar, R.color.bg_white_color); AHBottomNavigationItem item2 = new AHBottomNavigationItem(R.string.navigation_tab_schedule, R.drawable.calendar_toolbar, R.color.bg_white_color); AHBottomNavigationItem item3 = new AHBottomNavigationItem(R.string.navigation_tab_message, R.drawable.message_toolbar, R.color.bg_white_color); AHBottomNavigationItem item4 = new AHBottomNavigationItem(R.string.navigation_tab_profile, R.drawable.people_toolbar, R.color.bg_white_color); bottomNavigationItems.add(item1); bottomNavigationItems.add(item2); bottomNavigationItems.add(item3); bottomNavigationItems.add(item4); bottomNavigation.addItems(bottomNavigationItems); bottomNavigation.setDefaultBackgroundColor(Color.parseColor("#FEFEFE")); bottomNavigation.setAccentColor(Color.parseColor("#1E8CF0")); bottomNavigation.setInactiveColor(Color.parseColor("#949494")); bottomNavigation.setNotificationBackgroundColor(Color.parseColor("#FE5652")); bottomNavigation.setNotificationTextColor(Color.parseColor("#FE5652")); bottomNavigation.setColored(false); bottomNavigation.setTitleState(AHBottomNavigation.TitleState.ALWAYS_SHOW); bottomNavigation.setOnTabSelectedListener(new AHBottomNavigation.OnTabSelectedListener() { @Override public boolean onTabSelected(int position, boolean wasSelected) { if (position != currentPosition) { currentPosition = position; } viewPager.setCurrentItem(position, false); return true; } }); List<Fragment> fragments = new ArrayList<>(); fragments.add(HomeFragment.newInstance()); fragments.add(CalendarFragment.newInstance()); fragments.add(MessageFragment.newInstance()); fragments.add(MyFragment.newInstance()); viewPager.setOffscreenPageLimit(4); viewPager.setAdapter(new BaseFragmentAdapter(getSupportFragmentManager(), fragments)); } }
92422dc0765b3a6ca31d2747dc8a38f7fc06232d
3,234
java
Java
ide/project.dependency/src/org/netbeans/modules/project/dependency/Scope.java
oyarzun/incubator-netbeans
bd6a7294a9ac4bd8583cff6f24672df3ef90b68f
[ "Apache-2.0" ]
988
2017-09-11T15:04:49.000Z
2019-04-25T14:25:21.000Z
ide/project.dependency/src/org/netbeans/modules/project/dependency/Scope.java
oyarzun/incubator-netbeans
bd6a7294a9ac4bd8583cff6f24672df3ef90b68f
[ "Apache-2.0" ]
907
2017-09-16T17:35:25.000Z
2019-04-25T00:53:46.000Z
ide/project.dependency/src/org/netbeans/modules/project/dependency/Scope.java
oyarzun/incubator-netbeans
bd6a7294a9ac4bd8583cff6f24672df3ef90b68f
[ "Apache-2.0" ]
415
2017-09-11T16:44:14.000Z
2019-04-25T01:09:42.000Z
33.6875
112
0.65739
1,002,163
/* * 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.netbeans.modules.project.dependency; import java.util.Objects; /** * Represents "scope" (maven term) or "configuration" (gradle term). Eeach project type * may define multiple additional Scopes, but should support the abstract ones defined in * {@link Scopes}. * <p/> * Scopes are identified by its {@link #name name}; two scopes with the same name are equal. * Project implementations may provide their own scopes with standard names since they * may use different include/imply hierarchy. * * @author sdedic */ public abstract class Scope { private final String name; protected Scope(String name) { this.name = name; } /** * Checks if this scope includes the other one. If yes, then queries that executed for this scope * should return all results from the included scope. * * @param s scope to test * @return true, if data for scope "s" are included by this scope; false otherwise (i.e. unrelated scopes) */ public abstract boolean includes(Scope s); /** * Checks if this scope exports the other scope. A scope may {@link #includes include} other * scope, but can choose not to propagate its contents further. * @param s the scope to test * @return true, if data for scope "s" are exported by this scope; false otherwise (i.e. unrelated scopes) */ public abstract boolean exports(Scope s); /** * Determines if artifacts in this scope apply to the other one. This is the reverse of {@link includes} and * allows injection to existing scopes. * * @param s the scope to test. * @return true, if the scope 's' is implied (includes) this one. */ public abstract boolean implies(Scope s); /** * @return name / identifier for the scope. Not subject to L10N. */ public String name() { return name; } @Override public final int hashCode() { int hash = 5; hash = 67 * hash + Objects.hashCode(this.name); return hash; } @Override public final boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final Scope other = (Scope) obj; return Objects.equals(this.name, other.name); } }
92422e075d041af6daabe3ca673d67b385622d1c
6,723
java
Java
src/main/java/il/org/spartan/spartanizer/tippers/TernaryPushdown.java
AmitOha/Spartanizer
5da013d976eb8d72b4a1b722aad1d07b70f038ff
[ "MIT" ]
null
null
null
src/main/java/il/org/spartan/spartanizer/tippers/TernaryPushdown.java
AmitOha/Spartanizer
5da013d976eb8d72b4a1b722aad1d07b70f038ff
[ "MIT" ]
null
null
null
src/main/java/il/org/spartan/spartanizer/tippers/TernaryPushdown.java
AmitOha/Spartanizer
5da013d976eb8d72b4a1b722aad1d07b70f038ff
[ "MIT" ]
null
null
null
39.781065
147
0.679756
1,002,164
package il.org.spartan.spartanizer.tippers; import static org.eclipse.jdt.core.dom.ASTNode.*; import java.util.*; import org.eclipse.jdt.core.dom.*; import static il.org.spartan.spartanizer.ast.navigate.step.*; import static il.org.spartan.spartanizer.ast.navigate.extract.*; import il.org.spartan.spartanizer.ast.factory.*; import il.org.spartan.spartanizer.ast.navigate.*; import il.org.spartan.spartanizer.dispatch.*; import il.org.spartan.spartanizer.engine.*; import il.org.spartan.spartanizer.java.*; import il.org.spartan.spartanizer.tipping.*; /** Pushdown a ternary as far down as possible * @author Yossi Gil * @year 2015 */ public final class TernaryPushdown extends ReplaceCurrentNode<ConditionalExpression> implements TipperCategory.CommnoFactoring { public static Expression right(final Assignment a1) { return a1.getRightHandSide(); } static Expression pushdown(final ConditionalExpression x) { if (x == null) return null; final Expression then = core(x.getThenExpression()); final Expression elze = core(x.getElseExpression()); return wizard.same(then, elze) ? null : pushdown(x, then, elze); } static Expression pushdown(final ConditionalExpression x, final Assignment a1, final Assignment a2) { return a1.getOperator() != a2.getOperator() || !wizard.same(to(a1), to(a2)) ? null : make.plant(subject.pair(to(a1), subject.pair(right(a1), right(a2)).toCondition(x.getExpression())).to(a1.getOperator())) .into(x.getParent()); } private static int findSingleDifference(final List<Expression> es1, final List<Expression> es2) { int $ = -1; for (int ¢ = 0; ¢ < es1.size(); ++¢) if (!wizard.same(es1.get(¢), es2.get(¢))) { if ($ >= 0) return -1; $ = ¢; } return $; } @SuppressWarnings("unchecked") private static <T extends Expression> T p(final ASTNode n, final T $) { return !precedence.is.legal(precedence.of(n)) || precedence.of(n) >= precedence.of($) ? $ : (T) wizard.parenthesize($); } private static Expression pushdown(final ConditionalExpression x, final ClassInstanceCreation e1, final ClassInstanceCreation e2) { if (!wizard.same(e1.getType(), e2.getType()) || !wizard.same(e1.getExpression(), e2.getExpression())) return null; final List<Expression> es1 = arguments(e1); final List<Expression> es2 = arguments(e2); if (es1.size() != es2.size()) return null; final int i = findSingleDifference(es1, es2); if (i < 0) return null; final ClassInstanceCreation $ = duplicate.of(e1); arguments($).remove(i); arguments($).add(i, subject.pair(es1.get(i), es2.get(i)).toCondition(x.getExpression())); return $; } private static Expression pushdown(final ConditionalExpression x, final Expression e1, final Expression e2) { if (e1.getNodeType() != e2.getNodeType()) return null; switch (e1.getNodeType()) { case SUPER_METHOD_INVOCATION: return pushdown(x, (SuperMethodInvocation) e1, (SuperMethodInvocation) e2); case METHOD_INVOCATION: return pushdown(x, (MethodInvocation) e1, (MethodInvocation) e2); case INFIX_EXPRESSION: return pushdown(x, (InfixExpression) e1, (InfixExpression) e2); case ASSIGNMENT: return pushdown(x, (Assignment) e1, (Assignment) e2); case FIELD_ACCESS: return pushdown(x, (FieldAccess) e1, (FieldAccess) e2); case CLASS_INSTANCE_CREATION: return pushdown(x, (ClassInstanceCreation) e1, (ClassInstanceCreation) e2); default: return null; } } private static Expression pushdown(final ConditionalExpression x, final FieldAccess e1, final FieldAccess e2) { if (!wizard.same(e1.getName(), e2.getName())) return null; final FieldAccess $ = duplicate.of(e1); $.setExpression(wizard.parenthesize(subject.pair(e1.getExpression(), e2.getExpression()).toCondition(x.getExpression()))); return $; } private static Expression pushdown(final ConditionalExpression x, final InfixExpression e1, final InfixExpression e2) { if (e1.getOperator() != e2.getOperator()) return null; final List<Expression> es1 = hop.operands(e1); final List<Expression> es2 = hop.operands(e2); if (es1.size() != es2.size()) return null; final int i = findSingleDifference(es1, es2); if (i < 0) return null; final InfixExpression $ = duplicate.of(e1); final List<Expression> operands = hop.operands($); operands.remove(i); operands.add(i, p($, subject.pair(es1.get(i), es2.get(i)).toCondition(x.getExpression()))); return p(x, subject.operands(operands).to($.getOperator())); } private static Expression pushdown(final ConditionalExpression x, final MethodInvocation e1, final MethodInvocation e2) { if (!wizard.same(e1.getName(), e2.getName())) return null; final List<Expression> es1 = arguments(e1); final List<Expression> es2 = arguments(e2); final Expression receiver1 = e1.getExpression(); final Expression receiver2 = e2.getExpression(); if (!wizard.same(receiver1, receiver2)) { if (receiver1 == null || receiver2 == null || !wizard.same(es1, es2) || NameGuess.isClassName(receiver1) || NameGuess.isClassName(receiver2)) return null; final MethodInvocation $ = duplicate.of(e1); assert $ != null; $.setExpression(wizard.parenthesize(subject.pair(receiver1, receiver2).toCondition(x.getExpression()))); return $; } if (es1.size() != es2.size()) return null; final int i = findSingleDifference(es1, es2); if (i < 0) return null; final MethodInvocation $ = duplicate.of(e1); arguments($).remove(i); arguments($).add(i, subject.pair(es1.get(i), es2.get(i)).toCondition(x.getExpression())); return $; } private static Expression pushdown(final ConditionalExpression x, final SuperMethodInvocation e1, final SuperMethodInvocation e2) { if (!wizard.same(e1.getName(), e2.getName())) return null; final List<Expression> es1 = arguments(e1); final List<Expression> es2 = arguments(e2); if (es1.size() != es2.size()) return null; final int i = findSingleDifference(es1, es2); if (i < 0) return null; final SuperMethodInvocation $ = duplicate.of(e1); arguments($).remove(i); arguments($).add(i, subject.pair(es1.get(i), es2.get(i)).toCondition(x.getExpression())); return $; } @Override public String description(@SuppressWarnings("unused") final ConditionalExpression __) { return "Pushdown ?: into expression"; } @Override public Expression replacement(final ConditionalExpression ¢) { return pushdown(¢); } }
92422ea34d8e17a34d36723e8a8d301792f82785
11,739
java
Java
modules/core/src/main/java/org/apache/ignite/internal/IgniteServicesImpl.java
liyuj/gridgain
9505c0cfd7235210993b2871b17f15acf7d3dcd4
[ "CC0-1.0" ]
218
2015-01-04T13:20:55.000Z
2022-03-28T05:28:55.000Z
modules/core/src/main/java/org/apache/ignite/internal/IgniteServicesImpl.java
liyuj/gridgain
9505c0cfd7235210993b2871b17f15acf7d3dcd4
[ "CC0-1.0" ]
175
2015-02-04T23:16:56.000Z
2022-03-28T18:34:24.000Z
modules/core/src/main/java/org/apache/ignite/internal/IgniteServicesImpl.java
liyuj/gridgain
9505c0cfd7235210993b2871b17f15acf7d3dcd4
[ "CC0-1.0" ]
93
2015-01-06T20:54:23.000Z
2022-03-31T08:09:00.000Z
26.261745
120
0.577051
1,002,165
/* * Copyright 2019 GridGain Systems, Inc. and Contributors. * * Licensed under the GridGain Community Edition License (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.gridgain.com/products/software/community-edition/gridgain-community-edition-license * * 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.ignite.internal; import java.io.Externalizable; import java.io.IOException; import java.io.ObjectInput; import java.io.ObjectOutput; import java.io.ObjectStreamException; import java.util.Collection; import java.util.Collections; import org.apache.ignite.IgniteCheckedException; import org.apache.ignite.IgniteException; import org.apache.ignite.IgniteServices; import org.apache.ignite.cluster.ClusterGroup; import org.apache.ignite.internal.cluster.ClusterGroupAdapter; import org.apache.ignite.internal.util.future.IgniteFutureImpl; import org.apache.ignite.internal.util.typedef.internal.A; import org.apache.ignite.internal.util.typedef.internal.U; import org.apache.ignite.lang.IgniteFuture; import org.apache.ignite.services.Service; import org.apache.ignite.services.ServiceConfiguration; import org.apache.ignite.services.ServiceDescriptor; import org.jetbrains.annotations.Nullable; /** * {@link org.apache.ignite.IgniteServices} implementation. */ public class IgniteServicesImpl extends AsyncSupportAdapter implements IgniteServices, Externalizable { /** */ private static final long serialVersionUID = 0L; /** */ private GridKernalContext ctx; /** */ private ClusterGroupAdapter prj; /** * Required by {@link Externalizable}. */ public IgniteServicesImpl() { // No-op. } /** * @param ctx Kernal context. * @param prj Projection. * @param async Async support flag. */ public IgniteServicesImpl(GridKernalContext ctx, ClusterGroupAdapter prj, boolean async) { super(async); this.ctx = ctx; this.prj = prj; } /** {@inheritDoc} */ @Override public ClusterGroup clusterGroup() { return prj; } /** {@inheritDoc} */ @Override public void deployNodeSingleton(String name, Service svc) { A.notNull(name, "name"); A.notNull(svc, "svc"); guard(); try { saveOrGet(ctx.service().deployNodeSingleton(prj, name, svc)); } catch (IgniteCheckedException e) { throw U.convertException(e); } finally { unguard(); } } /** {@inheritDoc} */ @Override public IgniteFuture<Void> deployNodeSingletonAsync(String name, Service svc) { A.notNull(name, "name"); A.notNull(svc, "svc"); guard(); try { return (IgniteFuture<Void>)new IgniteFutureImpl<>(ctx.service().deployNodeSingleton(prj, name, svc)); } finally { unguard(); } } /** {@inheritDoc} */ @Override public void deployClusterSingleton(String name, Service svc) { A.notNull(name, "name"); A.notNull(svc, "svc"); guard(); try { saveOrGet(ctx.service().deployClusterSingleton(prj, name, svc)); } catch (IgniteCheckedException e) { throw U.convertException(e); } finally { unguard(); } } /** {@inheritDoc} */ @Override public IgniteFuture<Void> deployClusterSingletonAsync(String name, Service svc) { A.notNull(name, "name"); A.notNull(svc, "svc"); guard(); try { return (IgniteFuture<Void>)new IgniteFutureImpl<>(ctx.service().deployClusterSingleton(prj, name, svc)); } finally { unguard(); } } /** {@inheritDoc} */ @Override public void deployMultiple(String name, Service svc, int totalCnt, int maxPerNodeCnt) { A.notNull(name, "name"); A.notNull(svc, "svc"); guard(); try { saveOrGet(ctx.service().deployMultiple(prj, name, svc, totalCnt, maxPerNodeCnt)); } catch (IgniteCheckedException e) { throw U.convertException(e); } finally { unguard(); } } /** {@inheritDoc} */ @Override public IgniteFuture<Void> deployMultipleAsync(String name, Service svc, int totalCnt, int maxPerNodeCnt) { A.notNull(name, "name"); A.notNull(svc, "svc"); guard(); try { return (IgniteFuture<Void>)new IgniteFutureImpl<>(ctx.service().deployMultiple(prj, name, svc, totalCnt, maxPerNodeCnt)); } finally { unguard(); } } /** {@inheritDoc} */ @Override public void deployKeyAffinitySingleton(String name, Service svc, @Nullable String cacheName, Object affKey) { A.notNull(name, "name"); A.notNull(svc, "svc"); A.notNull(affKey, "affKey"); guard(); try { saveOrGet(ctx.service().deployKeyAffinitySingleton(name, svc, cacheName, affKey)); } catch (IgniteCheckedException e) { throw U.convertException(e); } finally { unguard(); } } /** {@inheritDoc} */ @Override public IgniteFuture<Void> deployKeyAffinitySingletonAsync(String name, Service svc, @Nullable String cacheName, Object affKey) { A.notNull(name, "name"); A.notNull(svc, "svc"); A.notNull(affKey, "affKey"); guard(); try { return (IgniteFuture<Void>)new IgniteFutureImpl<>(ctx.service().deployKeyAffinitySingleton(name, svc, cacheName, affKey)); } finally { unguard(); } } /** {@inheritDoc} */ @Override public void deploy(ServiceConfiguration cfg) { A.notNull(cfg, "cfg"); deployAll(Collections.singleton(cfg)); } /** {@inheritDoc} */ @Override public IgniteFuture<Void> deployAsync(ServiceConfiguration cfg) { A.notNull(cfg, "cfg"); return deployAllAsync(Collections.singleton(cfg)); } /** {@inheritDoc} */ @Override public void deployAll(Collection<ServiceConfiguration> cfgs) { A.notNull(cfgs, "cfgs"); guard(); try { saveOrGet(ctx.service().deployAll(prj, cfgs)); } catch (IgniteCheckedException e) { throw U.convertException(e); } finally { unguard(); } } /** {@inheritDoc} */ @Override public IgniteFuture<Void> deployAllAsync(Collection<ServiceConfiguration> cfgs) { A.notNull(cfgs, "cfgs"); guard(); try { return (IgniteFuture<Void>)new IgniteFutureImpl<>(ctx.service().deployAll(prj, cfgs)); } finally { unguard(); } } /** {@inheritDoc} */ @Override public void cancel(String name) { A.notNull(name, "name"); guard(); try { saveOrGet(ctx.service().cancel(name)); } catch (IgniteCheckedException e) { throw U.convertException(e); } finally { unguard(); } } /** {@inheritDoc} */ @Override public IgniteFuture<Void> cancelAsync(String name) { A.notNull(name, "name"); guard(); try { return (IgniteFuture<Void>)new IgniteFutureImpl<>(ctx.service().cancel(name)); } finally { unguard(); } } /** {@inheritDoc} */ @Override public void cancelAll(Collection<String> names) { guard(); try { saveOrGet(ctx.service().cancelAll(names)); } catch (IgniteCheckedException e) { throw U.convertException(e); } finally { unguard(); } } /** {@inheritDoc} */ @Override public IgniteFuture<Void> cancelAllAsync(Collection<String> names) { guard(); try { return (IgniteFuture<Void>)new IgniteFutureImpl<>(ctx.service().cancelAll(names)); } finally { unguard(); } } /** {@inheritDoc} */ @Override public void cancelAll() { guard(); try { saveOrGet(ctx.service().cancelAll()); } catch (IgniteCheckedException e) { throw U.convertException(e); } finally { unguard(); } } /** {@inheritDoc} */ @Override public IgniteFuture<Void> cancelAllAsync() { guard(); try { return (IgniteFuture<Void>)new IgniteFutureImpl<>(ctx.service().cancelAll()); } finally { unguard(); } } /** {@inheritDoc} */ @Override public Collection<ServiceDescriptor> serviceDescriptors() { guard(); try { return ctx.service().serviceDescriptors(); } finally { unguard(); } } /** {@inheritDoc} */ @Override public <T> T service(String name) { guard(); try { return ctx.service().service(name); } finally { unguard(); } } /** {@inheritDoc} */ @Override public <T> T serviceProxy(String name, Class<? super T> svcItf, boolean sticky) throws IgniteException { return (T) serviceProxy(name, svcItf, sticky, 0); } /** {@inheritDoc} */ @Override public <T> T serviceProxy(final String name, final Class<? super T> svcItf, final boolean sticky, final long timeout) throws IgniteException { A.notNull(name, "name"); A.notNull(svcItf, "svcItf"); A.ensure(svcItf.isInterface(), "Service class must be an interface: " + svcItf); A.ensure(timeout >= 0, "Timeout cannot be negative: " + timeout); guard(); try { return (T)ctx.service().serviceProxy(prj, name, svcItf, sticky, timeout); } finally { unguard(); } } /** {@inheritDoc} */ @Override public <T> Collection<T> services(String name) { guard(); try { return ctx.service().services(name); } finally { unguard(); } } /** * <tt>ctx.gateway().readLock()</tt> */ private void guard() { ctx.gateway().readLock(); } /** * <tt>ctx.gateway().readUnlock()</tt> */ private void unguard() { ctx.gateway().readUnlock(); } /** {@inheritDoc} */ @Override public IgniteServices withAsync() { if (isAsync()) return this; return new IgniteServicesImpl(ctx, prj, true); } /** {@inheritDoc} */ @Override public void writeExternal(ObjectOutput out) throws IOException { out.writeObject(prj); } /** {@inheritDoc} */ @Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { prj = (ClusterGroupAdapter)in.readObject(); } /** * Reconstructs object on unmarshalling. * * @return Reconstructed object. * @throws ObjectStreamException Thrown in case of unmarshalling error. */ protected Object readResolve() throws ObjectStreamException { return prj.services(); } }
92422ecf05cb53fb2d9d61c27cfdbfc822ad1c5a
8,794
java
Java
src/main/java/me/glaremasters/guilds/guild/GuildChallenge.java
gino21430/Guilds
fcc64a5affec49e3e0189ea61e5f4157e21d3d18
[ "MIT" ]
null
null
null
src/main/java/me/glaremasters/guilds/guild/GuildChallenge.java
gino21430/Guilds
fcc64a5affec49e3e0189ea61e5f4157e21d3d18
[ "MIT" ]
null
null
null
src/main/java/me/glaremasters/guilds/guild/GuildChallenge.java
gino21430/Guilds
fcc64a5affec49e3e0189ea61e5f4157e21d3d18
[ "MIT" ]
null
null
null
28.185897
99
0.716056
1,002,166
package me.glaremasters.guilds.guild; import com.google.gson.annotations.JsonAdapter; import java.util.List; import java.util.UUID; import me.glaremasters.guilds.arena.Arena; import me.glaremasters.guilds.challenges.adapters.WarArenaChallengeAdapter; import me.glaremasters.guilds.challenges.adapters.WarGuildChallengeAdapater; import org.apache.commons.collections4.map.LinkedMap; public class GuildChallenge { private UUID id; private long initiateTime; @JsonAdapter(WarGuildChallengeAdapater.class) private Guild challenger; @JsonAdapter(WarGuildChallengeAdapater.class) private Guild defender; private transient boolean accepted; private transient boolean joinble; private transient boolean started; private transient int minPlayersPerSide; private transient int maxPlayersPerSide; private List<UUID> challengePlayers; private List<UUID> defendPlayers; @JsonAdapter(WarArenaChallengeAdapter.class) private Arena arena; @JsonAdapter(WarGuildChallengeAdapater.class) private Guild winner; @JsonAdapter(WarGuildChallengeAdapater.class) private Guild loser; private transient LinkedMap<UUID, String> aliveChallengers; private transient LinkedMap<UUID, String> aliveDefenders; public GuildChallenge(UUID id, long initiateTime, Guild challenger, Guild defender, boolean accepted, boolean joinble, boolean started, int minPlayersPerSide, int maxPlayersPerSide, List<UUID> challengePlayers, List<UUID> defendPlayers, Arena arena, Guild winner, Guild loser, LinkedMap<UUID, String> aliveChallengers, LinkedMap<UUID, String> aliveDefenders) { this.id = id; this.initiateTime = initiateTime; this.challenger = challenger; this.defender = defender; this.accepted = accepted; this.joinble = joinble; this.started = started; this.minPlayersPerSide = minPlayersPerSide; this.maxPlayersPerSide = maxPlayersPerSide; this.challengePlayers = challengePlayers; this.defendPlayers = defendPlayers; this.arena = arena; this.winner = winner; this.loser = loser; this.aliveChallengers = aliveChallengers; this.aliveDefenders = aliveDefenders; } public static GuildChallengeBuilder builder() { return new GuildChallengeBuilder(); } public UUID getId() { return this.id; } public long getInitiateTime() { return this.initiateTime; } public Guild getChallenger() { return this.challenger; } public Guild getDefender() { return this.defender; } public boolean isAccepted() { return this.accepted; } public boolean isJoinble() { return this.joinble; } public boolean isStarted() { return this.started; } public int getMinPlayersPerSide() { return this.minPlayersPerSide; } public int getMaxPlayersPerSide() { return this.maxPlayersPerSide; } public List<UUID> getChallengePlayers() { return this.challengePlayers; } public List<UUID> getDefendPlayers() { return this.defendPlayers; } public Arena getArena() { return this.arena; } public Guild getWinner() { return this.winner; } public LinkedMap<UUID, String> getAliveChallengers() { return this.aliveChallengers; } public LinkedMap<UUID, String> getAliveDefenders() { return this.aliveDefenders; } public void setId(UUID id) { this.id = id; } public void setInitiateTime(long initiateTime) { this.initiateTime = initiateTime; } public void setChallenger(Guild challenger) { this.challenger = challenger; } public void setDefender(Guild defender) { this.defender = defender; } public void setAccepted(boolean accepted) { this.accepted = accepted; } public void setJoinble(boolean joinble) { this.joinble = joinble; } public void setStarted(boolean started) { this.started = started; } public void setMinPlayersPerSide(int minPlayersPerSide) { this.minPlayersPerSide = minPlayersPerSide; } public void setMaxPlayersPerSide(int maxPlayersPerSide) { this.maxPlayersPerSide = maxPlayersPerSide; } public void setChallengePlayers(List<UUID> challengePlayers) { this.challengePlayers = challengePlayers; } public void setDefendPlayers(List<UUID> defendPlayers) { this.defendPlayers = defendPlayers; } public void setArena(Arena arena) { this.arena = arena; } public void setWinner(Guild winner) { this.winner = winner; } public Guild getLoser() { return loser; } public void setLoser(Guild loser) { this.loser = loser; } public void setAliveChallengers(LinkedMap<UUID, String> aliveChallengers) { this.aliveChallengers = aliveChallengers; } public void setAliveDefenders(LinkedMap<UUID, String> aliveDefenders) { this.aliveDefenders = aliveDefenders; } public static class GuildChallengeBuilder { private UUID id; private long initiateTime; private Guild challenger; private Guild defender; private boolean accepted; private boolean joinble; private boolean started; private int minPlayersPerSide; private int maxPlayersPerSide; private List<UUID> challengePlayers; private List<UUID> defendPlayers; private Arena arena; private Guild winner; private Guild loser; private LinkedMap<UUID, String> aliveChallengers; private LinkedMap<UUID, String> aliveDefenders; GuildChallengeBuilder() { } public GuildChallenge.GuildChallengeBuilder id(UUID id) { this.id = id; return this; } public GuildChallenge.GuildChallengeBuilder initiateTime(long initiateTime) { this.initiateTime = initiateTime; return this; } public GuildChallenge.GuildChallengeBuilder challenger(Guild challenger) { this.challenger = challenger; return this; } public GuildChallenge.GuildChallengeBuilder defender(Guild defender) { this.defender = defender; return this; } public GuildChallenge.GuildChallengeBuilder accepted(boolean accepted) { this.accepted = accepted; return this; } public GuildChallenge.GuildChallengeBuilder joinble(boolean joinble) { this.joinble = joinble; return this; } public GuildChallenge.GuildChallengeBuilder started(boolean started) { this.started = started; return this; } public GuildChallenge.GuildChallengeBuilder minPlayersPerSide(int minPlayersPerSide) { this.minPlayersPerSide = minPlayersPerSide; return this; } public GuildChallenge.GuildChallengeBuilder maxPlayersPerSide(int maxPlayersPerSide) { this.maxPlayersPerSide = maxPlayersPerSide; return this; } public GuildChallenge.GuildChallengeBuilder challengePlayers(List<UUID> challengePlayers) { this.challengePlayers = challengePlayers; return this; } public GuildChallenge.GuildChallengeBuilder defendPlayers(List<UUID> defendPlayers) { this.defendPlayers = defendPlayers; return this; } public GuildChallenge.GuildChallengeBuilder arena(Arena arena) { this.arena = arena; return this; } public GuildChallenge.GuildChallengeBuilder winner(Guild winner) { this.winner = winner; return this; } public GuildChallenge.GuildChallengeBuilder loser(Guild loser) { this.loser = loser; return this; } public GuildChallenge.GuildChallengeBuilder aliveChallengers( LinkedMap<UUID, String> aliveChallengers) { this.aliveChallengers = aliveChallengers; return this; } public GuildChallenge.GuildChallengeBuilder aliveDefenders( LinkedMap<UUID, String> aliveDefenders) { this.aliveDefenders = aliveDefenders; return this; } public GuildChallenge build() { return new GuildChallenge(id, initiateTime, challenger, defender, accepted, joinble, started, minPlayersPerSide, maxPlayersPerSide, challengePlayers, defendPlayers, arena, winner, loser, aliveChallengers, aliveDefenders); } public String toString() { return "GuildChallenge.GuildChallengeBuilder(id=" + this.id + ", initiateTime=" + this.initiateTime + ", challenger=" + this.challenger + ", defender=" + this.defender + ", accepted=" + this.accepted + ", joinble=" + this.joinble + ", started=" + this.started + ", minPlayersPerSide=" + this.minPlayersPerSide + ", maxPlayersPerSide=" + this.maxPlayersPerSide + ", challengePlayers=" + this.challengePlayers + ", defendPlayers=" + this.defendPlayers + ", arena=" + this.arena + ", winner=" + this.winner + ", loser=" + this.loser + ", aliveChallengers=" + this.aliveChallengers + ", aliveDefenders=" + this.aliveDefenders + ")"; } } }
92422f15df02abb46e950acbdfbc5694d28c414b
3,340
java
Java
src/main/java/htmlflow/Tags.java
benzen/HtmlFlow
fe0c242209c3dd5fc2879e9cd08bba7f50c9cc99
[ "MIT" ]
87
2018-04-03T19:05:40.000Z
2022-03-16T16:03:43.000Z
src/main/java/htmlflow/Tags.java
benzen/HtmlFlow
fe0c242209c3dd5fc2879e9cd08bba7f50c9cc99
[ "MIT" ]
46
2018-03-29T14:42:15.000Z
2022-03-21T21:48:38.000Z
src/main/java/htmlflow/Tags.java
benzen/HtmlFlow
fe0c242209c3dd5fc2879e9cd08bba7f50c9cc99
[ "MIT" ]
10
2018-09-23T17:17:34.000Z
2020-11-27T17:45:39.000Z
35.531915
96
0.673054
1,002,167
/* * MIT License * * Copyright (c) 2014-18, mcarvalho (gamboa.pt) and lcduarte (github.com/lcduarte) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ package htmlflow; import java.io.PrintStream; /** * @author Miguel Gamboa, Luís Duare */ class Tags { private static final char BEGIN_TAG = '<'; private static final String BEGIN_CLOSE_TAG = "</"; private static final String BEGIN_COMMENT_TAG = "<!-- "; private static final String END_COMMENT_TAG = " -->"; private static final String ATTRIBUTE_MID = "=\""; static final char FINISH_TAG = '>'; private static final char SPACE = ' '; private static final char QUOTATION = '"'; private Tags() { } static void printOpenTag(PrintStream out, String elementName) { out.print(BEGIN_TAG); out.print(elementName); } static void printAttribute(PrintStream out, String attributeName, String attributeValue) { out.print(SPACE); out.print(attributeName); out.print(ATTRIBUTE_MID); out.print(attributeValue); out.print(QUOTATION); } static void printComment(PrintStream out, String comment) { out.print(BEGIN_COMMENT_TAG); out.print(comment); out.print(END_COMMENT_TAG); } static void printCloseTag(PrintStream out, String elementName) { out.print(BEGIN_CLOSE_TAG); // </ out.print(elementName); // </name out.print(FINISH_TAG); // </name> } static void appendOpenTag(StringBuilder sb, String elementName) { sb.append(BEGIN_TAG); sb.append(elementName); } static void appendAttribute(StringBuilder sb, String attributeName, String attributeValue) { sb.append(SPACE); sb.append(attributeName); sb.append(ATTRIBUTE_MID); sb.append(attributeValue); sb.append(QUOTATION); } static void appendComment(StringBuilder sb, String comment) { sb.append(BEGIN_COMMENT_TAG); // <!-- sb.append(comment); sb.append(END_COMMENT_TAG); // --> } static void appendCloseTag(StringBuilder sb, String elementName) { sb.append(BEGIN_CLOSE_TAG); // </ sb.append(elementName); // </name sb.append(FINISH_TAG); // </name> } }
9242301f758b533829b8a5f1be9bbfafca3c76c4
2,774
java
Java
lang/lang-basic/src/main/java/com/zizhizhan/legacies/security/jaas/demo/DemoLoginModule.java
zizhizhan/jvm-snippets
527070588e9388fec07045319aae61dc2a1560db
[ "MIT" ]
null
null
null
lang/lang-basic/src/main/java/com/zizhizhan/legacies/security/jaas/demo/DemoLoginModule.java
zizhizhan/jvm-snippets
527070588e9388fec07045319aae61dc2a1560db
[ "MIT" ]
3
2022-03-20T12:30:21.000Z
2022-03-20T12:33:02.000Z
lang/lang-basic/src/main/java/com/zizhizhan/legacies/security/jaas/demo/DemoLoginModule.java
zizhizhan/jvm-snippets
527070588e9388fec07045319aae61dc2a1560db
[ "MIT" ]
null
null
null
25.731481
74
0.696294
1,002,168
package com.zizhizhan.legacies.security.jaas.demo; import java.io.IOException; import java.util.Map; import javax.security.auth.Subject; import javax.security.auth.callback.Callback; import javax.security.auth.callback.CallbackHandler; import javax.security.auth.callback.NameCallback; import javax.security.auth.callback.PasswordCallback; import javax.security.auth.callback.UnsupportedCallbackException; import javax.security.auth.login.LoginException; import javax.security.auth.spi.LoginModule; public class DemoLoginModule implements LoginModule { Subject subject; CallbackHandler callbackHandler; Map<String, ?> sharedState; Map<String, ?> options; boolean valid; String name; String password; TestPrincipal namePrincipal; TestPrincipal emailPrincipal; @Override public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String, ?> sharedState, Map<String, ?> options) { this.subject = subject; this.callbackHandler = callbackHandler; this.sharedState = sharedState; this.options = options; } @Override public boolean login() throws LoginException { valid = false; try{ Callback[] callbacks = new Callback[2]; callbacks[0] = new NameCallback("name: "); callbacks[1] = new PasswordCallback("password:", false); callbackHandler.handle(callbacks); name = ((NameCallback)callbacks[0]).getName(); password = new String(((PasswordCallback)callbacks[1]).getPassword()); if((name.equals("art")) && (password.equals("yes"))){ valid = true; }else{ valid = false; } }catch(IOException ex){ ex.printStackTrace(); } catch (UnsupportedCallbackException e) { e.printStackTrace(); } return valid; } @Override public boolean commit() throws LoginException { if (valid) { namePrincipal = new TestPrincipal(); namePrincipal.setName(name); subject.getPrincipals().add(namePrincipal); emailPrincipal = new TestPrincipal(); emailPrincipal.setName("[email protected]"); subject.getPrincipals().add(emailPrincipal); } name = null; password = null; return valid; } @Override public boolean abort() throws LoginException { boolean retVal = false; if(valid){ subject.getPrincipals().remove(namePrincipal); subject.getPrincipals().remove(emailPrincipal); retVal = true; }else{ retVal = false; } name = null; password = null; return retVal; } @Override public boolean logout() throws LoginException { if(valid){ subject.getPrincipals().remove(namePrincipal); subject.getPrincipals().remove(emailPrincipal); } name = null; password = null; valid = false; return true; } }
9242304f32a70bf6d751a309f8aa4c4496737685
1,481
java
Java
fcrepo-kernel-api/src/main/java/org/fcrepo/kernel/api/operations/DeleteResourceOperationFactory.java
peichman-umd/fcrepo4
83e4f46a9d9ed8436f24d3362ff448601cf7b4e0
[ "Apache-2.0" ]
null
null
null
fcrepo-kernel-api/src/main/java/org/fcrepo/kernel/api/operations/DeleteResourceOperationFactory.java
peichman-umd/fcrepo4
83e4f46a9d9ed8436f24d3362ff448601cf7b4e0
[ "Apache-2.0" ]
1
2015-06-25T20:53:44.000Z
2015-06-25T20:59:03.000Z
fcrepo-kernel-api/src/main/java/org/fcrepo/kernel/api/operations/DeleteResourceOperationFactory.java
peichman-umd/fcrepo4
83e4f46a9d9ed8436f24d3362ff448601cf7b4e0
[ "Apache-2.0" ]
null
null
null
32.195652
82
0.729912
1,002,169
/* * Licensed to DuraSpace under one or more contributor license agreements. * See the NOTICE file distributed with this work for additional information * regarding copyright ownership. * * DuraSpace 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.fcrepo.kernel.api.operations; import org.fcrepo.kernel.api.identifiers.FedoraId; /** * Factory for delete resource operations * * @author bbpennel */ public interface DeleteResourceOperationFactory extends ResourceOperationFactory { /** * Get a builder for an operation to delete a resource * * @param rescId id of the resource to delete * @return new builder */ ResourceOperationBuilder deleteBuilder(FedoraId rescId); /** * Get a builder for an operation to purge a deleted resource. * * @param rescId id of the resource to purge * @return new builder */ ResourceOperationBuilder purgeBuilder(FedoraId rescId); }
924234334cfdf25fb11d760f9a210ebf9289b93c
6,709
java
Java
src/main/java/com/davidbracewell/tuple/Tuple.java
dbracewell/mango
2cec08826f1fccd658694dd03abce10fc97618ec
[ "Apache-2.0" ]
null
null
null
src/main/java/com/davidbracewell/tuple/Tuple.java
dbracewell/mango
2cec08826f1fccd658694dd03abce10fc97618ec
[ "Apache-2.0" ]
null
null
null
src/main/java/com/davidbracewell/tuple/Tuple.java
dbracewell/mango
2cec08826f1fccd658694dd03abce10fc97618ec
[ "Apache-2.0" ]
null
null
null
29.425439
120
0.626919
1,002,170
/* * (c) 2005 David B. Bracewell * * 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 com.davidbracewell.tuple; import com.davidbracewell.Copyable; import com.davidbracewell.collection.Sorting; import com.davidbracewell.collection.Streams; import com.davidbracewell.conversion.Cast; import com.davidbracewell.string.StringUtils; import com.google.common.base.Preconditions; import lombok.NonNull; import java.io.Serializable; import java.util.Arrays; import java.util.Iterator; import java.util.function.Function; import java.util.stream.Collectors; import java.util.stream.Stream; /** * <p>A tuple is a finite sequence of items.</p> * * @author David B. Bracewell */ public abstract class Tuple implements Iterable<Object>, Comparable<Tuple>, Copyable<Tuple>, Serializable { private static final long serialVersionUID = 1L; /** * The number of items in the tuple * * @return the number of items in the tuple */ public abstract int degree(); /** * The tuple as an array of objects * * @return an array representing the items in the tuple */ public abstract Object[] array(); @Override public Iterator<Object> iterator() { return Arrays.asList(array()).iterator(); } /** * Gets a stream over the objects in the tuple * * @return A Stream of the objects in the tuple */ public Stream<Object> stream() { return Streams.asStream(iterator()); } /** * Maps the tuple to another a data type. * * @param <R> the type being mapped to * @param function the mapping function * @return the result of the mapping function */ public <R> R map(@NonNull Function<Tuple, R> function) { return function.apply(this); } /** * Maps the values of the tuple to another data type * * @param function the mapping function * @return A new tuple of same degree whose values are the result of the mapping function applied to the this tuple's * elements. */ public Tuple mapValues(@NonNull Function<Object, ? extends Object> function) { return NTuple.of(Arrays.stream(array()).map(function).collect(Collectors.toList())); } /** * Gets the ith item of the tuple. * * @param <T> the type parameter * @param i the index of the item * @return the item at the ith index */ public <T> T get(int i) { return Cast.as(array()[i]); } /** * Shifts the first element of the tuple resulting in a tuple of degree - 1. * * @return A new tuple without the shifted element; */ public Tuple shiftLeft() { if (degree() < 2) { return Tuple0.INSTANCE; } Object[] copy = new Object[degree() - 1]; System.arraycopy(array(), 1, copy, 0, copy.length); return NTuple.of(copy); } /** * Shifts the last element of the tuple resulting in a tuple of degree - 1. * * @return A new tuple without the shifted element; */ public Tuple shiftRight() { if (degree() < 2) { return Tuple0.INSTANCE; } Object[] copy = new Object[degree() - 1]; System.arraycopy(array(), 0, copy, 0, copy.length); return NTuple.of(copy); } /** * Appends an item the end of the tuple resulting in a new tuple of degree + 1 * * @param <T> the type parameter * @param object the object being appended * @return A new tuple of degree + 1 containing the object at the end */ public <T> Tuple appendRight(T object) { if (degree() == 0) { return Tuple1.of(object); } Object[] copy = new Object[degree() + 1]; System.arraycopy(array(), 0, copy, 0, degree()); copy[copy.length - 1] = object; return NTuple.of(copy); } /** * Takes a slice of the tuple from an inclusive start to an exclusive end index. * * @param start Where to start the slice from (inclusive) * @param end Where to end the slice at (exclusive) * @return A new tuple of degree (end - start) with the elements of this tuple from start to end */ public Tuple slice(int start, int end) { Preconditions.checkArgument(start >= 0, "Start index must be >= 0"); Preconditions.checkArgument(start < end, "Start index must be < end index"); if (start >= degree()) { return Tuple0.INSTANCE; } return new NTuple(Arrays.copyOfRange(array(), start, Math.min(end, degree()))); } /** * Appends an item the beginning of the tuple resulting in a new tuple of degree + 1 * * @param <T> the type parameter * @param object the object being appended * @return A new tuple of degree + 1 containing the object at the beginning */ public <T> Tuple appendLeft(T object) { if (degree() == 0) { return Tuple1.of(object); } Object[] copy = new Object[degree() + 1]; System.arraycopy(array(), 0, copy, 1, degree()); copy[0] = object; return NTuple.of(copy); } @Override public final int compareTo(@NonNull Tuple o) { if (degree() < o.degree()) { return -1; } else if (degree() > o.degree()) { return 1; } Object[] a1 = array(); Object[] a2 = o.array(); for (int i = 0; i < a1.length; i++) { int cmp = Sorting.compare(a1[i], a2[i]); if (cmp != 0) { return cmp; } } return 0; } @Override public final boolean equals(Object obj) { if (obj == null) { return false; } else if (obj instanceof Tuple) { Tuple tuple = Cast.as(obj); return degree() == tuple.degree() && Arrays.equals(array(), tuple.array()); } return false; } @Override public int hashCode() { return Arrays.hashCode(array()); } @Override public String toString() { return StringUtils.join(array(), ", ", "(", ")"); } }//END OF Tuple
924235eb80dfba8a48487992d18b8b8060eb4162
525
java
Java
Malmo-0.30.0/Minecraft/build/sources/main/java/com/microsoft/Malmo/Schemas/package-info.java
JeremyHi/485-Artificial-Intelligence
13e62c33be65c0e192cdee401c9cf8891410f08a
[ "MIT" ]
null
null
null
Malmo-0.30.0/Minecraft/build/sources/main/java/com/microsoft/Malmo/Schemas/package-info.java
JeremyHi/485-Artificial-Intelligence
13e62c33be65c0e192cdee401c9cf8891410f08a
[ "MIT" ]
null
null
null
Malmo-0.30.0/Minecraft/build/sources/main/java/com/microsoft/Malmo/Schemas/package-info.java
JeremyHi/485-Artificial-Intelligence
13e62c33be65c0e192cdee401c9cf8891410f08a
[ "MIT" ]
null
null
null
52.5
153
0.75619
1,002,171
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2018.04.11 at 05:58:01 PM PDT // @javax.xml.bind.annotation.XmlSchema(namespace = "http://ProjectMalmo.microsoft.com", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) package com.microsoft.Malmo.Schemas;
924236d3dcc3e01d89f8cc66d4ace8da1be9c1a2
130,155
java
Java
hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java
jzmq/hbase
2ca70b441178bfda45199d74ed93bdfa2a4cbb62
[ "Apache-2.0" ]
null
null
null
hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java
jzmq/hbase
2ca70b441178bfda45199d74ed93bdfa2a4cbb62
[ "Apache-2.0" ]
null
null
null
hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java
jzmq/hbase
2ca70b441178bfda45199d74ed93bdfa2a4cbb62
[ "Apache-2.0" ]
null
null
null
39.203313
108
0.719872
1,002,172
/** * * 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.hadoop.hbase.master; import java.io.IOException; import java.io.InterruptedIOException; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; import java.net.InetAddress; import java.net.InetSocketAddress; import java.net.UnknownHostException; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.Comparator; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; import java.util.concurrent.Callable; import java.util.concurrent.ExecutionException; import java.util.concurrent.Executors; import java.util.concurrent.Future; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicReference; import javax.management.ObjectName; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.hadoop.classification.InterfaceAudience; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.Path; import org.apache.hadoop.hbase.Abortable; import org.apache.hadoop.hbase.Chore; import org.apache.hadoop.hbase.ClusterId; import org.apache.hadoop.hbase.ClusterStatus; import org.apache.hadoop.hbase.DoNotRetryIOException; import org.apache.hadoop.hbase.HBaseIOException; import org.apache.hadoop.hbase.HColumnDescriptor; import org.apache.hadoop.hbase.HConstants; import org.apache.hadoop.hbase.HRegionInfo; import org.apache.hadoop.hbase.HTableDescriptor; import org.apache.hadoop.hbase.HealthCheckChore; import org.apache.hadoop.hbase.MasterNotRunningException; import org.apache.hadoop.hbase.NamespaceDescriptor; import org.apache.hadoop.hbase.NamespaceNotFoundException; import org.apache.hadoop.hbase.PleaseHoldException; import org.apache.hadoop.hbase.Server; import org.apache.hadoop.hbase.ServerLoad; import org.apache.hadoop.hbase.ServerName; import org.apache.hadoop.hbase.TableDescriptors; import org.apache.hadoop.hbase.TableName; import org.apache.hadoop.hbase.TableNotDisabledException; import org.apache.hadoop.hbase.TableNotFoundException; import org.apache.hadoop.hbase.UnknownRegionException; import org.apache.hadoop.hbase.catalog.CatalogTracker; import org.apache.hadoop.hbase.catalog.MetaReader; import org.apache.hadoop.hbase.client.ConnectionUtils; import org.apache.hadoop.hbase.client.MetaScanner; import org.apache.hadoop.hbase.client.MetaScanner.MetaScannerVisitor; import org.apache.hadoop.hbase.client.MetaScanner.MetaScannerVisitorBase; import org.apache.hadoop.hbase.client.Result; import org.apache.hadoop.hbase.coprocessor.CoprocessorHost; import org.apache.hadoop.hbase.exceptions.DeserializationException; import org.apache.hadoop.hbase.exceptions.MergeRegionException; import org.apache.hadoop.hbase.exceptions.UnknownProtocolException; import org.apache.hadoop.hbase.executor.ExecutorService; import org.apache.hadoop.hbase.executor.ExecutorType; import org.apache.hadoop.hbase.ipc.FifoRpcScheduler; import org.apache.hadoop.hbase.ipc.RequestContext; import org.apache.hadoop.hbase.ipc.RpcServer; import org.apache.hadoop.hbase.ipc.RpcServer.BlockingServiceAndInterface; import org.apache.hadoop.hbase.ipc.RpcServerInterface; import org.apache.hadoop.hbase.ipc.ServerRpcController; import org.apache.hadoop.hbase.master.RegionState.State; import org.apache.hadoop.hbase.master.balancer.BalancerChore; import org.apache.hadoop.hbase.master.balancer.ClusterStatusChore; import org.apache.hadoop.hbase.master.balancer.LoadBalancerFactory; import org.apache.hadoop.hbase.master.cleaner.HFileCleaner; import org.apache.hadoop.hbase.master.cleaner.LogCleaner; import org.apache.hadoop.hbase.master.handler.CreateTableHandler; import org.apache.hadoop.hbase.master.handler.DeleteTableHandler; import org.apache.hadoop.hbase.master.handler.DisableTableHandler; import org.apache.hadoop.hbase.master.handler.DispatchMergingRegionHandler; import org.apache.hadoop.hbase.master.handler.EnableTableHandler; import org.apache.hadoop.hbase.master.handler.ModifyTableHandler; import org.apache.hadoop.hbase.master.handler.TableAddFamilyHandler; import org.apache.hadoop.hbase.master.handler.TableDeleteFamilyHandler; import org.apache.hadoop.hbase.master.handler.TableModifyFamilyHandler; import org.apache.hadoop.hbase.master.snapshot.SnapshotManager; import org.apache.hadoop.hbase.monitoring.MemoryBoundedLogMessageBuffer; import org.apache.hadoop.hbase.monitoring.MonitoredTask; import org.apache.hadoop.hbase.monitoring.TaskMonitor; import org.apache.hadoop.hbase.procedure.MasterProcedureManager; import org.apache.hadoop.hbase.procedure.MasterProcedureManagerHost; import org.apache.hadoop.hbase.protobuf.ProtobufUtil; import org.apache.hadoop.hbase.protobuf.RequestConverter; import org.apache.hadoop.hbase.protobuf.ResponseConverter; import org.apache.hadoop.hbase.protobuf.generated.ClientProtos; import org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos; import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos; import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair; import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription; import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo; import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.RegionSpecifierType; import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.AddColumnRequest; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.AddColumnResponse; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.AssignRegionRequest; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.AssignRegionResponse; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.BalanceRequest; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.BalanceResponse; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.CreateNamespaceRequest; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.CreateNamespaceResponse; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.CreateTableRequest; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.CreateTableResponse; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.DeleteColumnRequest; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.DeleteColumnResponse; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.DeleteNamespaceRequest; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.DeleteNamespaceResponse; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.DeleteSnapshotRequest; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.DeleteSnapshotResponse; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.DeleteTableRequest; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.DeleteTableResponse; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.DisableTableRequest; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.DisableTableResponse; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.DispatchMergingRegionsRequest; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.DispatchMergingRegionsResponse; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.EnableCatalogJanitorRequest; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.EnableCatalogJanitorResponse; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.EnableTableRequest; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.EnableTableResponse; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.ExecProcedureRequest; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.ExecProcedureResponse; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.GetClusterStatusRequest; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.GetClusterStatusResponse; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.GetCompletedSnapshotsRequest; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.GetCompletedSnapshotsResponse; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.GetNamespaceDescriptorRequest; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.GetNamespaceDescriptorResponse; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.GetSchemaAlterStatusRequest; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.GetSchemaAlterStatusResponse; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.GetTableDescriptorsRequest; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.GetTableDescriptorsResponse; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.GetTableNamesRequest; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.GetTableNamesResponse; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.IsCatalogJanitorEnabledRequest; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.IsCatalogJanitorEnabledResponse; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.IsMasterRunningRequest; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.IsMasterRunningResponse; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.IsProcedureDoneRequest; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.IsProcedureDoneResponse; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.IsRestoreSnapshotDoneRequest; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.IsRestoreSnapshotDoneResponse; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.IsSnapshotDoneRequest; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.IsSnapshotDoneResponse; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.ListNamespaceDescriptorsRequest; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.ListNamespaceDescriptorsResponse; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.ListTableDescriptorsByNamespaceRequest; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.ListTableDescriptorsByNamespaceResponse; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.ListTableNamesByNamespaceRequest; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.ListTableNamesByNamespaceResponse; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.ModifyColumnRequest; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.ModifyColumnResponse; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.ModifyNamespaceRequest; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.ModifyNamespaceResponse; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.ModifyTableRequest; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.ModifyTableResponse; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.MoveRegionRequest; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.MoveRegionResponse; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.OfflineRegionRequest; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.OfflineRegionResponse; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.RestoreSnapshotRequest; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.RestoreSnapshotResponse; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.RunCatalogScanRequest; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.RunCatalogScanResponse; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetBalancerRunningRequest; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetBalancerRunningResponse; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.ShutdownRequest; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.ShutdownResponse; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SnapshotRequest; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SnapshotResponse; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.StopMasterRequest; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.StopMasterResponse; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.UnassignRegionRequest; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.UnassignRegionResponse; import org.apache.hadoop.hbase.protobuf.generated.RegionServerStatusProtos; import org.apache.hadoop.hbase.protobuf.generated.RegionServerStatusProtos.GetLastFlushedSequenceIdRequest; import org.apache.hadoop.hbase.protobuf.generated.RegionServerStatusProtos.GetLastFlushedSequenceIdResponse; import org.apache.hadoop.hbase.protobuf.generated.RegionServerStatusProtos.RegionServerReportRequest; import org.apache.hadoop.hbase.protobuf.generated.RegionServerStatusProtos.RegionServerReportResponse; import org.apache.hadoop.hbase.protobuf.generated.RegionServerStatusProtos.RegionServerStartupRequest; import org.apache.hadoop.hbase.protobuf.generated.RegionServerStatusProtos.RegionServerStartupResponse; import org.apache.hadoop.hbase.protobuf.generated.RegionServerStatusProtos.ReportRSFatalErrorRequest; import org.apache.hadoop.hbase.protobuf.generated.RegionServerStatusProtos.ReportRSFatalErrorResponse; import org.apache.hadoop.hbase.regionserver.RegionSplitPolicy; import org.apache.hadoop.hbase.replication.regionserver.Replication; import org.apache.hadoop.hbase.security.UserProvider; import org.apache.hadoop.hbase.snapshot.ClientSnapshotDescriptionUtils; import org.apache.hadoop.hbase.snapshot.SnapshotDescriptionUtils; import org.apache.hadoop.hbase.trace.SpanReceiverHost; import org.apache.hadoop.hbase.util.Bytes; import org.apache.hadoop.hbase.util.CompressionTest; import org.apache.hadoop.hbase.util.FSTableDescriptors; import org.apache.hadoop.hbase.util.FSUtils; import org.apache.hadoop.hbase.util.HFileArchiveUtil; import org.apache.hadoop.hbase.util.HasThread; import org.apache.hadoop.hbase.util.InfoServer; import org.apache.hadoop.hbase.util.JvmPauseMonitor; import org.apache.hadoop.hbase.util.Pair; import org.apache.hadoop.hbase.util.Sleeper; import org.apache.hadoop.hbase.util.Strings; import org.apache.hadoop.hbase.util.Threads; import org.apache.hadoop.hbase.util.VersionInfo; import org.apache.hadoop.hbase.zookeeper.ClusterStatusTracker; import org.apache.hadoop.hbase.zookeeper.DrainingServerTracker; import org.apache.hadoop.hbase.zookeeper.LoadBalancerTracker; import org.apache.hadoop.hbase.zookeeper.MasterAddressTracker; import org.apache.hadoop.hbase.zookeeper.RegionServerTracker; import org.apache.hadoop.hbase.zookeeper.ZKClusterId; import org.apache.hadoop.hbase.zookeeper.ZKUtil; import org.apache.hadoop.hbase.zookeeper.ZooKeeperListener; import org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher; import org.apache.hadoop.metrics.util.MBeanUtil; import org.apache.hadoop.net.DNS; import org.apache.zookeeper.KeeperException; import org.apache.zookeeper.Watcher; import com.google.common.collect.Lists; import com.google.common.collect.Maps; import com.google.protobuf.Descriptors; import com.google.protobuf.Message; import com.google.protobuf.RpcCallback; import com.google.protobuf.RpcController; import com.google.protobuf.Service; import com.google.protobuf.ServiceException; /** * HMaster is the "master server" for HBase. An HBase cluster has one active * master. If many masters are started, all compete. Whichever wins goes on to * run the cluster. All others park themselves in their constructor until * master or cluster shutdown or until the active master loses its lease in * zookeeper. Thereafter, all running master jostle to take over master role. * * <p>The Master can be asked shutdown the cluster. See {@link #shutdown()}. In * this case it will tell all regionservers to go down and then wait on them * all reporting in that they are down. This master will then shut itself down. * * <p>You can also shutdown just this master. Call {@link #stopMaster()}. * * @see Watcher */ @InterfaceAudience.Private @SuppressWarnings("deprecation") public class HMaster extends HasThread implements MasterProtos.MasterService.BlockingInterface, RegionServerStatusProtos.RegionServerStatusService.BlockingInterface, MasterServices, Server { private static final Log LOG = LogFactory.getLog(HMaster.class.getName()); // MASTER is name of the webapp and the attribute name used stuffing this //instance into web context. public static final String MASTER = "master"; // The configuration for the Master private final Configuration conf; // server for the web ui private InfoServer infoServer; // Our zk client. private ZooKeeperWatcher zooKeeper; // Manager and zk listener for master election private ActiveMasterManager activeMasterManager; // Region server tracker RegionServerTracker regionServerTracker; // Draining region server tracker private DrainingServerTracker drainingServerTracker; // Tracker for load balancer state private LoadBalancerTracker loadBalancerTracker; // master address tracker private MasterAddressTracker masterAddressTracker; // RPC server for the HMaster private final RpcServerInterface rpcServer; private JvmPauseMonitor pauseMonitor; // Set after we've called HBaseServer#openServer and ready to receive RPCs. // Set back to false after we stop rpcServer. Used by tests. private volatile boolean rpcServerOpen = false; /** Namespace stuff */ private TableNamespaceManager tableNamespaceManager; private NamespaceJanitor namespaceJanitorChore; /** * This servers address. */ private final InetSocketAddress isa; // Metrics for the HMaster private final MetricsMaster metricsMaster; // file system manager for the master FS operations private MasterFileSystem fileSystemManager; // server manager to deal with region server info ServerManager serverManager; // manager of assignment nodes in zookeeper AssignmentManager assignmentManager; // manager of catalog regions private CatalogTracker catalogTracker; // Cluster status zk tracker and local setter private ClusterStatusTracker clusterStatusTracker; // buffer for "fatal error" notices from region servers // in the cluster. This is only used for assisting // operations/debugging. private MemoryBoundedLogMessageBuffer rsFatals; // This flag is for stopping this Master instance. Its set when we are // stopping or aborting private volatile boolean stopped = false; // Set on abort -- usually failure of our zk session. private volatile boolean abort = false; // flag set after we become the active master (used for testing) private volatile boolean isActiveMaster = false; // flag set after we complete initialization once active, // it is not private since it's used in unit tests volatile boolean initialized = false; // flag set after we complete assignMeta. private volatile boolean serverShutdownHandlerEnabled = false; // Instance of the hbase executor service. ExecutorService executorService; private LoadBalancer balancer; private Thread balancerChore; private Thread clusterStatusChore; private ClusterStatusPublisher clusterStatusPublisherChore = null; private CatalogJanitor catalogJanitorChore; private LogCleaner logCleaner; private HFileCleaner hfileCleaner; private MasterCoprocessorHost cpHost; private final ServerName serverName; private TableDescriptors tableDescriptors; // Table level lock manager for schema changes private TableLockManager tableLockManager; // Time stamps for when a hmaster was started and when it became active private long masterStartTime; private long masterActiveTime; /** time interval for emitting metrics values */ private final int msgInterval; /** * MX Bean for MasterInfo */ private ObjectName mxBean = null; //should we check the compression codec type at master side, default true, HBASE-6370 private final boolean masterCheckCompression; private SpanReceiverHost spanReceiverHost; private Map<String, Service> coprocessorServiceHandlers = Maps.newHashMap(); // monitor for snapshot of hbase tables private SnapshotManager snapshotManager; // monitor for distributed procedures private MasterProcedureManagerHost mpmHost; /** The health check chore. */ private HealthCheckChore healthCheckChore; /** * is in distributedLogReplay mode. When true, SplitLogWorker directly replays WAL edits to newly * assigned region servers instead of creating recovered.edits files. */ private final boolean distributedLogReplay; /** flag used in test cases in order to simulate RS failures during master initialization */ private volatile boolean initializationBeforeMetaAssignment = false; /** The following is used in master recovery scenario to re-register listeners */ private List<ZooKeeperListener> registeredZKListenersBeforeRecovery; /** * Initializes the HMaster. The steps are as follows: * <p> * <ol> * <li>Initialize HMaster RPC and address * <li>Connect to ZooKeeper. * </ol> * <p> * Remaining steps of initialization occur in {@link #run()} so that they * run in their own thread rather than within the context of the constructor. * @throws InterruptedException */ public HMaster(final Configuration conf) throws IOException, KeeperException, InterruptedException { this.conf = new Configuration(conf); // Disable the block cache on the master this.conf.setFloat(HConstants.HFILE_BLOCK_CACHE_SIZE_KEY, 0.0f); FSUtils.setupShortCircuitRead(conf); // Server to handle client requests. String hostname = Strings.domainNamePointerToHostName(DNS.getDefaultHost( conf.get("hbase.master.dns.interface", "default"), conf.get("hbase.master.dns.nameserver", "default"))); int port = conf.getInt(HConstants.MASTER_PORT, HConstants.DEFAULT_MASTER_PORT); // Test that the hostname is reachable InetSocketAddress initialIsa = new InetSocketAddress(hostname, port); if (initialIsa.getAddress() == null) { throw new IllegalArgumentException("Failed resolve of hostname " + initialIsa); } // Verify that the bind address is reachable if set String bindAddress = conf.get("hbase.master.ipc.address"); if (bindAddress != null) { initialIsa = new InetSocketAddress(bindAddress, port); if (initialIsa.getAddress() == null) { throw new IllegalArgumentException("Failed resolve of bind address " + initialIsa); } } String name = "master/" + initialIsa.toString(); // Set how many times to retry talking to another server over HConnection. ConnectionUtils.setServerSideHConnectionRetriesConfig(this.conf, name, LOG); int numHandlers = conf.getInt(HConstants.MASTER_HANDLER_COUNT, conf.getInt(HConstants.REGION_SERVER_HANDLER_COUNT, HConstants.DEFAULT_MASTER_HANLDER_COUNT)); this.rpcServer = new RpcServer(this, name, getServices(), initialIsa, // BindAddress is IP we got for this server. conf, new FifoRpcScheduler(conf, numHandlers)); // Set our address. this.isa = this.rpcServer.getListenerAddress(); // We don't want to pass isa's hostname here since it could be 0.0.0.0 this.serverName = ServerName.valueOf(hostname, this.isa.getPort(), System.currentTimeMillis()); this.rsFatals = new MemoryBoundedLogMessageBuffer( conf.getLong("hbase.master.buffer.for.rs.fatals", 1*1024*1024)); // login the zookeeper client principal (if using security) ZKUtil.loginClient(this.conf, "hbase.zookeeper.client.keytab.file", "hbase.zookeeper.client.kerberos.principal", this.isa.getHostName()); // initialize server principal (if using secure Hadoop) UserProvider provider = UserProvider.instantiate(conf); provider.login("hbase.master.keytab.file", "hbase.master.kerberos.principal", this.isa.getHostName()); LOG.info("hbase.rootdir=" + FSUtils.getRootDir(this.conf) + ", hbase.cluster.distributed=" + this.conf.getBoolean("hbase.cluster.distributed", false)); // set the thread name now we have an address setName(MASTER + ":" + this.serverName.toShortString()); Replication.decorateMasterConfiguration(this.conf); // Hack! Maps DFSClient => Master for logs. HDFS made this // config param for task trackers, but we can piggyback off of it. if (this.conf.get("mapred.task.id") == null) { this.conf.set("mapred.task.id", "hb_m_" + this.serverName.toString()); } this.zooKeeper = new ZooKeeperWatcher(conf, MASTER + ":" + isa.getPort(), this, true); this.rpcServer.startThreads(); this.pauseMonitor = new JvmPauseMonitor(conf); this.pauseMonitor.start(); // metrics interval: using the same property as region server. this.msgInterval = conf.getInt("hbase.regionserver.msginterval", 3 * 1000); //should we check the compression codec type at master side, default true, HBASE-6370 this.masterCheckCompression = conf.getBoolean("hbase.master.check.compression", true); this.metricsMaster = new MetricsMaster( new MetricsMasterWrapperImpl(this)); // Health checker thread. int sleepTime = this.conf.getInt(HConstants.HEALTH_CHORE_WAKE_FREQ, HConstants.DEFAULT_THREAD_WAKE_FREQUENCY); if (isHealthCheckerConfigured()) { healthCheckChore = new HealthCheckChore(sleepTime, this, getConfiguration()); } // Do we publish the status? boolean shouldPublish = conf.getBoolean(HConstants.STATUS_PUBLISHED, HConstants.STATUS_PUBLISHED_DEFAULT); Class<? extends ClusterStatusPublisher.Publisher> publisherClass = conf.getClass(ClusterStatusPublisher.STATUS_PUBLISHER_CLASS, ClusterStatusPublisher.DEFAULT_STATUS_PUBLISHER_CLASS, ClusterStatusPublisher.Publisher.class); if (shouldPublish) { if (publisherClass == null) { LOG.warn(HConstants.STATUS_PUBLISHED + " is true, but " + ClusterStatusPublisher.DEFAULT_STATUS_PUBLISHER_CLASS + " is not set - not publishing status"); } else { clusterStatusPublisherChore = new ClusterStatusPublisher(this, conf, publisherClass); Threads.setDaemonThreadRunning(clusterStatusPublisherChore.getThread()); } } distributedLogReplay = this.conf.getBoolean(HConstants.DISTRIBUTED_LOG_REPLAY_KEY, HConstants.DEFAULT_DISTRIBUTED_LOG_REPLAY_CONFIG); } /** * @return list of blocking services and their security info classes that this server supports */ private List<BlockingServiceAndInterface> getServices() { List<BlockingServiceAndInterface> bssi = new ArrayList<BlockingServiceAndInterface>(3); bssi.add(new BlockingServiceAndInterface( MasterProtos.MasterService.newReflectiveBlockingService(this), MasterProtos.MasterService.BlockingInterface.class)); bssi.add(new BlockingServiceAndInterface( RegionServerStatusProtos.RegionServerStatusService.newReflectiveBlockingService(this), RegionServerStatusProtos.RegionServerStatusService.BlockingInterface.class)); return bssi; } /** * Stall startup if we are designated a backup master; i.e. we want someone * else to become the master before proceeding. * @param c configuration * @param amm * @throws InterruptedException */ private static void stallIfBackupMaster(final Configuration c, final ActiveMasterManager amm) throws InterruptedException { // If we're a backup master, stall until a primary to writes his address if (!c.getBoolean(HConstants.MASTER_TYPE_BACKUP, HConstants.DEFAULT_MASTER_TYPE_BACKUP)) { return; } LOG.debug("HMaster started in backup mode. " + "Stalling until master znode is written."); // This will only be a minute or so while the cluster starts up, // so don't worry about setting watches on the parent znode while (!amm.isActiveMaster()) { LOG.debug("Waiting for master address ZNode to be written " + "(Also watching cluster state node)"); Thread.sleep( c.getInt(HConstants.ZK_SESSION_TIMEOUT, HConstants.DEFAULT_ZK_SESSION_TIMEOUT)); } } MetricsMaster getMetrics() { return metricsMaster; } /** * Main processing loop for the HMaster. * <ol> * <li>Block until becoming active master * <li>Finish initialization via finishInitialization(MonitoredTask) * <li>Enter loop until we are stopped * <li>Stop services and perform cleanup once stopped * </ol> */ @Override public void run() { MonitoredTask startupStatus = TaskMonitor.get().createStatus("Master startup"); startupStatus.setDescription("Master startup"); masterStartTime = System.currentTimeMillis(); try { this.masterAddressTracker = new MasterAddressTracker(getZooKeeperWatcher(), this); this.masterAddressTracker.start(); // Put up info server. int port = this.conf.getInt("hbase.master.info.port", HConstants.DEFAULT_MASTER_INFOPORT); if (port >= 0) { String a = this.conf.get("hbase.master.info.bindAddress", "0.0.0.0"); this.infoServer = new InfoServer(MASTER, a, port, false, this.conf); this.infoServer.addServlet("status", "/master-status", MasterStatusServlet.class); this.infoServer.addServlet("dump", "/dump", MasterDumpServlet.class); this.infoServer.setAttribute(MASTER, this); this.infoServer.start(); } this.registeredZKListenersBeforeRecovery = this.zooKeeper.getListeners(); /* * Block on becoming the active master. * * We race with other masters to write our address into ZooKeeper. If we * succeed, we are the primary/active master and finish initialization. * * If we do not succeed, there is another active master and we should * now wait until it dies to try and become the next active master. If we * do not succeed on our first attempt, this is no longer a cluster startup. */ becomeActiveMaster(startupStatus); // We are either the active master or we were asked to shutdown if (!this.stopped) { finishInitialization(startupStatus, false); loop(); } } catch (Throwable t) { // HBASE-5680: Likely hadoop23 vs hadoop 20.x/1.x incompatibility if (t instanceof NoClassDefFoundError && t.getMessage().contains("org/apache/hadoop/hdfs/protocol/FSConstants$SafeModeAction")) { // improved error message for this special case abort("HBase is having a problem with its Hadoop jars. You may need to " + "recompile HBase against Hadoop version " + org.apache.hadoop.util.VersionInfo.getVersion() + " or change your hadoop jars to start properly", t); } else { abort("Unhandled exception. Starting shutdown.", t); } } finally { startupStatus.cleanup(); stopChores(); // Wait for all the remaining region servers to report in IFF we were // running a cluster shutdown AND we were NOT aborting. if (!this.abort && this.serverManager != null && this.serverManager.isClusterShutdown()) { this.serverManager.letRegionServersShutdown(); } stopServiceThreads(); // Stop services started for both backup and active masters if (this.activeMasterManager != null) this.activeMasterManager.stop(); if (this.catalogTracker != null) this.catalogTracker.stop(); if (this.serverManager != null) this.serverManager.stop(); if (this.assignmentManager != null) this.assignmentManager.stop(); if (this.fileSystemManager != null) this.fileSystemManager.stop(); if (this.mpmHost != null) this.mpmHost.stop("server shutting down."); this.zooKeeper.close(); } LOG.info("HMaster main thread exiting"); } /** * Try becoming active master. * @param startupStatus * @return True if we could successfully become the active master. * @throws InterruptedException */ private boolean becomeActiveMaster(MonitoredTask startupStatus) throws InterruptedException { // TODO: This is wrong!!!! Should have new servername if we restart ourselves, // if we come back to life. this.activeMasterManager = new ActiveMasterManager(zooKeeper, this.serverName, this); this.zooKeeper.registerListener(activeMasterManager); stallIfBackupMaster(this.conf, this.activeMasterManager); // The ClusterStatusTracker is setup before the other // ZKBasedSystemTrackers because it's needed by the activeMasterManager // to check if the cluster should be shutdown. this.clusterStatusTracker = new ClusterStatusTracker(getZooKeeper(), this); this.clusterStatusTracker.start(); return this.activeMasterManager.blockUntilBecomingActiveMaster(startupStatus); } /** * Initialize all ZK based system trackers. * @throws IOException * @throws InterruptedException */ void initializeZKBasedSystemTrackers() throws IOException, InterruptedException, KeeperException { this.catalogTracker = createCatalogTracker(this.zooKeeper, this.conf, this); this.catalogTracker.start(); this.balancer = LoadBalancerFactory.getLoadBalancer(conf); this.loadBalancerTracker = new LoadBalancerTracker(zooKeeper, this); this.loadBalancerTracker.start(); this.assignmentManager = new AssignmentManager(this, serverManager, this.catalogTracker, this.balancer, this.executorService, this.metricsMaster, this.tableLockManager); zooKeeper.registerListenerFirst(assignmentManager); this.regionServerTracker = new RegionServerTracker(zooKeeper, this, this.serverManager); this.regionServerTracker.start(); this.drainingServerTracker = new DrainingServerTracker(zooKeeper, this, this.serverManager); this.drainingServerTracker.start(); // Set the cluster as up. If new RSs, they'll be waiting on this before // going ahead with their startup. boolean wasUp = this.clusterStatusTracker.isClusterUp(); if (!wasUp) this.clusterStatusTracker.setClusterUp(); LOG.info("Server active/primary master=" + this.serverName + ", sessionid=0x" + Long.toHexString(this.zooKeeper.getRecoverableZooKeeper().getSessionId()) + ", setting cluster-up flag (Was=" + wasUp + ")"); // create/initialize the snapshot manager and other procedure managers this.snapshotManager = new SnapshotManager(); this.mpmHost = new MasterProcedureManagerHost(); this.mpmHost.register(this.snapshotManager); this.mpmHost.loadProcedures(conf); this.mpmHost.initialize(this, this.metricsMaster); } /** * Create CatalogTracker. * In its own method so can intercept and mock it over in tests. * @param zk If zk is null, we'll create an instance (and shut it down * when {@link #stop(String)} is called) else we'll use what is passed. * @param conf * @param abortable If fatal exception we'll call abort on this. May be null. * If it is we'll use the Connection associated with the passed * {@link Configuration} as our {@link Abortable}. * ({@link Object#wait(long)} when passed a <code>0</code> waits for ever). * @throws IOException */ CatalogTracker createCatalogTracker(final ZooKeeperWatcher zk, final Configuration conf, Abortable abortable) throws IOException { return new CatalogTracker(zk, conf, abortable); } // Check if we should stop every 100ms private Sleeper stopSleeper = new Sleeper(100, this); private void loop() { long lastMsgTs = 0l; long now = 0l; while (!this.stopped) { now = System.currentTimeMillis(); if ((now - lastMsgTs) >= this.msgInterval) { doMetrics(); lastMsgTs = System.currentTimeMillis(); } stopSleeper.sleep(); } } /** * Emit the HMaster metrics, such as region in transition metrics. * Surrounding in a try block just to be sure metrics doesn't abort HMaster. */ private void doMetrics() { try { this.assignmentManager.updateRegionsInTransitionMetrics(); } catch (Throwable e) { LOG.error("Couldn't update metrics: " + e.getMessage()); } } /** * Finish initialization of HMaster after becoming the primary master. * * <ol> * <li>Initialize master components - file system manager, server manager, * assignment manager, region server tracker, catalog tracker, etc</li> * <li>Start necessary service threads - rpc server, info server, * executor services, etc</li> * <li>Set cluster as UP in ZooKeeper</li> * <li>Wait for RegionServers to check-in</li> * <li>Split logs and perform data recovery, if necessary</li> * <li>Ensure assignment of meta regions<li> * <li>Handle either fresh cluster start or master failover</li> * </ol> * * @param masterRecovery * * @throws IOException * @throws InterruptedException * @throws KeeperException */ private void finishInitialization(MonitoredTask status, boolean masterRecovery) throws IOException, InterruptedException, KeeperException { isActiveMaster = true; /* * We are active master now... go initialize components we need to run. * Note, there may be dross in zk from previous runs; it'll get addressed * below after we determine if cluster startup or failover. */ status.setStatus("Initializing Master file system"); this.masterActiveTime = System.currentTimeMillis(); // TODO: Do this using Dependency Injection, using PicoContainer, Guice or Spring. this.fileSystemManager = new MasterFileSystem(this, this, masterRecovery); this.tableDescriptors = new FSTableDescriptors(this.fileSystemManager.getFileSystem(), this.fileSystemManager.getRootDir()); // publish cluster ID status.setStatus("Publishing Cluster ID in ZooKeeper"); ZKClusterId.setClusterId(this.zooKeeper, fileSystemManager.getClusterId()); if (!masterRecovery) { this.executorService = new ExecutorService(getServerName().toShortString()); this.serverManager = createServerManager(this, this); } //Initialize table lock manager, and ensure that all write locks held previously //are invalidated this.tableLockManager = TableLockManager.createTableLockManager(conf, zooKeeper, serverName); if (!masterRecovery) { this.tableLockManager.reapWriteLocks(); } status.setStatus("Initializing ZK system trackers"); initializeZKBasedSystemTrackers(); if (!masterRecovery) { // initialize master side coprocessors before we start handling requests status.setStatus("Initializing master coprocessors"); this.cpHost = new MasterCoprocessorHost(this, this.conf); spanReceiverHost = SpanReceiverHost.getInstance(getConfiguration()); // start up all service threads. status.setStatus("Initializing master service threads"); startServiceThreads(); } // Wait for region servers to report in. this.serverManager.waitForRegionServers(status); // Check zk for region servers that are up but didn't register for (ServerName sn: this.regionServerTracker.getOnlineServers()) { // The isServerOnline check is opportunistic, correctness is handled inside if (!this.serverManager.isServerOnline(sn) && serverManager.checkAndRecordNewServer(sn, ServerLoad.EMPTY_SERVERLOAD)) { LOG.info("Registered server found up in zk but who has not yet reported in: " + sn); } } if (!masterRecovery) { this.assignmentManager.startTimeOutMonitor(); } // get a list for previously failed RS which need log splitting work // we recover hbase:meta region servers inside master initialization and // handle other failed servers in SSH in order to start up master node ASAP Set<ServerName> previouslyFailedServers = this.fileSystemManager .getFailedServersFromLogFolders(); // remove stale recovering regions from previous run this.fileSystemManager.removeStaleRecoveringRegionsFromZK(previouslyFailedServers); // log splitting for hbase:meta server ServerName oldMetaServerLocation = this.catalogTracker.getMetaLocation(); if (oldMetaServerLocation != null && previouslyFailedServers.contains(oldMetaServerLocation)) { splitMetaLogBeforeAssignment(oldMetaServerLocation); // Note: we can't remove oldMetaServerLocation from previousFailedServers list because it // may also host user regions } Set<ServerName> previouslyFailedMetaRSs = getPreviouselyFailedMetaServersFromZK(); // need to use union of previouslyFailedMetaRSs recorded in ZK and previouslyFailedServers // instead of previouslyFailedMetaRSs alone to address the following two situations: // 1) the chained failure situation(recovery failed multiple times in a row). // 2) master get killed right before it could delete the recovering hbase:meta from ZK while the // same server still has non-meta wals to be replayed so that // removeStaleRecoveringRegionsFromZK can't delete the stale hbase:meta region // Passing more servers into splitMetaLog is all right. If a server doesn't have hbase:meta wal, // there is no op for the server. previouslyFailedMetaRSs.addAll(previouslyFailedServers); this.initializationBeforeMetaAssignment = true; //initialize load balancer this.balancer.setClusterStatus(getClusterStatus()); this.balancer.setMasterServices(this); this.balancer.initialize(); // Make sure meta assigned before proceeding. status.setStatus("Assigning Meta Region"); assignMeta(status, previouslyFailedMetaRSs); // check if master is shutting down because above assignMeta could return even hbase:meta isn't // assigned when master is shutting down if(this.stopped) return; status.setStatus("Submitting log splitting work for previously failed region servers"); // Master has recovered hbase:meta region server and we put // other failed region servers in a queue to be handled later by SSH for (ServerName tmpServer : previouslyFailedServers) { this.serverManager.processDeadServer(tmpServer, true); } // Update meta with new PB serialization if required. i.e migrate all HRI to PB serialization // in meta. This must happen before we assign all user regions or else the assignment will // fail. org.apache.hadoop.hbase.catalog.MetaMigrationConvertingToPB .updateMetaIfNecessary(this); // Fix up assignment manager status status.setStatus("Starting assignment manager"); this.assignmentManager.joinCluster(); //set cluster status again after user regions are assigned this.balancer.setClusterStatus(getClusterStatus()); if (!masterRecovery) { // Start balancer and meta catalog janitor after meta and regions have // been assigned. status.setStatus("Starting balancer and catalog janitor"); this.clusterStatusChore = getAndStartClusterStatusChore(this); this.balancerChore = getAndStartBalancerChore(this); this.catalogJanitorChore = new CatalogJanitor(this, this); startCatalogJanitorChore(); } status.setStatus("Starting namespace manager"); initNamespace(); if (this.cpHost != null) { try { this.cpHost.preMasterInitialization(); } catch (IOException e) { LOG.error("Coprocessor preMasterInitialization() hook failed", e); } } status.markComplete("Initialization successful"); LOG.info("Master has completed initialization"); initialized = true; // clear the dead servers with same host name and port of online server because we are not // removing dead server with same hostname and port of rs which is trying to check in before // master initialization. See HBASE-5916. this.serverManager.clearDeadServersWithSameHostNameAndPortOfOnlineServer(); if (!masterRecovery) { if (this.cpHost != null) { // don't let cp initialization errors kill the master try { this.cpHost.postStartMaster(); } catch (IOException ioe) { LOG.error("Coprocessor postStartMaster() hook failed", ioe); } } } } /** * Useful for testing purpose also where we have * master restart scenarios. */ protected void startCatalogJanitorChore() { Threads.setDaemonThreadRunning(catalogJanitorChore.getThread()); } /** * Useful for testing purpose also where we have * master restart scenarios. */ protected void startNamespaceJanitorChore() { Threads.setDaemonThreadRunning(namespaceJanitorChore.getThread()); } /** * Create a {@link ServerManager} instance. * @param master * @param services * @return An instance of {@link ServerManager} * @throws org.apache.hadoop.hbase.ZooKeeperConnectionException * @throws IOException */ ServerManager createServerManager(final Server master, final MasterServices services) throws IOException { // We put this out here in a method so can do a Mockito.spy and stub it out // w/ a mocked up ServerManager. return new ServerManager(master, services); } /** * Check <code>hbase:meta</code> is assigned. If not, assign it. * @param status MonitoredTask * @param previouslyFailedMetaRSs * @throws InterruptedException * @throws IOException * @throws KeeperException */ void assignMeta(MonitoredTask status, Set<ServerName> previouslyFailedMetaRSs) throws InterruptedException, IOException, KeeperException { // Work on meta region int assigned = 0; long timeout = this.conf.getLong("hbase.catalog.verification.timeout", 1000); status.setStatus("Assigning hbase:meta region"); RegionStates regionStates = assignmentManager.getRegionStates(); regionStates.createRegionState(HRegionInfo.FIRST_META_REGIONINFO); boolean rit = this.assignmentManager .processRegionInTransitionAndBlockUntilAssigned(HRegionInfo.FIRST_META_REGIONINFO); boolean metaRegionLocation = this.catalogTracker.verifyMetaRegionLocation(timeout); ServerName currentMetaServer = this.catalogTracker.getMetaLocation(); if (!metaRegionLocation) { // Meta location is not verified. It should be in transition, or offline. // We will wait for it to be assigned in enableSSHandWaitForMeta below. assigned++; if (!rit) { // Assign meta since not already in transition if (currentMetaServer != null) { // If the meta server is not known to be dead or online, // just split the meta log, and don't expire it since this // could be a full cluster restart. Otherwise, we will think // this is a failover and lose previous region locations. // If it is really a failover case, AM will find out in rebuilding // user regions. Otherwise, we are good since all logs are split // or known to be replayed before user regions are assigned. if (serverManager.isServerOnline(currentMetaServer)) { LOG.info("Forcing expire of " + currentMetaServer); serverManager.expireServer(currentMetaServer); } splitMetaLogBeforeAssignment(currentMetaServer); previouslyFailedMetaRSs.add(currentMetaServer); } assignmentManager.assignMeta(); } } else { // Region already assigned. We didn't assign it. Add to in-memory state. regionStates.updateRegionState( HRegionInfo.FIRST_META_REGIONINFO, State.OPEN, currentMetaServer); this.assignmentManager.regionOnline( HRegionInfo.FIRST_META_REGIONINFO, currentMetaServer); } enableMeta(TableName.META_TABLE_NAME); if (this.distributedLogReplay && (!previouslyFailedMetaRSs.isEmpty())) { // replay WAL edits mode need new hbase:meta RS is assigned firstly status.setStatus("replaying log for Meta Region"); this.fileSystemManager.splitMetaLog(previouslyFailedMetaRSs); } // Make sure a hbase:meta location is set. We need to enable SSH here since // if the meta region server is died at this time, we need it to be re-assigned // by SSH so that system tables can be assigned. // No need to wait for meta is assigned = 0 when meta is just verified. enableServerShutdownHandler(assigned != 0); LOG.info("hbase:meta assigned=" + assigned + ", rit=" + rit + ", location=" + catalogTracker.getMetaLocation()); status.setStatus("META assigned."); } void initNamespace() throws IOException { //create namespace manager tableNamespaceManager = new TableNamespaceManager(this); tableNamespaceManager.start(); } private void splitMetaLogBeforeAssignment(ServerName currentMetaServer) throws IOException { if (this.distributedLogReplay) { // In log replay mode, we mark hbase:meta region as recovering in ZK Set<HRegionInfo> regions = new HashSet<HRegionInfo>(); regions.add(HRegionInfo.FIRST_META_REGIONINFO); this.fileSystemManager.prepareLogReplay(currentMetaServer, regions); } else { // In recovered.edits mode: create recovered edits file for hbase:meta server this.fileSystemManager.splitMetaLog(currentMetaServer); } } private void enableServerShutdownHandler( final boolean waitForMeta) throws IOException, InterruptedException { // If ServerShutdownHandler is disabled, we enable it and expire those dead // but not expired servers. This is required so that if meta is assigning to // a server which dies after assignMeta starts assignment, // SSH can re-assign it. Otherwise, we will be // stuck here waiting forever if waitForMeta is specified. if (!serverShutdownHandlerEnabled) { serverShutdownHandlerEnabled = true; this.serverManager.processQueuedDeadServers(); } if (waitForMeta) { this.catalogTracker.waitForMeta(); // Above check waits for general meta availability but this does not // guarantee that the transition has completed this.assignmentManager.waitForAssignment(HRegionInfo.FIRST_META_REGIONINFO); } } private void enableMeta(TableName metaTableName) { if (!this.assignmentManager.getZKTable().isEnabledTable(metaTableName)) { this.assignmentManager.setEnabledTable(metaTableName); } } /** * This function returns a set of region server names under hbase:meta recovering region ZK node * @return Set of meta server names which were recorded in ZK * @throws KeeperException */ private Set<ServerName> getPreviouselyFailedMetaServersFromZK() throws KeeperException { Set<ServerName> result = new HashSet<ServerName>(); String metaRecoveringZNode = ZKUtil.joinZNode(zooKeeper.recoveringRegionsZNode, HRegionInfo.FIRST_META_REGIONINFO.getEncodedName()); List<String> regionFailedServers = ZKUtil.listChildrenNoWatch(zooKeeper, metaRecoveringZNode); if (regionFailedServers == null) return result; for(String failedServer : regionFailedServers) { ServerName server = ServerName.parseServerName(failedServer); result.add(server); } return result; } @Override public TableDescriptors getTableDescriptors() { return this.tableDescriptors; } /** @return InfoServer object. Maybe null.*/ public InfoServer getInfoServer() { return this.infoServer; } @Override public Configuration getConfiguration() { return this.conf; } @Override public ServerManager getServerManager() { return this.serverManager; } @Override public ExecutorService getExecutorService() { return this.executorService; } @Override public MasterFileSystem getMasterFileSystem() { return this.fileSystemManager; } /** * Get the ZK wrapper object - needed by master_jsp.java * @return the zookeeper wrapper */ public ZooKeeperWatcher getZooKeeperWatcher() { return this.zooKeeper; } public ActiveMasterManager getActiveMasterManager() { return this.activeMasterManager; } public MasterAddressTracker getMasterAddressTracker() { return this.masterAddressTracker; } /* * Start up all services. If any of these threads gets an unhandled exception * then they just die with a logged message. This should be fine because * in general, we do not expect the master to get such unhandled exceptions * as OOMEs; it should be lightly loaded. See what HRegionServer does if * need to install an unexpected exception handler. */ void startServiceThreads() throws IOException{ // Start the executor service pools this.executorService.startExecutorService(ExecutorType.MASTER_OPEN_REGION, conf.getInt("hbase.master.executor.openregion.threads", 5)); this.executorService.startExecutorService(ExecutorType.MASTER_CLOSE_REGION, conf.getInt("hbase.master.executor.closeregion.threads", 5)); this.executorService.startExecutorService(ExecutorType.MASTER_SERVER_OPERATIONS, conf.getInt("hbase.master.executor.serverops.threads", 5)); this.executorService.startExecutorService(ExecutorType.MASTER_META_SERVER_OPERATIONS, conf.getInt("hbase.master.executor.serverops.threads", 5)); this.executorService.startExecutorService(ExecutorType.M_LOG_REPLAY_OPS, conf.getInt("hbase.master.executor.logreplayops.threads", 10)); // We depend on there being only one instance of this executor running // at a time. To do concurrency, would need fencing of enable/disable of // tables. this.executorService.startExecutorService(ExecutorType.MASTER_TABLE_OPERATIONS, 1); // Start log cleaner thread String n = Thread.currentThread().getName(); int cleanerInterval = conf.getInt("hbase.master.cleaner.interval", 60 * 1000); this.logCleaner = new LogCleaner(cleanerInterval, this, conf, getMasterFileSystem().getFileSystem(), getMasterFileSystem().getOldLogDir()); Threads.setDaemonThreadRunning(logCleaner.getThread(), n + ".oldLogCleaner"); //start the hfile archive cleaner thread Path archiveDir = HFileArchiveUtil.getArchivePath(conf); this.hfileCleaner = new HFileCleaner(cleanerInterval, this, conf, getMasterFileSystem() .getFileSystem(), archiveDir); Threads.setDaemonThreadRunning(hfileCleaner.getThread(), n + ".archivedHFileCleaner"); // Start the health checker if (this.healthCheckChore != null) { Threads.setDaemonThreadRunning(this.healthCheckChore.getThread(), n + ".healthChecker"); } // Start allowing requests to happen. this.rpcServer.openServer(); this.rpcServerOpen = true; if (LOG.isTraceEnabled()) { LOG.trace("Started service threads"); } } /** * Use this when trying to figure when its ok to send in rpcs. Used by tests. * @return True if we have successfully run {@link RpcServer#openServer()} */ boolean isRpcServerOpen() { return this.rpcServerOpen; } private void stopServiceThreads() { if (LOG.isDebugEnabled()) { LOG.debug("Stopping service threads"); } if (this.rpcServer != null) this.rpcServer.stop(); this.rpcServerOpen = false; // Clean up and close up shop if (this.logCleaner!= null) this.logCleaner.interrupt(); if (this.hfileCleaner != null) this.hfileCleaner.interrupt(); if (this.infoServer != null) { LOG.info("Stopping infoServer"); try { this.infoServer.stop(); } catch (Exception ex) { ex.printStackTrace(); } } if (this.executorService != null) this.executorService.shutdown(); if (this.healthCheckChore != null) { this.healthCheckChore.interrupt(); } if (this.pauseMonitor != null) { this.pauseMonitor.stop(); } } private static Thread getAndStartClusterStatusChore(HMaster master) { if (master == null || master.balancer == null) { return null; } Chore chore = new ClusterStatusChore(master, master.balancer); return Threads.setDaemonThreadRunning(chore.getThread()); } private static Thread getAndStartBalancerChore(final HMaster master) { // Start up the load balancer chore Chore chore = new BalancerChore(master); return Threads.setDaemonThreadRunning(chore.getThread()); } private void stopChores() { if (this.balancerChore != null) { this.balancerChore.interrupt(); } if (this.clusterStatusChore != null) { this.clusterStatusChore.interrupt(); } if (this.catalogJanitorChore != null) { this.catalogJanitorChore.interrupt(); } if (this.clusterStatusPublisherChore != null){ clusterStatusPublisherChore.interrupt(); } if (this.namespaceJanitorChore != null){ namespaceJanitorChore.interrupt(); } } @Override public RegionServerStartupResponse regionServerStartup( RpcController controller, RegionServerStartupRequest request) throws ServiceException { // Register with server manager try { InetAddress ia = getRemoteInetAddress(request.getPort(), request.getServerStartCode()); ServerName rs = this.serverManager.regionServerStartup(ia, request.getPort(), request.getServerStartCode(), request.getServerCurrentTime()); // Send back some config info RegionServerStartupResponse.Builder resp = createConfigurationSubset(); NameStringPair.Builder entry = NameStringPair.newBuilder() .setName(HConstants.KEY_FOR_HOSTNAME_SEEN_BY_MASTER) .setValue(rs.getHostname()); resp.addMapEntries(entry.build()); return resp.build(); } catch (IOException ioe) { throw new ServiceException(ioe); } } /** * @return Get remote side's InetAddress * @throws UnknownHostException */ InetAddress getRemoteInetAddress(final int port, final long serverStartCode) throws UnknownHostException { // Do it out here in its own little method so can fake an address when // mocking up in tests. return RpcServer.getRemoteIp(); } /** * @return Subset of configuration to pass initializing regionservers: e.g. * the filesystem to use and root directory to use. */ protected RegionServerStartupResponse.Builder createConfigurationSubset() { RegionServerStartupResponse.Builder resp = addConfig( RegionServerStartupResponse.newBuilder(), HConstants.HBASE_DIR); return addConfig(resp, "fs.default.name"); } private RegionServerStartupResponse.Builder addConfig( final RegionServerStartupResponse.Builder resp, final String key) { NameStringPair.Builder entry = NameStringPair.newBuilder() .setName(key) .setValue(this.conf.get(key)); resp.addMapEntries(entry.build()); return resp; } @Override public GetLastFlushedSequenceIdResponse getLastFlushedSequenceId(RpcController controller, GetLastFlushedSequenceIdRequest request) throws ServiceException { byte[] regionName = request.getRegionName().toByteArray(); long seqId = serverManager.getLastFlushedSequenceId(regionName); return ResponseConverter.buildGetLastFlushedSequenceIdResponse(seqId); } @Override public RegionServerReportResponse regionServerReport( RpcController controller, RegionServerReportRequest request) throws ServiceException { try { ClusterStatusProtos.ServerLoad sl = request.getLoad(); ServerName serverName = ProtobufUtil.toServerName(request.getServer()); ServerLoad oldLoad = serverManager.getLoad(serverName); this.serverManager.regionServerReport(serverName, new ServerLoad(sl)); if (sl != null && this.metricsMaster != null) { // Up our metrics. this.metricsMaster.incrementRequests(sl.getTotalNumberOfRequests() - (oldLoad != null ? oldLoad.getTotalNumberOfRequests() : 0)); } } catch (IOException ioe) { throw new ServiceException(ioe); } return RegionServerReportResponse.newBuilder().build(); } @Override public ReportRSFatalErrorResponse reportRSFatalError( RpcController controller, ReportRSFatalErrorRequest request) throws ServiceException { String errorText = request.getErrorMessage(); ServerName sn = ProtobufUtil.toServerName(request.getServer()); String msg = "Region server " + sn + " reported a fatal error:\n" + errorText; LOG.error(msg); rsFatals.add(msg); return ReportRSFatalErrorResponse.newBuilder().build(); } public boolean isMasterRunning() { return !isStopped(); } @Override public IsMasterRunningResponse isMasterRunning(RpcController c, IsMasterRunningRequest req) throws ServiceException { return IsMasterRunningResponse.newBuilder().setIsMasterRunning(isMasterRunning()).build(); } @Override public RunCatalogScanResponse runCatalogScan(RpcController c, RunCatalogScanRequest req) throws ServiceException { try { return ResponseConverter.buildRunCatalogScanResponse(catalogJanitorChore.scan()); } catch (IOException ioe) { throw new ServiceException(ioe); } } @Override public EnableCatalogJanitorResponse enableCatalogJanitor(RpcController c, EnableCatalogJanitorRequest req) throws ServiceException { return EnableCatalogJanitorResponse.newBuilder(). setPrevValue(catalogJanitorChore.setEnabled(req.getEnable())).build(); } @Override public IsCatalogJanitorEnabledResponse isCatalogJanitorEnabled(RpcController c, IsCatalogJanitorEnabledRequest req) throws ServiceException { boolean isEnabled = catalogJanitorChore != null ? catalogJanitorChore.getEnabled() : false; return IsCatalogJanitorEnabledResponse.newBuilder().setValue(isEnabled).build(); } /** * @return Maximum time we should run balancer for */ private int getBalancerCutoffTime() { int balancerCutoffTime = getConfiguration().getInt("hbase.balancer.max.balancing", -1); if (balancerCutoffTime == -1) { // No time period set so create one int balancerPeriod = getConfiguration().getInt("hbase.balancer.period", 300000); balancerCutoffTime = balancerPeriod; // If nonsense period, set it to balancerPeriod if (balancerCutoffTime <= 0) balancerCutoffTime = balancerPeriod; } return balancerCutoffTime; } public boolean balance() throws IOException { // if master not initialized, don't run balancer. if (!this.initialized) { LOG.debug("Master has not been initialized, don't run balancer."); return false; } // Do this call outside of synchronized block. int maximumBalanceTime = getBalancerCutoffTime(); boolean balancerRan; synchronized (this.balancer) { // If balance not true, don't run balancer. if (!this.loadBalancerTracker.isBalancerOn()) return false; // Only allow one balance run at at time. if (this.assignmentManager.getRegionStates().isRegionsInTransition()) { Map<String, RegionState> regionsInTransition = this.assignmentManager.getRegionStates().getRegionsInTransition(); LOG.debug("Not running balancer because " + regionsInTransition.size() + " region(s) in transition: " + org.apache.commons.lang.StringUtils. abbreviate(regionsInTransition.toString(), 256)); return false; } if (this.serverManager.areDeadServersInProgress()) { LOG.debug("Not running balancer because processing dead regionserver(s): " + this.serverManager.getDeadServers()); return false; } if (this.cpHost != null) { try { if (this.cpHost.preBalance()) { LOG.debug("Coprocessor bypassing balancer request"); return false; } } catch (IOException ioe) { LOG.error("Error invoking master coprocessor preBalance()", ioe); return false; } } Map<TableName, Map<ServerName, List<HRegionInfo>>> assignmentsByTable = this.assignmentManager.getRegionStates().getAssignmentsByTable(); List<RegionPlan> plans = new ArrayList<RegionPlan>(); //Give the balancer the current cluster state. this.balancer.setClusterStatus(getClusterStatus()); for (Map<ServerName, List<HRegionInfo>> assignments : assignmentsByTable.values()) { List<RegionPlan> partialPlans = this.balancer.balanceCluster(assignments); if (partialPlans != null) plans.addAll(partialPlans); } long cutoffTime = System.currentTimeMillis() + maximumBalanceTime; int rpCount = 0; // number of RegionPlans balanced so far long totalRegPlanExecTime = 0; balancerRan = plans != null; if (plans != null && !plans.isEmpty()) { for (RegionPlan plan: plans) { LOG.info("balance " + plan); long balStartTime = System.currentTimeMillis(); //TODO: bulk assign this.assignmentManager.balance(plan); totalRegPlanExecTime += System.currentTimeMillis()-balStartTime; rpCount++; if (rpCount < plans.size() && // if performing next balance exceeds cutoff time, exit the loop (System.currentTimeMillis() + (totalRegPlanExecTime / rpCount)) > cutoffTime) { //TODO: After balance, there should not be a cutoff time (keeping it as a security net for now) LOG.debug("No more balancing till next balance run; maximumBalanceTime=" + maximumBalanceTime); break; } } } if (this.cpHost != null) { try { this.cpHost.postBalance(rpCount < plans.size() ? plans.subList(0, rpCount) : plans); } catch (IOException ioe) { // balancing already succeeded so don't change the result LOG.error("Error invoking master coprocessor postBalance()", ioe); } } } return balancerRan; } @Override public BalanceResponse balance(RpcController c, BalanceRequest request) throws ServiceException { try { return BalanceResponse.newBuilder().setBalancerRan(balance()).build(); } catch (IOException ex) { throw new ServiceException(ex); } } enum BalanceSwitchMode { SYNC, ASYNC } /** * Assigns balancer switch according to BalanceSwitchMode * @param b new balancer switch * @param mode BalanceSwitchMode * @return old balancer switch */ public boolean switchBalancer(final boolean b, BalanceSwitchMode mode) throws IOException { boolean oldValue = this.loadBalancerTracker.isBalancerOn(); boolean newValue = b; try { if (this.cpHost != null) { newValue = this.cpHost.preBalanceSwitch(newValue); } try { if (mode == BalanceSwitchMode.SYNC) { synchronized (this.balancer) { this.loadBalancerTracker.setBalancerOn(newValue); } } else { this.loadBalancerTracker.setBalancerOn(newValue); } } catch (KeeperException ke) { throw new IOException(ke); } LOG.info(getClientIdAuditPrefix() + " set balanceSwitch=" + newValue); if (this.cpHost != null) { this.cpHost.postBalanceSwitch(oldValue, newValue); } } catch (IOException ioe) { LOG.warn("Error flipping balance switch", ioe); } return oldValue; } /** * @return Client info for use as prefix on an audit log string; who did an action */ String getClientIdAuditPrefix() { return "Client=" + RequestContext.getRequestUserName() + "/" + RequestContext.get().getRemoteAddress(); } public boolean synchronousBalanceSwitch(final boolean b) throws IOException { return switchBalancer(b, BalanceSwitchMode.SYNC); } public boolean balanceSwitch(final boolean b) throws IOException { return switchBalancer(b, BalanceSwitchMode.ASYNC); } @Override public SetBalancerRunningResponse setBalancerRunning( RpcController controller, SetBalancerRunningRequest req) throws ServiceException { try { boolean prevValue = (req.getSynchronous())? synchronousBalanceSwitch(req.getOn()):balanceSwitch(req.getOn()); return SetBalancerRunningResponse.newBuilder().setPrevBalanceValue(prevValue).build(); } catch (IOException ioe) { throw new ServiceException(ioe); } } /** * Switch for the background CatalogJanitor thread. * Used for testing. The thread will continue to run. It will just be a noop * if disabled. * @param b If false, the catalog janitor won't do anything. */ public void setCatalogJanitorEnabled(final boolean b) { this.catalogJanitorChore.setEnabled(b); } @Override public DispatchMergingRegionsResponse dispatchMergingRegions( RpcController controller, DispatchMergingRegionsRequest request) throws ServiceException { final byte[] encodedNameOfRegionA = request.getRegionA().getValue() .toByteArray(); final byte[] encodedNameOfRegionB = request.getRegionB().getValue() .toByteArray(); final boolean forcible = request.getForcible(); if (request.getRegionA().getType() != RegionSpecifierType.ENCODED_REGION_NAME || request.getRegionB().getType() != RegionSpecifierType.ENCODED_REGION_NAME) { LOG.warn("mergeRegions specifier type: expected: " + RegionSpecifierType.ENCODED_REGION_NAME + " actual: region_a=" + request.getRegionA().getType() + ", region_b=" + request.getRegionB().getType()); } RegionState regionStateA = assignmentManager.getRegionStates() .getRegionState(Bytes.toString(encodedNameOfRegionA)); RegionState regionStateB = assignmentManager.getRegionStates() .getRegionState(Bytes.toString(encodedNameOfRegionB)); if (regionStateA == null || regionStateB == null) { throw new ServiceException(new UnknownRegionException( Bytes.toStringBinary(regionStateA == null ? encodedNameOfRegionA : encodedNameOfRegionB))); } if (!regionStateA.isOpened() || !regionStateB.isOpened()) { throw new ServiceException(new MergeRegionException( "Unable to merge regions not online " + regionStateA + ", " + regionStateB)); } HRegionInfo regionInfoA = regionStateA.getRegion(); HRegionInfo regionInfoB = regionStateB.getRegion(); if (regionInfoA.compareTo(regionInfoB) == 0) { throw new ServiceException(new MergeRegionException( "Unable to merge a region to itself " + regionInfoA + ", " + regionInfoB)); } if (!forcible && !HRegionInfo.areAdjacent(regionInfoA, regionInfoB)) { throw new ServiceException(new MergeRegionException( "Unable to merge not adjacent regions " + regionInfoA.getRegionNameAsString() + ", " + regionInfoB.getRegionNameAsString() + " where forcible = " + forcible)); } try { dispatchMergingRegions(regionInfoA, regionInfoB, forcible); } catch (IOException ioe) { throw new ServiceException(ioe); } return DispatchMergingRegionsResponse.newBuilder().build(); } @Override public void dispatchMergingRegions(final HRegionInfo region_a, final HRegionInfo region_b, final boolean forcible) throws IOException { checkInitialized(); this.executorService.submit(new DispatchMergingRegionHandler(this, this.catalogJanitorChore, region_a, region_b, forcible)); } @Override public MoveRegionResponse moveRegion(RpcController controller, MoveRegionRequest req) throws ServiceException { final byte [] encodedRegionName = req.getRegion().getValue().toByteArray(); RegionSpecifierType type = req.getRegion().getType(); final byte [] destServerName = (req.hasDestServerName())? Bytes.toBytes(ProtobufUtil.toServerName(req.getDestServerName()).getServerName()):null; MoveRegionResponse mrr = MoveRegionResponse.newBuilder().build(); if (type != RegionSpecifierType.ENCODED_REGION_NAME) { LOG.warn("moveRegion specifier type: expected: " + RegionSpecifierType.ENCODED_REGION_NAME + " actual: " + type); } try { move(encodedRegionName, destServerName); } catch (HBaseIOException ioe) { throw new ServiceException(ioe); } return mrr; } void move(final byte[] encodedRegionName, final byte[] destServerName) throws HBaseIOException { RegionState regionState = assignmentManager.getRegionStates(). getRegionState(Bytes.toString(encodedRegionName)); if (regionState == null) { throw new UnknownRegionException(Bytes.toStringBinary(encodedRegionName)); } HRegionInfo hri = regionState.getRegion(); ServerName dest; if (destServerName == null || destServerName.length == 0) { LOG.info("Passed destination servername is null/empty so " + "choosing a server at random"); final List<ServerName> destServers = this.serverManager.createDestinationServersList( regionState.getServerName()); dest = balancer.randomAssignment(hri, destServers); } else { dest = ServerName.valueOf(Bytes.toString(destServerName)); if (dest.equals(regionState.getServerName())) { LOG.debug("Skipping move of region " + hri.getRegionNameAsString() + " because region already assigned to the same server " + dest + "."); return; } } // Now we can do the move RegionPlan rp = new RegionPlan(hri, regionState.getServerName(), dest); try { checkInitialized(); if (this.cpHost != null) { if (this.cpHost.preMove(hri, rp.getSource(), rp.getDestination())) { return; } } LOG.info(getClientIdAuditPrefix() + " move " + rp + ", running balancer"); this.assignmentManager.balance(rp); if (this.cpHost != null) { this.cpHost.postMove(hri, rp.getSource(), rp.getDestination()); } } catch (IOException ioe) { if (ioe instanceof HBaseIOException) { throw (HBaseIOException)ioe; } throw new HBaseIOException(ioe); } } @Override public void createTable(HTableDescriptor hTableDescriptor, byte [][] splitKeys) throws IOException { if (!isMasterRunning()) { throw new MasterNotRunningException(); } String namespace = hTableDescriptor.getTableName().getNamespaceAsString(); getNamespaceDescriptor(namespace); // ensure namespace exists HRegionInfo[] newRegions = getHRegionInfos(hTableDescriptor, splitKeys); checkInitialized(); sanityCheckTableDescriptor(hTableDescriptor); if (cpHost != null) { cpHost.preCreateTable(hTableDescriptor, newRegions); } LOG.info(getClientIdAuditPrefix() + " create " + hTableDescriptor); this.executorService.submit(new CreateTableHandler(this, this.fileSystemManager, hTableDescriptor, conf, newRegions, this).prepare()); if (cpHost != null) { cpHost.postCreateTable(hTableDescriptor, newRegions); } } /** * Checks whether the table conforms to some sane limits, and configured * values (compression, etc) work. Throws an exception if something is wrong. * @throws IOException */ private void sanityCheckTableDescriptor(final HTableDescriptor htd) throws IOException { final String CONF_KEY = "hbase.table.sanity.checks"; if (!conf.getBoolean(CONF_KEY, true)) { return; } String tableVal = htd.getConfigurationValue(CONF_KEY); if (tableVal != null && !Boolean.valueOf(tableVal)) { return; } // check max file size long maxFileSizeLowerLimit = 2 * 1024 * 1024L; // 2M is the default lower limit long maxFileSize = htd.getMaxFileSize(); if (maxFileSize < 0) { maxFileSize = conf.getLong(HConstants.HREGION_MAX_FILESIZE, maxFileSizeLowerLimit); } if (maxFileSize < conf.getLong("hbase.hregion.max.filesize.limit", maxFileSizeLowerLimit)) { throw new DoNotRetryIOException("MAX_FILESIZE for table descriptor or " + "\"hbase.hregion.max.filesize\" (" + maxFileSize + ") is too small, which might cause over splitting into unmanageable " + "number of regions. Set " + CONF_KEY + " to false at conf or table descriptor " + "if you want to bypass sanity checks"); } // check flush size long flushSizeLowerLimit = 1024 * 1024L; // 1M is the default lower limit long flushSize = htd.getMemStoreFlushSize(); if (flushSize < 0) { flushSize = conf.getLong(HConstants.HREGION_MEMSTORE_FLUSH_SIZE, flushSizeLowerLimit); } if (flushSize < conf.getLong("hbase.hregion.memstore.flush.size.limit", flushSizeLowerLimit)) { throw new DoNotRetryIOException("MEMSTORE_FLUSHSIZE for table descriptor or " + "\"hbase.hregion.memstore.flush.size\" ("+flushSize+") is too small, which might cause" + " very frequent flushing. Set " + CONF_KEY + " to false at conf or table descriptor " + "if you want to bypass sanity checks"); } // check split policy class can be loaded try { RegionSplitPolicy.getSplitPolicyClass(htd, conf); } catch (Exception ex) { throw new DoNotRetryIOException(ex); } // check compression can be loaded checkCompression(htd); // check that we have at least 1 CF if (htd.getColumnFamilies().length == 0) { throw new DoNotRetryIOException("Table should have at least one column family " + "Set "+CONF_KEY+" at conf or table descriptor if you want to bypass sanity checks"); } for (HColumnDescriptor hcd : htd.getColumnFamilies()) { if (hcd.getTimeToLive() <= 0) { throw new DoNotRetryIOException("TTL for column family " + hcd.getNameAsString() + " must be positive. Set " + CONF_KEY + " to false at conf or table descriptor " + "if you want to bypass sanity checks"); } // check blockSize if (hcd.getBlocksize() < 1024 || hcd.getBlocksize() > 16 * 1024 * 1024) { throw new DoNotRetryIOException("Block size for column family " + hcd.getNameAsString() + " must be between 1K and 16MB Set "+CONF_KEY+" to false at conf or table descriptor " + "if you want to bypass sanity checks"); } // check versions if (hcd.getMinVersions() < 0) { throw new DoNotRetryIOException("Min versions for column family " + hcd.getNameAsString() + " must be positive. Set " + CONF_KEY + " to false at conf or table descriptor " + "if you want to bypass sanity checks"); } // max versions already being checked // check replication scope if (hcd.getScope() < 0) { throw new DoNotRetryIOException("Replication scope for column family " + hcd.getNameAsString() + " must be positive. Set " + CONF_KEY + " to false at conf " + "or table descriptor if you want to bypass sanity checks"); } // TODO: should we check coprocessors and encryption ? } } private void checkCompression(final HTableDescriptor htd) throws IOException { if (!this.masterCheckCompression) return; for (HColumnDescriptor hcd : htd.getColumnFamilies()) { checkCompression(hcd); } } private void checkCompression(final HColumnDescriptor hcd) throws IOException { if (!this.masterCheckCompression) return; CompressionTest.testCompression(hcd.getCompression()); CompressionTest.testCompression(hcd.getCompactionCompression()); } @Override public CreateTableResponse createTable(RpcController controller, CreateTableRequest req) throws ServiceException { HTableDescriptor hTableDescriptor = HTableDescriptor.convert(req.getTableSchema()); byte [][] splitKeys = ProtobufUtil.getSplitKeysArray(req); try { createTable(hTableDescriptor,splitKeys); } catch (IOException ioe) { throw new ServiceException(ioe); } return CreateTableResponse.newBuilder().build(); } private HRegionInfo[] getHRegionInfos(HTableDescriptor hTableDescriptor, byte[][] splitKeys) { HRegionInfo[] hRegionInfos = null; if (splitKeys == null || splitKeys.length == 0) { hRegionInfos = new HRegionInfo[]{ new HRegionInfo(hTableDescriptor.getTableName(), null, null)}; } else { int numRegions = splitKeys.length + 1; hRegionInfos = new HRegionInfo[numRegions]; byte[] startKey = null; byte[] endKey = null; for (int i = 0; i < numRegions; i++) { endKey = (i == splitKeys.length) ? null : splitKeys[i]; hRegionInfos[i] = new HRegionInfo(hTableDescriptor.getTableName(), startKey, endKey); startKey = endKey; } } return hRegionInfos; } private static boolean isCatalogTable(final TableName tableName) { return tableName.equals(TableName.META_TABLE_NAME); } @Override public void deleteTable(final TableName tableName) throws IOException { checkInitialized(); if (cpHost != null) { cpHost.preDeleteTable(tableName); } LOG.info(getClientIdAuditPrefix() + " delete " + tableName); this.executorService.submit(new DeleteTableHandler(tableName, this, this).prepare()); if (cpHost != null) { cpHost.postDeleteTable(tableName); } } @Override public DeleteTableResponse deleteTable(RpcController controller, DeleteTableRequest request) throws ServiceException { try { deleteTable(ProtobufUtil.toTableName(request.getTableName())); } catch (IOException ioe) { throw new ServiceException(ioe); } return DeleteTableResponse.newBuilder().build(); } /** * Get the number of regions of the table that have been updated by the alter. * * @return Pair indicating the number of regions updated Pair.getFirst is the * regions that are yet to be updated Pair.getSecond is the total number * of regions of the table * @throws IOException */ @Override public GetSchemaAlterStatusResponse getSchemaAlterStatus( RpcController controller, GetSchemaAlterStatusRequest req) throws ServiceException { // TODO: currently, we query using the table name on the client side. this // may overlap with other table operations or the table operation may // have completed before querying this API. We need to refactor to a // transaction system in the future to avoid these ambiguities. TableName tableName = ProtobufUtil.toTableName(req.getTableName()); try { Pair<Integer,Integer> pair = this.assignmentManager.getReopenStatus(tableName); GetSchemaAlterStatusResponse.Builder ret = GetSchemaAlterStatusResponse.newBuilder(); ret.setYetToUpdateRegions(pair.getFirst()); ret.setTotalRegions(pair.getSecond()); return ret.build(); } catch (IOException ioe) { throw new ServiceException(ioe); } } @Override public void addColumn(final TableName tableName, final HColumnDescriptor column) throws IOException { checkInitialized(); if (cpHost != null) { if (cpHost.preAddColumn(tableName, column)) { return; } } //TODO: we should process this (and some others) in an executor new TableAddFamilyHandler(tableName, column, this, this).prepare().process(); if (cpHost != null) { cpHost.postAddColumn(tableName, column); } } @Override public AddColumnResponse addColumn(RpcController controller, AddColumnRequest req) throws ServiceException { try { addColumn(ProtobufUtil.toTableName(req.getTableName()), HColumnDescriptor.convert(req.getColumnFamilies())); } catch (IOException ioe) { throw new ServiceException(ioe); } return AddColumnResponse.newBuilder().build(); } @Override public void modifyColumn(TableName tableName, HColumnDescriptor descriptor) throws IOException { checkInitialized(); checkCompression(descriptor); if (cpHost != null) { if (cpHost.preModifyColumn(tableName, descriptor)) { return; } } LOG.info(getClientIdAuditPrefix() + " modify " + descriptor); new TableModifyFamilyHandler(tableName, descriptor, this, this) .prepare().process(); if (cpHost != null) { cpHost.postModifyColumn(tableName, descriptor); } } @Override public ModifyColumnResponse modifyColumn(RpcController controller, ModifyColumnRequest req) throws ServiceException { try { modifyColumn(ProtobufUtil.toTableName(req.getTableName()), HColumnDescriptor.convert(req.getColumnFamilies())); } catch (IOException ioe) { throw new ServiceException(ioe); } return ModifyColumnResponse.newBuilder().build(); } @Override public void deleteColumn(final TableName tableName, final byte[] columnName) throws IOException { checkInitialized(); if (cpHost != null) { if (cpHost.preDeleteColumn(tableName, columnName)) { return; } } LOG.info(getClientIdAuditPrefix() + " delete " + Bytes.toString(columnName)); new TableDeleteFamilyHandler(tableName, columnName, this, this).prepare().process(); if (cpHost != null) { cpHost.postDeleteColumn(tableName, columnName); } } @Override public DeleteColumnResponse deleteColumn(RpcController controller, DeleteColumnRequest req) throws ServiceException { try { deleteColumn(ProtobufUtil.toTableName(req.getTableName()), req.getColumnName().toByteArray()); } catch (IOException ioe) { throw new ServiceException(ioe); } return DeleteColumnResponse.newBuilder().build(); } @Override public void enableTable(final TableName tableName) throws IOException { checkInitialized(); if (cpHost != null) { cpHost.preEnableTable(tableName); } LOG.info(getClientIdAuditPrefix() + " enable " + tableName); this.executorService.submit(new EnableTableHandler(this, tableName, catalogTracker, assignmentManager, tableLockManager, false).prepare()); if (cpHost != null) { cpHost.postEnableTable(tableName); } } @Override public EnableTableResponse enableTable(RpcController controller, EnableTableRequest request) throws ServiceException { try { enableTable(ProtobufUtil.toTableName(request.getTableName())); } catch (IOException ioe) { throw new ServiceException(ioe); } return EnableTableResponse.newBuilder().build(); } @Override public void disableTable(final TableName tableName) throws IOException { checkInitialized(); if (cpHost != null) { cpHost.preDisableTable(tableName); } LOG.info(getClientIdAuditPrefix() + " disable " + tableName); this.executorService.submit(new DisableTableHandler(this, tableName, catalogTracker, assignmentManager, tableLockManager, false).prepare()); if (cpHost != null) { cpHost.postDisableTable(tableName); } } @Override public DisableTableResponse disableTable(RpcController controller, DisableTableRequest request) throws ServiceException { try { disableTable(ProtobufUtil.toTableName(request.getTableName())); } catch (IOException ioe) { throw new ServiceException(ioe); } return DisableTableResponse.newBuilder().build(); } /** * Return the region and current deployment for the region containing * the given row. If the region cannot be found, returns null. If it * is found, but not currently deployed, the second element of the pair * may be null. */ Pair<HRegionInfo, ServerName> getTableRegionForRow( final TableName tableName, final byte [] rowKey) throws IOException { final AtomicReference<Pair<HRegionInfo, ServerName>> result = new AtomicReference<Pair<HRegionInfo, ServerName>>(null); MetaScannerVisitor visitor = new MetaScannerVisitorBase() { @Override public boolean processRow(Result data) throws IOException { if (data == null || data.size() <= 0) { return true; } Pair<HRegionInfo, ServerName> pair = HRegionInfo.getHRegionInfoAndServerName(data); if (pair == null) { return false; } if (!pair.getFirst().getTable().equals(tableName)) { return false; } result.set(pair); return true; } }; MetaScanner.metaScan(conf, visitor, tableName, rowKey, 1); return result.get(); } @Override public void modifyTable(final TableName tableName, final HTableDescriptor descriptor) throws IOException { checkInitialized(); sanityCheckTableDescriptor(descriptor); if (cpHost != null) { cpHost.preModifyTable(tableName, descriptor); } LOG.info(getClientIdAuditPrefix() + " modify " + tableName); new ModifyTableHandler(tableName, descriptor, this, this).prepare().process(); if (cpHost != null) { cpHost.postModifyTable(tableName, descriptor); } } @Override public ModifyTableResponse modifyTable(RpcController controller, ModifyTableRequest req) throws ServiceException { try { modifyTable(ProtobufUtil.toTableName(req.getTableName()), HTableDescriptor.convert(req.getTableSchema())); } catch (IOException ioe) { throw new ServiceException(ioe); } return ModifyTableResponse.newBuilder().build(); } @Override public void checkTableModifiable(final TableName tableName) throws IOException, TableNotFoundException, TableNotDisabledException { if (isCatalogTable(tableName)) { throw new IOException("Can't modify catalog tables"); } if (!MetaReader.tableExists(getCatalogTracker(), tableName)) { throw new TableNotFoundException(tableName); } if (!getAssignmentManager().getZKTable(). isDisabledTable(tableName)) { throw new TableNotDisabledException(tableName); } } @Override public GetClusterStatusResponse getClusterStatus(RpcController controller, GetClusterStatusRequest req) throws ServiceException { GetClusterStatusResponse.Builder response = GetClusterStatusResponse.newBuilder(); try { response.setClusterStatus(getClusterStatus().convert()); } catch (InterruptedIOException e) { throw new ServiceException(e); } return response.build(); } /** * @return cluster status */ public ClusterStatus getClusterStatus() throws InterruptedIOException { // Build Set of backup masters from ZK nodes List<String> backupMasterStrings; try { backupMasterStrings = ZKUtil.listChildrenNoWatch(this.zooKeeper, this.zooKeeper.backupMasterAddressesZNode); } catch (KeeperException e) { LOG.warn(this.zooKeeper.prefix("Unable to list backup servers"), e); backupMasterStrings = new ArrayList<String>(0); } List<ServerName> backupMasters = new ArrayList<ServerName>( backupMasterStrings.size()); for (String s: backupMasterStrings) { try { byte [] bytes; try { bytes = ZKUtil.getData(this.zooKeeper, ZKUtil.joinZNode( this.zooKeeper.backupMasterAddressesZNode, s)); } catch (InterruptedException e) { throw new InterruptedIOException(); } if (bytes != null) { ServerName sn; try { sn = ServerName.parseFrom(bytes); } catch (DeserializationException e) { LOG.warn("Failed parse, skipping registering backup server", e); continue; } backupMasters.add(sn); } } catch (KeeperException e) { LOG.warn(this.zooKeeper.prefix("Unable to get information about " + "backup servers"), e); } } Collections.sort(backupMasters, new Comparator<ServerName>() { @Override public int compare(ServerName s1, ServerName s2) { return s1.getServerName().compareTo(s2.getServerName()); }}); return new ClusterStatus(VersionInfo.getVersion(), this.fileSystemManager.getClusterId().toString(), this.serverManager.getOnlineServers(), this.serverManager.getDeadServers().copyServerNames(), this.serverName, backupMasters, this.assignmentManager.getRegionStates().getRegionsInTransition(), this.getCoprocessors(), this.loadBalancerTracker.isBalancerOn()); } public String getClusterId() { if (fileSystemManager == null) { return ""; } ClusterId id = fileSystemManager.getClusterId(); if (id == null) { return ""; } return id.toString(); } /** * The set of loaded coprocessors is stored in a static set. Since it's * statically allocated, it does not require that HMaster's cpHost be * initialized prior to accessing it. * @return a String representation of the set of names of the loaded * coprocessors. */ public static String getLoadedCoprocessors() { return CoprocessorHost.getLoadedCoprocessors().toString(); } /** * @return timestamp in millis when HMaster was started. */ public long getMasterStartTime() { return masterStartTime; } /** * @return timestamp in millis when HMaster became the active master. */ public long getMasterActiveTime() { return masterActiveTime; } public int getRegionServerInfoPort(final ServerName sn) { RegionServerInfo info = this.regionServerTracker.getRegionServerInfo(sn); if (info == null || info.getInfoPort() == 0) { return conf.getInt(HConstants.REGIONSERVER_INFO_PORT, HConstants.DEFAULT_REGIONSERVER_INFOPORT); } return info.getInfoPort(); } /** * @return array of coprocessor SimpleNames. */ public String[] getCoprocessors() { Set<String> masterCoprocessors = getCoprocessorHost().getCoprocessors(); return masterCoprocessors.toArray(new String[masterCoprocessors.size()]); } @Override public void abort(final String msg, final Throwable t) { if (cpHost != null) { // HBASE-4014: dump a list of loaded coprocessors. LOG.fatal("Master server abort: loaded coprocessors are: " + getLoadedCoprocessors()); } if (abortNow(msg, t)) { if (t != null) LOG.fatal(msg, t); else LOG.fatal(msg); this.abort = true; stop("Aborting"); } } /** * We do the following in a different thread. If it is not completed * in time, we will time it out and assume it is not easy to recover. * * 1. Create a new ZK session. (since our current one is expired) * 2. Try to become a primary master again * 3. Initialize all ZK based system trackers. * 4. Assign meta. (they are already assigned, but we need to update our * internal memory state to reflect it) * 5. Process any RIT if any during the process of our recovery. * * @return True if we could successfully recover from ZK session expiry. * @throws InterruptedException * @throws IOException * @throws KeeperException * @throws ExecutionException */ private boolean tryRecoveringExpiredZKSession() throws InterruptedException, IOException, KeeperException, ExecutionException { this.zooKeeper.unregisterAllListeners(); // add back listeners which were registered before master initialization // because they won't be added back in below Master re-initialization code if (this.registeredZKListenersBeforeRecovery != null) { for (ZooKeeperListener curListener : this.registeredZKListenersBeforeRecovery) { this.zooKeeper.registerListener(curListener); } } this.zooKeeper.reconnectAfterExpiration(); Callable<Boolean> callable = new Callable<Boolean> () { @Override public Boolean call() throws InterruptedException, IOException, KeeperException { MonitoredTask status = TaskMonitor.get().createStatus("Recovering expired ZK session"); try { if (!becomeActiveMaster(status)) { return Boolean.FALSE; } serverShutdownHandlerEnabled = false; initialized = false; finishInitialization(status, true); return !stopped; } finally { status.cleanup(); } } }; long timeout = conf.getLong("hbase.master.zksession.recover.timeout", 300000); java.util.concurrent.ExecutorService executor = Executors.newSingleThreadExecutor(); Future<Boolean> result = executor.submit(callable); executor.shutdown(); if (executor.awaitTermination(timeout, TimeUnit.MILLISECONDS) && result.isDone()) { Boolean recovered = result.get(); if (recovered != null) { return recovered.booleanValue(); } } executor.shutdownNow(); return false; } /** * Check to see if the current trigger for abort is due to ZooKeeper session * expiry, and If yes, whether we can recover from ZK session expiry. * * @param msg Original abort message * @param t The cause for current abort request * @return true if we should proceed with abort operation, false other wise. */ private boolean abortNow(final String msg, final Throwable t) { if (!this.isActiveMaster || this.stopped) { return true; } boolean failFast = conf.getBoolean("fail.fast.expired.active.master", false); if (t != null && t instanceof KeeperException.SessionExpiredException && !failFast) { try { LOG.info("Primary Master trying to recover from ZooKeeper session " + "expiry."); return !tryRecoveringExpiredZKSession(); } catch (Throwable newT) { LOG.error("Primary master encountered unexpected exception while " + "trying to recover from ZooKeeper session" + " expiry. Proceeding with server abort.", newT); } } return true; } @Override public ZooKeeperWatcher getZooKeeper() { return zooKeeper; } @Override public MasterCoprocessorHost getCoprocessorHost() { return cpHost; } @Override public ServerName getServerName() { return this.serverName; } @Override public CatalogTracker getCatalogTracker() { return catalogTracker; } @Override public AssignmentManager getAssignmentManager() { return this.assignmentManager; } @Override public TableLockManager getTableLockManager() { return this.tableLockManager; } public MemoryBoundedLogMessageBuffer getRegionServerFatalLogBuffer() { return rsFatals; } public void shutdown() { if (spanReceiverHost != null) { spanReceiverHost.closeReceivers(); } if (cpHost != null) { try { cpHost.preShutdown(); } catch (IOException ioe) { LOG.error("Error call master coprocessor preShutdown()", ioe); } } if (mxBean != null) { MBeanUtil.unregisterMBean(mxBean); mxBean = null; } if (this.assignmentManager != null) this.assignmentManager.shutdown(); if (this.serverManager != null) this.serverManager.shutdownCluster(); try { if (this.clusterStatusTracker != null){ this.clusterStatusTracker.setClusterDown(); } } catch (KeeperException e) { LOG.error("ZooKeeper exception trying to set cluster as down in ZK", e); } } @Override public ShutdownResponse shutdown(RpcController controller, ShutdownRequest request) throws ServiceException { LOG.info(getClientIdAuditPrefix() + " shutdown"); shutdown(); return ShutdownResponse.newBuilder().build(); } public void stopMaster() { if (cpHost != null) { try { cpHost.preStopMaster(); } catch (IOException ioe) { LOG.error("Error call master coprocessor preStopMaster()", ioe); } } stop("Stopped by " + Thread.currentThread().getName()); } @Override public StopMasterResponse stopMaster(RpcController controller, StopMasterRequest request) throws ServiceException { LOG.info(getClientIdAuditPrefix() + " stop"); stopMaster(); return StopMasterResponse.newBuilder().build(); } @Override public void stop(final String why) { LOG.info(why); this.stopped = true; // We wake up the stopSleeper to stop immediately stopSleeper.skipSleepCycle(); // If we are a backup master, we need to interrupt wait if (this.activeMasterManager != null) { synchronized (this.activeMasterManager.clusterHasActiveMaster) { this.activeMasterManager.clusterHasActiveMaster.notifyAll(); } } // If no region server is online then master may stuck waiting on hbase:meta to come on line. // See HBASE-8422. if (this.catalogTracker != null && this.serverManager.getOnlineServers().isEmpty()) { this.catalogTracker.stop(); } } @Override public boolean isStopped() { return this.stopped; } @Override public boolean isAborted() { return this.abort; } void checkInitialized() throws PleaseHoldException { if (!this.initialized) { throw new PleaseHoldException("Master is initializing"); } } /** * Report whether this master is currently the active master or not. * If not active master, we are parked on ZK waiting to become active. * * This method is used for testing. * * @return true if active master, false if not. */ public boolean isActiveMaster() { return isActiveMaster; } /** * Report whether this master has completed with its initialization and is * ready. If ready, the master is also the active master. A standby master * is never ready. * * This method is used for testing. * * @return true if master is ready to go, false if not. */ @Override public boolean isInitialized() { return initialized; } /** * ServerShutdownHandlerEnabled is set false before completing * assignMeta to prevent processing of ServerShutdownHandler. * @return true if assignMeta has completed; */ @Override public boolean isServerShutdownHandlerEnabled() { return this.serverShutdownHandlerEnabled; } /** * Report whether this master has started initialization and is about to do meta region assignment * @return true if master is in initialization & about to assign hbase:meta regions */ public boolean isInitializationStartsMetaRegionAssignment() { return this.initializationBeforeMetaAssignment; } @Override public AssignRegionResponse assignRegion(RpcController controller, AssignRegionRequest req) throws ServiceException { try { final byte [] regionName = req.getRegion().getValue().toByteArray(); RegionSpecifierType type = req.getRegion().getType(); AssignRegionResponse arr = AssignRegionResponse.newBuilder().build(); checkInitialized(); if (type != RegionSpecifierType.REGION_NAME) { LOG.warn("assignRegion specifier type: expected: " + RegionSpecifierType.REGION_NAME + " actual: " + type); } HRegionInfo regionInfo = assignmentManager.getRegionStates().getRegionInfo(regionName); if (regionInfo == null) throw new UnknownRegionException(Bytes.toString(regionName)); if (cpHost != null) { if (cpHost.preAssign(regionInfo)) { return arr; } } LOG.info(getClientIdAuditPrefix() + " assign " + regionInfo.getRegionNameAsString()); assignmentManager.assign(regionInfo, true, true); if (cpHost != null) { cpHost.postAssign(regionInfo); } return arr; } catch (IOException ioe) { throw new ServiceException(ioe); } } public void assignRegion(HRegionInfo hri) { assignmentManager.assign(hri, true); } @Override public UnassignRegionResponse unassignRegion(RpcController controller, UnassignRegionRequest req) throws ServiceException { try { final byte [] regionName = req.getRegion().getValue().toByteArray(); RegionSpecifierType type = req.getRegion().getType(); final boolean force = req.getForce(); UnassignRegionResponse urr = UnassignRegionResponse.newBuilder().build(); checkInitialized(); if (type != RegionSpecifierType.REGION_NAME) { LOG.warn("unassignRegion specifier type: expected: " + RegionSpecifierType.REGION_NAME + " actual: " + type); } Pair<HRegionInfo, ServerName> pair = MetaReader.getRegion(this.catalogTracker, regionName); if (pair == null) throw new UnknownRegionException(Bytes.toString(regionName)); HRegionInfo hri = pair.getFirst(); if (cpHost != null) { if (cpHost.preUnassign(hri, force)) { return urr; } } LOG.debug(getClientIdAuditPrefix() + " unassign " + hri.getRegionNameAsString() + " in current location if it is online and reassign.force=" + force); this.assignmentManager.unassign(hri, force); if (this.assignmentManager.getRegionStates().isRegionOffline(hri)) { LOG.debug("Region " + hri.getRegionNameAsString() + " is not online on any region server, reassigning it."); assignRegion(hri); } if (cpHost != null) { cpHost.postUnassign(hri, force); } return urr; } catch (IOException ioe) { throw new ServiceException(ioe); } } /** * Get list of TableDescriptors for requested tables. * @param controller Unused (set to null). * @param req GetTableDescriptorsRequest that contains: * - tableNames: requested tables, or if empty, all are requested * @return GetTableDescriptorsResponse * @throws ServiceException */ @Override public GetTableDescriptorsResponse getTableDescriptors( RpcController controller, GetTableDescriptorsRequest req) throws ServiceException { List<HTableDescriptor> descriptors = new ArrayList<HTableDescriptor>(); List<TableName> tableNameList = new ArrayList<TableName>(); for(HBaseProtos.TableName tableNamePB: req.getTableNamesList()) { tableNameList.add(ProtobufUtil.toTableName(tableNamePB)); } boolean bypass = false; if (this.cpHost != null) { try { bypass = this.cpHost.preGetTableDescriptors(tableNameList, descriptors); } catch (IOException ioe) { throw new ServiceException(ioe); } } if (!bypass) { if (req.getTableNamesCount() == 0) { // request for all TableDescriptors Map<String, HTableDescriptor> descriptorMap = null; try { descriptorMap = this.tableDescriptors.getAll(); } catch (IOException e) { LOG.warn("Failed getting all descriptors", e); } if (descriptorMap != null) { for(HTableDescriptor desc: descriptorMap.values()) { if(!desc.getTableName().isSystemTable()) { descriptors.add(desc); } } } } else { for (TableName s: tableNameList) { try { HTableDescriptor desc = this.tableDescriptors.get(s); if (desc != null) { descriptors.add(desc); } } catch (IOException e) { LOG.warn("Failed getting descriptor for " + s, e); } } } if (this.cpHost != null) { try { this.cpHost.postGetTableDescriptors(descriptors); } catch (IOException ioe) { throw new ServiceException(ioe); } } } GetTableDescriptorsResponse.Builder builder = GetTableDescriptorsResponse.newBuilder(); for (HTableDescriptor htd: descriptors) { builder.addTableSchema(htd.convert()); } return builder.build(); } /** * Get list of userspace table names * @param controller Unused (set to null). * @param req GetTableNamesRequest * @return GetTableNamesResponse * @throws ServiceException */ @Override public GetTableNamesResponse getTableNames( RpcController controller, GetTableNamesRequest req) throws ServiceException { try { Collection<HTableDescriptor> descriptors = this.tableDescriptors.getAll().values(); GetTableNamesResponse.Builder builder = GetTableNamesResponse.newBuilder(); for (HTableDescriptor descriptor: descriptors) { if (descriptor.getTableName().isSystemTable()) { continue; } builder.addTableNames(ProtobufUtil.toProtoTableName(descriptor.getTableName())); } return builder.build(); } catch (IOException e) { throw new ServiceException(e); } } /** * Compute the average load across all region servers. * Currently, this uses a very naive computation - just uses the number of * regions being served, ignoring stats about number of requests. * @return the average load */ public double getAverageLoad() { if (this.assignmentManager == null) { return 0; } RegionStates regionStates = this.assignmentManager.getRegionStates(); if (regionStates == null) { return 0; } return regionStates.getAverageLoad(); } /** * Offline specified region from master's in-memory state. It will not attempt to * reassign the region as in unassign. * * This is a special method that should be used by experts or hbck. * */ @Override public OfflineRegionResponse offlineRegion(RpcController controller, OfflineRegionRequest request) throws ServiceException { final byte [] regionName = request.getRegion().getValue().toByteArray(); RegionSpecifierType type = request.getRegion().getType(); if (type != RegionSpecifierType.REGION_NAME) { LOG.warn("moveRegion specifier type: expected: " + RegionSpecifierType.REGION_NAME + " actual: " + type); } try { Pair<HRegionInfo, ServerName> pair = MetaReader.getRegion(this.catalogTracker, regionName); if (pair == null) throw new UnknownRegionException(Bytes.toStringBinary(regionName)); HRegionInfo hri = pair.getFirst(); if (cpHost != null) { cpHost.preRegionOffline(hri); } LOG.info(getClientIdAuditPrefix() + " offline " + hri.getRegionNameAsString()); this.assignmentManager.regionOffline(hri); if (cpHost != null) { cpHost.postRegionOffline(hri); } } catch (IOException ioe) { throw new ServiceException(ioe); } return OfflineRegionResponse.newBuilder().build(); } @Override public boolean registerService(Service instance) { /* * No stacking of instances is allowed for a single service name */ Descriptors.ServiceDescriptor serviceDesc = instance.getDescriptorForType(); if (coprocessorServiceHandlers.containsKey(serviceDesc.getFullName())) { LOG.error("Coprocessor service "+serviceDesc.getFullName()+ " already registered, rejecting request from "+instance ); return false; } coprocessorServiceHandlers.put(serviceDesc.getFullName(), instance); if (LOG.isDebugEnabled()) { LOG.debug("Registered master coprocessor service: service="+serviceDesc.getFullName()); } return true; } @Override public ClientProtos.CoprocessorServiceResponse execMasterService(final RpcController controller, final ClientProtos.CoprocessorServiceRequest request) throws ServiceException { try { ServerRpcController execController = new ServerRpcController(); ClientProtos.CoprocessorServiceCall call = request.getCall(); String serviceName = call.getServiceName(); String methodName = call.getMethodName(); if (!coprocessorServiceHandlers.containsKey(serviceName)) { throw new UnknownProtocolException(null, "No registered master coprocessor service found for name "+serviceName); } Service service = coprocessorServiceHandlers.get(serviceName); Descriptors.ServiceDescriptor serviceDesc = service.getDescriptorForType(); Descriptors.MethodDescriptor methodDesc = serviceDesc.findMethodByName(methodName); if (methodDesc == null) { throw new UnknownProtocolException(service.getClass(), "Unknown method "+methodName+" called on master service "+serviceName); } //invoke the method Message execRequest = service.getRequestPrototype(methodDesc).newBuilderForType() .mergeFrom(call.getRequest()).build(); final Message.Builder responseBuilder = service.getResponsePrototype(methodDesc).newBuilderForType(); service.callMethod(methodDesc, execController, execRequest, new RpcCallback<Message>() { @Override public void run(Message message) { if (message != null) { responseBuilder.mergeFrom(message); } } }); Message execResult = responseBuilder.build(); if (execController.getFailedOn() != null) { throw execController.getFailedOn(); } ClientProtos.CoprocessorServiceResponse.Builder builder = ClientProtos.CoprocessorServiceResponse.newBuilder(); builder.setRegion(RequestConverter.buildRegionSpecifier( RegionSpecifierType.REGION_NAME, HConstants.EMPTY_BYTE_ARRAY)); builder.setValue( builder.getValueBuilder().setName(execResult.getClass().getName()) .setValue(execResult.toByteString())); return builder.build(); } catch (IOException ie) { throw new ServiceException(ie); } } /** * Utility for constructing an instance of the passed HMaster class. * @param masterClass * @param conf * @return HMaster instance. */ public static HMaster constructMaster(Class<? extends HMaster> masterClass, final Configuration conf) { try { Constructor<? extends HMaster> c = masterClass.getConstructor(Configuration.class); return c.newInstance(conf); } catch (InvocationTargetException ite) { Throwable target = ite.getTargetException() != null? ite.getTargetException(): ite; if (target.getCause() != null) target = target.getCause(); throw new RuntimeException("Failed construction of Master: " + masterClass.toString(), target); } catch (Exception e) { throw new RuntimeException("Failed construction of Master: " + masterClass.toString() + ((e.getCause() != null)? e.getCause().getMessage(): ""), e); } } /** * @see org.apache.hadoop.hbase.master.HMasterCommandLine */ public static void main(String [] args) { VersionInfo.logVersion(); new HMasterCommandLine(HMaster.class).doMain(args); } public HFileCleaner getHFileCleaner() { return this.hfileCleaner; } /** * Exposed for TESTING! * @return the underlying snapshot manager */ public SnapshotManager getSnapshotManagerForTesting() { return this.snapshotManager; } /** * Triggers an asynchronous attempt to take a snapshot. * {@inheritDoc} */ @Override public SnapshotResponse snapshot(RpcController controller, SnapshotRequest request) throws ServiceException { try { this.snapshotManager.checkSnapshotSupport(); } catch (UnsupportedOperationException e) { throw new ServiceException(e); } LOG.info(getClientIdAuditPrefix() + " snapshot request for:" + ClientSnapshotDescriptionUtils.toString(request.getSnapshot())); // get the snapshot information SnapshotDescription snapshot = SnapshotDescriptionUtils.validate(request.getSnapshot(), this.conf); try { snapshotManager.takeSnapshot(snapshot); } catch (IOException e) { throw new ServiceException(e); } // send back the max amount of time the client should wait for the snapshot to complete long waitTime = SnapshotDescriptionUtils.getMaxMasterTimeout(conf, snapshot.getType(), SnapshotDescriptionUtils.DEFAULT_MAX_WAIT_TIME); return SnapshotResponse.newBuilder().setExpectedTimeout(waitTime).build(); } /** * List the currently available/stored snapshots. Any in-progress snapshots are ignored */ @Override public GetCompletedSnapshotsResponse getCompletedSnapshots(RpcController controller, GetCompletedSnapshotsRequest request) throws ServiceException { try { GetCompletedSnapshotsResponse.Builder builder = GetCompletedSnapshotsResponse.newBuilder(); List<SnapshotDescription> snapshots = snapshotManager.getCompletedSnapshots(); // convert to protobuf for (SnapshotDescription snapshot : snapshots) { builder.addSnapshots(snapshot); } return builder.build(); } catch (IOException e) { throw new ServiceException(e); } } /** * Execute Delete Snapshot operation. * @return DeleteSnapshotResponse (a protobuf wrapped void) if the snapshot existed and was * deleted properly. * @throws ServiceException wrapping SnapshotDoesNotExistException if specified snapshot did not * exist. */ @Override public DeleteSnapshotResponse deleteSnapshot(RpcController controller, DeleteSnapshotRequest request) throws ServiceException { try { this.snapshotManager.checkSnapshotSupport(); } catch (UnsupportedOperationException e) { throw new ServiceException(e); } try { LOG.info(getClientIdAuditPrefix() + " delete " + request.getSnapshot()); snapshotManager.deleteSnapshot(request.getSnapshot()); return DeleteSnapshotResponse.newBuilder().build(); } catch (IOException e) { throw new ServiceException(e); } } /** * Checks if the specified snapshot is done. * @return true if the snapshot is in file system ready to use, * false if the snapshot is in the process of completing * @throws ServiceException wrapping UnknownSnapshotException if invalid snapshot, or * a wrapped HBaseSnapshotException with progress failure reason. */ @Override public IsSnapshotDoneResponse isSnapshotDone(RpcController controller, IsSnapshotDoneRequest request) throws ServiceException { LOG.debug("Checking to see if snapshot from request:" + ClientSnapshotDescriptionUtils.toString(request.getSnapshot()) + " is done"); try { IsSnapshotDoneResponse.Builder builder = IsSnapshotDoneResponse.newBuilder(); boolean done = snapshotManager.isSnapshotDone(request.getSnapshot()); builder.setDone(done); return builder.build(); } catch (IOException e) { throw new ServiceException(e); } } /** * Execute Restore/Clone snapshot operation. * * <p>If the specified table exists a "Restore" is executed, replacing the table * schema and directory data with the content of the snapshot. * The table must be disabled, or a UnsupportedOperationException will be thrown. * * <p>If the table doesn't exist a "Clone" is executed, a new table is created * using the schema at the time of the snapshot, and the content of the snapshot. * * <p>The restore/clone operation does not require copying HFiles. Since HFiles * are immutable the table can point to and use the same files as the original one. */ @Override public RestoreSnapshotResponse restoreSnapshot(RpcController controller, RestoreSnapshotRequest request) throws ServiceException { try { this.snapshotManager.checkSnapshotSupport(); } catch (UnsupportedOperationException e) { throw new ServiceException(e); } // ensure namespace exists try { TableName dstTable = TableName.valueOf(request.getSnapshot().getTable()); getNamespaceDescriptor(dstTable.getNamespaceAsString()); } catch (IOException ioe) { throw new ServiceException(ioe); } try { SnapshotDescription reqSnapshot = request.getSnapshot(); snapshotManager.restoreSnapshot(reqSnapshot); return RestoreSnapshotResponse.newBuilder().build(); } catch (IOException e) { throw new ServiceException(e); } } /** * Returns the status of the requested snapshot restore/clone operation. * This method is not exposed to the user, it is just used internally by HBaseAdmin * to verify if the restore is completed. * * No exceptions are thrown if the restore is not running, the result will be "done". * * @return done <tt>true</tt> if the restore/clone operation is completed. * @throws ServiceException if the operation failed. */ @Override public IsRestoreSnapshotDoneResponse isRestoreSnapshotDone(RpcController controller, IsRestoreSnapshotDoneRequest request) throws ServiceException { try { SnapshotDescription snapshot = request.getSnapshot(); IsRestoreSnapshotDoneResponse.Builder builder = IsRestoreSnapshotDoneResponse.newBuilder(); boolean done = snapshotManager.isRestoreDone(snapshot); builder.setDone(done); return builder.build(); } catch (IOException e) { throw new ServiceException(e); } } /** * Triggers an asynchronous attempt to run a distributed procedure. * {@inheritDoc} */ @Override public ExecProcedureResponse execProcedure(RpcController controller, ExecProcedureRequest request) throws ServiceException { ProcedureDescription desc = request.getProcedure(); MasterProcedureManager mpm = this.mpmHost.getProcedureManager(desc .getSignature()); if (mpm == null) { throw new ServiceException("The procedure is not registered: " + desc.getSignature()); } LOG.info(getClientIdAuditPrefix() + " procedure request for: " + desc.getSignature()); try { mpm.execProcedure(desc); } catch (IOException e) { throw new ServiceException(e); } // send back the max amount of time the client should wait for the procedure // to complete long waitTime = SnapshotDescriptionUtils.DEFAULT_MAX_WAIT_TIME; return ExecProcedureResponse.newBuilder().setExpectedTimeout(waitTime) .build(); } /** * Checks if the specified procedure is done. * @return true if the procedure is done, * false if the procedure is in the process of completing * @throws ServiceException if invalid procedure, or * a failed procedure with progress failure reason. */ @Override public IsProcedureDoneResponse isProcedureDone(RpcController controller, IsProcedureDoneRequest request) throws ServiceException { ProcedureDescription desc = request.getProcedure(); MasterProcedureManager mpm = this.mpmHost.getProcedureManager(desc .getSignature()); if (mpm == null) { throw new ServiceException("The procedure is not registered: " + desc.getSignature()); } LOG.debug("Checking to see if procedure from request:" + desc.getSignature() + " is done"); try { IsProcedureDoneResponse.Builder builder = IsProcedureDoneResponse .newBuilder(); boolean done = mpm.isProcedureDone(desc); builder.setDone(done); return builder.build(); } catch (IOException e) { throw new ServiceException(e); } } @Override public ModifyNamespaceResponse modifyNamespace(RpcController controller, ModifyNamespaceRequest request) throws ServiceException { try { modifyNamespace(ProtobufUtil.toNamespaceDescriptor(request.getNamespaceDescriptor())); return ModifyNamespaceResponse.getDefaultInstance(); } catch (IOException e) { throw new ServiceException(e); } } @Override public CreateNamespaceResponse createNamespace(RpcController controller, CreateNamespaceRequest request) throws ServiceException { try { createNamespace(ProtobufUtil.toNamespaceDescriptor(request.getNamespaceDescriptor())); return CreateNamespaceResponse.getDefaultInstance(); } catch (IOException e) { throw new ServiceException(e); } } @Override public DeleteNamespaceResponse deleteNamespace(RpcController controller, DeleteNamespaceRequest request) throws ServiceException { try { deleteNamespace(request.getNamespaceName()); return DeleteNamespaceResponse.getDefaultInstance(); } catch (IOException e) { throw new ServiceException(e); } } @Override public GetNamespaceDescriptorResponse getNamespaceDescriptor( RpcController controller, GetNamespaceDescriptorRequest request) throws ServiceException { try { return GetNamespaceDescriptorResponse.newBuilder() .setNamespaceDescriptor( ProtobufUtil.toProtoNamespaceDescriptor(getNamespaceDescriptor(request.getNamespaceName()))) .build(); } catch (IOException e) { throw new ServiceException(e); } } @Override public ListNamespaceDescriptorsResponse listNamespaceDescriptors( RpcController controller, ListNamespaceDescriptorsRequest request) throws ServiceException { try { ListNamespaceDescriptorsResponse.Builder response = ListNamespaceDescriptorsResponse.newBuilder(); for(NamespaceDescriptor ns: listNamespaceDescriptors()) { response.addNamespaceDescriptor(ProtobufUtil.toProtoNamespaceDescriptor(ns)); } return response.build(); } catch (IOException e) { throw new ServiceException(e); } } @Override public ListTableDescriptorsByNamespaceResponse listTableDescriptorsByNamespace( RpcController controller, ListTableDescriptorsByNamespaceRequest request) throws ServiceException { try { ListTableDescriptorsByNamespaceResponse.Builder b = ListTableDescriptorsByNamespaceResponse.newBuilder(); for(HTableDescriptor htd: listTableDescriptorsByNamespace(request.getNamespaceName())) { b.addTableSchema(htd.convert()); } return b.build(); } catch (IOException e) { throw new ServiceException(e); } } @Override public ListTableNamesByNamespaceResponse listTableNamesByNamespace( RpcController controller, ListTableNamesByNamespaceRequest request) throws ServiceException { try { ListTableNamesByNamespaceResponse.Builder b = ListTableNamesByNamespaceResponse.newBuilder(); for (TableName tableName: listTableNamesByNamespace(request.getNamespaceName())) { b.addTableName(ProtobufUtil.toProtoTableName(tableName)); } return b.build(); } catch (IOException e) { throw new ServiceException(e); } } private boolean isHealthCheckerConfigured() { String healthScriptLocation = this.conf.get(HConstants.HEALTH_SCRIPT_LOC); return org.apache.commons.lang.StringUtils.isNotBlank(healthScriptLocation); } @Override public void createNamespace(NamespaceDescriptor descriptor) throws IOException { TableName.isLegalNamespaceName(Bytes.toBytes(descriptor.getName())); if (cpHost != null) { if (cpHost.preCreateNamespace(descriptor)) { return; } } LOG.info(getClientIdAuditPrefix() + " creating " + descriptor); tableNamespaceManager.create(descriptor); if (cpHost != null) { cpHost.postCreateNamespace(descriptor); } } @Override public void modifyNamespace(NamespaceDescriptor descriptor) throws IOException { TableName.isLegalNamespaceName(Bytes.toBytes(descriptor.getName())); if (cpHost != null) { if (cpHost.preModifyNamespace(descriptor)) { return; } } LOG.info(getClientIdAuditPrefix() + " modify " + descriptor); tableNamespaceManager.update(descriptor); if (cpHost != null) { cpHost.postModifyNamespace(descriptor); } } @Override public void deleteNamespace(String name) throws IOException { if (cpHost != null) { if (cpHost.preDeleteNamespace(name)) { return; } } LOG.info(getClientIdAuditPrefix() + " delete " + name); tableNamespaceManager.remove(name); if (cpHost != null) { cpHost.postDeleteNamespace(name); } } @Override public NamespaceDescriptor getNamespaceDescriptor(String name) throws IOException { boolean ready = tableNamespaceManager != null && tableNamespaceManager.isTableAvailableAndInitialized(); if (!ready) { throw new IOException("Table Namespace Manager not ready yet, try again later"); } NamespaceDescriptor nsd = tableNamespaceManager.get(name); if (nsd == null) { throw new NamespaceNotFoundException(name); } return nsd; } @Override public List<NamespaceDescriptor> listNamespaceDescriptors() throws IOException { return Lists.newArrayList(tableNamespaceManager.list()); } @Override public List<HTableDescriptor> listTableDescriptorsByNamespace(String name) throws IOException { getNamespaceDescriptor(name); // check that namespace exists return Lists.newArrayList(tableDescriptors.getByNamespace(name).values()); } @Override public List<TableName> listTableNamesByNamespace(String name) throws IOException { List<TableName> tableNames = Lists.newArrayList(); getNamespaceDescriptor(name); // check that namespace exists for (HTableDescriptor descriptor: tableDescriptors.getByNamespace(name).values()) { tableNames.add(descriptor.getTableName()); } return tableNames; } }
924237b5989e98dff694ab7d82dcedd3d5b5358e
1,440
java
Java
src/main/java/ru/job4j/carssale/controller/NewCarServlet.java
sah-lob/job4j_hibernate
92723598c61ed6b19420892b2eb3b8641beee8cc
[ "Apache-2.0" ]
null
null
null
src/main/java/ru/job4j/carssale/controller/NewCarServlet.java
sah-lob/job4j_hibernate
92723598c61ed6b19420892b2eb3b8641beee8cc
[ "Apache-2.0" ]
4
2019-11-13T11:58:44.000Z
2021-01-21T02:51:15.000Z
src/main/java/ru/job4j/carssale/controller/NewCarServlet.java
sah-lob/job4j_hibernate
92723598c61ed6b19420892b2eb3b8641beee8cc
[ "Apache-2.0" ]
null
null
null
38.918919
114
0.697917
1,002,173
package ru.job4j.carssale.controller; import ru.job4j.carssale.models.Car; import ru.job4j.carssale.models.Person; import ru.job4j.carssale.persistence.CarController; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.*; public class NewCarServlet extends HttpServlet { private final CarController controller = CarController.getInstance(); @Override protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { var image = req.getParameter("string"); var brand = req.getParameter("brand"); var model = req.getParameter("model"); var price = req.getParameter("price"); var korobka = req.getParameter("korobka"); var power = req.getParameter("power"); var year = req.getParameter("year"); var fio = req.getParameter("fio"); var phone = req.getParameter("phone"); image = image.replaceAll(" ", "+"); var login = req.getSession().getAttribute("login"); Person person = controller.getPerson(login.toString()); controller.editPerson(login.toString(), fio, phone); var car = new Car(brand, model, price, korobka, power, year, login.toString()); // controller.addPerson(person); controller.addData(car, image); } }
924238faade7dba100f1758cb5b6b9b4fb813f31
4,832
java
Java
tddl-server/src/main/java/com/alibaba/cobar/server/ugly/hint/HintRouter.java
loye168/tddl5
fd1972bd3acf090c8d7580ab0f7c2bb837ab3c41
[ "Apache-2.0" ]
19
2017-07-17T02:21:28.000Z
2021-07-19T02:23:06.000Z
tddl-server/src/main/java/com/alibaba/cobar/server/ugly/hint/HintRouter.java
loye168/tddl5
fd1972bd3acf090c8d7580ab0f7c2bb837ab3c41
[ "Apache-2.0" ]
null
null
null
tddl-server/src/main/java/com/alibaba/cobar/server/ugly/hint/HintRouter.java
loye168/tddl5
fd1972bd3acf090c8d7580ab0f7c2bb837ab3c41
[ "Apache-2.0" ]
46
2017-03-23T12:24:11.000Z
2021-12-20T09:59:52.000Z
37.457364
99
0.583402
1,002,174
package com.alibaba.cobar.server.ugly.hint; import static com.taobao.tddl.optimizer.parse.hint.SimpleHintParser.AND; import static com.taobao.tddl.optimizer.parse.hint.SimpleHintParser.DBID; import static com.taobao.tddl.optimizer.parse.hint.SimpleHintParser.DBINDEX; import static com.taobao.tddl.optimizer.parse.hint.SimpleHintParser.EXPR; import static com.taobao.tddl.optimizer.parse.hint.SimpleHintParser.PARAMS; import static com.taobao.tddl.optimizer.parse.hint.SimpleHintParser.RELATION; import static com.taobao.tddl.optimizer.parse.hint.SimpleHintParser.TDDL_HINT_UGLY_PREFIX; import static com.taobao.tddl.optimizer.parse.hint.SimpleHintParser.TDDL_HINT_UGLY_PREFIX_COMMENT; import static com.taobao.tddl.optimizer.parse.hint.SimpleHintParser.TYPE; import static com.taobao.tddl.optimizer.parse.hint.SimpleHintParser.TYPE_CONDITION; import static com.taobao.tddl.optimizer.parse.hint.SimpleHintParser.TYPE_DIRECT; import static com.taobao.tddl.optimizer.parse.hint.SimpleHintParser.VTAB; import java.sql.SQLSyntaxErrorException; import java.util.List; import org.apache.commons.lang.ObjectUtils; import org.apache.commons.lang.StringUtils; import com.alibaba.cobar.parser.util.Pair; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; /** * 兼容下以前drds暴露的hint格式,转换成tddl hint * * @author jianghang 2014-5-16 下午8:25:52 * @since 5.1.0 */ public class HintRouter { public static String convertHint(String sql) throws SQLSyntaxErrorException { int index = indexOfPrefix(sql); if (index >= 0) { CobarHint hint = CobarHint.parserCobarHint(sql, index); return convertHint(hint) + hint.getOutputSql(); } else { return convertUglyTddlHint(sql); } } private static String convertUglyTddlHint(String sql) { int i = 0; for (; i < sql.length(); ++i) { switch (sql.charAt(i)) { case ' ': case '\t': case '\r': case '\n': continue; } break; } return StringUtils.replace(sql, TDDL_HINT_UGLY_PREFIX, TDDL_HINT_UGLY_PREFIX_COMMENT); } public static int indexOfPrefix(String sql) { int i = 0; for (; i < sql.length(); ++i) { switch (sql.charAt(i)) { case ' ': case '\t': case '\r': case '\n': continue; } break; } if (sql.startsWith(CobarHint.COBAR_HINT_PREFIX, i)) { return i + CobarHint.COBAR_HINT_PREFIX.length(); } else if (sql.startsWith(CobarHint.COBAR_HINT_UGLY_PREFIX, i)) { return i + CobarHint.COBAR_HINT_UGLY_PREFIX.length(); } else { return -1; } } private static String convertHint(CobarHint hint) { StringBuilder builder = new StringBuilder(); builder.append("/*+TDDL("); JSONObject data = new JSONObject(); data.put(VTAB, hint.getTable()); if (hint.getDataNodes() != null) { data.put(TYPE, TYPE_DIRECT); data.put(DBINDEX, true); List<Pair<Integer, Integer>> pairs = hint.getDataNodes(); Object[] dbIds = new Object[pairs.size()]; int i = 0; for (Pair<Integer, Integer> pair : pairs) { dbIds[i++] = pair.getKey(); } data.put(DBID, StringUtils.join(dbIds, ",")); } else if (hint.getPartitionOperand() != null) { data.put(TYPE, TYPE_CONDITION); JSONArray params = new JSONArray(); Pair<String[], Object[][]> pair = hint.getPartitionOperand(); String[] keys = pair.getKey(); Object[][] values = pair.getValue(); for (int i = 0; i < keys.length; i++) { JSONObject param = new JSONObject(); param.put(RELATION, AND); JSONArray exprs = new JSONArray(); param.put(EXPR, exprs); for (int j = 0; j < values.length; j++) { exprs.add(buildComparativeCondition(keys[i], values[j][i])); } params.add(param); } data.put(PARAMS, params); } builder.append(data.toJSONString()); builder.append(")*/"); return builder.toString(); } private static String buildComparativeCondition(String key, Object value) { String type = "s"; if (value instanceof Number) { type = "l"; } return key + "=" + ObjectUtils.toString(value) + ":" + type; } }