blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
4
410
content_id
stringlengths
40
40
detected_licenses
listlengths
0
51
license_type
stringclasses
2 values
repo_name
stringlengths
5
132
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
80
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
5.85k
689M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
131 values
src_encoding
stringclasses
34 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
3
9.45M
extension
stringclasses
32 values
content
stringlengths
3
9.45M
authors
listlengths
1
1
author_id
stringlengths
0
313
2c43d3ad76d9fee9c1d315d811f453d70a73ae2b
cd7c4f532c0ff704abca2520fbb9eca365b98231
/test/src/main/java/com/example/interview/basics/Hacker3.java
4dff573b42160450c9fbfb409a389d324325fbd8
[]
no_license
get4gopim/java8-learning
d99ecf398a0079211e0fe98ba5f9dcb787dc5a04
b18d1a6dcf21967ac7f2bf93a76341948631d9eb
refs/heads/master
2021-08-30T19:27:28.394199
2017-12-19T06:00:32
2017-12-19T06:00:32
109,494,602
0
0
null
null
null
null
UTF-8
Java
false
false
8,559
java
package com.example.interview.basics; import java.io.IOException; import java.text.ParseException; import java.time.LocalDate; import java.time.format.DateTimeFormatter; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.HashMap; import java.util.InputMismatchException; import java.util.List; import java.util.Locale; import java.util.Map; import java.util.Scanner; import java.util.Set; import java.util.stream.Collectors; public class Hacker3 { public Hacker3() { // TODO Auto-generated constructor stub } public static void main(String[] args) { int[] arr = {10, -2, 6}; System.out.println(Arrays.toString(arr)); Arrays.sort(arr); System.out.println(Arrays.toString(arr)); List<Integer> list = Arrays.stream(arr).boxed().collect(Collectors.toList()); Integer[] num = list.toArray(new Integer[list.size()]); Collections.sort(list, Collections.reverseOrder()); } static long getWays(long goal, long[] coins){ long[] solutionsTable = new long[(int)goal+1]; solutionsTable[0] = (long)1; int step = 0; for (int i = 0; i < coins.length; i++) { for (int j = (int)coins[i]; j <= goal; j++) { int count = j - (int) coins[i]; solutionsTable[j] += solutionsTable[count]; System.out.println("---------------" + " step " + step + " ----------------"); System.out.println("ultimate goal: " + goal); System.out.println("coins available: " + Arrays.toString(coins)); System.out.println("current coin: " + coins[i]); System.out.println("current goal: " + j + "\n"); System.out.println(Arrays.toString(solutionsTable) + "\n"); step++; } } return solutionsTable[(int)goal]; } static int minimumAbsoluteDifference(int n, int[] arr) { // Complete this function Arrays.sort(arr); System.out.println(Arrays.toString(arr)); int min = Integer.MAX_VALUE; for(int i = 0; i < n-1; i++) { //System.out.println(String.format("%d - %d = %d", arr[i], arr[i+1], arr[i]-arr[i+1])); int currentMin = Math.abs(arr[i]-arr[i+1]); min = Math.min(min, currentMin); } return min; } static int camelCase(String s) { int count = 0; for (int i=0; i<s.length(); i++) { char ch = s.charAt(i); if (Character.isUpperCase(ch)) { //System.out.println(" " + ch); count++; } } return count+1; } static int migratoryBirds(int n, int[] ar) { // Complete this function Map<Integer, Integer> typeCounts = new HashMap<>(); for (int i = 1; i<=5; i++) { typeCounts.put(i, 0); } int max = 0; for (int i=0;i<n;i++) { for (Integer key : typeCounts.keySet()) { if (ar[i] == key) { int count = typeCounts.get(key) + 1; typeCounts.put(key, count); System.out.println(String.format("ar[%d], %d == %d +++ %d", i, ar[i], key, count)); } } } int val = 0; for (Integer key : typeCounts.keySet()) { if (typeCounts.get(key) > max) { max = typeCounts.get(key); val = key; } System.out.println(key + "::" + typeCounts.get(key)); } return val; } static int divisibleSumPairs(int n, int k, int[] ar) { // Complete this function int counter = 0; for (int i=0;i<n;i++) { for (int j=0;j<n;j++) { //if (i > j) System.out.println(String.format("ar[%d] = %d; ar[%d] = %d", i, ar[i], j, ar[j])); if ( (i > j) && ((ar[i] + ar[j]) % k == 0) ) { //System.out.println(String.format("(%d, %d)", ar[i], ar[j])); counter++; } } } return counter; } static String super_reduced_string(String s){ // Complete this function char c[] = s.toCharArray(); System.out.println(c.length); Arrays.sort(c); System.out.println(c.length); String back = Arrays.toString(c); System.out.println(back.toString()); int i = 0; while (i < c.length) { System.out.println(" i = " + i + "; back.len = " + c.length); if ((i < c.length) && (c[i] == c[i+1]) ) { back = back.substring(i+1); } i++; } return "Empty String"; } static int betweenTwoSets(int[] a, int[] b) { // Complete this function int xMin = 1, xMax = 101; int sum = 0; intCheck: for (int i=xMin; i<=xMax; i += xMin) { for (int num : a) { if (i % num != 0) { continue intCheck; } } for (int num : b) { if (num % i != 0) { continue intCheck; } } sum++; } return sum; } static String kangaroo(int x1, int v1, int x2, int v2) { int n = 20000; if (x1 > x2) { n = x1 * n; } else { n = x2 * n; } //System.out.println(String.format("times == %d", n)); for (int i=x1, j=x2; i<n; i += v1, j += v2) { //System.out.println(String.format("%d == %d", i, j)); if (i == j) { return "YES"; } } return "NO"; } public static void appleAndOrange() { Scanner in = new Scanner(System.in); int s = in.nextInt(); int t = in.nextInt(); int a = in.nextInt(); int b = in.nextInt(); int m = in.nextInt(); int n = in.nextInt(); int[] apple = new int[m]; for(int apple_i=0; apple_i < m; apple_i++){ apple[apple_i] = in.nextInt(); } int[] orange = new int[n]; for(int orange_i=0; orange_i < n; orange_i++){ orange[orange_i] = in.nextInt(); } // code begins int a_arr[] = new int[apple.length]; for (int i=0; i<apple.length; i++) { a_arr[i] = a + apple[i]; } int b_arr[] = new int[orange.length]; for (int i=0; i<orange.length; i++) { b_arr[i] = b + orange[i]; } int a_sum = 0; for (int i=0; i<a_arr.length; i++) { if (a_arr[i] >= s && a_arr[i] <= t) { a_sum += 1; } } int b_sum = 0; for (int i=0; i<b_arr.length; i++) { if (b_arr[i] >= s && b_arr[i] <= t) { b_sum += 1; } } System.out.println(a_sum); System.out.println(b_sum); } public static void testMain() throws Exception { List<String> list = new ArrayList<>(); list.add("19th Oct 2015"); list.add("25th Mar 2004"); list.add("1st Jan 2504"); list.add("3rd Feb 2114"); String[] inArr = list.toArray(new String[list.size()]); System.out.println(Arrays.toString(inArr)); //Arrays.stream(inArr).forEach(str -> System.out.println(str)); String[] outArr = test(inArr); System.out.println(Arrays.toString(outArr)); //Arrays.stream(outArr).forEach(str -> System.out.println(str)); } public static String[] test(String... inputArr) throws ParseException { List<String> list = new ArrayList<>(); /*SimpleDateFormat fmt = new SimpleDateFormat("DD/Mmm/yyyy"); SimpleDateFormat fmt1 = new SimpleDateFormat("yyyy-MM-dd");*/ for (String input : inputArr) { LocalDate ldt = LocalDate.parse(input, DateTimeFormatter.ofPattern("d['st']['th']['nd']['rd'] MMM yyyy",Locale.ENGLISH)); System.out.println(" --> " + ldt.toString()); list.add(ldt.toString()); } return list.toArray(new String[list.size()]); } public static long power(int x, int y) throws Exception { if (x < 0 || y < 0) { throw new Exception("n or p should not be negative."); } else if (x == 0 || y == 0) { throw new Exception("n and p should not be zero."); } return (int) Math.pow(x, y); // System.out.println("" + power(-1, 0)); } public void exceptionHandling() { Scanner s = new Scanner(System.in); int x = 0, y = 0; try { x = s.nextInt(); y = s.nextInt(); } catch (InputMismatchException e) { System.out.println("java.util.InputMismatchException"); System.exit(0); } try { int result = x / y; System.out.println(result); } catch (ArithmeticException e) { System.out.println(e.toString()); } } public void test() throws IOException { A a = new A(); B b = new B(); A c = b; } }
[ "mgopinathan@avaya.com" ]
mgopinathan@avaya.com
b30f27a7129510304281ecbd03435ec965169e30
502ea93de54a1be3ef42edb0412a2bf4bc9ddbef
/sources/com/google/ads/mediation/C2784e.java
421f0350ad0c77fd98f6bc428f9f3dc3d6e42192
[]
no_license
dovanduy/MegaBoicotApk
c0852af0773be1b272ec907113e8f088addb0f0c
56890cb9f7afac196bd1fec2d1326f2cddda37a3
refs/heads/master
2020-07-02T04:28:02.199907
2019-08-08T20:44:49
2019-08-08T20:44:49
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,033
java
package com.google.ads.mediation; import com.google.android.gms.internal.ads.C3987mk; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import java.lang.reflect.Field; import java.util.HashMap; import java.util.Map; import java.util.Map.Entry; @Deprecated /* renamed from: com.google.ads.mediation.e */ public class C2784e { /* renamed from: com.google.ads.mediation.e$a */ public static final class C2785a extends Exception { public C2785a(String str) { super(str); } } @Target({ElementType.FIELD}) @Retention(RetentionPolicy.RUNTIME) /* renamed from: com.google.ads.mediation.e$b */ public @interface C2786b { /* renamed from: a */ String mo9669a(); /* renamed from: b */ boolean mo9670b() default true; } /* renamed from: a */ public void mo9668a(Map<String, String> map) throws C2785a { Field[] fields; StringBuilder sb; String str; HashMap hashMap = new HashMap(); for (Field field : getClass().getFields()) { C2786b bVar = (C2786b) field.getAnnotation(C2786b.class); if (bVar != null) { hashMap.put(bVar.mo9669a(), field); } } if (hashMap.isEmpty()) { C3987mk.m17435e("No server options fields detected. To suppress this message either add a field with the @Parameter annotation, or override the load() method."); } for (Entry entry : map.entrySet()) { Field field2 = (Field) hashMap.remove(entry.getKey()); if (field2 != null) { try { field2.set(this, entry.getValue()); } catch (IllegalAccessException unused) { String str2 = (String) entry.getKey(); sb = new StringBuilder(49 + String.valueOf(str2).length()); sb.append("Server option \""); sb.append(str2); str = "\" could not be set: Illegal Access"; } catch (IllegalArgumentException unused2) { String str3 = (String) entry.getKey(); sb = new StringBuilder(43 + String.valueOf(str3).length()); sb.append("Server option \""); sb.append(str3); str = "\" could not be set: Bad Type"; } } else { String str4 = (String) entry.getKey(); String str5 = (String) entry.getValue(); StringBuilder sb2 = new StringBuilder(31 + String.valueOf(str4).length() + String.valueOf(str5).length()); sb2.append("Unexpected server option: "); sb2.append(str4); sb2.append(" = \""); sb2.append(str5); sb2.append("\""); C3987mk.m17429b(sb2.toString()); } } StringBuilder sb3 = new StringBuilder(); for (Field field3 : hashMap.values()) { if (((C2786b) field3.getAnnotation(C2786b.class)).mo9670b()) { String str6 = "Required server option missing: "; String valueOf = String.valueOf(((C2786b) field3.getAnnotation(C2786b.class)).mo9669a()); C3987mk.m17435e(valueOf.length() != 0 ? str6.concat(valueOf) : new String(str6)); if (sb3.length() > 0) { sb3.append(", "); } sb3.append(((C2786b) field3.getAnnotation(C2786b.class)).mo9669a()); } } if (sb3.length() > 0) { String str7 = "Required server option(s) missing: "; String valueOf2 = String.valueOf(sb3.toString()); throw new C2785a(valueOf2.length() != 0 ? str7.concat(valueOf2) : new String(str7)); } return; sb.append(str); C3987mk.m17435e(sb.toString()); } }
[ "pablo.valle.b@gmail.com" ]
pablo.valle.b@gmail.com
ae5c174f969382b899e3d8b533e4f4d330a838f0
1a9cf4fd21ea9e772516a2158aa4bee26ec7a82a
/Assignment-10-6-21/src/main/java/com/onebill/hibernate/bean/Companies4.java
6cef34002046f27da76805acb8db54864d230b6b
[]
no_license
vighnarajank/Java2EE
08fed4c65f577a58a6d990ecda7f4775e9e9732a
f4aeb280dc931ed1bf92eab0b6de9599d252eb4f
refs/heads/master
2023-05-29T19:11:12.803250
2021-06-14T19:26:59
2021-06-14T19:26:59
374,887,458
0
0
null
null
null
null
UTF-8
Java
false
false
1,310
java
package com.onebill.hibernate.bean; import java.util.List; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.JoinTable; import javax.persistence.ManyToMany; import javax.persistence.Table; @Entity @Table(name = "companies") public class Companies4 { @Id @Column private int company_id; @Column private String Company_name; @ManyToMany(cascade = CascadeType.ALL) @JoinTable(name = "company_product_info", joinColumns = @JoinColumn(name = "company_id"), inverseJoinColumns = @JoinColumn(name = "product_id")) private List<Products4> prods; public Companies4() { super(); } public int getCompany_id() { return company_id; } public void setCompany_id(int company_id) { this.company_id = company_id; } public String getCompany_name() { return Company_name; } public void setCompany_name(String company_name) { Company_name = company_name; } public List<Products4> getProds() { return prods; } public void setProds(List<Products4> prods) { this.prods = prods; } @Override public String toString() { return "Companies4 [company_id=" + company_id + ", Company_name=" + Company_name + ", prods=" + prods + "]"; } }
[ "vighna.rajan@onebillsoftware.com" ]
vighna.rajan@onebillsoftware.com
0ed4ef9966e1adfc44ebf3b296f8f2ddf4a8fda4
7887bb20c383dffbacd0c82391d0f8a370d65bab
/APCS Java 2/Module 04/Mod04 Assignments/4.07 TDEE/src/com/company/TDEE.java
153310383d25769276472e0e77bbecf33c182f93
[]
no_license
jacknishanian/Code-backup
d76120f137a048a8c838a1381589a459272d789c
ebf0de53e16aeb625ad66a071be881d3e73f6548
refs/heads/master
2020-03-23T11:00:02.883314
2018-07-18T18:55:18
2018-07-18T18:55:18
141,476,137
0
0
null
null
null
null
UTF-8
Java
false
false
3,497
java
package com.company; /** * Program to calculate the Total Daily Energy Expenditure * * Jack Nishanian * 10/15/16 * This program calculates the tdee */ import java.util.Scanner; public class TDEE { public static void main(String [] args) { Scanner in = new Scanner(System.in); // Input: Gather information from user System.out.print("Please enter your name: "); String name = in.nextLine(); System.out.print("Please enter your BMR:" ); double basalMR = in.nextDouble(); System.out.print("Please enter your gender (M/F): "); String gender = in.next().toUpperCase(); System.out.println(); // Activity Level Menu System.out.println("Select Your Activity Level"); System.out.println("[A] Resting (Sleeping, Reclining)"); System.out.println("[B] Sedentary (Minimal Movement)"); System.out.println("[C] Light (Sitting, Standing)"); System.out.println("[D] Moderate (Light Manual Labor, Dancing, Riding Bike)"); System.out.println("[E] Very Active (Team Sports, Hard Manual Labor)"); System.out.println("[F] Extremely Active (Full-time Athelete, Heavy Manual Labor)"); System.out.println(); System.out.print("Enter the letter corresponding to your activity level: "); String choice = in.next().toUpperCase(); System.out.println(); //Processing: // Activity Factor double activityFactor = 0; if(gender.equals("M")){ if(choice.equals("A")){ activityFactor = 1.0; } else if(choice.equals("B")){ activityFactor = 2.0; } else if(choice.equals("C")){ activityFactor = 3.0; } else if(choice.equals("D")){ activityFactor = 4.0; } else if(choice.equals("E")){ activityFactor = 5.0; } else if(choice.equals("F")){ activityFactor = 6.0; } else { System.out.println("Enter a correct value A-F"); } } else if(gender.equals("F")){ if(choice.equals("A")){ activityFactor = 1.5; } else if(choice.equals("B")){ activityFactor = 2.5; } else if(choice.equals("C")){ activityFactor = 3.5; } else if(choice.equals("D")){ activityFactor = 4.5; } else if(choice.equals("E")){ activityFactor = 5.5; } else if(choice.equals("F")){ activityFactor = 6.7; } else { System.out.println("Enter a correct value A-F"); } } else { System.out.println("Enter a correct value M/F"); } // Calculate TDEE double tDEE = basalMR * activityFactor; // Output: Print Results System.out.println("Name: " + name + "\t\tGender: " + gender); System.out.println("BMR: " + basalMR + " calories "+ "\t\tActivity Factor: " + activityFactor); System.out.println("TDEE: " + tDEE + " calories "); } }
[ "noreply@github.com" ]
jacknishanian.noreply@github.com
094e26aa1678195550ba57241a1fa337244815b0
9cc67a6b36406ff84a52d4ddb02c6f7026aa545e
/src/main/java/com/macheng/messager/service/MessageService.java
d9252e412d8d51842cf8958861c0797be830baf2
[]
no_license
tmxk2012197/Messager
d7ae6627e8d88b769479ff0a334472d878fd7ebe
3f6d201e0169611f116bd46a257d22e16fa50fc4
refs/heads/master
2021-01-18T20:09:07.543409
2017-04-01T21:24:10
2017-04-01T21:24:10
86,943,481
0
0
null
null
null
null
UTF-8
Java
false
false
2,086
java
package com.macheng.messager.service; import com.macheng.messager.database.DatabaseClass; import com.macheng.messager.model.Message; import com.macheng.messager.model.Profile; import java.util.ArrayList; import java.util.Calendar; import java.util.List; import java.util.Map; public class MessageService { private Map<Long, Message> messageMap = DatabaseClass.getMessageMap(); public MessageService() { messageMap.put(1L, new Message(1, "Hello World", "Cheng")); messageMap.put(2L, new Message(2, "Hello Jersey", "Cheng")); } public List<Message> getAllMessages() { return new ArrayList<Message>(messageMap.values()); } public List<Message> getAllMessages(int year) { List<Message> messageList = new ArrayList<Message>(); Calendar calendar = Calendar.getInstance(); for (Message message : messageMap.values()) { calendar.setTime(message.getCreatedDate()); if (calendar.get(Calendar.YEAR) == year) { messageList.add(message); } } return messageList; } public List<Message> getAllMessage(int start, int size) { List<Message> messageList = new ArrayList<Message>(messageMap.values()); if (start > messageList.size()) { return new ArrayList<Message>(); } if (start + size > messageList.size()) { return messageList.subList(start, messageList.size()); } return messageList.subList(start, start + size); } public Message getMessage(long id) { return messageMap.get(id); } public Message addMessage(Message message) { message.setId(messageMap.size() + 1); messageMap.put(message.getId(), message); return message; } public Message updateMessage(Message message) { if (message.getId() <= 0) { return null; } messageMap.put(message.getId(), message); return message; } public Message removeMessage(long id) { return messageMap.remove(id); } }
[ "macheng917@yahoo.com" ]
macheng917@yahoo.com
f7d23507f3abdc6aa018ad920bc0597af52c4c4c
6070b7884b0efcfee35db3be038c81698ee694bc
/app/src/main/java/com/yuan/superdemo/widgets/HorizalAnimTextView.java
7e570a8c5abad036378949e22b5dbcb489638f8c
[ "Apache-2.0" ]
permissive
sivenwu/SuperDemo
1d7880dd4e27e246828313a7612af2b41bef013b
d895fa717b44d62296f2fa36c392df3c303c13dc
refs/heads/master
2021-09-03T06:23:55.028076
2018-01-06T11:53:42
2018-01-06T11:53:42
null
0
0
null
null
null
null
UTF-8
Java
false
false
6,895
java
package com.yuan.superdemo.widgets; import android.animation.Animator; import android.animation.ObjectAnimator; import android.animation.ValueAnimator; import android.app.Activity; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.nfc.Tag; import android.text.TextUtils; import android.util.AttributeSet; import android.util.DisplayMetrics; import android.util.Log; import android.view.WindowManager; import android.view.animation.LinearInterpolator; import android.widget.TextView; import static android.R.attr.type; /** * 支持速度调整的跑马灯 * Created by siven on 2017/4/21. */ public class HorizalAnimTextView extends TextView{ private final String TAG = getClass().getSimpleName(); private Context mContext; // info internal // 这是一条为了测试速度存在的字符串 private String speedText = "一二三四五六" + "一二三四五六" + "一二三四五六" + "一二三四五六" + "一二三四五六" + "一二三四五六" + "一二三四五六" + "一二三四五六" + "一二三四五六" + "一二三四五六"; private float textWidth; // 文字长度 private float textSpeed; // 文字滚动速度 V = 字长/10S private String curText; private float scrollEndX; private float scrollStartX; private float initX; // 初始化x坐标 private boolean drawed = false; // animation private ValueAnimator mValueAnimator; private int duration = 10 * 1000;// 10秒播完 // callback private AnimationCallBack animationCallBack; public void setAnimationCallBack(AnimationCallBack animationCallBack) { this.animationCallBack = animationCallBack; } public HorizalAnimTextView(Context context) { this(context,null); } public HorizalAnimTextView(Context context, AttributeSet attrs) { super(context, attrs); this.mContext = context; init(); } private void init(){ this.setEllipsize(TextUtils.TruncateAt.MARQUEE); this.setSingleLine(true); } @Override protected void onDraw(Canvas canvas) { super.onDraw(canvas); if (!drawed) { drawed = true; measureTextLength(); measureScrollValue(); } } /** * 设置当前内容 * @param content */ public void setContent(String content){ curText = content; setVisibility(INVISIBLE); updateScrollValue(); } /** * 根据内容,重新初始化滚动距离 */ private void updateScrollValue(){ measureTextLength(); scrollEndX = textWidth + (-scrollStartX); Log.d(TAG,"scrollEndX" + scrollEndX + " textWidth " +textWidth +" "+ "scrollStartX " + (scrollStartX) + " initX " +initX); } /** * 测量出文字总长度 */ private void measureTextLength(){ textWidth = getCharacterWidth(curText); int testWidth = getCharacterWidth(speedText); textSpeed = (testWidth * 1.0f) / duration; // Log.d(TAG,"测量文字长度为: " + textWidth + " 测量移动速度为: " + textSpeed); } /** * 计算移动起点、终点 */ private void measureScrollValue(){ initX = getX(); scrollStartX = -(initX + getMeasuredWidth()); scrollTo((int) scrollStartX, 0); // scrollEndX = textWidth + (-scrollStartX) - initX + 100; // 减去当前控件相对位置x 100 为偏移量,可固定; scrollEndX = textWidth + (-scrollStartX); // Log.d(TAG,"scrollEndX" + scrollEndX + " textWidth " +textWidth +" "+ "scrollStartX " + (scrollStartX) + " initX " +initX); } /** * 根据文字,策略长度 * @param text * @return */ private int getCharacterWidth(String text) { if (null == text || "".equals(text)){ return 0; } Paint paint = new Paint(); paint.setTextSize( getTextSize() ); int text_width = (int) paint.measureText(text);// 得到总体长度 return text_width; } // ---- 动画逻辑 /** * 开始播放公告 */ public void startPlay(){ if (mValueAnimator!= null){ stopPlay();// 运行中先取消 } justPlaying(0, (int) scrollEndX); } /** * 停止播放公告 */ public void stopPlay(){ if (mValueAnimator!= null){ // 运行中先取消 if (mValueAnimator.isRunning()){ mValueAnimator.cancel(); } } } private void justPlaying(int startx,int endx){ long durationNow = (long) (textWidth / textSpeed); // Log.d(TAG,"开启移动动画 " + startx + " -> " +endx + " 动画时间为: " +durationNow); mValueAnimator = ValueAnimator.ofInt(startx,endx); mValueAnimator.setInterpolator(new LinearInterpolator()); // 匀速插值器 mValueAnimator.setDuration(durationNow * 2).start(); mValueAnimator.addListener(new Animator.AnimatorListener() { @Override public void onAnimationStart(Animator animation) { setText(curText); } @Override public void onAnimationEnd(Animator animation) { if (animationCallBack != null){ animationCallBack.onComplete(); } } @Override public void onAnimationCancel(Animator animation) {} @Override public void onAnimationRepeat(Animator animation) {} }); mValueAnimator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { @Override public void onAnimationUpdate(ValueAnimator animation) { if (animation.getCurrentPlayTime() > 100){ // 延时100毫秒 if (getVisibility() == INVISIBLE) setVisibility(VISIBLE); } int x = (int) animation.getAnimatedValue(); float move = scrollStartX + x; // Log.d(TAG,"移动 -> "+getScrollX() + " x " + x +""); scrollTo((int) move,0); } }); mValueAnimator.start(); } //---- 轮播完成回调 public interface AnimationCallBack{ public void onComplete(); } }
[ "siven@mac-book.local" ]
siven@mac-book.local
0a828f5e570720fc740ec73f2b1b93ad1ab55ae1
d04e70e8b1c812fc883c78a374d6f96023768735
/android/app/src/main/java/com/qrmobile/MainActivity.java
647716dd13ddfbd0725587ddf7df30af424e5643
[]
no_license
QR-FARE/QR-mobile
ccc556e84627e89de7c865d9bd59f467af9ad058
877dc37029a1873b6fceab2f3772e45d21db7ad8
refs/heads/master
2022-12-21T11:08:53.841876
2020-03-18T21:44:07
2020-03-18T21:44:07
226,365,614
0
0
null
2022-12-04T23:33:16
2019-12-06T16:11:26
JavaScript
UTF-8
Java
false
false
343
java
package com.qrmobile; import com.facebook.react.ReactActivity; public class MainActivity extends ReactActivity { /** * Returns the name of the main component registered from JavaScript. This is used to schedule * rendering of the component. */ @Override protected String getMainComponentName() { return "QRmobile"; } }
[ "ednd78@gmail.com" ]
ednd78@gmail.com
d3ad99f00f70fab6dd0dd5a97565c24dbbf742bb
46cb5950af8e2e067e824d1182151d2ab9f7414f
/src/IK/Recursion/Class/CountAndPrintPathsWithObstruction.java
bb7d987c3218c483899d86d663785b09cb92bf16
[ "MIT" ]
permissive
lipsapatel/Algorithms
eb945ffcc70f1eb5f7bc4030b5e9fa9819c206b7
6e54cc66d667fb082459e6912ad2928e70c86305
refs/heads/master
2022-11-24T22:01:56.705277
2022-11-15T18:40:09
2022-11-15T18:40:09
130,917,614
2
1
null
null
null
null
UTF-8
Java
false
false
2,432
java
package IK.Recursion.Class; import java.util.ArrayList; import java.util.List; import java.util.Stack; /** * Recursion * * 1) Recursive Function (int[][] grid, int row, int col, Stack<List<Integer> stack) * 2) Stack keeps track of the path in the form of row and col * 3) Guard Case: If row >= numRows or col >= numRows then return 0 * 4) Obstruction: If grid[row][col] == 0, then return 0. Here "0" is the obstruction * 5) Base Case: if row == numRows - 1 and col == numCols - 1, then push the last cell to path and print the path, pop from stack and return 1 * 6) Recursive Case: Push myself to stack * 7) Go right (grid, row, col + 1, stack) * 8) Go down (grid, row + 1, col, stack) * 9) Pop from stack * * Time Complexity: (Branching Factor)^height = O(2^(m + n)) * Space Complexity: Height O(m + n) */ public class CountAndPrintPathsWithObstruction { private static int countPaths(int[][] grid, int row, int col, Stack<List<Integer>> stack) { int numRows = grid.length; int numCols = grid[0].length; //Guard Case if(row >= numRows || col >= numCols) { return 0; } //Obstruction Case if(grid[row][col] == 0) { return 0; } //Base Case if(row == numRows - 1 && col == numCols - 1) { //Print Paths //Push the last cell List<Integer> path = new ArrayList<>(); path.add(row); path.add(col); stack.push(path); System.out.println("Path"); for(List<Integer> p: stack) { System.out.println(p.get(0) + "," + p.get(1)); //System.out.println(p.toString()); } //Pop yourself before returning stack.pop(); return 1; } //Recursive Case //Push my self in stack List<Integer> path = new ArrayList<>(); path.add(row); path.add(col); stack.push(path); int right = countPaths(grid, row, col + 1, stack); int down = countPaths(grid, row + 1, col, stack); //Pop myself from stack stack.pop(); return right + down; } public static void main(String[] args) { int[][] grid = {{1, 1, 1}, {0, 1, 1}, {1, 0, 1}}; System.out.println("Number of paths with obstruction " + countPaths(grid, 0, 0, new Stack<>())); } }
[ "30571455+lipsapatel@users.noreply.github.com" ]
30571455+lipsapatel@users.noreply.github.com
fb732f8e082878c81f13169f2c65ded6a15fa01b
ae79d63e73559cbc567f7d08260f8505f2f5ea21
/src/main/java/service/AuthDetailsServiceImpl.java
60382e1f1ccf2d8b4fabf28082b55423be5aa7ab
[]
no_license
myang0926/mingRepo
01c823dfb8a548b4d53ad2639ea7d85e47b3947a
1d47ee12fe4ca5960995956cf8c981f9da5a8671
refs/heads/master
2020-03-29T10:49:59.272943
2018-09-21T22:50:11
2018-09-21T22:50:11
149,824,947
0
0
null
null
null
null
UTF-8
Java
false
false
1,694
java
package service; import beans.AuthDetails; import model.Role; import model.User; import model.UserRole; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import repository.RoleRepository; import repository.UserRepository; import java.util.UUID; @Service public class AuthDetailsServiceImpl implements AuthDetailsService { @Autowired private UserRepository userRepo; @Autowired private RoleRepository roleRepo; private final String SUPER_ADMIN = "super admin"; @Override public AuthDetails getAuthDetails(UUID userId, boolean getAuthorizationInfo) { AuthDetails ad = new AuthDetails(); User user = userRepo.findOne(userId); ad.setUser(user.getId()); // logger.debug("auth details get authz: " + getAuthorizationInfo); if(getAuthorizationInfo) { boolean isSuperAdmin = false; for(UserRole ar : user.getRoles()) { if(ar.getRole().getName().equalsIgnoreCase(SUPER_ADMIN)) { isSuperAdmin = true; break; } } if(!isSuperAdmin) { for(UserRole r : user.getRoles()) { ad.getRoles().add(r.getRole().getName()); } } else { for(Role r : roleRepo.findAll()) { ad.getRoles().add(r.getName()); } } } ad.setUserName(user.getUserName()); ad.setLdapId(user.getLdapId()); return ad; } }
[ "doreen_yangming@hotmail.com" ]
doreen_yangming@hotmail.com
0f96e60a7a8bfdd5f0a62737d0a6e3d0918670fb
edf2fef5db28b2e9f7bc775c976d82ed234f8687
/src/main/java/me/tazadejava/specialitems/SpecialItem.java
d679331de30679b2035d1970eb695f01763f5a11
[]
no_license
tazadejava/teamchallenge-mcgd
d6949ef9347dc2c3994776ee28ef9d1c6d13735d
344a10147fe194ca14f1232095ba0f98200fc117
refs/heads/master
2022-12-05T12:20:13.419518
2020-08-16T02:24:55
2020-08-16T02:24:55
287,858,575
0
0
null
null
null
null
UTF-8
Java
false
false
2,929
java
package me.tazadejava.specialitems; import org.bukkit.ChatColor; import org.bukkit.event.player.PlayerInteractEvent; import org.bukkit.inventory.ItemStack; import java.util.ArrayList; import java.util.List; //requirements: item must be named and lored to become a special item public abstract class SpecialItem { public enum ItemEventHooks { PLAYER_INTERACT } private ItemEventHooks[] hooks; public SpecialItem(ItemEventHooks[] hooks) { this.hooks = hooks; } public boolean isItem(ItemStack item) { if(item == null) { return false; } ItemStack reference = getItem(); if(reference.getType() != item.getType()) { return false; } if(!item.hasItemMeta()) { return false; } if(!item.getItemMeta().hasDisplayName() || !item.getItemMeta().hasLore()) { return false; } return item.getItemMeta().getDisplayName().equals(reference.getItemMeta().getDisplayName()) && item.getItemMeta().getLore().equals(reference.getItemMeta().getLore()); } public abstract ItemStack getItem(); //helper method to make lore not too long; append to new line if necessary; max 48 char protected List<String> formatLore(String... lore) { List<String> formattedLore = new ArrayList<>(); for(String line : lore) { if(line.length() <= 48) { formattedLore.add(line); } else { String[] split = line.split(" "); String lastColor = null; StringBuilder newLine = new StringBuilder(); for(String word : split) { String lastColors = ChatColor.getLastColors(word); if(!lastColors.isEmpty()) { lastColor = lastColors; } if(newLine.length() + word.length() > 48) { formattedLore.add(newLine.toString()); if(lastColor != null) { newLine = new StringBuilder(lastColor + " " + word); } else { newLine = new StringBuilder(" " + word); } } else { if(newLine.length() != 0) { newLine.append(" "); } newLine.append(word); } } if(newLine.length() != 0) { formattedLore.add(newLine.toString()); } } } return formattedLore; } public void onPlayerInteract(PlayerInteractEvent event) { } public ItemEventHooks[] getHooks() { return hooks; } }
[ "tonitruirrein@gmail.com" ]
tonitruirrein@gmail.com
05e5f22e543c1a5963d32d1d1e055e88204245ae
30e9e02bfa1bbe55bc67628d8bc137c020c92c4a
/src/main/java/com/rivdu/servicio/EstructuraServicio.java
581a8264b93d9eefc593c2643f016c321a9b52ae
[]
no_license
MarioRDuque/rivdu-backend
f1d1bc59b403455f5e9845bed62e31778c8d1797
d28025e6adc7ad9a3300d6deed57352f2c20f531
refs/heads/master
2023-04-14T06:16:19.354046
2018-05-04T18:06:31
2018-05-04T18:06:31
120,644,462
0
0
null
2021-04-26T16:20:11
2018-02-07T16:59:08
Java
UTF-8
Java
false
false
505
java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.rivdu.servicio; import com.rivdu.entidades.Estructura; import com.rivdu.excepcion.GeneralException; import java.util.List; /** * * @author LUIS ORTIZ */ public interface EstructuraServicio extends GenericoServicio<Estructura, Long>{ public List<Estructura> listar() throws GeneralException; }
[ "luisorstaby@gmail.com" ]
luisorstaby@gmail.com
bde30527a8ada8838386f681000af7d0d6d96b5b
53040c4144c0917c5294b7c359655a2d61afef08
/java/com/acq/users/entity/AcqBankItEntity.java
96b6372ce69634df6a489f5afd87ca5a4e9ce677
[]
no_license
acquirotech/CommunicatorOld
8cd01b4a22ab3ce8d015c46122b667a8da4cb151
43f82f1b9b4d0d3f589bda81b79d3ca329ef33fb
refs/heads/master
2020-04-05T20:05:32.056301
2018-11-12T06:22:27
2018-11-12T06:22:27
157,163,646
0
1
null
null
null
null
UTF-8
Java
false
false
1,358
java
package com.acq.users.entity; public class AcqBankItEntity { private String id; private String merchantId; private String terminalId; private String request; private String response; private String requestTime; private String responseTime; private String serviceName; public String getServiceName() { return serviceName; } public void setServiceName(String serviceName) { this.serviceName = serviceName; } public String getId() { return id; } public void setId(String id) { this.id = id; } public String getMerchantId() { return merchantId; } public void setMerchantId(String merchantId) { this.merchantId = merchantId; } public String getTerminalId() { return terminalId; } public void setTerminalId(String terminalId) { this.terminalId = terminalId; } public String getRequest() { return request; } public void setRequest(String request) { this.request = request; } public String getResponse() { return response; } public void setResponse(String response) { this.response = response; } public String getRequestTime() { return requestTime; } public void setRequestTime(String requestTime) { this.requestTime = requestTime; } public String getResponseTime() { return responseTime; } public void setResponseTime(String responseTime) { this.responseTime = responseTime; } }
[ "36187036+acquirotech@users.noreply.github.com" ]
36187036+acquirotech@users.noreply.github.com
52a7979761858d4648e48979aa072531eba5ed51
a0a5748464b30296147ae7d5d1e20fed952849f7
/learn-manager/src/main/java/com/jee/learn/manager/domain/gen/GenTable.java
21ea061d6952327c563a6be32f7df4b80582de58
[]
no_license
chenchipeng/jee.learn
0e84c8f573187cbab6420fb5d6275371bfbfe1ab
0a0334bb060d5c5889d00cf83c2bb8362d573c5c
refs/heads/master
2022-03-02T09:47:44.067885
2019-11-23T01:52:37
2019-11-23T01:52:37
141,070,601
1
0
null
2021-04-22T16:45:21
2018-07-16T01:10:53
Java
UTF-8
Java
false
false
3,253
java
package com.jee.learn.manager.domain.gen; import java.io.Serializable; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.NamedQuery; import javax.persistence.Table; import javax.persistence.Temporal; import javax.persistence.TemporalType; /** * The persistent class for the gen_table database table. * */ @Entity @Table(name = "gen_table") @NamedQuery(name = "GenTable.findAll", query = "SELECT g FROM GenTable g") public class GenTable implements Serializable { private static final long serialVersionUID = 1L; private String id; private String className; private String comments; private String createBy; private Date createDate; private String delFlag; private String name; private String parentTable; private String parentTableFk; private String remarks; private String updateBy; private Date updateDate; public GenTable() { } @Id public String getId() { return this.id; } public void setId(String id) { this.id = id; } @Column(name = "class_name") public String getClassName() { return this.className; } public void setClassName(String className) { this.className = className; } public String getComments() { return this.comments; } public void setComments(String comments) { this.comments = comments; } @Column(name = "create_by") public String getCreateBy() { return this.createBy; } public void setCreateBy(String createBy) { this.createBy = createBy; } @Temporal(TemporalType.TIMESTAMP) @Column(name = "create_date") public Date getCreateDate() { return this.createDate; } public void setCreateDate(Date createDate) { this.createDate = createDate; } @Column(name = "del_flag") public String getDelFlag() { return this.delFlag; } public void setDelFlag(String delFlag) { this.delFlag = delFlag; } public String getName() { return this.name; } public void setName(String name) { this.name = name; } @Column(name = "parent_table") public String getParentTable() { return this.parentTable; } public void setParentTable(String parentTable) { this.parentTable = parentTable; } @Column(name = "parent_table_fk") public String getParentTableFk() { return this.parentTableFk; } public void setParentTableFk(String parentTableFk) { this.parentTableFk = parentTableFk; } public String getRemarks() { return this.remarks; } public void setRemarks(String remarks) { this.remarks = remarks; } @Column(name = "update_by") public String getUpdateBy() { return this.updateBy; } public void setUpdateBy(String updateBy) { this.updateBy = updateBy; } @Temporal(TemporalType.TIMESTAMP) @Column(name = "update_date") public Date getUpdateDate() { return this.updateDate; } public void setUpdateDate(Date updateDate) { this.updateDate = updateDate; } }
[ "875610737@qq.cpm" ]
875610737@qq.cpm
70cf0cb2c8b6899dd7b7fb72c6386e6b53720281
94d1456ae1596a32a10165168047844414fc1ad4
/Client/src/Commands/Execute_Script.java
df1aaabafc31a2531ca707f2b583cddc361303f5
[]
no_license
MichaelsAkk/Lab7
a9337c7974b7b332600e8b4d5c8a3e8e6ecdad96
9cecb8c91af927c672a3658ede367619629f9067
refs/heads/main
2022-12-24T07:43:12.574846
2020-10-09T08:26:33
2020-10-09T08:26:33
302,570,664
0
0
null
null
null
null
UTF-8
Java
false
false
3,138
java
package Commands; import Classes.Flat; import Instruments.ScriptInfo; import Instruments.UserCommandsScript; import Instruments.DBHandler; import java.io.*; import java.time.LocalDateTime; import java.util.ArrayList; import java.util.HashSet; public class Execute_Script implements Serializable { private String sFile; private transient HashSet<Flat> flats; private ArrayList<String> history; private transient LocalDateTime today; private transient BufferedReader reader; private transient ArrayList<String> scripts; private ArrayList<String> scriptCommands; private String info; private transient DBHandler db; private Integer userId; public String getInfo() { if (info.equalsIgnoreCase("")) return "Скрипт не содержит команд"; return this.info; } public ArrayList<String> getScriptCommands() { return this.scriptCommands; } public void setFields(HashSet<Flat> flats, LocalDateTime today, DBHandler db) { this.flats = flats; this.today = today; this.db = db; } public void setScripts(ArrayList<String> scripts) { this.scripts = scripts; } public Execute_Script () {} public Execute_Script (String sFile, HashSet<Flat> flats, ArrayList<String> history, LocalDateTime today, BufferedReader reader, File file, ArrayList<String> scripts) { this.sFile = sFile; this.flats = flats; this.history = history; this.today = today; this.reader = reader; this.scripts = scripts; } public Execute_Script(String sFile, ArrayList<String> history) { this.history = history; this.sFile = sFile; } public Execute_Script(String sFile) { this.sFile = sFile; } public void setUserId(Integer userId) { this.userId = userId; } public void getCommandsFromFile() { File script = new File(sFile); scriptCommands = Instruments.Processing.scriptToString(script, scripts); } public void execute() { String userCommand; for (int i = 0; i<scriptCommands.size(); i++) { userCommand = scriptCommands.get(i); UserCommandsScript.check(userCommand); if (UserCommandsScript.getStatus() == 1) { try { UserCommandsScript.execute(userCommand, reader, flats, today, history, scriptCommands, i, db, userId); } catch (IOException e) { e.printStackTrace(); } if (userCommand.equalsIgnoreCase("add")) i += 12; try { if (userCommand.substring(0, 6).equalsIgnoreCase("update") && UserCommandsScript.getStatus() == 1) i += 12; } catch (Exception e) { } } } info = ScriptInfo.getInfo(); } public String toStrings() { return "execute_script " + sFile; } }
[ "noreply@github.com" ]
MichaelsAkk.noreply@github.com
c2e99c7da3ac8fb6bb61a824dbcf3deadd58830f
3141edec56fbb22a66110d55183fcd08e68f18f4
/tools/csv2xml/src/org/slc/sli/sample/entitiesR1/AssessmentIdentificationSystemType.java
a83bf045c45cf6ab2e5b0d4b4d52cadb238ae4ad
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0", "LicenseRef-scancode-free-unknown", "CPL-1.0" ]
permissive
todd-fritz/secure-data-service
7451aac56b4fd0611fbeb6a63dd2e9cf71d0af82
a91d8a2f6b6dc101b6c56b29e8c7a9a8cafd142c
refs/heads/master
2023-07-07T03:45:01.731002
2023-05-01T14:19:44
2023-05-01T14:19:44
21,170,227
0
0
Apache-2.0
2023-07-02T05:03:24
2014-06-24T15:34:30
Java
UTF-8
Java
false
false
2,185
java
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2012.12.05 at 01:12:38 PM EST // package org.slc.sli.sample.entitiesR1; import javax.xml.bind.annotation.XmlEnum; import javax.xml.bind.annotation.XmlEnumValue; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for AssessmentIdentificationSystemType. * * <p>The following schema fragment specifies the expected content contained within this class. * <p> * <pre> * &lt;simpleType name="AssessmentIdentificationSystemType"> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}token"> * &lt;enumeration value="School"/> * &lt;enumeration value="District"/> * &lt;enumeration value="State"/> * &lt;enumeration value="Federal"/> * &lt;enumeration value="Other Federal"/> * &lt;enumeration value="Test Contractor"/> * &lt;enumeration value="Other"/> * &lt;/restriction> * &lt;/simpleType> * </pre> * */ @XmlType(name = "AssessmentIdentificationSystemType") @XmlEnum public enum AssessmentIdentificationSystemType { @XmlEnumValue("School") SCHOOL("School"), @XmlEnumValue("District") DISTRICT("District"), @XmlEnumValue("State") STATE("State"), @XmlEnumValue("Federal") FEDERAL("Federal"), @XmlEnumValue("Other Federal") OTHER_FEDERAL("Other Federal"), @XmlEnumValue("Test Contractor") TEST_CONTRACTOR("Test Contractor"), @XmlEnumValue("Other") OTHER("Other"); private final String value; AssessmentIdentificationSystemType(String v) { value = v; } public String value() { return value; } public static AssessmentIdentificationSystemType fromValue(String v) { for (AssessmentIdentificationSystemType c: AssessmentIdentificationSystemType.values()) { if (c.value.equals(v)) { return c; } } throw new IllegalArgumentException(v); } }
[ "sshan@wgen.net" ]
sshan@wgen.net
15ee33d273bf578e8372210444386cdac4b0ef31
85b6e86e1926134e4a10465841488e6cb25b0887
/project/src/CurrentAccount.java
d29f371b4066315217ff042c9d36e1cf45235bbe
[]
no_license
iamSumitSaurav/JenkinsProject
626207a5d3595c9c8253fb0cbd514597f641f8a0
623f6ad76f2f4187a391922db8aa3a68a25e9ede
refs/heads/master
2020-07-21T01:15:52.566972
2019-09-06T07:28:59
2019-09-06T07:28:59
206,736,314
0
0
null
null
null
null
UTF-8
Java
false
false
631
java
public class CurrentAccount extends Account{ private String crn; public CurrentAccount() { super(); } public CurrentAccount(int acno, String name, float balance, String crn) { super(acno, name, balance); this.crn = crn; } public String getCrn() { return crn; } public void setCrn(String crn) { this.crn = crn; } public void withdraw(float amt) { float rem_bal = getBalance(); if(rem_bal-amt >= 5000) { rem_bal -= amt; setBalance(rem_bal); } else { System.out.println("Insufficient Balance"); } } public void display() { super.display(); System.out.println("CRN : "+crn); } }
[ "703247284@genpact.com" ]
703247284@genpact.com
51cbd2b2620d1d4ddfcf365069812a0ed1c09829
d72f01aff3c6a91f11162fe9e178d271f36c0bc8
/app/src/main/java/client/ui/display/Trip/schedule_trip/p20210410/FindPassengerForm.java
3f68530247d14077e7fbe8f5634187366f40e472
[]
no_license
herbuy/rideshare-android
dafef4a1dccfb9bd7aabd8b6448e5166453814f2
a86be71b02efb964c6f64311454506c12a7e7952
refs/heads/master
2023-04-13T05:47:56.542684
2021-04-28T10:59:44
2021-04-28T10:59:44
362,433,647
0
0
null
null
null
null
UTF-8
Java
false
false
1,223
java
package client.ui.display.Trip.schedule_trip.p20210410; import android.content.Context; import android.view.ViewGroup; import client.ui.display.Trip.schedule_trip.p20210410.microinteractions.change_car_info.ChangeCarInfoTrigger; import client.ui.display.Trip.schedule_trip.p20210410.microinteractions.change_fuel_contribution.ChangeFuelContributionTrigger; import client.ui.display.Trip.schedule_trip.p20210410.microinteractions.change_seat_count.ChangeSeatCountTrigger; import client.ui.display.Trip.schedule_trip.steps.SetDestinationInfo; import core.businessmessages.toServer.ParamsForScheduleTrip; public class FindPassengerForm extends FindTravelMateForm { public FindPassengerForm(Context context) { super(context); } @Override protected void addMoreTriggers(ViewGroup viewGroup) { viewGroup.addView(new ChangeCarInfoTrigger(context).getView()); //viewGroup.addView(new ChangeCarModelTrigger(context).getView()); //viewGroup.addView(new ChangeCarRegNumTrigger(context).getView()); viewGroup.addView(new ChangeSeatCountTrigger(context, "Seats available").getView()); viewGroup.addView(new ChangeFuelContributionTrigger(context).getView()); } }
[ "herbuy@gmail.com" ]
herbuy@gmail.com
25243c9858599a839663abcc104c714660c81bfe
c33ae8055418ba172a03caeb24dbdbf698333460
/src/main/java/com/london/tribune/mapper/UserMapper.java
49096aaa838c654d813b562df69754b01e79acc3
[]
no_license
Lucarun/tribune
13a241b11e3d1bb514f724f1a37eebeb33746cbf
868715675841460a78c94015b3d5d96016a1dd19
refs/heads/master
2021-01-16T04:17:59.394511
2020-02-25T10:38:29
2020-02-25T10:38:29
242,973,104
0
0
null
null
null
null
UTF-8
Java
false
false
155
java
package com.london.tribune.mapper; import com.london.tribune.model.User; public interface UserMapper { User selectByPrimaryKey(Integer id); }
[ "hzz187152*" ]
hzz187152*
d11639411368704e262ed29455e4407dd69dffc9
83ccb09907cdb89f54ea73970632e8cfa89be150
/app/src/main/java/com/example/ecole/xeniontd/Annimation/AnnimationMissile.java
67e4a7e053fd1a706b978c0c76ec58c5a12e1e2d
[ "MIT" ]
permissive
Joramt/XenionTD
2f2355e88876f0bae4b1122ff92486f1a4ae35ba
c555b8fd633d303cd7fc51978fa9f16f2f4e0fbe
refs/heads/master
2021-08-19T10:57:08.114856
2017-11-26T00:54:50
2017-11-26T00:54:50
110,484,728
0
0
null
null
null
null
UTF-8
Java
false
false
5,575
java
package com.example.ecole.xeniontd.Annimation; import android.content.Context; import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Matrix; import android.graphics.Paint; import android.os.Handler; import android.util.Log; import android.view.View; import android.widget.RelativeLayout; import com.example.ecole.xeniontd.Views.Monsters; import com.example.ecole.xeniontd.entities.Tower; /** * Created by Bouach Omar on 13/01/2016. */ public class AnnimationMissile extends View implements Runnable { Bitmap missile; public static int compteur = 0; double step; float xmissileInitiale; // besoin de cette variable pour tracer la courbe (courbe : y =a*x on va boucler de xmissileInitiale ==> xcible) float ymissileInitiale; // besoin de cette variable pour tracer la courbe (courbe : y =a*x on va boucler de xmissileInitiale ==> xcible) float xCibleInitiale; // besoin de cette variable pour tracer la courbe (courbe : y =a*x on va boucler de xmissileInitiale ==> xcible) float yCibleInitaile; // besoin de cette variable pour tracer la courbe (courbe : y =a*x on va boucler de xmissileInitiale ==> xcible) float xmissile; float ymissile; float xcible; float ycible; float missileSize; float xcible1; // coord x cible dans nouveau repère float ycible1; // coord y cible dans nouveau repère float a; // pour tracer la courbe y = a * x float x = 0; // pour tracer la courbe y = a * x float y = 0; // pour tracer la courbe y = a * x double angle; Handler handler; Tower t; Monsters m; final RelativeLayout rl; //Le Layout Conteneur public AnnimationMissile(Context context, Handler handler, float xmissile, float ymissile, float xcible, float ycible, RelativeLayout rl, Bitmap bitmap, int step, Tower t, Monsters m) { super(context); missile = bitmap; this.handler = handler; this.xmissile = xmissile; this.ymissile = ymissile; this.xcible = xcible; this.ycible = ycible; xmissileInitiale = xmissile; ymissileInitiale = ymissile; xCibleInitiale = xcible; yCibleInitaile = ycible; xcible1 = xcible - xmissile; ycible1 = ycible * -1 + ymissile; this.t = t; this.m = m; missileSize = 80; t.setCanShot(false); if (xcible1 != 0) { this.step = Math.abs(xmissile - xcible) / step; a = ycible1 / xcible1; angle = Math.abs(ymissile - ycible) / (Math.sqrt(Math.pow(ymissile - ycible, 2) + Math.pow(xcible - xmissile, 2))); double angleInRadians = Math.asin(angle); double angleInDegrees = angleInRadians / Math.PI * 180; Log.d("angle : ", "" + angle); Log.d("angle en degré : ", "" + angleInDegrees); if (xcible > xmissile) if (ycible >= ymissile) missile = RotateBitmap(missile, (float) angleInDegrees); else missile = RotateBitmap(missile,-1*(float) angleInDegrees ); else if (ycible >= ymissile) missile = RotateBitmap(missile, 180 - (float) angleInDegrees); else missile = RotateBitmap(missile, 180 + (float) angleInDegrees); } else { a = 0; this.step = Math.abs(ymissile - ycible) / step; if (ymissile >= ycible) missile = RotateBitmap(missile, (float) -90); else missile = RotateBitmap(missile, (float) 90); } setWillNotDraw(false); this.rl = rl; rl.addView(this); handler.post(this); } @Override protected void onDraw(Canvas canvas) { canvas.drawBitmap(missile, xmissile, ymissile, new Paint(Color.WHITE)); } @Override public void run() { if (a == 0) { if (ymissileInitiale < yCibleInitaile) { compteur++; ymissile += step; invalidate(); Log.d("Compteur : ", "" + AnnimationMissile.compteur); if (ymissile < ycible) { handler.postDelayed(this, 10); } } else { compteur++; ymissile -= step; invalidate(); Log.d("Compteur : ", "" + AnnimationMissile.compteur); if (ymissile > ycible) { handler.postDelayed(this, 10); } } } else { compteur++; y = a * x; xmissile = x + xmissileInitiale; ymissile = y * -1 + ymissileInitiale; invalidate(); x += (xmissileInitiale - xcible > 0) ? -step : step; // Log.d("Compteur : ", "" + AnnimationMissile.compteur); if (!(Math.abs(x) > Math.abs(xmissileInitiale - xcible + missileSize))) handler.postDelayed(this, 10); else { rl.removeView(this); t.setCanShot(true); m.doDamage(t.getDmg()); if(t.getStyle() == 2) m.setFPS(150); } } } public final Bitmap RotateBitmap(Bitmap source, float angle) { Matrix matrix = new Matrix(); matrix.postRotate(angle); return Bitmap.createBitmap(source, 0, 0, source.getWidth(), source.getHeight(), matrix, true); } }
[ "jorel.amthor@gmail.com" ]
jorel.amthor@gmail.com
02ff73ba84c41eeb8edf9fd12e7c248fb636a14f
387d0ceea572b9080bff8518456e94130a5f6800
/src/gui/dialog/edit/EditButtonPanel.java
2ce2c17c6cb676bb2c0b1c6ef7ac74b29bc5fe88
[]
no_license
Pasukaru/Weinverwaltung
9e83d89a264404b32bd36ec4a517a1dc08352acc
0d7cf6f15208115312f456ba3c3732ffd7c83a5f
refs/heads/master
2020-06-02T20:15:42.490059
2014-02-27T20:08:20
2014-02-27T20:08:20
null
0
0
null
null
null
null
UTF-8
Java
false
false
564
java
package gui.dialog.edit; import java.awt.FlowLayout; import javax.swing.JButton; import javax.swing.JPanel; import model.Model; public class EditButtonPanel<T extends Model> extends JPanel { private static final long serialVersionUID = -7314612205656147889L; protected JButton saveButton = null; public EditButtonPanel(final EditDialog<T> editDialog) { super(); setLayout(new FlowLayout()); saveButton = new SaveModelButton<T>(editDialog) { private static final long serialVersionUID = -241171922352921487L; }; this.add(saveButton); } }
[ "pascal.ludwig@mantro.net" ]
pascal.ludwig@mantro.net
21f606adc758584e74d276e333468f0de314d211
4daf07b88ac20ed31e83ab0713de0c10dedfb197
/src/main/java/com/shaoqunliu/utils/Pair.java
f553f50cfd5f62ea9e4eda28f187eff6447eb21a
[]
no_license
LiuinStein/CILManagement-Server
b8e63d285b41e99bf8cc9df6a20b49ea45fdf163
4c2bc729cdd5ede84cac8cda89fb1c09b279eaf3
refs/heads/dev
2021-04-30T07:17:42.828791
2018-04-25T00:45:03
2018-04-25T00:45:03
121,390,843
2
1
null
2018-04-23T03:04:02
2018-02-13T14:15:40
Java
UTF-8
Java
false
false
574
java
package com.shaoqunliu.utils; public class Pair<A, B> { private A first; private B second; public Pair(A first, B second) { this.first = first; this.second = second; } public static <A, B> Pair pairBuilder(A first, B second) { return new Pair<>(first, second); } public A getFirst() { return first; } public void setFirst(A first) { this.first = first; } public B getSecond() { return second; } public void setSecond(B second) { this.second = second; } }
[ "liuinstein@163.com" ]
liuinstein@163.com
71eb3dfe172248e00a87aaf31a16cae35e6ecff7
082262b4f86464e9929ab8db2436bfc609db700e
/app/src/main/java/com/example/permisos/MainActivity.java
7eb72003c3106827bec49811f05c3a314646b50e
[]
no_license
MariluRomero13/Permisos
dcf90d13e77be476c8a232a61cf077e6fd859869
d7a7a767b7366bbfaded79e6a42c93c58bb606fe
refs/heads/master
2020-04-24T07:12:46.681867
2019-03-24T23:45:33
2019-03-24T23:45:33
171,791,320
0
0
null
null
null
null
UTF-8
Java
false
false
6,709
java
package com.example.permisos; import android.Manifest; import android.content.pm.PackageManager; import android.os.Build; import android.support.annotation.NonNull; import android.support.v4.app.ActivityCompat; import android.support.v4.content.ContextCompat; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.CompoundButton; import android.widget.Switch; import android.widget.Toast; public class MainActivity extends AppCompatActivity { Switch camaraSwitch, audioSwitch, ubicacionSwitch; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); camaraSwitch = findViewById(R.id.camaraSwitch); audioSwitch = findViewById(R.id.audioSwitch); ubicacionSwitch = findViewById(R.id.ubicacionSwitch); permisoCamara(); permisoUbicacion(); permisoAudio(); View.OnClickListener click = new View.OnClickListener() { @Override public void onClick(View v) { switch (v.getId()) { case R.id.camaraSwitch: permisoCamara(); break; case R.id.audioSwitch: permisoAudio(); break; case R.id.ubicacionSwitch: permisoUbicacion(); break; } } }; camaraSwitch.setOnClickListener(click); audioSwitch.setOnClickListener(click); ubicacionSwitch.setOnClickListener(click); } @Override public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { switch (requestCode) { case 1: if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) { Toast.makeText(this, "Permiso de cámara aceptado :D", Toast.LENGTH_SHORT).show(); camaraSwitch.setChecked(true); } else { Toast.makeText(this, "Permiso de cámara rechazado D:", Toast.LENGTH_SHORT).show(); camaraSwitch.setChecked(false); } break; case 2: if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) { Toast.makeText(this, "Permiso de internet aceptado :D", Toast.LENGTH_SHORT).show(); audioSwitch.setChecked(true); } else { Toast.makeText(this, "Permiso de internet rechazado :c", Toast.LENGTH_SHORT).show(); audioSwitch.setChecked(false); } break; case 3: if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) { Toast.makeText(this, "Permiso de ubicación aceptado :D", Toast.LENGTH_SHORT).show(); ubicacionSwitch.setChecked(true); } else { Toast.makeText(this, "Permiso de ubicación rechazado :c", Toast.LENGTH_SHORT).show(); ubicacionSwitch.setChecked(false); } break; } } public void permisoCamara() { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { if (ActivityCompat.checkSelfPermission(MainActivity.this, Manifest.permission.CAMERA) != PackageManager.PERMISSION_GRANTED) { if (ActivityCompat.shouldShowRequestPermissionRationale(MainActivity.this,Manifest.permission.CAMERA)) { String[] lp = new String[]{Manifest.permission.CAMERA}; ActivityCompat.requestPermissions(MainActivity.this, lp, 1); camaraSwitch.setChecked(false); } else { String[] lp = new String[] {Manifest.permission.CAMERA}; ActivityCompat.requestPermissions(MainActivity.this,lp,1); camaraSwitch.setChecked(false); } } else { camaraSwitch.setChecked(true); } } } public void permisoAudio() { if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { if (ActivityCompat.checkSelfPermission(MainActivity.this, Manifest.permission.RECORD_AUDIO) != PackageManager.PERMISSION_GRANTED) { if (ActivityCompat.shouldShowRequestPermissionRationale(MainActivity.this,Manifest.permission.RECORD_AUDIO)) { String[] lp = new String[]{Manifest.permission.RECORD_AUDIO}; ActivityCompat.requestPermissions(MainActivity.this, lp, 2); audioSwitch.setChecked(false); } else { String[] lp = new String[] {Manifest.permission.RECORD_AUDIO}; ActivityCompat.requestPermissions(MainActivity.this,lp,2); audioSwitch.setChecked(false); } } else { audioSwitch.setChecked(true); } } } public void permisoUbicacion() { if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { if (ActivityCompat.checkSelfPermission(MainActivity.this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) { if (ActivityCompat.shouldShowRequestPermissionRationale(MainActivity.this,Manifest.permission.ACCESS_FINE_LOCATION)) { Toast.makeText(MainActivity.this, "Aceptalo", Toast.LENGTH_SHORT).show(); String[] lp = new String[]{Manifest.permission.ACCESS_FINE_LOCATION}; ActivityCompat.requestPermissions(MainActivity.this, lp, 3); ubicacionSwitch.setChecked(false); } else { String[] lp = new String[] {Manifest.permission.ACCESS_FINE_LOCATION}; ActivityCompat.requestPermissions(MainActivity.this,lp,3); ubicacionSwitch.setChecked(false); } } else { ubicacionSwitch.setChecked(true); } } } }
[ "romeromarilu13@gmail.com" ]
romeromarilu13@gmail.com
15abad8a5721cc66c140db742c0b6b59d2c5c1d6
8af1164bac943cef64e41bae312223c3c0e38114
/results-java/JetBrains--intellij-community/6169cf7a3eaaef7222f6ac51b4a7fc0261dceb00/after/RearrangementResult7.java
052a8d24a7c35c0238058e4aceb9df507f95f361
[]
no_license
fracz/refactor-extractor
3ae45c97cc63f26d5cb8b92003b12f74cc9973a9
dd5e82bfcc376e74a99e18c2bf54c95676914272
refs/heads/master
2021-01-19T06:50:08.211003
2018-11-30T13:00:57
2018-11-30T13:00:57
87,353,478
0
0
null
null
null
null
UTF-8
Java
false
false
390
java
import java.util.Comparator; public class RearrangementTest7 { Comparator c = new Comparator() { public int compare(Object o, Object o1) { return 0; //To change body of implemented methods use Options | File Templates. } public boolean equals(Object o) { return false; //To change body of implemented methods use Options | File Templates. } }; int f; }
[ "fraczwojciech@gmail.com" ]
fraczwojciech@gmail.com
292eefb3c26c07b509a8475258f38eaebafca887
a4f182c714397b2097f20498497c9539fa5a527f
/app/src/main/java/com/lzyyd/hsq/qrcode/camera/AutoFocusManager.java
99a9250b5ce12e658e6c59ac5c10729156232937
[]
no_license
lilinkun/lzy
de36d9804603c293ffcb62c64c50afea88679192
80a646a16cf605795940449108fd848c0b0ecd17
refs/heads/master
2023-02-19T06:15:51.089562
2021-01-13T08:52:30
2021-01-13T08:52:30
288,416,310
0
0
null
null
null
null
UTF-8
Java
false
false
4,251
java
/* * Copyright (C) 2012 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.lzyyd.hsq.qrcode.camera; import android.annotation.SuppressLint; import android.content.Context; import android.content.SharedPreferences; import android.hardware.Camera; import android.os.AsyncTask; import android.preference.PreferenceManager; import android.util.Log; import com.lzyyd.hsq.qrcode.android.PreferencesActivity; import java.util.ArrayList; import java.util.Collection; import java.util.concurrent.RejectedExecutionException; /** * 自动聚焦 * @author qichunjie * */ final class AutoFocusManager implements Camera.AutoFocusCallback { private static final String TAG = AutoFocusManager.class.getSimpleName(); private static final long AUTO_FOCUS_INTERVAL_MS = 2000L; private static final Collection<String> FOCUS_MODES_CALLING_AF; static { FOCUS_MODES_CALLING_AF = new ArrayList<String>(2); FOCUS_MODES_CALLING_AF.add(Camera.Parameters.FOCUS_MODE_AUTO); FOCUS_MODES_CALLING_AF.add(Camera.Parameters.FOCUS_MODE_MACRO); } private boolean stopped; private boolean focusing; private final boolean useAutoFocus; private final Camera camera; private AsyncTask<?,?,?> outstandingTask; AutoFocusManager(Context context, Camera camera) { this.camera = camera; SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(context); String currentFocusMode = camera.getParameters().getFocusMode(); useAutoFocus = sharedPrefs.getBoolean(PreferencesActivity.KEY_AUTO_FOCUS, true) && FOCUS_MODES_CALLING_AF.contains(currentFocusMode); Log.i(TAG, "Current focus mode '" + currentFocusMode + "'; use auto focus? " + useAutoFocus); start(); } @Override public synchronized void onAutoFocus(boolean success, Camera theCamera) { focusing = false; autoFocusAgainLater(); } @SuppressLint("NewApi") private synchronized void autoFocusAgainLater() { if (!stopped && outstandingTask == null) { AutoFocusTask newTask = new AutoFocusTask(); try { newTask.execute(); outstandingTask = newTask; } catch (RejectedExecutionException ree) { Log.w(TAG, "Could not request auto focus", ree); } } } synchronized void start() { if (useAutoFocus) { outstandingTask = null; if (!stopped && !focusing) { try { camera.autoFocus(this); focusing = true; } catch (RuntimeException re) { // Have heard RuntimeException reported in Android 4.0.x+; continue? Log.w(TAG, "Unexpected exception while focusing", re); // Try again later to keep cycle going autoFocusAgainLater(); } } } } private synchronized void cancelOutstandingTask() { if (outstandingTask != null) { if (outstandingTask.getStatus() != AsyncTask.Status.FINISHED) { outstandingTask.cancel(true); } outstandingTask = null; } } synchronized void stop() { stopped = true; if (useAutoFocus) { cancelOutstandingTask(); // Doesn't hurt to call this even if not focusing try { camera.cancelAutoFocus(); } catch (RuntimeException re) { // Have heard RuntimeException reported in Android 4.0.x+; continue? Log.w(TAG, "Unexpected exception while cancelling focusing", re); } } } private final class AutoFocusTask extends AsyncTask<Object, Object, Object> { @Override protected Object doInBackground(Object... voids) { try { Thread.sleep(AUTO_FOCUS_INTERVAL_MS); } catch (InterruptedException e) { // continue } start(); return null; } } }
[ "294561531@qq.com" ]
294561531@qq.com
db4a433f6085df1f23906136cb00c4d35ccca6fc
d21a74deb5b9b435ad7ca872521de96eb5f7ac79
/src/main/java/org/mdw/stc/repository/mongo/MIDAccesoRepository.java
8145d2abffc1d17f9743cbd8de4971025ade5e60
[]
no_license
JimyCoxRocha/codigoReutilizableIntegracion
2d970c73a9e744b9129505c25828df52d9cf53e6
ac37b5d52a696efbb0a85f25fb7ba200233a57ee
refs/heads/main
2023-08-11T08:17:25.363224
2021-09-19T23:02:15
2021-09-19T23:02:15
408,255,824
0
0
null
null
null
null
UTF-8
Java
false
false
503
java
package org.mdw.stc.repository.mongo; import java.util.List; import org.mdw.stc.entity.mongo.MIDAccesoEntity; import org.springframework.data.mongodb.repository.MongoRepository; import org.springframework.stereotype.Repository; @Repository public interface MIDAccesoRepository extends MongoRepository<MIDAccesoEntity, String> { List<MIDAccesoEntity> findByCodigoModuloAndCodigoServicio(String codigoModulo, String codigoServicio); List<MIDAccesoEntity> findByCodigoModulo(String codigoModulo); }
[ "terraxted@hotmail.com" ]
terraxted@hotmail.com
d00bfec47dcbf3ceb7994e77d88968ed9cad9336
93715089617268aba30807346c9f67e497741861
/app/src/main/java/com/omninos/gwappprovider/modelClasses/CheckSocialLoginModel.java
d3a50f74728cc82ff0db3baae415ac83f3ca3fe7
[]
no_license
manjhi/GwappProvider
241fb9d763e0c9f82b35609a370a67cfa09734aa
ab4b770b432cf1447c6f29a6f4608e7f4198d4ee
refs/heads/master
2020-04-28T20:35:45.111881
2019-03-14T05:22:43
2019-03-14T05:22:43
175,550,117
0
0
null
null
null
null
UTF-8
Java
false
false
7,301
java
package com.omninos.gwappprovider.modelClasses; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; public class CheckSocialLoginModel { @SerializedName("success") @Expose private String success; @SerializedName("message") @Expose private String message; @SerializedName("details") @Expose private Details details; public String getSuccess() { return success; } public void setSuccess(String success) { this.success = success; } public String getMessage() { return message; } public void setMessage(String message) { this.message = message; } public Details getDetails() { return details; } public void setDetails(Details details) { this.details = details; } public class Details { @SerializedName("id") @Expose private String id; @SerializedName("social_id") @Expose private String socialId; @SerializedName("username") @Expose private String username; @SerializedName("email") @Expose private String email; @SerializedName("password") @Expose private String password; @SerializedName("phone") @Expose private String phone; @SerializedName("idNumber") @Expose private String idNumber; @SerializedName("expiryDate") @Expose private String expiryDate; @SerializedName("image") @Expose private String image; @SerializedName("latitude") @Expose private String latitude; @SerializedName("longitude") @Expose private String longitude; @SerializedName("serviceType") @Expose private String serviceType; @SerializedName("driverLicence") @Expose private String driverLicence; @SerializedName("insurance") @Expose private String insurance; @SerializedName("workQualification") @Expose private String workQualification; @SerializedName("serviceId") @Expose private String serviceId; @SerializedName("subServiceId") @Expose private String subServiceId; @SerializedName("otp") @Expose private String otp; @SerializedName("phoneVerifyStatus") @Expose private String phoneVerifyStatus; @SerializedName("reg_id") @Expose private String regId; @SerializedName("device_type") @Expose private String deviceType; @SerializedName("login_type") @Expose private String loginType; @SerializedName("created") @Expose private String created; @SerializedName("updated") @Expose private String updated; public String getId() { return id; } public void setId(String id) { this.id = id; } public String getSocialId() { return socialId; } public void setSocialId(String socialId) { this.socialId = socialId; } public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public String getPhone() { return phone; } public void setPhone(String phone) { this.phone = phone; } public String getIdNumber() { return idNumber; } public void setIdNumber(String idNumber) { this.idNumber = idNumber; } public String getExpiryDate() { return expiryDate; } public void setExpiryDate(String expiryDate) { this.expiryDate = expiryDate; } public String getImage() { return image; } public void setImage(String image) { this.image = image; } public String getLatitude() { return latitude; } public void setLatitude(String latitude) { this.latitude = latitude; } public String getLongitude() { return longitude; } public void setLongitude(String longitude) { this.longitude = longitude; } public String getServiceType() { return serviceType; } public void setServiceType(String serviceType) { this.serviceType = serviceType; } public String getDriverLicence() { return driverLicence; } public void setDriverLicence(String driverLicence) { this.driverLicence = driverLicence; } public String getInsurance() { return insurance; } public void setInsurance(String insurance) { this.insurance = insurance; } public String getWorkQualification() { return workQualification; } public void setWorkQualification(String workQualification) { this.workQualification = workQualification; } public String getServiceId() { return serviceId; } public void setServiceId(String serviceId) { this.serviceId = serviceId; } public String getSubServiceId() { return subServiceId; } public void setSubServiceId(String subServiceId) { this.subServiceId = subServiceId; } public String getOtp() { return otp; } public void setOtp(String otp) { this.otp = otp; } public String getPhoneVerifyStatus() { return phoneVerifyStatus; } public void setPhoneVerifyStatus(String phoneVerifyStatus) { this.phoneVerifyStatus = phoneVerifyStatus; } public String getRegId() { return regId; } public void setRegId(String regId) { this.regId = regId; } public String getDeviceType() { return deviceType; } public void setDeviceType(String deviceType) { this.deviceType = deviceType; } public String getLoginType() { return loginType; } public void setLoginType(String loginType) { this.loginType = loginType; } public String getCreated() { return created; } public void setCreated(String created) { this.created = created; } public String getUpdated() { return updated; } public void setUpdated(String updated) { this.updated = updated; } } }
[ "manjinder.infosif@gmail.com" ]
manjinder.infosif@gmail.com
968c8670bbbcd887e881793193239ecfd847be3f
128da67f3c15563a41b6adec87f62bf501d98f84
/com/emt/proteus/duchampopt/stream_read.java
da8c7b71531b21e15fc3341166bf81538702d7fb
[]
no_license
Creeper20428/PRT-S
60ff3bea6455c705457bcfcc30823d22f08340a4
4f6601fb0dd00d7061ed5ee810a3252dcb2efbc6
refs/heads/master
2020-03-26T03:59:25.725508
2018-08-12T16:05:47
2018-08-12T16:05:47
73,244,383
0
0
null
null
null
null
UTF-8
Java
false
false
2,506
java
/* */ package com.emt.proteus.duchampopt; /* */ /* */ import com.emt.proteus.runtime.api.Env; /* */ import com.emt.proteus.runtime.api.Frame; /* */ import com.emt.proteus.runtime.api.Function; /* */ import com.emt.proteus.runtime.api.ImplementedFunction; /* */ /* */ public final class stream_read extends ImplementedFunction /* */ { /* */ public static final int FNID = 3022; /* 11 */ public static final Function _instance = new stream_read(); /* 12 */ public final Function resolve() { return _instance; } /* */ /* 14 */ public stream_read() { super("stream_read", 3, false); } /* */ /* */ public int execute(int paramInt1, int paramInt2, int paramInt3) /* */ { /* 18 */ return call(paramInt1, paramInt2, paramInt3); /* */ } /* */ /* */ public int execute(Env paramEnv, Frame paramFrame, int paramInt1, int paramInt2, int paramInt3, int[] paramArrayOfInt, int paramInt4) /* */ { /* 23 */ int i = paramFrame.getI32(paramArrayOfInt[paramInt4]); /* 24 */ paramInt4 += 2; /* 25 */ paramInt3--; /* 26 */ int j = paramFrame.getI32(paramArrayOfInt[paramInt4]); /* 27 */ paramInt4 += 2; /* 28 */ paramInt3--; /* 29 */ int k = paramFrame.getI32(paramArrayOfInt[paramInt4]); /* 30 */ paramInt4 += 2; /* 31 */ paramInt3--; /* 32 */ int m = call(i, j, k); /* 33 */ paramFrame.setI32(paramInt1, m); /* 34 */ return paramInt4; /* */ } /* */ /* */ public static int call(int paramInt1, int paramInt2, int paramInt3) /* */ { /* 39 */ int i = 0; /* */ /* */ /* */ /* */ /* */ try /* */ { /* 46 */ if (paramInt1 != 1) { /* */ break label53; /* */ } /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* 56 */ i = com.emt.proteus.runtime.api.SystemLibrary.fread(paramInt2, 1, paramInt3, com.emt.proteus.runtime.api.MainMemory.getI32Aligned(1792)) == paramInt3 ? 0 : 107; /* */ /* */ /* */ break label60; /* */ /* */ label53: /* */ /* 63 */ i = 1; /* */ /* */ /* */ label60: /* */ /* */ /* 69 */ int j = i; return j; /* */ } /* */ finally {} /* */ } /* */ } /* Location: /home/jkim13/Desktop/emediatrack/codejar_s.jar!/com/emt/proteus/duchampopt/stream_read.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "kimjoey79@gmail.com" ]
kimjoey79@gmail.com
b6ed44e7e262377a76b83b0db5c3236e4ced8de8
a76aa805b0ded71812e64de5f580711ef937712b
/allocation/allocation/src/main/java/com/example/allocation/Order/CustomerDetailsDto.java
39741ee1badda32e78cd1ff29b979a32d78d9eb1
[]
no_license
VIVEKPATHI24/Item
a59f9782a281c03c4d44311c3a6fc2fced3f5778
96a52b96fdd2616f0894f8e76ca25ffe27e72dac
refs/heads/master
2020-08-14T17:17:18.682099
2019-10-18T08:29:18
2019-10-18T08:29:18
215,206,436
0
0
null
null
null
null
UTF-8
Java
false
false
1,179
java
package com.example.allocation.Order; public class CustomerDetailsDto { private Long id; private String customerFirstName; private String CustomerLastName; private Long customerPhone; private String customerEmail; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getCustomerFirstName() { return customerFirstName; } public void setCustomerFirstName(String customerFirstName) { this.customerFirstName = customerFirstName; } public String getCustomerLastName() { return CustomerLastName; } public void setCustomerLastName(String customerLastName) { CustomerLastName = customerLastName; } public Long getCustomerPhone() { return customerPhone; } public void setCustomerPhone(Long customerPhone) { this.customerPhone = customerPhone; } public String getCustomerEmail() { return customerEmail; } public void setCustomerEmail(String customerEmail) { this.customerEmail = customerEmail; } }
[ "noreply@github.com" ]
VIVEKPATHI24.noreply@github.com
79c66653337efb562ec9f0930df22c59353524ec
e11eb38b177de37db6f3e3c8d0135994ef3bc37d
/src/main/java/com/leet/learn/dijkstra/Result.java
abb44c2b4b2f58ca3301dfff7b65f241454ba79e
[]
no_license
HasanTusher/leetNetwork
2a51116b86732a9473c9627b7d9ef83a04bda337
03dd0ac934f5dbeff14930504a9b8bfbf0661929
refs/heads/master
2023-07-15T11:10:58.052537
2021-08-24T11:43:38
2021-08-24T11:43:38
null
0
0
null
null
null
null
UTF-8
Java
false
false
929
java
package com.leet.learn.dijkstra; import java.util.ArrayList; import java.util.List; public class Result { int cost; int iteration; List<Integer> traversed; public Result() { this.traversed = new ArrayList<Integer>(); } public List<Integer> getTraversed() { return traversed; } public void setTraversed(List<Integer> traversed) { this.traversed = traversed; } public int getCost() { return cost; } public void setCost(int cost) { this.cost = cost; } public int getIteration() { return iteration; } public void setIteration(int iteration) { this.iteration = iteration; } @Override public String toString() { return "Result{" + "cost=" + cost + ", iteration=" + iteration + ", integerList=" + traversed + '}'; } }
[ "hasan.md@genweb2.com" ]
hasan.md@genweb2.com
f3cbfb8be6a23b4544a4f0fb61c71b1f630381f7
76a427a6ef845dd58a17b696db965d9cf3e90080
/src/test/java/bootcamp/GreetingControllerTests.java
a1aac6f09fb45923665c750516132f15bff18233
[]
no_license
bryantbeeler/trainstation
7c293ae920954e40c2899f93143927cf2daa8260
e96267a42a052bdef979b87d238da24119ecd630
refs/heads/master
2020-03-20T21:41:00.016942
2018-03-29T15:09:13
2018-03-29T15:09:13
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,528
java
package bootcamp; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; import static org.springframework.test.web.servlet.result.MockMvcResultHandlers.print; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; import org.springframework.test.web.servlet.MockMvc; @RunWith(SpringRunner.class) @SpringBootTest @AutoConfigureMockMvc public class GreetingControllerTests { @Autowired private MockMvc mockMvc; @Test public void noParamGreetingShouldReturnDefaultMessage() throws Exception { this.mockMvc.perform(get("/atlanta")).andDo(print()).andExpect(status().isOk()) .andExpect(jsonPath("$.content").value("Miami, Houston, New York, Denver, Chicago")); } // @Test // public void paramGreetingShouldReturnTailoredMessage() throws Exception { // // this.mockMvc.perform(get("/greeting").param("name", "Spring Community")) // .andDo(print()).andExpect(status().isOk()) // .andExpect(jsonPath("$.content").value("Hello, Spring Community!")); // } }
[ "tcampb30@gmail.com" ]
tcampb30@gmail.com
b31a0160cc5b966202591a68e41c3e5164db2779
fa99a32eb182ec28117167a8d47b63f12cbc59bf
/ProcjectRemind/src/main/java/com/re/mind/vo/wayMain.java
a52ee78809bdeff53560413a8252080a7240b0a2
[]
no_license
ehdnrlee/prore
440d9c680624a330aec5669dbf2222100b9d6f4f
3daf4b981bbe6a588e21d3592212c7f1a0ebe2c7
refs/heads/master
2020-05-01T15:31:06.504262
2019-03-27T19:52:50
2019-03-27T19:52:50
177,548,614
0
0
null
null
null
null
UTF-8
Java
false
false
56
java
package com.re.mind.vo; public class wayMain { }
[ "dlehdnrzld@gmail.com" ]
dlehdnrzld@gmail.com
e9b9240675d45a3f4248fbeea12b4941bba14f53
3ee0cae6f47ef0e70c90b98a6cbad09cf3f26c02
/GoldsGym/src/com/emgeesons/goldsgym/Trainer.java
56699db039773aaec187478ff3ede62709773a5e
[]
no_license
Emgeesons/Golds-Gym-Android
1a44bff8d2075206664a0f2992bec5a3b12ed960
8c0deaa13f64a12e52dbf9903bbe1e1d1a6521a6
refs/heads/master
2021-01-22T04:49:41.467366
2014-07-18T06:10:01
2014-07-18T06:10:01
21,969,637
0
0
null
null
null
null
UTF-8
Java
false
false
7,559
java
package com.emgeesons.goldsgym; import android.annotation.SuppressLint; import java.util.HashMap; import java.util.Map; @SuppressLint("UseSparseArrays") public class Trainer { protected static Map <Integer, String> weightLossMonthlyMap, weightLossMMonthlyMap, weightGainMonthlyMap, weightGainMMonthlyMap; // program protected static String[] weeklyBasic1, weeklyBasic2, weeklyIntermediate1, weeklyIntermediate2, weeklyAdvance1, weeklyAdvance2, vacationFunctional1, weeklyBasic2NC, weeklyAdvance1NC, functional1, functional2; //weekly protected static void weightLossMonthlyMap(){ weightLossMonthlyMap = new HashMap<Integer, String>(); weightLossMonthlyMap.put(1,"Basic 1"); weightLossMonthlyMap.put(2,"Basic 2"); weightLossMonthlyMap.put(3,"Basic 2"); weightLossMonthlyMap.put(4,"Intermediate 1"); weightLossMonthlyMap.put(5,"Intermediate 1"); weightLossMonthlyMap.put(6,"Intermediate 1"); weightLossMonthlyMap.put(7,"Advance 1"); weightLossMonthlyMap.put(8,"Advance 1"); weightLossMonthlyMap.put(9,"Advance 1"); } protected static void weightLossMMonthlyMap(){ weightLossMMonthlyMap = new HashMap<Integer, String>(); weightLossMMonthlyMap.put(1,"Basic 1"); weightLossMMonthlyMap.put(2,"Basic 2"); weightLossMMonthlyMap.put(3,"Intermediate 1"); weightLossMMonthlyMap.put(4,"Intermediate 2"); weightLossMMonthlyMap.put(5,"Advance 1"); weightLossMMonthlyMap.put(6,"Advance 2"); weightLossMMonthlyMap.put(7,"Functional Training 1"); weightLossMMonthlyMap.put(8,"Functional Training 2"); weightLossMMonthlyMap.put(0,"Functional Training 2"); weightLossMMonthlyMap.put(9,"Functional Training 2"); } protected static void weightGainMonthlyMap(){ weightGainMonthlyMap = new HashMap<Integer, String>(); weightGainMonthlyMap.put(1,"Basic 1"); weightGainMonthlyMap.put(2,"Basic 2 (NC)"); weightGainMonthlyMap.put(3,"Intermediate 1"); weightGainMonthlyMap.put(4,"Intermediate 2"); weightGainMonthlyMap.put(5,"Advance 1 (NC)"); weightGainMonthlyMap.put(6,"Advance 2"); weightGainMonthlyMap.put(7,"Function Training 2"); weightGainMonthlyMap.put(8,"Function Training 2"); weightGainMonthlyMap.put(9,"Function Training 2"); } protected static void weightGainMMonthlyMap(){ weightGainMMonthlyMap = new HashMap<Integer, String>(); weightGainMMonthlyMap.put(1,"Basic 1"); weightGainMMonthlyMap.put(2,"Basic 2 (NC)"); weightGainMMonthlyMap.put(3,"Intermediate 1"); weightGainMMonthlyMap.put(4,"Intermediate 2"); weightGainMMonthlyMap.put(5,"Advance 1 (NC)"); weightGainMMonthlyMap.put(6,"Advance 2"); weightGainMMonthlyMap.put(7,"Function Training 2"); weightGainMMonthlyMap.put(8,"Function Training 1"); weightGainMMonthlyMap.put(0,"Function Training 1"); weightGainMMonthlyMap.put(9,"Function Training 1"); } //Monday is day 0 and Sunday is Day 6 protected static void weeklyBasic1(){ weeklyBasic1 = new String[7]; weeklyBasic1[0]="Cardio"; weeklyBasic1[1]="Whole Body Resistance Training"; weeklyBasic1[2]="Rest"; weeklyBasic1[3]="Cardio"; weeklyBasic1[4]="Whole Body Resistance Training"; weeklyBasic1[5]="Cardio"; weeklyBasic1[6]="Rest"; } protected static void weeklyBasic2(){ weeklyBasic2 = new String[7]; weeklyBasic2[0]="Lower Body Resistance Training"; weeklyBasic2[1]="Upper Body Resistance Training"; weeklyBasic2[2]="Cardio & Abs"; weeklyBasic2[3]="Rest"; weeklyBasic2[4]="Lower Body Resistance Training"; weeklyBasic2[5]="Upper Body Resistance Training"; weeklyBasic2[6]="Cardio / Rest"; } protected static void weeklyIntermediate1(){ weeklyIntermediate1 = new String[7]; weeklyIntermediate1[0]="Lower Body Resistance Training"; weeklyIntermediate1[1]="Upper Body Resistance Training (Back + Biceps)"; weeklyIntermediate1[2]="Cardio & Core (Abs)"; weeklyIntermediate1[3]="Rest"; weeklyIntermediate1[4]="Upper Body Resistance Training (Chest + Shoulder + Triceps)"; weeklyIntermediate1[5]="Cardio & Core (Abs)"; weeklyIntermediate1[6]="Rest"; } //There is a catch in this one - week 1 and week 3 have the same schedule. week 2 and week 4 have the same schedule. What do you do about week 5 protected static void weeklyIntermediate2(){ weeklyIntermediate2 = new String[14]; weeklyIntermediate2[0]="Chest, Shoulders & Triceps + Quads & Calves"; weeklyIntermediate2[1]="Rest"; weeklyIntermediate2[2]="Back & Biceps + Hamstrings & Abs"; weeklyIntermediate2[3]="Rest"; weeklyIntermediate2[4]="Chest, Shoulders & Triceps + Quads & Calves"; weeklyIntermediate2[5]="Rest"; weeklyIntermediate2[6]="Rest"; weeklyIntermediate2[7]="Back & Biceps + Hamstrings & Abs"; weeklyIntermediate2[8]="Rest"; weeklyIntermediate2[9]="Chest, Shoulders & Triceps + Quads & Calves"; weeklyIntermediate2[10]="Rest"; weeklyIntermediate2[11]="Back & Biceps + Hamstrings & Abs"; weeklyIntermediate2[12]="Rest"; weeklyIntermediate2[13]="Rest"; } //Still need to be implemented protected static void weeklyAdvance1(){ weeklyAdvance1 = new String[7]; weeklyAdvance1[0]="Lower Body Resistance Training (Legs)"; weeklyAdvance1[1]="Rest"; weeklyAdvance1[2]="Upper Body Resistance Training (back)"; weeklyAdvance1[3]="Cardio & Abs/ Core"; weeklyAdvance1[4]="Upper Body Resistance Training (Chest + Biceps)"; weeklyAdvance1[5]="Rest"; weeklyAdvance1[6]="Upper Body Resistance Training (Shoulder + Triceps)"; } protected static void weeklyAdvance2(){ weeklyAdvance2 = new String[7]; weeklyAdvance2[0]="Lower Body Resistance Training (Legs)"; weeklyAdvance2[1]="Rest"; weeklyAdvance2[2]="Upper Body Resistance Training (back)"; weeklyAdvance2[3]="Cardio & Abs/ Core"; weeklyAdvance2[4]="Upper Body Resistance Training (Chest + Biceps)"; weeklyAdvance2[5]="Rest"; weeklyAdvance2[6]="Upper Body Resistance Training (Shoulder + Triceps)"; } protected static void vacationFunctional1(){ vacationFunctional1 = new String[7]; vacationFunctional1[0]="Exercise"; vacationFunctional1[1]="Rest"; vacationFunctional1[2]="Exercise"; vacationFunctional1[3]="Rest"; vacationFunctional1[4]="Exercise"; vacationFunctional1[5]="Cardio"; vacationFunctional1[6]="Rest"; } protected static void weeklyBasic2NC(){ weeklyBasic2NC = new String[7]; weeklyBasic2NC[0]="Lower Body Resistance Training"; weeklyBasic2NC[1]="Upper Body Resistance Training"; weeklyBasic2NC[2]="Abs"; weeklyBasic2NC[3]="Rest"; weeklyBasic2NC[4]="Lower Body Resistance Training"; weeklyBasic2NC[5]="Upper Body Resistance Training"; weeklyBasic2NC[6]="Rest"; } protected static void weeklyAdvance1NC(){ weeklyAdvance1NC = new String[7]; weeklyAdvance1NC[0]="Lower Body Resistance Training (Legs)"; weeklyAdvance1NC[1]="Rest"; weeklyAdvance1NC[2]="Upper Body Resistance Training (back)"; weeklyAdvance1NC[3]="Abs/ Core"; weeklyAdvance1NC[4]="Upper Body Resistance Training (Chest + Biceps)"; weeklyAdvance1NC[5]="Rest"; weeklyAdvance1NC[6]="Upper Body Resistance Training (Shoulder + Triceps)"; } protected static void functional1(){ functional1 = new String[7]; functional1[0]="Exercise"; functional1[1]="Rest"; functional1[2]="Exercise"; functional1[3]="Rest"; functional1[4]="Exercise"; functional1[5]="Cardio"; functional1[6]="Rest"; } protected static void functional2(){ functional2 = new String[7]; functional2[0]="Exercise"; functional2[1]="Rest"; functional2[2]="Exercise"; functional2[3]="Rest"; functional2[4]="Exercise"; functional2[5]="Cardio"; functional2[6]="Rest"; } }
[ "pavan@emgeesons.com" ]
pavan@emgeesons.com
fc19548e6dfa3e1cec445ae80d392277ace6c5be
d33574802593c6bb49d44c69fc51391f7dc054af
/ShipLinx/src/main/java/com/meritconinc/shiplinx/carrier/ups/ws/ratews/proxy/ErrorDetailType.java
b32dba8164cbfe6f61eeb4f66bcdb702fd93faa5
[]
no_license
mouadaarab/solushipalertmanagement
96734a0ff238452531be7f4d12abac84b88de214
eb4cf67a7fbf54760edd99dc51efa12d74fa058e
refs/heads/master
2021-12-06T06:09:15.559467
2015-10-06T09:00:54
2015-10-06T09:00:54
null
0
0
null
null
null
null
UTF-8
Java
false
false
6,323
java
package com.meritconinc.shiplinx.carrier.ups.ws.ratews.proxy; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for ErrorDetailType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="ErrorDetailType"> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="Severity" type="{http://www.w3.org/2001/XMLSchema}string"/> * &lt;element name="PrimaryErrorCode" type="{http://www.ups.com/XMLSchema/XOLTWS/Error/v1.1}CodeType"/> * &lt;element name="MinimumRetrySeconds" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * &lt;element name="Location" type="{http://www.ups.com/XMLSchema/XOLTWS/Error/v1.1}LocationType" minOccurs="0"/> * &lt;element name="SubErrorCode" type="{http://www.ups.com/XMLSchema/XOLTWS/Error/v1.1}CodeType" maxOccurs="unbounded" minOccurs="0"/> * &lt;element name="AdditionalInformation" type="{http://www.ups.com/XMLSchema/XOLTWS/Error/v1.1}AdditionalInfoType" maxOccurs="unbounded" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ErrorDetailType", namespace = "http://www.ups.com/XMLSchema/XOLTWS/Error/v1.1", propOrder = { "severity", "primaryErrorCode", "minimumRetrySeconds", "location", "subErrorCode", "additionalInformation" }) public class ErrorDetailType { @XmlElement(name = "Severity", required = true) protected String severity; @XmlElement(name = "PrimaryErrorCode", required = true) protected CodeType primaryErrorCode; @XmlElement(name = "MinimumRetrySeconds") protected String minimumRetrySeconds; @XmlElement(name = "Location") protected LocationType location; @XmlElement(name = "SubErrorCode") protected List<CodeType> subErrorCode; @XmlElement(name = "AdditionalInformation") protected List<AdditionalInfoType> additionalInformation; /** * Gets the value of the severity property. * * @return * possible object is * {@link String } * */ public String getSeverity() { return severity; } /** * Sets the value of the severity property. * * @param value * allowed object is * {@link String } * */ public void setSeverity(String value) { this.severity = value; } /** * Gets the value of the primaryErrorCode property. * * @return * possible object is * {@link CodeType } * */ public CodeType getPrimaryErrorCode() { return primaryErrorCode; } /** * Sets the value of the primaryErrorCode property. * * @param value * allowed object is * {@link CodeType } * */ public void setPrimaryErrorCode(CodeType value) { this.primaryErrorCode = value; } /** * Gets the value of the minimumRetrySeconds property. * * @return * possible object is * {@link String } * */ public String getMinimumRetrySeconds() { return minimumRetrySeconds; } /** * Sets the value of the minimumRetrySeconds property. * * @param value * allowed object is * {@link String } * */ public void setMinimumRetrySeconds(String value) { this.minimumRetrySeconds = value; } /** * Gets the value of the location property. * * @return * possible object is * {@link LocationType } * */ public LocationType getLocation() { return location; } /** * Sets the value of the location property. * * @param value * allowed object is * {@link LocationType } * */ public void setLocation(LocationType value) { this.location = value; } /** * Gets the value of the subErrorCode property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the subErrorCode property. * * <p> * For example, to add a new item, do as follows: * <pre> * getSubErrorCode().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link CodeType } * * */ public List<CodeType> getSubErrorCode() { if (subErrorCode == null) { subErrorCode = new ArrayList<CodeType>(); } return this.subErrorCode; } /** * Gets the value of the additionalInformation property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the additionalInformation property. * * <p> * For example, to add a new item, do as follows: * <pre> * getAdditionalInformation().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link AdditionalInfoType } * * */ public List<AdditionalInfoType> getAdditionalInformation() { if (additionalInformation == null) { additionalInformation = new ArrayList<AdditionalInfoType>(); } return this.additionalInformation; } }
[ "harikrishnan.r@mitosistech.com" ]
harikrishnan.r@mitosistech.com
8bebc8452a7457b9eedabde84c739f0c459da459
2bb00993213018c38297d7ea614f1fc510c80275
/prueba1/src/prueba1/Principal.java
c2f27567d1b0b98e7d0455d0a000a89ef17c4a8e
[]
no_license
JesusGL95/Proyecto1
c430064644a1b83c72c96ed6de1411962032f5b3
e3659544721b121910f8cd881926365cc15812e1
refs/heads/master
2023-03-26T15:28:34.455766
2021-03-19T16:59:32
2021-03-19T16:59:32
349,496,805
0
0
null
null
null
null
UTF-8
Java
false
false
236
java
package prueba1; public class Principal { public static void main(String[] args) { System.out.print("Hola mundo Java-Git"); System.out.print("Cambio 1 en Principal"); System.out.print("Cambio 2 en Principal"); } }
[ "usuario2@entornos.com" ]
usuario2@entornos.com
ec4b0a8ff451e6d8c18c0fb006100d08cd0a12fe
fa0cd46acf28528265f17b667e024b1f921c22f2
/src/main/java/reza/aml/App.java
b9c7ea427a8d2917463ea81eb70723f61404ade3
[ "Apache-2.0" ]
permissive
dong2111/AML
a5a13bdaf69c446b0638e9ac2443011a99c98ee2
0f64aefbb971098e582ae3db64e66e817dbd66d2
refs/heads/master
2021-05-17T01:13:35.954285
2019-10-28T00:42:21
2019-10-31T02:04:33
null
0
0
null
null
null
null
UTF-8
Java
false
false
50,098
java
/* Copyright 2019 Reza Soltani Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /* * Implementation of 'A new algorithm for money laundering detection based on structural similarity' research paper. * Reza Soltani, Uyen Trang Nguyen, Yang Yang, Mohammad Faghani, Alaa Yagoub and Aijun An, "A new algorithm for money laundering detection based on structural similarity," 2016 IEEE 7th Annual Ubiquitous Computing, Electronics & Mobile Communication Conference (UEMCON), New York, NY, 2016, pp. 1-7. * doi: 10.1109/UEMCON.2016.7777919 * keywords: {financial data processing;globalisation;money laundering detection;structural similarity;financial transactions;global market;money laundering transactions;financial data;ML activities;ML groups;Receivers;Topology;Clustering methods;Government;Clustering algorithms;Network topology;Money laundering;money laundering detection;graph theory;structural similarity}, * URL: http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=7777919&isnumber=7777798 */ package reza.aml; import java.io.File; import java.io.FileOutputStream; import java.io.FileWriter; import java.io.IOException; import java.io.PrintStream; import java.text.DateFormat; import java.text.DecimalFormat; import java.text.NumberFormat; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import java.util.Map.Entry; import org.apache.commons.io.FileUtils; import org.apache.commons.lang3.tuple.ImmutablePair; import org.apache.commons.lang3.tuple.Pair; import org.neo4j.cypher.javacompat.ExecutionEngine; import org.neo4j.cypher.javacompat.ExecutionResult; import org.neo4j.graphdb.Direction; import org.neo4j.graphdb.DynamicLabel; import org.neo4j.graphdb.GraphDatabaseService; import org.neo4j.graphdb.Label; import org.neo4j.graphdb.Node; import org.neo4j.graphdb.Relationship; import org.neo4j.graphdb.RelationshipType; import org.neo4j.graphdb.Transaction; import org.neo4j.graphdb.factory.GraphDatabaseFactory; import org.neo4j.kernel.impl.util.StringLogger; import org.neo4j.tooling.GlobalGraphOperations; public class App { // ALGORITHM PARAMETERS static double degreeConstant = 0.1; // step 3 - bscore (weight of edges), .8 for at least 7 incoming and outgoing // ALGORITHM PARAMETERS static double densePairConstant = 0.2; // step 4 - SHRINK (similarity of two nodes), affected by the weight of the edges (i.e. balance and number of incoming and outgoing). 0.23 is two (sender, receiver) common neighbour // FINANCIAL PARAMETERS static double amountThreshold = 10000; // transaction should be 10000 static double allowedAmountDifference = 100.0; // transactions can be different as much as the following amount static double allowedTimeDifference = 2; // transactions can be apart as much as the following value // DATA PARAMETERS static boolean generateData = true; // should the framework generate data. Once data is generated disable this flag to avoid overwriting your data! static boolean generateDataAndExit = false; // exit after generation. Only generate data static boolean demo = false; // bypasses all checks and display the entire graph . This feature is no longer used static boolean experimentActive = false; // activate part 3.5 or not. not used in current version of paper due to low accuracy for all topologies. enum TransactionTypes implements RelationshipType { SEND, RECEIVE } // Main method public static void main( String[] args ) throws IOException { // Output.txt PrintStream out = new PrintStream(new FileOutputStream("output.txt")); System.setOut(out); double timeStart = System.currentTimeMillis(); System.out.println( "Start of AML framework... v1" ); DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); Date date = new Date(); System.out.println(dateFormat.format(date)); int[] generationResult = new int[2]; // used for stats if (demo) { System.out.println("Demo activated"); } if (generateData == true) { System.out.println("Generating data ..."); try { generationResult = DataGenerator.generateData(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } if (generateDataAndExit) { System.out.println("End of generating data."); return; } } double timeStartWithoutGeneration = System.currentTimeMillis(); //if (true) return; System.out.println(dateFormat.format(date)); System.out.println("------------"); System.out.println("Start of algorithm "); System.out.println("Parameters:"); System.out.println("degreeConstant:" + degreeConstant); System.out.println("densePairConstant:" + densePairConstant); System.out.println("amountThreshold:" + amountThreshold); System.out.println("allowedAmountDifference:" + allowedAmountDifference); System.out.println("allowedTimeDifference:" + allowedTimeDifference); // Output_summary.txt FileWriter fw = new FileWriter("output_summary.txt"); fw.write("\n------------"); fw.write("\nStart of algorithm "); fw.write("\nParameters:"); fw.write("\ndegreeConstant:" + degreeConstant); fw.write("\ndensePairConstant:" + densePairConstant); fw.write("\namountThreshold:" + amountThreshold); fw.write("\nallowedAmountDifference:" + allowedAmountDifference); fw.write("\nallowedTimeDifference:" + allowedTimeDifference); fw.close(); // Nodes.txt ArrayList<String> nodes = Input.readNodes("nodes.txt"); // Transactions.txt ArrayList<FinancialTransaction> transactions = Input.readTransactions("transactions.txt"); // System.out.println(nodes.toString()); // System.out.println(transactions.toString()); // *********************************** // step one: find matching transactions if (demo) System.out.println("----------------------- \n Showing all transactions"); else System.out.println("----------------------- step 1 \n Finding matching transactions "); HashMap<FinancialTransaction, FinancialTransaction> pairs = new HashMap<FinancialTransaction, FinancialTransaction>(); HashMap< HashMap<FinancialTransaction, FinancialTransaction>, Double> similarityOfTransactions = new HashMap< HashMap<FinancialTransaction, FinancialTransaction>, Double> (); double time1 = System.currentTimeMillis(); int i = 0; int j = 1; boolean found = false; for (i=0;i<transactions.size();i++) { for (j=0;j<transactions.size();j++) { //System.out.println("."); // if looking at same if (i == j) continue; // the map pair contains transactions already processed // dont look at existing items in P. Unique transactions on either side of pair <L, R> // needs investigation.. if (pairs.containsKey(transactions.get(i))) { continue; } if (pairs.containsValue(transactions.get(j))) { continue; } Double amountDifference = (double) Math.abs((transactions.get(i).amount - transactions.get(j).amount)); Integer timeDifference = transactions.get(i).time - transactions.get(j).time; // if this is a demo or we just generated the data and want to see full graph if (demo) { pairs.put(transactions.get(i), null); continue; } // if it has the form u->v v->w if (transactions.get(j).sender.name == transactions.get(i).receiver.name ) // amount equal or higher than 10000 // condition 1 of trx matching algorithm if (transactions.get(i).amount >= amountThreshold) { //System.out.println("Comparing " + transactions.get(i).amount + " and " + transactions.get(j).amount) ; // if sending and receiving amounts are same or similar above certain threshold ex. $100 // condition 2 of trx matching algorithm if (amountDifference <= allowedAmountDifference) { // within same timeframe. This is the simplified version // todo: implement time variance function if (timeDifference <= allowedTimeDifference) { // store so the pair of t pairs.put(transactions.get(i), transactions.get(j)); System.out.println("."); // store the matching transactions along with their difference in terms of amount and time similarityOfTransactions.put(pairs, 1 / (amountDifference * timeDifference)); // include the difference between transactions //found = true; //break; // break; //only one } } } } } double time2 = System.currentTimeMillis(); System.out.println("Matching transactions..."); System.out.println(pairs); if (pairs.isEmpty()) System.out.println("There are no matching transactions!"); // ************************************************************************************ // ************************************************************************************ // step 2: make graph of matching transactions System.out.println("----------------------- step 2 \n Making graph..."); GraphDatabaseService graphDb = null; GlobalGraphOperations GOp = null; double time2_1 = System.currentTimeMillis(); try { // reset database removeDirectory("neo4j-store"); graphDb = new GraphDatabaseFactory().newEmbeddedDatabase( "neo4j-store" ); GOp = GlobalGraphOperations.at(graphDb); registerShutdownHook( graphDb ); } catch (Exception e) { System.out.println("Connection error: " + e.getLocalizedMessage()); return; } String query; ExecutionResult result; ExecutionEngine engine = new ExecutionEngine( graphDb, StringLogger.DEV_NULL ); Iterator it = pairs.entrySet().iterator(); while (it.hasNext()) { Map.Entry<FinancialTransaction, FinancialTransaction> onepair = (Map.Entry) it.next(); System.out.println("Retrieved: " + onepair.getKey() + " = " + onepair.getValue()); try ( Transaction tx = graphDb.beginTx() ) { if (demo) { System.out.println("Demo: Ignoring second part.. "); System.out.println("Adding: " + onepair.getKey().sender.name + " --> " + onepair.getKey().receiver.name); } else System.out.println("Adding: " + onepair.getKey().sender.name + " --> " + onepair.getKey().receiver.name + " --> " + onepair.getValue().receiver.name ); Label label; Node firstNode, secondNode, thirdNode; Relationship relationship = null, relationship2 = null; // first node query = "match (n {id: "+onepair.getKey().sender.name + "}) return n"; System.out.println(query); result = engine.execute( query ); if (result.columnAs("n").hasNext()) { System.out.println("Node " + onepair.getKey().sender.name + " already exist"); firstNode = (Node) result.columnAs("n").next(); } else { firstNode = graphDb.createNode(); System.out.println("Node " + onepair.getKey().sender.name + " is generated"); firstNode.setProperty( "id", onepair.getKey().sender.name ); } // second node query = "match (n {id: "+ onepair.getKey().receiver.name + "}) return n"; System.out.println(query); result = engine.execute( query ); if (result.columnAs("n").hasNext()) { System.out.println("Node " + onepair.getKey().receiver.name + " already exist"); secondNode = (Node) result.columnAs("n").next(); } else { secondNode = graphDb.createNode(); System.out.println("Node " + onepair.getKey().receiver.name + " is generated"); secondNode.setProperty( "id", onepair.getKey().receiver.name ); } // relationship query = "START n=node(*) MATCH n-[rel:SEND]->r WHERE n.id="+ onepair.getKey().sender.name +" AND r.id="+ onepair.getKey().receiver.name + " RETURN rel"; result = engine.execute(query); // if relationship already exist if (result.columnAs("rel").hasNext()) { System.out.println("Edge " + onepair.getKey().sender.name + " to " + onepair.getKey().receiver.name + " already exist"); relationship = (Relationship) result.columnAs("rel").next(); relationship.setProperty("weight", Integer.parseInt(relationship.getProperty("weight").toString()) +1); // time and amount are not updated for existing edges } else { // if relationship(transaction) is new System.out.println("Edge " + onepair.getKey().sender.name + " to " + onepair.getKey().receiver.name + " is generated"); relationship = firstNode.createRelationshipTo(secondNode, TransactionTypes.SEND); relationship.setProperty("weight", 1); relationship.setProperty("amount", onepair.getKey().amount); relationship.setProperty("time", onepair.getKey().time); relationship.setProperty("id", onepair.getKey().name); // set the id as the name of the tranx } if (!demo) { // third node query = "match (n {id: "+ onepair.getValue().receiver.name + "}) return n"; result = engine.execute( query ); System.out.println(query); if (result.columnAs("n").hasNext()) { System.out.println("Node " + onepair.getValue().receiver.name + " already exist"); thirdNode = (Node) result.columnAs("n").next(); } else { thirdNode = graphDb.createNode(); System.out.println("Node " + onepair.getValue().receiver.name + " is generated"); thirdNode.setProperty( "id", onepair.getValue().receiver.name ); } // relationship query = "START n=node(*) MATCH n-[rel:SEND]->r WHERE n.id="+ onepair.getKey().receiver.name +" AND r.id="+ onepair.getValue().receiver.name + " RETURN rel"; result = engine.execute(query); if (result.columnAs("rel").hasNext()) { System.out.println("Edge " + onepair.getKey().receiver.name + " to " + onepair.getValue().receiver.name + " already exists"); relationship2 = (Relationship) result.columnAs("rel").next(); relationship2.setProperty("weight", Integer.parseInt(relationship2.getProperty("weight").toString()) +1); } else { System.out.println("Edge " + onepair.getKey().receiver.name + " to " + onepair.getValue().receiver.name + " is generated"); relationship2 = secondNode.createRelationshipTo(thirdNode, TransactionTypes.SEND); relationship2.setProperty("weight", 1); relationship2.setProperty("amount", onepair.getValue().amount); relationship2.setProperty("time", onepair.getValue().time); relationship2.setProperty("id", onepair.getValue().name); } } tx.success(); } catch (Exception e) { System.out.println("ERROR with adding to db.."); e.printStackTrace(); break; } finally { } // break; } double time2_2 = System.currentTimeMillis(); // ************************************************************************************ // ************************************************************************************ // step 3: calculate balance score (B Score) of each node (check inbound and outbound weights are the same) // first part of formula will be 1 if weights are same, or 0 if weights are different. meaning incoming = outgoing better. // second part returns the smaller direction weight, either incoming weight, or outgoing weight. meaning higher weights better. // second part is used to give more value to nodes with more transactions(weight) // calculate balance score for all nodes. only the first part is implemented // Requirement: only one edge between each node (each edge has a weight) System.out.println("----------------------- step 3 \n Calculating balance score (node weights)..."); HashMap<Node, Double> Bs = new HashMap<Node, Double>(); ArrayList<Node> BsArray = new ArrayList<Node>(); double time3_1 = System.currentTimeMillis(); Integer graphNodesQuantity = 0; try ( Transaction tx = graphDb.beginTx() ) { // get all nodes Iterator<Node> allNodes = GOp.getAllNodes().iterator(); while (allNodes.hasNext()) { graphNodesQuantity++; Node currentNode = (Node) allNodes.next(); Iterator<Relationship> outboundRel = currentNode.getRelationships(Direction.OUTGOING).iterator(); // get outbound edges Iterator<Relationship> inboundRel = currentNode.getRelationships(Direction.INCOMING).iterator(); // get inbound edges System.out.println("Observing node " + currentNode.getProperty("id")); Double B = 0.0; Integer sumOfOutgoing = 0; Integer sumOfIncoming = 0; int outboundRelCount = 0, inboundRelCount = 0; while (outboundRel.hasNext()) { outboundRelCount+=1; // compute # of outbound // System.out.println(outboundRel.next().getProperty("id")); sumOfOutgoing += Integer.parseInt(outboundRel.next().getProperty("weight").toString()); // compute total weight of outgoing edges // System.out.println(">"); // outboundRel.next(); // sumOfOutgoing += 1; } //System.out.println("Inbound edges: "); while (inboundRel.hasNext()) { inboundRelCount+=1; // compute # of inbound // System.out.println(inboundRel.next().getProperty("id")); sumOfIncoming += Integer.parseInt(inboundRel.next().getProperty("weight").toString()); // compute total weight of incoming edges //inboundRel.next(); // sumOfIncoming += 1; // System.out.println("<"); } System.out.println("Node: " + currentNode.getProperty("id") + " #inbound " + inboundRelCount + " #outbound " + outboundRelCount); System.out.println("sumofincoming " + sumOfIncoming + " sumofoutgoing " + sumOfOutgoing); // basic version: only the first part of the formula //B = (2 * sumOfOutgoing * sumOfIncoming) / (Math.pow(sumOfOutgoing,2) + Math.pow(sumOfIncoming, 2)); // advanced version: both parts of formula B = (2 * sumOfOutgoing * sumOfIncoming) / (Math.pow(sumOfOutgoing,2) + Math.pow(sumOfIncoming, 2)); // compare the difference between the weights. more diff -> higher value B = B * Math.log10(Math.min(sumOfOutgoing, sumOfIncoming)); // put more emphasis on nodes with higher weight System.out.println(" > Final B value " + B); if (demo || B >= 0) { currentNode.setProperty("B", B); currentNode.setProperty("sumOfIncoming", sumOfIncoming); currentNode.setProperty("sumOfOutgoing", sumOfOutgoing); currentNode.setProperty("B-with-second-term", B * Math.log10(Math.min(sumOfOutgoing, sumOfIncoming))); Bs.put(currentNode, B); } } // sort Bs = (HashMap<Node, Double>) Util.sortMapByValue(Bs); System.out.println("Sorted Bs: (High degree nodes) (higher than/equal to: " + degreeConstant + " )"); tx.success(); Iterator BsI = Bs.entrySet().iterator(); while (BsI.hasNext()) { Map.Entry pairs1 = (Map.Entry) BsI.next(); Node BNode = (Node) pairs1.getKey(); // if Node has high enough B value, add it to the final list if ((Double) pairs1.getValue() >= degreeConstant) BsArray.add(BNode); System.out.println("Node: " + BNode.getProperty("id") + ": " + pairs1.getValue()); BsI.remove(); // avoids a ConcurrentModificationException } System.out.println("High risk nodes in horizontal form: "); for (Node n : BsArray) System.out.print(n.getProperty("id") +" "); System.out.println(""); } double time3_2 = System.currentTimeMillis(); // *********************************** // step 3.5 add temporary shared neighbors to intermediate nodes to satisfy step 4 algorithm // this is to produce better result for linear result if (experimentActive) { System.out.println("----------------------- step 3.5 "); // return intermediates in: X -> .. i.. -> Y // query = "START n=node(*) MATCH p=()-->i-->() WHERE has(i.B) RETURN DISTINCT filter(x IN NODES(p) WHERE exists(x.B)) as o"; //query = "START n=node(*) WHERE n.aa='bb' RETURN n "; //System.out.println(row); Iterator<Iterable<Node>> resultingRows = null; Iterator<Node> resultingSenders = null; Iterator<Node> resultingReceivers = null; // this is to store the sender and receivers seen HashMap<Pair<Node,Node> , Node> endPoints = new HashMap<Pair<Node,Node> , Node>(); try(Transaction tx = graphDb.beginTx()) { //query = "MATCH p=(n)-[:SEND*]->(m) WHERE NOT ( ()-[:SEND]->(n) OR (m)-[:SEND]->() ) RETURN NODES(p)[1..-1] AS middleNodes"; query = "MATCH p=(n)-[:SEND*]->(m) WHERE NOT ( ()-[:SEND]->(n) OR (m)-[:SEND]->() ) RETURN NODES(p)[1..-1] AS middleNodes, NODES(p)[0] AS sender, NODES(p)[-1] as receiver"; result = engine.execute(query); // resultingRows = result.columnAs("middleNodes"); // resultingSenders = result.columnAs("sender"); // resultingReceivers = result.columnAs("receiver"); // // HashSet<String> seenNodesNames = new HashSet<String>(); // while (resultingSenders.hasNext()) // { // Node sender = (Node) resultingSenders.next(); // System.out.println(">" + sender.getProperty("id")); // Node receiver = (Node) resultingReceivers.next(); // System.out.println(receiver.getProperty("id")); // } int idC = 0; int idC2 = 0; // for every set // while (resultingRows.hasNext()) // used when there is only one result column for (Map<String, Object> row : result) { System.out.println("---- New row of nodes..."); Iterable<Node> intermediates = (Iterable<Node>) row.get("middleNodes"); // obtain sender and receiver nodes for this row Node sender = (Node) row.get("sender"); Node receiver = (Node) row.get("receiver"); // compute the number of nodes in one row int sizeOfRow=0; int indexOfRow=0; for (Node n : intermediates) { if (n.hasProperty("sumOfIncoming")) // even though the query only returns the intermediates, we are again checking for a property specific to intermediates sizeOfRow++; } System.out.println("Obtained a row of intermediates with length " + sizeOfRow + " sender:" + sender.getProperty("id") + " receiver:" + receiver.getProperty("id")); // if the row only consist of 1 node.. ex: S -> I -> R, then dont add the shared nodes as Clustering algorithm will pick up this node anyways if (sizeOfRow > 1) { // if sender and receiver hasnt been seen before, create a new node // otherwise extract the same shared node from a map Pair<Node,Node> thisEndPoint = new ImmutablePair<Node, Node>(sender, receiver); Node sharedNode = null; if (endPoints.containsKey(thisEndPoint)) { System.out.println("The shared point already exist"); sharedNode = endPoints.get(thisEndPoint); } else { System.out.println("Creating new shared point"); sharedNode = graphDb.createNode(); endPoints.put(thisEndPoint, sharedNode); // add label to node to distinguish it from other nodes. Label SharedLabel = DynamicLabel.label("SHARED"); sharedNode.addLabel(SharedLabel); sharedNode.setProperty("type", "sharedNode"); idC++; sharedNode.setProperty("id", 1000000000000L+idC); } // reset relationship index counter idC2 = 0; // every node in the row for (Node n : intermediates) { // extra check if (n.hasProperty("sumOfIncoming")) { //System.out.println(n.getProperty("id")); // if (seenNodesNames.contains(n.getProperty("id").toString())) // continue; // // seenNodesNames.add(n.getProperty("id").toString()); // set the weight value for the edges. set the weight to outgoing unless its the last node of the list. indexOfRow++; Integer weight = 0; if (n.hasProperty("sumOfOutgoing")) weight = (Integer) n.getProperty("sumOfOutgoing"); if (indexOfRow == sizeOfRow) { if (n.hasProperty("sumOfIncoming")) weight = (Integer) n.getProperty("sumOfIncoming"); } // create a relationship between new node and the existing nodes Relationship sharedR = sharedNode.createRelationshipTo(n, TransactionTypes.SEND); sharedR.setProperty("type", "sharedRelationship"); idC2++; sharedR.setProperty("id", 1000000000+idC+idC2); sharedR.setProperty("weight", weight); Relationship sharedR2= n.createRelationshipTo(sharedNode, TransactionTypes.SEND); sharedR2.setProperty("type", "sharedRelationship"); idC2++; sharedR2.setProperty("id", 1000000000+idC+idC2+1); sharedR2.setProperty("weight", weight); System.out.println("Creating a relationship between " + sharedNode.getProperty("id") + " to " + n.getProperty("id") ); System.out.println("Creating a relationship between " + n.getProperty("id") + " to " + sharedNode.getProperty("id") ); System.out.println("Created/reused shared node " + sharedNode.getProperty("id") + " with relationships " + sharedR.getProperty("id") + " from/to " + n.getProperty("id") + " with weight " + weight + " .Degree of shared node: " + sharedNode.getDegree()); } // if its not an I node else { System.out.println("Ignored a node because its not an I node "); } } //loop tx.success(); } // if there is only 1 node in row else { System.out.println("Ignored a row of nodes, because there is only one node in the row "); } } // while } // tx // <Node> iNodes = (Iterator<Node>) row.nodes(); // Iterator<Node> iNodes = resultingNodes; // // Node sharedNode = graphDb.createNode(); // sharedNode.setProperty("type", "sharedNode"); // i++; // sharedNode.setProperty("id", 10000+idC); // idC2 = 0; // while (iNodes.hasNext()) // { // Relationship sharedR = sharedNode.createRelationshipTo(iNodes.next(), TransactionTypes.SEND); // sharedR.setProperty("type", "sharedRelationship"); // idC2++; // sharedR.setProperty("id", 1000000000+idC+idC2); // System.out.println("Created shared node " + sharedNode.getProperty("id") + // " with relationship " + sharedR.getProperty("id")); // // } } // *********************************** // step 4: Find dense pairs by the means of clustering (SHRINK) // σ(u,v)=(∑_(x∈Γ(u)∩Γ(v))▒〖w(x,u)w(x,v)〗)/(√(∑_(x∈Γ(u))▒〖w^2 (x,u) 〗) √(∑_(x∈Γ(v))▒〖w^2 (x,v) 〗)) // ∙ (∑_(x∈Γ'(u)∩Γ'(v))▒〖w(u,x)⋅w(v,x)〗)/(√(∑_(x∈Γ'(u))▒〖w^2 (x,u) 〗) √(∑_(x∈Γ'(v))▒〖w^2 (x,v) 〗)) // // issue: what if there are dealing with multi-level intermediate nodes or linear topology System.out.println("----------------------- step 4 \n Calculating Similar Nodes (SHRINK)..."); System.out.println("Compare all combinations..."); HashMap <ArrayList<Node>, Double> DensePairs = new HashMap <ArrayList<Node>, Double>();// stores pairs and their density double time4_1 = System.currentTimeMillis(); HashMap<String, Integer> PreviousNodeU = new HashMap<String, Integer>(); Double[][] similarityMatrix = new Double[BsArray.size()][BsArray.size()]; try ( Transaction tx = graphDb.beginTx() ) { // compare every node with every other node. for (i=0; i < BsArray.size(); i++) { Node u = BsArray.get(i); for ( j=0; j< BsArray.size(); j++) { // if comparing a node with itself if (i==j) continue; // add result Node v = BsArray.get(j); // if nodes seen before // todo: use the value of the previousnodeU to check for item i? ex. key=i&val=j or key=j&val=i if (PreviousNodeU.containsKey(i + " " + j) || PreviousNodeU.containsKey(j + " " + i)) { //System.out.println("Found the same key j"); //System.out.println("Found the same pair, skipping"); //System.out.println("existing pair " + u.getProperty("id").toString() + " and " + v.getProperty("id").toString()); continue; } // store the pair so that they are not compared again PreviousNodeU.put(i + " " + j, 1); //System.out.println("New pair " + u.getProperty("id").toString() + " and " + v.getProperty("id").toString()); //System.out.println(PreviousNodeU); System.out.println(); System.out.println("Considering u " + u.getProperty("id").toString() + " | v " + v.getProperty("id").toString()); // u item // ArrayList<Node> uEndNodes = new ArrayList<Node>(); // ArrayList<Node> uStartNodes = new ArrayList<Node>(); // // // v item // ArrayList<Node> vEndNodes = new ArrayList<Node>(); // ArrayList<Node> vStartNodes = new ArrayList<Node>(); Double termOne = -1.0; Double termTwo = -1.0; // repeat twice for term one and two. // round one is node from incoming edges, round two is node at the end of outgoing edges for (int ii=1; ii<=2;ii++){ // nominator (common nodes) if (ii == 1) query = "MATCH (u { id: " + u.getProperty("id").toString() +"})<-[a:SEND]-(x)-[b:SEND]->(v {id: " + v.getProperty("id").toString() +"}) RETURN a,b"; //incoming else query = "MATCH (u { id: " + u.getProperty("id").toString() +"})-[a:SEND]->(x)<-[b:SEND]-(v {id: " + v.getProperty("id").toString() +"}) RETURN a,b"; //outgoing System.out.println("Query " + query); result = engine.execute( query ); Double nominator = 0.0; Relationship edgeXtoU = null; Relationship edgeXtoV = null; for ( Map<String, Object> row : result) { for ( Entry<String, Object> column : row.entrySet() ) { String rows = column.getKey() + ": " + column.getValue() + "; "; if (column.getKey().compareTo("a") == 0) edgeXtoU = (Relationship) column.getValue(); else edgeXtoV = (Relationship) column.getValue(); } nominator += Double.parseDouble(edgeXtoU.getProperty("weight").toString()) * Double.parseDouble(edgeXtoV.getProperty("weight").toString()); // nominator++; // w(u,u) = 1 System.out.println("edge " + edgeXtoU.getProperty("id") + " and " + edgeXtoV.getProperty("id") + ". nominator so far: " + nominator); } System.out.println("final nominator " + nominator); // denominator // part 1 of denominator if (ii == 1) query = "MATCH (u { id: " + u.getProperty("id").toString() +"} )<-[a:SEND]-() RETURN a"; //incoming else query = "MATCH (u { id: " + u.getProperty("id").toString() +"} )-[a:SEND]->() RETURN a"; //outgoing System.out.println("Query " + query); result = engine.execute( query ); Double sumOfSquaredIncomingEdgesForU = 0.0; int edgeXtoUCount = 0; if (result.columnAs("a").hasNext()) { while (result.columnAs("a").hasNext()) { edgeXtoU = (Relationship) result.columnAs("a").next(); edgeXtoUCount++; sumOfSquaredIncomingEdgesForU += Math.pow(Double.parseDouble(edgeXtoU.getProperty("weight").toString()), 2.0); //System.out.println("edge " + edgeXtoU.getProperty("id") + " has weight " + edgeXtoU.getProperty("weight").toString()); } } sumOfSquaredIncomingEdgesForU++; // w(u,u) = 1, as part of spec System.out.println(edgeXtoUCount + " total squared weight (+1 per spec): " + sumOfSquaredIncomingEdgesForU); // part 2 of denominator if (ii == 1) query = "MATCH (v { id: " + v.getProperty("id").toString() +"} )<-[a:SEND]-() RETURN a"; //incoming else query = "MATCH (v { id: " + v.getProperty("id").toString() +"} )-[a:SEND]->() RETURN a"; //outgoing System.out.println("Query " + query); result = engine.execute( query ); Double sumOfSquaredIncomingEdgesForV = 0.0; int edgeXtoVCount = 0; if (result.columnAs("a").hasNext()) { while (result.columnAs("a").hasNext()) { edgeXtoV = (Relationship) result.columnAs("a").next(); edgeXtoVCount++; sumOfSquaredIncomingEdgesForV += Math.pow(Double.parseDouble(edgeXtoV.getProperty("weight").toString()), 2); // System.out.println("edge " + edgeXtoV.getProperty("id") + " has weight " + edgeXtoV.getProperty("weight").toString()); } } //TODO: should the following line be here?? sumOfSquaredIncomingEdgesForV++; // w(u,u) = 1, as part of spec System.out.println(edgeXtoVCount + " total squared weight (+1 per spec): " + sumOfSquaredIncomingEdgesForV); if (ii == 1) { // computing the final value of first term termOne = nominator / (Math.sqrt(sumOfSquaredIncomingEdgesForU) * Math.sqrt(sumOfSquaredIncomingEdgesForV)); if (termOne == null) // take care of NaN and division by 0 termOne = 0.0; System.out.println(termOne + " = " + nominator + " / " + "sqrt(" + sumOfSquaredIncomingEdgesForU + ") * sqrt("+sumOfSquaredIncomingEdgesForV+")"); } else { // computing the final value of second term termTwo = nominator / (Math.sqrt(sumOfSquaredIncomingEdgesForU) * Math.sqrt(sumOfSquaredIncomingEdgesForV)); if (termTwo == null) // take care of NaN and division by 0 termTwo = 0.0; System.out.println(termTwo + " = " + nominator + " / " + "sqrt(" + sumOfSquaredIncomingEdgesForU + ") * sqrt("+sumOfSquaredIncomingEdgesForV+")"); } } Double finalResult = termOne * termTwo; System.out.println("Similarity value between node u and v is " + finalResult); // add values to a matrix for loggin similarityMatrix[i][j] = finalResult; if (finalResult >= densePairConstant) // threshold may be 0 or .2 or something higher { ArrayList<Node> denseNodes = new ArrayList<Node>(); denseNodes.add(u); denseNodes.add(v); DensePairs.put(denseNodes, finalResult); } } } // System.out.printf("%1s %-7s %-7s %-6s %-6s%n", "n", "result1", "result2", "time1", "time2"); // System.out.printf("%1d %7.2f %7.1f %4dms %4dms%n", 5, 1000F, 20000F, 1000, 1250); // System.out.printf("%1d %7.2f %7.1f %4dms %4dms%n", 6, 300F, 700F, 200, 950); // // draw a matrix if (!pairs.isEmpty()) { System.out.println("----"); System.out.print(" "); System.out.printf("\t\t ", ""); for (i=0;i<BsArray.size();i++) { System.out.printf("%-7d", BsArray.get(i).getProperty("id")); } System.out.println(""); NumberFormat formatter = new DecimalFormat("#0.00"); int rows = similarityMatrix.length; int columns = similarityMatrix[0].length; String str = "|\t"; Double num = 0.0; for( i=0;i<rows;i++){ System.out.printf("%-7d", BsArray.get(i).getProperty("id")); //System.out.print(BsArray.get(i).getProperty("id") + "\t"); for( j=0;j<columns;j++){ if (similarityMatrix[i][j]!=null) { num = similarityMatrix[i][j]; //formatter.format(similarityMatrix[i][j]); System.out.printf("%7.2f", num);} else { num = -1.0; System.out.printf("%7s", "N/A"); } } System.out.println(""); } System.out.println("----"); //System.out.println(PreviousNodeU); } tx.success(); } double time4_2 = System.currentTimeMillis(); // sort //DensePairs = (HashMap<ArrayList<Node>, Double>) Util.sortMapByValue(DensePairs); // *********************************** // step 5: identity groups (from dense pairs) // In the first step the DensePairs with the format: {List<Node>, Double}... is converted to a list of sets: {Set<Node>,...} System.out.println("----------------------- step 5 \n Identity groups (from dense pairs)..."); Integer DensepairSize = DensePairs.size(); System.out.println("Number of dense pairs to look (i.e. pairs with similarity above threshold " + densePairConstant + " : " + DensePairs.size() + ")"); Iterator DensePairsit = DensePairs.entrySet().iterator(); ArrayList <ArrayList<Node>> DensePairsArray = new ArrayList <ArrayList<Node>>();// stores pairs (no similarity value) double time5_1 = System.currentTimeMillis(); Transaction tx = graphDb.beginTx(); try { while (DensePairsit.hasNext()) { Map.Entry DensePairsitItem = (Map.Entry)DensePairsit.next(); // get one { <pair>, <similarity> } System.out.println( DensePairsitItem.getKey() + " with ids " + ((ArrayList<Node>) DensePairsitItem.getKey()).get(0).getProperty("id") + " and " + ((ArrayList<Node>) DensePairsitItem.getKey()).get(1).getProperty("id") + " have similarity value " + DensePairsitItem.getValue()); //node1,node2 = similarity ArrayList<Node> densePairSet = new ArrayList<Node>(); // create a set. each set contains 2 ids (one pair) in the beginning densePairSet.add(((ArrayList<Node>) DensePairsitItem.getKey()).get(0)); // extract first id densePairSet.add(((ArrayList<Node>) DensePairsitItem.getKey()).get(1)); // extract second id DensePairsArray.add(densePairSet); // put this set into collection of pairs DensePairsit.remove(); // avoids a ConcurrentModificationException } tx.success(); } finally { tx.close(); } // at this point we have an array of sets (DensePairsArray). each set has a pair of nodes that are dense. we now combine these sets to to ML groups /* For each pair d in D for each item i in d for each unprocessed pair d’ in D (D- d) if i is in d’ merge d’ into d remove d’ from D */ Transaction tx2 = graphDb.beginTx(); try { //ArrayList <ArrayList<Node>> MoneyLaunderingGroups = new ArrayList <ArrayList<Node>>();// stores pairs and their density int totalPairs = DensePairsArray.size(); System.out.println("Starting the pair merging process..."); System.out.println(DensePairsArray); // example DensePairsArray = (1,2)(1,3)(1,4)(2,3)(2,4)(3,4) // i is the index of set for ( i = 0; i < DensePairsArray.size() ; i++) // For each pair d in D { System.out.println("---"); // example densepairitem = (1, 2) // j is the item index in one set for (j = 0; j < DensePairsArray.get(i).size(); j++) // for each item i in d. i = densePairItem, every densePairItem has 2 items { // if there are no more sets in the list to review. regular size variable cannot be used as the list shrinks when merging happens if (i == totalPairs) break; ArrayList<Node> densePairItem = (ArrayList<Node>) DensePairsArray.get(i); // (1,2) System.out.println("\n Looking at set with first two items of " + densePairItem.get(0).getProperty("id").toString() + " and " + densePairItem.get(1).getProperty("id").toString() + ", indexes i=" + i + " j="+ j); // for each unprocessed pair d’ in D: (D - d) // k is the index of unprocessed sets for (int k = i+1; k < DensePairsArray.size(); k++) // limit should be var totalPairs ??? { ArrayList<Node> densePairItemCompared = (ArrayList<Node>) DensePairsArray.get(k); // (1,3) when i=0, k=1 (first try) System.out.println("looking at pair with index(k)=" + k + " total number of sets: " + DensePairsArray.size()); System.out.println("comparing node " + densePairItem.get(j).getProperty("id").toString() + " with node " + densePairItemCompared.get(0).getProperty("id").toString() + " and " + densePairItemCompared.get(1).getProperty("id").toString()); //System.out.println(DensePairsArray); //if item 1 is in d’ : if (densePairItem.get(j).getProperty("id").toString().equalsIgnoreCase(densePairItemCompared.get(0).getProperty("id").toString())) { System.out.println("Item " + densePairItem.get(j).getProperty("id").toString() + " is same as " + densePairItemCompared.get(0).getProperty("id").toString()); System.out.println("reducing number of pairs.."); // if 3 is included in (1,2) if (!densePairItem.contains(densePairItemCompared.get(1))) densePairItem.add(densePairItemCompared.get(1)); // change (1,2) to (1,2,3) System.out.println("Removing " + densePairItemCompared); DensePairsArray.remove(k); k--; // when an set is removed, another set replaces its position (i.e. k) therefore same k index should be checked // totalPairs--; } //if item 2 is in d’ : else if (densePairItem.get(j).getProperty("id").toString().equalsIgnoreCase(densePairItemCompared.get(1).getProperty("id").toString())) { System.out.println("Node " + densePairItem.get(j).getProperty("id").toString() + " is same as second term " + densePairItemCompared.get(1).getProperty("id").toString()); System.out.println("reducing number of pairs.."); // if 1 is included in (1,2). it wont get here on example if (!densePairItem.contains(densePairItemCompared.get(0))) densePairItem.add(densePairItemCompared.get(0)); System.out.println("Removing " + densePairItemCompared); DensePairsArray.remove(k); k--; // totalPairs--; } else System.out.println("Item " + densePairItem.get(j).getProperty("id").toString() + " is not found in " + densePairItemCompared); } // loops D-d (i.e. d'), iterate k DensePairsArray.set(i, densePairItem); // overwrite pair with a new group of nodes // print out the result after comparing one node with d' and performing the necessary merges System.out.println("Result of list so far ..."); System.out.println(DensePairsArray); } // iterate j } // iterate i tx2.success(); } finally { tx2.close(); } // final DensePairsArray = (a,b,m,e), (c,d) double time5_2 = System.currentTimeMillis(); // at this point the var DensePairArray has ML groups // we mark the ML nodes on graph with ML attribute and color Transaction tx1 = graphDb.beginTx(); int totalMLAccountsFound = 0; // used for stats try { // at the end DensePairsArray has the list of arrays that cooresponde to ML groups System.out.println("Resulting ML groups are ..."); Label MLLabel = DynamicLabel.label("ML"); for (i = 0; i< DensePairsArray.size(); i++) { System.out.println("ML Group #" + new Integer(i+1) + ":"); for (j = 0; j< DensePairsArray.get(i).size(); j++) { System.out.print(DensePairsArray.get(i).get(j).getProperty("id") + " "); DensePairsArray.get(i).get(j).setProperty("ML", "yes"); // DensePairsArray.get(i).get(j).setProperty("ui.class", "ml"); // for coloring. coloring is achieved through graph styling file now DensePairsArray.get(i).get(j).addLabel(MLLabel); totalMLAccountsFound++; } System.out.println(); } System.out.println(DensePairsArray); tx1.success(); } finally { tx1.close(); } double timeEnd= System.currentTimeMillis(); // MATCH (n) RETURN n // MATCH (n) WHERE n.ML = 1 RETURN n // end of algorithm. report result System.out.println("Report .."); System.out.println("Total number of nodes: " + nodes.size()); System.out.println("Total number of transactions: " + transactions.size()); System.out.println("Total number of matched transactions: " + pairs.size()); System.out.println("Total number of matched transactions nodes: " + graphNodesQuantity); // why is DensepairSize bigger than BsArray.size() .. dense pair is just? because (BsArray * BsArray) - 5 is the total DensepairSize System.out.println("Total number of balanced scored nodes: " + BsArray.size()); System.out.println("Total number of dense pairs: " + DensepairSize); System.out.println("Total number of ML groups: " + DensePairsArray.size()); System.out.println("ML detection of group rating: " + DensePairsArray.size() + " / " + generationResult[0]); System.out.println("ML detection of accounts rating: " + totalMLAccountsFound + " / " + generationResult[1]); System.out.println("Timeframe .."); System.out.println("Total time to find matching pair (ms): " + (double) (time2 - time1)); System.out.println("Total time to generate graph (ms): " + (double) (time2_2 - time2_1)); System.out.println("Total time to calculate balance score (ms): " + (double) (time3_2 - time3_1)); System.out.println("Total time to Similar Nodes (SHRINK) (ms): " + (double) (time4_2 - time4_1)); System.out.println("Total time to identity groups (ms): " + (double) (time5_2 - time5_1)); System.out.println("Total time of program with Data generation (ms): " + (double) (timeEnd - timeStart)); System.out.println("Total time of program without Data generation (ms): " + (double) (timeEnd - timeStartWithoutGeneration)); fw = new FileWriter("output_summary.txt"); fw.write("\n------------"); fw.write("\nReport .."); fw.write("\nTotal number of nodes: " + nodes.size()); fw.write("\nTotal number of transactions: " + transactions.size()); fw.write("\nTotal number of matched transactions: " + pairs.size()); fw.write("\nTotal number of matched transactions nodes: " + graphNodesQuantity); // why is DensepairSize bigger than BsArray.size() .. dense pair is just? because (BsArray * BsArray) - 5 is the total DensepairSize fw.write("\nTotal number of balanced scored nodes: " + BsArray.size()); fw.write("\nTotal number of dense pairs: " + DensepairSize); fw.write("\nTotal number of ML groups: " + DensePairsArray.size()); fw.write("\nML detection of group rating: " + DensePairsArray.size() + " / " + generationResult[0]); fw.write("\nML detection of accounts rating: " + totalMLAccountsFound + " / " + generationResult[1]); fw.write("\nTimeframe .."); fw.write("\nTotal time to find matching pair (ms): " + (double) (time2 - time1)); fw.write("\nTotal time to generate graph (ms): " + (double) (time2_2 - time2_1)); fw.write("\nTotal time to calculate balance score (ms): " + (double) (time3_2 - time3_1)); fw.write("\nTotal time to Similar Nodes (SHRINK) (ms): " + (double) (time4_2 - time4_1)); fw.write("\nTotal time to identity groups (ms): " + (double) (time5_2 - time5_1)); fw.write("\nTotal time of program with Data generation (ms): " + (double) (timeEnd - timeStart)); fw.write("\nTotal time of program without Data generation (ms): " + (double) (timeEnd - timeStartWithoutGeneration)); fw.close(); System.out.println("Shutdown db"); graphDb.shutdown(); } private static void printMatrix(double[][] m){ try{ int rows = m.length; int columns = m[0].length; String str = "|\t"; for(int i=0;i<rows;i++){ for(int j=0;j<columns;j++){ str += m[i][j] + "\t"; } System.out.println(str + "|"); str = "|\t"; } }catch(Exception e){System.out.println("Matrix is empty!!");} } private static Map<String, Object> removeDirectory(String storeDir) throws IOException { try{ File dir = new File(storeDir); Map<String,Object> result=new HashMap<String, Object>(); result.put("store-dir",dir); result.put("size", FileUtils.sizeOfDirectory(dir)); FileUtils.deleteDirectory(dir); } catch (Exception e) { return null; } return null; } private static void registerShutdownHook( final GraphDatabaseService graphDb ) { // Registers a shutdown hook for the Neo4j instance so that it // shuts down nicely when the VM exits (even if you "Ctrl-C" the // running application). Runtime.getRuntime().addShutdownHook( new Thread() { @Override public void run() { graphDb.shutdown(); } } ); } }
[ "RSoltani@Live.ca" ]
RSoltani@Live.ca
de46d3df0b93022639076745635e11c80f6a3807
ed409b0e5a6261a1be77d05fe21c4322811e4be1
/06_State_정규선/src/state/MuchHealthHeal.java
f4499e2bc7dbc4c8fc209e8613e79dfa05d7162d
[]
no_license
vrax0343/06.StatePattern
f25dc65e720ba3a7a58e51f65b77fb0534e431a6
e4e2f3a456a2ff9a5c261bf2c21673e44e996cc2
refs/heads/master
2020-12-31T07:32:16.674509
2017-03-31T09:32:37
2017-03-31T09:32:37
86,556,520
0
0
null
null
null
null
UHC
Java
false
false
631
java
package state; public class MuchHealthHeal implements State{ NewUnit nu; public MuchHealthHeal(NewUnit nu) { super(); this.nu = nu; } @Override public void selfHeal() { // TODO Auto-generated method stub if(nu.getMana() <= 0){ System.out.println(nu.getType() + "의 마나가 부족합니다"); nu.setState(nu.getCantSelfHeal()); nu.check = 1; } else{ int tempMana = nu.getMana(); nu.setHealth(nu.getHealth()+2,2); nu.setMana(nu.getMana()-1); System.out.println("남은 마나량은: ["+tempMana+" -> "+nu.getMana()+"]"); } System.out.println(); } }
[ "daniel@sslee" ]
daniel@sslee
36f1b6a8403cf50812cd172ad44ece0048031621
98d313cf373073d65f14b4870032e16e7d5466f0
/gradle-open-labs/example/src/main/java/se/molybden/Class9026.java
c4c6afba49530712c7cf006a4b3257160bb8019a
[]
no_license
Molybden/gradle-in-practice
30ac1477cc248a90c50949791028bc1cb7104b28
d7dcdecbb6d13d5b8f0ff4488740b64c3bbed5f3
refs/heads/master
2021-06-26T16:45:54.018388
2016-03-06T20:19:43
2016-03-06T20:19:43
24,554,562
0
0
null
null
null
null
UTF-8
Java
false
false
109
java
public class Class9026{ public void callMe(){ System.out.println("called"); } }
[ "jocce.nilsson@gmail.com" ]
jocce.nilsson@gmail.com
7b262b2dd636931a7521e83fc319e5c449459742
b72a1f469147a807c6b8b5b2ed4849fe128b0c79
/src/main/java/br/uniamerica/cis/ProjectcisApiApplication.java
179bee09da6a73aee907a1dd7c0de2afea638da4
[]
no_license
abbas-atwi/projectcis-api
419c8cb31ef9e4fd43b3d5ad785b5237c869c025
dd98b320a5e9f7b3b753b092da9e45aa8955a1d9
refs/heads/master
2022-04-26T19:28:41.116790
2020-04-28T23:58:03
2020-04-28T23:58:03
null
0
0
null
null
null
null
UTF-8
Java
false
false
324
java
package br.uniamerica.cis; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class ProjectcisApiApplication { public static void main(String[] args) { SpringApplication.run(ProjectcisApiApplication.class, args); } }
[ "thiago_marketingdigital@hotmail.com" ]
thiago_marketingdigital@hotmail.com
ee0b9a1626eb0d0599d78b34a3c14522f4f25ed1
2ba1d60d5035e0a7ec839065a0084ff4edf473d8
/aulas/src/aula10/aula/interfaces/Rectangulo.java
caad9a1bc762b1243ca4ad1fb44e83211fca1cf0
[ "MIT" ]
permissive
ze-gomes/upskill-java
7d23f1daac7d9d8da3a0d11b6d5b79d10fe73bf8
64e42de7ec9a959d9734ca630ea1a0d5fabb5900
refs/heads/main
2023-02-28T19:05:13.389371
2021-02-10T00:03:07
2021-02-10T00:03:07
306,679,827
1
0
null
null
null
null
UTF-8
Java
false
false
952
java
package aula10.aula.interfaces; public class Rectangulo implements FiguraGeometricaPlana { private int comprimento; private int largura; public Rectangulo(int comprimento, int largura){ this.comprimento = comprimento; this.largura = largura; } public int getComprimento() { return comprimento; } public int getLargura() { return largura; } public void setComprimento(int comprimento) { this.comprimento = comprimento; } public void setLargura(int largura) { this.largura = largura; } @Override public int getArea() { return comprimento * largura; } @Override public int getPerimetro() { int perimetro = comprimento + comprimento + largura + largura; return perimetro; } @Override public String getNomeFiguraPlana() { return "Rectangulo"; } }
[ "noreply@github.com" ]
ze-gomes.noreply@github.com
8000445ba6089d2af0e828e8402dd94658901c8b
a75487b3ed660ba63daf2c3641bffb85d6242c69
/src/ConnectieClass.java
a4b037757902b305892c950c0ceb0309d8c26834
[]
no_license
MrDutchie00/HWI-2
2b065fcfb7aa0cd3aa916f30cf5fcccfb9101ee1
7af59d86b826cde2c63ab1954ff47703e44fe49f
refs/heads/master
2023-02-13T03:00:10.002786
2021-01-20T14:53:29
2021-01-20T14:53:29
313,265,894
0
0
null
null
null
null
UTF-8
Java
false
false
1,049
java
import java.io.IOException; import java.net.MalformedURLException; import java.net.URI; import java.net.URISyntaxException; import java.net.URL; import java.util.Scanner; public class ConnectieClass { public String getConnection() throws URISyntaxException, IOException { String connection = ""; //Instantiating the URL class URI url = new URI("https://bp6.adainforma.tk/boeboys/index.php"); //Retrieving the contents of the specified page Scanner sc = new Scanner(url.toURL().openStream()); //Instantiating the StringBuffer class to hold the result StringBuffer sb = new StringBuffer(); while(sc.hasNext()) { sb.append(sc.next()); } //Retrieving the String from the String Buffer object String result = sb.toString(); System.out.println(result); //Removing the HTML tags result = result.replaceAll("<[^>]*>", ""); connection = result; System.out.println(connection); return connection; } }
[ "stanbegthel@gmail.com" ]
stanbegthel@gmail.com
c6f86364fbf5b264fcdfd4a32f7931a90e2d7aee
603ad5a17f083182384aa68fbe3a9a9c270c8012
/Android Client (alpha)/src/org/zlwima/emurgency/androidapp/MissionActivity.java
6c5a41ebd68e033974dc87d612496fcbceb59079
[]
no_license
jeskoelsner/EMR-alpha-version
9168c1c86833c2c50a92c29f8db54994c3c339d4
82c082d2b4c158162953175b482f8c1e860d9cb9
refs/heads/master
2020-04-06T03:40:15.621991
2015-05-19T12:38:02
2015-05-19T12:38:02
35,881,078
0
0
null
null
null
null
UTF-8
Java
false
false
22,688
java
package org.zlwima.emurgency.androidapp; import android.app.AlertDialog; import android.app.admin.DevicePolicyManager; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.graphics.drawable.Drawable; import android.hardware.GeomagneticField; import android.hardware.Sensor; import android.hardware.SensorEvent; import android.hardware.SensorEventListener; import android.hardware.SensorManager; import android.location.Criteria; import android.location.Location; import android.location.LocationListener; import android.location.LocationManager; import android.media.Ringtone; import android.media.RingtoneManager; import android.net.Uri; import android.os.Bundle; import android.os.PowerManager; import android.os.PowerManager.WakeLock; import android.os.SystemClock; import android.text.format.DateFormat; import android.view.KeyEvent; import android.view.MotionEvent; import android.view.View; import android.view.View.OnClickListener; import android.view.View.OnTouchListener; import android.view.Window; import android.view.WindowManager; import android.view.WindowManager.LayoutParams; import android.widget.Button; import android.widget.Chronometer; import android.widget.Chronometer.OnChronometerTickListener; import android.widget.RelativeLayout; import android.widget.TextView; import android.widget.Toast; import com.google.android.gcm.GCMRegistrar; import com.google.android.maps.GeoPoint; import com.google.android.maps.MapActivity; import com.google.android.maps.MapController; import com.google.android.maps.MapView; import com.google.android.maps.MyLocationOverlay; import com.google.android.maps.Overlay; import com.google.android.maps.OverlayItem; import com.google.gson.Gson; import de.tavendo.autobahn.WebSocketConnection; import de.tavendo.autobahn.WebSocketException; import de.tavendo.autobahn.WebSocketHandler; import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.logging.Level; import java.util.logging.Logger; import org.json.JSONException; import org.json.JSONObject; import org.zlwima.emurgency.androidapp.config.Base; import org.zlwima.emurgency.androidapp.config.Globals; import org.zlwima.emurgency.androidapp.ui.MapsDotOverlay; import org.zlwima.emurgency.androidapp.ui.MyCustomLocationOverlay; import org.zlwima.emurgency.backend.Shared; import org.zlwima.emurgency.backend.Shared.WebsocketCallback; import org.zlwima.emurgency.backend.model.ParcelableCaseData; import org.zlwima.emurgency.backend.model.ParcelableLocation; import org.zlwima.emurgency.backend.model.ParcelableVolunteer; public class MissionActivity extends MapActivity implements OnTouchListener, OnClickListener, OnChronometerTickListener, LocationListener, DialogInterface.OnClickListener, SensorEventListener { // GMaps private MapView mMap; private MapController mMapController; private List<Overlay> mMapOverlays; // Geo Data private int caseDistance; private String caseAddress; private GeoPoint caseLocation; private GeoPoint userLocation; private ArrayList<GeoPoint> caseUserPoints; private ArrayList<GeoPoint> caseVolunteerPoints; private static ParcelableCaseData caseData = null; private static ParcelableVolunteer userAsVolunteer = new ParcelableVolunteer(); private static ParcelableLocation actualLocation = new ParcelableLocation(); // Variables private boolean screenIsLocked = true; private boolean displayIsZoomed = false; private int minPos; private int maxPos; private int validArea; // UI private TextView volunteerCount; private TextView volunteerCount2; private Chronometer missionTimer; private Chronometer missionTimer2; private TextView caseDistanceText; private TextView caseAddressText; private Button unLocker; private Button centerButton; private RelativeLayout unlockField; private RelativeLayout glasPanel; private RelativeLayout menuPanel; private RelativeLayout topMenuPanel; private AlertDialog caseClosedDialog; // Maps Location Manager LocationManager locationManager; Criteria mCriteria; Location locationFix; // Window & Screenlock Window window; // WebSocket & Manager private WebSocketConnection webSocketConnection = new WebSocketConnection(); private boolean webSocketConnected = false; private RelativeLayout.LayoutParams layoutSetup; private class AndroidWebSocketHandler extends WebSocketHandler { @Override public void onOpen() { Base.Log( "websocket[onOpen()]: connected" ); webSocketConnected = true; sendWebSocketMessage( Shared.WebsocketCallback.CLIENT_SENDS_CASE_ID ); } @Override public void onTextMessage( String payload ) { Base.Log( "::::SOCKET MSG RECEIVED: "+ payload ); try { JSONObject json = new JSONObject( payload ); // Get type of message (close command | message with updated data) switch( json.getInt( Shared.MESSAGE_TYPE ) ) { case Shared.WebsocketCallback.SERVER_SENDS_CLOSE_CASE: Base.Log("websocket[SERVER_SENDS_CLOSE_CASE]"); closeCase(); break; case Shared.WebsocketCallback.SERVER_SENDS_CASEDATA: Base.Log("websocket[SERVER_SENDS_CASEDATA]"); // Get caseData from JSON String caseDataAsJson = json.getString( Shared.CASEDATA_OBJECT ); ParcelableCaseData caseData = new Gson().fromJson( caseDataAsJson, ParcelableCaseData.class ); Intent mIntent = new Intent().putExtra( Shared.CASEDATA_OBJECT, caseData ); updateLocations( MissionActivity.this, mIntent, false ); break; } } catch( JSONException e ) { Base.Log( "websocket[ERROR Json]: " + e.getMessage() ); } } @Override public void onClose( int code, String reason ) { Base.Log( "websocket[onClose()]: " + reason ); } } private void initNewWebSocketConnection() { webSocketConnection.disconnect(); try { webSocketConnection.connect( Shared.Rest.WEBSOCKET_URL + "/" + caseData.getCaseId() , new AndroidWebSocketHandler() ); } catch( WebSocketException ex ) { Base.Log( "::: ERROR CONNETING WEBSOCKET during initNewWebSocketConnection() :::" ); } } @Override protected boolean isRouteDisplayed() { return false; } public void closeCase() { AlertDialog.Builder builder = new AlertDialog.Builder( MissionActivity.this); builder.setIcon(android.R.drawable.ic_dialog_info); builder.setTitle("Case beendet"); builder.setMessage("Der Case wurde serverseitig beendet."); builder.setPositiveButton("OK", this); caseClosedDialog = builder.create(); caseClosedDialog.show(); } public void onClick(DialogInterface dialog, int which) { if (dialog.equals(caseClosedDialog)) { switch (which) { case DialogInterface.BUTTON_POSITIVE: finish(); break; } } } @Override protected void onDestroy() { super.onDestroy(); Base.Log( "Mission Event [onDestroy]" ); webSocketConnection.disconnect(); stopLocationUpdates(); //((LocationOverlayHelper) mMapOverlays.get(1)).disableMyLocation(); //Lock device DevicePolicyManager mDPM; mDPM = (DevicePolicyManager) getSystemService( Context.DEVICE_POLICY_SERVICE ); } @Override public void onCreate( Bundle savedInstanceState ) { super.onCreate( savedInstanceState ); Base.Log( "Mission Event [onCreate]" ); // first content view: login screen setContentView( R.layout.screen_mission ); //Unlock window = getWindow(); window.addFlags(LayoutParams.FLAG_DISMISS_KEYGUARD); window.addFlags(LayoutParams.FLAG_SHOW_WHEN_LOCKED); window.addFlags(LayoutParams.FLAG_TURN_SCREEN_ON); //TODO enable notifications locationManager = (LocationManager) getApplication().getSystemService( LOCATION_SERVICE ); mMap = (MapView) findViewById( R.id.mapView ); mMapController = mMap.getController(); mMapOverlays = mMap.getOverlays(); // initial email of user and location from LocationPoller userAsVolunteer.setEmail(Globals.EMAIL); userAsVolunteer.setLocation(initLocationUpdate()); // ringtone manager / notification sound Uri notification = RingtoneManager.getDefaultUri( RingtoneManager.TYPE_NOTIFICATION ); Ringtone r = RingtoneManager.getRingtone( getApplicationContext(), notification ); r.play(); // initialize button click listeners unLocker = ((Button) findViewById( R.id.buttonUnlock )); unlockField = ((RelativeLayout) findViewById( R.id.unlockField )); glasPanel = ((RelativeLayout) findViewById( R.id.glasPanel )); menuPanel = ((RelativeLayout) findViewById( R.id.menuPanel )); topMenuPanel = ((RelativeLayout) findViewById( R.id.topMenuPanel )); centerButton = ((Button) findViewById( R.id.centerButton )); volunteerCount = ((TextView) findViewById( R.id.volunteerCount )); missionTimer = ((Chronometer) findViewById( R.id.missionTimer )); volunteerCount2 = ((TextView) findViewById( R.id.volunteerCount2 )); missionTimer2 = ((Chronometer) findViewById( R.id.missionTimer2 )); caseDistanceText = ((TextView) findViewById( R.id.caseDistanceText )); caseAddressText = ((TextView) findViewById( R.id.caseAddressText )); // start locationupdates updateLocations( MissionActivity.this, getIntent(), false ); // start websocket connection initNewWebSocketConnection(); // init listener centerButton.setOnClickListener( this ); unLocker.setOnTouchListener( this ); missionTimer.setOnChronometerTickListener( this ); missionTimer.start(); missionTimer2.setOnChronometerTickListener( this ); missionTimer2.start(); } private void zoomMap( ArrayList<GeoPoint> points ) { int minLat = Integer.MAX_VALUE; int maxLat = Integer.MIN_VALUE; int minLon = Integer.MAX_VALUE; int maxLon = Integer.MIN_VALUE; for( GeoPoint point : points ) { int lat = point.getLatitudeE6(); int lon = point.getLongitudeE6(); maxLat = Math.max( lat, maxLat ); minLat = Math.min( lat, minLat ); maxLon = Math.max( lon, maxLon ); minLon = Math.min( lon, minLon ); } // leave some padding from corners double hpadding = 0.2; double vpadding = 0.2; maxLat = maxLat + (int) ((maxLat - minLat) * hpadding); minLat = minLat - (int) ((maxLat - minLat) * hpadding); maxLon = maxLon + (int) ((maxLon - minLon) * vpadding); minLon = minLon - (int) ((maxLon - minLon) * vpadding); mMapController.zoomToSpan( Math.abs( maxLat - minLat ), Math.abs( maxLon - minLon ) ); mMapController.animateTo( new GeoPoint( (maxLat + minLat) / 2, (maxLon + minLon) / 2 ) ); mMap.invalidate(); } public Criteria getCriteria(){ if(mCriteria == null) { mCriteria = new Criteria(); mCriteria.setAccuracy( Criteria.ACCURACY_FINE ); mCriteria.setAltitudeRequired( true ); mCriteria.setBearingRequired( false ); mCriteria.setPowerRequirement( Criteria.POWER_LOW ); } return mCriteria; } public ParcelableLocation initLocationUpdate() { String provider = locationManager.getBestProvider( getCriteria(), true ); Base.Log( "best provider from getLocation() would be: " + provider ); Location currentLocation = locationManager.getLastKnownLocation( provider ); if(currentLocation == null) { currentLocation = new Location("network"); currentLocation.setLatitude(50.7799); currentLocation.setLongitude(6.1007); currentLocation.setProvider("network"); currentLocation.setTime(0); currentLocation.setAltitude(0); } locationFix = currentLocation; ParcelableLocation currentLocationFix; currentLocationFix = new ParcelableLocation(); currentLocationFix.setLatitude(currentLocation.getLatitude()); currentLocationFix.setLongitude(currentLocation.getLongitude()); currentLocationFix.setProvider(currentLocation.getProvider()); currentLocationFix.setTimestamp(currentLocation.getTime()); currentLocationFix.setAltitude(currentLocation.getAltitude()); return currentLocationFix; } public void startLocationUpdates(){ Base.Log( "::: startLocationUpdates() " ); locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, this, null); } public void stopLocationUpdates(){ locationManager.removeUpdates(this); } public void onLocationChanged( Location location ) { Base.Log("::: Own Location updated. Sending to Websocket..."); locationFix = location; actualLocation.setLongitude( location.getLongitude() ); actualLocation.setLatitude( location.getLatitude() ); actualLocation.setAltitude( location.getAltitude() ); actualLocation.setProvider( location.getProvider() ); actualLocation.setTimestamp( location.getTime() ); userAsVolunteer.setEmail( Globals.EMAIL ); userAsVolunteer.setLocation( actualLocation ); sendWebSocketMessage( WebsocketCallback.CLIENT_SENDS_LOCATION_UPDATE ); } public float getDirection(Location self, Location target) { float azimuth = 0;// get azimuth from the orientation sensor (it's quite simple) Location currentLoc = self; // convert radians to degrees azimuth = azimuth * 180 / (float) Math.PI; GeomagneticField geoField = new GeomagneticField( Double.valueOf(currentLoc.getLatitude()).floatValue(), Double.valueOf(currentLoc.getLongitude()).floatValue(), Double.valueOf(currentLoc.getAltitude()).floatValue(), System.currentTimeMillis()); azimuth += geoField.getDeclination(); // converts magnetic north into true north float bearing = currentLoc.bearingTo(target); // (it's already in degrees) return azimuth - bearing; } public void createOverlays( Context context, ArrayList<GeoPoint> points ) { Drawable drawPoint = null; MapsDotOverlay mapsDotOverlay; // remove anything if there is (like.. never...) mMapOverlays.clear(); // add case overlay drawPoint = context.getResources().getDrawable( R.drawable.case_target_marker ); mapsDotOverlay = new MapsDotOverlay( context, drawPoint, true); mapsDotOverlay.addOverlay( points.get( 0 ) ); mMapOverlays.add( mapsDotOverlay ); // volunteer overlay drawPoint = context.getResources().getDrawable( R.drawable.case_volunteer_marker ); mapsDotOverlay = new MapsDotOverlay( context, drawPoint, false ); ArrayList<GeoPoint> volunteerList = new ArrayList<GeoPoint>(); volunteerList.addAll(points.subList(2, points.size())); mapsDotOverlay.addOverlays(volunteerList); mMapOverlays.add( mapsDotOverlay ); // user overlay NO ( compass + direction arrow ) drawPoint = context.getResources().getDrawable( R.drawable.case_self_marker ); mapsDotOverlay = new MapsDotOverlay( context, drawPoint, false ); mapsDotOverlay.addOverlay( points.get( 1 ) ); mMapOverlays.add( mapsDotOverlay ); // rotator MyCustomLocationOverlay myLocOverlay = new MyCustomLocationOverlay(context, mMap, R.drawable.case_rotator, points.get( 1 )); myLocOverlay.disableMyLocation(); myLocOverlay.enableCompass(); mMapOverlays.add( myLocOverlay ); // TODO sensorManager = (SensorManager)getSystemService(SENSOR_SERVICE); orientation = sensorManager.getDefaultSensor(Sensor.TYPE_ORIENTATION); sensorManager.registerListener(this, orientation, SensorManager.SENSOR_DELAY_NORMAL); // start updates so maps works startLocationUpdates(); //refresh map mMap.invalidate(); } public void updateOverlays( ArrayList<GeoPoint> points ) { ParcelableLocation myLoc = userAsVolunteer.getLocation(); MapsDotOverlay singleOverlay = (MapsDotOverlay) mMapOverlays.get(2); ArrayList<GeoPoint> selfList = new ArrayList<GeoPoint>(); selfList.add(new GeoPoint( (int) (myLoc.getLatitude() * 1e6), (int) (myLoc.getLongitude() * 1e6) )); singleOverlay.updateOverlays( selfList ); MapsDotOverlay volunteerOverlay = (MapsDotOverlay) mMapOverlays.get(1); volunteerOverlay.updateOverlays( points ); MyCustomLocationOverlay compassOverlay = (MyCustomLocationOverlay) mMapOverlays.get(3); compassOverlay.updatePoint( new GeoPoint( (int) (myLoc.getLatitude() * 1e6), (int) (myLoc.getLongitude() * 1e6) ) ); //refresh map mMap.invalidate(); } public void updateArrow(float rotation) { // ParcelableLocation myLoc = userAsVolunteer.getLocation(); // // MyCustomLocationOverlay rotatorOverlay = (MyCustomLocationOverlay) mMapOverlays.get(3); // // mMap.invalidate(); } public void updateLocations( Context context, Intent intent, boolean zoomCenter ) { Base.Log( "MissionActivity: updateLocations()" ); // incoming full caseData caseData = intent.getExtras().getParcelable( Shared.CASEDATA_OBJECT ); // calculate distance and display it caseDistance = (int) Shared.calculateDistance( caseData.getCaseLocation().getLatitude(), caseData.getCaseLocation().getLongitude(), userAsVolunteer.getLocation().getLatitude(), userAsVolunteer.getLocation().getLongitude() ); caseDistanceText.setText( "+/- \n" + caseDistance + " m"); // TODO get address of case and display caseAddress = caseData.getCaseAddress(); caseAddressText.setText( caseAddress ); // save caseLocation caseLocation = new GeoPoint( (int) (caseData.getCaseLocation().getLatitude() * 1e6), (int) (caseData.getCaseLocation().getLongitude() * 1e6) ); // save own location userLocation = new GeoPoint( (int) (userAsVolunteer.getLocation().getLatitude() * 1e6), (int) (userAsVolunteer.getLocation().getLongitude() * 1e6) ); // points: user & case caseUserPoints = new ArrayList<GeoPoint>(); caseUserPoints.add( caseLocation ); caseUserPoints.add( userLocation ); // points: case & all volunteer (including user) caseVolunteerPoints = new ArrayList<GeoPoint>(); // fetch all volunteers ArrayList<ParcelableVolunteer> volunteerList = caseData.getVolunteers(); for( ParcelableVolunteer aVolunteer : volunteerList ) { // skip user (already included) // TODO broken exclude... if(aVolunteer.getLocation() != userAsVolunteer.getLocation()) { ParcelableLocation volLoc = aVolunteer.getLocation(); caseVolunteerPoints.add( new GeoPoint( (int) (volLoc.getLatitude() * 1e6), (int) (volLoc.getLongitude() * 1e6) ) ); } } // display all accepted users volunteerCount.setText( volunteerList.size() + " volunteer(s) accepted already" ); volunteerCount2.setText( volunteerList.size() + " active volunteer(s)" ); if(mMapOverlays.size() != 4) { createOverlays( context, caseUserPoints); }else { updateOverlays( caseVolunteerPoints ); } // autozoom to all volunteers AND+OR user and case caseVolunteerPoints.addAll(caseUserPoints); zoomMap( (zoomCenter && !screenIsLocked) ? caseUserPoints : caseVolunteerPoints ); } public void onClick( View v ) { Base.Log( "Mission Event [onClick]" ); if( v.getId() == R.id.centerButton ) { zoomMap( displayIsZoomed ? caseVolunteerPoints : caseUserPoints ); ((Button) v).setText( displayIsZoomed ? "Zoom Fit" : "Zoom All" ); displayIsZoomed = !displayIsZoomed; } startLocationUpdates(); } public boolean onTouch( View view, MotionEvent me ) { switch( me.getAction() ) { case MotionEvent.ACTION_DOWN: Base.Log( "ACTION_DOWN: " + me.getX() + " - " + me.getY() ); layoutSetup = new RelativeLayout.LayoutParams( unLocker.getWidth(), unLocker.getHeight() ); minPos = 4; maxPos = unlockField.getWidth() - unLocker.getWidth() + minPos; Base.Log( "" + maxPos ); validArea = maxPos - 30; // 30 Tolerance break; case MotionEvent.ACTION_UP: Base.Log( "ACTION_UP: " + me.getX() + " - " + me.getY() ); relockScreen( view ); break; case MotionEvent.ACTION_MOVE: int posX = (int) me.getRawX() - (int) (0.5 * unLocker.getWidth()); if( posX >= validArea && screenIsLocked ) { unlockScreen(); } else if( posX >= minPos && posX <= maxPos ) { layoutSetup.setMargins( posX + minPos, 8, 0, 0 ); view.setLayoutParams( layoutSetup ); } break; } return false; } private void unlockScreen(){ screenIsLocked = false; Base.Log("UNLOCKING SCREEN"); glasPanel.setVisibility( View.INVISIBLE ); menuPanel.setVisibility( View.VISIBLE ); topMenuPanel.setVisibility( View.VISIBLE ); mMap.setClickable( true ); //unlocking screen means accepting case sendWebSocketMessage( WebsocketCallback.CLIENT_SENDS_ACCEPT_MISSION ); } private void relockScreen( View view ) { layoutSetup.setMargins( 4, 8, 0, 0 ); view.setLayoutParams( layoutSetup ); } /** * Countdown with a chronometer */ public void onChronometerTick( Chronometer chronometer ) { Date date = new Date( SystemClock.elapsedRealtime() - chronometer.getBase() ); missionTimer.setText( "Mission active: " + DateFormat.format( "mm:ss", date.getTime() ) ); missionTimer2.setText( "Mission active: " + DateFormat.format( "mm:ss", date.getTime() ) ); } private void sendWebSocketMessage( int messageType ) { if(webSocketConnected) { Base.Log( "::::SOCKET MSG SEND: "+ messageType ); JSONObject json = new JSONObject(); try { json.put( Shared.MESSAGE_TYPE, messageType ); json.put( Shared.CASE_ID, caseData.getCaseId() ); if( messageType != Shared.WebsocketCallback.CLIENT_SENDS_CASE_ID ) { json.put( Shared.VOLUNTEER_OBJECT, new Gson().toJson( userAsVolunteer ) ); } } catch( JSONException e ) { Base.Log( "SENDING ERROR: " + e.getMessage() ); } webSocketConnection.sendTextMessage( json.toString() ); } } public void onProviderDisabled(String arg0) { // TODO Auto-generated method stub } public void onProviderEnabled(String arg0) { // TODO Auto-generated method stub } public void onStatusChanged(String arg0, int arg1, Bundle arg2) { // TODO Auto-generated method stub } public void onAccuracyChanged(Sensor arg0, int arg1) { // TODO Auto-generated method stub } private SensorManager sensorManager; private Sensor orientation; @Override protected void onPause() { sensorManager.unregisterListener(this); super.onPause(); } float currentAzimuth = 0; float maxAzimuth = 0; float minAzimuth = 0; float rangeAzimuth = 2; float direction; public void onSensorChanged(SensorEvent event) { currentAzimuth = Math.round(event.values[0]); if( minAzimuth == 0 && maxAzimuth == 0 ) { minAzimuth = (currentAzimuth - rangeAzimuth) % 360; maxAzimuth = (currentAzimuth + rangeAzimuth) % 360; } if( (minAzimuth > currentAzimuth || currentAzimuth > maxAzimuth) && locationFix != null ) { minAzimuth = currentAzimuth - rangeAzimuth; maxAzimuth = currentAzimuth + rangeAzimuth; direction = currentAzimuth - locationFix.bearingTo( locationFix ); Base.Log(String.format("Direction: %f - Azimuth: %f", direction, currentAzimuth)); updateArrow( direction ); } } }
[ "jesko.elsner@gmail.com" ]
jesko.elsner@gmail.com
d4a1c2e8a933e09e503e15c816c02fd20c75a48c
a62b5d5222416870eeb84d52df874a519e3ddfbb
/src/main/java/ua/com/elcentr/model/Customer.java
78ebd6d7ecbbeb1a5cea0b06c6c1c098cde4e9f2
[]
no_license
zenzeliuk/bd-elcentr
7a1b84957803fa8c187a2194afa332b5ce6a8f71
00a3753e5be0060fe21cd7910160fa8697e73113
refs/heads/master
2023-02-28T18:47:52.979593
2021-02-03T19:55:08
2021-02-03T19:55:08
334,761,824
0
0
null
null
null
null
UTF-8
Java
false
false
216
java
package ua.com.elcentr.model; import lombok.*; @Data @Builder @ToString @NoArgsConstructor @AllArgsConstructor public class Customer { private Integer id; private String name; private String notes; }
[ "zenzelyuk.m@gmail.com" ]
zenzelyuk.m@gmail.com
6852c0b469e68cb87e6c502cb2ef2c3acf03bc75
5849ef4164182ef8ccd44be83067de9f36a41735
/app/src/androidTest/java/arc/hotelapp/ExampleInstrumentedTest.java
34134daac3a351969761f0652d86475dda1271ef
[]
no_license
raunak-many-ac/HotelAdmin
c041193f1ea6d3528f99cd0c58fa99c944ac5d5f
59d9cf60c06e8245452e162620d846075e984909
refs/heads/master
2022-04-24T06:44:25.427902
2020-04-17T07:28:05
2020-04-17T07:28:05
null
0
0
null
null
null
null
UTF-8
Java
false
false
742
java
package arc.hotelapp; import android.content.Context; import androidx.test.InstrumentationRegistry; import androidx.test.runner.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; /** * Instrumentation background, which will execute on an Android device. * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ @RunWith(AndroidJUnit4.class) public class ExampleInstrumentedTest { @Test public void useAppContext() throws Exception { // Context of the app under background. Context appContext = InstrumentationRegistry.getTargetContext(); assertEquals("droidmentor.searchviewsample", appContext.getPackageName()); } }
[ "battleofsunny@gmail.com" ]
battleofsunny@gmail.com
ac375bd551ea45762501d0455184ba534172fc42
55e438e89a3ad39fa8cc23c48ad0fed8c303fd7b
/src/main/java/name/auswise/spring/webstore/service/impl/ProductTypeServiceImpl.java
46137779ed46e3556f1532b6f4760ada7d6c7bd1
[]
no_license
AusWise/SklepInternetowy
bcdcdb46046acabd1ffe1a6b8d94aef2a478a5a3
26b78815e58a34537cb66794c1c631b4c58355fc
refs/heads/master
2021-01-17T14:09:20.708703
2016-09-08T08:11:54
2016-09-08T08:11:54
44,611,622
0
0
null
null
null
null
UTF-8
Java
false
false
743
java
package name.auswise.spring.webstore.service.impl; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import name.auswise.spring.webstore.model.ProductType; import name.auswise.spring.webstore.service.ProductTypeService; import name.auswise.spring.webstore.model.repository.ProductTypeRepository; @Service public class ProductTypeServiceImpl implements ProductTypeService { @Autowired ProductTypeRepository productTypeRepository; @Override public ProductType findByNazwa(String typProduktu) { return productTypeRepository.findByNazwa(typProduktu); } @Override public List<ProductType> findAll() { return productTypeRepository.findAll(); } }
[ "m.polanowski888@gmail.com" ]
m.polanowski888@gmail.com
f1f23950b33a7a718fcb627e7c2f9f1003a0fd44
2881c73fb1f3eba2e66c7e961f4632b0b73afda1
/core/src/test/java/il/ac/technion/nlp/nli/core/dataset/simple_test_domain/User.java
6ba2bde9e10dc9a7e80a3fa6ed7402bf77259f8c
[ "MIT", "Apache-2.0", "CC-BY-4.0" ]
permissive
ArturHD/TechnionNLI
b7d2546d16cfbb0e0c81459590d1548a8077c204
4f9445238813080cbb5f7e63036afdc19d9afcca
refs/heads/master
2022-03-05T14:04:02.605338
2019-11-11T13:12:32
2019-11-11T13:12:32
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,019
java
package il.ac.technion.nlp.nli.core.dataset.simple_test_domain; import il.ac.technion.nlp.nli.core.EnableNli; import il.ac.technion.nlp.nli.core.state.NliEntity; import java.util.Collection; import java.util.LinkedList; import java.util.List; /** * @author Ofer Givoli <ogivoli@cs.technion.ac.il> */ public class User implements NliEntity { private static final long serialVersionUID = -4117150756984253787L; public List<String> hobbies = new LinkedList<>(); public List<User> friends = new LinkedList<>(); public int age = 0; /** * Don't look for real-life motivation here :) */ @EnableNli public void setAgeInTwoCollections(Collection<User> c1, int age1, Collection<User> c2, int age2) { c1.forEach(u->u.age = age1); c2.forEach(u->u.age = age2); } @EnableNli public void addFriend(User u) { friends.add(u); } @EnableNli public void setAge(int age) { this.age = age; } }
[ "ofer.givoli@gmail.com" ]
ofer.givoli@gmail.com
f82c895c73b4eac1f49c096d0271cb58781180ba
1f0b9a15d5c3ca7c7f209f3afb2a3c3da1da4c06
/src/com/example/niuxin/GroupEntity.java
a4164a35c6dfd795f06f1561ada038cfd08f3aea
[]
no_license
AndroidDZY/NiuXin
ab4134a95a9fac6d04649abca032a49112fe194b
53b2234b4233e6316caab3447291d64a9dbcdd5c
refs/heads/master
2021-01-21T22:26:01.888362
2016-01-01T13:09:28
2016-01-01T13:09:28
38,283,525
1
1
null
null
null
null
UTF-8
Java
false
false
781
java
package com.example.niuxin; public class GroupEntity { private int img; private String name; private String lable;// 个性签名 public GroupEntity() { // TODO Auto-generated constructor stub } public GroupEntity(int img, String name, String lable) { super(); this.img = img; this.name = name; this.lable = lable; } public int getImg() { return img; } public void setImg(int img) { this.img = img; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getLable() { return lable; } public void setLable(String lable) { this.lable = lable; } @Override public String toString() { return "GroupEntity [img=" + img + ", name=" + name + ", lable=" + lable + "]"; } }
[ "master8902@163.com" ]
master8902@163.com
26f1728304e32d073bd2185ab598f173314787e3
1dbbd466b317f77f43a21a2db7674309178806ed
/10-jsr/hello-examples/src/main/java/com/example/WithSayHello.java
b2cf6efe22ed57b16278c51999d3936595bfc955
[]
no_license
zhangCheng1993/JavaSystemPerformanceOptimization
728cdfd0b58bba78cc1d869ee02712160f71dad4
b608d0f5a2094b56157ae34e24061e7d2b7d9776
refs/heads/master
2023-09-01T02:33:10.201308
2021-10-11T02:55:26
2021-10-11T02:55:26
415,756,720
0
0
null
null
null
null
UTF-8
Java
false
false
63
java
package com.example; @SayHello public class WithSayHello { }
[ "cheng3.zhang@ximalaya.com" ]
cheng3.zhang@ximalaya.com
e5f3600c179c48ef1470dda96857aa56614fc155
6f765398be53d68d87ce0da5d7004a8d30147de6
/src/intro/rainsofreason/ChessBoardCellColor.java
7bbad76ca7e3463cf6652f34531652fca33e303e
[]
no_license
microgenius/CodeSignal-Arcade
e56930f4b0784b6cdd5d18d50a99efebeaeed525
b52166fc111b4a594c2ae39f7699a9cc85f59377
refs/heads/master
2020-04-20T12:17:20.562515
2019-03-12T12:35:13
2019-03-12T12:35:13
168,839,221
0
0
null
null
null
null
UTF-8
Java
false
false
783
java
package intro.rainsofreason; public class ChessBoardCellColor { boolean chessBoardCellColor(String cell1, String cell2) { int[][] chessBoard = {{0,1,0,1,0,1,0,1}, {1,0,1,0,1,0,1,0}, {0,1,0,1,0,1,0,1}, {1,0,1,0,1,0,1,0}, {0,1,0,1,0,1,0,1}, {1,0,1,0,1,0,1,0}, {0,1,0,1,0,1,0,1}, {1,0,1,0,1,0,1,0}}; int[] point1 = parseBoardCell(cell1); int[] point2 = parseBoardCell(cell2); return chessBoard[point1[0]][point1[1]] == chessBoard[point2[0]][point2[1]]; } private int[] parseBoardCell(String cell) { char[] cellArr = cell.toCharArray(); int row = (int)(cell.charAt(0) - 'A'); int col = (int)(cell.charAt(1) - '1'); return new int[]{row, col}; } }
[ "sezer.tanriverdioglu@etiya.com" ]
sezer.tanriverdioglu@etiya.com
9d5f35b5d27db540f23be146ebe344b13cdcce89
622259e01d8555d552ddeba045fafe6624d80312
/edu.harvard.i2b2.eclipse.plugins.workplace/gensrc/edu/harvard/i2b2/crcxmljaxb/datavo/pdo/query/PageType.java
d6641e44c08bbff1c2f59c6c08ae31b2ca9639c4
[]
no_license
kmullins/i2b2-workbench-old
93c8e7a3ec7fc70b68c4ce0ae9f2f2c5101f5774
8144b0b62924fa8a0e4076bf9672033bdff3b1ff
refs/heads/master
2021-05-30T01:06:11.258874
2015-11-05T18:00:58
2015-11-05T18:00:58
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,012
java
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.1.2-b01-fcs // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2015.07.21 at 10:39:00 AM EDT // package edu.harvard.i2b2.crcxmljaxb.datavo.pdo.query; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for pageType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="pageType"> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="paging_by_patients" type="{http://www.i2b2.org/xsd/cell/crc/pdo/1.1/}pageByPatient_Type"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "pageType", propOrder = { "pagingByPatients" }) public class PageType { @XmlElement(name = "paging_by_patients", required = true) protected PageByPatientType pagingByPatients; /** * Gets the value of the pagingByPatients property. * * @return * possible object is * {@link PageByPatientType } * */ public PageByPatientType getPagingByPatients() { return pagingByPatients; } /** * Sets the value of the pagingByPatients property. * * @param value * allowed object is * {@link PageByPatientType } * */ public void setPagingByPatients(PageByPatientType value) { this.pagingByPatients = value; } }
[ "Janice@phs000774.partners.org" ]
Janice@phs000774.partners.org
464aed4c036ca9829f629a978eb1339d23385492
2dd5f3a17d355a85268d8830e233d170403bea9c
/ExemploJComboBox01.java
8b80af03ceb3ec665090ea2659df7e38262e6724
[]
no_license
cidmardsr/InterfaceGrafica
bcec8a45210c35f7d1f1b434cfbc838041c42312
0aba2cbf9cd8dd52ca5af2b4988e8361d17ce0ab
refs/heads/master
2020-03-21T05:47:47.886326
2018-06-29T14:27:32
2018-06-29T14:27:32
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,489
java
import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.DefaultComboBox; import javax.swing.JComboBox; import javax.swing.DefaultComboBoxModel; import javax.swing.JButton; import javax.swing.JOptionPane; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; public class ExemploJComboBox01{ public static void main(String[] args) { JFrame tela = new JFrame("Campo de Seleção"); tela.setSize(500, 500); tela.setLayout(null); tela.setLocationRelativeTo(null); tela.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JLabel labelJogo = new JLabel("Jogo"); labelJogo.setSize(70, 20); labelJogo.setLocation(10, 10); JComboBox caixaDeSelecao = new JComboBox(); caixaDeSelecao.setSize(200, 20); caixaDeSelecao.setLocation(85, 10); DefaultComboBoxModel modelo = new DefaultComboBoxModel( new Object[]{ "Bom de guerra", "Fortinite", "Minicrêfte", "Poquemon", "Farcrie 5" } ); caixaDeSelecao.setModel(modelo); caixaDeSelecao.setSelectedIndex(-1); JButton botao = new JButton(); botao.setSize(150, 20); botao.setLocation(45, 35); botao.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent e){ String jogoSelecionado = caixaDeSelecao .getSelectedItem().toString(); JOptionPane.showMessageDialog(null, "Jogo selecioado: " + jogoSelecionado); } }); tela.add(botao); tela.add(labelJogo); tela.add(caixaDeSelecao); tela.setVisible(true); } }
[ "cidmardsr@gmail.com" ]
cidmardsr@gmail.com
e9b4abe2b15c78f1d97ed9372bcd783fdcaeeaea
727aba1c6f3fc9a41d74f1d98cd591386eb355d3
/src/main/java/club/mineman/antigamingchair/check/impl/range/RangeA.java
7dd08a3e103c520ce03012ec8b5116068eeebb92
[]
no_license
Pixchure/AGC
4ca13cd64f60d39f2e9b488b30602842fcf92427
84cd3e61aeaa813f79530a9ed09587fc9708f466
refs/heads/main
2023-04-21T16:46:50.947045
2021-04-29T15:35:42
2021-04-29T15:35:42
362,814,110
0
1
null
null
null
null
UTF-8
Java
false
false
3,852
java
package club.mineman.antigamingchair.check.impl.range; import club.mineman.antigamingchair.AntiGamingChair; import club.mineman.antigamingchair.check.checks.PacketCheck; import club.mineman.antigamingchair.data.PlayerData; import club.mineman.antigamingchair.event.player.PlayerAlertEvent; import club.mineman.antigamingchair.location.CustomLocation; import club.mineman.antigamingchair.util.MathUtil; import net.minecraft.server.v1_8_R3.Entity; import net.minecraft.server.v1_8_R3.EntityPlayer; import net.minecraft.server.v1_8_R3.Packet; import net.minecraft.server.v1_8_R3.PacketPlayInFlying; import net.minecraft.server.v1_8_R3.PacketPlayInUseEntity; import net.minecraft.server.v1_8_R3.PacketPlayInUseEntity.EnumEntityUseAction; import org.bukkit.GameMode; import org.bukkit.craftbukkit.v1_8_R3.entity.CraftPlayer; import org.bukkit.entity.Player; public class RangeA extends PacketCheck { private boolean sameTick; public RangeA(AntiGamingChair plugin, PlayerData playerData) { super(plugin, playerData); } public void handleCheck(Player player, Packet packet) { if (packet instanceof PacketPlayInUseEntity && !player.getGameMode().equals(GameMode.CREATIVE) && System.currentTimeMillis() - this.playerData.getLastDelayedMovePacket() > 110L && System.currentTimeMillis() - this.playerData.getLastMovePacket().getTimestamp() < 110L && !this.sameTick) { PacketPlayInUseEntity useEntity = (PacketPlayInUseEntity)packet; if (useEntity.a() == EnumEntityUseAction.ATTACK) { Entity targetEntity = useEntity.a(((CraftPlayer)player).getHandle().getWorld()); if (targetEntity instanceof EntityPlayer) { Player target = (Player)targetEntity.getBukkitEntity(); CustomLocation latestLocation = this.playerData.getLastPlayerPacket(target.getUniqueId(), 1); if (latestLocation == null || System.currentTimeMillis() - latestLocation.getTimestamp() > 100L) { return; } CustomLocation targetLocation = this.playerData.getLastPlayerPacket(target.getUniqueId(), MathUtil.pingFormula(this.playerData.getPing()) + 2); if (targetLocation == null) { return; } CustomLocation playerLocation = this.playerData.getLastMovePacket(); PlayerData targetData = this.plugin.getPlayerDataManager().getPlayerData(target); if (targetData == null) { return; } double range = Math.hypot(playerLocation.getX() - targetLocation.getX(), playerLocation.getZ() - targetLocation.getZ()); if (range > 6.5D) { return; } double threshold = 3.3D; if (!targetData.isSprinting() || MathUtil.getDistanceBetweenAngles(playerLocation.getYaw(), targetLocation.getYaw()) < 90.0D) { threshold += 0.5D; } double vl = this.playerData.getCheckVl(this); if (range > threshold && ++vl >= 12.5D) { if (this.alert(PlayerAlertEvent.AlertType.RELEASE, player, String.format("failed Range Check A. E %.2f. R %.3f. T %.2f. VL %.2f.", range - threshold + 3.0D, range, threshold, vl))) { if (!this.playerData.isBanning() && vl >= this.plugin.getRangeVl()) { this.ban(player, "Range Check A"); } } else { --vl; } } else if (range >= 2.0D) { vl -= 0.225D; } this.playerData.setCheckVl(vl, this); this.sameTick = true; } } } else if (packet instanceof PacketPlayInFlying) { this.sameTick = false; } } }
[ "noreply@github.com" ]
Pixchure.noreply@github.com
2a617c85be17f333e5807cf04b7e43d30a720c69
6428a7163341aff0c8e537ffb8573d5073ec0a57
/LENA_EJB/ejbModule/com/lgcns/ejb/Jms/Messages2.java
dc9583f8e10c4551332bd534077a9573cbba7cd2
[]
no_license
lenalaborg/JAVA_EE_example
35932710af49e6f48949a52303c682fa8f1a92c3
103b24cfe47e2b68a413fe8b0527ccdb43ec2ae8
refs/heads/master
2023-01-05T14:10:59.422571
2020-11-05T01:06:47
2020-11-05T01:06:47
294,017,375
0
0
null
null
null
null
UTF-8
Java
false
false
2,949
java
package com.lgcns.ejb.Jms; import javax.ejb.Stateless; import javax.jms.Connection; import javax.jms.ConnectionFactory; import javax.jms.Destination; import javax.jms.JMSException; import javax.jms.Message; import javax.jms.MessageConsumer; import javax.jms.MessageProducer; import javax.jms.Queue; import javax.jms.Session; import javax.jms.TextMessage; import javax.naming.Context; import javax.naming.InitialContext; @Stateless public class Messages2 { public void sendMessage(String text, int priorityLevel) throws JMSException { Connection connection = null; Session session = null; MessageProducer producer = null; try { Context ctx = new InitialContext(); ConnectionFactory connectionFactory = (ConnectionFactory) ctx.lookup("openejb:Resource/connectionFactory2"); connection = connectionFactory.createConnection(); connection.start(); session = connection.createSession(false, 1); Queue queue = session.createQueue("openejb:Resource/queue1"); producer = session.createProducer((Destination) queue); TextMessage message = session.createTextMessage(); message.setText("Hello ...This is a sample message..sending from FirstClient : " + text); producer.setPriority(priorityLevel); producer.send((Message) message); } catch (Exception exception) { } finally { if (producer != null) try { producer.close(); } catch (Exception exception) { } if (session != null) try { session.close(); } catch (Exception exception) { } if (connection != null) try { connection.close(); } catch (Exception exception) { } } } public String receiveMessage() throws JMSException { String res = ""; Connection connection = null; Session session = null; MessageConsumer consumer = null; try { Context ctx = new InitialContext(); ConnectionFactory connectionFactory = (ConnectionFactory) ctx.lookup("openejb:Resource/connectionFactory2"); connection = connectionFactory.createConnection(); connection.start(); session = connection.createSession(false, 1); Queue queue = session.createQueue("openejb:Resource/queue1"); consumer = session.createConsumer((Destination) queue); Message message = consumer.receive(1000L); String receiveMessage = ""; if (message != null && message instanceof TextMessage) { TextMessage txtMsg = (TextMessage) message; System.out.println("Received: " + txtMsg.getText()); res = "Received: " + txtMsg.getText(); } else { System.out.println("Received nothing "); res = "Received nothing "; } } catch (Exception exception) { } finally { if (consumer != null) try { consumer.close(); } catch (Exception exception) { } if (session != null) try { session.close(); } catch (Exception exception) { } if (connection != null) try { connection.close(); } catch (Exception exception) { } } return res; } }
[ "76882@LCNC07V0292.corp.lgcns.com" ]
76882@LCNC07V0292.corp.lgcns.com
ed09e024701ecf95437f1685ac1524850a769a45
071a9fa7cfee0d1bf784f6591cd8d07c6b2a2495
/corpus/norm-class/tomcat70/853.java
d9698f4d84e72b59b06938e4123dc14b7945f402
[ "MIT" ]
permissive
masud-technope/ACER-Replication-Package-ASE2017
41a7603117f01382e7e16f2f6ae899e6ff3ad6bb
cb7318a729eb1403004d451a164c851af2d81f7a
refs/heads/master
2021-06-21T02:19:43.602864
2021-02-13T20:44:09
2021-02-13T20:44:09
187,748,164
0
0
null
null
null
null
UTF-8
Java
false
false
4,891
java
licensed apache software foundation asf contributor license agreements notice file distributed work additional copyright ownership asf licenses file apache license version license file compliance license copy license http apache org licenses license required applicable law agreed writing software distributed license distributed basis warranties conditions kind express implied license specific language governing permissions limitations license javax servlet jsp tagext tag attribute info tagattributeinfo wired real benefit idref s idrefs handled differently string constructor tag attribute info tagattributeinfo instantiated tag library taglibrary code request jsp code parsing tld tag library descriptor param attribute param required attribute required tag instances param type type attribute param req time reqtime attribute holds request time attribute tag attribute info tagattributeinfo string required string type req time reqtime required type req time reqtime jsp constructor tag attribute info tagattributeinfo instantiated tag library taglibrary code request jsp code parsing tld tag library descriptor param attribute param required attribute required tag instances param type type attribute param req time reqtime attribute holds request time attribute param fragment attribute type jsp fragment jspfragment tag attribute info tagattributeinfo string required string type req time reqtime fragment required type req time reqtime fragment jsp constructor tag attribute info tagattributeinfo instantiated tag library taglibrary code request jsp code parsing tld tag library descriptor param attribute param required attribute required tag instances param type type attribute param req time reqtime attribute holds request time attribute param fragment attribute type jsp fragment jspfragment param description description attribute param deferred value deferredvalue attribute accept expressions written strings attribute values evaluation deferred calculated tag param deferred method deferredmethod attribute accept method expressions written strings attribute values evaluation deferred calculated tag param expected type name expectedtypename expected type deferred eval uated evaluated param method signature methodsignature expected method signature deferred method jsp tag attribute info tagattributeinfo string required string type req time reqtime fragment string description deferred value deferredvalue deferred method deferredmethod string expected type name expectedtypename string method signature methodsignature required required type type req time reqtime req time reqtime fragment fragment description description deferred value deferredvalue deferred value deferredvalue deferred method deferredmethod deferred method deferredmethod expected type name expectedtypename expected type name expectedtypename method signature methodsignature method signature methodsignature attribute attribute string get name getname type string attribute type attribute string get type name gettypename type attribute hold request time attribute hold request time can be request time canberequesttime req time reqtime attribute required attribute required is required isrequired required convenience method array tag attribute info tagattributeinfo objects param array tag attribute info tagattributeinfo tag attribute info tagattributeinfo reference tag attribute info tagattributeinfo get id attribute getidattribute tag attribute info tagattributeinfo length get name getname equals attribute attribute type jsp fragment jspfragment attribute type jsp fragment jspfragment is fragment isfragment fragment returns string representation tag attribute info tagattributeinfo suitable debug ging debugging purposes string representation tag attribute info tagattributeinfo override string to string tostring string builder stringbuilder string builder stringbuilder append append type type append req time reqtime req time reqtime append required required append fragment fragment append deferred value deferredvalue deferred value deferredvalue append expected type name expectedtypename expected type name expectedtypename append deferred method deferredmethod deferred method deferredmethod append method signature methodsignature method signature methodsignature to string tostring fields string string type req time reqtime required fields jsp fragment fields jsp string description deferred value deferredvalue deferred method deferredmethod string expected type name expectedtypename string method signature methodsignature is deferred method isdeferredmethod deferred method deferredmethod is deferred value isdeferredvalue deferred value deferredvalue string get description getdescription description string get expected type name getexpectedtypename expected type name expectedtypename string get method signature getmethodsignature method signature methodsignature
[ "masudcseku@gmail.com" ]
masudcseku@gmail.com
913154dd2d1396c31a7a8e4edbeabbd06c4b1f1a
9cdf4a803b5851915b53edaeead2546f788bddc6
/machinelearning/5.0.x/drools-eclipse/org.drools.eclipse/src/main/java/org/drools/eclipse/flow/ruleflow/editor/action/CheckRuleFlowAction.java
8b15052b529b18abcd038c016e2eb2d5e8437d5d
[ "Apache-2.0" ]
permissive
kiegroup/droolsjbpm-contributed-experiments
8051a70cfa39f18bc3baa12ca819a44cc7146700
6f032d28323beedae711a91f70960bf06ee351e5
refs/heads/master
2023-06-01T06:11:42.641550
2020-07-15T15:09:02
2020-07-15T15:09:02
1,184,582
1
13
null
2021-06-24T08:45:52
2010-12-20T15:42:26
Java
UTF-8
Java
false
false
2,814
java
package org.drools.eclipse.flow.ruleflow.editor.action; /* * Copyright 2005 JBoss Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import org.drools.eclipse.DroolsEclipsePlugin; import org.drools.eclipse.flow.ruleflow.editor.RuleFlowModelEditor; import org.drools.process.core.validation.ProcessValidationError; import org.drools.ruleflow.core.validation.RuleFlowProcessValidator; import org.eclipse.core.runtime.IStatus; import org.eclipse.core.runtime.Status; import org.eclipse.jface.action.IAction; import org.eclipse.jface.dialogs.ErrorDialog; import org.eclipse.jface.dialogs.MessageDialog; import org.eclipse.ui.IEditorActionDelegate; import org.eclipse.ui.IEditorPart; import org.eclipse.ui.actions.ActionDelegate; /** * Action for checking a RuleFlow. * * @author <a href="mailto:kris_verlaenen@hotmail.com">Kris Verlaenen</a> */ public class CheckRuleFlowAction extends ActionDelegate implements IEditorActionDelegate { private IEditorPart editor; public void run(IAction action) { execute(); } public void setActiveEditor(IAction action, IEditorPart targetEditor) { editor = targetEditor; } private void execute() { ProcessValidationError[] errors = RuleFlowProcessValidator.getInstance().validateProcess( ((RuleFlowModelEditor) editor).getRuleFlowModel().getRuleFlowProcess()); if (errors.length == 0) { MessageDialog.openInformation(editor.getSite().getShell(), "Check RuleFlow", "The RuleFlow model was checked successfully."); } else { StringBuffer error = new StringBuffer(errors[0].toString()); error.append("\n"); for (int i = 1; i < errors.length; i++) { error.append(" "); error.append(errors[i]); error.append("\n"); } ErrorDialog.openError(editor.getSite().getShell(), "Check RuleFlow", "The RuleFlow model contains errors.", new Status( IStatus.ERROR, DroolsEclipsePlugin.getDefault().getBundle().getSymbolicName(), IStatus.ERROR, error.toString(), null) ); } } }
[ "gizil.oguz@gmail.com" ]
gizil.oguz@gmail.com
c2839968032f54c7708aba5c0bb5df0c8f3cf9b6
2c25fa6bdc19705cf68c9262dfe9e053a61c3b07
/Codes/Bingran Li/Tree/110. Balanced Binary Tree.java
7d46417150ac62a5b29317a2cabeee60d4727a92
[]
no_license
wszk1992/LeetCode-Team
6d346135d96e29fe0cba1116067d9ade599ad103
590a2d7c0c562684fa404ad03e9b8a43b5b628d1
refs/heads/master
2021-01-19T02:29:18.589151
2016-09-07T05:27:36
2016-09-07T05:27:39
50,127,537
2
4
null
2016-06-17T22:35:26
2016-01-21T18:23:01
C++
UTF-8
Java
false
false
1,438
java
/** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x; } * } */ public class Solution { public boolean isBalanced(TreeNode root) { // solution 1: too slow (5.7%) if(root==null) return true; TreeNode currentNode; int differ; currentNode = root; differ = height(currentNode.left)-height(currentNode.right); if(differ>1||differ<-1) // used to be differ*differ>1-----from 8ms to 7ms return false; boolean left = isBalanced(currentNode.left); if(!left) return false; boolean right = isBalanced(currentNode.right); if(!right) return false; return true; } public int height(TreeNode root){ if(root==null) return -1; // ********do not call it again and again***** int l= height(root.left); int r= height(root.right); /* if(root.left==null && root.right==null) return 0; if(root.left==null) return r+1; if(root.right==null) return l+1; */ int height=0; height = r>l? r: l; return height+1; } }
[ "Bingran@ip184-178-39-161.ga.at.cox.net" ]
Bingran@ip184-178-39-161.ga.at.cox.net
05d1367605127788ce56f9c41a5ca825a0258c60
969a31f2f88df1af334b37c5fe54f6f5570b4920
/src/util/DBConnectionUtil.java
7350a588f37a7db63ce49e9979c5cb9bd5a05a13
[]
no_license
quocvo0206/Bsong-Sevlet-Jsp
102f9bba7c04d25c425304deafb0c9f73fc12923
c8c5482451ff8befeed0aff14eaaf96feed3b9fc
refs/heads/master
2020-09-23T06:23:25.189718
2019-12-12T17:00:01
2019-12-12T17:00:01
225,427,170
0
0
null
null
null
null
UTF-8
Java
false
false
741
java
package util; import java.sql.Connection; import java.sql.DriverManager; public class DBConnectionUtil { private static String url = "jdbc:mysql://localhost:3306/bsong?useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8"; private static String user = "root"; private static String password = ""; private static Connection conn = null; public static Connection getConnection() { try { Class.forName("com.mysql.jdbc.Driver"); conn = DriverManager.getConnection(url, user, password); } catch (Exception e) { System.out.println("Không thể nạp driver"); e.printStackTrace(); } return conn; } public static void main(String[] args) { System.out.println(DBConnectionUtil.getConnection()); } }
[ "ADMIN@DESKTOP-OVLNOKF" ]
ADMIN@DESKTOP-OVLNOKF
f87b137617af7bb15874c471bdd2c15c94678c0a
efd669495644092a5c45aeea279bf14f7038f112
/src/main/java/com/netty/protobuf/ProtoBufTest.java
c663daf9990acfb3248b00182f7c4dd54e9d87d9
[]
no_license
ape-andy/NettyStudy
57322c07e100273d35ff3901961c7422839064f5
aa690a9cb6812a3f7182946228956632547974c3
refs/heads/master
2020-08-30T19:46:44.663515
2019-10-30T07:59:41
2019-10-30T07:59:41
218,472,519
0
0
null
null
null
null
UTF-8
Java
false
false
701
java
package com.netty.protobuf; import com.google.protobuf.InvalidProtocolBufferException; public class ProtoBufTest { public static void main(String[] args) throws InvalidProtocolBufferException { DataInfo.Student student = DataInfo.Student.newBuilder() .setName("张三") .setAddress("南京") .setAge(30) .build(); byte[] student2ByteArray = student.toByteArray(); DataInfo.Student student1 = DataInfo.Student.parseFrom(student2ByteArray); System.out.println(student1.getName()); System.out.println(student1.getAge()); System.out.println(student1.getAddress()); } }
[ "xuehou_1475384557@163.com" ]
xuehou_1475384557@163.com
43868551f0ab7cc7c866951f49c244262167a78f
b1745d0cc30f187fb3d8b35d88c9531f27b4c995
/src/main/java/table_DB/user.java
eeda747e927267b91584044431056353421ff193
[]
no_license
Egoistest/weidong
388e3b01911949a3c4ce061e4ecda65d7a155794
674cf83aca17feb9e4f310ae430b1b1d37eeaa76
refs/heads/master
2020-04-09T06:29:21.257307
2018-12-05T02:36:55
2018-12-05T02:36:55
160,114,891
0
0
null
null
null
null
UTF-8
Java
false
false
79
java
package table_DB; public class user { String name; String password; }
[ "egoistest@163.com" ]
egoistest@163.com
645ac0c2d1331ab874dcef327a5966034954d754
1095fea85170be0fead52a277f7c5c2661c747ff
/rs3 files/876 Deob/source/com/jagex/Class17.java
e3cded57c6a8f3ab2fdcc89f273f4a5969a547ae
[ "Apache-2.0" ]
permissive
emcry666/project-scape
fed5d533f561cb06b3187ea116ff2692b840b6b7
827d213f129a9fd266cf42e7412402609191c484
refs/heads/master
2021-09-01T01:01:40.472745
2017-12-23T19:55:02
2017-12-23T19:55:02
114,505,346
0
0
null
null
null
null
UTF-8
Java
false
false
4,574
java
/* Class17 - Decompiled by JODE * Visit http://jode.sourceforge.net/ */ package com.jagex; import java.util.Date; public class Class17 implements Interface13, Interface6 { Class464[][] aClass464ArrayArray189; Object[][] anObjectArrayArray190; static String aString191; public static int anInt192; void method772(RSBuffer class523_sub34, int i, int i_0_) { if (3 == i) { int i_1_ = class523_sub34.readUnsignedByte(-253894589); if (null == anObjectArrayArray190) { anObjectArrayArray190 = new Object[i_1_][]; aClass464ArrayArray189 = new Class464[i_1_][]; } for (int i_2_ = class523_sub34.readUnsignedByte(800234314); 255 != i_2_; i_2_ = class523_sub34.readUnsignedByte(-88601404)) { int i_3_ = class523_sub34.readUnsignedByte(1994773078); Class464[] class464s = new Class464[i_3_]; for (int i_4_ = 0; i_4_ < i_3_; i_4_++) class464s[i_4_] = ((Class464) Class334.method5910(Class464.method7532((byte) -5), class523_sub34.readUnsignedSmart(368514876), -591798519)); anObjectArrayArray190[i_2_] = Class525.method8709(class523_sub34, class464s, -1626409258); aClass464ArrayArray189[i_2_] = class464s; } } } public void readValues(RSBuffer class523_sub34, int i) { for (;;) { int i_5_ = class523_sub34.readUnsignedByte(104973570); if (0 == i_5_) break; method772(class523_sub34, i_5_, -1565460130); } } public Object[] method773(int i, byte i_6_) { if (null == anObjectArrayArray190) return null; return anObjectArrayArray190[i]; } public void method60(RSBuffer class523_sub34) { for (;;) { int i = class523_sub34.readUnsignedByte(-1516056212); if (0 == i) break; method772(class523_sub34, i, -1565460130); } } public void method74(byte i) { /* empty */ } public void method52(int i, byte i_7_) { /* empty */ } public void method75(RSBuffer class523_sub34) { for (;;) { int i = class523_sub34.readUnsignedByte(-1257817366); if (0 == i) break; method772(class523_sub34, i, -1565460130); } } Class17() { /* empty */ } public void method73() { /* empty */ } public void method63(RSBuffer class523_sub34) { for (;;) { int i = class523_sub34.readUnsignedByte(-1700200194); if (0 == i) break; method772(class523_sub34, i, -1565460130); } } public void readValues(RSBuffer class523_sub34) { for (;;) { int i = class523_sub34.readUnsignedByte(1634567731); if (0 == i) break; method772(class523_sub34, i, -1565460130); } } public void method58(RSBuffer class523_sub34) { for (;;) { int i = class523_sub34.readUnsignedByte(1178599844); if (0 == i) break; method772(class523_sub34, i, -1565460130); } } public void method78() { /* empty */ } public void method79() { /* empty */ } public void method77() { /* empty */ } public void method76(RSBuffer class523_sub34) { for (;;) { int i = class523_sub34.readUnsignedByte(1854474466); if (0 == i) break; method772(class523_sub34, i, -1565460130); } } public void method51(int i) { /* empty */ } public Object[] method774(int i) { if (null == anObjectArrayArray190) return null; return anObjectArrayArray190[i]; } void method775(RSBuffer class523_sub34, int i) { if (3 == i) { int i_8_ = class523_sub34.readUnsignedByte(965739606); if (null == anObjectArrayArray190) { anObjectArrayArray190 = new Object[i_8_][]; aClass464ArrayArray189 = new Class464[i_8_][]; } for (int i_9_ = class523_sub34.readUnsignedByte(-803663641); 255 != i_9_; i_9_ = class523_sub34.readUnsignedByte(-649715283)) { int i_10_ = class523_sub34.readUnsignedByte(615153785); Class464[] class464s = new Class464[i_10_]; for (int i_11_ = 0; i_11_ < i_10_; i_11_++) class464s[i_11_] = ((Class464) Class334.method5910(Class464.method7532((byte) 22), class523_sub34.readUnsignedSmart(368514876), -531222271)); anObjectArrayArray190[i_9_] = Class525.method8709(class523_sub34, class464s, -881642933); aClass464ArrayArray189[i_9_] = class464s; } } } static void method776(long l) { Class91.aCalendar893.setTime(new Date(l)); } static final void method777(Class669 class669, int i) { int i_12_ = (class669.anIntArray8557[(class669.anInt8558 -= 2138772399) * 1357652815]); InterfaceComponentDefinitions class250 = Class188.getDefinitions(i_12_, -794045031); Class242 class242 = Class31.aClass242Array302[i_12_ >> 16]; Class145_Sub1.method14915(class250, class242, class669, (byte) 3); } static void method778(int i, int i_13_) { /* empty */ } }
[ "34613829+emcry666@users.noreply.github.com" ]
34613829+emcry666@users.noreply.github.com
8f6d0dedb2bd8c4bb7b392141a63bad087b28799
87a75573a6145c9bb7a58ae52915bb0e09dc6e6a
/app/src/main/java/lab/android/bartosz/ssms/MainActivity.java
f8753a4d2d7d247e538973922807abc5120b71b6
[]
no_license
bstando/ssms-android
cc92448d45554be4f9285d5c92109b95a1a97518
801d4b2f068d57ccd219fd088fd6fb685fef63d6
refs/heads/master
2021-06-03T01:20:29.205376
2017-12-14T23:25:27
2017-12-14T23:25:27
58,956,494
0
0
null
null
null
null
UTF-8
Java
false
false
10,234
java
package lab.android.bartosz.ssms; import android.app.ProgressDialog; import android.content.BroadcastReceiver; import android.content.ComponentName; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.content.IntentFilter; import android.content.ServiceConnection; import android.content.SharedPreferences; import android.os.AsyncTask; import android.os.IBinder; import android.preference.PreferenceManager; import android.support.v7.app.AlertDialog; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.support.v7.widget.Toolbar; import android.util.Log; import android.util.Pair; import android.view.Menu; import android.view.MenuInflater; import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.ListView; import android.widget.Toast; import java.io.IOException; import java.net.InetAddress; import java.util.ArrayList; import java.util.List; public class MainActivity extends AppCompatActivity { public static final String ACTION_CLIENTS_CHANGED = "lab.android.bartosz.ssms.CLIENT_CHANGED"; protected SensorService sensorService; protected boolean bounded = false; ListView listView; private NSDReceiver nsdReceiver; private List<MDNSDevice> devicesInfo = new ArrayList<>(); ArrayAdapter<MDNSDevice> adapter; boolean toast; boolean searching = false; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); toolbar.setTitleTextColor(0xffffffff); setSupportActionBar(toolbar); listView = (ListView) findViewById(R.id.sensorListView); adapter = new SensorListAdapter(this, devicesInfo); listView.setAdapter(adapter); listView.setDescendantFocusability(ViewGroup.FOCUS_BLOCK_DESCENDANTS); listView.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { Object object = listView.getItemAtPosition(position); MDNSDevice deviceInfo = (MDNSDevice) object; if (deviceInfo.getIsSensor()) { StartSensorActivity startSensorActivity = new StartSensorActivity(); startSensorActivity.execute(new Pair<InetAddress, Integer>(deviceInfo.getAddress(), deviceInfo.getPort())); } else { Intent intent = new Intent(getApplicationContext(), CollectorActivity.class); intent.putExtra("address", deviceInfo.getAddress().getAddress()); intent.putExtra("port", deviceInfo.getPort()); startActivity(intent); } } }); SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this); toast = prefs.getBoolean("show_toast", false); initReceiver(); } private void initReceiver() { nsdReceiver = new NSDReceiver(); IntentFilter filter = new IntentFilter(ACTION_CLIENTS_CHANGED); registerReceiver(nsdReceiver, filter); } @Override protected void onStart() { super.onStart(); Intent intent = new Intent(this, SensorService.class); bindService(intent, connection, Context.BIND_AUTO_CREATE); } @Override protected void onStop() { if (bounded) { sensorService.stopSearching(); unbindService(connection); bounded = false; } super.onStop(); } @Override protected void onDestroy() { if (bounded) { sensorService.stopSearching(); unbindService(connection); bounded = false; } unregisterReceiver(nsdReceiver); Intent intent = new Intent(this, SensorService.class); stopService(intent); Log.e("MAIN ON DESTROY", "onDestroy called"); super.onDestroy(); this.finish(); } private ServiceConnection connection = new ServiceConnection() { @Override public void onServiceConnected(ComponentName name, IBinder service) { SensorService.LocalBinder binder = (SensorService.LocalBinder) service; sensorService = binder.getService(); bounded = true; } @Override public void onServiceDisconnected(ComponentName name) { bounded = false; } }; @Override public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.main_menu, menu); return super.onCreateOptionsMenu(menu); } @Override public boolean onOptionsItemSelected(MenuItem item) { // Take appropriate action for each action item click switch (item.getItemId()) { case R.id.action_exit: sensorService.stopAllTasks(); this.finish(); return true; case R.id.action_settings: Intent intent = new Intent(MainActivity.this, SettingsActivity.class); startActivity(intent); return true; case R.id.action_start_search: showNoWifiWarning(); return true; case R.id.action_stop_search: stopSearching(); return true; case R.id.action_refresh: refreshList(); return true; default: return super.onOptionsItemSelected(item); } } void showNoWifiWarning() { if (!sensorService.isConnectedViaWiFi()) { new AlertDialog.Builder(this) .setTitle(getString(R.string.alert_title)) .setMessage(getString(R.string.string_noWifi)) .setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { // } }) .setIcon(android.R.drawable.ic_dialog_alert) .show(); } else { startSearching(); } } public void startSearching() { if (bounded) { sensorService.startSearching(); searching = true; if (toast) Toast.makeText(getApplicationContext(), getString(R.string.string_searchStarted), Toast.LENGTH_LONG).show(); } else { if (toast) Toast.makeText(getApplicationContext(), getString(R.string.string_notBounded), Toast.LENGTH_LONG).show(); } } public void stopSearching() { if (bounded) { if (searching) { sensorService.stopSearching(); if (toast) Toast.makeText(getApplicationContext(), getString(R.string.string_searchStopped), Toast.LENGTH_LONG).show(); } } else { if (toast) Toast.makeText(getApplicationContext(), getString(R.string.string_notBounded), Toast.LENGTH_LONG).show(); } } public void refreshList() { if (bounded) { if (searching) { devicesInfo.clear(); adapter.clear(); adapter.notifyDataSetChanged(); devicesInfo.addAll(sensorService.getDevices()); if (toast) Toast.makeText(getApplicationContext(), getString(R.string.string_added) + devicesInfo.size(), Toast.LENGTH_SHORT).show(); adapter.notifyDataSetChanged(); } } else { if (toast) Toast.makeText(getApplicationContext(), getString(R.string.string_notBounded), Toast.LENGTH_LONG).show(); } } private class StartSensorActivity extends AsyncTask<Pair<InetAddress, Integer>, Void, DeviceInfo> { ProgressDialog progressDialog; @Override protected void onPreExecute() { progressDialog = ProgressDialog.show(MainActivity.this, getString(R.string.main_conn), getString(R.string.main_connWait)); } @Override protected DeviceInfo doInBackground(Pair<InetAddress, Integer>... params) { try { return sensorService.getDeviceInfo(params[0].first, params[0].second); } catch (IOException ex) { return null; } } @Override protected void onPostExecute(DeviceInfo data) { progressDialog.dismiss(); if (data != null) { Intent intent = new Intent(MainActivity.this, DeviceActivity.class); intent.putExtra("address", data.getAddress().getAddress()); intent.putExtra("port", data.getPort()); intent.putExtra("deviceID", data.getId()); startActivity(intent); } else { new AlertDialog.Builder(MainActivity.this) .setTitle(getString(R.string.alert_title)) .setMessage(getString(R.string.string_downloadError)) .setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { // } }) .setIcon(android.R.drawable.ic_dialog_alert) .show(); } } } public class NSDReceiver extends BroadcastReceiver { public NSDReceiver() { } @Override public void onReceive(Context context, Intent intent) { if (intent.getAction().equals(ACTION_CLIENTS_CHANGED)) { refreshList(); } } } }
[ "stando01@wp.pl" ]
stando01@wp.pl
ebb269f027d67bf892460cb6a430bab90aecde9e
fe703f0de9d636faf660bfc34d707115a5a8a298
/MessageLabeler/src/Message.java
4b4d070886b252c6dea2732484bed1708001455d
[]
no_license
starSweeper/SlackSentimentAnalysisBot
26c06b11e24595d680db7f38a2b2f5109a4f374a
4b605e73f12b067496c59359cc386fef2be3804a
refs/heads/master
2020-03-30T16:37:30.788786
2018-10-18T22:07:36
2018-10-18T22:07:36
151,418,087
2
1
null
2018-10-10T17:58:39
2018-10-03T13:35:16
Java
UTF-8
Java
false
false
642
java
import javax.swing.*; import java.awt.*; public class Message { private String messageContent; private JTextArea textArea; Message(String content){ messageContent = content; textArea = new JTextArea(content); textArea.setBorder(BorderFactory.createEmptyBorder(5, 10, 5, 10)); textArea.setLineWrap(true); textArea.setWrapStyleWord(true); textArea.setPreferredSize(new Dimension(800, 300)); textArea.setEditable(false); } public String getMessageContent(){ return messageContent; } public JTextArea getTextArea(){ return textArea; } }
[ "mpanell@nnu.edu" ]
mpanell@nnu.edu
cb3316ae20d9551afb880b4d16622f1554d745d7
94f882f700686ea318068f2b1e8b43a4bccb6185
/samples/src/test/java/com/anderscore/goldschmiede/springbatch/samples/op/OperatorTest.java
1c27ee50c61cf8ad018c268b77f793227bd2543b
[]
no_license
goldschmiede/2019-06-28-Spring-Batch
e87cf5adf45c48b2a6e3ce3acd329ec951064b76
640c51c386cb3b1a3ebe7736bbf9e18b73202b3e
refs/heads/master
2020-06-12T10:23:18.449996
2019-07-01T12:15:28
2019-07-01T12:15:28
194,270,455
0
0
null
null
null
null
UTF-8
Java
false
false
907
java
package com.anderscore.goldschmiede.springbatch.samples.op; import org.junit.jupiter.api.Test; import org.springframework.batch.core.launch.JobOperator; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.TestPropertySource; import org.springframework.test.context.junit.jupiter.SpringJUnitConfig; @SpringJUnitConfig(OperatorConfig.class) @TestPropertySource(properties = "jdbc.url: jdbc:hsqldb:hsql://localhost:9001/xdb") public class OperatorTest { // tag::operator[] @Autowired private JobOperator jobOperator; @Test void testJobOperator() throws Exception { Long executionId = jobOperator.startNextInstance("helloJob"); System.out.println(jobOperator.getSummary(executionId)); System.out.println(jobOperator.getStepExecutionSummaries(executionId)); } // end::operator[] }
[ "hans.joerg.hessmann@anderscore.com" ]
hans.joerg.hessmann@anderscore.com
e6862fd7a228e7fc276b307235bec03585c4a8dc
5ea0bdaa57dfcd11d43a42ab04f0bba90012b7ea
/src/com/li/paint/panel/NamePanel.java
b8a14826c9d517bd694035e2659b16a685ea355d
[]
no_license
luckyquan/painting
ce5ddf88e2e64e359e5042d55a077b332afd1074
3ad334331e6cded4266a42d657d24962ddac7966
refs/heads/master
2020-06-25T12:21:48.858775
2019-07-29T05:22:38
2019-07-29T05:22:38
199,305,774
2
0
null
null
null
null
UTF-8
Java
false
false
34,324
java
package com.li.paint.panel; import com.li.paint.panel.basic.GraphicPanel; import com.li.paint.utils.*; import java.awt.*; import java.awt.image.BufferedImage; public class NamePanel extends GraphicPanel { //组员名字类zzq.add private BufferedImage bufferedImage; int data4[][] = {{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, { 0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } }; public NamePanel(int startX, int startY, int endX, int endY, int[][] data) { super(startX, startY, endX, endY); if (Common.name==Common.name4) { bufferedImage = Utils.createImg(data4); } if (Common.name==Common.name5){ bufferedImage = Utils.createImg(data5); } if (Common.name==Common.name6){ bufferedImage = Utils.createImg(data6); } if (Common.name==Common.name2){ bufferedImage = Utils.createImg(name1.data2); } if (Common.name==Common.name3){ bufferedImage = Utils.createImg(name1.data3); } if (Common.name==Common.name1){ bufferedImage = Utils.createImg(name1.data1); } if (Common.name==Common.name11){ bufferedImage = Utils.createImg(name2.data11); } if (Common.name==Common.name7){ bufferedImage = Utils.createImg(name2.data7); } if (Common.name==Common.name8){ bufferedImage = Utils.createImg(name2.data8); } if (Common.name==Common.name16){ bufferedImage = Utils.createImg(name3.data16); } if (Common.name==Common.name17){ bufferedImage = Utils.createImg(name3.data17); } if (Common.name==Common.name9){ bufferedImage = Utils.createImg(name4.data9); } if (Common.name==Common.name12){ bufferedImage = Utils.createImg(name4.data12); } if (Common.name==Common.name10){ bufferedImage = Utils.createImg(name4.data10); } if (Common.name==Common.name13){ bufferedImage = Utils.createImg(name5.data13); } if (Common.name==Common.name14){ bufferedImage = Utils.createImg(name5.data14); } if (Common.name==Common.name15){ bufferedImage = Utils.createImg(name5.data15); } if (Common.name==Common.name18){ bufferedImage = Utils.createImg(name6.data18); } if (Common.name==Common.name19){ bufferedImage = Utils.createImg(name6.data19); } //data = new int[64][64]; /*int[] col = new int[64]; for (int j = 0; j < col.length; j++) { col[j] = 1; } for (int i = 0; i < 20; i++) { data[i] = col; }*/ //bufferedImage = Utils.createImg(data); } @Override public void paint(Graphics g) { super.paint(g); g.drawImage(bufferedImage, graphicX, graphicY, null); } }
[ "2587709110@qq.com" ]
2587709110@qq.com
41ae415a366b7a48c4e083c83ec157a0167a5d48
62dcfd55e39022a6f98d2820672f435ba6f4b9da
/PayRollSystem/src/main/java/usecases/operations/controller/RequestBuilder.java
9f210b32da99c55a704ebe8948af877057b93c76
[]
no_license
Pashkou/PayRoll
3e3be76569c91b67eac68ab68ffc56f2f0a13136
3a5566a3c868ae780abee58fbe7d2882465128ae
refs/heads/master
2021-04-30T18:22:42.488398
2017-01-31T14:51:17
2017-01-31T14:51:17
80,352,238
0
0
null
null
null
null
UTF-8
Java
false
false
460
java
package usecases.operations.controller; import usecases.operations.AddCommissionedEmployeeUsecase; import usecases.operations.AddHourlyEmployeeUsecase; import usecases.operations.datastructures.AddCommissionedEmployeeRequest; import usecases.operations.datastructures.AddHourlyEmployeeRequest; public interface RequestBuilder { public AddHourlyEmployeeRequest buildAddHourlyEmployee(); public AddHourlyEmployeeUsecase makeAddHourlyEmployee(); }
[ "spashkou@DESKTOP-GAR5PPJ" ]
spashkou@DESKTOP-GAR5PPJ
03e2eba6d18597fc99401852e35093634b88b2c4
4c4bf0e12698f8a9cb26fc91e351b89f83e0447b
/RecyclerViewSample/app/src/test/java/com/jiwon/recyclerviewsample/ExampleUnitTest.java
7f16232e59fb6ac5b456b0dc10e906b730f62b56
[]
no_license
jjeewon/Study-Android
0ff2d69aeb3897b169663078326eb444f9f5b48c
247a20640e9a5732365aa10afa31f7bd2e8dbbaa
refs/heads/master
2023-01-02T22:28:10.018644
2020-10-29T08:34:48
2020-10-29T08:34:48
295,279,077
0
0
null
null
null
null
UTF-8
Java
false
false
389
java
package com.jiwon.recyclerviewsample; import org.junit.Test; import static org.junit.Assert.*; /** * Example local unit test, which will execute on the development machine (host). * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ public class ExampleUnitTest { @Test public void addition_isCorrect() { assertEquals(4, 2 + 2); } }
[ "wldnjs594@naver.com" ]
wldnjs594@naver.com
da98ddf8b246d1e3a10f58fad382ba2d2d1adda0
f0421a4e584729382c69f9c22a9427cdc3e587a1
/src/ProductSet.java
ffe54ac6f4536cb12b6f2f4f719b8cb5d89d1198
[]
no_license
satyakumaritekela/Data-Transformation-JAXB
db2cefd53cbd7cd77af773be0b6be4d647fc6f6d
47830ca165855d8735d4ce18d7a4e662fe267939
refs/heads/master
2022-06-02T12:16:05.878421
2020-04-30T22:57:34
2020-04-30T22:57:34
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,198
java
import java.util.ArrayList; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlSeeAlso; /** class that loads product set details **/ /** XML Annotations for xml tags generation **/ @XmlRootElement(name = "product_set") // product set as a root element @XmlAccessorType(XmlAccessType.FIELD) // used by reflection by jaxb at runtime @XmlSeeAlso({Product.class}) // loads other classes of product class public class ProductSet { @XmlElement(name = "product_line_name") // loads product line name tag private String productLineName; @XmlElement(name = "product") // loads product tag private ArrayList<Product> products = null; /** getters and setters for product set details **/ public String getProductLineName() { return productLineName; } public void setProductLineName(String productLineName) { this.productLineName = productLineName; } public ArrayList<Product> getProducts() { return products; } public void setProducts(ArrayList<Product> products) { this.products = products; } }
[ "st798799@dal.ca" ]
st798799@dal.ca
81ef78537ec24365c1645d7adeb4f95c10ecf917
db750739da2ed9df4fa0ec121a1d5d6e47534457
/mybatis-spring/src/test/java/mybatis/MybatisSpringTest.java
98282bfc327926cec0deba50c16b5029cd647da0
[]
no_license
xiaotanlong/spring-dubbo
412b9cd7fbabcd82444614721fd2039e45022a4b
65dd410224141bb8fe0fd2e2c5b87cca35155ae1
refs/heads/master
2022-12-21T20:52:23.561155
2020-01-16T06:56:48
2020-01-16T06:56:48
108,370,388
1
0
null
2022-12-16T09:43:43
2017-10-26T06:24:40
Java
UTF-8
Java
false
false
889
java
package mybatis; import com.tjl.mybatis.entity.TUser; import com.tjl.mybatis.mapper.TUserMapper; import org.junit.Before; import org.junit.Test; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; /** * @author xiaotantjl@163.com * @version V1.0 * @Description: * @date 2018/12/18 17:35 */ public class MybatisSpringTest { private TUserMapper tUserMapper; private ApplicationContext applicationContext; @Before public void init(){ applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml"); TUserMapper tUserMapper = applicationContext.getBean(TUserMapper.class); this.tUserMapper = tUserMapper; } @Test public void test01(){ TUser tUser = tUserMapper.selectByPrimaryKey(2); System.out.println(tUser); } }
[ "xiaotantjl@163.com" ]
xiaotantjl@163.com
ab1e2c22ddc7ea4d49044486032566c61e3bf9be
6e8869dca1388915513ccdec17f48c2fb9081a32
/daratus-node/src/main/java/com/daratus/node/console/AbstractParametrizedCommand.java
8dccced017ee2387e14b8e073db9befb0d0429d6
[]
no_license
SiOsbon/node
612c5e843735ba674011562fed0304e27437a028
acd52bbbd660caccb6b4f6637913db723cafc468
refs/heads/master
2021-04-03T06:49:00.069860
2017-11-19T23:42:32
2017-11-19T23:42:32
null
0
0
null
null
null
null
UTF-8
Java
false
false
688
java
package com.daratus.node.console; /** * * @author Zilvinas Vaira * */ public abstract class AbstractParametrizedCommand extends AbstractCommand{ /** * * @param commandParameters */ public AbstractParametrizedCommand(String [] commandParameters) { super(commandParameters); } /** * */ public void execute() { if(parseParameters(commandParameters)) { doExecute(); } } /** * * @param commandParameters * @return */ protected abstract boolean parseParameters(String [] commandParameters); /** * */ public abstract void doExecute(); }
[ "zilvinas@vaira.net" ]
zilvinas@vaira.net
ff088d26c7b856d860adad033b3a8872f941d97f
b924c45521b81251cc1acbe4ba3f993951731ee4
/jeecg-boot/jeecg-boot-base-common/src/main/java/org/jeecg/common/util/jsonschema/validate/SwitchProperty.java
4bcd9d9fffaeaf45b6bdc9cc075a4bf07b756dfe
[ "Apache-2.0", "MIT" ]
permissive
xudongyi/jeecg-boot-new
336004a7b717f8245d3972028c32354030715078
f4c59e6e924c16da67d8ba4a86c09ead1c6d9612
refs/heads/master
2021-10-06T10:38:21.091681
2021-09-26T09:18:58
2021-09-26T09:18:58
224,561,208
1
0
Apache-2.0
2020-05-11T05:10:55
2019-11-28T03:17:50
null
UTF-8
Java
false
false
1,107
java
package org.jeecg.common.util.jsonschema.validate; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import org.jeecg.common.util.jsonschema.CommonProperty; import java.util.HashMap; import java.util.Map; /** * 开关 属性 */ public class SwitchProperty extends CommonProperty { //扩展参数配置信息 private String extendStr; public SwitchProperty() {} /** * 构造器 */ public SwitchProperty(String key, String title, String extendStr) { this.type = "string"; this.view = "switch"; this.key = key; this.title = title; this.extendStr = extendStr; } @Override public Map<String, Object> getPropertyJson() { Map<String,Object> map = new HashMap<>(); map.put("key",getKey()); JSONObject prop = getCommonJson(); JSONArray array = new JSONArray(); if(extendStr!=null) { array = JSONArray.parseArray(extendStr); prop.put("extendOption",array); } map.put("prop",prop); return map; } //TODO 重构问题:数据字典 只是字符串类的还是有存储的数值类型?只有字符串请跳过这个 只改前端 }
[ "zhangdaiscott@163.com" ]
zhangdaiscott@163.com
1f04fff1d13167d3962b7d943e3a3c3940e75b9a
29af4d899e8cb84d57e53d0e9eb4b800b9df62f3
/phonecore/src/main/java/com/msj/core/utils/android/richtext/GlideImageGetter.java
e1271d26d20dd56251d0c89d959f9f60edb072b5
[]
no_license
570622566/baseFramework
6a82a3bf98c37e2364e9245a3415ca6ca47dce7a
de101a9fc557fd6d6c9aa018e04b0ddd0fc83c07
refs/heads/master
2020-03-14T21:11:04.012047
2016-12-15T07:05:39
2016-12-15T07:05:39
131,791,010
0
0
null
2018-05-02T03:04:46
2018-05-02T03:04:45
null
UTF-8
Java
false
false
4,657
java
package com.msj.core.utils.android.richtext; import android.content.Context; import android.graphics.Rect; import android.graphics.drawable.Drawable; import android.text.Html; import android.view.View; import android.widget.TextView; import com.bumptech.glide.Glide; import com.bumptech.glide.load.engine.DiskCacheStrategy; import com.bumptech.glide.load.resource.drawable.GlideDrawable; import com.bumptech.glide.request.Request; import com.bumptech.glide.request.animation.GlideAnimation; import com.bumptech.glide.request.target.ViewTarget; import com.msj.core.R; import java.util.HashSet; import java.util.Set; /** * @author CentMeng csdn@vip.163.com on 16/7/19. */ public class GlideImageGetter implements Html.ImageGetter, Drawable.Callback { private final Context mContext; private final TextView mTextView; private final Set<ImageGetterViewTarget> mTargets; public static GlideImageGetter get(View view) { return (GlideImageGetter) view.getTag(R.id.drawable_callback_tag); } public void clear() { GlideImageGetter prev = get(mTextView); if (prev == null) return; for (ImageGetterViewTarget target : prev.mTargets) { Glide.clear(target); } } public GlideImageGetter(Context context, TextView textView) { this.mContext = context; this.mTextView = textView; // clear(); 屏蔽掉这句在TextView中可以加载多张图片 mTargets = new HashSet<>(); mTextView.setTag(R.id.drawable_callback_tag, this); } @Override public Drawable getDrawable(String url) { final UrlDrawable_Glide urlDrawable = new UrlDrawable_Glide(); System.out.println("Downloading from: " + url); Glide.with(mContext) .load(url) .diskCacheStrategy(DiskCacheStrategy.ALL) .into(new ImageGetterViewTarget(mTextView, urlDrawable)); return urlDrawable; } @Override public void invalidateDrawable(Drawable who) { mTextView.invalidate(); } @Override public void scheduleDrawable(Drawable who, Runnable what, long when) { } @Override public void unscheduleDrawable(Drawable who, Runnable what) { } private class ImageGetterViewTarget extends ViewTarget<TextView, GlideDrawable> { private final UrlDrawable_Glide mDrawable; private ImageGetterViewTarget(TextView view, UrlDrawable_Glide drawable) { super(view); mTargets.add(this); this.mDrawable = drawable; } @Override public void onResourceReady(GlideDrawable resource, GlideAnimation<? super GlideDrawable> glideAnimation) { Rect rect; if (resource.getIntrinsicWidth() > 100) { float width; float height; System.out.println("Image width is " + resource.getIntrinsicWidth()); System.out.println("View width is " + view.getWidth()); if (resource.getIntrinsicWidth() >= getView().getWidth()) { float downScale = (float) resource.getIntrinsicWidth() / getView().getWidth(); width = (float) resource.getIntrinsicWidth() / (float) downScale; height = (float) resource.getIntrinsicHeight() / (float) downScale; } else { float multiplier = (float) getView().getWidth() / resource.getIntrinsicWidth(); width = (float) resource.getIntrinsicWidth() * (float) multiplier; height = (float) resource.getIntrinsicHeight() * (float) multiplier; } System.out.println("New Image width is " + width); rect = new Rect(0, 0, Math.round(width), Math.round(height)); } else { rect = new Rect(0, 0, resource.getIntrinsicWidth() * 2, resource.getIntrinsicHeight() * 2); } resource.setBounds(rect); mDrawable.setBounds(rect); mDrawable.setDrawable(resource); if (resource.isAnimated()) { mDrawable.setCallback(get(getView())); resource.setLoopCount(GlideDrawable.LOOP_FOREVER); resource.start(); } getView().setText(getView().getText()); getView().invalidate(); } private Request request; @Override public Request getRequest() { return request; } @Override public void setRequest(Request request) { this.request = request; } } }
[ "mengshaojie@188.com" ]
mengshaojie@188.com
e05ab612008c2463261af58c463a60e50f4c737a
56d1741a60880067ae377ecede5ece2a45ecbe12
/RFPDAAPP/wms_erp/src/main/java/com/example/wms_erp/model/VersionInfo.java
7735de1fc7d51e6067e1ef88fd1c44247123640a
[]
no_license
StephenGiant/wharehouse
7ee5c3f2d2e456e39f33136f29eddb72b84f94d2
523fe66fa68b3c01077a3b68502bda2085573a22
refs/heads/master
2020-04-10T21:58:06.655227
2017-02-24T10:03:13
2017-02-24T10:03:13
65,800,410
0
0
null
null
null
null
UTF-8
Java
false
false
3,133
java
package com.example.wms_erp.model; /** * Created by Administrator on 2016/10/27. */ public class VersionInfo { /** * name : WMS_ERP管理 * version : 2 * changelog : null * updated_at : 1477557796 * versionShort : 1.2 * build : 2 * installUrl : http://download.fir.im/v2/app/install/580d77a4ca87a87ac60004f5?download_token=bd8144d76a69a14241e61d1d63df4cbe * install_url : http://download.fir.im/v2/app/install/580d77a4ca87a87ac60004f5?download_token=bd8144d76a69a14241e61d1d63df4cbe * direct_install_url : http://download.fir.im/v2/app/install/580d77a4ca87a87ac60004f5?download_token=bd8144d76a69a14241e61d1d63df4cbe * update_url : http://fir.im/qlgf * binary : {"fsize":4325902} */ private String name; private String version; private Object changelog; private int updated_at; private String versionShort; private String build; private String installUrl; private String install_url; private String direct_install_url; private String update_url; /** * fsize : 4325902 */ private BinaryBean binary; public String getName() { return name; } public void setName(String name) { this.name = name; } public String getVersion() { return version; } public void setVersion(String version) { this.version = version; } public Object getChangelog() { return changelog; } public void setChangelog(Object changelog) { this.changelog = changelog; } public int getUpdated_at() { return updated_at; } public void setUpdated_at(int updated_at) { this.updated_at = updated_at; } public String getVersionShort() { return versionShort; } public void setVersionShort(String versionShort) { this.versionShort = versionShort; } public String getBuild() { return build; } public void setBuild(String build) { this.build = build; } public String getInstallUrl() { return installUrl; } public void setInstallUrl(String installUrl) { this.installUrl = installUrl; } public String getInstall_url() { return install_url; } public void setInstall_url(String install_url) { this.install_url = install_url; } public String getDirect_install_url() { return direct_install_url; } public void setDirect_install_url(String direct_install_url) { this.direct_install_url = direct_install_url; } public String getUpdate_url() { return update_url; } public void setUpdate_url(String update_url) { this.update_url = update_url; } public BinaryBean getBinary() { return binary; } public void setBinary(BinaryBean binary) { this.binary = binary; } public static class BinaryBean { private int fsize; public int getFsize() { return fsize; } public void setFsize(int fsize) { this.fsize = fsize; } } }
[ "zjttqyp@126.com" ]
zjttqyp@126.com
b9d9613e8f148cc2b5ec3f4f6f7afc99d720cd0a
8aa37b9fbf519d71ae9d333cdb8d59dbdff3509e
/app/src/main/java/trackinlogic/trans/pss/com/trackinlogic/features/registration/login/LoginPresenter.java
b57ba3691e09952f25dc947e3e588ab48496046c
[]
no_license
SekharMohan/TrackInLogic-master
de9828844d243f9f991bcd8437ce03673de9cddd
6a3ab861842657a1a09a04f983881dcfe0bcd30e
refs/heads/master
2020-04-02T01:47:53.346669
2017-06-17T06:25:54
2017-06-17T06:25:54
83,574,776
0
0
null
null
null
null
UTF-8
Java
false
false
168
java
package trackinlogic.trans.pss.com.trackinlogic.features.registration.login; /** * Created by Sekhar Madhiyazhagan on 6/17/2017. */ public class LoginPresenter { }
[ "sekarmohan77@gmail.com" ]
sekarmohan77@gmail.com
e2402f3aca3f95989c8c263b65e47f7ae49b77ac
454c9827e6c9d3e001c239f80ee3a0dedf70501a
/kie-spring-boot/kie-spring-boot-autoconfiguration/kie-server-spring-boot-autoconfiguration/src/main/java/org/kie/server/springboot/ImmutableSpringBootKieContainerInstanceImpl.java
dfc06bab1e3fe1025ad720391090c747eff2de60
[ "Apache-2.0" ]
permissive
jesuino/droolsjbpm-integration
cf53a3d75068f31a14c79946b46869da6bef0e3c
56f4eb229a25b0564d44a6b804c7951720a0d0f0
refs/heads/master
2021-11-22T13:00:07.013303
2020-09-29T09:08:43
2020-09-29T09:15:11
139,637,162
1
0
Apache-2.0
2021-08-16T20:31:06
2018-07-03T21:08:05
Java
UTF-8
Java
false
false
1,361
java
/* * Copyright 2020 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.kie.server.springboot; import org.drools.core.impl.InternalKieContainer; import org.kie.server.api.model.KieContainerStatus; import org.kie.server.api.model.ReleaseId; import org.kie.server.services.impl.KieContainerInstanceImpl; import org.kie.server.services.impl.KieServerImpl; public class ImmutableSpringBootKieContainerInstanceImpl extends KieContainerInstanceImpl { public ImmutableSpringBootKieContainerInstanceImpl(String containerId, KieContainerStatus status, InternalKieContainer kieContainer, ReleaseId releaseId, KieServerImpl kieServer) { super(containerId, status, kieContainer, releaseId, kieServer); } @Override protected boolean updateReleaseId() { return false; } }
[ "egonzale@redhat.com" ]
egonzale@redhat.com
1a43f1274e7274cd7238f205a4471a439272d117
18c7d63dc0f8150524bd7a885263400a122f3e4f
/Alea/src/xklusac/extensions/SchedulingEvent.java
acb13f53a7161e03f510339b63aff6ab985840bf
[]
no_license
aleasimulator/alea
965ea396b8b85ad83f36515800dd52dd8239e4ff
f01be2f79bb25a6878d2d439fdf099f4fa6bfc94
refs/heads/master
2022-10-10T23:38:47.902051
2022-09-13T14:39:08
2022-09-13T14:39:08
18,938,069
16
13
null
2020-04-22T14:28:20
2014-04-19T09:29:01
Java
UTF-8
Java
false
false
2,685
java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package xklusac.extensions; import xklusac.environment.GridletInfo; /** * * @author daliborT470 */ public class SchedulingEvent { private long sch_time = 0; private GridletInfo gi = null; private boolean start = true; private int tick = 0; private SchedulingEvent start_event = null; private int cpu_shift = 0; public SchedulingEvent(long time, int cpu_sh, GridletInfo gif, boolean type){ this.setSch_time(time); this.setGi(gif); this.setStart(type); this.setTick(0); this.setCpu_shift(cpu_sh); } public SchedulingEvent(long time, int cpu_sh, GridletInfo gif, boolean type, SchedulingEvent sev){ this.setSch_time(time); this.setGi(gif); this.setStart(type); this.setTick(0); this.start_event = sev; this.setCpu_shift(cpu_sh); } /** * @return the sch_time */ public long getSch_time() { return sch_time; } /** * @param sch_time the sch_time to set */ public void setSch_time(long sch_time) { this.sch_time = sch_time; } /** * @return the gi */ public GridletInfo getGi() { return gi; } /** * @param gi the gi to set */ public void setGi(GridletInfo gi) { this.gi = gi; } /** * @return the start */ public boolean isStart() { return start; } /** * @param start the start to set */ public void setStart(boolean start) { this.start = start; } /** * @return the tick */ public int getTick() { return tick; } /** * @param tick the tick to set */ public void setTick(int tick) { this.tick = tick; } /** * @return the start_event */ public SchedulingEvent getStart_event() { return start_event; } /** * @param start_event the start_event to set */ public void setStart_event(SchedulingEvent start_event) { this.start_event = start_event; } /** * @return the cpu_shift */ public int getCpu_shift() { return cpu_shift; } /** * @param cpu_shift the cpu_shift to set */ public void setCpu_shift(int cpu_shift) { this.cpu_shift = cpu_shift; } }
[ "daliborT470@147.251.17.246" ]
daliborT470@147.251.17.246
bab8d9d5c8fd24dab713fe98b7e8a1cc52b3b430
7c380de1770b0d607cdfe37e8a5ef8f648e55c25
/src/main/java/com/ict/business/service/RentService.java
48e932eed4a4a79d5d679e6681a2e77bd747fa99
[]
no_license
Lizbeth9421/car
87e71abe415f3a19525b993ad46edcc6cadc5f27
32aafc672a086b4f53079bb2c8da226fa3933995
refs/heads/master
2023-08-24T17:10:24.452053
2021-11-02T04:54:12
2021-11-02T04:54:12
423,711,557
0
0
null
null
null
null
UTF-8
Java
false
false
593
java
package com.ict.business.service; import com.ict.business.domain.Rent; import com.ict.system.util.DataGridView; /** * @Author: Lizbeth9421 * @Date: 2021/08/09/16:56 */ public interface RentService { int deleteByPrimaryKey(String rentid); int insert(Rent record); int insertSelective(Rent record); Rent selectByPrimaryKey(String rentid); int updateByPrimaryKeySelective(Rent record); int updateByPrimaryKey(Rent record); /** * 用于查询所有出租单信息 * 包含分页和模糊查询 */ DataGridView queryAllRent(Rent rent); }
[ "84497294+Lizbeth9421@users.noreply.github.com" ]
84497294+Lizbeth9421@users.noreply.github.com
6e5d23a8fd49ed4272ceedd051853ce78cfcc231
2403df511508fc5f52a3173efb202746b3fd3d3c
/src/main/java/com/security/demo/entity/Funcionario.java
dfccda2f2ae7e847010e8b25aea1de3a513abbf5
[]
no_license
adielmo/security
0aaebfac2a4e87bb3f323b145d937260dee07607
b961cb9f22c08f9909c0cfd4cb012d274f87e0c3
refs/heads/main
2023-06-22T01:27:47.498816
2021-07-18T15:34:38
2021-07-18T15:34:38
379,726,025
0
0
null
null
null
null
UTF-8
Java
false
false
2,578
java
package com.security.demo.entity; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; @Entity @Table(name = "funcionario") public class Funcionario { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; private String nome; private String email; private String sexo; private String departamento; private String admissao; private String salario; private String cargo; private String idRegiao; public Funcionario() { // TODO Auto-generated constructor stub } public Funcionario(Long id, String nome, String email, String sexo, String departamento, String admissao, String salario, String cargo, String idRegiao) { this.id = id; this.nome = nome; this.email = email; this.sexo = sexo; this.departamento = departamento; this.admissao = admissao; this.salario = salario; this.cargo = cargo; this.idRegiao = idRegiao; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getNome() { return nome; } public void setNome(String nome) { this.nome = nome; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } public String getSexo() { return sexo; } public void setSexo(String sexo) { this.sexo = sexo; } public String getDepartamento() { return departamento; } public void setDepartamento(String departamento) { this.departamento = departamento; } public String getAdmissao() { return admissao; } public void setAdmissao(String admissao) { this.admissao = admissao; } public String getSalario() { return salario; } public void setSalario(String salario) { this.salario = salario; } public String getCargo() { return cargo; } public void setCargo(String cargo) { this.cargo = cargo; } public String getIdRegiao() { return idRegiao; } public void setIdRegiao(String idRegiao) { this.idRegiao = idRegiao; } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((id == null) ? 0 : id.hashCode()); return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Funcionario other = (Funcionario) obj; if (id == null) { if (other.id != null) return false; } else if (!id.equals(other.id)) return false; return true; } }
[ "adielmorabelo@gmail.com" ]
adielmorabelo@gmail.com
3b711190d8b667b0fd4c77b618cf8a7b3b807047
d528fe4f3aa3a7eca7c5ba4e0aee43421e60857f
/main/com/zfsoft/xgxt/xszz/xfbzmd/XfbzmdService.java
dad2ea0354f43c7d83bafe08f12735e070148b9a
[]
no_license
gxlioper/xajd
81bd19a7c4b9f2d1a41a23295497b6de0dae4169
b7d4237acf7d6ffeca1c4a5a6717594ca55f1673
refs/heads/master
2022-03-06T15:49:34.004924
2019-11-19T07:43:25
2019-11-19T07:43:25
null
0
0
null
null
null
null
GB18030
Java
false
false
594
java
/** * @部门:学工产品事业部 * @日期:2016-7-18 下午03:45:18 */ package com.zfsoft.xgxt.xszz.xfbzmd; import com.zfsoft.xgxt.base.service.impl.SuperServiceImpl; /** * @系统名称: 学生工作管理系统 * @模块名称: XXXX管理模块 * @类功能描述: TODO(这里用一句话描述这个类的作用) * @作者: 孟威[工号:1186] * @时间: 2016-7-18 下午03:45:18 * @版本: V1.0 * @修改记录: 类修改者-修改日期-修改说明 */ public class XfbzmdService extends SuperServiceImpl<XfbzmdForm,XfbzmdDao> { }
[ "1398796456@qq.com" ]
1398796456@qq.com
2b574b6876a6f227c56f027e0a53a6460b3456a2
118dc53aeeb07f11fe756d861c72762ccbf30f76
/PokemonTCG/src/org/soen387/app/pc/AcceptChallenge.java
b3ac95c89564ed391ac666c458843bb38510dcd1
[]
no_license
BrandonAmyot/WebBasedCardGame
cb2156bbf51f4cd4d64c113d7db83732212aa49d
5bab52035ae550a640878aa4f0da936d9bd9b09a
refs/heads/master
2020-04-05T05:45:01.275611
2018-11-27T22:59:17
2018-11-27T22:59:17
156,437,606
0
0
null
null
null
null
UTF-8
Java
false
false
4,027
java
package org.soen387.app.pc; import java.io.IOException; import java.sql.Connection; import java.sql.DriverManager; import java.util.List; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.soen387.app.dom.ChallengeRDG; import org.soen387.app.dom.GameRDG; /** * Servlet implementation class AcceptChallenge */ @WebServlet("/AcceptChallenge") public class AcceptChallenge extends HttpServlet { private static final long serialVersionUID = 1L; /** * @see HttpServlet#HttpServlet() */ public AcceptChallenge() { super(); // TODO Auto-generated constructor stub } @Override public void init(javax.servlet.ServletConfig config) throws ServletException { try { Class.forName("com.mysql.cj.jdbc.Driver").newInstance(); } catch (Exception e) { e.printStackTrace(); } DBCon.makeCon(); }; /** * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response) */ protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { Long id = (Long)request.getSession(true).getAttribute("userid"); if(id == null) { request.setAttribute("message", "You must be logged in to accept a challenge."); request.getRequestDispatcher("/WEB-INF/jsp/fail.jsp").forward(request, response); } try { DBCon.myCon.set(DriverManager.getConnection(DBCon.CONN_STRING)); processRequest(request, response); } catch(Exception e) { e.printStackTrace(); } finally { Connection con = DBCon.myCon.get(); DBCon.myCon.remove(); try {con.close();} catch(Exception e) {} } } /** * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response) */ protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doGet(request, response); } private void processRequest(HttpServletRequest request, HttpServletResponse response) { Long challengeId = Long.parseLong(request.getParameter("challenge")); Long challengee = (Long)request.getSession(true).getAttribute("userid"); try { List<ChallengeRDG> openChallenges = ChallengeRDG.findOpenByChallengee(challengee); if(challengee == null) { request.setAttribute("message", "You must be logged in to accept a challenge."); request.getRequestDispatcher("/WEB-INF/jsp/fail.jsp").forward(request, response); } else { if(openChallenges.isEmpty()) { request.setAttribute("message", "No challenges have been proposed between players."); request.getRequestDispatcher("/WEB-INF/jsp/fail.jsp").forward(request, response); } for(int i = 0; i < openChallenges.size(); i++) { if(openChallenges.get(i).getId() == challengeId) { if(openChallenges.get(i).getChallenger() == challengee) { request.setAttribute("message", "You cannot accept a challenge you made."); request.getRequestDispatcher("/WEB-INF/jsp/fail.jsp").forward(request, response); } else if(openChallenges.get(i).getChallengee() == challengee) { openChallenges.get(i).setStatus(3); openChallenges.get(i).update(); GameRDG newGame = new GameRDG(challengeId, openChallenges.get(i).getChallenger(), challengee); newGame.insert(); request.setAttribute("message", "Challenge accepted between players: " + openChallenges.get(i).getChallenger() + " and " + challengee + "."); request.getRequestDispatcher("/WEB-INF/jsp/success.jsp").forward(request, response); } else { request.setAttribute("message", "You cannot accept a challenge made to another player."); request.getRequestDispatcher("/WEB-INF/jsp/fail.jsp").forward(request, response); } } } } } catch (Exception e) { e.printStackTrace(); } } }
[ "noreply@github.com" ]
BrandonAmyot.noreply@github.com
e4ace48a541b1497c945cb9d5182987f4bda5516
126737f19665eb481721835078e9c0eed8188b98
/common-contentlang/src/main/java/jade/util/InputQueue.java
96eeadac44cf610d6dca3c239084cd3e315ef192
[]
no_license
Maatary/ocean
dbf9ca093fbbb3350c9fb951cb9c6c06847846c2
975275d895d49983e15a3994107fe7f233dfc360
refs/heads/master
2021-03-12T19:55:15.712623
2015-03-25T00:44:42
2015-03-25T00:45:22
32,831,722
0
0
null
null
null
null
UTF-8
Java
false
false
3,299
java
/** * JADE - Java Agent DEvelopment Framework is a framework to develop * multi-agent systems in compliance with the FIPA specifications. * Copyright (C) 2000 CSELT S.p.A. * Copyright (C) 2001,2002 TILab S.p.A. * * GNU Lesser General Public License * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation, * version 2.1 of the License. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. *//* package jade.util; import java.util.Vector; import jade.core.behaviours.Behaviour; *//** * This class implements a FIFO queue of objects that can be put and got * in a synchronized way. This is useful when an external thread, * e.g. a GUI, has to communicate with an agent: The external thread * puts objects in the queue and the agent gets and processes them. * The queue can be associated to a <code>Behaviour</code>. This * Behaviour will be restarted each time an object is inserted in the * queue. * This class can be effectively used in combination with the * <code>Event</code> class to support a synchronization between the * external therad (posting the event in the <code>InputQueue</code>) * and the Agent thread (processing the event). * @see jade.util.Event * @author Giovanni Caire - TILab *//* public class InputQueue { private Vector queue = new Vector(); private Behaviour myManager; *//** Default constructor. *//* public InputQueue() { } *//** Associate this <code>InputQueue</code> object with the indicated <code>Behaviour</code> so that it will be restarted each time a new object is inserted. @param b The <code>Behaviour</code> to associate. *//* public synchronized void associate(Behaviour b) { myManager = b; // If there were objects already inserted --> restart the manager // so that it can manages them if (myManager != null && queue.size() > 0) { myManager.restart(); } } *//** Insert an object into the queue. If there is a <code>Behaviour</code> associated to this <code>InputQueue</code> it will be restarted. @param obj The object to insert. *//* public synchronized void put(Object obj) { queue.addElement(obj); // Restart the manager behaviour (if any) so that it can manage // the object if (myManager != null) { myManager.restart(); } } *//** Extract the first object in the queue (if any). @return The first object in the queue or <code>null</code> if the queue is empty. *//* public synchronized Object get() { Object obj = null; if (queue.size() > 0) { obj = queue.elementAt(0); queue.removeElementAt(0); } return obj; } *//** Remove all elements from this queue. *//* public synchronized void clear() { queue.removeAllElements(); } } */
[ "okouyamaatari@gmail.com" ]
okouyamaatari@gmail.com
e074245d9f4b84fe5304ea63516477be9fd3aceb
3560541681cfb7484f3d88772a94ce13aa00c95c
/PDFComparer/org/apache/pdfbox/pdmodel/common/PDNumberTreeNode.java
f5f655be2c18a7e4754fe303e51b5040b489c9e2
[]
no_license
daguti/PDFComparator
2efc16037a6cd3cd4ae6a12be13b8b7d083c51a7
4b84ea93bebc49f2739efac9325a417749e692c3
refs/heads/master
2021-01-10T12:43:08.814267
2016-03-17T16:39:36
2016-03-17T16:39:36
54,134,348
0
0
null
null
null
null
UTF-8
Java
false
false
9,388
java
/* */ package org.apache.pdfbox.pdmodel.common; /* */ /* */ import java.io.IOException; /* */ import java.lang.reflect.Constructor; /* */ import java.util.ArrayList; /* */ import java.util.Collections; /* */ import java.util.HashMap; /* */ import java.util.List; /* */ import java.util.Map; /* */ import org.apache.commons.logging.Log; /* */ import org.apache.commons.logging.LogFactory; /* */ import org.apache.pdfbox.cos.COSArray; /* */ import org.apache.pdfbox.cos.COSBase; /* */ import org.apache.pdfbox.cos.COSDictionary; /* */ import org.apache.pdfbox.cos.COSInteger; /* */ import org.apache.pdfbox.cos.COSName; /* */ /* */ public class PDNumberTreeNode /* */ implements COSObjectable /* */ { /* 45 */ private static final Log LOG = LogFactory.getLog(PDNumberTreeNode.class); /* */ private COSDictionary node; /* 48 */ private Class<? extends COSObjectable> valueType = null; /* */ /* */ public PDNumberTreeNode(Class<? extends COSObjectable> valueClass) /* */ { /* 57 */ this.node = new COSDictionary(); /* 58 */ this.valueType = valueClass; /* */ } /* */ /* */ public PDNumberTreeNode(COSDictionary dict, Class<? extends COSObjectable> valueClass) /* */ { /* 69 */ this.node = dict; /* 70 */ this.valueType = valueClass; /* */ } /* */ /* */ public COSBase getCOSObject() /* */ { /* 80 */ return this.node; /* */ } /* */ /* */ public COSDictionary getCOSDictionary() /* */ { /* 90 */ return this.node; /* */ } /* */ /* */ public List<PDNumberTreeNode> getKids() /* */ { /* 100 */ List retval = null; /* 101 */ COSArray kids = (COSArray)this.node.getDictionaryObject(COSName.KIDS); /* 102 */ if (kids != null) /* */ { /* 104 */ List pdObjects = new ArrayList(); /* 105 */ for (int i = 0; i < kids.size(); i++) /* */ { /* 107 */ pdObjects.add(createChildNode((COSDictionary)kids.getObject(i))); /* */ } /* 109 */ retval = new COSArrayList(pdObjects, kids); /* */ } /* */ /* 112 */ return retval; /* */ } /* */ /* */ public void setKids(List<? extends PDNumberTreeNode> kids) /* */ { /* 122 */ if ((kids != null) && (kids.size() > 0)) /* */ { /* 124 */ PDNumberTreeNode firstKid = (PDNumberTreeNode)kids.get(0); /* 125 */ PDNumberTreeNode lastKid = (PDNumberTreeNode)kids.get(kids.size() - 1); /* 126 */ Integer lowerLimit = firstKid.getLowerLimit(); /* 127 */ setLowerLimit(lowerLimit); /* 128 */ Integer upperLimit = lastKid.getUpperLimit(); /* 129 */ setUpperLimit(upperLimit); /* */ } /* 131 */ else if (this.node.getDictionaryObject(COSName.NUMS) == null) /* */ { /* 134 */ this.node.setItem(COSName.LIMITS, null); /* */ } /* 136 */ this.node.setItem(COSName.KIDS, COSArrayList.converterToCOSArray(kids)); /* */ } /* */ /* */ public Object getValue(Integer index) /* */ throws IOException /* */ { /* 150 */ Object retval = null; /* 151 */ Map names = getNumbers(); /* 152 */ if (names != null) /* */ { /* 154 */ retval = names.get(index); /* */ } /* */ else /* */ { /* 158 */ List kids = getKids(); /* 159 */ if (kids != null) /* */ { /* 161 */ for (int i = 0; (i < kids.size()) && (retval == null); i++) /* */ { /* 163 */ PDNumberTreeNode childNode = (PDNumberTreeNode)kids.get(i); /* 164 */ if ((childNode.getLowerLimit().compareTo(index) <= 0) && (childNode.getUpperLimit().compareTo(index) >= 0)) /* */ { /* 167 */ retval = childNode.getValue(index); /* */ } /* */ } /* */ } /* */ else /* */ { /* 173 */ LOG.warn("NumberTreeNode does not have \"nums\" nor \"kids\" objects."); /* */ } /* */ } /* 176 */ return retval; /* */ } /* */ /* */ public Map<Integer, COSObjectable> getNumbers() /* */ throws IOException /* */ { /* 190 */ Map indices = null; /* 191 */ COSArray namesArray = (COSArray)this.node.getDictionaryObject(COSName.NUMS); /* 192 */ if (namesArray != null) /* */ { /* 194 */ indices = new HashMap(); /* 195 */ for (int i = 0; i < namesArray.size(); i += 2) /* */ { /* 197 */ COSInteger key = (COSInteger)namesArray.getObject(i); /* 198 */ COSBase cosValue = namesArray.getObject(i + 1); /* 199 */ COSObjectable pdValue = convertCOSToPD(cosValue); /* 200 */ indices.put(Integer.valueOf(key.intValue()), pdValue); /* */ } /* 202 */ indices = Collections.unmodifiableMap(indices); /* */ } /* 204 */ return indices; /* */ } /* */ /* */ protected COSObjectable convertCOSToPD(COSBase base) /* */ throws IOException /* */ { /* 218 */ COSObjectable retval = null; /* */ try /* */ { /* 221 */ Constructor ctor = this.valueType.getConstructor(new Class[] { base.getClass() }); /* 222 */ retval = (COSObjectable)ctor.newInstance(new Object[] { base }); /* */ } /* */ catch (Throwable t) /* */ { /* 226 */ throw new IOException("Error while trying to create value in number tree:" + t.getMessage()); /* */ } /* */ /* 229 */ return retval; /* */ } /* */ /* */ protected PDNumberTreeNode createChildNode(COSDictionary dic) /* */ { /* 240 */ return new PDNumberTreeNode(dic, this.valueType); /* */ } /* */ /* */ public void setNumbers(Map<Integer, ? extends COSObjectable> numbers) /* */ { /* 252 */ if (numbers == null) /* */ { /* 254 */ this.node.setItem(COSName.NUMS, (COSObjectable)null); /* 255 */ this.node.setItem(COSName.LIMITS, (COSObjectable)null); /* */ } /* */ else /* */ { /* 259 */ List keys = new ArrayList(numbers.keySet()); /* 260 */ Collections.sort(keys); /* 261 */ COSArray array = new COSArray(); /* 262 */ for (int i = 0; i < keys.size(); i++) /* */ { /* 264 */ Integer key = (Integer)keys.get(i); /* 265 */ array.add(COSInteger.get(key.intValue())); /* 266 */ COSObjectable obj = (COSObjectable)numbers.get(key); /* 267 */ array.add(obj); /* */ } /* 269 */ Integer lower = null; /* 270 */ Integer upper = null; /* 271 */ if (keys.size() > 0) /* */ { /* 273 */ lower = (Integer)keys.get(0); /* 274 */ upper = (Integer)keys.get(keys.size() - 1); /* */ } /* 276 */ setUpperLimit(upper); /* 277 */ setLowerLimit(lower); /* 278 */ this.node.setItem(COSName.NUMS, array); /* */ } /* */ } /* */ /* */ public Integer getUpperLimit() /* */ { /* 289 */ Integer retval = null; /* 290 */ COSArray arr = (COSArray)this.node.getDictionaryObject(COSName.LIMITS); /* 291 */ if ((arr != null) && (arr.get(0) != null)) /* */ { /* 293 */ retval = Integer.valueOf(arr.getInt(1)); /* */ } /* 295 */ return retval; /* */ } /* */ /* */ private void setUpperLimit(Integer upper) /* */ { /* 305 */ COSArray arr = (COSArray)this.node.getDictionaryObject(COSName.LIMITS); /* 306 */ if (arr == null) /* */ { /* 308 */ arr = new COSArray(); /* 309 */ arr.add(null); /* 310 */ arr.add(null); /* 311 */ this.node.setItem(COSName.LIMITS, arr); /* */ } /* 313 */ if (upper != null) /* */ { /* 315 */ arr.setInt(1, upper.intValue()); /* */ } /* */ else /* */ { /* 319 */ arr.set(1, null); /* */ } /* */ } /* */ /* */ public Integer getLowerLimit() /* */ { /* 330 */ Integer retval = null; /* 331 */ COSArray arr = (COSArray)this.node.getDictionaryObject(COSName.LIMITS); /* 332 */ if ((arr != null) && (arr.get(0) != null)) /* */ { /* 334 */ retval = Integer.valueOf(arr.getInt(0)); /* */ } /* 336 */ return retval; /* */ } /* */ /* */ private void setLowerLimit(Integer lower) /* */ { /* 346 */ COSArray arr = (COSArray)this.node.getDictionaryObject(COSName.LIMITS); /* 347 */ if (arr == null) /* */ { /* 349 */ arr = new COSArray(); /* 350 */ arr.add(null); /* 351 */ arr.add(null); /* 352 */ this.node.setItem(COSName.LIMITS, arr); /* */ } /* 354 */ if (lower != null) /* */ { /* 356 */ arr.setInt(0, lower.intValue()); /* */ } /* */ else /* */ { /* 360 */ arr.set(0, null); /* */ } /* */ } /* */ } /* Location: C:\Users\ESa10969\Desktop\PDFComparer\ * Qualified Name: org.apache.pdfbox.pdmodel.common.PDNumberTreeNode * JD-Core Version: 0.6.2 */
[ "ESa10969@MADWN0030139.euro.net.intra" ]
ESa10969@MADWN0030139.euro.net.intra
7f52df34a0d78e487cac01b2eec5fb00e0f1512c
b779f20cd8954cd40643fc5ac9990b304a9a344a
/jcache-commons/src/main/java/org/rrx/jcache/commons/config/spring/annotation/JcacheServerConfigConfigurationRegistrar.java
ff98aa4bc7b12762f47590e3dbd469e81a216560
[]
no_license
kevin3046/jcache
86fd212435d8aa8c6ef780d06415cefa5dc4ebc6
60bc9f575a933ef091da9213b122787ebdb0c2e3
refs/heads/master
2023-03-16T01:42:46.785208
2021-03-09T02:02:36
2021-03-09T02:02:36
293,799,540
2
0
null
null
null
null
UTF-8
Java
false
false
4,348
java
package org.rrx.jcache.commons.config.spring.annotation; import org.rrx.jcache.commons.config.properties.*; import org.rrx.jcache.commons.utils.PropertySourcesUtils; import org.springframework.beans.factory.config.BeanDefinition; import org.springframework.beans.factory.support.BeanDefinitionRegistry; import org.springframework.beans.factory.support.GenericBeanDefinition; import org.springframework.context.EnvironmentAware; import org.springframework.context.annotation.ImportBeanDefinitionRegistrar; import org.springframework.core.env.ConfigurableEnvironment; import org.springframework.core.env.Environment; import org.springframework.core.type.AnnotationMetadata; import org.springframework.util.Assert; import java.lang.reflect.Field; import java.util.Map; /** * @Auther: kevin3046@163.com * @Date: 2020/8/20 13:38 * @Description: */ public class JcacheServerConfigConfigurationRegistrar implements ImportBeanDefinitionRegistrar, EnvironmentAware { private ConfigurableEnvironment environment; public static String prefix = "jcache."; @Override public void registerBeanDefinitions(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry) { BeanDefinition beanDefinition = new GenericBeanDefinition(); beanDefinition.setBeanClassName(JcacheServerConfigProperties.class.getName()); Map<String, Object> configurationProperties = PropertySourcesUtils.getSubProperties(environment.getPropertySources(), environment, prefix); EtcdProperties etcdProperties = new EtcdProperties(); setClassProperties(configurationProperties, etcdProperties); JedisProperties jedisProperties = new JedisProperties(); setClassProperties(configurationProperties, jedisProperties); RedisProperties redisProperties = new RedisProperties(); setClassProperties(configurationProperties, redisProperties); RocketmqProperties rocketmqProperties = new RocketmqProperties(); setClassProperties(configurationProperties, rocketmqProperties); beanDefinition.getPropertyValues().addPropertyValue("appname", configurationProperties.get("appname")); beanDefinition.getPropertyValues().addPropertyValue("etcdProperties", etcdProperties); beanDefinition.getPropertyValues().addPropertyValue("jedisProperties", jedisProperties); beanDefinition.getPropertyValues().addPropertyValue("redisProperties", redisProperties); beanDefinition.getPropertyValues().addPropertyValue("rocketmqProperties", rocketmqProperties); registry.registerBeanDefinition(JcacheServerConfigProperties.class.getName(), beanDefinition); } private void setClassProperties(Map<String, Object> configurationProperties, Object object) { Class clazz = object.getClass(); Field[] fields = clazz.getDeclaredFields(); for (Field field : fields) { JcacheValue jcacheValue = field.getAnnotation(JcacheValue.class); if (jcacheValue == null) { continue; } field.setAccessible(true); Object value = configurationProperties.get(jcacheValue.value()); if (value == null) { continue; } try { String type = field.getType().toString(); if (type.endsWith("int")) { field.set(object, (int) (value)); } else if (type.endsWith("Integer")) { field.set(object, Integer.valueOf(value.toString())); } else if (type.endsWith("long")) { field.set(object, (long) value); } else if (type.endsWith("Long")) { field.set(object, Long.valueOf(value.toString())); } else if (type.endsWith("boolean") || type.endsWith("Boolean")) { field.set(object, Boolean.valueOf(value.toString())); } else { field.set(object, value); } } catch (Exception e) { e.printStackTrace(); } } } @Override public void setEnvironment(Environment environment) { Assert.isInstanceOf(ConfigurableEnvironment.class, environment); this.environment = (ConfigurableEnvironment) environment; } }
[ "kevinliu@kevin-rrxdeMacBook-Pro.local" ]
kevinliu@kevin-rrxdeMacBook-Pro.local
55cc7c16b01b0780388c61d4704a147ba1495c25
9473eb872d70938db6a34cb44e1d093a2f5905fe
/selenium/src/selenium/Employee.java
381a2ad7bdc1e9ee0809cbd2ca2e48c73d95f818
[]
no_license
saraswati597/framework
528c235602718a457f5b98d13d0b10d436fb2e12
92a55d908a5a100b10c75bc4b656eb7e93ad63e2
refs/heads/master
2020-06-11T03:50:38.572380
2019-07-17T08:57:20
2019-07-17T08:57:20
193,843,000
0
0
null
null
null
null
UTF-8
Java
false
false
1,309
java
package selenium; import java.util.HashMap; public class Employee { String name; String mobile; public Employee(String name,String mobile) { this.name=name; this.mobile=mobile; } @Override public int hashCode() { System.out.println("calling hascode method of Employee"); String str=this.name; Integer sum=0; for(int i=0;i<str.length();i++){ sum=sum+str.charAt(i); } return sum; } @Override public boolean equals(Object obj) { // TODO Auto-generated method stub System.out.println("calling equals method of Employee"); Employee emp=(Employee)obj; if(this.mobile.equalsIgnoreCase(emp.mobile)){ System.out.println("returning true"); return true; }else{ System.out.println("returning false"); return false; } } // public static void main(String[] args) { // // TODO Auto-generated method stub // // Employee emp=new Employee("abc", "hhh"); // Employee emp2=new Employee("abc", "hhh"); // HashMap<Employee, Employee> h=new HashMap<>(); // //for (int i=0;i<5;i++){ // h.put(emp, emp); // h.put(emp2, emp2); // // //} // // System.out.println("----------------"); // System.out.println("size of hashmap: "+h.size()); // // // } }
[ "sonijha597@gmail.com" ]
sonijha597@gmail.com
649e948cd1f0a3c7fcbb732f13c9f8a6888a0ad3
a1826c2ed9c12cfc395fb1a14c1a2e1f097155cb
/ddospro-20170725/src/main/java/com/aliyun/ddospro20170725/models/UpdateCcCustomedRuleResponseBody.java
8d9c7c77994bc41758fc3196ee5e4644598917b1
[ "Apache-2.0" ]
permissive
aliyun/alibabacloud-java-sdk
83a6036a33c7278bca6f1bafccb0180940d58b0b
008923f156adf2e4f4785a0419f60640273854ec
refs/heads/master
2023-09-01T04:10:33.640756
2023-09-01T02:40:45
2023-09-01T02:40:45
288,968,318
40
45
null
2023-06-13T02:47:13
2020-08-20T09:51:08
Java
UTF-8
Java
false
false
706
java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.ddospro20170725.models; import com.aliyun.tea.*; public class UpdateCcCustomedRuleResponseBody extends TeaModel { @NameInMap("RequestId") public String requestId; public static UpdateCcCustomedRuleResponseBody build(java.util.Map<String, ?> map) throws Exception { UpdateCcCustomedRuleResponseBody self = new UpdateCcCustomedRuleResponseBody(); return TeaModel.build(map, self); } public UpdateCcCustomedRuleResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } }
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
a68da38a088f7e52948b05f96d9cd13ece0f88c2
0c0f7d6b46b9830ff4baf4a7ae52d6ea74e16248
/xauth/src/main/java/com/github/haozi/config/LiquibaseConfiguration.java
3e781567d8439e55cf26354ffc9994b00c440f4b
[]
no_license
haoziapple/hello-world
e4b76c1447613f55eff36ca65d1cf62bb6113fb1
945d20701749592ae2ed9de25b22d688f7a3bec2
refs/heads/master
2023-01-31T22:51:23.500400
2019-07-12T03:09:41
2019-07-12T03:09:41
52,886,890
3
0
null
2023-01-11T22:17:36
2016-03-01T15:21:52
Java
UTF-8
Java
false
false
1,990
java
package com.github.haozi.config; import javax.sql.DataSource; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.boot.autoconfigure.liquibase.LiquibaseProperties; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.core.env.Environment; import org.springframework.core.task.TaskExecutor; import io.github.jhipster.config.JHipsterConstants; import io.github.jhipster.config.liquibase.AsyncSpringLiquibase; import liquibase.integration.spring.SpringLiquibase; @Configuration public class LiquibaseConfiguration { private final Logger log = LoggerFactory.getLogger(LiquibaseConfiguration.class); private final Environment env; public LiquibaseConfiguration(Environment env) { this.env = env; } @Bean public SpringLiquibase liquibase(@Qualifier("taskExecutor") TaskExecutor taskExecutor, DataSource dataSource, LiquibaseProperties liquibaseProperties) { // Use liquibase.integration.spring.SpringLiquibase if you don't want Liquibase to start asynchronously SpringLiquibase liquibase = new AsyncSpringLiquibase(taskExecutor, env); liquibase.setDataSource(dataSource); liquibase.setChangeLog("classpath:config/liquibase/master.xml"); liquibase.setContexts(liquibaseProperties.getContexts()); liquibase.setDefaultSchema(liquibaseProperties.getDefaultSchema()); liquibase.setDropFirst(liquibaseProperties.isDropFirst()); liquibase.setChangeLogParameters(liquibaseProperties.getParameters()); if (env.acceptsProfiles(JHipsterConstants.SPRING_PROFILE_NO_LIQUIBASE)) { liquibase.setShouldRun(false); } else { liquibase.setShouldRun(liquibaseProperties.isEnabled()); log.debug("Configuring Liquibase"); } return liquibase; } }
[ "haozixiaowang@163.com" ]
haozixiaowang@163.com
f05b78f0fb8fff9e3c70cb04e4587d5255f27d57
36107f017b85c1f30cfa2b070880334cfd4c49d5
/src/com/lyt/java/Offer55_BalancedBinaryTree.java
5939f0f2a3d5f9f3a8159016514a9a7ced6bf479
[]
no_license
Liyutao-gb/offer2
e93f2850076d8b88cba6348b7036f53e5eecb664
c439e1298fc4e2c69bbd07c0bf1367641bf768a1
refs/heads/master
2022-12-02T05:24:23.506906
2020-08-19T08:19:55
2020-08-19T08:19:55
288,689,854
0
0
null
null
null
null
GB18030
Java
false
false
1,087
java
package com.lyt.java; //题目 // 输入一棵二叉树的根结点,判断该树是不是平衡二叉树。如果某二叉树中任意结点的左右子树 //的深度相差不超过1,那么它就是一棵平衡二叉树。 //思路 // 计算树的深度,树的深度=max(左子树深度,右子树深度)+1。 //在遍历过程中,判断左右子树深度相差是否超过1,如果不平衡,则令flag为false,用来表示树 //不平衡。 public class Offer55_BalancedBinaryTree { public class TreeNode { int val = 0; TreeNode left = null; TreeNode right = null; public TreeNode(int val) { this.val = val; } } /** * 每个节点遍历一次解法。空树是平衡二叉树。 */ boolean ans = true; public boolean isBalanced(TreeNode root) { height(root); return ans; } public int height(TreeNode root) { if (root == null) return 0; int left = height(root.left); int right = height(root.right); if (Math.abs(left - right) > 1) ans = false; return Math.max(left, right) + 1; } }
[ "66844549@qq.com" ]
66844549@qq.com
bd95ed442c2604528d2cba5e8272e2c00036ac69
b87c2bf4faca570dccf582f10cac72f4cef235b0
/Segment/src/com/example/utils/JNILoad.java
7bcb317c45c3f11abfd26ad18c965f798968457f
[]
no_license
leduykhanh/segmentation
164be8979a441ca56f7a025ccc7c3fbb95113b50
a8faf77f25df7c419229eff0262969b02c59a30f
refs/heads/master
2021-01-10T09:15:57.391404
2013-02-28T10:34:42
2013-02-28T10:34:42
null
0
0
null
null
null
null
UTF-8
Java
false
false
412
java
package com.example.utils; public class JNILoad { public native String test(); public native String fuck(); public native String unimplementedFunct(); static { //if (!OpenCVLoader.initDebug()) { // Log.d("OpenCV","not loaded"); // System.loadLibrary("test"); // System.loadLibrary("testcpp"); //} } public JNILoad(){ } }
[ "ledu0003@e.ntu.edu.sg" ]
ledu0003@e.ntu.edu.sg
5ba306a85f6e619ed676bb267e45d00a2fae28c8
ff4d268ad76e18f4aa2ca434e9e3c70365b88629
/app/src/test/java/com/example/zz/downloadmanager/ExampleUnitTest.java
b173dc1924b4f8883d22a35da9d03093b0b939aa
[]
no_license
zhangzhen92/DownLoadManager
aad933343ca34dacfeb45ab3a5a05a853475b883
717ae279c622502836699980bd97e02363956e3b
refs/heads/master
2021-07-14T11:11:34.653940
2017-10-18T08:29:31
2017-10-18T08:29:31
107,361,101
0
0
null
null
null
null
UTF-8
Java
false
false
408
java
package com.example.zz.downloadmanager; import org.junit.Test; import static org.junit.Assert.*; /** * Example local unit test, which will execute on the development machine (host). * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ public class ExampleUnitTest { @Test public void addition_isCorrect() throws Exception { assertEquals(4, 2 + 2); } }
[ "zz_dazzling@163.com" ]
zz_dazzling@163.com
42a861226d2868bddaad2c59635bab573a8e8ea3
0157272fae227af8f640eaa862c7fe5ab7a527ac
/projeto-web-service/src/main/java/com/example/projeto/repositories/CategoryRepository.java
9fa9f7b56bdf47784ef73642b31baf3acbcc64b7
[]
no_license
daledev3/Projetos
fcfa19f527c4f77b891763de69d3468f8b5bd905
f25e1904fce388cf395239b1bcebbf48fddc7798
refs/heads/master
2023-05-02T10:21:40.938913
2021-05-11T01:06:56
2021-05-11T01:06:56
null
0
0
null
null
null
null
UTF-8
Java
false
false
231
java
package com.example.projeto.repositories; import org.springframework.data.jpa.repository.JpaRepository; import com.example.projeto.entities.Category; public interface CategoryRepository extends JpaRepository<Category, Long>{ }
[ "dalevalverde95@gmail.com" ]
dalevalverde95@gmail.com
2d5df78c672a24e714431992e985fe11fde2209b
b16048bf7043e35135353843097b1dac1aac9d54
/AndroidOSF3/gen/bba/androidosf3/R.java
09d728f702697fd56d1a9531b0aa6198d891f985
[]
no_license
BogdanBBA/AndroidOSF3
b64e8c2ccf779b1f5a2734296f3ec7836918497e
5ab775d88d5057fcef70c9fd552b54ca07e35b5c
refs/heads/master
2020-03-30T12:01:51.277161
2015-05-19T16:03:31
2015-05-19T16:03:31
35,893,086
0
0
null
null
null
null
UTF-8
Java
false
false
179,802
java
/* AUTO-GENERATED FILE. DO NOT MODIFY. * * This class was automatically generated by the * aapt tool from the resource data it found. It * should not be modified by hand. */ package bba.androidosf3; 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=0x7f01000f; /** 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=0x7f010010; /** Size of the Action Bar, including the contextual bar used to present Action Modes. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int actionBarSize=0x7f01000e; /** 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 actionBarSplitStyle=0x7f01000c; /** 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=0x7f01000b; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionBarTabBarStyle=0x7f010008; /** 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=0x7f010007; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionBarTabTextStyle=0x7f010009; /** 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=0x7f01000d; /** 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=0x7f010016; /** 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=0x7f010047; /** 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=0x7f01004e; /** 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=0x7f010011; /** 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=0x7f010012; /** 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=0x7f01003c; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionModeCloseButtonStyle=0x7f01003b; /** 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=0x7f01003e; /** 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=0x7f010040; /** 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=0x7f01003f; /** 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=0x7f010044; /** 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=0x7f010041; /** 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=0x7f010046; /** 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=0x7f010042; /** 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=0x7f010043; /** 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=0x7f01003d; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></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=0x7f01003a; /** 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=0x7f010045; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionOverflowButtonStyle=0x7f01000a; /** 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=0x7f010050; /** 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=0x7f01004f; /** 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=0x7f01006c; /** 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=0x7f01002f; /** 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=0x7f010031; /** 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=0x7f010030; /** 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=0x7f010018; /** 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=0x7f010017; /** 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=0x7f010032; /** 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=0x7f010054; /** 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>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=0x7f010028; /** 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=0x7f01002e; /** 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=0x7f01001b; /** 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=0x7f010056; /** 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=0x7f01001a; /** ListPopupWindow comaptibility <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></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=0x7f010021; /** 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=0x7f010048; /** 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=0x7f01006b; /** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int height=0x7f010026; /** 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=0x7f010013; /** 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=0x7f010033; /** 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=0x7f01002c; /** 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=0x7f01005a; /** 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=0x7f010035; /** 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=0x7f01006a; /** 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=0x7f010059; /** 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=0x7f010037; /** 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=0x7f010022; /** 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=0x7f01001c; /** 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=0x7f01001e; /** 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=0x7f01001d; /** 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=0x7f01001f; /** 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=0x7f010020; /** 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=0x7f01002d; /** 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=0x7f010027; /** 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=0x7f010039; /** 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=0x7f010038; /** 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=0x7f010049; /** 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=0x7f010053; /** 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=0x7f010036; /** 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=0x7f010034; /** 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=0x7f010051; /** 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=0x7f01005b; /** SearchView dropdown background <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int searchDropdownBackground=0x7f01005c; /** The list item height for search results. @hide <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int searchResultListItemHeight=0x7f010065; /** SearchView AutoCompleteTextView 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 searchViewAutoCompleteTextView=0x7f010069; /** SearchView 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 searchViewCloseIcon=0x7f01005d; /** SearchView query refinement 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 searchViewEditQuery=0x7f010061; /** SearchView query refinement icon background <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int searchViewEditQueryBackground=0x7f010062; /** SearchView 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 searchViewGoIcon=0x7f01005e; /** SearchView 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 searchViewSearchIcon=0x7f01005f; /** SearchView text field background for the left section <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int searchViewTextField=0x7f010063; /** SearchView text field background for the right section <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int searchViewTextFieldRight=0x7f010064; /** SearchView 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 searchViewVoiceIcon=0x7f010060; /** 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=0x7f010019; /** 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=0x7f01004d; /** 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=0x7f010055; /** 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=0x7f010058; /** 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=0x7f010052; /** 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=0x7f010057; /** 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=0x7f010029; /** 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=0x7f01002b; /** 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=0x7f01006d; /** 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=0x7f010014; /** 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=0x7f010023; /** 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=0x7f010024; /** 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=0x7f010067; /** 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=0x7f010066; /** 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=0x7f010015; /** 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=0x7f010068; /** <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=0x7f010025; /** 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=0x7f01002a; /** <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=0x7f010000; /** <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=0x7f010001; /** 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=0x7f010006; /** 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=0x7f010004; /** 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=0x7f010003; /** 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=0x7f010005; /** <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 windowSplitActionBar=0x7f010002; } public static final class bool { public static final int abc_action_bar_embed_tabs_pre_jb=0x7f050000; public static final int abc_action_bar_expanded_action_views_exclusive=0x7f050001; /** 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 int abc_split_action_bar_is_narrow=0x7f050002; } public static final class color { public static final int abc_search_url_text_holo=0x7f06000c; 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 bg_color=0x7f060007; public static final int discipline_color=0x7f060009; public static final int dow_spinner_text_color=0x7f060005; public static final int prof_color=0x7f06000a; public static final int room_color=0x7f06000b; public static final int semester_spinner_text_color=0x7f060003; public static final int time_color=0x7f060008; public static final int week_spinner_text_color=0x7f060004; public static final int white=0x7f060006; } public static final class dimen { /** Default height of an action bar. Default height of an action bar. 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=0x7f070002; /** Vertical padding around action bar icons. Vertical padding around action bar icons. Vertical padding around action bar icons. Vertical padding around action bar icons. Vertical padding around action bar icons. */ public static final int abc_action_bar_icon_vertical_padding=0x7f070003; /** Size of the indeterminate Progress Bar Size of the indeterminate Progress Bar */ public static final int abc_action_bar_progress_bar_size=0x7f07000a; /** Maximum height for a stacked tab bar as part of an action bar */ public static final int abc_action_bar_stacked_max_height=0x7f070009; /** 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=0x7f070001; /** Bottom margin for action bar subtitles Bottom margin for action bar subtitles Bottom margin for action bar subtitles Bottom margin for action bar subtitles Bottom margin for action bar subtitles */ public static final int abc_action_bar_subtitle_bottom_margin=0x7f070007; /** Text size for action bar subtitles Text size for action bar subtitles Text size for action bar subtitles Text size for action bar subtitles Text size for action bar subtitles */ public static final int abc_action_bar_subtitle_text_size=0x7f070005; /** Top margin for action bar subtitles Top margin for action bar subtitles Top margin for action bar subtitles Top margin for action bar subtitles Top margin for action bar subtitles */ public static final int abc_action_bar_subtitle_top_margin=0x7f070006; /** Text size for action bar titles Text size for action bar titles Text size for action bar titles Text size for action bar titles Text size for action bar titles */ public static final int abc_action_bar_title_text_size=0x7f070004; /** Minimum width for an action button in the menu area of an action bar Minimum width for an action button in the menu area of an action bar Minimum width for an action button in the menu area of an action bar */ public static final int abc_action_button_min_width=0x7f070008; /** 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=0x7f070000; /** Width of the icon in a dropdown list */ public static final int abc_dropdownitem_icon_width=0x7f070010; /** Text padding for dropdown items */ public static final int abc_dropdownitem_text_padding_left=0x7f07000e; public static final int abc_dropdownitem_text_padding_right=0x7f07000f; public static final int abc_panel_menu_list_width=0x7f07000b; /** Preferred width of the search view. */ public static final int abc_search_view_preferred_width=0x7f07000d; /** 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=0x7f07000c; /** 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=0x7f070015; public static final int activity_vertical_margin=0x7f070016; /** 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=0x7f070013; /** 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=0x7f070014; /** 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=0x7f070011; /** 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=0x7f070012; } public static final class drawable { public static final int abc_ab_bottom_solid_dark_holo=0x7f020000; public static final int abc_ab_bottom_solid_light_holo=0x7f020001; public static final int abc_ab_bottom_transparent_dark_holo=0x7f020002; public static final int abc_ab_bottom_transparent_light_holo=0x7f020003; public static final int abc_ab_share_pack_holo_dark=0x7f020004; public static final int abc_ab_share_pack_holo_light=0x7f020005; public static final int abc_ab_solid_dark_holo=0x7f020006; public static final int abc_ab_solid_light_holo=0x7f020007; public static final int abc_ab_stacked_solid_dark_holo=0x7f020008; public static final int abc_ab_stacked_solid_light_holo=0x7f020009; public static final int abc_ab_stacked_transparent_dark_holo=0x7f02000a; public static final int abc_ab_stacked_transparent_light_holo=0x7f02000b; public static final int abc_ab_transparent_dark_holo=0x7f02000c; public static final int abc_ab_transparent_light_holo=0x7f02000d; public static final int abc_cab_background_bottom_holo_dark=0x7f02000e; public static final int abc_cab_background_bottom_holo_light=0x7f02000f; public static final int abc_cab_background_top_holo_dark=0x7f020010; public static final int abc_cab_background_top_holo_light=0x7f020011; public static final int abc_ic_ab_back_holo_dark=0x7f020012; public static final int abc_ic_ab_back_holo_light=0x7f020013; public static final int abc_ic_cab_done_holo_dark=0x7f020014; public static final int abc_ic_cab_done_holo_light=0x7f020015; public static final int abc_ic_clear=0x7f020016; public static final int abc_ic_clear_disabled=0x7f020017; public static final int abc_ic_clear_holo_light=0x7f020018; public static final int abc_ic_clear_normal=0x7f020019; public static final int abc_ic_clear_search_api_disabled_holo_light=0x7f02001a; public static final int abc_ic_clear_search_api_holo_light=0x7f02001b; public static final int abc_ic_commit_search_api_holo_dark=0x7f02001c; public static final int abc_ic_commit_search_api_holo_light=0x7f02001d; public static final int abc_ic_go=0x7f02001e; public static final int abc_ic_go_search_api_holo_light=0x7f02001f; public static final int abc_ic_menu_moreoverflow_normal_holo_dark=0x7f020020; public static final int abc_ic_menu_moreoverflow_normal_holo_light=0x7f020021; public static final int abc_ic_menu_share_holo_dark=0x7f020022; public static final int abc_ic_menu_share_holo_light=0x7f020023; public static final int abc_ic_search=0x7f020024; public static final int abc_ic_search_api_holo_light=0x7f020025; public static final int abc_ic_voice_search=0x7f020026; public static final int abc_ic_voice_search_api_holo_light=0x7f020027; public static final int abc_item_background_holo_dark=0x7f020028; public static final int abc_item_background_holo_light=0x7f020029; public static final int abc_list_divider_holo_dark=0x7f02002a; public static final int abc_list_divider_holo_light=0x7f02002b; public static final int abc_list_focused_holo=0x7f02002c; public static final int abc_list_longpressed_holo=0x7f02002d; public static final int abc_list_pressed_holo_dark=0x7f02002e; public static final int abc_list_pressed_holo_light=0x7f02002f; public static final int abc_list_selector_background_transition_holo_dark=0x7f020030; public static final int abc_list_selector_background_transition_holo_light=0x7f020031; public static final int abc_list_selector_disabled_holo_dark=0x7f020032; public static final int abc_list_selector_disabled_holo_light=0x7f020033; public static final int abc_list_selector_holo_dark=0x7f020034; public static final int abc_list_selector_holo_light=0x7f020035; public static final int abc_menu_dropdown_panel_holo_dark=0x7f020036; public static final int abc_menu_dropdown_panel_holo_light=0x7f020037; public static final int abc_menu_hardkey_panel_holo_dark=0x7f020038; public static final int abc_menu_hardkey_panel_holo_light=0x7f020039; public static final int abc_search_dropdown_dark=0x7f02003a; public static final int abc_search_dropdown_light=0x7f02003b; public static final int abc_spinner_ab_default_holo_dark=0x7f02003c; public static final int abc_spinner_ab_default_holo_light=0x7f02003d; public static final int abc_spinner_ab_disabled_holo_dark=0x7f02003e; public static final int abc_spinner_ab_disabled_holo_light=0x7f02003f; public static final int abc_spinner_ab_focused_holo_dark=0x7f020040; public static final int abc_spinner_ab_focused_holo_light=0x7f020041; public static final int abc_spinner_ab_holo_dark=0x7f020042; public static final int abc_spinner_ab_holo_light=0x7f020043; public static final int abc_spinner_ab_pressed_holo_dark=0x7f020044; public static final int abc_spinner_ab_pressed_holo_light=0x7f020045; public static final int abc_tab_indicator_ab_holo=0x7f020046; public static final int abc_tab_selected_focused_holo=0x7f020047; public static final int abc_tab_selected_holo=0x7f020048; public static final int abc_tab_selected_pressed_holo=0x7f020049; public static final int abc_tab_unselected_pressed_holo=0x7f02004a; public static final int abc_textfield_search_default_holo_dark=0x7f02004b; public static final int abc_textfield_search_default_holo_light=0x7f02004c; public static final int abc_textfield_search_right_default_holo_dark=0x7f02004d; public static final int abc_textfield_search_right_default_holo_light=0x7f02004e; public static final int abc_textfield_search_right_selected_holo_dark=0x7f02004f; public static final int abc_textfield_search_right_selected_holo_light=0x7f020050; public static final int abc_textfield_search_selected_holo_dark=0x7f020051; public static final int abc_textfield_search_selected_holo_light=0x7f020052; public static final int abc_textfield_searchview_holo_dark=0x7f020053; public static final int abc_textfield_searchview_holo_light=0x7f020054; public static final int abc_textfield_searchview_right_holo_dark=0x7f020055; public static final int abc_textfield_searchview_right_holo_light=0x7f020056; public static final int ic_launcher=0x7f020057; } public static final class id { public static final int ScrollView01=0x7f09003c; public static final int ScrollView02=0x7f090046; public static final int action_bar=0x7f09001c; public static final int action_bar_activity_content=0x7f090001; public static final int action_bar_container=0x7f09001b; public static final int action_bar_overlay_layout=0x7f09001f; public static final int action_bar_root=0x7f09001a; public static final int action_bar_subtitle=0x7f090023; public static final int action_bar_title=0x7f090022; public static final int action_context_bar=0x7f09001d; public static final int action_menu_divider=0x7f090002; public static final int action_menu_presenter=0x7f090003; public static final int action_mode_close_button=0x7f090024; public static final int action_settings=0x7f09004e; public static final int activity_chooser_view_content=0x7f090025; public static final int always=0x7f09000f; public static final int beginning=0x7f090016; public static final int checkbox=0x7f09002d; public static final int collapseActionView=0x7f090010; public static final int default_activity_button=0x7f090028; public static final int dialog=0x7f090014; public static final int disableHome=0x7f090009; public static final int dow_label=0x7f090044; public static final int dow_spinner=0x7f090045; public static final int dropdown=0x7f090015; public static final int edit_query=0x7f090030; public static final int end=0x7f090017; public static final int expand_activities_button=0x7f090026; public static final int expanded_menu=0x7f09002c; public static final int home=0x7f090000; public static final int homeAsUp=0x7f09000a; public static final int icon=0x7f09002a; public static final int ifRoom=0x7f090011; public static final int image=0x7f090027; public static final int listMode=0x7f090006; public static final int list_item=0x7f090029; public static final int main_relative_layout=0x7f09003d; public static final int middle=0x7f090018; public static final int never=0x7f090012; public static final int none=0x7f090019; public static final int normal=0x7f090007; public static final int option1_checkbox=0x7f09004a; public static final int option1_label=0x7f090049; public static final int option2_checkbox=0x7f09004c; public static final int option2_label=0x7f09004b; public static final int progress_circular=0x7f090004; public static final int progress_horizontal=0x7f090005; public static final int radio=0x7f09002f; public static final int save_button=0x7f09004d; public static final int search_badge=0x7f090032; public static final int search_bar=0x7f090031; public static final int search_button=0x7f090033; public static final int search_close_btn=0x7f090038; public static final int search_edit_frame=0x7f090034; public static final int search_go_btn=0x7f09003a; public static final int search_mag_icon=0x7f090035; public static final int search_plate=0x7f090036; public static final int search_src_text=0x7f090037; public static final int search_voice_btn=0x7f09003b; public static final int semester_label=0x7f090040; public static final int semester_spinner=0x7f090041; public static final int shortcut=0x7f09002e; public static final int showCustom=0x7f09000b; public static final int showHome=0x7f09000c; public static final int showTitle=0x7f09000d; public static final int split_action_bar=0x7f09001e; public static final int submit_area=0x7f090039; public static final int subtitle2_label=0x7f090047; public static final int subtitle3_label=0x7f090048; public static final int subtitle_label=0x7f09003f; public static final int tabMode=0x7f090008; public static final int title=0x7f09002b; public static final int title_label=0x7f09003e; public static final int top_action_bar=0x7f090020; public static final int up=0x7f090021; public static final int useLogo=0x7f09000e; public static final int week_label=0x7f090042; public static final int week_spinner=0x7f090043; public static final int withText=0x7f090013; } 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_decor=0x7f030000; public static final int abc_action_bar_decor_include=0x7f030001; public static final int abc_action_bar_decor_overlay=0x7f030002; public static final int abc_action_bar_home=0x7f030003; public static final int abc_action_bar_tab=0x7f030004; public static final int abc_action_bar_tabbar=0x7f030005; public static final int abc_action_bar_title_item=0x7f030006; public static final int abc_action_bar_view_list_nav_layout=0x7f030007; public static final int abc_action_menu_item_layout=0x7f030008; public static final int abc_action_menu_layout=0x7f030009; public static final int abc_action_mode_bar=0x7f03000a; public static final int abc_action_mode_close_item=0x7f03000b; public static final int abc_activity_chooser_view=0x7f03000c; public static final int abc_activity_chooser_view_include=0x7f03000d; public static final int abc_activity_chooser_view_list_item=0x7f03000e; public static final int abc_expanded_menu_layout=0x7f03000f; public static final int abc_list_menu_item_checkbox=0x7f030010; public static final int abc_list_menu_item_icon=0x7f030011; public static final int abc_list_menu_item_layout=0x7f030012; public static final int abc_list_menu_item_radio=0x7f030013; public static final int abc_popup_menu_item_layout=0x7f030014; public static final int abc_search_dropdown_item_icons_2line=0x7f030015; public static final int abc_search_view=0x7f030016; public static final int abc_simple_decor=0x7f030017; public static final int activity_main=0x7f030018; public static final int activity_options=0x7f030019; public static final int support_simple_spinner_dropdown_item=0x7f03001a; } 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; /** 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=0x7f0a000a; /** 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=0x7f0a0009; /** SearchView accessibility description for clear button [CHAR LIMIT=NONE] */ public static final int abc_searchview_description_clear=0x7f0a0006; /** SearchView accessibility description for search text field [CHAR LIMIT=NONE] */ public static final int abc_searchview_description_query=0x7f0a0005; /** SearchView accessibility description for search button [CHAR LIMIT=NONE] */ public static final int abc_searchview_description_search=0x7f0a0004; /** SearchView accessibility description for submit button [CHAR LIMIT=NONE] */ public static final int abc_searchview_description_submit=0x7f0a0007; /** SearchView accessibility description for voice button [CHAR LIMIT=NONE] */ public static final int abc_searchview_description_voice=0x7f0a0008; /** Description of the choose target button in a ShareActionProvider (share UI). [CHAR LIMIT=NONE] */ public static final int abc_shareactionprovider_share_with=0x7f0a000c; /** 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=0x7f0a000b; public static final int action_settings=0x7f0a000f; public static final int app_name=0x7f0a000d; public static final int hello_world=0x7f0a000e; public static final int info1=0x7f0a0010; public static final int info2=0x7f0a0011; public static final int info3=0x7f0a0012; public static final int info4=0x7f0a0013; public static final int option1_checkbox_text=0x7f0a0018; public static final int option1_text=0x7f0a0017; public static final int option2_checkbox_text=0x7f0a001a; public static final int option2_text=0x7f0a0019; public static final int save_button_text=0x7f0a001b; public static final int subtitle2_text=0x7f0a0015; public static final int subtitle3_text=0x7f0a0016; public static final int subtitle_text=0x7f0a0014; public static final int title_activity_options=0x7f0a001c; } 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=0x7f0b008b; /** Application theme. All customizations that are NOT specific to a particular API-level can go here. */ public static final int AppTheme=0x7f0b008c; /** Mimic text appearance in select_dialog_item.xml */ public static final int TextAppearance_AppCompat_Base_CompactMenu_Dialog=0x7f0b0063; public static final int TextAppearance_AppCompat_Base_SearchResult=0x7f0b006d; public static final int TextAppearance_AppCompat_Base_SearchResult_Subtitle=0x7f0b006f; /** Search View result styles */ public static final int TextAppearance_AppCompat_Base_SearchResult_Title=0x7f0b006e; public static final int TextAppearance_AppCompat_Base_Widget_PopupMenu_Large=0x7f0b0069; public static final int TextAppearance_AppCompat_Base_Widget_PopupMenu_Small=0x7f0b006a; public static final int TextAppearance_AppCompat_Light_Base_SearchResult=0x7f0b0070; public static final int TextAppearance_AppCompat_Light_Base_SearchResult_Subtitle=0x7f0b0072; /** TextAppearance.Holo.Light.SearchResult.* are private so we extend from the default versions instead (which are exactly the same). */ public static final int TextAppearance_AppCompat_Light_Base_SearchResult_Title=0x7f0b0071; public static final int TextAppearance_AppCompat_Light_Base_Widget_PopupMenu_Large=0x7f0b006b; public static final int TextAppearance_AppCompat_Light_Base_Widget_PopupMenu_Small=0x7f0b006c; public static final int TextAppearance_AppCompat_Light_SearchResult_Subtitle=0x7f0b0035; public static final int TextAppearance_AppCompat_Light_SearchResult_Title=0x7f0b0034; public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large=0x7f0b0030; public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small=0x7f0b0031; public static final int TextAppearance_AppCompat_SearchResult_Subtitle=0x7f0b0033; public static final int TextAppearance_AppCompat_SearchResult_Title=0x7f0b0032; public static final int TextAppearance_AppCompat_Widget_ActionBar_Menu=0x7f0b001a; public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle=0x7f0b0006; public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse=0x7f0b0008; public static final int TextAppearance_AppCompat_Widget_ActionBar_Title=0x7f0b0005; public static final int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse=0x7f0b0007; public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle=0x7f0b001e; public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse=0x7f0b0020; public static final int TextAppearance_AppCompat_Widget_ActionMode_Title=0x7f0b001d; public static final int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse=0x7f0b001f; public static final int TextAppearance_AppCompat_Widget_Base_ActionBar_Menu=0x7f0b0054; public static final int TextAppearance_AppCompat_Widget_Base_ActionBar_Subtitle=0x7f0b0056; public static final int TextAppearance_AppCompat_Widget_Base_ActionBar_Subtitle_Inverse=0x7f0b0058; public static final int TextAppearance_AppCompat_Widget_Base_ActionBar_Title=0x7f0b0055; public static final int TextAppearance_AppCompat_Widget_Base_ActionBar_Title_Inverse=0x7f0b0057; public static final int TextAppearance_AppCompat_Widget_Base_ActionMode_Subtitle=0x7f0b0051; public static final int TextAppearance_AppCompat_Widget_Base_ActionMode_Subtitle_Inverse=0x7f0b0053; public static final int TextAppearance_AppCompat_Widget_Base_ActionMode_Title=0x7f0b0050; public static final int TextAppearance_AppCompat_Widget_Base_ActionMode_Title_Inverse=0x7f0b0052; public static final int TextAppearance_AppCompat_Widget_Base_DropDownItem=0x7f0b0061; public static final int TextAppearance_AppCompat_Widget_DropDownItem=0x7f0b0021; public static final int TextAppearance_AppCompat_Widget_PopupMenu_Large=0x7f0b002e; public static final int TextAppearance_AppCompat_Widget_PopupMenu_Small=0x7f0b002f; public static final int TextAppearance_Widget_AppCompat_Base_ExpandedMenu_Item=0x7f0b0062; public static final int TextAppearance_Widget_AppCompat_ExpandedMenu_Item=0x7f0b0028; /** 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=0x7f0b0077; /** Menu/item attributes */ public static final int Theme_AppCompat_Base_CompactMenu=0x7f0b0083; public static final int Theme_AppCompat_Base_CompactMenu_Dialog=0x7f0b0084; /** Menu/item attributes */ public static final int Theme_AppCompat_CompactMenu=0x7f0b007c; public static final int Theme_AppCompat_CompactMenu_Dialog=0x7f0b007d; public static final int Theme_AppCompat_DialogWhenLarge=0x7f0b007a; /** Platform-independent theme providing an action bar in a light-themed activity. */ public static final int Theme_AppCompat_Light=0x7f0b0078; /** Platform-independent theme providing an action bar in a dark-themed activity. */ public static final int Theme_AppCompat_Light_DarkActionBar=0x7f0b0079; public static final int Theme_AppCompat_Light_DialogWhenLarge=0x7f0b007b; /** Base platform-dependent theme */ public static final int Theme_Base=0x7f0b007e; /** Base platform-dependent theme providing an action bar in a dark-themed activity. Base platform-dependent theme providing an action bar in a dark-themed activity. */ public static final int Theme_Base_AppCompat=0x7f0b0080; public static final int Theme_Base_AppCompat_Dialog_FixedSize=0x7f0b0087; public static final int Theme_Base_AppCompat_Dialog_Light_FixedSize=0x7f0b0088; public static final int Theme_Base_AppCompat_DialogWhenLarge=0x7f0b0085; /** As we have defined the theme in values-large (for compat) and values-large takes precedence over values-v14, we need to reset back to the Holo parent in values-large-v14. As the themes in values-v14 & values-large-v14 are exactly the same, these "double base" themes can be inherited from in both values-v14 and values-large-v14. */ public static final int Theme_Base_AppCompat_DialogWhenLarge_Base=0x7f0b0089; /** Base platform-dependent theme providing an action bar in a light-themed activity. Base platform-dependent theme providing an action bar in a light-themed activity. */ public static final int Theme_Base_AppCompat_Light=0x7f0b0081; /** Base platform-dependent theme providing a dark action bar in a light-themed activity. Base platform-dependent theme providing a dark action bar in a light-themed activity. */ public static final int Theme_Base_AppCompat_Light_DarkActionBar=0x7f0b0082; public static final int Theme_Base_AppCompat_Light_DialogWhenLarge=0x7f0b0086; public static final int Theme_Base_AppCompat_Light_DialogWhenLarge_Base=0x7f0b008a; /** Base platform-dependent theme providing a light-themed activity. */ public static final int Theme_Base_Light=0x7f0b007f; /** Styles in here can be extended for customisation in your application. Each utilises one of the Base 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=0x7f0b0011; public static final int Widget_AppCompat_ActionBar_TabText=0x7f0b0017; public static final int Widget_AppCompat_ActionBar_TabView=0x7f0b0014; public static final int Widget_AppCompat_ActionButton=0x7f0b000b; public static final int Widget_AppCompat_ActionButton_CloseMode=0x7f0b000d; public static final int Widget_AppCompat_ActionButton_Overflow=0x7f0b000f; public static final int Widget_AppCompat_ActionMode=0x7f0b001b; public static final int Widget_AppCompat_ActivityChooserView=0x7f0b0038; public static final int Widget_AppCompat_AutoCompleteTextView=0x7f0b0036; public static final int Widget_AppCompat_Base_ActionBar=0x7f0b003a; public static final int Widget_AppCompat_Base_ActionBar_Solid=0x7f0b003c; public static final int Widget_AppCompat_Base_ActionBar_TabBar=0x7f0b0045; public static final int Widget_AppCompat_Base_ActionBar_TabText=0x7f0b004b; public static final int Widget_AppCompat_Base_ActionBar_TabView=0x7f0b0048; /** Action Button Styles */ public static final int Widget_AppCompat_Base_ActionButton=0x7f0b003f; public static final int Widget_AppCompat_Base_ActionButton_CloseMode=0x7f0b0041; public static final int Widget_AppCompat_Base_ActionButton_Overflow=0x7f0b0043; public static final int Widget_AppCompat_Base_ActionMode=0x7f0b004e; public static final int Widget_AppCompat_Base_ActivityChooserView=0x7f0b0075; /** AutoCompleteTextView styles (for SearchView) */ public static final int Widget_AppCompat_Base_AutoCompleteTextView=0x7f0b0073; public static final int Widget_AppCompat_Base_DropDownItem_Spinner=0x7f0b005d; /** Popup Menu */ public static final int Widget_AppCompat_Base_ListPopupWindow=0x7f0b0065; /** Spinner Widgets */ public static final int Widget_AppCompat_Base_ListView_DropDown=0x7f0b005f; public static final int Widget_AppCompat_Base_ListView_Menu=0x7f0b0064; public static final int Widget_AppCompat_Base_PopupMenu=0x7f0b0067; public static final int Widget_AppCompat_Base_ProgressBar=0x7f0b005a; /** Progress Bar */ public static final int Widget_AppCompat_Base_ProgressBar_Horizontal=0x7f0b0059; /** Action Bar Spinner Widgets */ public static final int Widget_AppCompat_Base_Spinner=0x7f0b005b; public static final int Widget_AppCompat_DropDownItem_Spinner=0x7f0b0024; public static final int Widget_AppCompat_Light_ActionBar=0x7f0b0001; public static final int Widget_AppCompat_Light_ActionBar_Solid=0x7f0b0003; public static final int Widget_AppCompat_Light_ActionBar_Solid_Inverse=0x7f0b0004; public static final int Widget_AppCompat_Light_ActionBar_TabBar=0x7f0b0012; public static final int Widget_AppCompat_Light_ActionBar_TabBar_Inverse=0x7f0b0013; public static final int Widget_AppCompat_Light_ActionBar_TabText=0x7f0b0018; public static final int Widget_AppCompat_Light_ActionBar_TabText_Inverse=0x7f0b0019; public static final int Widget_AppCompat_Light_ActionBar_TabView=0x7f0b0015; public static final int Widget_AppCompat_Light_ActionBar_TabView_Inverse=0x7f0b0016; public static final int Widget_AppCompat_Light_ActionButton=0x7f0b000c; public static final int Widget_AppCompat_Light_ActionButton_CloseMode=0x7f0b000e; public static final int Widget_AppCompat_Light_ActionButton_Overflow=0x7f0b0010; public static final int Widget_AppCompat_Light_ActionMode_Inverse=0x7f0b001c; public static final int Widget_AppCompat_Light_ActivityChooserView=0x7f0b0039; public static final int Widget_AppCompat_Light_AutoCompleteTextView=0x7f0b0037; public static final int Widget_AppCompat_Light_Base_ActionBar=0x7f0b003b; public static final int Widget_AppCompat_Light_Base_ActionBar_Solid=0x7f0b003d; public static final int Widget_AppCompat_Light_Base_ActionBar_Solid_Inverse=0x7f0b003e; public static final int Widget_AppCompat_Light_Base_ActionBar_TabBar=0x7f0b0046; public static final int Widget_AppCompat_Light_Base_ActionBar_TabBar_Inverse=0x7f0b0047; public static final int Widget_AppCompat_Light_Base_ActionBar_TabText=0x7f0b004c; public static final int Widget_AppCompat_Light_Base_ActionBar_TabText_Inverse=0x7f0b004d; public static final int Widget_AppCompat_Light_Base_ActionBar_TabView=0x7f0b0049; public static final int Widget_AppCompat_Light_Base_ActionBar_TabView_Inverse=0x7f0b004a; public static final int Widget_AppCompat_Light_Base_ActionButton=0x7f0b0040; public static final int Widget_AppCompat_Light_Base_ActionButton_CloseMode=0x7f0b0042; public static final int Widget_AppCompat_Light_Base_ActionButton_Overflow=0x7f0b0044; public static final int Widget_AppCompat_Light_Base_ActionMode_Inverse=0x7f0b004f; public static final int Widget_AppCompat_Light_Base_ActivityChooserView=0x7f0b0076; public static final int Widget_AppCompat_Light_Base_AutoCompleteTextView=0x7f0b0074; public static final int Widget_AppCompat_Light_Base_DropDownItem_Spinner=0x7f0b005e; public static final int Widget_AppCompat_Light_Base_ListPopupWindow=0x7f0b0066; public static final int Widget_AppCompat_Light_Base_ListView_DropDown=0x7f0b0060; public static final int Widget_AppCompat_Light_Base_PopupMenu=0x7f0b0068; public static final int Widget_AppCompat_Light_Base_Spinner=0x7f0b005c; public static final int Widget_AppCompat_Light_DropDownItem_Spinner=0x7f0b0025; public static final int Widget_AppCompat_Light_ListPopupWindow=0x7f0b002a; public static final int Widget_AppCompat_Light_ListView_DropDown=0x7f0b0027; public static final int Widget_AppCompat_Light_PopupMenu=0x7f0b002c; public static final int Widget_AppCompat_Light_Spinner_DropDown_ActionBar=0x7f0b0023; public static final int Widget_AppCompat_ListPopupWindow=0x7f0b0029; public static final int Widget_AppCompat_ListView_DropDown=0x7f0b0026; public static final int Widget_AppCompat_ListView_Menu=0x7f0b002d; public static final int Widget_AppCompat_PopupMenu=0x7f0b002b; public static final int Widget_AppCompat_ProgressBar=0x7f0b000a; public static final int Widget_AppCompat_ProgressBar_Horizontal=0x7f0b0009; public static final int Widget_AppCompat_Spinner_DropDown_ActionBar=0x7f0b0022; } 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 bba.androidosf3:background}</code></td><td> Specifies a background drawable for the action bar.</td></tr> <tr><td><code>{@link #ActionBar_backgroundSplit bba.androidosf3: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 bba.androidosf3:backgroundStacked}</code></td><td> Specifies a background drawable for a second stacked row of the action bar.</td></tr> <tr><td><code>{@link #ActionBar_customNavigationLayout bba.androidosf3:customNavigationLayout}</code></td><td> Specifies a layout for custom navigation.</td></tr> <tr><td><code>{@link #ActionBar_displayOptions bba.androidosf3:displayOptions}</code></td><td> Options affecting how the action bar is displayed.</td></tr> <tr><td><code>{@link #ActionBar_divider bba.androidosf3:divider}</code></td><td> Specifies the drawable used for item dividers.</td></tr> <tr><td><code>{@link #ActionBar_height bba.androidosf3:height}</code></td><td> Specifies a fixed height.</td></tr> <tr><td><code>{@link #ActionBar_homeLayout bba.androidosf3: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 bba.androidosf3:icon}</code></td><td> Specifies the drawable used for the application icon.</td></tr> <tr><td><code>{@link #ActionBar_indeterminateProgressStyle bba.androidosf3:indeterminateProgressStyle}</code></td><td> Specifies a style resource to use for an indeterminate progress spinner.</td></tr> <tr><td><code>{@link #ActionBar_itemPadding bba.androidosf3: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 bba.androidosf3:logo}</code></td><td> Specifies the drawable used for the application logo.</td></tr> <tr><td><code>{@link #ActionBar_navigationMode bba.androidosf3:navigationMode}</code></td><td> The type of navigation to use.</td></tr> <tr><td><code>{@link #ActionBar_progressBarPadding bba.androidosf3:progressBarPadding}</code></td><td> Specifies the horizontal padding on either end for an embedded progress bar.</td></tr> <tr><td><code>{@link #ActionBar_progressBarStyle bba.androidosf3:progressBarStyle}</code></td><td> Specifies a style resource to use for an embedded progress bar.</td></tr> <tr><td><code>{@link #ActionBar_subtitle bba.androidosf3:subtitle}</code></td><td> Specifies subtitle text used for navigationMode="normal" </td></tr> <tr><td><code>{@link #ActionBar_subtitleTextStyle bba.androidosf3:subtitleTextStyle}</code></td><td> Specifies a style to use for subtitle text.</td></tr> <tr><td><code>{@link #ActionBar_title bba.androidosf3:title}</code></td><td> Specifies title text used for navigationMode="normal" </td></tr> <tr><td><code>{@link #ActionBar_titleTextStyle bba.androidosf3: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_customNavigationLayout @see #ActionBar_displayOptions @see #ActionBar_divider @see #ActionBar_height @see #ActionBar_homeLayout @see #ActionBar_icon @see #ActionBar_indeterminateProgressStyle @see #ActionBar_itemPadding @see #ActionBar_logo @see #ActionBar_navigationMode @see #ActionBar_progressBarPadding @see #ActionBar_progressBarStyle @see #ActionBar_subtitle @see #ActionBar_subtitleTextStyle @see #ActionBar_title @see #ActionBar_titleTextStyle */ public static final int[] ActionBar = { 0x7f010025, 0x7f010026, 0x7f010027, 0x7f010028, 0x7f010029, 0x7f01002a, 0x7f01002b, 0x7f01002c, 0x7f01002d, 0x7f01002e, 0x7f01002f, 0x7f010030, 0x7f010031, 0x7f010032, 0x7f010033, 0x7f010034, 0x7f010035, 0x7f010036, 0x7f010037 }; /** <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 bba.androidosf3:background */ public static final int ActionBar_background = 10; /** <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 bba.androidosf3:backgroundSplit */ public static final int ActionBar_backgroundSplit = 12; /** <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 bba.androidosf3:backgroundStacked */ public static final int ActionBar_backgroundStacked = 11; /** <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 bba.androidosf3:customNavigationLayout */ public static final int ActionBar_customNavigationLayout = 13; /** <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>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 bba.androidosf3:displayOptions */ public static final int ActionBar_displayOptions = 3; /** <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 bba.androidosf3:divider */ public static final int ActionBar_divider = 9; /** <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 bba.androidosf3:height */ public static final int ActionBar_height = 1; /** <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 bba.androidosf3:homeLayout */ public static final int ActionBar_homeLayout = 14; /** <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 bba.androidosf3:icon */ public static final int ActionBar_icon = 7; /** <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 bba.androidosf3:indeterminateProgressStyle */ public static final int ActionBar_indeterminateProgressStyle = 16; /** <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 bba.androidosf3:itemPadding */ public static final int ActionBar_itemPadding = 18; /** <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 bba.androidosf3:logo */ public static final int ActionBar_logo = 8; /** <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 bba.androidosf3:navigationMode */ public static final int ActionBar_navigationMode = 2; /** <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 bba.androidosf3:progressBarPadding */ public static final int ActionBar_progressBarPadding = 17; /** <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 bba.androidosf3:progressBarStyle */ public static final int ActionBar_progressBarStyle = 15; /** <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 bba.androidosf3:subtitle */ public static final int ActionBar_subtitle = 4; /** <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 bba.androidosf3:subtitleTextStyle */ public static final int ActionBar_subtitleTextStyle = 6; /** <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 bba.androidosf3: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 bba.androidosf3:titleTextStyle */ public static final int ActionBar_titleTextStyle = 5; /** 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; /** These attributes are meant to be specified and customized by the app. The system will read and apply them as needed. These attributes control properties of the activity window, such as whether an action bar should be present and whether it should overlay content. <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 #ActionBarWindow_windowActionBar bba.androidosf3:windowActionBar}</code></td><td></td></tr> <tr><td><code>{@link #ActionBarWindow_windowActionBarOverlay bba.androidosf3:windowActionBarOverlay}</code></td><td></td></tr> <tr><td><code>{@link #ActionBarWindow_windowFixedHeightMajor bba.androidosf3: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 #ActionBarWindow_windowFixedHeightMinor bba.androidosf3: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 #ActionBarWindow_windowFixedWidthMajor bba.androidosf3: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 #ActionBarWindow_windowFixedWidthMinor bba.androidosf3:windowFixedWidthMinor}</code></td><td> A fixed width for the window along the minor axis of the screen, that is, when in portrait.</td></tr> <tr><td><code>{@link #ActionBarWindow_windowSplitActionBar bba.androidosf3:windowSplitActionBar}</code></td><td></td></tr> </table> @see #ActionBarWindow_windowActionBar @see #ActionBarWindow_windowActionBarOverlay @see #ActionBarWindow_windowFixedHeightMajor @see #ActionBarWindow_windowFixedHeightMinor @see #ActionBarWindow_windowFixedWidthMajor @see #ActionBarWindow_windowFixedWidthMinor @see #ActionBarWindow_windowSplitActionBar */ public static final int[] ActionBarWindow = { 0x7f010000, 0x7f010001, 0x7f010002, 0x7f010003, 0x7f010004, 0x7f010005, 0x7f010006 }; /** <p>This symbol is the offset where the {@link bba.androidosf3.R.attr#windowActionBar} attribute's value can be found in the {@link #ActionBarWindow} array. <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. @attr name bba.androidosf3:windowActionBar */ public static final int ActionBarWindow_windowActionBar = 0; /** <p>This symbol is the offset where the {@link bba.androidosf3.R.attr#windowActionBarOverlay} attribute's value can be found in the {@link #ActionBarWindow} array. <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. @attr name bba.androidosf3:windowActionBarOverlay */ public static final int ActionBarWindow_windowActionBarOverlay = 1; /** <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 bba.androidosf3:windowFixedHeightMajor */ public static final int ActionBarWindow_windowFixedHeightMajor = 6; /** <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 bba.androidosf3:windowFixedHeightMinor */ public static final int ActionBarWindow_windowFixedHeightMinor = 4; /** <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 bba.androidosf3:windowFixedWidthMajor */ public static final int ActionBarWindow_windowFixedWidthMajor = 3; /** <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 bba.androidosf3:windowFixedWidthMinor */ public static final int ActionBarWindow_windowFixedWidthMinor = 5; /** <p>This symbol is the offset where the {@link bba.androidosf3.R.attr#windowSplitActionBar} attribute's value can be found in the {@link #ActionBarWindow} array. <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. @attr name bba.androidosf3:windowSplitActionBar */ public static final int ActionBarWindow_windowSplitActionBar = 2; /** 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 bba.androidosf3:background}</code></td><td> Specifies a background for the action mode bar.</td></tr> <tr><td><code>{@link #ActionMode_backgroundSplit bba.androidosf3:backgroundSplit}</code></td><td> Specifies a background for the split action mode bar.</td></tr> <tr><td><code>{@link #ActionMode_height bba.androidosf3:height}</code></td><td> Specifies a fixed height for the action mode bar.</td></tr> <tr><td><code>{@link #ActionMode_subtitleTextStyle bba.androidosf3:subtitleTextStyle}</code></td><td> Specifies a style to use for subtitle text.</td></tr> <tr><td><code>{@link #ActionMode_titleTextStyle bba.androidosf3:titleTextStyle}</code></td><td> Specifies a style to use for title text.</td></tr> </table> @see #ActionMode_background @see #ActionMode_backgroundSplit @see #ActionMode_height @see #ActionMode_subtitleTextStyle @see #ActionMode_titleTextStyle */ public static final int[] ActionMode = { 0x7f010026, 0x7f01002a, 0x7f01002b, 0x7f01002f, 0x7f010031 }; /** <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 bba.androidosf3: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 bba.androidosf3:backgroundSplit */ public static final int ActionMode_backgroundSplit = 4; /** <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 bba.androidosf3: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 bba.androidosf3: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 bba.androidosf3: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 bba.androidosf3: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 bba.androidosf3: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 = { 0x7f01006a, 0x7f01006b }; /** <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 bba.androidosf3: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 bba.androidosf3: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 bba.androidosf3:textAllCaps}</code></td><td> Present the text in ALL CAPS.</td></tr> </table> @see #CompatTextView_textAllCaps */ public static final int[] CompatTextView = { 0x7f01006d }; /** <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 bba.androidosf3:textAllCaps */ public static final int CompatTextView_textAllCaps = 0; /** Attributes that can be used with a LinearLayoutICS. <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 #LinearLayoutICS_divider bba.androidosf3:divider}</code></td><td> Drawable to use as a vertical divider between buttons.</td></tr> <tr><td><code>{@link #LinearLayoutICS_dividerPadding bba.androidosf3:dividerPadding}</code></td><td> Size of padding on either end of a divider.</td></tr> <tr><td><code>{@link #LinearLayoutICS_showDividers bba.androidosf3:showDividers}</code></td><td> Setting for which dividers to show.</td></tr> </table> @see #LinearLayoutICS_divider @see #LinearLayoutICS_dividerPadding @see #LinearLayoutICS_showDividers */ public static final int[] LinearLayoutICS = { 0x7f01002e, 0x7f010055, 0x7f010056 }; /** <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 bba.androidosf3:divider */ public static final int LinearLayoutICS_divider = 0; /** <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 bba.androidosf3:dividerPadding */ public static final int LinearLayoutICS_dividerPadding = 2; /** <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 bba.androidosf3:showDividers */ public static final int LinearLayoutICS_showDividers = 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 bba.androidosf3:actionLayout}</code></td><td> An optional layout to be used as an action view.</td></tr> <tr><td><code>{@link #MenuItem_actionProviderClass bba.androidosf3: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 bba.androidosf3: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 bba.androidosf3: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, 0x7f01004d, 0x7f01004e, 0x7f01004f, 0x7f010050 }; /** <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 bba.androidosf3: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 bba.androidosf3: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 bba.androidosf3: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 bba.androidosf3: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_preserveIconSpacing android:preserveIconSpacing}</code></td><td> Whether space should be reserved in layout when an icon is missing.</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> </table> @see #MenuView_android_headerBackground @see #MenuView_android_horizontalDivider @see #MenuView_android_itemBackground @see #MenuView_android_itemIconDisabledAlpha @see #MenuView_android_itemTextAppearance @see #MenuView_android_preserveIconSpacing @see #MenuView_android_verticalDivider @see #MenuView_android_windowAnimationStyle */ public static final int[] MenuView = { 0x010100ae, 0x0101012c, 0x0101012d, 0x0101012e, 0x0101012f, 0x01010130, 0x01010131, 0x0101052f }; /** <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 Whether space should be reserved in layout when an icon is missing. <p>This is a private symbol. @attr name android:preserveIconSpacing */ public static final int MenuView_android_preserveIconSpacing = 7; /** <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; /** 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_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_iconifiedByDefault bba.androidosf3:iconifiedByDefault}</code></td><td> The default state of the SearchView.</td></tr> <tr><td><code>{@link #SearchView_queryHint bba.androidosf3:queryHint}</code></td><td> An optional query hint string to be displayed in the empty query field.</td></tr> </table> @see #SearchView_android_imeOptions @see #SearchView_android_inputType @see #SearchView_android_maxWidth @see #SearchView_iconifiedByDefault @see #SearchView_queryHint */ public static final int[] SearchView = { 0x0101011f, 0x01010220, 0x01010264, 0x7f01005a, 0x7f01005b }; /** <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 = 2; /** <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 = 1; /** <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 = 0; /** <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 bba.androidosf3:iconifiedByDefault */ public static final int SearchView_iconifiedByDefault = 3; /** <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 bba.androidosf3:queryHint */ public static final int SearchView_queryHint = 4; /** 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_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 bba.androidosf3: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 bba.androidosf3: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 bba.androidosf3:prompt}</code></td><td> The prompt to display when the spinner's dialog is shown.</td></tr> <tr><td><code>{@link #Spinner_spinnerMode bba.androidosf3:spinnerMode}</code></td><td> Display mode for spinner options.</td></tr> </table> @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, 0x01010175, 0x01010176, 0x01010262, 0x010102ac, 0x010102ad, 0x7f010051, 0x7f010052, 0x7f010053, 0x7f010054 }; /** <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 = 4; /** <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 = 1; /** <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 = 5; /** <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 = 3; /** <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 = 2; /** <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 bba.androidosf3:disableChildrenWhenDisabled */ public static final int Spinner_disableChildrenWhenDisabled = 9; /** <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 bba.androidosf3:popupPromptView */ public static final int Spinner_popupPromptView = 8; /** <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 bba.androidosf3:prompt */ public static final int Spinner_prompt = 6; /** <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 bba.androidosf3:spinnerMode */ public static final int Spinner_spinnerMode = 7; /** 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_actionDropDownStyle bba.androidosf3:actionDropDownStyle}</code></td><td> Default ActionBar dropdown style.</td></tr> <tr><td><code>{@link #Theme_dropdownListPreferredItemHeight bba.androidosf3:dropdownListPreferredItemHeight}</code></td><td> The preferred item height for dropdown lists.</td></tr> <tr><td><code>{@link #Theme_listChoiceBackgroundIndicator bba.androidosf3:listChoiceBackgroundIndicator}</code></td><td> Drawable used as a background for selected list items.</td></tr> <tr><td><code>{@link #Theme_panelMenuListTheme bba.androidosf3:panelMenuListTheme}</code></td><td> Default Panel Menu style.</td></tr> <tr><td><code>{@link #Theme_panelMenuListWidth bba.androidosf3:panelMenuListWidth}</code></td><td> Default Panel Menu width.</td></tr> <tr><td><code>{@link #Theme_popupMenuStyle bba.androidosf3:popupMenuStyle}</code></td><td> Default PopupMenu style.</td></tr> </table> @see #Theme_actionDropDownStyle @see #Theme_dropdownListPreferredItemHeight @see #Theme_listChoiceBackgroundIndicator @see #Theme_panelMenuListTheme @see #Theme_panelMenuListWidth @see #Theme_popupMenuStyle */ public static final int[] Theme = { 0x7f010047, 0x7f010048, 0x7f010049, 0x7f01004a, 0x7f01004b, 0x7f01004c }; /** <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 bba.androidosf3:actionDropDownStyle */ public static final int Theme_actionDropDownStyle = 0; /** <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 bba.androidosf3:dropdownListPreferredItemHeight */ public static final int Theme_dropdownListPreferredItemHeight = 1; /** <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 bba.androidosf3:listChoiceBackgroundIndicator */ public static final int Theme_listChoiceBackgroundIndicator = 5; /** <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 bba.androidosf3:panelMenuListTheme */ public static final int Theme_panelMenuListTheme = 4; /** <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 bba.androidosf3:panelMenuListWidth */ public static final int Theme_panelMenuListWidth = 3; /** <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 bba.androidosf3:popupMenuStyle */ public static final int Theme_popupMenuStyle = 2; /** 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 bba.androidosf3: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 bba.androidosf3: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, 0x7f010038, 0x7f010039 }; /** <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 bba.androidosf3: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 bba.androidosf3:paddingStart */ public static final int View_paddingStart = 1; }; }
[ "bogdybba@gmail.com" ]
bogdybba@gmail.com
4a9e4116774130646b7ff4b8817b41ae89522f59
4ca86d1217eba061064da0bf26e7d0fb38f3e97a
/lesson6/ServerGUI.java
dd5c84db214d047b6d0aa4e84d221e28ede1e4ae
[]
no_license
KateShv/Java3
1fd3e5a5ec4a5aa49e0c825fc9b1e480a835b1fa
b051dd668fca135b305c922e23e3f671025b3f04
refs/heads/master
2022-11-16T11:49:14.616451
2020-07-16T13:31:37
2020-07-16T13:31:37
263,101,066
0
0
null
2020-07-16T13:31:38
2020-05-11T16:43:33
Java
UTF-8
Java
false
false
3,510
java
package gui; import core.ChatServer; import core.ChatServerListener; import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.IOException; import java.util.logging.LogManager; public class ServerGUI extends JFrame implements ActionListener, Thread.UncaughtExceptionHandler, ChatServerListener { private static final int POS_X = 800; private static final int POS_Y = 200; private static final int WIDTH = 600; private static final int HEIGHT = 300; private final ChatServer chatServer = new ChatServer(this); private final JButton btnStart = new JButton("Start"); private final JButton btnStop = new JButton("Stop"); private final JPanel panelTop = new JPanel(new GridLayout(1, 2)); private final JTextArea log = new JTextArea(); public static void main(String[] args) { //использовала стандартный логгер из java util //тк пока не разобралась как подключить доп библиотеку для логирования //времени мало, но принцип понятен //настраиваем логгер при запуске сервера try { LogManager.getLogManager().readConfiguration( ServerGUI.class.getResourceAsStream("/logging.properties")); } catch (IOException e) { System.err.println("Could not setup logger configuration: " + e.toString()); } SwingUtilities.invokeLater(new Runnable() { @Override public void run() { // Event Dispatching Thread new ServerGUI(); } }); } private ServerGUI() { Thread.setDefaultUncaughtExceptionHandler(this); setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); setBounds(POS_X, POS_Y, WIDTH, HEIGHT); setResizable(false); setTitle("Chat server"); setAlwaysOnTop(true); log.setEditable(false); log.setLineWrap(true); JScrollPane scrollLog = new JScrollPane(log); btnStart.addActionListener(this); btnStop.addActionListener(this); panelTop.add(btnStart); panelTop.add(btnStop); add(panelTop, BorderLayout.NORTH); add(scrollLog, BorderLayout.CENTER); setVisible(true); } @Override public void actionPerformed(ActionEvent e) { Object src = e.getSource(); if (src == btnStart) { chatServer.start(8189); } else if (src == btnStop) { // throw new RuntimeException("Hello from EDT"); chatServer.stop(); } else { throw new RuntimeException("Unknown source: " + src); } } @Override public void uncaughtException(Thread t, Throwable e) { e.printStackTrace(); String msg; StackTraceElement[] ste = e.getStackTrace(); msg = "Exception in " + t.getName() + " " + e.getClass().getCanonicalName() + ": " + e.getMessage() + "\n\t at " + ste[0]; JOptionPane.showMessageDialog(this, msg, "Exception", JOptionPane.ERROR_MESSAGE); System.exit(1); } @Override public void onChatServerMessage(String msg) { SwingUtilities.invokeLater(() -> { log.append(msg + "\n"); log.setCaretPosition(log.getDocument().getLength()); }); } }
[ "57141108+KShida@users.noreply.github.com" ]
57141108+KShida@users.noreply.github.com
31f2c6902d536b8ff54a61b7b61516df253dd6c1
84365f32b9067d605926a88d7b5b1b235432b941
/src/main/java/com/saipaisi/project/system/service/impl/SysRoleServiceImpl.java
da8c72c633cf1cbab2e4b76cc5771ce27f3ed681
[]
no_license
Gaojinchao/credit_report
fe3620606cd14addeebc8712576665cd89675c8e
6deb556bdb930ecf4ea3954c498cbf04acaa460d
refs/heads/master
2023-07-19T12:22:29.865335
2021-08-31T09:30:50
2021-08-31T09:30:50
401,650,421
0
0
null
null
null
null
UTF-8
Java
false
false
8,265
java
package com.saipaisi.project.system.service.impl; import java.util.ArrayList; import java.util.Arrays; import java.util.HashSet; import java.util.List; import java.util.Set; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import com.saipaisi.common.constant.UserConstants; import com.saipaisi.common.exception.CustomException; import com.saipaisi.common.utils.StringUtils; import com.saipaisi.common.utils.spring.SpringUtils; import com.saipaisi.framework.aspectj.lang.annotation.DataScope; import com.saipaisi.project.system.domain.SysRole; import com.saipaisi.project.system.domain.SysRoleDept; import com.saipaisi.project.system.domain.SysRoleMenu; import com.saipaisi.project.system.mapper.SysRoleDeptMapper; import com.saipaisi.project.system.mapper.SysRoleMapper; import com.saipaisi.project.system.mapper.SysRoleMenuMapper; import com.saipaisi.project.system.mapper.SysUserRoleMapper; import com.saipaisi.project.system.service.ISysRoleService; /** * 角色 业务层处理 * * @author saipaisi */ @Service public class SysRoleServiceImpl implements ISysRoleService { @Autowired private SysRoleMapper roleMapper; @Autowired private SysRoleMenuMapper roleMenuMapper; @Autowired private SysUserRoleMapper userRoleMapper; @Autowired private SysRoleDeptMapper roleDeptMapper; /** * 根据条件分页查询角色数据 * * @param role 角色信息 * @return 角色数据集合信息 */ @Override @DataScope(deptAlias = "r") public List<SysRole> selectRoleList(SysRole role) { return roleMapper.selectRoleList(role); } /** * 根据用户ID查询权限 * * @param userId 用户ID * @return 权限列表 */ @Override public Set<String> selectRolePermissionByUserId(Long userId) { List<SysRole> perms = roleMapper.selectRolePermissionByUserId(userId); Set<String> permsSet = new HashSet<>(); for (SysRole perm : perms) { if (StringUtils.isNotNull(perm)) { permsSet.addAll(Arrays.asList(perm.getRoleKey().trim().split(","))); } } return permsSet; } /** * 查询所有角色 * * @return 角色列表 */ @Override public List<SysRole> selectRoleAll() { return SpringUtils.getAopProxy(this).selectRoleList(new SysRole()); } /** * 根据用户ID获取角色选择框列表 * * @param userId 用户ID * @return 选中角色ID列表 */ @Override public List<Integer> selectRoleListByUserId(Long userId) { return roleMapper.selectRoleListByUserId(userId); } /** * 通过角色ID查询角色 * * @param roleId 角色ID * @return 角色对象信息 */ @Override public SysRole selectRoleById(Long roleId) { return roleMapper.selectRoleById(roleId); } /** * 校验角色名称是否唯一 * * @param role 角色信息 * @return 结果 */ @Override public String checkRoleNameUnique(SysRole role,Long deptId) { Long roleId = StringUtils.isNull(role.getRoleId()) ? -1L : role.getRoleId(); SysRole info = roleMapper.checkRoleNameUnique(role.getRoleName(),deptId); if (StringUtils.isNotNull(info) && info.getRoleId().longValue() != roleId.longValue()) { return UserConstants.NOT_UNIQUE; } return UserConstants.UNIQUE; } /** * 校验角色权限是否唯一 * * @param role 角色信息 * @return 结果 */ @Override public String checkRoleKeyUnique(SysRole role) { Long roleId = StringUtils.isNull(role.getRoleId()) ? -1L : role.getRoleId(); SysRole info = roleMapper.checkRoleKeyUnique(role.getRoleKey()); if (StringUtils.isNotNull(info) && info.getRoleId().longValue() != roleId.longValue()) { return UserConstants.NOT_UNIQUE; } return UserConstants.UNIQUE; } /** * 校验角色是否允许操作 * * @param role 角色信息 */ @Override public void checkRoleAllowed(SysRole role) { if (StringUtils.isNotNull(role.getRoleId()) && role.isAdmin()) { throw new CustomException("不允许操作超级管理员角色"); } } /** * 通过角色ID查询角色使用数量 * * @param roleId 角色ID * @return 结果 */ @Override public int countUserRoleByRoleId(Long roleId) { return userRoleMapper.countUserRoleByRoleId(roleId); } /** * 新增保存角色信息 * * @param role 角色信息 * @return 结果 */ @Override @Transactional public int insertRole(SysRole role) { // 新增角色信息 roleMapper.insertRole(role); return insertRoleMenu(role); } /** * 修改保存角色信息 * * @param role 角色信息 * @return 结果 */ @Override @Transactional public int updateRole(SysRole role) { // 修改角色信息 roleMapper.updateRole(role); // 删除角色与菜单关联 roleMenuMapper.deleteRoleMenuByRoleId(role.getRoleId()); return insertRoleMenu(role); } /** * 修改角色状态 * * @param role 角色信息 * @return 结果 */ @Override public int updateRoleStatus(SysRole role) { return roleMapper.updateRole(role); } /** * 修改数据权限信息 * * @param role 角色信息 * @return 结果 */ @Override @Transactional public int authDataScope(SysRole role) { // 修改角色信息 roleMapper.updateRole(role); // 删除角色与部门关联 roleDeptMapper.deleteRoleDeptByRoleId(role.getRoleId()); // 新增角色和部门信息(数据权限) return insertRoleDept(role); } /** * 新增角色菜单信息 * * @param role 角色对象 */ public int insertRoleMenu(SysRole role) { int rows = 1; // 新增用户与角色管理 List<SysRoleMenu> list = new ArrayList<SysRoleMenu>(); for (Long menuId : role.getMenuIds()) { SysRoleMenu rm = new SysRoleMenu(); rm.setRoleId(role.getRoleId()); rm.setMenuId(menuId); list.add(rm); } if (list.size() > 0) { rows = roleMenuMapper.batchRoleMenu(list); } return rows; } /** * 新增角色部门信息(数据权限) * * @param role 角色对象 */ public int insertRoleDept(SysRole role) { int rows = 1; // 新增角色与部门(数据权限)管理 List<SysRoleDept> list = new ArrayList<SysRoleDept>(); for (Long deptId : role.getDeptIds()) { SysRoleDept rd = new SysRoleDept(); rd.setRoleId(role.getRoleId()); rd.setDeptId(deptId); list.add(rd); } if (list.size() > 0) { rows = roleDeptMapper.batchRoleDept(list); } return rows; } /** * 通过角色ID删除角色 * * @param roleId 角色ID * @return 结果 */ @Override public int deleteRoleById(Long roleId) { return roleMapper.deleteRoleById(roleId); } /** * 批量删除角色信息 * * @param roleIds 需要删除的角色ID * @return 结果 */ @Override public int deleteRoleByIds(Long[] roleIds) { for (Long roleId : roleIds) { checkRoleAllowed(new SysRole(roleId)); SysRole role = selectRoleById(roleId); if (countUserRoleByRoleId(roleId) > 0) { throw new CustomException(String.format("%1$s已分配,不能删除", role.getRoleName())); } } return roleMapper.deleteRoleByIds(roleIds); } }
[ "zx_1103@163.com" ]
zx_1103@163.com
1996156029f42d630ae198c5dc174d3c0150246d
4782787cbacab717a9f8b77039cb4fedbf5a5c15
/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/AutonomousIntOption.java
b027857373f47f7443af0f91976f92e1b0e344ad
[ "BSD-3-Clause" ]
permissive
Hunterb9101/ftc-robotics-code
9329be1e1fe8a81a41e9364af14ac2ffde7d6528
2c598536ca0bef395df8c1ed26e853c54ebf0e25
refs/heads/master
2022-07-09T05:16:39.545108
2018-01-25T23:30:33
2018-01-25T23:30:33
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,000
java
package org.firstinspires.ftc.teamcode; /** * Created by Fusion on 1/17/2016. */ public class AutonomousIntOption extends AutonomousOption { private int currentValue; private int maxValue; private int minValue; public AutonomousIntOption (String iName, int iStartVal, int iMinVal, int iMaxVal){ name = iName; optionType = OptionTypes.INT; currentValue = iStartVal; maxValue = iMaxVal; minValue = iMinVal; } public void nextValue (){ currentValue = currentValue +1; if (currentValue>maxValue) { currentValue = minValue; } } public void previousValue (){ currentValue = currentValue -1; if (currentValue< minValue){ currentValue = maxValue; } } public int getValue (){ return currentValue; } public void setValue (int iVal){ if (iVal>= minValue && iVal <= maxValue){ currentValue = iVal; } } }
[ "hunterb9101@gmail.com" ]
hunterb9101@gmail.com
8d326c8080c89f13a497e6d422103100683d4a64
1965271c4971bb14add19f43bcfedd69107d80fc
/day1121/Work19.java
e637d3316909d90e22e297a4e195436c94f370c6
[]
no_license
rlawjddbs/Java1
520f2c69d87ea76f3e05a8adbdca65ec15d9c938
98884f67cefbd8aa452891ced6bca181c163a2b8
refs/heads/master
2020-04-19T15:02:15.715222
2019-01-30T03:11:32
2019-01-30T03:11:32
null
0
0
null
null
null
null
UHC
Java
false
false
1,363
java
package day1121; /** * 1. while을 사용하여 구구단 전체 단을 출력하는 instance method를<br> * 작성하고, 호출하세요.<br> * * 2. do~while을 사용하여 아래의 형태의 *을 출력하는 static method를<br> * 작성하여 호출하세요.<br> * <br> ** <br> *** <br> **** <br> * * @author owner */ public class Work19 { // 숙제 1. public void printGgd() { int i = 2, j; while (i < 10) { System.out.println("----------------------" + i + "단 시작---------------------"); j = 1; while (j < 10) { System.out.println(i + " x " + j + " = " + i * j); j++; }//end while System.out.println("----------------------------------------------------"); i++; }//end while }//printGgd // 숙제 2. // public static void printStars() { // int i=0, j=0; // do { // i++; // System.out.println("*"); // System.out.println("**"); // System.out.println("***"); // System.out.println("****"); // }while(false); // }//pointStars public static void printStars2() { int i=0, j; do { j=0; while(j<i) { System.out.print("*"); j++; } System.out.println("*"); i++; }while(i<4); }//pointStars public static void main(String[] args) { // 숙제 1. Work19 ggd = new Work19(); ggd.printGgd(); // 숙제 2. Work19.printStars2(); }//main }//class
[ "zeongyun@gmail.com" ]
zeongyun@gmail.com
762b60e79b56c6b9c2635ef02a8d9c50ea518fad
4fb1f5c6fdb44c30e197a7b2927325be7fc4b90b
/app/src/main/java/xyf/com/appframe/javabean/RecentWeatherRetDataTodayBean.java
65790056beee8be2695b4bfe4df41797a5a01343
[]
no_license
xiayifeng/butterknife-retrofit-okhttp-frsco
bb6f79b1842b4f1dcf4bdb00537bec1c14c426b5
843df7e6343e5292a6e6f8acd78a64a93c59d00b
refs/heads/master
2020-04-02T06:25:53.347663
2016-11-07T09:11:52
2016-11-07T09:11:52
63,583,049
0
0
null
null
null
null
UTF-8
Java
false
false
549
java
package xyf.com.appframe.javabean; import com.google.gson.annotations.SerializedName; import java.util.List; /** * Created by sh-xiayf on 16/7/19. */ public class RecentWeatherRetDataTodayBean { public String date; public String week; public String curTemp; public @SerializedName("aqi") String aqi; public String fengxiang; public String fengli; public String hightemp; public String lowtemp; public String type; public @SerializedName("index") List<RecentWeatherRetDataTodayIndexBean> message; }
[ "sh-xiayf@linqiangdeMacBook-Pro.local" ]
sh-xiayf@linqiangdeMacBook-Pro.local
3cf7321ad7cf82b76abefab3b411f84ba651b034
6abcef5e57c853f9e472fe1c47c1d637b311427d
/app/src/main/java/com/retailvoice/sellerapp/views/StockItemView.java
4ed9cb5d374f455a9bc6c31b782e36b922ee045a
[]
no_license
suhana-sajda/Retailvoice
e87066bf3c2804db0928e745361bfc53905805db
dce3f9977fe934d37306af04f76f7646dc5a9240
refs/heads/master
2020-05-25T15:34:00.252756
2020-04-28T09:56:50
2020-04-28T09:56:50
187,866,238
0
0
null
null
null
null
UTF-8
Java
false
false
725
java
package com.retailvoice.sellerapp.views; import android.content.Context; import android.widget.RelativeLayout; import android.widget.TextView; import com.retailvoice.sellerapp.R; import com.retailvoice.sellerapp.models.Product; import butterknife.BindView; import butterknife.ButterKnife; public class StockItemView extends RelativeLayout { @BindView(R.id.tvProductTitle) TextView title; public StockItemView(Context context) { super(context); init(context); } private void init(Context context) { inflate(context, R.layout.item_product2, this); ButterKnife.bind(this); } public void bind(Product product) { title.setText(product.getName()); } }
[ "suhanasajdalaskar@gmail.com" ]
suhanasajdalaskar@gmail.com
5dab38b49868c199c0553a0c766619b5f97a6f8d
9c58470a7ba3b836121b0ca13378bb5b9ee4cd10
/eclipse-workspace/autoGenSource/src/main/java/sts/com/vn/entity/Table.java
e1da9ba9f2ccb464982c10708daa285f67c6d4d5
[]
no_license
thanhbao0390/FastTrack2019
7f4c31e1f7eb6ba815c3472704bd109acac7e429
bcff0445729d079fec44af732eb506e3d9a06605
refs/heads/master
2023-01-28T02:31:50.144284
2020-01-16T03:21:46
2020-01-16T03:21:46
191,360,163
0
0
null
2023-01-04T01:10:31
2019-06-11T11:43:09
Java
UTF-8
Java
false
false
645
java
package sts.com.vn.entity; public class Table { public String TABLE_CATALOG; public String TABLE_SCHEMA; public String TABLE_NAME; public String TABLE_TYPE; public String ENGINE; public String VERSION; public String ROW_FORMAT; public String TABLE_ROWS; public String AVG_ROW_LENGTH; public String DATA_LENGTH; public String MAX_DATA_LENGTH; public String INDEX_LENGTH; public String DATA_FREE; public String AUTO_INCREMENT; public String CREATE_TIME; public String UPDATE_TIME; public String CHECK_TIME; public String TABLE_COLLATION; public String CHECKSUM; public String CREATE_OPTIONS; public String TABLE_COMMENT; }
[ "thanhbao0390@gmail.com" ]
thanhbao0390@gmail.com
5e829aca2b5c28b0e86559081f90ae68f204117d
41336b8fc4e7666f23ad03c296b655e98f74f876
/android_imkit/src/main/java/io/rong/imkit/RongIM.java
18e0448f9a5e1adf3d7b2f0600e707c4dc13a00a
[]
no_license
luning2046/workspace
08906b4f5f133d53b2801eafcd364b7aafc04938
09a74f95a20a71edcc5bc823a37442d62d335ceb
refs/heads/master
2021-01-20T23:32:54.031593
2015-05-08T05:48:34
2015-05-08T05:48:34
34,047,961
0
0
null
null
null
null
UTF-8
Java
false
false
14,574
java
package io.rong.imkit; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.content.SharedPreferences.Editor; import android.net.Uri; import android.text.TextUtils; import android.util.Log; import java.util.List; import io.rong.imkit.common.RCloudConst; import io.rong.imkit.fragment.ConversationListFragment; import io.rong.imkit.model.HandshakeMessage; import io.rong.imlib.AnnotationNotFoundException; import io.rong.imlib.RongIMClient; import io.rong.imlib.RongIMClient.ConnectCallback; import io.rong.imlib.RongIMClient.ConversationType; import io.rong.imlib.RongIMClient.Message; import io.rong.imlib.RongIMClient.MessageContent; import io.rong.imlib.RongIMClient.SendMessageCallback; import io.rong.imlib.RongIMClient.UserInfo; /** * IM 界面组件核心类。 * <p/> * 所有 IM 相关界面、功能都由此调用和设置。 */ public class RongIM { private static final String TAG = RongIM.class.getSimpleName(); private static RongIM rongIM; private static Context mContext; private static RongIMClient mRrongIMClient; // private OnActivityStartedListener mListlistener; private OnConversationStartedListener mConversationLaunchedListener; private Class<? extends Activity> mClass; private RongIM() {} /** * 初始化 SDK。 * * @param context 应用上下文。 * @param appKey 从开发者平台(<a href="http://rongcloud.cn" * target="_blank">rongcloud.cn</a>)申请的应用 AppKey * @param pushIconResId 推送中显示的图标资源。 */ public static void init(Context context, String appKey, int pushIconResId) { if (TextUtils.isEmpty(appKey)) { throw new NullPointerException("App key is null."); } if (context == null || TextUtils.isEmpty(appKey)) { throw new IllegalArgumentException();} mContext = context.getApplicationContext(); RongIMClient.init(context, appKey, pushIconResId); RCloudContext.getInstance().init(mContext, appKey); try { RongIMClient.registerMessageType(HandshakeMessage.class); RongIMClient.registerMessageType(io.rong.voipkit.message.VoipCallMessage.class); RongIMClient.registerMessageType(io.rong.voipkit.message.VoipAcceptMessage.class); RongIMClient.registerMessageType(io.rong.voipkit.message.VoipFinishMessage.class); } catch (AnnotationNotFoundException e) { e.printStackTrace(); } } /** * IM 界面组件登录。 * * @param token 从服务端获取的<a * href="http://docs.rongcloud.cn/android#token">用户身份令牌( * Token)</a>。 * @param callback 登录回调。 * @return IM 界面组件。 */ public static RongIM connect(String token, final ConnectCallback callback) { if (TextUtils.isEmpty(token)) { throw new IllegalArgumentException();} saveToken(token); rongIM = new RongIM(); Log.d("RCloudContext---n", "----login---begin------"); try { rongIM.mRrongIMClient = RongIMClient.connect(token, new ConnectCallback() { @Override public void onSuccess(String userId) { Log.d("RCloudContext.getInstance().initService()---begin", "begin"); //==================启动RCloudService这个serive========================================================================= RCloudContext.getInstance().initService(); Log.d("RCloudContext.getInstance().initService()---end", "end"); callback.onSuccess(userId); } @Override public void onError(ErrorCode errorCode) { callback.onError(errorCode); } }); } catch (Exception e) { e.printStackTrace(); } RCloudContext.getInstance().setRongIMClient(rongIM.mRrongIMClient); return rongIM; } private static void saveToken(String token) { SharedPreferences preferences = mContext.getSharedPreferences("rc_token", Context.MODE_PRIVATE); Editor editor = preferences.edit(); editor.putString("token_value", token); editor.commit();// 提交数据到背后的xml文件中 } /** * 注销当前登录。 */ public void disconnect() { RCloudContext.getInstance().logout(); mRrongIMClient.disconnect(); Log.d("logout---", "self disconnect---"); } /** * 获取界面组件的核心类单例。 * * @return 界面组件的核心类单例。 */ public static RongIM getInstance() { return rongIM; } /** * 启动会话列表界面。 * * @param context 应用上下文。 * @param listener 会话列表 Activity 启动的监听器。 */ public void startConversationList(Context context, OnConversationListStartedListener listener) { if (context == null) { throw new IllegalArgumentException(); } RCloudContext.getInstance().setConversationListLaunchedListener(listener); Uri uri = Uri.parse("rong://" + context.getApplicationInfo().packageName).buildUpon() .appendPath("conversationlist").build(); context.startActivity(new Intent(Intent.ACTION_VIEW, uri)); } /** * 启动单聊界面。 * * @param context 应用上下文。 * @param targetUserId 要与之聊天的用户 Id。 * @param title 聊天的标题,如果传入空值,则默认显示与之聊天的用户名称。 * @param listener 单聊会话 Activity 启动的监听器。 */ public void startPrivateChat(Context context, String targetUserId, String title, OnConversationStartedListener listener) { if (context == null || TextUtils.isEmpty(targetUserId)) { throw new IllegalArgumentException(); } RCloudContext.getInstance().setConversationLaunchedListener(listener); Uri uri = Uri.parse("rong://" + context.getApplicationInfo().packageName).buildUpon() .appendPath("conversation").appendPath(ConversationType.PRIVATE.getName().toLowerCase()) .appendQueryParameter("targetId", targetUserId).appendQueryParameter("title", title).build(); context.startActivity(new Intent(Intent.ACTION_VIEW, uri)); } public void startConversationSetting(Context context, ConversationType conversationType, String targetId){ if (context == null || TextUtils.isEmpty(targetId)) { throw new IllegalArgumentException(); } Uri uri = Uri.parse("rong://" + context.getApplicationInfo().packageName).buildUpon() .appendPath("conversationsetting").appendPath(conversationType.getName().toLowerCase()) .appendQueryParameter("targetId", targetId).build(); context.startActivity(new Intent(Intent.ACTION_VIEW, uri)); } /** * 启动客户服聊天界面。 * * @param context 应用上下文。 * @param customerServiceUserId 要与之聊天的客服 Id。 * @param title 聊天的标题,如果传入空值,则默认显示与之聊天的客服名称。 * @param listener 单聊会话 Activity 启动的监听器。 */ public void startCustomerServiceChat(Context context, String customerServiceUserId, String title, OnConversationStartedListener listener) { if (context == null || TextUtils.isEmpty(customerServiceUserId)) { throw new IllegalArgumentException(); } RCloudContext.getInstance().setConversationLaunchedListener(listener); Uri uri = Uri.parse("rong://" + context.getApplicationInfo().packageName).buildUpon() .appendPath("conversation").appendPath(ConversationType.CUSTOMERSERVICE.getName().toLowerCase()) .appendQueryParameter("targetId", customerServiceUserId).appendQueryParameter("title", title).build(); context.startActivity(new Intent(Intent.ACTION_VIEW, uri)); sendMessage(ConversationType.PRIVATE, customerServiceUserId, new HandshakeMessage(), null); } /** * 以当前用户的身份发送一条消息。<br/> * * @param conversationType 会话类型。 * @param targetId 目标 Id。根据不同的 conversationType,可能是聊天 Id、讨论组 Id、群组 Id 或聊天室 Id。 * @param content 消息内容。 * @param callback 发送消息的回调。 * @return 发送的消息实体。 */ public Message sendMessage(final ConversationType conversationType, final String targetId, MessageContent content, final SendMessageCallback callback) { if (conversationType == null || TextUtils.isEmpty(targetId) || content == null) { throw new IllegalArgumentException(); } return mRrongIMClient.sendMessage(conversationType, targetId, content, callback); } /** * 获取所有未读消息数。 * * @return 未读消息数。 */ public int getTotalUnreadCount() { return mRrongIMClient.getTotalUnreadCount(); } /** * 刷新用户信息 * * @param userInfo */ private void refreshUserInfo(UserInfo userInfo) { if (userInfo == null) { throw new IllegalArgumentException(); } // TODO: 未实现。 } /** * 设置接收消息的监听器。 * <p/> * 所有接收到的消息、通知、状态都经由此处设置的监听器处理。包括单聊消息、讨论组消息、群组消息、聊天室消息以及各种状态。<br/> * 此处仅为扩展功能提供,默认可以不做实现。 * * @param listener 接收消息的监听器。 */ public void setReceiveMessageListener(final OnReceiveMessageListener listener) { RCloudContext.getInstance().setReceiveMessageListener(listener); } /** * 设置获取用户信息的提供者,供 RongIM 调用获取用户名称和头像信息。 * * @param provider 获取用户信息提供者。 * @param cacheUserInfo 设置是否由 IMKit 来缓存用户信息。<br/> * 如果 App 提供的 GetUserInfoProvider * 每次都需要通过网络请求用户数据,而不是将用户数据缓存到本地,会影响用户信息的加载速度;<br/> * 此时最好将本参数设置为 true,由 IMKit 来缓存用户信息。 * @see io.rong.imkit.RongIM.GetUserInfoProvider */ public static void setGetUserInfoProvider(GetUserInfoProvider provider, boolean cacheUserInfo) { RCloudContext.getInstance().setGetUserInfoProvider(provider); } /** * 设置获取好友列表的提供者,供 RongIM 调用获取好友列表以及好友的名称和头像信息。 * * @param provider 获取好友列表的提供者。 * @see io.rong.imkit.RongIM.GetFriendsProvider */ public static void setGetFriendsProvider(GetFriendsProvider provider) { RCloudContext.getInstance().setGetFriendsProvider(provider); } /** * 启动界面后调用的监听器。 */ public static interface OnConversationListStartedListener { /** * 当 Activity 创建后执行。 */ public void onCreated(); /** * 当 Activity 销毁后执行。 */ public void onDestroyed(); } /** * 启动会话列表界面后调用的监听器。 */ public static interface OnConversationStartedListener { /** * 当 Activity 创建后执行。 * * @param conversationType 会话类型。 * @param targetId 目标 Id。根据不同的 conversationType,可能是聊天 Id、讨论组 Id、群组 Id 或聊天室 * Id。 */ public void onCreated(ConversationType conversationType, String targetId); /** * 当 Activity 销毁后执行。 */ public void onDestroyed(); /** * 当点击用户头像后执行。 * * @param user 被点击的用户的信息。 */ public void onClickUserPortrait(UserInfo user); /** * 当点击消息时执行。 * * @param message 被点击的消息的实体信息。 */ public void onClickMessage(Message message); } /** * 接收消息的监听器。 */ public static interface OnReceiveMessageListener { /** * 接收到消息后执行。 * * @param message 接收到的消息的实体信息。 */ public void onReceived(Message message); } /** * 用户信息的提供者。 * <p/> * 如果在聊天中遇到的聊天对象是没有登录过的用户(即没有通过融云服务器鉴权过的),RongIM 是不知道用户信息的,RongIM 将调用此 * Provider 获取用户信息。 */ public static interface GetUserInfoProvider { /** * 获取用户信息。 * * @param userId 用户 Id。 * @return 用户信息。 */ public UserInfo getUserInfo(String userId); } /** * 好友列表的提供者。 * <p/> * RongIM 本身不保存 App 的好友关系,如果在聊天中需要使用好友关系时(如:需要选择好友加入群聊),RongIM 将调用此 Provider * 获取好友列表信息。 */ public static interface GetFriendsProvider { /** * 获取好友信息列表。 * * @return 好友信息列表。 */ public List<UserInfo> getFriends(); } /** * 获取来自某用户的未读消息数。 * * @return 未读消息数。 */ public int getUnreadCount(ConversationType conversationType,String targetId) { if (TextUtils.isEmpty(targetId) || TextUtils.isEmpty(targetId.trim()) || conversationType == null) { throw new IllegalArgumentException(); } return mRrongIMClient.getUnreadCount(conversationType,targetId); } }
[ "changyanshun@126.com" ]
changyanshun@126.com
25c817d02cf52b0cb89beb2820917894b0f22975
e44f9c3f7f1b2db1f9c25f9df4e3ca586473de2b
/hackerrank/oops/MyBook.java
938f93a8276d2fe6a0df0f47e754cb5f89da1d24
[]
no_license
TE-Aravindhan/TE_chennai_batch01_Aravindhan_hakerranker
c6be3a59ac83cf42154eb613600fc62edd9d275e
fed3dec195939df1642a49740affb79fe33f79b4
refs/heads/master
2023-08-28T04:30:29.205568
2021-10-07T17:09:11
2021-10-07T17:09:15
null
0
0
null
null
null
null
UTF-8
Java
false
false
121
java
package com.te.assignments.hackerrank.oops; class MyBook extends Book { void setTitle(String s) { title = s; } }
[ "aravindhankumar97@gmail.com" ]
aravindhankumar97@gmail.com
4f728f1cfea8fef3efe66bd5c3422a5253dab3fc
debdc7d39c2ea09b16e967d18fbddc3011a73402
/src/main/java/pro_spring/ch4/annotation/ConstructorConfusionMain.java
19d1c1aa22034b0cdaf0011126153c692f21091b
[]
no_license
alex-jelimalai/Spring-Tutorial
655e62098793e30ae1f72b9a1078e692e9c58914
ff58dbd6b1455d3a4d766ef1972727d0566f9aa9
refs/heads/master
2021-01-20T04:33:12.645778
2014-08-21T14:39:26
2014-08-21T14:39:26
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,125
java
package pro_spring.ch4.annotation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; import static pro_spring.ch4.annotation.AnnotationContextProvider.getContext; /** * @author Alexandr Jelimalai */ @Service("constructorConfusion") public class ConstructorConfusionMain { private final String someValue; public ConstructorConfusionMain(String someValue) { System.out.println("Constructor(String) called"); this.someValue = someValue; } @Autowired public ConstructorConfusionMain(@Value("70") int someValue) { System.out.println("Constructor(int) called"); this.someValue = "Number: " + Integer.toString(someValue); } public static void main(String[] args) { ConstructorConfusionMain cc = getContext().getBean("constructorConfusion", ConstructorConfusionMain.class); System.out.println(cc); } @Override public String toString() { return someValue; } }
[ "ajelimalai@solveitsoftware.com" ]
ajelimalai@solveitsoftware.com
69460b19639369ddf098c0cde54106ec8f67bd5b
b2a1a53404304e15462d3de963f0b86c2d07e8c6
/src/com/deitel/flagquiz/QuizFragment.java
09a0b92ab59ef914cc8cf8ad3c92eb5ea7c595b1
[]
no_license
MadhuriShah/FlagQuiz-App
9022569d5d1d33caed68a185d4d62e8654931546
def2339758ca9a3697b024e8ed3a09d5c7815d4a
refs/heads/master
2021-01-01T16:14:08.272451
2015-02-13T12:20:20
2015-02-13T12:20:20
30,754,582
0
0
null
null
null
null
UTF-8
Java
false
false
11,053
java
package com.deitel.flagquiz; import java.io.IOException; import java.io.InputStream; import java.security.SecureRandom; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Set; import android.app.AlertDialog; import android.app.Dialog; import android.app.DialogFragment; import android.app.Fragment; import android.content.DialogInterface; import android.content.Intent; import android.content.SharedPreferences; import android.content.res.AssetManager; import android.graphics.drawable.Drawable; import android.net.Uri; import android.os.Bundle; import android.os.Handler; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.View.OnClickListener; import android.view.ViewGroup; import android.view.animation.Animation; import android.view.animation.AnimationUtils; import android.widget.Button; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView; public class QuizFragment extends Fragment { private static final String TAG = "FlagQuiz Activity"; private static final int FLAGS_IN_QUIZ = 10; private List<String> fileNameList; private List<String> quizCountriesList; private Set<String> regionsSet; private String correctAnswer; private int totalGuesses; private int correctAnswers; private int guessRows; private SecureRandom random; private Handler handler; private Animation shakeAnimation; private TextView questionNumberTextView; private ImageView flagImageView; private LinearLayout[] guessLinearLayouts; private TextView answerTextView; private Button wikiButton; private Button nextButton; private String answer; private int totalFirstCorrect; private int score; private boolean isFirst; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { super.onCreateView(inflater, container, savedInstanceState); View view = inflater.inflate(R.layout.fragment_quiz, container, false); fileNameList = new ArrayList<String>(); quizCountriesList = new ArrayList<String>(); random = new SecureRandom(); handler = new Handler(); shakeAnimation = AnimationUtils.loadAnimation(getActivity(),R.anim.incorrect_shake); shakeAnimation.setRepeatCount(3); questionNumberTextView =(TextView) view.findViewById(R.id.questionNumberTextView); flagImageView = (ImageView) view.findViewById(R.id.flagImageView); guessLinearLayouts = new LinearLayout[3]; guessLinearLayouts[0] = (LinearLayout) view.findViewById(R.id.row1LinearLayout); guessLinearLayouts[1] = (LinearLayout) view.findViewById(R.id.row2LinearLayout); guessLinearLayouts[2] = (LinearLayout) view.findViewById(R.id.row3LinearLayout); answerTextView = (TextView) view.findViewById(R.id.answerTextView); wikiButton=(Button)view.findViewById(R.id.wikiButton); wikiButton.setOnClickListener(wikiButtonListener); nextButton=(Button)view.findViewById(R.id.nextButton); nextButton.setOnClickListener(nextButtonListener); for (LinearLayout row : guessLinearLayouts) { for (int column = 0; column < row.getChildCount(); column++) { Button button = (Button) row.getChildAt(column); button.setOnClickListener(guessButtonListener); } } questionNumberTextView.setText( getResources().getString(R.string.question, 1, FLAGS_IN_QUIZ)); return view; } public void updateGuessRows(SharedPreferences sharedPreferences) { String choices=sharedPreferences.getString(MainActivity.CHOICES, null); guessRows = Integer.parseInt(choices) / 3; for (LinearLayout layout : guessLinearLayouts) layout.setVisibility(View.INVISIBLE); for (int row = 0; row < guessRows; row++) guessLinearLayouts[row].setVisibility(View.VISIBLE); } public void updateRegions(SharedPreferences sharedPreferences) { regionsSet =sharedPreferences.getStringSet(MainActivity.REGIONS, null); } public void resetQuiz() { AssetManager assets = getActivity().getAssets(); fileNameList.clear(); try { for (String region : regionsSet) { String[] paths = assets.list(region); for (String path : paths) fileNameList.add(path.replace(".png", "")); } } catch (IOException exception) { Log.e(TAG, "Error loading image file names", exception); } correctAnswers = 0; totalGuesses = 0; quizCountriesList.clear(); totalFirstCorrect = 0; isFirst = true; score = 0; int flagCounter = 1; int numberOfFlags = fileNameList.size(); while (flagCounter <= FLAGS_IN_QUIZ) { int randomIndex = random.nextInt(numberOfFlags); String fileName = fileNameList.get(randomIndex); if (!quizCountriesList.contains(fileName)) { quizCountriesList.add(fileName); ++flagCounter; } } loadNextFlag(); } private void loadNextFlag() { String nextImage = quizCountriesList.remove(0); correctAnswer = nextImage; answerTextView.setText(""); questionNumberTextView.setText( getResources().getString(R.string.question, (correctAnswers + 1), FLAGS_IN_QUIZ)); String region = nextImage.substring(0, nextImage.indexOf('-')); AssetManager assets = getActivity().getAssets(); try { InputStream stream = assets.open(region + "/" + nextImage + ".png"); Drawable flag = Drawable.createFromStream(stream, nextImage); flagImageView.setImageDrawable(flag); } catch (IOException exception) { Log.e(TAG, "Error loading " + nextImage, exception); } Collections.shuffle(fileNameList); int correct = fileNameList.indexOf(correctAnswer); fileNameList.add(fileNameList.remove(correct)); for (int row = 0; row < guessRows; row++) { for (int column = 0; column < guessLinearLayouts[row].getChildCount(); column++) { Button newGuessButton = (Button) guessLinearLayouts[row].getChildAt(column); newGuessButton.setEnabled(true); String fileName = fileNameList.get((row * 3) + column); newGuessButton.setText(getCountryName(fileName)); } } int row = random.nextInt(guessRows); int column = random.nextInt(3); LinearLayout randomRow = guessLinearLayouts[row]; String countryName = getCountryName(correctAnswer); ((Button) randomRow.getChildAt(column)).setText(countryName); } private String getCountryName(String name) { return name.substring(name.indexOf('-') + 1).replace('_', ' '); } private OnClickListener guessButtonListener = new OnClickListener() { @Override public void onClick(View v) { Button guessButton = ((Button) v); String guess = guessButton.getText().toString(); answer = getCountryName(correctAnswer); ++totalGuesses; if (guess.equals(answer)) { //wikiButton.setEnabled(true); if(isFirst==true){ score+=10; totalFirstCorrect++; } else{ score+=5; } ++correctAnswers; // increment the number of correct answers // url = getString(R.string.wikiURL)+Uri.encode(answer, "UTF-8"); answerTextView.setText(answer + "!"); answerTextView.setTextColor( getResources().getColor(R.color.correct_answer)); disableButtons(); if (correctAnswers == FLAGS_IN_QUIZ) { DialogFragment quizResults = new DialogFragment() { // create an AlertDialog and return it @Override public Dialog onCreateDialog(Bundle bundle) { AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); builder.setCancelable(false); builder.setMessage( getResources().getString(R.string.results, totalGuesses, (1000 / (double) totalGuesses), totalFirstCorrect, score)); // "Reset Quiz" Button builder.setPositiveButton(R.string.reset_quiz, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { resetQuiz(); } } ); return builder.create(); } }; quizResults.show(getFragmentManager(), "quiz results"); } else { isFirst=true; wikiButton.setVisibility(View.VISIBLE); nextButton.setVisibility(View.VISIBLE); } } else { isFirst=false; flagImageView.startAnimation(shakeAnimation); answerTextView.setText(R.string.incorrect_answer); answerTextView.setTextColor( getResources().getColor(R.color.incorrect_answer)); guessButton.setEnabled(false); } } }; private void disableButtons() { for (int row = 0; row < guessRows; row++) { LinearLayout guessRow = guessLinearLayouts[row]; for (int i = 0; i < guessRow.getChildCount(); i++) guessRow.getChildAt(i).setEnabled(false); } } private OnClickListener wikiButtonListener = new OnClickListener() { @Override public void onClick(View v) { Intent webIntent = new Intent(Intent.ACTION_VIEW,Uri.parse("http://en.m.wikipedia.org/wiki/"+Uri.encode(answer, "UTF-8"))); startActivity(webIntent); } }; private OnClickListener nextButtonListener = new OnClickListener() { @Override public void onClick(View v) { loadNextFlag(); wikiButton.setVisibility(View.INVISIBLE); nextButton.setVisibility(View.INVISIBLE); } }; }
[ "madhurishah393@gmail.com" ]
madhurishah393@gmail.com