blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 7 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 684M ⌀ | 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 132 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 28 values | content stringlengths 3 9.45M | authors listlengths 1 1 | author_id stringlengths 0 352 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d2739a1edb75e58876c1dc3abccc834a4467129d | 4a8bcfa280c0aed245383150b66acf1a7550458d | /org.obeonetwork.dsl.spem/src/org/obeonetwork/dsl/spem/uma/impl/DisciplinePackageImpl.java | c5e8464b820dac5057248f3e0d9f3aeff3868fc1 | [] | no_license | SebastienAndreo/SPEM-Designer | f4eedad7e0d68403a1a3bddfddcfb2182796a222 | 532e71548fde8d73a78b471a8fd8dd402e92f58e | refs/heads/master | 2021-01-15T13:06:10.846652 | 2012-08-07T07:13:03 | 2012-08-07T07:13:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 877 | java | /**
* THALES (c)
*/
package org.obeonetwork.dsl.spem.uma.impl;
import org.eclipse.emf.ecore.EClass;
import org.obeonetwork.dsl.spem.impl.MethodContentPackageImpl;
import org.obeonetwork.dsl.spem.uma.DisciplinePackage;
import org.obeonetwork.dsl.spem.uma.UmaPackage;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Discipline Package</b></em>'.
* <!-- end-user-doc -->
* <p>
* </p>
*
* @generated
*/
public class DisciplinePackageImpl extends MethodContentPackageImpl implements DisciplinePackage {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected DisciplinePackageImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return UmaPackage.Literals.DISCIPLINE_PACKAGE;
}
} //DisciplinePackageImpl
| [
"Stephane.Drapeau@obeo.fr"
] | Stephane.Drapeau@obeo.fr |
2a7e453f80b6a2fc8c185f310077d567183ade24 | 1ec018880634c6fb4e3e8265f0f95f46f71ef402 | /app/src/main/java/com/blankj/androidutilcode/base/IBaseView.java | 261c0b3063a117382a720d9225cb533614c22255 | [
"Apache-2.0"
] | permissive | android24/AndroidUtilCode | 93482f74c162846594139a873904baae98a00f54 | 0f566fd345ea2e289eb8e8d1483d999e02be2405 | refs/heads/master | 2020-03-09T05:24:19.689808 | 2018-04-08T06:23:15 | 2018-04-08T06:23:15 | 128,612,972 | 1 | 0 | Apache-2.0 | 2018-04-08T07:33:57 | 2018-04-08T07:33:57 | null | UTF-8 | Java | false | false | 785 | java | package com.blankj.androidutilcode.base;
import android.os.Bundle;
import android.view.View;
/**
* <pre>
* author: Blankj
* blog : http://blankj.com
* time : 2017/06/27
* desc :
* </pre>
*/
interface IBaseView extends View.OnClickListener {
/**
* 初始化数据
*
* @param bundle 传递过来的 bundle
*/
void initData(final Bundle bundle);
/**
* 绑定布局
*
* @return 布局 Id
*/
int bindLayout();
/**
* 初始化 view
*/
void initView(final Bundle savedInstanceState, final View contentView);
/**
* 业务操作
*/
void doBusiness();
/**
* 视图点击事件
*
* @param view 视图
*/
void onWidgetClick(final View view);
}
| [
"625783482@qq.com"
] | 625783482@qq.com |
bbe04d2bc6c6cc376879cf9f70a0c9ea255df7f9 | 4a68b152ab273502ac3804f2b87a1d48d50cd8fa | /app/src/main/java/rkr/ime/test/MainActivity.java | 8ff2ba54d376587370e5bf7019dbabcc6f7391c2 | [
"MIT"
] | permissive | rkkr/ime-tester | 2ae5d97825be8fe2e3689512d438ad492859b105 | 34d40ef42acec00e40322af96d5be835c247d3f9 | refs/heads/master | 2022-10-11T23:17:30.708088 | 2022-10-07T10:56:53 | 2022-10-07T10:56:53 | 245,580,947 | 7 | 2 | null | null | null | null | UTF-8 | Java | false | false | 1,354 | java | package rkr.ime.test;
import android.app.Activity;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TabHost;
import java.util.HashMap;
public class MainActivity extends Activity implements TabHost.TabContentFactory {
private final HashMap<String, View> tabs = new HashMap<>();
private static final int[] tabNames = new int[] {
R.string.tab_text_1,
R.string.tab_text_2,
R.string.tab_text_3,
};
private static final int[] tabLayouts = new int[] {
R.layout.activity_main_tab1,
R.layout.activity_main_tab2,
R.layout.activity_main_tab3,
};
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
final TabHost tabHost = findViewById(android.R.id.tabhost);
tabHost.setup();
for (int i=0; i<tabNames.length; i++) {
String name = getResources().getString(tabNames[i]);
tabs.put(name, LayoutInflater.from(this).inflate(tabLayouts[i], null));
tabHost.addTab(tabHost.newTabSpec(name).setIndicator(name).setContent(this));
}
}
@Override
public View createTabContent(String tag) {
return tabs.get(tag);
}
} | [
"narimantukas@gmail.com"
] | narimantukas@gmail.com |
9b3e4a2fc64c6abc1d4822b08717454a065ceac6 | 7b3734ed6011f191d1b040ef961c551716beb55f | /Android/IM视频请求接口/RCVPhone/app/src/androidTest/java/agora/biggod/com/rcvphone/ApplicationTest.java | c15361281cece23809be2ff6f40009c6acb58db6 | [] | no_license | BIG-GOD/Internet-Ai | a6fd650a2681287ea9b7d6e09bbd07f5af9edc54 | 90587f9d9e3d85e554db32ffd4e1af27cde515da | refs/heads/master | 2021-01-17T07:10:02.310891 | 2019-07-01T06:11:49 | 2019-07-01T06:11:49 | 54,906,749 | 10 | 9 | null | null | null | null | UTF-8 | Java | false | false | 356 | java | package agora.biggod.com.rcvphone;
import android.app.Application;
import android.test.ApplicationTestCase;
/**
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
*/
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest() {
super(Application.class);
}
} | [
"zhkmxx930@163.com"
] | zhkmxx930@163.com |
c787aa4dfbe802f7db32c14c1f178b2d945bfa60 | 51c797e82208281b694d0a02ba4febba7d6226cd | /common/src/main/java/com/harmony/devops/common/utils/ParseUtil.java | a0bc28b100c4a3edce63483bde333263e2c39808 | [] | no_license | HarmonyCloud-zz/DevOps | a2afee978fc8f449cb8849b1bed5ff8e4e107875 | f85d0d5d98954f07a20531fb01f3fafa77c36b6f | refs/heads/master | 2020-03-22T23:25:59.651841 | 2018-09-19T09:01:57 | 2018-09-19T09:01:57 | 140,810,247 | 0 | 2 | null | null | null | null | UTF-8 | Java | false | false | 2,970 | java | package com.harmony.devops.common.utils;
import com.harmony.devops.common.exception.BaseException;
import com.thoughtworks.xstream.XStream;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.xml.sax.SAXException;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.HashMap;
import java.util.Map;
/**
*
* @author 葛文镇<br>
* 解析类
*/
public class ParseUtil {
/**
* xml String to Map
*/
public static Map<String, Object> getMapFromXML(String xmlString)
throws BaseException {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder;
Map<String, Object> map = new HashMap<String, Object>();
try {
builder = factory.newDocumentBuilder();
InputStream is = getStringStream(xmlString);
Document document = builder.parse(is);
// 获取到document里面的全部结点
NodeList allNodes = document.getFirstChild().getChildNodes();
Node node;
int i = 0;
while (i < allNodes.getLength()) {
node = allNodes.item(i);
if (node instanceof Element) {
map.put(node.getNodeName(), node.getTextContent());
}
i++;
}
} catch (ParserConfigurationException e) {
throw new BaseException("ParserConfigurationException",
e.getMessage());
} catch (SAXException e) {
throw new BaseException("SAXException", e.getMessage());
} catch (IOException e) {
throw new BaseException("IOException", e.getMessage());
}
return map;
}
public static InputStream getStringStream(String sInputString) {
ByteArrayInputStream tInputStringStream = null;
if (sInputString != null && !sInputString.trim().equals("")) {
tInputStringStream = new ByteArrayInputStream(
sInputString.getBytes());
}
return tInputStringStream;
}
@SuppressWarnings("rawtypes")
public static Object parseXml2Object(String response, Class c) {
// 将从API返回的XML数据映射到Java对象
XStream xStreamForResponseData = new XStream();
xStreamForResponseData.alias("xml", c);
return xStreamForResponseData.fromXML(response);
}
public static String map2String(Map<String, Object> map) {
StringBuffer out = new StringBuffer();
for (String key : map.keySet()) {
out.append(key);
out.append("=");
out.append(map.get(key) + ",");
}
return out.toString();
}
} | [
"gewenzhen@wuyeyun.com"
] | gewenzhen@wuyeyun.com |
687471b8f9048a95cc0af9ab798919f004eb141a | 1bd23832f14dc3413590389cef537e65e521f736 | /src/List2/ex5_roundedGrade.java | 9bf1c8db2bf85ff6fc05bc69eea54ad7ba60dcc6 | [] | no_license | aLe-kLaus/java-school-classes | 163f75ddd8699395618a7de76e313bfae9288e1e | 536ed591d0ab7af8d71258a58e3a8f918d86da0e | refs/heads/master | 2023-06-03T16:14:04.968691 | 2021-06-23T22:52:23 | 2021-06-23T22:52:23 | 365,226,247 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 803 | java | // FUPQ recebe uma nota de 0 a 10 e aplica a ela o novo sistema de arredondamento do Câmpus
//Sapiranga (0.1 em vez de 0.5), mostrando na tela o valor final arredondado.
package List2;
import java.util.Scanner;
import java.text.DecimalFormat;
import java.math.RoundingMode;
public class ex5_roundedGrade {
public static void main(String[] args) {
Scanner keyboard = new Scanner(System.in);
DecimalFormat decimalFormatter = new DecimalFormat("#.0");
decimalFormatter.setRoundingMode(RoundingMode.CEILING);
System.out.println("Enter your grade (0 to 10):");
double grade = keyboard.nextDouble();
String roundedGrade = decimalFormatter.format(grade);
System.out.println("The grade with the Ifsul rounding mode is: " + roundedGrade);
}
}
| [
"alessomklaus13@gmail.com"
] | alessomklaus13@gmail.com |
71c079c19cf751decc235351265ba3ffa13560b4 | fbfce846674363bd450cb19bb6c38f2faeec216f | /src/com/example/locationanalytics/RegisterScreen.java | 40d9fb381cbe3a130123255866dfce86153b1b54 | [] | no_license | vidhi110/LocationAnalytics_Android | c292b84f4f35b6edb5b104f848f6124c15240ce6 | 6e6ecd63aa4637b2af55d1bbebb058ed7e4b2c9c | refs/heads/master | 2016-08-07T20:45:36.532512 | 2014-05-11T06:04:18 | 2014-05-11T06:04:18 | 19,659,757 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 2,222 | java | package com.example.locationanalytics;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.util.Log;
import android.view.Menu;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.RadioButton;
import android.widget.RadioGroup;
public class RegisterScreen extends Activity {
Button btnNext;
EditText fName;
EditText lName;
EditText userName;
EditText password;
RadioGroup radioGenderGroup;
RadioButton radioButton;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_register_screen);
btnNext = (Button) findViewById(R.id.btnNext);
btnNext.setOnClickListener(
new View.OnClickListener()
{
public void onClick(View aView) {
fName = (EditText) findViewById(R.id.txtFname);
lName = (EditText) findViewById(R.id.txtLname);
userName = (EditText) findViewById(R.id.txtUserName);
password = (EditText) findViewById(R.id.txtPassword);
radioGenderGroup = (RadioGroup) findViewById(R.id.radioGender);
String strFname = fName.getText().toString();
String strLname = lName.getText().toString();
String strUsername = userName.getText().toString();
String strPassword = password.getText().toString();
radioButton = (RadioButton) findViewById(R.id.rbMale);
String strGender;
if (radioButton.isChecked()) {
strGender = "Male";
} else {
strGender = "Female";
}
Intent prefernceScreenActivity = new Intent(aView.getContext(),
PreferenceScreen.class);
prefernceScreenActivity.putExtra("fName", strFname);
prefernceScreenActivity.putExtra("lName", strLname);
prefernceScreenActivity.putExtra("userName", strUsername);
prefernceScreenActivity.putExtra("password", strPassword);
prefernceScreenActivity.putExtra("gender", strGender);
startActivityForResult(prefernceScreenActivity, 0);
}
});
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.register_screen, menu);
return true;
}
}
| [
"vidhishah110@gmail.com"
] | vidhishah110@gmail.com |
4d10c99aac38a20b63a280deca48e478fb7919c3 | a43d4202628ecb52e806d09f0f3dc1f5bab3ef4f | /src/main/java/pnc/mesadmin/entity/DevGpDtlInfo.java | bf964bcfe2d357ec6788557af2fbb4fd7f5401cf | [] | no_license | pnc-mes/base | b88583929e53670340a704f848e4e9e2027f1334 | 162135b8752b4edc397b218ffd26664929f6920d | refs/heads/main | 2023-01-07T22:06:10.794300 | 2020-10-27T07:47:20 | 2020-10-27T07:47:20 | 307,621,190 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,022 | java | package pnc.mesadmin.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
/**
* 公司名称:驭航信息技术(上海)有限公司
* 系统名称:PNC-MES管理系统
* 子系统名称:设备组信息Model
* 创建人:刘福志
* 创建时间:2017-8-7
* 修改人:
* 修改时间:
*/
@TableName(value = "tpm_devgpdtlinfo")
public class DevGpDtlInfo {
private int ruid;
private String guid;
private String devGpGd;
private String devGd;
private String creator;
private Date createTime;
private String lastModifyMan;
private Date lastModifyTime;
private String remark;
public int getRuid() {
return ruid;
}
public void setRuid(int ruid) {
this.ruid = ruid;
}
public String getGuid() {
return guid;
}
public void setGuid(String guid) {
this.guid = guid;
}
public String getDevGpGd() {
return devGpGd;
}
public void setDevGpGd(String devGpGd) {
this.devGpGd = devGpGd;
}
public String getDevGd() {
return devGd;
}
public void setDevGd(String devGd) {
this.devGd = devGd;
}
public String getCreator() {
return creator;
}
public void setCreator(String creator) {
this.creator = creator;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public String getLastModifyMan() {
return lastModifyMan;
}
public void setLastModifyMan(String lastModifyMan) {
this.lastModifyMan = lastModifyMan;
}
public Date getLastModifyTime() {
return lastModifyTime;
}
public void setLastModifyTime(Date lastModifyTime) {
this.lastModifyTime = lastModifyTime;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
}
| [
"95887577@qq.com"
] | 95887577@qq.com |
03f083b3d9a1409556630f6f84221cf809b33496 | 3a5985651d77a31437cfdac25e594087c27e93d6 | /ojc-core/component-common/axiondb/src/org/axiondb/engine/indexes/StringBTreeIndex.java | 10c5518155847beb4483cb5e022ebd98057031fd | [] | no_license | vitalif/openesb-components | a37d62133d81edb3fdc091abd5c1d72dbe2fc736 | 560910d2a1fdf31879e3d76825edf079f76812c7 | refs/heads/master | 2023-09-04T14:40:55.665415 | 2016-01-25T13:12:22 | 2016-01-25T13:12:33 | 48,222,841 | 0 | 5 | null | null | null | null | UTF-8 | Java | false | false | 3,620 | java | /*
*
* =======================================================================
* Copyright (c) 2003-2005 Axion Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above
* copyright notice, this list of conditions and the following
* disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The names "Tigris", "Axion", nor the names of its contributors may
* not be used to endorse or promote products derived from this
* software without specific prior written permission.
*
* 4. Products derived from this software may not be called "Axion", nor
* may "Tigris" or "Axion" appear in their names without specific prior
* written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* =======================================================================
*/
package org.axiondb.engine.indexes;
import java.io.File;
import java.io.IOException;
import org.axiondb.AxionException;
import org.axiondb.Column;
import org.axiondb.DataType;
import org.axiondb.IndexLoader;
import org.axiondb.engine.StringBTreeIndexLoader;
import org.axiondb.util.NullObject;
import org.axiondb.util.ObjectBTree;
import org.axiondb.util.StringBTree;
/**
* @version
* @author Rodney Waldhoff
*/
public class StringBTreeIndex extends ObjectBTreeIndex {
public StringBTreeIndex(String name, Column column, boolean unique) throws AxionException {
this(name, column, unique, 1000);
}
public StringBTreeIndex(String name, Column column, boolean unique, int minimizationFactor) throws AxionException {
this(name, column, unique, minimizationFactor, null);
}
public StringBTreeIndex(String name, Column column, boolean unique, int minimizationFactor, File dataDirectory) throws AxionException {
super(name, column, unique, dataDirectory);
_minimizationFactor = minimizationFactor;
}
public IndexLoader getIndexLoader() {
return LOADER;
}
public int getMinimizationFactor() {
return _minimizationFactor;
}
protected ObjectBTree createTree(File dataDirectory, String name, int minimizationFactor, DataType dataType) throws IOException,
ClassNotFoundException {
return new StringBTree(dataDirectory, name, minimizationFactor, dataType);
}
protected Object getNullKey() {
return NullObject.INSTANCE.toString();
}
private static final IndexLoader LOADER = new StringBTreeIndexLoader();
}
| [
"bitbucket@bitbucket02.private.bitbucket.org"
] | bitbucket@bitbucket02.private.bitbucket.org |
2095cc7594f305214eac84b7750a2548e26b3cba | 1f62c917af105ba30fa1957fc02e9618880d92e0 | /src/main/java/br/com/sulamerica/igor/controller/form/LoginForm.java | 0c21546f5c764e7f111db1f23bb2fcef99a2c5d6 | [] | no_license | barrozaum/igorSulamerica | debec48b4f35674821dd887f763d03decff4ddb7 | 8c0dccf59c000880deb820e297a7bbc511e3868d | refs/heads/master | 2020-09-01T02:03:38.195629 | 2019-11-01T03:09:18 | 2019-11-01T03:09:18 | 218,852,226 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 671 | java | package br.com.sulamerica.igor.controller.form;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
public class LoginForm {
private String usuario;
private String password;
public String getUsuario() {
return usuario;
}
public void setUsuario(String usuario) {
this.usuario = usuario;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public UsernamePasswordAuthenticationToken converter() {
// TODO Auto-generated method stub
return new UsernamePasswordAuthenticationToken(usuario, password);
}
}
| [
"Igor@Barrozaum.Home"
] | Igor@Barrozaum.Home |
aede4452ef5f84c2465c29a83a3767540d61aa44 | f8c871eaa14376922e9fc1fcb191a19fd720f617 | /Spring Core/ConstructorInjection/src/com/bridgelabz/beans/Person.java | 3d03fde9f2c36e8efeffc3e9cc6930a7f3e77238 | [] | no_license | luckyNB/spring-core-and-mvc | d0256c03ae2de1b69ff523f1d8639483e5fbd2ed | b8f97b9f48b141060f1674b16d2133b158404c54 | refs/heads/master | 2023-04-27T05:05:56.785001 | 2019-10-04T10:18:15 | 2019-10-04T10:18:15 | 212,787,345 | 0 | 0 | null | 2023-04-14T18:40:41 | 2019-10-04T10:12:46 | Java | UTF-8 | Java | false | false | 625 | java | package com.bridgelabz.beans;
import java.util.Arrays;
public class Person {
private String adharNo;
private String name;
private int age;
private String address;
private String[] mobileNo;
public Person(String adharNo, String name, int age, String address, String[] mobileNo) {
super();
this.adharNo = adharNo;
this.name = name;
this.age = age;
this.address = address;
this.mobileNo = mobileNo;
}
@Override
public String toString() {
return "Person [adharNo=" + adharNo + ", name=" + name + ", age=" + age + ", address=" + address + ", mobileNo="
+ Arrays.toString(mobileNo) + "]";
}
}
| [
"laxmanbhosale360@gmail.com"
] | laxmanbhosale360@gmail.com |
00a0d118b16f905c89421a2f821ddf90c81bca2c | 70cbaeb10970c6996b80a3e908258f240cbf1b99 | /WiFi万能钥匙dex1-dex2jar.jar.src/com/b/a/i.java | 079b2b2f11f229929b512de03dc5f9c529150f01 | [] | no_license | nwpu043814/wifimaster4.2.02 | eabd02f529a259ca3b5b63fe68c081974393e3dd | ef4ce18574fd7b1e4dafa59318df9d8748c87d37 | refs/heads/master | 2021-08-28T11:11:12.320794 | 2017-12-12T03:01:54 | 2017-12-12T03:01:54 | 113,553,417 | 2 | 1 | null | null | null | null | UTF-8 | Java | false | false | 315 | java | package com.b.a;
public abstract interface i
{
public abstract boolean a(l paraml);
public abstract boolean a(Class<?> paramClass);
}
/* Location: /Users/hanlian/Downloads/WiFi万能钥匙dex1-dex2jar.jar!/com/b/a/i.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/ | [
"lianh@jumei.com"
] | lianh@jumei.com |
b81f17e7d0e9b156f99ab193b6298e4ab5353214 | 985246c57e438ec85c2ca2b694af2301c264ec36 | /litho-it/src/test/java/com/facebook/litho/IncrementalMountExtensionTest.java | 5d06a2799018fabe9c9798549441606393b4f025 | [
"Apache-2.0"
] | permissive | jeremyweitencent/litho | 438d6a7039975398cf110f0b88b77d3c4dda30a0 | aa7a2d72a725a3524d11700b586e6fdb43c46b19 | refs/heads/master | 2023-02-11T09:47:23.215864 | 2021-01-04T23:41:31 | 2021-01-04T23:43:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 10,279 | java | /*
* Copyright (c) Facebook, Inc. and 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 com.facebook.litho;
import static org.assertj.core.api.Java6Assertions.assertThat;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import android.graphics.Rect;
import androidx.annotation.Nullable;
import com.facebook.litho.config.ComponentsConfiguration;
import com.facebook.rendercore.MountDelegate;
import com.facebook.rendercore.MountDelegateInput;
import com.facebook.rendercore.MountDelegateTarget;
import com.facebook.rendercore.RenderTreeNode;
import com.facebook.rendercore.RenderUnit;
import com.facebook.rendercore.extensions.ExtensionState;
import com.facebook.rendercore.incrementalmount.IncrementalMountExtension;
import com.facebook.rendercore.incrementalmount.IncrementalMountExtension.IncrementalMountExtensionState;
import com.facebook.rendercore.incrementalmount.IncrementalMountExtensionInput;
import com.facebook.rendercore.incrementalmount.IncrementalMountOutput;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.ParameterizedRobolectricTestRunner;
@RunWith(ParameterizedRobolectricTestRunner.class)
public class IncrementalMountExtensionTest {
private boolean mExtensionAcquireDuringMountDefault;
private final boolean mExtensionAcquireDuringMount;
@ParameterizedRobolectricTestRunner.Parameters(name = "extensionAcquireDuringMount={0}")
public static Collection data() {
return Arrays.asList(
new Object[][] {
{false}, {true},
});
}
public IncrementalMountExtensionTest(boolean extensionAcquireDuringMount) {
mExtensionAcquireDuringMount = extensionAcquireDuringMount;
}
@Before
public void setup() {
mExtensionAcquireDuringMountDefault = ComponentsConfiguration.extensionAcquireDuringMount;
ComponentsConfiguration.extensionAcquireDuringMount = mExtensionAcquireDuringMount;
}
@After
public void cleanup() {
ComponentsConfiguration.extensionAcquireDuringMount = mExtensionAcquireDuringMountDefault;
}
@Test
public void onIteratingOnIncrementMountOutputs_shouldIterateByInsertionOrder() {
final TestInput input = new TestInput(10);
int i = 0;
for (IncrementalMountOutput output : input.getIncrementalMountOutputs()) {
assertThat(output.getId()).isEqualTo(input.getMountableOutputAt(i).getRenderUnit().getId());
i++;
}
}
@Test
public void testDirtyMountWithEmptyRect() {
final LithoView lithoView = mock(LithoView.class);
when(lithoView.getHeight()).thenReturn(50);
final MountDelegate mountDelegate = mock(MountDelegate.class);
final MountDelegateTarget mountDelegateTarget = mock(MountDelegateTarget.class);
when(mountDelegate.getMountDelegateTarget()).thenReturn(mountDelegateTarget);
final IncrementalMountExtension extension =
IncrementalMountExtension.getInstance(mExtensionAcquireDuringMount);
final ExtensionState<IncrementalMountExtensionState> extensionState =
extension.createExtensionState(mountDelegate);
final IncrementalMountExtensionState state = extensionState.getState();
mountDelegate.addExtension(extension);
when(mountDelegate.getExtensionState(extension)).thenReturn(extensionState);
final TestInput incrementalMountExtensionInput = new TestInput(10);
extension.beforeMount(extensionState, incrementalMountExtensionInput, new Rect(0, 0, 10, 50));
for (int i = 0, size = incrementalMountExtensionInput.getMountableOutputCount();
i < size;
i++) {
final RenderTreeNode node = incrementalMountExtensionInput.getMountableOutputAt(i);
extension.beforeMountItem(extensionState, node, i);
}
extension.afterMount(extensionState);
assertThat(extension.getPreviousBottomsIndex(state)).isEqualTo(0);
assertThat(extension.getPreviousTopsIndex(state)).isEqualTo(5);
final TestInput incrementalMountExtensionInput2 = new TestInput(3);
extension.beforeMount(extensionState, incrementalMountExtensionInput2, new Rect(0, 0, 0, 0));
for (int i = 0, size = incrementalMountExtensionInput2.getMountableOutputCount();
i < size;
i++) {
final RenderTreeNode node = incrementalMountExtensionInput2.getMountableOutputAt(i);
extension.beforeMountItem(extensionState, node, i);
}
extension.afterMount(extensionState);
extension.onVisibleBoundsChanged(extensionState, new Rect(0, 0, 10, 50));
assertThat(extension.getPreviousBottomsIndex(state)).isEqualTo(0);
assertThat(extension.getPreviousTopsIndex(state)).isEqualTo(3);
}
@Test
public void testDirtyMountWithEmptyRect_leftRightMatch() {
final LithoView lithoView = mock(LithoView.class);
when(lithoView.getHeight()).thenReturn(50);
final MountDelegate mountDelegate = mock(MountDelegate.class);
final MountDelegateTarget mountDelegateTarget = mock(MountDelegateTarget.class);
when(mountDelegate.getMountDelegateTarget()).thenReturn(mountDelegateTarget);
final IncrementalMountExtension extension = IncrementalMountExtension.getInstance();
mountDelegate.addExtension(extension);
final ExtensionState<IncrementalMountExtensionState> extensionState =
extension.createExtensionState(mountDelegate);
final IncrementalMountExtensionState state = extensionState.getState();
mountDelegate.addExtension(extension);
when(mountDelegate.getExtensionState(extension)).thenReturn(extensionState);
final TestInput incrementalMountExtensionInput = new TestInput(10);
extension.beforeMount(extensionState, incrementalMountExtensionInput, new Rect(0, 0, 10, 50));
for (int i = 0, size = incrementalMountExtensionInput.getMountableOutputCount();
i < size;
i++) {
final RenderTreeNode node = incrementalMountExtensionInput.getMountableOutputAt(i);
extension.beforeMountItem(extensionState, node, i);
}
extension.afterMount(extensionState);
assertThat(extension.getPreviousBottomsIndex(state)).isEqualTo(0);
assertThat(extension.getPreviousTopsIndex(state)).isEqualTo(5);
final IncrementalMountExtensionInput incrementalMountExtensionInput2 = new TestInput(3);
extension.beforeMount(extensionState, incrementalMountExtensionInput2, new Rect(0, 0, 10, 0));
for (int i = 0, size = incrementalMountExtensionInput.getMountableOutputCount();
i < size;
i++) {
final RenderTreeNode node = incrementalMountExtensionInput.getMountableOutputAt(i);
extension.beforeMountItem(extensionState, node, i);
}
extension.afterMount(extensionState);
extension.onVisibleBoundsChanged(extensionState, new Rect(0, 0, 10, 50));
assertThat(extension.getPreviousBottomsIndex(state)).isEqualTo(0);
assertThat(extension.getPreviousTopsIndex(state)).isEqualTo(3);
}
final class TestInput implements IncrementalMountExtensionInput, MountDelegateInput {
final List<RenderTreeNode> mountableOutputs = new ArrayList<>();
final Map<Long, IncrementalMountOutput> mIncrementalMountOutputs = new LinkedHashMap<>();
final List<IncrementalMountOutput> tops = new ArrayList<>();
final List<IncrementalMountOutput> bottoms = new ArrayList<>();
private final int mCount;
public TestInput(int count) {
mCount = count;
for (int i = 0; i < count; i++) {
final Rect bounds = new Rect(0, (i * 10), 10, (i + 1) * 10);
final LayoutOutput layoutOutput = mock(LayoutOutput.class);
RenderTreeNode renderTreeNode = mock(RenderTreeNode.class);
when(renderTreeNode.getLayoutData()).thenReturn(layoutOutput);
when(renderTreeNode.getAbsoluteBounds(any(Rect.class))).thenReturn(bounds);
when(layoutOutput.getComponent()).thenReturn(mock(Component.class));
when(layoutOutput.getBounds()).thenReturn(bounds);
RenderUnit renderUnit = new LithoRenderUnit(layoutOutput);
when(renderUnit.getId()).thenReturn((long) i);
when(renderTreeNode.getRenderUnit()).thenReturn(renderUnit);
mountableOutputs.add(renderTreeNode);
final IncrementalMountOutput incrementalMountOutput =
new IncrementalMountOutput(
i, i, bounds, i != 0 ? mIncrementalMountOutputs.get((long) (i - 1)) : null);
mIncrementalMountOutputs.put(incrementalMountOutput.getId(), incrementalMountOutput);
tops.add(incrementalMountOutput);
bottoms.add(incrementalMountOutput);
}
}
@Override
public int getMountableOutputCount() {
return mCount;
}
@Override
public List<IncrementalMountOutput> getOutputsOrderedByTopBounds() {
return tops;
}
@Override
public List<IncrementalMountOutput> getOutputsOrderedByBottomBounds() {
return bottoms;
}
@Override
public @Nullable IncrementalMountOutput getIncrementalMountOutputForId(long id) {
return mIncrementalMountOutputs.get(id);
}
@Override
public Collection<IncrementalMountOutput> getIncrementalMountOutputs() {
return mIncrementalMountOutputs.values();
}
@Override
public int getIncrementalMountOutputCount() {
return mCount;
}
@Override
public int getPositionForId(long id) {
return 0;
}
@Override
public boolean renderUnitWithIdHostsRenderTrees(long id) {
return true;
}
@Override
public RenderTreeNode getMountableOutputAt(int position) {
return mountableOutputs.get(position);
}
}
}
| [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
b8306c5de656f06ce28d794d83949b97a0694cc0 | 962387f3ba5088b1ade9cd8b8ebe1784a57bb90b | /src/SelectionSort.java | ba592eac093ff0a4c815af6d495641c63b408c6a | [] | no_license | yzhan298/Selection-Sort | ef05a62c3ef6651934ee1f3fbfa722a5ba6e130d | 3b268deac2b0d9682d11526e92cf9cb5ac7365e7 | refs/heads/master | 2021-05-27T14:04:54.014805 | 2014-09-17T02:04:33 | 2014-09-17T02:04:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 735 | java | import java.util.*;
public class SelectionSort {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.println("Please enter 5 integers:");
int[] s = new int[5];
for(int i=0; i<s.length; i++) {
s[i] = input.nextInt();
}
System.out.println("The array is "+Arrays.toString(s));
SortAlgrithm(s);
}
public static void SortAlgrithm(int[] a) {
int temp;
int smallestInd;
for(int i=0; i<a.length-2; i++) {
smallestInd = i;
for(int j=0; j<a.length-1-i; j++) {
if(a[j]<a[smallestInd]) {
smallestInd = j;
}
temp = a[j];
a[j] = a[smallestInd];
a[smallestInd] = temp;
}
}
System.out.println("The sorted array is "+Arrays.toString(a));
}
} | [
"steven.y.zh@hotmail.com"
] | steven.y.zh@hotmail.com |
ba2409204409321da07bc4df757be8d35e3bbd7a | 6901483f781ff84e79c0d2e896ea84639cd1aed2 | /aop/src/main/java/com/fullmoon/study/aop/anotation/PreGreetingAspect.java | 527d3ca2c637776fea67a2482a4f76493e116dae | [] | no_license | liu844869663/study-spring | b46300d3d557e9561e6a08c80115c5d2ffdd1994 | 34c04031efdfbaed8c4c9e4570fccf50ccaa7c66 | refs/heads/master | 2022-12-23T04:19:06.160410 | 2020-09-29T01:05:42 | 2020-09-29T01:05:42 | 299,468,717 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 362 | java | package com.fullmoon.study.aop.anotation;
import lombok.extern.java.Log;
import lombok.extern.log4j.Log4j2;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
@Aspect
@Log4j2
public class PreGreetingAspect {
@Before("execution(* greetTo(..))")
public void beforeGreeting(){
log.info("How are you!");
}
}
| [
"liujingping@idwzx.com"
] | liujingping@idwzx.com |
7c0621d11b2896e58fe1208e79f3fba1469738b6 | 0fbb406764bae1e3f9b49b57b8d8511f84eea586 | /src/main/java/com/niit/collaboration/restbackend/controller/UserRestController.java | df10f6ca24048c74379bf5144f4c7839588b566a | [] | no_license | pradeep-ks/collaboration-restbackend | 50407f29b87315f3d8c61b602afc254ce1f57c51 | 43be41c5c04775ce69148b89cf915a82f2534707 | refs/heads/master | 2021-01-15T17:41:23.849079 | 2017-02-05T22:51:02 | 2017-02-05T22:51:02 | 78,940,865 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 7,209 | java | package com.niit.collaboration.restbackend.controller;
import java.util.List;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import com.niit.collaboration.backend.dao.FriendDao;
import com.niit.collaboration.backend.dao.UserDao;
import com.niit.collaboration.backend.model.User;
@RestController
public class UserRestController {
@Autowired
UserDao userDao;
@Autowired
FriendDao friendDao;
/**
* This method returns the list of registered users.
*
* @return users the list of registered users.
*/
@GetMapping(value = "/user/all/")
public ResponseEntity<List<User>> getAllUsers() {
System.out.println("Inside UserController::getAllUsers()....");
List<User> users = userDao.list();
if (users.isEmpty()) {
return new ResponseEntity<List<User>>(HttpStatus.NO_CONTENT);
}
return new ResponseEntity<List<User>>(users, HttpStatus.OK);
}
/**
* This method returns the list of all registered users except
* the logged in user.
*
* @param session The HttpSession to retrieve the id of logged in user.
* @return users, the list of registered users except logged in user.
*/
@GetMapping(value = "/user/others/")
public ResponseEntity<List<User>> getAllUsersExceptLoggedIn(HttpSession session) {
System.out.println("Inside UserController::getAllUsersExceptLoggedIn()....");
long loggedInUserId = (Long) session.getAttribute("loggedInUserId");
List<User> users = userDao.listUsersExceptLoggedIn(loggedInUserId);
if (users.isEmpty()) {
return new ResponseEntity<List<User>>(HttpStatus.NO_CONTENT);
}
return new ResponseEntity<List<User>>(users, HttpStatus.OK);
}
/**
* This method returns a user whose id is passed through HTTP URL.
*
* @param id The userId whose details are to be retrieved.
* @return user The User object along with HttpStatus OK.
*/
@GetMapping(value = "/user/id/{id}", produces = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<User> getUser(@PathVariable("id") long id) {
System.out.println("Inside UserController::getUser()....");
User user = userDao.getUserById(id);
if (user == null) {
return new ResponseEntity<User>(HttpStatus.NOT_FOUND);
}
return new ResponseEntity<User>(user, HttpStatus.OK);
}
/**
* This method returns a user whose username is passed through HTTP URL.
* This method is also used in not allowing duplicate usernames in the database.
*
* @param username The username of the User to be retrieved.
* @return user The User object along with HttpStatus OK.
*/
@GetMapping(value = "/user/uname/{uname}", produces = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<User> getUser(@PathVariable("uname") String username) {
System.out.println("Inside UserController::getUser(uname)....");
User user = userDao.getUserByUsername(username);
if (user == null) {
return new ResponseEntity<User>(HttpStatus.NOT_FOUND);
}
return new ResponseEntity<User>(user, HttpStatus.OK);
}
/**
* This method is used to register new User.
*
* @param newUser The new User's registration details.
* @return HttpStatus OK if registration is successful, CONFLICT otherwise.
*/
@PostMapping(value = "/user/")
public ResponseEntity<Void> createUser(@RequestBody User newUser) {
System.out.println("Inside UserController::createUser()....");
boolean exists = userDao.isExistingUser(newUser);
if (exists) {
return new ResponseEntity<Void>(HttpStatus.CONFLICT);
}
newUser.setRole("STUDENT");
newUser.setActive(true);
userDao.create(newUser);
return new ResponseEntity<Void>(HttpStatus.CREATED);
}
@PutMapping(value = "/user/{id}")
public ResponseEntity<User> updateUser(@PathVariable("id") long id, @RequestBody User user) {
User u = userDao.getUserById(id);
if (u == null) {
return new ResponseEntity<User>(HttpStatus.NOT_FOUND);
}
u.setUsername(user.getUsername());
u.setRole(user.getRole());
u.setPassword(user.getPassword());
u.setActive(user.isActive());
u.setEmail(user.getEmail());
userDao.udpate(u);
return new ResponseEntity<User>(u, HttpStatus.OK);
}
@DeleteMapping(value = "/user/{id}")
public ResponseEntity<User> deleteUser(@PathVariable("id") long id) {
User u = userDao.getUserById(id);
if (u == null) {
return new ResponseEntity<User>(HttpStatus.NOT_FOUND);
}
userDao.remove(u);
return new ResponseEntity<User>(HttpStatus.NO_CONTENT);
}
@PostMapping(value = "/user/auth/")
public ResponseEntity<User> authenticate(@RequestBody User user, HttpSession session) {
boolean result = userDao.authenticate(user.getUsername(), user.getPassword());
if (result) {
User u = userDao.getUserByUsername(user.getUsername());
friendDao.setOnline(u.getUserId());
userDao.setOnline(u.getUserId());
session.setAttribute("loggedInUser", u);
session.setAttribute("loggedInUserId", u.getUserId());
return new ResponseEntity<User>(u, HttpStatus.OK);
}
return new ResponseEntity<User>(HttpStatus.NOT_FOUND);
}
@PutMapping(value = "/user/logout/")
public ResponseEntity<User> logout(HttpSession session) {
long userId = (Long) session.getAttribute("loggedInUserId");
userDao.setOffline(userId);
friendDao.setOffline(userId);
session.invalidate();
return new ResponseEntity<User>(HttpStatus.OK);
}
@PutMapping(value = "/user/makeAdmin/{userId}")
public ResponseEntity<User> makeAdmin(@PathVariable("userId") long userId) {
User user = userDao.getUserById(userId);
if (user == null) {
return new ResponseEntity<User>(HttpStatus.NOT_FOUND);
}
user.setRole("ADMIN");
userDao.udpate(user);
return new ResponseEntity<User>(user, HttpStatus.OK);
}
@PutMapping(value = "/user/enable/{userId}")
public ResponseEntity<User> enableUser(@PathVariable("userId") long userId) {
User user = userDao.getUserById(userId);
if (user == null) {
return new ResponseEntity<User>(HttpStatus.NOT_FOUND);
}
user.setActive(true);
userDao.udpate(user);
return new ResponseEntity<User>(user, HttpStatus.OK);
}
@PutMapping(value = "/user/disable/{userId}")
public ResponseEntity<User> disableUser(@PathVariable("userId") long userId) {
User user = userDao.getUserById(userId);
if (user == null) {
return new ResponseEntity<User>(HttpStatus.NOT_FOUND);
}
user.setActive(false);
userDao.udpate(user);
return new ResponseEntity<User>(user, HttpStatus.OK);
}
}
| [
"pkumar@linux-j2zf"
] | pkumar@linux-j2zf |
4ac0a57a8729463d8180ddf2fe922feec6cb2044 | 0cfa4343f83eea4288bafeef64ad2f7cb7a499ba | /app/src/main/java/com/example/huichuanyi/utils/ActivityUtils.java | 6f2bb3be4ccca0d64a957f19cdd4261003013e4e | [] | no_license | wodejiusannian/HuiChuanYi | 4a049b2a901d6b2dc868ccff5a7227c2462315f0 | 14aa2cc99ec1b0a1c1c085662d6fb324f3a714fc | refs/heads/master | 2020-12-02T18:16:53.406731 | 2018-07-10T01:14:28 | 2018-07-10T01:14:28 | 81,194,590 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 7,970 | java | package com.example.huichuanyi.utils;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.view.Window;
import android.view.WindowManager;
import android.widget.Toast;
import java.util.Map;
public class ActivityUtils {
/**
* </br><b>title : </b> 设置Activity全屏显示
* </br><b>description :</b>设置Activity全屏显示。
*
* @param activity Activity引用
* @param isFull true为全屏,false为非全屏
*/
public static void setFullScreen(Activity activity, boolean isFull) {
Window window = activity.getWindow();
WindowManager.LayoutParams params = window.getAttributes();
if (isFull) {
params.flags |= WindowManager.LayoutParams.FLAG_FULLSCREEN;
window.setAttributes(params);
window.addFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);
} else {
params.flags &= (~WindowManager.LayoutParams.FLAG_FULLSCREEN);
window.setAttributes(params);
window.clearFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);
}
}
/**
* 获得状态栏的高度
*
* @param context
* @return
*/
public static int getStatusBarHeight(Context context) {
int result = 0;
int resourceId = context.getResources().getIdentifier("status_bar_height", "dimen", "android");
if (resourceId > 0) {
result = context.getResources().getDimensionPixelSize(resourceId);
}
return result;
}
/**
* </br><b>title : </b> 隐藏系统标题栏
* </br><b>description :</b>隐藏Activity的系统默认标题栏
*
* @param activity Activity对象
*/
public static void hideTitleBar(Activity activity) {
activity.requestWindowFeature(Window.FEATURE_NO_TITLE);
}
public static void setScreenVertical(Activity activity) {
activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
}
/**
* </br><b>title : </b> 设置Activity的显示方向为横向
* </br><b>description :</b>强制设置Actiity的显示方向为横向。
*
* @param activity Activity对象
*/
public static void setScreenHorizontal(Activity activity) {
activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
}
/**
* </br><b>title : </b> 隐藏软件输入法
* </br><b>description :</b>隐藏软件输入法
* </br><b>time :</b> 2012-7-12 下午7:20:00
*
* @param activity
*/
public static void hideSoftInput(Activity activity) {
activity.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);
}
/**
* </br><b>title : </b> 使UI适配输入法
* </br><b>description :</b>使UI适配输入法
* </br><b>time :</b> 2012-7-17 下午10:21:26
*
* @param activity
*/
public static void adjustSoftInput(Activity activity) {
activity.getWindow().setSoftInputMode(
WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);
}
/**
* </br><b>title : </b> 跳转到某个Activity。
* </br><b>description :</b>跳转到某个Activity
* </br><b>time :</b> 2012-7-8 下午3:20:00
*
* @param activity 本Activity
* @param targetActivity 目标Activity的Class
*/
public static void switchTo(Activity activity, Class<? extends Activity> targetActivity) {
switchTo(activity, new Intent(activity, targetActivity));
}
/**
* </br><b>title : </b> 根据给定的Intent进行Activity跳转
* </br><b>description :</b>根据给定的Intent进行Activity跳转
* </br><b>time :</b> 2012-7-8 下午3:22:23
*
* @param activity Activity对象
* @param intent 要传递的Intent对象
*/
public static void switchTo(Activity activity, Intent intent) {
activity.startActivity(intent);
}
/**
* </br><b>title : </b> 带参数进行Activity跳转
* </br><b>description :</b>带参数进行Activity跳转
* </br><b>time :</b> 2012-7-8 下午3:24:54
*
* @param activity Activity对象
* @param targetActivity 目标Activity的Class
* @param params 跳转所带的参数
*/
public static void switchTo(Activity activity, Class<? extends Activity> targetActivity, Map<String, Object> params) {
if (null != params) {
Intent intent = new Intent(activity, targetActivity);
for (Map.Entry<String, Object> entry : params.entrySet()) {
setValueToIntent(intent, entry.getKey(), entry.getValue());
}
switchTo(activity, intent);
}
}
/* *//**
* </br><b>title : </b> 带参数进行Activity跳转
* </br><b>description :</b>带参数进行Activity跳转
* </br><b>time :</b> 2012-7-17 下午10:22:58
* @param activity
* @param target
* @param params
*//*
public static void switchTo(Activity activity,Class<? extends Activity> target,NameValuePair...params){
if( null != params ){
Intent intent = new Intent(activity,target);
for(NameValuePair param : params){
setValueToIntent(intent, param.getName(), param.getValue());
}
switchTo(activity, intent);
}
}*/
/**
* </br><b>title : </b> 显示Toast消息。
* </br><b>description :</b>显示Toast消息,并保证运行在UI线程中
* </br><b>time :</b> 2012-7-10 下午08:36:02
*
* @param activity
* @param message
*/
public static void toastShow(final Activity activity, final String message) {
activity.runOnUiThread(new Runnable() {
public void run() {
Toast.makeText(activity, message, Toast.LENGTH_SHORT).show();
}
});
}
/**
* </br><b>title : </b> 将值设置到Intent里
* </br><b>description :</b>将值设置到Intent里
* </br><b>time :</b> 2012-7-8 下午3:31:17
*
* @param intent Inent对象
* @param key Key
* @param val Value
*/
public static void setValueToIntent(Intent intent, String key, Object val) {
if (val instanceof Boolean)
intent.putExtra(key, (Boolean) val);
else if (val instanceof Boolean[])
intent.putExtra(key, (Boolean[]) val);
else if (val instanceof String)
intent.putExtra(key, (String) val);
else if (val instanceof String[])
intent.putExtra(key, (String[]) val);
else if (val instanceof Integer)
intent.putExtra(key, (Integer) val);
else if (val instanceof Integer[])
intent.putExtra(key, (Integer[]) val);
else if (val instanceof Long)
intent.putExtra(key, (Long) val);
else if (val instanceof Long[])
intent.putExtra(key, (Long[]) val);
else if (val instanceof Double)
intent.putExtra(key, (Double) val);
else if (val instanceof Double[])
intent.putExtra(key, (Double[]) val);
else if (val instanceof Float)
intent.putExtra(key, (Float) val);
else if (val instanceof Float[])
intent.putExtra(key, (Float[]) val);
}
/**
* dp转换成px
*/
public static int dp2px(Context context,float dpValue){
float scale=context.getResources().getDisplayMetrics().density;
return (int)(dpValue*scale+0.5f);
}
/**
* px转换成dp
*/
public static int px2dp(Context context,float pxValue){
float scale=context.getResources().getDisplayMetrics().density;
return (int)(pxValue/scale+0.5f);
}
}
| [
"752443668@qq.com"
] | 752443668@qq.com |
5d83db797a0198420616e788d4f03bcd1578ffeb | 281115e0f40af50863fe9eea7d9aedc4af106d05 | /SunFLARE-GestureCreator/src/sunflare/examples/OrbitGame/src/orbit/ScrollingScreen.java | 50cbff4a100cda1a969b480ac27e23ba0d777c55 | [] | no_license | royhanmardista/pp-sunspot-sunflare | 7457d23c273f6e3bd06cde41af1a01a4e9635350 | ec4be5e5ae4a977941b2fbaf94817f03914a3791 | refs/heads/master | 2020-04-26T15:42:19.007579 | 2008-07-23T06:06:49 | 2008-07-23T06:06:49 | 36,003,143 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 11,017 | java | package sunflare.examples.OrbitGame.src.orbit;
import javax.swing.*;
import java.awt.*;
import java.util.*;
import java.awt.event.*;
import java.awt.geom.*;
public class ScrollingScreen extends JPanel implements MouseListener, KeyListener
{
private Rect screen;//in pixels of screen space
private Rect viewport;//in world space
private World world;
private BinaryInput binaryInput;
private MiniMap miniMap;
private Game game;
/** Make a rendering scroll screen.
* @param screen The Rect representing the actual screen's width,height
* @param view The Rect representing the portal through which the player sees the world
* @param world The world to draw
**/
public ScrollingScreen(Game game,Rect screen,Rect view,World world)
{
super(true);
this.game=game;
this.screen=screen;
this.viewport=view;
this.world=world;
setPreferredSize(new Dimension((int)screen.width,(int)screen.height));
Rect miniScreen=new Rect(screen.right-screen.width/5,screen.top,screen.right,screen.height/5+screen.top);
miniMap=new MiniMap(miniScreen,new Rect(0,0,8000,6000),view,world);
addMouseListener(this);
addKeyListener(this);
System.out.println("Scrolling screen constructed");
}
/** Set a binary input, so that this class can update it on keypresses and clicks
*
**/
public void setBinaryInput(BinaryInput binIn)
{
binaryInput=binIn;
}
/** Override the paint
*
**/
public void paintComponent(Graphics g1)
{
//System.out.println("Drawing everything");
super.paintComponent(g1);
Graphics2D g=(Graphics2D)g1;
PrintManager.getInstance().setGraphics(g);
g.setColor(Color.black);
g.fillRect(0,0,(int)screen.width,(int)screen.height);
/////try catch for concurrent modifications. Sometimes, the JFrame updates while in middle of game world update.
try
{
for(ArrayList<Star> starfield: world.getStarfield().getStarLayers())
for(Star star:starfield)
drawStarfield(g,star);
}catch(ConcurrentModificationException e){}
try
{
ArrayList<ParticleEffect> parts=world.getParticleSystem().getParticles();
synchronized(parts)
{
for(SpaceObject so:parts)
drawSpaceObject(g,so);
}
}
catch(ConcurrentModificationException e){}
try
{
ArrayList<SpaceObject> objs=world.getSpaceObjects();
synchronized(objs)
{
for(SpaceObject so:objs)
drawSpaceObject(g,so);
}
}catch(ConcurrentModificationException e){}
try
{
ArrayList<Explosion> expls=world.getExplosions();
synchronized(expls)
{
for(SpaceObject so:expls)
drawSpaceObject(g,so);
}
}catch(ConcurrentModificationException e){}
/////draw arrows to special planets
try
{
ArrayList<SpecialPlanet> objs=world.getSpecialPlanets();
synchronized(objs)
{
for(SpecialPlanet so:objs)
drawArrowTo(g,so);
}
}catch(ConcurrentModificationException e){}
//print the headsup display
drawHUD(g);
//System.out.println("Drawing done");
}
/**
* draws the headsup display
*/
private void drawHUD(Graphics2D graphics) {
Composite comp = graphics.getComposite();
Spaceship ship = world.getSpaceship();
//draw a rectangle
graphics.setComposite(
AlphaComposite.getInstance(AlphaComposite.SRC_OVER,.50f));
graphics.setColor(Color.RED);
int width = (int)(800*ship.getHealth()/100.0);
graphics.fillRect(0,560,width,20);
graphics.setComposite(comp);
//DRAW THE NUMBER OF LIVES//////////////////////////////////////////////////////////
drawLives(graphics,game.getLives());
//DRAW NUMBER OF PLANETS LEFT
drawTargets(graphics,game.getNumToBeTagged());
if (game.getState() == Game.DIED_SEQUENCE) {
PrintManager.getInstance().print("huge","KAUSHIK LOST!!!",400,300,Color.RED,PrintManager.CENTER);
PrintManager.getInstance().print("medium","Press button to restart",400,500,Color.WHITE,PrintManager.CENTER);
}
miniMap.centerViewportAbout(world.getSpaceship().getPos());
miniMap.paintComponent(graphics);
//draw the notifications
NotificationManager.getInstance().paint();
}
/** Draw an individual SpaceObject.
*
**/
private void drawSpaceObject(Graphics2D g,SpaceObject so)
{
//System.out.println("Drawing object");
Vector2 pos=so.getPos();
double radius=so.getRadius();
Vector2 screenPos=transformVector(pos);
Vector2 screenScale=transformScale(new Vector2(so.getWidth(),so.getHeight()));
//cull the image if its out of range
if(screenPos.y+screenScale.y<0||screenPos.y-screenScale.y>screen.height)
return;
if(screenPos.x+screenScale.x<0||screenPos.x-screenScale.x>screen.width)
return;
Image image=so.getFrame();
if(image==null)
return;
if(so instanceof Spaceship)
{
//g.setColor(Color.blue);
//g.fillOval((int)(screenPos.x-screenScale.x/2),(int)(screenPos.y-screenScale.y/2),(int)screenScale.x,(int)screenScale.y);
AffineTransform transform=AffineTransform.getScaleInstance(screenScale.x,screenScale.y);
transform=AffineTransform.getScaleInstance(1,1);
transform=AffineTransform.getTranslateInstance(screenPos.x-screenScale.x*.455,screenPos.y-screenScale.y*.255);
transform.concatenate(AffineTransform.getRotateInstance(((Spaceship)so).getAngle()+Math.PI/2,screenScale.x/2,screenScale.y/4));
transform.concatenate(AffineTransform.getScaleInstance(screenScale.x/image.getWidth(null),screenScale.y/image.getHeight(null)));
g.drawImage(image,transform,null);
}
else if(so instanceof ParticleEffect)
{
g.drawImage(image,(int)(screenPos.x-screenScale.x/2),(int)(screenPos.y-screenScale.y/2),(int)screenScale.x,(int)screenScale.y,null);
}
else
{
g.drawImage(image,(int)(screenPos.x-screenScale.x/2),(int)(screenPos.y-screenScale.y/2),(int)screenScale.x,(int)screenScale.y,null);
}
}
private void drawArrowTo(Graphics2D g,SpaceObject so)
{
Vector2 screenPos=transformVector(so.getPos());
/*
if(screenPos.x>screen.left&&screenPos.x<screen.right)
return;
if(screenPos.y>screen.top&&screenPos.y<screen.bottom)
return;
*/
Vector2 centerScreen=new Vector2((screen.left+screen.right)/2,(screen.top+screen.bottom)/2);
Vector2 vector=screenPos.subVector(centerScreen);
Vector2 inter0=null,inter1=null,inter2=null,inter3=null;
double factor=0;
if(vector.y!=0){
factor=(screen.top-centerScreen.y)/vector.y;
inter0=new Vector2(factor*vector.x+centerScreen.x,factor*vector.y+centerScreen.y);
factor=(screen.bottom-centerScreen.y)/vector.y;
inter2=new Vector2(factor*vector.x+centerScreen.x,factor*vector.y+centerScreen.y);
}
if(vector.x!=0){
factor=(screen.right-centerScreen.x)/vector.x;
inter1=new Vector2(factor*vector.x+centerScreen.x,factor*vector.y+centerScreen.y);
factor=(screen.left-centerScreen.x)/vector.x;
inter3=new Vector2(factor*vector.x+centerScreen.x,factor*vector.y+centerScreen.y);
}
//g.setColor(Color.blue);
//g.drawLine((int)centerScreen.x,(int)centerScreen.y,(int)screenPos.x,(int)screenPos.y);
Vector2 chosen=inter3;
if(inter0.x>=screen.left&&inter0.x<=screen.right&&vector.y<0)
chosen=inter0;
else if(inter2.x>=screen.left&&inter2.x<=screen.right&&vector.y>0)
chosen=inter2;
else if(vector.x>=0)
chosen=inter1;
Image im=ResourceManager.getImage("pointer",0);
if(im==null||chosen==null)
return;
AffineTransform transform=AffineTransform.getTranslateInstance(chosen.x,chosen.y);
double angle=Math.atan2(vector.y, vector.x);
transform.concatenate(AffineTransform.getRotateInstance(angle+Math.PI/2));
g.drawImage(im,transform,null);
}
private void drawLives(Graphics2D g,int num) {
/*
Image image = ResourceManager.getImage("lives",0);
if (image == null) return;
Vector2 screenScale=transformScale(new Vector2(32,86));
for (int c=0;c<num;c++) {
int pos = 32+c*16;
g.drawImage(image,pos, 32,pos+32,86, (int)screenScale.x,(int)screenScale.y, null);
}
*/
PrintManager.getInstance().print("medium", "" + num + " lives", 32, 32,Color.WHITE);
}
private void drawTargets(Graphics2D g,int num) {
PrintManager.getInstance().print("medium", "" + num + " targets left", 400, 32,Color.WHITE);
}
private void drawStarfield(Graphics2D g,Star so)
{
Image image=so.getFrame();
if(image==null)
return;
Vector2 pos=so.getPos();
Vector2 screenScale=transformScale(new Vector2(so.getWidth(),so.getHeight()));
g.drawImage(image,(int)(pos.x*screen.width-screenScale.x/2),
(int)(pos.y*screen.height-screenScale.y/2),
(int)screenScale.x,(int)screenScale.y,null);
}
public Vector2 transformScale(Vector2 vec)
{
return new Vector2(vec.x*screen.width/viewport.width,vec.y*screen.height/viewport.height);
}
/** given a vector2 in world space, transform it to screen coordinates
* @param vec The Vector2 of an object in world space
* @return The Vector2 in screen space
**/
public Vector2 transformVector(Vector2 vec)
{
return new Vector2(transformSingleDimension(vec.x,viewport.left,viewport.right,screen.width),
transformSingleDimension(vec.y,viewport.top,viewport.bottom,screen.height));
}
/** transform a single dimension based on viewport bounds and screen size
*
**/
private double transformSingleDimension(double value,double viewRangeFrom,double viewRangeTo,double screenLength)
{
return (value-viewRangeFrom)*(screenLength)/(viewRangeTo-viewRangeFrom);
}
/** Transform a coordinate 'value' into a screen space coordinate
* @param value The coordinate (single dimension)
* @param viewRangeFrom Left side of the viewport
* @param viewRangeTo Right side of the viewport
* @param screenLeft Left side of the screen space
* @param screenRight Right side of screen space
* @return The transformed coordinate, now in screen space
**/
public static double transformSingleDimension(double value,double viewRangeFrom,double viewRangeTo,double screenLeft,double screenRight)
{
return (value-viewRangeFrom)*(screenRight-screenLeft)/(viewRangeTo-viewRangeFrom)+screenLeft;
}
///Whenever an event happens, update the binary input
public void mousePressed(MouseEvent e)
{
if(binaryInput!=null)
binaryInput.buttonChanged(true);
requestFocus();
}
public void mouseEntered(MouseEvent e){}
public void mouseReleased(MouseEvent e)
{
if(binaryInput!=null)
binaryInput.buttonChanged(false);
}
public void mouseClicked(MouseEvent e){}
public void mouseExited(MouseEvent e)
{
if(binaryInput!=null)
binaryInput.buttonChanged(false);
}
public void keyPressed(KeyEvent e)
{
if(e.getKeyCode()==27)///27=esc, 32=space
System.exit(0);
if(binaryInput!=null)
binaryInput.buttonChanged(true);
}
public void keyReleased(KeyEvent e)
{
if(binaryInput!=null)
binaryInput.buttonChanged(false);
}
public void keyTyped(KeyEvent e){}
} | [
"bachelde@ff245518-688a-11de-a9b1-77b8bb241e6b"
] | bachelde@ff245518-688a-11de-a9b1-77b8bb241e6b |
10093ef48143cecb289e7efc59ac05e18c32a7c8 | 55b93ddeb025281f1e5bdfa165cb5074ec622544 | /graphsdk/src/main/java/com/microsoft/graph/generated/IBaseOnenoteResourceCollectionRequest.java | 213ef3b27d8b3cc0863a3f43bbf5adfa05bc2ed2 | [
"MIT"
] | permissive | Glennmen/msgraph-sdk-android | 7c13e8367fb6cb7bb9a655860a4c14036601296b | cb774abbaa1abde0c63229a70256b3d97f212a3e | refs/heads/master | 2020-03-30T15:56:29.622277 | 2018-10-03T09:07:00 | 2018-10-03T09:07:00 | 151,386,422 | 1 | 0 | NOASSERTION | 2018-10-03T09:03:00 | 2018-10-03T09:02:59 | null | UTF-8 | Java | false | false | 1,867 | java | // ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
package com.microsoft.graph.generated;
import com.microsoft.graph.concurrency.*;
import com.microsoft.graph.core.*;
import com.microsoft.graph.extensions.*;
import com.microsoft.graph.http.*;
import com.microsoft.graph.generated.*;
import com.microsoft.graph.options.*;
import com.microsoft.graph.serializer.*;
import java.util.Arrays;
import java.util.EnumSet;
// **NOTE** This file was generated by a tool and any changes will be overwritten.
/**
* The interface for the Base Onenote Resource Collection Request.
*/
public interface IBaseOnenoteResourceCollectionRequest {
void get(final ICallback<IOnenoteResourceCollectionPage> callback);
IOnenoteResourceCollectionPage get() throws ClientException;
void post(final OnenoteResource newOnenoteResource, final ICallback<OnenoteResource> callback);
OnenoteResource post(final OnenoteResource newOnenoteResource) throws ClientException;
/**
* Sets the expand clause for the request
*
* @param value The expand clause
* @return The updated request
*/
IOnenoteResourceCollectionRequest expand(final String value);
/**
* Sets the select clause for the request
*
* @param value The select clause
* @return The updated request
*/
IOnenoteResourceCollectionRequest select(final String value);
/**
* Sets the top value for the request
*
* @param value The max number of items to return
* @return The updated request
*/
IOnenoteResourceCollectionRequest top(final int value);
}
| [
"c.bales@outlook.com"
] | c.bales@outlook.com |
4c59a3d7ab9e9497cd24b3530959dc71a236ead2 | 10535e4ebeeac5bc2fb6e852aff1066d1dcfe0f3 | /xcr-web/xcr-web-app/src/main/java/com/yatang/xc/xcr/dto/inputs/EditNewGoodsDto.java | 33f4544801747f0355434368cb7b029433fbbbc1 | [] | no_license | pocketbbaa/XCR | c6b3b08a432a7af2e5396f3551ad82133dc1af6b | 03940b44cb6aa733657609f372ca3c4d5e81165a | refs/heads/master | 2021-04-03T07:09:40.935591 | 2018-03-09T06:43:27 | 2018-03-09T06:43:27 | 124,474,053 | 2 | 3 | null | null | null | null | UTF-8 | Java | false | false | 3,696 | java | package com.yatang.xc.xcr.dto.inputs;
import java.io.Serializable;
/**
* @Author : BobLee
* @CreateTime : 2017年12月08日 14:38
* @Summary : 编辑商品v2.6
*/
@SuppressWarnings("serial")
public class EditNewGoodsDto implements Serializable {
/**
* 用户ID
*/
private String userId;
/**
* 门店编号
*/
private String storeSerialNo;
/**
* TOKEN
*/
private String token;
/**
* 商品Id
*/
private String goodsId;
/**
* 1:自建商品、2:非自建商品
*商品类别
*/
private Integer goodsType;
/**
* 自建商品可修改
*商品名称
*/
private String goodsName;
/**
*商品条码
*/
private String goodsCode;
/**
* 商品简码
* 为称重商品时才有
*/
private String goodsSimpleCode;
/**
*售价
*/
private String goodsPrice;
/**
*参考成本价
*/
private String costPrice;
/**
* 1:是,0:否
*是否称重商品
*/
private Integer isWeighingGoods;
/**
* 1:是,0:否
*是否允许退货
*/
private Integer isAllowReturn;
/**
*1:上架,0:下架
*商品上下架状态
*/
private Integer frameType;
/**
*备注
*/
private String remark;
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
public String getStoreSerialNo() {
return storeSerialNo;
}
public void setStoreSerialNo(String storeSerialNo) {
this.storeSerialNo = storeSerialNo;
}
public String getToken() {
return token;
}
public void setToken(String token) {
this.token = token;
}
public String getGoodsId() {
return goodsId;
}
public void setGoodsId(String goodsId) {
this.goodsId = goodsId;
}
public Integer getGoodsType() {
return goodsType;
}
public void setGoodsType(Integer goodsType) {
this.goodsType = goodsType;
}
public String getGoodsName() {
return goodsName;
}
public void setGoodsName(String goodsName) {
this.goodsName = goodsName;
}
public String getGoodsCode() {
return goodsCode;
}
public void setGoodsCode(String goodsCode) {
this.goodsCode = goodsCode;
}
public String getGoodsSimpleCode() {
return goodsSimpleCode;
}
public void setGoodsSimpleCode(String goodsSimpleCode) {
this.goodsSimpleCode = goodsSimpleCode;
}
public String getGoodsPrice() {
return goodsPrice;
}
public void setGoodsPrice(String goodsPrice) {
this.goodsPrice = goodsPrice;
}
public String getCostPrice() {
return costPrice;
}
public void setCostPrice(String costPrice) {
this.costPrice = costPrice;
}
public Integer getIsWeighingGoods() {
return isWeighingGoods;
}
public void setIsWeighingGoods(Integer isWeighingGoods) {
this.isWeighingGoods = isWeighingGoods;
}
public Integer getIsAllowReturn() {
return isAllowReturn;
}
public void setIsAllowReturn(Integer isAllowReturn) {
this.isAllowReturn = isAllowReturn;
}
public Integer getFrameType() {
return frameType;
}
public void setFrameType(Integer frameType) {
this.frameType = frameType;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
}
| [
"541230721@qq.com"
] | 541230721@qq.com |
b64f111a9f6220efcada9ab2798fa12c987605a9 | 17f7a42585380a613808f46af1668f79a4e0c1a5 | /jpa_1/src/main/java/adrianbugfixer/workshop/jpa/CreateEmployee.java | ffe1270df36b306797bbe11468cc638f6b3bbb91 | [] | no_license | adrianbugfixer/workshop | c5491e4a8f82a03cb80f76211b7cf32ec8f974eb | 20aebbdc8611f503c0f4a1aece377cbc4d783c44 | refs/heads/master | 2020-11-30T18:39:47.038400 | 2016-09-18T19:06:01 | 2016-09-18T19:06:01 | 66,872,649 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 779 | java | package adrianbugfixer.workshop.jpa;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import adrianbugfixer.workshop.jpa.Employee;
public class CreateEmployee {
public static void main(String[] args) {
EntityManagerFactory emfactory = Persistence.createEntityManagerFactory("Eclipselink_JPA");
EntityManager entitymanager = emfactory.createEntityManager();
entitymanager.getTransaction().begin();
Employee employee = new Employee();
employee.setEid(1201);
employee.setEname("Gopal");
employee.setSalary(40000);
employee.setDeg("Technical Manager");
entitymanager.persist(employee);
entitymanager.getTransaction().commit();
entitymanager.close();
emfactory.close();
}
}
| [
"adrian.bugfixer@gmail.com"
] | adrian.bugfixer@gmail.com |
01faf1bfa76ad6438d2f1eb0f8c26e80f1820993 | 77171414b40ec92bb0de71dd49c33b78f3840f31 | /app/src/main/java/com/slb/ttdandroidframework/command/mode2/Mode2AvailablePidsCommand_01_20.java | 2269e6b48dbaa7e89d6ccfe000b22eb4fa7e4162 | [] | no_license | 154336119/obd-Android | 59903e39c8f3b3094cf2039d667510ee494f4db7 | 981480c20fa2027fa6fb2f59789a3c9a0e7fd937 | refs/heads/master | 2020-03-19T20:18:49.516245 | 2019-09-10T07:12:12 | 2019-09-10T07:12:12 | 136,895,923 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,584 | java | package com.slb.ttdandroidframework.command.mode2;
import com.github.pires.obd.commands.ObdCommand;
import com.slb.ttdandroidframework.util.ByteUtils;
import org.apache.commons.lang3.StringUtils;
import java.util.ArrayList;
import java.util.List;
/**
* Created by mabin on 2018-09-07.
*/
public class Mode2AvailablePidsCommand_01_20 extends ObdCommand {
public Mode2AvailablePidsCommand_01_20() {
super("02 00 00");
}
@Override
protected void performCalculations() {
}
@Override
public String getFormattedResult() {
//计算可用的Test ID
String availableRawData = getCalculatedResult();
System.out.println("---> "+availableRawData);
StringBuffer sb = new StringBuffer();
for(int start=0; start<availableRawData.length(); start+=2){
String hex = availableRawData.substring(start,start+2);
String binary = ByteUtils.hexStr2BinStr(hex);
sb.append(binary);
}
List<String> availablePids = new ArrayList<>();
for ( int i=0; i<sb.length(); i++){
if ( sb.charAt(i) == '1' ){
String pid = Integer.toHexString(i).length() == 1 ? "0"+Integer.toHexString(i):Integer.toHexString(i);
availablePids.add(pid);
}
}
return StringUtils.join(availablePids.toArray(),",");
}
@Override
public String getCalculatedResult() {
return rawData.substring(6);
}
@Override
public String getName() {
return "Mode5AvailablePidsCommand_01_20";
}
}
| [
"154336119@qq.com"
] | 154336119@qq.com |
04ef78171338bb71a98941db68bca808b8812650 | 6599f424da075fa9d1fe7ef12174e7abe542256e | /android/app/src/debug/java/com/reducerapp/ReactNativeFlipper.java | 4d802c49e64788c91c3c694a0ddc04e19f26dc07 | [] | no_license | dhruvpadsala/reducerPro | 7ff8e688bc6a67b87543fc725d92c1fd24ed17ad | e6fe7b8e8b6249cc4e2deb7e63c33b85a690db4d | refs/heads/master | 2023-07-10T11:03:36.350935 | 2021-09-01T07:26:27 | 2021-09-01T07:26:27 | 401,966,544 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,265 | java | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* <p>This source code is licensed under the MIT license found in the LICENSE file in the root
* directory of this source tree.
*/
package com.reducerapp;
import android.content.Context;
import com.facebook.flipper.android.AndroidFlipperClient;
import com.facebook.flipper.android.utils.FlipperUtils;
import com.facebook.flipper.core.FlipperClient;
import com.facebook.flipper.plugins.crashreporter.CrashReporterPlugin;
import com.facebook.flipper.plugins.databases.DatabasesFlipperPlugin;
import com.facebook.flipper.plugins.fresco.FrescoFlipperPlugin;
import com.facebook.flipper.plugins.inspector.DescriptorMapping;
import com.facebook.flipper.plugins.inspector.InspectorFlipperPlugin;
import com.facebook.flipper.plugins.network.FlipperOkhttpInterceptor;
import com.facebook.flipper.plugins.network.NetworkFlipperPlugin;
import com.facebook.flipper.plugins.react.ReactFlipperPlugin;
import com.facebook.flipper.plugins.sharedpreferences.SharedPreferencesFlipperPlugin;
import com.facebook.react.ReactInstanceManager;
import com.facebook.react.bridge.ReactContext;
import com.facebook.react.modules.network.NetworkingModule;
import okhttp3.OkHttpClient;
public class ReactNativeFlipper {
public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) {
if (FlipperUtils.shouldEnableFlipper(context)) {
final FlipperClient client = AndroidFlipperClient.getInstance(context);
client.addPlugin(new InspectorFlipperPlugin(context, DescriptorMapping.withDefaults()));
client.addPlugin(new ReactFlipperPlugin());
client.addPlugin(new DatabasesFlipperPlugin(context));
client.addPlugin(new SharedPreferencesFlipperPlugin(context));
client.addPlugin(CrashReporterPlugin.getInstance());
NetworkFlipperPlugin networkFlipperPlugin = new NetworkFlipperPlugin();
NetworkingModule.setCustomClientBuilder(
new NetworkingModule.CustomClientBuilder() {
@Override
public void apply(OkHttpClient.Builder builder) {
builder.addNetworkInterceptor(new FlipperOkhttpInterceptor(networkFlipperPlugin));
}
});
client.addPlugin(networkFlipperPlugin);
client.start();
// Fresco Plugin needs to ensure that ImagePipelineFactory is initialized
// Hence we run if after all native modules have been initialized
ReactContext reactContext = reactInstanceManager.getCurrentReactContext();
if (reactContext == null) {
reactInstanceManager.addReactInstanceEventListener(
new ReactInstanceManager.ReactInstanceEventListener() {
@Override
public void onReactContextInitialized(ReactContext reactContext) {
reactInstanceManager.removeReactInstanceEventListener(this);
reactContext.runOnNativeModulesQueueThread(
new Runnable() {
@Override
public void run() {
client.addPlugin(new FrescoFlipperPlugin());
}
});
}
});
} else {
client.addPlugin(new FrescoFlipperPlugin());
}
}
}
}
| [
"dhruvmpadsala19@gmail.com"
] | dhruvmpadsala19@gmail.com |
2ea90e3d37826c745eb1115f471c40ba1d8dfe42 | 2640c34d161600de72bfbb5acd7f10bc323b0398 | /gravitee-am-model/src/main/java/io/gravitee/am/model/flow/Flow.java | 3fda5183d20ba7b833f7ded00c107e34a33d7949 | [
"Apache-2.0"
] | permissive | tiagoros/gravitee-access-management | 2f78c88c6d0a9d4f1bd6b3850410fdcf107f8ddf | fb0e9cffa49dfae9083debe8560081548ca5e473 | refs/heads/master | 2023-07-28T07:37:11.971492 | 2021-08-31T14:24:21 | 2021-09-07T14:42:05 | 404,282,714 | 0 | 0 | Apache-2.0 | 2021-09-08T09:12:18 | 2021-09-08T09:12:17 | null | UTF-8 | Java | false | false | 5,085 | java | /**
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.gravitee.am.model.flow;
import io.gravitee.am.model.ReferenceType;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
* @author Titouan COMPIEGNE (titouan.compiegne at graviteesource.com)
* @author GraviteeSource Team
*/
public class Flow {
/**
* Flow technical id
*/
private String id;
/**
* The type of reference the flow is attached to (for now, should be DOMAIN).
*/
private ReferenceType referenceType;
/**
* The id of the reference the flow is attached to (for now, should be the domain id).
*/
private String referenceId;
/**
* The application id the flow is attached to (if flow is defined at application level).
*/
private String application;
/**
* Flow name
*/
private String name;
/**
* execution order of the flow if multiple flows with the same 'type' exist
*/
private Integer order;
/**
* Flow pre steps
*/
private List<Step> pre = new ArrayList<>();
/**
* Flow post steps
*/
private List<Step> post = new ArrayList<>();
/**
* Flow state
*/
private boolean enabled;
/**
* The type of flow
*/
private Type type;
/**
* Condition attached to the Flow
*/
private String condition;
/**
* Flow created date
*/
private Date createdAt;
/**
* Flow updated date
*/
private Date updatedAt;
public Integer getOrder() {
return order;
}
public void setOrder(Integer order) {
this.order = order;
}
public Flow() {
}
public Flow(Flow other) {
this.id = other.id;
this.referenceType = other.referenceType;
this.referenceId = other.referenceId;
this.application = other.application;
this.name = other.name;
this.pre = other.pre;
this.post = other.post;
this.enabled = other.enabled;
this.type = other.type;
this.order = other.getOrder();
this.condition = other.condition;
this.createdAt = other.createdAt;
this.updatedAt = other.updatedAt;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public ReferenceType getReferenceType() {
return referenceType;
}
public void setReferenceType(ReferenceType referenceType) {
this.referenceType = referenceType;
}
public String getReferenceId() {
return referenceId;
}
public void setReferenceId(String referenceId) {
this.referenceId = referenceId;
}
public String getApplication() {
return application;
}
public void setApplication(String application) {
this.application = application;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public List<Step> getPre() {
return pre;
}
public void setPre(List<Step> pre) {
this.pre = pre;
}
public List<Step> getPost() {
return post;
}
public void setPost(List<Step> post) {
this.post = post;
}
public boolean isEnabled() {
return enabled;
}
public void setEnabled(boolean enabled) {
this.enabled = enabled;
}
public Type getType() {
return type;
}
public void setType(Type type) {
this.type = type;
}
public String getCondition() {
return condition;
}
public void setCondition(String condition) {
this.condition = condition;
}
public Date getCreatedAt() {
return createdAt;
}
public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
}
public Date getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(Date updatedAt) {
this.updatedAt = updatedAt;
}
@Override
public String toString() {
return "{\"_class\":\"Flow\", " +
"\"id\":" + (id == null ? "null" : "\"" + id + "\"") + ", " +
"\"referenceType\":" + (referenceType == null ? "null" : referenceType) + ", " +
"\"referenceId\":" + (referenceId == null ? "null" : "\"" + referenceId + "\"") + ", " +
"\"name\":" + (name == null ? "null" : "\"" + name + "\"") +
"}";
}
}
| [
"titouan.compiegne@gmail.com"
] | titouan.compiegne@gmail.com |
06c81e6a6c4d3ac1ef872e66905aae1642b703e7 | 017e703af8618d921f32e1c18db7c91dcb055f96 | /app/build/generated/data_binding_base_class_source_out/release/out/br/com/pibsantalucia/databinding/AppBarMainBinding.java | 4d174d912f80989a9c414d4568f2956504f0cc60 | [] | no_license | aguedesrj/pibsantalucia-android-kotlin | 48560489366e60cee76dfa09759ef5f8d254465c | c216e679fb843596b9d24c5686e9838094e26c67 | refs/heads/master | 2022-12-16T00:44:53.231424 | 2020-09-17T12:27:57 | 2020-09-17T12:27:57 | 296,161,864 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 2,028 | java | // Generated by view binder compiler. Do not edit!
package br.com.pibsantalucia.databinding;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.widget.Toolbar;
import androidx.coordinatorlayout.widget.CoordinatorLayout;
import androidx.viewbinding.ViewBinding;
import br.com.pibsantalucia.R;
import java.lang.NullPointerException;
import java.lang.Override;
import java.lang.String;
public final class AppBarMainBinding implements ViewBinding {
@NonNull
private final CoordinatorLayout rootView;
@NonNull
public final Toolbar toolbar;
private AppBarMainBinding(@NonNull CoordinatorLayout rootView, @NonNull Toolbar toolbar) {
this.rootView = rootView;
this.toolbar = toolbar;
}
@Override
@NonNull
public CoordinatorLayout getRoot() {
return rootView;
}
@NonNull
public static AppBarMainBinding inflate(@NonNull LayoutInflater inflater) {
return inflate(inflater, null, false);
}
@NonNull
public static AppBarMainBinding inflate(@NonNull LayoutInflater inflater,
@Nullable ViewGroup parent, boolean attachToParent) {
View root = inflater.inflate(R.layout.app_bar_main, parent, false);
if (attachToParent) {
parent.addView(root);
}
return bind(root);
}
@NonNull
public static AppBarMainBinding bind(@NonNull View rootView) {
// The body of this method is generated in a way you would not otherwise write.
// This is done to optimize the compiled bytecode for size and performance.
int id;
missingId: {
id = R.id.toolbar;
Toolbar toolbar = rootView.findViewById(id);
if (toolbar == null) {
break missingId;
}
return new AppBarMainBinding((CoordinatorLayout) rootView, toolbar);
}
String missingId = rootView.getResources().getResourceName(id);
throw new NullPointerException("Missing required view with ID: ".concat(missingId));
}
}
| [
"aguedes.rj@hotmail.com"
] | aguedes.rj@hotmail.com |
37c9547d545b3a45d54c80b73e70be1cb8a9ff5f | cda2d33d7216b42f06b79343099bb83c6dac5f73 | /src/Main.java | 33217005f6458ede802240e228cf71ce8caf4fb7 | [] | no_license | OrnrakweeSuvanptum/Exercise-4 | 358f2ae12bc4ed0996514aa80e9d64eb833084a6 | adac8b6227a7012e9163ae74cb65500262223c9a | refs/heads/master | 2023-04-10T01:35:43.412478 | 2021-04-20T17:47:11 | 2021-04-20T17:47:11 | 359,903,095 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,186 | java |
public class Main {
public static void main(String[] args) {
Iphone I = new Iphone();
System.out.println("Size: " + I.getSize() + "inches");
System.out.println("Thickness: " + I.getThickness() + "mm");
System.out.println("Weight: " + I.getWeight() + "g");
System.out.println("Brand: " + I.getBrand());
System.out.println("Operating System: " + I.getOperatingSystem());
System.out.println("SIM type: " + I.getSIM());
System.out.println("RAM: " + I.getRAM() + "gb");
System.out.println("Storage: " + I.getStorage() + "gb");
System.out.println("Price: RM" + I.getPrice());
System.out.println();
Oppo O = new Oppo();
System.out.println("Size: " + O.getSize() + "inches");
System.out.println("Thickness: " + O.getThickness() + "mm");
System.out.println("Weight: " + O.getWeight() + "g");
System.out.println("Brand: " + O.getBrand());
System.out.println("Operating System: " + O.getOperatingSystem());
System.out.println("SIM type: " + O.getSIM());
System.out.println("RAM: " + O.getRAM() + "gb");
System.out.println("Storage: " + O.getStorage() + "gb");
System.out.println("Price: RM" + O.getPrice());
}
}
| [
"User@LAPTOP-TA8UATAL"
] | User@LAPTOP-TA8UATAL |
0d0a8b1fc73c6e52c38657bd8b3cb03c4c640fb4 | da5fe1cce457989ac5b5b1dfa8e00477f8a8fd98 | /src/main/java/com/itszt/config/JdbcConfiguration.java | a2b95cb98b0668f958d32abea818c7f82881df4e | [] | no_license | CV-Engineer/Fudk2 | 50e2af87d779f1ba479b87431cedd96fbb1fab69 | 0598be3bb4f4f884126e1dd46817bda36407928c | refs/heads/master | 2021-02-07T07:39:12.934279 | 2020-02-29T16:02:19 | 2020-02-29T16:02:19 | 243,998,304 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 934 | java | package com.itszt.config;
import com.alibaba.druid.pool.DruidDataSource;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
@Configuration
@PropertySource("classpath:jdbc.properties")
public class JdbcConfiguration {
@Value("${jdbc.url}")
String url;
@Value("${jdbc.driverClassName}")
String driverClassName;
@Value("${jdbc.username}")
String username;
@Value("${jdbc.password}")
String password;
@Bean
public DruidDataSource dataSource() {
DruidDataSource dataSource = new DruidDataSource();
dataSource.setUrl(url);
dataSource.setDriverClassName(driverClassName);
dataSource.setUsername(username);
dataSource.setPassword(password);
return dataSource;
}
} | [
"CV-Engineer"
] | CV-Engineer |
df7ce43551ed7d2cc51add02bffc64ae97c84548 | 86cd25b947c3db473bab505db52b98e508277acd | /src/main/java/com/knauff/controller/UserController.java | 1912aa0b321f3412a2ba23af8d2e4cca1aadbb99 | [] | no_license | dknauffHCL/Phase1Proj | 90793e334a6ac9c36c6fe8a5ffad5feddd70ee6c | 5e6f7f29f516d56cee82cc46b336dee107d6e6f5 | refs/heads/main | 2023-05-23T08:38:31.995305 | 2021-06-04T20:35:24 | 2021-06-04T20:35:24 | 373,942,667 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,714 | java | package com.knauff.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.PostMapping;
import com.knauff.model.User;
import com.knauff.service.SecurityService;
import com.knauff.service.UserService;
import com.knauff.validator.UserValidator;
@Controller
public class UserController {
@Autowired
private UserService userService;
@Autowired
private SecurityService securityService;
@Autowired
private UserValidator userValidator;
@GetMapping("/register")
public String register(Model model) {
model.addAttribute("userForm", new User());
return "register";
}
@PostMapping("/register")
public String register(@ModelAttribute("userForm") User userForm, BindingResult bindingResult) {
userValidator.validate(userForm, bindingResult);
if (bindingResult.hasErrors()) {
return "register";
}
userService.save(userForm);
securityService.autoLogin(userForm.getUsername(), userForm.getPasswordConfirm());
return "redirect:/home";
}
@GetMapping("/login")
public String login(Model model, String error, String logout) {
if (error != null) {
model.addAttribute("error", "Your username or password is invalid.");
}
if (logout != null) {
model.addAttribute("message", "You have logged out successfully!");
}
return "login";
}
@GetMapping({"/", "/home"})
public String home(Model model) {
return "home";
}
}
| [
"daniel.knauff@hcl.com"
] | daniel.knauff@hcl.com |
e40f13f4d1ffd855fc451730ce1044599c07ac38 | 1e9d9f2a1f49fe6ad543f9c199bbfbfaa05b75f7 | /src/main/java/org/mitre/cybox/common_2/PersonnelType.java | 402f53bec8949d28b1f80f8e006963530649264a | [] | no_license | raydogg779/Java_Stix | 7ceec4bbc92d95fe04b7684070c7b407e5f62366 | 0df279a4f2a5dab3567d34842e58fcd13c41f286 | refs/heads/master | 2021-01-20T21:56:54.967406 | 2014-04-09T21:21:28 | 2014-04-09T21:21:28 | 23,079,250 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,370 | java | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2014.04.09 at 05:02:22 PM EDT
//
package org.mitre.cybox.common_2;
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;
/**
* The PersonnelType is an abstracted data type to standardize the description of sets of personnel.
*
* <p>Java class for PersonnelType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="PersonnelType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Contributor" type="{http://cybox.mitre.org/common-2}ContributorType" maxOccurs="unbounded"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PersonnelType", propOrder = {
"contributor"
})
public class PersonnelType {
@XmlElement(name = "Contributor", required = true)
protected List<ContributorType> contributor;
/**
* Gets the value of the contributor 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 contributor property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getContributor().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link ContributorType }
*
*
*/
public List<ContributorType> getContributor() {
if (contributor == null) {
contributor = new ArrayList<ContributorType>();
}
return this.contributor;
}
}
| [
"tscheponik@gmail.com"
] | tscheponik@gmail.com |
a06e683ea40482c89aca9c914445df60477902be | 6c07762b53597858e243d9f5d3449ecbaf5dc801 | /UBL2.1/src/oasis/names/specification/ubl/schema/xsd/commonbasiccomponents_2/ProfileIDType.java | 3b5a404650080eaf0c22cc15a08591c1bd7a5c2f | [] | no_license | edwinrjrc/RHCProy2.1 | 9823806a62bb754a870cd7f5fa84d1bc482fbde2 | 4aa28e21f0d499a71f18bb8d1b2b06a3a5bef22a | refs/heads/master | 2020-03-28T22:19:08.113338 | 2019-06-23T04:36:52 | 2019-06-23T04:36:52 | 149,223,588 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Java | false | false | 1,317 | java | //
// Este archivo ha sido generado por la arquitectura JavaTM para la implantación de la referencia de enlace (JAXB) XML v2.2.8-b130911.1802
// Visite <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Todas las modificaciones realizadas en este archivo se perderán si se vuelve a compilar el esquema de origen.
// Generado el: 2018.09.09 a las 12:31:18 PM COT
//
package oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
import oasis.names.specification.ubl.schema.xsd.unqualifieddatatypes_2.IdentifierType;
/**
* <p>Clase Java para ProfileIDType complex type.
*
* <p>El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
*
* <pre>
* <complexType name="ProfileIDType">
* <simpleContent>
* <extension base="<urn:oasis:names:specification:ubl:schema:xsd:UnqualifiedDataTypes-2>IdentifierType">
* </extension>
* </simpleContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ProfileIDType")
public class ProfileIDType
extends IdentifierType
{
}
| [
"edwinrjrc@gmail.com"
] | edwinrjrc@gmail.com |
73b7a4b00d04925d81bba07ef538e25cbfea3a21 | a8452cc2b5663dd5b0928169936c223374c7f0d6 | /app/src/main/java/com/dom/player/utils/MediaUtil.java | 3e85c456f9224f5aa58e6d9d7433a9624a019b93 | [] | no_license | chenanddom/MusicPlayer2 | d7920fcc95f729b9a47723ab0d1934a5914f848a | 705a413f7b85ac3453d9b702dee983d1de82f9ed | refs/heads/master | 2020-12-24T10:40:05.766888 | 2016-11-14T03:30:51 | 2016-11-14T03:30:51 | 73,140,827 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 7,893 | java | package com.dom.player.utils;
import android.content.ContentResolver;
import android.content.ContentUris;
import android.content.Context;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.net.Uri;
import android.os.ParcelFileDescriptor;
import android.provider.MediaStore;
import com.dom.player.bean.Song;
import java.io.FileDescriptor;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import player.dom.com.musicplayer.R;
/**
* Created by chendom on 16-11-8.
*/
/**
* 怎样获取图片的大小?
* 首先我们把这个图片转成Bitmap,然后再利用Bitmap的getWidth()和getHeight()方法就可以取到图片的宽高了。
* 新问题又来了,在通过BitmapFactory.decodeFile(String path)方法将突破转成Bitmap时,遇到大一些的图片,我们经常会遇到OOM(Out Of Memory)的问题。怎么避免它呢?
* 这就用到了我们上面提到的BitmapFactory.Options这个类。
* <p>
* BitmapFactory.Options这个类,有一个字段叫做 inJustDecodeBounds 。SDK中对这个成员的说明是这样的:
* If set to true, the decoder will return null (no bitmap), but the out…
* 也就是说,如果我们把它设为true,那么BitmapFactory.decodeFile(String path, Options opt)并不会真的返回一个Bitmap给你,它仅仅会把它的宽,高取回来给你,这样就不会占用太多的内存,也就不会那么频繁的发生OOM了。
*/
public class MediaUtil {
private static final Uri albumArtUri = Uri.parse("content://media/external/audio/albumart");
public static ArrayList<Song> getAllSongs(Context context) {
Cursor cursor = context.getContentResolver().query(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, null, null, null, MediaStore.Audio.Media.DEFAULT_SORT_ORDER);
ArrayList<Song> mp3Infos = new ArrayList<Song>();
for (int i = 0; i < cursor.getCount(); i++) {
cursor.moveToNext();
Song mp3Info = new Song();
long id = cursor.getLong(cursor.getColumnIndex(MediaStore.Audio.Media._ID));//get music's id
String title = cursor.getString(cursor.getColumnIndex(MediaStore.Audio.Media.TITLE));//get music's title
String artist = cursor.getString(cursor.getColumnIndex(MediaStore.Audio.Media.ARTIST));//get music's artist
String album = cursor.getString(cursor.getColumnIndex(MediaStore.Audio.Media.ALBUM));
String displayeName = cursor.getString(cursor.getColumnIndex(MediaStore.Audio.Media.DISPLAY_NAME));
long albumId = cursor.getInt(cursor.getColumnIndex(MediaStore.Audio.Media.ALBUM_ID));
long duration = cursor.getLong(cursor.getColumnIndex(MediaStore.Audio.Media.DURATION));
long size = cursor.getLong(cursor.getColumnIndex(MediaStore.Audio.Media.SIZE));
String url = cursor.getString(cursor.getColumnIndex(MediaStore.Audio.Media.DATA));
int isMusic = cursor.getInt(cursor.getColumnIndex(MediaStore.Audio.Media.IS_MUSIC));
if (isMusic != 0) {
mp3Info.setId(id);
mp3Info.setTitle(title);
mp3Info.setArtist(artist);
mp3Info.setAlbum(album);
mp3Info.setDispalyeName(displayeName);
mp3Info.setAlbumId(albumId);
mp3Info.setDuration(duration);
mp3Info.setSize(size);
mp3Info.setUrl(url);
mp3Infos.add(mp3Info);
}
}
return mp3Infos;
}
public static String formatTimer(long time) {
String min = time / (1000 * 60) + "";
String sec = time % (1000 * 60) + "";
if (min.length() < 2) {
min = "0" + time / (1000 * 60) + "";
} else {
sec = time / (1000 * 60) + "";
}
if (sec.length() == 4) {
sec = "0" + (time % (1000 * 60)) + "";
} else if (sec.length() == 3) {
sec = "00" + (time % (1000 * 60)) + "";
} else if (sec.length() == 2) {
sec = "000" + (time % (1000 * 60)) + "";
} else if (sec.length() == 1) {
sec = "0000" + (time % (1000 * 60)) + "";
}
return min + ":" + sec.trim().substring(0, 2);
}
private static final Uri sArtworkUri = Uri.parse("content://media/external/audio/albumart");
private static final BitmapFactory.Options sBitmapOptions = new BitmapFactory.Options();
public static final Bitmap getArtwork(Context context, long songId, long albumId, boolean allowdefault) {
if (albumId < 0) {
if (songId >= 0) {
// Bitmap bmp = get
Bitmap bmp = getArtworkFromFile(context, songId, -1);
if (bmp != null) {
return bmp;
}
}
if (allowdefault) {
return getDefaulArtwork(context);
}
return null;
}
ContentResolver res = context.getContentResolver();
Uri uri = ContentUris.withAppendedId(sArtworkUri, albumId);
if (uri != null) {
InputStream in = null;
try {
in = res.openInputStream(uri);
Bitmap bm = BitmapFactory.decodeStream(in, null, sBitmapOptions);
if (bm == null) {
bm = getDefaulArtwork(context);
}
return bm;
} catch (Exception e) {
Bitmap bm = getArtworkFromFile(context, songId, albumId);
if (bm != null) {
if (bm.getConfig() == null) {
bm = bm.copy(Bitmap.Config.RGB_565, false);
if (bm == null && allowdefault) {
return getDefaulArtwork(context);
}
}
} else if (allowdefault) {
bm = getDefaulArtwork(context);
}
return bm;
} finally {
try {
if (in != null) {
in.close();
}
} catch (IOException e) {
e.printStackTrace();
}
}
}
return null;
}
private static Bitmap getArtworkFromFile(Context context, long songId, long albumId) {
Bitmap bmp = null;
if (albumId < 0 && songId < 0) {
throw new IllegalArgumentException("must specify an abum or a song id");
}
try {
if (albumId < 0) {
Uri uri = Uri.parse("content://media/external/audio/media/" + songId + "/albumart");
ParcelFileDescriptor pfd = context.getContentResolver().openFileDescriptor(uri, "r");
if (pfd != null) {
FileDescriptor fd = pfd.getFileDescriptor();
bmp = BitmapFactory.decodeFileDescriptor(fd);
}
} else {
Uri uri = ContentUris.withAppendedId(sArtworkUri, albumId);
ParcelFileDescriptor pfd = context.getContentResolver().openFileDescriptor(uri, "r");
if (pfd != null) {
FileDescriptor fd = pfd.getFileDescriptor();
bmp = BitmapFactory.decodeFileDescriptor(fd);
}
}
} catch (FileNotFoundException e) {
e.printStackTrace();
}
return bmp;
}
private static Bitmap getDefaulArtwork(Context context) {
BitmapFactory.Options opts = new BitmapFactory.Options();
opts.inPreferredConfig = Bitmap.Config.RGB_565;
return BitmapFactory.decodeStream(context.getResources().openRawResource(R.raw.icon_monkey), null, opts);
}
}
| [
"772571631@qq.com"
] | 772571631@qq.com |
3f9d7cd901656cc25c2e8c62cf1b44342b205c41 | e06e8b69fb0fbe76fc5032a9af5daaa5d507b692 | /src/util/E_Direction.java | 6bfc8d0b8b0a9599dffff03ff7c8e03b515e5d5a | [] | no_license | lashka12/Smarticle | 4aeb238f9978c7b288fc1dc533d0d290a91a9771 | 4e4a352d13beb8bc47a4207587522ce326d388c3 | refs/heads/master | 2021-01-08T05:37:18.977412 | 2020-02-20T16:24:09 | 2020-02-20T16:24:09 | 241,928,205 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 73 | java | package util;
public enum E_Direction {
LEFT,
RIGHT,
UP,
DOWN;
}
| [
"ashkar.lorans@gmail.com"
] | ashkar.lorans@gmail.com |
1df73ff0305dfa8bed3abe2ae6b029b8367cc125 | 8d1bcd17813e1f83905b93b1d82500c7a245945d | /app/src/androidTest/java/com/example/schoolanswer/ExampleInstrumentedTest.java | bf07154b7dc56b91e7543b34115064cf106f4e46 | [] | no_license | chenzquan/SchoolAnswer | f07cdbd46e470a915080e70311fb9f9ef5958621 | 670fdf9784251320df11ccdc538efcb14f196ecf | refs/heads/master | 2020-03-09T18:15:19.551743 | 2018-07-14T15:43:24 | 2018-07-14T15:43:24 | 128,927,726 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 778 | java | package com.example.schoolanswer;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumentation test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() throws Exception {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();
assertEquals("com.example.schoolanswer", appContext.getPackageName());
}
}
| [
"122705737@qq.com"
] | 122705737@qq.com |
4bbc2d94df4af80c308da6f4f2462e1f752849e0 | 327b1f1749413cf742268326049f23ffb16bc554 | /processor/src/test/java/org/mapstruct/ap/test/selection/qualifier/iterable/TopologyEntity.java | 8779cd85f5814b738dd8991b60cbc30519670c80 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | bedla/mapstruct | 76013e24ddc3c2fe98d580dd8fb3587c97ff58e8 | f94990270f12a506f6048d4d5fa68872c2c9a32d | refs/heads/master | 2021-01-14T11:20:36.482989 | 2016-12-06T21:37:30 | 2016-12-06T21:37:30 | 39,737,245 | 0 | 1 | null | 2016-12-07T08:54:19 | 2015-07-26T18:44:20 | Java | UTF-8 | Java | false | false | 1,260 | java | /**
* Copyright 2012-2016 Gunnar Morling (http://www.gunnarmorling.de/)
* and/or other contributors as indicated by the @authors tag. See the
* copyright.txt file in the distribution for a full listing of all
* contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.mapstruct.ap.test.selection.qualifier.iterable;
import java.util.List;
/**
*
* @author Sjaak Derksen
*/
public class TopologyEntity {
private List<TopologyFeatureEntity> topologyFeatures;
public List<TopologyFeatureEntity> getTopologyFeatures() {
return topologyFeatures;
}
public void setTopologyFeatures(List<TopologyFeatureEntity> topologyFeatures) {
this.topologyFeatures = topologyFeatures;
}
}
| [
"sjaakderksen@zonnet.nl"
] | sjaakderksen@zonnet.nl |
bdc7cd59bd18df20d50f166059084797b35acc2e | cfc09e6432b9674d200ffe25a3b3c70817bb9550 | /PracticeExamples/src/be/example/CollectionSort/Decorator.java | b489bd89875bab53110d2a1ba42b24286d39f31c | [] | no_license | cpandya23/PracticeExamples | 6b79946afcf4ba68bc83be7e52f5d7a5ca44397e | 504794f65e55f7557c29c43b69b896ef3c6fc672 | refs/heads/master | 2021-09-10T05:51:44.033412 | 2018-03-21T09:34:57 | 2018-03-21T09:34:57 | 112,001,403 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,586 | java | package CollectionSort;
public class Decorator {
public static void main(String[] args) {
Pizza p1= new PizzaMargheritta();
p1= new Jalepeno(p1);
p1= new Tomato(p1);
System.out.println(p1.getDescription());
System.out.println(p1.getCost());
}
}
abstract class Pizza{
String name;
public String description="Normal Pizza ";;
public String getDescription() {
return this.description;
}
public abstract int getCost();
}
class PizzaPaneer extends Pizza{
String name;
PizzaPaneer(){
this.description="Panner ";
}
public int getCost() {
return 100;
}
}
class PizzaMargheritta extends Pizza{
String name;
PizzaMargheritta(){
this.description="Margheritta ";
}
public int getCost() {
return 100;
}
}
abstract class PizzaDecorator extends Pizza{
public abstract String getDescription();
}
class Jalepeno extends PizzaDecorator{
Pizza p;
Jalepeno(Pizza in){
this.p=in;
}
@Override
public String getDescription() {
// TODO Auto-generated method stub
return this.p.getDescription()+"with Jalepeno ";
}
@Override
public int getCost() {
// TODO Auto-generated method stub
return this.p.getCost()+20;
}
}
class Tomato extends PizzaDecorator{
Pizza p;
Tomato(Pizza in){
this.p=in;
}
@Override
public String getDescription() {
// TODO Auto-generated method stub
return this.p.getDescription()+"with Tomato";
}
@Override
public int getCost() {
// TODO Auto-generated method stub
return this.p.getCost()+30;
}
} | [
"Chintan_Pandya@PUNITP396404D.ad.infosys.com"
] | Chintan_Pandya@PUNITP396404D.ad.infosys.com |
b352790f395e7b08060eeb11354f29339114d02a | 92f95b312658620a56b7e13ac8da549d84b955c9 | /src/main/java/com/usmanhussain/cayenne/utils/APItest.java | c884b48110a869d9e1950e994b5cecd184473728 | [] | no_license | KrishnaChay/testing | bd12ee6e6b741257ce87fbf02aec2b4633fbc90e | ba8af2303ca15b65348cc1a02df6ad07053a2076 | refs/heads/master | 2023-05-02T09:05:15.025480 | 2019-10-15T21:05:11 | 2019-10-15T21:05:11 | 134,308,463 | 0 | 0 | null | 2023-04-14T17:41:59 | 2018-05-21T18:23:47 | Java | UTF-8 | Java | false | false | 1,958 | java | package com.usmanhussain.cayenne.utils;
import io.restassured.RestAssured;
import io.restassured.http.Method;
import io.restassured.response.Response;
import io.restassured.specification.RequestSpecification;
import org.json.simple.parser.JSONParser;
import org.junit.Assert;
import java.util.Scanner;
public class APItest {
public String GetWeatherDetails() {
// Scanner s = new Scanner(System.in);
// System.out.println("Enter the Postcode");
// String input = s.nextLine();
RestAssured.useRelaxedHTTPSValidation();
RestAssured.baseURI = "https://amends.directline.com/dlg-mta-api/addr/postcode";
// RestAssured.baseURI = "https://dev-amends-directline.dlgdigitalservices.com/dlg-mta-api/addr/postcode/";
RequestSpecification httpRequest = RestAssured.given();
Response response = httpRequest.request(Method.GET, "BR14ER");
String responseBody = response.getBody().asString();
System.out.println("Response Body is => " + responseBody);
int statusCode = response.getStatusCode();
System.out.println(statusCode);
Assert.assertEquals("statuscode", statusCode, 200);
System.out.println(responseBody.split(":")[2]);
return responseBody;
}
public String vehicleDetails() {
RestAssured.useRelaxedHTTPSValidation();
RestAssured.baseURI = "https://amends.directline.com/dlg-mta-api/dvla/get/";
// RestAssured.baseURI = "https://dev-amends-directline.dlgdigitalservices.com/dlg-mta-api/addr/postcode/";
RequestSpecification httpRequest = RestAssured.given();
Response response = httpRequest.request(Method.GET, "ABC123");
String responseBody = response.getBody().asString();
System.out.println("Response Body is => " + responseBody);
int statusCode = response.getStatusCode();
System.out.println(statusCode);
return responseBody;
}
}
| [
"krishna.chaitanya@directlinegroup.co.uk"
] | krishna.chaitanya@directlinegroup.co.uk |
74d1a585c114a9f320502601a4b1aa011c8f5d8c | c32a51a6dcb7c329573d500f792c4927ad7d66b8 | /src/main/java/com/neu/edu/exception/PayInfoException.java | 7aa1801a71aaeefab85b99329d573a9af51281f8 | [] | no_license | mahak0712/e-commerce-skincare | 419aba64592bb9c87e4fbe6a710dc90666c0fdc2 | 4c01c9544ac18b2b87cd1a0805052d740b353ff8 | refs/heads/master | 2022-12-04T07:44:40.261726 | 2020-08-21T07:03:59 | 2020-08-21T07:03:59 | 289,201,295 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 279 | java | package com.neu.edu.exception;
public class PayInfoException extends Exception{
public PayInfoException(String message)
{
super("PayInfoException-"+message);
}
public PayInfoException(String message, Throwable cause)
{
super("PayInfoException-"+message,cause);
}
}
| [
"singh.maha@husky.neu.edu"
] | singh.maha@husky.neu.edu |
59e92e76928c1a94f469e50b64c5efde0b5c5d63 | c8ec156aff710230b23fcdcad3cff99e90ec43b1 | /src/test/java/jmind/pigg/binding/InvocationContextFactoryTest.java | 55561ee050fa1a436af8862a7933927a6c477652 | [
"Apache-2.0"
] | permissive | weiboxie/jmind-pigg | b13f7c98acb55cde74fabb31de2662b5abfd1cbe | 37a9d39042e15b214a2dbb2b4206be15da585ae9 | refs/heads/master | 2023-08-28T19:20:50.323692 | 2021-05-19T06:59:07 | 2021-05-19T06:59:07 | 415,533,073 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,807 | java | package jmind.pigg.binding;
import org.junit.Test;
import jmind.pigg.binding.BindingParameter;
import jmind.pigg.binding.BindingParameterInvoker;
import jmind.pigg.binding.DefaultParameterContext;
import jmind.pigg.binding.FunctionalBindingParameterInvoker;
import jmind.pigg.binding.InvocationContext;
import jmind.pigg.binding.InvocationContextFactory;
import jmind.pigg.binding.ParameterContext;
import jmind.pigg.descriptor.ParameterDescriptor;
import java.lang.annotation.Annotation;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;
/**
* @author xieweibo
*/
public class InvocationContextFactoryTest {
@Test
public void testNewInvocationContext() throws Exception {
List<Annotation> empty = Collections.emptyList();
ParameterDescriptor p0 = ParameterDescriptor.create(0, String.class, empty, "name");
ParameterDescriptor p1 = ParameterDescriptor.create(1, int.class, empty, "id");
List<ParameterDescriptor> pds = Arrays.asList(p0, p1);
ParameterContext paramCtx = DefaultParameterContext.create(pds);
InvocationContextFactory factory = InvocationContextFactory.create(paramCtx);
InvocationContext invCtx = factory.newInvocationContext(new Object[]{"ash", 9527});
BindingParameterInvoker nameInvoker =
FunctionalBindingParameterInvoker.create(String.class, BindingParameter.create("name", "", null));
BindingParameterInvoker idInvoker =
FunctionalBindingParameterInvoker.create(String.class, BindingParameter.create("id", "", null));
assertThat(invCtx.getNullableBindingValue(nameInvoker), equalTo((Object) "ash"));
assertThat(invCtx.getNullableBindingValue(idInvoker), equalTo((Object) 9527));
}
}
| [
"weibo.xwb@alibaba-inc.com"
] | weibo.xwb@alibaba-inc.com |
000394a1682496a376a2cc95725d7f168199465c | 2daf54172d8c80a648fb623871ee05433be0c1c1 | /23_EntryNodeInListLoop/src/EntryNodeDemo.java | f99963e2f6ea21be7521897b0a1d4d1f45398393 | [] | no_license | mannut2014/CodingInterviewJava | 5df0b3558a6eac945ecbf73e0a2bbf74ebb79c62 | 8f8e8f5e998b0250699477eee94c08e27ecca8a6 | refs/heads/master | 2022-11-11T03:59:20.053460 | 2020-06-18T12:37:03 | 2020-06-18T12:37:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,650 | java | public class EntryNodeDemo {
public void createList(ListNode head, int listLength, int loopEntry) {
ListNode temp = head;
ListNode tempEntry = null;
if(loopEntry == 1){
tempEntry = head;
}
for (int i = 1; i < listLength; i++) {
temp.next = new ListNode(i + 1);
if (i == loopEntry - 1) {
tempEntry = temp.next;
}
temp = temp.next;
}
temp.next = tempEntry;
}
public void printList(ListNode head, int listLength,int loopEntry) {
ListNode temp = head;
int i = 0;
while (i++ != listLength) {
if (i != listLength) {
if(i == loopEntry){
System.out.printf("%d(Loop entry) -> ", temp.value);
}else {
System.out.printf("%d -> ", temp.value);
}
} else {
if(i == loopEntry){
System.out.printf("%d(Loop entry)\n", temp.value);
}else {
System.out.printf("%d\n", temp.value);
}
}
temp = temp.next;
}
}
private ListNode meetingNode(ListNode head) {
if (head == null) {
System.out.println("Error: invalid input.");
return null;
}
ListNode slowNode = head.next;
if (slowNode == null) {
return null;
}
ListNode fastNode = slowNode.next;
while (fastNode != null && slowNode != null) {
if (fastNode == slowNode) {
return fastNode;
}
slowNode = slowNode.next;
fastNode = fastNode.next;
if (fastNode != null) {
fastNode = fastNode.next;
}
}
return null;
}
public ListNode entryNodeOfLoop(ListNode head) {
ListNode meetingNode = meetingNode(head);
if (meetingNode == null) {
return null;
}
int nodesInLoop = 1;
ListNode tempNode = meetingNode;
while (tempNode.next != meetingNode) {
tempNode = tempNode.next;
nodesInLoop++;
}
ListNode frontNode = head;
ListNode behindNode = head;
for (int i = 0; i < nodesInLoop; i++) {
frontNode = frontNode.next;
}
while (frontNode != behindNode) {
frontNode = frontNode.next;
behindNode = behindNode.next;
}
return frontNode;
}
}
| [
"kongheqing23@163.com"
] | kongheqing23@163.com |
c7f67206b63748984649d3f720bc7671488db7c6 | 4b6c2f4d4a6785dec980066474abf1f4cba3dfbc | /ServiceMobile/app/src/main/java/com/example/sam_madura/servicemobile/FragmentTab1.java | 39535c200f20744b5f26db55f76ef5c1187d34a3 | [] | no_license | DyanKudeta99/Aplikasi-Mobile | cda42ca129ef176ba2d2cd66481a863112e0ea7f | a79549b903f03bb411bdddd3f74c2f85f67d2511 | refs/heads/master | 2018-09-30T07:02:58.606547 | 2018-06-14T06:03:50 | 2018-06-14T06:03:50 | 125,166,543 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,637 | java | package com.example.sam_madura.servicemobile;
import android.content.Context;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
/**
* A simple {@link Fragment} subclass.
* Activities that contain this fragment must implement the
* {@link FragmentTab1.OnFragmentInteractionListener} interface
* to handle interaction events.
* Use the {@link FragmentTab1#newInstance} factory method to
* create an instance of this fragment.
*/
public class FragmentTab1 extends Fragment {
// TODO: Rename parameter arguments, choose names that match
// the fragment initialization parameters, e.g. ARG_ITEM_NUMBER
private static final String ARG_PARAM1 = "param1";
private static final String ARG_PARAM2 = "param2";
// TODO: Rename and change types of parameters
private String mParam1;
private String mParam2;
private OnFragmentInteractionListener mListener;
public FragmentTab1() {
// Required empty public constructor
}
/**
* Use this factory method to create a new instance of
* this fragment using the provided parameters.
*
* @param param1 Parameter 1.
* @param param2 Parameter 2.
* @return A new instance of fragment FragmentTab1.
*/
// TODO: Rename and change types and number of parameters
public static FragmentTab1 newInstance(String param1, String param2) {
FragmentTab1 fragment = new FragmentTab1();
Bundle args = new Bundle();
args.putString(ARG_PARAM1, param1);
args.putString(ARG_PARAM2, param2);
fragment.setArguments(args);
return fragment;
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (getArguments() != null) {
mParam1 = getArguments().getString(ARG_PARAM1);
mParam2 = getArguments().getString(ARG_PARAM2);
}
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
return inflater.inflate(R.layout.fragment_fragment_tab1, container, false);
}
// TODO: Rename method, update argument and hook method into UI event
public void onButtonPressed(Uri uri) {
if (mListener != null) {
mListener.onFragmentInteraction(uri);
}
}
@Override
public void onAttach(Context context) {
super.onAttach(context);
if (context instanceof OnFragmentInteractionListener) {
mListener = (OnFragmentInteractionListener) context;
} else {
throw new RuntimeException(context.toString()
+ " must implement OnFragmentInteractionListener");
}
}
@Override
public void onDetach() {
super.onDetach();
mListener = null;
}
/**
* This interface must be implemented by activities that contain this
* fragment to allow an interaction in this fragment to be communicated
* to the activity and potentially other fragments contained in that
* activity.
* <p>
* See the Android Training lesson <a href=
* "http://developer.android.com/training/basics/fragments/communicating.html"
* >Communicating with Other Fragments</a> for more information.
*/
public interface OnFragmentInteractionListener {
// TODO: Update argument type and name
void onFragmentInteraction(Uri uri);
}
}
| [
"37360724+riyard@users.noreply.github.com"
] | 37360724+riyard@users.noreply.github.com |
e4219682a8417df637f4be9156a49157983e159e | 170bd4bd27870080a9cd65a69f461c1495c204fd | /app/src/main/java/dd/android/yeshi/core/PropertiesController.java | c8a98ebfc5ea8c01de395e67dcdaf9ade60bfe21 | [] | no_license | destinyd/lzyeshi-app | e131b9f08ae8a5550e379eb01433e5aa9f5a48a1 | 0b0e5c925c56f15ea8d85f8146ce61e3b57e9178 | refs/heads/master | 2021-01-22T10:40:58.895950 | 2013-06-11T03:40:28 | 2013-06-11T03:40:28 | 82,028,727 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 558 | java | package dd.android.yeshi.core;
import dd.android.common.PropertiesUtil;
import static dd.android.yeshi.core.Constants.Setting.*;
public class PropertiesController {
public static void writeConfiguration() {
PropertiesUtil.writeConfiguration(SDCARD_PATH, FILE_NAME, Settings.getFactory());
}
public static void readConfiguration() {
Settings obj = PropertiesUtil.readConfiguration(SDCARD_PATH,FILE_NAME,Settings.class);
if(obj != null)
Settings.setFactory(obj);
else
Settings.getFactory();
}
}
| [
"destinyd_war@163.com"
] | destinyd_war@163.com |
0804d5be81efde96572669d4cc8e01561261ce3f | af892d45ea61dc93434e6b785732e6fcb3708b58 | /egresado/egresado-logica/src/test/java/co/edu/eam/disenosoft/egresado/logica/test/BOEditarPrograma.java | f2b121dff9e9c40f5d4b6b568da96bd8fde87403 | [] | no_license | julian1117/ProyectoEgresados | 8a0552dcb0d39b9f7baf822bb69db5655a779cc6 | 00f04592b91e8097bcf01c36df10d8295cd0cedc | refs/heads/master | 2021-01-12T17:14:44.619005 | 2016-11-17T21:26:42 | 2016-11-17T21:26:42 | 71,525,803 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,832 | java | package co.edu.eam.disenosoft.egresado.logica.test;
import org.caferrer.testdata.junit.TestDataUtil;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import co.edu.eam.disenosoft.egresado.logica.bos.BOFacultad;
import co.edu.eam.disenosoft.egresado.logica.bos.BOPrograma;
import co.edu.eam.disenosoft.egresado.persistencia.entidades.Facultad;
import co.edu.eam.disenosoft.egresado.persistencia.entidades.Programa;
import junit.framework.Assert;
public class BOEditarPrograma {
private BOPrograma boPrograma;
private BOFacultad boFacultad;
@BeforeClass
public static void beforeClass(){
TestDataUtil.ejecutarSQL("sqltest/Prueba-EditarPrograma.sql");
}
@Before
public void setUp(){
boPrograma =new BOPrograma();
boFacultad = new BOFacultad();
}
@Test
public void testEditarPrograma() throws Exception{
Facultad facul = boFacultad.buscarFacultad(23);
Programa prog = new Programa();
//Programa prog = boPrograma.buscarPrograma(15);
//System.out.println(prog.getIdPrograma() +" - " +prog.getNombrePrograma() +" - " +prog.getIdFacultad().getIdFacultad());
prog.setIdPrograma(15);;
prog.setNombrePrograma("Contaduria");
prog.setIdFacultad(facul);
try{
boPrograma.editarPrograma(prog);
Programa pro =boPrograma.buscarPrograma(15);
System.out.println(pro.getIdPrograma() +" - " +pro.getNombrePrograma() +" - " +pro.getIdFacultad().getIdFacultad());
Assert.assertNotNull(pro);
Assert.assertEquals("Contaduria", pro.getNombrePrograma());
}catch (Exception e) {
Assert.fail();
}
}
@AfterClass
public static void afterClass(){
TestDataUtil.ejecutarSQL("sqltest/Prueba-EliminarEditarPrograma.sql");
}
}
| [
"CAMILO@DESKTOP-HLG32NF"
] | CAMILO@DESKTOP-HLG32NF |
19132c3ea595a9ba95064cfcc6f90b5b485afb5a | addd0b715064f03aa954bb9aee1f34d684843cef | /src/main/kotlin/roughwork/SolutionJava.java | 6c95b77aeab9df49b9806badd0128ee6fca579bd | [] | no_license | Akashkroy69/BitManipulationGeeks-Leet | c4a91d1563ebe2b415750810347b8b0146fb2e0b | e4c60e938ade44beae2e785f43150e487f5264ac | refs/heads/master | 2023-06-25T16:54:31.520596 | 2021-07-24T16:12:07 | 2021-07-24T16:12:07 | 372,300,132 | 2 | 0 | null | null | null | null | UTF-8 | Java | false | false | 280 | java | package roughwork;
public class SolutionJava {
public int hammingWeight(int n) {
int num = n;
int setBitCount = 0;
while (num > 0) {
if ((num & 1) == 0) setBitCount++;
num >>= 1;
}
return setBitCount;
}
}
| [
"Akashkroy@hotmail.com"
] | Akashkroy@hotmail.com |
b0c0a41fdc5ca20799ee18db6b3ae7807673b254 | d7ae338459050001971f579fda223c28bff03ad9 | /src/main/java/edu/aueb/cs/istos/giarengkinbousoulas/controller/LogoutServlet.java | aa2e5422b7dd3ee1eee3c2d3626a96761d1dbb27 | [] | no_license | cbcause/project-istos-webapp | dd09e2cabbf9f2b80e02d3b86d6e261f56611586 | 33c20a26d511db52102964a4eac73978a59a9b97 | refs/heads/master | 2022-12-05T08:28:37.626313 | 2020-08-17T16:02:57 | 2020-08-17T16:02:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,318 | java | package edu.aueb.cs.istos.giarengkinbousoulas.controller;
import edu.aueb.cs.istos.giarengkinbousoulas.configuration.Globals;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.io.IOException;
public class LogoutServlet extends HttpServlet {
private static final long serialVersionUID = 1L;
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
HttpSession session = request.getSession(false);
if (session != null){
session.invalidate();
Globals.activeUser.setID(-1);
Globals.activeUser.setPassword(null);
Globals.activeUser.setEmail(null);
Globals.activeUserBookmarks.setUserID(-1);
Globals.activeUserBookmarks.setMyBookmarks(null);
request.setAttribute("errorMessage", "You have logged out successfully!");
RequestDispatcher requestDispatcher = request.getRequestDispatcher("/html/login.jsp");
requestDispatcher.forward(request, response);
System.out.println("Logged Out!");
}
}
}
| [
"p3160111@aueb.gr"
] | p3160111@aueb.gr |
e51e892f22ac2a466d54c228efaf3f8c956ca1b2 | 91e67632d2a4d3e02b8ebe954c47fe5ae2bdfb33 | /app/src/main/java/com/omneagate/DTO/FPSStockHistoryCollectionDto.java | d834bc80cf4bdca595b03659e70b16537cc09107 | [] | no_license | RamprasathPnr/FpsPosUttarPradesh | a2b14022d59f41b5af0d7d8e6a564ee3abd1fbb3 | 99fb57ecb4b0df59b29119f398a83eaf434d2681 | refs/heads/master | 2021-08-31T13:32:10.236720 | 2017-12-21T13:47:01 | 2017-12-21T13:47:01 | 115,010,323 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 652 | java | package com.omneagate.DTO;
import lombok.Data;
/**
* Created for FPSStockHistoryCollectionDto
*/
@Data
public class FPSStockHistoryCollectionDto {
Long id;
String deviceNum;
/**FPS identifier*/
long fpsId;
/**product identifier*/
ProductDto productDto;
/**Stock quantity which is to be increased or decrease*/
Double quantity;
/**Previous quantity of the stock*/
Double prevQuantity;
/**Current quantity of the stock*/
Double currQuantity;
/**Created by of the stock*/
long createdBy;
/**Date of creation*/
long createdDate;
/**Operation Type*/
String operation;
}
| [
"prasadram343@gmail.com"
] | prasadram343@gmail.com |
dde5b8ebadb768e51fc11b8c702688aff9508139 | cf29ccb4411a2652e95f1b2496c435a0850f3540 | /main/java/marlon/minecraftai/settings/serialize/BlockFloatAdapter.java | 890096a593346d595cab796f7f25e88077b37a06 | [] | no_license | marloncalleja/MC-Experiment-AI | 0799cbad4f7f75f5d7c010fb3debd4cf63302048 | 95d5019dac85353b11d176a838fc265ddcb83eab | refs/heads/master | 2022-07-21T04:10:44.333081 | 2022-07-10T10:13:24 | 2022-07-10T10:13:24 | 93,537,809 | 4 | 1 | null | 2018-10-01T09:44:24 | 2017-06-06T16:05:36 | Java | UTF-8 | Java | false | false | 3,097 | java | package marlon.minecraftai.settings.serialize;
import java.lang.reflect.Type;
import java.util.Map.Entry;
import marlon.minecraftai.ai.path.world.BlockFloatMap;
import marlon.minecraftai.ai.path.world.BlockSet;
import net.minecraft.block.Block;
import com.google.gson.JsonArray;
import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonDeserializer;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParseException;
import com.google.gson.JsonPrimitive;
import com.google.gson.JsonSerializationContext;
import com.google.gson.JsonSerializer;
public class BlockFloatAdapter implements JsonSerializer<BlockFloatMap>,
JsonDeserializer<BlockFloatMap> {
@Override
public BlockFloatMap deserialize(JsonElement json, Type typeOfT,
JsonDeserializationContext context) throws JsonParseException {
try {
BlockFloatMap map = new BlockFloatMap();
JsonElement valuesElement = json.getAsJsonObject().get("values");
if (valuesElement != null) {
JsonObject values = valuesElement
.getAsJsonObject();
for (Entry<String, JsonElement> e : values.entrySet()) {
int blockId;
if (e.getKey().matches("\\d+")) {
blockId = Integer.parseInt(e.getKey());
} else {
blockId = Block.getIdFromBlock(Block.getBlockFromName(e
.getKey()));
}
if (e.getValue().isJsonArray()) {
for (int i = 0; i < 16; i++) {
JsonElement value = e.getValue().getAsJsonArray()
.get(i);
map.set(blockId * 16 + i, value.getAsFloat());
}
} else {
map.setBlock(blockId, e.getValue().getAsFloat());
}
}
}
map.setDefault(json.getAsJsonObject().get("defaultValue")
.getAsFloat());
return map;
} catch (Throwable t) {
throw new JsonParseException("Error while parsing float map: " + t, t);
}
}
@Override
public JsonElement serialize(BlockFloatMap src, Type typeOfSrc,
JsonSerializationContext context) {
JsonObject res = new JsonObject();
float defaultValue = src.getDefaultValue();
if (Float.isNaN(defaultValue)) {
defaultValue = 0;
}
res.addProperty("defaultValue", defaultValue);
JsonObject valueMap = new JsonObject();
for (int blockId = 0; blockId < BlockSet.MAX_BLOCKIDS; blockId++) {
boolean hasSameValue = true;
float last = 0;
JsonArray items = new JsonArray();
for (int i = 0; i < 16; i++) {
float forThisBlock = src.get(blockId * 16 + i);
if (Float.isNaN(forThisBlock)) {
throw new RuntimeException("Cannot convert NaN for "
+ blockId + ":" + i);
}
items.add(new JsonPrimitive(forThisBlock));
if (i > 0) {
hasSameValue &= last == forThisBlock;
}
last = forThisBlock;
}
if (!hasSameValue || Math.abs(last - defaultValue) >= .000001) {
JsonElement blockRes;
if (hasSameValue) {
blockRes = new JsonPrimitive(last);
} else {
blockRes = items;
}
JsonElement name = BlockSetAdapter.getName(blockId);
valueMap.add(name.getAsString(), blockRes);
}
}
res.add("values", valueMap);
return res;
}
}
| [
"marlon.calleja1994@gmail.com"
] | marlon.calleja1994@gmail.com |
db5319e8d49efeca53a928285eef3275f2628cd6 | db94e4256566c67d45d434e2d5f4a286feb441e0 | /Burgerist/app/src/main/java/com/example/bretz/burgerist/EmployeeProfileActivity.java | f1331ca54458ae39d22eddafde67b1177e803ec5 | [] | no_license | bretzley/BurgeristApp | 65910ba84b9b720d191904c3b216a6b0a784263a | 619caae68c283bfaeedc33f351a774aafe66a6f5 | refs/heads/master | 2021-08-23T23:25:27.578003 | 2017-12-07T02:30:24 | 2017-12-07T02:30:24 | 110,925,580 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,421 | java | package com.example.bretz.burgerist;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import com.example.bretz.burgerist.Objects.Employee;
import com.example.bretz.burgerist.R;
public class EmployeeProfileActivity extends AppCompatActivity {
private TextView txtFullName, txtEmployeeCode;
private Button btnTest;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_employee_profile);
txtFullName = (TextView)findViewById(R.id.txtFullName);
txtEmployeeCode = (TextView)findViewById(R.id.txtEmployeeCode);
btnTest = (Button)findViewById(R.id.btnSeeAppointments);
final Employee employee = getIntent().getParcelableExtra("data");
txtFullName.setText(employee.getName() + " " + employee.getLastName());
txtEmployeeCode.setText(employee.getEmployeeCode()+"");
btnTest.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent = new Intent(getApplicationContext(), AppointmentActivity.class);
intent.putExtra("data", employee);
startActivity(intent);
}
});
}
}
| [
"brandongq@gmail.com"
] | brandongq@gmail.com |
5bda9971531dc61a5e4ee92346ef3a86a5a2430b | 5e7bbfdc1e767ea9e10b9369e9d0c29552a76cec | /src/main/java/uk/gov/pay/connector/util/CidrUtils.java | c872683bfbeca8d4d62367d515e54a66f3d871b5 | [
"LicenseRef-scancode-proprietary-license",
"MIT"
] | permissive | alphagov/pay-connector | ec78a56ca64d1958db9e94f437724817219ced6f | 197c2e5c85f1a1ed3a02bc6927cd2fecc94ce81e | refs/heads/master | 2023-09-01T12:02:57.312143 | 2023-08-31T12:51:43 | 2023-08-31T12:51:43 | 39,890,257 | 18 | 19 | MIT | 2023-09-14T08:01:53 | 2015-07-29T11:38:35 | Java | UTF-8 | Java | false | false | 660 | java | package uk.gov.pay.connector.util;
import org.apache.commons.net.util.SubnetUtils;
import java.util.Arrays;
import java.util.Collection;
import java.util.Set;
import static java.util.stream.Collectors.toUnmodifiableSet;
public class CidrUtils {
public static Set<String> getIpAddresses(Collection<String> cidrs) {
return cidrs.stream()
.map(SubnetUtils::new)
.peek(subnet -> subnet.setInclusiveHostCount(true))
.map(SubnetUtils::getInfo)
.map(SubnetUtils.SubnetInfo::getAllAddresses)
.flatMap(Arrays::stream)
.collect(toUnmodifiableSet());
}
}
| [
"aditya.pahuja@digital.cabinet-office.gov.uk"
] | aditya.pahuja@digital.cabinet-office.gov.uk |
cb97d58f3e59f8bbf20b29dffd03d9858ea6094f | ea4037075b857feea9ffd504b017df58bf97a071 | /MeiQueTiLiao/app/src/main/java/com/microfeel/meiquetiliao/procotol/GetProjectListProcotol.java | 314fc369b6210e8ac628bb4bdaaf6b50d0132c60 | [] | no_license | zhangyanyange/android | 5914fa52694c92000282974aa4a78bd8d69df0c9 | 974efc6af5aaabe5149920c3899ddec70996406c | refs/heads/master | 2020-07-22T15:21:53.769741 | 2019-09-09T07:09:30 | 2019-09-09T07:09:30 | 207,244,195 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,088 | java | package com.microfeel.meiquetiliao.procotol;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import com.microfeel.meiquetiliao.base.Constants;
import com.microfeel.meiquetiliao.domain.GetProjectList;
import com.zhy.http.okhttp.OkHttpUtils;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import okhttp3.Response;
/**
* Created by zy2 on 2017/9/1.
*/
public class GetProjectListProcotol {
public static ArrayList<GetProjectList> getProjectList(){
try {
Response response = OkHttpUtils.get().url(Constants.BASE_URL+"Project").build().execute();
if (response.isSuccessful()){
String string = response.body().string();
Gson gson=new Gson();
ArrayList<GetProjectList> data=gson.fromJson(string ,new TypeToken<List<GetProjectList>>(){}.getType());
return data;
}else{
return null;
}
} catch (IOException e) {
e.printStackTrace();
return null;
}
}
}
| [
"android5978@163.com"
] | android5978@163.com |
9f5405ac18ab277db52af61520d0191d83ad5442 | 3fcc55e69477bfd8f1aefd2596a53073a9b1a438 | /src/main/java/com/clara/taskdb/repository/TaskRepository.java | 7c02af6ce71424a6e76d53642ee51f2536989084 | [] | no_license | ande3674/Task_DB_Spring_Knockout_Final | 12d816470b04052a0bad012028dd6b87919257df | e872eb32ef0802f5d90a884a73c6a29ca395b57b | refs/heads/master | 2020-03-11T17:24:49.621506 | 2018-04-25T02:35:24 | 2018-04-25T02:35:24 | 130,146,224 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 741 | java | package com.clara.taskdb.repository;
import com.clara.taskdb.model.Task;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@Repository
public interface TaskRepository extends JpaRepository<Task, Long> {
List<Task> findAllByOrderByUrgentDesc();
@Transactional
@Modifying
@Query("Update Task t set t.completed = ?1 where t.id = ?2")
int setTaskCompleted(boolean completed, long id);
}
| [
"email@email.com"
] | email@email.com |
cef239e0faf71f60870b9b2b5d31b91126ee4f07 | be73270af6be0a811bca4f1710dc6a038e4a8fd2 | /crash-reproduction-moho/results/XWIKI-14319-1-25-NSGA_II-WeightedSum:TestLen:CallDiversity/com/xpn/xwiki/doc/XWikiDocument_ESTest.java | c27b5585bf418497bfb427a03764beafdbaeb5b3 | [] | no_license | STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application | cf118b23ecb87a8bf59643e42f7556b521d1f754 | 3bb39683f9c343b8ec94890a00b8f260d158dfe3 | refs/heads/master | 2022-07-29T14:44:00.774547 | 2020-08-10T15:14:49 | 2020-08-10T15:14:49 | 285,804,495 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 550 | java | /*
* This file was automatically generated by EvoSuite
* Wed Apr 01 19:11:48 UTC 2020
*/
package com.xpn.xwiki.doc;
import org.junit.Test;
import static org.junit.Assert.*;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;
@RunWith(EvoRunner.class) @EvoRunnerParameters(useVFS = true, useJEE = true)
public class XWikiDocument_ESTest extends XWikiDocument_ESTest_scaffolding {
@Test
public void notGeneratedAnyTest() {
// EvoSuite did not generate any tests
}
}
| [
"pouria.derakhshanfar@gmail.com"
] | pouria.derakhshanfar@gmail.com |
fc2422d7c5344c02a1ac5fbd7f314fbc7684d6ce | 50fa0692daf61566986e61286f4ce01ae45b78c2 | /app/src/main/java/ru/vadim7394/loftcoin/screens/welcome/WelcomeFragment.java | 334c9ccbb23bf99c9570b52a458e027780aff212 | [] | no_license | Vadim7394/LoftCoin | b604dea11d8a21d83cfe55a47e2a28eae86f6a90 | 635cce36e3d1abbb192704e10112511a4936ad83 | refs/heads/master | 2020-04-01T23:05:04.502386 | 2018-11-28T19:44:20 | 2018-11-28T19:44:20 | 153,741,022 | 0 | 0 | null | 2018-11-13T20:08:50 | 2018-10-19T07:09:14 | Java | UTF-8 | Java | false | false | 2,159 | java | package ru.vadim7394.loftcoin.screens.welcome;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.Unbinder;
import ru.vadim7394.loftcoin.R;
/**
* A simple {@link Fragment} subclass.
*/
public class WelcomeFragment extends Fragment {
private static final String KEY_PAGE = "page";
public static WelcomeFragment newInstance(WelcomePage page) {
Bundle args = new Bundle();
args.putParcelable(KEY_PAGE, page);
WelcomeFragment fragment = new WelcomeFragment();
fragment.setArguments(args);
return fragment;
}
public WelcomeFragment() {
}
@BindView(R.id.icon)
ImageView icon;
@BindView(R.id.title)
TextView title;
@BindView(R.id.subtitle)
TextView subtitle;
private Unbinder unbinder;
private WelcomePage page;
@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Bundle args = getArguments();
if (args != null) {
page = getArguments().getParcelable(KEY_PAGE);
}
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
return inflater.inflate(R.layout.fragment_welcome, container, false);
}
@Override
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
unbinder = ButterKnife.bind(this, view);
icon.setImageResource(page.getIcon());
title.setText(page.getTitle());
subtitle.setText(page.getSubtitle());
}
@Override
public void onDestroyView() {
super.onDestroyView();
unbinder.unbind();
}
}
| [
"vadim7394@gmail.com"
] | vadim7394@gmail.com |
2b50690447b4ff0dab710617437c86e520f9b331 | a9883fd97f10a720b55652f52583d7588f85b97a | /src/main/java/net/epoxide/surge/features/FeatureManager.java | 2bd3292390ac5c0f44eafaed8c5528f967fbf73d | [] | no_license | Zaggy1024/Surge | 61604c224050fc63983280032d26b1af0f4878b1 | 9f5baf744a12eb1686048f40fc64baa500320cb8 | refs/heads/master | 2020-07-12T00:03:30.074539 | 2016-08-26T03:41:12 | 2016-08-26T03:50:29 | 66,614,303 | 0 | 0 | null | 2016-08-26T03:41:38 | 2016-08-26T03:41:38 | null | UTF-8 | Java | false | false | 3,074 | java | package net.epoxide.surge.features;
import java.util.ArrayList;
import java.util.List;
import net.epoxide.surge.features.animation.FeatureDisableAnimation;
import net.epoxide.surge.features.gpucloud.FeatureGPUClouds;
import net.epoxide.surge.features.hideplayers.FeatureHidePlayer;
import net.epoxide.surge.features.loadtime.FeatureLoadTimes;
import net.epoxide.surge.features.redstonetoggle.FeatureRedstoneFix;
import net.epoxide.surge.features.renderculling.FeatureGroupRenderCulling;
import net.epoxide.surge.handler.ConfigurationHandler;
import net.minecraftforge.fml.relauncher.FMLLaunchHandler;
import net.minecraftforge.fml.relauncher.Side;
public class FeatureManager {
/**
* List of all registered features.
*/
public static final List<Feature> FEATURES = new ArrayList<>();
/**
* List of all transformer features.
*/
public static final List<Feature> TRANSFORMERS = new ArrayList<>();
/**
* This method is called before any mods have had a chance to initialize. Constructors
* should take care not to reference any actual game code.
*/
public static void initFeatures () {
if (FMLLaunchHandler.side() == Side.CLIENT) {
//Disabled for now// registerFeature(new FeatureGroupRenderCulling(), "Group Render Culling", "Cuts down on the amount of entities rendered, when they are bunched together.");
registerFeature(new FeatureHidePlayer(), "Hide Players", "Command to disable the rendering of other players on the client.");
registerFeature(new FeatureRedstoneFix(), "Redstone Toggle Fix", "Fixes a memory leak with toggle state of redstone torches. MC-101233");
registerFeature(new FeatureGPUClouds(), "Cloud Rendering", "Switches the RenderGlobal to render clouds using GPU to render.");
registerFeature(new FeatureDisableAnimation(), "Disable Animation", "Allows the animation of block/item textures to be disabled.");
}
registerFeature(new FeatureLoadTimes(), "Load Time Analysis", "Records the load time of all mods being loaded.");
}
/**
* Registers a new feature with the feature manager. This will automatically create an
* entry in the configuration file to enable/disable this feature. If the feature has been
* disabled, it will not be registered. This will also handle event bus subscriptions.
*
* @param feature The feature being registered.
* @param name The name of the feature.
* @param description A short description of the feature.
*/
private static void registerFeature (Feature feature, String name, String description) {
feature.enabled = ConfigurationHandler.isFeatureEnabled(feature, name, description);
if (feature.enabled) {
feature.configName = name.toLowerCase().replace(' ', '_');
FEATURES.add(feature);
if (feature.isTransformer())
TRANSFORMERS.add(feature);
}
}
}
| [
"darklime@live.ca"
] | darklime@live.ca |
cc51ac74c8fcdf3979f184a09fd9df703138ed42 | 0ef9001036434b864279f054590529c5c23e67c8 | /app/build/generated/source/r/debug/android/support/design/R.java | 59f523ed0b7ef539d303596dee25aa50a5cadca6 | [
"MIT"
] | permissive | zergmk2/android-opencv-scan-doc | 2a071bb1e6befabb3f897548c49fb9dff9ff58c0 | dae3af42872e5775f2f88198734fda94cf838c53 | refs/heads/master | 2020-04-07T07:04:34.076882 | 2018-11-19T04:48:54 | 2018-11-19T04:48:54 | 158,162,466 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 143,917 | java | /* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* gradle plugin from the resource data it found. It
* should not be modified by hand.
*/
package android.support.design;
public final class R {
public static final class anim {
public static final int abc_fade_in = 0x7f010000;
public static final int abc_fade_out = 0x7f010001;
public static final int abc_grow_fade_in_from_bottom = 0x7f010002;
public static final int abc_popup_enter = 0x7f010003;
public static final int abc_popup_exit = 0x7f010004;
public static final int abc_shrink_fade_out_from_bottom = 0x7f010005;
public static final int abc_slide_in_bottom = 0x7f010006;
public static final int abc_slide_in_top = 0x7f010007;
public static final int abc_slide_out_bottom = 0x7f010008;
public static final int abc_slide_out_top = 0x7f010009;
public static final int abc_tooltip_enter = 0x7f01000a;
public static final int abc_tooltip_exit = 0x7f01000b;
public static final int design_bottom_sheet_slide_in = 0x7f01000c;
public static final int design_bottom_sheet_slide_out = 0x7f01000d;
public static final int design_snackbar_in = 0x7f01000e;
public static final int design_snackbar_out = 0x7f01000f;
}
public static final class animator {
public static final int design_appbar_state_list_animator = 0x7f020000;
}
public static final class attr {
public static final int actionBarDivider = 0x7f030000;
public static final int actionBarItemBackground = 0x7f030001;
public static final int actionBarPopupTheme = 0x7f030002;
public static final int actionBarSize = 0x7f030003;
public static final int actionBarSplitStyle = 0x7f030004;
public static final int actionBarStyle = 0x7f030005;
public static final int actionBarTabBarStyle = 0x7f030006;
public static final int actionBarTabStyle = 0x7f030007;
public static final int actionBarTabTextStyle = 0x7f030008;
public static final int actionBarTheme = 0x7f030009;
public static final int actionBarWidgetTheme = 0x7f03000a;
public static final int actionButtonStyle = 0x7f03000b;
public static final int actionDropDownStyle = 0x7f03000c;
public static final int actionLayout = 0x7f03000d;
public static final int actionMenuTextAppearance = 0x7f03000e;
public static final int actionMenuTextColor = 0x7f03000f;
public static final int actionModeBackground = 0x7f030010;
public static final int actionModeCloseButtonStyle = 0x7f030011;
public static final int actionModeCloseDrawable = 0x7f030012;
public static final int actionModeCopyDrawable = 0x7f030013;
public static final int actionModeCutDrawable = 0x7f030014;
public static final int actionModeFindDrawable = 0x7f030015;
public static final int actionModePasteDrawable = 0x7f030016;
public static final int actionModePopupWindowStyle = 0x7f030017;
public static final int actionModeSelectAllDrawable = 0x7f030018;
public static final int actionModeShareDrawable = 0x7f030019;
public static final int actionModeSplitBackground = 0x7f03001a;
public static final int actionModeStyle = 0x7f03001b;
public static final int actionModeWebSearchDrawable = 0x7f03001c;
public static final int actionOverflowButtonStyle = 0x7f03001d;
public static final int actionOverflowMenuStyle = 0x7f03001e;
public static final int actionProviderClass = 0x7f03001f;
public static final int actionViewClass = 0x7f030020;
public static final int activityChooserViewStyle = 0x7f030021;
public static final int alertDialogButtonGroupStyle = 0x7f030022;
public static final int alertDialogCenterButtons = 0x7f030023;
public static final int alertDialogStyle = 0x7f030024;
public static final int alertDialogTheme = 0x7f030025;
public static final int allowStacking = 0x7f030026;
public static final int alpha = 0x7f030027;
public static final int alphabeticModifiers = 0x7f030028;
public static final int arrowHeadLength = 0x7f030029;
public static final int arrowShaftLength = 0x7f03002a;
public static final int autoCompleteTextViewStyle = 0x7f03002b;
public static final int autoSizeMaxTextSize = 0x7f03002c;
public static final int autoSizeMinTextSize = 0x7f03002d;
public static final int autoSizePresetSizes = 0x7f03002e;
public static final int autoSizeStepGranularity = 0x7f03002f;
public static final int autoSizeTextType = 0x7f030030;
public static final int background = 0x7f030031;
public static final int backgroundSplit = 0x7f030032;
public static final int backgroundStacked = 0x7f030033;
public static final int backgroundTint = 0x7f030034;
public static final int backgroundTintMode = 0x7f030035;
public static final int barLength = 0x7f030036;
public static final int behavior_autoHide = 0x7f030037;
public static final int behavior_hideable = 0x7f030038;
public static final int behavior_overlapTop = 0x7f030039;
public static final int behavior_peekHeight = 0x7f03003a;
public static final int behavior_skipCollapsed = 0x7f03003b;
public static final int borderWidth = 0x7f03003c;
public static final int borderlessButtonStyle = 0x7f03003d;
public static final int bottomSheetDialogTheme = 0x7f03003e;
public static final int bottomSheetStyle = 0x7f03003f;
public static final int buttonBarButtonStyle = 0x7f030040;
public static final int buttonBarNegativeButtonStyle = 0x7f030041;
public static final int buttonBarNeutralButtonStyle = 0x7f030042;
public static final int buttonBarPositiveButtonStyle = 0x7f030043;
public static final int buttonBarStyle = 0x7f030044;
public static final int buttonGravity = 0x7f030045;
public static final int buttonIconDimen = 0x7f030046;
public static final int buttonPanelSideLayout = 0x7f030047;
public static final int buttonStyle = 0x7f030048;
public static final int buttonStyleSmall = 0x7f030049;
public static final int buttonTint = 0x7f03004a;
public static final int buttonTintMode = 0x7f03004b;
public static final int checkboxStyle = 0x7f03004d;
public static final int checkedTextViewStyle = 0x7f03004e;
public static final int closeIcon = 0x7f03004f;
public static final int closeItemLayout = 0x7f030050;
public static final int collapseContentDescription = 0x7f030051;
public static final int collapseIcon = 0x7f030052;
public static final int collapsedTitleGravity = 0x7f030053;
public static final int collapsedTitleTextAppearance = 0x7f030054;
public static final int color = 0x7f030055;
public static final int colorAccent = 0x7f030056;
public static final int colorBackgroundFloating = 0x7f030057;
public static final int colorButtonNormal = 0x7f030058;
public static final int colorControlActivated = 0x7f030059;
public static final int colorControlHighlight = 0x7f03005a;
public static final int colorControlNormal = 0x7f03005b;
public static final int colorError = 0x7f03005c;
public static final int colorPrimary = 0x7f03005d;
public static final int colorPrimaryDark = 0x7f03005e;
public static final int colorSwitchThumbNormal = 0x7f03005f;
public static final int commitIcon = 0x7f030060;
public static final int contentDescription = 0x7f030061;
public static final int contentInsetEnd = 0x7f030062;
public static final int contentInsetEndWithActions = 0x7f030063;
public static final int contentInsetLeft = 0x7f030064;
public static final int contentInsetRight = 0x7f030065;
public static final int contentInsetStart = 0x7f030066;
public static final int contentInsetStartWithNavigation = 0x7f030067;
public static final int contentScrim = 0x7f030068;
public static final int controlBackground = 0x7f030069;
public static final int coordinatorLayoutStyle = 0x7f03006a;
public static final int counterEnabled = 0x7f03006b;
public static final int counterMaxLength = 0x7f03006c;
public static final int counterOverflowTextAppearance = 0x7f03006d;
public static final int counterTextAppearance = 0x7f03006e;
public static final int customNavigationLayout = 0x7f03006f;
public static final int defaultQueryHint = 0x7f030070;
public static final int dialogPreferredPadding = 0x7f030071;
public static final int dialogTheme = 0x7f030072;
public static final int displayOptions = 0x7f030073;
public static final int divider = 0x7f030074;
public static final int dividerHorizontal = 0x7f030075;
public static final int dividerPadding = 0x7f030076;
public static final int dividerVertical = 0x7f030077;
public static final int drawableSize = 0x7f030078;
public static final int drawerArrowStyle = 0x7f030079;
public static final int dropDownListViewStyle = 0x7f03007a;
public static final int dropdownListPreferredItemHeight = 0x7f03007b;
public static final int editTextBackground = 0x7f03007c;
public static final int editTextColor = 0x7f03007d;
public static final int editTextStyle = 0x7f03007e;
public static final int elevation = 0x7f03007f;
public static final int errorEnabled = 0x7f030080;
public static final int errorTextAppearance = 0x7f030081;
public static final int expandActivityOverflowButtonDrawable = 0x7f030082;
public static final int expanded = 0x7f030083;
public static final int expandedTitleGravity = 0x7f030084;
public static final int expandedTitleMargin = 0x7f030085;
public static final int expandedTitleMarginBottom = 0x7f030086;
public static final int expandedTitleMarginEnd = 0x7f030087;
public static final int expandedTitleMarginStart = 0x7f030088;
public static final int expandedTitleMarginTop = 0x7f030089;
public static final int expandedTitleTextAppearance = 0x7f03008a;
public static final int fabCustomSize = 0x7f03008b;
public static final int fabSize = 0x7f03008c;
public static final int fastScrollEnabled = 0x7f03008d;
public static final int fastScrollHorizontalThumbDrawable = 0x7f03008e;
public static final int fastScrollHorizontalTrackDrawable = 0x7f03008f;
public static final int fastScrollVerticalThumbDrawable = 0x7f030090;
public static final int fastScrollVerticalTrackDrawable = 0x7f030091;
public static final int font = 0x7f030092;
public static final int fontFamily = 0x7f030093;
public static final int fontProviderAuthority = 0x7f030094;
public static final int fontProviderCerts = 0x7f030095;
public static final int fontProviderFetchStrategy = 0x7f030096;
public static final int fontProviderFetchTimeout = 0x7f030097;
public static final int fontProviderPackage = 0x7f030098;
public static final int fontProviderQuery = 0x7f030099;
public static final int fontStyle = 0x7f03009a;
public static final int fontWeight = 0x7f03009b;
public static final int foregroundInsidePadding = 0x7f03009c;
public static final int gapBetweenBars = 0x7f03009d;
public static final int goIcon = 0x7f03009e;
public static final int headerLayout = 0x7f03009f;
public static final int height = 0x7f0300a0;
public static final int hideOnContentScroll = 0x7f0300a1;
public static final int hintAnimationEnabled = 0x7f0300a2;
public static final int hintEnabled = 0x7f0300a3;
public static final int hintTextAppearance = 0x7f0300a4;
public static final int homeAsUpIndicator = 0x7f0300a5;
public static final int homeLayout = 0x7f0300a6;
public static final int icon = 0x7f0300a7;
public static final int iconTint = 0x7f0300a8;
public static final int iconTintMode = 0x7f0300a9;
public static final int iconifiedByDefault = 0x7f0300aa;
public static final int imageButtonStyle = 0x7f0300ab;
public static final int indeterminateProgressStyle = 0x7f0300ac;
public static final int initialActivityCount = 0x7f0300ad;
public static final int insetForeground = 0x7f0300ae;
public static final int isLightTheme = 0x7f0300af;
public static final int itemBackground = 0x7f0300b0;
public static final int itemIconTint = 0x7f0300b1;
public static final int itemPadding = 0x7f0300b2;
public static final int itemTextAppearance = 0x7f0300b3;
public static final int itemTextColor = 0x7f0300b4;
public static final int keylines = 0x7f0300b5;
public static final int layout = 0x7f0300b6;
public static final int layoutManager = 0x7f0300b7;
public static final int layout_anchor = 0x7f0300b8;
public static final int layout_anchorGravity = 0x7f0300b9;
public static final int layout_behavior = 0x7f0300ba;
public static final int layout_collapseMode = 0x7f0300bb;
public static final int layout_collapseParallaxMultiplier = 0x7f0300bc;
public static final int layout_dodgeInsetEdges = 0x7f0300bd;
public static final int layout_insetEdge = 0x7f0300be;
public static final int layout_keyline = 0x7f0300bf;
public static final int layout_scrollFlags = 0x7f0300c0;
public static final int layout_scrollInterpolator = 0x7f0300c1;
public static final int listChoiceBackgroundIndicator = 0x7f0300c2;
public static final int listDividerAlertDialog = 0x7f0300c3;
public static final int listItemLayout = 0x7f0300c4;
public static final int listLayout = 0x7f0300c5;
public static final int listMenuViewStyle = 0x7f0300c6;
public static final int listPopupWindowStyle = 0x7f0300c7;
public static final int listPreferredItemHeight = 0x7f0300c8;
public static final int listPreferredItemHeightLarge = 0x7f0300c9;
public static final int listPreferredItemHeightSmall = 0x7f0300ca;
public static final int listPreferredItemPaddingLeft = 0x7f0300cb;
public static final int listPreferredItemPaddingRight = 0x7f0300cc;
public static final int logo = 0x7f0300cd;
public static final int logoDescription = 0x7f0300ce;
public static final int maxActionInlineWidth = 0x7f0300cf;
public static final int maxButtonHeight = 0x7f0300d0;
public static final int measureWithLargestChild = 0x7f0300d1;
public static final int menu = 0x7f0300d2;
public static final int multiChoiceItemLayout = 0x7f0300d3;
public static final int navigationContentDescription = 0x7f0300d4;
public static final int navigationIcon = 0x7f0300d5;
public static final int navigationMode = 0x7f0300d6;
public static final int numericModifiers = 0x7f0300d7;
public static final int overlapAnchor = 0x7f0300d8;
public static final int paddingBottomNoButtons = 0x7f0300d9;
public static final int paddingEnd = 0x7f0300da;
public static final int paddingStart = 0x7f0300db;
public static final int paddingTopNoTitle = 0x7f0300dc;
public static final int panelBackground = 0x7f0300dd;
public static final int panelMenuListTheme = 0x7f0300de;
public static final int panelMenuListWidth = 0x7f0300df;
public static final int passwordToggleContentDescription = 0x7f0300e0;
public static final int passwordToggleDrawable = 0x7f0300e1;
public static final int passwordToggleEnabled = 0x7f0300e2;
public static final int passwordToggleTint = 0x7f0300e3;
public static final int passwordToggleTintMode = 0x7f0300e4;
public static final int popupMenuStyle = 0x7f0300e5;
public static final int popupTheme = 0x7f0300e6;
public static final int popupWindowStyle = 0x7f0300e7;
public static final int preserveIconSpacing = 0x7f0300e8;
public static final int pressedTranslationZ = 0x7f0300e9;
public static final int progressBarPadding = 0x7f0300ea;
public static final int progressBarStyle = 0x7f0300eb;
public static final int queryBackground = 0x7f0300ec;
public static final int queryHint = 0x7f0300ed;
public static final int radioButtonStyle = 0x7f0300ee;
public static final int ratingBarStyle = 0x7f0300ef;
public static final int ratingBarStyleIndicator = 0x7f0300f0;
public static final int ratingBarStyleSmall = 0x7f0300f1;
public static final int reverseLayout = 0x7f0300f2;
public static final int rippleColor = 0x7f0300f3;
public static final int scrimAnimationDuration = 0x7f0300f4;
public static final int scrimVisibleHeightTrigger = 0x7f0300f5;
public static final int searchHintIcon = 0x7f0300f6;
public static final int searchIcon = 0x7f0300f7;
public static final int searchViewStyle = 0x7f0300f8;
public static final int seekBarStyle = 0x7f0300f9;
public static final int selectableItemBackground = 0x7f0300fa;
public static final int selectableItemBackgroundBorderless = 0x7f0300fb;
public static final int showAsAction = 0x7f0300fc;
public static final int showDividers = 0x7f0300fd;
public static final int showText = 0x7f0300fe;
public static final int showTitle = 0x7f0300ff;
public static final int singleChoiceItemLayout = 0x7f030101;
public static final int spanCount = 0x7f030102;
public static final int spinBars = 0x7f030103;
public static final int spinnerDropDownItemStyle = 0x7f030104;
public static final int spinnerStyle = 0x7f030105;
public static final int splitTrack = 0x7f030106;
public static final int srcCompat = 0x7f030107;
public static final int stackFromEnd = 0x7f030108;
public static final int state_above_anchor = 0x7f030109;
public static final int state_collapsed = 0x7f03010a;
public static final int state_collapsible = 0x7f03010b;
public static final int statusBarBackground = 0x7f03010c;
public static final int statusBarScrim = 0x7f03010d;
public static final int subMenuArrow = 0x7f03010e;
public static final int submitBackground = 0x7f03010f;
public static final int subtitle = 0x7f030110;
public static final int subtitleTextAppearance = 0x7f030111;
public static final int subtitleTextColor = 0x7f030112;
public static final int subtitleTextStyle = 0x7f030113;
public static final int suggestionRowLayout = 0x7f030114;
public static final int switchMinWidth = 0x7f030115;
public static final int switchPadding = 0x7f030116;
public static final int switchStyle = 0x7f030117;
public static final int switchTextAppearance = 0x7f030118;
public static final int tabBackground = 0x7f030119;
public static final int tabContentStart = 0x7f03011a;
public static final int tabGravity = 0x7f03011b;
public static final int tabIndicatorColor = 0x7f03011c;
public static final int tabIndicatorHeight = 0x7f03011d;
public static final int tabMaxWidth = 0x7f03011e;
public static final int tabMinWidth = 0x7f03011f;
public static final int tabMode = 0x7f030120;
public static final int tabPadding = 0x7f030121;
public static final int tabPaddingBottom = 0x7f030122;
public static final int tabPaddingEnd = 0x7f030123;
public static final int tabPaddingStart = 0x7f030124;
public static final int tabPaddingTop = 0x7f030125;
public static final int tabSelectedTextColor = 0x7f030126;
public static final int tabTextAppearance = 0x7f030127;
public static final int tabTextColor = 0x7f030128;
public static final int textAllCaps = 0x7f030129;
public static final int textAppearanceLargePopupMenu = 0x7f03012a;
public static final int textAppearanceListItem = 0x7f03012b;
public static final int textAppearanceListItemSecondary = 0x7f03012c;
public static final int textAppearanceListItemSmall = 0x7f03012d;
public static final int textAppearancePopupMenuHeader = 0x7f03012e;
public static final int textAppearanceSearchResultSubtitle = 0x7f03012f;
public static final int textAppearanceSearchResultTitle = 0x7f030130;
public static final int textAppearanceSmallPopupMenu = 0x7f030131;
public static final int textColorAlertDialogListItem = 0x7f030132;
public static final int textColorError = 0x7f030133;
public static final int textColorSearchUrl = 0x7f030134;
public static final int theme = 0x7f030135;
public static final int thickness = 0x7f030136;
public static final int thumbTextPadding = 0x7f030137;
public static final int thumbTint = 0x7f030138;
public static final int thumbTintMode = 0x7f030139;
public static final int tickMark = 0x7f03013a;
public static final int tickMarkTint = 0x7f03013b;
public static final int tickMarkTintMode = 0x7f03013c;
public static final int tint = 0x7f03013d;
public static final int tintMode = 0x7f03013e;
public static final int title = 0x7f03013f;
public static final int titleEnabled = 0x7f030140;
public static final int titleMargin = 0x7f030141;
public static final int titleMarginBottom = 0x7f030142;
public static final int titleMarginEnd = 0x7f030143;
public static final int titleMarginStart = 0x7f030144;
public static final int titleMarginTop = 0x7f030145;
public static final int titleMargins = 0x7f030146;
public static final int titleTextAppearance = 0x7f030147;
public static final int titleTextColor = 0x7f030148;
public static final int titleTextStyle = 0x7f030149;
public static final int toolbarId = 0x7f03014a;
public static final int toolbarNavigationButtonStyle = 0x7f03014b;
public static final int toolbarStyle = 0x7f03014c;
public static final int tooltipForegroundColor = 0x7f03014d;
public static final int tooltipFrameBackground = 0x7f03014e;
public static final int tooltipText = 0x7f03014f;
public static final int track = 0x7f030150;
public static final int trackTint = 0x7f030151;
public static final int trackTintMode = 0x7f030152;
public static final int useCompatPadding = 0x7f030153;
public static final int viewInflaterClass = 0x7f030154;
public static final int voiceIcon = 0x7f030155;
public static final int windowActionBar = 0x7f030156;
public static final int windowActionBarOverlay = 0x7f030157;
public static final int windowActionModeOverlay = 0x7f030158;
public static final int windowFixedHeightMajor = 0x7f030159;
public static final int windowFixedHeightMinor = 0x7f03015a;
public static final int windowFixedWidthMajor = 0x7f03015b;
public static final int windowFixedWidthMinor = 0x7f03015c;
public static final int windowMinWidthMajor = 0x7f03015d;
public static final int windowMinWidthMinor = 0x7f03015e;
public static final int windowNoTitle = 0x7f03015f;
}
public static final class bool {
public static final int abc_action_bar_embed_tabs = 0x7f040000;
public static final int abc_allow_stacked_button_bar = 0x7f040001;
public static final int abc_config_actionMenuItemAllCaps = 0x7f040002;
public static final int abc_config_showMenuShortcutsWhenKeyboardPresent = 0x7f040003;
}
public static final class color {
public static final int abc_background_cache_hint_selector_material_dark = 0x7f050000;
public static final int abc_background_cache_hint_selector_material_light = 0x7f050001;
public static final int abc_btn_colored_borderless_text_material = 0x7f050002;
public static final int abc_btn_colored_text_material = 0x7f050003;
public static final int abc_color_highlight_material = 0x7f050004;
public static final int abc_hint_foreground_material_dark = 0x7f050005;
public static final int abc_hint_foreground_material_light = 0x7f050006;
public static final int abc_input_method_navigation_guard = 0x7f050007;
public static final int abc_primary_text_disable_only_material_dark = 0x7f050008;
public static final int abc_primary_text_disable_only_material_light = 0x7f050009;
public static final int abc_primary_text_material_dark = 0x7f05000a;
public static final int abc_primary_text_material_light = 0x7f05000b;
public static final int abc_search_url_text = 0x7f05000c;
public static final int abc_search_url_text_normal = 0x7f05000d;
public static final int abc_search_url_text_pressed = 0x7f05000e;
public static final int abc_search_url_text_selected = 0x7f05000f;
public static final int abc_secondary_text_material_dark = 0x7f050010;
public static final int abc_secondary_text_material_light = 0x7f050011;
public static final int abc_tint_btn_checkable = 0x7f050012;
public static final int abc_tint_default = 0x7f050013;
public static final int abc_tint_edittext = 0x7f050014;
public static final int abc_tint_seek_thumb = 0x7f050015;
public static final int abc_tint_spinner = 0x7f050016;
public static final int abc_tint_switch_track = 0x7f050017;
public static final int accent_material_dark = 0x7f050018;
public static final int accent_material_light = 0x7f050019;
public static final int background_floating_material_dark = 0x7f05001a;
public static final int background_floating_material_light = 0x7f05001b;
public static final int background_material_dark = 0x7f05001c;
public static final int background_material_light = 0x7f05001d;
public static final int bright_foreground_disabled_material_dark = 0x7f05001e;
public static final int bright_foreground_disabled_material_light = 0x7f05001f;
public static final int bright_foreground_inverse_material_dark = 0x7f050020;
public static final int bright_foreground_inverse_material_light = 0x7f050021;
public static final int bright_foreground_material_dark = 0x7f050022;
public static final int bright_foreground_material_light = 0x7f050023;
public static final int button_material_dark = 0x7f050024;
public static final int button_material_light = 0x7f050025;
public static final int design_bottom_navigation_shadow_color = 0x7f050029;
public static final int design_error = 0x7f05002a;
public static final int design_fab_shadow_end_color = 0x7f05002b;
public static final int design_fab_shadow_mid_color = 0x7f05002c;
public static final int design_fab_shadow_start_color = 0x7f05002d;
public static final int design_fab_stroke_end_inner_color = 0x7f05002e;
public static final int design_fab_stroke_end_outer_color = 0x7f05002f;
public static final int design_fab_stroke_top_inner_color = 0x7f050030;
public static final int design_fab_stroke_top_outer_color = 0x7f050031;
public static final int design_snackbar_background_color = 0x7f050032;
public static final int design_tint_password_toggle = 0x7f050033;
public static final int dim_foreground_disabled_material_dark = 0x7f050034;
public static final int dim_foreground_disabled_material_light = 0x7f050035;
public static final int dim_foreground_material_dark = 0x7f050036;
public static final int dim_foreground_material_light = 0x7f050037;
public static final int error_color_material = 0x7f050038;
public static final int foreground_material_dark = 0x7f050039;
public static final int foreground_material_light = 0x7f05003a;
public static final int highlighted_text_material_dark = 0x7f05003b;
public static final int highlighted_text_material_light = 0x7f05003c;
public static final int material_blue_grey_800 = 0x7f05003d;
public static final int material_blue_grey_900 = 0x7f05003e;
public static final int material_blue_grey_950 = 0x7f05003f;
public static final int material_deep_teal_200 = 0x7f050040;
public static final int material_deep_teal_500 = 0x7f050041;
public static final int material_grey_100 = 0x7f050042;
public static final int material_grey_300 = 0x7f050043;
public static final int material_grey_50 = 0x7f050044;
public static final int material_grey_600 = 0x7f050045;
public static final int material_grey_800 = 0x7f050046;
public static final int material_grey_850 = 0x7f050047;
public static final int material_grey_900 = 0x7f050048;
public static final int notification_action_color_filter = 0x7f050049;
public static final int notification_icon_bg_color = 0x7f05004a;
public static final int notification_material_background_media_default_color = 0x7f05004b;
public static final int primary_dark_material_dark = 0x7f05004c;
public static final int primary_dark_material_light = 0x7f05004d;
public static final int primary_material_dark = 0x7f05004e;
public static final int primary_material_light = 0x7f05004f;
public static final int primary_text_default_material_dark = 0x7f050050;
public static final int primary_text_default_material_light = 0x7f050051;
public static final int primary_text_disabled_material_dark = 0x7f050052;
public static final int primary_text_disabled_material_light = 0x7f050053;
public static final int ripple_material_dark = 0x7f050054;
public static final int ripple_material_light = 0x7f050055;
public static final int secondary_text_default_material_dark = 0x7f050056;
public static final int secondary_text_default_material_light = 0x7f050057;
public static final int secondary_text_disabled_material_dark = 0x7f050058;
public static final int secondary_text_disabled_material_light = 0x7f050059;
public static final int switch_thumb_disabled_material_dark = 0x7f05005a;
public static final int switch_thumb_disabled_material_light = 0x7f05005b;
public static final int switch_thumb_material_dark = 0x7f05005c;
public static final int switch_thumb_material_light = 0x7f05005d;
public static final int switch_thumb_normal_material_dark = 0x7f05005e;
public static final int switch_thumb_normal_material_light = 0x7f05005f;
public static final int tooltip_background_dark = 0x7f050060;
public static final int tooltip_background_light = 0x7f050061;
}
public static final class dimen {
public static final int abc_action_bar_content_inset_material = 0x7f060000;
public static final int abc_action_bar_content_inset_with_nav = 0x7f060001;
public static final int abc_action_bar_default_height_material = 0x7f060002;
public static final int abc_action_bar_default_padding_end_material = 0x7f060003;
public static final int abc_action_bar_default_padding_start_material = 0x7f060004;
public static final int abc_action_bar_elevation_material = 0x7f060005;
public static final int abc_action_bar_icon_vertical_padding_material = 0x7f060006;
public static final int abc_action_bar_overflow_padding_end_material = 0x7f060007;
public static final int abc_action_bar_overflow_padding_start_material = 0x7f060008;
public static final int abc_action_bar_progress_bar_size = 0x7f060009;
public static final int abc_action_bar_stacked_max_height = 0x7f06000a;
public static final int abc_action_bar_stacked_tab_max_width = 0x7f06000b;
public static final int abc_action_bar_subtitle_bottom_margin_material = 0x7f06000c;
public static final int abc_action_bar_subtitle_top_margin_material = 0x7f06000d;
public static final int abc_action_button_min_height_material = 0x7f06000e;
public static final int abc_action_button_min_width_material = 0x7f06000f;
public static final int abc_action_button_min_width_overflow_material = 0x7f060010;
public static final int abc_alert_dialog_button_bar_height = 0x7f060011;
public static final int abc_alert_dialog_button_dimen = 0x7f060012;
public static final int abc_button_inset_horizontal_material = 0x7f060013;
public static final int abc_button_inset_vertical_material = 0x7f060014;
public static final int abc_button_padding_horizontal_material = 0x7f060015;
public static final int abc_button_padding_vertical_material = 0x7f060016;
public static final int abc_cascading_menus_min_smallest_width = 0x7f060017;
public static final int abc_config_prefDialogWidth = 0x7f060018;
public static final int abc_control_corner_material = 0x7f060019;
public static final int abc_control_inset_material = 0x7f06001a;
public static final int abc_control_padding_material = 0x7f06001b;
public static final int abc_dialog_fixed_height_major = 0x7f06001c;
public static final int abc_dialog_fixed_height_minor = 0x7f06001d;
public static final int abc_dialog_fixed_width_major = 0x7f06001e;
public static final int abc_dialog_fixed_width_minor = 0x7f06001f;
public static final int abc_dialog_list_padding_bottom_no_buttons = 0x7f060020;
public static final int abc_dialog_list_padding_top_no_title = 0x7f060021;
public static final int abc_dialog_min_width_major = 0x7f060022;
public static final int abc_dialog_min_width_minor = 0x7f060023;
public static final int abc_dialog_padding_material = 0x7f060024;
public static final int abc_dialog_padding_top_material = 0x7f060025;
public static final int abc_dialog_title_divider_material = 0x7f060026;
public static final int abc_disabled_alpha_material_dark = 0x7f060027;
public static final int abc_disabled_alpha_material_light = 0x7f060028;
public static final int abc_dropdownitem_icon_width = 0x7f060029;
public static final int abc_dropdownitem_text_padding_left = 0x7f06002a;
public static final int abc_dropdownitem_text_padding_right = 0x7f06002b;
public static final int abc_edit_text_inset_bottom_material = 0x7f06002c;
public static final int abc_edit_text_inset_horizontal_material = 0x7f06002d;
public static final int abc_edit_text_inset_top_material = 0x7f06002e;
public static final int abc_floating_window_z = 0x7f06002f;
public static final int abc_list_item_padding_horizontal_material = 0x7f060030;
public static final int abc_panel_menu_list_width = 0x7f060031;
public static final int abc_progress_bar_height_material = 0x7f060032;
public static final int abc_search_view_preferred_height = 0x7f060033;
public static final int abc_search_view_preferred_width = 0x7f060034;
public static final int abc_seekbar_track_background_height_material = 0x7f060035;
public static final int abc_seekbar_track_progress_height_material = 0x7f060036;
public static final int abc_select_dialog_padding_start_material = 0x7f060037;
public static final int abc_switch_padding = 0x7f060038;
public static final int abc_text_size_body_1_material = 0x7f060039;
public static final int abc_text_size_body_2_material = 0x7f06003a;
public static final int abc_text_size_button_material = 0x7f06003b;
public static final int abc_text_size_caption_material = 0x7f06003c;
public static final int abc_text_size_display_1_material = 0x7f06003d;
public static final int abc_text_size_display_2_material = 0x7f06003e;
public static final int abc_text_size_display_3_material = 0x7f06003f;
public static final int abc_text_size_display_4_material = 0x7f060040;
public static final int abc_text_size_headline_material = 0x7f060041;
public static final int abc_text_size_large_material = 0x7f060042;
public static final int abc_text_size_medium_material = 0x7f060043;
public static final int abc_text_size_menu_header_material = 0x7f060044;
public static final int abc_text_size_menu_material = 0x7f060045;
public static final int abc_text_size_small_material = 0x7f060046;
public static final int abc_text_size_subhead_material = 0x7f060047;
public static final int abc_text_size_subtitle_material_toolbar = 0x7f060048;
public static final int abc_text_size_title_material = 0x7f060049;
public static final int abc_text_size_title_material_toolbar = 0x7f06004a;
public static final int compat_button_inset_horizontal_material = 0x7f06004d;
public static final int compat_button_inset_vertical_material = 0x7f06004e;
public static final int compat_button_padding_horizontal_material = 0x7f06004f;
public static final int compat_button_padding_vertical_material = 0x7f060050;
public static final int compat_control_corner_material = 0x7f060051;
public static final int design_appbar_elevation = 0x7f060052;
public static final int design_bottom_navigation_active_item_max_width = 0x7f060053;
public static final int design_bottom_navigation_active_text_size = 0x7f060054;
public static final int design_bottom_navigation_elevation = 0x7f060055;
public static final int design_bottom_navigation_height = 0x7f060056;
public static final int design_bottom_navigation_item_max_width = 0x7f060057;
public static final int design_bottom_navigation_item_min_width = 0x7f060058;
public static final int design_bottom_navigation_margin = 0x7f060059;
public static final int design_bottom_navigation_shadow_height = 0x7f06005a;
public static final int design_bottom_navigation_text_size = 0x7f06005b;
public static final int design_bottom_sheet_modal_elevation = 0x7f06005c;
public static final int design_bottom_sheet_peek_height_min = 0x7f06005d;
public static final int design_fab_border_width = 0x7f06005e;
public static final int design_fab_elevation = 0x7f06005f;
public static final int design_fab_image_size = 0x7f060060;
public static final int design_fab_size_mini = 0x7f060061;
public static final int design_fab_size_normal = 0x7f060062;
public static final int design_fab_translation_z_pressed = 0x7f060063;
public static final int design_navigation_elevation = 0x7f060064;
public static final int design_navigation_icon_padding = 0x7f060065;
public static final int design_navigation_icon_size = 0x7f060066;
public static final int design_navigation_max_width = 0x7f060067;
public static final int design_navigation_padding_bottom = 0x7f060068;
public static final int design_navigation_separator_vertical_padding = 0x7f060069;
public static final int design_snackbar_action_inline_max_width = 0x7f06006a;
public static final int design_snackbar_background_corner_radius = 0x7f06006b;
public static final int design_snackbar_elevation = 0x7f06006c;
public static final int design_snackbar_extra_spacing_horizontal = 0x7f06006d;
public static final int design_snackbar_max_width = 0x7f06006e;
public static final int design_snackbar_min_width = 0x7f06006f;
public static final int design_snackbar_padding_horizontal = 0x7f060070;
public static final int design_snackbar_padding_vertical = 0x7f060071;
public static final int design_snackbar_padding_vertical_2lines = 0x7f060072;
public static final int design_snackbar_text_size = 0x7f060073;
public static final int design_tab_max_width = 0x7f060074;
public static final int design_tab_scrollable_min_width = 0x7f060075;
public static final int design_tab_text_size = 0x7f060076;
public static final int design_tab_text_size_2line = 0x7f060077;
public static final int disabled_alpha_material_dark = 0x7f060078;
public static final int disabled_alpha_material_light = 0x7f060079;
public static final int fastscroll_default_thickness = 0x7f06007a;
public static final int fastscroll_margin = 0x7f06007b;
public static final int fastscroll_minimum_range = 0x7f06007c;
public static final int highlight_alpha_material_colored = 0x7f06007d;
public static final int highlight_alpha_material_dark = 0x7f06007e;
public static final int highlight_alpha_material_light = 0x7f06007f;
public static final int hint_alpha_material_dark = 0x7f060080;
public static final int hint_alpha_material_light = 0x7f060081;
public static final int hint_pressed_alpha_material_dark = 0x7f060082;
public static final int hint_pressed_alpha_material_light = 0x7f060083;
public static final int item_touch_helper_max_drag_scroll_per_frame = 0x7f060084;
public static final int item_touch_helper_swipe_escape_max_velocity = 0x7f060085;
public static final int item_touch_helper_swipe_escape_velocity = 0x7f060086;
public static final int notification_action_icon_size = 0x7f060087;
public static final int notification_action_text_size = 0x7f060088;
public static final int notification_big_circle_margin = 0x7f060089;
public static final int notification_content_margin_start = 0x7f06008a;
public static final int notification_large_icon_height = 0x7f06008b;
public static final int notification_large_icon_width = 0x7f06008c;
public static final int notification_main_column_padding_top = 0x7f06008d;
public static final int notification_media_narrow_margin = 0x7f06008e;
public static final int notification_right_icon_size = 0x7f06008f;
public static final int notification_right_side_padding_top = 0x7f060090;
public static final int notification_small_icon_background_padding = 0x7f060091;
public static final int notification_small_icon_size_as_large = 0x7f060092;
public static final int notification_subtext_size = 0x7f060093;
public static final int notification_top_pad = 0x7f060094;
public static final int notification_top_pad_large_text = 0x7f060095;
public static final int tooltip_corner_radius = 0x7f060096;
public static final int tooltip_horizontal_padding = 0x7f060097;
public static final int tooltip_margin = 0x7f060098;
public static final int tooltip_precise_anchor_extra_offset = 0x7f060099;
public static final int tooltip_precise_anchor_threshold = 0x7f06009a;
public static final int tooltip_vertical_padding = 0x7f06009b;
public static final int tooltip_y_offset_non_touch = 0x7f06009c;
public static final int tooltip_y_offset_touch = 0x7f06009d;
}
public static final class drawable {
public static final int abc_ab_share_pack_mtrl_alpha = 0x7f070006;
public static final int abc_action_bar_item_background_material = 0x7f070007;
public static final int abc_btn_borderless_material = 0x7f070008;
public static final int abc_btn_check_material = 0x7f070009;
public static final int abc_btn_check_to_on_mtrl_000 = 0x7f07000a;
public static final int abc_btn_check_to_on_mtrl_015 = 0x7f07000b;
public static final int abc_btn_colored_material = 0x7f07000c;
public static final int abc_btn_default_mtrl_shape = 0x7f07000d;
public static final int abc_btn_radio_material = 0x7f07000e;
public static final int abc_btn_radio_to_on_mtrl_000 = 0x7f07000f;
public static final int abc_btn_radio_to_on_mtrl_015 = 0x7f070010;
public static final int abc_btn_switch_to_on_mtrl_00001 = 0x7f070011;
public static final int abc_btn_switch_to_on_mtrl_00012 = 0x7f070012;
public static final int abc_cab_background_internal_bg = 0x7f070013;
public static final int abc_cab_background_top_material = 0x7f070014;
public static final int abc_cab_background_top_mtrl_alpha = 0x7f070015;
public static final int abc_control_background_material = 0x7f070016;
public static final int abc_dialog_material_background = 0x7f070017;
public static final int abc_edit_text_material = 0x7f070018;
public static final int abc_ic_ab_back_material = 0x7f070019;
public static final int abc_ic_arrow_drop_right_black_24dp = 0x7f07001a;
public static final int abc_ic_clear_material = 0x7f07001b;
public static final int abc_ic_commit_search_api_mtrl_alpha = 0x7f07001c;
public static final int abc_ic_go_search_api_material = 0x7f07001d;
public static final int abc_ic_menu_copy_mtrl_am_alpha = 0x7f07001e;
public static final int abc_ic_menu_cut_mtrl_alpha = 0x7f07001f;
public static final int abc_ic_menu_overflow_material = 0x7f070020;
public static final int abc_ic_menu_paste_mtrl_am_alpha = 0x7f070021;
public static final int abc_ic_menu_selectall_mtrl_alpha = 0x7f070022;
public static final int abc_ic_menu_share_mtrl_alpha = 0x7f070023;
public static final int abc_ic_search_api_material = 0x7f070024;
public static final int abc_ic_star_black_16dp = 0x7f070025;
public static final int abc_ic_star_black_36dp = 0x7f070026;
public static final int abc_ic_star_black_48dp = 0x7f070027;
public static final int abc_ic_star_half_black_16dp = 0x7f070028;
public static final int abc_ic_star_half_black_36dp = 0x7f070029;
public static final int abc_ic_star_half_black_48dp = 0x7f07002a;
public static final int abc_ic_voice_search_api_material = 0x7f07002b;
public static final int abc_item_background_holo_dark = 0x7f07002c;
public static final int abc_item_background_holo_light = 0x7f07002d;
public static final int abc_list_divider_mtrl_alpha = 0x7f07002e;
public static final int abc_list_focused_holo = 0x7f07002f;
public static final int abc_list_longpressed_holo = 0x7f070030;
public static final int abc_list_pressed_holo_dark = 0x7f070031;
public static final int abc_list_pressed_holo_light = 0x7f070032;
public static final int abc_list_selector_background_transition_holo_dark = 0x7f070033;
public static final int abc_list_selector_background_transition_holo_light = 0x7f070034;
public static final int abc_list_selector_disabled_holo_dark = 0x7f070035;
public static final int abc_list_selector_disabled_holo_light = 0x7f070036;
public static final int abc_list_selector_holo_dark = 0x7f070037;
public static final int abc_list_selector_holo_light = 0x7f070038;
public static final int abc_menu_hardkey_panel_mtrl_mult = 0x7f070039;
public static final int abc_popup_background_mtrl_mult = 0x7f07003a;
public static final int abc_ratingbar_indicator_material = 0x7f07003b;
public static final int abc_ratingbar_material = 0x7f07003c;
public static final int abc_ratingbar_small_material = 0x7f07003d;
public static final int abc_scrubber_control_off_mtrl_alpha = 0x7f07003e;
public static final int abc_scrubber_control_to_pressed_mtrl_000 = 0x7f07003f;
public static final int abc_scrubber_control_to_pressed_mtrl_005 = 0x7f070040;
public static final int abc_scrubber_primary_mtrl_alpha = 0x7f070041;
public static final int abc_scrubber_track_mtrl_alpha = 0x7f070042;
public static final int abc_seekbar_thumb_material = 0x7f070043;
public static final int abc_seekbar_tick_mark_material = 0x7f070044;
public static final int abc_seekbar_track_material = 0x7f070045;
public static final int abc_spinner_mtrl_am_alpha = 0x7f070046;
public static final int abc_spinner_textfield_background_material = 0x7f070047;
public static final int abc_switch_thumb_material = 0x7f070048;
public static final int abc_switch_track_mtrl_alpha = 0x7f070049;
public static final int abc_tab_indicator_material = 0x7f07004a;
public static final int abc_tab_indicator_mtrl_alpha = 0x7f07004b;
public static final int abc_text_cursor_material = 0x7f07004c;
public static final int abc_text_select_handle_left_mtrl_dark = 0x7f07004d;
public static final int abc_text_select_handle_left_mtrl_light = 0x7f07004e;
public static final int abc_text_select_handle_middle_mtrl_dark = 0x7f07004f;
public static final int abc_text_select_handle_middle_mtrl_light = 0x7f070050;
public static final int abc_text_select_handle_right_mtrl_dark = 0x7f070051;
public static final int abc_text_select_handle_right_mtrl_light = 0x7f070052;
public static final int abc_textfield_activated_mtrl_alpha = 0x7f070053;
public static final int abc_textfield_default_mtrl_alpha = 0x7f070054;
public static final int abc_textfield_search_activated_mtrl_alpha = 0x7f070055;
public static final int abc_textfield_search_default_mtrl_alpha = 0x7f070056;
public static final int abc_textfield_search_material = 0x7f070057;
public static final int abc_vector_test = 0x7f070058;
public static final int avd_hide_password = 0x7f070059;
public static final int avd_show_password = 0x7f07005a;
public static final int design_bottom_navigation_item_background = 0x7f070067;
public static final int design_fab_background = 0x7f070068;
public static final int design_ic_visibility = 0x7f070069;
public static final int design_ic_visibility_off = 0x7f07006a;
public static final int design_password_eye = 0x7f07006b;
public static final int design_snackbar_background = 0x7f07006c;
public static final int navigation_empty_icon = 0x7f07006d;
public static final int notification_action_background = 0x7f07006e;
public static final int notification_bg = 0x7f07006f;
public static final int notification_bg_low = 0x7f070070;
public static final int notification_bg_low_normal = 0x7f070071;
public static final int notification_bg_low_pressed = 0x7f070072;
public static final int notification_bg_normal = 0x7f070073;
public static final int notification_bg_normal_pressed = 0x7f070074;
public static final int notification_icon_background = 0x7f070075;
public static final int notification_template_icon_bg = 0x7f070076;
public static final int notification_template_icon_low_bg = 0x7f070077;
public static final int notification_tile_bg = 0x7f070078;
public static final int notify_panel_notification_icon_bg = 0x7f070079;
public static final int tooltip_frame_dark = 0x7f07007c;
public static final int tooltip_frame_light = 0x7f07007d;
}
public static final class id {
public static final int action0 = 0x7f080006;
public static final int action_bar = 0x7f080007;
public static final int action_bar_activity_content = 0x7f080008;
public static final int action_bar_container = 0x7f080009;
public static final int action_bar_root = 0x7f08000a;
public static final int action_bar_spinner = 0x7f08000b;
public static final int action_bar_subtitle = 0x7f08000c;
public static final int action_bar_title = 0x7f08000d;
public static final int action_container = 0x7f08000e;
public static final int action_context_bar = 0x7f08000f;
public static final int action_divider = 0x7f080010;
public static final int action_image = 0x7f080011;
public static final int action_menu_divider = 0x7f080012;
public static final int action_menu_presenter = 0x7f080013;
public static final int action_mode_bar = 0x7f080014;
public static final int action_mode_bar_stub = 0x7f080015;
public static final int action_mode_close_button = 0x7f080016;
public static final int action_text = 0x7f080017;
public static final int actions = 0x7f080018;
public static final int activity_chooser_view_content = 0x7f080019;
public static final int add = 0x7f08001a;
public static final int alertTitle = 0x7f08001b;
public static final int async = 0x7f08001f;
public static final int auto = 0x7f080020;
public static final int blocking = 0x7f080023;
public static final int bottom = 0x7f080024;
public static final int buttonPanel = 0x7f080027;
public static final int cancel_action = 0x7f080028;
public static final int center = 0x7f080029;
public static final int checkbox = 0x7f08002c;
public static final int chronometer = 0x7f08002d;
public static final int container = 0x7f080031;
public static final int contentPanel = 0x7f080032;
public static final int coordinator = 0x7f080034;
public static final int custom = 0x7f080035;
public static final int customPanel = 0x7f080036;
public static final int decor_content_parent = 0x7f080037;
public static final int default_activity_button = 0x7f080038;
public static final int design_bottom_sheet = 0x7f080039;
public static final int design_menu_item_action_area = 0x7f08003a;
public static final int design_menu_item_action_area_stub = 0x7f08003b;
public static final int design_menu_item_text = 0x7f08003c;
public static final int design_navigation_view = 0x7f08003d;
public static final int edit_query = 0x7f080040;
public static final int end = 0x7f080041;
public static final int end_padder = 0x7f080042;
public static final int expand_activities_button = 0x7f080046;
public static final int expanded_menu = 0x7f080047;
public static final int fill = 0x7f080048;
public static final int fixed = 0x7f08004b;
public static final int forever = 0x7f08004c;
public static final int ghost_view = 0x7f08004e;
public static final int home = 0x7f08004f;
public static final int icon = 0x7f080051;
public static final int icon_group = 0x7f080052;
public static final int image = 0x7f080054;
public static final int info = 0x7f080056;
public static final int italic = 0x7f080057;
public static final int item_touch_helper_previous_elevation = 0x7f080058;
public static final int largeLabel = 0x7f080059;
public static final int left = 0x7f08005a;
public static final int line1 = 0x7f08005b;
public static final int line3 = 0x7f08005c;
public static final int listMode = 0x7f08005d;
public static final int list_item = 0x7f08005e;
public static final int masked = 0x7f08005f;
public static final int media_actions = 0x7f080060;
public static final int message = 0x7f080061;
public static final int mini = 0x7f080063;
public static final int multiply = 0x7f080064;
public static final int navigation_header_container = 0x7f08006a;
public static final int none = 0x7f08006c;
public static final int normal = 0x7f08006d;
public static final int notification_background = 0x7f08006e;
public static final int notification_main_column = 0x7f08006f;
public static final int notification_main_column_container = 0x7f080070;
public static final int parallax = 0x7f080071;
public static final int parentPanel = 0x7f080072;
public static final int parent_matrix = 0x7f080073;
public static final int pin = 0x7f080074;
public static final int progress_circular = 0x7f080075;
public static final int progress_horizontal = 0x7f080076;
public static final int radio = 0x7f080077;
public static final int right = 0x7f080078;
public static final int right_icon = 0x7f080079;
public static final int right_side = 0x7f08007a;
public static final int save_image_matrix = 0x7f08007b;
public static final int save_non_transition_alpha = 0x7f08007c;
public static final int save_scale_type = 0x7f08007d;
public static final int screen = 0x7f08007e;
public static final int scrollIndicatorDown = 0x7f080080;
public static final int scrollIndicatorUp = 0x7f080081;
public static final int scrollView = 0x7f080082;
public static final int scrollable = 0x7f080083;
public static final int search_badge = 0x7f080084;
public static final int search_bar = 0x7f080085;
public static final int search_button = 0x7f080086;
public static final int search_close_btn = 0x7f080087;
public static final int search_edit_frame = 0x7f080088;
public static final int search_go_btn = 0x7f080089;
public static final int search_mag_icon = 0x7f08008a;
public static final int search_plate = 0x7f08008b;
public static final int search_src_text = 0x7f08008c;
public static final int search_voice_btn = 0x7f08008d;
public static final int select_dialog_listview = 0x7f08008e;
public static final int shortcut = 0x7f08008f;
public static final int smallLabel = 0x7f080093;
public static final int snackbar_action = 0x7f080094;
public static final int snackbar_text = 0x7f080095;
public static final int spacer = 0x7f080097;
public static final int split_action_bar = 0x7f080098;
public static final int src_atop = 0x7f080099;
public static final int src_in = 0x7f08009a;
public static final int src_over = 0x7f08009b;
public static final int start = 0x7f08009c;
public static final int status_bar_latest_event_content = 0x7f08009d;
public static final int submenuarrow = 0x7f08009e;
public static final int submit_area = 0x7f08009f;
public static final int tabMode = 0x7f0800a0;
public static final int tag_transition_group = 0x7f0800a1;
public static final int text = 0x7f0800a2;
public static final int text2 = 0x7f0800a3;
public static final int textSpacerNoButtons = 0x7f0800a4;
public static final int textSpacerNoTitle = 0x7f0800a5;
public static final int text_input_password_toggle = 0x7f0800a7;
public static final int textinput_counter = 0x7f0800a8;
public static final int textinput_error = 0x7f0800a9;
public static final int time = 0x7f0800aa;
public static final int title = 0x7f0800ab;
public static final int titleDividerNoCustom = 0x7f0800ac;
public static final int title_template = 0x7f0800ad;
public static final int top = 0x7f0800ae;
public static final int topPanel = 0x7f0800af;
public static final int touch_outside = 0x7f0800b0;
public static final int transition_current_scene = 0x7f0800b1;
public static final int transition_layout_save = 0x7f0800b2;
public static final int transition_position = 0x7f0800b3;
public static final int transition_scene_layoutid_cache = 0x7f0800b4;
public static final int transition_transform = 0x7f0800b5;
public static final int uniform = 0x7f0800b6;
public static final int up = 0x7f0800b7;
public static final int view_offset_helper = 0x7f0800b9;
public static final int visible = 0x7f0800ba;
public static final int wrap_content = 0x7f0800bc;
}
public static final class integer {
public static final int abc_config_activityDefaultDur = 0x7f090000;
public static final int abc_config_activityShortDur = 0x7f090001;
public static final int app_bar_elevation_anim_duration = 0x7f090002;
public static final int bottom_sheet_slide_duration = 0x7f090003;
public static final int cancel_button_image_alpha = 0x7f090004;
public static final int config_tooltipAnimTime = 0x7f090005;
public static final int design_snackbar_text_max_lines = 0x7f090006;
public static final int hide_password_duration = 0x7f090007;
public static final int show_password_duration = 0x7f090008;
public static final int status_bar_notification_info_maxnum = 0x7f090009;
}
public static final class layout {
public static final int abc_action_bar_title_item = 0x7f0a0000;
public static final int abc_action_bar_up_container = 0x7f0a0001;
public static final int abc_action_menu_item_layout = 0x7f0a0002;
public static final int abc_action_menu_layout = 0x7f0a0003;
public static final int abc_action_mode_bar = 0x7f0a0004;
public static final int abc_action_mode_close_item_material = 0x7f0a0005;
public static final int abc_activity_chooser_view = 0x7f0a0006;
public static final int abc_activity_chooser_view_list_item = 0x7f0a0007;
public static final int abc_alert_dialog_button_bar_material = 0x7f0a0008;
public static final int abc_alert_dialog_material = 0x7f0a0009;
public static final int abc_alert_dialog_title_material = 0x7f0a000a;
public static final int abc_dialog_title_material = 0x7f0a000b;
public static final int abc_expanded_menu_layout = 0x7f0a000c;
public static final int abc_list_menu_item_checkbox = 0x7f0a000d;
public static final int abc_list_menu_item_icon = 0x7f0a000e;
public static final int abc_list_menu_item_layout = 0x7f0a000f;
public static final int abc_list_menu_item_radio = 0x7f0a0010;
public static final int abc_popup_menu_header_item_layout = 0x7f0a0011;
public static final int abc_popup_menu_item_layout = 0x7f0a0012;
public static final int abc_screen_content_include = 0x7f0a0013;
public static final int abc_screen_simple = 0x7f0a0014;
public static final int abc_screen_simple_overlay_action_mode = 0x7f0a0015;
public static final int abc_screen_toolbar = 0x7f0a0016;
public static final int abc_search_dropdown_item_icons_2line = 0x7f0a0017;
public static final int abc_search_view = 0x7f0a0018;
public static final int abc_select_dialog_material = 0x7f0a0019;
public static final int abc_tooltip = 0x7f0a001a;
public static final int design_bottom_navigation_item = 0x7f0a001d;
public static final int design_bottom_sheet_dialog = 0x7f0a001e;
public static final int design_layout_snackbar = 0x7f0a001f;
public static final int design_layout_snackbar_include = 0x7f0a0020;
public static final int design_layout_tab_icon = 0x7f0a0021;
public static final int design_layout_tab_text = 0x7f0a0022;
public static final int design_menu_item_action_area = 0x7f0a0023;
public static final int design_navigation_item = 0x7f0a0024;
public static final int design_navigation_item_header = 0x7f0a0025;
public static final int design_navigation_item_separator = 0x7f0a0026;
public static final int design_navigation_item_subheader = 0x7f0a0027;
public static final int design_navigation_menu = 0x7f0a0028;
public static final int design_navigation_menu_item = 0x7f0a0029;
public static final int design_text_input_password_icon = 0x7f0a002a;
public static final int notification_action = 0x7f0a002c;
public static final int notification_action_tombstone = 0x7f0a002d;
public static final int notification_media_action = 0x7f0a002e;
public static final int notification_media_cancel_action = 0x7f0a002f;
public static final int notification_template_big_media = 0x7f0a0030;
public static final int notification_template_big_media_custom = 0x7f0a0031;
public static final int notification_template_big_media_narrow = 0x7f0a0032;
public static final int notification_template_big_media_narrow_custom = 0x7f0a0033;
public static final int notification_template_custom_big = 0x7f0a0034;
public static final int notification_template_icon_group = 0x7f0a0035;
public static final int notification_template_lines_media = 0x7f0a0036;
public static final int notification_template_media = 0x7f0a0037;
public static final int notification_template_media_custom = 0x7f0a0038;
public static final int notification_template_part_chronometer = 0x7f0a0039;
public static final int notification_template_part_time = 0x7f0a003a;
public static final int select_dialog_item_material = 0x7f0a003b;
public static final int select_dialog_multichoice_material = 0x7f0a003c;
public static final int select_dialog_singlechoice_material = 0x7f0a003d;
public static final int support_simple_spinner_dropdown_item = 0x7f0a003e;
}
public static final class string {
public static final int abc_action_bar_home_description = 0x7f0d0000;
public static final int abc_action_bar_up_description = 0x7f0d0001;
public static final int abc_action_menu_overflow_description = 0x7f0d0002;
public static final int abc_action_mode_done = 0x7f0d0003;
public static final int abc_activity_chooser_view_see_all = 0x7f0d0004;
public static final int abc_activitychooserview_choose_application = 0x7f0d0005;
public static final int abc_capital_off = 0x7f0d0006;
public static final int abc_capital_on = 0x7f0d0007;
public static final int abc_font_family_body_1_material = 0x7f0d0008;
public static final int abc_font_family_body_2_material = 0x7f0d0009;
public static final int abc_font_family_button_material = 0x7f0d000a;
public static final int abc_font_family_caption_material = 0x7f0d000b;
public static final int abc_font_family_display_1_material = 0x7f0d000c;
public static final int abc_font_family_display_2_material = 0x7f0d000d;
public static final int abc_font_family_display_3_material = 0x7f0d000e;
public static final int abc_font_family_display_4_material = 0x7f0d000f;
public static final int abc_font_family_headline_material = 0x7f0d0010;
public static final int abc_font_family_menu_material = 0x7f0d0011;
public static final int abc_font_family_subhead_material = 0x7f0d0012;
public static final int abc_font_family_title_material = 0x7f0d0013;
public static final int abc_search_hint = 0x7f0d0014;
public static final int abc_searchview_description_clear = 0x7f0d0015;
public static final int abc_searchview_description_query = 0x7f0d0016;
public static final int abc_searchview_description_search = 0x7f0d0017;
public static final int abc_searchview_description_submit = 0x7f0d0018;
public static final int abc_searchview_description_voice = 0x7f0d0019;
public static final int abc_shareactionprovider_share_with = 0x7f0d001a;
public static final int abc_shareactionprovider_share_with_application = 0x7f0d001b;
public static final int abc_toolbar_collapse_description = 0x7f0d001c;
public static final int appbar_scrolling_view_behavior = 0x7f0d001e;
public static final int bottom_sheet_behavior = 0x7f0d001f;
public static final int character_counter_pattern = 0x7f0d0020;
public static final int password_toggle_content_description = 0x7f0d0021;
public static final int path_password_eye = 0x7f0d0022;
public static final int path_password_eye_mask_strike_through = 0x7f0d0023;
public static final int path_password_eye_mask_visible = 0x7f0d0024;
public static final int path_password_strike_through = 0x7f0d0025;
public static final int search_menu_title = 0x7f0d0026;
public static final int status_bar_notification_info_overflow = 0x7f0d0027;
}
public static final class style {
public static final int AlertDialog_AppCompat = 0x7f0e0000;
public static final int AlertDialog_AppCompat_Light = 0x7f0e0001;
public static final int Animation_AppCompat_Dialog = 0x7f0e0002;
public static final int Animation_AppCompat_DropDownUp = 0x7f0e0003;
public static final int Animation_AppCompat_Tooltip = 0x7f0e0004;
public static final int Animation_Design_BottomSheetDialog = 0x7f0e0005;
public static final int Base_AlertDialog_AppCompat = 0x7f0e0007;
public static final int Base_AlertDialog_AppCompat_Light = 0x7f0e0008;
public static final int Base_Animation_AppCompat_Dialog = 0x7f0e0009;
public static final int Base_Animation_AppCompat_DropDownUp = 0x7f0e000a;
public static final int Base_Animation_AppCompat_Tooltip = 0x7f0e000b;
public static final int Base_DialogWindowTitleBackground_AppCompat = 0x7f0e000d;
public static final int Base_DialogWindowTitle_AppCompat = 0x7f0e000c;
public static final int Base_TextAppearance_AppCompat = 0x7f0e000e;
public static final int Base_TextAppearance_AppCompat_Body1 = 0x7f0e000f;
public static final int Base_TextAppearance_AppCompat_Body2 = 0x7f0e0010;
public static final int Base_TextAppearance_AppCompat_Button = 0x7f0e0011;
public static final int Base_TextAppearance_AppCompat_Caption = 0x7f0e0012;
public static final int Base_TextAppearance_AppCompat_Display1 = 0x7f0e0013;
public static final int Base_TextAppearance_AppCompat_Display2 = 0x7f0e0014;
public static final int Base_TextAppearance_AppCompat_Display3 = 0x7f0e0015;
public static final int Base_TextAppearance_AppCompat_Display4 = 0x7f0e0016;
public static final int Base_TextAppearance_AppCompat_Headline = 0x7f0e0017;
public static final int Base_TextAppearance_AppCompat_Inverse = 0x7f0e0018;
public static final int Base_TextAppearance_AppCompat_Large = 0x7f0e0019;
public static final int Base_TextAppearance_AppCompat_Large_Inverse = 0x7f0e001a;
public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 0x7f0e001b;
public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 0x7f0e001c;
public static final int Base_TextAppearance_AppCompat_Medium = 0x7f0e001d;
public static final int Base_TextAppearance_AppCompat_Medium_Inverse = 0x7f0e001e;
public static final int Base_TextAppearance_AppCompat_Menu = 0x7f0e001f;
public static final int Base_TextAppearance_AppCompat_SearchResult = 0x7f0e0020;
public static final int Base_TextAppearance_AppCompat_SearchResult_Subtitle = 0x7f0e0021;
public static final int Base_TextAppearance_AppCompat_SearchResult_Title = 0x7f0e0022;
public static final int Base_TextAppearance_AppCompat_Small = 0x7f0e0023;
public static final int Base_TextAppearance_AppCompat_Small_Inverse = 0x7f0e0024;
public static final int Base_TextAppearance_AppCompat_Subhead = 0x7f0e0025;
public static final int Base_TextAppearance_AppCompat_Subhead_Inverse = 0x7f0e0026;
public static final int Base_TextAppearance_AppCompat_Title = 0x7f0e0027;
public static final int Base_TextAppearance_AppCompat_Title_Inverse = 0x7f0e0028;
public static final int Base_TextAppearance_AppCompat_Tooltip = 0x7f0e0029;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Menu = 0x7f0e002a;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 0x7f0e002b;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 0x7f0e002c;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title = 0x7f0e002d;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 0x7f0e002e;
public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 0x7f0e002f;
public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Title = 0x7f0e0030;
public static final int Base_TextAppearance_AppCompat_Widget_Button = 0x7f0e0031;
public static final int Base_TextAppearance_AppCompat_Widget_Button_Borderless_Colored = 0x7f0e0032;
public static final int Base_TextAppearance_AppCompat_Widget_Button_Colored = 0x7f0e0033;
public static final int Base_TextAppearance_AppCompat_Widget_Button_Inverse = 0x7f0e0034;
public static final int Base_TextAppearance_AppCompat_Widget_DropDownItem = 0x7f0e0035;
public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Header = 0x7f0e0036;
public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Large = 0x7f0e0037;
public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Small = 0x7f0e0038;
public static final int Base_TextAppearance_AppCompat_Widget_Switch = 0x7f0e0039;
public static final int Base_TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 0x7f0e003a;
public static final int Base_TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 0x7f0e003b;
public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 0x7f0e003c;
public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Title = 0x7f0e003d;
public static final int Base_ThemeOverlay_AppCompat = 0x7f0e004c;
public static final int Base_ThemeOverlay_AppCompat_ActionBar = 0x7f0e004d;
public static final int Base_ThemeOverlay_AppCompat_Dark = 0x7f0e004e;
public static final int Base_ThemeOverlay_AppCompat_Dark_ActionBar = 0x7f0e004f;
public static final int Base_ThemeOverlay_AppCompat_Dialog = 0x7f0e0050;
public static final int Base_ThemeOverlay_AppCompat_Dialog_Alert = 0x7f0e0051;
public static final int Base_ThemeOverlay_AppCompat_Light = 0x7f0e0052;
public static final int Base_Theme_AppCompat = 0x7f0e003e;
public static final int Base_Theme_AppCompat_CompactMenu = 0x7f0e003f;
public static final int Base_Theme_AppCompat_Dialog = 0x7f0e0040;
public static final int Base_Theme_AppCompat_DialogWhenLarge = 0x7f0e0044;
public static final int Base_Theme_AppCompat_Dialog_Alert = 0x7f0e0041;
public static final int Base_Theme_AppCompat_Dialog_FixedSize = 0x7f0e0042;
public static final int Base_Theme_AppCompat_Dialog_MinWidth = 0x7f0e0043;
public static final int Base_Theme_AppCompat_Light = 0x7f0e0045;
public static final int Base_Theme_AppCompat_Light_DarkActionBar = 0x7f0e0046;
public static final int Base_Theme_AppCompat_Light_Dialog = 0x7f0e0047;
public static final int Base_Theme_AppCompat_Light_DialogWhenLarge = 0x7f0e004b;
public static final int Base_Theme_AppCompat_Light_Dialog_Alert = 0x7f0e0048;
public static final int Base_Theme_AppCompat_Light_Dialog_FixedSize = 0x7f0e0049;
public static final int Base_Theme_AppCompat_Light_Dialog_MinWidth = 0x7f0e004a;
public static final int Base_V14_Widget_Design_AppBarLayout = 0x7f0e0053;
public static final int Base_V21_ThemeOverlay_AppCompat_Dialog = 0x7f0e0058;
public static final int Base_V21_Theme_AppCompat = 0x7f0e0054;
public static final int Base_V21_Theme_AppCompat_Dialog = 0x7f0e0055;
public static final int Base_V21_Theme_AppCompat_Light = 0x7f0e0056;
public static final int Base_V21_Theme_AppCompat_Light_Dialog = 0x7f0e0057;
public static final int Base_V21_Widget_Design_AppBarLayout = 0x7f0e0059;
public static final int Base_V22_Theme_AppCompat = 0x7f0e005a;
public static final int Base_V22_Theme_AppCompat_Light = 0x7f0e005b;
public static final int Base_V23_Theme_AppCompat = 0x7f0e005c;
public static final int Base_V23_Theme_AppCompat_Light = 0x7f0e005d;
public static final int Base_V26_Theme_AppCompat = 0x7f0e005e;
public static final int Base_V26_Theme_AppCompat_Light = 0x7f0e005f;
public static final int Base_V26_Widget_AppCompat_Toolbar = 0x7f0e0060;
public static final int Base_V26_Widget_Design_AppBarLayout = 0x7f0e0061;
public static final int Base_V7_ThemeOverlay_AppCompat_Dialog = 0x7f0e0066;
public static final int Base_V7_Theme_AppCompat = 0x7f0e0062;
public static final int Base_V7_Theme_AppCompat_Dialog = 0x7f0e0063;
public static final int Base_V7_Theme_AppCompat_Light = 0x7f0e0064;
public static final int Base_V7_Theme_AppCompat_Light_Dialog = 0x7f0e0065;
public static final int Base_V7_Widget_AppCompat_AutoCompleteTextView = 0x7f0e0067;
public static final int Base_V7_Widget_AppCompat_EditText = 0x7f0e0068;
public static final int Base_V7_Widget_AppCompat_Toolbar = 0x7f0e0069;
public static final int Base_Widget_AppCompat_ActionBar = 0x7f0e006a;
public static final int Base_Widget_AppCompat_ActionBar_Solid = 0x7f0e006b;
public static final int Base_Widget_AppCompat_ActionBar_TabBar = 0x7f0e006c;
public static final int Base_Widget_AppCompat_ActionBar_TabText = 0x7f0e006d;
public static final int Base_Widget_AppCompat_ActionBar_TabView = 0x7f0e006e;
public static final int Base_Widget_AppCompat_ActionButton = 0x7f0e006f;
public static final int Base_Widget_AppCompat_ActionButton_CloseMode = 0x7f0e0070;
public static final int Base_Widget_AppCompat_ActionButton_Overflow = 0x7f0e0071;
public static final int Base_Widget_AppCompat_ActionMode = 0x7f0e0072;
public static final int Base_Widget_AppCompat_ActivityChooserView = 0x7f0e0073;
public static final int Base_Widget_AppCompat_AutoCompleteTextView = 0x7f0e0074;
public static final int Base_Widget_AppCompat_Button = 0x7f0e0075;
public static final int Base_Widget_AppCompat_ButtonBar = 0x7f0e007b;
public static final int Base_Widget_AppCompat_ButtonBar_AlertDialog = 0x7f0e007c;
public static final int Base_Widget_AppCompat_Button_Borderless = 0x7f0e0076;
public static final int Base_Widget_AppCompat_Button_Borderless_Colored = 0x7f0e0077;
public static final int Base_Widget_AppCompat_Button_ButtonBar_AlertDialog = 0x7f0e0078;
public static final int Base_Widget_AppCompat_Button_Colored = 0x7f0e0079;
public static final int Base_Widget_AppCompat_Button_Small = 0x7f0e007a;
public static final int Base_Widget_AppCompat_CompoundButton_CheckBox = 0x7f0e007d;
public static final int Base_Widget_AppCompat_CompoundButton_RadioButton = 0x7f0e007e;
public static final int Base_Widget_AppCompat_CompoundButton_Switch = 0x7f0e007f;
public static final int Base_Widget_AppCompat_DrawerArrowToggle = 0x7f0e0080;
public static final int Base_Widget_AppCompat_DrawerArrowToggle_Common = 0x7f0e0081;
public static final int Base_Widget_AppCompat_DropDownItem_Spinner = 0x7f0e0082;
public static final int Base_Widget_AppCompat_EditText = 0x7f0e0083;
public static final int Base_Widget_AppCompat_ImageButton = 0x7f0e0084;
public static final int Base_Widget_AppCompat_Light_ActionBar = 0x7f0e0085;
public static final int Base_Widget_AppCompat_Light_ActionBar_Solid = 0x7f0e0086;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabBar = 0x7f0e0087;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabText = 0x7f0e0088;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabText_Inverse = 0x7f0e0089;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabView = 0x7f0e008a;
public static final int Base_Widget_AppCompat_Light_PopupMenu = 0x7f0e008b;
public static final int Base_Widget_AppCompat_Light_PopupMenu_Overflow = 0x7f0e008c;
public static final int Base_Widget_AppCompat_ListMenuView = 0x7f0e008d;
public static final int Base_Widget_AppCompat_ListPopupWindow = 0x7f0e008e;
public static final int Base_Widget_AppCompat_ListView = 0x7f0e008f;
public static final int Base_Widget_AppCompat_ListView_DropDown = 0x7f0e0090;
public static final int Base_Widget_AppCompat_ListView_Menu = 0x7f0e0091;
public static final int Base_Widget_AppCompat_PopupMenu = 0x7f0e0092;
public static final int Base_Widget_AppCompat_PopupMenu_Overflow = 0x7f0e0093;
public static final int Base_Widget_AppCompat_PopupWindow = 0x7f0e0094;
public static final int Base_Widget_AppCompat_ProgressBar = 0x7f0e0095;
public static final int Base_Widget_AppCompat_ProgressBar_Horizontal = 0x7f0e0096;
public static final int Base_Widget_AppCompat_RatingBar = 0x7f0e0097;
public static final int Base_Widget_AppCompat_RatingBar_Indicator = 0x7f0e0098;
public static final int Base_Widget_AppCompat_RatingBar_Small = 0x7f0e0099;
public static final int Base_Widget_AppCompat_SearchView = 0x7f0e009a;
public static final int Base_Widget_AppCompat_SearchView_ActionBar = 0x7f0e009b;
public static final int Base_Widget_AppCompat_SeekBar = 0x7f0e009c;
public static final int Base_Widget_AppCompat_SeekBar_Discrete = 0x7f0e009d;
public static final int Base_Widget_AppCompat_Spinner = 0x7f0e009e;
public static final int Base_Widget_AppCompat_Spinner_Underlined = 0x7f0e009f;
public static final int Base_Widget_AppCompat_TextView_SpinnerItem = 0x7f0e00a0;
public static final int Base_Widget_AppCompat_Toolbar = 0x7f0e00a1;
public static final int Base_Widget_AppCompat_Toolbar_Button_Navigation = 0x7f0e00a2;
public static final int Base_Widget_Design_AppBarLayout = 0x7f0e00a3;
public static final int Base_Widget_Design_TabLayout = 0x7f0e00a4;
public static final int Platform_AppCompat = 0x7f0e00a5;
public static final int Platform_AppCompat_Light = 0x7f0e00a6;
public static final int Platform_ThemeOverlay_AppCompat = 0x7f0e00a7;
public static final int Platform_ThemeOverlay_AppCompat_Dark = 0x7f0e00a8;
public static final int Platform_ThemeOverlay_AppCompat_Light = 0x7f0e00a9;
public static final int Platform_V21_AppCompat = 0x7f0e00aa;
public static final int Platform_V21_AppCompat_Light = 0x7f0e00ab;
public static final int Platform_V25_AppCompat = 0x7f0e00ac;
public static final int Platform_V25_AppCompat_Light = 0x7f0e00ad;
public static final int Platform_Widget_AppCompat_Spinner = 0x7f0e00ae;
public static final int RtlOverlay_DialogWindowTitle_AppCompat = 0x7f0e00af;
public static final int RtlOverlay_Widget_AppCompat_ActionBar_TitleItem = 0x7f0e00b0;
public static final int RtlOverlay_Widget_AppCompat_DialogTitle_Icon = 0x7f0e00b1;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem = 0x7f0e00b2;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_InternalGroup = 0x7f0e00b3;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_Text = 0x7f0e00b4;
public static final int RtlOverlay_Widget_AppCompat_SearchView_MagIcon = 0x7f0e00ba;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown = 0x7f0e00b5;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon1 = 0x7f0e00b6;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon2 = 0x7f0e00b7;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Query = 0x7f0e00b8;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Text = 0x7f0e00b9;
public static final int RtlUnderlay_Widget_AppCompat_ActionButton = 0x7f0e00bb;
public static final int RtlUnderlay_Widget_AppCompat_ActionButton_Overflow = 0x7f0e00bc;
public static final int TextAppearance_AppCompat = 0x7f0e00bd;
public static final int TextAppearance_AppCompat_Body1 = 0x7f0e00be;
public static final int TextAppearance_AppCompat_Body2 = 0x7f0e00bf;
public static final int TextAppearance_AppCompat_Button = 0x7f0e00c0;
public static final int TextAppearance_AppCompat_Caption = 0x7f0e00c1;
public static final int TextAppearance_AppCompat_Display1 = 0x7f0e00c2;
public static final int TextAppearance_AppCompat_Display2 = 0x7f0e00c3;
public static final int TextAppearance_AppCompat_Display3 = 0x7f0e00c4;
public static final int TextAppearance_AppCompat_Display4 = 0x7f0e00c5;
public static final int TextAppearance_AppCompat_Headline = 0x7f0e00c6;
public static final int TextAppearance_AppCompat_Inverse = 0x7f0e00c7;
public static final int TextAppearance_AppCompat_Large = 0x7f0e00c8;
public static final int TextAppearance_AppCompat_Large_Inverse = 0x7f0e00c9;
public static final int TextAppearance_AppCompat_Light_SearchResult_Subtitle = 0x7f0e00ca;
public static final int TextAppearance_AppCompat_Light_SearchResult_Title = 0x7f0e00cb;
public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 0x7f0e00cc;
public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 0x7f0e00cd;
public static final int TextAppearance_AppCompat_Medium = 0x7f0e00ce;
public static final int TextAppearance_AppCompat_Medium_Inverse = 0x7f0e00cf;
public static final int TextAppearance_AppCompat_Menu = 0x7f0e00d0;
public static final int TextAppearance_AppCompat_SearchResult_Subtitle = 0x7f0e00d1;
public static final int TextAppearance_AppCompat_SearchResult_Title = 0x7f0e00d2;
public static final int TextAppearance_AppCompat_Small = 0x7f0e00d3;
public static final int TextAppearance_AppCompat_Small_Inverse = 0x7f0e00d4;
public static final int TextAppearance_AppCompat_Subhead = 0x7f0e00d5;
public static final int TextAppearance_AppCompat_Subhead_Inverse = 0x7f0e00d6;
public static final int TextAppearance_AppCompat_Title = 0x7f0e00d7;
public static final int TextAppearance_AppCompat_Title_Inverse = 0x7f0e00d8;
public static final int TextAppearance_AppCompat_Tooltip = 0x7f0e00d9;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Menu = 0x7f0e00da;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 0x7f0e00db;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 0x7f0e00dc;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Title = 0x7f0e00dd;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 0x7f0e00de;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 0x7f0e00df;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse = 0x7f0e00e0;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Title = 0x7f0e00e1;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse = 0x7f0e00e2;
public static final int TextAppearance_AppCompat_Widget_Button = 0x7f0e00e3;
public static final int TextAppearance_AppCompat_Widget_Button_Borderless_Colored = 0x7f0e00e4;
public static final int TextAppearance_AppCompat_Widget_Button_Colored = 0x7f0e00e5;
public static final int TextAppearance_AppCompat_Widget_Button_Inverse = 0x7f0e00e6;
public static final int TextAppearance_AppCompat_Widget_DropDownItem = 0x7f0e00e7;
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Header = 0x7f0e00e8;
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Large = 0x7f0e00e9;
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Small = 0x7f0e00ea;
public static final int TextAppearance_AppCompat_Widget_Switch = 0x7f0e00eb;
public static final int TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 0x7f0e00ec;
public static final int TextAppearance_Compat_Notification = 0x7f0e00ed;
public static final int TextAppearance_Compat_Notification_Info = 0x7f0e00ee;
public static final int TextAppearance_Compat_Notification_Info_Media = 0x7f0e00ef;
public static final int TextAppearance_Compat_Notification_Line2 = 0x7f0e00f0;
public static final int TextAppearance_Compat_Notification_Line2_Media = 0x7f0e00f1;
public static final int TextAppearance_Compat_Notification_Media = 0x7f0e00f2;
public static final int TextAppearance_Compat_Notification_Time = 0x7f0e00f3;
public static final int TextAppearance_Compat_Notification_Time_Media = 0x7f0e00f4;
public static final int TextAppearance_Compat_Notification_Title = 0x7f0e00f5;
public static final int TextAppearance_Compat_Notification_Title_Media = 0x7f0e00f6;
public static final int TextAppearance_Design_CollapsingToolbar_Expanded = 0x7f0e00f7;
public static final int TextAppearance_Design_Counter = 0x7f0e00f8;
public static final int TextAppearance_Design_Counter_Overflow = 0x7f0e00f9;
public static final int TextAppearance_Design_Error = 0x7f0e00fa;
public static final int TextAppearance_Design_Hint = 0x7f0e00fb;
public static final int TextAppearance_Design_Snackbar_Message = 0x7f0e00fc;
public static final int TextAppearance_Design_Tab = 0x7f0e00fd;
public static final int TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 0x7f0e00fe;
public static final int TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 0x7f0e00ff;
public static final int TextAppearance_Widget_AppCompat_Toolbar_Title = 0x7f0e0100;
public static final int ThemeOverlay_AppCompat = 0x7f0e011c;
public static final int ThemeOverlay_AppCompat_ActionBar = 0x7f0e011d;
public static final int ThemeOverlay_AppCompat_Dark = 0x7f0e011e;
public static final int ThemeOverlay_AppCompat_Dark_ActionBar = 0x7f0e011f;
public static final int ThemeOverlay_AppCompat_Dialog = 0x7f0e0120;
public static final int ThemeOverlay_AppCompat_Dialog_Alert = 0x7f0e0121;
public static final int ThemeOverlay_AppCompat_Light = 0x7f0e0122;
public static final int Theme_AppCompat = 0x7f0e0101;
public static final int Theme_AppCompat_CompactMenu = 0x7f0e0102;
public static final int Theme_AppCompat_DayNight = 0x7f0e0103;
public static final int Theme_AppCompat_DayNight_DarkActionBar = 0x7f0e0104;
public static final int Theme_AppCompat_DayNight_Dialog = 0x7f0e0105;
public static final int Theme_AppCompat_DayNight_DialogWhenLarge = 0x7f0e0108;
public static final int Theme_AppCompat_DayNight_Dialog_Alert = 0x7f0e0106;
public static final int Theme_AppCompat_DayNight_Dialog_MinWidth = 0x7f0e0107;
public static final int Theme_AppCompat_DayNight_NoActionBar = 0x7f0e0109;
public static final int Theme_AppCompat_Dialog = 0x7f0e010a;
public static final int Theme_AppCompat_DialogWhenLarge = 0x7f0e010d;
public static final int Theme_AppCompat_Dialog_Alert = 0x7f0e010b;
public static final int Theme_AppCompat_Dialog_MinWidth = 0x7f0e010c;
public static final int Theme_AppCompat_Light = 0x7f0e010e;
public static final int Theme_AppCompat_Light_DarkActionBar = 0x7f0e010f;
public static final int Theme_AppCompat_Light_Dialog = 0x7f0e0110;
public static final int Theme_AppCompat_Light_DialogWhenLarge = 0x7f0e0113;
public static final int Theme_AppCompat_Light_Dialog_Alert = 0x7f0e0111;
public static final int Theme_AppCompat_Light_Dialog_MinWidth = 0x7f0e0112;
public static final int Theme_AppCompat_Light_NoActionBar = 0x7f0e0114;
public static final int Theme_AppCompat_NoActionBar = 0x7f0e0115;
public static final int Theme_Design = 0x7f0e0116;
public static final int Theme_Design_BottomSheetDialog = 0x7f0e0117;
public static final int Theme_Design_Light = 0x7f0e0118;
public static final int Theme_Design_Light_BottomSheetDialog = 0x7f0e0119;
public static final int Theme_Design_Light_NoActionBar = 0x7f0e011a;
public static final int Theme_Design_NoActionBar = 0x7f0e011b;
public static final int Widget_AppCompat_ActionBar = 0x7f0e0123;
public static final int Widget_AppCompat_ActionBar_Solid = 0x7f0e0124;
public static final int Widget_AppCompat_ActionBar_TabBar = 0x7f0e0125;
public static final int Widget_AppCompat_ActionBar_TabText = 0x7f0e0126;
public static final int Widget_AppCompat_ActionBar_TabView = 0x7f0e0127;
public static final int Widget_AppCompat_ActionButton = 0x7f0e0128;
public static final int Widget_AppCompat_ActionButton_CloseMode = 0x7f0e0129;
public static final int Widget_AppCompat_ActionButton_Overflow = 0x7f0e012a;
public static final int Widget_AppCompat_ActionMode = 0x7f0e012b;
public static final int Widget_AppCompat_ActivityChooserView = 0x7f0e012c;
public static final int Widget_AppCompat_AutoCompleteTextView = 0x7f0e012d;
public static final int Widget_AppCompat_Button = 0x7f0e012e;
public static final int Widget_AppCompat_ButtonBar = 0x7f0e0134;
public static final int Widget_AppCompat_ButtonBar_AlertDialog = 0x7f0e0135;
public static final int Widget_AppCompat_Button_Borderless = 0x7f0e012f;
public static final int Widget_AppCompat_Button_Borderless_Colored = 0x7f0e0130;
public static final int Widget_AppCompat_Button_ButtonBar_AlertDialog = 0x7f0e0131;
public static final int Widget_AppCompat_Button_Colored = 0x7f0e0132;
public static final int Widget_AppCompat_Button_Small = 0x7f0e0133;
public static final int Widget_AppCompat_CompoundButton_CheckBox = 0x7f0e0136;
public static final int Widget_AppCompat_CompoundButton_RadioButton = 0x7f0e0137;
public static final int Widget_AppCompat_CompoundButton_Switch = 0x7f0e0138;
public static final int Widget_AppCompat_DrawerArrowToggle = 0x7f0e0139;
public static final int Widget_AppCompat_DropDownItem_Spinner = 0x7f0e013a;
public static final int Widget_AppCompat_EditText = 0x7f0e013b;
public static final int Widget_AppCompat_ImageButton = 0x7f0e013c;
public static final int Widget_AppCompat_Light_ActionBar = 0x7f0e013d;
public static final int Widget_AppCompat_Light_ActionBar_Solid = 0x7f0e013e;
public static final int Widget_AppCompat_Light_ActionBar_Solid_Inverse = 0x7f0e013f;
public static final int Widget_AppCompat_Light_ActionBar_TabBar = 0x7f0e0140;
public static final int Widget_AppCompat_Light_ActionBar_TabBar_Inverse = 0x7f0e0141;
public static final int Widget_AppCompat_Light_ActionBar_TabText = 0x7f0e0142;
public static final int Widget_AppCompat_Light_ActionBar_TabText_Inverse = 0x7f0e0143;
public static final int Widget_AppCompat_Light_ActionBar_TabView = 0x7f0e0144;
public static final int Widget_AppCompat_Light_ActionBar_TabView_Inverse = 0x7f0e0145;
public static final int Widget_AppCompat_Light_ActionButton = 0x7f0e0146;
public static final int Widget_AppCompat_Light_ActionButton_CloseMode = 0x7f0e0147;
public static final int Widget_AppCompat_Light_ActionButton_Overflow = 0x7f0e0148;
public static final int Widget_AppCompat_Light_ActionMode_Inverse = 0x7f0e0149;
public static final int Widget_AppCompat_Light_ActivityChooserView = 0x7f0e014a;
public static final int Widget_AppCompat_Light_AutoCompleteTextView = 0x7f0e014b;
public static final int Widget_AppCompat_Light_DropDownItem_Spinner = 0x7f0e014c;
public static final int Widget_AppCompat_Light_ListPopupWindow = 0x7f0e014d;
public static final int Widget_AppCompat_Light_ListView_DropDown = 0x7f0e014e;
public static final int Widget_AppCompat_Light_PopupMenu = 0x7f0e014f;
public static final int Widget_AppCompat_Light_PopupMenu_Overflow = 0x7f0e0150;
public static final int Widget_AppCompat_Light_SearchView = 0x7f0e0151;
public static final int Widget_AppCompat_Light_Spinner_DropDown_ActionBar = 0x7f0e0152;
public static final int Widget_AppCompat_ListMenuView = 0x7f0e0153;
public static final int Widget_AppCompat_ListPopupWindow = 0x7f0e0154;
public static final int Widget_AppCompat_ListView = 0x7f0e0155;
public static final int Widget_AppCompat_ListView_DropDown = 0x7f0e0156;
public static final int Widget_AppCompat_ListView_Menu = 0x7f0e0157;
public static final int Widget_AppCompat_PopupMenu = 0x7f0e0158;
public static final int Widget_AppCompat_PopupMenu_Overflow = 0x7f0e0159;
public static final int Widget_AppCompat_PopupWindow = 0x7f0e015a;
public static final int Widget_AppCompat_ProgressBar = 0x7f0e015b;
public static final int Widget_AppCompat_ProgressBar_Horizontal = 0x7f0e015c;
public static final int Widget_AppCompat_RatingBar = 0x7f0e015d;
public static final int Widget_AppCompat_RatingBar_Indicator = 0x7f0e015e;
public static final int Widget_AppCompat_RatingBar_Small = 0x7f0e015f;
public static final int Widget_AppCompat_SearchView = 0x7f0e0160;
public static final int Widget_AppCompat_SearchView_ActionBar = 0x7f0e0161;
public static final int Widget_AppCompat_SeekBar = 0x7f0e0162;
public static final int Widget_AppCompat_SeekBar_Discrete = 0x7f0e0163;
public static final int Widget_AppCompat_Spinner = 0x7f0e0164;
public static final int Widget_AppCompat_Spinner_DropDown = 0x7f0e0165;
public static final int Widget_AppCompat_Spinner_DropDown_ActionBar = 0x7f0e0166;
public static final int Widget_AppCompat_Spinner_Underlined = 0x7f0e0167;
public static final int Widget_AppCompat_TextView_SpinnerItem = 0x7f0e0168;
public static final int Widget_AppCompat_Toolbar = 0x7f0e0169;
public static final int Widget_AppCompat_Toolbar_Button_Navigation = 0x7f0e016a;
public static final int Widget_Compat_NotificationActionContainer = 0x7f0e016b;
public static final int Widget_Compat_NotificationActionText = 0x7f0e016c;
public static final int Widget_Design_AppBarLayout = 0x7f0e016d;
public static final int Widget_Design_BottomNavigationView = 0x7f0e016e;
public static final int Widget_Design_BottomSheet_Modal = 0x7f0e016f;
public static final int Widget_Design_CollapsingToolbar = 0x7f0e0170;
public static final int Widget_Design_CoordinatorLayout = 0x7f0e0171;
public static final int Widget_Design_FloatingActionButton = 0x7f0e0172;
public static final int Widget_Design_NavigationView = 0x7f0e0173;
public static final int Widget_Design_ScrimInsetsFrameLayout = 0x7f0e0174;
public static final int Widget_Design_Snackbar = 0x7f0e0175;
public static final int Widget_Design_TabLayout = 0x7f0e0176;
public static final int Widget_Design_TextInputLayout = 0x7f0e0177;
public static final int Widget_Support_CoordinatorLayout = 0x7f0e0178;
}
public static final class styleable {
public static final int[] ActionBar = { 0x7f030031, 0x7f030032, 0x7f030033, 0x7f030062, 0x7f030063, 0x7f030064, 0x7f030065, 0x7f030066, 0x7f030067, 0x7f03006f, 0x7f030073, 0x7f030074, 0x7f03007f, 0x7f0300a0, 0x7f0300a1, 0x7f0300a5, 0x7f0300a6, 0x7f0300a7, 0x7f0300ac, 0x7f0300b2, 0x7f0300cd, 0x7f0300d6, 0x7f0300e6, 0x7f0300ea, 0x7f0300eb, 0x7f030110, 0x7f030113, 0x7f03013f, 0x7f030149 };
public static final int ActionBar_background = 0;
public static final int ActionBar_backgroundSplit = 1;
public static final int ActionBar_backgroundStacked = 2;
public static final int ActionBar_contentInsetEnd = 3;
public static final int ActionBar_contentInsetEndWithActions = 4;
public static final int ActionBar_contentInsetLeft = 5;
public static final int ActionBar_contentInsetRight = 6;
public static final int ActionBar_contentInsetStart = 7;
public static final int ActionBar_contentInsetStartWithNavigation = 8;
public static final int ActionBar_customNavigationLayout = 9;
public static final int ActionBar_displayOptions = 10;
public static final int ActionBar_divider = 11;
public static final int ActionBar_elevation = 12;
public static final int ActionBar_height = 13;
public static final int ActionBar_hideOnContentScroll = 14;
public static final int ActionBar_homeAsUpIndicator = 15;
public static final int ActionBar_homeLayout = 16;
public static final int ActionBar_icon = 17;
public static final int ActionBar_indeterminateProgressStyle = 18;
public static final int ActionBar_itemPadding = 19;
public static final int ActionBar_logo = 20;
public static final int ActionBar_navigationMode = 21;
public static final int ActionBar_popupTheme = 22;
public static final int ActionBar_progressBarPadding = 23;
public static final int ActionBar_progressBarStyle = 24;
public static final int ActionBar_subtitle = 25;
public static final int ActionBar_subtitleTextStyle = 26;
public static final int ActionBar_title = 27;
public static final int ActionBar_titleTextStyle = 28;
public static final int[] ActionBarLayout = { 0x010100b3 };
public static final int ActionBarLayout_android_layout_gravity = 0;
public static final int[] ActionMenuItemView = { 0x0101013f };
public static final int ActionMenuItemView_android_minWidth = 0;
public static final int[] ActionMode = { 0x7f030031, 0x7f030032, 0x7f030050, 0x7f0300a0, 0x7f030113, 0x7f030149 };
public static final int ActionMode_background = 0;
public static final int ActionMode_backgroundSplit = 1;
public static final int ActionMode_closeItemLayout = 2;
public static final int ActionMode_height = 3;
public static final int ActionMode_subtitleTextStyle = 4;
public static final int ActionMode_titleTextStyle = 5;
public static final int[] ActivityChooserView = { 0x7f030082, 0x7f0300ad };
public static final int ActivityChooserView_expandActivityOverflowButtonDrawable = 0;
public static final int ActivityChooserView_initialActivityCount = 1;
public static final int[] AlertDialog = { 0x010100f2, 0x7f030046, 0x7f030047, 0x7f0300c4, 0x7f0300c5, 0x7f0300d3, 0x7f0300ff, 0x7f030101 };
public static final int AlertDialog_android_layout = 0;
public static final int AlertDialog_buttonIconDimen = 1;
public static final int AlertDialog_buttonPanelSideLayout = 2;
public static final int AlertDialog_listItemLayout = 3;
public static final int AlertDialog_listLayout = 4;
public static final int AlertDialog_multiChoiceItemLayout = 5;
public static final int AlertDialog_showTitle = 6;
public static final int AlertDialog_singleChoiceItemLayout = 7;
public static final int[] AppBarLayout = { 0x010100d4, 0x0101048f, 0x01010540, 0x7f03007f, 0x7f030083 };
public static final int AppBarLayout_android_background = 0;
public static final int AppBarLayout_android_touchscreenBlocksFocus = 1;
public static final int AppBarLayout_android_keyboardNavigationCluster = 2;
public static final int AppBarLayout_elevation = 3;
public static final int AppBarLayout_expanded = 4;
public static final int[] AppBarLayoutStates = { 0x7f03010a, 0x7f03010b };
public static final int AppBarLayoutStates_state_collapsed = 0;
public static final int AppBarLayoutStates_state_collapsible = 1;
public static final int[] AppBarLayout_Layout = { 0x7f0300c0, 0x7f0300c1 };
public static final int AppBarLayout_Layout_layout_scrollFlags = 0;
public static final int AppBarLayout_Layout_layout_scrollInterpolator = 1;
public static final int[] AppCompatImageView = { 0x01010119, 0x7f030107, 0x7f03013d, 0x7f03013e };
public static final int AppCompatImageView_android_src = 0;
public static final int AppCompatImageView_srcCompat = 1;
public static final int AppCompatImageView_tint = 2;
public static final int AppCompatImageView_tintMode = 3;
public static final int[] AppCompatSeekBar = { 0x01010142, 0x7f03013a, 0x7f03013b, 0x7f03013c };
public static final int AppCompatSeekBar_android_thumb = 0;
public static final int AppCompatSeekBar_tickMark = 1;
public static final int AppCompatSeekBar_tickMarkTint = 2;
public static final int AppCompatSeekBar_tickMarkTintMode = 3;
public static final int[] AppCompatTextHelper = { 0x01010034, 0x0101016d, 0x0101016e, 0x0101016f, 0x01010170, 0x01010392, 0x01010393 };
public static final int AppCompatTextHelper_android_textAppearance = 0;
public static final int AppCompatTextHelper_android_drawableTop = 1;
public static final int AppCompatTextHelper_android_drawableBottom = 2;
public static final int AppCompatTextHelper_android_drawableLeft = 3;
public static final int AppCompatTextHelper_android_drawableRight = 4;
public static final int AppCompatTextHelper_android_drawableStart = 5;
public static final int AppCompatTextHelper_android_drawableEnd = 6;
public static final int[] AppCompatTextView = { 0x01010034, 0x7f03002c, 0x7f03002d, 0x7f03002e, 0x7f03002f, 0x7f030030, 0x7f030093, 0x7f030129 };
public static final int AppCompatTextView_android_textAppearance = 0;
public static final int AppCompatTextView_autoSizeMaxTextSize = 1;
public static final int AppCompatTextView_autoSizeMinTextSize = 2;
public static final int AppCompatTextView_autoSizePresetSizes = 3;
public static final int AppCompatTextView_autoSizeStepGranularity = 4;
public static final int AppCompatTextView_autoSizeTextType = 5;
public static final int AppCompatTextView_fontFamily = 6;
public static final int AppCompatTextView_textAllCaps = 7;
public static final int[] AppCompatTheme = { 0x01010057, 0x010100ae, 0x7f030000, 0x7f030001, 0x7f030002, 0x7f030003, 0x7f030004, 0x7f030005, 0x7f030006, 0x7f030007, 0x7f030008, 0x7f030009, 0x7f03000a, 0x7f03000b, 0x7f03000c, 0x7f03000e, 0x7f03000f, 0x7f030010, 0x7f030011, 0x7f030012, 0x7f030013, 0x7f030014, 0x7f030015, 0x7f030016, 0x7f030017, 0x7f030018, 0x7f030019, 0x7f03001a, 0x7f03001b, 0x7f03001c, 0x7f03001d, 0x7f03001e, 0x7f030021, 0x7f030022, 0x7f030023, 0x7f030024, 0x7f030025, 0x7f03002b, 0x7f03003d, 0x7f030040, 0x7f030041, 0x7f030042, 0x7f030043, 0x7f030044, 0x7f030048, 0x7f030049, 0x7f03004d, 0x7f03004e, 0x7f030056, 0x7f030057, 0x7f030058, 0x7f030059, 0x7f03005a, 0x7f03005b, 0x7f03005c, 0x7f03005d, 0x7f03005e, 0x7f03005f, 0x7f030069, 0x7f030071, 0x7f030072, 0x7f030075, 0x7f030077, 0x7f03007a, 0x7f03007b, 0x7f03007c, 0x7f03007d, 0x7f03007e, 0x7f0300a5, 0x7f0300ab, 0x7f0300c2, 0x7f0300c3, 0x7f0300c6, 0x7f0300c7, 0x7f0300c8, 0x7f0300c9, 0x7f0300ca, 0x7f0300cb, 0x7f0300cc, 0x7f0300dd, 0x7f0300de, 0x7f0300df, 0x7f0300e5, 0x7f0300e7, 0x7f0300ee, 0x7f0300ef, 0x7f0300f0, 0x7f0300f1, 0x7f0300f8, 0x7f0300f9, 0x7f0300fa, 0x7f0300fb, 0x7f030104, 0x7f030105, 0x7f030117, 0x7f03012a, 0x7f03012b, 0x7f03012c, 0x7f03012d, 0x7f03012e, 0x7f03012f, 0x7f030130, 0x7f030131, 0x7f030132, 0x7f030134, 0x7f03014b, 0x7f03014c, 0x7f03014d, 0x7f03014e, 0x7f030154, 0x7f030156, 0x7f030157, 0x7f030158, 0x7f030159, 0x7f03015a, 0x7f03015b, 0x7f03015c, 0x7f03015d, 0x7f03015e, 0x7f03015f };
public static final int AppCompatTheme_android_windowIsFloating = 0;
public static final int AppCompatTheme_android_windowAnimationStyle = 1;
public static final int AppCompatTheme_actionBarDivider = 2;
public static final int AppCompatTheme_actionBarItemBackground = 3;
public static final int AppCompatTheme_actionBarPopupTheme = 4;
public static final int AppCompatTheme_actionBarSize = 5;
public static final int AppCompatTheme_actionBarSplitStyle = 6;
public static final int AppCompatTheme_actionBarStyle = 7;
public static final int AppCompatTheme_actionBarTabBarStyle = 8;
public static final int AppCompatTheme_actionBarTabStyle = 9;
public static final int AppCompatTheme_actionBarTabTextStyle = 10;
public static final int AppCompatTheme_actionBarTheme = 11;
public static final int AppCompatTheme_actionBarWidgetTheme = 12;
public static final int AppCompatTheme_actionButtonStyle = 13;
public static final int AppCompatTheme_actionDropDownStyle = 14;
public static final int AppCompatTheme_actionMenuTextAppearance = 15;
public static final int AppCompatTheme_actionMenuTextColor = 16;
public static final int AppCompatTheme_actionModeBackground = 17;
public static final int AppCompatTheme_actionModeCloseButtonStyle = 18;
public static final int AppCompatTheme_actionModeCloseDrawable = 19;
public static final int AppCompatTheme_actionModeCopyDrawable = 20;
public static final int AppCompatTheme_actionModeCutDrawable = 21;
public static final int AppCompatTheme_actionModeFindDrawable = 22;
public static final int AppCompatTheme_actionModePasteDrawable = 23;
public static final int AppCompatTheme_actionModePopupWindowStyle = 24;
public static final int AppCompatTheme_actionModeSelectAllDrawable = 25;
public static final int AppCompatTheme_actionModeShareDrawable = 26;
public static final int AppCompatTheme_actionModeSplitBackground = 27;
public static final int AppCompatTheme_actionModeStyle = 28;
public static final int AppCompatTheme_actionModeWebSearchDrawable = 29;
public static final int AppCompatTheme_actionOverflowButtonStyle = 30;
public static final int AppCompatTheme_actionOverflowMenuStyle = 31;
public static final int AppCompatTheme_activityChooserViewStyle = 32;
public static final int AppCompatTheme_alertDialogButtonGroupStyle = 33;
public static final int AppCompatTheme_alertDialogCenterButtons = 34;
public static final int AppCompatTheme_alertDialogStyle = 35;
public static final int AppCompatTheme_alertDialogTheme = 36;
public static final int AppCompatTheme_autoCompleteTextViewStyle = 37;
public static final int AppCompatTheme_borderlessButtonStyle = 38;
public static final int AppCompatTheme_buttonBarButtonStyle = 39;
public static final int AppCompatTheme_buttonBarNegativeButtonStyle = 40;
public static final int AppCompatTheme_buttonBarNeutralButtonStyle = 41;
public static final int AppCompatTheme_buttonBarPositiveButtonStyle = 42;
public static final int AppCompatTheme_buttonBarStyle = 43;
public static final int AppCompatTheme_buttonStyle = 44;
public static final int AppCompatTheme_buttonStyleSmall = 45;
public static final int AppCompatTheme_checkboxStyle = 46;
public static final int AppCompatTheme_checkedTextViewStyle = 47;
public static final int AppCompatTheme_colorAccent = 48;
public static final int AppCompatTheme_colorBackgroundFloating = 49;
public static final int AppCompatTheme_colorButtonNormal = 50;
public static final int AppCompatTheme_colorControlActivated = 51;
public static final int AppCompatTheme_colorControlHighlight = 52;
public static final int AppCompatTheme_colorControlNormal = 53;
public static final int AppCompatTheme_colorError = 54;
public static final int AppCompatTheme_colorPrimary = 55;
public static final int AppCompatTheme_colorPrimaryDark = 56;
public static final int AppCompatTheme_colorSwitchThumbNormal = 57;
public static final int AppCompatTheme_controlBackground = 58;
public static final int AppCompatTheme_dialogPreferredPadding = 59;
public static final int AppCompatTheme_dialogTheme = 60;
public static final int AppCompatTheme_dividerHorizontal = 61;
public static final int AppCompatTheme_dividerVertical = 62;
public static final int AppCompatTheme_dropDownListViewStyle = 63;
public static final int AppCompatTheme_dropdownListPreferredItemHeight = 64;
public static final int AppCompatTheme_editTextBackground = 65;
public static final int AppCompatTheme_editTextColor = 66;
public static final int AppCompatTheme_editTextStyle = 67;
public static final int AppCompatTheme_homeAsUpIndicator = 68;
public static final int AppCompatTheme_imageButtonStyle = 69;
public static final int AppCompatTheme_listChoiceBackgroundIndicator = 70;
public static final int AppCompatTheme_listDividerAlertDialog = 71;
public static final int AppCompatTheme_listMenuViewStyle = 72;
public static final int AppCompatTheme_listPopupWindowStyle = 73;
public static final int AppCompatTheme_listPreferredItemHeight = 74;
public static final int AppCompatTheme_listPreferredItemHeightLarge = 75;
public static final int AppCompatTheme_listPreferredItemHeightSmall = 76;
public static final int AppCompatTheme_listPreferredItemPaddingLeft = 77;
public static final int AppCompatTheme_listPreferredItemPaddingRight = 78;
public static final int AppCompatTheme_panelBackground = 79;
public static final int AppCompatTheme_panelMenuListTheme = 80;
public static final int AppCompatTheme_panelMenuListWidth = 81;
public static final int AppCompatTheme_popupMenuStyle = 82;
public static final int AppCompatTheme_popupWindowStyle = 83;
public static final int AppCompatTheme_radioButtonStyle = 84;
public static final int AppCompatTheme_ratingBarStyle = 85;
public static final int AppCompatTheme_ratingBarStyleIndicator = 86;
public static final int AppCompatTheme_ratingBarStyleSmall = 87;
public static final int AppCompatTheme_searchViewStyle = 88;
public static final int AppCompatTheme_seekBarStyle = 89;
public static final int AppCompatTheme_selectableItemBackground = 90;
public static final int AppCompatTheme_selectableItemBackgroundBorderless = 91;
public static final int AppCompatTheme_spinnerDropDownItemStyle = 92;
public static final int AppCompatTheme_spinnerStyle = 93;
public static final int AppCompatTheme_switchStyle = 94;
public static final int AppCompatTheme_textAppearanceLargePopupMenu = 95;
public static final int AppCompatTheme_textAppearanceListItem = 96;
public static final int AppCompatTheme_textAppearanceListItemSecondary = 97;
public static final int AppCompatTheme_textAppearanceListItemSmall = 98;
public static final int AppCompatTheme_textAppearancePopupMenuHeader = 99;
public static final int AppCompatTheme_textAppearanceSearchResultSubtitle = 100;
public static final int AppCompatTheme_textAppearanceSearchResultTitle = 101;
public static final int AppCompatTheme_textAppearanceSmallPopupMenu = 102;
public static final int AppCompatTheme_textColorAlertDialogListItem = 103;
public static final int AppCompatTheme_textColorSearchUrl = 104;
public static final int AppCompatTheme_toolbarNavigationButtonStyle = 105;
public static final int AppCompatTheme_toolbarStyle = 106;
public static final int AppCompatTheme_tooltipForegroundColor = 107;
public static final int AppCompatTheme_tooltipFrameBackground = 108;
public static final int AppCompatTheme_viewInflaterClass = 109;
public static final int AppCompatTheme_windowActionBar = 110;
public static final int AppCompatTheme_windowActionBarOverlay = 111;
public static final int AppCompatTheme_windowActionModeOverlay = 112;
public static final int AppCompatTheme_windowFixedHeightMajor = 113;
public static final int AppCompatTheme_windowFixedHeightMinor = 114;
public static final int AppCompatTheme_windowFixedWidthMajor = 115;
public static final int AppCompatTheme_windowFixedWidthMinor = 116;
public static final int AppCompatTheme_windowMinWidthMajor = 117;
public static final int AppCompatTheme_windowMinWidthMinor = 118;
public static final int AppCompatTheme_windowNoTitle = 119;
public static final int[] BottomNavigationView = { 0x7f03007f, 0x7f0300b0, 0x7f0300b1, 0x7f0300b4, 0x7f0300d2 };
public static final int BottomNavigationView_elevation = 0;
public static final int BottomNavigationView_itemBackground = 1;
public static final int BottomNavigationView_itemIconTint = 2;
public static final int BottomNavigationView_itemTextColor = 3;
public static final int BottomNavigationView_menu = 4;
public static final int[] BottomSheetBehavior_Layout = { 0x7f030038, 0x7f03003a, 0x7f03003b };
public static final int BottomSheetBehavior_Layout_behavior_hideable = 0;
public static final int BottomSheetBehavior_Layout_behavior_peekHeight = 1;
public static final int BottomSheetBehavior_Layout_behavior_skipCollapsed = 2;
public static final int[] ButtonBarLayout = { 0x7f030026 };
public static final int ButtonBarLayout_allowStacking = 0;
public static final int[] CollapsingToolbarLayout = { 0x7f030053, 0x7f030054, 0x7f030068, 0x7f030084, 0x7f030085, 0x7f030086, 0x7f030087, 0x7f030088, 0x7f030089, 0x7f03008a, 0x7f0300f4, 0x7f0300f5, 0x7f03010d, 0x7f03013f, 0x7f030140, 0x7f03014a };
public static final int CollapsingToolbarLayout_collapsedTitleGravity = 0;
public static final int CollapsingToolbarLayout_collapsedTitleTextAppearance = 1;
public static final int CollapsingToolbarLayout_contentScrim = 2;
public static final int CollapsingToolbarLayout_expandedTitleGravity = 3;
public static final int CollapsingToolbarLayout_expandedTitleMargin = 4;
public static final int CollapsingToolbarLayout_expandedTitleMarginBottom = 5;
public static final int CollapsingToolbarLayout_expandedTitleMarginEnd = 6;
public static final int CollapsingToolbarLayout_expandedTitleMarginStart = 7;
public static final int CollapsingToolbarLayout_expandedTitleMarginTop = 8;
public static final int CollapsingToolbarLayout_expandedTitleTextAppearance = 9;
public static final int CollapsingToolbarLayout_scrimAnimationDuration = 10;
public static final int CollapsingToolbarLayout_scrimVisibleHeightTrigger = 11;
public static final int CollapsingToolbarLayout_statusBarScrim = 12;
public static final int CollapsingToolbarLayout_title = 13;
public static final int CollapsingToolbarLayout_titleEnabled = 14;
public static final int CollapsingToolbarLayout_toolbarId = 15;
public static final int[] CollapsingToolbarLayout_Layout = { 0x7f0300bb, 0x7f0300bc };
public static final int CollapsingToolbarLayout_Layout_layout_collapseMode = 0;
public static final int CollapsingToolbarLayout_Layout_layout_collapseParallaxMultiplier = 1;
public static final int[] ColorStateListItem = { 0x010101a5, 0x0101031f, 0x7f030027 };
public static final int ColorStateListItem_android_color = 0;
public static final int ColorStateListItem_android_alpha = 1;
public static final int ColorStateListItem_alpha = 2;
public static final int[] CompoundButton = { 0x01010107, 0x7f03004a, 0x7f03004b };
public static final int CompoundButton_android_button = 0;
public static final int CompoundButton_buttonTint = 1;
public static final int CompoundButton_buttonTintMode = 2;
public static final int[] CoordinatorLayout = { 0x7f0300b5, 0x7f03010c };
public static final int CoordinatorLayout_keylines = 0;
public static final int CoordinatorLayout_statusBarBackground = 1;
public static final int[] CoordinatorLayout_Layout = { 0x010100b3, 0x7f0300b8, 0x7f0300b9, 0x7f0300ba, 0x7f0300bd, 0x7f0300be, 0x7f0300bf };
public static final int CoordinatorLayout_Layout_android_layout_gravity = 0;
public static final int CoordinatorLayout_Layout_layout_anchor = 1;
public static final int CoordinatorLayout_Layout_layout_anchorGravity = 2;
public static final int CoordinatorLayout_Layout_layout_behavior = 3;
public static final int CoordinatorLayout_Layout_layout_dodgeInsetEdges = 4;
public static final int CoordinatorLayout_Layout_layout_insetEdge = 5;
public static final int CoordinatorLayout_Layout_layout_keyline = 6;
public static final int[] DesignTheme = { 0x7f03003e, 0x7f03003f, 0x7f030133 };
public static final int DesignTheme_bottomSheetDialogTheme = 0;
public static final int DesignTheme_bottomSheetStyle = 1;
public static final int DesignTheme_textColorError = 2;
public static final int[] DrawerArrowToggle = { 0x7f030029, 0x7f03002a, 0x7f030036, 0x7f030055, 0x7f030078, 0x7f03009d, 0x7f030103, 0x7f030136 };
public static final int DrawerArrowToggle_arrowHeadLength = 0;
public static final int DrawerArrowToggle_arrowShaftLength = 1;
public static final int DrawerArrowToggle_barLength = 2;
public static final int DrawerArrowToggle_color = 3;
public static final int DrawerArrowToggle_drawableSize = 4;
public static final int DrawerArrowToggle_gapBetweenBars = 5;
public static final int DrawerArrowToggle_spinBars = 6;
public static final int DrawerArrowToggle_thickness = 7;
public static final int[] FloatingActionButton = { 0x7f030034, 0x7f030035, 0x7f03003c, 0x7f03007f, 0x7f03008b, 0x7f03008c, 0x7f0300e9, 0x7f0300f3, 0x7f030153 };
public static final int FloatingActionButton_backgroundTint = 0;
public static final int FloatingActionButton_backgroundTintMode = 1;
public static final int FloatingActionButton_borderWidth = 2;
public static final int FloatingActionButton_elevation = 3;
public static final int FloatingActionButton_fabCustomSize = 4;
public static final int FloatingActionButton_fabSize = 5;
public static final int FloatingActionButton_pressedTranslationZ = 6;
public static final int FloatingActionButton_rippleColor = 7;
public static final int FloatingActionButton_useCompatPadding = 8;
public static final int[] FloatingActionButton_Behavior_Layout = { 0x7f030037 };
public static final int FloatingActionButton_Behavior_Layout_behavior_autoHide = 0;
public static final int[] FontFamily = { 0x7f030094, 0x7f030095, 0x7f030096, 0x7f030097, 0x7f030098, 0x7f030099 };
public static final int FontFamily_fontProviderAuthority = 0;
public static final int FontFamily_fontProviderCerts = 1;
public static final int FontFamily_fontProviderFetchStrategy = 2;
public static final int FontFamily_fontProviderFetchTimeout = 3;
public static final int FontFamily_fontProviderPackage = 4;
public static final int FontFamily_fontProviderQuery = 5;
public static final int[] FontFamilyFont = { 0x01010532, 0x01010533, 0x0101053f, 0x7f030092, 0x7f03009a, 0x7f03009b };
public static final int FontFamilyFont_android_font = 0;
public static final int FontFamilyFont_android_fontWeight = 1;
public static final int FontFamilyFont_android_fontStyle = 2;
public static final int FontFamilyFont_font = 3;
public static final int FontFamilyFont_fontStyle = 4;
public static final int FontFamilyFont_fontWeight = 5;
public static final int[] ForegroundLinearLayout = { 0x01010109, 0x01010200, 0x7f03009c };
public static final int ForegroundLinearLayout_android_foreground = 0;
public static final int ForegroundLinearLayout_android_foregroundGravity = 1;
public static final int ForegroundLinearLayout_foregroundInsidePadding = 2;
public static final int[] LinearLayoutCompat = { 0x010100af, 0x010100c4, 0x01010126, 0x01010127, 0x01010128, 0x7f030074, 0x7f030076, 0x7f0300d1, 0x7f0300fd };
public static final int LinearLayoutCompat_android_gravity = 0;
public static final int LinearLayoutCompat_android_orientation = 1;
public static final int LinearLayoutCompat_android_baselineAligned = 2;
public static final int LinearLayoutCompat_android_baselineAlignedChildIndex = 3;
public static final int LinearLayoutCompat_android_weightSum = 4;
public static final int LinearLayoutCompat_divider = 5;
public static final int LinearLayoutCompat_dividerPadding = 6;
public static final int LinearLayoutCompat_measureWithLargestChild = 7;
public static final int LinearLayoutCompat_showDividers = 8;
public static final int[] LinearLayoutCompat_Layout = { 0x010100b3, 0x010100f4, 0x010100f5, 0x01010181 };
public static final int LinearLayoutCompat_Layout_android_layout_gravity = 0;
public static final int LinearLayoutCompat_Layout_android_layout_width = 1;
public static final int LinearLayoutCompat_Layout_android_layout_height = 2;
public static final int LinearLayoutCompat_Layout_android_layout_weight = 3;
public static final int[] ListPopupWindow = { 0x010102ac, 0x010102ad };
public static final int ListPopupWindow_android_dropDownHorizontalOffset = 0;
public static final int ListPopupWindow_android_dropDownVerticalOffset = 1;
public static final int[] MenuGroup = { 0x0101000e, 0x010100d0, 0x01010194, 0x010101de, 0x010101df, 0x010101e0 };
public static final int MenuGroup_android_enabled = 0;
public static final int MenuGroup_android_id = 1;
public static final int MenuGroup_android_visible = 2;
public static final int MenuGroup_android_menuCategory = 3;
public static final int MenuGroup_android_orderInCategory = 4;
public static final int MenuGroup_android_checkableBehavior = 5;
public static final int[] MenuItem = { 0x01010002, 0x0101000e, 0x010100d0, 0x01010106, 0x01010194, 0x010101de, 0x010101df, 0x010101e1, 0x010101e2, 0x010101e3, 0x010101e4, 0x010101e5, 0x0101026f, 0x7f03000d, 0x7f03001f, 0x7f030020, 0x7f030028, 0x7f030061, 0x7f0300a8, 0x7f0300a9, 0x7f0300d7, 0x7f0300fc, 0x7f03014f };
public static final int MenuItem_android_icon = 0;
public static final int MenuItem_android_enabled = 1;
public static final int MenuItem_android_id = 2;
public static final int MenuItem_android_checked = 3;
public static final int MenuItem_android_visible = 4;
public static final int MenuItem_android_menuCategory = 5;
public static final int MenuItem_android_orderInCategory = 6;
public static final int MenuItem_android_title = 7;
public static final int MenuItem_android_titleCondensed = 8;
public static final int MenuItem_android_alphabeticShortcut = 9;
public static final int MenuItem_android_numericShortcut = 10;
public static final int MenuItem_android_checkable = 11;
public static final int MenuItem_android_onClick = 12;
public static final int MenuItem_actionLayout = 13;
public static final int MenuItem_actionProviderClass = 14;
public static final int MenuItem_actionViewClass = 15;
public static final int MenuItem_alphabeticModifiers = 16;
public static final int MenuItem_contentDescription = 17;
public static final int MenuItem_iconTint = 18;
public static final int MenuItem_iconTintMode = 19;
public static final int MenuItem_numericModifiers = 20;
public static final int MenuItem_showAsAction = 21;
public static final int MenuItem_tooltipText = 22;
public static final int[] MenuView = { 0x010100ae, 0x0101012c, 0x0101012d, 0x0101012e, 0x0101012f, 0x01010130, 0x01010131, 0x7f0300e8, 0x7f03010e };
public static final int MenuView_android_windowAnimationStyle = 0;
public static final int MenuView_android_itemTextAppearance = 1;
public static final int MenuView_android_horizontalDivider = 2;
public static final int MenuView_android_verticalDivider = 3;
public static final int MenuView_android_headerBackground = 4;
public static final int MenuView_android_itemBackground = 5;
public static final int MenuView_android_itemIconDisabledAlpha = 6;
public static final int MenuView_preserveIconSpacing = 7;
public static final int MenuView_subMenuArrow = 8;
public static final int[] NavigationView = { 0x010100d4, 0x010100dd, 0x0101011f, 0x7f03007f, 0x7f03009f, 0x7f0300b0, 0x7f0300b1, 0x7f0300b3, 0x7f0300b4, 0x7f0300d2 };
public static final int NavigationView_android_background = 0;
public static final int NavigationView_android_fitsSystemWindows = 1;
public static final int NavigationView_android_maxWidth = 2;
public static final int NavigationView_elevation = 3;
public static final int NavigationView_headerLayout = 4;
public static final int NavigationView_itemBackground = 5;
public static final int NavigationView_itemIconTint = 6;
public static final int NavigationView_itemTextAppearance = 7;
public static final int NavigationView_itemTextColor = 8;
public static final int NavigationView_menu = 9;
public static final int[] PopupWindow = { 0x01010176, 0x010102c9, 0x7f0300d8 };
public static final int PopupWindow_android_popupBackground = 0;
public static final int PopupWindow_android_popupAnimationStyle = 1;
public static final int PopupWindow_overlapAnchor = 2;
public static final int[] PopupWindowBackgroundState = { 0x7f030109 };
public static final int PopupWindowBackgroundState_state_above_anchor = 0;
public static final int[] RecycleListView = { 0x7f0300d9, 0x7f0300dc };
public static final int RecycleListView_paddingBottomNoButtons = 0;
public static final int RecycleListView_paddingTopNoTitle = 1;
public static final int[] RecyclerView = { 0x010100c4, 0x010100f1, 0x7f03008d, 0x7f03008e, 0x7f03008f, 0x7f030090, 0x7f030091, 0x7f0300b7, 0x7f0300f2, 0x7f030102, 0x7f030108 };
public static final int RecyclerView_android_orientation = 0;
public static final int RecyclerView_android_descendantFocusability = 1;
public static final int RecyclerView_fastScrollEnabled = 2;
public static final int RecyclerView_fastScrollHorizontalThumbDrawable = 3;
public static final int RecyclerView_fastScrollHorizontalTrackDrawable = 4;
public static final int RecyclerView_fastScrollVerticalThumbDrawable = 5;
public static final int RecyclerView_fastScrollVerticalTrackDrawable = 6;
public static final int RecyclerView_layoutManager = 7;
public static final int RecyclerView_reverseLayout = 8;
public static final int RecyclerView_spanCount = 9;
public static final int RecyclerView_stackFromEnd = 10;
public static final int[] ScrimInsetsFrameLayout = { 0x7f0300ae };
public static final int ScrimInsetsFrameLayout_insetForeground = 0;
public static final int[] ScrollingViewBehavior_Layout = { 0x7f030039 };
public static final int ScrollingViewBehavior_Layout_behavior_overlapTop = 0;
public static final int[] SearchView = { 0x010100da, 0x0101011f, 0x01010220, 0x01010264, 0x7f03004f, 0x7f030060, 0x7f030070, 0x7f03009e, 0x7f0300aa, 0x7f0300b6, 0x7f0300ec, 0x7f0300ed, 0x7f0300f6, 0x7f0300f7, 0x7f03010f, 0x7f030114, 0x7f030155 };
public static final int SearchView_android_focusable = 0;
public static final int SearchView_android_maxWidth = 1;
public static final int SearchView_android_inputType = 2;
public static final int SearchView_android_imeOptions = 3;
public static final int SearchView_closeIcon = 4;
public static final int SearchView_commitIcon = 5;
public static final int SearchView_defaultQueryHint = 6;
public static final int SearchView_goIcon = 7;
public static final int SearchView_iconifiedByDefault = 8;
public static final int SearchView_layout = 9;
public static final int SearchView_queryBackground = 10;
public static final int SearchView_queryHint = 11;
public static final int SearchView_searchHintIcon = 12;
public static final int SearchView_searchIcon = 13;
public static final int SearchView_submitBackground = 14;
public static final int SearchView_suggestionRowLayout = 15;
public static final int SearchView_voiceIcon = 16;
public static final int[] SnackbarLayout = { 0x0101011f, 0x7f03007f, 0x7f0300cf };
public static final int SnackbarLayout_android_maxWidth = 0;
public static final int SnackbarLayout_elevation = 1;
public static final int SnackbarLayout_maxActionInlineWidth = 2;
public static final int[] Spinner = { 0x010100b2, 0x01010176, 0x0101017b, 0x01010262, 0x7f0300e6 };
public static final int Spinner_android_entries = 0;
public static final int Spinner_android_popupBackground = 1;
public static final int Spinner_android_prompt = 2;
public static final int Spinner_android_dropDownWidth = 3;
public static final int Spinner_popupTheme = 4;
public static final int[] SwitchCompat = { 0x01010124, 0x01010125, 0x01010142, 0x7f0300fe, 0x7f030106, 0x7f030115, 0x7f030116, 0x7f030118, 0x7f030137, 0x7f030138, 0x7f030139, 0x7f030150, 0x7f030151, 0x7f030152 };
public static final int SwitchCompat_android_textOn = 0;
public static final int SwitchCompat_android_textOff = 1;
public static final int SwitchCompat_android_thumb = 2;
public static final int SwitchCompat_showText = 3;
public static final int SwitchCompat_splitTrack = 4;
public static final int SwitchCompat_switchMinWidth = 5;
public static final int SwitchCompat_switchPadding = 6;
public static final int SwitchCompat_switchTextAppearance = 7;
public static final int SwitchCompat_thumbTextPadding = 8;
public static final int SwitchCompat_thumbTint = 9;
public static final int SwitchCompat_thumbTintMode = 10;
public static final int SwitchCompat_track = 11;
public static final int SwitchCompat_trackTint = 12;
public static final int SwitchCompat_trackTintMode = 13;
public static final int[] TabItem = { 0x01010002, 0x010100f2, 0x0101014f };
public static final int TabItem_android_icon = 0;
public static final int TabItem_android_layout = 1;
public static final int TabItem_android_text = 2;
public static final int[] TabLayout = { 0x7f030119, 0x7f03011a, 0x7f03011b, 0x7f03011c, 0x7f03011d, 0x7f03011e, 0x7f03011f, 0x7f030120, 0x7f030121, 0x7f030122, 0x7f030123, 0x7f030124, 0x7f030125, 0x7f030126, 0x7f030127, 0x7f030128 };
public static final int TabLayout_tabBackground = 0;
public static final int TabLayout_tabContentStart = 1;
public static final int TabLayout_tabGravity = 2;
public static final int TabLayout_tabIndicatorColor = 3;
public static final int TabLayout_tabIndicatorHeight = 4;
public static final int TabLayout_tabMaxWidth = 5;
public static final int TabLayout_tabMinWidth = 6;
public static final int TabLayout_tabMode = 7;
public static final int TabLayout_tabPadding = 8;
public static final int TabLayout_tabPaddingBottom = 9;
public static final int TabLayout_tabPaddingEnd = 10;
public static final int TabLayout_tabPaddingStart = 11;
public static final int TabLayout_tabPaddingTop = 12;
public static final int TabLayout_tabSelectedTextColor = 13;
public static final int TabLayout_tabTextAppearance = 14;
public static final int TabLayout_tabTextColor = 15;
public static final int[] TextAppearance = { 0x01010095, 0x01010096, 0x01010097, 0x01010098, 0x0101009a, 0x0101009b, 0x01010161, 0x01010162, 0x01010163, 0x01010164, 0x010103ac, 0x7f030093, 0x7f030129 };
public static final int TextAppearance_android_textSize = 0;
public static final int TextAppearance_android_typeface = 1;
public static final int TextAppearance_android_textStyle = 2;
public static final int TextAppearance_android_textColor = 3;
public static final int TextAppearance_android_textColorHint = 4;
public static final int TextAppearance_android_textColorLink = 5;
public static final int TextAppearance_android_shadowColor = 6;
public static final int TextAppearance_android_shadowDx = 7;
public static final int TextAppearance_android_shadowDy = 8;
public static final int TextAppearance_android_shadowRadius = 9;
public static final int TextAppearance_android_fontFamily = 10;
public static final int TextAppearance_fontFamily = 11;
public static final int TextAppearance_textAllCaps = 12;
public static final int[] TextInputLayout = { 0x0101009a, 0x01010150, 0x7f03006b, 0x7f03006c, 0x7f03006d, 0x7f03006e, 0x7f030080, 0x7f030081, 0x7f0300a2, 0x7f0300a3, 0x7f0300a4, 0x7f0300e0, 0x7f0300e1, 0x7f0300e2, 0x7f0300e3, 0x7f0300e4 };
public static final int TextInputLayout_android_textColorHint = 0;
public static final int TextInputLayout_android_hint = 1;
public static final int TextInputLayout_counterEnabled = 2;
public static final int TextInputLayout_counterMaxLength = 3;
public static final int TextInputLayout_counterOverflowTextAppearance = 4;
public static final int TextInputLayout_counterTextAppearance = 5;
public static final int TextInputLayout_errorEnabled = 6;
public static final int TextInputLayout_errorTextAppearance = 7;
public static final int TextInputLayout_hintAnimationEnabled = 8;
public static final int TextInputLayout_hintEnabled = 9;
public static final int TextInputLayout_hintTextAppearance = 10;
public static final int TextInputLayout_passwordToggleContentDescription = 11;
public static final int TextInputLayout_passwordToggleDrawable = 12;
public static final int TextInputLayout_passwordToggleEnabled = 13;
public static final int TextInputLayout_passwordToggleTint = 14;
public static final int TextInputLayout_passwordToggleTintMode = 15;
public static final int[] Toolbar = { 0x010100af, 0x01010140, 0x7f030045, 0x7f030051, 0x7f030052, 0x7f030062, 0x7f030063, 0x7f030064, 0x7f030065, 0x7f030066, 0x7f030067, 0x7f0300cd, 0x7f0300ce, 0x7f0300d0, 0x7f0300d4, 0x7f0300d5, 0x7f0300e6, 0x7f030110, 0x7f030111, 0x7f030112, 0x7f03013f, 0x7f030141, 0x7f030142, 0x7f030143, 0x7f030144, 0x7f030145, 0x7f030146, 0x7f030147, 0x7f030148 };
public static final int Toolbar_android_gravity = 0;
public static final int Toolbar_android_minHeight = 1;
public static final int Toolbar_buttonGravity = 2;
public static final int Toolbar_collapseContentDescription = 3;
public static final int Toolbar_collapseIcon = 4;
public static final int Toolbar_contentInsetEnd = 5;
public static final int Toolbar_contentInsetEndWithActions = 6;
public static final int Toolbar_contentInsetLeft = 7;
public static final int Toolbar_contentInsetRight = 8;
public static final int Toolbar_contentInsetStart = 9;
public static final int Toolbar_contentInsetStartWithNavigation = 10;
public static final int Toolbar_logo = 11;
public static final int Toolbar_logoDescription = 12;
public static final int Toolbar_maxButtonHeight = 13;
public static final int Toolbar_navigationContentDescription = 14;
public static final int Toolbar_navigationIcon = 15;
public static final int Toolbar_popupTheme = 16;
public static final int Toolbar_subtitle = 17;
public static final int Toolbar_subtitleTextAppearance = 18;
public static final int Toolbar_subtitleTextColor = 19;
public static final int Toolbar_title = 20;
public static final int Toolbar_titleMargin = 21;
public static final int Toolbar_titleMarginBottom = 22;
public static final int Toolbar_titleMarginEnd = 23;
public static final int Toolbar_titleMarginStart = 24;
public static final int Toolbar_titleMarginTop = 25;
public static final int Toolbar_titleMargins = 26;
public static final int Toolbar_titleTextAppearance = 27;
public static final int Toolbar_titleTextColor = 28;
public static final int[] View = { 0x01010000, 0x010100da, 0x7f0300da, 0x7f0300db, 0x7f030135 };
public static final int View_android_theme = 0;
public static final int View_android_focusable = 1;
public static final int View_paddingEnd = 2;
public static final int View_paddingStart = 3;
public static final int View_theme = 4;
public static final int[] ViewBackgroundHelper = { 0x010100d4, 0x7f030034, 0x7f030035 };
public static final int ViewBackgroundHelper_android_background = 0;
public static final int ViewBackgroundHelper_backgroundTint = 1;
public static final int ViewBackgroundHelper_backgroundTintMode = 2;
public static final int[] ViewStubCompat = { 0x010100d0, 0x010100f2, 0x010100f3 };
public static final int ViewStubCompat_android_id = 0;
public static final int ViewStubCompat_android_layout = 1;
public static final int ViewStubCompat_android_inflatedId = 2;
}
}
| [
"zergmk2@gmail.com"
] | zergmk2@gmail.com |
66155b9566d4f44a7a68697d79ef8b973e4dd0b0 | 05e8db6ca54457783b406d46049fd99fb1b27e41 | /JAVA/Tp Java M1 STIC/HeritageEtPolymorphisme/src/Mer.java | 35e2461faa8b78ab591042552f1983932970e2ae | [] | no_license | mohsenuss91/Academic | f860c21886b6915206cc0831bd1ff4acfc4df8e9 | 12507a09d9a821646f03464a72b17e2ba2c402b0 | refs/heads/master | 2016-09-05T15:45:02.440164 | 2016-02-03T14:47:35 | 2016-02-03T14:47:35 | 26,594,620 | 0 | 0 | null | 2014-11-13T18:21:01 | 2014-11-13T15:38:50 | JavaScript | UTF-8 | Java | false | false | 193 | java | public class Mer extends Eau {
Mer(String nom, float poid, int nbnag) {
super(nom, poid, nbnag);
}
public float vitesse() {
return ((Pokemon.poid/25)*(this.nbnag));
}
} | [
"mohsenuss91@hotmail.com"
] | mohsenuss91@hotmail.com |
24d56acf2ef83679e56f14d5b19349edd83a6857 | 24475f5466f3e951de9c4f7cf4a6cd4837ad88c9 | /app/src/main/java/com/kubekbreha/fastreader/utils/sensey/Sensey.java | c52468acb5721f04a5e853e6c756a4f1420f9d8f | [
"MIT"
] | permissive | kubekbreha/FastReader | 21bb061c5e6aeceee87d602601aff952167181dd | 2e6022dbbf8fcc88e433ff2b00fdb03a5edf20d2 | refs/heads/master | 2020-03-19T08:41:44.165762 | 2018-06-23T03:39:49 | 2018-06-23T03:39:49 | 136,227,805 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 20,482 | java | /*
* Copyright (C) 2016 Nishant Srivastava
*
* 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.kubekbreha.fastreader.utils.sensey;
import android.Manifest;
import android.content.Context;
import android.content.pm.PackageManager;
import android.hardware.Sensor;
import android.hardware.SensorManager;
import android.os.Build;
import android.support.annotation.RequiresPermission;
import android.view.MotionEvent;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
/**
* The type Sensey.
*/
public class Sensey {
private static class LazyHolder {
private static final Sensey INSTANCE = new Sensey();
}
/**
* The constant SAMPLING_PERIOD_FASTEST.
*/
public static final int SAMPLING_PERIOD_FASTEST = SensorManager.SENSOR_DELAY_FASTEST;
/**
* The constant SAMPLING_PERIOD_GAME.
*/
public static final int SAMPLING_PERIOD_GAME = SensorManager.SENSOR_DELAY_GAME;
/**
* The constant SAMPLING_PERIOD_NORMAL.
*/
public static final int SAMPLING_PERIOD_NORMAL = SensorManager.SENSOR_DELAY_NORMAL;
/**
* The constant SAMPLING_PERIOD_UI.
*/
public static final int SAMPLING_PERIOD_UI = SensorManager.SENSOR_DELAY_UI;
/**
* Map from any of default listeners (
* {@link FlipDetector.FlipListener flipListener},
* {@link LightDetector.LightListener lightListener},
* {@link OrientationDetector.OrientationListener orientationListener}
* {@link ProximityDetector.ProximityListener proximityListener}
* {@link ChopDetector.ChopListener chopListener}
* {@link MovementDetector.MovementListener movementListner}
* {@link WristTwistDetector.WristTwistListener wristTwistListner}
* and {@link ShakeDetector.ShakeListener shakeListener})
* to SensorDetectors created by those listeners.
*
* This map is needed to hold reference to all started detections <strong>NOT</strong>
* through {@link Sensey#startSensorDetection(SensorDetector)}, because the last one
* passes task to hold reference of {@link SensorDetector sensorDetector} to the client
*/
private final Map<Object, SensorDetector> defaultSensorsMap = new HashMap<>();
private PinchScaleDetector pinchScaleDetector;
private int samplingPeriod = SAMPLING_PERIOD_NORMAL;
private SensorManager sensorManager;
private SoundLevelDetector soundLevelDetector;
private TouchTypeDetector touchTypeDetector;
/**
* Gets instance.
*
* @return the instance
*/
public static Sensey getInstance() {
return LazyHolder.INSTANCE;
}
private Sensey() {
}
/**
* Init the lib
*
* @param context the context
* @param samplingPeriod the sampling period
*/
public void init(Context context, int samplingPeriod) {
init(context);
this.samplingPeriod = samplingPeriod;
}
/**
* Init the lib
*
* @param context the context
*/
public void init(Context context) {
this.sensorManager = (SensorManager) context.getSystemService(Context.SENSOR_SERVICE);
}
/**
* Sets dispatch touch event.
*
* @param event the event
*/
public void setupDispatchTouchEvent(MotionEvent event) {
if (touchTypeDetector != null) {
touchTypeDetector.onTouchEvent(event);
}
if (pinchScaleDetector != null) {
pinchScaleDetector.onTouchEvent(event);
}
}
/**
* Start chop detection.
*
* @param chopListener the chop listener
*/
public void startChopDetection(ChopDetector.ChopListener chopListener) {
startLibrarySensorDetection(new ChopDetector(chopListener), chopListener);
}
/**
* Start chop detection.
*
* @param threshold the threshold
* @param timeForChopGesture the time for chop gesture
* @param chopListener the chop listener
*/
public void startChopDetection(float threshold, long timeForChopGesture,
ChopDetector.ChopListener chopListener) {
startLibrarySensorDetection(new ChopDetector(threshold, timeForChopGesture, chopListener),
chopListener);
}
/**
* Start flip detection.
*
* @param flipListener the flip listener
*/
public void startFlipDetection(FlipDetector.FlipListener flipListener) {
startLibrarySensorDetection(new FlipDetector(flipListener), flipListener);
}
/**
* Start light detection.
*
* @param lightListener the light listener
*/
public void startLightDetection(LightDetector.LightListener lightListener) {
startLibrarySensorDetection(new LightDetector(lightListener), lightListener);
}
/**
* Start light detection.
*
* @param threshold the threshold
* @param lightListener the light listener
*/
public void startLightDetection(float threshold, LightDetector.LightListener lightListener) {
startLibrarySensorDetection(new LightDetector(threshold, lightListener), lightListener);
}
/**
* Start movement detection.
*
* @param movementListener the movement listener
*/
public void startMovementDetection(MovementDetector.MovementListener movementListener) {
startLibrarySensorDetection(new MovementDetector(movementListener), movementListener);
}
/**
* Start movement detection.
*
* @param threshold the threshold
* @param timeBeforeDeclaringStationary the time before declaring stationary
* @param movementListener the movement listener
*/
public void startMovementDetection(float threshold, long timeBeforeDeclaringStationary,
MovementDetector.MovementListener movementListener) {
startLibrarySensorDetection(
new MovementDetector(threshold, timeBeforeDeclaringStationary, movementListener),
movementListener);
}
/**
* Start orientation detection.
*
* @param orientationListener the orientation listener
*/
public void startOrientationDetection(OrientationDetector.OrientationListener orientationListener) {
startLibrarySensorDetection(new OrientationDetector(orientationListener), orientationListener);
}
/**
* Start orientation detection.
*
* @param smoothness the smoothness
* @param orientationListener the orientation listener
*/
public void startOrientationDetection(int smoothness, OrientationDetector.OrientationListener orientationListener) {
startLibrarySensorDetection(new OrientationDetector(smoothness, orientationListener),
orientationListener);
}
/**
* Start pickup device detection.
*
* @param pickupDeviceListener the pickup device listener
*/
public void startPickupDeviceDetection(PickupDeviceDetector.PickupDeviceListener pickupDeviceListener) {
startLibrarySensorDetection(new PickupDeviceDetector(pickupDeviceListener),
pickupDeviceListener);
}
/**
* Start pinch scale detection.
*
* @param context the context
* @param pinchScaleListener the pinch scale listener
*/
public void startPinchScaleDetection(Context context, PinchScaleDetector.PinchScaleListener pinchScaleListener) {
if (pinchScaleListener != null) {
pinchScaleDetector = new PinchScaleDetector(context, pinchScaleListener);
}
}
/**
* Start proximity detection.
*
* @param proximityListener the proximity listener
*/
public void startProximityDetection(ProximityDetector.ProximityListener proximityListener) {
startLibrarySensorDetection(new ProximityDetector(proximityListener), proximityListener);
}
/**
* Start rotation angle detection.
*
* @param rotationAngleListener the rotation angle listener
*/
public void startRotationAngleDetection(RotationAngleDetector.RotationAngleListener rotationAngleListener) {
startLibrarySensorDetection(new RotationAngleDetector(rotationAngleListener),
rotationAngleListener);
}
/**
* Start scoop detection.
*
* @param scoopListener the scoop listener
*/
public void startScoopDetection(ScoopDetector.ScoopListener scoopListener) {
startLibrarySensorDetection(new ScoopDetector(scoopListener), scoopListener);
}
/**
* Start scoop detection.
*
* @param threshold the threshold
* @param scoopListener the scoop listener
*/
public void startScoopDetection(float threshold, ScoopDetector.ScoopListener scoopListener) {
startLibrarySensorDetection(new ScoopDetector(threshold, scoopListener), scoopListener);
}
/**
* Start shake detection.
*
* @param shakeListener the shake listener
*/
public void startShakeDetection(ShakeDetector.ShakeListener shakeListener) {
startLibrarySensorDetection(new ShakeDetector(shakeListener), shakeListener);
}
/**
* Start shake detection.
*
* @param threshold the threshold
* @param timeBeforeDeclaringShakeStopped the time before declaring shake stopped
* @param shakeListener the shake listener
*/
public void startShakeDetection(float threshold, long timeBeforeDeclaringShakeStopped,
ShakeDetector.ShakeListener shakeListener) {
startLibrarySensorDetection(
new ShakeDetector(threshold, timeBeforeDeclaringShakeStopped, shakeListener),
shakeListener);
}
/**
* Start sound level detection.
*
* @param context the context
* @param soundLevelListener the sound level listener
*/
@RequiresPermission(Manifest.permission.RECORD_AUDIO)
public void startSoundLevelDetection(Context context, SoundLevelDetector.SoundLevelListener soundLevelListener) {
if (soundLevelListener != null && checkPermission(context, Manifest.permission.RECORD_AUDIO)) {
soundLevelDetector = new SoundLevelDetector(soundLevelListener);
soundLevelDetector.start();
} else {
System.out.println("Permission Required: RECORD_AUDIO");
}
}
/**
* Start step detection.
*
* @param context the context
* @param stepListener the step listener
* @param gender the gender
*/
public void startStepDetection(Context context, StepListener stepListener, int gender) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT && checkHardware(context,
PackageManager.FEATURE_SENSOR_STEP_COUNTER)) {
startLibrarySensorDetection(new StepDetectorPostKitKat(gender, stepListener), stepListener);
} else {
startLibrarySensorDetection(new StepDetectorPreKitKat(gender, stepListener), stepListener);
}
}
/**
* Start tilt direction detection.
*
* @param tiltDirectionListener the tilt direction listener
*/
public void startTiltDirectionDetection(TiltDirectionDetector.TiltDirectionListener tiltDirectionListener) {
startLibrarySensorDetection(new TiltDirectionDetector(tiltDirectionListener),
tiltDirectionListener);
}
/**
* Start touch type detection.
*
* @param context the context
* @param touchTypListener the touch typ listener
*/
public void startTouchTypeDetection(Context context, TouchTypeDetector.TouchTypListener touchTypListener) {
if (touchTypListener != null) {
touchTypeDetector = new TouchTypeDetector(context, touchTypListener);
}
}
/**
* Start wave detection.
*
* @param waveListener the wave listener
*/
public void startWaveDetection(WaveDetector.WaveListener waveListener) {
startLibrarySensorDetection(new WaveDetector(waveListener), waveListener);
}
/**
* Start wave detection.
*
* @param threshold the threshold
* @param waveListener the wave listener
*/
public void startWaveDetection(float threshold, WaveDetector.WaveListener waveListener) {
startLibrarySensorDetection(new WaveDetector(threshold, waveListener), waveListener);
}
/**
* Start wrist twist detection.
*
* @param wristTwistListener the wrist twist listener
*/
public void startWristTwistDetection(WristTwistDetector.WristTwistListener wristTwistListener) {
startLibrarySensorDetection(new WristTwistDetector(wristTwistListener), wristTwistListener);
}
/**
* Start wrist twist detection.
*
* @param threshold the threshold
* @param timeForWristTwistGesture the time for wrist twist gesture
* @param wristTwistListener the wrist twist listener
*/
public void startWristTwistDetection(float threshold, long timeForWristTwistGesture,
WristTwistDetector.WristTwistListener wristTwistListener) {
startLibrarySensorDetection(
new WristTwistDetector(threshold, timeForWristTwistGesture, wristTwistListener),
wristTwistListener);
}
/**
* Stop.
*/
public void stop() {
this.sensorManager = null;
}
/**
* Stop chop detection.
*
* @param chopListener the chop listener
*/
public void stopChopDetection(ChopDetector.ChopListener chopListener) {
stopLibrarySensorDetection(chopListener);
}
/**
* Stop flip detection.
*
* @param flipListener the flip listener
*/
public void stopFlipDetection(FlipDetector.FlipListener flipListener) {
stopLibrarySensorDetection(flipListener);
}
/**
* Stop light detection.
*
* @param lightListener the light listener
*/
public void stopLightDetection(LightDetector.LightListener lightListener) {
stopLibrarySensorDetection(lightListener);
}
/**
* Stop movement detection.
*
* @param movementListener the movement listener
*/
public void stopMovementDetection(MovementDetector.MovementListener movementListener) {
stopLibrarySensorDetection(movementListener);
}
/**
* Stop orientation detection.
*
* @param orientationListener the orientation listener
*/
public void stopOrientationDetection(OrientationDetector.OrientationListener orientationListener) {
stopLibrarySensorDetection(orientationListener);
}
/**
* Stop pickup device detection.
*
* @param pickupDeviceListener the pickup device listener
*/
public void stopPickupDeviceDetection(PickupDeviceDetector.PickupDeviceListener pickupDeviceListener) {
stopLibrarySensorDetection(pickupDeviceListener);
}
/**
* Stop pinch scale detection.
*/
public void stopPinchScaleDetection() {
pinchScaleDetector = null;
}
/**
* Stop proximity detection.
*
* @param proximityListener the proximity listener
*/
public void stopProximityDetection(ProximityDetector.ProximityListener proximityListener) {
stopLibrarySensorDetection(proximityListener);
}
/**
* Stop rotation angle detection.
*
* @param rotationAngleListener the rotation angle listener
*/
public void stopRotationAngleDetection(RotationAngleDetector.RotationAngleListener rotationAngleListener) {
stopLibrarySensorDetection(rotationAngleListener);
}
/**
* Stop scoop detection.
*
* @param scoopListener the scoop listener
*/
public void stopScoopDetection(ScoopDetector.ScoopListener scoopListener) {
stopLibrarySensorDetection(scoopListener);
}
/**
* Stop shake detection.
*
* @param shakeListener the shake listener
*/
public void stopShakeDetection(ShakeDetector.ShakeListener shakeListener) {
stopLibrarySensorDetection(shakeListener);
}
/**
* Stop sound level detection.
*/
public void stopSoundLevelDetection() {
if (soundLevelDetector != null) {
soundLevelDetector.stop();
}
soundLevelDetector = null;
}
/**
* Stop step detection.
*
* @param stepListener the step listener
*/
public void stopStepDetection(StepListener stepListener) {
stopLibrarySensorDetection(stepListener);
}
/**
* Stop tilt direction detection.
*
* @param tiltDirectionListener the tilt direction listener
*/
public void stopTiltDirectionDetection(TiltDirectionDetector.TiltDirectionListener tiltDirectionListener) {
stopLibrarySensorDetection(tiltDirectionListener);
}
/**
* Stop touch type detection.
*/
public void stopTouchTypeDetection() {
touchTypeDetector = null;
}
/**
* Stop wave detection.
*
* @param waveListener the wave listener
*/
public void stopWaveDetection(WaveDetector.WaveListener waveListener) {
stopLibrarySensorDetection(waveListener);
}
/**
* Stop wrist twist detection.
*
* @param wristTwistListener the wrist twist listener
*/
public void stopWristTwistDetection(WristTwistDetector.WristTwistListener wristTwistListener) {
stopLibrarySensorDetection(wristTwistListener);
}
/**
* Check hardware boolean.
*
* @param context the context
* @param hardware the hardware
* @return the boolean
*/
boolean checkHardware(Context context, String hardware) {
return context.getPackageManager().hasSystemFeature(hardware);
}
/**
* Check permission boolean.
*
* @param context the context
* @param permission the permission
* @return the boolean
*/
boolean checkPermission(Context context, String permission) {
return context.checkCallingOrSelfPermission(permission) == PackageManager.PERMISSION_GRANTED;
}
private boolean areAllSensorsValid(Iterable<Sensor> sensors) {
for (Sensor sensor : sensors) {
if (sensor == null) {
return false;
}
}
return true;
}
private Iterable<Sensor> convertTypesToSensors(int... sensorTypes) {
Collection<Sensor> sensors = new ArrayList<>();
if (sensorManager != null) {
for (int sensorType : sensorTypes) {
sensors.add(sensorManager.getDefaultSensor(sensorType));
}
}
return sensors;
}
private void registerDetectorForAllSensors(SensorDetector detector, Iterable<Sensor> sensors) {
for (Sensor sensor : sensors) {
sensorManager.registerListener(detector, sensor, samplingPeriod);
}
}
private void startLibrarySensorDetection(SensorDetector detector, Object clientListener) {
if (!defaultSensorsMap.containsKey(clientListener)) {
defaultSensorsMap.put(clientListener, detector);
startSensorDetection(detector);
}
}
private void startSensorDetection(SensorDetector detector) {
final Iterable<Sensor> sensors = convertTypesToSensors(detector.getSensorTypes());
if (areAllSensorsValid(sensors)) {
registerDetectorForAllSensors(detector, sensors);
}
}
private void stopLibrarySensorDetection(Object clientListener) {
SensorDetector detector = defaultSensorsMap.remove(clientListener);
stopSensorDetection(detector);
}
private void stopSensorDetection(SensorDetector detector) {
if (detector != null && sensorManager != null) {
sensorManager.unregisterListener(detector);
}
}
}
| [
"kubek.breha@gmail.com"
] | kubek.breha@gmail.com |
f64dc9acbbf7790b8812f8c214179bdc15a4a97f | fad43cb0b712decb79b799a1f9e93a4a3057c120 | /eureka-server/src/test/java/com/clover/eurekaserver/EurekaServerApplicationTests.java | 0cfc5e4d78a2df69698c53e5378dc0e889caf998 | [] | no_license | LuckyClover1/micro-demo | 57f6fcec16708ce79f98b1f1d44ba22dd671971a | 250fd57e49dd24db44829a9fcb007271e30cd5a2 | refs/heads/master | 2020-04-27T20:07:18.408621 | 2019-03-09T04:04:43 | 2019-03-09T04:04:43 | 174,646,264 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 355 | java | package com.clover.eurekaserver;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
public class EurekaServerApplicationTests {
@Test
public void contextLoads() {
}
}
| [
"2418569961@qq.com"
] | 2418569961@qq.com |
f805f19f2098f3af36fa6d0bfd070474d7f82cc5 | 423571469c732127a18908c567ba92479c8e000d | /D9/TreesAsSortedLists/TreeIntSortedListTester.java | c04257ace953bf4bf5c6baa826ec73b752e3beb6 | [] | no_license | BBK-PiJ-2014-23/exercises | 9961857d5d85f70af11ace0f8958610b2ae58835 | 23b005b064961375f0654e46e3617d391490657f | refs/heads/master | 2020-06-04T09:31:32.363298 | 2015-05-14T09:41:53 | 2015-05-14T09:41:53 | 35,602,648 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 620 | java | public class IntSortedListTester {
public static void main(String[] args) {
int[] array = {2, 9, 7, 12, 4, 3, 10, 17};
IntSortedList tree = ListUtilities.arrayToSet(6, "tree", array);
System.out.println(tree.contains(4));
System.out.println(tree.contains(5));
System.out.println(tree.toString());
System.out.println();
IntSortedList list = ListUtilities.arrayToSet(6, "list", array);
System.out.println(list.contains(4));
System.out.println(list.contains(5));
System.out.println(list.toString());
System.out.println();
}
}
| [
"stefanm@LONWRK08546.eidos.com"
] | stefanm@LONWRK08546.eidos.com |
e4bb75a77e8ff84821ea7691951474b3272ba208 | 59e73a5405a8afbdd868a7b77188156aad3d1974 | /src/test/java/com/javabrains/springsecurityjwt/SpringSecurityJwtApplicationTests.java | d26f57ffd74ed73141b2576bb7d077a36770efb9 | [] | no_license | pelinyvg/spring-security-jwt | f82a816ab341b4b3c0d5e591992910ae72937cc8 | e90685ef7a6047849ce1e25d40826f7a99b5b79f | refs/heads/main | 2023-05-07T12:36:49.357770 | 2021-05-16T21:15:13 | 2021-05-16T21:15:13 | 367,986,231 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 244 | java | package com.javabrains.springsecurityjwt;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class SpringSecurityJwtApplicationTests {
@Test
void contextLoads() {
}
}
| [
"pelin.yuzbasi@gmail.com"
] | pelin.yuzbasi@gmail.com |
1b1170b1f6bec7a5619464775a34accaa2dcbc6e | ce6b4f353f828174381104c22305e685286c56da | /cloud-enreka-server7001/src/main/java/com/atguigu/springcloud/EnrekaServer7001.java | f08d747ff31007abdd275153379161102b802cd0 | [] | no_license | huangli44/cloud-demo | 8fedebec2b66d05d85a3f458a26e21bc1021c23f | 6e7f7da1a259ec0d46b2f8a25b8eafb1b125c61b | refs/heads/master | 2022-12-27T16:54:46.606676 | 2020-09-27T10:44:26 | 2020-09-27T10:44:26 | 298,478,286 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 418 | java | package com.atguigu.springcloud;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
@SpringBootApplication
@EnableEurekaServer
public class EnrekaServer7001 {
public static void main(String[] args) {
SpringApplication.run(EnrekaServer7001.class,args);
}
}
| [
"lily.huang@metlife.com"
] | lily.huang@metlife.com |
0c7f70a9afcc269d840e9238f8a7260db1da05e3 | 9c0d7e84e99bea9d8e0db5ebc40b3de153198fa1 | /DataProcessingDSLPart1/ASEProject-Metamodel.diagram/src/pipelineproject/diagram/edit/policies/NullValuesRemovalNullValuesRemovalRuntimeInfoCompartmentCanonicalEditPolicy.java | 2b8fa1c34ff6c8fc0248ff5aafa3cf6dfeb9094d | [] | no_license | FrancescoPinto/DataProcessingDSL | ea36221638d15c69948abe3386bc73a7ae899e3f | eff66e28aa1e575f0817332c6281506582704d20 | refs/heads/master | 2022-04-24T09:59:55.097385 | 2020-04-20T18:57:30 | 2020-04-20T18:57:30 | 257,376,186 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 7,051 | java | /*
*
*/
package pipelineproject.diagram.edit.policies;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EStructuralFeature;
import org.eclipse.gef.EditPart;
import org.eclipse.gef.commands.Command;
import org.eclipse.gmf.runtime.diagram.core.util.ViewUtil;
import org.eclipse.gmf.runtime.diagram.ui.commands.DeferredLayoutCommand;
import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
import org.eclipse.gmf.runtime.diagram.ui.commands.SetViewMutabilityCommand;
import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CanonicalEditPolicy;
import org.eclipse.gmf.runtime.diagram.ui.requests.CreateViewRequest;
import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
import org.eclipse.gmf.runtime.notation.Node;
import org.eclipse.gmf.runtime.notation.View;
import pipelineproject.PipelineprojectPackage;
import pipelineproject.diagram.edit.parts.RuntimeInfoEditPart;
import pipelineproject.diagram.part.PipelineprojectDiagramUpdater;
import pipelineproject.diagram.part.PipelineprojectNodeDescriptor;
import pipelineproject.diagram.part.PipelineprojectVisualIDRegistry;
/**
* @generated
*/
public class NullValuesRemovalNullValuesRemovalRuntimeInfoCompartmentCanonicalEditPolicy extends CanonicalEditPolicy {
/**
* @generated
*/
protected void refreshOnActivate() {
// Need to activate editpart children before invoking the canonical refresh for EditParts to add event listeners
List<?> c = getHost().getChildren();
for (int i = 0; i < c.size(); i++) {
((EditPart) c.get(i)).activate();
}
super.refreshOnActivate();
}
/**
* @generated
*/
protected EStructuralFeature getFeatureToSynchronize() {
return PipelineprojectPackage.eINSTANCE.getTask_RuntimeInfo();
}
/**
* @generated
*/
@SuppressWarnings("rawtypes")
protected List getSemanticChildrenList() {
View viewObject = (View) getHost().getModel();
LinkedList<EObject> result = new LinkedList<EObject>();
List<PipelineprojectNodeDescriptor> childDescriptors = PipelineprojectDiagramUpdater
.getNullValuesRemovalNullValuesRemovalRuntimeInfoCompartment_7092SemanticChildren(viewObject);
for (PipelineprojectNodeDescriptor d : childDescriptors) {
result.add(d.getModelElement());
}
return result;
}
/**
* @generated
*/
protected boolean isOrphaned(Collection<EObject> semanticChildren, final View view) {
return isMyDiagramElement(view) && !semanticChildren.contains(view.getElement());
}
/**
* @generated
*/
private boolean isMyDiagramElement(View view) {
return RuntimeInfoEditPart.VISUAL_ID == PipelineprojectVisualIDRegistry.getVisualID(view);
}
/**
* @generated
*/
protected void refreshSemantic() {
if (resolveSemanticElement() == null) {
return;
}
LinkedList<IAdaptable> createdViews = new LinkedList<IAdaptable>();
List<PipelineprojectNodeDescriptor> childDescriptors = PipelineprojectDiagramUpdater
.getNullValuesRemovalNullValuesRemovalRuntimeInfoCompartment_7092SemanticChildren(
(View) getHost().getModel());
LinkedList<View> orphaned = new LinkedList<View>();
// we care to check only views we recognize as ours
LinkedList<View> knownViewChildren = new LinkedList<View>();
for (View v : getViewChildren()) {
if (isMyDiagramElement(v)) {
knownViewChildren.add(v);
}
}
// alternative to #cleanCanonicalSemanticChildren(getViewChildren(), semanticChildren)
//
// iteration happens over list of desired semantic elements, trying to find best matching View, while original CEP
// iterates views, potentially losing view (size/bounds) information - i.e. if there are few views to reference same EObject, only last one
// to answer isOrphaned == true will be used for the domain element representation, see #cleanCanonicalSemanticChildren()
for (Iterator<PipelineprojectNodeDescriptor> descriptorsIterator = childDescriptors
.iterator(); descriptorsIterator.hasNext();) {
PipelineprojectNodeDescriptor next = descriptorsIterator.next();
String hint = PipelineprojectVisualIDRegistry.getType(next.getVisualID());
LinkedList<View> perfectMatch = new LinkedList<View>(); // both semanticElement and hint match that of NodeDescriptor
for (View childView : getViewChildren()) {
EObject semanticElement = childView.getElement();
if (next.getModelElement().equals(semanticElement)) {
if (hint.equals(childView.getType())) {
perfectMatch.add(childView);
// actually, can stop iteration over view children here, but
// may want to use not the first view but last one as a 'real' match (the way original CEP does
// with its trick with viewToSemanticMap inside #cleanCanonicalSemanticChildren
}
}
}
if (perfectMatch.size() > 0) {
descriptorsIterator.remove(); // precise match found no need to create anything for the NodeDescriptor
// use only one view (first or last?), keep rest as orphaned for further consideration
knownViewChildren.remove(perfectMatch.getFirst());
}
}
// those left in knownViewChildren are subject to removal - they are our diagram elements we didn't find match to,
// or those we have potential matches to, and thus need to be recreated, preserving size/location information.
orphaned.addAll(knownViewChildren);
//
ArrayList<CreateViewRequest.ViewDescriptor> viewDescriptors = new ArrayList<CreateViewRequest.ViewDescriptor>(
childDescriptors.size());
for (PipelineprojectNodeDescriptor next : childDescriptors) {
String hint = PipelineprojectVisualIDRegistry.getType(next.getVisualID());
IAdaptable elementAdapter = new CanonicalElementAdapter(next.getModelElement(), hint);
CreateViewRequest.ViewDescriptor descriptor = new CreateViewRequest.ViewDescriptor(elementAdapter,
Node.class, hint, ViewUtil.APPEND, false, host().getDiagramPreferencesHint());
viewDescriptors.add(descriptor);
}
boolean changed = deleteViews(orphaned.iterator());
//
CreateViewRequest request = getCreateViewRequest(viewDescriptors);
Command cmd = getCreateViewCommand(request);
if (cmd != null && cmd.canExecute()) {
SetViewMutabilityCommand.makeMutable(new EObjectAdapter(host().getNotationView())).execute();
executeCommand(cmd);
@SuppressWarnings("unchecked")
List<IAdaptable> nl = (List<IAdaptable>) request.getNewObject();
createdViews.addAll(nl);
}
if (changed || createdViews.size() > 0) {
postProcessRefreshSemantic(createdViews);
}
if (createdViews.size() > 1) {
// perform a layout of the container
DeferredLayoutCommand layoutCmd = new DeferredLayoutCommand(host().getEditingDomain(), createdViews,
host());
executeCommand(new ICommandProxy(layoutCmd));
}
makeViewsImmutable(createdViews);
}
}
| [
"francesco1.pinto@mail.polimi.it"
] | francesco1.pinto@mail.polimi.it |
3ebac6fd6bbf1bf61f2b2234fe98cbf23d8d503d | 7d7c61ab633dfd7cc709e3b1a24b2da2c925a8df | /src/practise/arrays/MergeSortedArray.java | bb0ed53b7497eff97f717b86a1fe351ef0374876 | [] | no_license | omup80/Data-Structure | 083753afa92c2cefafaeccdf86e11544c30ea528 | 672248bccd032d92a09b580400f64c767ccdf1ca | refs/heads/master | 2023-02-22T18:16:21.492791 | 2021-01-27T18:23:43 | 2021-01-27T18:23:43 | 273,060,617 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 781 | java | package practise.arrays;
public class MergeSortedArray {
public void merge(int[] nums1, int m, int[] nums2, int n) {
int i=m-1, j=n-1, k=m+n-1;
while(k>=0){
if(j>=0 && i>=0 && nums1[i] >= nums2[j] ){
nums1[k] = nums1[i];
k--;
i--;
}else if(j>=0 && i>=0 && nums2[j] >= nums1[i]){
nums1[k] = nums2[j];
k--;
j--;
}else if(i>=0){
nums1[k] = nums1[i];
k--;
i--;
}else{
nums1[k] = nums2[j];
k--;
j--;
}
}
}
}
| [
"omjitsingh2020@u.northwestern.edu"
] | omjitsingh2020@u.northwestern.edu |
53c30d43d7df4690b86d0340d4cf2db065815ca4 | 51ec3f8a3df75dbd31d3b3f43a9496acd91c5e29 | /SocketChatApp/Project2/UDPReceiver.java | 02900965b266a98a0e710015d4050ecb8091ee06 | [] | no_license | NishantKr97/Utility-Apps | 2176a7d5a7295a78575ce8410c45208c830abd25 | 4ec3c5f02c03eebe13d0d401e6471b39e2ae9c8b | refs/heads/master | 2021-09-26T08:37:32.657303 | 2018-10-28T04:59:06 | 2018-10-28T04:59:06 | 117,331,445 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 9,900 | java | package udpReceive;
import java.io.IOException;
import java.net.*;
public class UDPReceiver {
// ------------- fields ------------- //
// Static fields
private static final int SERVER_PORT=1300; // Initializing server port number, same as the one the server is listening on
private static final byte[] KEYS={12,13,14,15,16,17,18,19}; // The shared 64-bit secret key
private static final int ALLOWED_ATTEMPTS=4; // No of allowed transmission trials
private static byte[] newKey=new byte[16]; // 16 Bytes new Key after interleaving nonce bytes and shared secret key
public static void main(String[] args) throws IOException {
DatagramSocket listener=new DatagramSocket(SERVER_PORT); // Listens for incoming connections.
DatagramPacket INITpacket,IACKpacket,DATApacket,DACKpacket; // Creating Datagram object
int packetCounter=ReceiverFunctions.getPacketCount(); // Counts the # of DATA packet
int initPacketCount=0,dataPacketCount=0,temp=0,length=0; // Initialization count for # of tries to send INIT, DATA
//Temporary variable and length
byte[] sequenceCheck=new byte[1]; // Holds the value of the sequence # received in the INIT packet
byte[] sequenceNumber=new byte[2]; // Holds the sequence # to be put in the packet to be sent
byte[] packetType=new byte[2]; // Stores the packet type (2 Bytes)
byte[] receiveBuffer= new byte[48]; // Byte array to hold the INIT packet received
byte[] sendBuffer= new byte[14]; // Byte array to hold the IACK packet to be sent
byte[] receiveDataBuffer=new byte[48]; // Byte array to hold the DATA packet received
byte[] sendDataBuffer=new byte[6]; // Byte array to hold the DACK packet to be sent
InetAddress clientAddress= null; // Creating object for client's IP address
int portAddress=SERVER_PORT; // Initialized server port number assigned to the port address
System.out.println("Listening on port: "+SERVER_PORT); // Waiting for the INIT packet
while(initPacketCount!=ALLOWED_ATTEMPTS){ // For less than 4 tries
INITpacket = new DatagramPacket(receiveBuffer,receiveBuffer.length);
// Creating INIT packet to be received
listener.receive(INITpacket); // Receiving INIT packet
clientAddress=INITpacket.getAddress(); // Obtaining client's IP address
portAddress=INITpacket.getPort(); // Obtaining Client's port address
// Checks for the correct PACKET TYPE for the received INIT packet
if(receiveBuffer[1]==0x00){
if(ReceiverFunctions.integrityCheckReceived(receiveBuffer)){
// Checking the integrity check value of INIT packet received
System.out.println("Getting request from the host: "+clientAddress);
System.out.println("Integrity Check Passed for INIT packet: Receiving packet");
sendBuffer=ReceiverFunctions.iackPacketBuffer(receiveBuffer);
sequenceNumber[0]=sendBuffer[2]; // Stores the sequence number from the received INIT
sequenceNumber[1]=sendBuffer[3];
packetType[0]=sendBuffer[0]; // Packet Type is set
packetType[1]=sendBuffer[1];
IACKpacket = new DatagramPacket(sendBuffer,sendBuffer.length, clientAddress, portAddress);
listener.send(IACKpacket); // Transmission of IACK packet
System.out.println("IACK Sent");
keyGeneration(sendBuffer);
}
else{
System.out.println("Getting request from the host: "+clientAddress);
System.out.println("Integrity Check fails: Packet Discarded");
if(initPacketCount!=3)
System.out.println("Please Resend the INIT packet\n");
}
}
if(receiveBuffer[1]==0x02){ // If its a DATA packet
System.out.println("\nTwo-way handshake completed between Client & Server");
// Handshake is complete when DATA is received after the IACK is successfully received at transmitter end
System.out.println("\n------------------------------------------------------------------------------------\n");
System.out.println("Receiving Packet "+(dataPacketCount+1));
for(int k=0;k<receiveBuffer.length;k++)
receiveDataBuffer[k]=receiveBuffer[k]; // Store the DATA received in the receiverDataBuffer
break;
}
initPacketCount++;
}
if(initPacketCount<ALLOWED_ATTEMPTS){
// Creating DATA packet
DATApacket = new DatagramPacket(receiveDataBuffer,receiveDataBuffer.length);
packetType[1]++;
sequenceCheck[0]=sequenceNumber[1];
int dackCount=0,transmissionType=1; // Transmission type tells if the packet received is a new DATA Packet or a previous DATA packet
length+=receiveDataBuffer[5];
ReceiverFunctions.RC4Initialization(newKey); // RC4 initialization to decrypt the received DATA packet
while(dataPacketCount<packetCounter){
if(dataPacketCount==(packetCounter-1))
packetType[1]++;
if(temp>0){
listener.receive(DATApacket); // Receiving DATA packet
if(receiveDataBuffer[3]==sequenceCheck[0]){
if(transmissionType==1)
dataPacketCount--; // Decrement the number of packets expected
System.out.println("Receiving Packet "+(dataPacketCount+1)+" Again");
}
else{
dackCount=0;
transmissionType=1;
sequenceNumber[1]++;
sequenceCheck[0]=sequenceNumber[1];
length+=receiveDataBuffer[5]; // Counts the number of DATA bytes received
}
}
if(ReceiverFunctions.integrityCheckData(receiveDataBuffer)){ //Checks integrity check value for the received DATA packet
if(ReceiverFunctions.dataPacketCheck(sequenceNumber,packetType,dataPacketCount,receiveDataBuffer)){
sendDataBuffer=ReceiverFunctions.getSendDataBuffer();
DACKpacket = new DatagramPacket(sendDataBuffer,sendDataBuffer.length, clientAddress,portAddress);
listener.send(DACKpacket); // Send DACK packet
dataPacketCount++;
}
}
else{
System.out.println("Integrity check failed\n"); // Print error message if integrity check fails
transmissionType=0;
if (dackCount==ALLOWED_ATTEMPTS){
System.out.println("\nCommunication error in the Network");
listener.close(); // Receiver Socket Close
System.out.println("Server socket closed");
System.exit(0);
}
}
dackCount++;
temp++;
if (dackCount==ALLOWED_ATTEMPTS){
System.out.println("Communication error in the Network"); // Print error message if integrity check fails
listener.close(); // Receiver Socket Close
System.out.println("Server socket closed");
System.exit(0);
}
}// while loop ends here
if(dataPacketCount==packetCounter)
ReceiverFunctions.display(length);
}
else{
System.out.println("Communication Error- Client is not Responding"); // Print error message if allowed attempts are exhausted
listener.close();
System.out.println("\nServer socket closed");
System.exit(0);
}
}// Main ends here
// 128 bit key generation
public static void keyGeneration(byte[] arrSenderBuffer){
for(int m=0,l=0;l<16;m++,l+=2){
newKey[l]=KEYS[m];
newKey[l+1]=arrSenderBuffer[m+4]; // Interleaving SHARED SECRET KEY AND NONCE Bytes
}
}
}
| [
"nishantkr1997@gmail.com"
] | nishantkr1997@gmail.com |
3a77be0f3157ec9354a3cda4e95889a27ac25f0b | 7586951f973ee09feb3e52fb7817d4d021335571 | /app/src/main/java/com/example/nav_test/NotificationReceiver.java | 8a37000f8f1b487dc752bb6442a4b0ecf6c411b7 | [] | no_license | bbeomgeun/graspstudy | 565d330cc69368d5642362251bc799bdf0e83d69 | f0094c08fb7475ba03cd869074883b85d4ac59ef | refs/heads/master | 2022-12-15T17:51:14.949947 | 2020-09-15T12:38:01 | 2020-09-15T12:38:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,917 | java | package com.example.nav_test;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import org.jsoup.select.Elements;
import java.util.Date;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.concurrent.ExecutionException;
public class NotificationReceiver extends BroadcastReceiver {
boolean needNotification(Context context){//returns true when no jandie
ReadMyName rmn = new ReadMyName(context);
String myname = rmn.getMyName();
DateFormat df = new SimpleDateFormat("dd/MM/yy HH:mm:ss");
Date dateobj = new Date();
Log.i("NotificationReceiver","right before parsing current time : "+df.format(dateobj)+ " , name is"+myname);
github_parser gp = new github_parser(myname);
try{
Elements es = gp.execute().get();
}
catch (ExecutionException e) {
e.printStackTrace();
} catch (InterruptedException e) {
e.printStackTrace();
}
return (Integer.parseInt(gp.getToday().attr("abs:data-count").substring(19))==0);
}
@Override
public void onReceive(Context context, Intent intent) {
Log.i("NotificationReceiver","onReceive runs "+intent.getPackage());
if(needNotification(context)) {
Log.i("NotificationReceiver","need to show alarm");
NotificationHelper notificationHelper = new NotificationHelper(context);
notificationHelper.createNotification();
//Log.i("NotificationReceiver","have to notify and current time is "+df.format(dateobj));
}
else{
DateFormat df = new SimpleDateFormat("dd/MM/yy HH:mm:ss");
Date dateobj = new Date();
Log.i("NotificationReceiver","don't have to notify and current time is "+df.format(dateobj));
}
}
} | [
"coding3392@gmail.com"
] | coding3392@gmail.com |
5784471836fda69ab45dd2757a3138b4e6c41ef1 | fa91450deb625cda070e82d5c31770be5ca1dec6 | /Diff-Raw-Data/3/3_61619eee0026ff9abf5c3d184a143f79db0e8718/DigitalWidgetViewsFactory/3_61619eee0026ff9abf5c3d184a143f79db0e8718_DigitalWidgetViewsFactory_s.java | 919071e9b71b9087f1a3b4698600f369b3e74446 | [] | no_license | zhongxingyu/Seer | 48e7e5197624d7afa94d23f849f8ea2075bcaec0 | c11a3109fdfca9be337e509ecb2c085b60076213 | refs/heads/master | 2023-07-06T12:48:55.516692 | 2023-06-22T07:55:56 | 2023-06-22T07:55:56 | 259,613,157 | 6 | 2 | null | 2023-06-22T07:55:57 | 2020-04-28T11:07:49 | null | UTF-8 | Java | false | false | 11,235 | java | /*
* Copyright (C) 2012 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.android.alarmclock;
import android.appwidget.AppWidgetManager;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.provider.Settings;
import android.text.TextUtils;
import android.text.format.DateFormat;
import android.util.Log;
import android.util.TypedValue;
import android.view.View;
import android.widget.RemoteViews;
import android.widget.RemoteViewsService.RemoteViewsFactory;
import com.android.deskclock.Alarms;
import com.android.deskclock.R;
import com.android.deskclock.Utils;
import com.android.deskclock.worldclock.CityObj;
import com.android.deskclock.worldclock.WorldClockAdapter;
import java.util.Calendar;
import java.util.Locale;
import java.util.TimeZone;
public class DigitalWidgetViewsFactory extends BroadcastReceiver implements RemoteViewsFactory {
private static final String TAG = "DigitalWidgetViewsFactory";
private Context mContext;
private int mId = AppWidgetManager.INVALID_APPWIDGET_ID;
private RemoteWorldClockAdapter mAdapter;
private String mDateFormat;
private Calendar mCalendar;
private boolean mReloadCitiesList = true;
private float mFontScale = 1;
// An adapter to provide the view for the list of cities in the world clock.
private class RemoteWorldClockAdapter extends WorldClockAdapter {
private final float mFontSize;
public RemoteWorldClockAdapter(Context context) {
super(context);
mFontSize = context.getResources().getDimension(R.dimen.widget_medium_font_size);
}
public RemoteViews getViewAt(int position) {
// There are 2 cities per item
int index = position * 2;
if (index < 0 || index >= mCitiesList.length) {
return null;
}
RemoteViews views = new RemoteViews(
mContext.getPackageName(), R.layout.world_clock_remote_list_item);
// Always how the left clock
updateView(views, (CityObj) mCitiesList[index], R.id.timeDisplayHoursLeft,
R.id.timeDisplayMinutesLeft, R.id.city_name_left, R.id.city_day_left);
// Show the right clock if any, make it invisible if there is no clock on the right
// to keep the left view on the left.
if (index + 1 < mCitiesList.length) {
updateView(views, (CityObj) mCitiesList[index + 1], R.id.timeDisplayHoursRight,
R.id.timeDisplayMinutesRight, R.id.city_name_right, R.id.city_day_right);
} else {
hideView(views, R.id.timeDisplayHoursRight, R.id.timeDisplayMinutesRight,
R.id.city_name_right, R.id.city_day_right);
}
return views;
}
private void updateView(RemoteViews clock, CityObj cityObj, int hoursId, int minutesId,
int labelId, int dayId) {
final Calendar now = Calendar.getInstance();
now.setTimeInMillis(System.currentTimeMillis());
int myDayOfWeek = now.get(Calendar.DAY_OF_WEEK);
now.setTimeZone(TimeZone.getTimeZone(cityObj.mTimeZone));
int cityDayOfWeek = now.get(Calendar.DAY_OF_WEEK);
if (Alarms.get24HourMode(mContext)) {
clock.setTextViewText(hoursId, DateFormat.format(Utils.HOURS_24, now));
} else {
clock.setTextViewText(hoursId, DateFormat.format(Utils.HOURS, now));
}
clock.setTextViewText(minutesId, DateFormat.format(Utils.MINUTES, now));
clock.setTextViewText(labelId, cityObj.mCityName);
if (myDayOfWeek != cityDayOfWeek) {
clock.setTextViewText(dayId, mContext.getString(
R.string.world_day_of_week_label, now.getDisplayName(
Calendar.DAY_OF_WEEK, Calendar.SHORT, Locale.getDefault())));
clock.setViewVisibility(dayId, View.VISIBLE);
} else {
clock.setViewVisibility(dayId, View.GONE);
}
clock.setTextViewTextSize(hoursId, TypedValue.COMPLEX_UNIT_PX, mFontSize * mFontScale);
clock.setTextViewTextSize(
minutesId, TypedValue.COMPLEX_UNIT_PX, mFontSize * mFontScale);
clock.setViewVisibility(hoursId, View.VISIBLE);
clock.setViewVisibility(minutesId, View.VISIBLE);
clock.setViewVisibility(labelId, View.VISIBLE);
}
private void hideView(
RemoteViews clock, int hoursId, int minutesId, int labelId, int dayId) {
clock.setViewVisibility(hoursId, View.INVISIBLE);
clock.setViewVisibility(minutesId, View.INVISIBLE);
clock.setViewVisibility(labelId, View.INVISIBLE);
clock.setViewVisibility(dayId, View.INVISIBLE);
}
}
public DigitalWidgetViewsFactory(Context c, Intent intent) {
mContext = c;
mId = intent.getIntExtra(
AppWidgetManager.EXTRA_APPWIDGET_ID, AppWidgetManager.INVALID_APPWIDGET_ID);
mAdapter = new RemoteWorldClockAdapter(c);
}
public DigitalWidgetViewsFactory() {
}
@Override
public int getCount() {
return mAdapter.getCount();
}
@Override
public long getItemId(int position) {
return position;
}
@Override
public RemoteViews getLoadingView() {
RemoteViews views = new RemoteViews(mContext.getPackageName(), R.layout.appwidget_loading);
return views;
}
@Override
public RemoteViews getViewAt(int position) {
RemoteViews v = mAdapter.getViewAt(position);
if (v != null) {
Intent fillInIntent = new Intent();
v.setOnClickFillInIntent(R.id.widget_item, fillInIntent);
}
return v;
}
@Override
public int getViewTypeCount() {
return 1;
}
@Override
public boolean hasStableIds() {
return true;
}
@Override
public void onCreate() {
// Do intent listening registration here since doing it in the manifest creates a new
// new factory
IntentFilter filter = new IntentFilter();
filter.addAction(Intent.ACTION_TIME_TICK);
filter.addAction(Intent.ACTION_TIME_CHANGED);
filter.addAction(Intent.ACTION_LOCALE_CHANGED);
filter.addAction(Intent.ACTION_DATE_CHANGED);
filter.addAction(Intent.ACTION_TIMEZONE_CHANGED);
filter.addAction(Intent.ACTION_SCREEN_ON);
filter.addAction("com.android.deskclock.NEXT_ALARM_TIME_SET");
filter.addAction("com.android.deskclock.worldclock.update");
mContext.registerReceiver(this, filter);
}
@Override
public void onDataSetChanged() {
if (mReloadCitiesList) {
mAdapter.loadData(mContext);
mReloadCitiesList = false;
}
AppWidgetManager widgetManager = AppWidgetManager.getInstance(mContext);
mFontScale = DigitalAppWidgetProvider.getScaleRatio(mContext, null, mId);
}
@Override
public void onDestroy() {
mContext.unregisterReceiver(this);
}
@Override
public void onReceive(Context context, Intent intent) {
if (mId == AppWidgetManager.INVALID_APPWIDGET_ID) {
return;
}
mContext = context;
String action = intent.getAction();
AppWidgetManager widgetManager = AppWidgetManager.getInstance(context);
if (action.equals("com.android.deskclock.NEXT_ALARM_TIME_SET")) {
// Update the next alarm text view
RemoteViews widget =
new RemoteViews(context.getPackageName(), R.layout.digital_appwidget);
refreshAlarm(context, widget);
widgetManager.partiallyUpdateAppWidget(mId, widget);
} else if (action.equals("com.android.deskclock.worldclock.update")) {
// Reload the list of cities
mReloadCitiesList = true;
widgetManager.notifyAppWidgetViewDataChanged(mId, R.id.digital_appwidget_listview);
} else {
// For any time change or locale change, refresh all
widgetManager.notifyAppWidgetViewDataChanged(mId, R.id.digital_appwidget_listview);
RemoteViews widget =
new RemoteViews(context.getPackageName(), R.layout.digital_appwidget);
if (mDateFormat == null) {
mDateFormat =
context.getResources().getString(R.string.abbrev_wday_month_day_no_year);
}
setTime(context, widget);
refreshAlarm(context, widget);
updateDateRemoteView(mDateFormat, widget);
widgetManager.partiallyUpdateAppWidget(mId, widget);
}
}
private void refreshAlarm(Context c, RemoteViews widget) {
String nextAlarm = Settings.System.getString(c.getContentResolver(),
Settings.System.NEXT_ALARM_FORMATTED);
if (!TextUtils.isEmpty(nextAlarm)) {
widget.setTextViewText(R.id.nextAlarm,
c.getString(R.string.control_set_alarm_with_existing, nextAlarm));
widget.setViewVisibility(R.id.nextAlarm, View.VISIBLE);
} else {
widget.setViewVisibility(R.id.nextAlarm, View.GONE);
}
}
private void updateDateRemoteView(
String dateFormat, RemoteViews clock) {
Calendar cal = Calendar.getInstance();
cal.setTimeInMillis(System.currentTimeMillis());
CharSequence newDate = DateFormat.format(dateFormat, cal);
clock.setTextViewText(R.id.date, newDate);
}
private void setTime(Context c, RemoteViews clock) {
if (mCalendar == null) {
mCalendar = Calendar.getInstance();
}
mCalendar.setTimeInMillis(System.currentTimeMillis());
if (Alarms.get24HourMode(c)) {
clock.setTextViewText(
R.id.timeDisplayHours, DateFormat.format(Utils.HOURS_24, mCalendar));
} else {
clock.setTextViewText(R.id.timeDisplayHours, DateFormat.format(Utils.HOURS, mCalendar));
}
clock.setTextViewText(R.id.timeDisplayMinutes, DateFormat.format(Utils.MINUTES, mCalendar));
}
}
| [
"yuzhongxing88@gmail.com"
] | yuzhongxing88@gmail.com |
1652460e4c1f69266953df92b7f30318e6e1bf3a | 94be114d4f9824ff29b0a3be7114f6f4bf66e187 | /src/_0/_1/structure/message/AttributeValueDocument.java | 63419b42098eef0dd9099dbd3fa8d6033efdedbf | [] | no_license | CSTARS/uicds | 590b120eb3dcc24a2b73986bd32018e919c4af6a | b4095b7a33cc8af6e8a1b40ab8e83fc280d2d31a | refs/heads/master | 2016-09-11T12:58:01.097476 | 2013-05-09T22:42:38 | 2013-05-09T22:42:38 | 9,942,515 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 8,662 | java | /*
* An XML document type.
* Localname: AttributeValue
* Namespace: ulex:message:structure:1.0
* Java type: _0._1.structure.message.AttributeValueDocument
*
* Automatically generated - do not modify.
*/
package _0._1.structure.message;
/**
* A document containing one AttributeValue(@ulex:message:structure:1.0) element.
*
* This is a complex type.
*/
public interface AttributeValueDocument extends org.apache.xmlbeans.XmlObject
{
public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)
org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(AttributeValueDocument.class.getClassLoader(), "schemaorg_apache_xmlbeans.system.sF4F76781A98B61A37F3965C2C6AC6897").resolveHandle("attributevalue157bdoctype");
/**
* Gets the "AttributeValue" element
*/
java.lang.String getAttributeValue();
/**
* Gets (as xml) the "AttributeValue" element
*/
org.apache.xmlbeans.XmlString xgetAttributeValue();
/**
* Sets the "AttributeValue" element
*/
void setAttributeValue(java.lang.String attributeValue);
/**
* Sets (as xml) the "AttributeValue" element
*/
void xsetAttributeValue(org.apache.xmlbeans.XmlString attributeValue);
/**
* A factory class with static methods for creating instances
* of this type.
*/
public static final class Factory
{
public static _0._1.structure.message.AttributeValueDocument newInstance() {
return (_0._1.structure.message.AttributeValueDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
public static _0._1.structure.message.AttributeValueDocument newInstance(org.apache.xmlbeans.XmlOptions options) {
return (_0._1.structure.message.AttributeValueDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }
/** @param xmlAsString the string value to parse */
public static _0._1.structure.message.AttributeValueDocument parse(java.lang.String xmlAsString) throws org.apache.xmlbeans.XmlException {
return (_0._1.structure.message.AttributeValueDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, null ); }
public static _0._1.structure.message.AttributeValueDocument parse(java.lang.String xmlAsString, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
return (_0._1.structure.message.AttributeValueDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, options ); }
/** @param file the file from which to load an xml document */
public static _0._1.structure.message.AttributeValueDocument parse(java.io.File file) throws org.apache.xmlbeans.XmlException, java.io.IOException {
return (_0._1.structure.message.AttributeValueDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, null ); }
public static _0._1.structure.message.AttributeValueDocument parse(java.io.File file, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
return (_0._1.structure.message.AttributeValueDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, options ); }
public static _0._1.structure.message.AttributeValueDocument parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException {
return (_0._1.structure.message.AttributeValueDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, null ); }
public static _0._1.structure.message.AttributeValueDocument parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
return (_0._1.structure.message.AttributeValueDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, options ); }
public static _0._1.structure.message.AttributeValueDocument parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException {
return (_0._1.structure.message.AttributeValueDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, null ); }
public static _0._1.structure.message.AttributeValueDocument parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
return (_0._1.structure.message.AttributeValueDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, options ); }
public static _0._1.structure.message.AttributeValueDocument parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException {
return (_0._1.structure.message.AttributeValueDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, null ); }
public static _0._1.structure.message.AttributeValueDocument parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
return (_0._1.structure.message.AttributeValueDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, options ); }
public static _0._1.structure.message.AttributeValueDocument parse(javax.xml.stream.XMLStreamReader sr) throws org.apache.xmlbeans.XmlException {
return (_0._1.structure.message.AttributeValueDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, null ); }
public static _0._1.structure.message.AttributeValueDocument parse(javax.xml.stream.XMLStreamReader sr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
return (_0._1.structure.message.AttributeValueDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, options ); }
public static _0._1.structure.message.AttributeValueDocument parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException {
return (_0._1.structure.message.AttributeValueDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, null ); }
public static _0._1.structure.message.AttributeValueDocument parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
return (_0._1.structure.message.AttributeValueDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, options ); }
/** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
public static _0._1.structure.message.AttributeValueDocument parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
return (_0._1.structure.message.AttributeValueDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, null ); }
/** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
public static _0._1.structure.message.AttributeValueDocument parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
return (_0._1.structure.message.AttributeValueDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, options ); }
/** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, null ); }
/** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, options ); }
private Factory() { } // No instance of this class allowed
}
}
| [
"jrmerz@gmail.com"
] | jrmerz@gmail.com |
6145ef2ba2a937789813099bf9f56aeff6099783 | 5598faaaaa6b3d1d8502cbdaca903f9037d99600 | /code_changes/Apache_projects/HDFS-123/7f3ed5f61ed3640c50df52f699b992a889b8b28b/~NamenodeWebHdfsMethods.java | 8fe16192fdd3c1833f8ab7c7130919e55edc0493 | [] | no_license | SPEAR-SE/LogInBugReportsEmpirical_Data | 94d1178346b4624ebe90cf515702fac86f8e2672 | ab9603c66899b48b0b86bdf63ae7f7a604212b29 | refs/heads/master | 2022-12-18T02:07:18.084659 | 2020-09-09T16:49:34 | 2020-09-09T16:49:34 | 286,338,252 | 0 | 2 | null | null | null | null | UTF-8 | Java | false | false | 53,944 | java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hadoop.hdfs.server.namenode.web.resources;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.net.InetAddress;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.UnknownHostException;
import java.security.Principal;
import java.security.PrivilegedExceptionAction;
import java.util.EnumSet;
import java.util.HashSet;
import java.util.List;
import java.util.concurrent.ExecutionException;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.DefaultValue;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.StreamingOutput;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.BlockLocation;
import org.apache.hadoop.fs.ContentSummary;
import org.apache.hadoop.fs.FileStatus;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Options;
import org.apache.hadoop.fs.XAttr;
import org.apache.hadoop.fs.permission.AclStatus;
import org.apache.hadoop.fs.permission.FsAction;
import org.apache.hadoop.hdfs.DFSConfigKeys;
import org.apache.hadoop.hdfs.DFSUtil;
import org.apache.hadoop.hdfs.XAttrHelper;
import org.apache.hadoop.hdfs.protocol.BlockStoragePolicy;
import org.apache.hadoop.hdfs.protocol.DatanodeInfo;
import org.apache.hadoop.hdfs.protocol.DirectoryListing;
import org.apache.hadoop.hdfs.protocol.HdfsFileStatus;
import org.apache.hadoop.hdfs.protocol.LocatedBlocks;
import org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier;
import org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenSecretManager;
import org.apache.hadoop.hdfs.server.blockmanagement.BlockManager;
import org.apache.hadoop.hdfs.server.blockmanagement.DatanodeDescriptor;
import org.apache.hadoop.hdfs.server.blockmanagement.DatanodeStorageInfo;
import org.apache.hadoop.hdfs.server.common.JspHelper;
import org.apache.hadoop.hdfs.server.namenode.FSNamesystem;
import org.apache.hadoop.hdfs.server.namenode.NameNode;
import org.apache.hadoop.hdfs.server.protocol.NamenodeProtocols;
import org.apache.hadoop.hdfs.web.JsonUtil;
import org.apache.hadoop.hdfs.web.ParamFilter;
import org.apache.hadoop.hdfs.web.WebHdfsConstants;
import org.apache.hadoop.hdfs.web.WebHdfsFileSystem;
import org.apache.hadoop.hdfs.web.resources.*;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.ipc.ExternalCall;
import org.apache.hadoop.ipc.RetriableException;
import org.apache.hadoop.net.Node;
import org.apache.hadoop.net.NodeBase;
import org.apache.hadoop.security.Credentials;
import org.apache.hadoop.security.UserGroupInformation;
import org.apache.hadoop.security.token.Token;
import org.apache.hadoop.security.token.TokenIdentifier;
import org.apache.hadoop.util.StringUtils;
import com.google.common.annotations.VisibleForTesting;
import com.google.common.base.Charsets;
import com.google.common.collect.Lists;
import com.sun.jersey.spi.container.ResourceFilters;
/** Web-hdfs NameNode implementation. */
@Path("")
@ResourceFilters(ParamFilter.class)
public class NamenodeWebHdfsMethods {
public static final Log LOG = LogFactory.getLog(NamenodeWebHdfsMethods.class);
private static final UriFsPathParam ROOT = new UriFsPathParam("");
private volatile Boolean useIpcCallq;
private String scheme;
private Principal userPrincipal;
private String remoteAddr;
private @Context ServletContext context;
private @Context HttpServletResponse response;
public NamenodeWebHdfsMethods(@Context HttpServletRequest request) {
// the request object is a proxy to thread-locals so we have to extract
// what we want from it since the external call will be processed in a
// different thread.
scheme = request.getScheme();
userPrincipal = request.getUserPrincipal();
// get the remote address, if coming in via a trusted proxy server then
// the address with be that of the proxied client
remoteAddr = JspHelper.getRemoteAddr(request);
}
private void init(final UserGroupInformation ugi,
final DelegationParam delegation,
final UserParam username, final DoAsParam doAsUser,
final UriFsPathParam path, final HttpOpParam<?> op,
final Param<?, ?>... parameters) {
if (useIpcCallq == null) {
Configuration conf =
(Configuration)context.getAttribute(JspHelper.CURRENT_CONF);
useIpcCallq = conf.getBoolean(
DFSConfigKeys.DFS_WEBHDFS_USE_IPC_CALLQ,
DFSConfigKeys.DFS_WEBHDFS_USE_IPC_CALLQ_DEFAULT);
}
if (LOG.isTraceEnabled()) {
LOG.trace("HTTP " + op.getValue().getType() + ": " + op + ", " + path
+ ", ugi=" + ugi + ", " + username + ", " + doAsUser
+ Param.toSortedString(", ", parameters));
}
//clear content type
response.setContentType(null);
}
private static NamenodeProtocols getRPCServer(NameNode namenode)
throws IOException {
final NamenodeProtocols np = namenode.getRpcServer();
if (np == null) {
throw new RetriableException("Namenode is in startup mode");
}
return np;
}
private <T> T doAs(final UserGroupInformation ugi,
final PrivilegedExceptionAction<T> action)
throws IOException, InterruptedException {
return useIpcCallq ? doAsExternalCall(ugi, action) : ugi.doAs(action);
}
private <T> T doAsExternalCall(final UserGroupInformation ugi,
final PrivilegedExceptionAction<T> action)
throws IOException, InterruptedException {
// set the remote address, if coming in via a trust proxy server then
// the address with be that of the proxied client
ExternalCall<T> call = new ExternalCall<T>(action){
@Override
public UserGroupInformation getRemoteUser() {
return ugi;
}
@Override
public String getProtocol() {
return "webhdfs";
}
@Override
public String getHostAddress() {
return remoteAddr;
}
@Override
public InetAddress getHostInetAddress() {
try {
return InetAddress.getByName(getHostAddress());
} catch (UnknownHostException e) {
return null;
}
}
};
final NameNode namenode = (NameNode)context.getAttribute("name.node");
namenode.queueExternalCall(call);
T result = null;
try {
result = call.get();
} catch (ExecutionException ee) {
Throwable t = ee.getCause();
if (t instanceof RuntimeException) {
throw (RuntimeException)t;
} else if (t instanceof IOException) {
throw (IOException)t;
} else {
throw new IOException(t);
}
}
return result;
}
@VisibleForTesting
static DatanodeInfo chooseDatanode(final NameNode namenode,
final String path, final HttpOpParam.Op op, final long openOffset,
final long blocksize, final String excludeDatanodes,
final String remoteAddr) throws IOException {
FSNamesystem fsn = namenode.getNamesystem();
if (fsn == null) {
throw new IOException("Namesystem has not been intialized yet.");
}
final BlockManager bm = fsn.getBlockManager();
HashSet<Node> excludes = new HashSet<Node>();
if (excludeDatanodes != null) {
for (String host : StringUtils
.getTrimmedStringCollection(excludeDatanodes)) {
int idx = host.indexOf(":");
if (idx != -1) {
excludes.add(bm.getDatanodeManager().getDatanodeByXferAddr(
host.substring(0, idx), Integer.parseInt(host.substring(idx + 1))));
} else {
excludes.add(bm.getDatanodeManager().getDatanodeByHost(host));
}
}
}
if (op == PutOpParam.Op.CREATE) {
//choose a datanode near to client
final DatanodeDescriptor clientNode = bm.getDatanodeManager(
).getDatanodeByHost(remoteAddr);
if (clientNode != null) {
final DatanodeStorageInfo[] storages = bm.chooseTarget4WebHDFS(
path, clientNode, excludes, blocksize);
if (storages.length > 0) {
return storages[0].getDatanodeDescriptor();
}
}
} else if (op == GetOpParam.Op.OPEN
|| op == GetOpParam.Op.GETFILECHECKSUM
|| op == PostOpParam.Op.APPEND) {
//choose a datanode containing a replica
final NamenodeProtocols np = getRPCServer(namenode);
final HdfsFileStatus status = np.getFileInfo(path);
if (status == null) {
throw new FileNotFoundException("File " + path + " not found.");
}
final long len = status.getLen();
if (op == GetOpParam.Op.OPEN) {
if (openOffset < 0L || (openOffset >= len && len > 0)) {
throw new IOException("Offset=" + openOffset
+ " out of the range [0, " + len + "); " + op + ", path=" + path);
}
}
if (len > 0) {
final long offset = op == GetOpParam.Op.OPEN? openOffset: len - 1;
final LocatedBlocks locations = np.getBlockLocations(path, offset, 1);
final int count = locations.locatedBlockCount();
if (count > 0) {
return bestNode(locations.get(0).getLocations(), excludes);
}
}
}
return (DatanodeDescriptor)bm.getDatanodeManager().getNetworkTopology(
).chooseRandom(NodeBase.ROOT, excludes);
}
/**
* Choose the datanode to redirect the request. Note that the nodes have been
* sorted based on availability and network distances, thus it is sufficient
* to return the first element of the node here.
*/
private static DatanodeInfo bestNode(DatanodeInfo[] nodes,
HashSet<Node> excludes) throws IOException {
for (DatanodeInfo dn: nodes) {
if (false == dn.isDecommissioned() && false == excludes.contains(dn)) {
return dn;
}
}
throw new IOException("No active nodes contain this block");
}
private Token<? extends TokenIdentifier> generateDelegationToken(
final NameNode namenode, final UserGroupInformation ugi,
final String renewer) throws IOException {
final Credentials c = DelegationTokenSecretManager.createCredentials(
namenode, ugi, renewer != null? renewer: ugi.getShortUserName());
if (c == null) {
return null;
}
final Token<? extends TokenIdentifier> t = c.getAllTokens().iterator().next();
Text kind = scheme.equals("http")
? WebHdfsConstants.WEBHDFS_TOKEN_KIND
: WebHdfsConstants.SWEBHDFS_TOKEN_KIND;
t.setKind(kind);
return t;
}
private URI redirectURI(final NameNode namenode,
final UserGroupInformation ugi, final DelegationParam delegation,
final UserParam username, final DoAsParam doAsUser,
final String path, final HttpOpParam.Op op, final long openOffset,
final long blocksize, final String excludeDatanodes,
final Param<?, ?>... parameters) throws URISyntaxException, IOException {
final DatanodeInfo dn;
dn = chooseDatanode(namenode, path, op, openOffset, blocksize,
excludeDatanodes, remoteAddr);
if (dn == null) {
throw new IOException("Failed to find datanode, suggest to check cluster"
+ " health. excludeDatanodes=" + excludeDatanodes);
}
final String delegationQuery;
if (!UserGroupInformation.isSecurityEnabled()) {
//security disabled
delegationQuery = Param.toSortedString("&", doAsUser, username);
} else if (delegation.getValue() != null) {
//client has provided a token
delegationQuery = "&" + delegation;
} else {
//generate a token
final Token<? extends TokenIdentifier> t = generateDelegationToken(
namenode, ugi, null);
delegationQuery = "&" + new DelegationParam(t.encodeToUrlString());
}
final String query = op.toQueryString() + delegationQuery
+ "&" + new NamenodeAddressParam(namenode)
+ Param.toSortedString("&", parameters);
final String uripath = WebHdfsFileSystem.PATH_PREFIX + path;
int port = "http".equals(scheme) ? dn.getInfoPort() : dn
.getInfoSecurePort();
final URI uri = new URI(scheme, null, dn.getHostName(), port, uripath,
query, null);
if (LOG.isTraceEnabled()) {
LOG.trace("redirectURI=" + uri);
}
return uri;
}
/** Handle HTTP PUT request for the root. */
@PUT
@Path("/")
@Consumes({"*/*"})
@Produces({MediaType.APPLICATION_OCTET_STREAM, MediaType.APPLICATION_JSON})
public Response putRoot(
@Context final UserGroupInformation ugi,
@QueryParam(DelegationParam.NAME) @DefaultValue(DelegationParam.DEFAULT)
final DelegationParam delegation,
@QueryParam(UserParam.NAME) @DefaultValue(UserParam.DEFAULT)
final UserParam username,
@QueryParam(DoAsParam.NAME) @DefaultValue(DoAsParam.DEFAULT)
final DoAsParam doAsUser,
@QueryParam(PutOpParam.NAME) @DefaultValue(PutOpParam.DEFAULT)
final PutOpParam op,
@QueryParam(DestinationParam.NAME) @DefaultValue(DestinationParam.DEFAULT)
final DestinationParam destination,
@QueryParam(OwnerParam.NAME) @DefaultValue(OwnerParam.DEFAULT)
final OwnerParam owner,
@QueryParam(GroupParam.NAME) @DefaultValue(GroupParam.DEFAULT)
final GroupParam group,
@QueryParam(PermissionParam.NAME) @DefaultValue(PermissionParam.DEFAULT)
final PermissionParam permission,
@QueryParam(OverwriteParam.NAME) @DefaultValue(OverwriteParam.DEFAULT)
final OverwriteParam overwrite,
@QueryParam(BufferSizeParam.NAME) @DefaultValue(BufferSizeParam.DEFAULT)
final BufferSizeParam bufferSize,
@QueryParam(ReplicationParam.NAME) @DefaultValue(ReplicationParam.DEFAULT)
final ReplicationParam replication,
@QueryParam(BlockSizeParam.NAME) @DefaultValue(BlockSizeParam.DEFAULT)
final BlockSizeParam blockSize,
@QueryParam(ModificationTimeParam.NAME) @DefaultValue(ModificationTimeParam.DEFAULT)
final ModificationTimeParam modificationTime,
@QueryParam(AccessTimeParam.NAME) @DefaultValue(AccessTimeParam.DEFAULT)
final AccessTimeParam accessTime,
@QueryParam(RenameOptionSetParam.NAME) @DefaultValue(RenameOptionSetParam.DEFAULT)
final RenameOptionSetParam renameOptions,
@QueryParam(CreateParentParam.NAME) @DefaultValue(CreateParentParam.DEFAULT)
final CreateParentParam createParent,
@QueryParam(TokenArgumentParam.NAME) @DefaultValue(TokenArgumentParam.DEFAULT)
final TokenArgumentParam delegationTokenArgument,
@QueryParam(AclPermissionParam.NAME) @DefaultValue(AclPermissionParam.DEFAULT)
final AclPermissionParam aclPermission,
@QueryParam(XAttrNameParam.NAME) @DefaultValue(XAttrNameParam.DEFAULT)
final XAttrNameParam xattrName,
@QueryParam(XAttrValueParam.NAME) @DefaultValue(XAttrValueParam.DEFAULT)
final XAttrValueParam xattrValue,
@QueryParam(XAttrSetFlagParam.NAME) @DefaultValue(XAttrSetFlagParam.DEFAULT)
final XAttrSetFlagParam xattrSetFlag,
@QueryParam(SnapshotNameParam.NAME) @DefaultValue(SnapshotNameParam.DEFAULT)
final SnapshotNameParam snapshotName,
@QueryParam(OldSnapshotNameParam.NAME) @DefaultValue(OldSnapshotNameParam.DEFAULT)
final OldSnapshotNameParam oldSnapshotName,
@QueryParam(ExcludeDatanodesParam.NAME) @DefaultValue(ExcludeDatanodesParam.DEFAULT)
final ExcludeDatanodesParam excludeDatanodes,
@QueryParam(CreateFlagParam.NAME) @DefaultValue(CreateFlagParam.DEFAULT)
final CreateFlagParam createFlagParam,
@QueryParam(NoRedirectParam.NAME) @DefaultValue(NoRedirectParam.DEFAULT)
final NoRedirectParam noredirect,
@QueryParam(StoragePolicyParam.NAME) @DefaultValue(StoragePolicyParam
.DEFAULT) final StoragePolicyParam policyName
) throws IOException, InterruptedException {
return put(ugi, delegation, username, doAsUser, ROOT, op, destination,
owner, group, permission, overwrite, bufferSize, replication,
blockSize, modificationTime, accessTime, renameOptions, createParent,
delegationTokenArgument, aclPermission, xattrName, xattrValue,
xattrSetFlag, snapshotName, oldSnapshotName, excludeDatanodes,
createFlagParam, noredirect, policyName);
}
/** Handle HTTP PUT request. */
@PUT
@Path("{" + UriFsPathParam.NAME + ":.*}")
@Consumes({"*/*"})
@Produces({MediaType.APPLICATION_OCTET_STREAM, MediaType.APPLICATION_JSON})
public Response put(
@Context final UserGroupInformation ugi,
@QueryParam(DelegationParam.NAME) @DefaultValue(DelegationParam.DEFAULT)
final DelegationParam delegation,
@QueryParam(UserParam.NAME) @DefaultValue(UserParam.DEFAULT)
final UserParam username,
@QueryParam(DoAsParam.NAME) @DefaultValue(DoAsParam.DEFAULT)
final DoAsParam doAsUser,
@PathParam(UriFsPathParam.NAME) final UriFsPathParam path,
@QueryParam(PutOpParam.NAME) @DefaultValue(PutOpParam.DEFAULT)
final PutOpParam op,
@QueryParam(DestinationParam.NAME) @DefaultValue(DestinationParam.DEFAULT)
final DestinationParam destination,
@QueryParam(OwnerParam.NAME) @DefaultValue(OwnerParam.DEFAULT)
final OwnerParam owner,
@QueryParam(GroupParam.NAME) @DefaultValue(GroupParam.DEFAULT)
final GroupParam group,
@QueryParam(PermissionParam.NAME) @DefaultValue(PermissionParam.DEFAULT)
final PermissionParam permission,
@QueryParam(OverwriteParam.NAME) @DefaultValue(OverwriteParam.DEFAULT)
final OverwriteParam overwrite,
@QueryParam(BufferSizeParam.NAME) @DefaultValue(BufferSizeParam.DEFAULT)
final BufferSizeParam bufferSize,
@QueryParam(ReplicationParam.NAME) @DefaultValue(ReplicationParam.DEFAULT)
final ReplicationParam replication,
@QueryParam(BlockSizeParam.NAME) @DefaultValue(BlockSizeParam.DEFAULT)
final BlockSizeParam blockSize,
@QueryParam(ModificationTimeParam.NAME) @DefaultValue(ModificationTimeParam.DEFAULT)
final ModificationTimeParam modificationTime,
@QueryParam(AccessTimeParam.NAME) @DefaultValue(AccessTimeParam.DEFAULT)
final AccessTimeParam accessTime,
@QueryParam(RenameOptionSetParam.NAME) @DefaultValue(RenameOptionSetParam.DEFAULT)
final RenameOptionSetParam renameOptions,
@QueryParam(CreateParentParam.NAME) @DefaultValue(CreateParentParam.DEFAULT)
final CreateParentParam createParent,
@QueryParam(TokenArgumentParam.NAME) @DefaultValue(TokenArgumentParam.DEFAULT)
final TokenArgumentParam delegationTokenArgument,
@QueryParam(AclPermissionParam.NAME) @DefaultValue(AclPermissionParam.DEFAULT)
final AclPermissionParam aclPermission,
@QueryParam(XAttrNameParam.NAME) @DefaultValue(XAttrNameParam.DEFAULT)
final XAttrNameParam xattrName,
@QueryParam(XAttrValueParam.NAME) @DefaultValue(XAttrValueParam.DEFAULT)
final XAttrValueParam xattrValue,
@QueryParam(XAttrSetFlagParam.NAME) @DefaultValue(XAttrSetFlagParam.DEFAULT)
final XAttrSetFlagParam xattrSetFlag,
@QueryParam(SnapshotNameParam.NAME) @DefaultValue(SnapshotNameParam.DEFAULT)
final SnapshotNameParam snapshotName,
@QueryParam(OldSnapshotNameParam.NAME) @DefaultValue(OldSnapshotNameParam.DEFAULT)
final OldSnapshotNameParam oldSnapshotName,
@QueryParam(ExcludeDatanodesParam.NAME) @DefaultValue(ExcludeDatanodesParam.DEFAULT)
final ExcludeDatanodesParam excludeDatanodes,
@QueryParam(CreateFlagParam.NAME) @DefaultValue(CreateFlagParam.DEFAULT)
final CreateFlagParam createFlagParam,
@QueryParam(NoRedirectParam.NAME) @DefaultValue(NoRedirectParam.DEFAULT)
final NoRedirectParam noredirect,
@QueryParam(StoragePolicyParam.NAME) @DefaultValue(StoragePolicyParam
.DEFAULT) final StoragePolicyParam policyName
) throws IOException, InterruptedException {
init(ugi, delegation, username, doAsUser, path, op, destination, owner,
group, permission, overwrite, bufferSize, replication, blockSize,
modificationTime, accessTime, renameOptions, delegationTokenArgument,
aclPermission, xattrName, xattrValue, xattrSetFlag, snapshotName,
oldSnapshotName, excludeDatanodes, createFlagParam, noredirect, policyName);
return doAs(ugi, new PrivilegedExceptionAction<Response>() {
@Override
public Response run() throws IOException, URISyntaxException {
return put(ugi, delegation, username, doAsUser,
path.getAbsolutePath(), op, destination, owner, group,
permission, overwrite, bufferSize, replication, blockSize,
modificationTime, accessTime, renameOptions, createParent,
delegationTokenArgument, aclPermission, xattrName, xattrValue,
xattrSetFlag, snapshotName, oldSnapshotName, excludeDatanodes,
createFlagParam, noredirect, policyName);
}
});
}
private Response put(
final UserGroupInformation ugi,
final DelegationParam delegation,
final UserParam username,
final DoAsParam doAsUser,
final String fullpath,
final PutOpParam op,
final DestinationParam destination,
final OwnerParam owner,
final GroupParam group,
final PermissionParam permission,
final OverwriteParam overwrite,
final BufferSizeParam bufferSize,
final ReplicationParam replication,
final BlockSizeParam blockSize,
final ModificationTimeParam modificationTime,
final AccessTimeParam accessTime,
final RenameOptionSetParam renameOptions,
final CreateParentParam createParent,
final TokenArgumentParam delegationTokenArgument,
final AclPermissionParam aclPermission,
final XAttrNameParam xattrName,
final XAttrValueParam xattrValue,
final XAttrSetFlagParam xattrSetFlag,
final SnapshotNameParam snapshotName,
final OldSnapshotNameParam oldSnapshotName,
final ExcludeDatanodesParam exclDatanodes,
final CreateFlagParam createFlagParam,
final NoRedirectParam noredirectParam,
final StoragePolicyParam policyName
) throws IOException, URISyntaxException {
final Configuration conf = (Configuration)context.getAttribute(JspHelper.CURRENT_CONF);
final NameNode namenode = (NameNode)context.getAttribute("name.node");
final NamenodeProtocols np = getRPCServer(namenode);
switch(op.getValue()) {
case CREATE:
{
final URI uri = redirectURI(namenode, ugi, delegation, username,
doAsUser, fullpath, op.getValue(), -1L, blockSize.getValue(conf),
exclDatanodes.getValue(), permission, overwrite, bufferSize,
replication, blockSize, createParent, createFlagParam);
if(!noredirectParam.getValue()) {
return Response.temporaryRedirect(uri)
.type(MediaType.APPLICATION_OCTET_STREAM).build();
} else {
final String js = JsonUtil.toJsonString("Location", uri);
return Response.ok(js).type(MediaType.APPLICATION_JSON).build();
}
}
case MKDIRS:
{
final boolean b = np.mkdirs(fullpath, permission.getFsPermission(), true);
final String js = JsonUtil.toJsonString("boolean", b);
return Response.ok(js).type(MediaType.APPLICATION_JSON).build();
}
case CREATESYMLINK:
{
np.createSymlink(destination.getValue(), fullpath,
PermissionParam.getDefaultFsPermission(), createParent.getValue());
return Response.ok().type(MediaType.APPLICATION_OCTET_STREAM).build();
}
case RENAME:
{
final EnumSet<Options.Rename> s = renameOptions.getValue();
if (s.isEmpty()) {
final boolean b = np.rename(fullpath, destination.getValue());
final String js = JsonUtil.toJsonString("boolean", b);
return Response.ok(js).type(MediaType.APPLICATION_JSON).build();
} else {
np.rename2(fullpath, destination.getValue(),
s.toArray(new Options.Rename[s.size()]));
return Response.ok().type(MediaType.APPLICATION_OCTET_STREAM).build();
}
}
case SETREPLICATION:
{
final boolean b = np.setReplication(fullpath, replication.getValue(conf));
final String js = JsonUtil.toJsonString("boolean", b);
return Response.ok(js).type(MediaType.APPLICATION_JSON).build();
}
case SETOWNER:
{
if (owner.getValue() == null && group.getValue() == null) {
throw new IllegalArgumentException("Both owner and group are empty.");
}
np.setOwner(fullpath, owner.getValue(), group.getValue());
return Response.ok().type(MediaType.APPLICATION_OCTET_STREAM).build();
}
case SETPERMISSION:
{
np.setPermission(fullpath, permission.getFsPermission());
return Response.ok().type(MediaType.APPLICATION_OCTET_STREAM).build();
}
case SETTIMES:
{
np.setTimes(fullpath, modificationTime.getValue(), accessTime.getValue());
return Response.ok().type(MediaType.APPLICATION_OCTET_STREAM).build();
}
case RENEWDELEGATIONTOKEN:
{
final Token<DelegationTokenIdentifier> token = new Token<DelegationTokenIdentifier>();
token.decodeFromUrlString(delegationTokenArgument.getValue());
final long expiryTime = np.renewDelegationToken(token);
final String js = JsonUtil.toJsonString("long", expiryTime);
return Response.ok(js).type(MediaType.APPLICATION_JSON).build();
}
case CANCELDELEGATIONTOKEN:
{
final Token<DelegationTokenIdentifier> token = new Token<DelegationTokenIdentifier>();
token.decodeFromUrlString(delegationTokenArgument.getValue());
np.cancelDelegationToken(token);
return Response.ok().type(MediaType.APPLICATION_OCTET_STREAM).build();
}
case MODIFYACLENTRIES: {
np.modifyAclEntries(fullpath, aclPermission.getAclPermission(true));
return Response.ok().type(MediaType.APPLICATION_OCTET_STREAM).build();
}
case REMOVEACLENTRIES: {
np.removeAclEntries(fullpath, aclPermission.getAclPermission(false));
return Response.ok().type(MediaType.APPLICATION_OCTET_STREAM).build();
}
case REMOVEDEFAULTACL: {
np.removeDefaultAcl(fullpath);
return Response.ok().type(MediaType.APPLICATION_OCTET_STREAM).build();
}
case REMOVEACL: {
np.removeAcl(fullpath);
return Response.ok().type(MediaType.APPLICATION_OCTET_STREAM).build();
}
case SETACL: {
np.setAcl(fullpath, aclPermission.getAclPermission(true));
return Response.ok().type(MediaType.APPLICATION_OCTET_STREAM).build();
}
case SETXATTR: {
np.setXAttr(
fullpath,
XAttrHelper.buildXAttr(xattrName.getXAttrName(),
xattrValue.getXAttrValue()), xattrSetFlag.getFlag());
return Response.ok().type(MediaType.APPLICATION_OCTET_STREAM).build();
}
case REMOVEXATTR: {
np.removeXAttr(fullpath, XAttrHelper.buildXAttr(xattrName.getXAttrName()));
return Response.ok().type(MediaType.APPLICATION_OCTET_STREAM).build();
}
case ALLOWSNAPSHOT: {
np.allowSnapshot(fullpath);
return Response.ok().type(MediaType.APPLICATION_OCTET_STREAM).build();
}
case CREATESNAPSHOT: {
String snapshotPath = np.createSnapshot(fullpath, snapshotName.getValue());
final String js = JsonUtil.toJsonString(
org.apache.hadoop.fs.Path.class.getSimpleName(), snapshotPath);
return Response.ok(js).type(MediaType.APPLICATION_JSON).build();
}
case RENAMESNAPSHOT: {
np.renameSnapshot(fullpath, oldSnapshotName.getValue(),
snapshotName.getValue());
return Response.ok().type(MediaType.APPLICATION_OCTET_STREAM).build();
}
case DISALLOWSNAPSHOT: {
np.disallowSnapshot(fullpath);
return Response.ok().type(MediaType.APPLICATION_OCTET_STREAM).build();
}
case SETSTORAGEPOLICY: {
if (policyName.getValue() == null) {
throw new IllegalArgumentException("Storage policy name is empty.");
}
np.setStoragePolicy(fullpath, policyName.getValue());
return Response.ok().type(MediaType.APPLICATION_OCTET_STREAM).build();
}
default:
throw new UnsupportedOperationException(op + " is not supported");
}
}
/** Handle HTTP POST request for the root. */
@POST
@Path("/")
@Consumes({"*/*"})
@Produces({MediaType.APPLICATION_OCTET_STREAM, MediaType.APPLICATION_JSON})
public Response postRoot(
@Context final UserGroupInformation ugi,
@QueryParam(DelegationParam.NAME) @DefaultValue(DelegationParam.DEFAULT)
final DelegationParam delegation,
@QueryParam(UserParam.NAME) @DefaultValue(UserParam.DEFAULT)
final UserParam username,
@QueryParam(DoAsParam.NAME) @DefaultValue(DoAsParam.DEFAULT)
final DoAsParam doAsUser,
@QueryParam(PostOpParam.NAME) @DefaultValue(PostOpParam.DEFAULT)
final PostOpParam op,
@QueryParam(ConcatSourcesParam.NAME) @DefaultValue(ConcatSourcesParam.DEFAULT)
final ConcatSourcesParam concatSrcs,
@QueryParam(BufferSizeParam.NAME) @DefaultValue(BufferSizeParam.DEFAULT)
final BufferSizeParam bufferSize,
@QueryParam(ExcludeDatanodesParam.NAME) @DefaultValue(ExcludeDatanodesParam.DEFAULT)
final ExcludeDatanodesParam excludeDatanodes,
@QueryParam(NewLengthParam.NAME) @DefaultValue(NewLengthParam.DEFAULT)
final NewLengthParam newLength,
@QueryParam(NoRedirectParam.NAME) @DefaultValue(NoRedirectParam.DEFAULT)
final NoRedirectParam noredirect
) throws IOException, InterruptedException {
return post(ugi, delegation, username, doAsUser, ROOT, op, concatSrcs,
bufferSize, excludeDatanodes, newLength, noredirect);
}
/** Handle HTTP POST request. */
@POST
@Path("{" + UriFsPathParam.NAME + ":.*}")
@Consumes({"*/*"})
@Produces({MediaType.APPLICATION_OCTET_STREAM, MediaType.APPLICATION_JSON})
public Response post(
@Context final UserGroupInformation ugi,
@QueryParam(DelegationParam.NAME) @DefaultValue(DelegationParam.DEFAULT)
final DelegationParam delegation,
@QueryParam(UserParam.NAME) @DefaultValue(UserParam.DEFAULT)
final UserParam username,
@QueryParam(DoAsParam.NAME) @DefaultValue(DoAsParam.DEFAULT)
final DoAsParam doAsUser,
@PathParam(UriFsPathParam.NAME) final UriFsPathParam path,
@QueryParam(PostOpParam.NAME) @DefaultValue(PostOpParam.DEFAULT)
final PostOpParam op,
@QueryParam(ConcatSourcesParam.NAME) @DefaultValue(ConcatSourcesParam.DEFAULT)
final ConcatSourcesParam concatSrcs,
@QueryParam(BufferSizeParam.NAME) @DefaultValue(BufferSizeParam.DEFAULT)
final BufferSizeParam bufferSize,
@QueryParam(ExcludeDatanodesParam.NAME) @DefaultValue(ExcludeDatanodesParam.DEFAULT)
final ExcludeDatanodesParam excludeDatanodes,
@QueryParam(NewLengthParam.NAME) @DefaultValue(NewLengthParam.DEFAULT)
final NewLengthParam newLength,
@QueryParam(NoRedirectParam.NAME) @DefaultValue(NoRedirectParam.DEFAULT)
final NoRedirectParam noredirect
) throws IOException, InterruptedException {
init(ugi, delegation, username, doAsUser, path, op, concatSrcs, bufferSize,
excludeDatanodes, newLength);
return doAs(ugi, new PrivilegedExceptionAction<Response>() {
@Override
public Response run() throws IOException, URISyntaxException {
return post(ugi, delegation, username, doAsUser,
path.getAbsolutePath(), op, concatSrcs, bufferSize,
excludeDatanodes, newLength, noredirect);
}
});
}
private Response post(
final UserGroupInformation ugi,
final DelegationParam delegation,
final UserParam username,
final DoAsParam doAsUser,
final String fullpath,
final PostOpParam op,
final ConcatSourcesParam concatSrcs,
final BufferSizeParam bufferSize,
final ExcludeDatanodesParam excludeDatanodes,
final NewLengthParam newLength,
final NoRedirectParam noredirectParam
) throws IOException, URISyntaxException {
final NameNode namenode = (NameNode)context.getAttribute("name.node");
final NamenodeProtocols np = getRPCServer(namenode);
switch(op.getValue()) {
case APPEND:
{
final URI uri = redirectURI(namenode, ugi, delegation, username,
doAsUser, fullpath, op.getValue(), -1L, -1L,
excludeDatanodes.getValue(), bufferSize);
if(!noredirectParam.getValue()) {
return Response.temporaryRedirect(uri)
.type(MediaType.APPLICATION_OCTET_STREAM).build();
} else {
final String js = JsonUtil.toJsonString("Location", uri);
return Response.ok(js).type(MediaType.APPLICATION_JSON).build();
}
}
case CONCAT:
{
np.concat(fullpath, concatSrcs.getAbsolutePaths());
return Response.ok().build();
}
case TRUNCATE:
{
if (newLength.getValue() == null) {
throw new IllegalArgumentException(
"newLength parameter is Missing");
}
// We treat each rest request as a separate client.
final boolean b = np.truncate(fullpath, newLength.getValue(),
"DFSClient_" + DFSUtil.getSecureRandom().nextLong());
final String js = JsonUtil.toJsonString("boolean", b);
return Response.ok(js).type(MediaType.APPLICATION_JSON).build();
}
case UNSETSTORAGEPOLICY: {
np.unsetStoragePolicy(fullpath);
return Response.ok().build();
}
default:
throw new UnsupportedOperationException(op + " is not supported");
}
}
/** Handle HTTP GET request for the root. */
@GET
@Path("/")
@Produces({MediaType.APPLICATION_OCTET_STREAM, MediaType.APPLICATION_JSON})
public Response getRoot(
@Context final UserGroupInformation ugi,
@QueryParam(DelegationParam.NAME) @DefaultValue(DelegationParam.DEFAULT)
final DelegationParam delegation,
@QueryParam(UserParam.NAME) @DefaultValue(UserParam.DEFAULT)
final UserParam username,
@QueryParam(DoAsParam.NAME) @DefaultValue(DoAsParam.DEFAULT)
final DoAsParam doAsUser,
@QueryParam(GetOpParam.NAME) @DefaultValue(GetOpParam.DEFAULT)
final GetOpParam op,
@QueryParam(OffsetParam.NAME) @DefaultValue(OffsetParam.DEFAULT)
final OffsetParam offset,
@QueryParam(LengthParam.NAME) @DefaultValue(LengthParam.DEFAULT)
final LengthParam length,
@QueryParam(RenewerParam.NAME) @DefaultValue(RenewerParam.DEFAULT)
final RenewerParam renewer,
@QueryParam(BufferSizeParam.NAME) @DefaultValue(BufferSizeParam.DEFAULT)
final BufferSizeParam bufferSize,
@QueryParam(XAttrNameParam.NAME) @DefaultValue(XAttrNameParam.DEFAULT)
final List<XAttrNameParam> xattrNames,
@QueryParam(XAttrEncodingParam.NAME) @DefaultValue(XAttrEncodingParam.DEFAULT)
final XAttrEncodingParam xattrEncoding,
@QueryParam(ExcludeDatanodesParam.NAME) @DefaultValue(ExcludeDatanodesParam.DEFAULT)
final ExcludeDatanodesParam excludeDatanodes,
@QueryParam(FsActionParam.NAME) @DefaultValue(FsActionParam.DEFAULT)
final FsActionParam fsAction,
@QueryParam(TokenKindParam.NAME) @DefaultValue(TokenKindParam.DEFAULT)
final TokenKindParam tokenKind,
@QueryParam(TokenServiceParam.NAME) @DefaultValue(TokenServiceParam.DEFAULT)
final TokenServiceParam tokenService,
@QueryParam(NoRedirectParam.NAME) @DefaultValue(NoRedirectParam.DEFAULT)
final NoRedirectParam noredirect,
@QueryParam(StartAfterParam.NAME) @DefaultValue(StartAfterParam.DEFAULT)
final StartAfterParam startAfter
) throws IOException, InterruptedException {
return get(ugi, delegation, username, doAsUser, ROOT, op, offset, length,
renewer, bufferSize, xattrNames, xattrEncoding, excludeDatanodes, fsAction,
tokenKind, tokenService, noredirect, startAfter);
}
/** Handle HTTP GET request. */
@GET
@Path("{" + UriFsPathParam.NAME + ":.*}")
@Produces({MediaType.APPLICATION_OCTET_STREAM, MediaType.APPLICATION_JSON})
public Response get(
@Context final UserGroupInformation ugi,
@QueryParam(DelegationParam.NAME) @DefaultValue(DelegationParam.DEFAULT)
final DelegationParam delegation,
@QueryParam(UserParam.NAME) @DefaultValue(UserParam.DEFAULT)
final UserParam username,
@QueryParam(DoAsParam.NAME) @DefaultValue(DoAsParam.DEFAULT)
final DoAsParam doAsUser,
@PathParam(UriFsPathParam.NAME) final UriFsPathParam path,
@QueryParam(GetOpParam.NAME) @DefaultValue(GetOpParam.DEFAULT)
final GetOpParam op,
@QueryParam(OffsetParam.NAME) @DefaultValue(OffsetParam.DEFAULT)
final OffsetParam offset,
@QueryParam(LengthParam.NAME) @DefaultValue(LengthParam.DEFAULT)
final LengthParam length,
@QueryParam(RenewerParam.NAME) @DefaultValue(RenewerParam.DEFAULT)
final RenewerParam renewer,
@QueryParam(BufferSizeParam.NAME) @DefaultValue(BufferSizeParam.DEFAULT)
final BufferSizeParam bufferSize,
@QueryParam(XAttrNameParam.NAME) @DefaultValue(XAttrNameParam.DEFAULT)
final List<XAttrNameParam> xattrNames,
@QueryParam(XAttrEncodingParam.NAME) @DefaultValue(XAttrEncodingParam.DEFAULT)
final XAttrEncodingParam xattrEncoding,
@QueryParam(ExcludeDatanodesParam.NAME) @DefaultValue(ExcludeDatanodesParam.DEFAULT)
final ExcludeDatanodesParam excludeDatanodes,
@QueryParam(FsActionParam.NAME) @DefaultValue(FsActionParam.DEFAULT)
final FsActionParam fsAction,
@QueryParam(TokenKindParam.NAME) @DefaultValue(TokenKindParam.DEFAULT)
final TokenKindParam tokenKind,
@QueryParam(TokenServiceParam.NAME) @DefaultValue(TokenServiceParam.DEFAULT)
final TokenServiceParam tokenService,
@QueryParam(NoRedirectParam.NAME) @DefaultValue(NoRedirectParam.DEFAULT)
final NoRedirectParam noredirect,
@QueryParam(StartAfterParam.NAME) @DefaultValue(StartAfterParam.DEFAULT)
final StartAfterParam startAfter
) throws IOException, InterruptedException {
init(ugi, delegation, username, doAsUser, path, op, offset, length,
renewer, bufferSize, xattrEncoding, excludeDatanodes, fsAction,
tokenKind, tokenService, startAfter);
return doAs(ugi, new PrivilegedExceptionAction<Response>() {
@Override
public Response run() throws IOException, URISyntaxException {
return get(ugi, delegation, username, doAsUser,
path.getAbsolutePath(), op, offset, length, renewer, bufferSize,
xattrNames, xattrEncoding, excludeDatanodes, fsAction, tokenKind,
tokenService, noredirect, startAfter);
}
});
}
private Response get(
final UserGroupInformation ugi,
final DelegationParam delegation,
final UserParam username,
final DoAsParam doAsUser,
final String fullpath,
final GetOpParam op,
final OffsetParam offset,
final LengthParam length,
final RenewerParam renewer,
final BufferSizeParam bufferSize,
final List<XAttrNameParam> xattrNames,
final XAttrEncodingParam xattrEncoding,
final ExcludeDatanodesParam excludeDatanodes,
final FsActionParam fsAction,
final TokenKindParam tokenKind,
final TokenServiceParam tokenService,
final NoRedirectParam noredirectParam,
final StartAfterParam startAfter
) throws IOException, URISyntaxException {
final NameNode namenode = (NameNode)context.getAttribute("name.node");
final Configuration conf = (Configuration) context
.getAttribute(JspHelper.CURRENT_CONF);
final NamenodeProtocols np = getRPCServer(namenode);
switch(op.getValue()) {
case OPEN:
{
final URI uri = redirectURI(namenode, ugi, delegation, username,
doAsUser, fullpath, op.getValue(), offset.getValue(), -1L,
excludeDatanodes.getValue(), offset, length, bufferSize);
if(!noredirectParam.getValue()) {
return Response.temporaryRedirect(uri)
.type(MediaType.APPLICATION_OCTET_STREAM).build();
} else {
final String js = JsonUtil.toJsonString("Location", uri);
return Response.ok(js).type(MediaType.APPLICATION_JSON).build();
}
}
case GETFILEBLOCKLOCATIONS:
{
final long offsetValue = offset.getValue();
final Long lengthValue = length.getValue();
FileSystem fs = FileSystem.get(conf != null ?
conf : new Configuration());
BlockLocation[] locations = fs.getFileBlockLocations(
new org.apache.hadoop.fs.Path(fullpath),
offsetValue,
lengthValue != null? lengthValue: Long.MAX_VALUE);
final String js = JsonUtil.toJsonString("BlockLocations",
JsonUtil.toJsonMap(locations));
return Response.ok(js).type(MediaType.APPLICATION_JSON).build();
}
case GET_BLOCK_LOCATIONS:
{
final long offsetValue = offset.getValue();
final Long lengthValue = length.getValue();
final LocatedBlocks locatedblocks = np.getBlockLocations(fullpath,
offsetValue, lengthValue != null? lengthValue: Long.MAX_VALUE);
final String js = JsonUtil.toJsonString(locatedblocks);
return Response.ok(js).type(MediaType.APPLICATION_JSON).build();
}
case GETFILESTATUS:
{
final HdfsFileStatus status = np.getFileInfo(fullpath);
if (status == null) {
throw new FileNotFoundException("File does not exist: " + fullpath);
}
final String js = JsonUtil.toJsonString(status, true);
return Response.ok(js).type(MediaType.APPLICATION_JSON).build();
}
case LISTSTATUS:
{
final StreamingOutput streaming = getListingStream(np, fullpath);
return Response.ok(streaming).type(MediaType.APPLICATION_JSON).build();
}
case GETCONTENTSUMMARY:
{
final ContentSummary contentsummary = np.getContentSummary(fullpath);
final String js = JsonUtil.toJsonString(contentsummary);
return Response.ok(js).type(MediaType.APPLICATION_JSON).build();
}
case GETFILECHECKSUM:
{
final URI uri = redirectURI(namenode, ugi, delegation, username, doAsUser,
fullpath, op.getValue(), -1L, -1L, null);
if(!noredirectParam.getValue()) {
return Response.temporaryRedirect(uri)
.type(MediaType.APPLICATION_OCTET_STREAM).build();
} else {
final String js = JsonUtil.toJsonString("Location", uri);
return Response.ok(js).type(MediaType.APPLICATION_JSON).build();
}
}
case GETDELEGATIONTOKEN:
{
if (delegation.getValue() != null) {
throw new IllegalArgumentException(delegation.getName()
+ " parameter is not null.");
}
final Token<? extends TokenIdentifier> token = generateDelegationToken(
namenode, ugi, renewer.getValue());
final String setServiceName = tokenService.getValue();
final String setKind = tokenKind.getValue();
if (setServiceName != null) {
token.setService(new Text(setServiceName));
}
if (setKind != null) {
token.setKind(new Text(setKind));
}
final String js = JsonUtil.toJsonString(token);
return Response.ok(js).type(MediaType.APPLICATION_JSON).build();
}
case GETHOMEDIRECTORY: {
final String js = JsonUtil.toJsonString("Path",
FileSystem.get(conf != null ? conf : new Configuration())
.getHomeDirectory().toUri().getPath());
return Response.ok(js).type(MediaType.APPLICATION_JSON).build();
}
case GETACLSTATUS: {
AclStatus status = np.getAclStatus(fullpath);
if (status == null) {
throw new FileNotFoundException("File does not exist: " + fullpath);
}
final String js = JsonUtil.toJsonString(status);
return Response.ok(js).type(MediaType.APPLICATION_JSON).build();
}
case GETXATTRS: {
List<String> names = null;
if (xattrNames != null) {
names = Lists.newArrayListWithCapacity(xattrNames.size());
for (XAttrNameParam xattrName : xattrNames) {
if (xattrName.getXAttrName() != null) {
names.add(xattrName.getXAttrName());
}
}
}
List<XAttr> xAttrs = np.getXAttrs(fullpath, (names != null &&
!names.isEmpty()) ? XAttrHelper.buildXAttrs(names) : null);
final String js = JsonUtil.toJsonString(xAttrs,
xattrEncoding.getEncoding());
return Response.ok(js).type(MediaType.APPLICATION_JSON).build();
}
case LISTXATTRS: {
final List<XAttr> xAttrs = np.listXAttrs(fullpath);
final String js = JsonUtil.toJsonString(xAttrs);
return Response.ok(js).type(MediaType.APPLICATION_JSON).build();
}
case CHECKACCESS: {
np.checkAccess(fullpath, FsAction.getFsAction(fsAction.getValue()));
return Response.ok().build();
}
case GETTRASHROOT: {
final String trashPath = getTrashRoot(fullpath, conf);
final String jsonStr = JsonUtil.toJsonString("Path", trashPath);
return Response.ok(jsonStr).type(MediaType.APPLICATION_JSON).build();
}
case LISTSTATUS_BATCH:
{
byte[] start = HdfsFileStatus.EMPTY_NAME;
if (startAfter != null && startAfter.getValue() != null) {
start = startAfter.getValue().getBytes(Charsets.UTF_8);
}
final DirectoryListing listing = getDirectoryListing(np, fullpath, start);
final String js = JsonUtil.toJsonString(listing);
return Response.ok(js).type(MediaType.APPLICATION_JSON).build();
}
case GETALLSTORAGEPOLICY: {
BlockStoragePolicy[] storagePolicies = np.getStoragePolicies();
final String js = JsonUtil.toJsonString(storagePolicies);
return Response.ok(js).type(MediaType.APPLICATION_JSON).build();
}
case GETSTORAGEPOLICY: {
BlockStoragePolicy storagePolicy = np.getStoragePolicy(fullpath);
final String js = JsonUtil.toJsonString(storagePolicy);
return Response.ok(js).type(MediaType.APPLICATION_JSON).build();
}
default:
throw new UnsupportedOperationException(op + " is not supported");
}
}
private static String getTrashRoot(String fullPath,
Configuration conf) throws IOException {
FileSystem fs = FileSystem.get(conf != null ? conf : new Configuration());
return fs.getTrashRoot(
new org.apache.hadoop.fs.Path(fullPath)).toUri().getPath();
}
private static DirectoryListing getDirectoryListing(final NamenodeProtocols np,
final String p, byte[] startAfter) throws IOException {
final DirectoryListing listing = np.getListing(p, startAfter, false);
if (listing == null) { // the directory does not exist
throw new FileNotFoundException("File " + p + " does not exist.");
}
return listing;
}
private static StreamingOutput getListingStream(final NamenodeProtocols np,
final String p) throws IOException {
// allows exceptions like FNF or ACE to prevent http response of 200 for
// a failure since we can't (currently) return error responses in the
// middle of a streaming operation
final DirectoryListing firstDirList = getDirectoryListing(np, p,
HdfsFileStatus.EMPTY_NAME);
// must save ugi because the streaming object will be executed outside
// the remote user's ugi
final UserGroupInformation ugi = UserGroupInformation.getCurrentUser();
return new StreamingOutput() {
@Override
public void write(final OutputStream outstream) throws IOException {
final PrintWriter out = new PrintWriter(new OutputStreamWriter(
outstream, Charsets.UTF_8));
out.println("{\"" + FileStatus.class.getSimpleName() + "es\":{\""
+ FileStatus.class.getSimpleName() + "\":[");
try {
// restore remote user's ugi
ugi.doAs(new PrivilegedExceptionAction<Void>() {
@Override
public Void run() throws IOException {
long n = 0;
for (DirectoryListing dirList = firstDirList; ;
dirList = getDirectoryListing(np, p, dirList.getLastName())
) {
// send each segment of the directory listing
for (HdfsFileStatus s : dirList.getPartialListing()) {
if (n++ > 0) {
out.println(',');
}
out.print(JsonUtil.toJsonString(s, false));
}
// stop if last segment
if (!dirList.hasMore()) {
break;
}
}
return null;
}
});
} catch (InterruptedException e) {
throw new IOException(e);
}
out.println();
out.println("]}}");
out.flush();
}
};
}
/** Handle HTTP DELETE request for the root. */
@DELETE
@Path("/")
@Produces(MediaType.APPLICATION_JSON)
public Response deleteRoot(
@Context final UserGroupInformation ugi,
@QueryParam(DelegationParam.NAME) @DefaultValue(DelegationParam.DEFAULT)
final DelegationParam delegation,
@QueryParam(UserParam.NAME) @DefaultValue(UserParam.DEFAULT)
final UserParam username,
@QueryParam(DoAsParam.NAME) @DefaultValue(DoAsParam.DEFAULT)
final DoAsParam doAsUser,
@QueryParam(DeleteOpParam.NAME) @DefaultValue(DeleteOpParam.DEFAULT)
final DeleteOpParam op,
@QueryParam(RecursiveParam.NAME) @DefaultValue(RecursiveParam.DEFAULT)
final RecursiveParam recursive,
@QueryParam(SnapshotNameParam.NAME) @DefaultValue(SnapshotNameParam.DEFAULT)
final SnapshotNameParam snapshotName
) throws IOException, InterruptedException {
return delete(ugi, delegation, username, doAsUser, ROOT, op, recursive,
snapshotName);
}
/** Handle HTTP DELETE request. */
@DELETE
@Path("{" + UriFsPathParam.NAME + ":.*}")
@Produces(MediaType.APPLICATION_JSON)
public Response delete(
@Context final UserGroupInformation ugi,
@QueryParam(DelegationParam.NAME) @DefaultValue(DelegationParam.DEFAULT)
final DelegationParam delegation,
@QueryParam(UserParam.NAME) @DefaultValue(UserParam.DEFAULT)
final UserParam username,
@QueryParam(DoAsParam.NAME) @DefaultValue(DoAsParam.DEFAULT)
final DoAsParam doAsUser,
@PathParam(UriFsPathParam.NAME) final UriFsPathParam path,
@QueryParam(DeleteOpParam.NAME) @DefaultValue(DeleteOpParam.DEFAULT)
final DeleteOpParam op,
@QueryParam(RecursiveParam.NAME) @DefaultValue(RecursiveParam.DEFAULT)
final RecursiveParam recursive,
@QueryParam(SnapshotNameParam.NAME) @DefaultValue(SnapshotNameParam.DEFAULT)
final SnapshotNameParam snapshotName
) throws IOException, InterruptedException {
init(ugi, delegation, username, doAsUser, path, op, recursive, snapshotName);
return doAs(ugi, new PrivilegedExceptionAction<Response>() {
@Override
public Response run() throws IOException {
return delete(ugi, delegation, username, doAsUser,
path.getAbsolutePath(), op, recursive, snapshotName);
}
});
}
private Response delete(
final UserGroupInformation ugi,
final DelegationParam delegation,
final UserParam username,
final DoAsParam doAsUser,
final String fullpath,
final DeleteOpParam op,
final RecursiveParam recursive,
final SnapshotNameParam snapshotName
) throws IOException {
final NameNode namenode = (NameNode)context.getAttribute("name.node");
final NamenodeProtocols np = getRPCServer(namenode);
switch(op.getValue()) {
case DELETE: {
final boolean b = np.delete(fullpath, recursive.getValue());
final String js = JsonUtil.toJsonString("boolean", b);
return Response.ok(js).type(MediaType.APPLICATION_JSON).build();
}
case DELETESNAPSHOT: {
np.deleteSnapshot(fullpath, snapshotName.getValue());
return Response.ok().type(MediaType.APPLICATION_OCTET_STREAM).build();
}
default:
throw new UnsupportedOperationException(op + " is not supported");
}
}
}
| [
"archen94@gmail.com"
] | archen94@gmail.com |
c2783095da1162f18e5753269ef3b19c3364f8b9 | 6510a5f54b5ab86ec27af32d14b149284ba80a68 | /src/main/java/com/smartholiday/team/gaming/anki/enums/EAnkiColor.java | 9c9121e7de0d9599623c2b2bebe5aac30985d5c7 | [] | no_license | akli-hamraoui/anki | 8d6002e29076d6e66595acc3a3f6bf37e2f1741c | db0dce434e418dcbd5a32b224a8281269dd25022 | refs/heads/master | 2021-01-18T17:54:13.646363 | 2016-05-29T18:46:12 | 2016-05-29T18:46:12 | 59,938,774 | 0 | 0 | null | 2016-05-29T11:02:33 | 2016-05-29T11:02:32 | null | UTF-8 | Java | false | false | 222 | java | package com.smartholiday.team.gaming.anki.enums;
public enum EAnkiColor {
GREEN(2), ORANGE(1), RED(-2);
int step;
private EAnkiColor(int step) {
this.step = step;
}
public int getStep() {
return step;
}
}
| [
"hamraoui.akli@gmail.com"
] | hamraoui.akli@gmail.com |
9ad289141f61af27af406cd84210f0a55c3e3477 | fa91450deb625cda070e82d5c31770be5ca1dec6 | /Diff-Raw-Data/19/19_60dd44fc116e3c0c1102f2b165cf96fa7c10e090/AssetsImageDimensions/19_60dd44fc116e3c0c1102f2b165cf96fa7c10e090_AssetsImageDimensions_s.java | bd35ae5841a868728b0ee77a67b1af8bce920dc3 | [] | no_license | zhongxingyu/Seer | 48e7e5197624d7afa94d23f849f8ea2075bcaec0 | c11a3109fdfca9be337e509ecb2c085b60076213 | refs/heads/master | 2023-07-06T12:48:55.516692 | 2023-06-22T07:55:56 | 2023-06-22T07:55:56 | 259,613,157 | 6 | 2 | null | 2023-06-22T07:55:57 | 2020-04-28T11:07:49 | null | UTF-8 | Java | false | false | 2,680 | java | /*******************************************************************************
* eAdventure (formerly <e-Adventure> and <e-Game>) is a research project of the e-UCM
* research group.
*
* Copyright 2005-2012 e-UCM research group.
*
* e-UCM is a research group of the Department of Software Engineering
* and Artificial Intelligence at the Complutense University of Madrid
* (School of Computer Science).
*
* C Profesor Jose Garcia Santesmases sn,
* 28040 Madrid (Madrid), Spain.
*
* For more info please visit: <http://e-adventure.e-ucm.es> or
* <http://www.e-ucm.es>
*
* ****************************************************************************
* This file is part of eAdventure, version 1.5.
*
* You can access a list of all the contributors to eAdventure at:
* http://e-adventure.e-ucm.es/contributors
*
* ****************************************************************************
* eAdventure is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* eAdventure 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 Adventure. If not, see <http://www.gnu.org/licenses/>.
******************************************************************************/
package es.eucm.eadventure.common.auxiliar;
/**
* Set of constants which declare maximum sizes permitted for some type of assets.
* AssetController (editor) must implement it.
*
* @author Ángel S.
*
*/
public interface AssetsImageDimensions {
/**
* Dimensions for background
*/
public static final int BACKGROUND_MAX_WIDTH = 800;
public static final int BACKGROUND_MAX_HEIGHT = 600;
/**
* Dimensions for icons
*/
public static final int ICON_MAX_WIDTH = 80;
public static final int ICON_MAX_HEIGHT = 48;
/**
* Dimensionsn for book arrows
*/
public static final int ARROW_BOOK_MAX_WIDTH = 300;
public static final int ARROW_BOOK_MAX_HEIGHT = 200;
}
| [
"yuzhongxing88@gmail.com"
] | yuzhongxing88@gmail.com |
6ec1bc031cf9fa52079a351b530e25cad666313a | 6b7232478718ecf23ea33f86820c6440782de3d6 | /src/leetcode/util/ListNode.java | 6b732c9cef63fe4f1189a35da64da0132fa50339 | [] | no_license | shirleywan/leetcode | c930b29f77ca36b899ad4456da60adda674a8b81 | d470f8cb6805a9759d961ee36969c84984b66ab4 | refs/heads/master | 2020-03-19T18:05:11.728222 | 2019-05-02T06:04:59 | 2019-05-02T06:04:59 | 136,787,927 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 169 | java | package leetcode.util;
public class ListNode {
public int val;
public ListNode next;
public ListNode(int x) {
val = x;
next = null;
}
}
| [
"shirleyti1949@163.com"
] | shirleyti1949@163.com |
3d4e23fb3ffd76799886cab8bf5910adc3ef7eed | fb17c2b7f6f24186d89d4ea3f63d26524951f040 | /src/encryption_DESede168/Hamming.java | bf691db90e21eb3156e776c17fb32fed7e855140 | [] | no_license | srttorres/java.encrypt | fbbdc1c4f9519370c9a147dbe937de53ae5127bc | a119a7eee3d2bdaa24ce70d43dd803a80372a6a5 | refs/heads/master | 2021-01-10T03:26:52.058522 | 2016-01-05T12:15:24 | 2016-01-05T12:15:24 | 48,809,949 | 0 | 0 | null | null | null | null | ISO-8859-2 | Java | false | false | 1,629 | java | package encryption_DESede168;
public class Hamming {
private String cifrado1;
private String cifrado2;
//constructor
public Hamming(String c1, String c2)
{
this.cifrado1 = c1;
this.cifrado2 = c2;
if (cifrado1.length()!=cifrado2.length()){
new Exception("longitud desigual"); //Para comparar cifrados con Hamming deben de tener la misma longitud
}
}
//método distancia
//la distancia de hamming entre dos conjuntos de strings
public int distancia(String serie1, String serie2){
int distancia=-1;
int contador=0;
if (serie1.length() == serie2.length()){
for(int i =0;i<serie1.length();i++){
char caracter1 = serie1.charAt(i);
char caracter2 = serie2.charAt(i);
if(caracter1!=caracter2){
contador++;
}
}
distancia=contador;
}
return distancia;
}
public int distanciaByteArray(){
byte[] cifrado1EnBytes = cifrado1.getBytes();
byte[] cifrado2EnBytes = cifrado2.getBytes();
int contador = 0;
boolean[] bool1 = new boolean[8];
boolean[] bool2 = new boolean[8];
String serie1=null;
String serie2=null;
for(int i = 0; i<cifrado1.length();i++){
bool1 = Transformaciones.byteToBooleanArray(cifrado1EnBytes[i]);
bool2 = Transformaciones.byteToBooleanArray(cifrado2EnBytes[i]);
serie1 = Transformaciones.booleanArray8ToString(bool1);
serie2 = Transformaciones.booleanArray8ToString(bool2);
contador = contador + distancia(serie1,serie2);
}
return contador;
}
}
| [
"srttorres@gmail.com"
] | srttorres@gmail.com |
aa2f795f8f850661a405cf47f3c8b6b203d12e2d | ac73f9c7d1b0e78a8f2c46bd61fec64e07a5a424 | /Micro-eating/token-auth/src/main/java/com/lyl/filter/GlobalCodeFilter.java | 2d4360486e73fa1ec8eb1d0348727a0f38d10d55 | [] | no_license | aurora-yilin/Micro-eating | 7820739d7d71ad8356e79a0af125fa19e945a78b | 8735cc96f8625a74f3480b9764293e258b4bda0b | refs/heads/master | 2023-03-06T13:32:41.894251 | 2021-02-22T10:09:44 | 2021-02-22T10:09:44 | 299,199,363 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 852 | java | package com.lyl.filter;
import javax.servlet.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
/**
* @author lyl
* @Date 2020/10/1 10:19
*/
public class GlobalCodeFilter implements Filter {
@Override
public void init(FilterConfig filterConfig) throws ServletException {
}
@Override
public void destroy() {
}
@Override
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
HttpServletRequest req = (HttpServletRequest) request;
HttpServletResponse resp = (HttpServletResponse) response;
req.setCharacterEncoding("UTF-8");
resp.setContentType("application/json; charset=UTF-8");
resp.setCharacterEncoding("utf-8");
}
}
| [
"957197536@qq.com"
] | 957197536@qq.com |
36e56477d525094e4e2ad2c28d7e9c4af14b4c5d | 1f9309b43a3a8eba09987ab35460845d10cd04ec | /src/sc2build/optimizer/EventQueue.java | f70fc85a8c4ea568cb4a649371d8338bde7aab15 | [] | no_license | temas-hub/sc2BO | 9bf226888bf7712413d5b0a470e3590a68a358f0 | 757689ade925eaba257541c257540f421de03391 | refs/heads/master | 2021-01-21T02:30:10.066120 | 2012-07-08T11:56:53 | 2012-07-08T11:56:53 | 4,698,912 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 2,968 | java | package sc2build.optimizer;
import java.util.Arrays;
import java.util.Comparator;
public class EventQueue implements Comparator<Event> {
Event[] eventsArray;
//EventQueue2 cross = new EventQueue2();
int start = 0;
int end = 0;
public EventQueue(int size) {
eventsArray = new Event[size];
}
public EventQueue() {
this(100);
};
public void add(Event event) {
//cross.add(event);
int rz = Arrays.binarySearch(eventsArray, start, end, event, this);
if (rz < 0)
rz = -rz - 1;
//Event[] orig = eventsArray;
//int origStart = start;
//int origEnd = end;
/*if(rz==end && end<eventsArray.length) {
end++;
eventsArray[rz] = event;
}else if(rz==start-1){
start--;
eventsArray[rz] = event;
int off = rz;
while (eventsArray[off] == event && off + 1 < end
&& eventsArray[off + 1].time == event.time) {
eventsArray[off] = eventsArray[off + 1];
eventsArray[off + 1] = event;
off++;
}
}else*/
if (end >= eventsArray.length) {
Event[] rzA = new Event[(end-start) * 2];
System.arraycopy(eventsArray, start, rzA, 0, rz - start);// 92-75 =
// 17
rzA[rz - start] = event; // 92-75 = 17
System.arraycopy(eventsArray, rz, rzA, rz - start + 1, end - rz);// 100
// -
// 92
// =
// 8
int off = rz - start;
this.eventsArray = rzA;
end = end - start + 1;
start = 0;
while (eventsArray[off] == event && off + 1 < end
&& eventsArray[off + 1].time == event.time) {
eventsArray[off] = eventsArray[off + 1];
eventsArray[off + 1] = event;
off++;
}
} else {
System.arraycopy(eventsArray, rz, eventsArray, rz + 1, end - rz);
eventsArray[rz] = event;
end++;
int off = rz;
while (eventsArray[off] == event && off + 1 < end
&& eventsArray[off + 1].time == event.time) {
eventsArray[off] = eventsArray[off + 1];
eventsArray[off + 1] = event;
off++;
}
}
/*
for(int i=start;i<end;i++) if(eventsArray[i]==null) throw new
NullPointerException("missing "+i);
Object[] my = toArray();
Object[] his = cross.toArray();
for (int i = 0; i < his.length; i++)
if (my[i] != his[i]) {
cross.remove(event);
this.end = origEnd;
this.start = origStart;
this.eventsArray = orig;
throw new IllegalStateException("not same : " + my[i] + " ; "
+ his[i]);
}
*/
}
@Override
public int compare(final Event arg0, final Event arg1) {
return arg0.time - arg1.time;
}
public Event pop() {
if (start >= end)
return null;
//Event crozz = cross.pop();
Event rz = eventsArray[start++];
//if (crozz != rz)
// throw new IllegalStateException("not same : " + crozz + " ; " + rz);
return rz;
}
public boolean isEmpty() {
return end >= start;
}
public Event[] toArray() {
Event[] rz = new Event[end - start];
System.arraycopy(this.eventsArray, start, rz, 0, end - start);
return rz;
}
}
| [
"mponomarenko@gmail.com"
] | mponomarenko@gmail.com |
1ba593da9ca9bb942be8f8fade68790f9c0d9908 | 807316633f801c61b8c00373e09afe2803e8c893 | /src/avanlon/game/states/charachterstates/SkillMenu.java | b2ed8ce243dbd906db6fe3c3a4c3891715833e64 | [] | no_license | Chroax/Chronicles-Game | 0152d33b3d51a732644d4b7f03fa27378e0038ab | 8a4225ffbc0c6a599d28cd1a15fdad350c278d68 | refs/heads/main | 2023-06-23T13:22:47.847159 | 2021-07-21T14:59:32 | 2021-07-21T14:59:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 13,536 | java | package avanlon.game.states.charachterstates;
import avanlon.framework.gui.MyButton;
import avanlon.framework.gui.WindowManager;
import avanlon.framework.resources.Skills;
import avanlon.game.entity.Player.Player;
import avanlon.game.entity.Player.Skill;
import avanlon.game.states.newpage.LaunchSkillPage;
import javax.imageio.ImageIO;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
public class SkillMenu extends JPanel implements ActionListener
{
Player player;
private BufferedImage sprite;
private final JButton [] buttons;
private final MyButton backButton;
public SkillMenu(Player player)
{
this.player = player;
buttons = new JButton[25];
this.setSize(WindowManager.WIDTH, WindowManager.HEIGHT);
this.setLayout(null);
this.setBackground(Color.BLACK);
this.backButton = new MyButton("BACK");
this.backButton.setBounds(20, 450, 70, 50);
this.backButton.setFont(new Font("Dialog", Font.BOLD, 20));
this.backButton.setMargin(new Insets(0,0,0,0));
this.backButton.setBorder(null);
this.backButton.setFocusPainted(false);
this.backButton.setForeground(Color.GREEN);
this.backButton.setBackground(Color.BLACK);
this.backButton.setHoverBackgroundColor(Color.BLACK.brighter());
this.backButton.setPressedBackgroundColor(Color.BLACK);
this.backButton.addActionListener(this);
this.add(backButton);
try
{
for (int i = 0; i < buttons.length; i++)
{
int number = i + 1;
String name = String.valueOf(number);
String path = "";
switch (player.getPlayerClass())
{
case "PALADIN" ->
{
path = "res/textures/Skill/SKILL_PALADIN_";
if(Skills.treePaladin.findSkill(i + 1).isUnLocked())
path += number + ".png";
else
path += number + " (1).png";
}
case "WIZARD" ->
{
path = "res/textures/Skill/SKILL_WIZARD_";
if(Skills.treeWizard.findSkill(i + 1).isUnLocked())
path += number + ".png";
else
path += number + " (1).png";
}
case "ARCHER" ->
{
path = "res/textures/Skill/SKILL_ARCHER_";
if(Skills.treeArcher.findSkill(i + 1).isUnLocked())
path += number + ".png";
else
path += number + " (1).png";
}
}
sprite = ImageIO.read(new File(path));
buttons[i] = new JButton();
buttons[i].setActionCommand(name);
buttons[i].setIcon(new ImageIcon(sprite));
buttons[i].setMargin(new Insets(0,0,0,0));
buttons[i].setBorder(null);
buttons[i].setFocusPainted(false);
buttons[i].addActionListener(this);
}
int width = sprite.getWidth();
int height = sprite.getHeight();
buttons[0].setBounds(472, 80, width, height);
buttons[1].setBounds(247, 170, width, height);
buttons[2].setBounds(697, 170, width, height);
buttons[3].setBounds(117, 260, width, height);
buttons[4].setBounds(247, 260, width, height);
buttons[5].setBounds(377, 260, width, height);
buttons[6].setBounds(77, 350, width, height);
buttons[7].setBounds(117, 350, width, height);
buttons[8].setBounds(157, 350, width, height);
buttons[9].setBounds(247, 350, width, height);
buttons[10].setBounds(337, 350, width, height);
buttons[11].setBounds(417, 350, width, height);
buttons[12].setBounds(567, 260, width, height);
buttons[13].setBounds(697, 260, width, height);
buttons[14].setBounds(827, 260, width, height);
buttons[15].setBounds(527, 350, width, height);
buttons[16].setBounds(567, 350, width, height);
buttons[17].setBounds(607, 350, width, height);
buttons[20].setBounds(657, 350, width, height);
buttons[21].setBounds(697, 350, width, height);
buttons[22].setBounds(737, 350, width, height);
buttons[23].setBounds(787, 350, width, height);
buttons[24].setBounds(867, 350, width, height);
buttons[18].setBounds(117, 80, width, height);
buttons[19].setBounds(827, 80, width, height);
for (JButton button : buttons) this.add(button);
}
catch (IOException e)
{
System.err.println("[Resources] [SkillMenu] Error Image Path Resources");
e.printStackTrace();
}
repaint();
}
public void paint(Graphics graphics)
{
super.paint(graphics);
graphics.setFont(new Font("Dialog", Font.BOLD, 35));
graphics.setColor(Color.WHITE);
graphics.drawString("SKILLS", 423, 40);
graphics.setFont(new Font("Dialog", Font.BOLD, 15));
graphics.drawString("Point Skill : " + player.getPointSkill(), 57, 440);
Graphics2D graphics2D = (Graphics2D) graphics;
graphics2D.drawRoundRect(47, 50, 880, 370, 10, 10);
graphics2D.setStroke(new BasicStroke(4));
graphics2D.drawLine(262,138,712,138);
graphics2D.drawLine(487,112,487,138);
graphics2D.drawLine(262, 138, 262, 168);
graphics2D.drawLine(712, 138, 712, 168);
graphics2D.drawLine(132,228,392,228);
graphics2D.drawLine(262,202,262,224);
graphics2D.drawLine(132,228,132,258);
graphics2D.drawLine(262, 228, 262, 258);
graphics2D.drawLine(392, 228, 392, 258);
graphics2D.drawLine(582,228,842,228);
graphics2D.drawLine(712, 202, 712, 224);
graphics2D.drawLine(582,228,582,258);
graphics2D.drawLine(712, 228, 712, 258);
graphics2D.drawLine(842, 228, 842, 258);
graphics2D.drawLine(92,318,172,318);
graphics2D.drawLine(132, 292, 132, 314);
graphics2D.drawLine(92,318,92,348);
graphics2D.drawLine(132, 318, 132, 348);
graphics2D.drawLine(172, 318, 172, 348);
graphics2D.drawLine(262, 292, 262, 348);
graphics2D.drawLine(352,318,432,318);
graphics2D.drawLine(392, 292, 392, 314);
graphics2D.drawLine(352,318,352,348);
graphics2D.drawLine(432, 318, 432, 348);
graphics2D.drawLine(542,318,622,318);
graphics2D.drawLine(582, 292, 582, 314);
graphics2D.drawLine(542,318,542,348);
graphics2D.drawLine(582, 318, 582, 348);
graphics2D.drawLine(622, 318, 622, 348);
graphics2D.drawLine(672,318,752,318);
graphics2D.drawLine(712, 292, 712, 314);
graphics2D.drawLine(672,318,672,348);
graphics2D.drawLine(712, 318, 712, 348);
graphics2D.drawLine(752, 318, 752, 348);
graphics2D.drawLine(802,318,882,318);
graphics2D.drawLine(842, 292, 842, 314);
graphics2D.drawLine(802,318,802,348);
graphics2D.drawLine(882, 318, 882, 348);
}
public void setImage(int i)
{
Skill skill = switch (player.getPlayerClass())
{
case "PALADIN" -> skill = Skills.treePaladin.findSkill(i+1);
case "WIZARD" -> skill = Skills.treeWizard.findSkill(i+1);
default -> skill = Skills.treeArcher.findSkill(i+1);
};
if(skill.isUnLocked())
player.addSkillYesOrNo(skill);
else
{
if(player.getPointSkill() == 0)
JOptionPane.showMessageDialog(null, "Your Point Skill is not Enough", "Unlock Skill", JOptionPane.WARNING_MESSAGE);
else
{
String path = "";
switch (player.getPlayerClass())
{
case "PALADIN" -> path = "res/textures/Skill/SKILL_PALADIN_";
case "WIZARD" -> path = "res/textures/Skill/SKILL_WIZARD_";
case "ARCHER" -> path = "res/textures/Skill/SKILL_ARCHER_";
}
path += i + 1 + ".png";
ImageIcon icon = new ImageIcon(path);
int value = JOptionPane.showOptionDialog(null, "Do you want unlock this skill ?\nName : " + skill.getDisplayName() + "\nDesc : " + skill.getDescription(), "Unlock Skill", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, icon, null, 0);
if(value == 0)
{
try
{
Skill rootSkill = switch (player.getPlayerClass())
{
case "PALADIN" -> rootSkill = Skills.treePaladin.findSkill(Integer.parseInt(skill.getRootId()), (Integer.parseInt((skill.getSkillId()))));
case "WIZARD" -> rootSkill = Skills.treeWizard.findSkill(Integer.parseInt(skill.getRootId()), (Integer.parseInt((skill.getSkillId()))));
default -> rootSkill = Skills.treeArcher.findSkill(Integer.parseInt(skill.getRootId()), (Integer.parseInt((skill.getSkillId()))));
};
if (rootSkill != null)
{
if(rootSkill.isUnLocked())
{
player.minPointSkill();
repaint();
buttons[i].setIcon(icon);
JOptionPane.showOptionDialog(null, "Congratulation You Unlock this Skill", "Unlock Skill", JOptionPane.DEFAULT_OPTION, JOptionPane.PLAIN_MESSAGE, icon, null, 0);
skill.unlockSkill(true);
}
else
JOptionPane.showOptionDialog(null, "You not yet Unlock " + rootSkill.getDisplayName() , "Unlock Skill", JOptionPane.DEFAULT_OPTION, JOptionPane.WARNING_MESSAGE, null, null, 0);
}
else
{
player.minPointSkill();
repaint();
buttons[i].setIcon(icon);
JOptionPane.showOptionDialog(null, "Congratulation You Unlock this Skill", "Unlock Skill", JOptionPane.DEFAULT_OPTION, JOptionPane.PLAIN_MESSAGE, icon, null, 0);
skill.unlockSkill(true);
}
}
catch (NumberFormatException arg0)
{
System.err.println("[Resources] [SkillMenu] Error Parse Integer");
arg0.printStackTrace();
}
}
}
}
}
@Override
public void actionPerformed(ActionEvent e)
{
if(e.getSource() == backButton)
{
LaunchSkillPage.frame.dispose();
WindowManager.frame.setVisible(true);
}
else if(e.getSource() == buttons[0])
setImage(0);
else if(e.getSource() == buttons[1])
setImage(1);
else if(e.getSource() == buttons[2])
setImage(2);
else if(e.getSource() == buttons[3])
setImage(3);
else if(e.getSource() == buttons[4])
setImage(4);
else if(e.getSource() == buttons[5])
setImage(5);
else if(e.getSource() == buttons[6])
setImage(6);
else if(e.getSource() == buttons[7])
setImage(7);
else if(e.getSource() == buttons[8])
setImage(8);
else if(e.getSource() == buttons[9])
setImage(9);
else if(e.getSource() == buttons[10])
setImage(10);
else if(e.getSource() == buttons[11])
setImage(11);
else if(e.getSource() == buttons[12])
setImage(12);
else if(e.getSource() == buttons[13])
setImage(13);
else if(e.getSource() == buttons[14])
setImage(14);
else if(e.getSource() == buttons[15])
setImage(15);
else if(e.getSource() == buttons[16])
setImage(16);
else if(e.getSource() == buttons[17])
setImage(17);
else if(e.getSource() == buttons[18])
setImage(18);
else if(e.getSource() == buttons[19])
setImage(19);
else if(e.getSource() == buttons[20])
setImage(20);
else if(e.getSource() == buttons[21])
setImage(21);
else if(e.getSource() == buttons[22])
setImage(22);
else if(e.getSource() == buttons[23])
setImage(23);
}
}
| [
"77435642+Chroax@users.noreply.github.com"
] | 77435642+Chroax@users.noreply.github.com |
c8fba44a6db1a9e6085386a5b84a65eeee46368c | ca41f8fe35b4913c0e9fae94e29af7570714f0d4 | /src/main/java/com/infy/store/security/SecurityUtils.java | e372478daa47ff35c735c4f334f69c00e2232aa7 | [] | no_license | ChennakesavaRaoTummala/micro-online-store | 48adda48d0d3e214f7db26d4e23649f839aa4865 | f1d820da0f13fb694a0025bf21471544eee50b05 | refs/heads/master | 2021-06-27T19:22:19.787511 | 2018-07-06T11:23:20 | 2018-07-06T11:23:20 | 139,966,056 | 0 | 1 | null | 2020-09-18T15:05:41 | 2018-07-06T09:47:44 | Java | UTF-8 | Java | false | false | 2,974 | java | package com.infy.store.security;
import org.springframework.security.core.context.SecurityContext;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.security.core.userdetails.UserDetails;
import java.util.Optional;
/**
* Utility class for Spring Security.
*/
public final class SecurityUtils {
private SecurityUtils() {
}
/**
* Get the login of the current user.
*
* @return the login of the current user
*/
public static Optional<String> getCurrentUserLogin() {
SecurityContext securityContext = SecurityContextHolder.getContext();
return Optional.ofNullable(securityContext.getAuthentication())
.map(authentication -> {
if (authentication.getPrincipal() instanceof UserDetails) {
UserDetails springSecurityUser = (UserDetails) authentication.getPrincipal();
return springSecurityUser.getUsername();
} else if (authentication.getPrincipal() instanceof String) {
return (String) authentication.getPrincipal();
}
return null;
});
}
/**
* Get the JWT of the current user.
*
* @return the JWT of the current user
*/
public static Optional<String> getCurrentUserJWT() {
SecurityContext securityContext = SecurityContextHolder.getContext();
return Optional.ofNullable(securityContext.getAuthentication())
.filter(authentication -> authentication.getCredentials() instanceof String)
.map(authentication -> (String) authentication.getCredentials());
}
/**
* Check if a user is authenticated.
*
* @return true if the user is authenticated, false otherwise
*/
public static boolean isAuthenticated() {
SecurityContext securityContext = SecurityContextHolder.getContext();
return Optional.ofNullable(securityContext.getAuthentication())
.map(authentication -> authentication.getAuthorities().stream()
.noneMatch(grantedAuthority -> grantedAuthority.getAuthority().equals(AuthoritiesConstants.ANONYMOUS)))
.orElse(false);
}
/**
* If the current user has a specific authority (security role).
* <p>
* The name of this method comes from the isUserInRole() method in the Servlet API
*
* @param authority the authority to check
* @return true if the current user has the authority, false otherwise
*/
public static boolean isCurrentUserInRole(String authority) {
SecurityContext securityContext = SecurityContextHolder.getContext();
return Optional.ofNullable(securityContext.getAuthentication())
.map(authentication -> authentication.getAuthorities().stream()
.anyMatch(grantedAuthority -> grantedAuthority.getAuthority().equals(authority)))
.orElse(false);
}
}
| [
"ckrao2@apple.com"
] | ckrao2@apple.com |
52b45da333aa9acb5e3f6a3f59f36f843adc1781 | 12e96da2fbd844533f7ce84fd7573ac28bac4b69 | /src/com/rab/framework/component/dictcache/XMLCacheManager.java | 309d6c58422517453724b68d83765aabbac6878a | [] | no_license | aliufw/rab-framework | c4399f358ee65390024ff8c7483d03574fd587e2 | 01cd379fa0c7cace08a9ec1ce2db8f684f87f3ef | refs/heads/master | 2020-05-23T00:45:18.324543 | 2019-05-14T10:20:03 | 2019-05-14T10:20:03 | 186,573,605 | 0 | 0 | null | null | null | null | GB18030 | Java | false | false | 6,394 | java | package com.rab.framework.component.dictcache;
import java.io.File;
import java.io.FileOutputStream;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.OutputKeys;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import com.rab.framework.comm.log.LogFactory;
import com.rab.framework.comm.log.LogWritter;
/**
*
* <P>Title: XMLCacheManager</P>
* <P>Description: </P>
* <P>程序说明:</P>
* <P>浏览器缓存web端数据文件管理器</P>
*
* <P>Copyright: Copyright (c) 2011 </P>
* <P>@author lfw</P>
* <P>version 1.0</P>
* <P>2010-6-16</P>
*
*/
public class XMLCacheManager {
/**
* 日志记录对象
*/
private final static LogWritter logger = LogFactory.getLogger(XMLCacheManager.class);
private static DocumentBuilderFactory dbFact = DocumentBuilderFactory.newInstance();
private DocumentBuilder builder;
// private org.w3c.dom.Document doc;
/**
* 代码表缓存xml文件保存路径
*/
private String localXMLCacheRoot = "";
/**
* 代码表和映射版本列表
*/
private Map<String,Integer> versionList = new HashMap<String,Integer>();
public XMLCacheManager(){
try {
builder=dbFact.newDocumentBuilder();
} catch (ParserConfigurationException e) {
logger.error("创建文档builder出现异常!", e);
}
}
public void init(){
File rootdir = new File(localXMLCacheRoot);
if(!rootdir.exists()){
rootdir.mkdirs();
}
File file = new File(rootdir, "versionlist.xml");
if(!file.exists()){
return;
}
try{
Document doc = builder.parse(file);
Element rootElement = doc.getDocumentElement();
NodeList fileIter = rootElement.getChildNodes();
for(int i=0;i<fileIter.getLength();i++) {
Node fileElement = (Node) fileIter.item(i);
if(fileElement.getAttributes()!=null){
String name = fileElement.getAttributes().getNamedItem("name").getNodeValue();
String value = fileElement.getAttributes().getNamedItem("version").getNodeValue();
name = name.toLowerCase();
Integer version = new Integer(value);
this.versionList.put(name, version);
logger.debug("加载本地文件缓存中的初始版本信息:" + name + " (version)= " + value);
}
}
} catch (Exception ex) {
logger.error("代码表缓存管理程序版本标识初始化解析出现异常!", ex);
}
}
public String getLocalXMLCacheRoot() {
return localXMLCacheRoot;
}
public void setLocalXMLCacheRoot(String localXMLCacheRoot) {
this.localXMLCacheRoot = localXMLCacheRoot;
}
public void updateLocalXMLCache(Map<String,CacheTable> data) {
// 1. 更新 versionList
Iterator<CacheTable> iter = data.values().iterator();
while (iter.hasNext()) {
CacheTable table = (CacheTable) iter.next();
String tableName = table.getTableName().toLowerCase();
int version = table.getVersion();
Object obj = versionList.get(tableName);
int verOld = -1;
if(obj == null){
verOld = -1;
}
else{
verOld = ((Integer)obj).intValue();
}
if(version > verOld){
this.versionList.put(tableName, new Integer(version));
//2. 更新代码表缓存到本地硬盘
this.saveCacheTable(tableName, table);
}
}
//3. 更新后的versionList保存到硬盘
this.createVersionListFile();
}
/**
* 将代码表转换为xml后保存到本地硬盘
*
* @param tableName
* 表名
* @param table
* 代码表缓存数据对象
*/
private void saveCacheTable(String tableName, CacheTable table){
Document doc=builder.newDocument();
Element root= doc.createElement("table");
root.setAttribute("name",tableName);
doc.appendChild(root);
List<Map<String,Object>> list = table.getCacheData();
if(table.getCacheType() == CacheTable.CACHE_TYPE_DB &&
(table.getCacheData() == null || table.getCacheData().size()==0)){
list = ServerCacheManager.getDictCacheService().getCacheDataFromDB(tableName,"");
// return;
}
for(int index=0; index<list.size(); index ++){
Map<String,Object> row = list.get(index);
Element datarow = doc.createElement("row");
Iterator<String> iter = row.keySet().iterator();
while(iter.hasNext()){
String key = "" + iter.next();
String value = "" + row.get(key);
// value = StringUtils.utftoGBK(value);
datarow.setAttribute(key, value);
}
root.appendChild(datarow);
}
createXMLFile(doc, tableName.toUpperCase() + ".xml");
}
/**
* 创建版本列表信息,并保存到本地硬盘
*
* @param pool 缓存容器
*/
private void createVersionListFile(){
Document doc=builder.newDocument();
Element root= doc.createElement("files");
doc.appendChild(root);
Iterator<String> iter = this.versionList.keySet().iterator();
while(iter.hasNext()){
String tableName = "" + iter.next();
Integer version = (Integer)this.versionList.get(tableName);
Element file = doc.createElement("file");
file.setAttribute("name", tableName.toLowerCase());
file.setAttribute("version", "" + version);
root.appendChild(file);
}
createXMLFile(doc, "versionlist.xml");
}
private void createXMLFile(Document doc, String fileName){
try {
File rootdir = new File(localXMLCacheRoot);
if(!rootdir.exists()){
rootdir.mkdirs();
}
File file = new File(rootdir, fileName);
Transformer trans = TransformerFactory.newInstance().newTransformer();
// trans.setOutputProperty(OutputKeys.ENCODING,"GB2312");
trans.setOutputProperty(OutputKeys.INDENT,"yes");
trans.transform(new DOMSource(doc),new StreamResult(new FileOutputStream(file, false)));
}
catch (Exception e) {
logger.error("将Document对象输出为xml时出现异常!", e);
}
}
}
| [
"aliufw@tom.com"
] | aliufw@tom.com |
4c29273ac97612aafd4d917002a6a080b791f5c9 | 616263c965c200d93104b51f30b010bd7b0fb7e8 | /src/com/kritjo/sudoku/ResultFoundException.java | ced78d40d2bd9aa090a291a8025db381dd4069b1 | [] | no_license | kritjo/sudoku | 9c19404d98af6efd89f9a132f6532febe3238695 | ac3f5ee2da625670e17e9547270d16e34cd56db5 | refs/heads/master | 2023-04-12T09:40:10.341608 | 2021-04-23T14:35:51 | 2021-04-23T14:35:51 | 332,489,163 | 1 | 0 | null | 2021-04-23T12:10:25 | 2021-01-24T15:50:34 | Java | UTF-8 | Java | false | false | 130 | java | package com.kritjo.sudoku;
/**
* To be used in recursion algorithm.
*/
public class ResultFoundException extends Throwable {
}
| [
"63654018+kritjo@users.noreply.github.com"
] | 63654018+kritjo@users.noreply.github.com |
27ea79aa9ad1ad992042b8b904bf96ff19b25dfd | 9d32980f5989cd4c55cea498af5d6a413e08b7a2 | /A92s_10_0_0/src/main/java/android/view/Window.java | 92c14e3ebee1ba1842b13c95d85b48d31f76e41b | [] | no_license | liuhaosource/OppoFramework | e7cc3bcd16958f809eec624b9921043cde30c831 | ebe39acabf5eae49f5f991c5ce677d62b683f1b6 | refs/heads/master | 2023-06-03T23:06:17.572407 | 2020-11-30T08:40:07 | 2020-11-30T08:40:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 30,183 | java | package android.view;
import android.annotation.SystemApi;
import android.annotation.UnsupportedAppUsage;
import android.content.Context;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.content.res.TypedArray;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.media.session.MediaController;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.os.IBinder;
import android.os.RemoteException;
import android.provider.SettingsStringUtil;
import android.transition.Scene;
import android.transition.Transition;
import android.transition.TransitionManager;
import android.view.ActionMode;
import android.view.InputQueue;
import android.view.SurfaceHolder;
import android.view.ViewGroup;
import android.view.WindowManager;
import android.view.accessibility.AccessibilityEvent;
import com.android.internal.R;
import java.util.Collections;
import java.util.List;
public abstract class Window {
public static final int DECOR_CAPTION_SHADE_AUTO = 0;
public static final int DECOR_CAPTION_SHADE_DARK = 2;
public static final int DECOR_CAPTION_SHADE_LIGHT = 1;
@Deprecated
protected static final int DEFAULT_FEATURES = 65;
public static final int FEATURE_ACTION_BAR = 8;
public static final int FEATURE_ACTION_BAR_OVERLAY = 9;
public static final int FEATURE_ACTION_MODE_OVERLAY = 10;
public static final int FEATURE_ACTIVITY_TRANSITIONS = 13;
public static final int FEATURE_CONTENT_TRANSITIONS = 12;
public static final int FEATURE_CONTEXT_MENU = 6;
public static final int FEATURE_CUSTOM_TITLE = 7;
@Deprecated
public static final int FEATURE_INDETERMINATE_PROGRESS = 5;
public static final int FEATURE_LEFT_ICON = 3;
@UnsupportedAppUsage
public static final int FEATURE_MAX = 13;
public static final int FEATURE_NO_TITLE = 1;
public static final int FEATURE_OPTIONS_PANEL = 0;
@Deprecated
public static final int FEATURE_PROGRESS = 2;
public static final int FEATURE_RIGHT_ICON = 4;
public static final int FEATURE_SWIPE_TO_DISMISS = 11;
public static final int ID_ANDROID_CONTENT = 16908290;
public static final String NAVIGATION_BAR_BACKGROUND_TRANSITION_NAME = "android:navigation:background";
@Deprecated
public static final int PROGRESS_END = 10000;
@Deprecated
public static final int PROGRESS_INDETERMINATE_OFF = -4;
@Deprecated
public static final int PROGRESS_INDETERMINATE_ON = -3;
@Deprecated
public static final int PROGRESS_SECONDARY_END = 30000;
@Deprecated
public static final int PROGRESS_SECONDARY_START = 20000;
@Deprecated
public static final int PROGRESS_START = 0;
@Deprecated
public static final int PROGRESS_VISIBILITY_OFF = -2;
@Deprecated
public static final int PROGRESS_VISIBILITY_ON = -1;
public static final String STATUS_BAR_BACKGROUND_TRANSITION_NAME = "android:status:background";
private Window mActiveChild;
@UnsupportedAppUsage
private String mAppName;
@UnsupportedAppUsage
private IBinder mAppToken;
@UnsupportedAppUsage
private Callback mCallback;
private boolean mCloseOnSwipeEnabled = false;
private boolean mCloseOnTouchOutside = false;
private Window mContainer;
@UnsupportedAppUsage
private final Context mContext;
private int mDefaultWindowFormat = -1;
@UnsupportedAppUsage
private boolean mDestroyed;
@UnsupportedAppUsage
private int mFeatures;
private int mForcedWindowFlags = 0;
@UnsupportedAppUsage
private boolean mHardwareAccelerated;
private boolean mHasChildren = false;
private boolean mHasSoftInputMode = false;
private boolean mHaveDimAmount = false;
private boolean mHaveWindowFormat = false;
private boolean mIsActive = false;
@UnsupportedAppUsage
private int mLocalFeatures;
private OnRestrictedCaptionAreaChangedListener mOnRestrictedCaptionAreaChangedListener;
private OnWindowDismissedCallback mOnWindowDismissedCallback;
private OnWindowSwipeDismissedCallback mOnWindowSwipeDismissedCallback;
private boolean mOverlayWithDecorCaptionEnabled = false;
private Rect mRestrictedCaptionAreaRect;
private boolean mSetCloseOnTouchOutside = false;
@UnsupportedAppUsage
private final WindowManager.LayoutParams mWindowAttributes = new WindowManager.LayoutParams();
private WindowControllerCallback mWindowControllerCallback;
@UnsupportedAppUsage(maxTargetSdk = 28, trackingBug = 115609023)
private WindowManager mWindowManager;
@UnsupportedAppUsage
private TypedArray mWindowStyle;
public interface OnFrameMetricsAvailableListener {
void onFrameMetricsAvailable(Window window, FrameMetrics frameMetrics, int i);
}
public interface OnRestrictedCaptionAreaChangedListener {
void onRestrictedCaptionAreaChanged(Rect rect);
}
public interface OnWindowDismissedCallback {
void onWindowDismissed(boolean z, boolean z2);
}
public interface OnWindowSwipeDismissedCallback {
void onWindowSwipeDismissed();
}
public interface WindowControllerCallback {
void enterPictureInPictureModeIfPossible();
int getWindowMode() throws RemoteException;
boolean isTaskRoot();
void toggleFreeformWindowingMode() throws RemoteException;
}
public abstract void addContentView(View view, ViewGroup.LayoutParams layoutParams);
@UnsupportedAppUsage
public abstract void alwaysReadCloseOnTouchAttr();
public abstract void clearContentView();
public abstract void closeAllPanels();
public abstract void closePanel(int i);
public abstract View getCurrentFocus();
public abstract View getDecorView();
public abstract WindowInsetsController getInsetsController();
public abstract LayoutInflater getLayoutInflater();
public abstract int getNavigationBarColor();
public abstract int getStatusBarColor();
public abstract int getVolumeControlStream();
public abstract void invalidatePanelMenu(int i);
public abstract boolean isFloating();
public abstract boolean isShortcutKey(int i, KeyEvent keyEvent);
/* access modifiers changed from: protected */
public abstract void onActive();
public abstract void onConfigurationChanged(Configuration configuration);
public abstract void onMultiWindowModeChanged();
public abstract void onPictureInPictureModeChanged(boolean z);
public abstract void openPanel(int i, KeyEvent keyEvent);
public abstract View peekDecorView();
public abstract boolean performContextMenuIdentifierAction(int i, int i2);
public abstract boolean performPanelIdentifierAction(int i, int i2, int i3);
public abstract boolean performPanelShortcut(int i, int i2, KeyEvent keyEvent, int i3);
public abstract void reportActivityRelaunched();
public abstract void restoreHierarchyState(Bundle bundle);
public abstract Bundle saveHierarchyState();
public abstract void setBackgroundDrawable(Drawable drawable);
public abstract void setChildDrawable(int i, Drawable drawable);
public abstract void setChildInt(int i, int i2);
public abstract void setContentView(int i);
public abstract void setContentView(View view);
public abstract void setContentView(View view, ViewGroup.LayoutParams layoutParams);
public abstract void setDecorCaptionShade(int i);
public abstract void setFeatureDrawable(int i, Drawable drawable);
public abstract void setFeatureDrawableAlpha(int i, int i2);
public abstract void setFeatureDrawableResource(int i, int i2);
public abstract void setFeatureDrawableUri(int i, Uri uri);
public abstract void setFeatureInt(int i, int i2);
public abstract void setNavigationBarColor(int i);
public abstract void setResizingCaptionDrawable(Drawable drawable);
public abstract void setStatusBarColor(int i);
public abstract void setTitle(CharSequence charSequence);
@Deprecated
public abstract void setTitleColor(int i);
public abstract void setVolumeControlStream(int i);
public abstract boolean superDispatchGenericMotionEvent(MotionEvent motionEvent);
public abstract boolean superDispatchKeyEvent(KeyEvent keyEvent);
public abstract boolean superDispatchKeyShortcutEvent(KeyEvent keyEvent);
public abstract boolean superDispatchTouchEvent(MotionEvent motionEvent);
public abstract boolean superDispatchTrackballEvent(MotionEvent motionEvent);
public abstract void takeInputQueue(InputQueue.Callback callback);
public abstract void takeKeyEvents(boolean z);
public abstract void takeSurface(SurfaceHolder.Callback2 callback2);
public abstract void togglePanel(int i, KeyEvent keyEvent);
public interface Callback {
boolean dispatchGenericMotionEvent(MotionEvent motionEvent);
boolean dispatchKeyEvent(KeyEvent keyEvent);
boolean dispatchKeyShortcutEvent(KeyEvent keyEvent);
boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent accessibilityEvent);
boolean dispatchTouchEvent(MotionEvent motionEvent);
boolean dispatchTrackballEvent(MotionEvent motionEvent);
void onActionModeFinished(ActionMode actionMode);
void onActionModeStarted(ActionMode actionMode);
void onAttachedToWindow();
void onContentChanged();
boolean onCreatePanelMenu(int i, Menu menu);
View onCreatePanelView(int i);
void onDetachedFromWindow();
boolean onMenuItemSelected(int i, MenuItem menuItem);
boolean onMenuOpened(int i, Menu menu);
void onPanelClosed(int i, Menu menu);
boolean onPreparePanel(int i, View view, Menu menu);
boolean onSearchRequested();
boolean onSearchRequested(SearchEvent searchEvent);
void onWindowAttributesChanged(WindowManager.LayoutParams layoutParams);
void onWindowFocusChanged(boolean z);
ActionMode onWindowStartingActionMode(ActionMode.Callback callback);
ActionMode onWindowStartingActionMode(ActionMode.Callback callback, int i);
default void onProvideKeyboardShortcuts(List<KeyboardShortcutGroup> list, Menu menu, int deviceId) {
}
default void onPointerCaptureChanged(boolean hasCapture) {
}
}
public Window(Context context) {
this.mContext = context;
int defaultFeatures = getDefaultFeatures(context);
this.mLocalFeatures = defaultFeatures;
this.mFeatures = defaultFeatures;
}
public final Context getContext() {
return this.mContext;
}
public final TypedArray getWindowStyle() {
TypedArray typedArray;
synchronized (this) {
if (this.mWindowStyle == null) {
this.mWindowStyle = this.mContext.obtainStyledAttributes(R.styleable.Window);
}
typedArray = this.mWindowStyle;
}
return typedArray;
}
public void setContainer(Window container) {
this.mContainer = container;
if (container != null) {
this.mFeatures |= 2;
this.mLocalFeatures |= 2;
container.mHasChildren = true;
}
}
public final Window getContainer() {
return this.mContainer;
}
public final boolean hasChildren() {
return this.mHasChildren;
}
public final void destroy() {
this.mDestroyed = true;
}
@UnsupportedAppUsage
public final boolean isDestroyed() {
return this.mDestroyed;
}
public void setWindowManager(WindowManager wm, IBinder appToken, String appName) {
setWindowManager(wm, appToken, appName, false);
}
public void setWindowManager(WindowManager wm, IBinder appToken, String appName, boolean hardwareAccelerated) {
this.mAppToken = appToken;
this.mAppName = appName;
this.mHardwareAccelerated = hardwareAccelerated;
if (wm == null) {
wm = (WindowManager) this.mContext.getSystemService(Context.WINDOW_SERVICE);
}
this.mWindowManager = ((WindowManagerImpl) wm).createLocalWindowManager(this);
}
/* access modifiers changed from: package-private */
public void adjustLayoutParamsForSubWindow(WindowManager.LayoutParams wp) {
String str;
View decor;
CharSequence curTitle = wp.getTitle();
if (wp.type >= 1000 && wp.type <= 1999) {
if (wp.token == null && (decor = peekDecorView()) != null) {
wp.token = decor.getWindowToken();
}
if (curTitle == null || curTitle.length() == 0) {
StringBuilder title = new StringBuilder(32);
if (wp.type == 1001) {
title.append("Media");
} else if (wp.type == 1004) {
title.append("MediaOvr");
} else if (wp.type == 1000) {
title.append("Panel");
} else if (wp.type == 1002) {
title.append("SubPanel");
} else if (wp.type == 1005) {
title.append("AboveSubPanel");
} else if (wp.type == 1003) {
title.append("AtchDlg");
} else {
title.append(wp.type);
}
if (this.mAppName != null) {
title.append(SettingsStringUtil.DELIMITER);
title.append(this.mAppName);
}
wp.setTitle(title);
}
} else if (wp.type < 2000 || wp.type > 2999) {
if (wp.token == null) {
Window window = this.mContainer;
wp.token = window == null ? this.mAppToken : window.mAppToken;
}
if ((curTitle == null || curTitle.length() == 0) && (str = this.mAppName) != null) {
wp.setTitle(str);
}
} else if (curTitle == null || curTitle.length() == 0) {
StringBuilder title2 = new StringBuilder(32);
title2.append("Sys");
title2.append(wp.type);
if (this.mAppName != null) {
title2.append(SettingsStringUtil.DELIMITER);
title2.append(this.mAppName);
}
wp.setTitle(title2);
}
if (wp.packageName == null) {
wp.packageName = this.mContext.getPackageName();
}
if (this.mHardwareAccelerated || (this.mWindowAttributes.flags & 16777216) != 0) {
wp.flags |= 16777216;
}
}
public WindowManager getWindowManager() {
return this.mWindowManager;
}
public void setCallback(Callback callback) {
this.mCallback = callback;
}
public final Callback getCallback() {
return this.mCallback;
}
public final void addOnFrameMetricsAvailableListener(OnFrameMetricsAvailableListener listener, Handler handler) {
View decorView = getDecorView();
if (decorView == null) {
throw new IllegalStateException("can't observe a Window without an attached view");
} else if (listener != null) {
decorView.addFrameMetricsListener(this, listener, handler);
} else {
throw new NullPointerException("listener cannot be null");
}
}
public final void removeOnFrameMetricsAvailableListener(OnFrameMetricsAvailableListener listener) {
if (getDecorView() != null) {
getDecorView().removeFrameMetricsListener(listener);
}
}
public final void setOnWindowDismissedCallback(OnWindowDismissedCallback dcb) {
this.mOnWindowDismissedCallback = dcb;
}
public final void dispatchOnWindowDismissed(boolean finishTask, boolean suppressWindowTransition) {
OnWindowDismissedCallback onWindowDismissedCallback = this.mOnWindowDismissedCallback;
if (onWindowDismissedCallback != null) {
onWindowDismissedCallback.onWindowDismissed(finishTask, suppressWindowTransition);
}
}
public final void setOnWindowSwipeDismissedCallback(OnWindowSwipeDismissedCallback sdcb) {
this.mOnWindowSwipeDismissedCallback = sdcb;
}
public final void dispatchOnWindowSwipeDismissed() {
OnWindowSwipeDismissedCallback onWindowSwipeDismissedCallback = this.mOnWindowSwipeDismissedCallback;
if (onWindowSwipeDismissedCallback != null) {
onWindowSwipeDismissedCallback.onWindowSwipeDismissed();
}
}
public final void setWindowControllerCallback(WindowControllerCallback wccb) {
this.mWindowControllerCallback = wccb;
}
public final WindowControllerCallback getWindowControllerCallback() {
return this.mWindowControllerCallback;
}
public final void setRestrictedCaptionAreaListener(OnRestrictedCaptionAreaChangedListener listener) {
this.mOnRestrictedCaptionAreaChangedListener = listener;
this.mRestrictedCaptionAreaRect = listener != null ? new Rect() : null;
}
public void setLayout(int width, int height) {
WindowManager.LayoutParams attrs = getAttributes();
attrs.width = width;
attrs.height = height;
dispatchWindowAttributesChanged(attrs);
}
public void setGravity(int gravity) {
WindowManager.LayoutParams attrs = getAttributes();
attrs.gravity = gravity;
dispatchWindowAttributesChanged(attrs);
}
public void setType(int type) {
WindowManager.LayoutParams attrs = getAttributes();
attrs.type = type;
dispatchWindowAttributesChanged(attrs);
}
public void setFormat(int format) {
WindowManager.LayoutParams attrs = getAttributes();
if (format != 0) {
attrs.format = format;
this.mHaveWindowFormat = true;
} else {
attrs.format = this.mDefaultWindowFormat;
this.mHaveWindowFormat = false;
}
dispatchWindowAttributesChanged(attrs);
}
public void setWindowAnimations(int resId) {
WindowManager.LayoutParams attrs = getAttributes();
attrs.windowAnimations = resId;
dispatchWindowAttributesChanged(attrs);
}
public void setSoftInputMode(int mode) {
WindowManager.LayoutParams attrs = getAttributes();
if (mode != 0) {
attrs.softInputMode = mode;
this.mHasSoftInputMode = true;
} else {
this.mHasSoftInputMode = false;
}
dispatchWindowAttributesChanged(attrs);
}
public void addFlags(int flags) {
setFlags(flags, flags);
}
@UnsupportedAppUsage
public void addPrivateFlags(int flags) {
setPrivateFlags(flags, flags);
}
@SystemApi
public void addSystemFlags(int flags) {
addPrivateFlags(flags);
}
public void clearFlags(int flags) {
setFlags(0, flags);
}
public void setFlags(int flags, int mask) {
WindowManager.LayoutParams attrs = getAttributes();
attrs.flags = (attrs.flags & (~mask)) | (flags & mask);
this.mForcedWindowFlags |= mask;
dispatchWindowAttributesChanged(attrs);
}
private void setPrivateFlags(int flags, int mask) {
WindowManager.LayoutParams attrs = getAttributes();
attrs.privateFlags = (attrs.privateFlags & (~mask)) | (flags & mask);
dispatchWindowAttributesChanged(attrs);
}
/* access modifiers changed from: protected */
@UnsupportedAppUsage
public void setNeedsMenuKey(int value) {
WindowManager.LayoutParams attrs = getAttributes();
attrs.needsMenuKey = value;
dispatchWindowAttributesChanged(attrs);
}
/* access modifiers changed from: protected */
public void dispatchWindowAttributesChanged(WindowManager.LayoutParams attrs) {
Callback callback = this.mCallback;
if (callback != null) {
callback.onWindowAttributesChanged(attrs);
}
}
public void setColorMode(int colorMode) {
WindowManager.LayoutParams attrs = getAttributes();
attrs.setColorMode(colorMode);
dispatchWindowAttributesChanged(attrs);
}
public int getColorMode() {
return getAttributes().getColorMode();
}
public boolean isWideColorGamut() {
if (getColorMode() != 1 || !getContext().getResources().getConfiguration().isScreenWideColorGamut()) {
return false;
}
return true;
}
public void setDimAmount(float amount) {
WindowManager.LayoutParams attrs = getAttributes();
attrs.dimAmount = amount;
this.mHaveDimAmount = true;
dispatchWindowAttributesChanged(attrs);
}
public void setAttributes(WindowManager.LayoutParams a) {
this.mWindowAttributes.copyFrom(a);
dispatchWindowAttributesChanged(this.mWindowAttributes);
}
public final WindowManager.LayoutParams getAttributes() {
return this.mWindowAttributes;
}
/* access modifiers changed from: protected */
public final int getForcedWindowFlags() {
return this.mForcedWindowFlags;
}
/* access modifiers changed from: protected */
public final boolean hasSoftInputMode() {
return this.mHasSoftInputMode;
}
@UnsupportedAppUsage
public void setCloseOnTouchOutside(boolean close) {
this.mCloseOnTouchOutside = close;
this.mSetCloseOnTouchOutside = true;
}
@UnsupportedAppUsage
public void setCloseOnTouchOutsideIfNotSet(boolean close) {
if (!this.mSetCloseOnTouchOutside) {
this.mCloseOnTouchOutside = close;
this.mSetCloseOnTouchOutside = true;
}
}
@UnsupportedAppUsage(maxTargetSdk = 28, trackingBug = 115609023)
public boolean shouldCloseOnTouch(Context context, MotionEvent event) {
return this.mCloseOnTouchOutside && peekDecorView() != null && ((event.getAction() == 1 && isOutOfBounds(context, event)) || event.getAction() == 4);
}
public void setSustainedPerformanceMode(boolean enable) {
setPrivateFlags(enable ? 262144 : 0, 262144);
}
private boolean isOutOfBounds(Context context, MotionEvent event) {
int x = (int) event.getX();
int y = (int) event.getY();
int slop = ViewConfiguration.get(context).getScaledWindowTouchSlop();
View decorView = getDecorView();
return x < (-slop) || y < (-slop) || x > decorView.getWidth() + slop || y > decorView.getHeight() + slop;
}
public boolean requestFeature(int featureId) {
int flag = 1 << featureId;
this.mFeatures |= flag;
int i = this.mLocalFeatures;
Window window = this.mContainer;
this.mLocalFeatures = i | (window != null ? (~window.mFeatures) & flag : flag);
if ((this.mFeatures & flag) != 0) {
return true;
}
return false;
}
/* access modifiers changed from: protected */
public void removeFeature(int featureId) {
int flag = 1 << featureId;
this.mFeatures &= ~flag;
int i = this.mLocalFeatures;
Window window = this.mContainer;
this.mLocalFeatures = i & (~(window != null ? (~window.mFeatures) & flag : flag));
}
public final void makeActive() {
Window window = this.mContainer;
if (window != null) {
Window window2 = window.mActiveChild;
if (window2 != null) {
window2.mIsActive = false;
}
this.mContainer.mActiveChild = this;
}
this.mIsActive = true;
onActive();
}
public final boolean isActive() {
return this.mIsActive;
}
public <T extends View> T findViewById(int id) {
return getDecorView().findViewById(id);
}
public final <T extends View> T requireViewById(int id) {
T view = findViewById(id);
if (view != null) {
return view;
}
throw new IllegalArgumentException("ID does not reference a View inside this Window");
}
public void setElevation(float elevation) {
}
public float getElevation() {
return 0.0f;
}
public void setClipToOutline(boolean clipToOutline) {
}
public void setBackgroundDrawableResource(int resId) {
setBackgroundDrawable(this.mContext.getDrawable(resId));
}
/* access modifiers changed from: protected */
public final int getFeatures() {
return this.mFeatures;
}
public static int getDefaultFeatures(Context context) {
int features = 0;
Resources res = context.getResources();
if (res.getBoolean(R.bool.config_defaultWindowFeatureOptionsPanel)) {
features = 0 | 1;
}
if (res.getBoolean(R.bool.config_defaultWindowFeatureContextMenu)) {
return features | 64;
}
return features;
}
public boolean hasFeature(int feature) {
return (getFeatures() & (1 << feature)) != 0;
}
/* access modifiers changed from: protected */
public final int getLocalFeatures() {
return this.mLocalFeatures;
}
/* access modifiers changed from: protected */
public void setDefaultWindowFormat(int format) {
this.mDefaultWindowFormat = format;
if (!this.mHaveWindowFormat) {
WindowManager.LayoutParams attrs = getAttributes();
attrs.format = format;
dispatchWindowAttributesChanged(attrs);
}
}
/* access modifiers changed from: protected */
public boolean haveDimAmount() {
return this.mHaveDimAmount;
}
public void setMediaController(MediaController controller) {
}
public MediaController getMediaController() {
return null;
}
public void setUiOptions(int uiOptions) {
}
public void setUiOptions(int uiOptions, int mask) {
}
public void setIcon(int resId) {
}
public void setDefaultIcon(int resId) {
}
public void setLogo(int resId) {
}
public void setDefaultLogo(int resId) {
}
public void setLocalFocus(boolean hasFocus, boolean inTouchMode) {
}
public void injectInputEvent(InputEvent event) {
}
public TransitionManager getTransitionManager() {
return null;
}
public void setTransitionManager(TransitionManager tm) {
throw new UnsupportedOperationException();
}
public Scene getContentScene() {
return null;
}
public void setEnterTransition(Transition transition) {
}
public void setReturnTransition(Transition transition) {
}
public void setExitTransition(Transition transition) {
}
public void setReenterTransition(Transition transition) {
}
public Transition getEnterTransition() {
return null;
}
public Transition getReturnTransition() {
return null;
}
public Transition getExitTransition() {
return null;
}
public Transition getReenterTransition() {
return null;
}
public void setSharedElementEnterTransition(Transition transition) {
}
public void setSharedElementReturnTransition(Transition transition) {
}
public Transition getSharedElementEnterTransition() {
return null;
}
public Transition getSharedElementReturnTransition() {
return null;
}
public void setSharedElementExitTransition(Transition transition) {
}
public void setSharedElementReenterTransition(Transition transition) {
}
public Transition getSharedElementExitTransition() {
return null;
}
public Transition getSharedElementReenterTransition() {
return null;
}
public void setAllowEnterTransitionOverlap(boolean allow) {
}
public boolean getAllowEnterTransitionOverlap() {
return true;
}
public void setAllowReturnTransitionOverlap(boolean allow) {
}
public boolean getAllowReturnTransitionOverlap() {
return true;
}
public long getTransitionBackgroundFadeDuration() {
return 0;
}
public void setTransitionBackgroundFadeDuration(long fadeDurationMillis) {
}
public boolean getSharedElementsUseOverlay() {
return true;
}
public void setSharedElementsUseOverlay(boolean sharedElementsUseOverlay) {
}
public void setNavigationBarDividerColor(int dividerColor) {
}
public int getNavigationBarDividerColor() {
return 0;
}
public void setStatusBarContrastEnforced(boolean ensureContrast) {
}
public boolean isStatusBarContrastEnforced() {
return false;
}
public void setNavigationBarContrastEnforced(boolean enforceContrast) {
}
public boolean isNavigationBarContrastEnforced() {
return false;
}
public void setSystemGestureExclusionRects(List<Rect> list) {
throw new UnsupportedOperationException("window does not support gesture exclusion rects");
}
public List<Rect> getSystemGestureExclusionRects() {
return Collections.emptyList();
}
public void setTheme(int resId) {
}
public void setOverlayWithDecorCaptionEnabled(boolean enabled) {
this.mOverlayWithDecorCaptionEnabled = enabled;
}
public boolean isOverlayWithDecorCaptionEnabled() {
return this.mOverlayWithDecorCaptionEnabled;
}
public void notifyRestrictedCaptionAreaCallback(int left, int top, int right, int bottom) {
if (this.mOnRestrictedCaptionAreaChangedListener != null) {
this.mRestrictedCaptionAreaRect.set(left, top, right, bottom);
this.mOnRestrictedCaptionAreaChangedListener.onRestrictedCaptionAreaChanged(this.mRestrictedCaptionAreaRect);
}
}
public void setCloseOnSwipeEnabled(boolean closeOnSwipeEnabled) {
this.mCloseOnSwipeEnabled = closeOnSwipeEnabled;
}
public boolean isCloseOnSwipeEnabled() {
return this.mCloseOnSwipeEnabled;
}
}
| [
"dstmath@163.com"
] | dstmath@163.com |
90b4ea7195c3e6d78260ba0e7442b0cf3466c5b5 | 986a34768a3c17c8593e465e46273326847406d1 | /java8demo/src/main/java/proxy/HelloWorldTest.java | f7957426691b38960914c36e4f9790ac8bd27dc5 | [] | no_license | yataoXu/javaLearing | f41317b3df84bb16695f32f88516560b9bb1d942 | 9dc9e71bd6a62acacf1206d777c6256e2589936e | refs/heads/master | 2020-05-08T23:59:03.134009 | 2019-05-11T15:59:33 | 2019-05-11T15:59:33 | 180,973,590 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 251 | java | package proxy;
public class HelloWorldTest {
public static void main(String[] args) {
HelloWorld helloWorld1 = new HelloWorldImpl();
HelloWorld helloWorld = new HelloWorldProxy(helloWorld1);
helloWorld.print();
}
}
| [
"xuyt1992@163.com"
] | xuyt1992@163.com |
98044535411f22e1391c16d3acbbcc29859b2c28 | 47807e8ba1be5538b8a50d21271ce043b17e5881 | /src/sort/BouleDeFeu.java | 1309f3447dc06d29b9210aa0190c4822de173ef9 | [] | no_license | QuentinRimet/Monster-Tamer | a3175983541a131a539c27107c5e3e8aafb4f1e5 | f16cdeec461bad9f4f1a200a01213f40c82182d9 | refs/heads/master | 2021-08-23T09:17:31.507490 | 2017-12-04T13:13:50 | 2017-12-04T13:13:50 | 112,533,474 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 584 | java | package sort;
import monstre.Monstre;
import type.Type;
public class BouleDeFeu extends Attaque {
public BouleDeFeu( ) {
super(Type.Feu, 15);
}
@Override
public void effet(Monstre m, Monstre e) {
double a=(m.getNiv()+this.getPuissance())*(1+(m.getAttaque()/1000.0));
a=a/(1+(e.getDefence()/1000.0));
if(e.getType().getFaiblesse()==this.getType().toString())
a=(int)(a*1.5);
if(e.getType().getForce()==this.getType().toString())
a=(int)(a*0.5);
e.prendreDegats((int)a);
}
public String toString(){
return "Boule de feu";
}
}
| [
"quentin.rimet2@etu.univ-lorraine.fr"
] | quentin.rimet2@etu.univ-lorraine.fr |
cd05cf739df9b8c7bb5962aa17fca8a9ef313a9e | 0f11b770da3ce0f346f4cd208d9999c38e34364c | /LeetCode/src/easy/ModifyMatrix.java | 343d9e5b9ae510a2d5f562520bead9982a04293c | [] | no_license | jamiedishy/LeetCode | 663a9875fa0c640c61d015755f584e49bdaa410e | f4b42f9da9cf07b18d63c737db5304754b0cd2ea | refs/heads/master | 2021-09-06T08:15:09.009408 | 2021-08-23T16:50:26 | 2021-08-23T16:50:26 | 208,603,832 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,449 | java | package easy;
import java.util.Scanner;
public class ModifyMatrix {
public static int QueryRow(int[][] M, int i) {
int sumValues = 0;
// Given matrix M, output the sum of values in row i
for (int column = 0; column < M.length; column++) {
sumValues += M[i][column];
}
return sumValues;
}
public static int QueryCol(int[][] M, int j) {
int sumValues = 0;
// Given matrix M, output the sum of the values on column j
for (int row = 0; row < M.length; row++) {
sumValues += M[row][j];
}
return sumValues;
}
public static void main(String[] args) {
int[][] M = new int[255][255];
while (true) {
Scanner input = new Scanner(System.in); // Create a Scanner object
String hold = input.nextLine();
String[] tokens = hold.split("\\s+");
String firstPart = tokens[0];
if (firstPart.equals("QueryCol")) {
System.out.println(QueryCol(M, Integer.parseInt(tokens[1])));
} else if (firstPart.equals("QueryRow")) {
System.out.println(QueryRow(M, Integer.parseInt(tokens[1])));
} else if (firstPart.equals("SetRow")) {
for (int column = 0; column < M.length; column++) {
M[Integer.parseInt(tokens[1])][column] = Integer.parseInt(tokens[2]);
}
} else if (firstPart.equals("SetCol")) {
for (int row = 0; row < M.length; row++) {
M[row][Integer.parseInt(tokens[1])] = Integer.parseInt(tokens[2]);
}
}
}
}
}
| [
"Jamie Dishy@192.168.0.17"
] | Jamie Dishy@192.168.0.17 |
f0eb325dd248572688ee0da52c3db54e8fe96f65 | 9216b83c0725cce0279e6806fd14e4d620a7c525 | /src/test/java/org/ta4j/core/indicators/perfomance_test/SMAPerformanceTest.java | f1393d7f867761f2e01f820bf6c7d9da5213ae3a | [] | no_license | damir78/ta4j-performance-test | f1e8c3fec8be9b780fb014f40c725ea6a7e529a3 | 98dfceae9e4b266c13f8120c2e72c8d30d016f8a | refs/heads/master | 2021-07-25T06:19:47.040334 | 2017-11-04T21:12:08 | 2017-11-04T21:12:08 | 109,530,140 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,663 | java | package org.ta4j.core.indicators.perfomance_test;
import org.junit.Test;
import org.ta4j.core.Decimal;
import org.ta4j.core.TimeSeries;
import org.ta4j.core.indicators.SMAIndicator;
import org.ta4j.core.indicators.helpers.ClosePriceIndicator;
public class SMAPerformanceTest {
//on mmy macbook pro mid 2014:
//average = 5
//Time elapsed: 22072
@Test
public void testIfQuickEnoughOneIteration() {
long start = System.currentTimeMillis();
int initialCapacity = 54 * 5 * 24 * 60 * 3;
double[] input = new double[initialCapacity];
for (int i = 0; i < input.length; i++) {
input[i] = 5d;
}
// just adding close price instead timestamp with close price:
// AnotherMockTimeSeries: ticks.add(new MockTick(data[i]));
//MockTimeSeries: ticks.add(new MockTick(ZonedDateTime.now().with(ChronoField.MILLI_OF_SECOND, i), data[i]));
TimeSeries timeSeries = new AnotherMockTimeSeries(input);
Decimal average = null;
for (int h = 2; h < 3; h++) {
SMAIndicator quoteSMA = new SMAIndicator(new ClosePriceIndicator(timeSeries), h);
for (int i = 0; i < timeSeries.getTickCount(); i++) {
average = quoteSMA.getValue(i);
}
}
long end = System.currentTimeMillis();
System.out.println("average = " + average);
System.out.println("Time elapsed: " + (end - start));
}
//on mmy macbook pro mid 2014:
//average = ...
//Time elapsed: infinity... ~50 min
@Test
public void testIfQuickEnoughFullIteration() {
long start = System.currentTimeMillis();
int initialCapacity = 54 * 5 * 24 * 60 * 3;
double[] input = new double[initialCapacity];
for (int i = 0; i < input.length; i++) {
input[i] = 5d;
}
// just adding close price instead timestamp with close price:
// AnotherMockTimeSeries: ticks.add(new MockTick(data[i]));
//MockTimeSeries: ticks.add(new MockTick(ZonedDateTime.now().with(ChronoField.MILLI_OF_SECOND, i), data[i]));
TimeSeries timeSeries = new AnotherMockTimeSeries(input);
Decimal average = null;
for (int h = 2; h < 201; h++) {
SMAIndicator quoteSMA = new SMAIndicator(new ClosePriceIndicator(timeSeries), h);
for (int i = 0; i < timeSeries.getTickCount(); i++) {
average = quoteSMA.getValue(i);
}
}
long end = System.currentTimeMillis();
System.out.println("average = " + average);
System.out.println("Time elapsed: " + (end - start));
}
}
| [
"damir.isanbirdin@gmail.com"
] | damir.isanbirdin@gmail.com |
56360c96286a41476032f861375e72d9ad63b199 | 85b47ab4c148891b3ebdaa64b704cb0ff097f66f | /app/src/androidTest/java/com/example/kirmi/ks1807/ExampleInstrumentedTest.java | 2c88767a506e47f7d8f15dbe5d1b3a4a40856bb0 | [] | no_license | ks1807/KS1807 | 21a190339d7a30bbf638a5cf1b25a0a09dd52ed6 | 7c60861e2978e005dd5c75e4025309c2254a15d7 | refs/heads/master | 2021-08-18T03:06:26.816472 | 2018-11-09T01:34:59 | 2018-11-09T01:34:59 | 145,635,808 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 732 | java | package com.example.kirmi.ks1807;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();
assertEquals("com.example.kirmi.ks1807", appContext.getPackageName());
}
}
| [
"kirmip108@gmail.com"
] | kirmip108@gmail.com |
6f78039661b7158ef164fc17033b1494668fd1da | 5136266b41bd3485a6f242f0b74a04ea57ce16fd | /app/src/test/java/com/example/helpfunc/ExampleUnitTest.java | 3a23201dbf21ca3f804af8b73bc3c7620d3d4106 | [] | no_license | joshuajumawan/HelpFunc | 2a94991b63c913793a94a1b5d7f77ab4f7d3ae42 | ed2ee1f8bc75f9afa2e1ff752f1bd745190aa3ad | refs/heads/master | 2020-04-22T20:33:30.785250 | 2019-02-14T07:14:36 | 2019-02-14T07:14:36 | 170,645,201 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 381 | java | package com.example.helpfunc;
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);
}
} | [
"rommeljoshua.jumawan.iics@ust.edu.ph"
] | rommeljoshua.jumawan.iics@ust.edu.ph |
c17ce78cc6a201e27a60044b4e740dc03c64c951 | 4947b13736cd1d743ab618dc4bccc61a53b216a3 | /2.JavaCore/src/com/javarush/task/task19/task1902/AdapterFileOutputStream.java | d429f40f3eaa5c7782cd2bdc58b483da82de24be | [] | no_license | egordobrovolskiy/JavaRushTasks | 399304f755c48fe3863f94803dbb29d1fb8db993 | b57ce0e5a7ce0ec51256c3a198b11636632dbce2 | refs/heads/master | 2021-07-18T12:05:00.378351 | 2017-10-25T12:13:37 | 2017-10-25T12:13:39 | 103,653,518 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 912 | java | package com.javarush.task.task19.task1902;
/*
Адаптер
Используй класс AdapterFileOutputStream, чтобы адаптировать FileOutputStream к новому интерфейсу AmigoStringWriter.
*/
import java.io.FileOutputStream;
import java.io.IOException;
public class AdapterFileOutputStream implements AmigoStringWriter {
private FileOutputStream fileOutputStream;
AdapterFileOutputStream (FileOutputStream fileOutputStream){
this.fileOutputStream = fileOutputStream;
}
public static void main(String[] args) {
}
@Override
public void flush() throws IOException {
fileOutputStream.flush();
}
@Override
public void writeString(String s) throws IOException {
fileOutputStream.write(s.getBytes());
}
@Override
public void close() throws IOException {
fileOutputStream.close();
}
}
| [
"31988202+egordobrovolskiy@users.noreply.github.com"
] | 31988202+egordobrovolskiy@users.noreply.github.com |
2b9429f46c90708f6b11802abf111163349e819a | 16db982b067cae31ef6cdebb45a43704d37fe406 | /gen/com/example/assistantxtreme/R.java | 944dc0538f97c488f4db26b0c2ebd448cd9b2a4a | [] | no_license | Ticlla/AssistantXtreme | 62ec87a138782255d055bf8a6ea3d5d571121e99 | 7563b86d53acf1dbd0839dd329d354ef1611e0ce | refs/heads/master | 2020-05-17T11:10:31.833029 | 2014-11-28T04:30:15 | 2014-11-28T04:30:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 178,773 | java | /* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package com.example.assistantxtreme;
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=0x7f060000;
public static final int abc_action_bar_expanded_action_views_exclusive=0x7f060001;
/** 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=0x7f060005;
/** 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=0x7f060004;
public static final int abc_config_showMenuShortcutsWhenKeyboardPresent=0x7f060003;
public static final int abc_split_action_bar_is_narrow=0x7f060002;
}
public static final class color {
public static final int abc_search_url_text_holo=0x7f070003;
public static final int abc_search_url_text_normal=0x7f070000;
public static final int abc_search_url_text_pressed=0x7f070002;
public static final int abc_search_url_text_selected=0x7f070001;
}
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=0x7f080002;
/** 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=0x7f080003;
/** Size of the indeterminate Progress Bar
Size of the indeterminate Progress Bar
*/
public static final int abc_action_bar_progress_bar_size=0x7f08000a;
/** Maximum height for a stacked tab bar as part of an action bar
*/
public static final int abc_action_bar_stacked_max_height=0x7f080009;
/** 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=0x7f080001;
/** 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=0x7f080007;
/** 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=0x7f080005;
/** 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=0x7f080006;
/** 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=0x7f080004;
/** 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=0x7f080008;
/** 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=0x7f080000;
/** Width of the icon in a dropdown list
*/
public static final int abc_dropdownitem_icon_width=0x7f080010;
/** Text padding for dropdown items
*/
public static final int abc_dropdownitem_text_padding_left=0x7f08000e;
public static final int abc_dropdownitem_text_padding_right=0x7f08000f;
public static final int abc_panel_menu_list_width=0x7f08000b;
/** Preferred width of the search view.
*/
public static final int abc_search_view_preferred_width=0x7f08000d;
/** 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=0x7f08000c;
/** 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=0x7f080015;
public static final int activity_vertical_margin=0x7f080016;
/** 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=0x7f080013;
/** 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=0x7f080014;
/** 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=0x7f080011;
/** 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=0x7f080012;
}
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 action_bar=0x7f05001c;
public static final int action_bar_activity_content=0x7f050015;
public static final int action_bar_container=0x7f05001b;
public static final int action_bar_overlay_layout=0x7f05001f;
public static final int action_bar_root=0x7f05001a;
public static final int action_bar_subtitle=0x7f050023;
public static final int action_bar_title=0x7f050022;
public static final int action_context_bar=0x7f05001d;
public static final int action_menu_divider=0x7f050016;
public static final int action_menu_presenter=0x7f050017;
public static final int action_mode_close_button=0x7f050024;
public static final int action_settings=0x7f05003c;
public static final int activity_chooser_view_content=0x7f050025;
public static final int always=0x7f05000b;
public static final int beginning=0x7f050011;
public static final int checkbox=0x7f05002d;
public static final int collapseActionView=0x7f05000d;
public static final int default_activity_button=0x7f050028;
public static final int dialog=0x7f05000e;
public static final int disableHome=0x7f050008;
public static final int dropdown=0x7f05000f;
public static final int edit_query=0x7f050030;
public static final int end=0x7f050013;
public static final int expand_activities_button=0x7f050026;
public static final int expanded_menu=0x7f05002c;
public static final int home=0x7f050014;
public static final int homeAsUp=0x7f050005;
public static final int icon=0x7f05002a;
public static final int ifRoom=0x7f05000a;
public static final int image=0x7f050027;
public static final int listMode=0x7f050001;
public static final int list_item=0x7f050029;
public static final int middle=0x7f050012;
public static final int never=0x7f050009;
public static final int none=0x7f050010;
public static final int normal=0x7f050000;
public static final int progress_circular=0x7f050018;
public static final int progress_horizontal=0x7f050019;
public static final int radio=0x7f05002f;
public static final int search_badge=0x7f050032;
public static final int search_bar=0x7f050031;
public static final int search_button=0x7f050033;
public static final int search_close_btn=0x7f050038;
public static final int search_edit_frame=0x7f050034;
public static final int search_go_btn=0x7f05003a;
public static final int search_mag_icon=0x7f050035;
public static final int search_plate=0x7f050036;
public static final int search_src_text=0x7f050037;
public static final int search_voice_btn=0x7f05003b;
public static final int shortcut=0x7f05002e;
public static final int showCustom=0x7f050007;
public static final int showHome=0x7f050004;
public static final int showTitle=0x7f050006;
public static final int split_action_bar=0x7f05001e;
public static final int submit_area=0x7f050039;
public static final int tabMode=0x7f050002;
public static final int title=0x7f05002b;
public static final int top_action_bar=0x7f050020;
public static final int up=0x7f050021;
public static final int useLogo=0x7f050003;
public static final int withText=0x7f05000c;
}
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=0x7f090000;
}
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 support_simple_spinner_dropdown_item=0x7f030019;
}
public static final class menu {
public static final int main=0x7f0c0000;
}
public static final class string {
/** Content description for the action bar "home" affordance. [CHAR LIMIT=NONE]
*/
public static final int abc_action_bar_home_description=0x7f0a0001;
/** 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 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 com.example.assistantxtreme:background}</code></td><td> Specifies a background drawable for the action bar.</td></tr>
<tr><td><code>{@link #ActionBar_backgroundSplit com.example.assistantxtreme:backgroundSplit}</code></td><td> Specifies a background drawable for the bottom component of a split action bar.</td></tr>
<tr><td><code>{@link #ActionBar_backgroundStacked com.example.assistantxtreme: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 com.example.assistantxtreme:customNavigationLayout}</code></td><td> Specifies a layout for custom navigation.</td></tr>
<tr><td><code>{@link #ActionBar_displayOptions com.example.assistantxtreme:displayOptions}</code></td><td> Options affecting how the action bar is displayed.</td></tr>
<tr><td><code>{@link #ActionBar_divider com.example.assistantxtreme:divider}</code></td><td> Specifies the drawable used for item dividers.</td></tr>
<tr><td><code>{@link #ActionBar_height com.example.assistantxtreme:height}</code></td><td> Specifies a fixed height.</td></tr>
<tr><td><code>{@link #ActionBar_homeLayout com.example.assistantxtreme:homeLayout}</code></td><td> Specifies a layout to use for the "home" section of the action bar.</td></tr>
<tr><td><code>{@link #ActionBar_icon com.example.assistantxtreme:icon}</code></td><td> Specifies the drawable used for the application icon.</td></tr>
<tr><td><code>{@link #ActionBar_indeterminateProgressStyle com.example.assistantxtreme:indeterminateProgressStyle}</code></td><td> Specifies a style resource to use for an indeterminate progress spinner.</td></tr>
<tr><td><code>{@link #ActionBar_itemPadding com.example.assistantxtreme:itemPadding}</code></td><td> Specifies padding that should be applied to the left and right sides of
system-provided items in the bar.</td></tr>
<tr><td><code>{@link #ActionBar_logo com.example.assistantxtreme:logo}</code></td><td> Specifies the drawable used for the application logo.</td></tr>
<tr><td><code>{@link #ActionBar_navigationMode com.example.assistantxtreme:navigationMode}</code></td><td> The type of navigation to use.</td></tr>
<tr><td><code>{@link #ActionBar_progressBarPadding com.example.assistantxtreme:progressBarPadding}</code></td><td> Specifies the horizontal padding on either end for an embedded progress bar.</td></tr>
<tr><td><code>{@link #ActionBar_progressBarStyle com.example.assistantxtreme:progressBarStyle}</code></td><td> Specifies a style resource to use for an embedded progress bar.</td></tr>
<tr><td><code>{@link #ActionBar_subtitle com.example.assistantxtreme:subtitle}</code></td><td> Specifies subtitle text used for navigationMode="normal" </td></tr>
<tr><td><code>{@link #ActionBar_subtitleTextStyle com.example.assistantxtreme:subtitleTextStyle}</code></td><td> Specifies a style to use for subtitle text.</td></tr>
<tr><td><code>{@link #ActionBar_title com.example.assistantxtreme:title}</code></td><td> Specifies title text used for navigationMode="normal" </td></tr>
<tr><td><code>{@link #ActionBar_titleTextStyle com.example.assistantxtreme: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 com.example.assistantxtreme: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 com.example.assistantxtreme: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 com.example.assistantxtreme: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 com.example.assistantxtreme: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 com.example.assistantxtreme: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 com.example.assistantxtreme: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 com.example.assistantxtreme: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 com.example.assistantxtreme: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 com.example.assistantxtreme: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 com.example.assistantxtreme: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 com.example.assistantxtreme: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 com.example.assistantxtreme: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 com.example.assistantxtreme: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 com.example.assistantxtreme: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 com.example.assistantxtreme: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 com.example.assistantxtreme: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 com.example.assistantxtreme: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 com.example.assistantxtreme:title
*/
public static final int ActionBar_title = 0;
/**
<p>
@attr description
Specifies a style to use for title text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.example.assistantxtreme: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 com.example.assistantxtreme:windowActionBar}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBarWindow_windowActionBarOverlay com.example.assistantxtreme:windowActionBarOverlay}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBarWindow_windowFixedHeightMajor com.example.assistantxtreme: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 com.example.assistantxtreme: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 com.example.assistantxtreme: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 com.example.assistantxtreme: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 com.example.assistantxtreme: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 com.example.assistantxtreme.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 com.example.assistantxtreme:windowActionBar
*/
public static final int ActionBarWindow_windowActionBar = 0;
/**
<p>This symbol is the offset where the {@link com.example.assistantxtreme.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 com.example.assistantxtreme: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 com.example.assistantxtreme: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 com.example.assistantxtreme: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 com.example.assistantxtreme: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 com.example.assistantxtreme:windowFixedWidthMinor
*/
public static final int ActionBarWindow_windowFixedWidthMinor = 5;
/**
<p>This symbol is the offset where the {@link com.example.assistantxtreme.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 com.example.assistantxtreme: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 com.example.assistantxtreme:background}</code></td><td> Specifies a background for the action mode bar.</td></tr>
<tr><td><code>{@link #ActionMode_backgroundSplit com.example.assistantxtreme:backgroundSplit}</code></td><td> Specifies a background for the split action mode bar.</td></tr>
<tr><td><code>{@link #ActionMode_height com.example.assistantxtreme:height}</code></td><td> Specifies a fixed height for the action mode bar.</td></tr>
<tr><td><code>{@link #ActionMode_subtitleTextStyle com.example.assistantxtreme:subtitleTextStyle}</code></td><td> Specifies a style to use for subtitle text.</td></tr>
<tr><td><code>{@link #ActionMode_titleTextStyle com.example.assistantxtreme: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 com.example.assistantxtreme:background
*/
public static final int ActionMode_background = 3;
/**
<p>
@attr description
Specifies a background for the split action mode bar.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This is a private symbol.
@attr name com.example.assistantxtreme: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 com.example.assistantxtreme:height
*/
public static final int ActionMode_height = 0;
/**
<p>
@attr description
Specifies a style to use for subtitle text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.example.assistantxtreme:subtitleTextStyle
*/
public static final int ActionMode_subtitleTextStyle = 2;
/**
<p>
@attr description
Specifies a style to use for title text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.example.assistantxtreme:titleTextStyle
*/
public static final int ActionMode_titleTextStyle = 1;
/** Attrbitutes for a ActivityChooserView.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ActivityChooserView_expandActivityOverflowButtonDrawable com.example.assistantxtreme:expandActivityOverflowButtonDrawable}</code></td><td> The drawable to show in the button for expanding the activities overflow popup.</td></tr>
<tr><td><code>{@link #ActivityChooserView_initialActivityCount com.example.assistantxtreme: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 com.example.assistantxtreme:expandActivityOverflowButtonDrawable
*/
public static final int ActivityChooserView_expandActivityOverflowButtonDrawable = 1;
/**
<p>
@attr description
The maximal number of items initially shown in the activity list.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.example.assistantxtreme:initialActivityCount
*/
public static final int ActivityChooserView_initialActivityCount = 0;
/** Attributes that can be used with a CompatTextView.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #CompatTextView_textAllCaps com.example.assistantxtreme: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 com.example.assistantxtreme: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 com.example.assistantxtreme:divider}</code></td><td> Drawable to use as a vertical divider between buttons.</td></tr>
<tr><td><code>{@link #LinearLayoutICS_dividerPadding com.example.assistantxtreme:dividerPadding}</code></td><td> Size of padding on either end of a divider.</td></tr>
<tr><td><code>{@link #LinearLayoutICS_showDividers com.example.assistantxtreme: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 com.example.assistantxtreme: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 com.example.assistantxtreme: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 com.example.assistantxtreme: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 com.example.assistantxtreme:actionLayout}</code></td><td> An optional layout to be used as an action view.</td></tr>
<tr><td><code>{@link #MenuItem_actionProviderClass com.example.assistantxtreme:actionProviderClass}</code></td><td> The name of an optional ActionProvider class to instantiate an action view
and perform operations such as default action for that menu item.</td></tr>
<tr><td><code>{@link #MenuItem_actionViewClass com.example.assistantxtreme:actionViewClass}</code></td><td> The name of an optional View class to instantiate and use as an
action view.</td></tr>
<tr><td><code>{@link #MenuItem_android_alphabeticShortcut android:alphabeticShortcut}</code></td><td> The alphabetic shortcut key.</td></tr>
<tr><td><code>{@link #MenuItem_android_checkable android:checkable}</code></td><td> Whether the item is capable of displaying a check mark.</td></tr>
<tr><td><code>{@link #MenuItem_android_checked android:checked}</code></td><td> Whether the item is checked.</td></tr>
<tr><td><code>{@link #MenuItem_android_enabled android:enabled}</code></td><td> Whether the item is enabled.</td></tr>
<tr><td><code>{@link #MenuItem_android_icon android:icon}</code></td><td> The icon associated with this item.</td></tr>
<tr><td><code>{@link #MenuItem_android_id android:id}</code></td><td> The ID of the item.</td></tr>
<tr><td><code>{@link #MenuItem_android_menuCategory android:menuCategory}</code></td><td> The category applied to the item.</td></tr>
<tr><td><code>{@link #MenuItem_android_numericShortcut android:numericShortcut}</code></td><td> The numeric shortcut key.</td></tr>
<tr><td><code>{@link #MenuItem_android_onClick android:onClick}</code></td><td> Name of a method on the Context used to inflate the menu that will be
called when the item is clicked.</td></tr>
<tr><td><code>{@link #MenuItem_android_orderInCategory android:orderInCategory}</code></td><td> The order within the category applied to the item.</td></tr>
<tr><td><code>{@link #MenuItem_android_title android:title}</code></td><td> The title associated with the item.</td></tr>
<tr><td><code>{@link #MenuItem_android_titleCondensed android:titleCondensed}</code></td><td> The condensed title associated with the item.</td></tr>
<tr><td><code>{@link #MenuItem_android_visible android:visible}</code></td><td> Whether the item is shown/visible.</td></tr>
<tr><td><code>{@link #MenuItem_showAsAction com.example.assistantxtreme: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 com.example.assistantxtreme:actionLayout
*/
public static final int MenuItem_actionLayout = 14;
/**
<p>
@attr description
The name of an optional ActionProvider class to instantiate an action view
and perform operations such as default action for that menu item.
See {@link android.view.MenuItem#setActionProvider(android.view.ActionProvider)}
for more info.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.example.assistantxtreme:actionProviderClass
*/
public static final int MenuItem_actionProviderClass = 16;
/**
<p>
@attr description
The name of an optional View class to instantiate and use as an
action view. See {@link android.view.MenuItem#setActionView(android.view.View)}
for more info.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.example.assistantxtreme:actionViewClass
*/
public static final int MenuItem_actionViewClass = 15;
/**
<p>
@attr description
The alphabetic shortcut key. This is the shortcut when using a keyboard
with alphabetic keys.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#alphabeticShortcut}.
@attr name android:alphabeticShortcut
*/
public static final int MenuItem_android_alphabeticShortcut = 9;
/**
<p>
@attr description
Whether the item is capable of displaying a check mark.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#checkable}.
@attr name android:checkable
*/
public static final int MenuItem_android_checkable = 11;
/**
<p>
@attr description
Whether the item is checked. Note that you must first have enabled checking with
the checkable attribute or else the check mark will not appear.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#checked}.
@attr name android:checked
*/
public static final int MenuItem_android_checked = 3;
/**
<p>
@attr description
Whether the item is enabled.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#enabled}.
@attr name android:enabled
*/
public static final int MenuItem_android_enabled = 1;
/**
<p>
@attr description
The icon associated with this item. This icon will not always be shown, so
the title should be sufficient in describing this item.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#icon}.
@attr name android:icon
*/
public static final int MenuItem_android_icon = 0;
/**
<p>
@attr description
The ID of the item.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#id}.
@attr name android:id
*/
public static final int MenuItem_android_id = 2;
/**
<p>
@attr description
The category applied to the item.
(This will be or'ed with the orderInCategory attribute.)
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#menuCategory}.
@attr name android:menuCategory
*/
public static final int MenuItem_android_menuCategory = 5;
/**
<p>
@attr description
The numeric shortcut key. This is the shortcut when using a numeric (e.g., 12-key)
keyboard.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#numericShortcut}.
@attr name android:numericShortcut
*/
public static final int MenuItem_android_numericShortcut = 10;
/**
<p>
@attr description
Name of a method on the Context used to inflate the menu that will be
called when the item is clicked.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#onClick}.
@attr name android:onClick
*/
public static final int MenuItem_android_onClick = 12;
/**
<p>
@attr description
The order within the category applied to the item.
(This will be or'ed with the category attribute.)
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#orderInCategory}.
@attr name android:orderInCategory
*/
public static final int MenuItem_android_orderInCategory = 6;
/**
<p>
@attr description
The title associated with the item.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#title}.
@attr name android:title
*/
public static final int MenuItem_android_title = 7;
/**
<p>
@attr description
The condensed title associated with the item. This is used in situations where the
normal title may be too long to be displayed.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#titleCondensed}.
@attr name android:titleCondensed
*/
public static final int MenuItem_android_titleCondensed = 8;
/**
<p>
@attr description
Whether the item is shown/visible.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#visible}.
@attr name android:visible
*/
public static final int MenuItem_android_visible = 4;
/**
<p>
@attr description
How this item should display in the Action Bar, if present.
<p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>never</code></td><td>0</td><td> Never show this item in an action bar, show it in the overflow menu instead.
Mutually exclusive with "ifRoom" and "always". </td></tr>
<tr><td><code>ifRoom</code></td><td>1</td><td> Show this item in an action bar if there is room for it as determined
by the system. Favor this option over "always" where possible.
Mutually exclusive with "never" and "always". </td></tr>
<tr><td><code>always</code></td><td>2</td><td> Always show this item in an actionbar, even if it would override
the system's limits of how much stuff to put there. This may make
your action bar look bad on some screens. In most cases you should
use "ifRoom" instead. Mutually exclusive with "ifRoom" and "never". </td></tr>
<tr><td><code>withText</code></td><td>4</td><td> When this item is shown as an action in the action bar, show a text
label with it even if it has an icon representation. </td></tr>
<tr><td><code>collapseActionView</code></td><td>8</td><td> This item's action view collapses to a normal menu
item. When expanded, the action view takes over a
larger segment of its container. </td></tr>
</table>
<p>This is a private symbol.
@attr name com.example.assistantxtreme: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, 0x01010438
};
/**
<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 com.example.assistantxtreme:iconifiedByDefault}</code></td><td> The default state of the SearchView.</td></tr>
<tr><td><code>{@link #SearchView_queryHint com.example.assistantxtreme: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 com.example.assistantxtreme: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 com.example.assistantxtreme: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 com.example.assistantxtreme:disableChildrenWhenDisabled}</code></td><td> Whether this spinner should mark child views as enabled/disabled when
the spinner itself is enabled/disabled.</td></tr>
<tr><td><code>{@link #Spinner_popupPromptView com.example.assistantxtreme:popupPromptView}</code></td><td> Reference to a layout to use for displaying a prompt in the dropdown for
spinnerMode="dropdown".</td></tr>
<tr><td><code>{@link #Spinner_prompt com.example.assistantxtreme:prompt}</code></td><td> The prompt to display when the spinner's dialog is shown.</td></tr>
<tr><td><code>{@link #Spinner_spinnerMode com.example.assistantxtreme: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 com.example.assistantxtreme: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 com.example.assistantxtreme: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 com.example.assistantxtreme: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 com.example.assistantxtreme: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 com.example.assistantxtreme:actionDropDownStyle}</code></td><td> Default ActionBar dropdown style.</td></tr>
<tr><td><code>{@link #Theme_dropdownListPreferredItemHeight com.example.assistantxtreme:dropdownListPreferredItemHeight}</code></td><td> The preferred item height for dropdown lists.</td></tr>
<tr><td><code>{@link #Theme_listChoiceBackgroundIndicator com.example.assistantxtreme:listChoiceBackgroundIndicator}</code></td><td> Drawable used as a background for selected list items.</td></tr>
<tr><td><code>{@link #Theme_panelMenuListTheme com.example.assistantxtreme:panelMenuListTheme}</code></td><td> Default Panel Menu style.</td></tr>
<tr><td><code>{@link #Theme_panelMenuListWidth com.example.assistantxtreme:panelMenuListWidth}</code></td><td> Default Panel Menu width.</td></tr>
<tr><td><code>{@link #Theme_popupMenuStyle com.example.assistantxtreme: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 com.example.assistantxtreme: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 com.example.assistantxtreme: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 com.example.assistantxtreme: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 com.example.assistantxtreme: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 com.example.assistantxtreme: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 com.example.assistantxtreme: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 com.example.assistantxtreme:paddingEnd}</code></td><td> Sets the padding, in pixels, of the end edge; see {@link android.R.attr#padding}.</td></tr>
<tr><td><code>{@link #View_paddingStart com.example.assistantxtreme: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 com.example.assistantxtreme:paddingEnd
*/
public static final int View_paddingEnd = 2;
/**
<p>
@attr description
Sets the padding, in pixels, of the start edge; see {@link android.R.attr#padding}.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.example.assistantxtreme:paddingStart
*/
public static final int View_paddingStart = 1;
};
}
| [
"alcides.ticlla@gmail.com"
] | alcides.ticlla@gmail.com |
589a2625c55bca08bcbb06a6784fd12c9344ddb5 | f157ecb6b5f5dc59504babd1ba87f0e46a5c0667 | /Week_08/G20200343030465/LeetCode_115_465.java | c2d46dd15676d84f590209adbf4dd8aba207ed61 | [] | no_license | algorithm006-class01/algorithm006-class01 | 891da256a54640cf1820db93380f4253f6aacecd | 7ad9b948f8deecf35dced38a62913e462e699b1c | refs/heads/master | 2020-12-27T14:43:13.449713 | 2020-04-20T06:56:33 | 2020-04-20T06:56:33 | 237,936,958 | 19 | 140 | null | 2020-04-20T06:56:34 | 2020-02-03T10:13:53 | Java | UTF-8 | Java | false | false | 188 | java | class Solution {
public String reverseWords(String s) {
String[] words = s.trim().split(" +");
Collections.reverse(Arrays.asList(words));
return String.join(" ", words);
}
} | [
"876621152@qq.com"
] | 876621152@qq.com |
94ae8985be8ba006b53bcfb86cf78e2a0df14945 | 15c610b85f432551959f961f715aee77de34105d | /src/com/example/jimbrayhackwebview/MainActivity.java | 413f150e07f74a8d95138c033d8e7095abc5b06c | [] | no_license | jimbray/JimbrayHackWebView | bdfdaca4f78cd56854abac85411821937766ad68 | c4ded893de06990c6e8eb2a54a27ead21a52bde3 | refs/heads/master | 2016-08-05T04:57:48.126413 | 2014-02-03T13:52:59 | 2014-02-03T13:52:59 | null | 0 | 0 | null | null | null | null | GB18030 | Java | false | false | 2,578 | java | package com.example.jimbrayhackwebview;
import android.app.Activity;
import android.content.Context;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.view.Menu;
import android.webkit.JavascriptInterface;
import android.webkit.JsResult;
import android.webkit.WebChromeClient;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.Toast;
public class MainActivity extends Activity {
private WebView mWebView;
private JimbrayWebClient mWebViewClient;
private WebSettings mWebSettings;
private String jsStr = "javascript:getvalbyid()";
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
findViews();
init();
mWebView.loadUrl("file:///android_asset/index.html");
}
private void findViews() {
mWebView = (WebView) findViewById(R.id.webview);
}
private void init() {
mWebViewClient = new JimbrayWebClient();
mWebSettings = mWebView.getSettings();
mWebView.setWebViewClient(mWebViewClient);
mWebView.setWebChromeClient(new WebChromeClient() {
@Override
public boolean onJsAlert(WebView view, String url, String message,
JsResult result) {
// TODO Auto-generated method stub
return super.onJsAlert(view, url, message, result);
}
});
mWebSettings.setJavaScriptEnabled(true);
mWebView.addJavascriptInterface(new WebAppInterface(this), "Jimbray");
}
private class JimbrayWebClient extends WebViewClient {
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
view.loadUrl(url);
return true;
}
@Override
public void onPageStarted(WebView view, String url, Bitmap favicon) {
// TODO Auto-generated method stub
super.onPageStarted(view, url, favicon);
//在这里注入Js
mWebView.loadUrl("http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js");
mWebView.loadUrl(jsStr);
}
}
public class WebAppInterface {
Context mContext;
/** Instantiate the interface and set the context */
WebAppInterface(Context c)
{
mContext = c;
}
/** Show a toast from the web page */
// 如果target 大于等于API 17,则需要加上如下注解
@JavascriptInterface
public void showToast(String toast)
{
// Toast.makeText(mContext, toast, Toast.LENGTH_SHORT).show();
Toast.makeText(mContext, toast, Toast.LENGTH_LONG).show();
}
}
}
| [
"jimbray16@gmail.com"
] | jimbray16@gmail.com |
612842ce3122618d359c6e712d97eaadd7fb83fe | 1015b0046a34ff9673892dc598f3aa580bde5cb8 | /src/org/dimigo/abstractclass/BenzEngine.java | 1dd2810f7e4eca875687562ff3005121a87c794d | [] | no_license | RingOnLeftHand/JavaClass | 02e9ddb3b05b8aa42eeef5f77df77e98895ff35e | 98815e3d078a5111399efe4aec2dad7a9d5a012b | refs/heads/master | 2020-06-18T13:58:44.999107 | 2019-07-11T05:28:31 | 2019-07-11T05:28:31 | 196,325,441 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 281 | java | package org.dimigo.abstractclass;
public class BenzEngine extends Engine{
@Override
public void startEngine() {
System.out.println("Benz 엔진 가동");
}
@Override
public void stopEngine() {
System.out.println("Benz 엔진 멈춤");
}
}
| [
"jangsunghuck@naver.com"
] | jangsunghuck@naver.com |
16f7969edbe347a9af839c65856a8fc69c44cf77 | 428dc6e4451027cfee24736fa67d2c303a57e22a | /.history/lab0_20190403090516.java | 0b8bb847a2e69ee33dd0b5f6fdf2f27d28f6c324 | [] | no_license | CarterMoody/CSC349Lab0 | bbce67a71644d2b37df57984296240fdd5589372 | 5c6848957e09aafae32e93ac88914fb07520cd0c | refs/heads/master | 2020-05-04T17:33:02.625165 | 2019-04-05T15:44:07 | 2019-04-05T15:44:07 | 179,315,686 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 3,604 | java | /* I/O Libraries */
import java.io.*;
import java.util.Scanner;
import java.util.Formatter;
class algorithms{
public static void linearAlgorithm(long n){
long startTimeLinear = System.nanoTime();
long endTimeLinear = 0;
long runTime;
long someVariable;
for(long x = 1; x < n; x++){
someVariable = 1;
}
endTimeLinear = System.nanoTime();
runTime = (endTimeLinear-startTimeLinear) / 1000000;
System.out.println("RunTimeLinear: " + (runTime));
}
public static void quadraticAlgorithm(long n){
long startTimeQuadratic = System.nanoTime();
long endTimeQuadratic = 0;
long runTime;
long someVariable;
for(long i = 1; i < n; i++){
for(long j = 1; j < n; j++)
someVariable = 1;
}
endTimeQuadratic = System.nanoTime();
runTime = (endTimeQuadratic-startTimeQuadratic) / 1000000;
System.out.println("RunTimeQuadratic:" + runTime);
}
public static void cubicAlgorithm(long n){
long startTimeCubic = System.nanoTime();
long endTimeCubic = 0;
long runTime;
long someVariable;
for(long i = 1; i < n; i++)
for(long j = 1; j < n; j++)
for(long k = 1; k< n; k++)
someVariable = 1;
endTimeCubic = System.nanoTime();
runTime = (endTimeCubic-startTimeCubic) / 1000000;
System.out.println("RunTimeCubic:" + runTime);
}
public static void logarithmicAlgorithm(long n){
long startTimeLog = System.nanoTime();
long endTimeLog = 0;
long i = n;
long runTime;
long someVariable;
while(i!=1){
someVariabe =1 ;
i = i/2;
}
endTimeLog = System.nanoTime();
runTime = (endTimeLog-startTimeLog) / 1000000;
System.out.print("RunTimeLogN:");
System.out.println(runTime);
}
public static void NlogNAlgorithm(long n){
long startTimeNlog = System.nanoTime();
long endTimeNlog = 0;
long j = n;
long runTime;
long someVariable;
for(long i = 1; i < n; i++)
j = n;
while(j!=1){
j = j/2;
someVariable = 1;
}
endTimeNlog = System.nanoTime();
//System.out.println("StartTime: " + System.nanoTime());
//System.out.println("EndTime: " + System.nanoTime());
runTime = (endTimeNlog-startTimeNlog) / 1000000;
System.out.println("RunTimeNlogN:" + (runTime));
}
}
class RunTimes{
public long i;
public long j;
public long k;
public static void main(String args[]) throws IOException, IllegalArgumentException {
Scanner sc = new Scanner(System.in);
System.out.print("Enter N Value: ");
String userInput = sc.nextLine();
long n; // user input option
/* loop until quit */
while ((n = userInput.charAt(0)) != 'q') {
//System.out.println("Running with N: ");
algorithms.linearAlgorithm(n);
algorithms.quadraticAlgorithm(n);
algorithms.cubicAlgorithm(n);
algorithms.logarithmicAlgorithm(n);
algorithms.NlogNAlgorithm(n);
//printRunTimes();
System.out.print("Enter N Value: ");
userInput = sc.nextLine();
}
sc.close();
System.exit(0);
}
} | [
"Cartman2490@gmail.com"
] | Cartman2490@gmail.com |
26df52302cf583c097dfab76737db8a709f31c4a | b351f3fa2a739e7bafefb5ad7abb5fe612bb0d1b | /applicationtest/src/androidTest/java/com/example/applicationtest/ExampleInstrumentedTest.java | 36e2e2301f781514dfa2935a32c239b6850156a4 | [] | no_license | wjnon/ShiXun | b13bab9c47c992e801ea20f60b1ff986f69cda28 | a843565da5309694007061f97f4455f022f0eec8 | refs/heads/master | 2020-04-29T07:09:09.857957 | 2019-03-16T07:35:03 | 2019-03-16T07:35:03 | 174,664,255 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 738 | java | package com.example.applicationtest;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();
assertEquals("com.example.applicationtest", appContext.getPackageName());
}
}
| [
"397272087@qq.com"
] | 397272087@qq.com |
59b2e85d160cb1371caefdc1195b0e4523f5510b | da9e57fa9472869a09abeb7a6a381cf86d4878ba | /src/plugin/quest/restlessghost/RestlessGhost.java | a65454d8e3cf753003a9d6f036a9fce6c8e7ef73 | [] | no_license | ModGallus/Server | f617b45a9e71f5fc1c04e6ab82fd7579c856ccaa | 38bd2219cfda82936b5249932c0c4465d02c2b65 | refs/heads/master | 2021-01-11T15:21:20.792638 | 2017-01-29T09:58:40 | 2017-01-29T09:58:40 | 80,338,829 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 6,766 | java | package plugin.quest.restlessghost;
import org.areillan.game.content.skill.Skills;
import org.areillan.game.node.entity.player.Player;
import org.areillan.game.node.entity.player.link.quest.Quest;
import org.areillan.game.node.item.Item;
import org.areillan.plugin.PluginManager;
/**
* Represents the restless ghost quest.
* @author Vexia
*
*/
public class RestlessGhost extends Quest {
/**
* The ghost speak amulet.
*/
public static final Item AMULET = new Item(552);
/**
* Constructs a new {@Code RestlessGhost} {@Code Object}
*/
public RestlessGhost() {
super("The Restless Ghost", 25, 24, 1, 107, 0, 4, 5);
}
@Override
public Quest newInstance(Object object) {
PluginManager.definePlugin(new OldCronDialogue());
return this;
}
@Override
public void drawJournal(Player player, int stage) {
super.drawJournal(player, stage);
if (stage == 0) {
player.getPacketDispatch().sendString("<col=08088A>I can start this quest by speaking to <col=8A0808>Father Aereck</col> <col=08088A>in the", 275, 4+ 7);
player.getPacketDispatch().sendString("<col=8A0808>church</col> <col=08088A>next to <col=8A0808>Lumbridge Castle.<col=8A0808>", 275, 5+ 7);
player.getPacketDispatch().sendString("<col=08088A>I must be unafraid of a <col=8A0808>Level 13 Skeleton ", 275, 6+ 7);
}
if (stage == 10) {
player.getPacketDispatch().sendString("<str>Father Aereck asked me to help him deal with the Ghost in", 275, 4+ 7);
player.getPacketDispatch().sendString("<str>the graveyard next to the church.", 275, 5+ 7);
player.getPacketDispatch().sendString("<col=08088A>I should find <col=8A0808>Father Urhney</col><col=08088A> who is an expert on </col><col=8A0808>ghosts.</col> ", 275, 6+ 7);
player.getPacketDispatch().sendString("<col=08088A>He lives in a <col=8A0808>shack</col><col=08088A> in <col=8A0808>Lumbridge Swamp.", 275, 7+ 7);
}
if (stage == 20) {
player.getPacketDispatch().sendString("<str>Father Aereck asked me to help him deal with the Ghost in", 275, 4+ 7);
player.getPacketDispatch().sendString("<str>the graveyard next to the church.", 275, 5+ 7);
player.getPacketDispatch().sendString("<str>I should find Father Urhney who is an expert on ghosts.</str> ", 275, 6+ 7);
player.getPacketDispatch().sendString("<str>He lives in a shack in Lumbridge Swamp.</str>", 275, 7+ 7);
player.getPacketDispatch().sendString("<col=08088A>I should talk to the</col> <col=8A0808>Ghost</col> <col=08088A>to find out why it is haunting the", 275, 8+ 7);
player.getPacketDispatch().sendString("<col=8A0808>graveyard crypt", 275, 9+ 7);
}
if (stage == 30) {
player.getPacketDispatch().sendString("<str>Father Aereck asked me to help him deal with the Ghost in", 275, 4+ 7);
player.getPacketDispatch().sendString("<str>the graveyard next to the church.", 275, 5+ 7);
player.getPacketDispatch().sendString("<str>I found Father Urhney in the swamp south of Lumbridge.He</str> ", 275, 6+ 7);
player.getPacketDispatch().sendString("<str>gave me an Amulet of Ghostspeak to talk to the ghost.</str>", 275, 7+ 7);
player.getPacketDispatch().sendString("<str>I spoke to the Ghost and he told me he could not rest in</str>", 275, 8+ 7);
player.getPacketDispatch().sendString("<str>peace because an evil wizard had stolen his skull.</str>", 275, 9+ 7);
player.getPacketDispatch().sendString("<col=08088A>I should go and search the <col=8A0808>Wizard's Tower South West of", 275, 10+ 7);
player.getPacketDispatch().sendString("<col=8A0808>Lumbridge</col> <col=08088A>for the <col=8A0808>Ghost's Skull.", 275, 11+ 7);
}
if (stage == 40) {
player.getPacketDispatch().sendString("<str>Father Aereck asked me to help him deal with the Ghost in", 275, 4+ 7);
player.getPacketDispatch().sendString("<str>the graveyard next to the church.", 275, 5+ 7);
player.getPacketDispatch().sendString("<str>I found Father Urhney in the swamp south of Lumbridge.He</str> ", 275, 6+ 7);
player.getPacketDispatch().sendString("<str>gave me an Amulet of Ghostspeak to talk to the ghost.</str>", 275, 7+ 7);
player.getPacketDispatch().sendString("<str>I spoke to the Ghost and he told me he could not rest in</str>", 275, 8+ 7);
player.getPacketDispatch().sendString("<str>peace because an evil wizard had stolen his skull.</str>", 275, 9+ 7);
player.getPacketDispatch().sendString("<str>I found the Ghost's Skull in the basement of the Wizards'", 275, 10+ 7);
player.getPacketDispatch().sendString("<str>Tower. It was guarded by a skeleton, but I took it anyways.</str>", 275, 11+ 7);
player.getPacketDispatch().sendString("<col=08088A>I should take the <col=8A0808>Skull</col> <col=08088A>back to the <col=8A0808>Ghost</col> <col=08088A>so it can rest.", 275, 12+ 7);
}
if (stage == 100) {
player.getPacketDispatch().sendString("<str>Father Aereck asked me to help him deal with the Ghost in", 275, 4+ 7);
player.getPacketDispatch().sendString("<str>the graveyard next to the church.", 275, 5+ 7);
player.getPacketDispatch().sendString("<str>I found Father Urhney in the swamp south of Lumbridge.He</str> ", 275, 6+ 7);
player.getPacketDispatch().sendString("<str>gave me an Amulet of Ghostspeak to talk to the ghost.</str>", 275, 7+ 7);
player.getPacketDispatch().sendString("<str>I spoke to the Ghost and he told me he could not rest in</str>", 275, 8+ 7);
player.getPacketDispatch().sendString("<str>peace because an evil wizard had stolen his skull.</str>", 275, 9+ 7);
player.getPacketDispatch().sendString("<str>I found the Ghost's Skull in the basement of the Wizards'", 275, 10+ 7);
player.getPacketDispatch().sendString("<str>Tower. It was guarded by a skeleton, but I took it anyways.</str>", 275, 11+ 7);
player.getPacketDispatch().sendString("<str>I placed the Skull in the Ghost's coffin, and allowed it to", 275, 12+ 7);
player.getPacketDispatch().sendString("<str>rest in peace once more, with gratitude for my help.", 275, 13+ 7);
player.getPacketDispatch().sendString("<col=FF0000>QUEST COMPLETE!", 275, 16+ 7);
}
}
@Override
public void finish(Player player) {
super.finish(player);
player.getPacketDispatch().sendString("1 Quest Point", 277, 8 + 2);
player.getPacketDispatch().sendString("1125 Prayer XP", 277, 9 + 2);
player.getPacketDispatch().sendItemZoomOnInterface(964, 240, 277, 3 + 2);
player.getSkills().addExperience(Skills.PRAYER, 1125);
player.getInterfaceManager().closeChatbox();
player.getPacketDispatch().sendString("You have completed The Restless Ghost Quest!", 277, 2 + 2);
player.getConfigManager().set(728, 31, true);
player.getPacketDispatch().sendMessage("Congratulations! Quest complete!");
player.getGameAttributes().removeAttribute("restless-ghost:urhney");
}
}
| [
"theofficialgallus@gmail.com"
] | theofficialgallus@gmail.com |
4f9d9bc06543c1df0c14753965a0509c4987d4ae | 3aecb9d15caedfd51837dbd586de0bd5b254aade | /webStudy04_Mybatis/src/main/java/kr/or/ddit/prod/dao/IOtherDAO.java | 638e650ed1c5569a56977fab9ceafe114417f3ce | [] | no_license | leelaehoon/svn | e2991ea49c512a78a26d5a4eb49c7598df762bda | 7cdf8d7df691a914e7a7f96843b828bca34ca0cb | refs/heads/master | 2020-04-07T23:21:20.746846 | 2018-12-13T12:21:19 | 2018-12-13T12:21:19 | 158,809,025 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 521 | java | package kr.or.ddit.prod.dao;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Param;
import kr.or.ddit.vo.BuyerVO;
public interface IOtherDAO {
/**
* 상품 카테고리 조회
* @return key : 상품코드, value : 상품명
*/
public Map<String, Map<String, String>> selectLprodList();
/**
* 특정 상품분류에 해당하는 거래처 목록 조회
* @param buyer_lgu
* @return
*/
public List<BuyerVO> selectBuyerList(@Param("buyer_lgu") String buyer_lgu);
}
| [
"aginor2816@gmail.com"
] | aginor2816@gmail.com |
798a1e83d2280bbaf4f5f1990fa14feff8e256e1 | a1826c2ed9c12cfc395fb1a14c1a2e1f097155cb | /aligenie-ip_1_0/src/main/java/com/aliyun/aligenieip_1_0/models/QueryRoomControlDevicesRequest.java | 37a9e23e98ce90dfba4e525d47f56a7c926b1cae | [
"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 | 924 | java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.aligenieip_1_0.models;
import com.aliyun.tea.*;
public class QueryRoomControlDevicesRequest extends TeaModel {
@NameInMap("HotelId")
public String hotelId;
@NameInMap("RoomNo")
public String roomNo;
public static QueryRoomControlDevicesRequest build(java.util.Map<String, ?> map) throws Exception {
QueryRoomControlDevicesRequest self = new QueryRoomControlDevicesRequest();
return TeaModel.build(map, self);
}
public QueryRoomControlDevicesRequest setHotelId(String hotelId) {
this.hotelId = hotelId;
return this;
}
public String getHotelId() {
return this.hotelId;
}
public QueryRoomControlDevicesRequest setRoomNo(String roomNo) {
this.roomNo = roomNo;
return this;
}
public String getRoomNo() {
return this.roomNo;
}
}
| [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
9695709bc1278033bfe01127413772d2435bc062 | 8d515eb84f719b1afdc44b9486bb322df5b67a06 | /spi-storage-jpa/src/main/java/io/boodskap/iot/model/jpa/OfflineStreamSession.java | 2d38d4af4152c84e0bbccc779e481bbe85058259 | [
"Apache-2.0"
] | permissive | BoodskapPlatform/platform | c9d7245df8ad2356b3bca2c7fecf2163eb09a811 | 13d4ebf40788ff5aa5da8673dd6ed5b17904247a | refs/heads/master | 2023-01-07T11:57:03.816841 | 2021-06-04T03:38:51 | 2021-06-04T03:38:51 | 265,470,566 | 0 | 0 | Apache-2.0 | 2023-01-02T22:13:28 | 2020-05-20T06:24:09 | Java | UTF-8 | Java | false | false | 1,686 | java | package io.boodskap.iot.model.jpa;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;
import io.boodskap.iot.model.IOfflineStreamSession;
@Entity
@Table(name="offlinestreamsession")
public class OfflineStreamSession extends AbstractModel implements IOfflineStreamSession{
private static final long serialVersionUID = 7582376599201681814L;
@EmbeddedId
private OfflineStreamSessionId id = new OfflineStreamSessionId();
public OfflineStreamSession() {
}
public OfflineStreamSession(OfflineStreamSessionId id) {
this.id = id;
}
public String getDomainKey() {
return id.getDomainKey();
}
public void setDomainKey(String domainKey) {
id.setDomainKey(domainKey);
}
public String getDeviceId() {
return id.getDeviceId();
}
public void setDeviceId(String deviceId) {
id.setDeviceId(deviceId);
}
public String getSession() {
return id.getSession();
}
public void setSession(String session) {
id.setSession(session);
}
public String getCamera() {
return id.getCamera();
}
public void setCamera(String camera) {
id.setCamera(camera);
}
@Override
public int hashCode() {
final int prime = 31;
int result = super.hashCode();
result = prime * result + ((id == null) ? 0 : id.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (!super.equals(obj))
return false;
if (getClass() != obj.getClass())
return false;
OfflineStreamSession other = (OfflineStreamSession) obj;
if (id == null) {
if (other.id != null)
return false;
} else if (!id.equals(other.id))
return false;
return true;
}
}
| [
"jvincent@boodskap.io"
] | jvincent@boodskap.io |
0a0fe880d14e386335e84f523d42d4f45e71f8da | b905fbc16a3e4c1765ce4b4eb270d017e6b4b5d2 | /HRMS/TMS-Domain/src/main/java/com/csipl/tms/dto/attendancelog/AttendanceLogSearchDTO.java | cc446fca7f9db1d38147017877aea8f262466c98 | [] | no_license | ravindra2017bangalore/FabHR | 76ed00741be81b6219b565bb38c4c4a68a364dc1 | c77e5d4c99d5e9bdb042efea5e30fa25e7e0561e | refs/heads/master | 2021-07-03T22:56:55.877324 | 2019-03-11T15:13:02 | 2019-03-11T15:13:02 | 175,022,830 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,667 | java | package com.csipl.tms.dto.attendancelog;
import java.util.Date;
import com.csipl.tms.dto.common.SearchDTO;
public class AttendanceLogSearchDTO extends SearchDTO {
private String employeeName;
private Long departmentId;
private Long designationId;
private String employeeCode;
private String status;
private Long companyId;
private String attendanceTitle;
public String getAttendanceTitle() {
return attendanceTitle;
}
public void setAttendanceTitle(String attendanceTitle) {
this.attendanceTitle = attendanceTitle;
}
private Date attendanceDate;
public String getEmployeeName() {
return employeeName;
}
public void setEmployeeName(String employeeName) {
this.employeeName = employeeName;
}
public String getEmployeeCode() {
return employeeCode;
}
public void setEmployeeCode(String employeeCode) {
this.employeeCode = employeeCode;
}
public Long getCompanyId() {
return companyId;
}
public void setCompanyId(Long companyId) {
this.companyId = companyId;
}
public Long getDepartmentId() {
return departmentId;
}
public void setDepartmentId(Long departmentId) {
this.departmentId = departmentId;
}
public Long getDesignationId() {
return designationId;
}
public void setDesignationId(Long designationId) {
this.designationId = designationId;
}
public Date getAttendanceDate() {
return attendanceDate;
}
public void setAttendanceDate(Date attendanceDate) {
this.attendanceDate = attendanceDate;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
}
| [
"parihar.ravindrasingh@gmail.com"
] | parihar.ravindrasingh@gmail.com |
7c58e4ed5aeb24657f4c369b62027e85128cc476 | ab14a6d0270bbdb567b0de714705d77f62d40caf | /bin/custom/training/trainingstorefront/web/src/com/hybris/training/storefront/filters/UrlEncoderFilter.java | c7cb4c3c8b8e42ec9e4be075efc748e7b7b15bc8 | [
"Unlicense"
] | permissive | sandeepvalapi/Hybris | 5acfe524b0d2f7a33e1b566b8fc492331eb8a845 | 927d38b76d64fc0199b0626878500c81bd62129d | refs/heads/master | 2021-08-06T10:45:48.423967 | 2020-04-04T09:54:28 | 2020-04-04T09:54:28 | 125,392,092 | 5 | 1 | Unlicense | 2021-04-23T19:37:06 | 2018-03-15T15:59:15 | Java | UTF-8 | Java | false | false | 3,886 | java | /*
* Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved.
*/
package com.hybris.training.storefront.filters;
import de.hybris.platform.acceleratorfacades.urlencoder.UrlEncoderFacade;
import de.hybris.platform.acceleratorfacades.urlencoder.data.UrlEncoderData;
import de.hybris.platform.acceleratorstorefrontcommons.constants.WebConstants;
import de.hybris.platform.servicelayer.session.SessionService;
import com.hybris.training.storefront.web.wrappers.UrlEncodeHttpRequestWrapper;
import java.io.IOException;
import java.util.List;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.lang.StringUtils;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Required;
import org.springframework.web.filter.OncePerRequestFilter;
/**
* This filter inspects the url and inject the url attributes if any for that CMSSite. Calls facades to fetch the list
* of attributes and encode them in the URL.
*/
public class UrlEncoderFilter extends OncePerRequestFilter
{
private static final Logger LOG = Logger.getLogger(UrlEncoderFilter.class.getName());
private UrlEncoderFacade urlEncoderFacade;
private SessionService sessionService;
@Override
protected void doFilterInternal(final HttpServletRequest request, final HttpServletResponse response,
final FilterChain filterChain) throws ServletException, IOException
{
if (LOG.isDebugEnabled())
{
LOG.debug(" The incoming URL : [" + request.getRequestURL().toString() + "]");
}
final List<UrlEncoderData> currentUrlEncoderDatas = getUrlEncoderFacade().getCurrentUrlEncodingData();
if (currentUrlEncoderDatas != null && !currentUrlEncoderDatas.isEmpty())
{
final String currentPattern = getSessionService().getAttribute(WebConstants.URL_ENCODING_ATTRIBUTES);
final String newPattern = getUrlEncoderFacade().calculateAndUpdateUrlEncodingData(request.getRequestURI().toString(),
request.getContextPath());
final String newPatternWithSlash = "/" + newPattern;
if (!StringUtils.equalsIgnoreCase(currentPattern, newPatternWithSlash))
{
getUrlEncoderFacade().updateSiteFromUrlEncodingData();
getSessionService().setAttribute(WebConstants.URL_ENCODING_ATTRIBUTES, newPatternWithSlash);
}
final UrlEncodeHttpRequestWrapper wrappedRequest = new UrlEncodeHttpRequestWrapper(request, newPattern);
wrappedRequest.setAttribute(WebConstants.URL_ENCODING_ATTRIBUTES, newPatternWithSlash);
wrappedRequest.setAttribute("originalContextPath",
StringUtils.isBlank(request.getContextPath()) ? "/" : request.getContextPath());
if (LOG.isDebugEnabled())
{
LOG.debug("ContextPath=[" + wrappedRequest.getContextPath() + "]" + " Servlet Path= ["
+ wrappedRequest.getServletPath() + "]" + " Request Url= [" + wrappedRequest.getRequestURL() + "]");
}
filterChain.doFilter(wrappedRequest, response);
}
else
{
if (LOG.isDebugEnabled())
{
LOG.debug(" No URL attributes defined");
}
request.setAttribute("originalContextPath",
StringUtils.isBlank(request.getContextPath()) ? "/" : request.getContextPath());
request.setAttribute(WebConstants.URL_ENCODING_ATTRIBUTES, "");
filterChain.doFilter(request, response);
}
}
protected UrlEncoderFacade getUrlEncoderFacade()
{
return urlEncoderFacade;
}
@Required
public void setUrlEncoderFacade(final UrlEncoderFacade urlEncoderFacade)
{
this.urlEncoderFacade = urlEncoderFacade;
}
protected SessionService getSessionService()
{
return sessionService;
}
@Required
public void setSessionService(final SessionService sessionService)
{
this.sessionService = sessionService;
}
}
| [
"sandeepvalapi@gmail.com"
] | sandeepvalapi@gmail.com |
2f87159d19936ff201aa306d5ac1bdae15654987 | cd4dba9135bce6d46151c84675f4ea2e38806624 | /src/main/java/com/company/subdomain/resilience/refapp/model/MockDataServiceResponse.java | 088695ed1723c197420b6256db57c152ad6fc2fa | [] | no_license | ldomb/chaos-engineering-reference-application | 5e990eaa9e15683824e3b4ee96f426ead4f7f378 | e76c6e2568ffdc0e394cb3d553685a185a40c78e | refs/heads/master | 2023-07-05T08:27:51.552859 | 2020-06-05T00:38:32 | 2020-06-05T00:38:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 314 | java | package com.company.subdomain.resilience.refapp.model;
import lombok.Data;
import java.util.List;
@Data
public class MockDataServiceResponse {
/**
* Hosted region of the service
*/
private String hostedRegion;
/**
* List of mock offerings
*/
private List<Offering> data;
}
| [
"thash06@gmail.com"
] | thash06@gmail.com |
92a699deceb463b4be90579490dd97ee4990193f | dfa51b080f7eb4a6fb2dd9e963e98d7cd1762025 | /app/build/generated/not_namespaced_r_class_sources/debug/processDebugResources/r/android/support/v7/viewpager/R.java | 5d13049e7bb3a22e6d88b10944955812f504a277 | [] | no_license | cmeng2/BookSwap | 392604666df64ad56af20a28e50f5538a3df9b1a | c110de87ea4b74496cffa3963593f733d363fc0a | refs/heads/master | 2020-04-21T11:05:45.595137 | 2019-03-15T07:27:21 | 2019-03-15T07:27:21 | 169,509,625 | 0 | 0 | null | 2019-02-07T02:40:42 | 2019-02-07T02:40:42 | null | UTF-8 | Java | false | false | 10,459 | java | /* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* gradle plugin from the resource data it found. It
* should not be modified by hand.
*/
package android.support.v7.viewpager;
public final class R {
private R() {}
public static final class attr {
private attr() {}
public static final int alpha = 0x7f020027;
public static final int font = 0x7f020082;
public static final int fontProviderAuthority = 0x7f020084;
public static final int fontProviderCerts = 0x7f020085;
public static final int fontProviderFetchStrategy = 0x7f020086;
public static final int fontProviderFetchTimeout = 0x7f020087;
public static final int fontProviderPackage = 0x7f020088;
public static final int fontProviderQuery = 0x7f020089;
public static final int fontStyle = 0x7f02008a;
public static final int fontVariationSettings = 0x7f02008b;
public static final int fontWeight = 0x7f02008c;
public static final int ttcIndex = 0x7f02014b;
}
public static final class color {
private color() {}
public static final int notification_action_color_filter = 0x7f04004c;
public static final int notification_icon_bg_color = 0x7f04004d;
public static final int ripple_material_light = 0x7f040058;
public static final int secondary_text_default_material_light = 0x7f04005a;
}
public static final class dimen {
private dimen() {}
public static final int compat_button_inset_horizontal_material = 0x7f05004b;
public static final int compat_button_inset_vertical_material = 0x7f05004c;
public static final int compat_button_padding_horizontal_material = 0x7f05004d;
public static final int compat_button_padding_vertical_material = 0x7f05004e;
public static final int compat_control_corner_material = 0x7f05004f;
public static final int compat_notification_large_icon_max_height = 0x7f050050;
public static final int compat_notification_large_icon_max_width = 0x7f050051;
public static final int notification_action_icon_size = 0x7f050061;
public static final int notification_action_text_size = 0x7f050062;
public static final int notification_big_circle_margin = 0x7f050063;
public static final int notification_content_margin_start = 0x7f050064;
public static final int notification_large_icon_height = 0x7f050065;
public static final int notification_large_icon_width = 0x7f050066;
public static final int notification_main_column_padding_top = 0x7f050067;
public static final int notification_media_narrow_margin = 0x7f050068;
public static final int notification_right_icon_size = 0x7f050069;
public static final int notification_right_side_padding_top = 0x7f05006a;
public static final int notification_small_icon_background_padding = 0x7f05006b;
public static final int notification_small_icon_size_as_large = 0x7f05006c;
public static final int notification_subtext_size = 0x7f05006d;
public static final int notification_top_pad = 0x7f05006e;
public static final int notification_top_pad_large_text = 0x7f05006f;
}
public static final class drawable {
private drawable() {}
public static final int notification_action_background = 0x7f06006e;
public static final int notification_bg = 0x7f06006f;
public static final int notification_bg_low = 0x7f060070;
public static final int notification_bg_low_normal = 0x7f060071;
public static final int notification_bg_low_pressed = 0x7f060072;
public static final int notification_bg_normal = 0x7f060073;
public static final int notification_bg_normal_pressed = 0x7f060074;
public static final int notification_icon_background = 0x7f060075;
public static final int notification_template_icon_bg = 0x7f060076;
public static final int notification_template_icon_low_bg = 0x7f060077;
public static final int notification_tile_bg = 0x7f060078;
public static final int notify_panel_notification_icon_bg = 0x7f060079;
}
public static final class id {
private id() {}
public static final int action_container = 0x7f070021;
public static final int action_divider = 0x7f070025;
public static final int action_image = 0x7f070026;
public static final int action_text = 0x7f07002d;
public static final int actions = 0x7f07002e;
public static final int async = 0x7f070037;
public static final int blocking = 0x7f07003c;
public static final int chronometer = 0x7f07004f;
public static final int forever = 0x7f070073;
public static final int icon = 0x7f070079;
public static final int icon_group = 0x7f07007a;
public static final int info = 0x7f070085;
public static final int italic = 0x7f070087;
public static final int line1 = 0x7f07008d;
public static final int line3 = 0x7f07008e;
public static final int normal = 0x7f07009d;
public static final int notification_background = 0x7f07009e;
public static final int notification_main_column = 0x7f07009f;
public static final int notification_main_column_container = 0x7f0700a0;
public static final int right_icon = 0x7f0700b1;
public static final int right_side = 0x7f0700b2;
public static final int tag_transition_group = 0x7f0700d4;
public static final int tag_unhandled_key_event_manager = 0x7f0700d5;
public static final int tag_unhandled_key_listeners = 0x7f0700d6;
public static final int text = 0x7f0700d8;
public static final int text2 = 0x7f0700d9;
public static final int time = 0x7f0700e5;
public static final int title = 0x7f0700e6;
}
public static final class integer {
private integer() {}
public static final int status_bar_notification_info_maxnum = 0x7f080005;
}
public static final class layout {
private layout() {}
public static final int notification_action = 0x7f09003b;
public static final int notification_action_tombstone = 0x7f09003c;
public static final int notification_template_custom_big = 0x7f090043;
public static final int notification_template_icon_group = 0x7f090044;
public static final int notification_template_part_chronometer = 0x7f090048;
public static final int notification_template_part_time = 0x7f090049;
}
public static final class string {
private string() {}
public static final int status_bar_notification_info_overflow = 0x7f0c004c;
}
public static final class style {
private style() {}
public static final int TextAppearance_Compat_Notification = 0x7f0d00ed;
public static final int TextAppearance_Compat_Notification_Info = 0x7f0d00ee;
public static final int TextAppearance_Compat_Notification_Line2 = 0x7f0d00f0;
public static final int TextAppearance_Compat_Notification_Time = 0x7f0d00f3;
public static final int TextAppearance_Compat_Notification_Title = 0x7f0d00f5;
public static final int Widget_Compat_NotificationActionContainer = 0x7f0d015e;
public static final int Widget_Compat_NotificationActionText = 0x7f0d015f;
}
public static final class styleable {
private styleable() {}
public static final int[] ColorStateListItem = { 0x10101a5, 0x101031f, 0x7f020027 };
public static final int ColorStateListItem_android_color = 0;
public static final int ColorStateListItem_android_alpha = 1;
public static final int ColorStateListItem_alpha = 2;
public static final int[] FontFamily = { 0x7f020084, 0x7f020085, 0x7f020086, 0x7f020087, 0x7f020088, 0x7f020089 };
public static final int FontFamily_fontProviderAuthority = 0;
public static final int FontFamily_fontProviderCerts = 1;
public static final int FontFamily_fontProviderFetchStrategy = 2;
public static final int FontFamily_fontProviderFetchTimeout = 3;
public static final int FontFamily_fontProviderPackage = 4;
public static final int FontFamily_fontProviderQuery = 5;
public static final int[] FontFamilyFont = { 0x1010532, 0x1010533, 0x101053f, 0x101056f, 0x1010570, 0x7f020082, 0x7f02008a, 0x7f02008b, 0x7f02008c, 0x7f02014b };
public static final int FontFamilyFont_android_font = 0;
public static final int FontFamilyFont_android_fontWeight = 1;
public static final int FontFamilyFont_android_fontStyle = 2;
public static final int FontFamilyFont_android_ttcIndex = 3;
public static final int FontFamilyFont_android_fontVariationSettings = 4;
public static final int FontFamilyFont_font = 5;
public static final int FontFamilyFont_fontStyle = 6;
public static final int FontFamilyFont_fontVariationSettings = 7;
public static final int FontFamilyFont_fontWeight = 8;
public static final int FontFamilyFont_ttcIndex = 9;
public static final int[] GradientColor = { 0x101019d, 0x101019e, 0x10101a1, 0x10101a2, 0x10101a3, 0x10101a4, 0x1010201, 0x101020b, 0x1010510, 0x1010511, 0x1010512, 0x1010513 };
public static final int GradientColor_android_startColor = 0;
public static final int GradientColor_android_endColor = 1;
public static final int GradientColor_android_type = 2;
public static final int GradientColor_android_centerX = 3;
public static final int GradientColor_android_centerY = 4;
public static final int GradientColor_android_gradientRadius = 5;
public static final int GradientColor_android_tileMode = 6;
public static final int GradientColor_android_centerColor = 7;
public static final int GradientColor_android_startX = 8;
public static final int GradientColor_android_startY = 9;
public static final int GradientColor_android_endX = 10;
public static final int GradientColor_android_endY = 11;
public static final int[] GradientColorItem = { 0x10101a5, 0x1010514 };
public static final int GradientColorItem_android_color = 0;
public static final int GradientColorItem_android_offset = 1;
}
}
| [
"cmeng2@ualberta.ca"
] | cmeng2@ualberta.ca |
7b9c4f797f53811676301744f3e40bad8103cebb | c118a4ea269bfce807ccdd4073ccd3a6ecde2694 | /jOOQ/src/main/java/org/jooq/impl/AlterTableImpl.java | 3e2e68840e653a26b0b3ab7fe851a3b88235bcf4 | [
"Apache-2.0"
] | permissive | sytolk/jOOQ | 70df28bdffd96ed627ed359508065e177e6c4899 | 6dd9f0c594604e63fe34705296fd40e87f6d9e9b | refs/heads/master | 2021-01-17T08:37:40.239183 | 2016-04-08T15:57:19 | 2016-04-08T15:57:19 | 55,982,176 | 0 | 1 | null | 2016-04-11T15:03:15 | 2016-04-11T15:03:15 | null | UTF-8 | Java | false | false | 17,008 | java | /**
* Copyright (c) 2009-2016, Data Geekery GmbH (http://www.datageekery.com)
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Other licenses:
* -----------------------------------------------------------------------------
* Commercial licenses for this work are available. These replace the above
* ASL 2.0 and offer limited warranties, support, maintenance, and commercial
* database integrations.
*
* For more information, please visit: http://www.jooq.org/licenses
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package org.jooq.impl;
import static java.util.Arrays.asList;
import static org.jooq.Clause.ALTER_TABLE;
import static org.jooq.Clause.ALTER_TABLE_ADD;
import static org.jooq.Clause.ALTER_TABLE_ALTER;
import static org.jooq.Clause.ALTER_TABLE_ALTER_DEFAULT;
import static org.jooq.Clause.ALTER_TABLE_DROP;
import static org.jooq.Clause.ALTER_TABLE_RENAME;
import static org.jooq.Clause.ALTER_TABLE_RENAME_COLUMN;
import static org.jooq.Clause.ALTER_TABLE_RENAME_CONSTRAINT;
import static org.jooq.Clause.ALTER_TABLE_TABLE;
import static org.jooq.SQLDialect.DERBY;
import static org.jooq.SQLDialect.FIREBIRD;
// ...
import static org.jooq.SQLDialect.HSQLDB;
// ...
import static org.jooq.impl.DSL.constraint;
import static org.jooq.impl.DSL.field;
import static org.jooq.impl.DSL.inline;
import static org.jooq.impl.DSL.name;
import static org.jooq.impl.DSL.sql;
import static org.jooq.impl.Tools.toSQLDDLTypeDeclaration;
import static org.jooq.impl.Tools.DataKey.DATA_CONSTRAINT_REFERENCE;
import org.jooq.AlterTableAlterStep;
import org.jooq.AlterTableDropStep;
import org.jooq.AlterTableFinalStep;
import org.jooq.AlterTableRenameColumnToStep;
import org.jooq.AlterTableRenameConstraintToStep;
import org.jooq.AlterTableStep;
import org.jooq.Clause;
import org.jooq.Configuration;
import org.jooq.Constraint;
import org.jooq.Context;
import org.jooq.DSLContext;
import org.jooq.DataType;
import org.jooq.Field;
import org.jooq.Name;
import org.jooq.SQLDialect;
import org.jooq.Table;
/**
* @author Lukas Eder
*/
@SuppressWarnings({ "rawtypes", "unchecked" })
final class AlterTableImpl extends AbstractQuery implements
// Cascading interface implementations for ALTER TABLE behaviour
AlterTableStep,
AlterTableDropStep,
AlterTableAlterStep,
AlterTableRenameColumnToStep,
AlterTableRenameConstraintToStep {
/**
* Generated UID
*/
private static final long serialVersionUID = 8904572826501186329L;
private static final Clause[] CLAUSES = { ALTER_TABLE };
private final Table<?> table;
private Table<?> renameTo;
private Field<?> renameColumn;
private Field<?> renameColumnTo;
private Constraint renameConstraint;
private Constraint renameConstraintTo;
private Field<?> addColumn;
private DataType<?> addColumnType;
private Constraint addConstraint;
private Field<?> alterColumn;
private DataType<?> alterColumnType;
private Field<?> alterColumnDefault;
private Field<?> dropColumn;
private boolean dropColumnCascade;
private Constraint dropConstraint;
AlterTableImpl(Configuration configuration, Table<?> table) {
super(configuration);
this.table = table;
}
// ------------------------------------------------------------------------
// XXX: DSL API
// ------------------------------------------------------------------------
@Override
public final AlterTableImpl renameTo(Table<?> newName) {
this.renameTo = newName;
return this;
}
@Override
public final AlterTableImpl renameTo(Name newName) {
return renameTo(DSL.table(newName));
}
@Override
public final AlterTableImpl renameTo(String newName) {
return renameTo(name(newName));
}
@Override
public final AlterTableImpl renameColumn(Field<?> oldName) {
renameColumn = oldName;
return this;
}
@Override
public final AlterTableImpl renameColumn(Name oldName) {
return renameColumn(field(oldName));
}
@Override
public final AlterTableImpl renameColumn(String oldName) {
return renameColumn(name(oldName));
}
@Override
public final AlterTableImpl renameConstraint(Constraint oldName) {
renameConstraint = oldName;
return this;
}
@Override
public final AlterTableImpl renameConstraint(Name oldName) {
return renameConstraint(constraint(oldName));
}
@Override
public final AlterTableImpl renameConstraint(String oldName) {
return renameConstraint(name(oldName));
}
@Override
public final AlterTableImpl to(Field<?> newName) {
if (renameColumn != null)
renameColumnTo = newName;
else
throw new IllegalStateException();
return this;
}
@Override
public final AlterTableImpl to(Constraint newName) {
if (renameConstraint != null)
renameConstraintTo = newName;
else
throw new IllegalStateException();
return this;
}
@Override
public final AlterTableImpl to(Name newName) {
if (renameColumn != null)
return to(field(newName));
else if (renameConstraint != null)
return to(constraint(newName));
else
throw new IllegalStateException();
}
@Override
public final AlterTableImpl to(String newName) {
return to(name(newName));
}
@Override
public final <T> AlterTableImpl add(Field<T> field, DataType<T> type) {
return addColumn(field, type);
}
@Override
public final AlterTableImpl add(Name field, DataType<?> type) {
return addColumn(field, type);
}
@Override
public final AlterTableImpl add(String field, DataType<?> type) {
return addColumn(field, type);
}
@Override
public final AlterTableImpl addColumn(String field, DataType<?> type) {
return addColumn(name(field), type);
}
@Override
public final AlterTableImpl addColumn(Name field, DataType<?> type) {
return addColumn((Field) field(field, type), type);
}
@Override
public final <T> AlterTableImpl addColumn(Field<T> field, DataType<T> type) {
addColumn = field;
addColumnType = type;
return this;
}
@Override
public final AlterTableImpl add(Constraint constraint) {
addConstraint = constraint;
return this;
}
@Override
public final <T> AlterTableImpl alter(Field<T> field) {
return alterColumn(field);
}
@Override
public final AlterTableImpl alter(Name field) {
return alterColumn(field);
}
@Override
public final AlterTableImpl alter(String field) {
return alterColumn(field);
}
@Override
public final AlterTableImpl alterColumn(Name field) {
return alterColumn(field(field));
}
@Override
public final AlterTableImpl alterColumn(String field) {
return alterColumn(name(field));
}
@Override
public final <T> AlterTableImpl alterColumn(Field<T> field) {
alterColumn = field;
return this;
}
@Override
public final AlterTableImpl set(DataType type) {
alterColumnType = type;
return this;
}
@Override
public final AlterTableImpl defaultValue(Object literal) {
return defaultValue(Tools.field(literal));
}
@Override
public final AlterTableImpl defaultValue(Field expression) {
alterColumnDefault = expression;
return this;
}
@Override
public final AlterTableImpl drop(Field<?> field) {
return dropColumn(field);
}
@Override
public final AlterTableImpl drop(Name field) {
return dropColumn(field);
}
@Override
public final AlterTableImpl drop(String field) {
return dropColumn(field);
}
@Override
public final AlterTableImpl dropColumn(Name field) {
return dropColumn(field(field));
}
@Override
public final AlterTableImpl dropColumn(String field) {
return dropColumn(name(field));
}
@Override
public final AlterTableImpl dropColumn(Field<?> field) {
dropColumn = field;
return this;
}
@Override
public final AlterTableImpl drop(Constraint constraint) {
dropConstraint = constraint;
return this;
}
@Override
public final AlterTableImpl dropConstraint(Name constraint) {
return drop(DSL.constraint(constraint));
}
@Override
public final AlterTableImpl dropConstraint(String constraint) {
return drop(DSL.constraint(constraint));
}
@Override
public final AlterTableFinalStep cascade() {
dropColumnCascade = true;
return this;
}
@Override
public final AlterTableFinalStep restrict() {
dropColumnCascade = false;
return this;
}
// ------------------------------------------------------------------------
// XXX: QueryPart API
// ------------------------------------------------------------------------
@Override
public final void accept(Context<?> ctx) {
SQLDialect family = ctx.configuration().dialect().family();
accept0(ctx);
}
private final void accept0(Context<?> ctx) {
SQLDialect family = ctx.family();
boolean omitAlterTable =
family == HSQLDB && renameConstraint != null;
if (!omitAlterTable)
ctx.start(ALTER_TABLE_TABLE)
.keyword("alter table").sql(' ').visit(table)
.end(ALTER_TABLE_TABLE)
.formatIndentStart()
.formatSeparator();
if (renameTo != null) {
boolean qualify = ctx.qualify();
ctx.start(ALTER_TABLE_RENAME)
.qualify(false)
.keyword("rename to").sql(' ')
.visit(renameTo)
.qualify(qualify)
.end(ALTER_TABLE_RENAME);
}
else if (renameColumn != null) {
boolean qualify = ctx.qualify();
ctx.start(ALTER_TABLE_RENAME_COLUMN)
.qualify(false);
switch (ctx.family()) {
case H2:
case HSQLDB:
ctx.keyword("alter column").sql(' ')
.visit(renameColumn)
.formatSeparator()
.keyword("rename to").sql(' ')
.visit(renameColumnTo);
break;
default:
ctx.keyword("rename column").sql(' ')
.visit(renameColumn)
.formatSeparator()
.keyword("to").sql(' ')
.visit(renameColumnTo);
break;
}
ctx.qualify(qualify)
.end(ALTER_TABLE_RENAME_COLUMN);
}
else if (renameConstraint != null) {
boolean qualify = ctx.qualify();
ctx.start(ALTER_TABLE_RENAME_CONSTRAINT);
ctx.data(DATA_CONSTRAINT_REFERENCE, true);
if (family == HSQLDB) {
ctx.qualify(false)
.keyword("alter constraint").sql(' ')
.visit(renameConstraint)
.formatSeparator()
.keyword("rename to").sql(' ')
.visit(renameConstraintTo)
.qualify(qualify);
}
else {
ctx.qualify(false)
.keyword("rename constraint").sql(' ')
.visit(renameConstraint)
.formatSeparator()
.keyword("to").sql(' ')
.visit(renameConstraintTo)
.qualify(qualify);
}
ctx.data().remove(DATA_CONSTRAINT_REFERENCE);
ctx.end(ALTER_TABLE_RENAME_CONSTRAINT);
}
else if (addColumn != null) {
boolean qualify = ctx.qualify();
ctx.start(ALTER_TABLE_ADD)
.keyword("add").sql(' ');
ctx.qualify(false)
.visit(addColumn).sql(' ')
.qualify(qualify);
toSQLDDLTypeDeclaration(ctx, addColumnType);
if (!addColumnType.nullable()) {
ctx.sql(' ').keyword("not null");
}
// Some databases default to NOT NULL, so explicitly setting columns to NULL is mostly required here
// [#3400] [#4321] ... but not in Derby, Firebird
else if (!asList(DERBY, FIREBIRD).contains(family)) {
ctx.sql(' ').keyword("null");
}
ctx.end(ALTER_TABLE_ADD);
}
else if (addConstraint != null) {
boolean qualify = ctx.qualify();
ctx.start(ALTER_TABLE_ADD);
ctx.keyword("add")
.sql(' ')
.qualify(false)
.visit(addConstraint)
.qualify(qualify);
ctx.end(ALTER_TABLE_ADD);
}
else if (alterColumn != null) {
ctx.start(ALTER_TABLE_ALTER);
switch (family) {
case CUBRID:
case MARIADB:
case MYSQL: {
if (alterColumnDefault == null) {
// MySQL's CHANGE COLUMN clause has a mandatory RENAMING syntax...
ctx.keyword("change column")
.sql(' ').qualify(false).visit(alterColumn).qualify(true);
}
else {
ctx.keyword("alter column");
}
break;
}
default:
ctx.keyword("alter");
break;
}
ctx.sql(' ')
.qualify(false)
.visit(alterColumn)
.qualify(true);
if (alterColumnType != null) {
switch (family) {
case DERBY:
ctx.sql(' ').keyword("set data type");
break;
case POSTGRES:
ctx.sql(' ').keyword("type");
break;
}
ctx.sql(' ');
toSQLDDLTypeDeclaration(ctx, alterColumnType);
if (!alterColumnType.nullable()) {
ctx.sql(' ').keyword("not null");
}
}
else if (alterColumnDefault != null) {
ctx.start(ALTER_TABLE_ALTER_DEFAULT);
switch (family) {
default:
ctx.keyword("set default");
break;
}
ctx.sql(' ').visit(alterColumnDefault)
.end(ALTER_TABLE_ALTER_DEFAULT);
}
ctx.end(ALTER_TABLE_ALTER);
}
else if (dropColumn != null) {
ctx.start(ALTER_TABLE_DROP);
switch (family) {
default:
ctx.keyword("drop");
break;
}
ctx.sql(' ')
.qualify(false)
.visit(dropColumn)
.qualify(true);
switch (family) {
default:
break;
}
if (dropColumnCascade) {
ctx.sql(' ').keyword("cascade");
}
ctx.end(ALTER_TABLE_DROP);
}
else if (dropConstraint != null) {
ctx.start(ALTER_TABLE_DROP);
ctx.data(DATA_CONSTRAINT_REFERENCE, true);
ctx.keyword("drop constraint")
.sql(' ')
.visit(dropConstraint);
ctx.data().remove(DATA_CONSTRAINT_REFERENCE);
ctx.end(ALTER_TABLE_DROP);
}
if (!omitAlterTable)
ctx.formatIndentEnd();
}
@Override
public final Clause[] clauses(Context<?> ctx) {
return CLAUSES;
}
}
| [
"lukas.eder@gmail.com"
] | lukas.eder@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.