file_id
int64 1
250k
| content
stringlengths 0
562k
| repo
stringlengths 6
115
| path
stringlengths 1
147
|
---|---|---|---|
298 | class Solution {
public boolean isMatch(String s, String p) {
//FBIP 3R
//2D dp[i][j] means whether or not s.substring(i) and p.substring(j) can match
//DP time and speace complexity of O(s.length * p.length)
if (s == null && p == null) return true;
if (s == null || p == null) return false;
boolean[][] dp = new boolean[s.length() + 1][p.length() + 1];
dp[0][0] = true;
for (int i = 0; i < p.length(); i++)
if (p.charAt(i) == '*' && dp[0][i-1])
dp[0][i+1] = true; //consider only p '*' scenario is true
for (int i = 0; i < s.length(); i++){
for (int j = 0; j < p.length(); j++){
if (p.charAt(j) == s.charAt(i) || p.charAt(j) == '.') //'.' can match any character
dp[i+1][j+1] = dp[i][j];
if (p.charAt(j) == '*'){
if (p.charAt(j-1) != s.charAt(i) && p.charAt(j-1) != '.')
dp[i+1][j+1] = dp[i+1][j-1]; //'*' considered as empty string
else
dp[i+1][j+1] = (dp[i+1][j] || dp[i][j+1] || dp[i+1][j-1]); //'*' as multiple / single / empty character
}
}
}
return dp[s.length()][p.length()];
}
} | EdwardHXu/FBIP-LC | 10.java |
299 |
/**
* Write a description of class K here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class K extends J
{
// instance variables - replace the example below with your own
private int x;
/**
* Constructor for objects of class K
*/
public K()
{
// initialise instance variables
x = 1;
}
/**
* An example of a method - replace this comment with your own
*
* @param y a sample parameter for a method
* @return the sum of x and y
*/
public int sampleMethod(int y)
{
// put your code here
return x + y;
}
}
| boisgera/bluej-test | K.java |
301 | // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: packimports(3)
package com.yeelink.monitor;
public final class R
{
public static final class array
{
public static final int chart_during_setup = 0x7f040000;
public array()
{
}
}
public static final class attr
{
public attr()
{
}
}
public static final class color
{
public static final int bisque = 0x7f050007;
public static final int black = 0x7f050016;
public static final int black_4c = 0x7f050017;
public static final int blue = 0x7f05001d;
public static final int channel_program_list_font = 0x7f050011;
public static final int darkorange = 0x7f050009;
public static final int faint_yellow = 0x7f050013;
public static final int gainsboro = 0x7f05000a;
public static final int gray_7a = 0x7f050018;
public static final int gray_8a = 0x7f050019;
public static final int gray_95 = 0x7f05001b;
public static final int lightyellow = 0x7f050001;
public static final int list_big_font = 0x7f05000e;
public static final int list_item_nonselect = 0x7f050004;
public static final int list_item_selected = 0x7f050005;
public static final int list_small_font = 0x7f05000f;
public static final int little_gray = 0x7f050014;
public static final int most_background = 0x7f050006;
public static final int night_mode = 0x7f050015;
public static final int orange = 0x7f050008;
public static final int program_detail_title_big_font = 0x7f050012;
public static final int purple = 0x7f05000c;
public static final int purple_bg = 0x7f05000d;
public static final int red = 0x7f05001c;
public static final int star = 0x7f05000b;
public static final int tabback = 0x7f050003;
public static final int top_program_font = 0x7f050010;
public static final int transparent_background = 0x7f050000;
public static final int white = 0x7f05001a;
public static final int yellow = 0x7f050002;
public color()
{
}
}
public static final class drawable
{
public static final int button_bg = 0x7f020000;
public static final int button_black_normal = 0x7f020001;
public static final int button_purple_normal = 0x7f020002;
public static final int device = 0x7f020003;
public static final int ic_launcher = 0x7f020004;
public static final int icon = 0x7f020005;
public static final int list_item_bg = 0x7f020006;
public static final int list_item_bg_pressed = 0x7f020007;
public static final int listselect_pic = 0x7f020008;
public static final int lock = 0x7f020009;
public static final int login_bg_nor = 0x7f02000a;
public static final int login_bg_sel = 0x7f02000b;
public static final int login_button_style = 0x7f02000c;
public static final int login_edit_bg = 0x7f02000d;
public static final int pulse = 0x7f02000e;
public static final int register_divider = 0x7f02000f;
public static final int right_arrow = 0x7f020010;
public static final int set_userinfo_bg = 0x7f020011;
public static final int setuserinfo_repeat_bg = 0x7f020012;
public static final int show = 0x7f020013;
public static final int switch_off = 0x7f020014;
public static final int switch_on = 0x7f020015;
public static final int textbar = 0x7f020016;
public static final int titlebar = 0x7f020017;
public static final int transparent = 0x7f020018;
public static final int unlock = 0x7f020019;
public drawable()
{
}
}
public static final class id
{
public static final int about = 0x7f08000a;
public static final int btn_chart_return = 0x7f080001;
public static final int btn_confirm = 0x7f080010;
public static final int btn_login = 0x7f080014;
public static final int btn_login_fast = 0x7f080015;
public static final int chart_during = 0x7f080002;
public static final int chart_title = 0x7f080000;
public static final int icon = 0x7f080008;
public static final int icon_right = 0x7f080016;
public static final int login_cancel_btn = 0x7f08000c;
public static final int password = 0x7f08000e;
public static final int refresh = 0x7f080012;
public static final int refresh_device = 0x7f080007;
public static final int remember = 0x7f08000f;
public static final int scroll_image = 0x7f080013;
public static final int shield_view = 0x7f080004;
public static final int surface = 0x7f080003;
public static final int textView1 = 0x7f080011;
public static final int textview = 0x7f08000b;
public static final int time_end = 0x7f080006;
public static final int time_start = 0x7f080005;
public static final int title = 0x7f080009;
public static final int user_name = 0x7f08000d;
public id()
{
}
}
public static final class layout
{
public static final int chart = 0x7f030000;
public static final int device_list = 0x7f030001;
public static final int device_list_item = 0x7f030002;
public static final int login = 0x7f030003;
public static final int main = 0x7f030004;
public static final int sensor_list = 0x7f030005;
public static final int sensor_list_item = 0x7f030006;
public layout()
{
}
}
public static final class string
{
public static final int app_name = 0x7f060001;
public static final int app_title = 0x7f060004;
public static final int change_status_fail = 0x7f06000f;
public static final int device_list_empty = 0x7f06000b;
public static final int hello = 0x7f060000;
public static final int hint_password = 0x7f060007;
public static final int hint_username = 0x7f060006;
public static final int login = 0x7f060002;
public static final int login_fail = 0x7f06000a;
public static final int login_fast = 0x7f060003;
public static final int login_success = 0x7f060009;
public static final int login_wait = 0x7f060008;
public static final int return_to_main = 0x7f060005;
public static final int update_chart_data_fail = 0x7f060011;
public static final int update_fail = 0x7f06000e;
public static final int update_success = 0x7f06000d;
public static final int updating_device_list = 0x7f06000c;
public static final int updating_sensor_data = 0x7f060010;
public string()
{
}
}
public static final class style
{
public static final int CustomTransparentTheme = 0x7f07002f;
public static final int Theme_Foo = 0x7f070019;
public static final int channel_program_list_big_font = 0x7f07000f;
public static final int channel_program_list_normal_font = 0x7f070010;
public static final int channel_program_list_small_font = 0x7f070011;
public static final int default_font_10 = 0x7f07000a;
public static final int default_font_12 = 0x7f07000b;
public static final int default_font_14 = 0x7f070001;
public static final int default_font_14_black = 0x7f070003;
public static final int default_font_14_purple = 0x7f070005;
public static final int default_font_14_white = 0x7f070002;
public static final int default_font_16_faint_yellow = 0x7f070006;
public static final int default_font_16_purple = 0x7f070004;
public static final int default_font_16_white = 0x7f070007;
public static final int default_font_18_red = 0x7f070009;
public static final int default_font_18_white = 0x7f070008;
public static final int default_font_20 = 0x7f07000c;
public static final int default_font_black_10 = 0x7f07001e;
public static final int default_font_black_12 = 0x7f07001d;
public static final int default_font_black_14 = 0x7f07001c;
public static final int default_font_black_16 = 0x7f07001b;
public static final int default_font_black_18 = 0x7f07001a;
public static final int default_font_gray95_14 = 0x7f070024;
public static final int default_font_gray_10 = 0x7f070023;
public static final int default_font_gray_12 = 0x7f070022;
public static final int default_font_gray_13 = 0x7f070021;
public static final int default_font_gray_14 = 0x7f070020;
public static final int default_font_gray_16 = 0x7f07001f;
public static final int default_font_red_10 = 0x7f07002a;
public static final int default_font_red_12 = 0x7f07002b;
public static final int default_font_red_14 = 0x7f07002c;
public static final int default_font_white_10 = 0x7f070028;
public static final int default_font_white_12 = 0x7f070029;
public static final int default_font_white_14 = 0x7f070027;
public static final int default_font_white_16 = 0x7f070026;
public static final int default_font_white_18 = 0x7f070025;
public static final int detail_program_font = 0x7f070013;
public static final int dialog = 0x7f070000;
public static final int dialog_font = 0x7f070016;
public static final int dialog_star = 0x7f070017;
public static final int list_big_font = 0x7f07002d;
public static final int list_small_font = 0x7f07002e;
public static final int login_font_little_gray = 0x7f070018;
public static final int program_detail_big_font = 0x7f070014;
public static final int program_detail_title_font = 0x7f070015;
public static final int program_process_hint_big_font = 0x7f07000e;
public static final int program_process_hint_small_font = 0x7f07000d;
public static final int top_program_font = 0x7f070012;
public style()
{
}
}
public R()
{
}
}
| wangzhaoguo0451/DroidChain | R.java |
302 | package tarefa_4;
public class Gato extends Animal{
public String fazerBarulho() {
return "miau";
}
}
| lucassbarcelos/poo-java | Gato |
305 | // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: packimports(3) nonlb space
import jagex.c;
import jagex.m;
import java.io.IOException;
import java.io.PrintStream;
import java.util.Arrays;
public class j {
public static void ci() {
try {
ei(new m("../gamedata/config/projectile.txt"));
di(new m("../gamedata/config/entity.txt"));
ph(new m("../gamedata/config/objects.txt"));
oh(new m("../gamedata/config/npc.txt"));
yh(new m("../gamedata/config/location.txt"));
th(new m("../gamedata/config/boundary.txt"));
bi(new m("../gamedata/config/roof.txt"));
fi(new m("../gamedata/config/floor.txt"));
zh(new m("../gamedata/config/spells.txt"));
wh(new m("../gamedata/config/shop.txt"));
rh(new m("../gamedata/config/prayers.txt"));
uh();
return;
}
catch (IOException ioexception) {
System.out.println("Error loading config files");
ioexception.printStackTrace();
return;
}
}
public static void xh(byte abyte0[]) {
try {
ei(new m(abyte0, c.wc("projectile.txt", abyte0)));
di(new m(abyte0, c.wc("entity.txt", abyte0)));
ph(new m(abyte0, c.wc("objects.txt", abyte0)));
oh(new m(abyte0, c.wc("npc.txt", abyte0)));
yh(new m(abyte0, c.wc("location.txt", abyte0)));
th(new m(abyte0, c.wc("boundary.txt", abyte0)));
bi(new m(abyte0, c.wc("roof.txt", abyte0)));
fi(new m(abyte0, c.wc("floor.txt", abyte0)));
zh(new m(abyte0, c.wc("spells.txt", abyte0)));
wh(new m(abyte0, c.wc("shop.txt", abyte0)));
rh(new m(abyte0, c.wc("prayers.txt", abyte0)));
uh();
return;
}
catch (IOException ioexception) {
System.out.println("Error loading config files");
ioexception.printStackTrace();
return;
}
}
public static void wh(m m1) throws IOException {
m1.li();
int i = m1.mi();
yo = i;
System.out.println("Found " + i + " shops");
zo = new String[i];
ap = new int[i];
ep = new int[i];
bp = new int[i];
cp = new int[i];
dp = new int[i];
fp = new int[i][40];
gp = new int[i][40];
hp = new int[i][40];
for (int k = 0; k < i; k++) {
m1.li();
zo[k] = m1.ni();
int l = ap[k] = m1.mi();
bp[k] = m1.mi();
cp[k] = m1.mi();
dp[k] = m1.mi();
ep[k] = m1.mi();
for (int i1 = 0; i1 < l; i1++) {
m1.li();
fp[k][i1] = qh(m1.ni());
gp[k][i1] = m1.mi();
hp[k][i1] = m1.mi();
}
}
}
public static void zh(m m1) throws IOException {
m1.li();
int i = m1.mi() + 3; /* XXX */
qo = i;
System.out.println("Found " + i + " spells");
ro = new String[i];
so = new String[i];
to = new int[i];
vo = new int[i];
uo = new int[i];
wo = new int[i][];
xo = new int[i][];
for (int k = 0; k < i; k++) {
m1.li();
ro[k] = m1.ni();
to[k] = m1.mi();
so[k] = m1.ni();
vo[k] = m1.mi();
m1.li();
int l = uo[k] = m1.mi();
wo[k] = new int[l];
xo[k] = new int[l];
for (int i1 = 0; i1 < l; i1++) {
wo[k][i1] = qh(m1.ni());
xo[k][i1] = m1.mi();
}
}
m1.qi();
}
public static void rh(m m1) throws IOException {
m1.li();
int i = m1.mi();
ip = i;
System.out.println("Found " + i + " prayers");
jp = new String[i];
kp = new String[i];
lp = new int[i];
mp = new int[i];
for (int k = 0; k < i; k++) {
m1.li();
jp[k] = m1.ni();
lp[k] = m1.mi();
kp[k] = m1.ni();
mp[k] = m1.mi();
}
m1.qi();
}
public static void ei(m m1) throws IOException {
m1.li();
int i = m1.mi();
go = i;
System.out.println("Found " + i + " projectiles");
io = new String[i];
jo = new String[i];
ko = new int[i];
lo = new int[i];
mo = new int[i];
no = new int[i];
oo = new int[i];
po = new int[i];
for (int k = 0; k < i; k++) {
m1.li();
io[k] = m1.ni();
ko[k] = m1.mi();
lo[k] = m1.mi();
mo[k] = m1.mi();
no[k] = m1.mi();
jo[k] = m1.ni();
po[k] = m1.mi();
if (ko[k] + 1 > ho)
ho = ko[k] + 1;
}
m1.qi();
}
public static void uh() {
for (int i = 0; i < go; i++)
oo[i] = qh(jo[i]);
}
public static void di(m m1) throws IOException {
m1.li();
int i = m1.mi();
sm = i;
System.out.println("Found " + i + " entities");
tm = new String[i];
um = new String[i];
wm = new int[i];
vm = new int[i];
xm = new int[i];
ym = new int[i];
zm = new int[i];
for (int k = 0; k < i; k++) {
m1.li();
tm[k] = m1.ni();
um[k] = m1.ni();
vm[k] = m1.pi();
wm[k] = m1.mi();
xm[k] = m1.mi();
ym[k] = m1.mi();
}
m1.qi();
}
public static void oh(m m1) throws IOException {
m1.li();
int i = m1.mi();
ol = i;
System.out.println("Found " + i + " npcs");
pl = new String[i][];
ql = new String[i];
rl = new int[i];
sl = new int[i];
tl = new int[i];
ul = new int[i];
vl = new int[i];
wl = new int[i];
xl = new int[i];
yl = new int[i];
zl = new int[i];
am = new int[i];
bm = new int[i];
cm = new int[i];
dm = new int[i];
em = new int[i];
fm = new int[i];
gm = new int[i][12];
hm = new int[i];
im = new int[i];
jm = new int[i];
km = new int[i];
lm = new int[i];
mm = new int[i];
nm = new int[i];
om = new int[i];
pm = new int[i];
qm = new int[i][];
rm = new int[i][];
for (int k = 0; k < i; k++) {
m1.li();
int l = m1.mi();
pl[k] = new String[l];
for (int i1 = 0; i1 < l; i1++)
pl[k][i1] = m1.ni();
ql[k] = m1.ni();
m1.li();
rl[k] = m1.mi();
sl[k] = m1.mi();
tl[k] = m1.mi();
ul[k] = m1.mi();
vl[k] = m1.mi();
wl[k] = m1.mi();
xl[k] = m1.mi();
yl[k] = m1.mi();
zl[k] = m1.mi();
am[k] = m1.mi();
bm[k] = m1.mi();
cm[k] = m1.mi();
dm[k] = m1.mi();
em[k] = m1.mi();
fm[k] = m1.mi();
m1.li();
for (int j1 = 0; j1 < 12; j1++)
gm[k][j1] = vh(m1.ni());
hm[k] = m1.pi();
im[k] = m1.pi();
jm[k] = m1.pi();
km[k] = m1.pi();
m1.li();
lm[k] = m1.mi();
mm[k] = m1.mi();
nm[k] = m1.mi();
om[k] = m1.mi();
pm[k] = m1.mi();
m1.li();
int k1 = m1.mi();
qm[k] = new int[k1];
rm[k] = new int[k1];
for (int l1 = 0; l1 < k1; l1++) {
qm[k][l1] = qh(m1.ni());
rm[k][l1] = m1.mi();
}
}
m1.qi();
}
public static void ph(m m1) throws IOException {
m1.li();
int i = m1.mi();
tk = i;
System.out.println("Found " + i + " objects");
vk = new String[i][];
wk = new String[i];
yk = new String[i];
zk = new int[i];
al = new int[i];
bl = new int[i];
cl = new int[i];
dl = new int[i];
el = new int[i];
fl = new int[i];
gl = new int[i];
hl = new int[i];
il = new int[i];
jl = new int[i];
kl = new int[i];
ll = new int[i];
ml = new int[i];
nl = new int[i];
for (int k = 0; k < i; k++) {
m1.li();
int l = m1.mi();
vk[k] = new String[l];
for (int i1 = 0; i1 < l; i1++)
vk[k][i1] = m1.ni();
wk[k] = m1.ni();
System.out.println(k + ": " +
Arrays.toString(vk[k]) + " - " + wk[k]);
m1.li();
zk[k] = m1.mi();
if (zk[k] >= uk)
uk = zk[k] + 1;
al[k] = m1.mi();
bl[k] = m1.mi();
yk[k] = m1.ni();
m1.li();
cl[k] = m1.mi();
dl[k] = m1.mi();
el[k] = m1.mi();
fl[k] = m1.mi();
gl[k] = m1.mi();
hl[k] = m1.mi();
il[k] = ai(m1.ni()) + 1;
m1.li();
jl[k] = m1.mi();
kl[k] = vh(m1.ni());
ll[k] = m1.pi();
ml[k] = m1.mi();
nl[k] = m1.mi();
}
m1.qi();
}
public static void yh(m m1) throws IOException {
m1.li();
int i = m1.mi();
an = i;
System.out.println("Found " + i + " locations");
bn = new String[i][];
cn = new String[i];
dn = new String[i];
en = new String[i];
fn = new int[i];
gn = new int[i];
hn = new int[i];
in = new int[i];
jn = new int[i];
kn = new int[i];
for (int k = 0; k < i; k++) {
m1.li();
int l = m1.mi();
bn[k] = new String[l];
for (int i1 = 0; i1 < l; i1++)
bn[k][i1] = m1.ni();
cn[k] = m1.ni();
m1.li();
fn[k] = sh(m1.ni());
gn[k] = m1.mi();
hn[k] = m1.mi();
in[k] = m1.mi();
jn[k] = m1.mi();
dn[k] = m1.ni();
if (dn[k].equals("_"))
dn[k] = "WalkTo";
en[k] = m1.ni();
if (en[k].equals("_"))
en[k] = "Examine";
kn[k] = m1.mi();
}
m1.qi();
}
public static void th(m m1) throws IOException {
m1.li();
int i = m1.mi();
ln = i;
System.out.println("Found " + i + " boundaries");
mn = new String[i][];
nn = new String[i];
on = new String[i];
pn = new String[i];
qn = new int[i];
rn = new int[i];
sn = new int[i];
tn = new int[i];
un = new int[i];
vn = new int[i];
for (int k = 0; k < i; k++) {
m1.li();
int l = m1.mi();
mn[k] = new String[l];
for (int i1 = 0; i1 < l; i1++)
mn[k][i1] = m1.ni();
nn[k] = m1.ni();
m1.li();
qn[k] = m1.mi();
rn[k] = m1.mi();
sn[k] = m1.mi();
tn[k] = m1.mi();
un[k] = m1.mi();
vn[k] = m1.mi();
on[k] = m1.ni();
if (on[k].equals("_"))
on[k] = "WalkTo";
pn[k] = m1.ni();
if (pn[k].equals("_"))
pn[k] = "Examine";
}
m1.qi();
}
public static void bi(m m1) throws IOException {
m1.li();
int i = m1.mi();
wn = i;
System.out.println("Found " + i + " roofs");
xn = new String[i];
yn = new int[i];
zn = new int[i];
ao = new int[i];
for (int k = 0; k < i; k++) {
m1.li();
xn[k] = m1.ni();
yn[k] = m1.mi();
zn[k] = m1.mi();
ao[k] = m1.mi();
}
m1.qi();
}
public static void fi(m m1) throws IOException {
m1.li();
int i = m1.mi();
bo = i;
System.out.println("Found " + i + " floors");
co = new String[i];
_flddo = new int[i];
eo = new int[i];
fo = new int[i];
for (int k = 0; k < i; k++) {
m1.li();
co[k] = m1.ni();
_flddo[k] = m1.mi();
eo[k] = m1.mi();
fo[k] = m1.mi();
}
m1.qi();
}
public static int vh(String s) {
if (s.equalsIgnoreCase("na"))
return -1;
for (int i = 0; i < sm; i++)
if (s.equalsIgnoreCase(tm[i]))
return i;
System.out.println("WARNING: unable to match entity " + s);
return 0;
}
public static int sh(String s) {
if (s.equalsIgnoreCase("na"))
return 0;
for (int i = 0; i < pp; i++)
if (qp[i].equalsIgnoreCase(s))
return i;
qp[pp++] = s;
return pp - 1;
}
public static int qh(String s) {
if (s.equalsIgnoreCase("na"))
return 0;
for (int i = 0; i < tk; i++) {
for (int k = 0; k < vk[i].length; k++)
if (vk[i][k].equalsIgnoreCase(s))
return i;
}
System.out.println("WARNING: unable to match object: " + s);
return 0;
}
public static int ai(String s) {
if (s.equals("_"))
return -1;
for (int i = 0; i < go; i++)
if (io[i].equalsIgnoreCase(s))
return i;
System.out.println("WARNING: unable to match projectile: " + s);
return -1;
}
public j() {
}
public final int sk = 0xbc614e;
public static int tk;
public static int uk;
public static String vk[][];
public static String wk[];
public static String xk[];
public static String yk[];
public static int zk[];
public static int al[];
public static int bl[];
public static int cl[];
public static int dl[];
public static int el[];
public static int fl[];
public static int gl[];
public static int hl[];
public static int il[];
public static int jl[];
public static int kl[];
public static int ll[];
public static int ml[];
public static int nl[];
public static int ol;
public static String pl[][];
public static String ql[];
public static int rl[];
public static int sl[];
public static int tl[];
public static int ul[];
public static int vl[];
public static int wl[];
public static int xl[];
public static int yl[];
public static int zl[];
public static int am[];
public static int bm[];
public static int cm[];
public static int dm[];
public static int em[];
public static int fm[];
public static int gm[][];
public static int hm[];
public static int im[];
public static int jm[];
public static int km[];
public static int lm[];
public static int mm[];
public static int nm[];
public static int om[];
public static int pm[];
public static int qm[][];
public static int rm[][];
public static int sm;
public static String tm[];
public static String um[];
public static int vm[];
public static int wm[];
public static int xm[];
public static int ym[];
public static int zm[];
public static int an;
public static String bn[][];
public static String cn[];
public static String dn[];
public static String en[];
public static int fn[];
public static int gn[];
public static int hn[];
public static int in[];
public static int jn[];
public static int kn[];
public static int ln;
public static String mn[][];
public static String nn[];
public static String on[];
public static String pn[];
public static int qn[];
public static int rn[];
public static int sn[];
public static int tn[];
public static int un[];
public static int vn[];
public static int wn;
public static String xn[];
public static int yn[];
public static int zn[];
public static int ao[];
public static int bo;
public static String co[];
public static int _flddo[];
public static int eo[];
public static int fo[];
public static int go;
public static int ho;
public static String io[];
public static String jo[];
public static int ko[];
public static int lo[];
public static int mo[];
public static int no[];
public static int oo[];
public static int po[];
public static int qo;
public static String ro[];
public static String so[];
public static int to[];
public static int uo[];
public static int vo[];
public static int wo[][];
public static int xo[][];
public static int yo;
public static String zo[];
public static int ap[];
public static int bp[];
public static int cp[];
public static int dp[];
public static int ep[];
public static int fp[][];
public static int gp[][];
public static int hp[][];
public static int ip;
public static String jp[];
public static String kp[];
public static int lp[];
public static int mp[];
static String np[] = {
"attack", "defense", "strength", "hits", "ranged", "prayer", "magic", "cooking", "woodcutting", "fletching",
"fishing", "firemaking", "crafting", "smithing", "mining", "herblaw"
};
public static String op[] = {
"attack", "defense", "strength", "hits", "aggression", "bravery", "regenerate", "perception"
};
public static int pp;
public static String qp[] = new String[200];
}
| cath-mawr/mapviewer72 | j.java |
306 | // Вариант 7.
// Описать класс, представляющий круг.
// Предусмотреть методы:
// 1. создания объектов(см. к-тор Circle)
// 2. вычисления площади круга(см. Circle::getArea),
// 3. вычисления длины окружности(см. Circle::getPerimeter),
// 4. проверки попадания заданной точки внутрь (Circle::checkIsInside).
// При непопадания точку внутрь круга выбрасывается исключение.
class MyPoint2D {
private int _x;
private int _y;
public MyPoint2D(int x, int y) {
_x = x;
_y = y;
}
public int GetX() { return _x; }
public int GetY() { return _y; }
@Override
public String toString() {
return "MyPoint2D{ _x: " + _x +", _y:" + _y + " }";
}
}
interface Figure {
double getArea();
double getPerimeter();
void checkIsInside(MyPoint2D point) throws RuntimeException;
}
class Circle implements Figure {
private MyPoint2D _center;
private int _radius;
public Circle(MyPoint2D center, int radius) {
setRadius(radius);
_center = center;
}
public void setRadius(int radius) {
if(radius <= 0)
throw new IllegalArgumentException("Illegal circle radius: " + radius);
_radius = radius;
}
public int getRadius() {
return _radius;
}
public double getArea() {
return Math.PI * _radius * _radius;
}
public double getPerimeter() {
return 2 * Math.PI * _radius;
}
public void checkIsInside(MyPoint2D point) {
var dist = Math.sqrt(
Math.pow((_center.GetX() - point.GetX()), 2)
+ Math.pow((_center.GetY() - point.GetY()), 2)
);
if(dist > _radius)
throw new RuntimeException("Point (" + point + ") isn't inside circle.");
}
@Override
public String toString() {
return "Circle{"
+ "\n\t_center: " +_center + ","
+ "\n\t_radius: " + _radius
+ "\n}";
}
}
public class Main {
public static void printIsPointInside(Figure figure, MyPoint2D point) {
boolean isPointInsideCircle = false;
try {
figure.checkIsInside(point);
isPointInsideCircle = true;
} catch (Exception e) { }
System.out.println("Figure::checkIsInside(" + point + ") " + isPointInsideCircle);
}
public static void main(String[] args) {
Figure circle = new Circle(new MyPoint2D(0, 0), 3);
System.out.println(circle);
System.out.println("Figure::getArea " + circle.getArea());
System.out.println("Figure::getPerimeter " + circle.getPerimeter());
printIsPointInside(circle, new MyPoint2D(1, 1));
printIsPointInside(circle, new MyPoint2D(7, 2));
System.out.println("\nTrying to create circle with negative radius.");
try {
new Circle(new MyPoint2D(0, 0), -1);
} catch (Exception e) {
e.printStackTrace();
}
}
}
| reficul0/java | 3.java |
307 | import java.awt.Canvas;
import java.awt.Color;
//import java.awt.Font;
import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.Polygon;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;
import java.awt.image.BufferStrategy;
import java.util.LinkedList;
import java.util.Random;
import javax.swing.JApplet;
public class a extends JApplet implements Runnable, KeyListener, MouseListener, MouseMotionListener {
@Override
public void keyTyped(KeyEvent e) {}
@Override
public void mouseClicked(MouseEvent e) {}
@Override
public void mouseReleased(MouseEvent e) {}
@Override
public void mouseEntered(MouseEvent e) {}
@Override
public void mouseExited(MouseEvent e) {}
@Override
public void mouseDragged(MouseEvent me) {}
@Override
public void mouseMoved(MouseEvent me) {
my = me.getY();
mx = me.getX();
}
@Override
public void mousePressed(MouseEvent e) {
click = true;
}
@Override
public void keyPressed(KeyEvent e) {
key[((KeyEvent) e).getKeyCode()] = true;
}
@Override
public void keyReleased(KeyEvent e) {
key[((KeyEvent) e).getKeyCode()] = false;
}
boolean key[] = new boolean[65535];
boolean click = false;
int my, mx;
BufferStrategy strategy;
static final int TILE_SIZE = 40;
static final int T_W = 19;
static final int T_H = 15;
static final double P_R = 0.3;
static final int[] X_DIRS = { -1, 0, 1, 0 , -1, 1, 1,-1};
static final int[] Y_DIRS = { 0,-1, 0, 1 , -1,-1, 1, 1};
static final int[] DIR_KEYS = { KeyEvent.VK_A, KeyEvent.VK_W, KeyEvent.VK_D, KeyEvent.VK_S };
// Tile types
static final byte _ = 0; // floor
static final byte G = 1; // grass
static final byte O = 2; // open door
static final byte R = 3; // rug
static final byte T = 4; static final int SOLIDS = 4; // table
static final byte C = 5; // chair
static final byte B = 6; // closed box
static final byte X = 7; // open box
static final byte E = 8; // bed
static final byte F = 9; // flower pot
static final byte I = 10; static final int TRANSPARENTS = 10; // window
static final byte W = 11; // wall
static final byte D = 12; // closed door
// b stats
static final double B_RUN_SPEED = 0.09;
static final double B_WALK_SPEED = 0.025;
static final int B_COOLDOWN = 20;
static final int GUN_DMG = 12;
static final int GUN_V_DMG = 500;
static final int MAX_FATIGUE = 900;
static final int WINDED_FATIGUE = 600;
// inventory
static final int KEY = 0;
static final int GUN = 1;
static final int LEATHER_JACKET = 2;
static final String[] ITEM_NAMES = { "key", "gun", "leather jacket" };
// v stats
static final double V_SPEED = 0.05;
static final int V_COOLDOWN = 30;
static final int[] Y_VANTAGES = {0, 4, 2, 4, 5, 9, 10 ,12, 7 , 5 , 0 , 14}; // 12 vantages
static final int[] X_VANTAGES = {0, 3, 7, 7, 9, 5, 10, 14, 13, 15, 18, 6 };
// map
static byte[] T_TO_HP = {
0, // _
0, // G
20,// O
0, // R
12,// T
4, // C
16,// B
16,// X
32,// E
8, // F
28,// I
40,// W
18,// D
};
@Override
public void init() {
setIgnoreRepaint(true);
Canvas canvas = new Canvas();
add(canvas);
canvas.setBounds(0, 0, 800, 600);
canvas.createBufferStrategy(2);
strategy = canvas.getBufferStrategy();
canvas.addKeyListener(this);
canvas.addMouseListener(this);
canvas.addMouseMotionListener(this);
new Thread(this).start();
}
@Override
public void run() {
int lvl = 1;
game: while(true) {
int msgWait = -1;
int tick = -1;
String msg = "";
String msg2 = "Press space to start.";
Random r = new Random();
boolean playing = false;
// b stats
int b_cooldown = 0;
int b_fatigue = 0;
int b_exhaustion = 0;
int b_push = 0;
double b_x = 0;
double b_y = 0;
boolean[] inventory = new boolean[3];
int bullets = 6;
int jacket_hp = 5;
// v stats
int v_cooldown = 0;
int v_dmg = 0;
double v_x = 0;
double v_y = 0;
double v_b_x = 0;
double v_b_y = 0;
int[][] v_map = new int[T_H][T_W];
int vantage_index = 0;
boolean v_seen = false;
// age, x, y, dx, dy
int sprk = 0;
double[] particles = new double[600];
// game
boolean game_over = false;
boolean dawn = false;
// map
// y 0, 4, 2, 4, 5, 9, 10, 12, 7 , 5 , 0 , 14
// x 0, 3, 7, 7, 9, 5, 10, 14, 13, 15, 18, 6
int[][] t_type = new int[T_H][T_W]; /*{
// 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
{G, G, G, G, G, G, G, G, G, G, G, G, G, G, G, G, G, G, G}, // 0
{G, W, I, W, I, W, W, W, W, W, W, W, G, G, G, G, G, G, G}, // 1
{G, W, _, _, _, _, O, _, _, _, B, W, G, G, W, W, W, W, G}, // 2
{G, O, _, T, _, B, W, W, W, W, W, W, W, G, W, _, _, W, G}, // 3
{G, W, _, _, _, _, O, _, W, _, _, _, W, G, W, B, _, W, G}, // 4
{G, W, W, D, W, W, W, _, W, _, _, _, I, G, W, _, _, W, G}, // 5
{G, W, _, _, _, _, W, _, O, _, E, _, W, G, W, O, W, W, G}, // 6
{G, I, _, C, _, _, W, _, W, _, T, _, I, G, G, G, G, F, G}, // 7
{G, W, _, T, _, B, W, _, W, _, _, _, W, G, G, G, G, G, G}, // 8
{G, W, _, C, R, _, O, _, W, W, D, W, W, G, G, G, G, G, G}, // 9
{G, I, _, _, _, _, W, _, O, _, _, W, W, W, I, W, G, G, G}, // 10
{G, W, _, B, _, _, W, R, W, T, _, D, _, _, _, W, F, G, G}, // 11
{G, W, W, W, I, W, W, O, W, _, _, W, _, B, _, O, G, G, G}, // 12
{G, G, G, G, G, G, G, G, W, I, W, W, W, W, W, W, G, G, G}, // 13
{G, G, G, G, G, G, G, G, G, G, G, G, G, G, G, G, G, G, G}, // 14
};*/
byte[][] t_hp = new byte[T_H][T_W];
String map = "11111111111111111111bababbbbbbb11111111b000020006b11bbbb1120406bbbbbbb1b00b11b000020b000b1b60b11bbcbbb0b000a1b00b11b0000b02080b1b2bb11a0500b0b040a1111911b0406b0b000b1111111b053020bbcbb1111111a0000b0200bbbab1111b0600b3b40c000b9111bbbabb2b00b060211111111111babbbbbb1111111111111111111111";
// Setup
for (int y = 0; y < T_H; y++) { for (int x = 0; x < T_W; x++) {
t_type[y][x] = Integer.parseInt(map.substring(y * T_W + x, y * T_W + x + 1), 16);
t_hp[y][x] = T_TO_HP[t_type[y][x]];
}}
// Place players
int off = r.nextInt(8) + 1;
b_y = Y_VANTAGES[off] + 0.5;
b_x = X_VANTAGES[off] + 0.5;
v_b_y = b_y;
v_b_x = b_x;
off += r.nextBoolean() ? -1 : 1;
v_y = Y_VANTAGES[off];
v_x = X_VANTAGES[off];
while (true) {
if (!playing) {
if (key[KeyEvent.VK_SPACE]) { playing = true; }
} else {
if (!game_over) {
tick++;
b_cooldown--;
v_cooldown--;
if (v_dmg > 0) {
v_dmg--;
}
msg = "";
// b movement
double sp = b_fatigue > WINDED_FATIGUE ? B_WALK_SPEED : B_RUN_SPEED;
boolean mv = false;
for (int i = 0; i < 4; i++) {
if (key[DIR_KEYS[i]] || key[KeyEvent.VK_LEFT + i]) {
b_y += Y_DIRS[i] * sp;
b_x += X_DIRS[i] * sp;
// Borders
b_y = b_y < P_R ? P_R : b_y;
b_y = b_y > (T_H - P_R) ? (T_H - P_R) : b_y;
b_x = b_x < P_R ? P_R : b_x;
b_x = b_x > (T_W - P_R) ? (T_W - P_R) : b_x;
// Solid things
if (t_type[(int) b_y][(int) b_x] >= SOLIDS && t_type[(int) b_y][(int) b_x] < TRANSPARENTS) {
if (b_push > 12) {
int ny = ((int) b_y) + Y_DIRS[i];
int nx = ((int) b_x) + X_DIRS[i];
if (nx >= 0 && ny >= 0 && nx < T_W && ny < T_H && t_type[ny][nx] <= G && !(ny == (int) v_y && nx == (int) v_x)) {
int t = t_type[ny][nx];
t_type[ny][nx] = t_type[(int) b_y][(int) b_x];
t_hp[ny][nx] = t_hp[(int) b_y][(int) b_x];
t_type[(int) b_y][(int) b_x] = t;
t_hp[(int) b_y][(int) b_x] = 0;
b_push = 0;
}
} else {
b_push++;
msg = "Pushing...";
}
} else {
b_push = 0;
}
b_y = t_type[(int) b_y][(int) b_x] >= SOLIDS ? b_y - Y_DIRS[i] * sp : b_y;
b_x = t_type[(int) b_y][(int) b_x] >= SOLIDS ? b_x - X_DIRS[i] * sp : b_x;
mv = true;
}
}
if (mv && b_fatigue <= MAX_FATIGUE) {
b_fatigue++;
b_exhaustion++;
}
if (!mv && b_fatigue > b_exhaustion / 50) {
b_fatigue--;
}
// Interaction
for (int i = 0; i < 4; i++) {
int ny = ((int) b_y) + Y_DIRS[i];
int nx = ((int) b_x) + X_DIRS[i];
if (nx < 0 || ny < 0 || nx >= T_W || ny >= T_H) { continue; }
switch (t_type[ny][nx]) {
case B:
msg = "Hold down E to search drawers.";
if (key[KeyEvent.VK_E]) {
if (b_push >= 60) {
b_push = 0;
t_type[ny][nx] = X;
int found = r.nextInt(3);
if (r.nextInt(lvl + 4) > 3 || inventory[found]) {
msg2 = "You found nothing.";
} else {
msg2 = "You found a " + ITEM_NAMES[found] + "!";
inventory[found] = true;
}
msgWait = 100;
} else {
msg = "Searching...";
b_push++;
}
}
break;
case O:
if (inventory[KEY]) {
msg = "Press space to lock door.";
if (b_cooldown <= 0 && key[KeyEvent.VK_SPACE]) {
t_type[ny][nx] = D;
b_cooldown = B_COOLDOWN;
}
}
break;
case D:
if (inventory[KEY]) {
msg = "Press space to open door.";
if (b_cooldown <= 0 && key[KeyEvent.VK_SPACE]) {
t_type[ny][nx] = O;
b_cooldown = B_COOLDOWN;
}
}
break;
}
}
// V-map update
for (int y = 0; y < T_H; y++) { for (int x = 0; x < T_W; x++) {
v_map[y][x] = 100000;
}}
LinkedList<Point> queue = new LinkedList<Point>();
v_map[(int) v_b_y][(int) v_b_x] = 0;
queue.add(new Point((int) v_b_x, (int) v_b_y));
while (!queue.isEmpty()) {
Point p = queue.pop();
for (int i = 0; i < 4; i++) {
int py2 = p.y + Y_DIRS[i];
int px2 = p.x + X_DIRS[i];
if (
py2 >= 0 &&
px2 >= 0 &&
py2 < T_H &&
px2 < T_W)
{
int newV = v_map[p.y][p.x] + 1 + (t_type[py2][px2] >= SOLIDS ? t_hp[py2][px2] : 0);
if (newV < v_map[py2][px2]) {
v_map[py2][px2] = newV;
queue.add(new Point(px2, py2));
}
}
}
}
// V movement
int dir = -1;
int least = v_map[((int) v_y)][((int) v_x)];
sp = V_SPEED - v_dmg * v_dmg * 0.00000020;
for (int i = 0; i < 8; i++) {
int ny = ((int) v_y) + Y_DIRS[i];
int nx = ((int) v_x) + X_DIRS[i];
int ny2 = (int) (v_y + Y_DIRS[i] * sp);
int nx2 = (int) (v_x + X_DIRS[i] * sp);
if (nx < 0 || ny < 0 || nx >= T_W || ny >= T_H) { continue; }
// Prevent slipping through diagonal gaps.
if (t_type[ny][nx] < SOLIDS && t_type[ny][(int) v_x] >= SOLIDS && t_type[(int) v_y][nx] >= SOLIDS) {
continue;
}
int value = v_map[ny][nx];
if (ny2 != (int) v_y || nx2 != (int) v_x) {
value = Math.max(value, v_map[ny2][nx2]);
}
if (value < least) {
dir = i;
least = value;
}
}
double dy = 0;
double dx = 0;
double dist = (b_y - v_y) * (b_y - v_y) + (b_x - v_x) * (b_x - v_x);
if (dir == -1) {
if (dist > P_R * P_R) {
dy = (b_y - v_y) / dist * sp;
dx = (b_x - v_x) / dist * sp;
}
if (!v_seen) {
// don't know where b is, pick vantage point
v_b_y = Y_VANTAGES[vantage_index % 12];
v_b_x = X_VANTAGES[(vantage_index++) % 12];
}
} else {
dy = Y_DIRS[dir] * sp;
dx = X_DIRS[dir] * sp;
}
v_y += dy;
v_y = v_y < P_R ? P_R : v_y;
v_y = v_y > (T_H - P_R) ? (T_H - P_R) : v_y;
v_x += dx;
v_x = v_x < P_R ? P_R : v_x;
v_x = v_x > (T_W - P_R) ? (T_W - P_R) : v_x;
// Walls
if (t_type[(int) v_y][(int) v_x] >= SOLIDS) {
if (v_cooldown <= 0) {
t_hp[(int) v_y][(int) v_x] -= v_dmg > 0 ? 1 : 2;
for (int i = 20; i < 40; i++) {
particles[i * 5] = r.nextDouble() * 5;
particles[i * 5 + 1] = ((int) v_x) * TILE_SIZE + TILE_SIZE / 2;
particles[i * 5 + 2] = ((int) v_y) * TILE_SIZE + TILE_SIZE / 2;
particles[i * 5 + 3] = r.nextDouble() * 4 - 2;
particles[i * 5 + 4] = r.nextDouble() * 4 - 2;
}
v_cooldown = V_COOLDOWN;
if (t_hp[(int) v_y][(int) v_x] <= 0) {
t_type[(int) v_y][(int) v_x] = t_type[(int) v_y][(int) v_x] == F ? G : _;
}
}
v_y -= dy;
v_x -= dx;
}
if (dist < P_R * 2 && v_cooldown <= 0) {
v_cooldown = 20;
off = 80;
if (inventory[LEATHER_JACKET] && jacket_hp > 0) {
jacket_hp--;
off = 40;
} else {
b_fatigue += v_dmg > 0 ? 50 : 100;
b_exhaustion += v_dmg > 0 ? 50 : 100;
}
for (int i = off; i < off + 40; i++) {
particles[i * 5] = r.nextDouble() * 4;
particles[i * 5 + 1] = b_x * TILE_SIZE + 1;
particles[i * 5 + 2] = b_y * TILE_SIZE - 5;
particles[i * 5 + 3] = r.nextDouble() * 2 - 1;
particles[i * 5 + 4] = r.nextDouble() * 3 - 1;
}
if (b_fatigue >= MAX_FATIGUE) {
game_over = true;
msg2 = "GAME OVER";
msgWait = 100;
}
}
if (tick % 1500 == 0) {
msg2 = ((3000 * lvl - tick) / 1500) + " minutes until dawn";
msgWait = 200;
}
if (tick > 3000 * lvl) {
game_over = true;
msg2 = "VICTORY!";
dawn = true;
msgWait = 150;
lvl *= 2;
for (int i = 0; i < 80; i++) {
particles[i * 5] = r.nextDouble() * 10;
particles[i * 5 + 1] = v_x * TILE_SIZE;
particles[i * 5 + 2] = v_y * TILE_SIZE;
particles[i * 5 + 3] = r.nextDouble() * 10 - 5;
particles[i * 5 + 4] = r.nextDouble() * 10 - 5;
}
}
}
}
double ptr = Math.atan2(b_y * TILE_SIZE - my, b_x * TILE_SIZE - mx) + Math.PI;
// Graphics
Graphics2D g = (Graphics2D) strategy.getDrawGraphics();
g.setColor(new Color(0, 0, 30));
g.fillRect(0, 0, 800, 600);
Polygon p = new Polygon();
v_seen = false;
for (double d = 0.001; d < Math.PI * 2; d += Math.PI / 2000) {
double y = b_y;
double x = b_x;
double d_y = Math.sin(d);
double d_x = Math.cos(d);
boolean blocked = false;
while (true) {
// v vision
if ((int) v_x == (int) x && (int) v_y == (int) y) {
v_b_x = b_x;
v_b_y = b_y;
v_seen = true;
vantage_index = tick;
}
double yDist = (d_y < 0 ? Math.ceil(y - 1) : Math.floor(y + 1)) - y;
double xDist = (d_x < 0 ? Math.ceil(x - 1) : Math.floor(x + 1)) - x;
if (Math.abs(yDist / d_y) < Math.abs(xDist / d_x)) {
x += (yDist / d_y * d_x) * 1.001;
y += yDist * 1.001;
} else {
x += xDist * 1.001;
y += (xDist / d_x * d_y) * 1.001;
}
if ((int) x < 0 || (int) y < 0 || (int) x >= T_W || (int) y >= T_H) { break; }
// sparkles & shooting & things
if ((bullets > 0 && inventory[GUN]) && Math.abs(ptr - d) < Math.PI / 1000 && !blocked) {
if (r.nextInt(16) == 0) {
double offset = r.nextDouble() * 40;
particles[sprk * 5] = 1;
particles[sprk * 5 + 1] = x * TILE_SIZE + offset * d_x;
particles[sprk * 5 + 2] = y * TILE_SIZE + offset * d_y;
particles[sprk * 5 + 3] = 0;
particles[sprk * 5 + 4] = 0;
sprk = (sprk + 1) % 20;
}
if (inventory[GUN]) {
if (t_type[(int) y][(int) x] > SOLIDS || (int) y == (int) v_y && (int) x == (int) v_x) {
blocked = true;
if (bullets > 0 && click && b_cooldown <= 0) {
b_cooldown = B_COOLDOWN;
int p_start = 40;
if (t_type[(int) y][(int) x] > SOLIDS) {
t_hp[(int) y][(int) x] -= GUN_DMG;
if (t_hp[(int) y][(int) x] <= 0) {
t_type[(int) y][(int) x] = _;
}
}
if ((int) y == (int) v_y && (int) x == (int) v_x) {
v_dmg = GUN_V_DMG;
p_start = 80;
}
for (int i = p_start; i < p_start + 40; i++) {
particles[i * 5] = r.nextDouble() * 5;
particles[i * 5 + 1] = x * TILE_SIZE + d_x;
particles[i * 5 + 2] = y * TILE_SIZE + d_y;
particles[i * 5 + 3] = r.nextDouble() * 4 - 2;
particles[i * 5 + 4] = r.nextDouble() * 4 - 2;
}
bullets--;
}
}
}
}
if (t_type[(int) y][(int) x] > TRANSPARENTS) { break; }
}
p.addPoint((int) ((x + d_x * 0.2) * TILE_SIZE), (int) ((y + d_y * 0.2) * TILE_SIZE));
}
click = false;
if (!dawn) { g.setClip(p); }
g.setColor(new Color(37, 59, 29));
g.fillRect(0, 0, 800, 600);
g.setColor(new Color(44, 70, 34));
for (int y = 0; y < T_H; y++) { for (int x = 0; x < T_W; x++) {
if (t_type[y][x] == I) {
g.fillOval(x * TILE_SIZE - 100, y * TILE_SIZE - 100, 240, 240);
}
}}
for (int y = 0; y < T_H; y++) { lp: for (int x = 0; x < T_W; x++) {
Color c = null;
switch (t_type[y][x]) {
case O:
case D:
case T:
case C:
case B:
case X:
case E:
case R:
case _: c = new Color(59, 39, 29); break;
case F: break;
case G: continue lp;
case I:
case W: c = new Color(101, 81, 72); break;
}
g.setColor(c);
int yTile = y * TILE_SIZE;
int xTile = x * TILE_SIZE;
if (t_type[y][x] != F) { g.fillRect(xTile, yTile, TILE_SIZE, TILE_SIZE); }
switch (t_type[y][x]) {
case F:
g.setColor(new Color(175, 85, 58));
g.fillPolygon(new int[] {xTile + 15, xTile + 25, xTile + 23, xTile + 17}, new int[] {yTile + 17, yTile + 17, yTile + 31, yTile + 31}, 4);
g.setColor(Color.RED);
g.fillOval(xTile + 14, yTile + 13, 5, 5);
g.fillOval(xTile + 22, yTile + 14, 6, 6);
g.fillOval(xTile + 18, yTile + 12, 5, 5);
g.fillOval(xTile + 21, yTile + 9, 5, 5);
break;
case R:
g.setColor(new Color(100, 15, 10));
g.fillRoundRect(xTile + 2, yTile + 2, 36, 36, 8, 8);
g.setColor(new Color(20, 25, 150));
g.fillRect(xTile + 8, yTile + 8, 24, 24);
g.setColor(new Color(150, 150, 120));
g.fillPolygon(new int[] {xTile + 20, xTile + 36, xTile + 20, xTile + 4}, new int[] {yTile + 4, yTile + 20, yTile + 36, yTile + 20}, 4);
break;
case E:
g.setColor(Color.WHITE);
g.fillRect(xTile + 2, yTile + 18, 36, 6);
g.setColor(new Color(142, 130, 123));
g.fillRect(xTile + 2, yTile + 10, 2, 20);
g.fillRect(xTile + 36, yTile + 16, 2, 14);
break;
case T:
g.setColor(new Color(142, 130, 123));
g.fillRect(xTile + 5, yTile + 10, 30, 2);
g.fillRect(xTile + 8, yTile + 10, 2, 20);
g.fillRect(xTile + 30, yTile + 10, 2, 20);
break;
case C:
g.setColor(new Color(142, 130, 123));
g.fillRect(xTile + 15, yTile + 17, 10, 2);
g.fillRect(xTile + 15, yTile + 7, 2, 20);
g.fillRect(xTile + 25, yTile + 17, 2, 10);
break;
case D:
g.setColor(new Color(194, 177, 168));
g.fillRect(xTile, yTile, TILE_SIZE, TILE_SIZE);
case O:
g.setColor(new Color(87, 63, 51));
g.fillRect(xTile, yTile, 5, TILE_SIZE);
g.fillRect(xTile + 35, yTile, 5, TILE_SIZE);
break;
case I:
g.setColor(new Color(133, 133, 176));
g.fillRect(xTile + 2, yTile + 2, 16, 16);
g.fillRect(xTile + 22, yTile + 2, 16, 16);
g.fillRect(xTile + 2, yTile + 22, 16, 16);
g.fillRect(xTile + 22, yTile + 22, 16, 16);
break;
case B:
case X:
g.setColor(new Color(115, 63, 45));
g.fillRect(xTile + 2, yTile + 6, 36, 28);
g.setColor(new Color(57, 32, 22));
g.fillRect(xTile + 4, yTile + 8, 32, 10);
g.fillRect(xTile + 4, yTile + 20, 32, 10);
}
if (t_type[y][x] == B) {
g.setColor(new Color(142, 130, 123));
g.fillRect(xTile + 5, yTile + 9, 30, 8);
g.fillRect(xTile + 5, yTile + 21, 30, 8);
}
}}
// players
if (!dawn) {
g.setColor(Color.BLACK);
g.fillRect((int) (v_x * TILE_SIZE) - 7, (int) (v_y * TILE_SIZE) - 5, 14, 19);
g.fillRect((int) (b_x * TILE_SIZE) - 1, (int) (b_y * TILE_SIZE) - 14, 6, 10);
g.setColor(Color.WHITE);
g.fillOval((int) (v_x * TILE_SIZE) - 4, (int) (v_y * TILE_SIZE) - 12, 9, 9);
g.fillOval((int) (b_x * TILE_SIZE) - 3, (int) (b_y * TILE_SIZE) - 12, 7, 6);
g.fillRect((int) (b_x * TILE_SIZE) - 3, (int) (b_y * TILE_SIZE) - 4, 1, 8);
g.fillRect((int) (b_x * TILE_SIZE) + 4, (int) (b_y * TILE_SIZE) - 4, 1, 8);
// body
g.setColor(Color.RED);
g.fillRect((int) (b_x * TILE_SIZE) - 2, (int) (b_y * TILE_SIZE) - 3, 6, 18);
if (v_dmg > 0) {
g.fillOval((int) (v_x * TILE_SIZE), (int) (v_y * TILE_SIZE), 3, 7);
}
if (inventory[LEATHER_JACKET] && jacket_hp > 0) {
g.setColor(Color.BLACK);//new Color(145, 92, 54));
g.fillRect((int) (b_x * TILE_SIZE) - 4, (int) (b_y * TILE_SIZE) - 5, 10, 8);
}
}
if (dawn) {
g.setColor(new Color(255, 255, 150, 70));
g.fillRect(0, 0, 800, 600);
}
g.setClip(0, 0, 800, 600);
g.setColor(Color.YELLOW);
for (int i = 0; i < 120; i++) {
if (i == 80) { g.setColor(Color.RED); }
if (particles[i * 5] > 0) {
g.fillOval((int) particles[i * 5 + 1], (int) particles[i * 5 + 2], (int) particles[i * 5] + 2, (int) particles[i * 5] + 2);
particles[i * 5 + 1] += particles[i * 5 + 3];
particles[i * 5 + 2] += particles[i * 5 + 4];
particles[i * 5] -= 0.3;
}
}
g.setColor(Color.YELLOW);
g.fillRect(760, 600 - b_fatigue / 4, 40, b_fatigue / 4);
g.setColor(Color.ORANGE);
g.fillRect(760, 375, 40, 1);
if (b_fatigue > WINDED_FATIGUE) {
g.fillRect(760, 600 - b_fatigue / 4, 40, (b_fatigue - WINDED_FATIGUE) / 4);
}
// inventory
g.setColor(Color.LIGHT_GRAY);
if (inventory[KEY]) {
g.fillOval(765, 15, 8, 10);
g.fillRect(769, 19, 25, 2);
g.fillRect(786, 19, 2, 6);
g.fillRect(790, 19, 2, 8);
}
// leather jacket
if (inventory[LEATHER_JACKET] && jacket_hp > 0) {
g.drawRect(775, 85, 10, 4);
g.drawRect(770, 89, 20, 24);
g.drawRect(765, 92, 3, 18);
g.drawRect(792, 92, 3, 18);
}
// gun
if (inventory[GUN]) {
g.fillRect(765, 53, 30, 6);
g.drawString("" + bullets, 782, 76);
g.setColor(new Color(115, 63, 45));
g.fillRect(767, 59, 8, 14);
}
g.setColor(Color.WHITE);
g.fillRect(760, 600 - b_exhaustion / 50, 40, b_exhaustion / 50);
g.drawString(msg, 40, 280);
g.drawString(msg2, 40, 320);
strategy.show();
try { Thread.sleep(15); } catch (Exception e) {}
if (--msgWait == 0) {
msg2 = "";
if (game_over) {
continue game;
}
}
}
}
}
} | Zarkonnen/Dawn | a.java |
309 | public class i {
public String a;
public String b;
public String c;
public String d;
public String e;
public String f;
public String b() {
StringBuilder stringBuilder = new StringBuilder();
if (this.b != null) {
stringBuilder.append(this.b);
}
stringBuilder.append(";");
if (this.c != null) {
stringBuilder.append(this.c);
}
stringBuilder.append(";");
if (this.e != null) {
stringBuilder.append(this.e);
}
stringBuilder.append(";");
if (this.f != null) {
stringBuilder.append(this.f);
}
stringBuilder.append(";");
if (this.d != null) {
stringBuilder.append(this.d);
}
return stringBuilder.toString();
}
public String toString() {
StringBuilder stringBuilder = new StringBuilder();
stringBuilder.append(a(this.b)).append(" ").append(this.c).append(" ").append(this.e).append(" ").append(this.f).append(" ").append(this.d);
return stringBuilder.toString();
}
/* JADX WARNING: inconsistent code. */
/* Code decompiled incorrectly, please refer to instructions dump. */
public static java.lang.String a(java.lang.String r7) {
/*
r6 = 92;
r1 = q.h;
r2 = new java.lang.StringBuffer;
r2.<init>();
r0 = 0;
L_0x000a:
r3 = r7.length();
if (r0 >= r3) goto L_0x004a;
L_0x0010:
r3 = r7.charAt(r0);
if (r3 != r6) goto L_0x0043;
L_0x0016:
r4 = r7.length();
r4 = r4 + -3;
if (r0 >= r4) goto L_0x0043;
L_0x001e:
r4 = r0 + 1;
r4 = r7.charAt(r4);
r5 = 114; // 0x72 float:1.6E-43 double:5.63E-322;
if (r4 != r5) goto L_0x0046;
L_0x0028:
r4 = r0 + 2;
r4 = r7.charAt(r4);
if (r4 != r6) goto L_0x0046;
L_0x0030:
r4 = r0 + 3;
r4 = r7.charAt(r4);
r5 = 110; // 0x6e float:1.54E-43 double:5.43E-322;
if (r4 != r5) goto L_0x0046;
L_0x003a:
r4 = 10;
r2.append(r4);
r0 = r0 + 3;
if (r1 == 0) goto L_0x0046;
L_0x0043:
r2.append(r3);
L_0x0046:
r0 = r0 + 1;
if (r1 == 0) goto L_0x000a;
L_0x004a:
r0 = r2.toString();
return r0;
*/
throw new UnsupportedOperationException("Method not decompiled: i.a(java.lang.String):java.lang.String");
}
public String c() {
return a(this.b);
}
public String a() {
StringBuilder stringBuilder = new StringBuilder();
if (this.b != null && this.b.length() > 0) {
stringBuilder.append(a(this.b)).append('\n');
}
Object obj = null;
if (this.c != null && this.c.length() > 0) {
stringBuilder.append(this.c);
obj = 1;
}
if (this.e != null && this.e.length() > 0) {
if (obj != null) {
stringBuilder.append(" ");
}
stringBuilder.append(this.e);
obj = 1;
}
if (this.f != null && this.f.length() > 0) {
if (obj != null) {
stringBuilder.append(" ");
}
stringBuilder.append(this.f);
obj = 1;
}
if (this.d != null && this.d.length() > 0) {
if (obj != null) {
stringBuilder.append(" ");
}
stringBuilder.append(this.d);
}
return stringBuilder.toString();
}
}
| GigaDroid/Decompiled-Whatsapp | i.java |
310 | import java.util.ArrayList;
import java.util.Random;
import java.util.Set;
import java.util.TreeMap;
public class Flight
{
public enum Status {DELAYED, ONTIME, ARRIVED, INFLIGHT};
public static enum FlightType {SHORTHAUL, MEDIUMHAUL, LONGHAUL};
public static enum SeatType {ECONOMY, FIRSTCLASS, BUSINESS};
String flightNum;
private String airline;
private String origin, dest;
private String departureTime;
private Status status;
private int flightDuration;
protected Aircraft aircraft;
protected int numPassengers;
protected FlightType type;
protected ArrayList<Passenger> manifest;
protected TreeMap<String, Passenger> seatMap;
boolean seatTaken = false;
protected Random random = new Random();
public Flight()
{
this.flightNum = "";
this.airline = "";
this.dest = "";
this.origin = "Toronto";
this.departureTime = "";
this.flightDuration = 0;
this.aircraft = null;
numPassengers = 0;
status = Status.ONTIME;
type = FlightType.MEDIUMHAUL;
manifest = new ArrayList<Passenger>();
seatMap = new TreeMap<String, Passenger>();
}
public Flight(String flightNum)
{
this.flightNum = flightNum;
}
public Flight(String flightNum, String airline, String dest, String departure, int flightDuration, Aircraft aircraft)
{
this.flightNum = flightNum;
this.airline = airline;
this.dest = dest;
this.origin = "Toronto";
this.departureTime = departure;
this.flightDuration = flightDuration;
this.aircraft = aircraft;
numPassengers = 0;
status = Status.ONTIME;
type = FlightType.MEDIUMHAUL;
manifest = new ArrayList<Passenger>();
seatMap = new TreeMap<String, Passenger>();
}
public FlightType getFlightType()
{
return FlightType.MEDIUMHAUL;
}
public String getFlightNum()
{
return flightNum;
}
public void setFlightNum(String flightNum)
{
this.flightNum = flightNum;
}
public String getAirline()
{
return airline;
}
public void setAirline(String airline)
{
this.airline = airline;
}
public String getOrigin()
{
return origin;
}
public void setOrigin(String origin)
{
this.origin = origin;
}
public String getDest()
{
return dest;
}
public void setDest(String dest)
{
this.dest = dest;
}
public String getDepartureTime()
{
return departureTime;
}
public void setDepartureTime(String departureTime)
{
this.departureTime = departureTime;
}
public Status getStatus()
{
return status;
}
public void setStatus(Status status)
{
this.status = status;
}
public int getFlightDuration()
{
return flightDuration;
}
public void setFlightDuration(int dur)
{
this.flightDuration = dur;
}
public int getNumPassengers()
{
return numPassengers;
}
public void setNumPassengers(int numPassengers)
{
this.numPassengers = numPassengers;
}
public void assignSeat(Passenger p)
{
int seat = random.nextInt(aircraft.numEconomySeats);
p.setSeat("ECO"+ seat);
}
public String getLastAssignedSeat()
{
if (!manifest.isEmpty())
return manifest.get(manifest.size()-1).getSeat();
return "";
}
public boolean seatsAvailable(String seatType)
{
if (!seatType.equalsIgnoreCase("ECO")) return false;
return numPassengers < aircraft.numEconomySeats;
}
public boolean seatsAvailable()
{
if(this.aircraft.numEconomySeats > this.numPassengers){
return true;
}
return false;
}
public boolean equals(Object other)
{
Flight otherFlight = (Flight) other;
return this.flightNum.equals(otherFlight.flightNum);
}
public void printSeats()
{
String[][] result = aircraft.seatLayout(); //assigns a new variable to the seatLayout created in the aircraft file
for(int i = 0; i < result.length; i++)
{
for(int j = 0; j < result[i].length; j++)
{
if(!seatMap.isEmpty())//checkes if the seatMap is not null
{
seatTaken = false;
Set<String> keySet = seatMap.keySet(); //I created a set to loop through the keys in the seatmap which is the seat number
for(String key : keySet)
{
if( result[i][j].equals(key)){ //if someone reserved a seat under that particular seat number by checking the seatMap
seatTaken = true; //then boolean is set to true
}
}
if(seatTaken) //if the boolean is true, that mean the seat is taken
{
System.out.print("XX "); //therefore, an "XX" will be printed instead of the seat number to indicate that the seat is occupied
}
else
{
System.out.print(result[i][j] + " "); //if the seat is not taken, then it will print the seat numbers according to the seat layout
seatTaken = false;
}
}
else{
System.out.print(result[i][j] + " "); //if the seatmap is empty, there will be no need to check if the seat is taken and just prints the seatlayout
}
}
if(i%2 == 0){
System.out.print("\n"); //this allows the rows and columns to be represented as desired when printed
}
else{
System.out.println("\n");
}
}
System.out.println("XX = Occupied + = First Class");
}
public void printPassengerManifest() //this method prints all the information related to the passenger that have reserved a seat in the flight
{
for(int i = 0; i < manifest.size(); i++)
{
System.out.println(manifest.get(i).toString()); //uses the toString() method located in passengers to print the passenger information
}
}
public boolean reserveSeat()
{
if(seatsAvailable())
{
this.numPassengers += 1;
return true;
}
return false;
}
public void reserveSeat(Passenger p, String seat)
{
boolean found = false;
boolean duplicate = false;
for(int i = 0; i < manifest.size(); i++) //this for loop checks if the passenger already has reserved a seat
{
if(manifest.get(i).equals(p))
{
duplicate = true; //if passenger is already in the manifest arraylist then the duplicate variable will be set to true
}
}
Set<String> keySet = seatMap.keySet(); // I created a set that loops through the key values in the seatMap which is the seat number values
for(String key: keySet)
{
if(key.equals(seat)) //if the seat that is trying to be reserved is already in the seatmap
{
found = true;// then the boolean variable found is set to true
}
}
if(found){ //if the boolean variable found is true
numPassengers -= 1; //it decrements the number of passengers to avoid an additional increment taking place when an exception is being thrown
throw new SeatOccupiedException("Seat " + seat + " already occupied"); // it will throw the exception indicating that the seat is occupied
}
else if(duplicate) //else if the duplicate variable is true
{
numPassengers -= 1;
throw new DuplicatePassengerException("Duplicate Passenger " + p.getName() + " " + p.getPassport()); //it will throw the exception that the passenger has already reserved this seat
}
else //else if none of the boolean variables are set to true
{
manifest.add(p); //it will add the passenger to the manifest arraylist
seatMap.put(seat,p); // it will add the key value which is the seat number and the value of the key which is the passenger to the seatMap
}
}
public void cancelSeat()
{
if(this.getNumPassengers() >= 0)
{
this.numPassengers -= 1;
}
}
public void cancelSeat(Passenger p) // this method removes the passenger from the manifest array list and seatMap
{
manifest.remove(p); //removes the passenger from the arraylist
seatMap.remove(p.getSeat()); //removes the passenger from the seatmap by removing the key
}
public String toString()
{
return airline + "\t Flight: " + flightNum + "\t Dest: " + dest + "\t Departing: " + departureTime + "\t Duration: " + flightDuration + "\t Status: " + status;
}
}
class DuplicatePassengerException extends RuntimeException{
public DuplicatePassengerException(String message)
{
super(message);
}
}
class PassengerNotInManifestException extends RuntimeException
{
public PassengerNotInManifestException(String message)
{
super(message);
}
}
class SeatOccupiedException extends RuntimeException
{
public SeatOccupiedException(String message)
{
super(message);
}
}
class FlightNotFound extends RuntimeException
{
public FlightNotFound(String message)
{
super(message);
}
}
class FlightIsFull extends RuntimeException{
public FlightIsFull(String message){
super(message);
}
}
| MKazi-ctrl/Java | F.java |
311 | import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
//VM Class responsible for running a set of processes and reporting usage statistics
public class VM {
//Static VMID
private static int VMID=1;
//unique VM ID
private int vmID;
//List of processes
private ArrayList<Proc> procs;
//Instance specs
private int vCPU;
private double RAM;//units: GBs
//Time steps in minutes since VM running
private int time;
//Per hour cost
private double hourlyRate;
//Instance name
private String instanceName;
//constructor
public VM(int vCPU, double RAM, double hourlyRate, String instanceName){
this.vCPU=vCPU;
this.RAM=RAM;
this.hourlyRate=hourlyRate;
this.instanceName=instanceName;
procs=new ArrayList<Proc>();
vmID=VMID;
VMID++;
}
//To mark simulation end, all procs finished
//Compute one time step for all procs
//Returns cost increment for this step
public double computeNextStep(){
for (Proc proc : procs) {
proc.computeNextStep();
}
time++;
return hourlyRate/(60*1.0);
}
//Check if VM can stay below (mem)threshold by addition of new proc
//demand:demand of proc, upLimit: upper bound fraction of total
public boolean isBelowMax(double demand, double upBound){
return (getRawMemUtil()+demand)/(RAM*1024) < upBound;
}
public double getHourlyRate(){
return hourlyRate;
}
public int getvCPU() {
return vCPU;
}
public double getRAM() {
return RAM;
}
//Get instance name
public String getInstanceName(){
return instanceName;
}
//Get vmID
public int getVMID(){
return vmID;
}
//Get number of procs
public int getNumProcs(){
return procs.size();
}
//Add process to VM, add to sorted lists as well
public void addProc(Proc proc){
procs.add(proc);
proc.setSrcVMID(this.vmID);
}
//Remove a processes from this vm
//Return null if not found
public Proc removeProc(int pid){
Proc toRemove=null;
for(int i=0; i<procs.size(); i++)
{
if(procs.get(i).getPID()==pid){
toRemove=procs.remove(i);
break;
}
}
toRemove.setSrcVMID(-1);
return toRemove;
}
//Get Cost of VM since creation
public double getTotalCost(){
return hourlyRate*(time*1.0/60);
}
//Raw memory usage of all processes in VM
public double getRawMemUtil(){
double totalProcUsage=0;
for (Proc proc : procs) {
totalProcUsage+=proc.getMemUsage();
}
return totalProcUsage;
}
//Fractional memory usage of RAM in VM.
public double getMemUtil(){
return (getRawMemUtil())/(RAM*1024*1.0);
}
//Raw cpu usage of all processes in VM
public double getRawCPUUtil(){
double totalProcUsage=0;
for (Proc proc : procs) {
totalProcUsage+=proc.getCPUUsage();
}
return totalProcUsage;
}
//Fractional CpuUsage of all cores in VM
public double getCPUUtil(){
return (getRawCPUUtil())/(vCPU*1.0);
}
//The ordered lists allow policy to get min max and anything in between
//Can change to getMax and getMin methods if thats all thats needed later
//Get an array list of procs sorted(ascending) by their fractional cpu usage
public ArrayList<Proc> getCPUOrderedProcs(){
ArrayList<Proc> cpuOrdered = new ArrayList<Proc>(procs);
Collections.sort(cpuOrdered, Proc.cpuCompare);
return cpuOrdered;
}
//Get an array list of procs sorted(ascending) by their memory usage
public ArrayList<Proc> getMemOrderedProcs(){
ArrayList<Proc> memOrdered = new ArrayList<Proc>(procs);
Collections.sort(memOrdered, Proc.memCompare);
return memOrdered;
}
//VM Comparators used for VM sorting
//Comparator for rawCPU order
public static Comparator<VM> rawCPUCompare = new Comparator<VM>() {
public int compare(VM v1, VM v2){
if(v1.getRawCPUUtil()==v2.getRawCPUUtil())
return 0;
else
return v1.getRawCPUUtil()>v2.getRawCPUUtil() ? 1:-1;
}
};
//Comparator for rawMem order
public static Comparator<VM> rawMemCompare = new Comparator<VM>() {
public int compare(VM v1, VM v2){
if(v1.getRawMemUtil()==v2.getRawMemUtil())
return 0;
else
return v1.getRawMemUtil()>v2.getRawMemUtil() ? 1:-1;
}
};
//Comparator for percent CPU utilization order
public static Comparator<VM> cpuCompare = new Comparator<VM>() {
public int compare(VM v1, VM v2){
if(v1.getCPUUtil()==v2.getCPUUtil())
return 0;
else
return v1.getCPUUtil()>v2.getCPUUtil() ? 1:-1;
}
};
//Comparator for percent Mem utilization order
public static Comparator<VM> memCompare = new Comparator<VM>() {
public int compare(VM v1, VM v2){
if(v1.getMemUtil()==v2.getMemUtil())
return 0;
else
return v1.getMemUtil()>v2.getMemUtil() ? 1:-1;
}
};
public String toString() {
String result = "";
result+="\t========================================\n";
result+="\tVMID : " + this.vmID + " type : " + this.instanceName + " time : " + this.time + " MemUtil : "+this.getMemUtil() + "\n";
//result.append("VMID : " + this.vmID + " type : " + this.instanceName + " time : " + this.time + "\n");
for (Proc proc:procs) {
result+="\t\tPID: " + proc.getPID() + " CPU usage: " + proc.getCPUUsage() + " Mem usage: " + proc.getMemUsage() + " dayMigs:"+proc.getDayMigs() + "\n";
}
result+="\t=========================================\n";
return result.toString();
}
}
| hasbro17/CS736-CloudSimulator | VM.java |
312 | import java.util.Scanner;
import java.util.Vector;
import ts.display;
class declarations {
// Variable Declarations
public static int i = 0, j = 0, l = 0, k = 0, c = 0, noOfVariables = 0, maxBit = 0, noOfMinTerms = 0;
public static int[] minTermsDec = new int[16];
public static int[][] minTermsBin = new int[16][16];
public static int[] noOfOnes = new int[16];
public static int[][] g0 = new int[14][5];
public static int[][] g1 = new int[16][5];
public static int[][] g2 = new int[16][5];
public static int[][] g3 = new int[16][5];
public static int[][] g4 = new int[16][5];
public static int[][] h0 = new int[16][7];
public static int[][] h1 = new int[16][7];
public static int[][] h2 = new int[16][7];
public static int[][] h3 = new int[16][7];
public static int[][] i0 = new int[16][9];
public static int[][] i1 = new int[16][9];
public static int[][] i2 = new int[16][9];
public static int[][] k0 = new int[16][13];
public static int[][] k1 = new int[16][13];
public static int[][] parityTable = new int[20][24];
public static int gzero = 0, gone = 0, gtwo = 0, gthree = 0, gfour = 0;
public static int hzero = 0, hone = 0, htwo = 0, hthree = 0;
public static int izero = 0, ione = 0, itwo = 0;
public static int kzero = 0, kone = 0;
public static int[][] Final = new int[100][5];
public static int finalc = 0;
public static int parityCnt = 0;
static Scanner s = new Scanner(System.in);
//Constructor to initialize parity
declarations() {
for (i = 0; i < 20; i++)
for (j = 0; j < 24; j++)
parityTable[i][j] = -1;
}
// Function Definitions
public static int parityToEqt() // Function to generate the parity bits
{
for (j = 0; j < 16; j++) {
if (checkForSingle(j) != 100) {
Final[finalc][0] = parityTable[checkForSingle(j)][20];
Final[finalc][1] = parityTable[checkForSingle(j)][21];
Final[finalc][2] = parityTable[checkForSingle(j)][22];
Final[finalc][3] = parityTable[checkForSingle(j)][23];
finalc++;
}
}
return 0;
}
// Function to compare the parity table and final parities for equation
public static int compareSamefinal(int a[][], int size)
{
for (i = 0; i < size; i++) {
for (j = i + 1; j < size;) {
if ((a[j][0] == a[i][0]) && (a[j][1] == a[i][1]) && (a[j][2] == a[i][2]) && (a[j][3] == a[i][3])) {
for (k = j; k < size; k++) {
a[k][0] = a[k + 1][0];
a[k][1] = a[k + 1][1];
a[k][2] = a[k + 1][2];
a[k][3] = a[k + 1][3];
}
size--;
} else {
j++;
}
}
}
return size;
}
// Function to check for parity that are necessary for equation as they are lone contributers for a minterm
public static int checkForSingle(int column)
{
int patc = 0, temp121 = 0;
for (i = 0; i < parityCnt; i++) {
if (parityTable[i][column] == 999) {
temp121 = i;
patc++;
}
}
if (patc == 1)
return temp121;
else
return 100;
}
public static int paritycheck3(int a[][], int b[][], int h[][], int first, int second,
int third)
{
int t = 0;
while (t != first) {
int c = 0;
for (i = 0; i < second; i++) {
int flag = 0;
for (j = 0; j < 4; j++) {
if (a[t][j] != b[i][j]) {
flag++;
}
}
if (flag == 1) {
c++;
}
}
for (i = 0; i < third; i++) {
int flag = 0;
for (j = 0; j < 4; j++) {
if (a[t][j] != h[i][j]) {
flag++;
}
}
if (flag == 1) {
c++;
}
}
if (c == 0) {
parityTable[parityCnt][16] = a[t][4];
parityTable[parityCnt][17] = a[t][5];
parityTable[parityCnt][18] = a[t][6];
parityTable[parityCnt][19] = a[t][7];
parityTable[parityCnt][23] = a[t][3];
parityTable[parityCnt][22] = a[t][2];
parityTable[parityCnt][21] = a[t][1];
parityTable[parityCnt][20] = a[t][0];
parityTable[parityCnt][a[t][7]] = 999;
parityTable[parityCnt][a[t][6]] = 999;
parityTable[parityCnt][a[t][5]] = 999;
parityTable[parityCnt][a[t][4]] = 999;
parityCnt++;
}
t++;
}
return 0;
}
public static int paritycheck2(int a[][], int b[][], int h[][], int first, int second,
int third) // Function to check parity
{
int t = 0;
while (t != first) {
int c = 0;
for (i = 0; i < second; i++) {
int flag = 0;
for (j = 0; j < 4; j++) {
if (a[t][j] != b[i][j]) {
flag++;
}
}
if (flag == 1) {
c++;
}
}
for (i = 0; i < third; i++) {
int flag = 0;
for (j = 0; j < 4; j++) {
if (a[t][j] != h[i][j]) {
flag++;
}
}
if (flag == 1) {
c++;
}
}
if (c == 0) {
parityTable[parityCnt][16] = a[t][4];
parityTable[parityCnt][17] = a[t][5];
parityTable[parityCnt][23] = a[t][3];
parityTable[parityCnt][22] = a[t][2];
parityTable[parityCnt][21] = a[t][1];
parityTable[parityCnt][20] = a[t][0];
parityTable[parityCnt][a[t][5]] = 999;
parityTable[parityCnt][a[t][4]] = 999;
parityCnt++;
}
t++;
}
return 0;
}
public static int paritycheck1(int a[][], int b[][], int h[][], int first, int second,
int third) // Function to check parity
{
int t = 0;
while (t != first) {
int c = 0;
for (i = 0; i < second; i++) {
int flag = 0;
for (j = 0; j < 4; j++) {
if (a[t][j] != b[i][j]) {
flag++;
}
}
if (flag == 1) {
c++;
}
}
for (i = 0; i < third; i++) {
int flag = 0;
for (j = 0; j < 4; j++) {
if (a[t][j] != h[i][j]) {
flag++;
}
}
if (flag == 1) {
c++;
}
}
if (c == 0) {
parityTable[parityCnt][16] = a[t][4];
parityTable[parityCnt][23] = a[t][3];
parityTable[parityCnt][22] = a[t][2];
parityTable[parityCnt][21] = a[t][1];
parityTable[parityCnt][20] = a[t][0];
parityTable[parityCnt][a[t][4]] = 999;
parityCnt++;
}
t++;
}
return 0;
}
public static int totalSizeCalc() // Function to check the maximum no of minterms possible for the no of variables
{
for (i = 0; i < noOfVariables; i++) {
maxBit = maxBit + (int) Math.pow(2, i);
}
return maxBit + 1;
}
public static void inputMinTerms() // Function to input the minterms
{
int inp = 0;
Vector<Integer> vec = new Vector<Integer>(16);
System.out.print("Enter the minterms to be minimized: \n");
for (i = 0; i < maxBit; i++) {
inp = s.nextInt();
if (inp >= (maxBit)) {
for (i = 0; i < noOfMinTerms; i++)
minTermsDec[i] = vec.get(i);
return;
}
else if (inp == (-1)) {
for (i = 0; i < noOfMinTerms; i++)
minTermsDec[i] = vec.get(i);
return;
} else {
vec.add(inp);
noOfMinTerms++;
}
}
}
public static int calcNoOfOnes(int num[]) // Function to calculate the no of ones in the minterms binary value
{
int flag = 0;
for (i = 0; i < maxBit; i++) {
if (num[i] == 1)
flag++;
}
return flag;
}
public static void minTermsDectoBin() // Function to convert the minterms in decimal to their binary equivalents
{
int temp;
for (i = 0; i <= noOfMinTerms; i++) {
for (j = 0; j < noOfMinTerms; j++) {
temp = minTermsDec[j];
minTermsBin[j][4] = temp;
for (l = 3; l >= 0; l--) {
minTermsBin[j][l] = temp % 2;
temp = temp / 2;
}
if (minTermsDec[j] == 1)
noOfOnes[j] = 1;
else
noOfOnes[j] = calcNoOfOnes(minTermsBin[j]);
}
}
}
public static void firstStage() // Function for first stage comparisons
{
for (i = 0; i < noOfMinTerms; i++) {
if (noOfOnes[i] == 0) {
for (j = 0; j < 5; j++) {
g0[gzero][j] = minTermsBin[i][j];
}
gzero++;
}
if (noOfOnes[i] == 1) {
for (j = 0; j < 5; j++) {
g1[gone][j] = minTermsBin[i][j];
}
gone++;
}
if (noOfOnes[i] == 2) {
for (j = 0; j < 5; j++) {
g2[gtwo][j] = minTermsBin[i][j];
}
gtwo++;
}
if (noOfOnes[i] == 3) {
for (j = 0; j < 5; j++) {
g3[gthree][j] = minTermsBin[i][j];
}
gthree++;
}
if (noOfOnes[i] == 4) {
for (j = 0; j < 5; j++) {
g4[gfour][j] = minTermsBin[i][j];
}
gfour++;
}
}
}
public static void display() // Display function to display the no of ones
{
for (j = 0; j < noOfMinTerms; j++) {
System.out.print(noOfOnes[j] + "\t");
}
}
public void displayFinal() // Function to display the final table
{
for (i = 0; i < finalc; i++) {
for (j = 0; j < 4; j++) {
System.out.print(Final[i][j] + "\t");
}
System.out.print("\n");
}
}
public static void displayArray(int a[][], int n) // Dsiplay Function
{
for (i = 0; i < n; i++) {
for (j = 0; j < 4; j++) {
System.out.print(a[i][j] + "\t");
}
System.out.print("\n");
}
}
static int compare(int a[][], int b[][], int h[][], int first, int second) // Compare Function
{
int y = 0, t = 0;
while (t < first) {
for (i = 0; i < second; i++) {
int flag = 0;
for (j = 0; j < 4; j++) {
if (a[t][j] == b[i][j]) {
h[y][j] = b[i][j];
} else {
h[y][j] = 9;
flag++;
}
}
if (flag == 1) {
h[y][4] = a[t][4];
h[y][5] = b[i][4];
if (h[y][6] == 0)
h[y][6] = 1;
y++;
}
}
t++;
}
return y;
}
public static int compare1(int a[][], int b[][], int h[][], int first, int second) // Compare Function
{
int y = 0, t = 0;
while (t != first) {
for (i = 0; i < second; i++) {
int flag = 0;
for (j = 0; j < 4; j++) {
if (a[t][j] == b[i][j]) {
h[y][j] = b[i][j];
} else {
flag++;
h[y][j] = 9;
}
}
if (flag == 1) {
h[y][4] = a[t][4];
h[y][5] = a[t][5];
h[y][6] = b[i][4];
h[y][7] = b[i][5];
y++;
}
}
t++;
}
return y;
}
public static int compare2(int a[][], int b[][], int h[][], int first, int second) // Compare function
{
int y = 0, t = 0;
while (t != first) {
for (i = 0; i < second; i++) {
int flag = 0;
for (j = 0; j < 4; j++) {
if (a[t][j] == b[i][j]) {
h[y][j] = b[i][j];
} else {
flag++;
h[y][j] = 9;
}
}
if (flag == 1) {
h[y][4] = a[t][4];
h[y][5] = a[t][5];
h[y][6] = a[t][6];
h[y][7] = a[t][7];
h[y][8] = b[i][4];
h[y][9] = b[i][5];
h[y][10] = b[i][6];
h[y][11] = b[i][7];
if (h[y][12] == 0)
h[y][12] = 1;
y++;
}
}
t++;
}
return y;
}
public static int compareSame(int a[][], int size) // Compare Function
{
for (i = 0; i < size; i++) {
for (j = i + 1; j < size;) {
if ((a[j][0] == a[i][0]) && (a[j][1] == a[i][1]) && (a[j][2] == a[i][2]) && (a[j][3] == a[i][3])) {
for (k = j; k < size; k++) {
a[k][0] = a[k + 1][0];
a[k][1] = a[k + 1][1];
a[k][2] = a[k + 1][2];
a[k][3] = a[k + 1][3];
a[k][4] = a[k + 1][4];
a[k][5] = a[k + 1][5];
a[k][6] = a[k + 1][6];
a[k][7] = a[k + 1][7];
a[k][8] = a[k + 1][8];
}
size--;
} else {
j++;
}
}
}
return size;
}
public static int compareSame2(int a[][], int size) // Compare Function
{
for (i = 0; i < size; i++) {
for (j = i + 1; j < size;) {
if ((a[j][0] == a[i][0]) && (a[j][1] == a[i][1]) && (a[j][2] == a[i][2]) && (a[j][3] == a[i][3])) {
for (k = j; k < size; k++) {
a[k][0] = a[k + 1][0];
a[k][1] = a[k + 1][1];
a[k][2] = a[k + 1][2];
a[k][3] = a[k + 1][3];
a[k][4] = a[k + 1][4];
a[k][5] = a[k + 1][5];
a[k][6] = a[k + 1][6];
a[k][7] = a[k + 1][7];
a[k][8] = a[k + 1][8];
a[k][9] = a[k + 1][9];
a[k][10] = a[k + 1][10];
a[k][11] = a[k + 1][11];
a[k][12] = a[k + 1][12];
}
size--;
} else {
j++;
}
}
}
return size;
}
static void parityInit() // Function to initialize the parity table
{
for (i = 0; i < 20; i++)
for (j = 0; j < 24; j++)
parityTable[i][j] = -1;
}
static void printParityTable() // Function to print the parity table
{
for (i = 0; i < parityCnt; i++) {
System.out.print("\n P" + i + 1 + " : ");
for (j = 16; j < 20; j++) {
if (parityTable[i][j] == -1)
continue;
else {
System.out.print(" " + parityTable[i][j] + " ");
if (j != 19 && parityTable[i][j + 1] != -1)
System.out.print(",");
}
}
System.out.print("\n");
}
}
static void eqnGenerator() // Function to generate the equation from the parity
{
System.out.print("\n The Equation is : \t");
for (i = 0; i < finalc; i++) {
if (i != 0)
System.out.print(" + ");
for (j = 0; j < 4; j++) {
if (j == 0 && j < noOfVariables) {
if (Final[i][j] == 0)
System.out.print("A'");
else if (Final[i][j] == 1)
System.out.print("A");
} else if (j == 1 && j < noOfVariables) {
if (Final[i][j] == 0)
System.out.print("B'");
else if (Final[i][j] == 1)
System.out.print("B");
} else if (j == 2 && j < noOfVariables) {
if (Final[i][j] == 0)
System.out.print("C'");
else if (Final[i][j] == 1)
System.out.print("C");
} else if (j == 3) {
if (Final[i][j] == 0 && j < noOfVariables)
System.out.print("D'");
else if (Final[i][j] == 1)
System.out.print("D");
}
}
}
}
}
class l extends declarations {
public static void main(String args[]) {
try {
Scanner sc = new Scanner(System.in);
System.out.println("Please enter your name");
String s = sc.next();
System.out.print("Enter the number of variables to be Minimized: ");
noOfVariables = sc.nextInt();
maxBit = totalSizeCalc();
parityInit();
inputMinTerms();
System.out.println();
minTermsDectoBin();
System.out.print("\n\n **STAGE 1**\n\n");
firstStage();
if (gzero != 0) {
System.out.print("\ngroup of 0s\n");
displayArray(g0, gzero);
}
if (gone != 0) {
System.out.print("\ngroup of 1s\n");
displayArray(g1, gone);
}
if (gtwo != 0) {
System.out.print("\ngroup of 2s\n");
displayArray(g2, gtwo);
}
if (gthree != 0) {
System.out.print("\ngroup of 3s\n");
displayArray(g3, gthree);
}
if (gfour != 0) {
System.out.print("\ngroup of 4s\n");
displayArray(g4, gfour);
}
System.out.print("\n\n **STAGE 2**\n\n");
hzero = compare(g0, g1, h0, gzero, gone);
if (hzero != 0) {
System.out.print("\n\nComparing Group 0 with 1:\n");
displayArray(h0, hzero);
}
hone = compare(g1, g2, h1, gone, gtwo);
if (hone != 0) {
System.out.print("\n\nComparing Group 1 with 2:\n");
displayArray(h1, hone);
}
htwo = compare(g2, g3, h2, gtwo, gthree);
if (htwo != 0) {
System.out.print("\n\nComparing Group 2 with 3:\n");
displayArray(h2, htwo);
}
hthree = compare(g3, g4, h3, gthree, gfour);
if (hthree != 0) {
System.out.print("\n\nComparing Group 3 with 4:\n");
displayArray(h3, hthree);
}
System.out.print("\n\n **STAGE 3**\n\n");
izero = compare1(h0, h1, i0, hzero, hone);
izero = compareSame(i0, izero);
if (izero != 0) {
System.out.print("\n\nComparing Group 0 with 1:\n");
displayArray(i0, izero);
}
ione = compare1(h1, h2, i1, hone, htwo);
ione = compareSame(i1, ione);
if (ione != 0) {
System.out.print("\n\nComparing Group 1 with 2:\n");
displayArray(i1, ione);
}
itwo = compare1(h2, h3, i2, htwo, hthree);
itwo = compareSame(i2, itwo);
if (itwo != 0) {
System.out.print("\n\nComparing Group 2 with 3:\n");
displayArray(i2, itwo);
}
System.out.print("\n\n Parity Check \n\n");
paritycheck1(g0, g1, g1, gzero, gone, gone);
paritycheck1(g1, g2, g0, gone, gtwo, gzero);
paritycheck1(g2, g3, g1, gtwo, gthree, gone);
paritycheck1(g3, g4, g2, gthree, gfour, gtwo);
paritycheck1(g4, g3, g3, gfour, gthree, gthree);
paritycheck2(h0, h1, h1, hzero, hone, hone);
paritycheck2(h1, h0, h2, hone, hzero, htwo);
paritycheck2(h2, h1, h3, htwo, hone, hthree);
paritycheck2(h3, h2, h2, hthree, htwo, htwo);
paritycheck3(i0, i1, i1, izero, ione, ione);
paritycheck3(i1, i0, i2, ione, izero, itwo);
paritycheck3(i2, i1, i1, itwo, ione, ione);
parityToEqt();
printParityTable();
finalc = compareSamefinal(Final, finalc);
System.out.print("\n");
eqnGenerator();
display d = new display();
d.disp(s);
} catch (Exception e) {
System.out.println("Exception Encountered\n" + e + "\nPlease try again");
}
}
} | haydencordeiro/Quine-McCluskey-Algorithm-Java | l.java |
313 | import com.google.common.collect.Maps;
import java.util.Map;
public class ew
{
private final ew.a a;
private final eu b;
public ew(ew.a ☃, eu ☃)
{
this.a = ☃;
this.b = ☃;
}
public ew.a a()
{
return this.a;
}
public eu b()
{
return this.b;
}
public boolean equals(Object ☃)
{
if (this == ☃) {
return true;
}
if ((☃ == null) || (getClass() != ☃.getClass())) {
return false;
}
ew ☃ = (ew)☃;
if (this.a != ☃.a) {
return false;
}
if (this.b != null ? !this.b.equals(☃.b) : ☃.b != null) {
return false;
}
return true;
}
public String toString()
{
return "HoverEvent{action=" + this.a + ", value='" + this.b + '\'' + '}';
}
public int hashCode()
{
int ☃ = this.a.hashCode();
☃ = 31 * ☃ + (this.b != null ? this.b.hashCode() : 0);
return ☃;
}
public static enum a
{
private static final Map<String, a> e;
private final boolean f;
private final String g;
private a(String ☃, boolean ☃)
{
this.g = ☃;
this.f = ☃;
}
public boolean a()
{
return this.f;
}
public String b()
{
return this.g;
}
static
{
e = Maps.newHashMap();
for (a ☃ : values()) {
e.put(☃.b(), ☃);
}
}
public static a a(String ☃)
{
return (a)e.get(☃);
}
}
}
| MCLabyMod/LabyMod-1.9 | ew.java |
315 | // Java program to illustrate the
// concept of Abstraction
abstract class Shape {
String color;
// these are abstract methods
abstract double area();
public abstract String toString();
// abstract class can have the constructor
public Shape(String color)
{
System.out.println("Shape constructor called");
this.color = color;
}
// this is a concrete method
public String getColor() { return color; }
}
class Circle extends Shape {
double radius;
public Circle(String color, double radius)
{
// calling Shape constructor
super(color);
System.out.println("Circle constructor called");
this.radius = radius;
}
@Override double area()
{
return Math.PI * Math.pow(radius, 2);
}
@Override public String toString()
{
return "Circle color is " + super.getColor()
+ "and area is : " + area();
}
}
class Rectangle extends Shape {
double length;
double width;
public Rectangle(String color, double length,
double width)
{
// calling Shape constructor
super(color);
System.out.println("Rectangle constructor called");
this.length = length;
this.width = width;
}
@Override double area() { return length * width; }
@Override public String toString()
{
return "Rectangle color is " + super.getColor()
+ "and area is : " + area();
}
}
public class Test {
public static void main(String[] args)
{
Shape s1 = new Circle("Red", 2.2);
Shape s2 = new Rectangle("Yellow", 2, 4);
System.out.println(s1.toString());
System.out.println(s2.toString());
}
}
| chetanbhasney02/Java-Codes | abstraction.java |
317 | public class S {
//instance variables
private String name;
private int year;
protected static int numberOfS=0;
//class variables
private static String school = "KKU";
public S(){
name = "Unknown";
year = 0;
numberOfS++;
}
public S(String name){
this.name = name;
year = 0;
numberOfS++;
}
public S(String name, int year){
this.name = name;
this.year = year;
numberOfS++;
}
public S(int year){
name = "unknown";
this.year = year;
numberOfS++;
}
//instance methods
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getYear() {
return year;
}
public void setYear(int year) {
this.year = year;
}
public static String getSchool() {
return school;
}
//class methods
static public void cheer(){
System.out.println("Cheeer Cheer cheer");
}
public String toString(){
return "Name:" + name + " Year:" + year;
}
public static int getNumberOfS(){
return numberOfS;
}
}
| patwit/advanced_compro_demo | S.java |
318 | class A {
private int m;
private int n;
public A(int mIn, int nIn) {
m = mIn;
n = nIn;
}
public int getM() {
return m;
}
public void setM(int m) {
this.m = m;
}
public int getN() {
return n;
}
public void setN(int n) {
this.n = n;
}
public void m1() {
m = m + n;
}
@Override
public String toString() {
return "A = (" + m + ", " + n + ")";
}
}
public class B extends A {
public B(int mIn, int nIn) {
super(mIn, nIn); // Call the superclass constructor
}
@Override
public void m1() {
// Override m1 to change the behavior: m becomes m - n
int m = getM() + getN(); // First, retrieve and sum m and n from A to comply with shadowing
setM(m - 2 * getN()); // Now apply the difference operation correctly accounting for the initial sum
}
@Override
public String toString() {
return "B = (" + getM() + ", " + getN() + ")";
}
public static void JQ(String[] args) {
A a = new A(1, 2);
A b = new B(1, 2);
System.out.println(a + " " + b);
a.m1();
b.m1();
System.out.println(a + " " + b);
}
}
| Bruno-Volpe/poo | B.java |
319 | package com.checkout.hybris.occ.validators.paymentdetailswsdto;
import de.hybris.bootstrap.annotations.UnitTest;
import de.hybris.platform.commercewebservicescommons.dto.order.PaymentDetailsWsDTO;
import de.hybris.platform.commercewebservicescommons.dto.user.AddressWsDTO;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.runners.MockitoJUnitRunner;
import org.springframework.validation.BeanPropertyBindingResult;
import org.springframework.validation.Errors;
import static org.junit.Assert.*;
@UnitTest
@RunWith(MockitoJUnitRunner.class)
public class CheckoutComSepaPaymentDetailsWsDTOValidatorTest {
private static final String FIRST_NAME_KEY = "firstName";
private static final String LAST_NAME_KEY = "lastName";
private static final String PAYMENT_TYPE_KEY = "paymentType";
private static final String ACCOUNT_IBAN_KEY = "accountIban";
private static final String ADDRESS_LINE1_KEY = "addressLine1";
private static final String CITY_KEY = "city";
private static final String POSTAL_CODE_KEY = "postalCode";
private static final String COUNTRY_KEY = "country";
private static final String BLANK_STRING = " ";
@InjectMocks
private CheckoutComSepaPaymentDetailsWsDTOValidator testObj;
private Errors errors;
private PaymentDetailsWsDTO paymentDetailsWsDTO = new PaymentDetailsWsDTO();
@Before
public void setUp() {
errors = new BeanPropertyBindingResult(paymentDetailsWsDTO, paymentDetailsWsDTO.getClass().getSimpleName());
paymentDetailsWsDTO.setFirstName("John");
paymentDetailsWsDTO.setLastName("Snow");
paymentDetailsWsDTO.setPaymentType("RECURRING_PAYMENT");
paymentDetailsWsDTO.setAccountIban("GB56789123456");
paymentDetailsWsDTO.setAddressLine1("1 Buckingham Palace Road");
paymentDetailsWsDTO.setAddressLine2("Royal Palace");
paymentDetailsWsDTO.setCity("London");
paymentDetailsWsDTO.setPostalCode("SW12WS");
paymentDetailsWsDTO.setCountry("UK");
}
@Test
public void supports_WhenPaymentDetailsWsDTOType_ShouldReturnTrue() {
assertTrue(testObj.supports(PaymentDetailsWsDTO.class));
}
@Test
public void supports_WhenNotCorrectType_ShouldReturnFalse() {
assertFalse(testObj.supports(AddressWsDTO.class));
}
@Test
public void validate_WhenAttributesAreValid_ShouldNotReturnAnyError() {
testObj.validate(paymentDetailsWsDTO, errors);
assertFalse(errors.hasErrors());
assertEquals(0, errors.getErrorCount());
}
@Test
public void validate_WhenPaymentFirstNameIsBlank_ShouldReturnError() {
paymentDetailsWsDTO.setFirstName(BLANK_STRING);
testObj.validate(paymentDetailsWsDTO, errors);
assertTrue(errors.hasErrors());
assertEquals(1, errors.getErrorCount());
assertEquals(FIRST_NAME_KEY, errors.getFieldError().getField());
}
@Test
public void validate_WhenLastNameIsBlank_ShouldReturnError() {
paymentDetailsWsDTO.setLastName(BLANK_STRING);
testObj.validate(paymentDetailsWsDTO, errors);
assertTrue(errors.hasErrors());
assertEquals(1, errors.getErrorCount());
assertEquals(LAST_NAME_KEY, errors.getFieldError().getField());
}
@Test
public void validate_WhenPaymentTypeIsBlank_ShouldReturnError() {
paymentDetailsWsDTO.setPaymentType(BLANK_STRING);
testObj.validate(paymentDetailsWsDTO, errors);
assertTrue(errors.hasErrors());
assertEquals(1, errors.getErrorCount());
assertEquals(PAYMENT_TYPE_KEY, errors.getFieldError().getField());
}
@Test
public void validate_WhenAccountIbanIsBlank_ShouldReturnError() {
paymentDetailsWsDTO.setAccountIban(BLANK_STRING);
testObj.validate(paymentDetailsWsDTO, errors);
assertTrue(errors.hasErrors());
assertEquals(1, errors.getErrorCount());
assertEquals(ACCOUNT_IBAN_KEY, errors.getFieldError().getField());
}
@Test
public void validate_WhenAddressLine1IsBlank_ShouldReturnError() {
paymentDetailsWsDTO.setAddressLine1(BLANK_STRING);
testObj.validate(paymentDetailsWsDTO, errors);
assertTrue(errors.hasErrors());
assertEquals(1, errors.getErrorCount());
assertEquals(ADDRESS_LINE1_KEY, errors.getFieldError().getField());
}
@Test
public void validate_WhenCityIsBlank_ShouldReturnError() {
paymentDetailsWsDTO.setCity(BLANK_STRING);
testObj.validate(paymentDetailsWsDTO, errors);
assertTrue(errors.hasErrors());
assertEquals(1, errors.getErrorCount());
assertEquals(CITY_KEY, errors.getFieldError().getField());
}
@Test
public void validate_WhenPostalCodeIsBlank_ShouldReturnError() {
paymentDetailsWsDTO.setPostalCode(null);
testObj.validate(paymentDetailsWsDTO, errors);
assertTrue(errors.hasErrors());
assertEquals(1, errors.getErrorCount());
assertEquals(POSTAL_CODE_KEY, errors.getFieldError().getField());
}
@Test
public void validate_WhenCountryIsBlank_ShouldReturnError() {
paymentDetailsWsDTO.setCountry(null);
testObj.validate(paymentDetailsWsDTO, errors);
assertTrue(errors.hasErrors());
assertEquals(1, errors.getErrorCount());
assertEquals(COUNTRY_KEY, errors.getFieldError().getField());
}
@Test
public void validate_WhenAttributeNotFoundOnMap_ShouldReturnError() {
paymentDetailsWsDTO.setCity(null);
testObj.validate(paymentDetailsWsDTO, errors);
assertTrue(errors.hasErrors());
assertEquals(1, errors.getErrorCount());
assertEquals(CITY_KEY, errors.getFieldError().getField());
}
}
| Mario-Kart-Felix/web4 | error |
320 | /* -*- Mode: Java; -*- */
import java.lang.reflect.*;
boolean locked = false;
// Not as general as it could be.
class StripChart {
int x, y;
int width, height;
float[] values;
float min, max;
int start = 0, end = 0;
int numValues = 0;
float prevValue;
StripChart (int x_, int y_, int width_, int height_) {
x = x_;
y = y_;
width = width_;
height = height_;
values = new float[width_ - 2];
}
void addValue (float v) {
if (numValues > 0) {
v = 0.95 * prevValue + 0.05 * v;
}
prevValue = v;
if (numValues >= width) {
// Buffer is full;
values[end] = v;
start = (start + 1) % values.length;
end = (end + 1) % values.length;
} else {
values[end] = v;
end = (end + 1) % values.length;
numValues += 1;
}
if (numValues == 1) {
min = v;
max = 0;
} else {
if (v < min) {
min = v;
} else if (v > max) {
max = 0;
}
}
}
void display () {
noFill();
rectMode(CORNER);
stroke(20);
rect(x, y, width, height);
if (numValues == 0) {
return;
}
float mmin = min - .0001;
float delta = max - mmin;
for (int i = 0; i < numValues; i++) {
int idx = (start + i) % values.length;
int gx = x + i + 1;
int gy = y + height - 2 - (int) (((values[idx] - mmin) / delta) * (height - 2));
stroke((int) (255 * (((float) i) / numValues)));
// Using point here doesn't work, and I do not know why.
// Bad interaction with the 3D stuff?
rect(gx, gy, 1, 0);
}
}
}
class Button {
int x, y;
int width, height;
color basecolor, highlightcolor;
color currentcolor;
boolean over = false;
PFont font;
color labelColor = color(255);
String label;
Object target;
String method;
boolean pressed = false;
Button (int x_, int y_, int width_, int height_,
color basecolor_, color highlightcolor_,
PFont font_, String label_,
Object target_, String method_) {
x = x_;
y = y_;
width = width_;
height = height_;
basecolor = basecolor_;
highlightcolor = highlightcolor_;
font = font_;
label = label_;
target = target_;
method = method_;
}
void update () {
if (over() && beingPressed()) {
press();
} else {
unpress();
}
if (pressed) {
currentcolor = highlightcolor;
} else {
currentcolor = basecolor;
}
}
void display () {
stroke(255);
fill(currentcolor);
rect(x, y, width, height);
fill(labelColor);
stroke(255);
textFont(font);
textAlign(LEFT, CENTER);
float theight = textAscent() + textDescent();
float twidth = textWidth(label);
text(label, x + (width / 2) - (twidth / 2), y + height / 2);
}
void notifyTarget () {
Class[] parameters;
parameters = new Class[] {};
try {
Method targetMethod = target.getClass().getMethod(method, parameters);
try {
targetMethod.invoke(target, new Object[] {});
} catch (InvocationTargetException e) {
println("PushButton error: Failed to invoke method '" + method + "' on " + target);
} catch (IllegalAccessException e) {
println("PushButton error: Failed to invoke method '" + method + "' on " + target);
}
} catch (NoSuchMethodException e) {
println("PushButton error: Object " + target + " has no method '" + method + "'");
}
}
void press () {
pressed = true;
}
void unpress () {
if (pressed) {
notifyTarget();
}
pressed = false;
}
boolean beingPressed () {
if (over() && mousePressed) {
locked = true;
return true;
} else {
locked = false;
return false;
}
}
boolean over () {
if (overRect(x, y, width, height)) {
over = true;
return true;
} else {
over = false;
return false;
}
}
}
class PushButtonCluster {
ArrayList buttons;
PushButtonCluster () {
buttons = new ArrayList();
}
void add (PushButton b) {
buttons.add(b);
}
void update () {
for (int i = 0; i < buttons.size(); i++) {
PushButton b = (PushButton) buttons.get(i);
b.update();
}
}
void display () {
for (int i = 0; i < buttons.size(); i++) {
PushButton b = (PushButton) buttons.get(i);
b.display();
}
}
void pressed (PushButton b) {
for (int i = 0; i < buttons.size(); i++) {
PushButton ob = (PushButton) buttons.get(i);
if (ob != b) {
ob.unpress();
}
}
}
}
class PushButton extends Button {
PushButtonCluster cluster;
PushButton (PushButtonCluster cluster_, int x_, int y_, int width_, int height_,
color basecolor_, color highlightcolor_, PFont font_, String label_,
Object target_, String method_) {
super(x_, y_, width_, height_,
basecolor_, highlightcolor_,
font_, label_,
target_, method_);
cluster = cluster_;
cluster.add(this);
}
void press () {
boolean was_pressed = pressed;
cluster.pressed(this);
super.press();
if (!was_pressed) {
notifyTarget();
}
}
void unpress () {
pressed = false;
}
void update () {
if (over() && beingPressed()) {
press();
}
if (pressed) {
currentcolor = highlightcolor;
} else {
currentcolor = basecolor;
}
}
}
boolean overRect (int x, int y, int width, int height) {
if (mouseX >= x && mouseX <= x + width &&
mouseY >= y && mouseY <= y + height) {
return true;
} else {
return false;
}
}
| wiseman/fireflysync | ui.pde |
322 | import java.util.Scanner;
public class Q1 {
public static void main(String[] args) {
System.out.println("Insira quantidade de aviões esperando para sair: ");
Scanner in = new Scanner(System.in);
int N = in.nextInt();
int[] horasS = new int[N]; //S = sair
int[] horasC = new int[N]; //C = chegar
System.out.println("Insira hora de cada avião saindo: ");
for(int f = 0; f < N; f++){
horasS[f] = in.nextInt();
}
System.out.println("Insira quantidade de aviões chegando: ");
int M = in.nextInt();
System.out.println("Insira hora de cada avião chegando: ");
for(int f = 0; f < N; f++){
horasC[f] = in.nextInt();
}
System.out.println("Insira quantidade de pistas: ");
int K = in.nextInt();
Thread t1 = new Thread(new Auxiliar(M+N, M));
t1.start();
}
}
public class Aviao {
private String numero;
private int horaSaida;
private int horaChegada;
public Aviao(String n, int hS, int hC){
this.numero = n;
this.horaSaida = hS;
this.horaChegada = hC;
}
}
public class Aeroporto implements Runnable {
private boolean[] pistas;
private Aviao[] avioes;
// 0 = vazia, 1 = ocupada;
public Aeroporto(Aviao[] as){
this.avioes = as;
}
public void ocuparPista(int f){
synchronized(this.pistas){
this.pistas[f] = true;
}
notifyAll();
return;
}
public void desocuparPista(int f){
synchronized(this.pistas){
this.pistas[f] = false;
}
notifyAll();
return;
}
public int pistaLivre(boolean[] pistas){
for(int f = 0; f < pistas.length; f++){
synchronized(this.pistas){
if(pistas[f]) return f;
}
}
return -1; // Tudo ocupado;
}
public void printaHoras(Aviao a){
System.out.printf("Horario esperado de saida: %d, horario real: %d, atraso ocorrido: %d", aviao.hS, aviao.h);
}
public void decolar(){
if(pistaLivre(pistas) != -1){
ocuparPista(f);
} else {
try {
wait();
} catch (InterruptedException ie) {}
}
notifyAll();
Thread.sleep(500);
}
public void aterrisar(){
if(pistaLivre(pistas) != -1){
ocuparPista(f);
} else {
try {
wait();
} catch (InterruptedException ie) {}
}
notifyAll();
Thread.sleep(500);
}
}
| vss-2/IP-LC | Q1.java |
323 | public class A {
private int a;
public A(int a) {
this.a = a;
}
public A() {
this(42);
}
public String returnHi() {
return "HI";
}
@Override
public String toString() {
return "A=" + a;
}
} | agonch/InterviewPrep | A.java |
326 | import java.util.*;
import java.lang.*;
import java.io.*;
import java.math.*;
/**
* Author : joney_000[[email protected]]
* Algorithm : Extended Euclid Algo: find 3 things X, Y, GCD(A, B) Such that X * A + Y * B = GCD(A, B)
* Time : O(MAX(A, B)) Space : O(MAX(A, B))
* Platform : Codeforces
* Ref : https://www.hackerearth.com/practice/math/number-theory/basic-number-theory-1/tutorial/
*/
public class A{
private InputStream inputStream ;
private OutputStream outputStream ;
private FastReader in ;
private PrintWriter out ;
private final int BUFFER = 100005;
private final long mod = 1000000000+7;
private final int INF = Integer.MAX_VALUE;
private final long INF_L = Long.MAX_VALUE / 10;
public A(){}
public A(boolean stdIO)throws FileNotFoundException{
// stdIO = false;
if(stdIO){
inputStream = System.in;
outputStream = System.out;
}else{
inputStream = new FileInputStream("input.txt");
outputStream = new FileOutputStream("output.txt");
}
in = new FastReader(inputStream);
out = new PrintWriter(outputStream);
}
void run()throws Exception{
int n = i();
long ans = 0;
out.write(""+ans+"\n");
}
void clear(){
}
long gcd(long a, long b){
if(b == 0)return a;
return gcd(b, a % b);
}
long lcm(long a, long b){
if(a == 0 || b == 0)return 0;
return (a * b)/gcd(a, b);
}
long mulMod(long a, long b, long mod){
if(a == 0 || b == 0)return 0;
if(b == 1)return a;
long ans = mulMod(a, b/2, mod);
ans = (ans * 2) % mod;
if(b % 2 == 1)ans = (a + ans)% mod;
return ans;
}
long pow(long a, long b, long mod){
if(b == 0)return 1;
if(b == 1)return a;
long ans = pow(a, b/2, mod);
ans = mulMod(ans, ans, mod);
if(ans >= mod)ans %= mod;
if(b % 2 == 1)ans = mulMod(a, ans, mod);
if(ans >= mod)ans %= mod;
return ans;
}
// 20*20 nCr Pascal Table
long[][] ncrTable(){
long ncr[][] = new long[21][21];
for(int i = 0; i <= 20; i++){
ncr[i][0] = ncr[i][i] = 1L;
}
for(int j = 0; j <= 20; j++){
for(int i = j + 1; i <= 20; i++){
ncr[i][j] = ncr[i-1][j] + ncr[i-1][j-1];
}
}
return ncr;
}
int i()throws Exception{
return in.nextInt();
}
long l()throws Exception{
return in.nextLong();
}
double d()throws Exception{
return in.nextDouble();
}
char c()throws Exception{
return in.nextCharacter();
}
String s()throws Exception{
return in.nextLine();
}
BigInteger bi()throws Exception{
return in.nextBigInteger();
}
private void closeResources(){
out.flush();
out.close();
return;
}
// IMP: roundoff upto 2 digits
// double roundOff = Math.round(a * 100.0) / 100.0;
// or
// System.out.printf("%.2f", val);
// print upto 2 digits after decimal
// val = ((long)(val * 100.0))/100.0;
public static void main(String[] args) throws java.lang.Exception{
A driver = new A(true);
driver.run();
driver.closeResources();
}
}
class FastReader{
private boolean finished = false;
private InputStream stream;
private byte[] buf = new byte[4 * 1024];
private int curChar;
private int numChars;
private SpaceCharFilter filter;
public FastReader(InputStream stream){
this.stream = stream;
}
public int read(){
if (numChars == -1){
throw new InputMismatchException ();
}
if (curChar >= numChars){
curChar = 0;
try{
numChars = stream.read (buf);
} catch (IOException e){
throw new InputMismatchException ();
}
if (numChars <= 0){
return -1;
}
}
return buf[curChar++];
}
public int peek(){
if (numChars == -1){
return -1;
}
if (curChar >= numChars){
curChar = 0;
try{
numChars = stream.read (buf);
} catch (IOException e){
return -1;
}
if (numChars <= 0){
return -1;
}
}
return buf[curChar];
}
public int nextInt(){
int c = read ();
while (isSpaceChar (c))
c = read ();
int sgn = 1;
if (c == '-'){
sgn = -1;
c = read ();
}
int res = 0;
do{
if(c==','){
c = read();
}
if (c < '0' || c > '9'){
throw new InputMismatchException ();
}
res *= 10;
res += c - '0';
c = read ();
} while (!isSpaceChar (c));
return res * sgn;
}
public long nextLong(){
int c = read ();
while (isSpaceChar (c))
c = read ();
int sgn = 1;
if (c == '-'){
sgn = -1;
c = read ();
}
long res = 0;
do{
if (c < '0' || c > '9'){
throw new InputMismatchException ();
}
res *= 10;
res += c - '0';
c = read ();
} while (!isSpaceChar (c));
return res * sgn;
}
public String nextString(){
int c = read ();
while (isSpaceChar (c))
c = read ();
StringBuilder res = new StringBuilder ();
do{
res.appendCodePoint (c);
c = read ();
} while (!isSpaceChar (c));
return res.toString ();
}
public boolean isSpaceChar(int c){
if (filter != null){
return filter.isSpaceChar (c);
}
return isWhitespace (c);
}
public static boolean isWhitespace(int c){
return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
}
private String readLine0(){
StringBuilder buf = new StringBuilder ();
int c = read ();
while (c != '\n' && c != -1){
if (c != '\r'){
buf.appendCodePoint (c);
}
c = read ();
}
return buf.toString ();
}
public String nextLine(){
String s = readLine0 ();
while (s.trim ().length () == 0)
s = readLine0 ();
return s;
}
public String nextLine(boolean ignoreEmptyLines){
if (ignoreEmptyLines){
return nextLine ();
}else{
return readLine0 ();
}
}
public BigInteger nextBigInteger(){
try{
return new BigInteger (nextString ());
} catch (NumberFormatException e){
throw new InputMismatchException ();
}
}
public char nextCharacter(){
int c = read ();
while (isSpaceChar (c))
c = read ();
return (char) c;
}
public double nextDouble(){
int c = read ();
while (isSpaceChar (c))
c = read ();
int sgn = 1;
if (c == '-'){
sgn = -1;
c = read ();
}
double res = 0;
while (!isSpaceChar (c) && c != '.'){
if (c == 'e' || c == 'E'){
return res * Math.pow (10, nextInt ());
}
if (c < '0' || c > '9'){
throw new InputMismatchException ();
}
res *= 10;
res += c - '0';
c = read ();
}
if (c == '.'){
c = read ();
double m = 1;
while (!isSpaceChar (c)){
if (c == 'e' || c == 'E'){
return res * Math.pow (10, nextInt ());
}
if (c < '0' || c > '9'){
throw new InputMismatchException ();
}
m /= 10;
res += (c - '0') * m;
c = read ();
}
}
return res * sgn;
}
public boolean isExhausted(){
int value;
while (isSpaceChar (value = peek ()) && value != -1)
read ();
return value == -1;
}
public String next(){
return nextString ();
}
public SpaceCharFilter getFilter(){
return filter;
}
public void setFilter(SpaceCharFilter filter){
this.filter = filter;
}
public interface SpaceCharFilter{
public boolean isSpaceChar(int ch);
}
}
class Pair implements Comparable<Pair>{
public int a;
public int b;
public Pair(){
this.a = 0;
this.b = 0;
}
public Pair(int a,int b){
this.a = a;
this.b = b;
}
public int compareTo(Pair p){
if(this.a == p.a){
return this.b - p.b;
}
return this.a - p.a;
}
@Override
public String toString(){
return "a = " + this.a + " b = " + this.b;
}
} | akhilgv/Java-Competitive-Programming | A.java |
327 | class Solution {
private int countSolution(int row, char[][] grid, Set<Integer> column, Set<Integer> diagonal, Set<Integer> antiDiagonal, int n){
if(row > n) return 0;
if(row == n){
return 1;
}
int count = 0;
for(int col = 0;col<grid[row].length;col++){
int diag = row+col;
int antiDiag = row - col;
if(column.contains(col) || diagonal.contains(diag) || antiDiagonal.contains(antiDiag))
continue;
column.add(col);
diagonal.add(diag);
antiDiagonal.add(antiDiag);
grid[row][col] = 'Q';
count+=this.countSolution(row+1, grid, column, diagonal, antiDiagonal, n);
column.remove(col);
diagonal.remove(diag);
antiDiagonal.remove(antiDiag);
grid[row][col] = '.';
}
return count;
}
public int totalNQueens(int n) {
char[][] grid = new char[n][n];
for(int i=0;i<n;i++){
Arrays.fill(grid[i], '.');
}
return this.countSolution(0, grid, new HashSet<Integer>(), new HashSet<Integer>(), new HashSet<Integer>(), n);
}
} | iamtanbirahmed/100DaysOfLC | 52.java |
328 | package com.driver;
public class Pizza {
private int price;
private Boolean isVeg;
private String bill;
private boolean cheeseAdded;
private boolean toppingsAdded;
private boolean takeAwayAdded;
private int c;
public Pizza(Boolean isVeg){
this.isVeg = isVeg;
this.cheeseAdded=false;
this.toppingsAdded=false;
this.takeAwayAdded=false;
// your code goes here
if(isVeg) this.price+=300;
else this.price+=400;
}
public int getPrice(){
return this.price;
}
public void addExtraCheese(){
// your code goes here
if(cheeseAdded==false){
this.price+=80;
this.cheeseAdded=true;
}
}
public void addExtraToppings(){
// your code goes here
if(isVeg && this.toppingsAdded==false){
this.price+=70;
this.toppingsAdded=true;
}
else if(isVeg==false && this.toppingsAdded==false){
this.price+=120;
this.toppingsAdded=true;
}
}
public void addTakeaway(){
// your code goes here
this.price+=20;
this.takeAwayAdded=true;
c++;
}
public String getBill(){
// your code goes here
int bp=0, ca=0, tp=0, pp=0;
if(isVeg) bp=300;
else bp=400;
if(cheeseAdded) ca=80;
if(isVeg && toppingsAdded) tp=70;
else if(isVeg==false && toppingsAdded) tp=120;
if(takeAwayAdded) pp=c*20;
if(cheeseAdded && toppingsAdded && takeAwayAdded) this.bill="Base Price Of The Pizza: " + bp + "\n" +
"Extra Cheese Added: " + ca + "\n" +
"Extra Toppings Added: " + tp + "\n" +
"Paperbag Added: " + pp + "\n" +
"Total Price: " + this.price + "\n";
else if(cheeseAdded && toppingsAdded && takeAwayAdded==false) this.bill="Base Price Of The Pizza: " + bp + "\n" +
"Extra Cheese Added: " + ca + "\n" +
"Extra Toppings Added: " + tp + "\n" +
"Total Price: " + this.price + "\n";
else if(cheeseAdded && toppingsAdded==false && takeAwayAdded) this.bill="Base Price Of The Pizza: " + bp + "\n" +
"Extra Cheese Added: " + ca + "\n" +
"Paperbag Added: " + pp + "\n" +
"Total Price: " + this.price + "\n";
else if(cheeseAdded==false && toppingsAdded && takeAwayAdded) this.bill="Base Price Of The Pizza: " + bp + "\n" +
"Extra Toppings Added: " + tp + "\n" +
"Paperbag Added: " + pp + "\n" +
"Total Price: " + this.price + "\n";
else if(cheeseAdded && toppingsAdded==false && takeAwayAdded==false) this.bill="Base Price Of The Pizza: " + bp + "\n" +
"Extra Cheese Added: " + ca + "\n" +
"Total Price: " + this.price + "\n";
else if(cheeseAdded==false && toppingsAdded && takeAwayAdded==false) this.bill="Base Price Of The Pizza: " + bp + "\n" +
"Extra Toppings Added: " + tp + "\n" +
"Total Price: " + this.price + "\n";
else if(cheeseAdded==false && toppingsAdded==false && takeAwayAdded) this.bill="Base Price Of The Pizza: " + bp + "\n" +
"Paperbag Added: " + pp + "\n" +
"Total Price: " + this.price + "\n";
else if(cheeseAdded==false && toppingsAdded==false && takeAwayAdded==false) this.bill="Base Price Of The Pizza: " + bp + "\n" +
"Total Price: " + this.price + "\n";
return this.bill;
}
}
| acciojob/pizza-billing-vijaybvk | pizza |
329 | /**
* Movie class, represents a Movie object
* @author ralexander
*
*/
public class Movie {
private String title;
private String rating;
private int soldTickets;
/**
* Default no-arg Constructor
*/
public Movie ()
{
title = "";
rating = "";
soldTickets = 0;
}
/**
* Copy Constructor that produces a deep copy of the argument
* @param m A Movie Object
*/
public Movie (Movie m)
{
title = m.title;
rating = m.rating;
soldTickets = m.soldTickets;
}
/**
* Constructor that takes data as input and sets them.
* @param title the title of the movie
* @param rating the rating of the movie
* @param soldTickets number of tickets sold at this theater
*/
public Movie(String title, String rating, int soldTickets) {
this.title = title;
this.rating = rating;
this.soldTickets = soldTickets;
}
/**
* Returns the movie's title
* @return a String corresponding to the movie title
*/
public String getTitle() {
return title;
}
/**
* sets movie's title
* @param title the title of the movie
*/
public void setTitle(String title) {
this.title = title;
}
/**
* returns movie's rating
* @return a string for movie rating
*/
public String getRating() {
return rating;
}
/**
* sets movie's rating
* @param rate movie rating
*/
public void setRating(String rating) {
this.rating = rating;
}
/**
* returns number of sold tickets
* @return an int representing number of tickets sold
* */
public int getSoldTickets() {
return soldTickets;
}
/**
* sets number of sold tickets
* @param soldTickets number of the soldTickets
*/
public void setSoldTickets(int soldTickets) {
this.soldTickets = soldTickets;
}
/**
* Returns a string with relevant movie information
*/
public String toString() {
return (this.title+" ("+this.rating+"): Tickets Sold: "+this.soldTickets);
}
}
| PaulAbili/CMSC203_Lab1 | Movie |
330 | import java.awt.*;
import java.awt.image.*;
import java.util.Arrays;
public class CartoonEffectApp extends JFrame {
// other components and methods as before...
private BufferedImage applyCartoonEffect(BufferedImage image) {
// Convert image to grayscale
BufferedImage grayscaleImage = convertToGrayscale(image);
// Apply median filter to reduce noise
BufferedImage medianFiltered = medianFilter(grayscaleImage, 3); // 3x3 median filter
// Apply edge detection using gradient-based method
BufferedImage edgeDetected = detectEdges(medianFiltered);
return edgeDetected;
}
private BufferedImage convertToGrayscale(BufferedImage image) {
BufferedImage grayImage = new BufferedImage(image.getWidth(), image.getHeight(), BufferedImage.TYPE_BYTE_GRAY);
Graphics g = grayImage.getGraphics();
g.drawImage(image, 0, 0, null);
g.dispose();
return grayImage;
}
private BufferedImage medianFilter(BufferedImage image, int size) {
int width = image.getWidth();
int height = image.getHeight();
BufferedImage result = new BufferedImage(width, height, BufferedImage.TYPE_BYTE_GRAY);
int radius = size / 2;
int[] pixels = new int[size * size];
for (int y = radius; y < height - radius; y++) {
for (int x = radius; x < width - radius; x++) {
image.getRGB(x - radius, y - radius, size, size, pixels, 0, size);
Arrays.sort(pixels);
int median = pixels[pixels.length / 2];
result.setRGB(x, y, median);
}
}
return result;
}
private BufferedImage detectEdges(BufferedImage image) {
int width = image.getWidth();
int height = image.getHeight();
BufferedImage result = new BufferedImage(width, height, BufferedImage.TYPE_BYTE_GRAY);
int[][] gradient = new int[width][height];
int maxGradient = Integer.MIN_VALUE;
// Compute gradients
for (int y = 0; y < height - 1; y++) {
for (int x = 0; x < width - 1; x++) {
int gx = Math.abs(image.getRGB(x + 1, y) - image.getRGB(x, y));
int gy = Math.abs(image.getRGB(x, y + 1) - image.getRGB(x, y));
int grad = gx + gy;
gradient[x][y] = grad;
if (grad > maxGradient) {
maxGradient = grad;
}
}
}
// Normalize gradients and set pixel values
for (int y = 0; y < height - 1; y++) {
for (int x = 0; x < width - 1; x++) {
int color = (int)(((double)gradient[x][y] / maxGradient) * 255);
// Ensure color value is within the expected range [0, 255]
color = Math.min(Math.max(color, 0), 255);
result.setRGB(x, y, new Color(color, color, color).getRGB());
}
}
return result;
}
}
| vern3432/CSC2620_Varano_Bouley_P2 | .java |
331 | import java.util.*;
public class H {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
int W = in.nextInt();
PriorityQueue<House> pq = new PriorityQueue<>();
for (int i = 0; i < n; i++) {
pq.add(new House(i, in.nextInt(), in.nextInt()));
}
for (int i = 0; i < n; i++) {
int sum = 0;
int sWei = 0;
for (House h : pq) {
if (h.i == i) continue;
int newW = sWei + h.wei;
if (newW > W) {
System.out.println(sum);
break;
} else {
sWei = newW;
sum += h.point;
}
}
}
}
}
class House implements Comparable<House> {
int i;
int wei;
int point;
double ratio;
House(int i, int wei, int point) {
this.i = i;
this.wei = wei;
this.point = point;
ratio = point / (double) wei;
System.out.println(i + " " + wei + " " + point + " " + ratio);
}
@Override
public boolean equals(Object obj) {
if (obj instanceof House) {
House other = (House) obj;
return wei == other.wei && point == other.point;
} else {
return false;
}
}
@Override
public int compareTo(House o) {
return (int) ((-ratio + o.ratio) * 100);
}
} | swiftyx/UW-ICPC-Qualifier-2019 | H.java |
332 | /*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/GUIForms/JFrame.java to edit this template
*/
/**
*
* @author Virginia
*/
public class OOP2 extends javax.swing.JFrame {
ImageIcon Imagebird = new imageIcon(filename:"bird.webp");
ImageIcon Imagecat = new imageIcon(filename:"cat.webp");
ImageIcon Imagedog = new imageIcon(filename:"dog.webp");
ImageIcon Imagerabbit = new imageIcon(filename:"rabbit.webp");
ImageIcon Imagepig = new imageIcon(filename:"pig.webp");
private ImageIcon imagerabbit;
private ImageIcon imagedog;
private ImageIcon imagecat;
private ImageIcon imagebird;
/**
* Creates new form OOP2
*/
public OOP2() {
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();
jPanel1 = new javax.swing.JPanel();
jRadioButton1 = new javax.swing.JRadioButton();
jRadioButton2 = new javax.swing.JRadioButton();
jRadioButton3 = new javax.swing.JRadioButton();
jRadioButton4 = new javax.swing.JRadioButton();
jRadioButton5 = new javax.swing.JRadioButton();
jLabel1.setText("jLabel1");
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
jRadioButton1.setBackground(new java.awt.Color(255, 102, 255));
jRadioButton1.setText("Bird");
jRadioButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton1ActionPerformed(evt);
}
});
jRadioButton2.setBackground(new java.awt.Color(153, 0, 255));
jRadioButton2.setText("Cat");
jRadioButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton2ActionPerformed(evt);
}
});
jRadioButton3.setBackground(new java.awt.Color(204, 0, 204));
jRadioButton3.setText("Dog ");
jRadioButton3.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton3ActionPerformed(evt);
}
});
jRadioButton4.setBackground(new java.awt.Color(255, 204, 204));
jRadioButton4.setText("Rabbit");
jRadioButton4.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton4ActionPerformed(evt);
}
});
jRadioButton5.setBackground(new java.awt.Color(255, 255, 204));
jRadioButton5.setText("Pig");
jRadioButton5.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton5ActionPerformed(evt);
}
});
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(15, 15, 15)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jRadioButton5)
.addComponent(jRadioButton4)
.addComponent(jRadioButton3)
.addComponent(jRadioButton2)
.addComponent(jRadioButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap(251, Short.MAX_VALUE))
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(14, 14, 14)
.addComponent(jRadioButton1)
.addGap(31, 31, 31)
.addComponent(jRadioButton2)
.addGap(36, 36, 36)
.addComponent(jRadioButton3)
.addGap(36, 36, 36)
.addComponent(jRadioButton4)
.addGap(40, 40, 40)
.addComponent(jRadioButton5)
.addContainerGap(89, Short.MAX_VALUE))
);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(20, 20, 20)
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(103, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(31, 31, 31)
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(33, Short.MAX_VALUE))
);
pack();
}// </editor-fold>//GEN-END:initComponents
private void jRadioButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButton1ActionPerformed
// TODO add your handling code here:
jLabell.setIcon(imagebird);
}//GEN-LAST:event_jRadioButton1ActionPerformed
private void jRadioButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButton2ActionPerformed
// TODO add your handling code here:
jLabell.setIcon(imagecat);
}//GEN-LAST:event_jRadioButton2ActionPerformed
private void jRadioButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButton3ActionPerformed
// TODO add your handling code here:
jLabell.setIcon(imagedog);
}//GEN-LAST:event_jRadioButton3ActionPerformed
private void jRadioButton4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButton4ActionPerformed
// TODO add your handling code here:
jLabell.setIcon(imagerabbit);
}//GEN-LAST:event_jRadioButton4ActionPerformed
private void jRadioButton5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButton5ActionPerformed
ImageIcon imagepig = null;
// TODO add your handling code here:
jLabell.setIcon(imagepig);
}//GEN-LAST:event_jRadioButton5ActionPerformed
/**
* @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(OOP2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(OOP2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(OOP2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(OOP2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
}
//</editor-fold>
/* Create and display the form */
java.awt.EventQueue.invokeLater(new Runnable() {
public void Run() {
new OOP2().setVisible(true);
}
@Override
public void run() {
throw new UnsupportedOperationException("Not supported yet."); // Generated from nbfs://nbhost/SystemFileSystem/Templates/Classes/Code/GeneratedMethodBody
}
});
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JLabel jLabel1;
private javax.swing.JPanel jPanel1;
private javax.swing.JRadioButton jRadioButton1;
private javax.swing.JRadioButton jRadioButton2;
private javax.swing.JRadioButton jRadioButton3;
private javax.swing.JRadioButton jRadioButton4;
private javax.swing.JRadioButton jRadioButton5;
// End of variables declaration//GEN-END:variables
}
| NamukuruLukorito/java | jframe |
333 | public class AlphabetO {
public static void main(String[] args) {
int height = 7; // height of the letter O
int width = 7; // width of the letter O
for (int i = 0; i < height; i++) {
for (int j = 0; j < width; j++) {
// Print '*' at the borders and spaces inside
if (i == 0 || i == height - 1 || j == 0 || j == width - 1) {
System.out.print("*");
} else {
System.out.print(" ");
}
}
System.out.println();
}
}
}
| venkatneelapu/java | O.java |
334 | package sistemaJAVAlar;
public class C extends Planetas {
public int limiteYMax = 15;
public int limiteYMin = 1;
public int limiteXMax = 15;
public int limiteXMin = 1;
protected int BugsQntPorPlaneta;
protected int DevsQntPorPlaneta;
int AreaPlanetas;
double dadosDeMovimento;
int cicloAnual = 56;
Impressao impressora = new Impressao();
public C() {
super(8, 15, "C", 10, 1); // Padrão de 0.0416 dias Python.
}
public void movimentarGeral(double tempo) {
for (int i = 0; i < tempo; i++) {
posX += movimentos[direcaoMovimento][0];
posY += movimentos[direcaoMovimento][1];
if (posX > limiteXMax) {
posX = limiteXMax;
direcaoMovimento = (direcaoMovimento + 1) % 4; // Muda a direção para baixo
dadosDeMovimento = dadosDeMovimento + 1;
} else if (posX < limiteXMin) {
posX = limiteXMin;
direcaoMovimento = (direcaoMovimento + 1) % 4; // Muda a direção para cima
dadosDeMovimento = dadosDeMovimento + 1;
}
if (posY > limiteYMax) {
posY = limiteYMax;
direcaoMovimento = (direcaoMovimento + 1) % 4; // Muda a direção para esquerda
dadosDeMovimento = dadosDeMovimento + 1;
} else if (posY < limiteYMin) {
posY = limiteYMin;
direcaoMovimento = (direcaoMovimento + 1) % 4; // Muda a direção para direita
dadosDeMovimento = dadosDeMovimento + 1;
}
}
setPosX(posX);
setPosY(posY);
AreaPlanetas = posX * posY;
impressora.imprimirMensagens("\nPlaneta: " + nome +
"\nA posicao X no instante é: " + posX +
"\nA posicao Y no instante é: " + posY +
"\nAno " + nome + ": " + cicloAnual / dadosDeMovimento +
"\nArea do planeta " + nome + ":" + AreaPlanetas);
impressora.imprimirApresentacoes("-> Apresentacao:\nC é uma linguagem de programação de baixo nível e procedural.\r\n"
+ "É frequentemente usado no desenvolvimento de sistemas operacionais, drivers de dispositivo e"
+ "\nsoftwares de baixo nível devido à sua eficiência e controle direto sobre o hardware.");
}
}
| limavinilucas/tecProgLuVini23-1 | C.java |
335 | import java.util.Scanner;
public class SalarioBruto {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print("Informe o número de horas trabalhadas no mês: ");
double hTrabalhadas = scanner.nextDouble();
System.out.print("Informe o valor recebido por hora de trabalho: ");
double valorHora = scanner.nextDouble();
System.out.print("Informeo valor do salário família: ");
double salario = scanner.nextDouble();
System.out.print("Informe o número de filhos com idade menor que 14 anos: ");
int Filhos = scanner.nextInt();
scanner.close();
double Bruto = (hTrabalhadas * valorHora) + (salario * Filhos);
System.out.println("O total do salário bruto a ser recebido é: " + Bruto);
}
}
| Pedro-HCM/una-lista-02-java-202302 | 5.java |
336 | import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
public class dp
extends eb.a
{
private double b;
dp() {}
public dp(double ☃)
{
this.b = ☃;
}
void a(DataOutput ☃)
throws IOException
{
☃.writeDouble(this.b);
}
void a(DataInput ☃, int ☃, dw ☃)
throws IOException
{
☃.a(128L);
this.b = ☃.readDouble();
}
public byte a()
{
return 6;
}
public String toString()
{
return "" + this.b + "d";
}
public eb b()
{
return new dp(this.b);
}
public boolean equals(Object ☃)
{
if (super.equals(☃))
{
dp ☃ = (dp)☃;
return this.b == ☃.b;
}
return false;
}
public int hashCode()
{
long ☃ = Double.doubleToLongBits(this.b);
return super.hashCode() ^ (int)(☃ ^ ☃ >>> 32);
}
public long c()
{
return Math.floor(this.b);
}
public int d()
{
return ns.c(this.b);
}
public short e()
{
return (short)(ns.c(this.b) & 0xFFFF);
}
public byte f()
{
return (byte)(ns.c(this.b) & 0xFF);
}
public double g()
{
return this.b;
}
public float h()
{
return (float)this.b;
}
}
| Tominous/LabyMod-1.8 | dp.java |
337 | class Solution {
class Project implements Comparable<Project> {
int capital, profit;
public Project(int capital, int profit) {
this.capital = capital;
this.profit = profit;
}
public int compareTo(Project project) {
return capital - project.capital;
}
}
public int findMaximizedCapital(int k, int w, int[] profits, int[] capital) {
int n = profits.length;
Project[] projects = new Project[n];
for (int i = 0; i < n; i++) {
projects[i] = new Project(capital[i], profits[i]);
}
Arrays.sort(projects);
// PriorityQueue is a min heap, but we need a max heap, so we use
// Collections.reverseOrder()
PriorityQueue<Integer> q = new PriorityQueue<Integer>(n, Collections.reverseOrder());
int ptr = 0;
for (int i = 0; i < k; i++) {
while (ptr < n && projects[ptr].capital <= w) {
q.add(projects[ptr++].profit);
}
if (q.isEmpty()) {
break;
}
w += q.poll();
}
return w;
}
}
| Atulkumar112/AlgoSage | Leetcode/Hard502. IPO.java |
338 | package io.luna;
import com.moandjiezana.toml.Toml;
import io.luna.util.LoggingSettings;
import io.netty.util.internal.logging.InternalLoggerFactory;
import io.netty.util.internal.logging.JdkLoggerFactory;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
/**
* Instantiates a {@link LunaServer} that will start Luna.
*
* @author lare96 <http://github.org/lare96>
*/
public final class Luna {
/**
* The asynchronous logger.
*/
private static final Logger logger;
/**
* The global settings.
*/
private static final LunaSettings settings;
/**
* The log4j2 settings.
*/
private static final LoggingSettings loggingSettings;
/**
* The mechanism used to read {@code .toml} files.
*/
private static final Toml TOML = new Toml();
/**
* A private constructor.
*/
private Luna() {
}
static {
try {
Thread.currentThread().setName("InitializationThread");
InternalLoggerFactory.setDefaultFactory(JdkLoggerFactory.INSTANCE);
loggingSettings = loadLoggingSettings();
System.setProperty("log4j2.configurationFactory", "io.luna.util.LoggingConfigurationFactory");
System.setProperty("log4j.skipJansi", "true");
System.setProperty("Log4jContextSelector",
"org.apache.logging.log4j.core.async.AsyncLoggerContextSelector");
logger = LogManager.getLogger();
settings = loadSettings();
} catch (Exception e) {
throw new ExceptionInInitializerError(e);
}
}
/**
* Invoked when this program is started, initializes Luna.
*
* @param args The program arguments, always ignored.
*/
public static void main(String[] args) {
try {
var luna = new LunaServer();
luna.init();
} catch (Exception e) {
logger.fatal("Luna could not be started.", e);
System.exit(0);
}
}
/**
* Loads the contents of the file and parses it into a {@link LunaSettings} object.
*
* @return The settings object.
*/
private static LunaSettings loadSettings() throws IOException {
try (var bufferedReader = Files.newBufferedReader(Path.of("data", "luna.toml"))) {
return TOML.read(bufferedReader).to(LunaSettings.class);
}
}
/**
* Loads the contents of the file and parses it into a {@link LoggingSettings} object.
*
* @return The logging settings object.
*/
private static LoggingSettings loadLoggingSettings() throws IOException {
try (var bufferedReader = Files.newBufferedReader(Path.of("data", "logging.toml"))) {
return TOML.read(bufferedReader).to(LoggingSettings.class);
}
}
/**
* @return The global settings.
*/
public static LunaSettings settings() {
return settings;
}
/**
* @return The logging settings.
*/
public static LoggingSettings loggingSettings() {
return loggingSettings;
}
}
| t0xk/luna-fork | src/main/java/io/luna/Luna.java |
343 | class Solution {
public int totalMoney(int n) {
int k = n / 7;
int F = 28;
int L = 28 + (k - 1) * 7;
int arithmeticSum = k * (F + L) / 2;
int monday = 1 + k;
int finalWeek = 0;
for (int day = 0; day < n % 7; day++) {
finalWeek += monday + day;
}
return arithmeticSum + finalWeek;
}
}
| praneetbang/leetcode | Q1716 |
344 | using System;
using System.Collections.Generic;
using System.Text;
using System.Net;
using System.Net.Sockets;
using System.Collections;
namespace ConsoleApplication1
{
public class Program
{
#region 一些telnet的数据定义,先没看懂没关系
/// <summary>
/// 标志符,代表是一个TELNET 指令
/// </summary>
readonly Char IAC = Convert.ToChar(255);
/// <summary>
/// 表示一方要求另一方使用,或者确认你希望另一方使用指定的选项。
/// </summary>
readonly Char DO = Convert.ToChar(253);
/// <summary>
/// 表示一方要求另一方停止使用,或者确认你不再希望另一方使用指定的选项。
/// </summary>
readonly Char DONT = Convert.ToChar(254);
/// <summary>
/// 表示希望开始使用或者确认所使用的是指定的选项。
/// </summary>
readonly Char WILL = Convert.ToChar(251);
/// <summary>
/// 表示拒绝使用或者继续使用指定的选项。
/// </summary>
readonly Char WONT = Convert.ToChar(252);
/// <summary>
/// 表示后面所跟的是对需要的选项的子谈判
/// </summary>
readonly Char SB = Convert.ToChar(250);
/// <summary>
/// 子谈判参数的结束
/// </summary>
readonly Char SE = Convert.ToChar(240);
const Char IS = '0';
const Char SEND = '1';
const Char INFO = '2';
const Char VAR = '0';
const Char VALUE = '1';
const Char ESC = '2';
const Char USERVAR = '3';
/// <summary>
/// 流
/// </summary>
byte[] m_byBuff = new byte[100000];
/// <summary>
/// 收到的控制信息
/// </summary>
private ArrayList m_ListOptions = new ArrayList();
/// <summary>
/// 存储准备发送的信息
/// </summary>
string m_strResp;
/// <summary>
/// 一个Socket套接字
/// </summary>
private Socket s;
#endregion
/// <summary>
/// 主函数
/// </summary>
/// <param name="args"></param>
static void Main(string[] args)
{
//实例化这个对象
Program p = new Program();
//启动socket进行telnet 链接
p.doSocket();
}
/// <summary>
/// 启动socket 进行telnet操作
/// </summary>
private void doSocket()
{
//获得链接的地址,可以是网址也可以是IP
Console.WriteLine("Server Address:");
//解析输入,如果是一个网址,则解析成ip
IPAddress import = GetIP(Console.ReadLine());
//获得端口号
Console.WriteLine("Server Port:");
int port = int.Parse(Console.ReadLine());
//建立一个socket对象,使用IPV4,使用流进行连接,使用tcp/ip 协议
s = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
//获得一个链接地址对象(由IP地址和端口号构成)
IPEndPoint address = new IPEndPoint(import, port);
/*
* 说明此socket不是处于阻止模式
*
* msdn 对阻止模式的解释:
* ============================================================
* 如果当前处于阻止模式,并且进行了一个并不立即完成的方法调用,
* 则应用程序将阻止执行,直到请求的操作完成后才解除阻止。
* 如果希望在请求的操作尚未完成的情况下也可以继续执行,
* 请将 Blocking 属性更改为 false。Blocking 属性对异步方法无效。
* 如果当前正在异步发送和接收数据,并希望阻止执行,
* 请使用 ManualResetEvent 类。
* ============================================================
*/
s.Blocking = false;
/*
* 开始一个对远程主机连接的异步请求,
* 因为Telnet 使用的是TCP 链接,是面向连接的,
* 所以此处BeginConnect 会启动一个异步请求,
* 请求获得与 给的address 的连接
*
* 此方法的第二个函数是一个类型为AsyncCallback 的委托
*
* 这个AsyncCallback msdn给出的定义如下
* ===================================================================
* 使用 AsyncCallback 委托在一个单独的线程中处理异步操作的结果。A
* syncCallback 委托表示在异步操作完成时调用的回调方法。
* 回调方法采用 IAsyncResult 参数,该参数随后可用来获取异步操作的结果。
* ===================================================================
* 这个方法里的委托实际上就是 当异步请求有回应了之后,执行委托的方法.
* 委托里的参数,实际上就是BeginConnect的第三个参数,
* 此处为socket 本身
*
* 我比较懒,写了一个匿名委托,实际上跟AsyncCallback 效果一个样.
*
*/
s.BeginConnect(
address,
delegate(IAsyncResult ar)
/*
* 此处为一个匿名委托,
* 实际上等于
* 建立一个AsyncCallback对象,指定后在此引用一个道理
*
* ok这里的意义是,
* 当远程主机连接的异步请求有响应的时候,执行以下语句
*/
{
try
{
//获得传入的对象 (此处对象是BeginConnect 的第三个参数)
Socket sock1 = (Socket)ar.AsyncState;
/*
* 如果 Socket 在最近操作时连接到远程资源,则为 true;否则为 false。
*
* 以下是MSDN 对Connected属性的备注信息
* =========================================================================
* Connected 属性获取截止到最后的 I/O 操作时 Socket 的连接状态。
* 当它返回 false 时,表明 Socket 要么从未连接,要么已断开连接。
*
* Connected 属性的值反映最近操作时的连接状态。如果您需要确定连接的当前状态,
* 请进行非阻止、零字节的 Send 调用。
* 如果该调用成功返回或引发 WAEWOULDBLOCK 错误代码 (10035),
* 则该套接字仍然处于连接状态;否则,该套接字不再处于连接状态。
* =========================================================================
*/
if (sock1.Connected)
{
AsyncCallback recieveData = new AsyncCallback(OnRecievedData);
/*
* 此处没再用匿名委托的原因是,
* 一个匿名委托嵌套一个匿名委托,我自己思路跟不上来了...
*
* ok,这里是当Connected 为true时,
* 使用BeginReceive 方法
* 开始接收信息到m_byBuff(我们在类中定义的私有属性)
*
* 以下是MSDN 对BeginReceive 的一些说明
* =========================================================================
* 异步 BeginReceive 操作必须通过调用 EndReceive 方法来完成。
* 通常,该方法由 callback 委托调用。此方法在操作完成前不会进入阻止状态。
* 若要一直阻塞到操作完成时为止,请使用 Receive 方法重载中的一个。
* 若要取消挂起的 BeginReceive,请调用 Close 方法。
* ==========================================================================
*
* 当接收完成之后,他们就会调用OnRecievedData方法
* 我在recieveData所委托的方法OnRecievedData 中调用了sock.EndReceive(ar);
*/
sock1.BeginReceive(m_byBuff, 0, m_byBuff.Length, SocketFlags.None, recieveData, sock1);
}
}
catch (Exception ex)
{
Console.WriteLine("初始化接收信息出错:" + ex.Message);
}
},
s);
//此处是为了发送指令而不停的循环
while (true)
{
//发送读出的数据
DispatchMessage(Console.ReadLine());
//因为每发送一行都没有发送回车,故在此处补上
DispatchMessage("\r\n");
}
}
/// <summary>
/// 当接收完成后,执行的方法(供委托使用)
/// </summary>
/// <param name="ar"></param>
private void OnRecievedData(IAsyncResult ar)
{
//从参数中获得给的socket 对象
Socket sock = (Socket)ar.AsyncState;
/*
* EndReceive方法为结束挂起的异步读取
* (貌似是在之前的beginReceive收到数据之后,
* socket只是"挂起",并未结束)
* 之后返回总共接收到的字流量
*
* 以下是MSDN给出的EndReceive 的注意事项
* =========================================================================================
* EndReceive 方法完成在 BeginReceive 方法中启动的异步读取操作。
*
* 在调用 BeginReceive 之前,需创建一个实现 AsyncCallback 委托的回调方法。
* 该回调方法在单独的线程中执行并在 BeginReceive 返回后由系统调用。
* 回调方法必须接受 BeginReceive 方法所返回的 IAsyncResult 作为参数。
*
* 在回调方法中,调用 IAsyncResult 的 AsyncState 方法以获取传递给 BeginReceive 方法的状态对象。
* 从该状态对象提取接收 Socket。在获取 Socket 之后,可以调用 EndReceive 方法以成功完成读取操作,
* 并返回已读取的字节数。
*
* EndReceive 方法将一直阻止到有数据可用为止。
* 如果您使用的是无连接协议,则 EndReceive 将读取传入网络缓冲区中第一个排队的可用数据报。
* 如果您使用的是面向连接的协议,则 EndReceive 方法将读取所有可用的数据,
* 直到达到 BeginReceive 方法的 size 参数所指定的字节数为止。
* 如果远程主机使用 Shutdown 方法关闭了 Socket 连接,并且所有可用数据均已收到,
* 则 EndReceive 方法将立即完成并返回零字节。
*
* 若要获取接收到的数据,请调用 IAsyncResult 的 AsyncState 方法,
* 然后提取所产生的状态对象中包含的缓冲区。
*
* 若要取消挂起的 BeginReceive,请调用 Close 方法。
* =========================================================================================
*/
int nBytesRec = sock.EndReceive(ar);
//如果有接收到数据的话
if (nBytesRec > 0)
{
//将接收到的数据转个码,顺便转成string型
string sRecieved = Encoding.GetEncoding("utf-8").GetString(m_byBuff, 0, nBytesRec);
//声明一个字符串,用来存储解析过的字符串
string m_strLine = "";
//遍历Socket接收到的字符
/*
* 此循环用来调整linux 和 windows在换行上标记的区别
* 最后将调整好的字符赋予给 m_strLine
*/
for (int i = 0; i < nBytesRec; i++)
{
Char ch = Convert.ToChar(m_byBuff[i]);
switch (ch)
{
case '\r':
m_strLine += Convert.ToString("\r\n");
break;
case '\n':
break;
default:
m_strLine += Convert.ToString(ch);
break;
}
}
try
{
//获得转义后的字符串的长度
int strLinelen = m_strLine.Length;
//如果长度为零
if (strLinelen == 0)
{
//则返回"\r\n" 即回车换行
m_strLine = Convert.ToString("\r\n");
}
//建立一个流,把接收的信息(转换后的)存进 mToProcess 中
Byte[] mToProcess = new Byte[strLinelen];
for (int i = 0; i < strLinelen; i++)
mToProcess[i] = Convert.ToByte(m_strLine[i]);
// Process the incoming data
//对接收的信息进行处理,包括对传输过来的信息的参数的存取和
string mOutText = ProcessOptions(mToProcess);
//解析命令后返回 显示信息(即除掉了控制信息)
if (mOutText != "")
Console.Write(mOutText);
// Respond to any incoming commands
//接收完数据,处理完字符串数据等一系列事物之后,开始回发数据
RespondToOptions();
}
catch (Exception ex)
{
throw new Exception("接收数据的时候出错了! " + ex.Message);
}
}
else// 如果没有接收到任何数据的话
{
// 输出 关闭连接
Console.WriteLine("Disconnected", sock.RemoteEndPoint);
// 关闭socket
sock.Shutdown(SocketShutdown.Both);
sock.Close();
Console.Write("Game Over");
Console.ReadLine();
}
}
/// <summary>
/// 发送数据的函数
/// </summary>
private void RespondToOptions()
{
try
{
//声明一个字符串,来存储 接收到的参数
string strOption;
/*
* 此处的控制信息参数,是之前接受到信息之后保存的
* 例如 255 253 23 等等
* 具体参数的含义需要去查telnet 协议
*/
for (int i = 0; i < m_ListOptions.Count; i++)
{
//获得一个控制信息参数
strOption = (string)m_ListOptions[i];
//根据这个参数,进行处理
ArrangeReply(strOption);
}
DispatchMessage(m_strResp);
m_strResp = "";
m_ListOptions.Clear();
}
catch (Exception ers)
{
Console.WriteLine("错错了,在回发数据的时候 " + ers.Message);
}
}
/// <summary>
/// 解析接收的数据,生成最终用户看到的有效文字,同时将附带的参数存储起来
/// </summary>
/// <param name="m_strLineToProcess">收到的处理后的数据</param>
/// <returns></returns>
private string ProcessOptions(byte[] m_strLineToProcess)
{
string m_DISPLAYTEXT = "";
string m_strTemp = "";
string m_strOption = "";
string m_strNormalText = "";
bool bScanDone = false;
int ndx = 0;
int ldx = 0;
char ch;
try
{
//把数据从byte[] 转化成string
for (int i = 0; i < m_strLineToProcess.Length; i++)
{
Char ss = Convert.ToChar(m_strLineToProcess[i]);
m_strTemp = m_strTemp + Convert.ToString(ss);
}
//此处意义为,当没描完数据前,执行扫描
while (bScanDone != true)
{
//获得长度
int lensmk = m_strTemp.Length;
//之后开始分析指令,因为每条指令为255 开头,故可以用此来区分出每条指令
ndx = m_strTemp.IndexOf(Convert.ToString(IAC));
//此处为出错判断,本无其他含义
if (ndx > lensmk)
ndx = m_strTemp.Length;
//此处为,如果搜寻到IAC标记的telnet 指令,则执行以下步骤
if (ndx != -1)
{
#region 如果存在IAC标志位
// 将 标志位IAC 的字符 赋值给最终显示文字
m_DISPLAYTEXT += m_strTemp.Substring(0, ndx);
// 此处获得命令码
ch = m_strTemp[ndx + 1];
//如果命令码是253(DO) 254(DONT) 521(WILL) 252(WONT) 的情况下
if (ch == DO || ch == DONT || ch == WILL || ch == WONT)
{
//将以IAC 开头3个字符组成的整个命令存储起来
m_strOption = m_strTemp.Substring(ndx, 3);
m_ListOptions.Add(m_strOption);
// 将 标志位IAC 的字符 赋值给最终显示文字
m_DISPLAYTEXT += m_strTemp.Substring(0, ndx);
//将处理过的字符串删去
string txt = m_strTemp.Substring(ndx + 3);
m_strTemp = txt;
}
//如果IAC后面又跟了个IAC (255)
else if (ch == IAC)
{
//则显示从输入的字符串头开始,到之前的IAC 结束
m_DISPLAYTEXT = m_strTemp.Substring(0, ndx);
//之后将处理过的字符串排除出去
m_strTemp = m_strTemp.Substring(ndx + 1);
}
//如果IAC后面跟的是SB(250)
else if (ch == SB)
{
m_DISPLAYTEXT = m_strTemp.Substring(0, ndx);
ldx = m_strTemp.IndexOf(Convert.ToString(SE));
m_strOption = m_strTemp.Substring(ndx, ldx);
m_ListOptions.Add(m_strOption);
m_strTemp = m_strTemp.Substring(ldx);
}
#endregion
}
//若字符串里已经没有IAC标志位了
else
{
//显示信息累加上m_strTemp存储的字段
m_DISPLAYTEXT = m_DISPLAYTEXT + m_strTemp;
bScanDone = true;
}
}
//输出人看到的信息
m_strNormalText = m_DISPLAYTEXT;
}
catch (Exception eP)
{
throw new Exception("解析传入的字符串错误:" + eP.Message);
}
return m_strNormalText;
}
/// <summary>
/// 获得IP地址
/// </summary>
/// <param name="import"></param>
/// <returns></returns>
private static IPAddress GetIP(string import)
{
IPHostEntry IPHost = Dns.GetHostEntry(import);
return IPHost.AddressList[0];
}
#region magic Function
//解析传过来的参数,生成回发的数据到m_strResp
private void ArrangeReply(string strOption)
{
try
{
Char Verb;
Char Option;
Char Modifier;
Char ch;
bool bDefined = false;
//排错选项,无啥意义
if (strOption.Length < 3) return;
//获得命令码
Verb = strOption[1];
//获得选项码
Option = strOption[2];
//如果选项码为 回显(1) 或者是抑制继续进行(3)
if (Option == 1 || Option == 3)
{
bDefined = true;
}
// 设置回发消息,首先为标志位255
m_strResp += IAC;
//如果选项码为 回显(1) 或者是抑制继续进行(3) ==true
if (bDefined == true)
{
#region 继续判断
//如果命令码为253 (DO)
if (Verb == DO)
{
//我设置我应答的命令码为 251(WILL) 即为支持 回显或抑制继续进行
ch = WILL;
m_strResp += ch;
m_strResp += Option;
}
//如果命令码为 254(DONT)
if (Verb == DONT)
{
//我设置我应答的命令码为 252(WONT) 即为我也会"拒绝启动" 回显或抑制继续进行
ch = WONT;
m_strResp += ch;
m_strResp += Option;
}
//如果命令码为251(WILL)
if (Verb == WILL)
{
//我设置我应答的命令码为 253(DO) 即为我认可你使用回显或抑制继续进行
ch = DO;
m_strResp += ch;
m_strResp += Option;
//break;
}
//如果接受到的命令码为251(WONT)
if (Verb == WONT)
{
//应答 我也拒绝选项请求回显或抑制继续进行
ch = DONT;
m_strResp += ch;
m_strResp += Option;
// break;
}
//如果接受到250(sb,标志子选项开始)
if (Verb == SB)
{
/*
* 因为启动了子标志位,命令长度扩展到了4字节,
* 取最后一个标志字节为选项码
* 如果这个选项码字节为1(send)
* 则回发为 250(SB子选项开始) + 获取的第二个字节 + 0(is) + 255(标志位IAC) + 240(SE子选项结束)
*/
Modifier = strOption[3];
if (Modifier == SEND)
{
ch = SB;
m_strResp += ch;
m_strResp += Option;
m_strResp += IS;
m_strResp += IAC;
m_strResp += SE;
}
}
#endregion
}
else //如果选项码不是1 或者3
{
#region 底下一系列代表,无论你发那种请求,我都不干
if (Verb == DO)
{
ch = WONT;
m_strResp += ch;
m_strResp += Option;
}
if (Verb == DONT)
{
ch = WONT;
m_strResp += ch;
m_strResp += Option;
}
if (Verb == WILL)
{
ch = DONT;
m_strResp += ch;
m_strResp += Option;
}
if (Verb == WONT)
{
ch = DONT;
m_strResp += ch;
m_strResp += Option;
}
#endregion
}
}
catch (Exception eeeee)
{
throw new Exception("解析参数时出错:" + eeeee.Message);
}
}
/// <summary>
/// 将信息转化成charp[] 流的形式,使用socket 进行发出
/// 发出结束之后,使用一个匿名委托,进行接收,
/// 之后这个委托里,又有个委托,意思是接受完了之后执行OnRecieveData 方法
///
/// </summary>
/// <param name="strText"></param>
void DispatchMessage(string strText)
{
try
{
//申请一个与字符串相当长度的char流
Byte[] smk = new Byte[strText.Length];
for (int i = 0; i < strText.Length; i++)
{
//解析字符串,将其存储到char流中去
Byte ss = Convert.ToByte(strText[i]);
smk[i] = ss;
}
//发送char流,之后发送完毕后执行委托中的方法(此处为匿名委托)
/*MSDN 对BeginSend 的解释
* =======================================================================================================
* BeginSend 方法可对在 Connect、BeginConnect、Accept 或 BeginAccept 方法中建立的远程主机启动异步发送操作。
* 如果没有首先调用 Accept、BeginAccept、Connect 或 BeginConnect,则 BeginSend 将会引发异常。
* 调用 BeginSend 方法将使您能够在单独的执行线程中发送数据。
* 您可以创建一个实现 AsyncCallback 委托的回调方法并将它的名称传递给 BeginSend 方法。
* 为此,您的 state 参数至少必须包含用于通信的已连接或默认 Socket。
* 如果回调需要更多信息,则可以创建一个小型类或结构,用于保存 Socket 和其他所需的信息。
* 通过 state 参数将此类的一个实例传递给 BeginSend 方法。
* 回调方法应调用 EndSend 方法。
* 当应用程序调用 BeginSend 时,系统将使用一个单独的线程来执行指定的回调方法,
* 并阻止 EndSend,直到 Socket 发送了请求的字节数或引发了异常为止。
* 如果希望在调用 BeginSend 方法之后使原始线程阻止,请使用 WaitHandle.WaitOne 方法。
* 当需要原始线程继续执行时,请在回调方法中调用 T:System.Threading.ManualResetEvent 的 Set 方法。
* 有关编写回调方法的其他信息,请参见 Callback 示例。
* =======================================================================================================
*/
IAsyncResult ar2 = s.BeginSend(smk, 0, smk.Length, SocketFlags.None, delegate(IAsyncResult ar)
{
//当执行完"发送数据" 这个动作后
// 获取Socket对象,对象从beginsend 中的最后个参数上获得
Socket sock1 = (Socket)ar.AsyncState;
if (sock1.Connected)//如果连接还是有效
{
//这里建立一个委托
AsyncCallback recieveData = new AsyncCallback(OnRecievedData);
/*
* 此处为:开始接受数据(在发送完毕之后-->出自于上面的匿名委托),
* 当接收完信息之后,执行OnrecieveData方法(由委托传进去),
* 注意,是异步调用
*/
sock1.BeginReceive(m_byBuff, 0, m_byBuff.Length, SocketFlags.None, recieveData, sock1);
}
}, s);
/*
* 结束 异步发送
* EndSend 完成在 BeginSend 中启动的异步发送操作。
* 在调用 BeginSend 之前,需创建一个实现 AsyncCallback 委托的回调方法。
* 该回调方法在单独的线程中执行并在 BeginSend 返回后由系统调用。
* 回调方法必须接受 BeginSend 方法所返回的 IAsyncResult 作为参数。
*
* 在回调方法中,调用 IAsyncResult 参数的 AsyncState 方法可以获取发送 Socket。
* 在获取 Socket 之后,则可以调用 EndSend 方法以成功完成发送操作,并返回发送的字节数。
*/
s.EndSend(ar2);
}
catch (Exception ers)
{
Console.WriteLine("出错了,在回发数据的时候:" + ers.Message);
}
}
#endregion
}
} | readloud/kscan | lib/gotelnet/telnet_java.java |
345 | import java.util.*;
class Node {
int data;
int depth;
Node left, right;
Node(int value, int d) {
data = value;
depth = d;
left = right = null;
}
}
class Main {
Node root;
Main() {
root = null;
}
void insert(int value, int depth) {
root = insertRec(root, value, depth);
}
Node insertRec(Node root, int value, int depth) {
if (root == null)
return new Node(value, depth);
if (value < root.data)
root.left = insertRec(root.left, value, depth + 1);
else if (value > root.data)
root.right = insertRec(root.right, value, depth + 1);
return root;
}
static class Pair {
int hd;
Node node;
public Pair(int hd, Node node) {
this.node = node;
this.hd = hd;
}
}
void topView() {
Queue<Pair> q = new ArrayDeque<>();
Map<Integer, Integer> map = new TreeMap<>();
q.add(new Pair(0, root));
while (!q.isEmpty()) {
Pair cur = q.poll();
if (!map.containsKey(cur.hd)) {
map.put(cur.hd, cur.node.data);
}
if (cur.node.left != null) {
q.add(new Pair(cur.hd - 1, cur.node.left));
}
if (cur.node.right != null) {
q.add(new Pair(cur.hd + 1, cur.node.right));
}
}
for (int val : map.values()) {
System.out.print(val + " ");
}
}
void bottomView() {
if (root == null)
return;
Queue<Pair> q = new LinkedList<>();
Map<Integer, Integer> map = new TreeMap<>();
q.add(new Pair(0, root));
while (!q.isEmpty()) {
Pair cur = q.poll();
map.put(cur.hd, cur.node.data);
if (cur.node.left != null) {
q.add(new Pair(cur.hd - 1, cur.node.left));
}
if (cur.node.right != null) {
q.add(new Pair(cur.hd + 1, cur.node.right));
}
}
for (int val : map.values()) {
System.out.print(val + " ");
}
}
void lefthelper(Node root,ArrayList<Integer> ans,int level){
if(root == null){
return;
}
if (level == ans.size()) {
ans.add(root.data);
}
lefthelper(root.left,ans,level+1);
lefthelper(root.right,ans,level+1);
}
public static boolean getPath(Node root,int n ,ArrayList<Node> path){
if(root==null)return false;
path.add(root);
if(root.data == n){
return true;
}
boolean foundLeft = getPath(root.left, n, path);
boolean foundRight = getPath(root.right, n, path);
if(foundLeft || foundRight){
return true;
}
path.remove(path.size() - 1);
return false;
}
public static Node lca(Node root,int n1,int n2){
ArrayList<Node> path1 = new ArrayList<>();
ArrayList<Node> path2 = new ArrayList<>();
getPath(root, n1 , path1);
getPath(root, n2 , path2);
int i =0;
for(;i<path1.size() && i<path2.size();i++){
if(path1.get(i) != path2.get(i)){
break;
}
}
Node lca = path1.get(i - 1);
return lca;
}
public static void main(String args[]) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
Main tree = new Main();
for (int i = 0; i < n; i++) {
int value = scanner.nextInt();
int depth = scanner.nextInt();
tree.insert(value, depth);
}
tree.topView();
// tree.bottomView();
scanner.close();
}
}
class Graph {
private Map<Integer, List<Integer>> adjList;
public Graph() {
adjList = new HashMap<>();
}
public void addEdge(int u, int v) {
adjList.computeIfAbsent(u, k -> new ArrayList<>()).add(v);
}
public void dfs(int start) {
boolean[] visited = new boolean[adjList.size()];
dfsUtil(start, visited);
}
private void dfsUtil(int v, boolean[] visited) {
visited[v] = true;
System.out.print(v + " ");
List<Integer> neighbors = adjList.getOrDefault(v, Collections.emptyList());
for (int neighbor : neighbors) {
if (!visited[neighbor]) {
dfsUtil(neighbor, visited);
}
}
}
public void bfs(int start) {
boolean[] visited = new boolean[adjList.size()];
Queue<Integer> queue = new LinkedList<>();
visited[start] = true;
queue.offer(start);
while (!queue.isEmpty()) {
int current = queue.poll();
System.out.print(current + " ");
List<Integer> neighbors = adjList.getOrDefault(current, Collections.emptyList());
for (int neighbor : neighbors) {
if (!visited[neighbor]) {
visited[neighbor] = true;
queue.offer(neighbor);
}
}
}
}
}
public class Main {
public static void main(String[] args) {
Graph graph = new Graph();
graph.addEdge(0, 1);
System.out.print("DFS starting from vertex 2: ");
graph.dfs(2);
System.out.println();
}
}
//Linear Probing
Map<Integer,Integer> hm = new HashMap<>();
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
for(int i = 0 ; i<n; i++)
{
int num = sc.nextInt();
int key = num%5;
while(hm.containsKey(key)==true)
{
key++;
}
hm.put(key,num);
}
System.out.print(hm);
for (int i = 0; i < n; i++) {
int num = sc.nextInt();
int key = num % 7;
// Quadratic probing
int k = 1;
int originalKey = key;
while (hm.containsKey(key)) {
key = (originalKey + k * k) % 7;
k++;
}
hm.put(key, num);
}
| harshraj29/DSA-Notebook | s.java |
346 |
import java.io.Console;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.RandomAccessFile;
import java.security.Key;
import java.security.KeyStore;
import java.security.PrivateKey;
import java.security.PublicKey;
import java.security.SecureRandom;
import java.security.Security;
import java.security.cert.Certificate;
import javax.crypto.Cipher;
import javax.crypto.KeyGenerator;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;
//The standard Java crypto libraries don't do CCM mode as default,
// so we will need another provider.
import org.bouncycastle.jce.provider.BouncyCastleProvider;
public class EncDecTool {
static String inFile = "plainText.txt";
static String outFile = "cipherText.enc";
static String hexKey="3eafda76cd8b015641cb946708675423";
static String keyStore;
static String keyName;
public static void main(String[] args) {
// Handle the command line arguments
if (args.length==4 && args[0].equals("-encAESCTR") && args[1].length()==32 ) {
hexKey = args[1];
inFile = args[2];
outFile = args[3];
encryptAESCTR();
} else if (args.length==4 && args[0].equals("-decAESCTR") &&args[1].length()==32 ) {
hexKey = args[1];
inFile = args[2];
outFile = args[3];
decryptAESCTR();
} else if (args.length==4 && args[0].equals("-encAESCCM") && args[1].length()==32 ) {
hexKey = args[1];
inFile = args[2];
outFile = args[3];
encryptAESCCM();
} else if (args.length==4 && args[0].equals("-decAESCCM") &&args[1].length()==32 ) {
hexKey = args[1];
inFile = args[2];
outFile = args[3];
decryptAESCCM();
} else if (args.length==5 && args[0].equals("-encRSA") ) {
keyStore = args[1];
keyName = args[2];
inFile = args[3];
outFile = args[4];
encryptRSA();
} else if (args.length==5 && args[0].equals("-decRSA") ) {
keyStore = args[1];
keyName = args[2];
inFile = args[3];
outFile = args[4];
decryptRSA();
} else if (args.length==1 && args[0].equals("-genAES")) {
generateKey();
} else {
System.out.println("This is a simple program to encrypt and decrypt files");
System.out.println("Usage: ");
System.out.println(" -encAESCTR <key:128 bits in as hex> <inputFile> <outputFile> AES CTR mode encrypt");
System.out.println(" -decAESCTR <key:128 bits in as hex> <inputFile> <outputFile> AES CTR mode decrypt");
System.out.println(" -encAESCCM <key:128 bits in as hex> <inputFile> <outputFile> AES CCM mode encrypt");
System.out.println(" -decAESCCM <key:128 bits in as hex> <inputFile> <outputFile> AES CCM modedecrypt");
System.out.println(" -encRSA <keyStore> <keyName> <inputFile> <outputFile> RSA encrypt");
System.out.println(" -decRSA <keyStore> <keyName> <inputFile> <outputFile> RSA decrypt");
System.out.println(" -genAES generate an AES key");}
}
private static void encryptRSA() {
try {
//Get the public key from the keyStore and set up the Cipher object
PublicKey publicKey = getPubKey(keyStore,keyName);
Cipher rsaCipher = Cipher.getInstance("RSA");
rsaCipher.init(Cipher.ENCRYPT_MODE, publicKey);
//Read the plainText
System.out.println("Loading plaintext file: "+inFile);
RandomAccessFile rawDataFromFile = new RandomAccessFile(inFile, "r");
byte[] plainText = new byte[(int)rawDataFromFile.length()];
rawDataFromFile.read(plainText);
// Generate a symmetric key to encrypt the data and initiate the AES Cipher Object
System.out.println("Generating AES key");
KeyGenerator sKenGen = KeyGenerator.getInstance("AES");
Key aesKey = sKenGen.generateKey();
Cipher aesCipher = Cipher.getInstance("AES");
aesCipher.init(Cipher.ENCRYPT_MODE, aesKey);
// Encrypt the symmetric AES key with the public RSA key
System.out.println("Encrypting Data");
byte[] encodedKey = rsaCipher.doFinal(aesKey.getEncoded());
// Encrypt the plaintext with the AES key
byte[] cipherText = aesCipher.doFinal(plainText);
//Write the encrypted AES key and Ciphertext to the file.
System.out.println("Writting to file: "+outFile);
FileOutputStream outToFile = new FileOutputStream(outFile);
outToFile.write(encodedKey);
outToFile.write(cipherText);
System.out.println("Closing Files");
rawDataFromFile.close();
outToFile.close();
}
catch (Exception e) {
System.out.println("Doh: "+e);
}
}
private static PublicKey getPubKey(String keyStoreFile, String keyName) {
PublicKey publicKey = null;
try {
// Load the keyStore
KeyStore myKeyStore = KeyStore.getInstance("JKS");
FileInputStream inStream = new FileInputStream(keyStoreFile);
//Get the keyStore password, using Console lets us mask the password
Console console = System.console();
char[] password = console.readPassword("Enter your secret password: ");
myKeyStore.load(inStream, password);
Certificate cert = myKeyStore.getCertificate(keyName);
publicKey = cert.getPublicKey();
}
catch (Exception e) {
System.out.println("Doh: "+e);
}
return publicKey;
}
private static PrivateKey getPrivKey(String keyStoreFile, String keyName) {
PrivateKey privateKey = null;
try {
// Load the keyStore
KeyStore myKeyStore = KeyStore.getInstance("JKS");
FileInputStream inStream = new FileInputStream(keyStoreFile);
//Get the keyStore password, using Console lets us mask the password
Console console = System.console();
char[] password = console.readPassword("Enter your secret password: ");
myKeyStore.load(inStream, password);
privateKey = (PrivateKey) myKeyStore.getKey(keyName, password);
}
catch (Exception e) {
System.out.println("Doh: "+e);
}
return privateKey;
}
private static void decryptRSA() {
try {
//Get the private key from the keyStore and set up the Cipher object
PrivateKey privateKey = getPrivKey(keyStore,keyName);
Cipher rsaCipher = Cipher.getInstance("RSA");
rsaCipher.init(Cipher.DECRYPT_MODE, privateKey);
//Read the cipher text
System.out.println("Loading ciphertext file: "+inFile);
RandomAccessFile rawDataFromFile = new RandomAccessFile(inFile, "r");
byte encodedKey[] = new byte[256];
byte[] cipherText = new byte[(int)rawDataFromFile.length() - 256];
rawDataFromFile.read(encodedKey);
rawDataFromFile.read(cipherText);
// Decrypt the symmetric AES key with the private RSA key
System.out.println("Decrypting Data");
byte[] aesKey = rsaCipher.doFinal(encodedKey);
SecretKeySpec aesKeySpec = new SecretKeySpec(aesKey, "AES");
// Decrypt the ciphertext with the AES key
Cipher aesCipher = Cipher.getInstance("AES");
aesCipher.init(Cipher.DECRYPT_MODE, aesKeySpec);
byte[] plainText = aesCipher.doFinal(cipherText);
//Write the encrypted AES key and Ciphertext to the file.
System.out.println("Writing to file: "+outFile);
FileOutputStream outToFile = new FileOutputStream(outFile);
outToFile.write(plainText);
System.out.println("Closing Files");
rawDataFromFile.close();
outToFile.close();
}
catch (Exception e) {
System.out.println("Doh: "+e);
}
}
private static void decryptAESCTR() {
try {
// Open and read the input file
// N.B. this program reads the whole file into memory, not good for large programs!
RandomAccessFile rawDataFromFile = new RandomAccessFile(inFile, "r");
byte[] cipherText = new byte[(int) (rawDataFromFile.length() - 16)];
byte iv[] = new byte[16];
rawDataFromFile.read(iv);
rawDataFromFile.read(cipherText);
rawDataFromFile.close();
//Set up the AES key & cipher object in CTR mode
SecretKeySpec secretKeySpec = new SecretKeySpec(hexStringToByteArray(hexKey), "AES");
Cipher decAESCTRcipher = Cipher.getInstance("AES/CTR/PKCS5Padding");
IvParameterSpec ivSpec = new IvParameterSpec(iv);
decAESCTRcipher.init(Cipher.DECRYPT_MODE, secretKeySpec,ivSpec);
//Decrypt the data
byte[] plainText = decAESCTRcipher.doFinal(cipherText);
//Write file to disk
System.out.println("Openning file to write: "+outFile);
FileOutputStream outToFile = new FileOutputStream(outFile);
outToFile.write(plainText);
outToFile.close();
System.out.println(inFile+" decrypted as "+outFile);
} catch (Exception e){
System.out.println("doh "+e);
}
}
private static void decryptAESCCM() {
try {
// Open and read the input file
// N.B. this program reads the whole file into memory, not good for large programs!
RandomAccessFile rawDataFromFile = new RandomAccessFile(inFile, "r");
byte[] cipherText = new byte[(int) (rawDataFromFile.length()-10)];
byte iv[] = new byte[10];
rawDataFromFile.read(iv);
rawDataFromFile.read(cipherText);
rawDataFromFile.close();
//Set up the AES key & cipher object in CCM mode
SecretKeySpec secretKeySpec = new SecretKeySpec(hexStringToByteArray(hexKey), "AES");
// Add a security provider that actually does provide CCM mode
Security.insertProviderAt(new BouncyCastleProvider(), 1);
Cipher decAESCCMcipher = Cipher.getInstance("AES/CCM/NoPadding","BC");
IvParameterSpec ivSpec = new IvParameterSpec(iv);
decAESCCMcipher.init(Cipher.DECRYPT_MODE, secretKeySpec,ivSpec);
//Encrypt the data
byte[] plainText = decAESCCMcipher.doFinal(cipherText);
//Write file to disk
System.out.println("Openning file to write: "+outFile);
FileOutputStream outToFile = new FileOutputStream(outFile);
outToFile.write(plainText);
outToFile.close();
System.out.println(inFile+" encrypted as "+outFile);
} catch (Exception e){
System.out.println("doh "+e);
}
}
private static void generateKey() {
try {
KeyGenerator sGen = KeyGenerator.getInstance("AES");
Key aesKey = sGen.generateKey();
System.out.println("Here are some bytes you can use as an AES key: "+byteArrayToHexString(aesKey.getEncoded()));
} catch (Exception e){
System.out.println("doh "+e);
}
}
private static void encryptAESCTR() {
try {
// Open and read the input file
// N.B. this program reads the whole file into memory, not good for large programs!
RandomAccessFile rawDataFromFile = new RandomAccessFile(inFile, "r");
byte[] plainText = new byte[(int) rawDataFromFile.length()];
rawDataFromFile.read(plainText);
rawDataFromFile.close();
//Set up the AES key & cipher object in CTR mode
SecretKeySpec secretKeySpec = new SecretKeySpec(hexStringToByteArray(hexKey), "AES");
Cipher encAESCTRcipher = Cipher.getInstance("AES/CTR/PKCS5Padding");
SecureRandom random = new SecureRandom();
byte iv[] = new byte[16];
random.nextBytes(iv);
IvParameterSpec ivSpec = new IvParameterSpec(iv);
encAESCTRcipher.init(Cipher.ENCRYPT_MODE, secretKeySpec,ivSpec);
//Encrypt the data
byte[] cipherText = encAESCTRcipher.doFinal(plainText);
//Write file to disk
System.out.println("Openning file to write: "+outFile);
FileOutputStream outToFile = new FileOutputStream(outFile);
outToFile.write(iv);
outToFile.write(cipherText);
outToFile.close();
System.out.println(inFile+" encrypted as "+outFile);
} catch (Exception e){
System.out.println("doh "+e);
}
}
private static void encryptAESCCM() {
try {
// Open and read the input file
// N.B. this program reads the whole file into memory, not good for large programs!
RandomAccessFile rawDataFromFile = new RandomAccessFile(inFile, "r");
byte[] plainText = new byte[(int) rawDataFromFile.length()];
rawDataFromFile.read(plainText);
rawDataFromFile.close();
//Set up the AES key & cipher object in CCM mode
SecretKeySpec secretKeySpec = new SecretKeySpec(hexStringToByteArray(hexKey), "AES");
// Add a security provider that actually does provide CCM mode
Security.insertProviderAt(new BouncyCastleProvider(), 1);
Cipher encAESCCMcipher = Cipher.getInstance("AES/CCM/NoPadding","BC");
SecureRandom random = new SecureRandom();
byte iv[] = new byte[10]; // BC needs us to leave room for the counter
random.nextBytes(iv);
IvParameterSpec ivSpec = new IvParameterSpec(iv);
encAESCCMcipher.init(Cipher.ENCRYPT_MODE, secretKeySpec,ivSpec);
//Encrypt the data
byte[] cipherText = encAESCCMcipher.doFinal(plainText);
//Write file to disk
System.out.println("Openning file to write: "+outFile);
FileOutputStream outToFile = new FileOutputStream(outFile);
outToFile.write(iv);
outToFile.write(cipherText);
outToFile.close();
System.out.println(inFile+" encrypted as "+outFile);
} catch (Exception e){
System.out.println("doh "+e);
}
}
// Code from http://www.anyexample.com/programming/java/java%5Fsimple%5Fclass%5Fto%5Fcompute%5Fmd5%5Fhash.xml
private static String byteArrayToHexString(byte[] data) {
StringBuffer buf = new StringBuffer();
for (int i = 0; i < data.length; i++) {
int halfbyte = (data[i] >>> 4) & 0x0F;
int two_halfs = 0;
do {
if ((0 <= halfbyte) && (halfbyte <= 9))
buf.append((char) ('0' + halfbyte));
else
buf.append((char) ('a' + (halfbyte - 10)));
halfbyte = data[i] & 0x0F;
} while(two_halfs++ < 1);
}
return buf.toString();
}
// Code from http://javaconversions.blogspot.co.uk
private static byte[] hexStringToByteArray(String s) {
int len = s.length();
byte[] data = new byte[len / 2];
for (int i = 0; i < len; i += 2) {
data[i / 2] = (byte) ((Character.digit(s.charAt(i), 16) << 4)
+ Character.digit(s.charAt(i+1), 16));
}
return data;
}
}
| yxx079/c | e.java |
347 | import java.io.File;
import java.util.ArrayList;
import java.util.Scanner;
//input (1,11,5), (2,6,7), (3,13,9), (12,7,16), (14,3,25), (19,18,22), (23,13,29), (24,4,28)
//output (1, 11), (3, 13), (9, 0), (12, 7), (16, 3), (19, 18), (22, 3), (23, 13), (29, 0)
class Building{
private int left;
private int right;
private int height;
private int max;
public Building(int left, int height, int right){
this.left = left;
this.right = right;
this.height = height;
if(right > max)
max = right;
}
public String toString(){
return "(" + left + ", " + height + ", " + right + ")";
}
public int getLeft(){
return left;
}
public int getRight(){
return right;
}
public int getHeight(){
return height;
}
public int getMax(){
return max;
}
}
class Skyline{
private ArrayList<Integer> skyline = new ArrayList<Integer>();
private ArrayList<Integer> merge(ArrayList<Integer> left, ArrayList<Integer> right){
ArrayList<Integer> result = new ArrayList<Integer>();
int i = 0;
int j = 0;
while(i < left.size() && j < right.size()){
if(left.get(i) > right.get(j)){
result.add(left.get(i));
}
else{
if(left.get(i) < right.get(j)){
result.add(right.get(j));
}
else{
result.add(left.get(i));
}
}
i++;
j++;
}
while(i < left.size()){
result.add(left.get(i));
i++;
}
while(j < right.size()){
result.add(right.get(j));
j++;
}
return result;
}
public ArrayList<Integer> getSkyline(ArrayList<Building> buildings){
if(buildings.size() == 1){
ArrayList<Integer> result = new ArrayList<Integer>();
for(int i=0;i<buildings.get(0).getMax();i++)
result.add(0);
for(int i=buildings.get(0).getLeft();i<=buildings.get(0).getRight();i++)
result.add(i,buildings.get(0).getHeight());
return result;
}
int mid = buildings.size() / 2;
ArrayList<Integer> left = getSkyline(new ArrayList<Building>(buildings.subList(0, mid)));
ArrayList<Integer> right = getSkyline(new ArrayList<Building>(buildings.subList(mid, buildings.size())));
skyline = merge(left, right);
return skyline;
}
public String toString(){
String output = "";
for(int i=1;i<skyline.size();i++){
if(skyline.get(i) != skyline.get(i-1)){
output += "(" + i + ", " + skyline.get(i) + "), ";
}
}
return output;
}
}
class Main{
public static void main(String[] args){
Skyline skyline = new Skyline();
ArrayList<Building> buildings = new ArrayList<Building>();
try{
File file = new File("C:\\Users\\Mihai\\Desktop\\ADA\\lab6\\skyline_8.txt");
Scanner scanner = new Scanner(file);
int size = scanner.nextInt();
while(scanner.hasNext()){
int left = scanner.nextInt();
int height = scanner.nextInt();
int right = scanner.nextInt();
buildings.add(new Building(left, height, right));
}
scanner.close();
}
catch(Exception e){
System.out.println(e.getMessage());
}
skyline.getSkyline(buildings);
System.out.println(skyline);
int[] nums = {44,-11,23,-49,20,31};
System.out.println(maxSubArray(nums));
}
public static int maxSubArray(int[] nums) {
int max = nums[0];
int sum = nums[0];
for(int i=1;i<nums.length;i++){
sum = Math.max(nums[i], sum + nums[i]);
max = Math.max(max, sum);
}
return max;
}
}
| mihai337/ADA | 1.java |
348 | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;
public class Main {
public static int TOTAL_MINUTES = 480; //8 hours * 60 minutes in each hour
public static void main(String[] args) throws IOException {
int input;
int day = 1;
Boolean isValid[] = new Boolean[TOTAL_MINUTES + 2];
isValid[TOTAL_MINUTES + 1] = false;
BufferedReader scanner = new BufferedReader(new InputStreamReader(System.in));
String newInput;
while((newInput = scanner.readLine()) != null && newInput.length() != 0) {
input = Integer.parseInt(newInput);
for(int x = 0; x <= 480; x++) {
isValid[x] = true;
}
int startHour, startMinute, endHour, endMinute;
int startTime, endTime;
int bestStartTime = 0, bestLength = 0;
while(input-- > 0) {
String line[] = scanner.readLine().split(" ");
//System.out.println(line[0] + " " + line[1]);
String parts[] = line[0].split(":");
startHour = Integer.parseInt(parts[0]);
startMinute = Integer.parseInt(parts[1]);
String parts1[] = line[1].split(":");
endHour = Integer.parseInt(parts1[0]);
endMinute = Integer.parseInt(parts1[1]);
startTime = (startHour - 10) * 60 + startMinute;
endTime = (endHour - 10) * 60 + endMinute;
for(int x = startTime; x < endTime; x++) {
isValid[x] = false;
}
}
for(int x = 0; x <= TOTAL_MINUTES; x++) {
if(isValid[x]) {
int j = x + 1;
while(isValid[j]) {
j++;
}
if(j == 480 + 1) {
j--;
}
if(j - x > bestLength) {
bestStartTime = x;
bestLength = j - x;
}
x = j;
}
}
printDays(day++, bestStartTime, bestLength);
}
return;
}
public static void printDays(int day, int bestStartTime, int bestLength) {
if(bestLength >= 60) {
String formattedString = String.format("Day #%d: the longest nap starts at %d:%02d and will last for %d hours and %d minutes.", day++, bestStartTime / 60 + 10, bestStartTime % 60, bestLength / 60, bestLength % 60);
System.out.println(formattedString);
}
else {
String formattedString = String.format("Day #%d: the longest nap starts at %d:%02d and will last for %d minutes.", day++, bestStartTime / 60 + 10, bestStartTime % 60, bestLength);
System.out.println(formattedString);
}
}
}
| lowryrussell/ProgrammingChallenges | 8.java |
349 | import java.util.*;
class main
{
void factorial(int n)
{
int f=1,i;
for(i=1;i<=n;i++)
f=f*i;
System.out.println(n+"!"+"="+f);
}
void sumofdigits(int n)
{
int sum=0,dg;
while(n!=0)
{
dg=n%10;
sum=sum+dg;
n=n/10;
}
System.out.println("sum of digits:"+sum);
}
public static void main(String args[])
{
main num=new main();
Scanner sc=new Scanner(System.in);
System.out.println("Enter the number to find the factorial");
int n=sc.nextInt();
System.out.println("Enter the number to find the sum of digits");
int m=sc.nextInt();
num.factorial(n);
num.sumofdigits(m);
}
}
| miraz00/exp3 | 2.java |
350 | public class s {
public static int max_size = 100;
public int top = -1;
public int[] array = new int[max_size];
public void push(int element){
if (top == max_size - 1){
System.out.println("Stack is full");
}
else{
array[++top] = element;
}
}
public int pop(){
int element = 0;
if (top == -1){
System.out.println("Stack is empty");
}
else{
element = array[top];
top--;
}
return element;
}
}
| HammadHafeez186/DataStructure | s.java |
351 | // Count occurrences of a character in a string
import java.util.Scanner;
public class Z {
private static String string;
private static char charToCount;
public static void main(String[] args) {
Scanner scannerObject = new Scanner(System.in);
try {
System.out.print("Enter any string value: ");
string = scannerObject.nextLine();
System.out.print("Enter character to be searched: ");
charToCount = scannerObject.next().charAt(0);
System.out.println("\nYour entered string is " + string);
countCharacter();
} catch (Exception e) {
System.out.println("\nError occurred!!\n" + e + "\nPlease enter valid string and try again.");
main(args);
}
scannerObject.close();
}
static void countCharacter() {
if (string.contains(String.valueOf(charToCount))) {
int initialLength = string.length();
int removedLength = string.replace(String.valueOf(charToCount), "").length();
System.out.println("Occurrence of " + charToCount + " is " + (initialLength - removedLength));
} else {
System.out.println("Character not found.");
}
}
}
| Bishal-9/SDET-Java | Z.java |
352 | // Linear Search or Sequential Search
import java.util.Scanner;
public class T {
private static int arrayLength;
private static int[] array;
private static int numberToSearch;
public static void main(String[] args) {
Scanner scannerObject = new Scanner(System.in);
try {
System.out.println("Enter array length: ");
arrayLength = scannerObject.nextInt();
array = new int [arrayLength];
for(int i = 0; i < arrayLength; i++) {
System.out.println("Enter array element: ");
array[i] = scannerObject.nextInt();
}
System.out.println("Enter the number to be searched: ");
numberToSearch = scannerObject.nextInt();
System.out.print("Your entered array is ");
for(int i = 0; i < arrayLength; i++) {
System.out.print(array[i] + ", ");
}
linearSearch();
} catch (Exception e) {
System.out.println("Error occurred!!\n" + e + "\nPlease enter valid number and try again.");
main(args);
}
scannerObject.close();
}
static void linearSearch() {
int found = 0;
for(int i = 0; i < arrayLength; i++) {
if(array[i] == numberToSearch) found++;
}
if(found != 0) System.out.println("\nFound " + found + " times in the array.");
else System.out.println("\nNot found!!");
}
}
| Bishal-9/SDET-Java | T.java |
353 | package fr.herverenault.selfhostedgpstracker;
import java.util.Calendar;
import android.app.IntentService;
import android.app.Notification;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.util.Log;
public class SelfHostedGPSTrackerService extends IntentService implements LocationListener {
public static final String NOTIFICATION = "fr.herverenault.selfhostedgpstracker";
public static boolean isRunning;
public static Calendar runningSince;
public Calendar stoppedOn;
private final static String MY_TAG = "SelfHostedGPSTrackerService";
private SharedPreferences preferences;
private String urlText;
private LocationManager locationManager;
private int pref_gps_updates;
private long latestUpdate;
private int pref_max_run_time;
public SelfHostedGPSTrackerService() {
super("SelfHostedGPSTrackerService");
}
@Override
public void onCreate() {
super.onCreate();
Log.d(MY_TAG, "in onCreate, init GPS stuff");
locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
if (locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER)) {
onProviderEnabled(LocationManager.GPS_PROVIDER);
} else {
onProviderDisabled(LocationManager.GPS_PROVIDER);
}
preferences = PreferenceManager.getDefaultSharedPreferences(this);
SharedPreferences.Editor editor = preferences.edit();
editor.putLong("stoppedOn", 0);
editor.commit();
pref_gps_updates = Integer.parseInt(preferences.getString("pref_gps_updates", "30")); // seconds
pref_max_run_time = Integer.parseInt(preferences.getString("pref_max_run_time", "24")); // hours
urlText = preferences.getString("URL", "");
if (urlText.contains("?")) {
urlText = urlText + "&";
} else {
urlText = urlText + "?";
}
locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, pref_gps_updates * 1000, 1, this);
}
@Override
protected void onHandleIntent(Intent intent) {
Log.d(MY_TAG, "in onHandleIntent, run for maximum time set in preferences");
new SelfHostedGPSTrackerRequest().execute(urlText + "tracker=start");
isRunning = true;
runningSince = Calendar.getInstance();
Intent i = new Intent(NOTIFICATION);
sendBroadcast(i);
Notification notification = new Notification(R.drawable.ic_notif, getText(R.string.toast_service_running), System.currentTimeMillis());
Intent notificationIntent = new Intent(this, SelfHostedGPSTrackerActivity.class);
PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, notificationIntent, 0);
notification.setLatestEventInfo(this, getText(R.string.app_name), getText(R.string.toast_service_running), pendingIntent);
startForeground(R.id.logo, notification);
long endTime = System.currentTimeMillis() + pref_max_run_time*60*60*1000;
while (System.currentTimeMillis() < endTime) {
try {
Thread.sleep(60*1000); // note: when device is sleeping, it may last up to 5 minutes or more
} catch (Exception e) {
}
}
}
@Override
public void onDestroy() {
// (user clicked the stop button, or max run time has been reached)
Log.d(MY_TAG, "in onDestroy, stop listening to the GPS");
new SelfHostedGPSTrackerRequest().execute(urlText + "tracker=stop");
locationManager.removeUpdates(this);
isRunning = false;
stoppedOn = Calendar.getInstance();
SharedPreferences.Editor editor = preferences.edit();
editor.putLong("stoppedOn", stoppedOn.getTimeInMillis());
editor.commit();
Intent intent = new Intent(NOTIFICATION);
sendBroadcast(intent);
}
/* -------------- GPS stuff -------------- */
@Override
public void onLocationChanged(Location location) {
Log.d(MY_TAG, "in onLocationChanged, latestUpdate == " + latestUpdate);
if ((System.currentTimeMillis() - latestUpdate) < pref_gps_updates*1000) {
return;
} else {
latestUpdate = System.currentTimeMillis();
}
new SelfHostedGPSTrackerRequest().execute(urlText + "lat=" + location.getLatitude() + "&lon=" + location.getLongitude());
}
@Override
public void onProviderDisabled(String provider) {
}
@Override
public void onProviderEnabled(String provider) {
}
@Override
public void onStatusChanged(String provider, int status, Bundle extras) {
}
}
| elinax7/soft_code | intern |
354 | import java.util.Scanner;
class SpeedConverter{
public double toMilesPerHour(double kilometersPerHour){
if(kilometersPerHour<0){
return -1;
}
else{
long r=Math.round(kilometersPerHour*1.609);
return r;
}
}
}
class U extends SpeedConverter{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("enter the distance in miles:");
double x = sc.nextDouble();
SpeedConverter s = new SpeedConverter();
System.out.println(s.toMilesPerHour(x));
}
} | 21bq1a4232/Programming_examples | U.java |
355 | // K.java
// plantilla modelo para app java de consola
// versión: 20240419
// autor: Carlos Grasa Lambea
import java.io.*;
public final class K {
static String prontuario = " -> ";
static void escribir(String texto) {
System.out.print(texto);
return;
}
static String leer() {
String entrada = "";
try {
int car;
car = System.in.read();
while (car != '\n') {
entrada += (char) car;
car = System.in.read();
}
} catch (Exception exc) {
entrada = "";
}
entrada = entrada.replace("\r", "");
return entrada;
}
static String preguntar(String pregunta) {
escribir(pregunta + prontuario);
return (leer());
}
static char leerChar() {
String entrada = leer();
return entrada.isEmpty() ? '\0' : entrada.charAt(0);
}
static char preguntarChar(String pregunta) {
char respuesta;
do {
escribir(pregunta + prontuario);
respuesta = (leerChar() + " ").toLowerCase().charAt(0);
if (respuesta == '\0')
escribir("Debe responder un solo carácter\n");
} while (respuesta == '\0');
return respuesta;
}
static char preguntarChar(String pregunta, String opciones) {
char respuesta;
if (opciones.isEmpty())
return '\0';
opciones = opciones.toLowerCase();
do {
escribir(pregunta + " (" + opciones.charAt(0));
for (int n = 1; n < opciones.length(); n++)
escribir("/" + opciones.charAt(n));
escribir(")" + prontuario);
respuesta = (leerChar() + " ").toLowerCase().charAt(0);
if (respuesta == '\0')
escribir("Debe responder un solo carácter\n");
if (!opciones.contains("" + respuesta))
escribir("Debe escoger una opción válida.\n");
} while (!opciones.contains("" + respuesta));
return respuesta;
}
static long leerLong() {
long salida;
String entrada = leer();
try {
salida = Long.parseLong(entrada);
} catch (Exception exc) {
salida = Long.MIN_VALUE;
}
return salida;
}
static long leerLong(long cotaInf) {
long entrada = leerLong();
return entrada < cotaInf ? Long.MIN_VALUE : entrada;
}
static long leerLong(long cotaInf, long cotaSup) {
if (cotaInf > cotaSup) {
long aux = cotaInf;
cotaInf = cotaSup;
cotaSup = aux;
}
long entrada = leerLong(cotaInf);
return entrada > cotaSup ? Long.MIN_VALUE : entrada;
}
static double leerDouble() {
double salida;
String entrada = leer();
try {
salida = Double.parseDouble(entrada);
} catch (Exception exc) {
salida = Double.MIN_VALUE;
}
return salida;
}
static Double leerDouble(double cotaInf) {
double entrada = leerDouble();
return entrada < cotaInf ? Double.MIN_VALUE : entrada;
}
static Double leerDouble(double cotaInf, double cotaSup) {
if (cotaInf > cotaSup) {
double aux = cotaInf;
cotaInf = cotaSup;
cotaSup = aux;
}
double entrada = leerDouble(cotaInf);
return entrada > cotaSup ? Double.MIN_VALUE : entrada;
}
static long preguntarLong(String pregunta) {
long entrada;
do {
escribir(pregunta + prontuario);
entrada = leerLong();
if (entrada == Long.MIN_VALUE)
escribir("Debe responder un número entero válido.\n");
} while (entrada == Long.MIN_VALUE);
return entrada;
}
static long preguntarLong(String pregunta, long cotaInf) {
long entrada;
do {
escribir(pregunta + prontuario);
entrada = leerLong();
if (entrada < cotaInf)
escribir("Debe responder un entero desde " + cotaInf + " como mínimo.\n");
} while (entrada < cotaInf);
return entrada;
}
static long preguntarLong(String pregunta, long cotaInf, long cotaSup) {
long entrada;
if (cotaInf > cotaSup) {
long aux = cotaInf;
cotaInf = cotaSup;
cotaSup = aux;
}
do {
escribir(pregunta + prontuario);
entrada = leerLong();
if (entrada < cotaInf || entrada > cotaSup)
escribir("Debe responder un entero entre " + cotaInf + " y " + cotaSup + " como intervalo válido.\n");
} while (entrada < cotaInf || entrada > cotaSup);
return entrada;
}
static Double preguntarDouble(String pregunta) {
Double entrada;
do {
escribir(pregunta + prontuario);
entrada = leerDouble();
if (entrada == Double.MIN_VALUE)
escribir("Debe responder un número válido.\n");
} while (entrada == Double.MIN_VALUE);
return entrada;
}
static double preguntarDouble(String pregunta, double cotaInf) {
double entrada;
do {
escribir(pregunta + prontuario);
entrada = leerDouble();
if (entrada < cotaInf)
escribir("Debe responder un entero desde " + cotaInf + " como mínimo.\n");
} while (entrada < cotaInf);
return entrada;
}
static double preguntarDouble(String pregunta, double cotaInf, double cotaSup) {
double entrada;
if (cotaInf > cotaSup) {
double aux = cotaInf;
cotaInf = cotaSup;
cotaSup = aux;
}
do {
escribir(pregunta + prontuario);
entrada = leerDouble();
if (entrada < cotaInf || entrada > cotaSup)
escribir("Debe responder un número entre " + cotaInf + " y " + cotaSup + " como intervalo válido.\n");
} while (entrada < cotaInf || entrada > cotaSup);
return entrada;
}
static void limpiarConsola() {
escribir("\n".repeat(40));
return;
}
static void pausarConsola() {
preguntar("Pulse INTRO para continuar");
return;
}
static String[] listarDirectorio(String ruta) { // devuelve lista de los elementos de un directorio
java.io.File archivo = new java.io.File(ruta);
if (archivo.exists())
return archivo.list();
else
return new String[0];
}
static String getPropiedadesArchivo(String ruta) { // devuelve las propiedades de un archivo
java.io.File archivo = new java.io.File(ruta);
String propiedades = "";
if (archivo.exists()) {
propiedades += archivo.isDirectory() ? "d" : "";
if (archivo.isFile()) {
propiedades += "a";
propiedades += archivo.length() == 0 ? "0" : "";
}
propiedades += archivo.canExecute() ? "x" : "";
propiedades += archivo.canRead() ? "r" : "";
propiedades += archivo.canWrite() ? "w" : "";
propiedades += archivo.isHidden() ? "h" : "";
}
return propiedades;
}
static boolean guardarObjeto(Object objeto, String archivo) { // serializa un objeto y lo guarda en archivo
try {
File fil = new File(archivo);
if (!fil.exists() || !fil.isFile() || !fil.canWrite())
return false;
FileOutputStream fos = new FileOutputStream(fil);
BufferedOutputStream bos=new BufferedOutputStream(fos);
ObjectOutputStream oos=new ObjectOutputStream(bos);
oos.writeObject(objeto);
oos.close();
bos.close();
fos.close();
return true;
} catch (Exception exc) {
K.escribir("- Error abriendo archivo \"" + archivo + "\" para guardar.\n");
K.escribir(exc.getMessage() + "\n");
exc.printStackTrace();
return false;
}
}
static Object obtenerObjeto(String archivo) { // deserializa un objeto y lo obtiene de un archivo
try {
Object objeto;
File fil = new File(archivo);
if (!fil.exists() || !fil.isFile() || !fil.canRead())
return null;
FileInputStream fis = new FileInputStream(fil);
BufferedInputStream bis=new BufferedInputStream(fis);
ObjectInputStream ois=new ObjectInputStream(bis);
objeto=ois.readObject();
ois.close();
bis.close();
fis.close();
return objeto;
} catch (Exception exc) {
K.escribir("- Error abriendo archivo \"" + archivo + "\" para guardar.\n");
K.escribir(exc.getMessage() + "\n");
exc.printStackTrace();
return null;
}
}
// ------------------------------------- main --------------------------------------------------------
//* test (comenzar línea con //* para activar, /* para desactivar ------------------------------------------
public static void main(String[] args) {
try {
ejecutarPrograma();
} catch (Exception exc) {
escribir("\n- Ejecución con error. Abortando programa.\n" + exc);
System.exit(1);
}
escribir("\n- Programa terminado normalmente.\n");
System.exit(0);
return;
}
static void ejecutarPrograma() {
limpiarConsola();
escribir("Listado del directorio actual:\n");
escribir("------------------------------\n");
for (String nombre : listarDirectorio("Cannonball/src/"))
escribir(nombre + " [" + getPropiedadesArchivo("Cannonball/src/"+nombre) + "]\n");
return;
// necesario para conmutar main */
}
}
| explicarlos/andevas | K.java |
356 | public class Book {
private String title;
private String author;
public Book (String t, String a)
{
title = t;
author = a;
}
public String getTitle()
{
return author;
}
public String getAuthor()
{
return title;
}
public String toString()
{
return "Title: " + title + "/nAuthor: " + author;
}
}
| AvinashMahesh/Library | Book.java |
358 | public class Client
{
//instance variables
private String name;
private Book book1;
private Book book2;
private Book book3;
public Client (String n) {
name = n;
}
public Client (String n, Book b) {
name = n;
book1 = b;
}
public Client (String n, Book b1, Book b2) {
name = n;
book1 = b1;
book2 = b2;
}
public Client (String n, Book b1, Book b2, Book b3) {
name = n;
book1 = b1;
book2 = b2;
book3 = b3;
}
public boolean canBorrow() {
if(book1 == null || book2 == null || book3 == null) {
return true;
}
else
System.out.println ("Error");
return false;
}
public boolean returnBook(Book b) {
if(b == book1) {
book1 = b;
System.out.println("You have borrowed " + book1.getTitle() + " by " + book1.getAuthor());
return true;
}
if(b == book2) {
book2 = b;
System.out.println("You have borrowed " + book2.getTitle() + " by " + book2.getAuthor());
return true;
}
if(b == book3) {
book3 = b;
System.out.println("You have borrowed " + book3.getTitle() + " by " + book3.getAuthor());
return true;
}
System.out.println ("Error");
return false;
}
public boolean borrowBook (Book b) {
if(book1 == null) {
book1 = b;
System.out.println("You have borrowed " + book1.getTitle() + " by " + book1.getAuthor() + ".");
return true;
}
if(book2 == null) {
book2 = b;
System.out.println("You have borrowed " + book2.getTitle() + " by " + book2.getAuthor()+ ".");
return true;
}
if(book3 == null) {
book3 = b;
System.out.println("You have borrowed " + book3.getTitle() + " by " + book3.getAuthor()+ ".");
return true;
}
System.out.println ("Error");
return false;
}
public boolean hasBook(Book b) {
if(b == book1) {
System.out.println(name + " has " + book1.getTitle() + " by " + book1.getAuthor());
return true;
}
if(b == book2) {
System.out.println(name + " has " + book2.getTitle() + " by " + book2.getAuthor());
return true;
}
if(b == book3) {
System.out.println(name + " has " + book3.getTitle() + " by " + book3.getAuthor());
return true;
}
System.out.println ("Error");
return false;
}
public String toString() {
return("Clent Name: " + name + "\nBook 1: " + book1.getTitle() + " by " + book1.getAuthor() + "\nBook 2: " + book2.getTitle() + " by " + book2.getAuthor() + "\nBook 3: " + book3.getTitle() + " by " + book3.getAuthor());
}
}
| AvinashMahesh/Library | Client.java |
361 | /* 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 edu.virginia.abf2dh.ghosthunter;
public final class R {
public static final class anim {
public static final int abc_fade_in=0x7f040000;
public static final int abc_fade_out=0x7f040001;
public static final int abc_slide_in_bottom=0x7f040002;
public static final int abc_slide_in_top=0x7f040003;
public static final int abc_slide_out_bottom=0x7f040004;
public static final int abc_slide_out_top=0x7f040005;
}
public static final class attr {
/** Custom divider drawable to use for elements in the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarDivider=0x7f010015;
/** Custom item state list drawable background for action bar items.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarItemBackground=0x7f010016;
/** Reference to a theme that should be used to inflate popups
shown by widgets in the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarPopupTheme=0x7f01000f;
/** Size of the Action Bar, including the contextual
bar used to present Action Modes.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>May be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>wrap_content</code></td><td>0</td><td></td></tr>
</table>
*/
public static final int actionBarSize=0x7f010014;
/** Reference to a style for the split Action Bar. This style
controls the split component that holds the menu/action
buttons. actionBarStyle is still used for the primary
bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarSplitStyle=0x7f010011;
/** Reference to a style for the Action Bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarStyle=0x7f010010;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarTabBarStyle=0x7f01000b;
/** Default style for tabs within an action bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarTabStyle=0x7f01000a;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarTabTextStyle=0x7f01000c;
/** Reference to a theme that should be used to inflate the
action bar. This will be inherited by any widget inflated
into the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarTheme=0x7f010012;
/** Reference to a theme that should be used to inflate widgets
and layouts destined for the action bar. Most of the time
this will be a reference to the current theme, but when
the action bar has a significantly different contrast
profile than the rest of the activity the difference
can become important. If this is set to @null the current
theme will be used.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarWidgetTheme=0x7f010013;
/** Default action button style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionButtonStyle=0x7f01002d;
/** Default ActionBar dropdown style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionDropDownStyle=0x7f010028;
/** An optional layout to be used as an action view.
See {@link android.view.MenuItem#setActionView(android.view.View)}
for more info.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionLayout=0x7f010072;
/** TextAppearance style that will be applied to text that
appears within action menu items.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionMenuTextAppearance=0x7f010017;
/** Color for text that appears within action menu items.
Color for text that appears within action menu items.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
*/
public static final int actionMenuTextColor=0x7f010018;
/** Background drawable to use for action mode UI
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeBackground=0x7f01001b;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeCloseButtonStyle=0x7f01001a;
/** Drawable to use for the close action mode button
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeCloseDrawable=0x7f01001d;
/** Drawable to use for the Copy action button in Contextual Action Bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeCopyDrawable=0x7f01001f;
/** Drawable to use for the Cut action button in Contextual Action Bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeCutDrawable=0x7f01001e;
/** Drawable to use for the Find action button in WebView selection action modes
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeFindDrawable=0x7f010023;
/** Drawable to use for the Paste action button in Contextual Action Bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModePasteDrawable=0x7f010020;
/** PopupWindow style to use for action modes when showing as a window overlay.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModePopupWindowStyle=0x7f010025;
/** Drawable to use for the Select all action button in Contextual Action Bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeSelectAllDrawable=0x7f010021;
/** Drawable to use for the Share action button in WebView selection action modes
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeShareDrawable=0x7f010022;
/** Background drawable to use for action mode UI in the lower split bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeSplitBackground=0x7f01001c;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeStyle=0x7f010019;
/** Drawable to use for the Web Search action button in WebView selection action modes
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeWebSearchDrawable=0x7f010024;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionOverflowButtonStyle=0x7f01000d;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionOverflowMenuStyle=0x7f01000e;
/** The name of an optional ActionProvider class to instantiate an action view
and perform operations such as default action for that menu item.
See {@link android.view.MenuItem#setActionProvider(android.view.ActionProvider)}
for more info.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int actionProviderClass=0x7f010074;
/** The name of an optional View class to instantiate and use as an
action view. See {@link android.view.MenuItem#setActionView(android.view.View)}
for more info.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int actionViewClass=0x7f010073;
/** Default ActivityChooserView style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int activityChooserViewStyle=0x7f010034;
/** Specifies a background drawable for the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int background=0x7f01005d;
/** Specifies a background drawable for the bottom component of a split action bar.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
*/
public static final int backgroundSplit=0x7f01005f;
/** Specifies a background drawable for a second stacked row of the action bar.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
*/
public static final int backgroundStacked=0x7f01005e;
/** The size of the bars when they are parallel to each other
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int barSize=0x7f01009f;
/** A style that may be applied to Buttons placed within a
LinearLayout with the style buttonBarStyle to form a button bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int buttonBarButtonStyle=0x7f01002f;
/** A style that may be applied to horizontal LinearLayouts
to form a button bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int buttonBarStyle=0x7f01002e;
/** <p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>top</code></td><td>0x30</td><td> Push object to the top of its container, not changing its size. </td></tr>
<tr><td><code>bottom</code></td><td>0x50</td><td> Push object to the bottom of its container, not changing its size. </td></tr>
</table>
*/
public static final int buttonGravity=0x7f010093;
/** Close button icon
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int closeIcon=0x7f01007c;
/** Specifies a layout to use for the "close" item at the starting edge.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int closeItemLayout=0x7f01006d;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int collapseIcon=0x7f010094;
/** The drawing color for the bars
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int color=0x7f010099;
/** Bright complement to the primary branding color. By default, this is the color applied
to framework controls (via colorControlActivated).
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int colorAccent=0x7f01004f;
/** The color applied to framework buttons in their normal state.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int colorButtonNormal=0x7f010053;
/** The color applied to framework controls in their activated (ex. checked) state.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int colorControlActivated=0x7f010051;
/** The color applied to framework control highlights (ex. ripples, list selectors).
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int colorControlHighlight=0x7f010052;
/** The color applied to framework controls in their normal state.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int colorControlNormal=0x7f010050;
/** The primary branding color for the app. By default, this is the color applied to the
action bar background.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int colorPrimary=0x7f01004d;
/** Dark variant of the primary branding color. By default, this is the color applied to
the status bar (via statusBarColor) and navigation bar (via navigationBarColor).
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int colorPrimaryDark=0x7f01004e;
/** The color applied to framework switch thumbs in their normal state.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int colorSwitchThumbNormal=0x7f010054;
/** Commit icon shown in the query suggestion row
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int commitIcon=0x7f010080;
/** Minimum inset for content views within a bar. Navigation buttons and
menu views are excepted. Only valid for some themes and configurations.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int contentInsetEnd=0x7f010068;
/** Minimum inset for content views within a bar. Navigation buttons and
menu views are excepted. Only valid for some themes and configurations.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int contentInsetLeft=0x7f010069;
/** Minimum inset for content views within a bar. Navigation buttons and
menu views are excepted. Only valid for some themes and configurations.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int contentInsetRight=0x7f01006a;
/** Minimum inset for content views within a bar. Navigation buttons and
menu views are excepted. Only valid for some themes and configurations.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int contentInsetStart=0x7f010067;
/** Specifies a layout for custom navigation. Overrides navigationMode.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int customNavigationLayout=0x7f010060;
/** Whether this spinner should mark child views as enabled/disabled when
the spinner itself is enabled/disabled.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int disableChildrenWhenDisabled=0x7f010078;
/** Options affecting how the action bar is displayed.
<p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>none</code></td><td>0</td><td></td></tr>
<tr><td><code>useLogo</code></td><td>0x1</td><td></td></tr>
<tr><td><code>showHome</code></td><td>0x2</td><td></td></tr>
<tr><td><code>homeAsUp</code></td><td>0x4</td><td></td></tr>
<tr><td><code>showTitle</code></td><td>0x8</td><td></td></tr>
<tr><td><code>showCustom</code></td><td>0x10</td><td></td></tr>
<tr><td><code>disableHome</code></td><td>0x20</td><td></td></tr>
</table>
*/
public static final int displayOptions=0x7f010056;
/** Specifies the drawable used for item dividers.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int divider=0x7f01005c;
/** A drawable that may be used as a horizontal divider between visual elements.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int dividerHorizontal=0x7f010033;
/** Size of padding on either end of a divider.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int dividerPadding=0x7f010089;
/** A drawable that may be used as a vertical divider between visual elements.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int dividerVertical=0x7f010032;
/** The total size of the drawable
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int drawableSize=0x7f01009b;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int drawerArrowStyle=0x7f0100a1;
/** ListPopupWindow compatibility
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int dropDownListViewStyle=0x7f010045;
/** The preferred item height for dropdown lists.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int dropdownListPreferredItemHeight=0x7f010029;
/** EditText background drawable.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int editTextBackground=0x7f01003a;
/** EditText text foreground color.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
*/
public static final int editTextColor=0x7f010039;
/** Elevation for the action bar itself
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int elevation=0x7f01006b;
/** The drawable to show in the button for expanding the activities overflow popup.
<strong>Note:</strong> Clients would like to set this drawable
as a clue about the action the chosen activity will perform. For
example, if share activity is to be chosen the drawable should
give a clue that sharing is to be performed.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int expandActivityOverflowButtonDrawable=0x7f010085;
/** The max gap between the bars when they are parallel to each other
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int gapBetweenBars=0x7f01009c;
/** Go button icon
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int goIcon=0x7f01007d;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int height=0x7f010001;
/** Set true to hide the action bar on a vertical nested scroll of content.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int hideOnContentScroll=0x7f010066;
/** Specifies a drawable to use for the 'home as up' indicator.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int homeAsUpIndicator=0x7f01002c;
/** Specifies a layout to use for the "home" section of the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int homeLayout=0x7f010061;
/** Specifies the drawable used for the application icon.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int icon=0x7f01005a;
/** The default state of the SearchView. If true, it will be iconified when not in
use and expanded when clicked.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int iconifiedByDefault=0x7f01007a;
/** Specifies a style resource to use for an indeterminate progress spinner.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int indeterminateProgressStyle=0x7f010063;
/** The maximal number of items initially shown in the activity list.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int initialActivityCount=0x7f010084;
/** Specifies whether the theme is light, otherwise it is dark.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int isLightTheme=0x7f010002;
/** Specifies padding that should be applied to the left and right sides of
system-provided items in the bar.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int itemPadding=0x7f010065;
/** The layout to use for the search view.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int layout=0x7f010079;
/** Drawable used as a background for selected list items.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int listChoiceBackgroundIndicator=0x7f01004c;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int listPopupWindowStyle=0x7f010046;
/** The preferred list item height.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int listPreferredItemHeight=0x7f010040;
/** A larger, more robust list item height.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int listPreferredItemHeightLarge=0x7f010042;
/** A smaller, sleeker list item height.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int listPreferredItemHeightSmall=0x7f010041;
/** The preferred padding along the left edge of list items.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int listPreferredItemPaddingLeft=0x7f010043;
/** The preferred padding along the right edge of list items.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int listPreferredItemPaddingRight=0x7f010044;
/** Specifies the drawable used for the application logo.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int logo=0x7f01005b;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int maxButtonHeight=0x7f010091;
/** When set to true, all children with a weight will be considered having
the minimum size of the largest child. If false, all children are
measured normally.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int measureWithLargestChild=0x7f010087;
/** The size of the middle bar when top and bottom bars merge into middle bar to form an arrow
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int middleBarArrowSize=0x7f01009e;
/** Text to set as the content description for the navigation button
located at the start of the toolbar.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int navigationContentDescription=0x7f010096;
/** Icon drawable to use for the navigation button located at
the start of the toolbar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int navigationIcon=0x7f010095;
/** The type of navigation to use.
<p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>normal</code></td><td>0</td><td> Normal static title text </td></tr>
<tr><td><code>listMode</code></td><td>1</td><td> The action bar will use a selection list for navigation. </td></tr>
<tr><td><code>tabMode</code></td><td>2</td><td> The action bar will use a series of horizontal tabs for navigation. </td></tr>
</table>
*/
public static final int navigationMode=0x7f010055;
/** Whether the popup window should overlap its anchor view.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int overlapAnchor=0x7f010098;
/** Sets the padding, in pixels, of the end edge; see {@link android.R.attr#padding}.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int paddingEnd=0x7f01006f;
/** Sets the padding, in pixels, of the start edge; see {@link android.R.attr#padding}.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int paddingStart=0x7f01006e;
/** The background of a panel when it is inset from the left and right edges of the screen.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int panelBackground=0x7f010049;
/** Default Panel Menu style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int panelMenuListTheme=0x7f01004b;
/** Default Panel Menu width.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int panelMenuListWidth=0x7f01004a;
/** Default PopupMenu style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int popupMenuStyle=0x7f010037;
/** Reference to a layout to use for displaying a prompt in the dropdown for
spinnerMode="dropdown". This layout must contain a TextView with the id
{@code @android:id/text1} to be populated with the prompt text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int popupPromptView=0x7f010077;
/** Reference to a theme that should be used to inflate popups
shown by widgets in the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int popupTheme=0x7f01006c;
/** Default PopupWindow style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int popupWindowStyle=0x7f010038;
/** Whether space should be reserved in layout when an icon is missing.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int preserveIconSpacing=0x7f010070;
/** Specifies the horizontal padding on either end for an embedded progress bar.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int progressBarPadding=0x7f010064;
/** Specifies a style resource to use for an embedded progress bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int progressBarStyle=0x7f010062;
/** The prompt to display when the spinner's dialog is shown.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int prompt=0x7f010075;
/** Background for the section containing the search query
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int queryBackground=0x7f010082;
/** An optional query hint string to be displayed in the empty query field.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int queryHint=0x7f01007b;
/** Search icon
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int searchIcon=0x7f01007e;
/** Style for the search query widget.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int searchViewStyle=0x7f01003f;
/** A style that may be applied to buttons or other selectable items
that should react to pressed and focus states, but that do not
have a clear visual border along the edges.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int selectableItemBackground=0x7f010030;
/** Background drawable for borderless standalone items that need focus/pressed states.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int selectableItemBackgroundBorderless=0x7f010031;
/** How this item should display in the Action Bar, if present.
<p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>never</code></td><td>0</td><td> Never show this item in an action bar, show it in the overflow menu instead.
Mutually exclusive with "ifRoom" and "always". </td></tr>
<tr><td><code>ifRoom</code></td><td>1</td><td> Show this item in an action bar if there is room for it as determined
by the system. Favor this option over "always" where possible.
Mutually exclusive with "never" and "always". </td></tr>
<tr><td><code>always</code></td><td>2</td><td> Always show this item in an actionbar, even if it would override
the system's limits of how much stuff to put there. This may make
your action bar look bad on some screens. In most cases you should
use "ifRoom" instead. Mutually exclusive with "ifRoom" and "never". </td></tr>
<tr><td><code>withText</code></td><td>4</td><td> When this item is shown as an action in the action bar, show a text
label with it even if it has an icon representation. </td></tr>
<tr><td><code>collapseActionView</code></td><td>8</td><td> This item's action view collapses to a normal menu
item. When expanded, the action view takes over a
larger segment of its container. </td></tr>
</table>
*/
public static final int showAsAction=0x7f010071;
/** Setting for which dividers to show.
<p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>none</code></td><td>0</td><td></td></tr>
<tr><td><code>beginning</code></td><td>1</td><td></td></tr>
<tr><td><code>middle</code></td><td>2</td><td></td></tr>
<tr><td><code>end</code></td><td>4</td><td></td></tr>
</table>
*/
public static final int showDividers=0x7f010088;
/** Whether to draw on/off text.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int showText=0x7f0100a8;
/** Whether bars should rotate or not during transition
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int spinBars=0x7f01009a;
/** Default Spinner style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int spinnerDropDownItemStyle=0x7f01002b;
/** Display mode for spinner options.
<p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>dialog</code></td><td>0</td><td> Spinner options will be presented to the user as a dialog window. </td></tr>
<tr><td><code>dropdown</code></td><td>1</td><td> Spinner options will be presented to the user as an inline dropdown
anchored to the spinner widget itself. </td></tr>
</table>
*/
public static final int spinnerMode=0x7f010076;
/** Default Spinner style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int spinnerStyle=0x7f01002a;
/** Whether to split the track and leave a gap for the thumb drawable.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int splitTrack=0x7f0100a7;
/** State identifier indicating the popup will be above the anchor.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int state_above_anchor=0x7f010097;
/** Background for the section containing the action (e.g. voice search)
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int submitBackground=0x7f010083;
/** Specifies subtitle text used for navigationMode="normal"
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int subtitle=0x7f010057;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int subtitleTextAppearance=0x7f01008b;
/** Specifies a style to use for subtitle text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int subtitleTextStyle=0x7f010059;
/** Layout for query suggestion rows
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int suggestionRowLayout=0x7f010081;
/** Minimum width for the switch component
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int switchMinWidth=0x7f0100a5;
/** Minimum space between the switch and caption text
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int switchPadding=0x7f0100a6;
/** Default style for the Switch widget.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int switchStyle=0x7f01003b;
/** TextAppearance style for text displayed on the switch thumb.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int switchTextAppearance=0x7f0100a4;
/** Present the text in ALL CAPS. This may use a small-caps form when available.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a boolean value, either "<code>true</code>" or "<code>false</code>".
*/
public static final int textAllCaps=0x7f010086;
/** Text color, typeface, size, and style for the text inside of a popup menu.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int textAppearanceLargePopupMenu=0x7f010026;
/** The preferred TextAppearance for the primary text of list items.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int textAppearanceListItem=0x7f010047;
/** The preferred TextAppearance for the primary text of small list items.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int textAppearanceListItemSmall=0x7f010048;
/** Text color, typeface, size, and style for system search result subtitle. Defaults to primary inverse text color.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int textAppearanceSearchResultSubtitle=0x7f01003d;
/** Text color, typeface, size, and style for system search result title. Defaults to primary inverse text color.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int textAppearanceSearchResultTitle=0x7f01003c;
/** Text color, typeface, size, and style for small text inside of a popup menu.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int textAppearanceSmallPopupMenu=0x7f010027;
/** Text color for urls in search suggestions, used by things like global search
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
*/
public static final int textColorSearchUrl=0x7f01003e;
/** Specifies a theme override for a view. When a theme override is set, the
view will be inflated using a {@link android.content.Context} themed with
the specified resource. During XML inflation, any child views under the
view with a theme override will inherit the themed context.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int theme=0x7f010092;
/** The thickness (stroke size) for the bar paint
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int thickness=0x7f0100a0;
/** Amount of padding on either side of text within the switch thumb.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int thumbTextPadding=0x7f0100a3;
/** <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int title=0x7f010000;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int titleMarginBottom=0x7f010090;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int titleMarginEnd=0x7f01008e;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int titleMarginStart=0x7f01008d;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int titleMarginTop=0x7f01008f;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int titleMargins=0x7f01008c;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int titleTextAppearance=0x7f01008a;
/** Specifies a style to use for title text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int titleTextStyle=0x7f010058;
/** Default Toolar NavigationButtonStyle
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int toolbarNavigationButtonStyle=0x7f010036;
/** Default Toolbar style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int toolbarStyle=0x7f010035;
/** The size of the top and bottom bars when they merge to the middle bar to form an arrow
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int topBottomBarArrowSize=0x7f01009d;
/** Drawable to use as the "track" that the switch thumb slides within.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int track=0x7f0100a2;
/** Voice button icon
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int voiceIcon=0x7f01007f;
/** Flag indicating whether this window should have an Action Bar
in place of the usual title bar.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowActionBar=0x7f010003;
/** Flag indicating whether this window's Action Bar should overlay
application content. Does nothing if the window would not
have an Action Bar.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowActionBarOverlay=0x7f010004;
/** Flag indicating whether action modes should overlay window content
when there is not reserved space for their UI (such as an Action Bar).
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowActionModeOverlay=0x7f010005;
/** A fixed height for the window along the major axis of the screen,
that is, when in portrait. Can be either an absolute dimension
or a fraction of the screen size in that dimension.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowFixedHeightMajor=0x7f010009;
/** A fixed height for the window along the minor axis of the screen,
that is, when in landscape. Can be either an absolute dimension
or a fraction of the screen size in that dimension.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowFixedHeightMinor=0x7f010007;
/** A fixed width for the window along the major axis of the screen,
that is, when in landscape. Can be either an absolute dimension
or a fraction of the screen size in that dimension.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowFixedWidthMajor=0x7f010006;
/** A fixed width for the window along the minor axis of the screen,
that is, when in portrait. Can be either an absolute dimension
or a fraction of the screen size in that dimension.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowFixedWidthMinor=0x7f010008;
}
public static final class bool {
public static final int abc_action_bar_embed_tabs=0x7f050000;
public static final int abc_action_bar_embed_tabs_pre_jb=0x7f050001;
public static final int abc_action_bar_expanded_action_views_exclusive=0x7f050002;
/** Whether action menu items should be displayed in ALLCAPS or not.
Defaults to true. If this is not appropriate for specific locales
it should be disabled in that locale's resources.
*/
public static final int abc_config_actionMenuItemAllCaps=0x7f050005;
/** Whether action menu items should obey the "withText" showAsAction
flag. This may be set to false for situations where space is
extremely limited.
Whether action menu items should obey the "withText" showAsAction.
This may be set to false for situations where space is
extremely limited.
*/
public static final int abc_config_allowActionMenuItemTextWithIcon=0x7f050004;
public static final int abc_config_showMenuShortcutsWhenKeyboardPresent=0x7f050003;
}
public static final class color {
public static final int abc_background_cache_hint_selector_material_dark=0x7f060031;
public static final int abc_background_cache_hint_selector_material_light=0x7f060032;
public static final int abc_input_method_navigation_guard=0x7f060003;
public static final int abc_primary_text_disable_only_material_dark=0x7f060033;
public static final int abc_primary_text_disable_only_material_light=0x7f060034;
public static final int abc_primary_text_material_dark=0x7f060035;
public static final int abc_primary_text_material_light=0x7f060036;
public static final int abc_search_url_text=0x7f060037;
public static final int abc_search_url_text_normal=0x7f060000;
public static final int abc_search_url_text_pressed=0x7f060002;
public static final int abc_search_url_text_selected=0x7f060001;
public static final int abc_secondary_text_material_dark=0x7f060038;
public static final int abc_secondary_text_material_light=0x7f060039;
public static final int accent_material_dark=0x7f06000f;
public static final int accent_material_light=0x7f06000e;
public static final int background_floating_material_dark=0x7f060006;
public static final int background_floating_material_light=0x7f060007;
public static final int background_material_dark=0x7f060004;
public static final int background_material_light=0x7f060005;
/** White 50%
*/
public static final int bright_foreground_disabled_material_dark=0x7f060016;
/** Black 50%
*/
public static final int bright_foreground_disabled_material_light=0x7f060017;
public static final int bright_foreground_inverse_material_dark=0x7f060018;
public static final int bright_foreground_inverse_material_light=0x7f060019;
public static final int bright_foreground_material_dark=0x7f060014;
public static final int bright_foreground_material_light=0x7f060015;
public static final int button_material_dark=0x7f060010;
public static final int button_material_light=0x7f060011;
public static final int dim_foreground_disabled_material_dark=0x7f06001c;
public static final int dim_foreground_disabled_material_light=0x7f06001d;
public static final int dim_foreground_material_dark=0x7f06001a;
public static final int dim_foreground_material_light=0x7f06001b;
/** TODO: This is 40% alpha on the default accent color.
*/
public static final int highlighted_text_material_dark=0x7f060020;
/** TODO: This is 40% alpha on the default accent color.
*/
public static final int highlighted_text_material_light=0x7f060021;
public static final int hint_foreground_material_dark=0x7f06001e;
public static final int hint_foreground_material_light=0x7f06001f;
public static final int link_text_material_dark=0x7f060022;
public static final int link_text_material_light=0x7f060023;
public static final int material_blue_grey_800=0x7f06002e;
public static final int material_blue_grey_900=0x7f06002f;
public static final int material_blue_grey_950=0x7f060030;
public static final int material_deep_teal_200=0x7f06002c;
public static final int material_deep_teal_500=0x7f06002d;
public static final int primary_dark_material_dark=0x7f06000a;
public static final int primary_dark_material_light=0x7f06000b;
public static final int primary_material_dark=0x7f060008;
public static final int primary_material_light=0x7f060009;
public static final int primary_text_default_material_dark=0x7f060026;
public static final int primary_text_default_material_light=0x7f060024;
/** 30% of default values
*/
public static final int primary_text_disabled_material_dark=0x7f06002a;
/** 26% of default values
*/
public static final int primary_text_disabled_material_light=0x7f060028;
public static final int ripple_material_dark=0x7f06000c;
public static final int ripple_material_light=0x7f06000d;
public static final int secondary_text_default_material_dark=0x7f060027;
public static final int secondary_text_default_material_light=0x7f060025;
public static final int secondary_text_disabled_material_dark=0x7f06002b;
public static final int secondary_text_disabled_material_light=0x7f060029;
public static final int switch_thumb_normal_material_dark=0x7f060012;
public static final int switch_thumb_normal_material_light=0x7f060013;
}
public static final class dimen {
/** Default height of an action bar.
Default height of an action bar.
Default height of an action bar.
*/
public static final int abc_action_bar_default_height_material=0x7f070014;
/** Default padding of an action bar.
Default padding of an action bar.
Default padding of an action bar.
*/
public static final int abc_action_bar_default_padding_material=0x7f070015;
/** Vertical padding around action bar icons.
*/
public static final int abc_action_bar_icon_vertical_padding_material=0x7f070016;
/** Size of the indeterminate Progress Bar
Size of the indeterminate Progress Bar
*/
public static final int abc_action_bar_progress_bar_size=0x7f070005;
/** Maximum height for a stacked tab bar as part of an action bar
*/
public static final int abc_action_bar_stacked_max_height=0x7f070004;
/** Maximum width for a stacked action bar tab. This prevents
action bar tabs from becoming too wide on a wide screen when only
a few are present.
*/
public static final int abc_action_bar_stacked_tab_max_width=0x7f070003;
/** Bottom margin for action bar subtitles
*/
public static final int abc_action_bar_subtitle_bottom_margin_material=0x7f070018;
/** Top margin for action bar subtitles
*/
public static final int abc_action_bar_subtitle_top_margin_material=0x7f070017;
public static final int abc_action_button_min_height_material=0x7f07001b;
public static final int abc_action_button_min_width_material=0x7f07001a;
public static final int abc_action_button_min_width_overflow_material=0x7f070019;
/** The maximum width we would prefer dialogs to be. 0 if there is no
maximum (let them grow as large as the screen). Actual values are
specified for -large and -xlarge configurations.
see comment in values/config.xml
see comment in values/config.xml
*/
public static final int abc_config_prefDialogWidth=0x7f070002;
/** Default insets (outer padding) around controls
*/
public static final int abc_control_inset_material=0x7f070010;
/** Default inner padding within controls
*/
public static final int abc_control_padding_material=0x7f070011;
/** Width of the icon in a dropdown list
*/
public static final int abc_dropdownitem_icon_width=0x7f07000b;
/** Text padding for dropdown items
*/
public static final int abc_dropdownitem_text_padding_left=0x7f070009;
public static final int abc_dropdownitem_text_padding_right=0x7f07000a;
public static final int abc_panel_menu_list_width=0x7f070006;
/** Preferred width of the search view.
*/
public static final int abc_search_view_preferred_width=0x7f070008;
/** Minimum width of the search view text entry area.
Minimum width of the search view text entry area.
Minimum width of the search view text entry area.
Minimum width of the search view text entry area.
Minimum width of the search view text entry area.
*/
public static final int abc_search_view_text_min_width=0x7f070007;
public static final int abc_text_size_body_1_material=0x7f070025;
public static final int abc_text_size_body_2_material=0x7f070024;
public static final int abc_text_size_button_material=0x7f070027;
public static final int abc_text_size_caption_material=0x7f070026;
public static final int abc_text_size_display_1_material=0x7f07001f;
public static final int abc_text_size_display_2_material=0x7f07001e;
public static final int abc_text_size_display_3_material=0x7f07001d;
public static final int abc_text_size_display_4_material=0x7f07001c;
public static final int abc_text_size_headline_material=0x7f070020;
public static final int abc_text_size_large_material=0x7f070028;
public static final int abc_text_size_medium_material=0x7f070029;
public static final int abc_text_size_menu_material=0x7f070023;
public static final int abc_text_size_small_material=0x7f07002a;
public static final int abc_text_size_subhead_material=0x7f070022;
/** Use the default subtitle sizes on tablets.
Default text size for action bar subtitle.
*/
public static final int abc_text_size_subtitle_material_toolbar=0x7f070013;
public static final int abc_text_size_title_material=0x7f070021;
/** Use the default title sizes on tablets.
Default text size for action bar title.
*/
public static final int abc_text_size_title_material_toolbar=0x7f070012;
/** Default screen margins, per the Android Design guidelines.
Example customization of dimensions originally defined in res/values/dimens.xml
(such as screen margins) for screens with more than 820dp of available width. This
would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively).
*/
public static final int activity_horizontal_margin=0x7f07002b;
public static final int activity_vertical_margin=0x7f07002c;
/** The platform's desired fixed height for a dialog along the major axis
(the screen is in portrait). This may be either a fraction or a dimension.
The platform's desired fixed height for a dialog along the major axis
(the screen is in portrait). This may be either a fraction or a dimension.
The platform's desired fixed height for a dialog along the major axis
(the screen is in portrait). This may be either a fraction or a dimension.
*/
public static final int dialog_fixed_height_major=0x7f07000e;
/** The platform's desired fixed height for a dialog along the minor axis
(the screen is in landscape). This may be either a fraction or a dimension.
The platform's desired fixed height for a dialog along the minor axis
(the screen is in landscape). This may be either a fraction or a dimension.
The platform's desired fixed height for a dialog along the minor axis
(the screen is in landscape). This may be either a fraction or a dimension.
*/
public static final int dialog_fixed_height_minor=0x7f07000f;
/** The platform's desired fixed width for a dialog along the major axis
(the screen is in landscape). This may be either a fraction or a dimension.
The platform's desired fixed width for a dialog along the major axis
(the screen is in landscape). This may be either a fraction or a dimension.
The platform's desired fixed width for a dialog along the major axis
(the screen is in landscape). This may be either a fraction or a dimension.
*/
public static final int dialog_fixed_width_major=0x7f07000c;
/** The platform's desired fixed width for a dialog along the minor axis
(the screen is in portrait). This may be either a fraction or a dimension.
The platform's desired fixed width for a dialog along the minor axis
(the screen is in portrait). This may be either a fraction or a dimension.
The platform's desired fixed width for a dialog along the minor axis
(the screen is in portrait). This may be either a fraction or a dimension.
*/
public static final int dialog_fixed_width_minor=0x7f07000d;
public static final int disabled_alpha_material_dark=0x7f070001;
public static final int disabled_alpha_material_light=0x7f070000;
}
public static final class drawable {
public static final int abc_ab_share_pack_holo_dark=0x7f020000;
public static final int abc_ab_share_pack_holo_light=0x7f020001;
public static final int abc_btn_check_material=0x7f020002;
public static final int abc_btn_check_to_on_mtrl_000=0x7f020003;
public static final int abc_btn_check_to_on_mtrl_015=0x7f020004;
public static final int abc_btn_radio_material=0x7f020005;
public static final int abc_btn_radio_to_on_mtrl_000=0x7f020006;
public static final int abc_btn_radio_to_on_mtrl_015=0x7f020007;
public static final int abc_btn_switch_to_on_mtrl_00001=0x7f020008;
public static final int abc_btn_switch_to_on_mtrl_00012=0x7f020009;
public static final int abc_cab_background_internal_bg=0x7f02000a;
public static final int abc_cab_background_top_material=0x7f02000b;
public static final int abc_cab_background_top_mtrl_alpha=0x7f02000c;
public static final int abc_edit_text_material=0x7f02000d;
public static final int abc_ic_ab_back_mtrl_am_alpha=0x7f02000e;
public static final int abc_ic_clear_mtrl_alpha=0x7f02000f;
public static final int abc_ic_commit_search_api_mtrl_alpha=0x7f020010;
public static final int abc_ic_go_search_api_mtrl_alpha=0x7f020011;
public static final int abc_ic_menu_copy_mtrl_am_alpha=0x7f020012;
public static final int abc_ic_menu_cut_mtrl_alpha=0x7f020013;
public static final int abc_ic_menu_moreoverflow_mtrl_alpha=0x7f020014;
public static final int abc_ic_menu_paste_mtrl_am_alpha=0x7f020015;
public static final int abc_ic_menu_selectall_mtrl_alpha=0x7f020016;
public static final int abc_ic_menu_share_mtrl_alpha=0x7f020017;
public static final int abc_ic_search_api_mtrl_alpha=0x7f020018;
public static final int abc_ic_voice_search_api_mtrl_alpha=0x7f020019;
public static final int abc_item_background_holo_dark=0x7f02001a;
public static final int abc_item_background_holo_light=0x7f02001b;
public static final int abc_list_divider_mtrl_alpha=0x7f02001c;
public static final int abc_list_focused_holo=0x7f02001d;
public static final int abc_list_longpressed_holo=0x7f02001e;
public static final int abc_list_pressed_holo_dark=0x7f02001f;
public static final int abc_list_pressed_holo_light=0x7f020020;
public static final int abc_list_selector_background_transition_holo_dark=0x7f020021;
public static final int abc_list_selector_background_transition_holo_light=0x7f020022;
public static final int abc_list_selector_disabled_holo_dark=0x7f020023;
public static final int abc_list_selector_disabled_holo_light=0x7f020024;
public static final int abc_list_selector_holo_dark=0x7f020025;
public static final int abc_list_selector_holo_light=0x7f020026;
public static final int abc_menu_hardkey_panel_mtrl_mult=0x7f020027;
public static final int abc_popup_background_mtrl_mult=0x7f020028;
public static final int abc_spinner_mtrl_am_alpha=0x7f020029;
public static final int abc_switch_thumb_material=0x7f02002a;
public static final int abc_switch_track_mtrl_alpha=0x7f02002b;
public static final int abc_tab_indicator_material=0x7f02002c;
public static final int abc_tab_indicator_mtrl_alpha=0x7f02002d;
public static final int abc_textfield_activated_mtrl_alpha=0x7f02002e;
public static final int abc_textfield_default_mtrl_alpha=0x7f02002f;
public static final int abc_textfield_search_activated_mtrl_alpha=0x7f020030;
public static final int abc_textfield_search_default_mtrl_alpha=0x7f020031;
public static final int abc_textfield_search_material=0x7f020032;
public static final int arrows=0x7f020033;
public static final int ghost=0x7f020034;
public static final int ic_launcher=0x7f020035;
public static final int smileyface=0x7f020036;
}
public static final class id {
public static final int action_bar=0x7f090033;
public static final int action_bar_activity_content=0x7f090003;
public static final int action_bar_container=0x7f090032;
public static final int action_bar_root=0x7f09002e;
public static final int action_bar_spinner=0x7f090002;
public static final int action_bar_subtitle=0x7f090021;
public static final int action_bar_title=0x7f090020;
public static final int action_context_bar=0x7f090034;
public static final int action_menu_divider=0x7f090005;
public static final int action_menu_presenter=0x7f090006;
public static final int action_mode_bar=0x7f090030;
public static final int action_mode_bar_stub=0x7f09002f;
public static final int action_mode_close_button=0x7f090022;
public static final int action_settings=0x7f090043;
public static final int activity_chooser_view_content=0x7f090023;
public static final int always=0x7f090014;
public static final int beginning=0x7f09001b;
public static final int bottom=0x7f09001e;
public static final int checkbox=0x7f09002b;
public static final int collapseActionView=0x7f090015;
public static final int container=0x7f090041;
public static final int decor_content_parent=0x7f090031;
public static final int default_activity_button=0x7f090026;
public static final int dialog=0x7f090019;
public static final int disableHome=0x7f09000d;
public static final int dropdown=0x7f09001a;
public static final int edit_query=0x7f090035;
public static final int end=0x7f09001c;
public static final int expand_activities_button=0x7f090024;
public static final int expanded_menu=0x7f09002a;
public static final int home=0x7f090000;
public static final int homeAsUp=0x7f09000e;
public static final int icon=0x7f090028;
public static final int ifRoom=0x7f090016;
public static final int image=0x7f090025;
public static final int listMode=0x7f09000a;
public static final int list_item=0x7f090027;
public static final int middle=0x7f09001d;
public static final int never=0x7f090017;
public static final int none=0x7f09000f;
public static final int normal=0x7f09000b;
public static final int progress_circular=0x7f090007;
public static final int progress_horizontal=0x7f090008;
public static final int radio=0x7f09002d;
public static final int right=0x7f090042;
public static final int search_badge=0x7f090037;
public static final int search_bar=0x7f090036;
public static final int search_button=0x7f090038;
public static final int search_close_btn=0x7f09003d;
public static final int search_edit_frame=0x7f090039;
public static final int search_go_btn=0x7f09003f;
public static final int search_mag_icon=0x7f09003a;
public static final int search_plate=0x7f09003b;
public static final int search_src_text=0x7f09003c;
public static final int search_voice_btn=0x7f090040;
public static final int shortcut=0x7f09002c;
public static final int showCustom=0x7f090010;
public static final int showHome=0x7f090011;
public static final int showTitle=0x7f090012;
public static final int split_action_bar=0x7f090004;
public static final int submit_area=0x7f09003e;
public static final int tabMode=0x7f09000c;
public static final int title=0x7f090029;
public static final int top=0x7f09001f;
public static final int up=0x7f090001;
public static final int useLogo=0x7f090013;
public static final int withText=0x7f090018;
public static final int wrap_content=0x7f090009;
}
public static final class integer {
/** The maximum number of action buttons that should be permitted within
an action bar/action mode. This will be used to determine how many
showAsAction="ifRoom" items can fit. "always" items can override this.
The maximum number of action buttons that should be permitted within
an action bar/action mode. This will be used to determine how many
showAsAction="ifRoom" items can fit. "always" items can override this.
The maximum number of action buttons that should be permitted within
an action bar/action mode. This will be used to determine how many
showAsAction="ifRoom" items can fit. "always" items can override this.
The maximum number of action buttons that should be permitted within
an action bar/action mode. This will be used to determine how many
showAsAction="ifRoom" items can fit. "always" items can override this.
The maximum number of action buttons that should be permitted within
an action bar/action mode. This will be used to determine how many
showAsAction="ifRoom" items can fit. "always" items can override this.
The maximum number of action buttons that should be permitted within
an action bar/action mode. This will be used to determine how many
showAsAction="ifRoom" items can fit. "always" items can override this.
The maximum number of action buttons that should be permitted within
an action bar/action mode. This will be used to determine how many
showAsAction="ifRoom" items can fit. "always" items can override this.
*/
public static final int abc_max_action_buttons=0x7f080000;
}
public static final class layout {
public static final int abc_action_bar_title_item=0x7f030000;
public static final int abc_action_bar_up_container=0x7f030001;
public static final int abc_action_bar_view_list_nav_layout=0x7f030002;
public static final int abc_action_menu_item_layout=0x7f030003;
public static final int abc_action_menu_layout=0x7f030004;
public static final int abc_action_mode_bar=0x7f030005;
public static final int abc_action_mode_close_item_material=0x7f030006;
public static final int abc_activity_chooser_view=0x7f030007;
public static final int abc_activity_chooser_view_include=0x7f030008;
public static final int abc_activity_chooser_view_list_item=0x7f030009;
public static final int abc_expanded_menu_layout=0x7f03000a;
public static final int abc_list_menu_item_checkbox=0x7f03000b;
public static final int abc_list_menu_item_icon=0x7f03000c;
public static final int abc_list_menu_item_layout=0x7f03000d;
public static final int abc_list_menu_item_radio=0x7f03000e;
public static final int abc_popup_menu_item_layout=0x7f03000f;
public static final int abc_screen_content_include=0x7f030010;
public static final int abc_screen_simple=0x7f030011;
public static final int abc_screen_simple_overlay_action_mode=0x7f030012;
public static final int abc_screen_toolbar=0x7f030013;
public static final int abc_search_dropdown_item_icons_2line=0x7f030014;
public static final int abc_search_view=0x7f030015;
public static final int abc_simple_dropdown_hint=0x7f030016;
public static final int activity_main=0x7f030017;
public static final int fragment_main=0x7f030018;
public static final int support_simple_spinner_dropdown_item=0x7f030019;
}
public static final class menu {
public static final int main=0x7f0c0000;
}
public static final class string {
/** Content description for the action bar "home" affordance. [CHAR LIMIT=NONE]
*/
public static final int abc_action_bar_home_description=0x7f0a0001;
/** Formatting string for describing the action bar's title/home/up affordance.
This is a single tappable "button" that includes the app icon, the Up indicator
(usually a "<" chevron) and the window title text.
%1$s is the title. %2$s is the description of what tapping/clicking the whole
thing is going to do.
*/
public static final int abc_action_bar_home_description_format=0x7f0a0004;
/** Just like action_bar_home_description_format, but this one will be used
if the window is also providing subtitle text.
%1$s is the title. %2$s is the subtitle. %3$s is the description of what
tapping/clicking the whole thing is going to do.
*/
public static final int abc_action_bar_home_subtitle_description_format=0x7f0a0005;
/** Content description for the action bar "up" affordance. [CHAR LIMIT=NONE]
*/
public static final int abc_action_bar_up_description=0x7f0a0002;
/** Content description for the action menu overflow button. [CHAR LIMIT=NONE]
*/
public static final int abc_action_menu_overflow_description=0x7f0a0003;
/** Label for the "Done" button on the far left of action mode toolbars.
*/
public static final int abc_action_mode_done=0x7f0a0000;
/** Title for a button to expand the list of activities in ActivityChooserView [CHAR LIMIT=25]
*/
public static final int abc_activity_chooser_view_see_all=0x7f0a000c;
/** ActivityChooserView - accessibility support
Description of the shwoing of a popup window with activities to choose from. [CHAR LIMIT=NONE]
*/
public static final int abc_activitychooserview_choose_application=0x7f0a000b;
/** SearchView accessibility description for clear button [CHAR LIMIT=NONE]
*/
public static final int abc_searchview_description_clear=0x7f0a0008;
/** SearchView accessibility description for search text field [CHAR LIMIT=NONE]
*/
public static final int abc_searchview_description_query=0x7f0a0007;
/** SearchView accessibility description for search button [CHAR LIMIT=NONE]
*/
public static final int abc_searchview_description_search=0x7f0a0006;
/** SearchView accessibility description for submit button [CHAR LIMIT=NONE]
*/
public static final int abc_searchview_description_submit=0x7f0a0009;
/** SearchView accessibility description for voice button [CHAR LIMIT=NONE]
*/
public static final int abc_searchview_description_voice=0x7f0a000a;
/** Description of the choose target button in a ShareActionProvider (share UI). [CHAR LIMIT=NONE]
*/
public static final int abc_shareactionprovider_share_with=0x7f0a000e;
/** Description of a share target (both in the list of such or the default share button) in a ShareActionProvider (share UI). [CHAR LIMIT=NONE]
*/
public static final int abc_shareactionprovider_share_with_application=0x7f0a000d;
public static final int action_settings=0x7f0a0011;
public static final int app_name=0x7f0a000f;
public static final int hello_world=0x7f0a0010;
}
public static final class style {
/**
Base application theme, dependent on API level. This theme is replaced
by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
Theme customizations available in newer API levels can go in
res/values-vXX/styles.xml, while customizations related to
backward-compatibility can go here.
Base application theme for API 11+. This theme completely replaces
AppBaseTheme from res/values/styles.xml on API 11+ devices.
API 11 theme customizations can go here.
Base application theme for API 14+. This theme completely replaces
AppBaseTheme from BOTH res/values/styles.xml and
res/values-v11/styles.xml on API 14+ devices.
API 14 theme customizations can go here.
*/
public static final int AppBaseTheme=0x7f0b00eb;
/** Application theme.
All customizations that are NOT specific to a particular API-level can go here.
*/
public static final int AppTheme=0x7f0b00ec;
public static final int Base_TextAppearance_AppCompat=0x7f0b0098;
public static final int Base_TextAppearance_AppCompat_Body1=0x7f0b00a3;
public static final int Base_TextAppearance_AppCompat_Body2=0x7f0b00a2;
public static final int Base_TextAppearance_AppCompat_Button=0x7f0b00a6;
public static final int Base_TextAppearance_AppCompat_Caption=0x7f0b00a4;
public static final int Base_TextAppearance_AppCompat_Display1=0x7f0b009c;
public static final int Base_TextAppearance_AppCompat_Display2=0x7f0b009b;
public static final int Base_TextAppearance_AppCompat_Display3=0x7f0b009a;
public static final int Base_TextAppearance_AppCompat_Display4=0x7f0b0099;
public static final int Base_TextAppearance_AppCompat_Headline=0x7f0b009d;
/** Deprecated text styles
Deprecated text styles
Now deprecated styles
*/
public static final int Base_TextAppearance_AppCompat_Inverse=0x7f0b00a7;
public static final int Base_TextAppearance_AppCompat_Large=0x7f0b00a8;
public static final int Base_TextAppearance_AppCompat_Large_Inverse=0x7f0b00a9;
public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Large=0x7f0b0085;
public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Small=0x7f0b0086;
public static final int Base_TextAppearance_AppCompat_Medium=0x7f0b00aa;
public static final int Base_TextAppearance_AppCompat_Medium_Inverse=0x7f0b00ab;
public static final int Base_TextAppearance_AppCompat_Menu=0x7f0b00a5;
public static final int Base_TextAppearance_AppCompat_SearchResult=0x7f0b0087;
public static final int Base_TextAppearance_AppCompat_SearchResult_Subtitle=0x7f0b0089;
/** Search View result styles
*/
public static final int Base_TextAppearance_AppCompat_SearchResult_Title=0x7f0b0088;
public static final int Base_TextAppearance_AppCompat_Small=0x7f0b00ac;
public static final int Base_TextAppearance_AppCompat_Small_Inverse=0x7f0b00ad;
public static final int Base_TextAppearance_AppCompat_Subhead=0x7f0b00a0;
public static final int Base_TextAppearance_AppCompat_Subhead_Inverse=0x7f0b00a1;
public static final int Base_TextAppearance_AppCompat_Title=0x7f0b009e;
public static final int Base_TextAppearance_AppCompat_Title_Inverse=0x7f0b009f;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Menu=0x7f0b0070;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle=0x7f0b0072;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse=0x7f0b0074;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title=0x7f0b0071;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse=0x7f0b0073;
public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Subtitle=0x7f0b006f;
public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Title=0x7f0b006e;
public static final int Base_TextAppearance_AppCompat_Widget_DropDownItem=0x7f0b007b;
public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Large=0x7f0b0083;
public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Small=0x7f0b0084;
public static final int Base_TextAppearance_AppCompat_Widget_Switch=0x7f0b0097;
public static final int Base_TextAppearance_Widget_AppCompat_ExpandedMenu_Item=0x7f0b007c;
public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Subtitle=0x7f0b0092;
public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Title=0x7f0b0091;
public static final int Base_Theme_AppCompat=0x7f0b00cf;
/** Menu/item attributes
*/
public static final int Base_Theme_AppCompat_CompactMenu=0x7f0b00d2;
public static final int Base_Theme_AppCompat_Dialog=0x7f0b00d4;
public static final int Base_Theme_AppCompat_Dialog_FixedSize=0x7f0b00d6;
/** We're not large, so redirect to Theme.AppCompat
*/
public static final int Base_Theme_AppCompat_DialogWhenLarge=0x7f0b00d8;
public static final int Base_Theme_AppCompat_Light=0x7f0b00d0;
public static final int Base_Theme_AppCompat_Light_DarkActionBar=0x7f0b00d1;
public static final int Base_Theme_AppCompat_Light_Dialog=0x7f0b00d5;
public static final int Base_Theme_AppCompat_Light_Dialog_FixedSize=0x7f0b00d7;
public static final int Base_Theme_AppCompat_Light_DialogWhenLarge=0x7f0b00d9;
/** Overlay themes
*/
public static final int Base_ThemeOverlay_AppCompat=0x7f0b00da;
public static final int Base_ThemeOverlay_AppCompat_ActionBar=0x7f0b00dd;
public static final int Base_ThemeOverlay_AppCompat_Dark=0x7f0b00dc;
public static final int Base_ThemeOverlay_AppCompat_Dark_ActionBar=0x7f0b00de;
public static final int Base_ThemeOverlay_AppCompat_Light=0x7f0b00db;
public static final int Base_V11_Theme_AppCompat=0x7f0b00df;
public static final int Base_V11_Theme_AppCompat_Dialog=0x7f0b00e1;
public static final int Base_V11_Theme_AppCompat_Light=0x7f0b00e0;
public static final int Base_V11_Theme_AppCompat_Light_Dialog=0x7f0b00e2;
public static final int Base_V14_Theme_AppCompat=0x7f0b00e3;
public static final int Base_V14_Theme_AppCompat_Dialog=0x7f0b00e5;
public static final int Base_V14_Theme_AppCompat_Light=0x7f0b00e4;
public static final int Base_V14_Theme_AppCompat_Light_Dialog=0x7f0b00e6;
public static final int Base_V21_Theme_AppCompat=0x7f0b00e7;
public static final int Base_V21_Theme_AppCompat_Dialog=0x7f0b00e9;
public static final int Base_V21_Theme_AppCompat_Light=0x7f0b00e8;
public static final int Base_V21_Theme_AppCompat_Light_Dialog=0x7f0b00ea;
/** Base platform-dependent theme providing an action bar in a dark-themed activity.
*/
public static final int Base_V7_Theme_AppCompat=0x7f0b00cd;
public static final int Base_V7_Theme_AppCompat_Dialog=0x7f0b00d3;
/** Base platform-dependent theme providing an action bar in a light-themed activity.
*/
public static final int Base_V7_Theme_AppCompat_Light=0x7f0b00ce;
public static final int Base_Widget_AppCompat_ActionBar=0x7f0b005f;
public static final int Base_Widget_AppCompat_ActionBar_Solid=0x7f0b0061;
public static final int Base_Widget_AppCompat_ActionBar_TabBar=0x7f0b0066;
public static final int Base_Widget_AppCompat_ActionBar_TabText=0x7f0b006a;
public static final int Base_Widget_AppCompat_ActionBar_TabView=0x7f0b0068;
/** Action Button Styles
*/
public static final int Base_Widget_AppCompat_ActionButton=0x7f0b0063;
public static final int Base_Widget_AppCompat_ActionButton_CloseMode=0x7f0b0064;
public static final int Base_Widget_AppCompat_ActionButton_Overflow=0x7f0b0065;
public static final int Base_Widget_AppCompat_ActionMode=0x7f0b006d;
/** TODO. Needs updating for Material
*/
public static final int Base_Widget_AppCompat_ActivityChooserView=0x7f0b008c;
public static final int Base_Widget_AppCompat_AutoCompleteTextView=0x7f0b008a;
public static final int Base_Widget_AppCompat_CompoundButton_Switch=0x7f0b0096;
public static final int Base_Widget_AppCompat_DrawerArrowToggle=0x7f0b0095;
public static final int Base_Widget_AppCompat_DropDownItem_Spinner=0x7f0b0079;
public static final int Base_Widget_AppCompat_EditText=0x7f0b0094;
public static final int Base_Widget_AppCompat_Light_ActionBar=0x7f0b0060;
public static final int Base_Widget_AppCompat_Light_ActionBar_Solid=0x7f0b0062;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabBar=0x7f0b0067;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabText=0x7f0b006b;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabText_Inverse=0x7f0b006c;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabView=0x7f0b0069;
public static final int Base_Widget_AppCompat_Light_ActivityChooserView=0x7f0b008d;
public static final int Base_Widget_AppCompat_Light_AutoCompleteTextView=0x7f0b008b;
public static final int Base_Widget_AppCompat_Light_PopupMenu=0x7f0b0082;
public static final int Base_Widget_AppCompat_Light_PopupMenu_Overflow=0x7f0b0080;
/** Popup Menu
*/
public static final int Base_Widget_AppCompat_ListPopupWindow=0x7f0b007e;
/** Spinner Widgets
*/
public static final int Base_Widget_AppCompat_ListView_DropDown=0x7f0b007a;
public static final int Base_Widget_AppCompat_ListView_Menu=0x7f0b007d;
public static final int Base_Widget_AppCompat_PopupMenu=0x7f0b0081;
public static final int Base_Widget_AppCompat_PopupMenu_Overflow=0x7f0b007f;
public static final int Base_Widget_AppCompat_PopupWindow=0x7f0b008e;
public static final int Base_Widget_AppCompat_ProgressBar=0x7f0b0076;
/** Progress Bar
Progress Bar
*/
public static final int Base_Widget_AppCompat_ProgressBar_Horizontal=0x7f0b0075;
public static final int Base_Widget_AppCompat_SearchView=0x7f0b0093;
/** Spinner Widgets
*/
public static final int Base_Widget_AppCompat_Spinner=0x7f0b0077;
public static final int Base_Widget_AppCompat_Spinner_DropDown_ActionBar=0x7f0b0078;
public static final int Base_Widget_AppCompat_Toolbar=0x7f0b008f;
/**
Widget.AppCompat.Toolbar style is purposely ommitted. This is because the support
Toolbar implementation is used on ALL platforms and relies on the unbundled attrs.
The supporting Toolbar styles below only use basic attrs so work fine.
*/
public static final int Base_Widget_AppCompat_Toolbar_Button_Navigation=0x7f0b0090;
public static final int Platform_AppCompat=0x7f0b00c9;
public static final int Platform_AppCompat_Dialog=0x7f0b00cb;
public static final int Platform_AppCompat_Light=0x7f0b00ca;
public static final int Platform_AppCompat_Light_Dialog=0x7f0b00cc;
public static final int RtlOverlay_Widget_AppCompat_ActionBar_TitleItem=0x7f0b00b4;
public static final int RtlOverlay_Widget_AppCompat_ActionButton_CloseMode=0x7f0b00b5;
public static final int RtlOverlay_Widget_AppCompat_ActionButton_Overflow=0x7f0b00b6;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem=0x7f0b00b7;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_InternalGroup=0x7f0b00b8;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_Text=0x7f0b00b9;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown=0x7f0b00af;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon1=0x7f0b00b1;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon2=0x7f0b00b2;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Query=0x7f0b00b0;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Text=0x7f0b00b3;
public static final int RtlOverlay_Widget_AppCompat_SearchView_MagIcon=0x7f0b00ae;
/** Text styles
*/
public static final int TextAppearance_AppCompat=0x7f0b0038;
public static final int TextAppearance_AppCompat_Body1=0x7f0b0043;
public static final int TextAppearance_AppCompat_Body2=0x7f0b0042;
public static final int TextAppearance_AppCompat_Button=0x7f0b004d;
public static final int TextAppearance_AppCompat_Caption=0x7f0b0044;
public static final int TextAppearance_AppCompat_Display1=0x7f0b003c;
public static final int TextAppearance_AppCompat_Display2=0x7f0b003b;
public static final int TextAppearance_AppCompat_Display3=0x7f0b003a;
public static final int TextAppearance_AppCompat_Display4=0x7f0b0039;
public static final int TextAppearance_AppCompat_Headline=0x7f0b003d;
public static final int TextAppearance_AppCompat_Inverse=0x7f0b0046;
public static final int TextAppearance_AppCompat_Large=0x7f0b0047;
public static final int TextAppearance_AppCompat_Large_Inverse=0x7f0b0048;
public static final int TextAppearance_AppCompat_Light_SearchResult_Subtitle=0x7f0b0053;
public static final int TextAppearance_AppCompat_Light_SearchResult_Title=0x7f0b0052;
public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large=0x7f0b0029;
public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small=0x7f0b002a;
public static final int TextAppearance_AppCompat_Medium=0x7f0b0049;
public static final int TextAppearance_AppCompat_Medium_Inverse=0x7f0b004a;
public static final int TextAppearance_AppCompat_Menu=0x7f0b0045;
public static final int TextAppearance_AppCompat_SearchResult_Subtitle=0x7f0b002c;
public static final int TextAppearance_AppCompat_SearchResult_Title=0x7f0b002b;
public static final int TextAppearance_AppCompat_Small=0x7f0b004b;
public static final int TextAppearance_AppCompat_Small_Inverse=0x7f0b004c;
public static final int TextAppearance_AppCompat_Subhead=0x7f0b0040;
public static final int TextAppearance_AppCompat_Subhead_Inverse=0x7f0b0041;
public static final int TextAppearance_AppCompat_Title=0x7f0b003e;
public static final int TextAppearance_AppCompat_Title_Inverse=0x7f0b003f;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Menu=0x7f0b0015;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle=0x7f0b0005;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse=0x7f0b0007;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Title=0x7f0b0004;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse=0x7f0b0006;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle=0x7f0b0018;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse=0x7f0b0056;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Title=0x7f0b0017;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse=0x7f0b0055;
public static final int TextAppearance_AppCompat_Widget_DropDownItem=0x7f0b0019;
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Large=0x7f0b0027;
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Small=0x7f0b0028;
public static final int TextAppearance_AppCompat_Widget_Switch=0x7f0b004e;
public static final int TextAppearance_Widget_AppCompat_ExpandedMenu_Item=0x7f0b001f;
public static final int TextAppearance_Widget_AppCompat_Toolbar_Subtitle=0x7f0b0037;
public static final int TextAppearance_Widget_AppCompat_Toolbar_Title=0x7f0b0036;
/** Themes in the "Theme.AppCompat" family will contain an action bar by default.
If Holo themes are available on the current platform version they will be used.
A limited Holo-styled action bar will be provided on platform versions older
than 3.0. (API 11)
These theme declarations contain any version-independent specification. Items
that need to vary based on platform version should be defined in the corresponding
"Theme.Base" theme.
Platform-independent theme providing an action bar in a dark-themed activity.
*/
public static final int Theme_AppCompat=0x7f0b00ba;
/** Menu/item attributes
*/
public static final int Theme_AppCompat_CompactMenu=0x7f0b00c3;
public static final int Theme_AppCompat_Dialog=0x7f0b00c1;
public static final int Theme_AppCompat_DialogWhenLarge=0x7f0b00bf;
/** Platform-independent theme providing an action bar in a light-themed activity.
*/
public static final int Theme_AppCompat_Light=0x7f0b00bb;
/** Platform-independent theme providing an action bar in a dark-themed activity.
*/
public static final int Theme_AppCompat_Light_DarkActionBar=0x7f0b00bc;
public static final int Theme_AppCompat_Light_Dialog=0x7f0b00c2;
public static final int Theme_AppCompat_Light_DialogWhenLarge=0x7f0b00c0;
public static final int Theme_AppCompat_Light_NoActionBar=0x7f0b00be;
public static final int Theme_AppCompat_NoActionBar=0x7f0b00bd;
public static final int ThemeOverlay_AppCompat=0x7f0b00c4;
/** Theme overlay that replaces the normal control color, which by default is the same as the
secondary text color, with the primary text color.
*/
public static final int ThemeOverlay_AppCompat_ActionBar=0x7f0b00c7;
/** Theme overlay that replaces colors with their dark versions but preserves
the value of colorAccent, colorPrimary and its variants.
*/
public static final int ThemeOverlay_AppCompat_Dark=0x7f0b00c6;
/** Theme overlay that replaces colors with their dark versions and replaces the normal
control color, which by default is the same as the secondary text color, with the primary
text color.
*/
public static final int ThemeOverlay_AppCompat_Dark_ActionBar=0x7f0b00c8;
/** Theme overlay that replaces colors with their light versions but preserves
the value of colorAccent, colorPrimary and its variants.
*/
public static final int ThemeOverlay_AppCompat_Light=0x7f0b00c5;
/** Styles in here can be extended for customisation in your application. Each utilises
one of the.styles. If Holo themes are available on the current platform version
they will be used instead of the compat styles.
*/
public static final int Widget_AppCompat_ActionBar=0x7f0b0000;
public static final int Widget_AppCompat_ActionBar_Solid=0x7f0b0002;
public static final int Widget_AppCompat_ActionBar_TabBar=0x7f0b000d;
public static final int Widget_AppCompat_ActionBar_TabText=0x7f0b0011;
public static final int Widget_AppCompat_ActionBar_TabView=0x7f0b000f;
public static final int Widget_AppCompat_ActionButton=0x7f0b000a;
/** This style has an extra indirection to properly set RTL attributes. See styles_rtl.xml
*/
public static final int Widget_AppCompat_ActionButton_CloseMode=0x7f0b000b;
public static final int Widget_AppCompat_ActionButton_Overflow=0x7f0b000c;
public static final int Widget_AppCompat_ActionMode=0x7f0b0016;
public static final int Widget_AppCompat_ActivityChooserView=0x7f0b002f;
public static final int Widget_AppCompat_AutoCompleteTextView=0x7f0b002d;
public static final int Widget_AppCompat_CompoundButton_Switch=0x7f0b0033;
public static final int Widget_AppCompat_DrawerArrowToggle=0x7f0b0012;
/** This style has an extra indirection to properly set RTL attributes. See styles_rtl.xml
*/
public static final int Widget_AppCompat_DropDownItem_Spinner=0x7f0b001d;
public static final int Widget_AppCompat_EditText=0x7f0b0032;
public static final int Widget_AppCompat_Light_ActionBar=0x7f0b0001;
public static final int Widget_AppCompat_Light_ActionBar_Solid=0x7f0b0003;
/**
The following themes are deprecated.
*/
public static final int Widget_AppCompat_Light_ActionBar_Solid_Inverse=0x7f0b004f;
public static final int Widget_AppCompat_Light_ActionBar_TabBar=0x7f0b000e;
public static final int Widget_AppCompat_Light_ActionBar_TabBar_Inverse=0x7f0b0050;
public static final int Widget_AppCompat_Light_ActionBar_TabText=0x7f0b0013;
public static final int Widget_AppCompat_Light_ActionBar_TabText_Inverse=0x7f0b0014;
public static final int Widget_AppCompat_Light_ActionBar_TabView=0x7f0b0010;
public static final int Widget_AppCompat_Light_ActionBar_TabView_Inverse=0x7f0b0051;
public static final int Widget_AppCompat_Light_ActionButton=0x7f0b0059;
public static final int Widget_AppCompat_Light_ActionButton_CloseMode=0x7f0b005b;
public static final int Widget_AppCompat_Light_ActionButton_Overflow=0x7f0b005a;
public static final int Widget_AppCompat_Light_ActionMode_Inverse=0x7f0b0054;
public static final int Widget_AppCompat_Light_ActivityChooserView=0x7f0b0030;
public static final int Widget_AppCompat_Light_AutoCompleteTextView=0x7f0b002e;
public static final int Widget_AppCompat_Light_DropDownItem_Spinner=0x7f0b0057;
public static final int Widget_AppCompat_Light_ListPopupWindow=0x7f0b005e;
public static final int Widget_AppCompat_Light_ListView_DropDown=0x7f0b005d;
public static final int Widget_AppCompat_Light_PopupMenu=0x7f0b0024;
public static final int Widget_AppCompat_Light_PopupMenu_Overflow=0x7f0b0022;
public static final int Widget_AppCompat_Light_SearchView=0x7f0b0058;
public static final int Widget_AppCompat_Light_Spinner_DropDown_ActionBar=0x7f0b005c;
public static final int Widget_AppCompat_ListPopupWindow=0x7f0b0020;
public static final int Widget_AppCompat_ListView_DropDown=0x7f0b001e;
public static final int Widget_AppCompat_ListView_Menu=0x7f0b0025;
public static final int Widget_AppCompat_PopupMenu=0x7f0b0023;
public static final int Widget_AppCompat_PopupMenu_Overflow=0x7f0b0021;
public static final int Widget_AppCompat_PopupWindow=0x7f0b0026;
public static final int Widget_AppCompat_ProgressBar=0x7f0b0009;
public static final int Widget_AppCompat_ProgressBar_Horizontal=0x7f0b0008;
public static final int Widget_AppCompat_SearchView=0x7f0b0031;
public static final int Widget_AppCompat_Spinner=0x7f0b001a;
public static final int Widget_AppCompat_Spinner_DropDown=0x7f0b001b;
public static final int Widget_AppCompat_Spinner_DropDown_ActionBar=0x7f0b001c;
/** Toolbar
*/
public static final int Widget_AppCompat_Toolbar=0x7f0b0034;
public static final int Widget_AppCompat_Toolbar_Button_Navigation=0x7f0b0035;
}
public static final class styleable {
/** ============================================
Attributes used to style the Action Bar.
These should be set on your theme; the default actionBarStyle will
propagate them to the correct elements as needed.
Please Note: when overriding attributes for an ActionBar style
you must specify each attribute twice: once with the "android:"
namespace prefix and once without.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ActionBar_background edu.virginia.abf2dh.ghosthunter:background}</code></td><td> Specifies a background drawable for the action bar.</td></tr>
<tr><td><code>{@link #ActionBar_backgroundSplit edu.virginia.abf2dh.ghosthunter:backgroundSplit}</code></td><td> Specifies a background drawable for the bottom component of a split action bar.</td></tr>
<tr><td><code>{@link #ActionBar_backgroundStacked edu.virginia.abf2dh.ghosthunter:backgroundStacked}</code></td><td> Specifies a background drawable for a second stacked row of the action bar.</td></tr>
<tr><td><code>{@link #ActionBar_contentInsetEnd edu.virginia.abf2dh.ghosthunter:contentInsetEnd}</code></td><td> Minimum inset for content views within a bar.</td></tr>
<tr><td><code>{@link #ActionBar_contentInsetLeft edu.virginia.abf2dh.ghosthunter:contentInsetLeft}</code></td><td> Minimum inset for content views within a bar.</td></tr>
<tr><td><code>{@link #ActionBar_contentInsetRight edu.virginia.abf2dh.ghosthunter:contentInsetRight}</code></td><td> Minimum inset for content views within a bar.</td></tr>
<tr><td><code>{@link #ActionBar_contentInsetStart edu.virginia.abf2dh.ghosthunter:contentInsetStart}</code></td><td> Minimum inset for content views within a bar.</td></tr>
<tr><td><code>{@link #ActionBar_customNavigationLayout edu.virginia.abf2dh.ghosthunter:customNavigationLayout}</code></td><td> Specifies a layout for custom navigation.</td></tr>
<tr><td><code>{@link #ActionBar_displayOptions edu.virginia.abf2dh.ghosthunter:displayOptions}</code></td><td> Options affecting how the action bar is displayed.</td></tr>
<tr><td><code>{@link #ActionBar_divider edu.virginia.abf2dh.ghosthunter:divider}</code></td><td> Specifies the drawable used for item dividers.</td></tr>
<tr><td><code>{@link #ActionBar_elevation edu.virginia.abf2dh.ghosthunter:elevation}</code></td><td> Elevation for the action bar itself </td></tr>
<tr><td><code>{@link #ActionBar_height edu.virginia.abf2dh.ghosthunter:height}</code></td><td> Specifies a fixed height.</td></tr>
<tr><td><code>{@link #ActionBar_hideOnContentScroll edu.virginia.abf2dh.ghosthunter:hideOnContentScroll}</code></td><td> Set true to hide the action bar on a vertical nested scroll of content.</td></tr>
<tr><td><code>{@link #ActionBar_homeAsUpIndicator edu.virginia.abf2dh.ghosthunter:homeAsUpIndicator}</code></td><td> Up navigation glyph </td></tr>
<tr><td><code>{@link #ActionBar_homeLayout edu.virginia.abf2dh.ghosthunter:homeLayout}</code></td><td> Specifies a layout to use for the "home" section of the action bar.</td></tr>
<tr><td><code>{@link #ActionBar_icon edu.virginia.abf2dh.ghosthunter:icon}</code></td><td> Specifies the drawable used for the application icon.</td></tr>
<tr><td><code>{@link #ActionBar_indeterminateProgressStyle edu.virginia.abf2dh.ghosthunter:indeterminateProgressStyle}</code></td><td> Specifies a style resource to use for an indeterminate progress spinner.</td></tr>
<tr><td><code>{@link #ActionBar_itemPadding edu.virginia.abf2dh.ghosthunter:itemPadding}</code></td><td> Specifies padding that should be applied to the left and right sides of
system-provided items in the bar.</td></tr>
<tr><td><code>{@link #ActionBar_logo edu.virginia.abf2dh.ghosthunter:logo}</code></td><td> Specifies the drawable used for the application logo.</td></tr>
<tr><td><code>{@link #ActionBar_navigationMode edu.virginia.abf2dh.ghosthunter:navigationMode}</code></td><td> The type of navigation to use.</td></tr>
<tr><td><code>{@link #ActionBar_popupTheme edu.virginia.abf2dh.ghosthunter:popupTheme}</code></td><td> Reference to a theme that should be used to inflate popups
shown by widgets in the action bar.</td></tr>
<tr><td><code>{@link #ActionBar_progressBarPadding edu.virginia.abf2dh.ghosthunter:progressBarPadding}</code></td><td> Specifies the horizontal padding on either end for an embedded progress bar.</td></tr>
<tr><td><code>{@link #ActionBar_progressBarStyle edu.virginia.abf2dh.ghosthunter:progressBarStyle}</code></td><td> Specifies a style resource to use for an embedded progress bar.</td></tr>
<tr><td><code>{@link #ActionBar_subtitle edu.virginia.abf2dh.ghosthunter:subtitle}</code></td><td> Specifies subtitle text used for navigationMode="normal" </td></tr>
<tr><td><code>{@link #ActionBar_subtitleTextStyle edu.virginia.abf2dh.ghosthunter:subtitleTextStyle}</code></td><td> Specifies a style to use for subtitle text.</td></tr>
<tr><td><code>{@link #ActionBar_title edu.virginia.abf2dh.ghosthunter:title}</code></td><td> Specifies title text used for navigationMode="normal" </td></tr>
<tr><td><code>{@link #ActionBar_titleTextStyle edu.virginia.abf2dh.ghosthunter:titleTextStyle}</code></td><td> Specifies a style to use for title text.</td></tr>
</table>
@see #ActionBar_background
@see #ActionBar_backgroundSplit
@see #ActionBar_backgroundStacked
@see #ActionBar_contentInsetEnd
@see #ActionBar_contentInsetLeft
@see #ActionBar_contentInsetRight
@see #ActionBar_contentInsetStart
@see #ActionBar_customNavigationLayout
@see #ActionBar_displayOptions
@see #ActionBar_divider
@see #ActionBar_elevation
@see #ActionBar_height
@see #ActionBar_hideOnContentScroll
@see #ActionBar_homeAsUpIndicator
@see #ActionBar_homeLayout
@see #ActionBar_icon
@see #ActionBar_indeterminateProgressStyle
@see #ActionBar_itemPadding
@see #ActionBar_logo
@see #ActionBar_navigationMode
@see #ActionBar_popupTheme
@see #ActionBar_progressBarPadding
@see #ActionBar_progressBarStyle
@see #ActionBar_subtitle
@see #ActionBar_subtitleTextStyle
@see #ActionBar_title
@see #ActionBar_titleTextStyle
*/
public static final int[] ActionBar = {
0x7f010000, 0x7f010001, 0x7f01002c, 0x7f010055,
0x7f010056, 0x7f010057, 0x7f010058, 0x7f010059,
0x7f01005a, 0x7f01005b, 0x7f01005c, 0x7f01005d,
0x7f01005e, 0x7f01005f, 0x7f010060, 0x7f010061,
0x7f010062, 0x7f010063, 0x7f010064, 0x7f010065,
0x7f010066, 0x7f010067, 0x7f010068, 0x7f010069,
0x7f01006a, 0x7f01006b, 0x7f01006c
};
/**
<p>
@attr description
Specifies a background drawable for the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:background
*/
public static final int ActionBar_background = 11;
/**
<p>
@attr description
Specifies a background drawable for the bottom component of a split action bar.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:backgroundSplit
*/
public static final int ActionBar_backgroundSplit = 13;
/**
<p>
@attr description
Specifies a background drawable for a second stacked row of the action bar.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:backgroundStacked
*/
public static final int ActionBar_backgroundStacked = 12;
/**
<p>
@attr description
Minimum inset for content views within a bar. Navigation buttons and
menu views are excepted. Only valid for some themes and configurations.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:contentInsetEnd
*/
public static final int ActionBar_contentInsetEnd = 22;
/**
<p>
@attr description
Minimum inset for content views within a bar. Navigation buttons and
menu views are excepted. Only valid for some themes and configurations.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:contentInsetLeft
*/
public static final int ActionBar_contentInsetLeft = 23;
/**
<p>
@attr description
Minimum inset for content views within a bar. Navigation buttons and
menu views are excepted. Only valid for some themes and configurations.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:contentInsetRight
*/
public static final int ActionBar_contentInsetRight = 24;
/**
<p>
@attr description
Minimum inset for content views within a bar. Navigation buttons and
menu views are excepted. Only valid for some themes and configurations.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:contentInsetStart
*/
public static final int ActionBar_contentInsetStart = 21;
/**
<p>
@attr description
Specifies a layout for custom navigation. Overrides navigationMode.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:customNavigationLayout
*/
public static final int ActionBar_customNavigationLayout = 14;
/**
<p>
@attr description
Options affecting how the action bar is displayed.
<p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>none</code></td><td>0</td><td></td></tr>
<tr><td><code>useLogo</code></td><td>0x1</td><td></td></tr>
<tr><td><code>showHome</code></td><td>0x2</td><td></td></tr>
<tr><td><code>homeAsUp</code></td><td>0x4</td><td></td></tr>
<tr><td><code>showTitle</code></td><td>0x8</td><td></td></tr>
<tr><td><code>showCustom</code></td><td>0x10</td><td></td></tr>
<tr><td><code>disableHome</code></td><td>0x20</td><td></td></tr>
</table>
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:displayOptions
*/
public static final int ActionBar_displayOptions = 4;
/**
<p>
@attr description
Specifies the drawable used for item dividers.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:divider
*/
public static final int ActionBar_divider = 10;
/**
<p>
@attr description
Elevation for the action bar itself
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:elevation
*/
public static final int ActionBar_elevation = 25;
/**
<p>
@attr description
Specifies a fixed height.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:height
*/
public static final int ActionBar_height = 1;
/**
<p>
@attr description
Set true to hide the action bar on a vertical nested scroll of content.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:hideOnContentScroll
*/
public static final int ActionBar_hideOnContentScroll = 20;
/**
<p>
@attr description
Up navigation glyph
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:homeAsUpIndicator
*/
public static final int ActionBar_homeAsUpIndicator = 2;
/**
<p>
@attr description
Specifies a layout to use for the "home" section of the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:homeLayout
*/
public static final int ActionBar_homeLayout = 15;
/**
<p>
@attr description
Specifies the drawable used for the application icon.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:icon
*/
public static final int ActionBar_icon = 8;
/**
<p>
@attr description
Specifies a style resource to use for an indeterminate progress spinner.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:indeterminateProgressStyle
*/
public static final int ActionBar_indeterminateProgressStyle = 17;
/**
<p>
@attr description
Specifies padding that should be applied to the left and right sides of
system-provided items in the bar.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:itemPadding
*/
public static final int ActionBar_itemPadding = 19;
/**
<p>
@attr description
Specifies the drawable used for the application logo.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:logo
*/
public static final int ActionBar_logo = 9;
/**
<p>
@attr description
The type of navigation to use.
<p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>normal</code></td><td>0</td><td> Normal static title text </td></tr>
<tr><td><code>listMode</code></td><td>1</td><td> The action bar will use a selection list for navigation. </td></tr>
<tr><td><code>tabMode</code></td><td>2</td><td> The action bar will use a series of horizontal tabs for navigation. </td></tr>
</table>
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:navigationMode
*/
public static final int ActionBar_navigationMode = 3;
/**
<p>
@attr description
Reference to a theme that should be used to inflate popups
shown by widgets in the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:popupTheme
*/
public static final int ActionBar_popupTheme = 26;
/**
<p>
@attr description
Specifies the horizontal padding on either end for an embedded progress bar.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:progressBarPadding
*/
public static final int ActionBar_progressBarPadding = 18;
/**
<p>
@attr description
Specifies a style resource to use for an embedded progress bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:progressBarStyle
*/
public static final int ActionBar_progressBarStyle = 16;
/**
<p>
@attr description
Specifies subtitle text used for navigationMode="normal"
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:subtitle
*/
public static final int ActionBar_subtitle = 5;
/**
<p>
@attr description
Specifies a style to use for subtitle text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:subtitleTextStyle
*/
public static final int ActionBar_subtitleTextStyle = 7;
/**
<p>
@attr description
Specifies title text used for navigationMode="normal"
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:title
*/
public static final int ActionBar_title = 0;
/**
<p>
@attr description
Specifies a style to use for title text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:titleTextStyle
*/
public static final int ActionBar_titleTextStyle = 6;
/** Valid LayoutParams for views placed in the action bar as custom views.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ActionBarLayout_android_layout_gravity android:layout_gravity}</code></td><td></td></tr>
</table>
@see #ActionBarLayout_android_layout_gravity
*/
public static final int[] ActionBarLayout = {
0x010100b3
};
/**
<p>This symbol is the offset where the {@link android.R.attr#layout_gravity}
attribute's value can be found in the {@link #ActionBarLayout} array.
@attr name android:layout_gravity
*/
public static final int ActionBarLayout_android_layout_gravity = 0;
/** Attributes that can be used with a ActionMenuItemView.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ActionMenuItemView_android_minWidth android:minWidth}</code></td><td></td></tr>
</table>
@see #ActionMenuItemView_android_minWidth
*/
public static final int[] ActionMenuItemView = {
0x0101013f
};
/**
<p>This symbol is the offset where the {@link android.R.attr#minWidth}
attribute's value can be found in the {@link #ActionMenuItemView} array.
@attr name android:minWidth
*/
public static final int ActionMenuItemView_android_minWidth = 0;
/** Size of padding on either end of a divider.
*/
public static final int[] ActionMenuView = {
};
/** Attributes that can be used with a ActionMode.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ActionMode_background edu.virginia.abf2dh.ghosthunter:background}</code></td><td> Specifies a background for the action mode bar.</td></tr>
<tr><td><code>{@link #ActionMode_backgroundSplit edu.virginia.abf2dh.ghosthunter:backgroundSplit}</code></td><td> Specifies a background for the split action mode bar.</td></tr>
<tr><td><code>{@link #ActionMode_closeItemLayout edu.virginia.abf2dh.ghosthunter:closeItemLayout}</code></td><td> Specifies a layout to use for the "close" item at the starting edge.</td></tr>
<tr><td><code>{@link #ActionMode_height edu.virginia.abf2dh.ghosthunter:height}</code></td><td> Specifies a fixed height for the action mode bar.</td></tr>
<tr><td><code>{@link #ActionMode_subtitleTextStyle edu.virginia.abf2dh.ghosthunter:subtitleTextStyle}</code></td><td> Specifies a style to use for subtitle text.</td></tr>
<tr><td><code>{@link #ActionMode_titleTextStyle edu.virginia.abf2dh.ghosthunter:titleTextStyle}</code></td><td> Specifies a style to use for title text.</td></tr>
</table>
@see #ActionMode_background
@see #ActionMode_backgroundSplit
@see #ActionMode_closeItemLayout
@see #ActionMode_height
@see #ActionMode_subtitleTextStyle
@see #ActionMode_titleTextStyle
*/
public static final int[] ActionMode = {
0x7f010001, 0x7f010058, 0x7f010059, 0x7f01005d,
0x7f01005f, 0x7f01006d
};
/**
<p>
@attr description
Specifies a background for the action mode bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:background
*/
public static final int ActionMode_background = 3;
/**
<p>
@attr description
Specifies a background for the split action mode bar.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:backgroundSplit
*/
public static final int ActionMode_backgroundSplit = 4;
/**
<p>
@attr description
Specifies a layout to use for the "close" item at the starting edge.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:closeItemLayout
*/
public static final int ActionMode_closeItemLayout = 5;
/**
<p>
@attr description
Specifies a fixed height for the action mode bar.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:height
*/
public static final int ActionMode_height = 0;
/**
<p>
@attr description
Specifies a style to use for subtitle text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:subtitleTextStyle
*/
public static final int ActionMode_subtitleTextStyle = 2;
/**
<p>
@attr description
Specifies a style to use for title text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:titleTextStyle
*/
public static final int ActionMode_titleTextStyle = 1;
/** Attrbitutes for a ActivityChooserView.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ActivityChooserView_expandActivityOverflowButtonDrawable edu.virginia.abf2dh.ghosthunter:expandActivityOverflowButtonDrawable}</code></td><td> The drawable to show in the button for expanding the activities overflow popup.</td></tr>
<tr><td><code>{@link #ActivityChooserView_initialActivityCount edu.virginia.abf2dh.ghosthunter:initialActivityCount}</code></td><td> The maximal number of items initially shown in the activity list.</td></tr>
</table>
@see #ActivityChooserView_expandActivityOverflowButtonDrawable
@see #ActivityChooserView_initialActivityCount
*/
public static final int[] ActivityChooserView = {
0x7f010084, 0x7f010085
};
/**
<p>
@attr description
The drawable to show in the button for expanding the activities overflow popup.
<strong>Note:</strong> Clients would like to set this drawable
as a clue about the action the chosen activity will perform. For
example, if share activity is to be chosen the drawable should
give a clue that sharing is to be performed.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:expandActivityOverflowButtonDrawable
*/
public static final int ActivityChooserView_expandActivityOverflowButtonDrawable = 1;
/**
<p>
@attr description
The maximal number of items initially shown in the activity list.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:initialActivityCount
*/
public static final int ActivityChooserView_initialActivityCount = 0;
/** Attributes that can be used with a CompatTextView.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #CompatTextView_textAllCaps edu.virginia.abf2dh.ghosthunter:textAllCaps}</code></td><td> Present the text in ALL CAPS.</td></tr>
</table>
@see #CompatTextView_textAllCaps
*/
public static final int[] CompatTextView = {
0x7f010086
};
/**
<p>
@attr description
Present the text in ALL CAPS. This may use a small-caps form when available.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:textAllCaps
*/
public static final int CompatTextView_textAllCaps = 0;
/** Attributes that can be used with a DrawerArrowToggle.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #DrawerArrowToggle_barSize edu.virginia.abf2dh.ghosthunter:barSize}</code></td><td> The size of the bars when they are parallel to each other </td></tr>
<tr><td><code>{@link #DrawerArrowToggle_color edu.virginia.abf2dh.ghosthunter:color}</code></td><td> The drawing color for the bars </td></tr>
<tr><td><code>{@link #DrawerArrowToggle_drawableSize edu.virginia.abf2dh.ghosthunter:drawableSize}</code></td><td> The total size of the drawable </td></tr>
<tr><td><code>{@link #DrawerArrowToggle_gapBetweenBars edu.virginia.abf2dh.ghosthunter:gapBetweenBars}</code></td><td> The max gap between the bars when they are parallel to each other </td></tr>
<tr><td><code>{@link #DrawerArrowToggle_middleBarArrowSize edu.virginia.abf2dh.ghosthunter:middleBarArrowSize}</code></td><td> The size of the middle bar when top and bottom bars merge into middle bar to form an arrow </td></tr>
<tr><td><code>{@link #DrawerArrowToggle_spinBars edu.virginia.abf2dh.ghosthunter:spinBars}</code></td><td> Whether bars should rotate or not during transition </td></tr>
<tr><td><code>{@link #DrawerArrowToggle_thickness edu.virginia.abf2dh.ghosthunter:thickness}</code></td><td> The thickness (stroke size) for the bar paint </td></tr>
<tr><td><code>{@link #DrawerArrowToggle_topBottomBarArrowSize edu.virginia.abf2dh.ghosthunter:topBottomBarArrowSize}</code></td><td> The size of the top and bottom bars when they merge to the middle bar to form an arrow </td></tr>
</table>
@see #DrawerArrowToggle_barSize
@see #DrawerArrowToggle_color
@see #DrawerArrowToggle_drawableSize
@see #DrawerArrowToggle_gapBetweenBars
@see #DrawerArrowToggle_middleBarArrowSize
@see #DrawerArrowToggle_spinBars
@see #DrawerArrowToggle_thickness
@see #DrawerArrowToggle_topBottomBarArrowSize
*/
public static final int[] DrawerArrowToggle = {
0x7f010099, 0x7f01009a, 0x7f01009b, 0x7f01009c,
0x7f01009d, 0x7f01009e, 0x7f01009f, 0x7f0100a0
};
/**
<p>
@attr description
The size of the bars when they are parallel to each other
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:barSize
*/
public static final int DrawerArrowToggle_barSize = 6;
/**
<p>
@attr description
The drawing color for the bars
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:color
*/
public static final int DrawerArrowToggle_color = 0;
/**
<p>
@attr description
The total size of the drawable
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:drawableSize
*/
public static final int DrawerArrowToggle_drawableSize = 2;
/**
<p>
@attr description
The max gap between the bars when they are parallel to each other
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:gapBetweenBars
*/
public static final int DrawerArrowToggle_gapBetweenBars = 3;
/**
<p>
@attr description
The size of the middle bar when top and bottom bars merge into middle bar to form an arrow
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:middleBarArrowSize
*/
public static final int DrawerArrowToggle_middleBarArrowSize = 5;
/**
<p>
@attr description
Whether bars should rotate or not during transition
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:spinBars
*/
public static final int DrawerArrowToggle_spinBars = 1;
/**
<p>
@attr description
The thickness (stroke size) for the bar paint
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:thickness
*/
public static final int DrawerArrowToggle_thickness = 7;
/**
<p>
@attr description
The size of the top and bottom bars when they merge to the middle bar to form an arrow
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:topBottomBarArrowSize
*/
public static final int DrawerArrowToggle_topBottomBarArrowSize = 4;
/** Attributes that can be used with a LinearLayoutCompat.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #LinearLayoutCompat_android_baselineAligned android:baselineAligned}</code></td><td> When set to false, prevents the layout from aligning its children's
baselines.</td></tr>
<tr><td><code>{@link #LinearLayoutCompat_android_baselineAlignedChildIndex android:baselineAlignedChildIndex}</code></td><td> When a linear layout is part of another layout that is baseline
aligned, it can specify which of its children to baseline align to
(that is, which child TextView).</td></tr>
<tr><td><code>{@link #LinearLayoutCompat_android_gravity android:gravity}</code></td><td></td></tr>
<tr><td><code>{@link #LinearLayoutCompat_android_orientation android:orientation}</code></td><td> Should the layout be a column or a row? Use "horizontal"
for a row, "vertical" for a column.</td></tr>
<tr><td><code>{@link #LinearLayoutCompat_android_weightSum android:weightSum}</code></td><td> Defines the maximum weight sum.</td></tr>
<tr><td><code>{@link #LinearLayoutCompat_divider edu.virginia.abf2dh.ghosthunter:divider}</code></td><td> Drawable to use as a vertical divider between buttons.</td></tr>
<tr><td><code>{@link #LinearLayoutCompat_dividerPadding edu.virginia.abf2dh.ghosthunter:dividerPadding}</code></td><td> Size of padding on either end of a divider.</td></tr>
<tr><td><code>{@link #LinearLayoutCompat_measureWithLargestChild edu.virginia.abf2dh.ghosthunter:measureWithLargestChild}</code></td><td> When set to true, all children with a weight will be considered having
the minimum size of the largest child.</td></tr>
<tr><td><code>{@link #LinearLayoutCompat_showDividers edu.virginia.abf2dh.ghosthunter:showDividers}</code></td><td> Setting for which dividers to show.</td></tr>
</table>
@see #LinearLayoutCompat_android_baselineAligned
@see #LinearLayoutCompat_android_baselineAlignedChildIndex
@see #LinearLayoutCompat_android_gravity
@see #LinearLayoutCompat_android_orientation
@see #LinearLayoutCompat_android_weightSum
@see #LinearLayoutCompat_divider
@see #LinearLayoutCompat_dividerPadding
@see #LinearLayoutCompat_measureWithLargestChild
@see #LinearLayoutCompat_showDividers
*/
public static final int[] LinearLayoutCompat = {
0x010100af, 0x010100c4, 0x01010126, 0x01010127,
0x01010128, 0x7f01005c, 0x7f010087, 0x7f010088,
0x7f010089
};
/**
<p>
@attr description
When set to false, prevents the layout from aligning its children's
baselines. This attribute is particularly useful when the children
use different values for gravity. The default value is true.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#baselineAligned}.
@attr name android:baselineAligned
*/
public static final int LinearLayoutCompat_android_baselineAligned = 2;
/**
<p>
@attr description
When a linear layout is part of another layout that is baseline
aligned, it can specify which of its children to baseline align to
(that is, which child TextView).
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#baselineAlignedChildIndex}.
@attr name android:baselineAlignedChildIndex
*/
public static final int LinearLayoutCompat_android_baselineAlignedChildIndex = 3;
/**
<p>This symbol is the offset where the {@link android.R.attr#gravity}
attribute's value can be found in the {@link #LinearLayoutCompat} array.
@attr name android:gravity
*/
public static final int LinearLayoutCompat_android_gravity = 0;
/**
<p>
@attr description
Should the layout be a column or a row? Use "horizontal"
for a row, "vertical" for a column. The default is
horizontal.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#orientation}.
@attr name android:orientation
*/
public static final int LinearLayoutCompat_android_orientation = 1;
/**
<p>
@attr description
Defines the maximum weight sum. If unspecified, the sum is computed
by adding the layout_weight of all of the children. This can be
used for instance to give a single child 50% of the total available
space by giving it a layout_weight of 0.5 and setting the weightSum
to 1.0.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#weightSum}.
@attr name android:weightSum
*/
public static final int LinearLayoutCompat_android_weightSum = 4;
/**
<p>
@attr description
Drawable to use as a vertical divider between buttons.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:divider
*/
public static final int LinearLayoutCompat_divider = 5;
/**
<p>
@attr description
Size of padding on either end of a divider.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:dividerPadding
*/
public static final int LinearLayoutCompat_dividerPadding = 8;
/**
<p>
@attr description
When set to true, all children with a weight will be considered having
the minimum size of the largest child. If false, all children are
measured normally.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:measureWithLargestChild
*/
public static final int LinearLayoutCompat_measureWithLargestChild = 6;
/**
<p>
@attr description
Setting for which dividers to show.
<p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>none</code></td><td>0</td><td></td></tr>
<tr><td><code>beginning</code></td><td>1</td><td></td></tr>
<tr><td><code>middle</code></td><td>2</td><td></td></tr>
<tr><td><code>end</code></td><td>4</td><td></td></tr>
</table>
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:showDividers
*/
public static final int LinearLayoutCompat_showDividers = 7;
/** Attributes that can be used with a LinearLayoutCompat_Layout.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #LinearLayoutCompat_Layout_android_layout_gravity android:layout_gravity}</code></td><td></td></tr>
<tr><td><code>{@link #LinearLayoutCompat_Layout_android_layout_height android:layout_height}</code></td><td></td></tr>
<tr><td><code>{@link #LinearLayoutCompat_Layout_android_layout_weight android:layout_weight}</code></td><td></td></tr>
<tr><td><code>{@link #LinearLayoutCompat_Layout_android_layout_width android:layout_width}</code></td><td></td></tr>
</table>
@see #LinearLayoutCompat_Layout_android_layout_gravity
@see #LinearLayoutCompat_Layout_android_layout_height
@see #LinearLayoutCompat_Layout_android_layout_weight
@see #LinearLayoutCompat_Layout_android_layout_width
*/
public static final int[] LinearLayoutCompat_Layout = {
0x010100b3, 0x010100f4, 0x010100f5, 0x01010181
};
/**
<p>This symbol is the offset where the {@link android.R.attr#layout_gravity}
attribute's value can be found in the {@link #LinearLayoutCompat_Layout} array.
@attr name android:layout_gravity
*/
public static final int LinearLayoutCompat_Layout_android_layout_gravity = 0;
/**
<p>This symbol is the offset where the {@link android.R.attr#layout_height}
attribute's value can be found in the {@link #LinearLayoutCompat_Layout} array.
@attr name android:layout_height
*/
public static final int LinearLayoutCompat_Layout_android_layout_height = 2;
/**
<p>This symbol is the offset where the {@link android.R.attr#layout_weight}
attribute's value can be found in the {@link #LinearLayoutCompat_Layout} array.
@attr name android:layout_weight
*/
public static final int LinearLayoutCompat_Layout_android_layout_weight = 3;
/**
<p>This symbol is the offset where the {@link android.R.attr#layout_width}
attribute's value can be found in the {@link #LinearLayoutCompat_Layout} array.
@attr name android:layout_width
*/
public static final int LinearLayoutCompat_Layout_android_layout_width = 1;
/** Attributes that can be used with a ListPopupWindow.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ListPopupWindow_android_dropDownHorizontalOffset android:dropDownHorizontalOffset}</code></td><td> Amount of pixels by which the drop down should be offset horizontally.</td></tr>
<tr><td><code>{@link #ListPopupWindow_android_dropDownVerticalOffset android:dropDownVerticalOffset}</code></td><td> Amount of pixels by which the drop down should be offset vertically.</td></tr>
</table>
@see #ListPopupWindow_android_dropDownHorizontalOffset
@see #ListPopupWindow_android_dropDownVerticalOffset
*/
public static final int[] ListPopupWindow = {
0x010102ac, 0x010102ad
};
/**
<p>
@attr description
Amount of pixels by which the drop down should be offset horizontally.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#dropDownHorizontalOffset}.
@attr name android:dropDownHorizontalOffset
*/
public static final int ListPopupWindow_android_dropDownHorizontalOffset = 0;
/**
<p>
@attr description
Amount of pixels by which the drop down should be offset vertically.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#dropDownVerticalOffset}.
@attr name android:dropDownVerticalOffset
*/
public static final int ListPopupWindow_android_dropDownVerticalOffset = 1;
/** Base attributes that are available to all groups.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #MenuGroup_android_checkableBehavior android:checkableBehavior}</code></td><td> Whether the items are capable of displaying a check mark.</td></tr>
<tr><td><code>{@link #MenuGroup_android_enabled android:enabled}</code></td><td> Whether the items are enabled.</td></tr>
<tr><td><code>{@link #MenuGroup_android_id android:id}</code></td><td> The ID of the group.</td></tr>
<tr><td><code>{@link #MenuGroup_android_menuCategory android:menuCategory}</code></td><td> The category applied to all items within this group.</td></tr>
<tr><td><code>{@link #MenuGroup_android_orderInCategory android:orderInCategory}</code></td><td> The order within the category applied to all items within this group.</td></tr>
<tr><td><code>{@link #MenuGroup_android_visible android:visible}</code></td><td> Whether the items are shown/visible.</td></tr>
</table>
@see #MenuGroup_android_checkableBehavior
@see #MenuGroup_android_enabled
@see #MenuGroup_android_id
@see #MenuGroup_android_menuCategory
@see #MenuGroup_android_orderInCategory
@see #MenuGroup_android_visible
*/
public static final int[] MenuGroup = {
0x0101000e, 0x010100d0, 0x01010194, 0x010101de,
0x010101df, 0x010101e0
};
/**
<p>
@attr description
Whether the items are capable of displaying a check mark.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#checkableBehavior}.
@attr name android:checkableBehavior
*/
public static final int MenuGroup_android_checkableBehavior = 5;
/**
<p>
@attr description
Whether the items are enabled.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#enabled}.
@attr name android:enabled
*/
public static final int MenuGroup_android_enabled = 0;
/**
<p>
@attr description
The ID of the group.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#id}.
@attr name android:id
*/
public static final int MenuGroup_android_id = 1;
/**
<p>
@attr description
The category applied to all items within this group.
(This will be or'ed with the orderInCategory attribute.)
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#menuCategory}.
@attr name android:menuCategory
*/
public static final int MenuGroup_android_menuCategory = 3;
/**
<p>
@attr description
The order within the category applied to all items within this group.
(This will be or'ed with the category attribute.)
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#orderInCategory}.
@attr name android:orderInCategory
*/
public static final int MenuGroup_android_orderInCategory = 4;
/**
<p>
@attr description
Whether the items are shown/visible.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#visible}.
@attr name android:visible
*/
public static final int MenuGroup_android_visible = 2;
/** Base attributes that are available to all Item objects.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #MenuItem_actionLayout edu.virginia.abf2dh.ghosthunter:actionLayout}</code></td><td> An optional layout to be used as an action view.</td></tr>
<tr><td><code>{@link #MenuItem_actionProviderClass edu.virginia.abf2dh.ghosthunter:actionProviderClass}</code></td><td> The name of an optional ActionProvider class to instantiate an action view
and perform operations such as default action for that menu item.</td></tr>
<tr><td><code>{@link #MenuItem_actionViewClass edu.virginia.abf2dh.ghosthunter:actionViewClass}</code></td><td> The name of an optional View class to instantiate and use as an
action view.</td></tr>
<tr><td><code>{@link #MenuItem_android_alphabeticShortcut android:alphabeticShortcut}</code></td><td> The alphabetic shortcut key.</td></tr>
<tr><td><code>{@link #MenuItem_android_checkable android:checkable}</code></td><td> Whether the item is capable of displaying a check mark.</td></tr>
<tr><td><code>{@link #MenuItem_android_checked android:checked}</code></td><td> Whether the item is checked.</td></tr>
<tr><td><code>{@link #MenuItem_android_enabled android:enabled}</code></td><td> Whether the item is enabled.</td></tr>
<tr><td><code>{@link #MenuItem_android_icon android:icon}</code></td><td> The icon associated with this item.</td></tr>
<tr><td><code>{@link #MenuItem_android_id android:id}</code></td><td> The ID of the item.</td></tr>
<tr><td><code>{@link #MenuItem_android_menuCategory android:menuCategory}</code></td><td> The category applied to the item.</td></tr>
<tr><td><code>{@link #MenuItem_android_numericShortcut android:numericShortcut}</code></td><td> The numeric shortcut key.</td></tr>
<tr><td><code>{@link #MenuItem_android_onClick android:onClick}</code></td><td> Name of a method on the Context used to inflate the menu that will be
called when the item is clicked.</td></tr>
<tr><td><code>{@link #MenuItem_android_orderInCategory android:orderInCategory}</code></td><td> The order within the category applied to the item.</td></tr>
<tr><td><code>{@link #MenuItem_android_title android:title}</code></td><td> The title associated with the item.</td></tr>
<tr><td><code>{@link #MenuItem_android_titleCondensed android:titleCondensed}</code></td><td> The condensed title associated with the item.</td></tr>
<tr><td><code>{@link #MenuItem_android_visible android:visible}</code></td><td> Whether the item is shown/visible.</td></tr>
<tr><td><code>{@link #MenuItem_showAsAction edu.virginia.abf2dh.ghosthunter:showAsAction}</code></td><td> How this item should display in the Action Bar, if present.</td></tr>
</table>
@see #MenuItem_actionLayout
@see #MenuItem_actionProviderClass
@see #MenuItem_actionViewClass
@see #MenuItem_android_alphabeticShortcut
@see #MenuItem_android_checkable
@see #MenuItem_android_checked
@see #MenuItem_android_enabled
@see #MenuItem_android_icon
@see #MenuItem_android_id
@see #MenuItem_android_menuCategory
@see #MenuItem_android_numericShortcut
@see #MenuItem_android_onClick
@see #MenuItem_android_orderInCategory
@see #MenuItem_android_title
@see #MenuItem_android_titleCondensed
@see #MenuItem_android_visible
@see #MenuItem_showAsAction
*/
public static final int[] MenuItem = {
0x01010002, 0x0101000e, 0x010100d0, 0x01010106,
0x01010194, 0x010101de, 0x010101df, 0x010101e1,
0x010101e2, 0x010101e3, 0x010101e4, 0x010101e5,
0x0101026f, 0x7f010071, 0x7f010072, 0x7f010073,
0x7f010074
};
/**
<p>
@attr description
An optional layout to be used as an action view.
See {@link android.view.MenuItem#setActionView(android.view.View)}
for more info.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:actionLayout
*/
public static final int MenuItem_actionLayout = 14;
/**
<p>
@attr description
The name of an optional ActionProvider class to instantiate an action view
and perform operations such as default action for that menu item.
See {@link android.view.MenuItem#setActionProvider(android.view.ActionProvider)}
for more info.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:actionProviderClass
*/
public static final int MenuItem_actionProviderClass = 16;
/**
<p>
@attr description
The name of an optional View class to instantiate and use as an
action view. See {@link android.view.MenuItem#setActionView(android.view.View)}
for more info.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:actionViewClass
*/
public static final int MenuItem_actionViewClass = 15;
/**
<p>
@attr description
The alphabetic shortcut key. This is the shortcut when using a keyboard
with alphabetic keys.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#alphabeticShortcut}.
@attr name android:alphabeticShortcut
*/
public static final int MenuItem_android_alphabeticShortcut = 9;
/**
<p>
@attr description
Whether the item is capable of displaying a check mark.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#checkable}.
@attr name android:checkable
*/
public static final int MenuItem_android_checkable = 11;
/**
<p>
@attr description
Whether the item is checked. Note that you must first have enabled checking with
the checkable attribute or else the check mark will not appear.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#checked}.
@attr name android:checked
*/
public static final int MenuItem_android_checked = 3;
/**
<p>
@attr description
Whether the item is enabled.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#enabled}.
@attr name android:enabled
*/
public static final int MenuItem_android_enabled = 1;
/**
<p>
@attr description
The icon associated with this item. This icon will not always be shown, so
the title should be sufficient in describing this item.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#icon}.
@attr name android:icon
*/
public static final int MenuItem_android_icon = 0;
/**
<p>
@attr description
The ID of the item.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#id}.
@attr name android:id
*/
public static final int MenuItem_android_id = 2;
/**
<p>
@attr description
The category applied to the item.
(This will be or'ed with the orderInCategory attribute.)
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#menuCategory}.
@attr name android:menuCategory
*/
public static final int MenuItem_android_menuCategory = 5;
/**
<p>
@attr description
The numeric shortcut key. This is the shortcut when using a numeric (e.g., 12-key)
keyboard.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#numericShortcut}.
@attr name android:numericShortcut
*/
public static final int MenuItem_android_numericShortcut = 10;
/**
<p>
@attr description
Name of a method on the Context used to inflate the menu that will be
called when the item is clicked.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#onClick}.
@attr name android:onClick
*/
public static final int MenuItem_android_onClick = 12;
/**
<p>
@attr description
The order within the category applied to the item.
(This will be or'ed with the category attribute.)
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#orderInCategory}.
@attr name android:orderInCategory
*/
public static final int MenuItem_android_orderInCategory = 6;
/**
<p>
@attr description
The title associated with the item.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#title}.
@attr name android:title
*/
public static final int MenuItem_android_title = 7;
/**
<p>
@attr description
The condensed title associated with the item. This is used in situations where the
normal title may be too long to be displayed.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#titleCondensed}.
@attr name android:titleCondensed
*/
public static final int MenuItem_android_titleCondensed = 8;
/**
<p>
@attr description
Whether the item is shown/visible.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#visible}.
@attr name android:visible
*/
public static final int MenuItem_android_visible = 4;
/**
<p>
@attr description
How this item should display in the Action Bar, if present.
<p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>never</code></td><td>0</td><td> Never show this item in an action bar, show it in the overflow menu instead.
Mutually exclusive with "ifRoom" and "always". </td></tr>
<tr><td><code>ifRoom</code></td><td>1</td><td> Show this item in an action bar if there is room for it as determined
by the system. Favor this option over "always" where possible.
Mutually exclusive with "never" and "always". </td></tr>
<tr><td><code>always</code></td><td>2</td><td> Always show this item in an actionbar, even if it would override
the system's limits of how much stuff to put there. This may make
your action bar look bad on some screens. In most cases you should
use "ifRoom" instead. Mutually exclusive with "ifRoom" and "never". </td></tr>
<tr><td><code>withText</code></td><td>4</td><td> When this item is shown as an action in the action bar, show a text
label with it even if it has an icon representation. </td></tr>
<tr><td><code>collapseActionView</code></td><td>8</td><td> This item's action view collapses to a normal menu
item. When expanded, the action view takes over a
larger segment of its container. </td></tr>
</table>
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:showAsAction
*/
public static final int MenuItem_showAsAction = 13;
/** Attributes that can be used with a MenuView.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #MenuView_android_headerBackground android:headerBackground}</code></td><td> Default background for the menu header.</td></tr>
<tr><td><code>{@link #MenuView_android_horizontalDivider android:horizontalDivider}</code></td><td> Default horizontal divider between rows of menu items.</td></tr>
<tr><td><code>{@link #MenuView_android_itemBackground android:itemBackground}</code></td><td> Default background for each menu item.</td></tr>
<tr><td><code>{@link #MenuView_android_itemIconDisabledAlpha android:itemIconDisabledAlpha}</code></td><td> Default disabled icon alpha for each menu item that shows an icon.</td></tr>
<tr><td><code>{@link #MenuView_android_itemTextAppearance android:itemTextAppearance}</code></td><td> Default appearance of menu item text.</td></tr>
<tr><td><code>{@link #MenuView_android_verticalDivider android:verticalDivider}</code></td><td> Default vertical divider between menu items.</td></tr>
<tr><td><code>{@link #MenuView_android_windowAnimationStyle android:windowAnimationStyle}</code></td><td> Default animations for the menu.</td></tr>
<tr><td><code>{@link #MenuView_preserveIconSpacing edu.virginia.abf2dh.ghosthunter:preserveIconSpacing}</code></td><td> Whether space should be reserved in layout when an icon is missing.</td></tr>
</table>
@see #MenuView_android_headerBackground
@see #MenuView_android_horizontalDivider
@see #MenuView_android_itemBackground
@see #MenuView_android_itemIconDisabledAlpha
@see #MenuView_android_itemTextAppearance
@see #MenuView_android_verticalDivider
@see #MenuView_android_windowAnimationStyle
@see #MenuView_preserveIconSpacing
*/
public static final int[] MenuView = {
0x010100ae, 0x0101012c, 0x0101012d, 0x0101012e,
0x0101012f, 0x01010130, 0x01010131, 0x7f010070
};
/**
<p>
@attr description
Default background for the menu header.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#headerBackground}.
@attr name android:headerBackground
*/
public static final int MenuView_android_headerBackground = 4;
/**
<p>
@attr description
Default horizontal divider between rows of menu items.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#horizontalDivider}.
@attr name android:horizontalDivider
*/
public static final int MenuView_android_horizontalDivider = 2;
/**
<p>
@attr description
Default background for each menu item.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#itemBackground}.
@attr name android:itemBackground
*/
public static final int MenuView_android_itemBackground = 5;
/**
<p>
@attr description
Default disabled icon alpha for each menu item that shows an icon.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#itemIconDisabledAlpha}.
@attr name android:itemIconDisabledAlpha
*/
public static final int MenuView_android_itemIconDisabledAlpha = 6;
/**
<p>
@attr description
Default appearance of menu item text.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#itemTextAppearance}.
@attr name android:itemTextAppearance
*/
public static final int MenuView_android_itemTextAppearance = 1;
/**
<p>
@attr description
Default vertical divider between menu items.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#verticalDivider}.
@attr name android:verticalDivider
*/
public static final int MenuView_android_verticalDivider = 3;
/**
<p>
@attr description
Default animations for the menu.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#windowAnimationStyle}.
@attr name android:windowAnimationStyle
*/
public static final int MenuView_android_windowAnimationStyle = 0;
/**
<p>
@attr description
Whether space should be reserved in layout when an icon is missing.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter: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 edu.virginia.abf2dh.ghosthunter:overlapAnchor}</code></td><td> Whether the popup window should overlap its anchor view.</td></tr>
</table>
@see #PopupWindow_android_popupBackground
@see #PopupWindow_overlapAnchor
*/
public static final int[] PopupWindow = {
0x01010176, 0x7f010098
};
/**
<p>This symbol is the offset where the {@link android.R.attr#popupBackground}
attribute's value can be found in the {@link #PopupWindow} array.
@attr name android:popupBackground
*/
public static final int PopupWindow_android_popupBackground = 0;
/**
<p>
@attr description
Whether the popup window should overlap its anchor view.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter: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 edu.virginia.abf2dh.ghosthunter:state_above_anchor}</code></td><td> State identifier indicating the popup will be above the anchor.</td></tr>
</table>
@see #PopupWindowBackgroundState_state_above_anchor
*/
public static final int[] PopupWindowBackgroundState = {
0x7f010097
};
/**
<p>
@attr description
State identifier indicating the popup will be above the anchor.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:state_above_anchor
*/
public static final int PopupWindowBackgroundState_state_above_anchor = 0;
/** Attributes that can be used with a SearchView.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #SearchView_android_focusable android:focusable}</code></td><td></td></tr>
<tr><td><code>{@link #SearchView_android_imeOptions android:imeOptions}</code></td><td> The IME options to set on the query text field.</td></tr>
<tr><td><code>{@link #SearchView_android_inputType android:inputType}</code></td><td> The input type to set on the query text field.</td></tr>
<tr><td><code>{@link #SearchView_android_maxWidth android:maxWidth}</code></td><td> An optional maximum width of the SearchView.</td></tr>
<tr><td><code>{@link #SearchView_closeIcon edu.virginia.abf2dh.ghosthunter:closeIcon}</code></td><td> Close button icon </td></tr>
<tr><td><code>{@link #SearchView_commitIcon edu.virginia.abf2dh.ghosthunter:commitIcon}</code></td><td> Commit icon shown in the query suggestion row </td></tr>
<tr><td><code>{@link #SearchView_goIcon edu.virginia.abf2dh.ghosthunter:goIcon}</code></td><td> Go button icon </td></tr>
<tr><td><code>{@link #SearchView_iconifiedByDefault edu.virginia.abf2dh.ghosthunter:iconifiedByDefault}</code></td><td> The default state of the SearchView.</td></tr>
<tr><td><code>{@link #SearchView_layout edu.virginia.abf2dh.ghosthunter:layout}</code></td><td> The layout to use for the search view.</td></tr>
<tr><td><code>{@link #SearchView_queryBackground edu.virginia.abf2dh.ghosthunter:queryBackground}</code></td><td> Background for the section containing the search query </td></tr>
<tr><td><code>{@link #SearchView_queryHint edu.virginia.abf2dh.ghosthunter:queryHint}</code></td><td> An optional query hint string to be displayed in the empty query field.</td></tr>
<tr><td><code>{@link #SearchView_searchIcon edu.virginia.abf2dh.ghosthunter:searchIcon}</code></td><td> Search icon </td></tr>
<tr><td><code>{@link #SearchView_submitBackground edu.virginia.abf2dh.ghosthunter:submitBackground}</code></td><td> Background for the section containing the action (e.</td></tr>
<tr><td><code>{@link #SearchView_suggestionRowLayout edu.virginia.abf2dh.ghosthunter:suggestionRowLayout}</code></td><td> Layout for query suggestion rows </td></tr>
<tr><td><code>{@link #SearchView_voiceIcon edu.virginia.abf2dh.ghosthunter:voiceIcon}</code></td><td> Voice button icon </td></tr>
</table>
@see #SearchView_android_focusable
@see #SearchView_android_imeOptions
@see #SearchView_android_inputType
@see #SearchView_android_maxWidth
@see #SearchView_closeIcon
@see #SearchView_commitIcon
@see #SearchView_goIcon
@see #SearchView_iconifiedByDefault
@see #SearchView_layout
@see #SearchView_queryBackground
@see #SearchView_queryHint
@see #SearchView_searchIcon
@see #SearchView_submitBackground
@see #SearchView_suggestionRowLayout
@see #SearchView_voiceIcon
*/
public static final int[] SearchView = {
0x010100da, 0x0101011f, 0x01010220, 0x01010264,
0x7f010079, 0x7f01007a, 0x7f01007b, 0x7f01007c,
0x7f01007d, 0x7f01007e, 0x7f01007f, 0x7f010080,
0x7f010081, 0x7f010082, 0x7f010083
};
/**
<p>This symbol is the offset where the {@link android.R.attr#focusable}
attribute's value can be found in the {@link #SearchView} array.
@attr name android:focusable
*/
public static final int SearchView_android_focusable = 0;
/**
<p>
@attr description
The IME options to set on the query text field.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#imeOptions}.
@attr name android:imeOptions
*/
public static final int SearchView_android_imeOptions = 3;
/**
<p>
@attr description
The input type to set on the query text field.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#inputType}.
@attr name android:inputType
*/
public static final int SearchView_android_inputType = 2;
/**
<p>
@attr description
An optional maximum width of the SearchView.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#maxWidth}.
@attr name android:maxWidth
*/
public static final int SearchView_android_maxWidth = 1;
/**
<p>
@attr description
Close button icon
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:closeIcon
*/
public static final int SearchView_closeIcon = 7;
/**
<p>
@attr description
Commit icon shown in the query suggestion row
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:commitIcon
*/
public static final int SearchView_commitIcon = 11;
/**
<p>
@attr description
Go button icon
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:goIcon
*/
public static final int SearchView_goIcon = 8;
/**
<p>
@attr description
The default state of the SearchView. If true, it will be iconified when not in
use and expanded when clicked.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:iconifiedByDefault
*/
public static final int SearchView_iconifiedByDefault = 5;
/**
<p>
@attr description
The layout to use for the search view.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:layout
*/
public static final int SearchView_layout = 4;
/**
<p>
@attr description
Background for the section containing the search query
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:queryBackground
*/
public static final int SearchView_queryBackground = 13;
/**
<p>
@attr description
An optional query hint string to be displayed in the empty query field.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:queryHint
*/
public static final int SearchView_queryHint = 6;
/**
<p>
@attr description
Search icon
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:searchIcon
*/
public static final int SearchView_searchIcon = 9;
/**
<p>
@attr description
Background for the section containing the action (e.g. voice search)
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:submitBackground
*/
public static final int SearchView_submitBackground = 14;
/**
<p>
@attr description
Layout for query suggestion rows
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:suggestionRowLayout
*/
public static final int SearchView_suggestionRowLayout = 12;
/**
<p>
@attr description
Voice button icon
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:voiceIcon
*/
public static final int SearchView_voiceIcon = 10;
/** Attributes that can be used with a Spinner.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #Spinner_android_background android:background}</code></td><td></td></tr>
<tr><td><code>{@link #Spinner_android_dropDownHorizontalOffset android:dropDownHorizontalOffset}</code></td><td> Horizontal offset from the spinner widget for positioning the dropdown
in spinnerMode="dropdown".</td></tr>
<tr><td><code>{@link #Spinner_android_dropDownSelector android:dropDownSelector}</code></td><td> List selector to use for spinnerMode="dropdown" display.</td></tr>
<tr><td><code>{@link #Spinner_android_dropDownVerticalOffset android:dropDownVerticalOffset}</code></td><td> Vertical offset from the spinner widget for positioning the dropdown in
spinnerMode="dropdown".</td></tr>
<tr><td><code>{@link #Spinner_android_dropDownWidth android:dropDownWidth}</code></td><td> Width of the dropdown in spinnerMode="dropdown".</td></tr>
<tr><td><code>{@link #Spinner_android_gravity android:gravity}</code></td><td> Gravity setting for positioning the currently selected item.</td></tr>
<tr><td><code>{@link #Spinner_android_popupBackground android:popupBackground}</code></td><td> Background drawable to use for the dropdown in spinnerMode="dropdown".</td></tr>
<tr><td><code>{@link #Spinner_disableChildrenWhenDisabled edu.virginia.abf2dh.ghosthunter:disableChildrenWhenDisabled}</code></td><td> Whether this spinner should mark child views as enabled/disabled when
the spinner itself is enabled/disabled.</td></tr>
<tr><td><code>{@link #Spinner_popupPromptView edu.virginia.abf2dh.ghosthunter:popupPromptView}</code></td><td> Reference to a layout to use for displaying a prompt in the dropdown for
spinnerMode="dropdown".</td></tr>
<tr><td><code>{@link #Spinner_prompt edu.virginia.abf2dh.ghosthunter:prompt}</code></td><td> The prompt to display when the spinner's dialog is shown.</td></tr>
<tr><td><code>{@link #Spinner_spinnerMode edu.virginia.abf2dh.ghosthunter:spinnerMode}</code></td><td> Display mode for spinner options.</td></tr>
</table>
@see #Spinner_android_background
@see #Spinner_android_dropDownHorizontalOffset
@see #Spinner_android_dropDownSelector
@see #Spinner_android_dropDownVerticalOffset
@see #Spinner_android_dropDownWidth
@see #Spinner_android_gravity
@see #Spinner_android_popupBackground
@see #Spinner_disableChildrenWhenDisabled
@see #Spinner_popupPromptView
@see #Spinner_prompt
@see #Spinner_spinnerMode
*/
public static final int[] Spinner = {
0x010100af, 0x010100d4, 0x01010175, 0x01010176,
0x01010262, 0x010102ac, 0x010102ad, 0x7f010075,
0x7f010076, 0x7f010077, 0x7f010078
};
/**
<p>This symbol is the offset where the {@link android.R.attr#background}
attribute's value can be found in the {@link #Spinner} array.
@attr name android:background
*/
public static final int Spinner_android_background = 1;
/**
<p>
@attr description
Horizontal offset from the spinner widget for positioning the dropdown
in spinnerMode="dropdown".
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#dropDownHorizontalOffset}.
@attr name android:dropDownHorizontalOffset
*/
public static final int Spinner_android_dropDownHorizontalOffset = 5;
/**
<p>
@attr description
List selector to use for spinnerMode="dropdown" display.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#dropDownSelector}.
@attr name android:dropDownSelector
*/
public static final int Spinner_android_dropDownSelector = 2;
/**
<p>
@attr description
Vertical offset from the spinner widget for positioning the dropdown in
spinnerMode="dropdown".
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#dropDownVerticalOffset}.
@attr name android:dropDownVerticalOffset
*/
public static final int Spinner_android_dropDownVerticalOffset = 6;
/**
<p>
@attr description
Width of the dropdown in spinnerMode="dropdown".
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#dropDownWidth}.
@attr name android:dropDownWidth
*/
public static final int Spinner_android_dropDownWidth = 4;
/**
<p>
@attr description
Gravity setting for positioning the currently selected item.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#gravity}.
@attr name android:gravity
*/
public static final int Spinner_android_gravity = 0;
/**
<p>
@attr description
Background drawable to use for the dropdown in spinnerMode="dropdown".
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#popupBackground}.
@attr name android:popupBackground
*/
public static final int Spinner_android_popupBackground = 3;
/**
<p>
@attr description
Whether this spinner should mark child views as enabled/disabled when
the spinner itself is enabled/disabled.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:disableChildrenWhenDisabled
*/
public static final int Spinner_disableChildrenWhenDisabled = 10;
/**
<p>
@attr description
Reference to a layout to use for displaying a prompt in the dropdown for
spinnerMode="dropdown". This layout must contain a TextView with the id
{@code @android:id/text1} to be populated with the prompt text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:popupPromptView
*/
public static final int Spinner_popupPromptView = 9;
/**
<p>
@attr description
The prompt to display when the spinner's dialog is shown.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:prompt
*/
public static final int Spinner_prompt = 7;
/**
<p>
@attr description
Display mode for spinner options.
<p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>dialog</code></td><td>0</td><td> Spinner options will be presented to the user as a dialog window. </td></tr>
<tr><td><code>dropdown</code></td><td>1</td><td> Spinner options will be presented to the user as an inline dropdown
anchored to the spinner widget itself. </td></tr>
</table>
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:spinnerMode
*/
public static final int Spinner_spinnerMode = 8;
/** Attributes that can be used with a SwitchCompat.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #SwitchCompat_android_textOff android:textOff}</code></td><td> Text to use when the switch is in the unchecked/"off" state.</td></tr>
<tr><td><code>{@link #SwitchCompat_android_textOn android:textOn}</code></td><td> Text to use when the switch is in the checked/"on" state.</td></tr>
<tr><td><code>{@link #SwitchCompat_android_thumb android:thumb}</code></td><td> Drawable to use as the "thumb" that switches back and forth.</td></tr>
<tr><td><code>{@link #SwitchCompat_showText edu.virginia.abf2dh.ghosthunter:showText}</code></td><td> Whether to draw on/off text.</td></tr>
<tr><td><code>{@link #SwitchCompat_splitTrack edu.virginia.abf2dh.ghosthunter:splitTrack}</code></td><td> Whether to split the track and leave a gap for the thumb drawable.</td></tr>
<tr><td><code>{@link #SwitchCompat_switchMinWidth edu.virginia.abf2dh.ghosthunter:switchMinWidth}</code></td><td> Minimum width for the switch component </td></tr>
<tr><td><code>{@link #SwitchCompat_switchPadding edu.virginia.abf2dh.ghosthunter:switchPadding}</code></td><td> Minimum space between the switch and caption text </td></tr>
<tr><td><code>{@link #SwitchCompat_switchTextAppearance edu.virginia.abf2dh.ghosthunter:switchTextAppearance}</code></td><td> TextAppearance style for text displayed on the switch thumb.</td></tr>
<tr><td><code>{@link #SwitchCompat_thumbTextPadding edu.virginia.abf2dh.ghosthunter:thumbTextPadding}</code></td><td> Amount of padding on either side of text within the switch thumb.</td></tr>
<tr><td><code>{@link #SwitchCompat_track edu.virginia.abf2dh.ghosthunter:track}</code></td><td> Drawable to use as the "track" that the switch thumb slides within.</td></tr>
</table>
@see #SwitchCompat_android_textOff
@see #SwitchCompat_android_textOn
@see #SwitchCompat_android_thumb
@see #SwitchCompat_showText
@see #SwitchCompat_splitTrack
@see #SwitchCompat_switchMinWidth
@see #SwitchCompat_switchPadding
@see #SwitchCompat_switchTextAppearance
@see #SwitchCompat_thumbTextPadding
@see #SwitchCompat_track
*/
public static final int[] SwitchCompat = {
0x01010124, 0x01010125, 0x01010142, 0x7f0100a2,
0x7f0100a3, 0x7f0100a4, 0x7f0100a5, 0x7f0100a6,
0x7f0100a7, 0x7f0100a8
};
/**
<p>
@attr description
Text to use when the switch is in the unchecked/"off" state.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#textOff}.
@attr name android:textOff
*/
public static final int SwitchCompat_android_textOff = 1;
/**
<p>
@attr description
Text to use when the switch is in the checked/"on" state.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#textOn}.
@attr name android:textOn
*/
public static final int SwitchCompat_android_textOn = 0;
/**
<p>
@attr description
Drawable to use as the "thumb" that switches back and forth.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#thumb}.
@attr name android:thumb
*/
public static final int SwitchCompat_android_thumb = 2;
/**
<p>
@attr description
Whether to draw on/off text.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:showText
*/
public static final int SwitchCompat_showText = 9;
/**
<p>
@attr description
Whether to split the track and leave a gap for the thumb drawable.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:splitTrack
*/
public static final int SwitchCompat_splitTrack = 8;
/**
<p>
@attr description
Minimum width for the switch component
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:switchMinWidth
*/
public static final int SwitchCompat_switchMinWidth = 6;
/**
<p>
@attr description
Minimum space between the switch and caption text
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:switchPadding
*/
public static final int SwitchCompat_switchPadding = 7;
/**
<p>
@attr description
TextAppearance style for text displayed on the switch thumb.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:switchTextAppearance
*/
public static final int SwitchCompat_switchTextAppearance = 5;
/**
<p>
@attr description
Amount of padding on either side of text within the switch thumb.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:thumbTextPadding
*/
public static final int SwitchCompat_thumbTextPadding = 4;
/**
<p>
@attr description
Drawable to use as the "track" that the switch thumb slides within.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:track
*/
public static final int SwitchCompat_track = 3;
/** These are the standard attributes that make up a complete theme.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #Theme_actionBarDivider edu.virginia.abf2dh.ghosthunter:actionBarDivider}</code></td><td> Custom divider drawable to use for elements in the action bar.</td></tr>
<tr><td><code>{@link #Theme_actionBarItemBackground edu.virginia.abf2dh.ghosthunter:actionBarItemBackground}</code></td><td> Custom item state list drawable background for action bar items.</td></tr>
<tr><td><code>{@link #Theme_actionBarPopupTheme edu.virginia.abf2dh.ghosthunter:actionBarPopupTheme}</code></td><td> Reference to a theme that should be used to inflate popups
shown by widgets in the action bar.</td></tr>
<tr><td><code>{@link #Theme_actionBarSize edu.virginia.abf2dh.ghosthunter:actionBarSize}</code></td><td> Size of the Action Bar, including the contextual
bar used to present Action Modes.</td></tr>
<tr><td><code>{@link #Theme_actionBarSplitStyle edu.virginia.abf2dh.ghosthunter:actionBarSplitStyle}</code></td><td> Reference to a style for the split Action Bar.</td></tr>
<tr><td><code>{@link #Theme_actionBarStyle edu.virginia.abf2dh.ghosthunter:actionBarStyle}</code></td><td> Reference to a style for the Action Bar </td></tr>
<tr><td><code>{@link #Theme_actionBarTabBarStyle edu.virginia.abf2dh.ghosthunter:actionBarTabBarStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_actionBarTabStyle edu.virginia.abf2dh.ghosthunter:actionBarTabStyle}</code></td><td> Default style for tabs within an action bar </td></tr>
<tr><td><code>{@link #Theme_actionBarTabTextStyle edu.virginia.abf2dh.ghosthunter:actionBarTabTextStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_actionBarTheme edu.virginia.abf2dh.ghosthunter:actionBarTheme}</code></td><td> Reference to a theme that should be used to inflate the
action bar.</td></tr>
<tr><td><code>{@link #Theme_actionBarWidgetTheme edu.virginia.abf2dh.ghosthunter:actionBarWidgetTheme}</code></td><td> Reference to a theme that should be used to inflate widgets
and layouts destined for the action bar.</td></tr>
<tr><td><code>{@link #Theme_actionButtonStyle edu.virginia.abf2dh.ghosthunter:actionButtonStyle}</code></td><td> Default action button style.</td></tr>
<tr><td><code>{@link #Theme_actionDropDownStyle edu.virginia.abf2dh.ghosthunter:actionDropDownStyle}</code></td><td> Default ActionBar dropdown style.</td></tr>
<tr><td><code>{@link #Theme_actionMenuTextAppearance edu.virginia.abf2dh.ghosthunter:actionMenuTextAppearance}</code></td><td> TextAppearance style that will be applied to text that
appears within action menu items.</td></tr>
<tr><td><code>{@link #Theme_actionMenuTextColor edu.virginia.abf2dh.ghosthunter:actionMenuTextColor}</code></td><td> Color for text that appears within action menu items.</td></tr>
<tr><td><code>{@link #Theme_actionModeBackground edu.virginia.abf2dh.ghosthunter:actionModeBackground}</code></td><td> Background drawable to use for action mode UI </td></tr>
<tr><td><code>{@link #Theme_actionModeCloseButtonStyle edu.virginia.abf2dh.ghosthunter:actionModeCloseButtonStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_actionModeCloseDrawable edu.virginia.abf2dh.ghosthunter:actionModeCloseDrawable}</code></td><td> Drawable to use for the close action mode button </td></tr>
<tr><td><code>{@link #Theme_actionModeCopyDrawable edu.virginia.abf2dh.ghosthunter:actionModeCopyDrawable}</code></td><td> Drawable to use for the Copy action button in Contextual Action Bar </td></tr>
<tr><td><code>{@link #Theme_actionModeCutDrawable edu.virginia.abf2dh.ghosthunter:actionModeCutDrawable}</code></td><td> Drawable to use for the Cut action button in Contextual Action Bar </td></tr>
<tr><td><code>{@link #Theme_actionModeFindDrawable edu.virginia.abf2dh.ghosthunter:actionModeFindDrawable}</code></td><td> Drawable to use for the Find action button in WebView selection action modes </td></tr>
<tr><td><code>{@link #Theme_actionModePasteDrawable edu.virginia.abf2dh.ghosthunter:actionModePasteDrawable}</code></td><td> Drawable to use for the Paste action button in Contextual Action Bar </td></tr>
<tr><td><code>{@link #Theme_actionModePopupWindowStyle edu.virginia.abf2dh.ghosthunter:actionModePopupWindowStyle}</code></td><td> PopupWindow style to use for action modes when showing as a window overlay.</td></tr>
<tr><td><code>{@link #Theme_actionModeSelectAllDrawable edu.virginia.abf2dh.ghosthunter:actionModeSelectAllDrawable}</code></td><td> Drawable to use for the Select all action button in Contextual Action Bar </td></tr>
<tr><td><code>{@link #Theme_actionModeShareDrawable edu.virginia.abf2dh.ghosthunter:actionModeShareDrawable}</code></td><td> Drawable to use for the Share action button in WebView selection action modes </td></tr>
<tr><td><code>{@link #Theme_actionModeSplitBackground edu.virginia.abf2dh.ghosthunter:actionModeSplitBackground}</code></td><td> Background drawable to use for action mode UI in the lower split bar </td></tr>
<tr><td><code>{@link #Theme_actionModeStyle edu.virginia.abf2dh.ghosthunter:actionModeStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_actionModeWebSearchDrawable edu.virginia.abf2dh.ghosthunter:actionModeWebSearchDrawable}</code></td><td> Drawable to use for the Web Search action button in WebView selection action modes </td></tr>
<tr><td><code>{@link #Theme_actionOverflowButtonStyle edu.virginia.abf2dh.ghosthunter:actionOverflowButtonStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_actionOverflowMenuStyle edu.virginia.abf2dh.ghosthunter:actionOverflowMenuStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_activityChooserViewStyle edu.virginia.abf2dh.ghosthunter:activityChooserViewStyle}</code></td><td> Default ActivityChooserView style.</td></tr>
<tr><td><code>{@link #Theme_android_windowIsFloating android:windowIsFloating}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_buttonBarButtonStyle edu.virginia.abf2dh.ghosthunter:buttonBarButtonStyle}</code></td><td> A style that may be applied to Buttons placed within a
LinearLayout with the style buttonBarStyle to form a button bar.</td></tr>
<tr><td><code>{@link #Theme_buttonBarStyle edu.virginia.abf2dh.ghosthunter:buttonBarStyle}</code></td><td> A style that may be applied to horizontal LinearLayouts
to form a button bar.</td></tr>
<tr><td><code>{@link #Theme_colorAccent edu.virginia.abf2dh.ghosthunter:colorAccent}</code></td><td> Bright complement to the primary branding color.</td></tr>
<tr><td><code>{@link #Theme_colorButtonNormal edu.virginia.abf2dh.ghosthunter:colorButtonNormal}</code></td><td> The color applied to framework buttons in their normal state.</td></tr>
<tr><td><code>{@link #Theme_colorControlActivated edu.virginia.abf2dh.ghosthunter:colorControlActivated}</code></td><td> The color applied to framework controls in their activated (ex.</td></tr>
<tr><td><code>{@link #Theme_colorControlHighlight edu.virginia.abf2dh.ghosthunter:colorControlHighlight}</code></td><td> The color applied to framework control highlights (ex.</td></tr>
<tr><td><code>{@link #Theme_colorControlNormal edu.virginia.abf2dh.ghosthunter:colorControlNormal}</code></td><td> The color applied to framework controls in their normal state.</td></tr>
<tr><td><code>{@link #Theme_colorPrimary edu.virginia.abf2dh.ghosthunter:colorPrimary}</code></td><td> The primary branding color for the app.</td></tr>
<tr><td><code>{@link #Theme_colorPrimaryDark edu.virginia.abf2dh.ghosthunter:colorPrimaryDark}</code></td><td> Dark variant of the primary branding color.</td></tr>
<tr><td><code>{@link #Theme_colorSwitchThumbNormal edu.virginia.abf2dh.ghosthunter:colorSwitchThumbNormal}</code></td><td> The color applied to framework switch thumbs in their normal state.</td></tr>
<tr><td><code>{@link #Theme_dividerHorizontal edu.virginia.abf2dh.ghosthunter:dividerHorizontal}</code></td><td> A drawable that may be used as a horizontal divider between visual elements.</td></tr>
<tr><td><code>{@link #Theme_dividerVertical edu.virginia.abf2dh.ghosthunter:dividerVertical}</code></td><td> A drawable that may be used as a vertical divider between visual elements.</td></tr>
<tr><td><code>{@link #Theme_dropDownListViewStyle edu.virginia.abf2dh.ghosthunter:dropDownListViewStyle}</code></td><td> ListPopupWindow compatibility </td></tr>
<tr><td><code>{@link #Theme_dropdownListPreferredItemHeight edu.virginia.abf2dh.ghosthunter:dropdownListPreferredItemHeight}</code></td><td> The preferred item height for dropdown lists.</td></tr>
<tr><td><code>{@link #Theme_editTextBackground edu.virginia.abf2dh.ghosthunter:editTextBackground}</code></td><td> EditText background drawable.</td></tr>
<tr><td><code>{@link #Theme_editTextColor edu.virginia.abf2dh.ghosthunter:editTextColor}</code></td><td> EditText text foreground color.</td></tr>
<tr><td><code>{@link #Theme_homeAsUpIndicator edu.virginia.abf2dh.ghosthunter:homeAsUpIndicator}</code></td><td> Specifies a drawable to use for the 'home as up' indicator.</td></tr>
<tr><td><code>{@link #Theme_listChoiceBackgroundIndicator edu.virginia.abf2dh.ghosthunter:listChoiceBackgroundIndicator}</code></td><td> Drawable used as a background for selected list items.</td></tr>
<tr><td><code>{@link #Theme_listPopupWindowStyle edu.virginia.abf2dh.ghosthunter:listPopupWindowStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_listPreferredItemHeight edu.virginia.abf2dh.ghosthunter:listPreferredItemHeight}</code></td><td> The preferred list item height.</td></tr>
<tr><td><code>{@link #Theme_listPreferredItemHeightLarge edu.virginia.abf2dh.ghosthunter:listPreferredItemHeightLarge}</code></td><td> A larger, more robust list item height.</td></tr>
<tr><td><code>{@link #Theme_listPreferredItemHeightSmall edu.virginia.abf2dh.ghosthunter:listPreferredItemHeightSmall}</code></td><td> A smaller, sleeker list item height.</td></tr>
<tr><td><code>{@link #Theme_listPreferredItemPaddingLeft edu.virginia.abf2dh.ghosthunter:listPreferredItemPaddingLeft}</code></td><td> The preferred padding along the left edge of list items.</td></tr>
<tr><td><code>{@link #Theme_listPreferredItemPaddingRight edu.virginia.abf2dh.ghosthunter:listPreferredItemPaddingRight}</code></td><td> The preferred padding along the right edge of list items.</td></tr>
<tr><td><code>{@link #Theme_panelBackground edu.virginia.abf2dh.ghosthunter:panelBackground}</code></td><td> The background of a panel when it is inset from the left and right edges of the screen.</td></tr>
<tr><td><code>{@link #Theme_panelMenuListTheme edu.virginia.abf2dh.ghosthunter:panelMenuListTheme}</code></td><td> Default Panel Menu style.</td></tr>
<tr><td><code>{@link #Theme_panelMenuListWidth edu.virginia.abf2dh.ghosthunter:panelMenuListWidth}</code></td><td> Default Panel Menu width.</td></tr>
<tr><td><code>{@link #Theme_popupMenuStyle edu.virginia.abf2dh.ghosthunter:popupMenuStyle}</code></td><td> Default PopupMenu style.</td></tr>
<tr><td><code>{@link #Theme_popupWindowStyle edu.virginia.abf2dh.ghosthunter:popupWindowStyle}</code></td><td> Default PopupWindow style.</td></tr>
<tr><td><code>{@link #Theme_searchViewStyle edu.virginia.abf2dh.ghosthunter:searchViewStyle}</code></td><td> Style for the search query widget.</td></tr>
<tr><td><code>{@link #Theme_selectableItemBackground edu.virginia.abf2dh.ghosthunter:selectableItemBackground}</code></td><td> A style that may be applied to buttons or other selectable items
that should react to pressed and focus states, but that do not
have a clear visual border along the edges.</td></tr>
<tr><td><code>{@link #Theme_selectableItemBackgroundBorderless edu.virginia.abf2dh.ghosthunter:selectableItemBackgroundBorderless}</code></td><td> Background drawable for borderless standalone items that need focus/pressed states.</td></tr>
<tr><td><code>{@link #Theme_spinnerDropDownItemStyle edu.virginia.abf2dh.ghosthunter:spinnerDropDownItemStyle}</code></td><td> Default Spinner style.</td></tr>
<tr><td><code>{@link #Theme_spinnerStyle edu.virginia.abf2dh.ghosthunter:spinnerStyle}</code></td><td> Default Spinner style.</td></tr>
<tr><td><code>{@link #Theme_switchStyle edu.virginia.abf2dh.ghosthunter:switchStyle}</code></td><td> Default style for the Switch widget.</td></tr>
<tr><td><code>{@link #Theme_textAppearanceLargePopupMenu edu.virginia.abf2dh.ghosthunter:textAppearanceLargePopupMenu}</code></td><td> Text color, typeface, size, and style for the text inside of a popup menu.</td></tr>
<tr><td><code>{@link #Theme_textAppearanceListItem edu.virginia.abf2dh.ghosthunter:textAppearanceListItem}</code></td><td> The preferred TextAppearance for the primary text of list items.</td></tr>
<tr><td><code>{@link #Theme_textAppearanceListItemSmall edu.virginia.abf2dh.ghosthunter:textAppearanceListItemSmall}</code></td><td> The preferred TextAppearance for the primary text of small list items.</td></tr>
<tr><td><code>{@link #Theme_textAppearanceSearchResultSubtitle edu.virginia.abf2dh.ghosthunter:textAppearanceSearchResultSubtitle}</code></td><td> Text color, typeface, size, and style for system search result subtitle.</td></tr>
<tr><td><code>{@link #Theme_textAppearanceSearchResultTitle edu.virginia.abf2dh.ghosthunter:textAppearanceSearchResultTitle}</code></td><td> Text color, typeface, size, and style for system search result title.</td></tr>
<tr><td><code>{@link #Theme_textAppearanceSmallPopupMenu edu.virginia.abf2dh.ghosthunter:textAppearanceSmallPopupMenu}</code></td><td> Text color, typeface, size, and style for small text inside of a popup menu.</td></tr>
<tr><td><code>{@link #Theme_textColorSearchUrl edu.virginia.abf2dh.ghosthunter:textColorSearchUrl}</code></td><td> Text color for urls in search suggestions, used by things like global search </td></tr>
<tr><td><code>{@link #Theme_toolbarNavigationButtonStyle edu.virginia.abf2dh.ghosthunter:toolbarNavigationButtonStyle}</code></td><td> Default Toolar NavigationButtonStyle </td></tr>
<tr><td><code>{@link #Theme_toolbarStyle edu.virginia.abf2dh.ghosthunter:toolbarStyle}</code></td><td> Default Toolbar style.</td></tr>
<tr><td><code>{@link #Theme_windowActionBar edu.virginia.abf2dh.ghosthunter:windowActionBar}</code></td><td> Flag indicating whether this window should have an Action Bar
in place of the usual title bar.</td></tr>
<tr><td><code>{@link #Theme_windowActionBarOverlay edu.virginia.abf2dh.ghosthunter:windowActionBarOverlay}</code></td><td> Flag indicating whether this window's Action Bar should overlay
application content.</td></tr>
<tr><td><code>{@link #Theme_windowActionModeOverlay edu.virginia.abf2dh.ghosthunter:windowActionModeOverlay}</code></td><td> Flag indicating whether action modes should overlay window content
when there is not reserved space for their UI (such as an Action Bar).</td></tr>
<tr><td><code>{@link #Theme_windowFixedHeightMajor edu.virginia.abf2dh.ghosthunter:windowFixedHeightMajor}</code></td><td> A fixed height for the window along the major axis of the screen,
that is, when in portrait.</td></tr>
<tr><td><code>{@link #Theme_windowFixedHeightMinor edu.virginia.abf2dh.ghosthunter:windowFixedHeightMinor}</code></td><td> A fixed height for the window along the minor axis of the screen,
that is, when in landscape.</td></tr>
<tr><td><code>{@link #Theme_windowFixedWidthMajor edu.virginia.abf2dh.ghosthunter:windowFixedWidthMajor}</code></td><td> A fixed width for the window along the major axis of the screen,
that is, when in landscape.</td></tr>
<tr><td><code>{@link #Theme_windowFixedWidthMinor edu.virginia.abf2dh.ghosthunter:windowFixedWidthMinor}</code></td><td> A fixed width for the window along the minor axis of the screen,
that is, when in portrait.</td></tr>
</table>
@see #Theme_actionBarDivider
@see #Theme_actionBarItemBackground
@see #Theme_actionBarPopupTheme
@see #Theme_actionBarSize
@see #Theme_actionBarSplitStyle
@see #Theme_actionBarStyle
@see #Theme_actionBarTabBarStyle
@see #Theme_actionBarTabStyle
@see #Theme_actionBarTabTextStyle
@see #Theme_actionBarTheme
@see #Theme_actionBarWidgetTheme
@see #Theme_actionButtonStyle
@see #Theme_actionDropDownStyle
@see #Theme_actionMenuTextAppearance
@see #Theme_actionMenuTextColor
@see #Theme_actionModeBackground
@see #Theme_actionModeCloseButtonStyle
@see #Theme_actionModeCloseDrawable
@see #Theme_actionModeCopyDrawable
@see #Theme_actionModeCutDrawable
@see #Theme_actionModeFindDrawable
@see #Theme_actionModePasteDrawable
@see #Theme_actionModePopupWindowStyle
@see #Theme_actionModeSelectAllDrawable
@see #Theme_actionModeShareDrawable
@see #Theme_actionModeSplitBackground
@see #Theme_actionModeStyle
@see #Theme_actionModeWebSearchDrawable
@see #Theme_actionOverflowButtonStyle
@see #Theme_actionOverflowMenuStyle
@see #Theme_activityChooserViewStyle
@see #Theme_android_windowIsFloating
@see #Theme_buttonBarButtonStyle
@see #Theme_buttonBarStyle
@see #Theme_colorAccent
@see #Theme_colorButtonNormal
@see #Theme_colorControlActivated
@see #Theme_colorControlHighlight
@see #Theme_colorControlNormal
@see #Theme_colorPrimary
@see #Theme_colorPrimaryDark
@see #Theme_colorSwitchThumbNormal
@see #Theme_dividerHorizontal
@see #Theme_dividerVertical
@see #Theme_dropDownListViewStyle
@see #Theme_dropdownListPreferredItemHeight
@see #Theme_editTextBackground
@see #Theme_editTextColor
@see #Theme_homeAsUpIndicator
@see #Theme_listChoiceBackgroundIndicator
@see #Theme_listPopupWindowStyle
@see #Theme_listPreferredItemHeight
@see #Theme_listPreferredItemHeightLarge
@see #Theme_listPreferredItemHeightSmall
@see #Theme_listPreferredItemPaddingLeft
@see #Theme_listPreferredItemPaddingRight
@see #Theme_panelBackground
@see #Theme_panelMenuListTheme
@see #Theme_panelMenuListWidth
@see #Theme_popupMenuStyle
@see #Theme_popupWindowStyle
@see #Theme_searchViewStyle
@see #Theme_selectableItemBackground
@see #Theme_selectableItemBackgroundBorderless
@see #Theme_spinnerDropDownItemStyle
@see #Theme_spinnerStyle
@see #Theme_switchStyle
@see #Theme_textAppearanceLargePopupMenu
@see #Theme_textAppearanceListItem
@see #Theme_textAppearanceListItemSmall
@see #Theme_textAppearanceSearchResultSubtitle
@see #Theme_textAppearanceSearchResultTitle
@see #Theme_textAppearanceSmallPopupMenu
@see #Theme_textColorSearchUrl
@see #Theme_toolbarNavigationButtonStyle
@see #Theme_toolbarStyle
@see #Theme_windowActionBar
@see #Theme_windowActionBarOverlay
@see #Theme_windowActionModeOverlay
@see #Theme_windowFixedHeightMajor
@see #Theme_windowFixedHeightMinor
@see #Theme_windowFixedWidthMajor
@see #Theme_windowFixedWidthMinor
*/
public static final int[] Theme = {
0x01010057, 0x7f010003, 0x7f010004, 0x7f010005,
0x7f010006, 0x7f010007, 0x7f010008, 0x7f010009,
0x7f01000a, 0x7f01000b, 0x7f01000c, 0x7f01000d,
0x7f01000e, 0x7f01000f, 0x7f010010, 0x7f010011,
0x7f010012, 0x7f010013, 0x7f010014, 0x7f010015,
0x7f010016, 0x7f010017, 0x7f010018, 0x7f010019,
0x7f01001a, 0x7f01001b, 0x7f01001c, 0x7f01001d,
0x7f01001e, 0x7f01001f, 0x7f010020, 0x7f010021,
0x7f010022, 0x7f010023, 0x7f010024, 0x7f010025,
0x7f010026, 0x7f010027, 0x7f010028, 0x7f010029,
0x7f01002a, 0x7f01002b, 0x7f01002c, 0x7f01002d,
0x7f01002e, 0x7f01002f, 0x7f010030, 0x7f010031,
0x7f010032, 0x7f010033, 0x7f010034, 0x7f010035,
0x7f010036, 0x7f010037, 0x7f010038, 0x7f010039,
0x7f01003a, 0x7f01003b, 0x7f01003c, 0x7f01003d,
0x7f01003e, 0x7f01003f, 0x7f010040, 0x7f010041,
0x7f010042, 0x7f010043, 0x7f010044, 0x7f010045,
0x7f010046, 0x7f010047, 0x7f010048, 0x7f010049,
0x7f01004a, 0x7f01004b, 0x7f01004c, 0x7f01004d,
0x7f01004e, 0x7f01004f, 0x7f010050, 0x7f010051,
0x7f010052, 0x7f010053, 0x7f010054
};
/**
<p>
@attr description
Custom divider drawable to use for elements in the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:actionBarDivider
*/
public static final int Theme_actionBarDivider = 19;
/**
<p>
@attr description
Custom item state list drawable background for action bar items.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:actionBarItemBackground
*/
public static final int Theme_actionBarItemBackground = 20;
/**
<p>
@attr description
Reference to a theme that should be used to inflate popups
shown by widgets in the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:actionBarPopupTheme
*/
public static final int Theme_actionBarPopupTheme = 13;
/**
<p>
@attr description
Size of the Action Bar, including the contextual
bar used to present Action Modes.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>May be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>wrap_content</code></td><td>0</td><td></td></tr>
</table>
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:actionBarSize
*/
public static final int Theme_actionBarSize = 18;
/**
<p>
@attr description
Reference to a style for the split Action Bar. This style
controls the split component that holds the menu/action
buttons. actionBarStyle is still used for the primary
bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:actionBarSplitStyle
*/
public static final int Theme_actionBarSplitStyle = 15;
/**
<p>
@attr description
Reference to a style for the Action Bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:actionBarStyle
*/
public static final int Theme_actionBarStyle = 14;
/**
<p>This symbol is the offset where the {@link edu.virginia.abf2dh.ghosthunter.R.attr#actionBarTabBarStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name edu.virginia.abf2dh.ghosthunter:actionBarTabBarStyle
*/
public static final int Theme_actionBarTabBarStyle = 9;
/**
<p>
@attr description
Default style for tabs within an action bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:actionBarTabStyle
*/
public static final int Theme_actionBarTabStyle = 8;
/**
<p>This symbol is the offset where the {@link edu.virginia.abf2dh.ghosthunter.R.attr#actionBarTabTextStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name edu.virginia.abf2dh.ghosthunter:actionBarTabTextStyle
*/
public static final int Theme_actionBarTabTextStyle = 10;
/**
<p>
@attr description
Reference to a theme that should be used to inflate the
action bar. This will be inherited by any widget inflated
into the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:actionBarTheme
*/
public static final int Theme_actionBarTheme = 16;
/**
<p>
@attr description
Reference to a theme that should be used to inflate widgets
and layouts destined for the action bar. Most of the time
this will be a reference to the current theme, but when
the action bar has a significantly different contrast
profile than the rest of the activity the difference
can become important. If this is set to @null the current
theme will be used.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:actionBarWidgetTheme
*/
public static final int Theme_actionBarWidgetTheme = 17;
/**
<p>
@attr description
Default action button style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:actionButtonStyle
*/
public static final int Theme_actionButtonStyle = 43;
/**
<p>
@attr description
Default ActionBar dropdown style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:actionDropDownStyle
*/
public static final int Theme_actionDropDownStyle = 38;
/**
<p>
@attr description
TextAppearance style that will be applied to text that
appears within action menu items.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:actionMenuTextAppearance
*/
public static final int Theme_actionMenuTextAppearance = 21;
/**
<p>
@attr description
Color for text that appears within action menu items.
Color for text that appears within action menu items.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:actionMenuTextColor
*/
public static final int Theme_actionMenuTextColor = 22;
/**
<p>
@attr description
Background drawable to use for action mode UI
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:actionModeBackground
*/
public static final int Theme_actionModeBackground = 25;
/**
<p>This symbol is the offset where the {@link edu.virginia.abf2dh.ghosthunter.R.attr#actionModeCloseButtonStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name edu.virginia.abf2dh.ghosthunter:actionModeCloseButtonStyle
*/
public static final int Theme_actionModeCloseButtonStyle = 24;
/**
<p>
@attr description
Drawable to use for the close action mode button
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:actionModeCloseDrawable
*/
public static final int Theme_actionModeCloseDrawable = 27;
/**
<p>
@attr description
Drawable to use for the Copy action button in Contextual Action Bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:actionModeCopyDrawable
*/
public static final int Theme_actionModeCopyDrawable = 29;
/**
<p>
@attr description
Drawable to use for the Cut action button in Contextual Action Bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:actionModeCutDrawable
*/
public static final int Theme_actionModeCutDrawable = 28;
/**
<p>
@attr description
Drawable to use for the Find action button in WebView selection action modes
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:actionModeFindDrawable
*/
public static final int Theme_actionModeFindDrawable = 33;
/**
<p>
@attr description
Drawable to use for the Paste action button in Contextual Action Bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:actionModePasteDrawable
*/
public static final int Theme_actionModePasteDrawable = 30;
/**
<p>
@attr description
PopupWindow style to use for action modes when showing as a window overlay.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:actionModePopupWindowStyle
*/
public static final int Theme_actionModePopupWindowStyle = 35;
/**
<p>
@attr description
Drawable to use for the Select all action button in Contextual Action Bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:actionModeSelectAllDrawable
*/
public static final int Theme_actionModeSelectAllDrawable = 31;
/**
<p>
@attr description
Drawable to use for the Share action button in WebView selection action modes
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:actionModeShareDrawable
*/
public static final int Theme_actionModeShareDrawable = 32;
/**
<p>
@attr description
Background drawable to use for action mode UI in the lower split bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:actionModeSplitBackground
*/
public static final int Theme_actionModeSplitBackground = 26;
/**
<p>This symbol is the offset where the {@link edu.virginia.abf2dh.ghosthunter.R.attr#actionModeStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name edu.virginia.abf2dh.ghosthunter:actionModeStyle
*/
public static final int Theme_actionModeStyle = 23;
/**
<p>
@attr description
Drawable to use for the Web Search action button in WebView selection action modes
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:actionModeWebSearchDrawable
*/
public static final int Theme_actionModeWebSearchDrawable = 34;
/**
<p>This symbol is the offset where the {@link edu.virginia.abf2dh.ghosthunter.R.attr#actionOverflowButtonStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name edu.virginia.abf2dh.ghosthunter:actionOverflowButtonStyle
*/
public static final int Theme_actionOverflowButtonStyle = 11;
/**
<p>This symbol is the offset where the {@link edu.virginia.abf2dh.ghosthunter.R.attr#actionOverflowMenuStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name edu.virginia.abf2dh.ghosthunter:actionOverflowMenuStyle
*/
public static final int Theme_actionOverflowMenuStyle = 12;
/**
<p>
@attr description
Default ActivityChooserView style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:activityChooserViewStyle
*/
public static final int Theme_activityChooserViewStyle = 50;
/**
<p>This symbol is the offset where the {@link android.R.attr#windowIsFloating}
attribute's value can be found in the {@link #Theme} array.
@attr name android:windowIsFloating
*/
public static final int Theme_android_windowIsFloating = 0;
/**
<p>
@attr description
A style that may be applied to Buttons placed within a
LinearLayout with the style buttonBarStyle to form a button bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:buttonBarButtonStyle
*/
public static final int Theme_buttonBarButtonStyle = 45;
/**
<p>
@attr description
A style that may be applied to horizontal LinearLayouts
to form a button bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:buttonBarStyle
*/
public static final int Theme_buttonBarStyle = 44;
/**
<p>
@attr description
Bright complement to the primary branding color. By default, this is the color applied
to framework controls (via colorControlActivated).
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:colorAccent
*/
public static final int Theme_colorAccent = 77;
/**
<p>
@attr description
The color applied to framework buttons in their normal state.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:colorButtonNormal
*/
public static final int Theme_colorButtonNormal = 81;
/**
<p>
@attr description
The color applied to framework controls in their activated (ex. checked) state.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:colorControlActivated
*/
public static final int Theme_colorControlActivated = 79;
/**
<p>
@attr description
The color applied to framework control highlights (ex. ripples, list selectors).
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:colorControlHighlight
*/
public static final int Theme_colorControlHighlight = 80;
/**
<p>
@attr description
The color applied to framework controls in their normal state.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:colorControlNormal
*/
public static final int Theme_colorControlNormal = 78;
/**
<p>
@attr description
The primary branding color for the app. By default, this is the color applied to the
action bar background.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:colorPrimary
*/
public static final int Theme_colorPrimary = 75;
/**
<p>
@attr description
Dark variant of the primary branding color. By default, this is the color applied to
the status bar (via statusBarColor) and navigation bar (via navigationBarColor).
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:colorPrimaryDark
*/
public static final int Theme_colorPrimaryDark = 76;
/**
<p>
@attr description
The color applied to framework switch thumbs in their normal state.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:colorSwitchThumbNormal
*/
public static final int Theme_colorSwitchThumbNormal = 82;
/**
<p>
@attr description
A drawable that may be used as a horizontal divider between visual elements.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:dividerHorizontal
*/
public static final int Theme_dividerHorizontal = 49;
/**
<p>
@attr description
A drawable that may be used as a vertical divider between visual elements.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:dividerVertical
*/
public static final int Theme_dividerVertical = 48;
/**
<p>
@attr description
ListPopupWindow compatibility
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:dropDownListViewStyle
*/
public static final int Theme_dropDownListViewStyle = 67;
/**
<p>
@attr description
The preferred item height for dropdown lists.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:dropdownListPreferredItemHeight
*/
public static final int Theme_dropdownListPreferredItemHeight = 39;
/**
<p>
@attr description
EditText background drawable.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:editTextBackground
*/
public static final int Theme_editTextBackground = 56;
/**
<p>
@attr description
EditText text foreground color.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:editTextColor
*/
public static final int Theme_editTextColor = 55;
/**
<p>
@attr description
Specifies a drawable to use for the 'home as up' indicator.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:homeAsUpIndicator
*/
public static final int Theme_homeAsUpIndicator = 42;
/**
<p>
@attr description
Drawable used as a background for selected list items.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:listChoiceBackgroundIndicator
*/
public static final int Theme_listChoiceBackgroundIndicator = 74;
/**
<p>This symbol is the offset where the {@link edu.virginia.abf2dh.ghosthunter.R.attr#listPopupWindowStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name edu.virginia.abf2dh.ghosthunter:listPopupWindowStyle
*/
public static final int Theme_listPopupWindowStyle = 68;
/**
<p>
@attr description
The preferred list item height.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:listPreferredItemHeight
*/
public static final int Theme_listPreferredItemHeight = 62;
/**
<p>
@attr description
A larger, more robust list item height.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:listPreferredItemHeightLarge
*/
public static final int Theme_listPreferredItemHeightLarge = 64;
/**
<p>
@attr description
A smaller, sleeker list item height.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:listPreferredItemHeightSmall
*/
public static final int Theme_listPreferredItemHeightSmall = 63;
/**
<p>
@attr description
The preferred padding along the left edge of list items.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:listPreferredItemPaddingLeft
*/
public static final int Theme_listPreferredItemPaddingLeft = 65;
/**
<p>
@attr description
The preferred padding along the right edge of list items.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:listPreferredItemPaddingRight
*/
public static final int Theme_listPreferredItemPaddingRight = 66;
/**
<p>
@attr description
The background of a panel when it is inset from the left and right edges of the screen.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:panelBackground
*/
public static final int Theme_panelBackground = 71;
/**
<p>
@attr description
Default Panel Menu style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:panelMenuListTheme
*/
public static final int Theme_panelMenuListTheme = 73;
/**
<p>
@attr description
Default Panel Menu width.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:panelMenuListWidth
*/
public static final int Theme_panelMenuListWidth = 72;
/**
<p>
@attr description
Default PopupMenu style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:popupMenuStyle
*/
public static final int Theme_popupMenuStyle = 53;
/**
<p>
@attr description
Default PopupWindow style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:popupWindowStyle
*/
public static final int Theme_popupWindowStyle = 54;
/**
<p>
@attr description
Style for the search query widget.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:searchViewStyle
*/
public static final int Theme_searchViewStyle = 61;
/**
<p>
@attr description
A style that may be applied to buttons or other selectable items
that should react to pressed and focus states, but that do not
have a clear visual border along the edges.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:selectableItemBackground
*/
public static final int Theme_selectableItemBackground = 46;
/**
<p>
@attr description
Background drawable for borderless standalone items that need focus/pressed states.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:selectableItemBackgroundBorderless
*/
public static final int Theme_selectableItemBackgroundBorderless = 47;
/**
<p>
@attr description
Default Spinner style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:spinnerDropDownItemStyle
*/
public static final int Theme_spinnerDropDownItemStyle = 41;
/**
<p>
@attr description
Default Spinner style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:spinnerStyle
*/
public static final int Theme_spinnerStyle = 40;
/**
<p>
@attr description
Default style for the Switch widget.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:switchStyle
*/
public static final int Theme_switchStyle = 57;
/**
<p>
@attr description
Text color, typeface, size, and style for the text inside of a popup menu.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:textAppearanceLargePopupMenu
*/
public static final int Theme_textAppearanceLargePopupMenu = 36;
/**
<p>
@attr description
The preferred TextAppearance for the primary text of list items.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:textAppearanceListItem
*/
public static final int Theme_textAppearanceListItem = 69;
/**
<p>
@attr description
The preferred TextAppearance for the primary text of small list items.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:textAppearanceListItemSmall
*/
public static final int Theme_textAppearanceListItemSmall = 70;
/**
<p>
@attr description
Text color, typeface, size, and style for system search result subtitle. Defaults to primary inverse text color.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:textAppearanceSearchResultSubtitle
*/
public static final int Theme_textAppearanceSearchResultSubtitle = 59;
/**
<p>
@attr description
Text color, typeface, size, and style for system search result title. Defaults to primary inverse text color.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:textAppearanceSearchResultTitle
*/
public static final int Theme_textAppearanceSearchResultTitle = 58;
/**
<p>
@attr description
Text color, typeface, size, and style for small text inside of a popup menu.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:textAppearanceSmallPopupMenu
*/
public static final int Theme_textAppearanceSmallPopupMenu = 37;
/**
<p>
@attr description
Text color for urls in search suggestions, used by things like global search
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:textColorSearchUrl
*/
public static final int Theme_textColorSearchUrl = 60;
/**
<p>
@attr description
Default Toolar NavigationButtonStyle
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:toolbarNavigationButtonStyle
*/
public static final int Theme_toolbarNavigationButtonStyle = 52;
/**
<p>
@attr description
Default Toolbar style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:toolbarStyle
*/
public static final int Theme_toolbarStyle = 51;
/**
<p>
@attr description
Flag indicating whether this window should have an Action Bar
in place of the usual title bar.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:windowActionBar
*/
public static final int Theme_windowActionBar = 1;
/**
<p>
@attr description
Flag indicating whether this window's Action Bar should overlay
application content. Does nothing if the window would not
have an Action Bar.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:windowActionBarOverlay
*/
public static final int Theme_windowActionBarOverlay = 2;
/**
<p>
@attr description
Flag indicating whether action modes should overlay window content
when there is not reserved space for their UI (such as an Action Bar).
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:windowActionModeOverlay
*/
public static final int Theme_windowActionModeOverlay = 3;
/**
<p>
@attr description
A fixed height for the window along the major axis of the screen,
that is, when in portrait. Can be either an absolute dimension
or a fraction of the screen size in that dimension.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:windowFixedHeightMajor
*/
public static final int Theme_windowFixedHeightMajor = 7;
/**
<p>
@attr description
A fixed height for the window along the minor axis of the screen,
that is, when in landscape. Can be either an absolute dimension
or a fraction of the screen size in that dimension.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:windowFixedHeightMinor
*/
public static final int Theme_windowFixedHeightMinor = 5;
/**
<p>
@attr description
A fixed width for the window along the major axis of the screen,
that is, when in landscape. Can be either an absolute dimension
or a fraction of the screen size in that dimension.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:windowFixedWidthMajor
*/
public static final int Theme_windowFixedWidthMajor = 4;
/**
<p>
@attr description
A fixed width for the window along the minor axis of the screen,
that is, when in portrait. Can be either an absolute dimension
or a fraction of the screen size in that dimension.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:windowFixedWidthMinor
*/
public static final int Theme_windowFixedWidthMinor = 6;
/** Attributes that can be used with a Toolbar.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #Toolbar_android_gravity android:gravity}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_android_minHeight android:minHeight}</code></td><td> Allows us to read in the minHeight attr pre-v16 </td></tr>
<tr><td><code>{@link #Toolbar_buttonGravity edu.virginia.abf2dh.ghosthunter:buttonGravity}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_collapseIcon edu.virginia.abf2dh.ghosthunter:collapseIcon}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_contentInsetEnd edu.virginia.abf2dh.ghosthunter:contentInsetEnd}</code></td><td> Minimum inset for content views within a bar.</td></tr>
<tr><td><code>{@link #Toolbar_contentInsetLeft edu.virginia.abf2dh.ghosthunter:contentInsetLeft}</code></td><td> Minimum inset for content views within a bar.</td></tr>
<tr><td><code>{@link #Toolbar_contentInsetRight edu.virginia.abf2dh.ghosthunter:contentInsetRight}</code></td><td> Minimum inset for content views within a bar.</td></tr>
<tr><td><code>{@link #Toolbar_contentInsetStart edu.virginia.abf2dh.ghosthunter:contentInsetStart}</code></td><td> Minimum inset for content views within a bar.</td></tr>
<tr><td><code>{@link #Toolbar_maxButtonHeight edu.virginia.abf2dh.ghosthunter:maxButtonHeight}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_navigationContentDescription edu.virginia.abf2dh.ghosthunter:navigationContentDescription}</code></td><td> Text to set as the content description for the navigation button
located at the start of the toolbar.</td></tr>
<tr><td><code>{@link #Toolbar_navigationIcon edu.virginia.abf2dh.ghosthunter:navigationIcon}</code></td><td> Icon drawable to use for the navigation button located at
the start of the toolbar.</td></tr>
<tr><td><code>{@link #Toolbar_popupTheme edu.virginia.abf2dh.ghosthunter:popupTheme}</code></td><td> Reference to a theme that should be used to inflate popups
shown by widgets in the toolbar.</td></tr>
<tr><td><code>{@link #Toolbar_subtitle edu.virginia.abf2dh.ghosthunter:subtitle}</code></td><td> Specifies subtitle text used for navigationMode="normal" </td></tr>
<tr><td><code>{@link #Toolbar_subtitleTextAppearance edu.virginia.abf2dh.ghosthunter:subtitleTextAppearance}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_theme edu.virginia.abf2dh.ghosthunter:theme}</code></td><td> Specifies a theme override for a view.</td></tr>
<tr><td><code>{@link #Toolbar_title edu.virginia.abf2dh.ghosthunter:title}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_titleMarginBottom edu.virginia.abf2dh.ghosthunter:titleMarginBottom}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_titleMarginEnd edu.virginia.abf2dh.ghosthunter:titleMarginEnd}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_titleMarginStart edu.virginia.abf2dh.ghosthunter:titleMarginStart}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_titleMarginTop edu.virginia.abf2dh.ghosthunter:titleMarginTop}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_titleMargins edu.virginia.abf2dh.ghosthunter:titleMargins}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_titleTextAppearance edu.virginia.abf2dh.ghosthunter:titleTextAppearance}</code></td><td></td></tr>
</table>
@see #Toolbar_android_gravity
@see #Toolbar_android_minHeight
@see #Toolbar_buttonGravity
@see #Toolbar_collapseIcon
@see #Toolbar_contentInsetEnd
@see #Toolbar_contentInsetLeft
@see #Toolbar_contentInsetRight
@see #Toolbar_contentInsetStart
@see #Toolbar_maxButtonHeight
@see #Toolbar_navigationContentDescription
@see #Toolbar_navigationIcon
@see #Toolbar_popupTheme
@see #Toolbar_subtitle
@see #Toolbar_subtitleTextAppearance
@see #Toolbar_theme
@see #Toolbar_title
@see #Toolbar_titleMarginBottom
@see #Toolbar_titleMarginEnd
@see #Toolbar_titleMarginStart
@see #Toolbar_titleMarginTop
@see #Toolbar_titleMargins
@see #Toolbar_titleTextAppearance
*/
public static final int[] Toolbar = {
0x010100af, 0x01010140, 0x7f010000, 0x7f010057,
0x7f010067, 0x7f010068, 0x7f010069, 0x7f01006a,
0x7f01006c, 0x7f01008a, 0x7f01008b, 0x7f01008c,
0x7f01008d, 0x7f01008e, 0x7f01008f, 0x7f010090,
0x7f010091, 0x7f010092, 0x7f010093, 0x7f010094,
0x7f010095, 0x7f010096
};
/**
<p>This symbol is the offset where the {@link android.R.attr#gravity}
attribute's value can be found in the {@link #Toolbar} array.
@attr name android:gravity
*/
public static final int Toolbar_android_gravity = 0;
/**
<p>
@attr description
Allows us to read in the minHeight attr pre-v16
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#minHeight}.
@attr name android:minHeight
*/
public static final int Toolbar_android_minHeight = 1;
/**
<p>This symbol is the offset where the {@link edu.virginia.abf2dh.ghosthunter.R.attr#buttonGravity}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>top</code></td><td>0x30</td><td> Push object to the top of its container, not changing its size. </td></tr>
<tr><td><code>bottom</code></td><td>0x50</td><td> Push object to the bottom of its container, not changing its size. </td></tr>
</table>
@attr name edu.virginia.abf2dh.ghosthunter:buttonGravity
*/
public static final int Toolbar_buttonGravity = 18;
/**
<p>This symbol is the offset where the {@link edu.virginia.abf2dh.ghosthunter.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 edu.virginia.abf2dh.ghosthunter:collapseIcon
*/
public static final int Toolbar_collapseIcon = 19;
/**
<p>
@attr description
Minimum inset for content views within a bar. Navigation buttons and
menu views are excepted. Only valid for some themes and configurations.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:contentInsetEnd
*/
public static final int Toolbar_contentInsetEnd = 5;
/**
<p>
@attr description
Minimum inset for content views within a bar. Navigation buttons and
menu views are excepted. Only valid for some themes and configurations.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:contentInsetLeft
*/
public static final int Toolbar_contentInsetLeft = 6;
/**
<p>
@attr description
Minimum inset for content views within a bar. Navigation buttons and
menu views are excepted. Only valid for some themes and configurations.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:contentInsetRight
*/
public static final int Toolbar_contentInsetRight = 7;
/**
<p>
@attr description
Minimum inset for content views within a bar. Navigation buttons and
menu views are excepted. Only valid for some themes and configurations.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:contentInsetStart
*/
public static final int Toolbar_contentInsetStart = 4;
/**
<p>This symbol is the offset where the {@link edu.virginia.abf2dh.ghosthunter.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 edu.virginia.abf2dh.ghosthunter:maxButtonHeight
*/
public static final int Toolbar_maxButtonHeight = 16;
/**
<p>
@attr description
Text to set as the content description for the navigation button
located at the start of the toolbar.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:navigationContentDescription
*/
public static final int Toolbar_navigationContentDescription = 21;
/**
<p>
@attr description
Icon drawable to use for the navigation button located at
the start of the toolbar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:navigationIcon
*/
public static final int Toolbar_navigationIcon = 20;
/**
<p>
@attr description
Reference to a theme that should be used to inflate popups
shown by widgets in the toolbar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:popupTheme
*/
public static final int Toolbar_popupTheme = 8;
/**
<p>
@attr description
Specifies subtitle text used for navigationMode="normal"
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:subtitle
*/
public static final int Toolbar_subtitle = 3;
/**
<p>This symbol is the offset where the {@link edu.virginia.abf2dh.ghosthunter.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 edu.virginia.abf2dh.ghosthunter:subtitleTextAppearance
*/
public static final int Toolbar_subtitleTextAppearance = 10;
/**
<p>
@attr description
Specifies a theme override for a view. When a theme override is set, the
view will be inflated using a {@link android.content.Context} themed with
the specified resource. During XML inflation, any child views under the
view with a theme override will inherit the themed context.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:theme
*/
public static final int Toolbar_theme = 17;
/**
<p>This symbol is the offset where the {@link edu.virginia.abf2dh.ghosthunter.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 edu.virginia.abf2dh.ghosthunter:title
*/
public static final int Toolbar_title = 2;
/**
<p>This symbol is the offset where the {@link edu.virginia.abf2dh.ghosthunter.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 edu.virginia.abf2dh.ghosthunter:titleMarginBottom
*/
public static final int Toolbar_titleMarginBottom = 15;
/**
<p>This symbol is the offset where the {@link edu.virginia.abf2dh.ghosthunter.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 edu.virginia.abf2dh.ghosthunter:titleMarginEnd
*/
public static final int Toolbar_titleMarginEnd = 13;
/**
<p>This symbol is the offset where the {@link edu.virginia.abf2dh.ghosthunter.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 edu.virginia.abf2dh.ghosthunter:titleMarginStart
*/
public static final int Toolbar_titleMarginStart = 12;
/**
<p>This symbol is the offset where the {@link edu.virginia.abf2dh.ghosthunter.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 edu.virginia.abf2dh.ghosthunter:titleMarginTop
*/
public static final int Toolbar_titleMarginTop = 14;
/**
<p>This symbol is the offset where the {@link edu.virginia.abf2dh.ghosthunter.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 edu.virginia.abf2dh.ghosthunter:titleMargins
*/
public static final int Toolbar_titleMargins = 11;
/**
<p>This symbol is the offset where the {@link edu.virginia.abf2dh.ghosthunter.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 edu.virginia.abf2dh.ghosthunter:titleTextAppearance
*/
public static final int Toolbar_titleTextAppearance = 9;
/** Attributes that can be used with a View.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #View_android_focusable android:focusable}</code></td><td> Boolean that controls whether a view can take focus.</td></tr>
<tr><td><code>{@link #View_paddingEnd edu.virginia.abf2dh.ghosthunter:paddingEnd}</code></td><td> Sets the padding, in pixels, of the end edge; see {@link android.R.attr#padding}.</td></tr>
<tr><td><code>{@link #View_paddingStart edu.virginia.abf2dh.ghosthunter:paddingStart}</code></td><td> Sets the padding, in pixels, of the start edge; see {@link android.R.attr#padding}.</td></tr>
</table>
@see #View_android_focusable
@see #View_paddingEnd
@see #View_paddingStart
*/
public static final int[] View = {
0x010100da, 0x7f01006e, 0x7f01006f
};
/**
<p>
@attr description
Boolean that controls whether a view can take focus. By default the user can not
move focus to a view; by setting this attribute to true the view is
allowed to take focus. This value does not impact the behavior of
directly calling {@link android.view.View#requestFocus}, which will
always request focus regardless of this view. It only impacts where
focus navigation will try to move focus.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#focusable}.
@attr name android:focusable
*/
public static final int View_android_focusable = 0;
/**
<p>
@attr description
Sets the padding, in pixels, of the end edge; see {@link android.R.attr#padding}.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:paddingEnd
*/
public static final int View_paddingEnd = 2;
/**
<p>
@attr description
Sets the padding, in pixels, of the start edge; see {@link android.R.attr#padding}.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name edu.virginia.abf2dh.ghosthunter:paddingStart
*/
public static final int View_paddingStart = 1;
/** Attributes that can be used with a ViewStubCompat.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ViewStubCompat_android_id android:id}</code></td><td></td></tr>
<tr><td><code>{@link #ViewStubCompat_android_inflatedId android:inflatedId}</code></td><td> Overrides the id of the inflated View with this value.</td></tr>
<tr><td><code>{@link #ViewStubCompat_android_layout android:layout}</code></td><td> Supply an identifier for the layout resource to inflate when the ViewStub
becomes visible or when forced to do so.</td></tr>
</table>
@see #ViewStubCompat_android_id
@see #ViewStubCompat_android_inflatedId
@see #ViewStubCompat_android_layout
*/
public static final int[] ViewStubCompat = {
0x010100d0, 0x010100f2, 0x010100f3
};
/**
<p>This symbol is the offset where the {@link android.R.attr#id}
attribute's value can be found in the {@link #ViewStubCompat} array.
@attr name android:id
*/
public static final int ViewStubCompat_android_id = 0;
/**
<p>
@attr description
Overrides the id of the inflated View with this value.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#inflatedId}.
@attr name android:inflatedId
*/
public static final int ViewStubCompat_android_inflatedId = 2;
/**
<p>
@attr description
Supply an identifier for the layout resource to inflate when the ViewStub
becomes visible or when forced to do so. The layout resource must be a
valid reference to a layout.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#layout}.
@attr name android:layout
*/
public static final int ViewStubCompat_android_layout = 1;
};
}
| amanifarooque/ghosthuntertest | R.java |
362 |
// Edge class
public class E {
private V begin;
private V end;
private int length;
private int speedLimit;
private int weight;
private int cellListsNum;
public Lane[] street;
private int cellsNum;
private boolean oneWay;
public static final int CELL_SIZE = 5;
E (V _begin, V _end, int _length, int _speedLimit, int _cellListsNum, boolean _oneWay) {
this.begin = _begin;
this.end = _end;
this.weight = _cellListsNum;
this.length = (int) Math.sqrt((end.getX()-begin.getX()) * (end.getX()-begin.getX()) +
(end.getY()-begin.getY()) * (end.getY()-begin.getY()));
//System.out.println(begin.toString() + " - " + end.toString() + " : " + length);
this.speedLimit = _speedLimit;
this.cellListsNum = _cellListsNum;
this.oneWay = _oneWay;
cellsNum = length / CELL_SIZE;
street = new Lane[cellListsNum];
// jeden pas ruchu
if(cellListsNum == 1) {
street[0] = new Lane(cellsNum, this.begin, this.end, 0, 0, 0);
if(!oneWay) {
if(this.end.getY() < this.getBeginY()) {
for(int j = 0; j < street[0].cellList.length; j++) {
street[0].cellList[j].setX(street[0].cellList[j].getX() + 3);
//street[0].cellList[j].setY(street[0].cellList[j].getY() + 3);
}
} else {
for(int j = 0; j < street[0].cellList.length; j++) {
street[0].cellList[j].setX(street[0].cellList[j].getX() - 3);
//street[0].cellList[j].setY(street[0].cellList[j].getY() - 3);
}
}
}
// dwa pasy ruchu
} else if(cellListsNum == 2) {
street[0] = new Lane(cellsNum, this.begin, this.end, 0, 1, 0);
street[1] = new Lane(cellsNum, this.begin, this.end, 1, 0, 1);
if(this.end.getY() < this.begin.getY()) {
for(int j = 0; j < street[0].cellList.length; j++) {
street[0].cellList[j].setX(street[0].cellList[j].getX() + 5);
//street[0].cellList[j].setY(street[0].cellList[j].getY() + 5);
street[1].cellList[j].setX(street[1].cellList[j].getX() + 10);
//street[1].cellList[j].setY(street[1].cellList[j].getY() + 10);
}
} else {
for(int j = 0; j < street[1].cellList.length; j++) {
street[0].cellList[j].setX(street[0].cellList[j].getX() - 5);
//street[0].cellList[j].setY(street[0].cellList[j].getY() - 5);
street[1].cellList[j].setX(street[1].cellList[j].getX() - 10);
//street[1].cellList[j].setY(street[1].cellList[j].getY() - 10);
}
}
// trzy pasy ruchu
} else if(cellListsNum == 3) {
street[0] = new Lane(cellsNum, this.begin, this.end, 0, 2, 0);
street[1] = new Lane(cellsNum, this.begin, this.end, 1, 1, 1);
street[2] = new Lane(cellsNum, this.begin, this.end, 2, 0, 2);
if(this.end.getY() < this.begin.getY()) {
for(int j = 0; j < street[1].cellList.length; j++) {
street[0].cellList[j].setX(street[0].cellList[j].getX() - 4);
street[0].cellList[j].setY(street[0].cellList[j].getY() - 4);
street[2].cellList[j].setX(street[2].cellList[j].getX() + 4);
street[2].cellList[j].setY(street[2].cellList[j].getY() + 4);
}
} else {
for(int j = 0; j < street[1].cellList.length; j++) {
street[0].cellList[j].setX(street[0].cellList[j].getX() + 4);
street[0].cellList[j].setY(street[0].cellList[j].getY() + 4);
street[2].cellList[j].setX(street[2].cellList[j].getX() - 4);
street[2].cellList[j].setY(street[2].cellList[j].getY() - 4);
}
}
}
}
E (V _begin, V _end, int _length, int _speedLimit, int _cellListsNum, boolean _oneWay, int cellSize) {
this.begin = _begin;
this.end = _end;
this.weight = _length;
this.length = (int) Math.sqrt((end.getX()-begin.getX()) * (end.getX()-begin.getX()) +
(end.getY()-begin.getY()) * (end.getY()-begin.getY()));
//System.out.println(begin.toString() + " - " + end.toString() + " : " + length);
this.speedLimit = _speedLimit;
this.cellListsNum = _cellListsNum;
this.oneWay = _oneWay;
cellsNum = length / cellSize;
street = new Lane[cellListsNum];
// jeden pas ruchu
if(cellListsNum == 1) {
street[0] = new Lane(cellsNum, this.begin, this.end, 0, 0, 0);
if(!oneWay) {
if(this.end.getY() < this.getBeginY()) {
for(int j = 0; j < street[0].cellList.length; j++) {
street[0].cellList[j].setX(street[0].cellList[j].getX() + 3);
//street[0].cellList[j].setY(street[0].cellList[j].getY() + 3);
}
} else {
for(int j = 0; j < street[0].cellList.length; j++) {
street[0].cellList[j].setX(street[0].cellList[j].getX() - 3);
//street[0].cellList[j].setY(street[0].cellList[j].getY() - 3);
}
}
}
// dwa pasy ruchu
} else if(cellListsNum == 2) {
street[0] = new Lane(cellsNum, this.begin, this.end, 0, 1, 0);
street[1] = new Lane(cellsNum, this.begin, this.end, 1, 0, 1);
if(this.end.getY() < this.begin.getY()) {
for(int j = 0; j < street[0].cellList.length; j++) {
street[0].cellList[j].setX(street[0].cellList[j].getX() + 5);
//street[0].cellList[j].setY(street[0].cellList[j].getY() + 5);
street[1].cellList[j].setX(street[1].cellList[j].getX() + 10);
//street[1].cellList[j].setY(street[1].cellList[j].getY() + 10);
}
} else {
for(int j = 0; j < street[1].cellList.length; j++) {
street[0].cellList[j].setX(street[0].cellList[j].getX() - 5);
//street[0].cellList[j].setY(street[0].cellList[j].getY() - 5);
street[1].cellList[j].setX(street[1].cellList[j].getX() - 10);
//street[1].cellList[j].setY(street[1].cellList[j].getY() - 10);
}
}
// trzy pasy ruchu
} else if(cellListsNum == 3) {
street[0] = new Lane(cellsNum, this.begin, this.end, 0, 2, 0);
street[1] = new Lane(cellsNum, this.begin, this.end, 1, 1, 1);
street[2] = new Lane(cellsNum, this.begin, this.end, 2, 0, 2);
if(this.end.getY() < this.begin.getY()) {
for(int j = 0; j < street[1].cellList.length; j++) {
street[0].cellList[j].setX(street[0].cellList[j].getX() - 4);
street[0].cellList[j].setY(street[0].cellList[j].getY() - 4);
street[2].cellList[j].setX(street[2].cellList[j].getX() + 4);
street[2].cellList[j].setY(street[2].cellList[j].getY() + 4);
}
} else {
for(int j = 0; j < street[1].cellList.length; j++) {
street[0].cellList[j].setX(street[0].cellList[j].getX() + 4);
street[0].cellList[j].setY(street[0].cellList[j].getY() + 4);
street[2].cellList[j].setX(street[2].cellList[j].getX() - 4);
street[2].cellList[j].setY(street[2].cellList[j].getY() - 4);
}
}
}
}
public int getLength() {
return this.length;
}
public int getWeight() {
return this.weight;
}
public String toString() {
return this.begin.toString() + " - " + this.end.toString();
}
public int getBeginX() {
return begin.getX();
}
public int getBeginY() {
return begin.getY();
}
public int getEndX() {
return end.getX();
}
public int getEndY() {
return end.getY();
}
public int getLanesNum() {
return cellListsNum;
}
public V getBegin() {
return begin;
}
public V getEnd() {
return end;
}
public String cellsToString() {
String output = "";
for(int i = 0; i < cellListsNum; i++) {
for(int j = 0; j < cellsNum; j++) {
output += street[i].cellList[j].toString();
}
output += "\n------------------------------\n";
}
return output;
}
}
| jan-klos/ArtificialCity | E.java |
363 | public class Stack
{
static final int MAX = 1000;
int top;
int a[] = new int[MAX];
boolean isEmpty()
{
return (top < 0);
}
Stack()
{
top = -1;
}
boolean push(int x)
{
if (top >= (MAX-1))
{
System.out.println("Stack Overflow");
return false;
}
else
{
a[++top] = x;
System.out.println(x + " pushed into stack");
return true;
}
}
int pop()
{
if (top < 0)
{
System.out.println("Stack Underflow");
return 0;
}
else
{
int x = a[top--];
return x;
}
}
public static void main(String args[])
{
Stack s = new Stack();
s.push(10);
s.push(20);
s.push(30);
System.out.println(s.pop() + " Popped from stack");
}
}
| mahi8221/JAVA-FSD | Stack |
385 | package kumotechmadlab.sffreader;
/**
Common functions used in main program
*/
public class C {
//Convert data[]'s bytes (from index offs to len times) to integer (little endian, unsigned)
public static long b2ui(byte data[], int offs, int len) {
long r = 0;
for(int i = 0; i < len; i++) {
r += Byte.toUnsignedInt(data[i + offs]) << (i * 8);
}
return r;
}
//Convert data[]'s bytes (from index offs to len times) to integer (big endian, unsigned)
public static long b2uibe(byte[] data, int offs, int len) {
long r = 0;
for(int i = 0; i < len; i++) {
r += Byte.toUnsignedInt(data[i + offs]) << ( (len - i - 1) * 8);
}
return r;
}
//Signed 16bit version of b2ui
public static int b2i16(byte data[], int offs) {
int r = (int)b2ui(data, offs, 2);
if(r > 32767) { return 65536 - r; } //Two's complement
return r;
}
//Check data (from index offs) bytes are same as data2, return false if different.
public static boolean compareBytes(byte data[], int offs, byte data2[]) {
for(int i = 0; i < data2.length; i++) {
if(data[i + offs] != data2[i]) { return false; }
}
return true;
}
//Returns true if min <= data <= max
public static boolean in_range(long data, long min, long max) {
if(min <= data && data <= max) {
return true;
}
return false;
}
//Convert uint32 to byte[4] and rewrite byte[] t with it from offs
public static void ui32tob(long d, byte[] t, int offs) {
byte r[] = new byte[4];
t[offs+3] = (byte) (d & 0xff);
t[offs+2] = (byte) ((d >> 8) & 0xff);
t[offs+1] = (byte) ((d >> 16) & 0xff);
t[offs] = (byte) ((d >> 24) & 0xff);
}
//Debug purpose: hexdump -C but without ascii
public static void hd(byte[] data) {
System.out.println("offs || +0 +1 +2 +3 +4 +5 +6 +7 +8 +9 +a +b +c +d +e +f");
for(int i = 0; i < data.length; i++) {
if(i % 16 == 0) {
System.out.printf("%04x || ",i);
}
System.out.printf("%02x ", data[i]);
if(i % 16 == 15) {
System.out.println();
}
}
System.out.println();
}
}
| kumohakasemk9/MUGENSFFReaderLibJava | C.java |
386 |
import javax.net.ssl.*;
import java.io.*;
import java.net.Socket;
import java.security.KeyStore;
import java.security.cert.CertificateFactory;
import java.security.cert.X509Certificate;
import java.util.*;
public class s implements Runnable {
List<Socket> socketList= new ArrayList<Socket>();
List<myFile> FileList= new ArrayList<myFile>();
HashMap<String,X509Certificate> CertificateMap = new HashMap<>();
public static void main(String[] args) {
s manager = new s();
new Thread(manager).start();
Scanner scanner = new Scanner(System.in);
while(true){
System.out.printf("Send> ");
String message = scanner.nextLine();
if(message.equals("") || message.equals("\n")){
continue;
}else{
manager.send(message);
}
}
}
public void send(String message){
for(Socket s:socketList){
PrintWriter output;
try {
output = new PrintWriter(new BufferedOutputStream(s.getOutputStream()),true);
output.println(message);
} catch (IOException e) {
e.printStackTrace();
}
}
}
private static SSLServerSocket getServerSocket(int thePort)
{
SSLServerSocket s=null;
try
{
String key="G:\\mySrvKeystore";
char keyStorePass[]="123456".toCharArray();
char keyPassword[]="123456".toCharArray();
KeyStore ks= KeyStore.getInstance("JKS");
ks.load(new FileInputStream(key),keyStorePass);
KeyManagerFactory kmf= KeyManagerFactory.getInstance("SunX509");
kmf.init(ks,keyPassword);
SSLContext sslContext= SSLContext.getInstance("SSLv3");
sslContext.init(kmf.getKeyManagers(),null,null);
SSLServerSocketFactory factory=sslContext.getServerSocketFactory();
s=(SSLServerSocket)factory.createServerSocket(thePort);
}catch(Exception e)
{
System.out.println(e);
}
return(s);
}
public void run() {
try {
SSLServerSocket sslserversocket = getServerSocket(9991);
while (true) {
SSLSocket client = (SSLSocket)sslserversocket.accept();
socketList.add(client);
new Thread(new SSocket(client,socketList,FileList)).start();
}
} catch (IOException e) {
e.printStackTrace();
}
}
class SSocket implements Runnable {
SSLSocket client;
List<Socket> socketList;
List<myFile> fileList;
public SSocket(SSLSocket client,List<Socket> socketList,List<myFile> fileList) {
this.client = client;
this.socketList = socketList;
this.fileList = fileList;
}
public void run() {
BufferedReader input;
PrintWriter output;
try {
input = new BufferedReader(new InputStreamReader(client.getInputStream()));
output = new PrintWriter(new BufferedOutputStream(client.getOutputStream()), true);
while (true) {
String listMsg = input.readLine();
String type = listMsg.split("sprt")[0];
if (type.equals("EXIT")) {
output.println("server close");
socketList.remove(client);
System.out.println("connection close");
}
//-a fileName
if (type.equals("FILE")) {
//FILE % filename % data
try {
String fileName = listMsg.split("sprt")[1];
String info = listMsg.split("sprt")[2];
File f = StoreFile(fileName, info);
//System.out.println(info);
output.println("Receive " + fileName + "successfully");
myFile mf = new myFile(f);
fileList.add(mf);
//Not necessary. Just for testing
for (myFile file : fileList) {
System.out.println(file.getFileName());
}
} catch (Exception e) {
e.printStackTrace();
}
}
if (type.equals("NORMAL")) {
String info = listMsg.split("sprt")[1];
System.out.println("Receive Normal Message from" + client.getInetAddress() + ":\n" + info);
}
// -f filename
if (type.equals("DOWNLOAD")) {
//DOWNLOAD % filename
String fileName = "H:\\" + listMsg.split("sprt")[1];
System.out.println("Receive DOWNLOAD " + fileName + " command from " + client.getInetAddress() + ":\n");
if (fileList.size() == 0) {
output.println("NO FILE EXISTS !");
} else {
for (myFile mf : fileList) {
//Looking at the directory of a particular file
if (mf.getFileName().equals(fileName)) {
BufferedReader br = new BufferedReader(new FileReader(mf.getFile()));
while (br.ready()) {
output.println(br.readLine());
}
break;
} else {
output.println("No such file or directory");
}
}
}
}
//-f filename -c number
if (type.equals("FC")) {
//FC%fileName%number
}
//-f filename -n name
if (type.equals("FN")) {
//FN%fileName%name
}
//-l -c number
if (type.equals("LC")) {
//LC%fileName%number
String requiredFileName = listMsg.split("sprt")[1];
int requiredCircleNumber = Integer.valueOf(listMsg.split("sprt")[2]);
System.out.println("Receive List+Circle Command from " + client.getInetAddress() + ":\n");
if (fileList.size() == 0) {
output.println("No file exist");
} else {
for (myFile f : fileList) {
if (f.getFileName().equals(requiredFileName) && f.getCircleSize() == requiredCircleNumber) {
output.println(f.getFileName() + f.getHowManyPeopleHaveVouched() + f.getCircleSize());
}
}
// Give a message that the loop finished. If nothing returns at this point the client will know.
output.println("Command execution finished ");
}
}
//-l -n name
if (type.equals("LN")) {
//LC%fileName%Name
}
//-u certificateName
if (type.equals("CER")) {
//CRE%certificateName
String certificateName = listMsg.split("sprt")[1];
System.out.println("Receive CER " + certificateName + " command from " + client.getInetAddress() + ":\n");
// A.cer -> certificate detail
// B.cer -> certificate detail
CertificateMap.put(certificateName,storeCertificate(certificateName));
for(String name : CertificateMap.keySet())
{
System.out.println(name);
}
}
// -v filename certificate
if (type.equals("VOUCH")) {
}
}
} catch (IOException e) {
e.printStackTrace();
}
}
public File StoreFile(String fileName, String info)
{
File f = new File("H:/" + fileName);
try {
FileWriter fw = new FileWriter(f);
PrintWriter pw = new PrintWriter(fw);
pw.println(info);
pw.close();
System.out.println("Receive " + fileName + " from" + client.getInetAddress());
}catch (Exception e){e.printStackTrace();}
return f;
}
}
public X509Certificate storeCertificate(String CerName)
{
try {
File InFile = new File("G:/"+CerName);
File OutFile = new File ("H:/"+CerName);
FileInputStream fis = new FileInputStream(InFile);
FileOutputStream fos = new FileOutputStream(OutFile);
CertificateFactory certificate_factory = CertificateFactory.getInstance("X.509");
X509Certificate certificate = (X509Certificate) certificate_factory.generateCertificate(fis);
fis.close();
//Storing the Certificate locally
byte[] temp = certificate.getEncoded();
fos.write(temp);
fos.close();
return certificate;
}
catch (Exception e)
{
e.printStackTrace();
}
return null;
}
}
class myFile {
ArrayList<String> vouch = new ArrayList<>();
File FileName;
int HowManyPeopleHaveVouched = 0;
int circleSize = 0;
public ArrayList<String> getVouch() {
return vouch;
}
public String getFileName() {
return FileName.toString();
}
public File getFile()
{
return FileName;
}
public int getHowManyPeopleHaveVouched()
{
return HowManyPeopleHaveVouched;
}
public int getCircleSize()
{
return circleSize;
}
public void setVouch(String person) {
vouch.add(person);
}
public void setHowManyPeopleHaveVouched() {
HowManyPeopleHaveVouched ++;
}
public void setCircleSize(int circleSize) {
this.circleSize = circleSize;
}
public myFile(File fileName) {
FileName = fileName;
}
}
| bslqy/CITS3002 | s.java |
387 | JOptionPane.showMessageDialog(null, "No Posts to Show");
SET_TEXT_AREA
ResultSet rs = handler.getComments(postId);
String s = "";
try
{
do
{
s = s + rs.getString("comment_text") + " @" + rs.getString("username") + "\n\n";
}
while (rs.next());
}
catch (Exception e)
{
System.out.println("Comment display error");
}
GET_jLIST
commentList.setText(s);
int userFrom = Login.getUserId();
int index = friendList.getSelectedIndex();
// System.out.println(index);
if (index >= 0 && userFrom >= 0)
{
int userTo = userIds.get(index);
handler.insertIntoFriendRequests(userFrom, userTo);
}
HOME
this.dispose();
Home h = new Home();
h.setLocationRelativeTo(null);
h.setVisible(true);
LOGOUT
Login r = new Login();
// to show the register form r
r.setVisible(true);
// to center the register form
r.setLocationRelativeTo(null);
// to dispose all resources
this.dispose();
FILE CHOOSER
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {
JFileChooser fc=new JFileChooser();
int i1=fc.showOpenDialog(this);
if(i1==JFileChooser.APPROVE_OPTION)
{
File f=fc.getSelectedFile();
filepath=f.getPath();
System.out.println(filepath);
}
}
| ralouekapoor06/social-life | s.java |
390 | import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class SimpleCalculator extends JFrame implements ActionListener {
private JTextField numField1, numField2, resultField;
private JButton addButton, subtractButton, multiplyButton, divideButton, clearButton;
private JLabel title;
public SimpleCalculator() {
setTitle("Simple Calculator");
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setLayout(null);
setSize(320, 500);
setLocationRelativeTo(null);
setResizable(false);
setBackground(Color.YELLOW);
getContentPane().setBackground(Color.DARK_GRAY);
title = new JLabel("Arithmetic Calculator.");
title.setBounds(30, 20, 280, 30);
title.setFont(new Font("Arial", Font.BOLD, 24));
title.setForeground(Color.WHITE);
numField1 = new JTextField();
numField2 = new JTextField();
resultField = new JTextField();
resultField.setEditable(false);
addButton = new JButton("Add");
subtractButton = new JButton("Subtract");
multiplyButton = new JButton("Multiply");
divideButton = new JButton("Divide");
clearButton = new JButton("CE");
numField1.setBounds(20, 120, 100, 25);
numField2.setBounds(20, 150, 100, 25);
resultField.setBounds(90, 60, 150, 25);
addButton.setBounds(20, 200, 90, 30);
subtractButton.setBounds(20, 240, 90, 30);
multiplyButton.setBounds(20, 280, 90, 30);
divideButton.setBounds(20, 320, 90, 30);
clearButton.setBounds(20, 60, 60, 24);
addButton.addActionListener(this);
subtractButton.addActionListener(this);
multiplyButton.addActionListener(this);
divideButton.addActionListener(this);
clearButton.addActionListener(this);
addButton.setFocusable(false);
subtractButton.setFocusable(false);
multiplyButton.setFocusable(false);
divideButton.setFocusable(false);
clearButton.setFocusable(false);
addButton.setBackground(Color.BLACK);
subtractButton.setBackground(Color.BLACK);
multiplyButton.setBackground(Color.BLACK);
divideButton.setBackground(Color.BLACK);
clearButton.setBackground(Color.BLACK);
resultField.setBackground(Color.LIGHT_GRAY);
addButton.setForeground(Color.WHITE);
subtractButton.setForeground(Color.WHITE);
multiplyButton.setForeground(Color.WHITE);
divideButton.setForeground(Color.WHITE);
clearButton.setForeground(Color.WHITE);
add(numField1);
add(numField2);
add(resultField);
add(addButton);
add(subtractButton);
add(multiplyButton);
add(divideButton);
add(title);
add(clearButton);
setVisible(true);
}
@Override
public void actionPerformed(ActionEvent e) {
try {
double num1 = Double.parseDouble(numField1.getText());
double num2 = Double.parseDouble(numField2.getText());
double result = 0.0;
if (e.getSource() == addButton) {
result = num1 + num2;
} else if (e.getSource() == subtractButton) {
result = num1 - num2;
} else if (e.getSource() == multiplyButton) {
result = num1 * num2;
} else if (e.getSource() == divideButton) {
if (num2 == 0) {
JOptionPane.showMessageDialog(this, "Error: Cannot divide by zero!", "Error", JOptionPane.ERROR_MESSAGE);
return;
}
result = num1 / num2;
}
resultField.setText(String.valueOf(result));
} catch (NumberFormatException ex) {
JOptionPane.showMessageDialog(this, "Error: Invalid input. Please enter a valid number.", "Error", JOptionPane.ERROR_MESSAGE);
}
if (e.getSource() == clearButton) {
resultField.setText(null);
numField1.setText(null);
numField2.setText(null);
}
}
public static void main(String[] args) {
new SimpleCalculator();
}
}
| r-vb/OOP | 07.java |
391 | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.Map;
public class ClientServerInteraction {
public static void main(String[] args) {
ServerThread server = new ServerThread();
ClientThread client = new ClientThread(server);
server.start();
client.start();
}
}
class ServerThread extends Thread {
private static final Map<String, String> replies = new HashMap<>();
static {
replies.put("1", "hello");
replies.put("2", "I am fine, thank you!");
// Add more replies here
}
private String request;
public synchronized String getRequest() {
return request;
}
public synchronized void setRequest(String request) {
this.request = request;
}
@Override
public void run() {
while (true) {
synchronized (this) {
try {
wait(); // Wait for the client to notify
} catch (InterruptedException e) {
e.printStackTrace();
}
if (request.equalsIgnoreCase("exit")) {
System.out.println("Server: Client requested to exit.");
break;
}
// Process the request
System.out.println("Server: Received request from client - " + request);
String reply = replies.getOrDefault(request, "Invalid choice.");
System.out.println("Server: Sending reply to client - " + reply);
ClientThread.setReply(reply);
request = null; // Reset the request after processing
notify(); // Notify the client that the response is sent
}
}
}
}
class ClientThread extends Thread {
private static String reply;
private static boolean isRunning = true;
private ServerThread server;
public ClientThread(ServerThread server) {
this.server = server;
}
public static void setReply(String reply) {
ClientThread.reply = reply;
}
public static void stopRunning() {
isRunning = false;
}
@Override
public void run() {
try {
Thread.sleep(1000); // Wait for the server to start
BufferedReader userInput = new BufferedReader(new InputStreamReader(System.in));
while (isRunning) {
System.out.println("\nClient: Choose a message from the options below:");
System.out.println("1. Say hi");
System.out.println("2. Ask how are you");
System.out.println("Type 'exit' to stop the client.");
String choice = userInput.readLine();
if (choice.equalsIgnoreCase("exit")) {
System.out.println("Client: Exiting.");
server.setRequest("exit"); // Notify the server to stop
break;
}
server.setRequest(choice);
synchronized (server) {
server.notify(); // Notify the server to process the request
try {
server.wait(); // Wait for the server to send the response
} catch (InterruptedException e) {
e.printStackTrace();
}
}
System.out.println("Server's Reply: " + reply);
}
} catch (IOException | InterruptedException e) {
e.printStackTrace();
}
}
}
| r-vb/OOP | 08.java |
394 | class A
{
public void display()
{
System.out.println("Welcome");
}
}
class B
{
public void print()
{
System.out.println("to NIIT");
}
}
class C
{
public static void main(String s[])
{
A obj = new A();
obj.display();
B obj2 = new B();
obj2.print();
}
} | Shailendra-Java/Basics-of-java | C.java |
396 | package com.hailei.pojo;
import java.util.List;
//分页查询的JavaBean
public class PageBean<T> {
// 总记录数
private int totalCount;
// 当前页数据
private List<T> rows;
public int getTotalCount() {
return totalCount;
}
public void setTotalCount(int totalCount) {
this.totalCount = totalCount;
}
public List<T> getRows() {
return rows;
}
public void setRows(List<T> rows) {
this.rows = rows;
}
}
| HaiLei-Fly/JavaWeb-brand | src/main/java/com/hailei/pojo/PageBean.java |
401 | class B{
private int x;
private void hra() {
}
private void da() {
}
void print() {
}
public void salarySlip() {
hra();
da();
}
}
public class A {
public static void main(String[] args) {
// TODO Auto-generated method stub
B b = new B();
b.salarySlip();
//b.x =100;
}
}
| amitsrivastava4all/corejavareg | A.java |
402 | public class a
{
public static void main(String[] args)
{
final int a = 1;
while(a<10) {
int b=1;
while(b<10)
{
System.out.println(a*b);
b++;
}
a++;
}
}
}
| shreyash14s/Translator | a.java |
403 | import java.util.*;
public class A
{
public static void main()
{
Scanner sc=new Scanner(System.in);
System.out.print(" $ ");System.out.println(" $");
System.out.print(" $ ");System.out.println(" $");
System.out.print(" $ ");System.out.println(" $");
System.out.print(" $ ");System.out.println(" $");
System.out.print(" $ $ $");System.out.println("$ $ $ ");
System.out.print(" $ ");System.out.println(" $");
System.out.print(" $ ");System.out.println(" $");
System.out.print(" $ ");System.out.println(" $");
System.out.print(" $ ");System.out.println(" $");
}
} | Drix10/BlueJ | A.java |
404 | class A{
public Static void main (String ar[])
{
int x[]=new int{10,20,30};
System.out.println("enter valuew");
for(int i=0;i<x.length.i++)
{
System.out.print(x[i]+"");
}
}
}
| NandaniChandre/My_Practice | .java |
405 | // Inheritance Example
class A { // Parent Class
int a=75;
void m1(){System.out.println("This is A Method");}
}
class B extends A{ // Child Class
int b=100;
void m(){System.out.println("This is B method");}
}
class C{
public static void main(String[] args){
B b=new B(); // child class object
System.out.println(b.a);
b.m1();
System.out.println(b.b);
b.m();
}
}
| Baluyarrabolu/Baluyarrabolu | C.java |
406 |
// Single Inheritance
class A
{
void showA()
{
System.out.println("a class method");
}
}
class B extends A{
void showB()
{
System.out.println("b class method");
}
public static void main(String[] args) {
A ob1 = new A();
ob1.showA();
//ob1.showB();
B ob2 = new B();
ob2.showA();
ob2.showB();
}
}
| gyanarjs/gyanarjs | B.java |
407 | class A
{
public static void public static void main(String args[])
{
System.out.print("jdk installed..!");
}
}
| chandrikabijore/HTML-Vs-Code-Pro | a.java |
408 | class a extends Thread
{
public void run()
{
System.out.println("Number from 1 to 10");
for(int i=1; i<11; i++)
{
System.out.println(i);
}
}
}
class b extends Thread
{
public void run()
{
System.out.println("Numbers from 11 to 20");
for(int i=11; i<21; i++)
{
System.out.println(i);
}
}
public static void main(String args[])
{
a a1= new a();
a1.run();
b b1=new b();
b1.run();
}
} | PriyaPatil248/JAVAPROGRAM_Folder | b.java |
409 | interface A{
void methodA();
}
interface B{
void methodB();
}
interface C extends A,B{
void methodC();
}
class D implements C{
public void methodA(){
System.out.println("Implemetation of methodA");
}
public void methodB(){
System.out.println("Implementation of methodB");
}
public void methodC(){
System.out.println("Implementation of methodC");
}
}
class extdinterface{
public static void main(String[]args){
D obj=new D();
obj.methodA();
obj.methodB();
obj.methodC();
}
} | Mritunjay021/javacodetantra | D.java |
410 | import java.util.Collections;
import java.util.List;
import net.minecraft.server.MinecraftServer;
public class v
extends i
{
public String c()
{
return "testforblocks";
}
public int a()
{
return 2;
}
public String b(m ☃)
{
return "commands.compare.usage";
}
public void a(MinecraftServer ☃, m ☃, String[] ☃)
throws bz
{
if (☃.length < 9) {
throw new cf("commands.compare.usage", new Object[0]);
}
☃.a(n.a.b, 0);
cj ☃ = a(☃, ☃, 0, false);
cj ☃ = a(☃, ☃, 3, false);
cj ☃ = a(☃, ☃, 6, false);
avp ☃ = new avp(☃, ☃);
avp ☃ = new avp(☃, ☃.a(☃.b()));
int ☃ = ☃.c() * ☃.d() * ☃.e();
if (☃ > 524288) {
throw new bz("commands.compare.tooManyBlocks", new Object[] { Integer.valueOf(☃), Integer.valueOf(524288) });
}
if ((☃.b < 0) || (☃.e >= 256) || (☃.b < 0) || (☃.e >= 256)) {
throw new bz("commands.compare.outOfWorld", new Object[0]);
}
aht ☃ = ☃.e();
if ((!☃.a(☃)) || (!☃.a(☃))) {
throw new bz("commands.compare.outOfWorld", new Object[0]);
}
boolean ☃ = false;
if ((☃.length > 9) &&
(☃[9].equals("masked"))) {
☃ = true;
}
☃ = 0;
cj ☃ = new cj(☃.a - ☃.a, ☃.b - ☃.b, ☃.c - ☃.c);
cj.a ☃ = new cj.a();
cj.a ☃ = new cj.a();
for (int ☃ = ☃.c; ☃ <= ☃.f; ☃++) {
for (int ☃ = ☃.b; ☃ <= ☃.e; ☃++) {
for (int ☃ = ☃.a; ☃ <= ☃.d; ☃++)
{
☃.c(☃, ☃, ☃);
☃.c(☃ + ☃.p(), ☃ + ☃.q(), ☃ + ☃.r());
boolean ☃ = false;
arc ☃ = ☃.o(☃);
if ((!☃) || (☃.t() != aju.a))
{
if (☃ == ☃.o(☃))
{
apv ☃ = ☃.r(☃);
apv ☃ = ☃.r(☃);
if ((☃ != null) && (☃ != null))
{
dn ☃ = new dn();
☃.b(☃);
☃.q("x");
☃.q("y");
☃.q("z");
dn ☃ = new dn();
☃.b(☃);
☃.q("x");
☃.q("y");
☃.q("z");
if (!☃.equals(☃)) {
☃ = true;
}
}
else if (☃ != null)
{
☃ = true;
}
}
else
{
☃ = true;
}
☃++;
if (☃) {
throw new bz("commands.compare.failed", new Object[0]);
}
}
}
}
}
☃.a(n.a.b, ☃);
a(☃, this, "commands.compare.success", new Object[] { Integer.valueOf(☃) });
}
public List<String> a(MinecraftServer ☃, m ☃, String[] ☃, cj ☃)
{
if ((☃.length > 0) && (☃.length <= 3)) {
return a(☃, 0, ☃);
}
if ((☃.length > 3) && (☃.length <= 6)) {
return a(☃, 3, ☃);
}
if ((☃.length > 6) && (☃.length <= 9)) {
return a(☃, 6, ☃);
}
if (☃.length == 10) {
return a(☃, new String[] { "masked", "all" });
}
return Collections.emptyList();
}
}
| MCLabyMod/LabyMod-1.9 | v.java |
411 | import java.util.*;class A{boolean c(Set<Integer>u,int z){return!u.contains(z);}Set<Integer>b(Set<Integer>c,int...v){Set<Integer>q=new HashSet<Integer>(c);for(int x:v)q.add(x);return q;}void w(){Set<Integer>U,t,u,v,w,y,z;int a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,X,Z;X=20;Z=38;for(a=1;a<X;a++)for(b=1;b<X;b++)if(b!=a)for(c=1;c<X;c++)if(c!=a&&c!=b&&a+b+c==Z){U=b(new HashSet<Integer>(),a,b,c);for(d=1;d<X;d++)if(c(U,d))for(h=1;h<X;h++)if(h!=d&&c(U,h)&&a+d+h==Z){t=b(U,a,b,c,d,h);for(m=1;m<X;m++)if(c(t,m))for(q=1;q<X;q++)if(q!=m&&c(t,q)&&h+m+q==Z){u=b(t,m,q);for(r=1;r<X;r++)if(c(u,r))for(s=1;s<X;s++)if(s!=r&&c(u,s)&&q+r+s==Z){v=b(u,r,s);for(p=1;p<X;p++)if(c(v,p))for(l=1;l<X;l++)if(l!=p&&c(v,l)&&s+p+l==Z){w=b(v,p,l);for(g=1;g<X;g++)if(c(w,g)&&l+g+c==Z)for(e=1;e<X;e++)if(e!=g&&c(w,e))for(f=1;f<X;f++)if(f!=e&&f!=g&&c(w,f)&&d+e+f+g==Z){y=b(w,g,e,f);for(i=1;i<X;i++)if(c(y,i))for(n=1;n<X;n++)if(n!=i&&c(y,n)&&d+i+n+r==Z&&b+e+i+m==Z){z=b(y,i,n);for(o=1;o<X;o++)if(c(z,o))for(k=1;k<X;k++)if(k!=o&&c(z,k)&&m+n+o+p==Z&&r+o+k+g==Z&&b+f+k+p==Z)for(j=1;j<X;j++)if(c(z,j)&&j!=o&&j!=k&&a+e+j+o+s==Z&&c+f+j+n+q==Z&&h+i+j+k+l==Z){System.out.printf("%6d%4d%4d\n\n%4d%4d%4d%4d\n\n%2d%4d%4d%4d%4d\n\n%4d%4d%4d%4d\n\n%6d%4d%4d\n\n",a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s);return;}}}}}}}}}public static void main(String[]a){(new A()).w();}}
| ProgrammerDan/aristotle-number | A.java |
413 |
class A
{
String s ="RIYA";
int a =2;
float b=9.6f;
double e=7.89;
}
class B
{
public static void main(String args[])
{
A ob = new A();
System.out.println("Your Name :"+ob.s);
System.out.println("Your Entered float value :"+ob.b);
System.out.println("Your Entered double value :"+ob.e);
}
} | riyaagrahari/JAVA_Basic-PROGRAMS | B.java |
414 | import java.util.Date;
import java.awt.*;
public class a {
public static void main(String[] args){
Date now=new Date();
now.getTime();
System.out.println(now);
Point nq=new Point(1,2);
System.out.println(nq);
}
}
| Harpreetkkk/HACKTOBERFEST | a.java |
415 | class A {
public static void main(String[] args) {
System.out.println("Hello, World");
System.out.println(" Hi i was testing that a java file name can be a .java file");
}
}
| Ant2965/100Days_Challenge | .java |
416 | final class A
{
int x,y;
int c= x+y;
System.out.println(c);
}
class B extends A
{
int y=2*(x+y);
System.out.println(y);
}
class C
{
public static void main(String[] arr)
{
B w = new B(4,5);
}
} | samuelvinay91/JavaPracticeCoding | C.java |
417 | public class f
{
public static boolean a(char ☃)
{
return (☃ != '§') && (☃ >= ' ') && (☃ != '');
}
public static final char[] a = { '/', '\n', '\r', '\t', '\000', '\f', '`', '?', '*', '\\', '<', '>', '|', '"', ':' };
public static String a(String ☃)
{
StringBuilder ☃ = new StringBuilder();
for (char ☃ : ☃.toCharArray()) {
if (a(☃)) {
☃.append(☃);
}
}
return ☃.toString();
}
}
| Tominous/LabyMod-1.8 | f.java |
418 | package interfaceDemo;
/*
* Author Anish
* Visit the channel http://youtube.com/zarigatongy
*/
public interface A {
void sayHello();
default void dontSayHello() {
System.out.println("Hello Interface Demo");
}
}
| anishnath/java8_interface_example | A.java |
419 | package singleinheritance;
class Parent{
void bike ()
{
System.out.println("Hero");
}
}
class chield extends Parent{
void cycle () {
System.out.println("honda");}
}
public class a {
public static void main(String[]args) {
chield c=new chield();
c.cycle();
c.bike();
}
} | RishabhAgarwal05/RWI027 | a.java |
420 | class B{
A obj;
B(A obj){
this.obj=obj;
}
void display(){
System.out.println(obj.data);
}
}
class A{
int data=10;
A(){
B b=new B(this);
b.display();
}
public static void main(String args[]){
A a=new A();
}
} | thejaswi428/Thejaswi | B.java |
421 | interface printable
{
void print();
}
class A implements printable
{
public void print()
{
System.out.println("Hello");
public statsic void main(String[] args)
{
A obj = new A();
obj.print();
}
}
}
| AdarshPawar29/CSE310_JavaPrograms | A.java |
422 | public class A{
public static void main (String[]args){
double num1 = 5.5;
double num2 = 10.5;
double num3 = 15.5;
double Average = (num1+num2+num3)/2.0;
System.out.println(Average);
}
} | gayathrigopi2003/Java-program-file | A.java |
423 | public class A
{
public static void main(String args[])
{
System.out.println("Hello cjc");
}
} | Harshawk13/159Demo | A.java |
424 | strictfp class A{
// IEEE Norms 754
public static strictfp void main(String[] args) {
// Data Types
// Value Type
int x= 100;
byte a = 10;
short b = 1;
long e = 1000;
float w = (float)1000.2;
float w2 = 100.2f;
double q = 1000.22666;
char t = 'A'; // 2 Byte UNICODE
boolean isAtt = true;
// Reference Type / Address
String name = "Amit Srivastava";
}
} | brainmentorspvtltd/RKGIT-JAVA | A.java |
425 | class A{
int data = 50;
static int m = 100;
public static void main(String[] args) {
A a1 = new A();
int n = 90;
System.out.println("Local variable ="+n);
System.out.println("Instance variable ="+a1.data);
System.out.println("Static variable ="+m);
}
} | harshitsingh09/JAVA | A.java |
426 | public class a
{
int i=5;
public class b
{
void play()
{
System.out.println(i);
}
}
public static void main(String args[])
{
a.o=new a();
a.b.p=new b();
p.play();
}
} | Gugaprasad29/wtc2023-2024 | a.java |
427 | package eng_software_git;
public class A {
private int D1;
private float D2;
public void MD1() {
System.out.print("MD1");
}
public void MD2() {
System.out.print("MD2");
}
public void MD3() {
System.out.print("MD3");
public void MD4() {
System.out.print("MD4");
}
}
| BoanergesJunior/projeto_boanerges_junior | D.java |
428 | import java.util.*;
public class A
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
int x,y;
for(x=1;x<=5;x++)
{
for(y=5;y>=x;y--)
{
if (y%2==0)
{
System.out.print("B");
}
else
{
System.out.print("A");
}
}
System.out.println();
}
}
} | prakhe/basic-java-codes | A.java |
429 | class A extends Thread
{
public void run()
{
for(int i=0;i<5;i++)
{
System.out.println("From Thread A : "+i);
}
System.out.println("Exiting from A");
}
}
class B extends Thread
{
public void run()
{
for(int i=1;i<5;i++)
{
System.out.println("From Thread B : "+i);
}
System.out.println("Exiting from B");
}
}
class ThreadEx
{
public static void main(String args[])
{
new A().start();
new B().start();
}
}
| amitkvmz/JavaSE | A.java |
430 | //class hierarchy
class Hier{
Hier(){
System.out.println("hi");
}
}
class A extends Hier{
A(){
System.out.println("this is java");
}
}
class B extends A{
B(){
System.out.println("programming");
}
}
class C extends B{
C(){
System.out.println("SOEX");
}
}
class CallingConstructor{
public static void main(String args[]){
C obj=new C();
}
} | Nidhisikarwar/Java | A.java |
431 | import java.util.Scanner;
public class a {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
System.out.println(a + b);
System.out.println(a - b);
System.out.println(a * b);
double x = a * 1.0/b;
System.out.println(x);
}
}
| kienpro-dev/online-judge | a.java |
432 | class a {
public static void main(String[]args){
System.out.print("hi");
System.out.print("hi");
}
}
| Gokulviper/basework | a.java |
433 | package Demo1;
public class a {
public static void main(String[] args) {
int dividend = 25, divisor = 4;
int quotient = dividend / divisor;
int remainder = dividend % divisor;
System.out.println("Quotient = " + quotient);
System.out.println("Remainder = " + remainder);
}
} | Aryann777/Aa | a.java |
434 | public class a{
public static void main(String args[]){
String s = "Radar";
String rs = "";
int l = s.length();
for(int i = (l-1); i >= 0; --i){
rs = rs + s.charAt(i);
}
if(s.toLowerCase().equals(rs.toLowerCase())){
System.out.println("The String is a palindrome.");
}
else {
System.out.println("The String is not a palindrome.");
}
}
} | Truthandlies401107/Java | a.java |
435 | import java.util.*;
public class A{
public static int substraction(int a, int b){
int s;
if(a>b){
s=a-b;
System.out.println(s);
}else{
s=b-a;
System.out.println(s);
}
return 0;
}
public static int addition(int a,int b){
int s;
s=a+b;
System.out.println(s);
return 0;
}
public static int division(int a, int b){
int s;
if(a>b){
s=a/b;
System.out.println(s);
}else{
s=b/a;
System.out.println(s);
}
return 0;
}
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
System.out.print("enter 1st number:");
int a = sc.nextInt();
System.out.print("enter 2nd number:");
int b = sc.nextInt();
System.out.println("enter \n 1 for substraction \n 2 for addition \n 3 for division");
System.out.print("Enter Your choice:");
int button=sc.nextInt();
if(button==1){
substraction(a,b);
}else if(button==2){
addition(a,b);
}else if(button==3){
division(a,b);
}else{
System.out.println("invalid input");
}
}
}
| alekhakumarswain/Java | A.java |
436 | package simple;
import java.util.Scanner;
public class A {
public static void main(String[] args) {
Scanner a=new Scanner(System.in);
int boy=a.nextInt();
int girl=a.nextInt();
System.out.println(" ");
if(boy >10 && girl<45) {
System.out.println("you can enter");
}
else{
System.out.println("you can not enter");
}
a.close();
}
}
| vikram327/lala | A.java |
437 | import java.awt.Graphics;
import java.awt.Color;
public class g {
public static int a;
public static int bb;
public static int c;
private static String d;
private static byte[] e;
private static byte[] f;
public static String[] g;
public static int h;
public static int i;
public static boolean j;
public static void a(Graphics paramGraphics, int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5, int paramInt6, int paramInt7, c paramc) {
int k = 0;
if (d != null)
k = paramc.a(d);
int n = bb;
do {
n--;
int m = paramc.a(g[e[n]]);
if (m > k)
k = m;
}
while (n > 0);
int i1 = bb;
if (d != null)
i1++;
int i2 = i1 * paramInt7 + 2 + 4 - 6;
int i3 = k + 4 + 4;
if (i3 < paramInt3)
i3 = paramInt3;
int i4 = 0;
int i5 = 0;
switch (paramInt4) {
case 4:
i4 = 0;
break;
case 1:
i4 = paramInt1 - i3 >> 1;
break;
case 8:
i4 = paramInt1 - i3;
}
switch (paramInt5) {
case 16:
i5 = 0;
break;
case 2:
i5 = paramInt2 - i2 >> 1;
break;
case 32:
i5 = paramInt2 - i2;
}
if (h > 0) {
paramGraphics.setColor(new Color(6488245));
paramGraphics.fillRect(i4, i5, i3, i2);
paramGraphics.setColor(new Color(16671843));
paramGraphics.fillRect(i4 + 2, i5 + 2, i3 - 4, i2 - 4);
int i6 = i5 + 2 + 2;
int i7 = i4 + 2 + 2;
switch (paramInt6) {
case 8:
break;
case 1:
i7 = i4 + (i3 >> 1);
}
int i8 = paramInt7 - (paramInt7 >> 1);
if (d != null) {
paramGraphics.setColor(new Color(6724044));
paramGraphics.fillRect(i4 + 2, i6 - 2, i3 - 4, i8 + 2);
paramc.a(paramGraphics, d, i7, i6 - 7, paramInt6);
i6 += i8;
}
for (int i9 = 0; i9 < bb; i9++) {
if (i9 == c) {
paramGraphics.setColor(new Color(16776960));
paramGraphics.fillRect(i4 + 2, i6, i3 - 4, paramInt7);
}
if (a(paramGraphics, i9, i7, i6))
i7 += 18;
paramc.a(paramGraphics, g[e[i9]], i7, i6 + (paramInt7 >> 1), paramInt6 | 0x2);
i6 += paramInt7;
if ((a == 14) || (a == 60) || (a == 92) || (a == 82))
i7 -= 18;
}
h -= 1;
}
int i6 = i5 + 2 + 2 + c * paramInt7;
int i7 = i4 + 2 + 2;
if (d != null) {
int i8 = paramInt7 - (paramInt7 >> 1);
i6 += i8;
}
int i8 = i3 - 4;
int i9 = 0;
int i10 = 0;
int i11 = 0;
i9 = i8 / 24;
i10 = i9 * 24;
if (i10 < i8)
i11 = i8 - i10;
int i12 = 0;
int i13 = 0;
for (i13 = 0; i13 < 24; i13++) {
a(paramGraphics, i13, true);
paramGraphics.fillRect(i4 + 2 + i12, i6, i9, paramInt7);
a(paramGraphics, i13, false);
paramGraphics.fillRect(i4 + 2 + i12, i6 + 1, i9, paramInt7 - 2);
i12 += i9;
}
if (i11 != 0) {
a(paramGraphics, 24, true);
paramGraphics.fillRect(i4 + 2 + i12, i6, i11, paramInt7);
a(paramGraphics, 24, false);
paramGraphics.fillRect(i4 + 2 + i12, i6 + 1, i11, paramInt7 - 2);
}
if (a(paramGraphics, c, i7, i6))
i7 += 18;
paramc.a(paramGraphics, g[e[c]], i7, i6 + (paramInt7 >> 1), paramInt6 | 0x2);
if (!j) {
i += 1;
if (i > 24)
j = true;
}
else {
i -= 1;
if (i < 0)
j = false;
}
}
public static void a(Graphics paramGraphics, int paramInt, boolean paramBoolean) {
int i1 = Math.abs(i - paramInt);
if (paramBoolean)
i1 = 24 - i1;
int i2 = 256;
int i3 = (24 - i1) * i2 / 24;
int k = i3 * 255 + (i2 - i3) * 67;
int m = i3 * 255 + (i2 - i3) * 137;
int n = i3 * 0 + (i2 - i3) * 67;
k /= i2;
m /= i2;
n /= i2;
if (paramBoolean) {
k -= 32;
m -= 32;
n -= 32;
}
k = k < 0 ? 0 : k;
m = m < 0 ? 0 : m;
n = n < 0 ? 0 : n;
paramGraphics.setColor(new Color(k, m, n));
}
public static boolean a(Graphics paramGraphics, int paramInt1, int paramInt2, int paramInt3) {
if ((a == 14) || (a == 92)) {
if ((paramInt1 == 0) || (b.af[(paramInt1 - 1)] != false))
paramGraphics.drawImage(b.a8[(43 + paramInt1)], paramInt2, paramInt3, null); // Anchor: 20
else
paramGraphics.drawImage(b.a8[51], paramInt2, paramInt3, null); // Anchor: 20
paramInt2 += 18;
return true;
}
if ((a == 60) || (a == 82)) {
if ((paramInt1 == 0) || (b.af[(paramInt1 - 1)] != false))
paramGraphics.drawImage(b.a8[(47 + paramInt1)], paramInt2, paramInt3, null); // Anchor: 20
else
paramGraphics.drawImage(b.a8[52], paramInt2, paramInt3, null); // Anchor: 20
paramInt2 += 18;
return true;
}
return false;
}
public static void a(int paramInt) {
b.hh = false;
h = 2;
a = paramInt << 1;
a();
}
public static void b(int paramInt) {
switch (paramInt) {
case 0:
c -= 1;
if (c < 0)
c = bb - 1;
break;
case 1:
c += 1;
if (c == bb)
c = 0;
break;
case 2:
int k = e[c] << 1;
switch (f[k]) {
case 3:
a(0);
int m = f[(k + 1)];
b.a(m);
break;
default:
if (b.o != 0);
b.hh = false;
a = k;
a();
}
break;
}
h = 2;
}
private static void a(boolean paramBoolean) {
int k = f[(a + 1)];
if (!paramBoolean)
switch (f[a]) {
case 0:
d = null;
break;
case 1:
d = g[(a >> 1)];
break;
case 2:
a += 2;
d = g[(a >> 1)];
}
a += 2;
while ((a < f.length) && (k > 0)) {
int m = f[a];
switch (m) {
case 0:
case 1:
case 2:
if (!paramBoolean) {
e[bb] = ((byte)(a >> 1));
bb += 1;
}
k--;
a(true);
break;
case 3:
if (!paramBoolean) {
e[bb] = ((byte)(a >> 1));
bb += 1;
}
k--;
default:
a += 2;
}
}
}
public static void a() {
h = 2;
bb = 0;
c = 0;
a(false);
}
public static void a(byte[] paramArrayOfByte) {
f = paramArrayOfByte;
e = new byte[6];
a(false);
}
}
/* Location: /Users/ilya/4fun/Biplanes/Bluetooth_Biplanes.jar
* Qualified Name: g
* JD-Core Version: 0.6.2
*/ | TheRealPinkie/BT_Biplanes_src | g.java |
438 | class C
{ int a;
A(int a)
{ this.a=a;}
void swap(A o)
{
int temp=this.a;
this.a=o.a;
o.a=temp;
}
public static void main(String args[])
{
A obj1=new A(5);
A obj2=new A(7);
System.out.println("obj1 has integer value->"+obj1.a);
System.out.println("obj2 has integer value->"+obj2.a);
obj1.swap(obj2);//this should swap using call by reference
System.out.println("obj1 has integer value->"+obj1.a);
System.out.println("obj2 has integer value->"+obj2.a);
}
} | sujanajn10/lockdown-onlinecoding | C.java |
440 | /**
* class Conways Game of Life
*
* Toby Steiner
* 14/05/2024
*/
import java.util.Scanner;
import java.util.Arrays;
public class a{
static int readNum(String msg){
//this function ask the player for a number and asks again if it is not a number then return the number
Scanner keyboard = new Scanner(System.in);
System.out.println(msg);
while(!keyboard.hasNextInt()){
keyboard.nextLine();
System.out.println("input error \n" + msg);
}
return(keyboard.nextInt());
}
static int readFirstLetter(String msg){
//this code will read the inputed letter and convert it to an int only if the input in 1 charactor long and a lower case letter from a-t
Scanner keyboard = new Scanner(System.in);
boolean keepGoing = true;
int inptInt = 0;
while (keepGoing){
System.out.println(msg);
String a = keyboard.nextLine();
if(a.length() == 1){
inptInt = a.charAt(0);
inptInt = inptInt-'a';
System.out.println(inptInt);
if(inptInt >= 0 && inptInt <= 25){
keepGoing = false;
}else{
System.out.println("I need a letter");
}
}
}
return inptInt;
}
static void setBoard(int[][] board, int x, int y){
//sets whole board to 0
for (int i = 0; i < y; i++){
for (int j = 0; j < x; j++){
board[i][j] = 0;
}
}
}
static void renderBoard(int[][] board, int x, int y){
//this function prints the current board state
//clear screen and bring x axis
System.out.print('\u000c');
System.out.print(" A B C D E F G H I J K L M N O P Q R S T");
System.out.print("\n");
for (int i = 0; i < x; i++){
//pring y axis
if(i < 9){
System.out.print(" ");
System.out.print(i + 1);
}else{
System.out.print(i + 1);
}
System.out.print("| ");
for (int j = 0; j < y; j++){
//brind board wit"." if value is 0 and "■" if not
if(board[i][j] == 0){
System.out.print(". ");
}else{
System.out.print("■ ");
}
}
System.out.print("|" + (i + 1));
System.out.println("");
}
System.out.println(" A B C D E F G H I J K L M N O P Q R S T");
}
static boolean startQuestion(){
//this function asks player if they want to start the imulation
boolean start = false;
boolean keepAsking = true;
int S = 0;
while(keepAsking){
S = readFirstLetter("Do you want to start the simulation? \n(enter 'y' for yes or 'n' for no)");
if (S == 24 || S == 13){
keepAsking = false;
}
}
if (S == 24){
start = true;
return start;
}else{
return start;
}
}
static void clearQuestion(int[][] board, int x, int y){
//this function asks player if they want to clear the board after a turn
boolean keepAsking = true;
int S = 0;
while(keepAsking){
S = readFirstLetter("Do you want to clear the board? \n(enter 'y' for yes or 'n' for no)");
if (S == 24 || S == 13){
keepAsking = false;
}
}
if (S == 24){
setBoard(board, x, y);
renderBoard(board, x, y);
}
}
static void changeSquare(int[][] board){
//this function asks the x and y coordinates the player wants to change and changes that part of the 2d array
Scanner keyboard = new Scanner(System.in);
System.out.println(" ");
int placeX = readFirstLetter("In what x axis do you want to place the tile? \nput your answer as a lower case letter \n(note, you can only place tiles on white squares)");
int placeY = -1;
while(placeY < 0 || placeY > 20){
placeY = readNum("In what y axis do you want to place the tile? \nput your answer as an int from 1 to 20\n(note, you can only place tiles on white squares)");
}
placeY = placeY - 1;
System.out.println(placeY);
if(board[placeY][placeX] == 0){
board[placeY][placeX] = 1;
}else if(board[placeY][placeX] == 1){
board[placeY][placeX] = 0;
}
}
static void turn(int YLength, int XLength, int[][] board){
//this function checks the surrounding squares for all squares on the board then changes them depending on the 4 rules.
int[][] newboard = new int [YLength + 2][XLength + 2];
int turns = -1;
while(turns < 0 || turns > 100){
turns = readNum("How many numbers of turns do you want to advance? answer with an interger.");
}
int ajSquares = 0;
int[][] logicBoard = new int [YLength + 2][XLength + 2];
for (int l = 0; l < turns; l++){
for (int i = 0; i < 20; i++){
for (int j = 0; j < 20; j++){
logicBoard[i+1][j+1] = board[i][j];
}
}
for (int x = 1; x < YLength + 1; x++){
for (int y = 1; y < XLength + 1; y++){
for (int s = -1; s <= 1; s++){
for (int c = -1; c <= 1; c++){
if (logicBoard[x+c][y+s] != 0 && !(c == 0 && s == 0)){
ajSquares ++;
System.out.println(ajSquares);
}
}
}
newboard[x][y] = ajSquares;
ajSquares = 0;
}
}
for (int i = 0; i < 20; i++){
for (int j = 0; j < 20; j++){
board[i][j] = newboard[i+1][j+1];
}
}
for (int i = 0; i < 20; i++){
for (int j = 0; j < 20; j++){
if(board[i][j] < 2){
board[i][j] = 0;
}
if(board[i][j] > 3){
board[i][j] = 0;
}
if(board[i][j] == 3){
board[i][j] = 1;
}
if(logicBoard[i+1][j+1] == 1){
if(board[i][j] == 2 || board[i][j] == 3){
board[i][j] = 1;
}
}else if(board[i][j] == 2){
board[i][j] = 0;
}
}
}
renderBoard(board, XLength, YLength);
try {
Thread.sleep(1 * 100);
} catch (InterruptedException ie) {
Thread.currentThread().interrupt();
}
}
}
public static void main(String[] args){
//variables that will be used throughout the programme
int XLength = 20;
int YLength = 20;
int[][] board = new int [YLength][XLength];
boolean keepGoing = true;
//set and render board
setBoard(board, XLength, YLength);
renderBoard(board, XLength, YLength);
System.out.println("\nWelcome to Conways Game of Life! \n---------------------------------\n \nThis is a cellular automation game. \nMeaning that you choose starting conditions and\nthe simulation runs from a set of predetermined rules;\ndependant on the surrounding cells.\n \nIn the grid above you will choose what cells are\nalive or not by inputting their x and y coordinates.\nTo input a number or letter the program will first prompt you,\nthen you can input a letter or number depending on the question.\n --------------------------------------------------------------\n \nHere are the four rules:\n Rule 1 Each cell with one or no neighbors dies as if by solitude.\n Rule 2 Each cell with four or more neighbors dies as if by overpopulation.\n Rule 3 Each cell with two or three neighbors survives.\n Rule 4 Each unpopulated cell with three neighbors becomes populated");
//loop to keep programme running
while(keepGoing){
changeSquare(board);
renderBoard(board, XLength, YLength);
boolean start = startQuestion();
//if they want to start a turn
if(start){
renderBoard(board, XLength, YLength);
turn(YLength, XLength, board);
clearQuestion(board, XLength, YLength);
}
}
}
} | Steinto/Conways-Game-of-Life | a.java |
441 | package basic1;
public class A {
public static void main(String[] args) {
System.out.println("Inside main method ...");
}
}
class B
{
class D{
class E{
}
}
}
class C{
}
| dameeta/Gitanjali-Java | A.java |
442 | import java.util.List;
import java.util.Map;
public abstract interface l
{
public abstract int a(m paramm, String paramString);
public abstract List<String> a(m paramm, String paramString, cj paramcj);
public abstract List<k> a(m paramm);
public abstract Map<String, k> a();
}
| Tominous/LabyMod-1.8 | l.java |
443 | public class A extends B{
float bonus = 10000;
public static void main(String[] args) {
A a = new A();
System.out.println(a.salary);
System.out.println(a.bonus);
}
}
| Viveksahare/RWI843 | A.java |
444 | import com.google.common.collect.Lists;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import net.minecraft.server.MinecraftServer;
public class u
extends i
{
public String c()
{
return "clone";
}
public int a()
{
return 2;
}
public String b(m ☃)
{
return "commands.clone.usage";
}
public void a(MinecraftServer ☃, m ☃, String[] ☃)
throws bz
{
if (☃.length < 9) {
throw new cf("commands.clone.usage", new Object[0]);
}
☃.a(n.a.b, 0);
cj ☃ = a(☃, ☃, 0, false);
cj ☃ = a(☃, ☃, 3, false);
cj ☃ = a(☃, ☃, 6, false);
avp ☃ = new avp(☃, ☃);
avp ☃ = new avp(☃, ☃.a(☃.b()));
int ☃ = ☃.c() * ☃.d() * ☃.e();
if (☃ > 32768) {
throw new bz("commands.clone.tooManyBlocks", new Object[] { Integer.valueOf(☃), Integer.valueOf(32768) });
}
boolean ☃ = false;
ajt ☃ = null;
int ☃ = -1;
if (((☃.length < 11) || ((!☃[10].equals("force")) && (!☃[10].equals("move")))) && (☃.a(☃))) {
throw new bz("commands.clone.noOverlap", new Object[0]);
}
if ((☃.length >= 11) && (☃[10].equals("move"))) {
☃ = true;
}
if ((☃.b < 0) || (☃.e >= 256) || (☃.b < 0) || (☃.e >= 256)) {
throw new bz("commands.clone.outOfWorld", new Object[0]);
}
aht ☃ = ☃.e();
if ((!☃.a(☃)) || (!☃.a(☃))) {
throw new bz("commands.clone.outOfWorld", new Object[0]);
}
boolean ☃ = false;
if (☃.length >= 10) {
if (☃[9].equals("masked"))
{
☃ = true;
}
else if (☃[9].equals("filtered"))
{
if (☃.length >= 12) {
☃ = b(☃, ☃[11]);
} else {
throw new cf("commands.clone.usage", new Object[0]);
}
if (☃.length >= 13) {
☃ = a(☃[12], 0, 15);
}
}
}
List<u.a> ☃ = Lists.newArrayList();
List<u.a> ☃ = Lists.newArrayList();
List<u.a> ☃ = Lists.newArrayList();
LinkedList<cj> ☃ = Lists.newLinkedList();
cj ☃ = new cj(☃.a - ☃.a, ☃.b - ☃.b, ☃.c - ☃.c);
for (int ☃ = ☃.c; ☃ <= ☃.f; ☃++) {
for (int ☃ = ☃.b; ☃ <= ☃.e; ☃++) {
for (int ☃ = ☃.a; ☃ <= ☃.d; ☃++)
{
cj ☃ = new cj(☃, ☃, ☃);
cj ☃ = ☃.a(☃);
arc ☃ = ☃.o(☃);
if ((!☃) || (☃.t() != aju.a)) {
if (☃ != null)
{
if (☃.t() == ☃) {
if ((☃ >= 0) && (☃.t().e(☃) != ☃)) {}
}
}
else
{
apv ☃ = ☃.r(☃);
if (☃ != null)
{
dn ☃ = new dn();
☃.b(☃);
☃.add(new u.a(☃, ☃, ☃));
☃.addLast(☃);
}
else if ((☃.b()) || (☃.h()))
{
☃.add(new u.a(☃, ☃, null));
☃.addLast(☃);
}
else
{
☃.add(new u.a(☃, ☃, null));
☃.addFirst(☃);
}
}
}
}
}
}
if (☃)
{
for (cj ☃ : ☃)
{
apv ☃ = ☃.r(☃);
if ((☃ instanceof qg)) {
((qg)☃).l();
}
☃.a(☃, aju.cv.u(), 2);
}
for (cj ☃ : ☃) {
☃.a(☃, aju.a.u(), 3);
}
}
List<u.a> ☃ = Lists.newArrayList();
☃.addAll(☃);
☃.addAll(☃);
☃.addAll(☃);
List<u.a> ☃ = Lists.reverse(☃);
for (u.a ☃ : ☃)
{
apv ☃ = ☃.r(☃.a);
if ((☃ instanceof qg)) {
((qg)☃).l();
}
☃.a(☃.a, aju.cv.u(), 2);
}
☃ = 0;
for (u.a ☃ : ☃) {
if (☃.a(☃.a, ☃.b, 2)) {
☃++;
}
}
for (u.a ☃ : ☃)
{
apv ☃ = ☃.r(☃.a);
if ((☃.c != null) && (☃ != null))
{
☃.c.a("x", ☃.a.p());
☃.c.a("y", ☃.a.q());
☃.c.a("z", ☃.a.r());
☃.a(☃.c);
☃.v_();
}
☃.a(☃.a, ☃.b, 2);
}
for (u.a ☃ : ☃) {
☃.c(☃.a, ☃.b.t());
}
List<aie> ☃ = ☃.a(☃, false);
if (☃ != null) {
for (aie ☃ : ☃) {
if (☃.b(☃.a))
{
cj ☃ = ☃.a.a(☃);
☃.b(☃, ☃.a(), (int)(☃.b - ☃.T().e()), ☃.c);
}
}
}
if (☃ <= 0) {
throw new bz("commands.clone.failed", new Object[0]);
}
☃.a(n.a.b, ☃);
a(☃, this, "commands.clone.success", new Object[] { Integer.valueOf(☃) });
}
public List<String> a(MinecraftServer ☃, m ☃, String[] ☃, cj ☃)
{
if ((☃.length > 0) && (☃.length <= 3)) {
return a(☃, 0, ☃);
}
if ((☃.length > 3) && (☃.length <= 6)) {
return a(☃, 3, ☃);
}
if ((☃.length > 6) && (☃.length <= 9)) {
return a(☃, 6, ☃);
}
if (☃.length == 10) {
return a(☃, new String[] { "replace", "masked", "filtered" });
}
if (☃.length == 11) {
return a(☃, new String[] { "normal", "force", "move" });
}
if ((☃.length == 12) && ("filtered".equals(☃[9]))) {
return a(☃, ajt.h.c());
}
return Collections.emptyList();
}
static class a
{
public final cj a;
public final arc b;
public final dn c;
public a(cj ☃, arc ☃, dn ☃)
{
this.a = ☃;
this.b = ☃;
this.c = ☃;
}
}
}
| MCLabyMod/LabyMod-1.9 | u.java |
445 | package DSA;
import java.util.Stack;
public class A {
public String infixToPrefix(String s) {
DSA1 o = new DSA1();
String prefix = "";
Stack<Character> st = new Stack<Character>();
char ch[] = s.toCharArray();
for (char c : ch) {
if (c != '+' && c != '-' && c != '*' && c != '/' && c != '(' && c != ')') {
prefix = c+prefix ;
} else if (c == '(') {
st.push(c);
} else if (c == ')') {
while (!st.isEmpty()) {
char t = st.pop();
if (t != '(') {
prefix = t+prefix ;
} else {
break;
//it is a break statement
}
}
// it is a if-else statement
} else if (c == '+' || c == '-' || c == '*' || c == '/') {
if (st.isEmpty()) {
st.push(c);
}
else {
while (!st.isEmpty()) {
char t = st.pop();
if (t == '(') {
st.push(t);
break;
}
else if (c == '+' || c == '-' || c == '*' || c == '/') {
if (o.getPriority(t) < o.getPriority(c)){
st.push(t);
break;
}
else{
prefix = t+prefix;
}
}
}
st.push(c);
}
}
}
while (!st.isEmpty()){
prefix = st.pop()+prefix;
}
return (prefix);
}
//hello
}
// bye bye programming
| Saikatssd/Learn-to-Code | A.java |