blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 7 332 | content_id stringlengths 40 40 | detected_licenses listlengths 0 50 | license_type stringclasses 2 values | repo_name stringlengths 7 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 557 values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 5.85k 684M ⌀ | star_events_count int64 0 77.7k | fork_events_count int64 0 48k | gha_license_id stringclasses 17 values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 82 values | src_encoding stringclasses 28 values | language stringclasses 1 value | is_vendor bool 1 class | is_generated bool 2 classes | length_bytes int64 7 5.41M | extension stringclasses 11 values | content stringlengths 7 5.41M | authors listlengths 1 1 | author stringlengths 0 161 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1334f0806e4213b5d6d87ecc5d48730b3a92868a | 099ffcaac745f40e5a129fedf4fec80679a56db0 | /FreeCol/src/net/sf/freecol/common/option/SelectOption.java | 03b0e40031fa6123352f801dc58244bf3537764d | [] | no_license | sscheiner/COSC442-finalproject | 2837cc0024c7c05f5038119549f9bc248a2f874f | 9acba79cfc306faf1e0bf24b89cac1da8325df90 | refs/heads/master | 2020-03-06T18:22:38.638638 | 2018-05-16T23:54:05 | 2018-05-16T23:54:05 | 127,006,144 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 7,059 | java | /**
* Copyright (C) 2002-2015 The FreeCol Team
*
* This file is part of FreeCol.
*
* FreeCol is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* FreeCol 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with FreeCol. If not, see <http://www.gnu.org/licenses/>.
*/
package net.sf.freecol.common.option;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Set;
import java.util.logging.Logger;
import javax.xml.stream.XMLStreamException;
import net.sf.freecol.common.io.FreeColXMLReader;
import net.sf.freecol.common.io.FreeColXMLWriter;
import net.sf.freecol.common.model.Specification;
/**
* Represents an option where the valid choice is an integer and the
* choices are represented by strings. In general, these strings are
* localized by looking up the key of the choice, which consists of
* the identifier of the AbstractObject followed by a "." followed by
* the value of the option string. The automatic localization can be
* suppressed with the doNotLocalize parameter, however. There are
* two reasons to do this: either the option strings should not be
* localized at all (because they are language names, for example), or
* the option strings have already been localized (because they do not
* use the default keys, for example).
*/
public class SelectOption extends IntegerOption {
@SuppressWarnings("unused")
private static final Logger logger = Logger.getLogger(SelectOption.class.getName());
/** Use localized labels? */
protected boolean localizedLabels = false;
/** A map of the valid values. */
private final Map<Integer, String> itemValues
= new LinkedHashMap<>();
/**
* Creates a new <code>SelectOption</code>.
*
* @param specification The <code>Specification</code> to refer to.
*/
public SelectOption(Specification specification) {
super(specification);
}
/**
* Gets the range values of this <code>RangeOption</code>.
*
* @return The value.
*/
public Map<Integer, String> getItemValues() {
return itemValues;
}
/**
* Add a new key,value pair to this option.
*
* @param key The key to add.
* @param value The value to add.
*/
public void addItemValue(Integer key, String value) {
itemValues.put(key, value);
}
/**
* Clear the item values for this option.
*
* Required by ClientOptions.fixClientOptions.
*/
public void clearItemValues() {
itemValues.clear();
}
/**
* Whether the labels of this option need to be localized. This is
* not the case when the labels are just numeric values.
*
* @return True if localization is required.
*/
public boolean localizeLabels() {
return localizedLabels;
}
/**
* Gets the tag name of the item element.
*
* Should be overridden by subclasses to ensure read/writeChildren work.
*
* @return "selectValue".
*/
public String getXMLItemElementTagName() {
return "selectValue";
}
// Interface Option
/**
* {@inheritDoc}
*/
public void setValue(Integer value) {
Set<Integer> keys = getItemValues().keySet();
if (keys.isEmpty()) return; // May not have been read yet
Integer fallback = null;
for (Integer i : keys) {
if (i == value) { // Found a valid selection
super.setValue(value);
return;
}
if (fallback == null) fallback = i;
}
logger.warning(getXMLElementTagName() + ".setValue invalid value: "
+ value + ", using fallback: " + fallback);
super.setValue(fallback);
}
// Serialization
private static final String LABEL_TAG = "label";
private static final String LOCALIZED_LABELS_TAG = "localizedLabels";
/**
* {@inheritDoc}
*/
@Override
protected void writeAttributes(FreeColXMLWriter xw) throws XMLStreamException {
super.writeAttributes(xw);
xw.writeAttribute(LOCALIZED_LABELS_TAG, localizedLabels);
}
/**
* {@inheritDoc}
*/
@Override
protected void writeChildren(FreeColXMLWriter xw) throws XMLStreamException {
super.writeChildren(xw);
for (Map.Entry<Integer, String> entry : itemValues.entrySet()) {
xw.writeStartElement(getXMLItemElementTagName());
xw.writeAttribute(VALUE_TAG, entry.getKey());
xw.writeAttribute(LABEL_TAG, entry.getValue());
xw.writeEndElement();
}
}
/**
* {@inheritDoc}
*/
@Override
protected void readAttributes(FreeColXMLReader xr) throws XMLStreamException {
super.readAttributes(xr);
localizedLabels = xr.getAttribute(LOCALIZED_LABELS_TAG, true);
}
/**
* {@inheritDoc}
*/
@Override
protected void readChildren(FreeColXMLReader xr) throws XMLStreamException {
// We can not set the value until we have read the select options
// so as to be able to check its validity.
String value = xr.getAttribute(VALUE_TAG, (String)null);
String defaultValue = xr.getAttribute(DEFAULT_VALUE_TAG, (String)null);
// Clear containers.
clearItemValues();
super.readChildren(xr);
// Now we can correctly set the value.
setValue(value, defaultValue);
}
/**
* {@inheritDoc}
*/
@Override
protected void readChild(FreeColXMLReader xr) throws XMLStreamException {
final String tag = xr.getLocalName();
if (getXMLItemElementTagName().equals(tag)) {
addItemValue(xr.getAttribute(VALUE_TAG, INFINITY),
xr.getAttribute(LABEL_TAG, (String)null));
xr.closeTag(tag);
} else {
super.readChild(xr);
}
}
/**
* {@inheritDoc}
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder(16);
sb.append('[').append(getId())
.append(" value=").append(getValue())
.append(" localized=").append(localizedLabels)
.append(']');
return sb.toString();
}
/**
* {@inheritDoc}
*/
@Override
public String getXMLTagName() { return getXMLElementTagName(); }
/**
* Gets the tag name of the root element representing this object.
*
* @return "selectOption".
*/
public static String getXMLElementTagName() {
return "selectOption";
}
}
| [
"eallen42692@gmail.com"
] | eallen42692@gmail.com |
38419b4cb0c651137a9186e72d7a325c3a2e2d82 | c9181e628ce40db6088d6b121b7a8fe6b6665902 | /src/LeaderOfTheArray.java | 9bee28bd25e8d186baef3efd256914acc5ca1c00 | [] | no_license | Madhusudanarao/Core_Java_practice | 1c4453d11910ee8e38c3c9525f587b9a008d8b12 | 5fbb737ad8f63b4ebbef2003eb7978a47281f6c4 | refs/heads/master | 2020-04-21T11:41:33.701821 | 2019-04-04T09:45:46 | 2019-04-04T09:45:46 | 169,535,155 | 0 | 0 | null | 2019-04-04T09:45:47 | 2019-02-07T07:36:08 | Java | UTF-8 | Java | false | false | 540 | java |
public class LeaderOfTheArray {
public static void main(String[] args) {
LeaderOfTheArray la = new LeaderOfTheArray();
int arr[] = new int[]{10,34,5,15,9,2};
int n = arr.length;
la.printLeaders(arr,n);
}
private void printLeaders(int[] arr, int n) {
// TODO Auto-generated method stub
int maxFromRight = arr[n-1];
System.out.println("maxFromRight" +maxFromRight);
for(int i = n-2; i>=0; i--){
if(maxFromRight < arr[i]){
maxFromRight = arr[i] ;
System.out.println("" +maxFromRight);
}
}
}
}
| [
"madhu.karanam88@gmail.com"
] | madhu.karanam88@gmail.com |
1ca07061932a1ee142c894c3ac3931ca1a31d4ae | e605f0aae2be0aca89bd67b5d03af018b656d71a | /teamclub-weixin/src/main/java/com/teamclub/weixin/controllers/open/WeixinAuthAction.java | f53b4dbe1c01a610c10fed672b851504b6eadf2c | [] | no_license | zhmeng/mutile-app | 97dd532065ae2ca0c79da079afc930377907e3f4 | 3318334f60dd53d5a3fbf92e9c98651697aea9fb | refs/heads/master | 2021-01-19T21:12:03.032725 | 2017-05-12T02:48:01 | 2017-05-12T02:48:01 | 88,621,373 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 13,004 | java | package com.teamclub.weixin.controllers.open;
import com.avaje.ebean.Ebean;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.riversoft.weixin.common.WxClient;
import com.riversoft.weixin.common.decrypt.MessageDecryption;
import com.riversoft.weixin.common.decrypt.SHA1;
import com.riversoft.weixin.common.event.EventRequest;
import com.riversoft.weixin.common.message.MsgType;
import com.riversoft.weixin.common.message.XmlMessageHeader;
import com.riversoft.weixin.common.request.TextRequest;
import com.riversoft.weixin.common.util.XmlObjectMapper;
import com.riversoft.weixin.mp.care.CareMessages;
import com.riversoft.weixin.mp.message.MpXmlMessages;
import com.teamclub.domain.wechat.OtoWechatAuthorizer;
import com.teamclub.domain.wechat.OtoWechatThirdPlat;
import com.teamclub.util.Springs;
import com.teamclub.weixin.confs.WeixinApiConf;
import com.teamclub.weixin.dtos.open.ApiAuthorizerInfoResp;
import com.teamclub.weixin.dtos.open.AuthorizerAccessTokenResp;
import com.teamclub.weixin.libs.OpenAccessTokenHolder;
import com.teamclub.weixin.services.open.WeixinOpenApi;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Date;
/**
* Created by zhangmeng on 17-1-18.
*/
@RestController("com.teamclub.weixin.controllers.open.WeixinAuthAction")
public class WeixinAuthAction {
private final Logger logger = LoggerFactory.getLogger(getClass());
@Autowired
private Springs springs;
@Autowired
private WeixinApiConf weixinApiConf;
@Autowired
private WeixinOpenApi weixinOpenApi;
static class A {
@JsonProperty("AppId")
public String appId ;
@JsonProperty("Encrypt")
public String encrypt ;
public String toString(){
return "appId: " + appId + ", encrypt: " + encrypt;
}
}
static class Msg {
@JsonProperty("ToUserName")
public String toUserName;
@JsonProperty("Encrypt")
public String encrypt;
}
static class TicketD {
public String AppId;
public String CreateTime;
public String InfoType;
public String ComponentVerifyTicket;
public String AuthorizerAppid;
public String AuthorizationCode;
public String AuthorizationCodeExpiredTime;
}
public String testConf() {
logger.info("apiComponentToken: " + weixinApiConf.getApiComponentToken());
logger.info("apiCreatePreAuthCode: " + weixinApiConf.getApiCreatePreAuthCode("12345"));
logger.info("authUrl: " + weixinApiConf.getAuthUrl("123", "123456", "zhangmwjr.dev.szjyyg.cn/weixinauth/callback"));
return "";
}
/**
* 公众帐号授权页面
* @param thirdOrganNo
* @return
*/
public void getAuthUrl(@RequestParam String thirdOrganNo, @RequestParam String pubOrganNo, HttpServletResponse response) throws IOException{
OtoWechatThirdPlat thirdPlat = Ebean.find(OtoWechatThirdPlat.class).where().eq("organNo", thirdOrganNo).findUnique();
String authUrl = weixinOpenApi.getAuthUrl(thirdPlat, pubOrganNo);
logger.info("authUrl: " + authUrl);
response.sendRedirect(authUrl);
}
/***
* 公众帐号授权回调回写参数
* @param thirdOrganNo
* @param pubOrganNo
* @param authCode
* @param expiresIn
* @return
*/
public String authCallback(@PathVariable String thirdOrganNo, @PathVariable String pubOrganNo, @RequestParam(name="auth_code") String authCode, @RequestParam(name="expires_in") Long expiresIn) {
logger.info("authCode: " + authCode);
OtoWechatThirdPlat thirdPlat = Ebean.find(OtoWechatThirdPlat.class).where().eq("organNo", thirdOrganNo).findUnique();
if(thirdPlat == null) {
logger.warn("第三方平台缺失 organNo is :{}", thirdOrganNo);
return "fail";
}
AuthorizerAccessTokenResp authorizerResp = weixinOpenApi.getAuthorizerAccessToken(thirdPlat.getComponentAccessToken(), thirdPlat.getAppid(), authCode);
OtoWechatAuthorizer otoWechatAuthorizer = Ebean.find(OtoWechatAuthorizer.class).where().eq("appid", authorizerResp.authorizationInfo.authorizerAppid).findUnique();
if(otoWechatAuthorizer == null) {
otoWechatAuthorizer = new OtoWechatAuthorizer();
}
otoWechatAuthorizer.setAppid(authorizerResp.authorizationInfo.authorizerAppid);
otoWechatAuthorizer.setAccessToken(authorizerResp.authorizationInfo.authorizerAccessToken);
otoWechatAuthorizer.setRefreshToken(authorizerResp.authorizationInfo.authorizerRefreshToken);
otoWechatAuthorizer.setAccessTokenCreatedAt(new Date());
otoWechatAuthorizer.setAccessTokenExpires(authorizerResp.authorizationInfo.expiresIn);
otoWechatAuthorizer.setPlatId(thirdPlat.getId());
if(otoWechatAuthorizer.getId() == null) {
otoWechatAuthorizer.save();
}else {
otoWechatAuthorizer.update();
}
ApiAuthorizerInfoResp apiAuthorizerInfo = weixinOpenApi.getApiAuthorizerInfo(thirdPlat.getComponentAccessToken(), thirdPlat.getAppid(), authorizerResp.authorizationInfo.authorizerAppid);
otoWechatAuthorizer.setNickName(apiAuthorizerInfo.authorizerInfo.nickName);
otoWechatAuthorizer.setHeadImg(apiAuthorizerInfo.authorizerInfo.headImg);
otoWechatAuthorizer.setName(apiAuthorizerInfo.authorizerInfo.principalName);
otoWechatAuthorizer.setServiceTypeInfo(apiAuthorizerInfo.authorizerInfo.serviceTypeInfo.id);
otoWechatAuthorizer.setVerifyTypeInfo(apiAuthorizerInfo.authorizerInfo.verifyTypeInfo.id);
otoWechatAuthorizer.setAuthTime(new Date());
otoWechatAuthorizer.setStatus(1);
otoWechatAuthorizer.update();
return "success";
}
/***
* 根据appid获取对应的accessToken
* @param appid
* @return
*/
public String accessToken(@PathVariable String appid) {
if(appid.equals("wx570bc396a51b8ff8")) { //全网发布使用
logger.info("全网发布去获取accessToken");
OtoWechatAuthorizer authorizer = Ebean.find(OtoWechatAuthorizer.class).where().eq("appid", appid).findUnique();
OtoWechatThirdPlat plat = Ebean.find(OtoWechatThirdPlat.class).where().eq("id", authorizer.getPlatId()).findUnique();
AuthorizerAccessTokenResp authorizerAccessToken = weixinOpenApi.getAuthorizerAccessToken(weixinOpenApi.getComponentAccessToken(plat), plat.getAppid(), weixinOpenApi.tmpAuthCode);
logger.info("全网发布获取accessToken结果: " + authorizerAccessToken.authorizationInfo.authorizerAccessToken);
String token = authorizerAccessToken.authorizationInfo.authorizerAccessToken;
return token;
}
OtoWechatAuthorizer authorizer = Ebean.find(OtoWechatAuthorizer.class).where().eq("appid", appid).findUnique();
String componentAccessToken = weixinOpenApi.getComponentAccessToken(authorizer);
logger.info("accessToken: " + componentAccessToken);
return componentAccessToken;
}
/***
* 接收公众帐号消息服务回调 公众号消息与事件接收URL
* @param appid
* @param organNo
* @param timestamp
* @param nonce
* @param msgSignature
* @param msg
* @return
* @throws Exception
*/
@RequestMapping("/{appid}/{organNo}/callback")
public String appidCallback(@PathVariable String appid,
@PathVariable String organNo,
@RequestParam(required = false) String timestamp,
@RequestParam(required = false) String nonce,
@RequestParam(name = "msg_signature", required = false) String msgSignature,
@RequestBody Msg msg) throws Exception{
OtoWechatThirdPlat thirdPlat = Ebean.find(OtoWechatThirdPlat.class).where().eq("organNo", organNo).findUnique();
if(thirdPlat == null) {
logger.warn("第三方平台缺失 organNo is :{}", organNo);
return "fail";
}
MessageDecryption messageDecryption = new MessageDecryption(thirdPlat.getToken(), thirdPlat.getAesKey(), thirdPlat.getAppid());
String decrypt = messageDecryption.decryptEcho(msgSignature, timestamp, nonce, msg.encrypt);
logger.info("decrypt: " + decrypt);
XmlMessageHeader xmlMessageHeader = MpXmlMessages.fromXml(decrypt);
String fromUser = xmlMessageHeader.getFromUser();
String toUser = xmlMessageHeader.getToUser();
XmlMessageHeader respXml = null;
if(appid.equals("wx570bc396a51b8ff8")) {
if(xmlMessageHeader instanceof EventRequest) {
TextRequest request = new TextRequest();
request.setContent(((EventRequest) xmlMessageHeader).getEventType().name() + "from_callback");
request.setMsgId(String.valueOf(System.currentTimeMillis()));
request.setCreateTime(new Date());
request.setMsgType(MsgType.text);
respXml = request;
}else if(xmlMessageHeader instanceof TextRequest) {
TextRequest request = (TextRequest)xmlMessageHeader;
if(request.getContent().startsWith("QUERY_AUTH_CODE")) {
String auth=request.getContent().replace("QUERY_AUTH_CODE:", "");
auth += "_from_api";
CareMessages careMessages = new CareMessages();
WxClient wxClient = new WxClient("", "", springs.getBean(OpenAccessTokenHolder.class, appid));
careMessages.setWxClient(wxClient);
logger.info("发送文本:" + auth);
careMessages.text(request.getFromUser(), auth);
return ""; //直接回复
}else {
request.setContent(request.getContent() + "_callback");
respXml = request;
}
}
}
if(respXml == null) {
respXml = xmlMessageHeader;
}
respXml.fromUser(toUser).toUser(fromUser);
String txtRespXml = MpXmlMessages.toXml(respXml);
logger.info("resp xml: " + txtRespXml);
String encrypt = messageDecryption.encrypt(txtRespXml, String.valueOf(System.currentTimeMillis()), String.valueOf(System.currentTimeMillis()));
logger.info("resp: " + encrypt);
return encrypt;
}
/***
* 授权事件接收URL
* @param organNo
* @param signature
* @param timestamp
* @param nonce
* @param encryptType
* @param msgSignature
* @param body
* @return
* @throws Exception
*/
@RequestMapping("/{organNo}/open")
public String callback(@PathVariable String organNo,
@RequestParam(required = false) String signature,
@RequestParam(required = false) String timestamp,
@RequestParam(required = false) String nonce,
@RequestParam(name = "encrypt_type", required = false) String encryptType,
@RequestParam(name = "msg_signature", required = false) String msgSignature,
@RequestBody(required = false)A body) throws Exception{
OtoWechatThirdPlat thirdPlat = Ebean.find(OtoWechatThirdPlat.class).where().eq("organNo", organNo).findUnique();
if(thirdPlat == null) {
logger.error("实体不存在");
return "fail";
}
MessageDecryption messageDecryption = new MessageDecryption(thirdPlat.getToken(), thirdPlat.getAesKey(), thirdPlat.getAppid());
if( !signature.equals(SHA1.getSHA1(thirdPlat.getToken(), timestamp, nonce))) {
logger.info("非微信端请求");
return "fail";
}
String decrypt = messageDecryption.decryptEcho(msgSignature, timestamp, nonce, body.encrypt);
logger.info("decrypt data: " + decrypt);
TicketD ticketD = XmlObjectMapper.defaultMapper().fromXml(decrypt, TicketD.class);
if(ticketD.AuthorizerAppid != null && ticketD.AuthorizerAppid.equals("wx570bc396a51b8ff8")) {
if(ticketD.AuthorizationCode != null) {
WeixinOpenApi.tmpAuthCode = ticketD.AuthorizationCode;
logger.info("authcode: " + WeixinOpenApi.tmpAuthCode);
return "success"; //全网发布直接回复
}
}
logger.info("ticketD ComponentVerifyTicket: " + ticketD.ComponentVerifyTicket);
if(ticketD.ComponentVerifyTicket != null) {
thirdPlat.setVerifyTicket(ticketD.ComponentVerifyTicket);
thirdPlat.update();
}
return "success";
}
}
| [
"zhangm@ulopay.com"
] | zhangm@ulopay.com |
c54108d9bba241874e078abbf60fb28f451ac31f | 8922e51e7b544b069ff163496780aa8b37ad4f8a | /library/src/java/org/apache/hivemind/lib/pipeline/PipelineContribution.java | 6bdd2e28da9821485c6caacd56ef61efedea678b | [
"Apache-2.0"
] | permissive | rsassi/hivemind2 | e44cd3b7634bf15180c68c20a3a4f6fa51c21dd0 | 2ab77f62bf2ecbea4e3e03f6bde525a90e3f1a08 | refs/heads/master | 2023-06-28T09:19:39.745800 | 2021-07-25T03:45:03 | 2021-07-25T03:45:03 | 389,251,042 | 0 | 0 | null | 2021-07-25T03:45:04 | 2021-07-25T03:26:24 | Java | UTF-8 | Java | false | false | 1,055 | java | // Copyright 2004, 2005 The Apache Software Foundation
//
// 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.apache.hivemind.lib.pipeline;
/**
* Interface implemented by the configuration objects used to build a pipeline.
*
*
* @author Howard Lewis Ship
*/
public interface PipelineContribution
{
/**
* Invoke {@link PipelineAssembler#addFilter(String, String, String, Object, Location)}
* or {@link PipelineAssembler#setTerminator(Object, Location)}.
*/
public void informAssembler(PipelineAssembler pa);
}
| [
"ahuegen@localhost"
] | ahuegen@localhost |
92fb7e9bbaf6e4d30c4e6ec611766afdeabb603d | 3bfa6df53cdb9c084f265eda7eae58e35eb6be6a | /app/src/test/java/com/devhch/changeimageorder/ExampleUnitTest.java | 3414b71c4f6b6d46e970cb19efa0b24e43752374 | [] | no_license | hamzamirai/ChangeImageOrder | ddb8dd8e94bd077e80f719f3f493bf95cc7b1fac | 379aa1426b758e0ccb9788a61a9830d53da51e60 | refs/heads/main | 2023-07-01T12:56:36.012620 | 2021-08-07T22:16:58 | 2021-08-07T22:16:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 388 | java | package com.devhch.changeimageorder;
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);
}
} | [
"hamzachaouki23@gmail.com"
] | hamzachaouki23@gmail.com |
483fae89d20a16825bcc23561783f8e234fd832d | 47d73df4f6a71c7d72ceb9e125b67b51e6f59026 | /ibas.initialfantasy/src/main/java/org/colorcoding/ibas/initialfantasy/bo/privilege/IdentityPrivilege.java | e46a13c3e559d2b7a69fc033b3a71b96d8617105 | [
"Apache-2.0"
] | permissive | color-coding/ibas.initialfantasy | efb32450167525895265813c0b97555198bc852a | 2f33b6637378f5bedc578c3628c21a8cf6aa9c59 | refs/heads/master | 2023-08-19T08:16:44.724648 | 2023-08-14T08:01:48 | 2023-08-14T08:01:48 | 81,448,808 | 1 | 119 | Apache-2.0 | 2023-01-18T07:08:55 | 2017-02-09T12:38:05 | TypeScript | UTF-8 | Java | false | false | 18,411 | java | package org.colorcoding.ibas.initialfantasy.bo.privilege;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import org.colorcoding.ibas.bobas.bo.BusinessObject;
import org.colorcoding.ibas.bobas.core.IPropertyInfo;
import org.colorcoding.ibas.bobas.data.DateTime;
import org.colorcoding.ibas.bobas.data.emAuthoriseType;
import org.colorcoding.ibas.bobas.data.emYesNo;
import org.colorcoding.ibas.bobas.mapping.BusinessObjectUnit;
import org.colorcoding.ibas.bobas.mapping.DbField;
import org.colorcoding.ibas.bobas.mapping.DbFieldType;
import org.colorcoding.ibas.initialfantasy.MyConfiguration;
/**
* 身份权限
*
*/
@XmlAccessorType(XmlAccessType.NONE)
@XmlType(name = IdentityPrivilege.BUSINESS_OBJECT_NAME, namespace = MyConfiguration.NAMESPACE_BO)
@XmlRootElement(name = IdentityPrivilege.BUSINESS_OBJECT_NAME, namespace = MyConfiguration.NAMESPACE_BO)
@BusinessObjectUnit(code = IdentityPrivilege.BUSINESS_OBJECT_CODE)
public class IdentityPrivilege extends BusinessObject<IdentityPrivilege> implements IIdentityPrivilege {
/**
* 序列化版本标记
*/
private static final long serialVersionUID = -4271974320866895679L;
/**
* 当前类型
*/
private static final Class<?> MY_CLASS = IdentityPrivilege.class;
/**
* 数据库表
*/
public static final String DB_TABLE_NAME = "${Company}_SYS_PRIVILEGE1";
/**
* 业务对象编码
*/
public static final String BUSINESS_OBJECT_CODE = "${Company}_SYS_IDENTPRIVILEGE";
/**
* 业务对象名称
*/
public static final String BUSINESS_OBJECT_NAME = "IdentityPrivilege";
/**
* 属性名称-角色标识
*/
private static final String PROPERTY_ROLECODE_NAME = "RoleCode";
/**
* 角色标识 属性
*/
@DbField(name = "RoleCode", type = DbFieldType.ALPHANUMERIC, table = DB_TABLE_NAME, uniqueKey = true)
public static final IPropertyInfo<String> PROPERTY_ROLECODE = registerProperty(PROPERTY_ROLECODE_NAME, String.class,
MY_CLASS);
/**
* 获取-角色标识
*
* @return 值
*/
@XmlElement(name = PROPERTY_ROLECODE_NAME)
public final String getRoleCode() {
return this.getProperty(PROPERTY_ROLECODE);
}
/**
* 设置-角色标识
*
* @param value 值
*/
public final void setRoleCode(String value) {
this.setProperty(PROPERTY_ROLECODE, value);
}
/**
* 属性名称-平台标识
*/
private static final String PROPERTY_PLATFORMID_NAME = "PlatformId";
/**
* 平台标识 属性
*/
@DbField(name = "PlatformId", type = DbFieldType.ALPHANUMERIC, table = DB_TABLE_NAME, uniqueKey = true)
public static final IPropertyInfo<String> PROPERTY_PLATFORMID = registerProperty(PROPERTY_PLATFORMID_NAME,
String.class, MY_CLASS);
/**
* 获取-平台标识
*
* @return 值
*/
@XmlElement(name = PROPERTY_PLATFORMID_NAME)
public final String getPlatformId() {
return this.getProperty(PROPERTY_PLATFORMID);
}
/**
* 设置-平台标识
*
* @param value 值
*/
public final void setPlatformId(String value) {
this.setProperty(PROPERTY_PLATFORMID, value);
}
/**
* 属性名称-模块标识
*/
private static final String PROPERTY_MODULEID_NAME = "ModuleId";
/**
* 模块标识 属性
*/
@DbField(name = "ModuleId", type = DbFieldType.ALPHANUMERIC, table = DB_TABLE_NAME, uniqueKey = true)
public static final IPropertyInfo<String> PROPERTY_MODULEID = registerProperty(PROPERTY_MODULEID_NAME, String.class,
MY_CLASS);
/**
* 获取-模块标识
*
* @return 值
*/
@XmlElement(name = PROPERTY_MODULEID_NAME)
public final String getModuleId() {
return this.getProperty(PROPERTY_MODULEID);
}
/**
* 设置-模块标识
*
* @param value 值
*/
public final void setModuleId(String value) {
this.setProperty(PROPERTY_MODULEID, value);
}
/**
* 属性名称-目标标识
*/
private static final String PROPERTY_TARGET_NAME = "Target";
/**
* 目标标识 属性
*/
@DbField(name = "Target", type = DbFieldType.ALPHANUMERIC, table = DB_TABLE_NAME, uniqueKey = true)
public static final IPropertyInfo<String> PROPERTY_TARGET = registerProperty(PROPERTY_TARGET_NAME, String.class,
MY_CLASS);
/**
* 获取-目标标识
*
* @return 值
*/
@XmlElement(name = PROPERTY_TARGET_NAME)
public final String getTarget() {
return this.getProperty(PROPERTY_TARGET);
}
/**
* 设置-目标标识
*
* @param value 值
*/
public final void setTarget(String value) {
this.setProperty(PROPERTY_TARGET, value);
}
/**
* 属性名称-是否可用
*/
private static final String PROPERTY_ACTIVATED_NAME = "Activated";
/**
* 是否可用 属性
*/
@DbField(name = "Activated", type = DbFieldType.ALPHANUMERIC, table = DB_TABLE_NAME, primaryKey = false)
public static final IPropertyInfo<emYesNo> PROPERTY_ACTIVATED = registerProperty(PROPERTY_ACTIVATED_NAME,
emYesNo.class, MY_CLASS);
/**
* 获取-是否可用
*
* @return 值
*/
@XmlElement(name = PROPERTY_ACTIVATED_NAME)
public final emYesNo getActivated() {
return this.getProperty(PROPERTY_ACTIVATED);
}
/**
* 设置-是否可用
*
* @param value 值
*/
public final void setActivated(emYesNo value) {
this.setProperty(PROPERTY_ACTIVATED, value);
}
/**
* 属性名称-身份标识
*/
private static final String PROPERTY_IDENTITYCODE_NAME = "IdentityCode";
/**
* 身份标识 属性
*/
@DbField(name = "IdentityCode", type = DbFieldType.ALPHANUMERIC, table = DB_TABLE_NAME, uniqueKey = true)
public static final IPropertyInfo<String> PROPERTY_IDENTITYCODE = registerProperty(PROPERTY_IDENTITYCODE_NAME,
String.class, MY_CLASS);
/**
* 获取-身份标识
*
* @return 值
*/
@XmlElement(name = PROPERTY_IDENTITYCODE_NAME)
public final String getIdentityCode() {
return this.getProperty(PROPERTY_IDENTITYCODE);
}
/**
* 设置-身份标识
*
* @param value 值
*/
public final void setIdentityCode(String value) {
this.setProperty(PROPERTY_IDENTITYCODE, value);
}
/**
* 属性名称-权限类型
*/
private static final String PROPERTY_AUTHORISEVALUE_NAME = "AuthoriseValue";
/**
* 权限类型 属性
*/
@DbField(name = "AuthValue", type = DbFieldType.ALPHANUMERIC, table = DB_TABLE_NAME, primaryKey = false)
public static final IPropertyInfo<emAuthoriseType> PROPERTY_AUTHORISEVALUE = registerProperty(
PROPERTY_AUTHORISEVALUE_NAME, emAuthoriseType.class, MY_CLASS);
/**
* 获取-权限类型
*
* @return 值
*/
@XmlElement(name = PROPERTY_AUTHORISEVALUE_NAME)
public final emAuthoriseType getAuthoriseValue() {
return this.getProperty(PROPERTY_AUTHORISEVALUE);
}
/**
* 设置-权限类型
*
* @param value 值
*/
public final void setAuthoriseValue(emAuthoriseType value) {
this.setProperty(PROPERTY_AUTHORISEVALUE, value);
}
/**
* 属性名称-自动运行
*/
private static final String PROPERTY_AUTOMATIC_NAME = "Automatic";
/**
* 自动运行 属性
*/
@DbField(name = "Automatic", type = DbFieldType.ALPHANUMERIC, table = DB_TABLE_NAME, primaryKey = false)
public static final IPropertyInfo<emYesNo> PROPERTY_AUTOMATIC = registerProperty(PROPERTY_AUTOMATIC_NAME,
emYesNo.class, MY_CLASS);
/**
* 获取-自动运行
*
* @return 值
*/
@XmlElement(name = PROPERTY_AUTOMATIC_NAME)
public final emYesNo getAutomatic() {
return this.getProperty(PROPERTY_AUTOMATIC);
}
/**
* 设置-自动运行
*
* @param value 值
*/
public final void setAutomatic(emYesNo value) {
this.setProperty(PROPERTY_AUTOMATIC, value);
}
/**
* 属性名称-对象编号
*/
private static final String PROPERTY_OBJECTKEY_NAME = "ObjectKey";
/**
* 对象编号 属性
*/
@DbField(name = "ObjectKey", type = DbFieldType.NUMERIC, table = DB_TABLE_NAME, primaryKey = true)
public static final IPropertyInfo<Integer> PROPERTY_OBJECTKEY = registerProperty(PROPERTY_OBJECTKEY_NAME,
Integer.class, MY_CLASS);
/**
* 获取-对象编号
*
* @return 值
*/
@XmlElement(name = PROPERTY_OBJECTKEY_NAME)
public final Integer getObjectKey() {
return this.getProperty(PROPERTY_OBJECTKEY);
}
/**
* 设置-对象编号
*
* @param value 值
*/
public final void setObjectKey(Integer value) {
this.setProperty(PROPERTY_OBJECTKEY, value);
}
/**
* 属性名称-对象类型
*/
private static final String PROPERTY_OBJECTCODE_NAME = "ObjectCode";
/**
* 对象类型 属性
*/
@DbField(name = "ObjectCode", type = DbFieldType.ALPHANUMERIC, table = DB_TABLE_NAME, primaryKey = false)
public static final IPropertyInfo<String> PROPERTY_OBJECTCODE = registerProperty(PROPERTY_OBJECTCODE_NAME,
String.class, MY_CLASS);
/**
* 获取-对象类型
*
* @return 值
*/
@XmlElement(name = PROPERTY_OBJECTCODE_NAME)
public final String getObjectCode() {
return this.getProperty(PROPERTY_OBJECTCODE);
}
/**
* 设置-对象类型
*
* @param value 值
*/
public final void setObjectCode(String value) {
this.setProperty(PROPERTY_OBJECTCODE, value);
}
/**
* 属性名称-创建日期
*/
private static final String PROPERTY_CREATEDATE_NAME = "CreateDate";
/**
* 创建日期 属性
*/
@DbField(name = "CreateDate", type = DbFieldType.DATE, table = DB_TABLE_NAME, primaryKey = false)
public static final IPropertyInfo<DateTime> PROPERTY_CREATEDATE = registerProperty(PROPERTY_CREATEDATE_NAME,
DateTime.class, MY_CLASS);
/**
* 获取-创建日期
*
* @return 值
*/
@XmlElement(name = PROPERTY_CREATEDATE_NAME)
public final DateTime getCreateDate() {
return this.getProperty(PROPERTY_CREATEDATE);
}
/**
* 设置-创建日期
*
* @param value 值
*/
public final void setCreateDate(DateTime value) {
this.setProperty(PROPERTY_CREATEDATE, value);
}
/**
* 属性名称-创建时间
*/
private static final String PROPERTY_CREATETIME_NAME = "CreateTime";
/**
* 创建时间 属性
*/
@DbField(name = "CreateTime", type = DbFieldType.NUMERIC, table = DB_TABLE_NAME, primaryKey = false)
public static final IPropertyInfo<Short> PROPERTY_CREATETIME = registerProperty(PROPERTY_CREATETIME_NAME,
Short.class, MY_CLASS);
/**
* 获取-创建时间
*
* @return 值
*/
@XmlElement(name = PROPERTY_CREATETIME_NAME)
public final Short getCreateTime() {
return this.getProperty(PROPERTY_CREATETIME);
}
/**
* 设置-创建时间
*
* @param value 值
*/
public final void setCreateTime(Short value) {
this.setProperty(PROPERTY_CREATETIME, value);
}
/**
* 属性名称-修改日期
*/
private static final String PROPERTY_UPDATEDATE_NAME = "UpdateDate";
/**
* 修改日期 属性
*/
@DbField(name = "UpdateDate", type = DbFieldType.DATE, table = DB_TABLE_NAME, primaryKey = false)
public static final IPropertyInfo<DateTime> PROPERTY_UPDATEDATE = registerProperty(PROPERTY_UPDATEDATE_NAME,
DateTime.class, MY_CLASS);
/**
* 获取-修改日期
*
* @return 值
*/
@XmlElement(name = PROPERTY_UPDATEDATE_NAME)
public final DateTime getUpdateDate() {
return this.getProperty(PROPERTY_UPDATEDATE);
}
/**
* 设置-修改日期
*
* @param value 值
*/
public final void setUpdateDate(DateTime value) {
this.setProperty(PROPERTY_UPDATEDATE, value);
}
/**
* 属性名称-修改时间
*/
private static final String PROPERTY_UPDATETIME_NAME = "UpdateTime";
/**
* 修改时间 属性
*/
@DbField(name = "UpdateTime", type = DbFieldType.NUMERIC, table = DB_TABLE_NAME, primaryKey = false)
public static final IPropertyInfo<Short> PROPERTY_UPDATETIME = registerProperty(PROPERTY_UPDATETIME_NAME,
Short.class, MY_CLASS);
/**
* 获取-修改时间
*
* @return 值
*/
@XmlElement(name = PROPERTY_UPDATETIME_NAME)
public final Short getUpdateTime() {
return this.getProperty(PROPERTY_UPDATETIME);
}
/**
* 设置-修改时间
*
* @param value 值
*/
public final void setUpdateTime(Short value) {
this.setProperty(PROPERTY_UPDATETIME, value);
}
/**
* 属性名称-实例号(版本)
*/
private static final String PROPERTY_LOGINST_NAME = "LogInst";
/**
* 实例号(版本) 属性
*/
@DbField(name = "LogInst", type = DbFieldType.NUMERIC, table = DB_TABLE_NAME, primaryKey = false)
public static final IPropertyInfo<Integer> PROPERTY_LOGINST = registerProperty(PROPERTY_LOGINST_NAME, Integer.class,
MY_CLASS);
/**
* 获取-实例号(版本)
*
* @return 值
*/
@XmlElement(name = PROPERTY_LOGINST_NAME)
public final Integer getLogInst() {
return this.getProperty(PROPERTY_LOGINST);
}
/**
* 设置-实例号(版本)
*
* @param value 值
*/
public final void setLogInst(Integer value) {
this.setProperty(PROPERTY_LOGINST, value);
}
/**
* 属性名称-服务系列
*/
private static final String PROPERTY_SERIES_NAME = "Series";
/**
* 服务系列 属性
*/
@DbField(name = "Series", type = DbFieldType.NUMERIC, table = DB_TABLE_NAME, primaryKey = false)
public static final IPropertyInfo<Integer> PROPERTY_SERIES = registerProperty(PROPERTY_SERIES_NAME, Integer.class,
MY_CLASS);
/**
* 获取-服务系列
*
* @return 值
*/
@XmlElement(name = PROPERTY_SERIES_NAME)
public final Integer getSeries() {
return this.getProperty(PROPERTY_SERIES);
}
/**
* 设置-服务系列
*
* @param value 值
*/
public final void setSeries(Integer value) {
this.setProperty(PROPERTY_SERIES, value);
}
/**
* 属性名称-数据源
*/
private static final String PROPERTY_DATASOURCE_NAME = "DataSource";
/**
* 数据源 属性
*/
@DbField(name = "DataSource", type = DbFieldType.ALPHANUMERIC, table = DB_TABLE_NAME, primaryKey = false)
public static final IPropertyInfo<String> PROPERTY_DATASOURCE = registerProperty(PROPERTY_DATASOURCE_NAME,
String.class, MY_CLASS);
/**
* 获取-数据源
*
* @return 值
*/
@XmlElement(name = PROPERTY_DATASOURCE_NAME)
public final String getDataSource() {
return this.getProperty(PROPERTY_DATASOURCE);
}
/**
* 设置-数据源
*
* @param value 值
*/
public final void setDataSource(String value) {
this.setProperty(PROPERTY_DATASOURCE, value);
}
/**
* 属性名称-创建用户
*/
private static final String PROPERTY_CREATEUSERSIGN_NAME = "CreateUserSign";
/**
* 创建用户 属性
*/
@DbField(name = "Creator", type = DbFieldType.NUMERIC, table = DB_TABLE_NAME, primaryKey = false)
public static final IPropertyInfo<Integer> PROPERTY_CREATEUSERSIGN = registerProperty(PROPERTY_CREATEUSERSIGN_NAME,
Integer.class, MY_CLASS);
/**
* 获取-创建用户
*
* @return 值
*/
@XmlElement(name = PROPERTY_CREATEUSERSIGN_NAME)
public final Integer getCreateUserSign() {
return this.getProperty(PROPERTY_CREATEUSERSIGN);
}
/**
* 设置-创建用户
*
* @param value 值
*/
public final void setCreateUserSign(Integer value) {
this.setProperty(PROPERTY_CREATEUSERSIGN, value);
}
/**
* 属性名称-修改用户
*/
private static final String PROPERTY_UPDATEUSERSIGN_NAME = "UpdateUserSign";
/**
* 修改用户 属性
*/
@DbField(name = "Updator", type = DbFieldType.NUMERIC, table = DB_TABLE_NAME, primaryKey = false)
public static final IPropertyInfo<Integer> PROPERTY_UPDATEUSERSIGN = registerProperty(PROPERTY_UPDATEUSERSIGN_NAME,
Integer.class, MY_CLASS);
/**
* 获取-修改用户
*
* @return 值
*/
@XmlElement(name = PROPERTY_UPDATEUSERSIGN_NAME)
public final Integer getUpdateUserSign() {
return this.getProperty(PROPERTY_UPDATEUSERSIGN);
}
/**
* 设置-修改用户
*
* @param value 值
*/
public final void setUpdateUserSign(Integer value) {
this.setProperty(PROPERTY_UPDATEUSERSIGN, value);
}
/**
* 属性名称-创建动作标识
*/
private static final String PROPERTY_CREATEACTIONID_NAME = "CreateActionId";
/**
* 创建动作标识 属性
*/
@DbField(name = "CreateActId", type = DbFieldType.ALPHANUMERIC, table = DB_TABLE_NAME, primaryKey = false)
public static final IPropertyInfo<String> PROPERTY_CREATEACTIONID = registerProperty(PROPERTY_CREATEACTIONID_NAME,
String.class, MY_CLASS);
/**
* 获取-创建动作标识
*
* @return 值
*/
@XmlElement(name = PROPERTY_CREATEACTIONID_NAME)
public final String getCreateActionId() {
return this.getProperty(PROPERTY_CREATEACTIONID);
}
/**
* 设置-创建动作标识
*
* @param value 值
*/
public final void setCreateActionId(String value) {
this.setProperty(PROPERTY_CREATEACTIONID, value);
}
/**
* 属性名称-更新动作标识
*/
private static final String PROPERTY_UPDATEACTIONID_NAME = "UpdateActionId";
/**
* 更新动作标识 属性
*/
@DbField(name = "UpdateActId", type = DbFieldType.ALPHANUMERIC, table = DB_TABLE_NAME, primaryKey = false)
public static final IPropertyInfo<String> PROPERTY_UPDATEACTIONID = registerProperty(PROPERTY_UPDATEACTIONID_NAME,
String.class, MY_CLASS);
/**
* 获取-更新动作标识
*
* @return 值
*/
@XmlElement(name = PROPERTY_UPDATEACTIONID_NAME)
public final String getUpdateActionId() {
return this.getProperty(PROPERTY_UPDATEACTIONID);
}
/**
* 设置-更新动作标识
*
* @param value 值
*/
public final void setUpdateActionId(String value) {
this.setProperty(PROPERTY_UPDATEACTIONID, value);
}
/**
* 初始化数据
*/
@Override
protected void initialize() {
super.initialize();// 基类初始化,不可去除
this.setObjectCode(MyConfiguration.applyVariables(BUSINESS_OBJECT_CODE));
this.setActivated(emYesNo.YES);
this.setTarget("");
}
}
| [
"niuren.zhu@icloud.com"
] | niuren.zhu@icloud.com |
5e9deda52e89d940e1605206aa4f422cf2a2002f | 4b5152d93b5b6f26e7c1fb06d1a5f5f03e63fd0d | /Лаба 2/WeatherConveyor/src/main/java/ru/sg_muwa/WeatherConveyor/Logger.java | 0612b2d6d8d13e485ee3b332b5927f3912bbfddf | [] | no_license | SGmuwa/Development-of-software-applications-4-semester | 50d97ba59345f1db9298eb9dc336f22d3beb5452 | 6d5d34324036937bd0af324e67b4c17da7b23e81 | refs/heads/master | 2021-04-12T08:40:55.985357 | 2018-05-31T06:38:44 | 2018-05-31T06:38:44 | 126,211,826 | 0 | 0 | null | 2018-05-30T20:26:20 | 2018-03-21T16:52:31 | Java | UTF-8 | Java | false | false | 299 | java | package ru.sg_muwa.WeatherConveyor;
// Класс, который печатает выходные танные.
public class Logger {
// ConcurrentLinkedQueue<Task>
public static <T> void printTasksAndClear(Iterable<T> input) {
for(T elm : input)
System.out.println(elm.toString());
}
}
| [
"motherlode.muwa@gmail.com"
] | motherlode.muwa@gmail.com |
57dcc1391ea254c7a70af9ea7a83ca97fe540daa | c3aaf209571baf0933fe835e0dcb72a2f11cee87 | /src/programs/FibonacciSeries.java | 41fa233fd9bebfe4629536f4bdd2b15aac736464 | [] | no_license | Sandeep0001/JavaTraining | 9d297fb00596b289029dc1a9bc646eda857a1c37 | cecd2f714bda161b35f7422f53ff7ae338ff38b8 | refs/heads/master | 2023-09-01T09:40:44.310674 | 2023-08-25T08:52:06 | 2023-08-25T08:52:06 | 157,348,278 | 1 | 0 | null | 2021-08-29T09:17:43 | 2018-11-13T08:46:19 | Java | UTF-8 | Java | false | false | 280 | java | package programs;
public class FibonacciSeries {
public static void main(String[] args) {
int n = 10, i = 0, j = 1;
System.out.println("First" + n + "terms: ");
for(int k=1;k<n;++k){
System.out.println(i);
int sum = i + j;
i = j;
j = sum;
}
}
}
| [
"is.sandeep7@gmail.com"
] | is.sandeep7@gmail.com |
77411cd681f2338538e7452f48b85dc4ba22907a | c2d709335439879c3403f4a138a28054537f2e3d | /qmetry-integration/src/main/java/org/wso2/www/php/xsd/AttachmentEntity.java | d6e1dc3e74789aca3f368691e5a2271d54b73cfa | [] | no_license | tied/code | 47b3b7d576f6ce36b43f06adecbc687a66e7b4af | 3140ff84812e7d71be214013df4b3a944ca19ea1 | refs/heads/master | 2020-04-23T18:28:10.232443 | 2019-02-12T10:06:23 | 2019-02-12T10:06:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 9,752 | java | /**
* AttachmentEntity.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package org.wso2.www.php.xsd;
public class AttachmentEntity implements java.io.Serializable {
private int attachmentId;
private java.lang.String attachmentFileName;
private java.lang.String attachmentType;
private java.lang.String attachmentdesc;
private int attachmentSize;
private java.lang.String attachmentData;
public AttachmentEntity() {
}
public AttachmentEntity(
int attachmentId,
java.lang.String attachmentFileName,
java.lang.String attachmentType,
java.lang.String attachmentdesc,
int attachmentSize,
java.lang.String attachmentData) {
this.attachmentId = attachmentId;
this.attachmentFileName = attachmentFileName;
this.attachmentType = attachmentType;
this.attachmentdesc = attachmentdesc;
this.attachmentSize = attachmentSize;
this.attachmentData = attachmentData;
}
/**
* Gets the attachmentId value for this AttachmentEntity.
*
* @return attachmentId
*/
public int getAttachmentId() {
return attachmentId;
}
/**
* Sets the attachmentId value for this AttachmentEntity.
*
* @param attachmentId
*/
public void setAttachmentId(int attachmentId) {
this.attachmentId = attachmentId;
}
/**
* Gets the attachmentFileName value for this AttachmentEntity.
*
* @return attachmentFileName
*/
public java.lang.String getAttachmentFileName() {
return attachmentFileName;
}
/**
* Sets the attachmentFileName value for this AttachmentEntity.
*
* @param attachmentFileName
*/
public void setAttachmentFileName(java.lang.String attachmentFileName) {
this.attachmentFileName = attachmentFileName;
}
/**
* Gets the attachmentType value for this AttachmentEntity.
*
* @return attachmentType
*/
public java.lang.String getAttachmentType() {
return attachmentType;
}
/**
* Sets the attachmentType value for this AttachmentEntity.
*
* @param attachmentType
*/
public void setAttachmentType(java.lang.String attachmentType) {
this.attachmentType = attachmentType;
}
/**
* Gets the attachmentdesc value for this AttachmentEntity.
*
* @return attachmentdesc
*/
public java.lang.String getAttachmentdesc() {
return attachmentdesc;
}
/**
* Sets the attachmentdesc value for this AttachmentEntity.
*
* @param attachmentdesc
*/
public void setAttachmentdesc(java.lang.String attachmentdesc) {
this.attachmentdesc = attachmentdesc;
}
/**
* Gets the attachmentSize value for this AttachmentEntity.
*
* @return attachmentSize
*/
public int getAttachmentSize() {
return attachmentSize;
}
/**
* Sets the attachmentSize value for this AttachmentEntity.
*
* @param attachmentSize
*/
public void setAttachmentSize(int attachmentSize) {
this.attachmentSize = attachmentSize;
}
/**
* Gets the attachmentData value for this AttachmentEntity.
*
* @return attachmentData
*/
public java.lang.String getAttachmentData() {
return attachmentData;
}
/**
* Sets the attachmentData value for this AttachmentEntity.
*
* @param attachmentData
*/
public void setAttachmentData(java.lang.String attachmentData) {
this.attachmentData = attachmentData;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof AttachmentEntity)) return false;
AttachmentEntity other = (AttachmentEntity) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
this.attachmentId == other.getAttachmentId() &&
((this.attachmentFileName==null && other.getAttachmentFileName()==null) ||
(this.attachmentFileName!=null &&
this.attachmentFileName.equals(other.getAttachmentFileName()))) &&
((this.attachmentType==null && other.getAttachmentType()==null) ||
(this.attachmentType!=null &&
this.attachmentType.equals(other.getAttachmentType()))) &&
((this.attachmentdesc==null && other.getAttachmentdesc()==null) ||
(this.attachmentdesc!=null &&
this.attachmentdesc.equals(other.getAttachmentdesc()))) &&
this.attachmentSize == other.getAttachmentSize() &&
((this.attachmentData==null && other.getAttachmentData()==null) ||
(this.attachmentData!=null &&
this.attachmentData.equals(other.getAttachmentData())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
_hashCode += getAttachmentId();
if (getAttachmentFileName() != null) {
_hashCode += getAttachmentFileName().hashCode();
}
if (getAttachmentType() != null) {
_hashCode += getAttachmentType().hashCode();
}
if (getAttachmentdesc() != null) {
_hashCode += getAttachmentdesc().hashCode();
}
_hashCode += getAttachmentSize();
if (getAttachmentData() != null) {
_hashCode += getAttachmentData().hashCode();
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(AttachmentEntity.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.wso2.org/php/xsd", "AttachmentEntity"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("attachmentId");
elemField.setXmlName(new javax.xml.namespace.QName("http://www.wso2.org/php/xsd", "attachmentId"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("attachmentFileName");
elemField.setXmlName(new javax.xml.namespace.QName("http://www.wso2.org/php/xsd", "attachmentFileName"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("attachmentType");
elemField.setXmlName(new javax.xml.namespace.QName("http://www.wso2.org/php/xsd", "attachmentType"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("attachmentdesc");
elemField.setXmlName(new javax.xml.namespace.QName("http://www.wso2.org/php/xsd", "attachmentdesc"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("attachmentSize");
elemField.setXmlName(new javax.xml.namespace.QName("http://www.wso2.org/php/xsd", "attachmentSize"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("attachmentData");
elemField.setXmlName(new javax.xml.namespace.QName("http://www.wso2.org/php/xsd", "attachmentData"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanSerializer(
_javaType, _xmlType, typeDesc);
}
/**
* Get Custom Deserializer
*/
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
| [
"janmejaya.padhiary@ness.com"
] | janmejaya.padhiary@ness.com |
9a1123247e3cbfe5310ed9e933482c28ed8148fb | db80a347e0c01d20a1b137d9326c4910dae0d78b | /src/MainUI.java | 1ffd727dcbabf554901a0db23cdc433443fe4f3d | [] | no_license | Vulcan5237/Project1 | a34aaa683b3f91b71a37983386ef45ce6679277c | 727d1cfaca580e7eeebd030efb9ecdbf288005e6 | refs/heads/master | 2020-08-15T23:56:20.424461 | 2019-10-16T01:18:40 | 2019-10-16T01:18:40 | 215,413,364 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,869 | java | import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class MainUI {
public JFrame view;
public JButton btnAddProduct = new JButton("Add New Product");
public JButton btnAddCustomer = new JButton("Add New Customer");
public JButton btnAddPurchase = new JButton("Add New Purchase");
public MainUI() {
this.view = new JFrame();
view.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
view.setTitle("Store Management System");
view.setSize(1000, 600);
view.getContentPane().setLayout(new BoxLayout(view.getContentPane(), BoxLayout.PAGE_AXIS));
JLabel title = new JLabel("Store Management System");
title.setFont (title.getFont ().deriveFont (24.0f));
view.getContentPane().add(title);
JPanel panelButtons = new JPanel(new FlowLayout());
panelButtons.add(btnAddProduct);
panelButtons.add(btnAddCustomer);
panelButtons.add(btnAddPurchase);
view.getContentPane().add(panelButtons);
btnAddProduct.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent actionEvent) {
AddProductUI ac = new AddProductUI();
ac.run();
}
});
btnAddPurchase.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent actionEvent) {
AddPurchaseUI ap = new AddPurchaseUI();
ap.run();
}
});
btnAddCustomer.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent actionEvent) {
AddCustomerUI acust = new AddCustomerUI();
acust.run();
}
});
}
}
| [
"noreply@github.com"
] | noreply@github.com |
61e8b9604237f0e2da454c1793616e7c2cd7897f | fa91450deb625cda070e82d5c31770be5ca1dec6 | /Diff-Raw-Data/15/15_81a81dbc826958acc3fc71d33326d43c150bdb53/ExecuteCommand/15_81a81dbc826958acc3fc71d33326d43c150bdb53_ExecuteCommand_t.java | b24cb9180c430c7734601352b2d32db36fce787c | [] | 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 | 5,858 | java | package net.i2cat.mantychore.queuemanager.shell;
import java.util.List;
import net.i2cat.mantychore.queuemanager.QueueManager;
import org.apache.felix.gogo.commands.Argument;
import org.apache.felix.gogo.commands.Command;
import org.apache.felix.gogo.commands.Option;
import org.opennaas.core.resources.IResource;
import org.opennaas.core.resources.IResourceIdentifier;
import org.opennaas.core.resources.IResourceManager;
import org.opennaas.core.resources.action.ActionResponse;
import org.opennaas.core.resources.capability.ICapability;
import org.opennaas.core.resources.command.Response;
import org.opennaas.core.resources.queue.QueueConstants;
import org.opennaas.core.resources.queue.QueueResponse;
import org.opennaas.core.resources.shell.GenericKarafCommand;
@Command(scope = "queue", name = "execute", description = "Execute all actions in queue")
public class ExecuteCommand extends GenericKarafCommand {
@Argument(index = 0, name = "resourceType:resourceName", description = "Name of the resource owning the queue", required = true, multiValued = false)
private String resourceId;
@Option(name = "--debug", aliases = { "-d" }, description = "Print execution data verbosely.")
private boolean debug;
@Override
protected Object doExecute() throws Exception {
printInitCommand("Execute all actions in queue");
ICapability queue;
try {
IResourceManager manager = getResourceManager();
String[] argsRouterName = new String[2];
try {
argsRouterName = splitResourceName(resourceId);
} catch (Exception e) {
printError(e.getMessage());
printEndCommand();
return -1;
}
IResourceIdentifier resourceIdentifier = null;
resourceIdentifier = manager.getIdentifierFromResourceName(argsRouterName[0], argsRouterName[1]);
/* validate resource identifier */
if (resourceIdentifier == null) {
printError("Could not get resource with name: " + argsRouterName[0] + ":" + argsRouterName[1]);
printEndCommand();
return -1;
}
IResource resource = manager.getResource(resourceIdentifier);
validateResource(resource);
queue = getCapability(resource.getCapabilities(), QueueManager.QUEUE);
if (queue == null) {
printError("Could not found capability " + QueueManager.QUEUE + " in resource " + resourceId);
return -1;
}
} catch (Exception e) {
printError("Error getting queue.");
printError(e);
printEndCommand();
return -1;
}
try{
printSymbol("Executing actions...");
QueueResponse queueResponse = (QueueResponse) queue.sendMessage(QueueConstants.EXECUTE, null);
printSymbol("Executed in " + queueResponse.getTotalTime() + " ms");
if (debug) {
printDebug(queueResponse);
} else {
printOverview(queueResponse);
}
} catch (Exception e) {
printError("Error executing queue.");
printError(e);
printEndCommand();
return -1;
}
printEndCommand();
return null;
}
private void printDebug(QueueResponse queueResponse) {
if (queueResponse.getRestoreResponse().getStatus() != ActionResponse.STATUS.PENDING) {
printSymbol("WARNING IT WAS NECESARY TO RESTORE THE CONFIGURATION!!");
printActionResponseExtended(queueResponse.restoreResponse);
}
newLine();
printActionResponseExtended(queueResponse.getPrepareResponse());
newLine();
for (ActionResponse actionResponse : queueResponse.getResponses()) {
printActionResponseExtended(actionResponse);
newLine();
}
printActionResponseExtended(queueResponse.getConfirmResponse());
printActionResponseExtended(queueResponse.getRefreshResponse());
}
private void printOverview(QueueResponse queueResponse) {
if (queueResponse.getRestoreResponse().getStatus() != ActionResponse.STATUS.PENDING) {
printSymbol("WARNING IT WAS NECESARY TO RESTORE THE CONFIGURATION!!");
printActionResponseBrief(queueResponse.restoreResponse);
}
newLine();
printActionResponseBrief(queueResponse.getPrepareResponse());
newLine();
for (ActionResponse actionResponse : queueResponse.getResponses()) {
printActionResponseBrief(actionResponse);
newLine();
}
printActionResponseBrief(queueResponse.getConfirmResponse());
printActionResponseBrief(queueResponse.getRefreshResponse());
}
private void printActionResponseBrief(ActionResponse actionResponse) {
printSymbol("--- actionid: " + actionResponse.getActionID() + ", status: " + actionResponse.getStatus() + " ---");
List<Response> responses = actionResponse.getResponses();
/* create new action */
String[] titles = { "Command Name", "Status" };
String[][] matrix = new String[responses.size()][2];
int num = 0;
for (Response response : responses) {
String commandName = response.getCommandName();
String params[] = { commandName, response.getStatus().toString() };
matrix[num] = params;
num++;
}
super.printTable(titles, matrix, -1);
}
private void printActionResponseExtended(ActionResponse actionResponse) {
printSymbol("--- actionid: " + actionResponse.getActionID() + ", status: " + actionResponse.getStatus() + " ---");
List<Response> responses = actionResponse.getResponses();
/* create new action */
for (Response response : responses) {
printSymbol("Command: " + response.getCommandName());
printSymbol("Status: " + response.getStatus().toString());
printSymbol("Message: " + response.getSentMessage());
printSymbol("Information: " + response.getInformation());
for (String error: response.getErrors()){
printSymbol("Error: " + error);
}
newSeparator();
}
}
}
| [
"yuzhongxing88@gmail.com"
] | yuzhongxing88@gmail.com |
568c430fe442b9072de1c54c8773f7e01a50baac | 9ad01a124c2453ff473f76747ea6a8437e71b81a | /automation/src/test/java/test/module/framework/tests/functional/MavenRunnerTest.java | 94bbe3199bb4a2a2b8e4473451bad32cfada0f02 | [
"MIT"
] | permissive | jagadeeshshetty/Autonomx | 1de629b887f38f957b4d42b65db2c6ba8728e216 | e31526bf3cd16782c8f5a873168816001d547498 | refs/heads/master | 2023-04-04T15:49:50.557331 | 2021-04-11T23:22:34 | 2021-04-11T23:22:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,170 | java | package test.module.framework.tests.functional;
import java.io.File;
import org.apache.commons.io.FileUtils;
import org.testng.annotations.Test;
import configManager.ConfigVariable;
import core.helpers.Helper;
import core.support.annotation.helper.utils.MavenCommandRunner;
import test.module.framework.TestBase;
public class MavenRunnerTest extends TestBase {
@Test(priority=1)
public void verifyMavenDownload() throws Exception {
MavenCommandRunner.MAVEN_PATH = "";
File mavenDestination = new File(MavenCommandRunner.MAVEN_DOWNLOAD_DESTINATION);
FileUtils.deleteDirectory(mavenDestination);
MavenCommandRunner.downloadMavenIfNotExist();
File mavenFile = MavenCommandRunner.verifyAndGetMavenHomePath();
Helper.assertTrue("maven destination not found", mavenFile.exists());
File mavenHome = new File(mavenFile.getAbsolutePath() + "/bin");
Helper.assertTrue("maven destination not found at " + mavenHome.getAbsolutePath(), mavenHome.exists());
}
@Test(dependsOnMethods = "verifyMavenDownload", priority=2)
public void verifyMavenPathFromConfig() throws Exception {
MavenCommandRunner.MAVEN_PATH = "";
// download maven to utils folder
MavenCommandRunner.downloadMavenIfNotExist();
File mavenFile = MavenCommandRunner.verifyAndGetMavenHomePath();
MavenCommandRunner.MAVEN_PATH = "";
// set config path
ConfigVariable.mavenHome().setValue(mavenFile.getAbsolutePath());
MavenCommandRunner.setMavenPathFromConfig();
Helper.assertEquals(mavenFile.getAbsolutePath(), MavenCommandRunner.MAVEN_PATH);
}
@Test()
public void verifyMavenPathFromCommandLine() throws Exception {
MavenCommandRunner.MAVEN_PATH = "";
MavenCommandRunner.setMavenPath();
// maven path could return empty. TODO: find way to get consistent return from command line
if(MavenCommandRunner.MAVEN_PATH.isEmpty()) return;
Helper.assertTrue("maven path not found: " + MavenCommandRunner.MAVEN_PATH, MavenCommandRunner.MAVEN_PATH.contains("maven"));
File mavenFolder = new File(MavenCommandRunner.MAVEN_PATH);
Helper.assertTrue("maven folder not found: " + MavenCommandRunner.MAVEN_PATH, mavenFolder.exists());
}
}
| [
"ehsan.matean@fortify.pro"
] | ehsan.matean@fortify.pro |
41c0dc1c2481eb7f13a55bb38524641e40ab6cb0 | fa91450deb625cda070e82d5c31770be5ca1dec6 | /Diff-Raw-Data/8/8_a4017503ac1ee03d97f0db1253934d0852d1658a/CallFeaturesSetting/8_a4017503ac1ee03d97f0db1253934d0852d1658a_CallFeaturesSetting_s.java | 73548b464777d8f3d4a20891b6a060c1ecbb7800 | [] | 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 | 34,796 | java | /*
* Copyright (C) 2008 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.phone;
import com.android.internal.telephony.Phone;
import com.android.internal.telephony.PhoneFactory;
import com.android.internal.telephony.cdma.TtyIntent;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.database.Cursor;
import android.media.AudioManager;
import android.os.AsyncResult;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.preference.CheckBoxPreference;
import android.preference.ListPreference;
import android.preference.Preference;
import android.preference.PreferenceActivity;
import android.preference.PreferenceScreen;
import android.provider.Contacts.PhonesColumns;
import android.provider.Settings;
import android.text.TextUtils;
import android.util.Log;
import android.view.WindowManager;
import android.widget.ListAdapter;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class CallFeaturesSetting extends PreferenceActivity
implements DialogInterface.OnClickListener,
Preference.OnPreferenceChangeListener,
EditPhoneNumberPreference.OnDialogClosedListener,
EditPhoneNumberPreference.GetDefaultNumberListener{
// intent action to bring up voice mail settings
public static final String ACTION_ADD_VOICEMAIL =
"com.android.phone.CallFeaturesSetting.ADD_VOICEMAIL";
// intent action sent by this activity to a voice mail provider
// to trigger its configuration UI
public static final String ACTION_CONFIGURE_VOICEMAIL =
"com.android.phone.CallFeaturesSetting.CONFIGURE_VOICEMAIL";
// Extra put in the return from VM provider config containing voicemail number to set
public static final String VM_NUMBER_EXTRA = "com.android.phone.VoicemailNumber";
// debug data
private static final String LOG_TAG = "CallFeaturesSetting";
private static final boolean DBG = (PhoneApp.DBG_LEVEL >= 2);
// string constants
private static final String NUM_PROJECTION[] = {PhonesColumns.NUMBER};
// String keys for preference lookup
private static final String BUTTON_VOICEMAIL_KEY = "button_voicemail_key";
private static final String BUTTON_VOICEMAIL_PROVIDER_KEY = "button_voicemail_provider_key";
private static final String BUTTON_VOICEMAIL_SETTING_KEY = "button_voicemail_setting_key";
private static final String BUTTON_FDN_KEY = "button_fdn_key";
private static final String BUTTON_DTMF_KEY = "button_dtmf_settings";
private static final String BUTTON_RETRY_KEY = "button_auto_retry_key";
private static final String BUTTON_TTY_KEY = "button_tty_mode_key";
private static final String BUTTON_HAC_KEY = "button_hac_key";
private static final String BUTTON_GSM_UMTS_OPTIONS = "button_gsm_more_expand_key";
private static final String BUTTON_CDMA_OPTIONS = "button_cdma_more_expand_key";
private Intent mContactListIntent;
/** Event for Async voicemail change call */
private static final int EVENT_VOICEMAIL_CHANGED = 500;
// preferred TTY mode
// Phone.TTY_MODE_xxx
static final int preferredTtyMode = Phone.TTY_MODE_OFF;
// Dtmf tone types
static final int DTMF_TONE_TYPE_NORMAL = 0;
static final int DTMF_TONE_TYPE_LONG = 1;
private static final String HAC_KEY = "HACSetting";
private static final String HAC_VAL_ON = "ON";
private static final String HAC_VAL_OFF = "OFF";
/** Handle to voicemail pref */
private static final int VOICEMAIL_PREF_ID = 1;
private static final int VOICEMAIL_PROVIDER_CFG_ID = 2;
private Phone mPhone;
private AudioManager mAudioManager;
private static final int VM_NOCHANGE_ERROR = 400;
private static final int VM_RESPONSE_ERROR = 500;
// dialog identifiers for voicemail
private static final int VOICEMAIL_DIALOG_CONFIRM = 600;
// status message sent back from handlers
private static final int MSG_OK = 100;
// special statuses for voicemail controls.
private static final int MSG_VM_EXCEPTION = 400;
private static final int MSG_VM_OK = 600;
private static final int MSG_VM_NOCHANGE = 700;
private EditPhoneNumberPreference mSubMenuVoicemailSettings;
private CheckBoxPreference mButtonAutoRetry;
private CheckBoxPreference mButtonHAC;
private ListPreference mButtonDTMF;
private ListPreference mButtonTTY;
private ListPreference mVoicemailProviders;
private PreferenceScreen mVoicemailSettings;
private class VoiceMailProvider {
public VoiceMailProvider(String name, Intent intent) {
this.name = name;
this.intent = intent;
}
public String name;
public Intent intent;
}
/**
* Data about discovered voice mail settings providers.
* Is populated by querying which activities can handle ACTION_CONFIGURE_VOICEMAIL.
* They key in this map is package name + activity name.
* We always add an entry for the default provider with a key of empty
* string and intent value of null.
* @see #initVoiceMailProviders.
*/
private Map<String, VoiceMailProvider> mVMProvidersData =
new HashMap<String, VoiceMailProvider>();
/** string to hold old voicemail number as it is being updated. */
private String mOldVmNumber;
TTYHandler ttyHandler;
/*
* Click Listeners, handle click based on objects attached to UI.
*/
// Click listener for all toggle events
@Override
public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) {
if (preference == mSubMenuVoicemailSettings) {
return true;
} else if (preference == mButtonDTMF) {
return true;
} else if (preference == mButtonTTY) {
return true;
} else if (preference == mButtonAutoRetry) {
android.provider.Settings.System.putInt(mPhone.getContext().getContentResolver(),
android.provider.Settings.System.CALL_AUTO_RETRY,
mButtonAutoRetry.isChecked() ? 1 : 0);
return true;
} else if (preference == mButtonHAC) {
int hac = mButtonHAC.isChecked() ? 1 : 0;
// Update HAC value in Settings database
Settings.System.putInt(mPhone.getContext().getContentResolver(),
Settings.System.HEARING_AID, hac);
// Update HAC Value in AudioManager
mAudioManager.setParameter(HAC_KEY, hac != 0 ? HAC_VAL_ON : HAC_VAL_OFF);
return true;
} else if (preference == mVoicemailSettings) {
if (preference.getIntent() != null) {
this.startActivityForResult(preference.getIntent(), VOICEMAIL_PROVIDER_CFG_ID);
} else {
updateVoiceNumberField();
}
return true;
}
return false;
}
/**
* Implemented to support onPreferenceChangeListener to look for preference
* changes.
*
* @param preference is the preference to be changed
* @param objValue should be the value of the selection, NOT its localized
* display value.
*/
public boolean onPreferenceChange(Preference preference, Object objValue) {
if (preference == mButtonDTMF) {
int index = mButtonDTMF.findIndexOfValue((String) objValue);
Settings.System.putInt(mPhone.getContext().getContentResolver(),
Settings.System.DTMF_TONE_TYPE_WHEN_DIALING, index);
} else if (preference == mButtonTTY) {
handleTTYChange(preference, objValue);
} else if (preference == mVoicemailProviders) {
updateVMPreferenceWidgets((String)objValue);
// If we were called to explicitly configure voice mail then force the user into
// a configuration of the chosen provider right after the chose the provider
if (getIntent().getAction().equals(ACTION_ADD_VOICEMAIL)) {
simulatePreferenceClick(mVoicemailSettings);
}
}
// always let the preference setting proceed.
return true;
}
// Preference click listener invoked on OnDialogClosed for EditPhoneNumberPreference.
public void onDialogClosed(EditPhoneNumberPreference preference, int buttonClicked) {
if (DBG) log("onPreferenceClick: request preference click on dialog close.");
if (preference instanceof EditPhoneNumberPreference) {
EditPhoneNumberPreference epn = preference;
if (epn == mSubMenuVoicemailSettings) {
handleVMBtnClickRequest();
}
}
}
/**
* Implemented for EditPhoneNumberPreference.GetDefaultNumberListener.
* This method set the default values for the various
* EditPhoneNumberPreference dialogs.
*/
public String onGetDefaultNumber(EditPhoneNumberPreference preference) {
if (preference == mSubMenuVoicemailSettings) {
// update the voicemail number field, which takes care of the
// mSubMenuVoicemailSettings itself, so we should return null.
if (DBG) log("updating default for voicemail dialog");
updateVoiceNumberField();
return null;
}
String vmDisplay = mPhone.getVoiceMailNumber();
if (TextUtils.isEmpty(vmDisplay)) {
// if there is no voicemail number, we just return null to
// indicate no contribution.
return null;
}
// Return the voicemail number prepended with "VM: "
if (DBG) log("updating default for call forwarding dialogs");
return getString(R.string.voicemail_abbreviated) + " " + vmDisplay;
}
// override the startsubactivity call to make changes in state consistent.
@Override
public void startActivityForResult(Intent intent, int requestCode) {
if (requestCode == -1) {
// this is an intent requested from the preference framework.
super.startActivityForResult(intent, requestCode);
return;
}
if (DBG) log("startSubActivity: starting requested subactivity");
super.startActivityForResult(intent, requestCode);
}
// asynchronous result call after contacts are selected or after we return from
// a call to the VM settings provider.
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
// there are cases where the contact picker may end up sending us more than one
// request. We want to ignore the request if we're not in the correct state.
if (requestCode == VOICEMAIL_PROVIDER_CFG_ID) {
if (resultCode != RESULT_OK) {
if (DBG) log("onActivityResult: vm provider cfg result not OK.");
return;
}
if (data == null) {
if (DBG) log("onActivityResult: vm provider cfg result has no data");
return;
}
String vmNum = data.getStringExtra(VM_NUMBER_EXTRA);
if (vmNum == null) {
if (DBG) log("onActivityResult: vm provider cfg result has no vmnum");
return;
}
saveVoiceMailNumber(vmNum);
return;
}
if (resultCode != RESULT_OK) {
if (DBG) log("onActivityResult: contact picker result not OK.");
return;
}
Cursor cursor = getContentResolver().query(data.getData(),
NUM_PROJECTION, null, null, null);
if ((cursor == null) || (!cursor.moveToFirst())) {
if (DBG) log("onActivityResult: bad contact data, no results found.");
return;
}
switch (requestCode) {
case VOICEMAIL_PREF_ID:
mSubMenuVoicemailSettings.onPickActivityResult(cursor.getString(0));
break;
default:
// TODO: may need exception here.
}
}
// Voicemail button logic
private void handleVMBtnClickRequest() {
// normally called on the dialog close.
// Since we're stripping the formatting out on the getPhoneNumber()
// call now, we won't need to do so here anymore.
saveVoiceMailNumber(mSubMenuVoicemailSettings.getPhoneNumber());
}
private void saveVoiceMailNumber(String newVMNumber) {
// empty vm number == clearing the vm number ?
if (newVMNumber == null) {
newVMNumber = "";
}
//throw a warning if they are the same.
if (newVMNumber.equals(mOldVmNumber)) {
showVMDialog(MSG_VM_NOCHANGE);
return;
}
// otherwise, set it.
if (DBG) log("save voicemail #: " + newVMNumber);
mPhone.setVoiceMailNumber(
mPhone.getVoiceMailAlphaTag().toString(),
newVMNumber,
Message.obtain(mSetOptionComplete, EVENT_VOICEMAIL_CHANGED));
}
/*
* Callback to handle option update completions
*/
// **Callback on option setting when complete.
private Handler mSetOptionComplete = new Handler() {
@Override
public void handleMessage(Message msg) {
// query to make sure we're looking at the same data as that in the network.
switch (msg.what) {
case EVENT_VOICEMAIL_CHANGED:
handleSetVMMessage((AsyncResult) msg.obj);
break;
default:
// TODO: should never reach this, may want to throw exception
}
}
};
// Voicemail Object
private void handleSetVMMessage(AsyncResult ar) {
if (DBG) {
log("handleSetVMMessage: set VM request complete");
}
if (ar.exception == null) {
if (DBG) log("change VM success!");
showVMDialog(MSG_VM_OK);
} else {
// TODO: may want to check the exception and branch on it.
if (DBG) log("change VM failed!");
showVMDialog(MSG_VM_EXCEPTION);
}
updateVoiceNumberField();
}
/*
* Methods used to sync UI state with that of the network
*/
// update the voicemail number from what we've recorded on the sim.
private void updateVoiceNumberField() {
if (mSubMenuVoicemailSettings == null) {
return;
}
mOldVmNumber = mPhone.getVoiceMailNumber();
if (mOldVmNumber == null) {
mOldVmNumber = "";
}
mSubMenuVoicemailSettings.setPhoneNumber(mOldVmNumber);
final String summary = (mOldVmNumber.length() > 0) ? mOldVmNumber :
getString(R.string.voicemail_number_not_set);
mSubMenuVoicemailSettings.setSummary(summary);
}
/*
* Helper Methods for Activity class.
* The inital query commands are split into two pieces now
* for individual expansion. This combined with the ability
* to cancel queries allows for a much better user experience,
* and also ensures that the user only waits to update the
* data that is relevant.
*/
// dialog creation method, called by showDialog()
@Override
protected Dialog onCreateDialog(int id) {
if ((id == VM_RESPONSE_ERROR) || (id == VM_NOCHANGE_ERROR) ||
(id == VOICEMAIL_DIALOG_CONFIRM)) {
AlertDialog.Builder b = new AlertDialog.Builder(this);
int msgId;
int titleId = R.string.error_updating_title;
switch (id) {
case VOICEMAIL_DIALOG_CONFIRM:
msgId = R.string.vm_changed;
titleId = R.string.voicemail;
// Set Button 2
b.setNegativeButton(R.string.close_dialog, this);
break;
case VM_NOCHANGE_ERROR:
// even though this is technically an error,
// keep the title friendly.
msgId = R.string.no_change;
titleId = R.string.voicemail;
// Set Button 2
b.setNegativeButton(R.string.close_dialog, this);
break;
case VM_RESPONSE_ERROR:
msgId = R.string.vm_change_failed;
// Set Button 1
b.setPositiveButton(R.string.close_dialog, this);
break;
default:
msgId = R.string.exception_error;
// Set Button 3, tells the activity that the error is
// not recoverable on dialog exit.
b.setNeutralButton(R.string.close_dialog, this);
break;
}
b.setTitle(getText(titleId));
b.setMessage(getText(msgId));
b.setCancelable(false);
AlertDialog dialog = b.create();
// make the dialog more obvious by bluring the background.
dialog.getWindow().addFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND);
return dialog;
}
return null;
}
// This is a method implemented for DialogInterface.OnClickListener.
// Used with the error dialog to close the app, voicemail dialog to just dismiss.
// Close button is mapped to BUTTON1 for the errors that close the activity,
// while those that are mapped to 3 only move the preference focus.
public void onClick(DialogInterface dialog, int which) {
dialog.dismiss();
switch (which){
case DialogInterface.BUTTON3:
// Neutral Button, used when we want to cancel expansion.
break;
case DialogInterface.BUTTON1:
// Negative Button
finish();
break;
default:
// If we were called to explicitly configure voice mail then finish here
if (getIntent().getAction().equals(ACTION_ADD_VOICEMAIL)) {
finish();
}
// just let the dialog close and go back to the input
// ready state
// Positive Button
}
}
// set the app state with optional status.
private void showVMDialog(int msgStatus) {
switch (msgStatus) {
case MSG_VM_EXCEPTION:
showDialog(VM_RESPONSE_ERROR);
break;
case MSG_VM_NOCHANGE:
showDialog(VM_NOCHANGE_ERROR);
break;
case MSG_VM_OK:
showDialog(VOICEMAIL_DIALOG_CONFIRM);
break;
case MSG_OK:
default:
// This should never happen.
}
}
/*
* Activity class methods
*/
@Override
protected void onCreate(Bundle icicle) {
super.onCreate(icicle);
mPhone = PhoneFactory.getDefaultPhone();
addPreferencesFromResource(R.xml.call_feature_setting);
mAudioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);
// get buttons
PreferenceScreen prefSet = getPreferenceScreen();
mSubMenuVoicemailSettings = (EditPhoneNumberPreference)findPreference(BUTTON_VOICEMAIL_KEY);
if (mSubMenuVoicemailSettings != null) {
mSubMenuVoicemailSettings.setParentActivity(this, VOICEMAIL_PREF_ID, this);
mSubMenuVoicemailSettings.setDialogOnClosedListener(this);
mSubMenuVoicemailSettings.setDialogTitle(R.string.voicemail_settings_number_label);
}
mButtonDTMF = (ListPreference) findPreference(BUTTON_DTMF_KEY);
mButtonAutoRetry = (CheckBoxPreference) findPreference(BUTTON_RETRY_KEY);
mButtonHAC = (CheckBoxPreference) findPreference(BUTTON_HAC_KEY);
mButtonTTY = (ListPreference) findPreference(BUTTON_TTY_KEY);
mVoicemailProviders = (ListPreference) findPreference(BUTTON_VOICEMAIL_PROVIDER_KEY);
mVoicemailProviders.setOnPreferenceChangeListener(this);
mVoicemailSettings = (PreferenceScreen)findPreference(BUTTON_VOICEMAIL_SETTING_KEY);
initVoiceMailProviders();
if (getResources().getBoolean(R.bool.dtmf_type_enabled)) {
mButtonDTMF.setOnPreferenceChangeListener(this);
} else {
prefSet.removePreference(mButtonDTMF);
mButtonDTMF = null;
}
if (getResources().getBoolean(R.bool.auto_retry_enabled)) {
mButtonAutoRetry.setOnPreferenceChangeListener(this);
} else {
prefSet.removePreference(mButtonAutoRetry);
mButtonAutoRetry = null;
}
if (getResources().getBoolean(R.bool.hac_enabled)) {
mButtonHAC.setOnPreferenceChangeListener(this);
} else {
prefSet.removePreference(mButtonHAC);
mButtonHAC = null;
}
if (getResources().getBoolean(R.bool.tty_enabled)) {
mButtonTTY.setOnPreferenceChangeListener(this);
ttyHandler = new TTYHandler();
} else {
prefSet.removePreference(mButtonTTY);
mButtonTTY = null;
}
if (!getResources().getBoolean(R.bool.world_phone)) {
prefSet.removePreference(prefSet.findPreference(BUTTON_CDMA_OPTIONS));
prefSet.removePreference(prefSet.findPreference(BUTTON_GSM_UMTS_OPTIONS));
if (mPhone.getPhoneName().equals("CDMA")) {
prefSet.removePreference(prefSet.findPreference(BUTTON_FDN_KEY));
addPreferencesFromResource(R.xml.cdma_call_options);
} else {
addPreferencesFromResource(R.xml.gsm_umts_call_options);
}
}
// create intent to bring up contact list
mContactListIntent = new Intent(Intent.ACTION_GET_CONTENT);
mContactListIntent.setType(android.provider.Contacts.Phones.CONTENT_ITEM_TYPE);
// check the intent that started this activity and pop up the voicemail
// dialog if we've been asked to.
// If we have at least one non default VM provider registered then bring up
// the selection for the VM provider, otherwise bring up a VM number dialog.
// We only bring up the dialog the first time we are called (not after orientation change)
if (icicle == null) {
if (getIntent().getAction().equals(ACTION_ADD_VOICEMAIL)) {
if (mVMProvidersData.size() > 1) {
simulatePreferenceClick(mVoicemailProviders);
} else {
mSubMenuVoicemailSettings.showPhoneNumberDialog();
}
}
}
updateVoiceNumberField();
}
@Override
protected void onResume() {
super.onResume();
if (mButtonDTMF != null) {
int dtmf = Settings.System.getInt(getContentResolver(),
Settings.System.DTMF_TONE_TYPE_WHEN_DIALING, DTMF_TONE_TYPE_NORMAL);
mButtonDTMF.setValueIndex(dtmf);
}
if (mButtonAutoRetry != null) {
int autoretry = Settings.System.getInt(getContentResolver(),
Settings.System.CALL_AUTO_RETRY, 0);
mButtonAutoRetry.setChecked(autoretry != 0);
}
if (mButtonHAC != null) {
int hac = Settings.System.getInt(getContentResolver(), Settings.System.HEARING_AID, 0);
mButtonHAC.setChecked(hac != 0);
}
if (mButtonTTY != null) {
mPhone.queryTTYMode(ttyHandler.obtainMessage(TTYHandler.EVENT_TTY_MODE_GET));
}
}
private void handleTTYChange(Preference preference, Object objValue) {
int buttonTtyMode;
buttonTtyMode = Integer.valueOf((String) objValue).intValue();
int settingsTtyMode = android.provider.Settings.Secure.getInt(
getContentResolver(),
android.provider.Settings.Secure.PREFERRED_TTY_MODE, preferredTtyMode);
if (DBG) log("handleTTYChange: requesting set TTY mode enable (TTY) to" +
Integer.toString(buttonTtyMode));
if (buttonTtyMode != settingsTtyMode) {
switch(buttonTtyMode) {
case Phone.TTY_MODE_OFF:
case Phone.TTY_MODE_FULL:
case Phone.TTY_MODE_HCO:
case Phone.TTY_MODE_VCO:
mPhone.setTTYMode(buttonTtyMode,
ttyHandler.obtainMessage(TTYHandler.EVENT_TTY_MODE_SET));
break;
default:
mPhone.setTTYMode(Phone.TTY_MODE_OFF,
ttyHandler.obtainMessage(TTYHandler.EVENT_TTY_MODE_SET));
}
}
}
class TTYHandler extends Handler {
/** Event for TTY mode change */
private static final int EVENT_TTY_MODE_GET = 700;
private static final int EVENT_TTY_MODE_SET = 800;
@Override
public void handleMessage(Message msg) {
switch (msg.what) {
case EVENT_TTY_MODE_GET:
handleQueryTTYModeResponse(msg);
break;
case EVENT_TTY_MODE_SET:
handleSetTTYModeResponse(msg);
break;
}
}
private void updatePreferredTtyModeSummary(int TtyMode) {
String [] txts = getResources().getStringArray(R.array.tty_mode_entries);
switch(TtyMode) {
case Phone.TTY_MODE_OFF:
case Phone.TTY_MODE_HCO:
case Phone.TTY_MODE_VCO:
case Phone.TTY_MODE_FULL:
mButtonTTY.setSummary(txts[TtyMode]);
break;
default:
mButtonTTY.setEnabled(false);
mButtonTTY.setSummary(txts[Phone.TTY_MODE_OFF]);
}
}
private void handleQueryTTYModeResponse(Message msg) {
AsyncResult ar = (AsyncResult) msg.obj;
if (ar.exception != null) {
if (DBG) log("handleQueryTTYModeResponse: Error getting TTY state.");
mButtonTTY.setEnabled(false);
} else {
if (DBG) log("handleQueryTTYModeResponse: TTY enable state successfully queried.");
int ttymode = ((int[]) ar.result)[0];
if (DBG) log("handleQueryTTYModeResponse:ttymode=" + ttymode);
Intent ttyModeChanged = new Intent(TtyIntent.TTY_ENABLED_CHANGE_ACTION);
ttyModeChanged.putExtra("ttyEnabled", ttymode != Phone.TTY_MODE_OFF);
sendBroadcast(ttyModeChanged);
android.provider.Settings.Secure.putInt(getContentResolver(),
android.provider.Settings.Secure.PREFERRED_TTY_MODE, ttymode );
mButtonTTY.setValue(Integer.toString(ttymode));
updatePreferredTtyModeSummary(ttymode);
}
}
private void handleSetTTYModeResponse(Message msg) {
AsyncResult ar = (AsyncResult) msg.obj;
if (ar.exception != null) {
if (DBG) log("handleSetTTYModeResponse: Error setting TTY mode, ar.exception"
+ ar.exception);
}
mPhone.queryTTYMode(ttyHandler.obtainMessage(TTYHandler.EVENT_TTY_MODE_GET));
}
}
private static void log(String msg) {
Log.d(LOG_TAG, msg);
}
/**
* Updates the look of the VM preference widgets based on current VM provider settings.
* Note that the provider name is loaded form the found activity via loadLabel in
* initVoiceMailProviders in order for it to be localizable.
*/
private void updateVMPreferenceWidgets(String currentProviderSetting) {
final String key = currentProviderSetting;
final VoiceMailProvider provider = mVMProvidersData.get(key);
/* This is the case when we are coming up on a freshly wiped phone and there is no
persisted value for the list preference mVoicemailProviders.
In this case we want to show the UI asking the user to select a voicemail provider as
opposed to silently falling back to default one. */
if (provider == null) {
mVoicemailProviders.setSummary(getString(R.string.sum_voicemail_choose_provider));
mVoicemailSettings.setSummary("");
mVoicemailSettings.setEnabled(false);
mVoicemailSettings.setIntent(null);
} else {
final String providerName = provider.name;
mVoicemailProviders.setSummary(providerName);
mVoicemailSettings.setSummary(getApplicationContext().getString(
R.string.voicemail_settings_for, providerName));
mVoicemailSettings.setEnabled(true);
mVoicemailSettings.setIntent(provider.intent);
}
}
/**
* Enumerates existing VM providers and puts their data into the list and populates
* the preference list objects with their names.
* In case we are called with ACTION_ADD_VOICEMAIL intent the intent may have
* an extra string called "providerToIgnore" with "package.activityName" of the provider
* which should be hidden when we bring up the list of possible VM providers to choose.
* This allows a provider which is being disabled (e.g. GV user logging out) to force the user
* to pick some other provider.
*/
private void initVoiceMailProviders() {
String providerToIgnore = null;
if (getIntent().getAction().equals(ACTION_ADD_VOICEMAIL)) {
providerToIgnore = getIntent().getStringExtra("providerToIgnore");
}
mVMProvidersData.clear();
// Stick the default element which is always there
final String myCarrier = getString(R.string.voicemail_default);
mVMProvidersData.put("", new VoiceMailProvider(myCarrier, null));
// Enumerate providers
PackageManager pm = getPackageManager();
Intent intent = new Intent();
intent.setAction(ACTION_CONFIGURE_VOICEMAIL);
List<ResolveInfo> resolveInfos = pm.queryIntentActivities(intent, 0);
int len = resolveInfos.size() + 1; // +1 for the default choice we will insert.
// Go through the list of discovered providers populating the data map
// skip the provider we were instructed to ignore if there was one
for (int i = 0; i < resolveInfos.size(); i++) {
final ResolveInfo ri= resolveInfos.get(i);
final ActivityInfo currentActivityInfo = ri.activityInfo;
final String key = makeKeyForActivity(currentActivityInfo);
if (key.equals(providerToIgnore)) {
len--;
continue;
}
final String nameForDisplay = ri.loadLabel(pm).toString();
Intent providerIntent = new Intent();
providerIntent.setAction(ACTION_CONFIGURE_VOICEMAIL);
providerIntent.setClassName(currentActivityInfo.packageName,
currentActivityInfo.name);
mVMProvidersData.put(
key,
new VoiceMailProvider(nameForDisplay, providerIntent));
}
// Now we know which providers to display - create entries and values array for
// the list preference
String [] entries = new String [len];
String [] values = new String [len];
entries[0] = myCarrier;
values[0] = "";
int entryIdx = 1;
for (int i = 0; i < resolveInfos.size(); i++) {
final String key = makeKeyForActivity(resolveInfos.get(i).activityInfo);
if (!mVMProvidersData.containsKey(key)) {
continue;
}
entries[entryIdx] = mVMProvidersData.get(key).name;
values[entryIdx] = key;
entryIdx++;
}
mVoicemailProviders.setEntries(entries);
mVoicemailProviders.setEntryValues(values);
updateVMPreferenceWidgets(mVoicemailProviders.getValue());
}
private String makeKeyForActivity(ActivityInfo ai) {
return ai.packageName + "." + ai.name;
}
/**
* Simulates user clicking on a passed preference.
* Usually needed when the preference is a dialog preference and we want to invoke
* a dialog for this preference programmatically.
* TODO(iliat): figure out if there is a cleaner way to cause preference dlg to come up
*/
private void simulatePreferenceClick(Preference preference) {
// Go through settings until we find our setting
// and then simulate a click on it to bring up the dialog
final ListAdapter adapter = getPreferenceScreen().getRootAdapter();
for (int idx = 0; idx < adapter.getCount(); idx++) {
if (adapter.getItem(idx) == preference) {
getPreferenceScreen().onItemClick(this.getListView(),
null, idx, adapter.getItemId(idx));
break;
}
}
}
}
| [
"yuzhongxing88@gmail.com"
] | yuzhongxing88@gmail.com |
b8b92d72324961331722551d9f57eccc074f024b | dbd7c4f9441df61d2e8eb9bff65486f370ed1858 | /gen/com/example/contactsexplorer/R.java | 20517a67772cfaa102cddc01ff7ccfee3dfdec1f | [] | no_license | ashish-kshirsagar/ContactsExplorerApp | 022c970f3d51366d70739a9bc74b16fd6c845bc8 | 0a931d327d688552c936f44f995b851bc483b6ae | refs/heads/master | 2016-09-05T20:21:12.971694 | 2014-10-14T18:56:15 | 2014-10-14T18:56:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 180,694 | 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.contactsexplorer;
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 int line_spacing=0x7f080017;
}
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 contacts_image=0x7f020057;
public static final int directory_back=0x7f020058;
public static final int external_storage=0x7f020059;
public static final int file_icon=0x7f02005a;
public static final int folder_icon=0x7f02005b;
public static final int ic_launcher=0x7f02005c;
public static final int internal_storage=0x7f02005d;
public static final int process_icon=0x7f02005e;
public static final int processor_icon=0x7f02005f;
public static final int ram_icon=0x7f020060;
}
public static final class id {
public static final int TextView01=0x7f050042;
public static final int TextView02=0x7f050043;
public static final int TextViewDate=0x7f050044;
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=0x7f050045;
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 contactDetails=0x7f05003f;
public static final int contacts_list_view=0x7f05003c;
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 fd_Icon1=0x7f05003e;
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 inputSearch=0x7f05003d;
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 toast_layout_root=0x7f050040;
public static final int toast_text=0x7f050041;
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_contacts=0x7f030018;
public static final int activity_main=0x7f030019;
public static final int contacts_list_row=0x7f03001a;
public static final int custom_toast_view=0x7f03001b;
public static final int folder_list=0x7f03001c;
public static final int support_simple_spinner_dropdown_item=0x7f03001d;
}
public static final class menu {
public static final int contacts=0x7f0d0000;
public static final int main=0x7f0d0001;
}
public static final class plurals {
public static final int numberOfItemsAvailable=0x7f0c0000;
}
public static final class string {
/** Content description for the action bar "home" affordance. [CHAR LIMIT=NONE]
*/
public static final int abc_action_bar_home_description=0x7f0a0001;
/** Content description for the action bar "up" affordance. [CHAR LIMIT=NONE]
*/
public static final int abc_action_bar_up_description=0x7f0a0002;
/** Content description for the action menu overflow button. [CHAR LIMIT=NONE]
*/
public static final int abc_action_menu_overflow_description=0x7f0a0003;
/** Label for the "Done" button on the far left of action mode toolbars.
*/
public static final int abc_action_mode_done=0x7f0a0000;
/** Title for a button to expand the list of activities in ActivityChooserView [CHAR LIMIT=25]
*/
public static final int abc_activity_chooser_view_see_all=0x7f0a000a;
/** ActivityChooserView - accessibility support
Description of the shwoing of a popup window with activities to choose from. [CHAR LIMIT=NONE]
*/
public static final int abc_activitychooserview_choose_application=0x7f0a0009;
/** SearchView accessibility description for clear button [CHAR LIMIT=NONE]
*/
public static final int abc_searchview_description_clear=0x7f0a0006;
/** SearchView accessibility description for search text field [CHAR LIMIT=NONE]
*/
public static final int abc_searchview_description_query=0x7f0a0005;
/** SearchView accessibility description for search button [CHAR LIMIT=NONE]
*/
public static final int abc_searchview_description_search=0x7f0a0004;
/** SearchView accessibility description for submit button [CHAR LIMIT=NONE]
*/
public static final int abc_searchview_description_submit=0x7f0a0007;
/** SearchView accessibility description for voice button [CHAR LIMIT=NONE]
*/
public static final int abc_searchview_description_voice=0x7f0a0008;
/** Description of the choose target button in a ShareActionProvider (share UI). [CHAR LIMIT=NONE]
*/
public static final int abc_shareactionprovider_share_with=0x7f0a000c;
/** Description of a share target (both in the list of such or the default share button) in a ShareActionProvider (share UI). [CHAR LIMIT=NONE]
*/
public static final int abc_shareactionprovider_share_with_application=0x7f0a000b;
public static final int action_settings=0x7f0a000f;
public static final int app_name=0x7f0a000d;
public static final int hello_world=0x7f0a000e;
public static final int list_view_item_icon_description=0x7f0a0011;
public static final int search_text_hint=0x7f0a0013;
public static final int title_activity_contacts=0x7f0a0012;
/** New added
*/
public static final int toast_icon_description=0x7f0a0010;
}
public static final class style {
/**
Base application theme, dependent on API level. This theme is replaced
by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
Theme customizations available in newer API levels can go in
res/values-vXX/styles.xml, while customizations related to
backward-compatibility can go here.
Base application theme for API 11+. This theme completely replaces
AppBaseTheme from res/values/styles.xml on API 11+ devices.
API 11 theme customizations can go here.
Base application theme for API 14+. This theme completely replaces
AppBaseTheme from BOTH res/values/styles.xml and
res/values-v11/styles.xml on API 14+ devices.
API 14 theme customizations can go here.
*/
public static final int AppBaseTheme=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.contactsexplorer:background}</code></td><td> Specifies a background drawable for the action bar.</td></tr>
<tr><td><code>{@link #ActionBar_backgroundSplit com.example.contactsexplorer: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.contactsexplorer: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.contactsexplorer:customNavigationLayout}</code></td><td> Specifies a layout for custom navigation.</td></tr>
<tr><td><code>{@link #ActionBar_displayOptions com.example.contactsexplorer:displayOptions}</code></td><td> Options affecting how the action bar is displayed.</td></tr>
<tr><td><code>{@link #ActionBar_divider com.example.contactsexplorer:divider}</code></td><td> Specifies the drawable used for item dividers.</td></tr>
<tr><td><code>{@link #ActionBar_height com.example.contactsexplorer:height}</code></td><td> Specifies a fixed height.</td></tr>
<tr><td><code>{@link #ActionBar_homeLayout com.example.contactsexplorer: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.contactsexplorer:icon}</code></td><td> Specifies the drawable used for the application icon.</td></tr>
<tr><td><code>{@link #ActionBar_indeterminateProgressStyle com.example.contactsexplorer: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.contactsexplorer: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.contactsexplorer:logo}</code></td><td> Specifies the drawable used for the application logo.</td></tr>
<tr><td><code>{@link #ActionBar_navigationMode com.example.contactsexplorer:navigationMode}</code></td><td> The type of navigation to use.</td></tr>
<tr><td><code>{@link #ActionBar_progressBarPadding com.example.contactsexplorer: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.contactsexplorer: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.contactsexplorer:subtitle}</code></td><td> Specifies subtitle text used for navigationMode="normal" </td></tr>
<tr><td><code>{@link #ActionBar_subtitleTextStyle com.example.contactsexplorer:subtitleTextStyle}</code></td><td> Specifies a style to use for subtitle text.</td></tr>
<tr><td><code>{@link #ActionBar_title com.example.contactsexplorer:title}</code></td><td> Specifies title text used for navigationMode="normal" </td></tr>
<tr><td><code>{@link #ActionBar_titleTextStyle com.example.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer:windowActionBar}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBarWindow_windowActionBarOverlay com.example.contactsexplorer:windowActionBarOverlay}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBarWindow_windowFixedHeightMajor com.example.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer.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.contactsexplorer:windowActionBar
*/
public static final int ActionBarWindow_windowActionBar = 0;
/**
<p>This symbol is the offset where the {@link com.example.contactsexplorer.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.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer:windowFixedWidthMinor
*/
public static final int ActionBarWindow_windowFixedWidthMinor = 5;
/**
<p>This symbol is the offset where the {@link com.example.contactsexplorer.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.contactsexplorer: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.contactsexplorer:background}</code></td><td> Specifies a background for the action mode bar.</td></tr>
<tr><td><code>{@link #ActionMode_backgroundSplit com.example.contactsexplorer:backgroundSplit}</code></td><td> Specifies a background for the split action mode bar.</td></tr>
<tr><td><code>{@link #ActionMode_height com.example.contactsexplorer:height}</code></td><td> Specifies a fixed height for the action mode bar.</td></tr>
<tr><td><code>{@link #ActionMode_subtitleTextStyle com.example.contactsexplorer:subtitleTextStyle}</code></td><td> Specifies a style to use for subtitle text.</td></tr>
<tr><td><code>{@link #ActionMode_titleTextStyle com.example.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer:divider}</code></td><td> Drawable to use as a vertical divider between buttons.</td></tr>
<tr><td><code>{@link #LinearLayoutICS_dividerPadding com.example.contactsexplorer:dividerPadding}</code></td><td> Size of padding on either end of a divider.</td></tr>
<tr><td><code>{@link #LinearLayoutICS_showDividers com.example.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer:actionLayout}</code></td><td> An optional layout to be used as an action view.</td></tr>
<tr><td><code>{@link #MenuItem_actionProviderClass com.example.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer:iconifiedByDefault}</code></td><td> The default state of the SearchView.</td></tr>
<tr><td><code>{@link #SearchView_queryHint com.example.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer:actionDropDownStyle}</code></td><td> Default ActionBar dropdown style.</td></tr>
<tr><td><code>{@link #Theme_dropdownListPreferredItemHeight com.example.contactsexplorer:dropdownListPreferredItemHeight}</code></td><td> The preferred item height for dropdown lists.</td></tr>
<tr><td><code>{@link #Theme_listChoiceBackgroundIndicator com.example.contactsexplorer:listChoiceBackgroundIndicator}</code></td><td> Drawable used as a background for selected list items.</td></tr>
<tr><td><code>{@link #Theme_panelMenuListTheme com.example.contactsexplorer:panelMenuListTheme}</code></td><td> Default Panel Menu style.</td></tr>
<tr><td><code>{@link #Theme_panelMenuListWidth com.example.contactsexplorer:panelMenuListWidth}</code></td><td> Default Panel Menu width.</td></tr>
<tr><td><code>{@link #Theme_popupMenuStyle com.example.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer: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.contactsexplorer:paddingStart
*/
public static final int View_paddingStart = 1;
};
}
| [
"akkshirsagar@gmail.com"
] | akkshirsagar@gmail.com |
6172b9c75e377dd4b0ae50c08fd97454be1f7ffc | 49fd170ee8f36224083d91159cfb392206c99db9 | /src/main/java/com/test/mobdev/configuration/RestTemplateConfiguration.java | b2d0a98c9f719d6df9d2c530b3b50998a48137f1 | [] | no_license | fmirandas/dog-be | 1ca9d66c0ecd5b8a49ce4413f77d16e8e9f7153d | e5fbb73314f4fba8af7193a564b0dca7aa8c802c | refs/heads/master | 2022-12-02T02:15:54.805725 | 2020-08-07T20:01:37 | 2020-08-07T20:01:37 | 285,412,899 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 359 | java | package com.test.mobdev.configuration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;
@Configuration
public class RestTemplateConfiguration {
@Bean
public RestTemplate restTemplate() {
return new RestTemplate();
}
}
| [
"felipe.mirandas.92@gmail.com"
] | felipe.mirandas.92@gmail.com |
065f1ed18880b86acf2c765afce1785364666892 | ff16141246d7104f7d25193d6210f9bc15d660eb | /chapter13/overridetest04.java | 84bec555a41c79e17ac758417a499874bf0160dc | [] | no_license | zhangyuan3/java_base | 0ccfd15557fb1597f659d138111007a72be696b7 | 4108f1b9669badb1cff4878e9c9ae908051c9f0a | refs/heads/master | 2023-09-04T09:01:27.224758 | 2021-10-17T02:26:36 | 2021-10-17T02:26:36 | 416,773,129 | 0 | 0 | null | null | null | null | GB18030 | Java | false | false | 725 | java | public class overridetest04
{
public static void main(String[] args){
MyDate d1 = new MyDate();
S.p(d1.toString());
}
}
class MyDate
{
private int year;
private int month;
private int day;
public MyDate(){
this(1970,1,1);
}
public MyDate(int year,int month,int day){
this.year = year;
this.month =month;
this.day=day;
}
public void setYear(int year){
this.year =year;
}
public int getYear(){
return year;
}
public void setMonth(int month){
this.month =month;
}
public int getMonth(){
return month;
}
public void setDay(int day){
this.day =day;
}
public int getDay(){
return day;
}
//方法覆盖 toString
public String toString(){
return year+"年"+month+"月"+day+"日";
}
} | [
"463544804@qq.com"
] | 463544804@qq.com |
e54080a1109961c205ee4f66af59f9ffedb92570 | 5c7f89846b2ecbd25618c70b271c4730168d4204 | /app/src/main/java/com/project/food/db/entities/CategoryEntity.java | 6cdb37089691c6939361f601ca933626fd56d65d | [] | no_license | kostya1sh/Food | b0e97095b163803c3413f2982f5bcafdd7d4dfdb | 71be8b54083e651dae8ece47ad2fc12cd1242c1a | refs/heads/master | 2020-06-11T02:55:59.675068 | 2016-12-13T10:09:25 | 2016-12-13T10:09:25 | 76,019,534 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,186 | java | package com.project.food.db.entities;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.field.ForeignCollectionField;
import com.j256.ormlite.table.DatabaseTable;
import java.util.Collection;
/**
* Created by kostya on 08.12.2016.
*/
@DatabaseTable(tableName = "categories")
public class CategoryEntity {
@DatabaseField(generatedId = true)
private int genId;
@DatabaseField(uniqueIndex = true, uniqueIndexName = "category_id")
private int id;
@DatabaseField(columnName = "category")
@ForeignCollectionField(eager = true)
private String category;
@ForeignCollectionField(eager = true)
private Collection<OfferEntity> offerList;
public CategoryEntity() {}
public String getCategory() {
return category;
}
public void setCategory(String category) {
this.category = category;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public Collection<OfferEntity> getOfferList() {
return offerList;
}
public void setOfferList(Collection<OfferEntity> offerList) {
this.offerList = offerList;
}
}
| [
"kostya.shall@gamil.com"
] | kostya.shall@gamil.com |
7eadf82f92f5e999fd4f8a7b3e7991174e3391f5 | a112a933418ab6411e284294b6cb0dae10781b00 | /src/main/java/pl/sda/javalon4/exceptions/PasswordValidator.java | c1af371fcca221de3ae82f5539d8e68f0b68f167 | [] | no_license | przemyslawwozniak/javalon4_java-zaawansowana-zadania | 283e0acc356bfc9ce7e4141fc7bc95142b37b2d0 | bc4cd7d78c1b114b0fde02216f0e1074a8d98d28 | refs/heads/master | 2022-11-23T03:35:00.760599 | 2020-07-26T09:47:40 | 2020-07-26T09:47:40 | 280,813,611 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,495 | java | package pl.sda.javalon4.exceptions;
import java.util.Scanner;
public class PasswordValidator {
public static void main(String[] args) {
System.out.println("Prosze wprowadzic haslo. Wymagania: ");
AbstractValidator[] validators = {new LenghtValidator(8),
new ContainsDigitsValidator(),
new ContainsLowerCaseLetterValidator(),
new ContainsUpperCaseLetterValidator(),
new ContainsSpecialCharValidator()};
for(AbstractValidator av : validators)
System.out.println("* " + av.getRequirement());
boolean isPswdValid = false;
do {
System.out.println("Podaj Twoje haslo: ");
Scanner sc = new Scanner(System.in);
String pswd = sc.nextLine();
int validatorsPassed = 0;
for(AbstractValidator av : validators) {
if(av.validate(pswd) == false) {
av.printValidateIssue();
isPswdValid = false;
break;
}
else {
validatorsPassed++;
}
}
if(validatorsPassed == validators.length) {
System.out.println("Wprowadzono prawidlowe haslo");
isPswdValid = true;
}
}
while(!isPswdValid);
}
}
| [
"inz.przemyslaw.wozniak@gmail.com"
] | inz.przemyslaw.wozniak@gmail.com |
bace6f244fef5710005fa3c7096830602b8ccdd4 | 99520d52b98cd2ffafbfc730c9c9fb57b00752bc | /src/main/java/me/spring/webflux/service/CityService.java | 5b6805d198d908eaee88fa1a4fde25ab9805a6ca | [] | no_license | simiczhang/spring-webflux-sample | f241f25f5735274db5f97ce8e4f4390024ff6a5d | 0da46684e88952d034ed156f5ffc00a3318f6798 | refs/heads/master | 2021-05-19T08:16:18.046221 | 2020-03-31T14:16:01 | 2020-03-31T14:16:01 | 251,600,902 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 223 | java | package me.spring.webflux.service;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
public interface CityService {
Mono<String> getCity(String name);
Flux<String> findAll(int limit);
}
| [
"simizhan@cisco.com"
] | simizhan@cisco.com |
c0cdc7049b7a2753170fbf237eac0999b7c33e2a | e02d4fdc9cc8dd1bda5176c37ac318f562b3f2fc | /src/main/java/de/witcom/app/web/filter/package-info.java | 85715fca56eccb9a369569c4a7da117099a895f9 | [] | no_license | iceman91176/jhipster-oidc-sample | 8733b8d23379eacab898c2d04fc122284879aa44 | b32ef2597e0f0ad6a5a99ccd8cc103aea857aceb | refs/heads/master | 2020-06-06T03:50:40.963233 | 2015-03-03T11:43:12 | 2015-03-03T11:43:12 | 31,590,788 | 1 | 1 | null | null | null | null | UTF-8 | Java | false | false | 62 | java | /**
* Servlet filters.
*/
package de.witcom.app.web.filter;
| [
"carsten@linux-dev-01.witcom.net"
] | carsten@linux-dev-01.witcom.net |
6e45d26bb453093ae40cff5e81a50bd47bd6d9a0 | a8b5525231d52928ff9779b75dd2fc71ad10f609 | /src/learn/BoatsToSavePeople881.java | b91db86e028f648f4cb9add8605ea6e9ee54edb8 | [] | no_license | Gurudattapai/ds-algo | d053f3f8ca4496454b7ddb5b8fc84150fb3a0442 | 76a7995a9e5b34aabbaaa7e288d1ec90c7bf9926 | refs/heads/master | 2020-09-23T04:18:31.121529 | 2020-04-12T10:21:34 | 2020-04-12T10:21:34 | 225,399,585 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 552 | java | package learn;
import java.util.Arrays;
public class BoatsToSavePeople881 {
public static int numRescueBoats(int[] people, int limit) {
if (people == null || people.length == 0) {
return 0;
}
Arrays.sort(people);
int i = 0;
int j = people.length - 1;
int count = 0;
while (i <= j) {
if (people[i] + people[j] <= limit) {
count++;
i++;
j--;
} else {
j--;
count++;
}
}
return count;
}
public static void main(String[] args) {
System.out.println(numRescueBoats(new int [] {2,3,7}, 8));
}
}
| [
"gurudatta.pai07@gmail.com"
] | gurudatta.pai07@gmail.com |
34ecea8939f5d39ceda59016b209ad6b19d837fc | 32d81b4b9db2b6ea4e5c046688cfa43740500bed | /src/com/netty/io/netty/resolver/dns/SequentialDnsServerAddressStream.java | f93bef536e4d0349b3d09a70bd9e510e4a92bc94 | [] | no_license | zymap/zytest | f1ce4cf0e6c735d35f68ea8c89df98ae6d035821 | b8d9eb6cf46490958d20ebb914d543af50d1b862 | refs/heads/master | 2021-04-03T01:15:30.946483 | 2018-03-24T14:10:57 | 2018-03-24T14:10:57 | 124,623,152 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,216 | java | /*
* Copyright 2015 The Netty Project
*
* The Netty Project licenses this file to you under the Apache License,
* version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*/
package com.netty.io.netty.resolver.dns;
import io.netty.resolver.dns.*;
import io.netty.resolver.dns.DnsServerAddressStream;
import java.net.InetSocketAddress;
final class SequentialDnsServerAddressStream implements DnsServerAddressStream {
private final InetSocketAddress[] addresses;
private int i;
SequentialDnsServerAddressStream(InetSocketAddress[] addresses, int startIdx) {
this.addresses = addresses;
i = startIdx;
}
@Override
public InetSocketAddress next() {
int i = this.i;
InetSocketAddress next = addresses[i];
if (++ i < addresses.length) {
this.i = i;
} else {
this.i = 0;
}
return next;
}
@Override
public int size() {
return addresses.length;
}
@Override
public io.netty.resolver.dns.SequentialDnsServerAddressStream duplicate() {
return new io.netty.resolver.dns.SequentialDnsServerAddressStream(addresses, i);
}
@Override
public String toString() {
return toString("sequential", i, addresses);
}
static String toString(String type, int index, InetSocketAddress[] addresses) {
final StringBuilder buf = new StringBuilder(type.length() + 2 + addresses.length * 16);
buf.append(type).append("(index: ").append(index);
buf.append(", addrs: (");
for (InetSocketAddress a: addresses) {
buf.append(a).append(", ");
}
buf.setLength(buf.length() - 2);
buf.append("))");
return buf.toString();
}
}
| [
"734206637@qq.com"
] | 734206637@qq.com |
5c749de0fde6c5930f0039d402b42196f0b603d5 | d9985f8a2cdb7bb1f664c8d8bad434daad4113d8 | /src/Pit.java | 9f96adb141208feba384a1cba1f9b5818748d8be | [] | no_license | saifulislam2015/Mancala | e98c61dae8fe10ec689808472a9f7c938d010e4e | 026a2de505468f391c6fedb00b4e4fba0eb6a0fe | refs/heads/master | 2020-03-14T07:40:15.511289 | 2018-04-29T16:11:12 | 2018-04-29T16:11:12 | 131,509,157 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,295 | java | public class Pit {
public int stones;
public int row;
public int column;
public boolean isMancala;
public boolean isBlue = true;
public Pit(int stones, int row, int column, boolean isMancala, boolean makeRed) {
this.stones = stones;
this.row = row;
this.column = column;
this.isMancala = isMancala;
if(makeRed == true) setRed();
}
public Pit copy() {
Pit copiedVersion = new Pit(this.stones, this.row, this.column, this.isMancala,this.isBlue);
if(!this.isBlue()) {
copiedVersion.setRed();
}
return copiedVersion;
}
public void setRed() {
isBlue = false;
}
public boolean isBlue() {
return isBlue;
}
public int getStones() {
return stones;
}
public void removeStones() {
stones = 0;
}
public void addStone() {
stones += 1;
}
public boolean isEmpty() {
if(stones == 0) {
return true;
} else {
return false;
}
}
public boolean isMancala() {
return isMancala;
}
public String getKey() {
return "" + row + "," + column;
}
public String toString() {
return "" + getStones();
}
}
| [
"saifulislamt073@gmail.com"
] | saifulislamt073@gmail.com |
bc106846fb1f1d068f0da0203e04bf77bdde494e | 3d6fa68b0f37ac9496c125251edb05eb541ecd68 | /src/org/usfirst/frc4919/Robot_2017v2/subsystems/ClimbingSubsystem.java~ | 42e79214a1cac594f6661429c1f7137289cd514e | [] | no_license | maplebar/Robot_2017v2 | fd73b1165954d0bf58d8f41e6a3c371712a1eece | 600785cb9e1549773f09ed85355425114d29b77b | refs/heads/master | 2021-06-13T15:04:57.831259 | 2017-03-11T20:49:58 | 2017-03-11T20:49:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,527 | // RobotBuilder Version: 2.0
//
// This file was generated by RobotBuilder. It contains sections of
// code that are automatically generated and assigned by robotbuilder.
// These sections will be updated in the future when you export to
// Java from RobotBuilder. Do not put any code or make any change in
// the blocks indicating autogenerated code or it will be lost on an
// update. Deleting the comments indicating the section will prevent
// it from being updated in the future.
package org.usfirst.frc4919.Robot_2017v2.subsystems;
import org.usfirst.frc4919.Robot_2017v2.RobotMap;
import org.usfirst.frc4919.Robot_2017v2.commands.*;
import edu.wpi.first.wpilibj.Servo;
import edu.wpi.first.wpilibj.command.Subsystem;
/**
*
*/
public class ClimbingSubsystem extends Subsystem {
// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTANTS
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTANTS
// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DECLARATIONS
private final Servo winch = RobotMap.climbingSubsystemWinch;
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DECLARATIONS
// Put methods for controlling this subsystem
// here. Call these from Commands.
public void initDefaultCommand() {
// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND
// Set the default command for a subsystem here.
// setDefaultCommand(new MySpecialCommand());
}
}
| [
"team4919.leo-droids@lfcsinc.org"
] | team4919.leo-droids@lfcsinc.org | |
d2de61c044bd5d8e58c8800de1748f43856850f0 | bd1a23d6c50e688f0d15209c54631a32126fe4a2 | /TaoBaoApp/src/entity/Customer.java | c9f4b1abd29d8a59d95c8c3d78d1f1bdb0310f54 | [] | no_license | zhangtianiyi/mybatis | e0693900b439155d5d54a07fe6e0205355e33434 | 32fc661adf18136bd7ecaba7d1bc1279ba4f848c | refs/heads/master | 2020-06-01T20:05:28.226308 | 2017-06-12T10:29:51 | 2017-06-12T10:29:51 | 94,083,711 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 956 | java | package entity;
public class Customer {
private String cname;
private String cpass;
private String cphone;
private String caddress;
private String crealname;
private boolean cislogin;
public Customer(){
super();
}
public String getCname() {
return cname;
}
public void setCname(String cname) {
this.cname = cname;
}
public String getCpass() {
return cpass;
}
public void setCpass(String cpass) {
this.cpass = cpass;
}
public String getCphone() {
return cphone;
}
public void setCphone(String cphone) {
this.cphone = cphone;
}
public String getCaddress() {
return caddress;
}
public void setCaddress(String caddress) {
this.caddress = caddress;
}
public String getCrealname() {
return crealname;
}
public void setCrealname(String crealname) {
this.crealname = crealname;
}
public boolean isCislogin() {
return cislogin;
}
public void setCislogin(boolean cislogin) {
this.cislogin = cislogin;
}
}
| [
"465355874@qq.com"
] | 465355874@qq.com |
15b611de65d7fb9922e8dcaa1c2ac25618d85812 | 72fedc2cde9668771f95e88f23c9985ded527112 | /Pattern2/src/Pattern10.java | 79e57801e00d4727594d2599276f21945e1a6e27 | [] | no_license | Pramodjat27/Pattern | 300206af22ba1b1cae2ed40a0e70000016a6049c | d4003bd82822c5e8e1734846b325455ca961a9e4 | refs/heads/master | 2020-03-14T23:02:55.799572 | 2018-05-05T04:31:41 | 2018-05-05T04:31:41 | 131,835,368 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 438 | java |
public class Pattern10 {
public static void main(String[] args) {
int n = 5;
for (int i = 1; i <= n; i++)
{
for (int j = 1; j < n+1-i; j++)
{
System.out.print(" ");
}
for(int k=1; k<=i; k++)
{
if (i%2==0)
{
System.out.print("0");
}
else {
System.out.print("1");
}
}
System.out.println();
}
}
}/*
1
00
111
0000
11111
*/
| [
"Pramod@DESKTOP-KFILBT2"
] | Pramod@DESKTOP-KFILBT2 |
240e76034e9f2946ec39b9286f0f41b1425b5537 | 0299d9058564883cb5fc07ef222b08fa33bcc7e2 | /src/chatHandler/ChatItem.java | 7e4c0d2e81aebe38d73f295d31090e7dc3b4a244 | [] | no_license | klagenberg/JAVA-RPG-Project | 4565a6b1b5062f2e9aa16711d28745fd11730c1a | e90ab7d3c756a3d6845dd2828abfe50f616d6430 | refs/heads/master | 2016-09-10T10:32:03.606107 | 2015-01-09T12:51:06 | 2015-01-09T12:51:06 | 29,016,269 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,030 | java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package chatHandler;
import java.util.ArrayList;
/**
*
* @author Fairlyn
*/
public class ChatItem {
private String chatMessage;
ArrayList<ChatItem> messages = new ArrayList();
//deals with the generated items this one needs.
void setNextItem(String chatmessage) {
ChatItem item = new ChatItem();
item.setMessage(chatMessage);
messages.add(item);
}
public ChatItem getNextItem(int i) {
return messages.get(i);
}
//deals with the String message for this object
public String getChatMessage() {
return chatMessage;
}
public void setMessage(String chatMessage) {
this.chatMessage = chatMessage;
}
//use to add an already generated to the obtions list
public void forceSetNextItem(ChatItem Item) {
messages.add(Item);
}
}
| [
"klagenberg@hotmail.com"
] | klagenberg@hotmail.com |
5c205d5c73aeb79c6c97f7e32253df7f87445cb4 | ce81c5f80f495b3570dc4ddf0dacdf2ed5014e7e | /guru-server/src/exceptions/NotFoundException.java | ec7262769cd9496aa0000b8bc0a61329a4b6b9c5 | [] | no_license | schedule-gurus/usc-schedule-planner | b9224671c03a3f6205671a81068ca7593c7c56c5 | 1df3613f0f4dfd097265973f599ebe5d240a0e08 | refs/heads/main | 2023-01-14T14:13:50.125845 | 2020-11-23T09:33:43 | 2020-11-23T09:33:43 | 307,885,819 | 2 | 0 | null | null | null | null | UTF-8 | Java | false | false | 263 | java | package exceptions;
import java.io.IOException;
public class NotFoundException extends IOException{
private static final long serialVersionUID = 1L;
//error for schedule collisions
public NotFoundException(String errorMessage) {
super(errorMessage);
}
}
| [
"adunuthulan@gmail.com"
] | adunuthulan@gmail.com |
d2ee10e5fda2a987991f027d5a6915c6acce1a1e | 031b1c5b0c404f23ccd61a08845695bd4c3827f2 | /project/Spring/spring-aop-01/src/main/java/com/slp/version2/inter/impl/MyCalculator.java | e2e416dbe2d16f8b873b7c485fb04f656abc436a | [] | no_license | AndyFlower/zixin | c8d957fd8b1e6ca0e1ae63389bc8151ab93dbb55 | 647705e5f14fae96f82d334ba1eb8a534735bfd9 | refs/heads/master | 2022-12-23T21:10:44.872371 | 2021-02-10T07:15:21 | 2021-02-10T07:15:21 | 232,578,547 | 1 | 0 | null | 2022-12-16T15:41:14 | 2020-01-08T14:13:25 | Java | UTF-8 | Java | false | false | 341 | java | package com.slp.version2.inter.impl;
import com.slp.version2.inter.Calculator;
import org.springframework.stereotype.Service;
@Service
public class MyCalculator implements Calculator {
@Override
public int add(int i, int j) {
return i+j;
}
@Override
public int sub(int i, int j) {
return i-j;
}
}
| [
"1308445442@qq.com"
] | 1308445442@qq.com |
5cdf358925e6843423bf8ad84be3a9f54f8113fa | f66fc1aca1c2ed178ac3f8c2cf5185b385558710 | /reladomo/src/main/java/com/gs/fw/common/mithra/cache/offheap/OffHeapShortExtractor.java | 40a5e13c89299f13b2b01b1f8d85f4671e5a2a61 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | goldmansachs/reladomo | 9cd3e60e92dbc6b0eb59ea24d112244ffe01bc35 | a4f4e39290d8012573f5737a4edc45d603be07a5 | refs/heads/master | 2023-09-04T10:30:12.542924 | 2023-07-20T09:29:44 | 2023-07-20T09:29:44 | 68,020,885 | 431 | 122 | Apache-2.0 | 2023-07-07T21:29:52 | 2016-09-12T15:17:34 | Java | UTF-8 | Java | false | false | 787 | java | /*
Copyright 2016 Goldman Sachs.
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.gs.fw.common.mithra.cache.offheap;
public interface OffHeapShortExtractor extends OffHeapIntExtractor
{
short shortValueOf(OffHeapDataStorage dataStorage, int dataOffset);
}
| [
"mohammad.rezaei@gs.com"
] | mohammad.rezaei@gs.com |
2bd7b9d39533e31f3a99e9995919c813f770800b | 3f94c5c9b94f3a5b3f67dbb402923ae4c2fe0369 | /ListView_Recycler_etc/ListView/app/src/test/java/com/example/idene/listview/ExampleUnitTest.java | 11ccd4c688b1fa073bbe86d80c893e7e86cab181 | [] | no_license | MANUELBSFILHO/Projetos-Java-Android-Estudos | 1a5fed6ed996b522d54d42e9434c41cf56b61ea2 | 6e0fd7f121e5bece6776e68a3d44ca8479e449f2 | refs/heads/master | 2023-03-15T02:12:00.024047 | 2020-03-05T11:01:08 | 2020-03-05T11:01:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 387 | java | package com.example.idene.listview;
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);
}
} | [
"carlosbraim2010@gmail.com"
] | carlosbraim2010@gmail.com |
1acb4e064dee7a90181fa5b4c977de1385bb6c72 | ac275e7db25ab66e0177bc663de6adb78347ebcd | /src/Farm/Deals/EditProductActivity.java | 6a36dc6629e64c73c898672c77ed3d42007bcf29 | [] | no_license | B4tiSp0t/Farmdeals | d85383b1a63ee4e1a78441f02c7c7f325ec18ef4 | e9e9d2f383d39d82b27b1082a2318436ca04e4b6 | refs/heads/master | 2020-04-14T23:23:22.942153 | 2015-01-19T08:28:09 | 2015-01-19T08:28:09 | 27,039,597 | 1 | 0 | null | 2014-12-07T08:32:48 | 2014-11-23T16:58:01 | Java | UTF-8 | Java | false | false | 2,987 | java | package Farm.Deals;
import static Farm.Deals.R.id.productNameField;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.text.Editable;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
/**
*
* @author Anestis
*/
public class EditProductActivity extends Activity implements DBConnectionListener, View.OnClickListener {
private Dao dao;
private String[] productInfo;
private String[] farmerInfo;
/**
* Called when the activity is first created.
*/
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
Object[] objectArray = (Object[]) getIntent().getExtras().getSerializable("farmerProductInfo");
productInfo = (String[])objectArray;
Object[] objectArray1 = (Object[]) getIntent().getExtras().getSerializable("farmerInfo");
farmerInfo = (String[])objectArray1;
setContentView(R.layout.editproduct);
dao = Dao.instance(this);
dao.connect("b4tisp0t.ddns.net:1433", "projectpass", "projectuser", "projectdb;");
Button button = (Button) findViewById(R.id.saveEditButton);
button.setOnClickListener(this);
EditText quantityTextField = (EditText)findViewById(R.id.editQuantityEditTextView);
quantityTextField.setText(productInfo[2]);
EditText priceTextField = (EditText)findViewById(R.id.editPriceEditTextView);
priceTextField.setText(productInfo[4]);
EditText descriptionTextField = (EditText)findViewById(R.id.editDescriptionEditTextView);
descriptionTextField.setText(productInfo[1]);
}
@Override
public void onConnectionStatusInfo(final String status) {
this.runOnUiThread(new Runnable() {
@Override
public void run() {
}
});
}
@Override
public void onConnectionSuccessful() {
this.runOnUiThread(new Runnable() {
@Override
public void run() {
}
});
}
@Override
public void onConnectionFailed() {
this.runOnUiThread(new Runnable() {
@Override
public void run() {
}
});
}
public void onClick(View v) {
if (v.getId() == R.id.saveEditButton) {
EditText priceTextView = (EditText) findViewById(R.id.editPriceEditTextView);
String price = priceTextView.getText().toString();
EditText quantityTextView = (EditText) findViewById(R.id.editQuantityEditTextView);
int quantity = Integer.parseInt(quantityTextView.getText().toString());
EditText productDescriptionTextView = (EditText) findViewById(R.id.editDescriptionEditTextView);
String productDescription = productDescriptionTextView.getText().toString();
String productIdString = this.getIntent().getStringExtra("productID");
int productID = Integer.parseInt(productIdString);
dao.editFarmerProduct(productID, price, productDescription, quantity);
Toast.makeText(EditProductActivity.this,
"Οι αλλαγές αποθηκεύτηκαν.", Toast.LENGTH_LONG).show();
Intent intent = new Intent(this, productDetailsActivity.class);
Bundle bundle = new Bundle();
bundle.putSerializable("farmerProductsInfo", farmerInfo);
intent.putExtras(bundle);
dao.disconnect();
this.finish();
this.startActivity(intent);
}
}
}
| [
"akisropsis@hotmail.com"
] | akisropsis@hotmail.com |
30bc9e5a529e3b0b9aa0930ff20af0651e5710bb | 9fe3bebf940684da21f2723eaa149531beeaf3cd | /Examen27-10/src/com/potencia/CalcularPotencia.java | c1c29b29826e33eade0fba50de1872a88f6b4243 | [] | no_license | SergioGardi/Portfolio | 2637e249bd2cd73929ee2953809815483254b5a5 | 8d499901399dd96917af647b39280cc19ad9c85a | refs/heads/master | 2021-05-05T06:37:42.940265 | 2018-01-24T21:07:37 | 2018-01-24T21:07:37 | 118,811,672 | 0 | 0 | null | null | null | null | ISO-8859-1 | Java | false | false | 644 | java | package com.potencia;
import java.util.*;
public class CalcularPotencia {
public static void main(String[] args) {
Potencia obj01 = new Potencia();
int N = Integer.______(Potencia.showInputDialog("ELEVAR UN NÚMERO A LA POTENCIA\n"
+ "Ingresa un número"));
int p = Integer.parseInt(Potencia.showInputDialog("ELEVAR UN NÚMERO A LA POTENCIA\n"
+ "Ingresa la potencia"));
obj01.calcularPotencia(N,p);
Potencia.showMessageDialog(null, "El resultado de "+N+" elevado a la potencia "+
p+" es "+obj01.result);
}
}
| [
"noreply@github.com"
] | noreply@github.com |
7953b6eb5e7d337b293b6ea0f0c3f4cdb5653417 | e736d039aea367bc19014b3ef0a548d649fe1df6 | /src/main/java/br/com/devjava/springsecurity/enums/TipoPermissao.java | 62e5938955c97d340ab15e6b65354e8cf47579bc | [] | no_license | DiegoDevJava/SpringSecurity-Login | 5a6d7b13f276364bf2481b092699ece7ab432bef | e4d49e4626090b0aa25b95d4a8af66022927b704 | refs/heads/master | 2020-03-25T23:47:55.276408 | 2018-08-10T17:42:56 | 2018-08-10T17:42:56 | 144,293,461 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 127 | java | package br.com.devjava.springsecurity.enums;
public enum TipoPermissao {
ROLE_ADMIN, ROLE_MEDICO, ROLE_PACIENTE;
}
| [
"Diego Santos@Jogador-PC.home"
] | Diego Santos@Jogador-PC.home |
73d4056b1e2ca9bfe13aa1566336df93219799fa | 24b2be4244334188ff3610f4357d3122818d26ee | /app/src/main/java/com/diploma/client/ui/login/LoggedInUserView.java | f54992008b6fba4f134e10a7d66e7eb0f8d8d4e1 | [] | no_license | axsesolga/diplom | 484407057ccf916f13efef98372beda86e9e1dfb | 5548997267971ec7085eea728b962006d1b713d6 | refs/heads/main | 2023-05-03T09:33:55.680182 | 2021-05-19T21:49:53 | 2021-05-19T21:49:53 | 359,508,319 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 377 | java | package com.diploma.client.ui.login;
/**
* Class exposing authenticated user details to the UI.
*/
class LoggedInUserView {
private String displayName;
//... other data fields that may be accessible to the UI
LoggedInUserView(String displayName) {
this.displayName = displayName;
}
String getDisplayName() {
return displayName;
}
}
| [
"axsesolga@gmail.com"
] | axsesolga@gmail.com |
7ef747e5c388ca6272a2deddbfb4771d6ef90fa4 | b56c540d240df2d283474131781786726bd6f62f | /Source Code/main/java/com/bercut/sa/parentalctl/IPInterceptor.java | a10e3305f872b1105e09898ece3dbbe01e6972ec | [] | no_license | akisai/notused | 050f6b80c9b8923be7c689cc978ea1c4a0423ef4 | 75de513486b391541441dc5faae14e23a011265b | refs/heads/master | 2020-06-20T19:10:12.209891 | 2019-11-12T15:51:43 | 2019-11-12T15:51:43 | 197,217,976 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,226 | java | package com.bercut.sa.parentalctl;
import com.bercut.sa.parentalctl.atlas.AtlasProvider;
import com.bercut.sa.parentalctl.logs.LoggerText;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.HandlerInterceptor;
import org.springframework.web.servlet.ModelAndView;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
* Created by haimin-a on 09.07.2019.
*/
@Component
public class IPInterceptor implements HandlerInterceptor {
private final static Logger logger = LoggerFactory.getLogger(IPInterceptor.class);
private final AtlasProvider atlasProvider;
@Autowired
public IPInterceptor(AtlasProvider atlasProvider) {
this.atlasProvider = atlasProvider;
}
@Override
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
String ipAdress = request.getRemoteAddr();
List<String> allowedIps = atlasProvider.getAllowedIps();
if (allowedIps.contains(ipAdress)) {
long startTime = System.currentTimeMillis();
request.setAttribute("startTime", startTime);
return true;
} else {
logger.info(LoggerText.IP_DENIED.getText(), request.getRemoteAddr());
response.getWriter().write("IP denied");
response.setStatus(HttpStatus.INTERNAL_SERVER_ERROR.value());
return false;
}
}
@Override
public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView) throws Exception {
}
@Override
public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) throws Exception {
long startTime = (Long) request.getAttribute("startTime");
long endTime = System.currentTimeMillis();
long executeTime = endTime - startTime;
logger.info(LoggerText.COMPLETE.getText(), executeTime);
}
}
| [
"akisai.azu@gmail.com"
] | akisai.azu@gmail.com |
376db9400cedf225ff5c779fb5796d9abb264fed | ef3135efb3fdf3347bf54e2bba5b540fde7c349f | /src/test/java/io/github/adityapatwa/social_networking_kata/domain/UserTest.java | 623bede6f8d91aa3c41ee1743f5e40ba64c60ba0 | [] | no_license | adityapatwa/social_networking_kata | 739e358e57e87cf9c147a86cd62f1eac833138b2 | 7f2a0db48236f04b0836f19c8709c320b248ba6e | refs/heads/master | 2022-04-14T22:37:26.382025 | 2020-04-20T02:05:34 | 2020-04-20T02:05:34 | 257,136,253 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,374 | java | package io.github.adityapatwa.social_networking_kata.domain;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.time.LocalDateTime;
import java.util.List;
import static org.junit.jupiter.api.Assertions.*;
class UserTest {
private User alice;
private Message aliceMessage;
private Message bobMessage;
private Message charlieMessage;
@BeforeEach
void setUp() {
alice = new User("Alice");
aliceMessage = new Message(alice, "I love the weather today.", LocalDateTime.now().minusSeconds(2));
alice.addMessage(aliceMessage);
User bob = new User("Bob");
bobMessage = new Message(bob, "Darn! We lost!", LocalDateTime.now().minusSeconds(1));
bob.addMessage(bobMessage);
User charlie = new User("Charlie");
charlieMessage = new Message(charlie, "I'm in New York today! Anyone wants to have a coffee?", LocalDateTime.now());
charlie.addMessage(charlieMessage);
alice.addFollowing(bob);
alice.addFollowing(charlie);
}
@Test
void getMessageWall() {
List<Message> messages = alice.getMessageWall();
assertEquals(messages.size(), 3);
assertEquals(messages.get(0), charlieMessage);
assertEquals(messages.get(1), bobMessage);
assertEquals(messages.get(2), aliceMessage);
}
} | [
"adityapatwa@live.com"
] | adityapatwa@live.com |
c4edaec93a0e6f3aa99fff13ab75d2a28396ab4a | bc6ee83c5fb5b200b502a16305ce3a48894a0f60 | /src/main/java/cn/itcast/s/s/controller/LoginController.java | 350d42b8158bbbd00b5059849817b26723916262 | [] | no_license | zf952009/s | 2de4c98cfb95561774d3b3bfa2b03b34de4e42f2 | e024e428cd0d84f89ed2671d28f0dd1269ba24b9 | refs/heads/main | 2023-02-05T08:44:40.918315 | 2020-12-31T15:49:44 | 2020-12-31T15:49:44 | 325,601,594 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,903 | java | package cn.itcast.s.s.controller;
import cn.itcast.s.s.bean.Bioarea;
import cn.itcast.s.s.bean.Table1;
import cn.itcast.s.s.bean.UserLogin;
import cn.itcast.s.s.service.Table1Service;
import cn.itcast.s.s.utils.WebUtils;
import com.alibaba.fastjson.JSON;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
@Controller
@RequestMapping(path = "/login")
public class LoginController {
@Autowired
@Qualifier("table1Service")
private Table1Service table1Service;
//6位验证码生成
@RequestMapping(value = "/token")
@ResponseBody
public Object getToken(HttpServletRequest request) {
String token = WebUtils.token();
request.getSession(true).setAttribute("userToken", token);
System.out.println(token);
return token;
}
//登录页面处理
@ResponseBody
@RequestMapping(value = "/doLogin")
public String doLogin(UserLogin userLogin, HttpServletRequest request) {
userLogin.setUserToken(request.getSession().getAttribute("userToken").toString());
System.out.println(userLogin);
return JSON.toJSONString(userLogin).trim();
}
@RequestMapping(path = "/toLogin")
public String toLogin(Model model) {
List<Table1> list = table1Service.findAll();
model.addAttribute("data", list);
return "login";
}
@ResponseBody
@RequestMapping(path = "/bioarea")
public String doBioarea(Bioarea bioarea) {
System.out.println(bioarea);
return JSON.toJSONString(bioarea).trim();
}
}
| [
"zf95209@163.com"
] | zf95209@163.com |
1096404b6d135c498dcfca1a873d97c59b04b6db | 36b8da9c8e32282f369b486cf6ee73adfaf4cbe6 | /src/main/java/hot/swap/proxy/stream/DotTransferTop.java | 6d449a7bc74022100672df09a0c1b8839ae96c8b | [] | no_license | Leeshine/HotSwapStream | 43621d8b7224c5fc31dc5fae8b46e409b612ba4b | 560668f39773d6d18dcd2babebcc9a1267e3c459 | refs/heads/master | 2021-01-17T21:08:26.914629 | 2017-04-17T05:04:12 | 2017-04-17T05:04:12 | 84,161,741 | 2 | 1 | null | null | null | null | UTF-8 | Java | false | false | 2,047 | java | package hot.swap.proxy.stream;
import hot.swap.proxy.base.SComponent;
import hot.swap.proxy.base.dotparser.Edge;
import hot.swap.proxy.base.dotparser.GraphManager;
import hot.swap.proxy.base.dotparser.Node;
import hot.swap.proxy.base.dotparser.TopologyGraph;
import hot.swap.proxy.smodule.SwapModule;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
/**
* Created by leeshine on 3/23/17.
*/
public class DotTransferTop {
public static StreamBuilder parserDotToBuilder(String dotFile){
TopologyGraph graph = parserDotToGraph(dotFile);
if(graph == null){
return null;
}
StreamBuilder builder = null;
try {
builder = parserGraphToBuilder(graph);
}catch (Exception e){
e.printStackTrace();
}
return builder;
}
public static TopologyGraph parserDotToGraph(String dotFile){
try {
GraphManager manager = new GraphManager(dotFile);
return manager.parserGraph();
}catch (Exception e){
e.printStackTrace();
return null;
}
}
public static StreamBuilder parserGraphToBuilder(TopologyGraph graph) throws Exception{
StreamBuilder builder = new StreamBuilder(graph.getGraph_name());
Collection<Node> nodes = graph.getNode();
Collection<Edge> edges = graph.getEdges();
for(Node node : nodes){
String node_name = node.getNode_name();
String class_name = node.getClass_name();
SComponent component = (SComponent)Class.forName(class_name).newInstance();
component.setId(node_name);
boolean swapable = (component instanceof SwapModule);
component.setSwapable(swapable);
builder.setModule(component);
}
for(Edge edge : edges){
String head = edge.getHead();
String tail = edge.getTail();
builder.addGrouping(head,tail); // ??
}
return builder;
}
}
| [
"lvshanchun@gmail.com"
] | lvshanchun@gmail.com |
8b94d83d9cc87514cf5b94348c9f3e7f18907328 | 12721743cc0bc23413b259d6f643b31b34b075d8 | /ThreadJava/src/com/BinhHu/part1/CarRace.java | 96788882f4d2e69ef14130fcf98daea567aedbe1 | [] | no_license | NguyenVanThaiBinh/Module-2-part2 | 87dc95820073fea2b36885ab1fbcaef54fcffefd | cecc46cb910def16bdc966327389aa56950534ad | refs/heads/master | 2023-05-04T03:24:13.671298 | 2021-05-04T04:35:02 | 2021-05-04T04:35:02 | 359,762,844 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,410 | java | package com.BinhHu.part1;
import java.util.Random;
public class CarRace {
public static int DISTANCE = 500;
public static int STEP = 2;
public static class Car implements Runnable {
// Khai báo Tên của xe đua
private String name;
public Car(String name) {
this.name = name;
}
@Override
public void run() {
// Khởi tạo điểm start(hay km ban đầu)
int runDistance = 0;
// Khởi tạo time bắt đầu cuộc đua
long startTime = System.currentTimeMillis();
// Kiểm tra chừng nào còn xe chưa kết thúc quãng đường đua thì xe vẫn tiếp tục chạy
while (runDistance < CarRace.DISTANCE) {
try {
// Random Speed KM/H
int speed = (new Random()).nextInt(20);
// Calculate traveled distance
runDistance += speed;
// Build result graphic
String log = "|";
int percentTravel = (runDistance * 100) / DISTANCE;
for (int i = 0; i < DISTANCE; i += STEP) {
if (percentTravel >= i + STEP) {
log += "=";
} else if (percentTravel >= i && percentTravel < i + STEP) {
log += "o";
} else {
log += "-";
}
}
log += "|";
System.out.println("Car" + this.name + ": " + log + " " + Math.min(DISTANCE, runDistance) + "KM");
Thread.sleep(100);
} catch (InterruptedException e) {
System.out.println("Car" + this.name + " broken...");
break;
}
}
long endTime = System.currentTimeMillis();
System.out.println("Car" + this.name + " Finish in " + (endTime - startTime) / 1000 + "s");
}
}
public static void main(String[] args) {
Car carA = new Car("A");
Car carB = new Car("B");
Thread thread1 = new Thread(carA);
Thread thread2 = new Thread(carB);
System.out.println("Distance: 100KM");
thread1.start();
thread2.start();
}
}
| [
"nguyenvanthaibinh2210@gmail.com"
] | nguyenvanthaibinh2210@gmail.com |
178c56e9a12b7d67b3e6626bb3821761b7047956 | 1e7a4b87edc7e9e6a870b15acf177edf9233932d | /core/impl/src/main/java/com/blazebit/persistence/impl/function/datediff/second/SQLServerSecondDiffFunction.java | d829d6fa570033829fdc2b6754a576036d9d8d7d | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | vincentDAO/blaze-persistence | 4b98c168024371a62e0d2e7756c20ec7ef9081c2 | 9d30ff5c96cc320d3b8d68492f7dc677a64dd172 | refs/heads/master | 2020-03-26T23:19:04.190101 | 2018-08-17T13:36:41 | 2018-08-19T20:28:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,090 | java | /*
* Copyright 2014 - 2018 Blazebit.
*
* 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.blazebit.persistence.impl.function.datediff.second;
import com.blazebit.persistence.spi.FunctionRenderContext;
/**
* @author Moritz Becker
* @since 1.2.0
*/
public class SQLServerSecondDiffFunction extends SecondDiffFunction {
public SQLServerSecondDiffFunction() {
super("datediff(ss,?1,?2)");
}
@Override
protected void renderDiff(FunctionRenderContext context) {
renderer.start(context).addArgument(0).addArgument(1).build();
}
}
| [
"christian.beikov@gmail.com"
] | christian.beikov@gmail.com |
bb37f1bd8f8f3534af9247c207ac68b77bcda6c2 | 8f5d3d144cf98de0b0c535526eb65db0702d4ffc | /main/java/dqr/entity/mobEntity/monsterNight/DqmEntityNightwalker.java | e4267ca39f6e2aabe33f36a38bc1c605ed16a455 | [] | no_license | azelDqm/MC1.7.10_DQRmod | 54c0790b80c11a8ae591f17d233adc95f1b7e41a | bfec0e17fcade9d4616ac29b5abcbb12aa562d2a | refs/heads/master | 2020-04-16T02:26:44.596119 | 2020-04-06T08:58:47 | 2020-04-06T08:58:47 | 57,311,023 | 6 | 2 | null | null | null | null | UTF-8 | Java | false | false | 4,961 | java | package dqr.entity.mobEntity.monsterNight;
import net.minecraft.entity.SharedMonsterAttributes;
import net.minecraft.world.World;
import dqr.DQR;
import dqr.api.Items.DQArmors;
import dqr.api.Items.DQMiscs;
import dqr.api.enums.EnumDqmMonster;
public class DqmEntityNightwalker extends DqmMobBaseNight
{
public DqmEntityNightwalker(World world)
{
super(world, EnumDqmMonster.NIGHTWALKER );
//this.monsterType = EnumDqmMonster.NIGHTWALKER;
/*
this.MobClassName = this.monsterType.getMobClassName();
this.MobName = this.monsterType.getMobName();
this.MobCateg = this.monsterType.getMobCateg();
this.DqmMobEXP = DQR.funcMob.getCalcEXP(this.monsterType.getEXP());
this.DqmMobGOLD = DQR.funcMob.getCalcGOLD(this.monsterType.getGOLD());
this.DqmMobMP = this.monsterType.getMP();
this.DqmMobPW = DQR.funcMob.getCalcPW(this.monsterType.getPW());
this.DqmMobDEF = this.monsterType.getDF();
this.CFIRE = this.monsterType.isCFIRE();
this.CPET = this.monsterType.getCPET();
this.CAI = this.monsterType.isCAI();
this.CTENSEI = this.monsterType.getCTENSEI();
this.CTENSEIsp = DQR.funcMob.getCalcTENSEIsp(this.monsterType.getCTENSEIsp());
this.KougekiPat = this.monsterType.getKougekiPat();
this.TenseiMob = this.monsterType.getTenseiMob();
this.TenseiMin = this.monsterType.getTenseiMin();
this.TenseiMax = this.monsterType.getTenseiMax();
this.MobRoot = this.monsterType.getMobRoot();
this.KakuseiMob = this.monsterType.getKakuseiMob();
this.experienceValue = this.monsterType.getXPS();
*/
}
/*
* AIを使うかどうか.
* 今回は使うのでtrueを返している.
*/
@Override
public boolean isAIEnabled()
{
return EnumDqmMonster.NIGHTWALKER.isCAI();
}
/*
* このEntityに性質を付与する.
* 今回は移動速度を変更.
*/
@Override
protected void applyEntityAttributes()
{
super.applyEntityAttributes();
this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setBaseValue(DQR.funcMob.getCalcSPEED(EnumDqmMonster.NIGHTWALKER.getSPEED()));
this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(DQR.funcMob.getCalcHP(EnumDqmMonster.NIGHTWALKER.getHP()));
this.getEntityAttribute(SharedMonsterAttributes.attackDamage).setBaseValue(DQR.funcMob.getCalcPW(EnumDqmMonster.NIGHTWALKER.getPW()));
}
@Override
public int getTotalArmorValue()
{
return EnumDqmMonster.NIGHTWALKER.getDF();
}
@Override
protected void dropFewItems(boolean par1, int par2)
{
if (DQR.funcMob.getCalcDROP(1, 1))
{
this.dropItem(DQMiscs.itemYorunotobari, 1);
}
if (DQR.funcMob.getCalcDROP(4, 1))
{
this.dropItem(DQMiscs.itemKoumorinohane, 1);
}
if (DQR.funcMob.getCalcDROP(50, 1))
{
this.dropItem(DQMiscs.itemLittlemedal, 1);
}
if (DQR.funcMob.getCalcDROP(50, 1))
{
this.dropItem(DQMiscs.itemMegaminoinori0, 1);
}
if (DQR.funcMob.getCalcDROP(50, 1))
{
this.dropItem(DQMiscs.itemTiisaitamasii, 1);
}
if (DQR.funcMob.getCalcDROP(100, 1))
{
this.dropItem(DQMiscs.itemMegaminoinori1, 1);
}
if (DQR.funcMob.getCalcDROP(50, 1))
{
this.dropItem(DQMiscs.itemDouka, 1);
}
if (DQR.funcMob.getCalcDROP(200, 1))
{
this.dropItem(DQMiscs.itemMegaminoinori2, 1);
}
if (DQR.funcMob.getCalcDROP(400, 1))
{
this.dropItem(DQMiscs.itemMegaminoinori3, 1);
}
if (DQR.funcMob.getCalcDROP(800, 1))
{
this.dropItem(DQMiscs.itemMegaminoinori4, 1);
}
if (DQR.funcMob.getCalcDROP(1600, 1))
{
this.dropItem(DQMiscs.itemMegaminoinori5, 1);
}
if (DQR.funcMob.getCalcDROP(3200, 1))
{
this.dropItem(DQMiscs.itemMegaminoinori6, 1);
}
if (DQR.funcMob.getCalcDROP(6400, 1))
{
this.dropItem(DQMiscs.itemMegaminoinori7, 1);
}
if (DQR.funcMob.getCalcDROP(12800, 1))
{
this.dropItem(DQMiscs.itemMegaminoinori8, 1);
}
if (DQR.funcMob.getCalcDROP(25600, 1))
{
this.dropItem(DQMiscs.itemMegaminoinori9, 1);
}
if (DQR.funcMob.getCalcDROP(51200, 1))
{
this.dropItem(DQMiscs.itemMegaminoinori10, 1);
}
if (DQR.funcMob.getCalcDROP(3000, 1))
{
this.dropItem(DQArmors.itemSabitakabuto, 1);
}
if (DQR.funcMob.getCalcDROP(3000, 1))
{
this.dropItem(DQArmors.itemSabitakabuto, 1);
}
if (DQR.funcMob.getCalcDROP(3000, 1))
{
this.dropItem(DQArmors.itemSabitakote, 1);
}
if (DQR.funcMob.getCalcDROP(3000, 1))
{
this.dropItem(DQArmors.itemSabitakutu, 1);
}
}
}
| [
"azel.dqm@gmail.com"
] | azel.dqm@gmail.com |
889abff87a78163f007568f5de3999f4c426b9be | dba1299bb8835d6ec0686bd2f30357e6af6b634d | /QueryInterfaceExamples/src/com/app/query/CriteriaExample.java | 09ae873d865f88468e4cafc95711d85f13f727c2 | [] | no_license | MAHINDRAG/Hibernate | b38a84f4823477f9305b885c8ccfbabea6a2fd69 | 18ec0156e656cfa4e46ea59ca0c72288b358d5df | refs/heads/master | 2021-04-27T00:10:55.824589 | 2018-03-04T06:35:01 | 2018-03-04T06:35:01 | 123,763,465 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,125 | java | package com.app.query;
import java.util.Iterator;
import java.util.List;
import org.hibernate.Criteria;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;
import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.Order;
import org.hibernate.criterion.Restrictions;
public class CriteriaExample {
public static void main(String[] args) {
Configuration cfg = new Configuration();
cfg = cfg.configure("hibernate.cfg.xml");
SessionFactory sf = cfg.buildSessionFactory();
Session ses = sf.openSession();
Criteria crit = ses.createCriteria(Customer.class);
Criterion cn = Restrictions.gt("customerId", new Integer(2));
crit.add(cn);
crit.addOrder(Order.desc("customerId"));
List<Customer> list = crit.list();
Iterator<Customer> it = list.iterator();
while(it.hasNext()){
Object obj = it.next();
Customer c = (Customer) obj;
System.out.println("ID:"+c.getCustomerId()+",name:"+c.getCustomerName()+",mobileNo"+c.getCustmerMobileNo()+",city:"+c.getCustomerCity());
}
System.out.println("Record Fetched Successfully");
}
}
| [
"gopishettymahindra@gmail.com"
] | gopishettymahindra@gmail.com |
60f0493445f1a7615412b1f4345deba33e238e15 | c78208008aa6bd0076425a7c53e2c373704f5f1c | /common/src/main/java/com/example/hello/service/ServiceProperties.java | de414f746d923071ad54572a4845c1c3d69600e5 | [
"MIT"
] | permissive | liranfar/gs-springBoot-gradle-multi-projects | 63796e51162ad5bf4c9c711eb261eb70ab8046bf | 19e0cf8f28d4ff01659d2ee0e8cf1101e83e8bb5 | refs/heads/master | 2020-04-17T11:13:17.542706 | 2019-01-26T16:22:35 | 2019-01-26T16:22:35 | 166,532,370 | 0 | 0 | null | 2019-01-26T16:06:47 | 2019-01-19T10:03:33 | Java | UTF-8 | Java | false | false | 466 | java | package com.example.hello.service;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Service;
@Service
@ConfigurationProperties("service")
public class ServiceProperties {
/**
* A message for the service.
*/
private String message;
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
} | [
"l.farage@gmail.com"
] | l.farage@gmail.com |
9e5a06cb2932236329bca86cde812adcb9ae3b9e | 979655c3f29e7f64398d1421f52da794f282d8fc | /src/test/java/AuthTest.java | 7fadbef7c31fe3028efdffac99a3ba3feb71328d | [] | no_license | otchaiko/winterLabTests | b68b2ab9ec390a1cba1086671d58e57e503ce6ce | 34af97844e05daf01f9ae8b42c667e2254b1b8df | refs/heads/master | 2021-01-08T09:35:07.166084 | 2020-02-24T23:19:12 | 2020-02-24T23:19:12 | 241,988,434 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,955 | java | import com.qaprosoft.carina.core.foundation.AbstractTest;
import com.solvd.onliner.login.AllowAccessVkPage;
import com.solvd.onliner.HomePage;
import com.solvd.onliner.login.LoginPage;
import com.solvd.onliner.login.RegistrationPage;
import com.solvd.onliner.login.RegistrationVkPopup;
import com.solvd.onliner.UserProfilePage;
import org.testng.Assert;
import org.testng.annotations.Test;
public class AuthTest extends AbstractTest {
private static final String VK_PHONE = "adasdsdsas";
private static final String VK_PASSWORD = "sddcsadasd";
@Test
public void verifySignUpTest() {
HomePage homePage = new HomePage(getDriver());
homePage.open();
homePage.getLoginComponent().clickLoginButton();
LoginPage loginPage = new LoginPage(getDriver());
loginPage.clickSignUpLink();
RegistrationPage registrationPage = new RegistrationPage(getDriver());
registrationPage.clickVkLink();
String mainWindowId = getDriver().getWindowHandle();
registrationPage.switchWindow();
RegistrationVkPopup registrationVkPopup = new RegistrationVkPopup(getDriver());
registrationVkPopup.typeEmail(VK_PHONE);
registrationVkPopup.typePassword(VK_PASSWORD);
registrationVkPopup.clickSubmitButton();
AllowAccessVkPage allowAccessVkPage = new AllowAccessVkPage(getDriver());
if (allowAccessVkPage.getAccessButton().isElementPresent(5)) {
allowAccessVkPage.switchWindow();
allowAccessVkPage.clickAccessButton();
}
getDriver().switchTo().window(mainWindowId);
UserProfilePage userProfilePage = new UserProfilePage(getDriver());
Assert.assertTrue(userProfilePage.isPageOpened(), "Profile page is not opened after success registration");
Assert.assertTrue(userProfilePage.getProfileImage().isElementPresent(), "Profile image is not present after success registration");
}
}
| [
"otchaiko@mail.ru"
] | otchaiko@mail.ru |
7436b1458f571ab6194040b8df8c031041c16106 | bb6883e805ed73a14922c0ea2ba37a0a3797da87 | /Library-demo/src/com/library_demo/activity/DemonstrateUseLibActivity.java | 7298595f2bc788c6b4402944b86bcc534b81f3a5 | [] | no_license | ttylinux/library-demo | 65b3adade2220ed2c2063ba58b128f49fa41717d | 072fe0c701aaea5fc9994b7bd1466d779cad0c89 | refs/heads/master | 2021-01-01T16:26:06.730557 | 2014-11-28T03:43:06 | 2014-11-28T03:43:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 727 | java | /**
* @author LuShuWei E-mail:albertxiaoyu@163.com
* @version 创建时间:2014-10-28 下午7:53:08 类说明
*/
package com.library_demo.activity;
import com.library_demo.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import com.androidlibrary.baidumap.activity.*;
public class DemonstrateUseLibActivity extends Activity {
public void onCreate(Bundle state) {
super.onCreate(state);
setContentView(R.layout.demonstrate_use_lib_activity);
}
public void startLibActivity(View v) {
Intent intent = new Intent(this, ShowLocationActivity.class);
intent.putExtra("Values", "something.something");
startActivity(intent);
}
}
| [
"albertxiaoyu@163.com"
] | albertxiaoyu@163.com |
818ce01058baacc21c93eb2a8ccad1fe7913e97c | 447520f40e82a060368a0802a391697bc00be96f | /apks/malware/app52/source/com/baidu/mobstat/ae.java | 9dcc79b0c5b538e7cb61be548116c0e31ab11dc2 | [
"Apache-2.0"
] | permissive | iantal/AndroidPermissions | 7f3343a9c29d82dbcd4ecd98b3a50ddf8d179465 | d623b732734243590b5f004d167e542e2e2ae249 | refs/heads/master | 2023-07-19T01:29:26.689186 | 2019-09-30T19:01:42 | 2019-09-30T19:01:42 | 107,239,248 | 0 | 0 | Apache-2.0 | 2023-07-16T07:41:38 | 2017-10-17T08:22:57 | null | UTF-8 | Java | false | false | 1,991 | java | package com.baidu.mobstat;
import java.util.ArrayList;
import java.util.List;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
class ae
{
List<af> a = new ArrayList();
private long b = 0L;
private long c = 0L;
private int d = 0;
public ae()
{
a(System.currentTimeMillis());
}
public long a()
{
return this.b;
}
public void a(int paramInt)
{
this.d = paramInt;
}
public void a(long paramLong)
{
this.b = paramLong;
}
public void a(String paramString, long paramLong1, long paramLong2)
{
paramString = new af(this, paramString, paramLong1, paramLong2);
this.a.add(paramString);
}
public void b()
{
this.b = 0L;
this.c = 0L;
this.d = 0;
this.a.clear();
a(System.currentTimeMillis());
}
public void b(long paramLong)
{
this.c = paramLong;
}
public JSONObject c()
{
JSONObject localJSONObject1 = new JSONObject();
try
{
localJSONObject1.put("s", this.b);
localJSONObject1.put("e", this.c);
localJSONObject1.put("i", System.currentTimeMillis());
localJSONObject1.put("c", this.d);
JSONArray localJSONArray = new JSONArray();
int i = 0;
while (i < this.a.size())
{
JSONObject localJSONObject2 = new JSONObject();
localJSONObject2.put("n", ((af)this.a.get(i)).a());
localJSONObject2.put("d", ((af)this.a.get(i)).b());
long l2 = ((af)this.a.get(i)).c() - this.b;
long l1 = l2;
if (l2 < 0L) {
l1 = 0L;
}
localJSONObject2.put("ps", l1);
localJSONArray.put(localJSONObject2);
i += 1;
}
localJSONObject1.put("p", localJSONArray);
return localJSONObject1;
}
catch (JSONException localJSONException)
{
au.a().a("statsdk", "StatSession.constructJSONObject() failed");
}
return localJSONObject1;
}
public int d()
{
return this.d;
}
}
| [
"antal.micky@yahoo.com"
] | antal.micky@yahoo.com |
341a34203ca499d407decbc69bdeee0a560983b2 | dbe20b7db3ba8ace6e67eb5bddd41ab750d95977 | /src/Chapter3_ProgramFlowControlStatement/Section02_SelectionStructure/SelectionStructure_05_ifStatementformat2Practice1.java | d0cb3a8ef7d525809579f41c5e42a8ff73947ab2 | [] | no_license | XiaoMing18/JavaSE | d6f370e14baafd13a83ea8e126ad94637fcc0eaf | ed3201e47f13b23ecc8be2ccf4ed6e3865eb83e6 | refs/heads/master | 2021-07-12T18:37:48.993060 | 2021-07-02T06:39:27 | 2021-07-02T06:39:27 | 200,471,562 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,454 | java | package Chapter3_ProgramFlowControlStatement.Section02_SelectionStructure;
//if格式语句2与三元相互转换
/**
* 区别:
* 1,三元运算符实现的都可以采用if语句实现,反之不成立
* 2,什么时候if语句实现不能用三元改进呢?
* 当if语句控制的操作是一个输出语句的时候
* 为什么?
* 因为三元运算符是一个运算符,运算符操作完毕就应该有一个结果,而不是一个输出
*/
import java.util.Scanner;
public class SelectionStructure_05_ifStatementformat2Practice1 {
public static void main(String[] args) {
//获取两个数据中较大的值
int a = 10;
int b = 20;
int max;
if (a > b){
max = a;
}else {
max = b;
}
System.out.println("max:"+max);
System.out.println("--------------------------------");
//用三元改进
int max1 = (a > b)?a:b;
System.out.println("max1:"+max1);
System.out.println("-----------------------------------------");
//判断一个数是奇数还是偶数并把它输出到控制台
Scanner sc = new Scanner(System.in);
System.out.println("输入要判断的数字");
int z = sc.nextInt();
if (z%2 == 0){
System.out.println("这个数是偶数");
}else {
System.out.println("这个数是奇数");
}
}
}
| [
"2460903407@qq.com"
] | 2460903407@qq.com |
a0e164969fa505a9117cf9d6d003079f0b030cd0 | 68c7969c4ae1cd9065d7587cb78756e5283591b7 | /catcommon/src/main/java/com/bobo/dbconnection/ConnectionHolderDefault.java | d2aae0a2a0b2d336468d471ed61fb8b5cdca3712 | [] | no_license | young-person/bobo | aed6f37766e595a0283ec102dbe35baf643ffcf7 | 693d0104780947dcb31f24425fa0a236f9136135 | refs/heads/master | 2022-12-11T04:48:02.305237 | 2019-12-16T14:06:41 | 2019-12-16T14:06:41 | 185,199,606 | 0 | 0 | null | 2022-12-06T00:42:45 | 2019-05-06T13:12:51 | TSQL | UTF-8 | Java | false | false | 5,210 | java | package com.bobo.dbconnection;
import com.bobo.base.BaseClass;
import java.sql.*;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class ConnectionHolderDefault extends BaseClass implements ConnectionHolder<DBType> {
private static final int LIMIT = 500;
@Override
public List<Map<String, Object>> query(DBType db, String sql) {
List<Map<String, Object>> list = new ArrayList<Map<String, Object>>();
Connection connection = null;
PreparedStatement statement = null;
ResultSet resultSet = null;
try {
Class.forName(db.getDriver());
connection = DriverManager.getConnection(db.getUrl(),db.getUserName(), db.getPassWord());
LOGGER.info(sql);
statement = connection.prepareStatement(sql,ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);
statement.setFetchSize(LIMIT);
resultSet = statement.executeQuery();
ResultSetMetaData metaData = resultSet.getMetaData();
int count = metaData.getColumnCount();
String[] name = new String[count];
for (int i = 0; i < count; i++) {
name[i] = metaData.getColumnLabel(i+1);
}
while (resultSet.next()) {
Map<String, Object> m = new HashMap<String, Object>();
for (int i = 0; i < count; i++) {
Object obj = resultSet.getObject(name[i]);
String columnName = name[i];
m.put(columnName, obj);
}
list.add(m);
}
} catch (ClassNotFoundException | SQLException e) {
e.printStackTrace();
}finally{
close(connection,statement,resultSet);
}
return list;
}
@Override
public int update(DBType db, String sql) {
Connection connection = null;
Statement statement = null;
int cnt = 0;
try {
Class.forName(db.getDriver());
connection = DriverManager.getConnection(db.getUrl(),db.getUserName(), db.getPassWord());
statement = connection.createStatement();
LOGGER.info(sql);
cnt = statement.executeUpdate(sql);
} catch (ClassNotFoundException | SQLException e) {
e.printStackTrace();
}finally{
close(connection,statement,null);
}
return cnt;
}
@Override
public boolean delete(DBType db, String sql) {
Connection connection = null;
Statement statement = null;
boolean cnt = false;
try {
Class.forName(db.getDriver());
connection = DriverManager.getConnection(db.getUrl(),db.getUserName(), db.getPassWord());
statement = connection.createStatement();
LOGGER.info(sql);
cnt = statement.execute(sql);
} catch (ClassNotFoundException | SQLException e) {
e.printStackTrace();
}finally{
close(connection,statement,null);
}
return cnt;
}
@Override
public void save(DBType db, String sql) {
Connection connection = null;
Statement statement = null;
try {
Class.forName(db.getDriver());
connection = DriverManager.getConnection(db.getUrl(),db.getUserName(), db.getPassWord());
statement = connection.createStatement();
LOGGER.info(sql);
statement.execute(sql);
} catch (ClassNotFoundException | SQLException e) {
e.printStackTrace();
}finally{
close(connection,statement,null);
}
}
@Override
public boolean execute(DBType db, String sql) {
Connection connection = null;
Statement statement = null;
boolean cnt = false;
try {
Class.forName(db.getDriver());
connection = DriverManager.getConnection(db.getUrl(),db.getUserName(), db.getPassWord());
statement = connection.createStatement();
LOGGER.info(sql);
cnt = statement.execute(sql);
} catch (ClassNotFoundException | SQLException e) {
LOGGER.error("连接信息:"+connection.toString()+statement.toString());
e.printStackTrace();
}finally{
close(connection,statement,null);
}
return cnt;
}
@Override
public int queryForInt(DBType db, String sql) {
Connection connection = null;
Statement statement = null;
ResultSet resultSet = null;
int cnt = 0;
try {
Class.forName(db.getDriver());
connection = DriverManager.getConnection(db.getUrl(),db.getUserName(), db.getPassWord());
statement = connection.createStatement();
LOGGER.info(sql);
resultSet = statement.executeQuery(sql);
while(resultSet.next()){
cnt = resultSet.getInt(1);
}
} catch (ClassNotFoundException | SQLException e) {
e.printStackTrace();
}finally{
close(connection,statement,resultSet);
}
return cnt;
}
private void close(Connection connection, Statement statement,ResultSet resultSet) {
try {
if (connection != null && !connection.isClosed()) {
connection.close();
}
} catch (Exception e) {
}
}
@Override
public boolean executeAtomicity(DBType db, String sql) {
Connection connection = null;
Statement statement = null;
boolean cnt = false;
try {
Class.forName(db.getDriver());
connection = DriverManager.getConnection(db.getUrl(),db.getUserName(), db.getPassWord());
connection.setAutoCommit(false);
connection.setTransactionIsolation(Connection.TRANSACTION_SERIALIZABLE);
statement = connection.createStatement();
LOGGER.info(sql);
cnt = statement.execute(sql);
connection.commit();
cnt = true;
} catch (ClassNotFoundException | SQLException e) {
e.printStackTrace();
}finally{
close(connection,statement,null);
}
return cnt;
}
}
| [
"czb199345"
] | czb199345 |
79e222f079ba2ba0b2dfc329ca69fc8f3c27dac9 | 666d8a8ebdc9193629e3177fe7d0066953384428 | /src/main/java/kernbeisser/CustomComponents/Node/NodeSelectionListener.java | dc5ed97deca668d7f372a1d262002045cedbb81a | [] | no_license | blackdra-gon/Kernbeisser-Gradle | 75e91cbd876f601b12934693bc4f2e405d53883e | 11bdd4837d6ed1e433074cbf5f0aca5d259b218d | refs/heads/master | 2020-11-24T07:38:26.041801 | 2019-12-08T15:21:41 | 2019-12-08T15:21:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 127 | java | package kernbeisser.CustomComponents.Node;
public interface NodeSelectionListener<T> {
void nodeSelected(Node<T> node);
}
| [
"julikiller98@gmail.com"
] | julikiller98@gmail.com |
9b41d315ae52cfae2ffa7e13bf50d483df5a120c | 05afdbfb36eff78efe77196a18344ae05b03d087 | /coap/client/BasicCoapClient.java | 11b71afb381110c83e105c43ba9f456a6e25897f | [] | no_license | homg93/Life-Ring | 3e0ef6b4addcbf244d11a389dc3f71d1b6505e14 | 70b836b324d38aee3e2978004858ad9785f48fd8 | refs/heads/master | 2020-03-19T05:23:32.155367 | 2018-06-03T17:42:19 | 2018-06-03T17:42:19 | 135,926,010 | 0 | 0 | null | null | null | null | UHC | Java | false | false | 10,075 | java | package org.ws4d.coap.client;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.rmi.server.ServerCloneException;
import java.util.Random;
import java.util.Vector;
import javax.swing.BorderFactory;
import javax.swing.DefaultListModel;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import org.ws4d.coap.Constants;
import org.ws4d.coap.connection.BasicCoapChannelManager;
import org.ws4d.coap.connection.BasicCoapClientChannel;
import org.ws4d.coap.interfaces.CoapChannelManager;
import org.ws4d.coap.interfaces.CoapClient;
import org.ws4d.coap.interfaces.CoapClientChannel;
import org.ws4d.coap.interfaces.CoapRequest;
import org.ws4d.coap.interfaces.CoapResponse;
import org.ws4d.coap.messages.CoapBlockOption;
import org.ws4d.coap.messages.CoapBlockOption.CoapBlockSize;
import org.ws4d.coap.messages.CoapMediaType;
import org.ws4d.coap.messages.CoapRequestCode;
/**
* @author Christian Lerche <christian.lerche@uni-rostock.de>
* Bjoern Konieczek <bjoern.konieczek@uni-rostock.de>
*/
public class BasicCoapClient extends JFrame implements CoapClient, ActionListener
{
private String SERVER_ADDRESS;
private int PORT;
static int counter = 0;
private CoapChannelManager channelManager = null;
private BasicCoapClientChannel clientChannel = null;
private Random tokenGen = null;
//UI
private JTextField uriField;
private JTextField payloadField;
private JButton postBtn, getBtn;
private JTextArea area;
public BasicCoapClient(String server_addr, int port ){
super();
this.SERVER_ADDRESS = server_addr;
this.PORT = port;
this.channelManager = BasicCoapChannelManager.getInstance();
this.tokenGen = new Random();
}
public boolean connect(){
try {
clientChannel = (BasicCoapClientChannel) channelManager.connect(this, InetAddress.getByName(SERVER_ADDRESS), PORT);
} catch( UnknownHostException e ){
e.printStackTrace();
return false;
}
return true;
}
public boolean connect( String server_addr, int port ){
this.SERVER_ADDRESS = server_addr;
this.PORT = port;
return this.connect();
}
public CoapRequest createRequest( boolean reliable, CoapRequestCode reqCode ) {
return clientChannel.createRequest( reliable, reqCode );
}
public byte[] generateRequestToken(int tokenLength ){
byte[] token = new byte[tokenLength];
tokenGen.nextBytes(token);
return token;
}
@Override
public void onConnectionFailed(CoapClientChannel channel, boolean notReachable, boolean resetByServer) {
System.out.println("Connection Failed");
}
@Override
public void onResponse(CoapClientChannel channel, CoapResponse response) { //메시지가 여기로 들어옴
System.out.println("Received response");
if(response.getPayload() != null)
{
String responseData = new String(response.getPayload());
System.out.println(responseData);
area.append("Response:\n");
if(responseData.matches(".*well-known/core.*")) //matches .* abc .*하면 문구중에 abc있는걸 출력
{
String[] tempData = responseData.split(",");
for(String data : tempData)
{
if(!data.equals("</.well-known/core>"))
{
area.append(data+"\n");
}
}
}else
{
area.append(responseData+"\n");
}
area.append("--------------------------------\n");
}else
{
System.out.println("response payload null");
area.append("Response:\n");
area.append("response payload null\n");
area.append("--------------------------------\n");
}
}
@Override
public void onMCResponse(CoapClientChannel channel, CoapResponse response, InetAddress srcAddress, int srcPort) {
System.out.println("MCReceived response");
}
public void resourceDiscoveryExample()
{
try {
clientChannel = (BasicCoapClientChannel) channelManager.connect(this, InetAddress.getByName(SERVER_ADDRESS), PORT);
CoapRequest coapRequest = clientChannel.createRequest(true, CoapRequestCode.GET);
byte [] token = generateRequestToken(3);
coapRequest.setUriPath("/.well-known/core");
coapRequest.setToken(token);
clientChannel.sendMessage(coapRequest);
} catch (UnknownHostException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}
public void postExample()
{
try {
clientChannel = (BasicCoapClientChannel) channelManager.connect(this, InetAddress.getByName(SERVER_ADDRESS), PORT);
CoapRequest coapRequest = clientChannel.createRequest(true, CoapRequestCode.POST);
byte [] token = generateRequestToken(3);
coapRequest.setUriPath("/test/light");
coapRequest.setToken(token);
coapRequest.setPayload("lightONONONONON!!!!".getBytes());
clientChannel.sendMessage(coapRequest);
} catch (UnknownHostException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}
public void getExample()
{
try {
clientChannel = (BasicCoapClientChannel) channelManager.connect(this, InetAddress.getByName(SERVER_ADDRESS), PORT);
CoapRequest coapRequest = clientChannel.createRequest(true, CoapRequestCode.GET);
byte [] token = generateRequestToken(3);
coapRequest.setUriPath("/test/light");
coapRequest.setToken(token);
clientChannel.sendMessage(coapRequest);
} catch (UnknownHostException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}
public void observeExample()
{
try {
clientChannel = (BasicCoapClientChannel) channelManager.connect(this, InetAddress.getByName(SERVER_ADDRESS), PORT);
CoapRequest coapRequest = clientChannel.createRequest(true, CoapRequestCode.GET);
byte [] token = generateRequestToken(3);
coapRequest.setUriPath("/test/light");
coapRequest.setToken(token);
coapRequest.setObserveOption(1);
clientChannel.sendMessage(coapRequest);
} catch (UnknownHostException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}
//client Ui
public void clientUi()
{
setTitle("CoAP_Project Life Ring");
setSize(600,380);
setLocation(400,300);
setLayout(null);
setResizable(false);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JLabel label = new JLabel("URI Path");
label.setBounds(10, 20, 100, 30);
label.setFont(new Font("Serif", Font.PLAIN, 15));
add(label);
uriField = new JTextField();
uriField.setBounds(100, 20, 150, 30);
uriField.setFont(new Font("Serif", Font.PLAIN, 15));
add(uriField);
label = new JLabel("Payload");
label.setBounds(10, 70, 100, 30);
label.setFont(new Font("Serif", Font.PLAIN, 15));
add(label);
payloadField = new JTextField();
payloadField.setBounds(100, 70, 150, 30);
payloadField.setFont(new Font("Serif", Font.PLAIN, 15));
add(payloadField);
getBtn = new JButton("GET");
getBtn.setBounds(30, 130, 100, 30);
getBtn.setFont(new Font("Serif", Font.PLAIN, 15));
getBtn.addActionListener(this);
add(getBtn);
postBtn = new JButton("POST");
postBtn.setBounds(140, 130, 100, 30);
postBtn.setFont(new Font("Serif", Font.PLAIN, 15));
postBtn.addActionListener(this);
add(postBtn);
area = new JTextArea();
area.setFont(new Font("Serif", Font.PLAIN, 15));
JScrollPane sc = new JScrollPane(area);
sc.setBounds(270, 20, 300, 300);
add(sc);
setVisible(true);
}
@Override
public void actionPerformed(ActionEvent e) {
// TODO Auto-generated method stub
if(e.getSource() == getBtn)
{
String uriPath= uriField.getText();
area.append("Request:\n");
area.append("Method: GET\n");
area.append("Uri path: "+uriPath+"\n");
area.append("--------------------------------\n");
if(uriPath.equals(".well-known/core"))
{
area.append("**Resource Discovery**\n");
}else
{
}
try {
clientChannel = (BasicCoapClientChannel) channelManager.connect(this, InetAddress.getByName(SERVER_ADDRESS), PORT);
CoapRequest coapRequest = clientChannel.createRequest(true, CoapRequestCode.GET);
byte [] token = generateRequestToken(3);
coapRequest.setUriPath(uriPath);
coapRequest.setToken(token);
clientChannel.sendMessage(coapRequest);
} catch (UnknownHostException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}
else if(e.getSource() == postBtn)
{
String uriPath= uriField.getText();
String payload = payloadField.getText();
area.append("Request:\n");
area.append("Method: POST\n");
area.append("Uri path: "+uriPath+"\n");
area.append("Payload: "+payload+"\n");
area.append("--------------------------------\n");
try {
clientChannel = (BasicCoapClientChannel) channelManager.connect(this, InetAddress.getByName(SERVER_ADDRESS), PORT);
CoapRequest coapRequest = clientChannel.createRequest(true, CoapRequestCode.POST);
byte [] token = generateRequestToken(3);
coapRequest.setUriPath(uriPath);
coapRequest.setPayload(payload.getBytes());
coapRequest.setToken(token);
clientChannel.sendMessage(coapRequest);
} catch (UnknownHostException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}
}
public static void main(String[] args)
{
System.out.println("Start CoAP Client");
String serverIp = "192.168.7.10";
//Constants.COAP_DEFAULT_PORT (5683)
BasicCoapClient client = new BasicCoapClient(serverIp, Constants.COAP_DEFAULT_PORT);//CoAP에서 사용하는 포트번호
client.channelManager = BasicCoapChannelManager.getInstance();
//UI
client.clientUi();
//example
//client.resourceDiscoveryExample();
//client.getExample();
//client.postExample();
//client.observeExample();
}
}
| [
"noreply@github.com"
] | noreply@github.com |
fe0db431f1dec1673eba06e530501b44e95a67de | db840a9988542e92d7f419a2a352df66083eecd1 | /cityre_mis/src/main/java/cn/cityre/mis/sys/entity/query/MenuQuery.java | b0be9bea77abfc6809dac9db046e646b7fa0e161 | [] | no_license | ldlqdsdcn/cremis | fcab34aad3ec500a220dea73b7d2d0b2777e33e8 | 3948ad3b0455e202d2f1d3efd351fe971c201e03 | refs/heads/master | 2021-08-23T13:00:53.943465 | 2017-10-12T03:44:33 | 2017-10-12T03:44:33 | 113,111,206 | 2 | 1 | null | null | null | null | UTF-8 | Java | false | false | 1,515 | java | package cn.cityre.mis.sys.entity.query;
import java.util.Set;
/**
* Created by 刘大磊 on 2017/9/5 15:58.
*/
public class MenuQuery {
private String nameLike;
private String parentNameLike;
private String isactive;
private Integer type;
private Set<Integer> repIds;
private Set<Integer> repInIds;
/**
* 拼sql的条件
*/
private String conditions;
public String getNameLike() {
return nameLike;
}
public void setNameLike(String nameLike) {
this.nameLike = nameLike;
}
public String getParentNameLike() {
return parentNameLike;
}
public void setParentNameLike(String parentNameLike) {
this.parentNameLike = parentNameLike;
}
public String getIsactive() {
return isactive;
}
public void setIsactive(String isactive) {
this.isactive = isactive;
}
public Integer getType() {
return type;
}
public void setType(Integer type) {
this.type = type;
}
public Set<Integer> getRepIds() {
return repIds;
}
public void setRepIds(Set<Integer> repIds) {
this.repIds = repIds;
}
public Set<Integer> getRepInIds() {
return repInIds;
}
public void setRepInIds(Set<Integer> repInIds) {
this.repInIds = repInIds;
}
public String getConditions() {
return conditions;
}
public void setConditions(String conditions) {
this.conditions = conditions;
}
}
| [
"liudalei@cityhouse.cn"
] | liudalei@cityhouse.cn |
a680553de58aa087b47242a80d15b460e771d33a | d37d8827d3b8f104997773c34ee6ea9a9233d05b | /gcol/src/main/java/com/github/gv2011/util/gcol/PathImp.java | c148fe1e3e698620c619222c1272d3c90baf3c41 | [
"MIT"
] | permissive | gv2011/util | 0077c848c02039ff95b5a2070c27008429eb0a9a | d8fee21685fcaaa7eac5d4ed5a258dfa577befa4 | refs/heads/master | 2023-02-21T10:11:06.116316 | 2021-10-04T14:56:35 | 2021-10-04T14:56:35 | 57,448,306 | 2 | 0 | MIT | 2023-02-09T19:48:45 | 2016-04-30T15:14:05 | Java | UTF-8 | Java | false | false | 2,981 | java | package com.github.gv2011.util.gcol;
import static com.github.gv2011.util.Verify.verify;
import java.util.Collection;
/*-
* #%L
* The MIT License (MIT)
* %%
* Copyright (C) 2016 - 2018 Vinz (https://github.com/gv2011)
* %%
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
* #L%
*/
import java.util.Comparator;
import java.util.List;
import java.util.Optional;
import com.github.gv2011.util.Comparison;
import com.github.gv2011.util.icol.ICollections;
import com.github.gv2011.util.icol.IList;
import com.github.gv2011.util.icol.Path;
final class PathImp extends IListWrapper<String> implements Path{
private static final Comparator<Path> COMPARATOR = Comparison.listComparator();
static final Path EMPTY = new PathImp(ICollections.emptyList());
PathImp(final List<String> delegate) {
super(delegate);
}
@Override
public int compareTo(final Path o) {
return COMPARATOR.compare(this, o);
}
@Override
public Optional<Path> parent() {
return isEmpty()
? Optional.empty()
: Optional.of(size()==1
? EMPTY
: new PathImp(delegate.subList(0, delegate.size()-1))
)
;
}
@Override
public Path addElement(final String element) {
return new PathImp(super.addElement(element));
}
@Override
public Path join(final Collection<? extends String> elements) {
return new PathImp(super.join(elements));
}
@Override
public Path tail() {
return this.size()==1 ? EMPTY : new PathImp(super.tail());
}
@Override
public Path removePrefix(Path prefix) {
verify(startsWith(prefix));
return subList(prefix.size(), size());
}
@Override
public Path subList(int fromIndex, int toIndex) {
if(fromIndex==0 && toIndex==size()) return this;
else if(fromIndex==toIndex) return EMPTY;
else {
final IList<String> subList = super.subList(fromIndex, toIndex);
assert !subList.isEmpty();
return new PathImp(subList);
}
}
}
| [
"gv2011@users.noreply.github.com"
] | gv2011@users.noreply.github.com |
19f4fe20e3e6faeb2b41455287f3c5b9eca47ada | 4da96d32a7e18e91d445d8d458c47e442444098e | /src/main/java/com/grocery/controllers/MessageBoardController.java | ab03c8019953bc1f15c9d8929c371a8d5359cf28 | [
"MIT"
] | permissive | log4jc/MyGrocery | d2616c10ed412453314a7ca8f816ce4a6d517d73 | 2fe500e40d8e8f1aa84563334ca2638fb5e8c22d | refs/heads/master | 2021-09-10T01:15:10.929181 | 2017-11-26T13:41:57 | 2017-11-26T13:41:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,727 | java | package com.grocery.controllers;
import com.grocery.domain.Message;
import com.grocery.domain.MessageBoardSubreply;
import com.grocery.configuration.CustomProperty;
import com.grocery.services.MessageBoardService;
import com.grocery.utilities.PackingInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* Created by Jason on 15/10/2017.
*/
@Controller
@RequestMapping("/messageBoard")
public class MessageBoardController {
@Autowired
private MessageBoardService messageBoardService;
@Autowired
private CustomProperty customProperty;
@PostMapping("/leaveMessage")
public void sendMessage(HttpSession session, String replyMessage, HttpServletResponse response) throws IOException {
messageBoardService.sendMessage(session, replyMessage);
response.sendRedirect("/messageBoard/1");
}
@PostMapping("/loadReplyDetail")
@ResponseBody
public Message loadReplyDetail(String messageBoardId, String messageBoardUserId, HttpSession session) {
return PackingInfo.changeData2Message(messageBoardService.firstLoadDetailReply(messageBoardId, messageBoardUserId, session));
}
@PostMapping("/sendReplyOrSubReply")
@ResponseBody
public Message sendReplyOrSubReply(String messageBoardId4Reply, String replyTo, String messageText, HttpSession session) {
return PackingInfo.changeData2Message(messageBoardService.saveMessageBoardSubreply(messageBoardId4Reply, replyTo, messageText, session));
}
@PostMapping("/getNextSubReply")
@ResponseBody
public Message getNextSubReply(String messageBoardId4Reply, String pageIndex) {
Map data = new HashMap<String, List<MessageBoardSubreply>>();
data.put("Subreply", messageBoardService.getMessageBoardSubreplyByPaging(Integer.valueOf(pageIndex), Integer.valueOf(customProperty.getSubReply()), messageBoardId4Reply));
return PackingInfo.changeData2Message(data);
}
@PostMapping("/getSubReply")
@ResponseBody
public Message getSubReply(String messageBoardId4Reply, String pageIndex) {
return PackingInfo.changeData2Message(messageBoardService.getSubReply(Integer.valueOf(customProperty.getSubReply()), messageBoardId4Reply));
}
@PostMapping("/getMessageBoardTitleMessages")
@ResponseBody
public Message getMessageBoardTitleMessages() {
return PackingInfo.changeData2Message(messageBoardService.getAllMessageBoardTitleMessageByOrder());
}
@PostMapping("/deleteMessageBoardTitleMessages")
@ResponseBody
public Message deleteMessageBoardTitleMessages(Integer id) {
messageBoardService.deleteMessageBoardTitleMessageByOrder(id);
return PackingInfo.changeData2Message("Y");
}
@PostMapping("/updateMessageBoardTitleMessage")
@ResponseBody
public Message updateMessageBoardTitleMessage(Integer id,String content,Integer orderNum) {
return PackingInfo.changeData2Message(messageBoardService.updateMessageBoardTitleMessage(id,content,orderNum));
}
@PostMapping("/insertMessageBoardTitleMessage")
@ResponseBody
public Message insertMessageBoardTitleMessage(String content,Integer orderNum) {
return PackingInfo.changeData2Message(messageBoardService.insertMessageBoardTitleMessage(content,orderNum));
}
}
| [
"ozil.liu2@gmail.com"
] | ozil.liu2@gmail.com |
5b0bb574d81b1430a1abb9c0d49414ad67930584 | 8c67390ae8db3bef7e0957000d6201a4bb446aa5 | /src/main/java/br/com/layout/gridbag/TudoSobreGridBagLayout.java | 500ff6be5605c2b2ba5da21e037648943209201a | [] | no_license | gbarcelos/demoLayoutManager | 84080b40b6aeaea04364e6f90be74bbd1d0e8992 | 03c2bd902966853ba6f685fa3b7fba71009dfed1 | refs/heads/master | 2021-01-10T11:15:07.177291 | 2015-11-14T14:27:06 | 2015-11-14T14:27:06 | 46,240,995 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,450 | java | package br.com.layout.gridbag;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import javax.swing.JComponent;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.JTextField;
/**
* http://javafree.uol.com.br/artigo/5792/Tudo-sobre-o-GridBagLayout.html
* http://www.guj.com.br/java/233211-gridbaglayoutresolvido
*
* @author gustavo.barcelos
*
*/
public class TudoSobreGridBagLayout extends JFrame {
public TudoSobreGridBagLayout() {
super("Tudo sobre o GridBagLayout");
this.setDefaultCloseOperation(EXIT_ON_CLOSE);
this.getContentPane().setLayout(new GridBagLayout());
add("Código", new JTextField(), "Nascimento", new JTextField());
add("Nome", new JTextField());
add("Nome Pai", new JTextField());
add("Nome Mãe", new JTextField());
add("RG", new JTextField(), "CPF", new JTextField());
add("Endereços", new JScrollPane(new JTable()));
this.setSize(600,600);
}
/**
* Adiciona um label e um componente horizontalmente
* @param label String que irá aparecer no label
* @param componente Componente de edição
*/
public void add(String label, JComponent componente ) {
GridBagConstraints cons = new GridBagConstraints();
cons.fill = GridBagConstraints.NONE;
cons.anchor = GridBagConstraints.NORTHWEST;
cons.insets = new Insets(4,4,4,4);
cons.weightx = 0;
cons.gridwidth = 1;
this.getContentPane().add(new JLabel(label), cons);
cons.fill = GridBagConstraints.BOTH;
cons.weightx = 1;
cons.gridwidth = GridBagConstraints.REMAINDER;
this.getContentPane().add(componente, cons);
}
/**
* Adiciona um label e um componente horizontalmente. O componente ocupará todo o reto da tela
* @param label String que irá aparecer no label
* @param componente Componente de edição
*/
public void add(String label, JScrollPane componente ) {
GridBagConstraints cons = new GridBagConstraints();
cons.fill = GridBagConstraints.NONE;
cons.anchor = GridBagConstraints.NORTHWEST;
cons.insets = new Insets(4,4,4,4);
cons.weighty = 1;
cons.gridheight = GridBagConstraints.REMAINDER;
cons.weightx = 0;
cons.gridwidth = 1;
this.getContentPane().add(new JLabel(label), cons);
cons.fill = GridBagConstraints.BOTH;
cons.weightx = 1;
cons.gridwidth = GridBagConstraints.REMAINDER;
this.getContentPane().add(componente, cons);
}
/**
* Adiciona um label, um componente de edição, mais um label e outro componente de edição. Todos
* na mesma linha
* @param label Label 1
* @param componente Componente de edição
* @param label2 Label 2
* @param componente2 Componente de edição 2
*/
public void add(String label, JComponent componente, String label2, JComponent componente2) {
GridBagConstraints cons = new GridBagConstraints();
cons.fill = GridBagConstraints.BOTH;
cons.insets = new Insets(4,4,4,4);
cons.fill = GridBagConstraints.NONE;
cons.anchor = GridBagConstraints.NORTHWEST;
cons.weightx = 0;
cons.gridwidth = 1;
this.getContentPane().add(new JLabel(label), cons);
cons.weightx = 1;
cons.gridwidth = 1;
cons.fill = GridBagConstraints.BOTH;
this.getContentPane().add(componente, cons);
cons.fill = GridBagConstraints.NONE;
cons.weightx = 0;
cons.gridwidth = 1;
this.getContentPane().add(new JLabel(label2), cons);
cons.weightx = 1;
cons.fill = GridBagConstraints.BOTH;
cons.gridwidth = GridBagConstraints.REMAINDER;
this.getContentPane().add(componente2, cons);
}
public static void main(String[] args ) {
TudoSobreGridBagLayout exe = new TudoSobreGridBagLayout();
exe.show();
}
}
| [
"gmbarcelos2@yahoo.com.br"
] | gmbarcelos2@yahoo.com.br |
f544a5b0294700cc0959bfa347bb6ed654aec72f | f7eb57cf3027c562764ba1242cebfcd2fb077130 | /app/src/main/java/arcus/app/subsystems/alarm/promonitoring/presenters/HubAlarmDisconnectedContract.java | f7dba12949534f98c9ad766fe9eacfac41d5da63 | [
"Apache-2.0"
] | permissive | arcus-smart-home/arcusandroid | e866ab720c7f023a8c6ed0f4bff782fb3d17a366 | 845b23b6ee913c58e009914e920242e29d0b137a | refs/heads/master | 2021-07-16T05:00:28.554875 | 2020-01-04T19:29:05 | 2020-01-05T05:45:36 | 168,191,380 | 30 | 29 | Apache-2.0 | 2020-06-14T18:27:29 | 2019-01-29T16:51:39 | Java | UTF-8 | Java | false | false | 1,170 | java | /*
* Copyright 2019 Arcus 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 arcus.app.subsystems.alarm.promonitoring.presenters;
import arcus.cornea.common.PresentedView;
import arcus.cornea.common.Presenter;
public class HubAlarmDisconnectedContract {
public class HubAlarmDisconnectedModel {
}
public interface HubAlarmDisconnectedView extends PresentedView<HubAlarmDisconnectedModel> {
void setHubLastChangedTime(String hubLastChangedTime);
void setSecurityModeChanged(String newMode);
}
public interface HubAlarmDisconnectedPresenter extends Presenter<HubAlarmDisconnectedView> {}
}
| [
"b@yoyo.com"
] | b@yoyo.com |
3b4b9aa10f5061f0e8d399d00f5259acb49d0238 | 03d61086047f041168f9a77b02a63a9af83f0f3f | /newrelic/src/main/java/com/newrelic/agent/instrumentation/pointcuts/frameworks/faces/PhasePointCut.java | 2f5b5b8992a00b88dba46d7b60932e22c4b6622e | [] | no_license | masonmei/mx2 | fa53a0b237c9e2b5a7c151999732270b4f9c4f78 | 5a4adc268ac1e52af1adf07db7a761fac4c83fbf | refs/heads/master | 2021-01-25T10:16:14.807472 | 2015-07-30T21:49:33 | 2015-07-30T21:49:35 | 39,944,476 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,375 | java | //
// Decompiled by Procyon v0.5.29
//
package com.newrelic.agent.instrumentation.pointcuts.frameworks.faces;
import com.newrelic.agent.tracers.metricname.MetricNameFormat;
import com.newrelic.agent.tracers.DefaultTracer;
import com.newrelic.agent.tracers.metricname.ClassMethodMetricNameFormat;
import com.newrelic.agent.tracers.Tracer;
import com.newrelic.agent.tracers.ClassMethodSignature;
import com.newrelic.agent.Transaction;
import com.newrelic.agent.instrumentation.classmatchers.ClassMatcher;
import com.newrelic.agent.instrumentation.classmatchers.ExactClassMatcher;
import com.newrelic.agent.instrumentation.PointCut;
import com.newrelic.agent.instrumentation.PointCutConfiguration;
import com.newrelic.agent.instrumentation.TracerFactoryPointCut;
public class PhasePointCut extends TracerFactoryPointCut
{
public PhasePointCut() {
super(new PointCutConfiguration(PhasePointCut.class), new ExactClassMatcher("com/sun/faces/lifecycle/Phase"), PointCut.createExactMethodMatcher("doPhase", "(Ljavax/faces/context/FacesContext;Ljavax/faces/lifecycle/Lifecycle;Ljava/util/ListIterator;)V"));
}
public Tracer doGetTracer(final Transaction transaction, final ClassMethodSignature sig, final Object phase, final Object[] args) {
return new DefaultTracer(transaction, sig, phase, new ClassMethodMetricNameFormat(sig, phase));
}
}
| [
"dongxu.m@gmail.com"
] | dongxu.m@gmail.com |
44672c00eed9b69f9ab00f8b969750f186db997c | 773aea2271c189029d9105302b3cc66fa21f1fb0 | /Source/App/MainActivity/src/com/ssm/ExCycling/view/layout/CruiseLayout.java | 12c681131d344b7eceffd25f15c5863ff1733366 | [] | no_license | junggeunhwang/SSM_CC_SBH_HJG | 107a9cda55be4e08eafeca399dd16dcad9beb59e | 507b13097ef7bd06c7f24748ed25ec48a8fc0130 | refs/heads/master | 2016-09-09T20:17:32.655668 | 2014-07-20T03:02:15 | 2014-07-20T03:02:15 | 21,067,537 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 14,942 | java | package com.ssm.ExCycling.view.layout;
import net.simonvt.menudrawer.MenuDrawer;
import com.ssm.ExCycling.R;
import com.ssm.ExCycling.controller.activity.MainActivity;
import com.ssm.ExCycling.controller.manager.CruiseDataManager;
import com.ssm.ExCycling.controller.manager.ResourceManager;
import com.ssm.ExCycling.controller.manager.SettingsDataManager;
import android.app.Fragment;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Color;
import android.graphics.Matrix;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.View.OnClickListener;
import android.view.ViewGroup.LayoutParams;
import android.view.ViewTreeObserver.OnWindowFocusChangeListener;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;
public class CruiseLayout extends BaseFragmentLayout {
static String TAG = CruiseLayout.class.getSimpleName();
private Button btnMenu;
private TextView tvAppName;
private TextView tvFragmentName;
private TextView tvDistance;
private TextView tvDistanceData;
private TextView tvDistanceDataUnit;
private TextView tvAvgVelocityData;
private TextView tvAvgVelocityDataUnit;
private TextView tvKcal;
private TextView tvKcalUnit;
private TextView tvKcalData;
private TextView tvAltitude;
private TextView tvAltitudeUnit;
private TextView tvAltitudeData;
private TextView tvMaxSpeed;
private TextView tvMaxSpeedUnit;
private TextView tvMaxSpeedData;
private LinearLayout lyInnerCircle;
private LinearLayout lyTopBar;
private LinearLayout lyMidBar;
private LinearLayout lyInnerCycle;
private LinearLayout lyOuterCycle;
private View vLeftBar;
private View vRightBar;
public CruiseLayout(Fragment instance) {
super(instance);
}
public void init(){
btnMenu = (Button)getView().findViewById(R.id.menu_button_cruise);
btnMenu.setOnClickListener(buildMenuButtonListener());
tvAppName = (TextView)getView().findViewById(R.id.app_name_cruise);
tvFragmentName = (TextView)getView().findViewById(R.id.fragment_name_cruise);
tvDistance = (TextView)getView().findViewById(R.id.tv_distance_cruise);
tvDistanceData = (TextView)getView().findViewById(R.id.tv_distance_data_cruise);
tvDistanceDataUnit = (TextView)getView().findViewById(R.id.tv_distance_data_unit_cruise);
tvAvgVelocityData = (TextView)getView().findViewById(R.id.tv_average_velocity_data_cruise);
tvAvgVelocityDataUnit = (TextView)getView().findViewById(R.id.tv_average_velocity_data_unit_cruise);
tvKcal = (TextView)getView().findViewById(R.id.tv_kcal_cruise);
tvKcalData = (TextView)getView().findViewById(R.id.tv_kcal_data_cruise);
tvKcalUnit = (TextView)getView().findViewById(R.id.tv_kcal_data_unit_cruise);
tvAltitude = (TextView)getView().findViewById(R.id.tv_altitude_cruise);
tvAltitudeData = (TextView)getView().findViewById(R.id.tv_altitude_data_cruise);
tvAltitudeUnit = (TextView)getView().findViewById(R.id.tv_altitude_data_unit_cruise);
tvMaxSpeed = (TextView)getView().findViewById(R.id.tv_max_speed_cruise);
tvMaxSpeedData = (TextView)getView().findViewById(R.id.tv_max_speed_data_cruise);
tvMaxSpeedUnit = (TextView)getView().findViewById(R.id.tv_max_speed_data_unit_cruise);
lyInnerCircle = (LinearLayout)getView().findViewById(R.id.inner_circle_cruise);
lyTopBar = (LinearLayout)getView().findViewById(R.id.top_bar_cruise);
lyMidBar = (LinearLayout)getView().findViewById(R.id.mid_bar_cruise);
vLeftBar = (View)getView().findViewById(R.id.left_bar_cruise);
vRightBar = (View)getView().findViewById(R.id.right_bar_cruise);
lyOuterCycle = (LinearLayout)getView().findViewById(R.id.outer_circle_cruise);
lyInnerCycle = (LinearLayout)getView().findViewById(R.id.inner_circle_cruise);
tvAppName.setTypeface(ResourceManager.getInstance().getFont("helveitica"));
tvFragmentName.setTypeface(ResourceManager.getInstance().getFont("helveitica"));
tvDistance.setTypeface(ResourceManager.getInstance().getFont("helveitica"));
tvDistanceData.setTypeface(ResourceManager.getInstance().getFont("nanum_gothic"));
tvDistanceDataUnit.setTypeface(ResourceManager.getInstance().getFont("helvetica"));
tvAvgVelocityData.setTypeface(ResourceManager.getInstance().getFont("nanum_gothic"));
tvAvgVelocityDataUnit.setTypeface(ResourceManager.getInstance().getFont("helvetica"));
tvKcal.setTypeface(ResourceManager.getInstance().getFont("helveitica"));
tvKcalData.setTypeface(ResourceManager.getInstance().getFont("nanum_gothic"));
tvKcalUnit.setTypeface(ResourceManager.getInstance().getFont("helvetica"));
tvAltitude.setTypeface(ResourceManager.getInstance().getFont("helveitica"));
tvAltitudeData.setTypeface(ResourceManager.getInstance().getFont("nanum_gothic"));
tvAltitudeUnit.setTypeface(ResourceManager.getInstance().getFont("helveitica"));
tvMaxSpeed.setTypeface(ResourceManager.getInstance().getFont("helveitica"));
tvMaxSpeedData.setTypeface(ResourceManager.getInstance().getFont("nanum_gothic"));
tvMaxSpeedUnit.setTypeface(ResourceManager.getInstance().getFont("helveitica"));
Drawable inner_circle = MainActivity.getInstasnce().getResources().getDrawable(R.drawable.inner_circle_pink);
LinearLayout.LayoutParams param = (LinearLayout.LayoutParams)lyInnerCircle.getLayoutParams();
// lyInnerCircle.setBackground(rotateResource(R.drawable.inner_cycle_cruise,45,(int)(inner_circle.getMinimumWidth()*1.1),(int)(inner_circle.getMinimumHeight()*1.2)));
updateCruiseInfo();
updateColor();
}
@Override
public void createView(LayoutInflater inflater, ViewGroup container) {
view = inflater.inflate(R.layout.fragment_cruise, container, false);
}
private OnClickListener buildMenuButtonListener(){
return new OnClickListener(){
@Override
public void onClick(View v) {
((MainActivity)fragment.getActivity()).open_button(v);
}
};
}
public void updateCruiseInfo(){
tvAltitudeData.post(new Runnable() {
@Override
public void run() {
tvAltitudeData.setText(String.valueOf(CruiseDataManager.getInstance().getElevation()));
}
});
tvAvgVelocityData.post(new Runnable() {
@Override
public void run() {
tvAvgVelocityData.setText(String.valueOf(CruiseDataManager.getInstance().getCurrent_speed()));
}
});
tvKcalData.post(new Runnable() {
@Override
public void run() {
tvKcalData.setText(String.valueOf(CruiseDataManager.getInstance().getCalory()));
}
});
tvDistanceData.post(new Runnable() {
@Override
public void run() {
<<<<<<< HEAD
String dist = String.format("%.2f", CruiseDataManager.getInstance().getDistnace());
tvDistanceData.setText(dist);
=======
tvDistanceData.setText(String.valueOf(CruiseDataManager.getInstance().getDistnace()));
>>>>>>> 276e7d88dd36c958c6c77998ee4fe5801d5d9d98
}
});
tvMaxSpeedData.post(new Runnable() {
@Override
public void run() {
tvMaxSpeedData.setText(String.valueOf(CruiseDataManager.getInstance().getMaximum_speed()));
}
});
tvKcalData.post(new Runnable() {
@Override
public void run() {
tvKcalData.setText(String.valueOf(CruiseDataManager.getInstance().getCalory()));
}
});
}
public Drawable rotateResource(int resID,float degree,int width,int height){
Bitmap bitmapOrg = BitmapFactory.decodeResource(MainActivity.getInstasnce().getResources(), resID);
Matrix matrix = new Matrix();
matrix.postRotate(45);
Bitmap rotatedBitmap = Bitmap.createBitmap(bitmapOrg,0,0,width,height,matrix,true);
return new BitmapDrawable(MainActivity.getInstasnce().getResources(),rotatedBitmap);
}
public void updateColor(){
if(SettingsDataManager.getInstance().getThemeColor().equals("pink")){
lyTopBar.setBackgroundColor(MainActivity.getInstasnce().getResources().getColor(R.color.bk_color_pink_heavy));
lyMidBar.setBackgroundColor(MainActivity.getInstasnce().getResources().getColor(R.color.bk_color_pink_mid));
tvAppName.setTextColor(MainActivity.getInstasnce().getResources().getColor(R.color.text_pink));
tvDistance.setTextColor(MainActivity.getInstasnce().getResources().getColor(R.color.text_pink));
tvDistanceData.setTextColor(MainActivity.getInstasnce().getResources().getColor(R.color.text_pink));
tvDistanceDataUnit.setTextColor(MainActivity.getInstasnce().getResources().getColor(R.color.text_pink));
tvAvgVelocityData.setTextColor(MainActivity.getInstasnce().getResources().getColor(R.color.text_pink));
tvAvgVelocityDataUnit.setTextColor(MainActivity.getInstasnce().getResources().getColor(R.color.text_pink));
tvKcal.setTextColor(MainActivity.getInstasnce().getResources().getColor(R.color.text_pink));
tvKcalUnit.setTextColor(MainActivity.getInstasnce().getResources().getColor(R.color.text_pink));
tvKcalData.setTextColor(MainActivity.getInstasnce().getResources().getColor(R.color.text_pink));
tvAltitude.setTextColor(MainActivity.getInstasnce().getResources().getColor(R.color.text_pink));
tvAltitudeUnit.setTextColor(MainActivity.getInstasnce().getResources().getColor(R.color.text_pink));
tvAltitudeData.setTextColor(MainActivity.getInstasnce().getResources().getColor(R.color.text_pink));
tvMaxSpeed.setTextColor(MainActivity.getInstasnce().getResources().getColor(R.color.text_pink));
tvMaxSpeedUnit.setTextColor(MainActivity.getInstasnce().getResources().getColor(R.color.text_pink));
tvMaxSpeedData.setTextColor(MainActivity.getInstasnce().getResources().getColor(R.color.text_pink));
vLeftBar.setBackgroundColor(MainActivity.getInstasnce().getResources().getColor(R.color.bk_color_pink_heavy));
vRightBar.setBackgroundColor(MainActivity.getInstasnce().getResources().getColor(R.color.bk_color_pink_heavy));
lyInnerCycle.setBackground(MainActivity.getInstasnce().getResources().getDrawable(R.drawable.inner_circle_pink));
lyOuterCycle.setBackground(MainActivity.getInstasnce().getResources().getDrawable(R.drawable.outer_circle_pink));
}else if(SettingsDataManager.getInstance().getThemeColor().equals("green")){
lyTopBar.setBackgroundColor(MainActivity.getInstasnce().getResources().getColor(R.color.bk_color_green_heavy));
lyMidBar.setBackgroundColor(MainActivity.getInstasnce().getResources().getColor(R.color.bk_color_green_mid));
tvAppName.setTextColor(MainActivity.getInstasnce().getResources().getColor(R.color.text_green));
tvDistance.setTextColor(MainActivity.getInstasnce().getResources().getColor(R.color.text_green));
tvDistanceData.setTextColor(MainActivity.getInstasnce().getResources().getColor(R.color.text_green));
tvDistanceDataUnit.setTextColor(MainActivity.getInstasnce().getResources().getColor(R.color.text_green));
tvAvgVelocityData.setTextColor(MainActivity.getInstasnce().getResources().getColor(R.color.text_green));
tvAvgVelocityDataUnit.setTextColor(MainActivity.getInstasnce().getResources().getColor(R.color.text_green));
tvKcal.setTextColor(MainActivity.getInstasnce().getResources().getColor(R.color.text_green));
tvKcalUnit.setTextColor(MainActivity.getInstasnce().getResources().getColor(R.color.text_green));
tvKcalData.setTextColor(MainActivity.getInstasnce().getResources().getColor(R.color.text_green));
tvAltitude.setTextColor(MainActivity.getInstasnce().getResources().getColor(R.color.text_green));
tvAltitudeUnit.setTextColor(MainActivity.getInstasnce().getResources().getColor(R.color.text_green));
tvAltitudeData.setTextColor(MainActivity.getInstasnce().getResources().getColor(R.color.text_green));
tvMaxSpeed.setTextColor(MainActivity.getInstasnce().getResources().getColor(R.color.text_green));
tvMaxSpeedUnit.setTextColor(MainActivity.getInstasnce().getResources().getColor(R.color.text_green));
tvMaxSpeedData.setTextColor(MainActivity.getInstasnce().getResources().getColor(R.color.text_green));
vLeftBar.setBackgroundColor(MainActivity.getInstasnce().getResources().getColor(R.color.bk_color_green_heavy));
vRightBar.setBackgroundColor(MainActivity.getInstasnce().getResources().getColor(R.color.bk_color_green_heavy));
lyInnerCycle.setBackground(MainActivity.getInstasnce().getResources().getDrawable(R.drawable.inner_circle_green));
lyOuterCycle.setBackground(MainActivity.getInstasnce().getResources().getDrawable(R.drawable.outer_circle_green));
}else if(SettingsDataManager.getInstance().getThemeColor().equals("gray")){
lyTopBar.setBackgroundColor(MainActivity.getInstasnce().getResources().getColor(R.color.bk_color_gray_heavy));
lyMidBar.setBackgroundColor(MainActivity.getInstasnce().getResources().getColor(R.color.bk_color_gray_mid));
tvAppName.setTextColor(MainActivity.getInstasnce().getResources().getColor(R.color.text_gray));
tvDistance.setTextColor(MainActivity.getInstasnce().getResources().getColor(R.color.text_gray));
tvDistanceData.setTextColor(MainActivity.getInstasnce().getResources().getColor(R.color.text_gray));
tvDistanceDataUnit.setTextColor(MainActivity.getInstasnce().getResources().getColor(R.color.text_gray));
tvAvgVelocityData.setTextColor(MainActivity.getInstasnce().getResources().getColor(R.color.text_gray));
tvAvgVelocityDataUnit.setTextColor(MainActivity.getInstasnce().getResources().getColor(R.color.text_gray));
tvKcal.setTextColor(MainActivity.getInstasnce().getResources().getColor(R.color.text_gray));
tvKcalUnit.setTextColor(MainActivity.getInstasnce().getResources().getColor(R.color.text_gray));
tvKcalData.setTextColor(MainActivity.getInstasnce().getResources().getColor(R.color.text_gray));
tvAltitude.setTextColor(MainActivity.getInstasnce().getResources().getColor(R.color.text_gray));
tvAltitudeUnit.setTextColor(MainActivity.getInstasnce().getResources().getColor(R.color.text_gray));
tvAltitudeData.setTextColor(MainActivity.getInstasnce().getResources().getColor(R.color.text_gray));
tvMaxSpeed.setTextColor(MainActivity.getInstasnce().getResources().getColor(R.color.text_gray));
tvMaxSpeedUnit.setTextColor(MainActivity.getInstasnce().getResources().getColor(R.color.text_gray));
tvMaxSpeedData.setTextColor(MainActivity.getInstasnce().getResources().getColor(R.color.text_gray));
vLeftBar.setBackgroundColor(MainActivity.getInstasnce().getResources().getColor(R.color.bk_color_gray_heavy));
vRightBar.setBackgroundColor(MainActivity.getInstasnce().getResources().getColor(R.color.bk_color_gray_heavy));
lyInnerCycle.setBackground(MainActivity.getInstasnce().getResources().getDrawable(R.drawable.inner_circle_gray));
lyOuterCycle.setBackground(MainActivity.getInstasnce().getResources().getDrawable(R.drawable.outer_circle_gray));
}
}
}
| [
"hydrogenjg@icloud.com"
] | hydrogenjg@icloud.com |
4f3ad0242ffc8e9bc9dfbceac3531c3c5ac25cf1 | 4b2c63d13f24585a3542576cdf64bd01db67c1ae | /hss/hsscommon/src/main/java/org/freeims/hss/server/db/op/VisitedNetwork_DAO.java | 86933f81db0ef1f2664685e501b94d3003b287b8 | [] | no_license | gugu-lee/freeims | ce1d0d92ab79c93dfc356971363f0faf6d228461 | bbe2de872deb074531e12cf74204b7a29c91c354 | refs/heads/master | 2022-12-01T08:47:38.326261 | 2019-11-02T10:14:33 | 2019-11-02T10:14:33 | 58,299,201 | 0 | 0 | null | 2022-11-24T01:41:17 | 2016-05-08T06:11:46 | Java | UTF-8 | Java | false | false | 4,883 | java | /*
* Copyright (C) 2004-2007 FhG Fokus
*
* This file is part of Open IMS Core - an open source IMS CSCFs & HSS
* implementation
*
* Open IMS Core is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* For a license to use the Open IMS Core software under conditions
* other than those described here, or to purchase support for this
* software, please contact Fraunhofer FOKUS by e-mail at the following
* addresses:
* info@open-ims.org
*
* Open IMS Core 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 General Public License for more details.
*
* It has to be noted that this Open Source IMS Core System is not
* intended to become or act as a product in a commercial context! Its
* sole purpose is to provide an IMS core reference implementation for
* IMS technology testing and IMS application prototyping for research
* purposes, typically performed in IMS test-beds.
*
* Users of the Open Source IMS Core System have to be aware that IMS
* technology may be subject of patents and licence terms, as being
* specified within the various IMS-related IETF, ITU-T, ETSI, and 3GPP
* standards. Thus all Open IMS Core users have to take notice of this
* fact and have to agree to check out carefully before installing,
* using and extending the Open Source IMS Core System, if related
* patents and licenses may become applicable to the intended usage
* context.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
package org.freeims.hss.server.db.op;
import java.util.List;
import org.apache.log4j.Logger;
import org.freeims.hss.server.model.ChargingInfo;
import org.freeims.hss.server.model.TP;
import org.freeims.hss.server.model.VisitedNetwork;
import org.hibernate.Query;
import org.hibernate.Session;
/**
* @author adp dot fokus dot fraunhofer dot de
* Adrian Popescu / FOKUS Fraunhofer Institute
*/
public class VisitedNetwork_DAO {
private static Logger logger = Logger.getLogger(VisitedNetwork_DAO.class);
public static void insert(Session session, VisitedNetwork visited_network){
session.save(visited_network);
}
public static void update(Session session, VisitedNetwork visited_network){
session.save(visited_network);
}
public static VisitedNetwork get_by_ID(Session session, int id){
Query query;
query = session.createSQLQuery("select * from visited_network where id=?")
.addEntity(VisitedNetwork.class);
query.setInteger(0, id);
return (VisitedNetwork) query.uniqueResult();
}
public static VisitedNetwork get_by_Identity(Session session, String identity){
Query query;
query = session.createSQLQuery("select * from visited_network where identity like ?")
.addEntity(VisitedNetwork.class);
query.setString(0, identity);
VisitedNetwork result = null;
try{
result = (VisitedNetwork) query.uniqueResult();
}
catch(org.hibernate.NonUniqueResultException e){
logger.error("Query did not returned an unique result! You have a duplicate in the database!");
e.printStackTrace();
}
return result;
}
public static Object[] get_by_Wildcarded_Identity(Session session, String identity,
int firstResult, int maxResults){
Query query;
query = session.createSQLQuery("select * from visited_network where identity like ?")
.addEntity(VisitedNetwork.class);
query.setString(0, "%" + identity + "%");
Object[] result = new Object[2];
result[0] = new Integer(query.list().size());
query.setFirstResult(firstResult);
query.setMaxResults(maxResults);
result[1] = query.list();
return result;
}
public static Object[] get_all(Session session, int firstResult, int maxResults){
Query query;
query = session.createSQLQuery("select * from visited_network")
.addEntity(VisitedNetwork.class);
Object[] result = new Object[2];
result[0] = new Integer(query.list().size());
query.setFirstResult(firstResult);
query.setMaxResults(maxResults);
result[1] = query.list();
return result;
}
public static List get_all(Session session){
Query query;
query = session.createSQLQuery("select * from visited_network")
.addEntity(VisitedNetwork.class);
return query.list();
}
public static int delete_by_ID(Session session, int id){
Query query = session.createSQLQuery("delete from visited_network where id=?");
query.setInteger(0, id);
return query.executeUpdate();
}
}
| [
"seven.stone.2012@gmail.com"
] | seven.stone.2012@gmail.com |
e34e30ab9154d4d213be5c15627dacdbbb3d378a | 7ed146d19070dd7bff7ff5cf3d18e3950dd8af19 | /11Packs/src/main/java/com/waio/verification/model/OTPSystem.java | 2dc5df4b1d06b92619b0994ccfeaf5f00e04851c | [] | no_license | viramdhangar/boot_app | 99ff00cbbc547cf40b831c70a9a38e7b920b8933 | 994c100cf42bbf3164498b4da92a969f83546926 | refs/heads/master | 2020-04-17T16:42:39.287425 | 2019-01-21T05:20:54 | 2019-01-21T05:21:03 | 166,752,081 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,532 | java | /**
*
*/
package com.waio.verification.model;
/**
* @author Viramm
*
*/
public class OTPSystem {
private String mobileNumber;
private String otp;
private long expiryTime;
//email otp
private String email;
private String subject;
private String emailBody;
/**
* @return the mobileNumber
*/
public String getMobileNumber() {
return mobileNumber;
}
/**
* @param mobileNumber the mobileNumber to set
*/
public void setMobileNumber(String mobileNumber) {
this.mobileNumber = mobileNumber;
}
/**
* @return the otp
*/
public String getOtp() {
return otp;
}
/**
* @param otp the otp to set
*/
public void setOtp(String otp) {
this.otp = otp;
}
/**
* @return the expiryTime
*/
public long getExpiryTime() {
return expiryTime;
}
/**
* @param expiryTime the expiryTime to set
*/
public void setExpiryTime(long expiryTime) {
this.expiryTime = expiryTime;
}
/**
* @return the email
*/
public String getEmail() {
return email;
}
/**
* @param email the email to set
*/
public void setEmail(String email) {
this.email = email;
}
/**
* @return the subject
*/
public String getSubject() {
return subject;
}
/**
* @param subject the subject to set
*/
public void setSubject(String subject) {
this.subject = subject;
}
/**
* @return the emailBody
*/
public String getEmailBody() {
return emailBody;
}
/**
* @param emailBody the emailBody to set
*/
public void setEmailBody(String emailBody) {
this.emailBody = emailBody;
}
}
| [
"viram.dhangar@gmail.com"
] | viram.dhangar@gmail.com |
06ed7e1b8aa8319214dea55b83c015c8a5568cb7 | b911c33e7655a05b2c566422247f69357f021c55 | /curator/src/main/java/com/tracy/curator/CuratorConnect.java | 5455d0a41c0d1bccdb290306a4635980e378533b | [] | no_license | kexiaomeng/nettyTest | 996d4ba2f101793f352b5081d8f53cab15a654fe | b271f4de94244b95648c83ef9018a9756cccf993 | refs/heads/master | 2022-11-25T10:31:12.314675 | 2019-07-18T03:22:54 | 2019-07-18T08:56:48 | 152,219,060 | 0 | 0 | null | 2022-11-16T06:28:53 | 2018-10-09T08:53:11 | Java | UTF-8 | Java | false | false | 9,263 | java | package com.tracy.curator;
import javafx.util.Pair;
import org.apache.curator.RetryPolicy;
import org.apache.curator.framework.AuthInfo;
import org.apache.curator.framework.CuratorFramework;
import org.apache.curator.framework.CuratorFrameworkFactory;
import org.apache.curator.framework.imps.CuratorFrameworkState;
import org.apache.curator.framework.recipes.cache.*;
import org.apache.curator.retry.ExponentialBackoffRetry;
import org.apache.zookeeper.CreateMode;
import org.apache.zookeeper.ZooDefs;
import org.apache.zookeeper.data.ACL;
import org.apache.zookeeper.data.Id;
import org.apache.zookeeper.data.Stat;
import org.apache.zookeeper.server.auth.DigestAuthenticationProvider;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
public class CuratorConnect {
public CuratorFramework curatorFramework = null;
private static final String zkServerIps = "127.0.0.1:2181";
public void createConnect() {
RetryPolicy retryPolicy = new ExponentialBackoffRetry(1000 ,5 ); // 重连策略
curatorFramework = CuratorFrameworkFactory.builder() // 创建客户端
.connectString(zkServerIps)
.sessionTimeoutMs(10000)
.retryPolicy(retryPolicy)
.authorization("digest","sunmeng:sunmeng".getBytes()) // 访问有密码认证
.build();
curatorFramework.start();
}
/**
* 创建节点
* @param path
* @param data
*/
public void createNameSpace(String path, String data, List<ACL> acls) {
try {
String result = curatorFramework.create().creatingParentsIfNeeded() // 创建父节点,也就是会递归创建
.withMode(CreateMode.PERSISTENT) // 节点类型
.withACL(acls) // 节点的acl权限
.forPath(path, data.getBytes());
System.out.println("创建节点:"+result);
} catch (Exception e) {
e.printStackTrace();
}
}
// 关闭zk客户端连接
private void closeZKClient() {
if (curatorFramework != null) {
this.curatorFramework.close();
}
}
/**
* 修改节点
* @param path
* @param data
*/
public void modifyNode(String path, String data) {
try {
Stat result = curatorFramework.setData().withVersion(0).forPath(path,data.getBytes());
System.out.println("修改节点,version:"+result.getVersion());
} catch (Exception e) {
e.printStackTrace();
}
}
/**
* 删除节点
* @param path
*/
public void deleteNode(String path) {
try {
curatorFramework.delete().guaranteed().deletingChildrenIfNeeded().forPath(path);
} catch (Exception e) {
e.printStackTrace();
}
}
/**
* 判断一个节点是否存在
* @param path
* @return
*/
public boolean exists(String path){
try {
Stat stat = curatorFramework.checkExists().forPath(path);
if (stat == null) {
return false;
}else{
return true;
}
} catch (Exception e) {
e.printStackTrace();
return false;
}
}
/**
* 获取节点数据
* @param path
* @return Pair对
*/
public Pair<Stat, byte[]> getDataOfNode(String path) {
Stat stat = new Stat();
try {
byte[] msg = curatorFramework.getData().storingStatIn(stat).forPath(path);
return new Pair<Stat, byte[]>(stat,msg);
} catch (Exception e) {
e.printStackTrace();
return null;
}
}
/**
* 获取子节点列表
* @param path
* @return
*/
public List<String> getChildNode(String path) {
try {
List<String> childNode = curatorFramework.getChildren().forPath(path);
return childNode;
} catch (Exception e) {
e.printStackTrace();
return null;
}
}
/**
* 监听节点事件,多次监听,不需要手动去重新注册,只能监听到节点数据的变化。
*/
public void listenNode(String path) throws Exception {
final NodeCache nodeCache = new NodeCache(curatorFramework, path);
// 参数 buildInitial : 初始化的时候获取node的值并且缓存
nodeCache.start(true);
if (nodeCache.getCurrentData() != null) {
System.out.println("节点初始化数据为:" + new String(nodeCache.getCurrentData().getData()));
}else{
System.out.println("节点初始化数据为空...");
}
nodeCache.getListenable().addListener(new NodeCacheListener() {
public void nodeChanged() throws Exception {
if (nodeCache.getCurrentData() == null) {
System.out.println("获取节点数据异常,无法获取当前缓存的节点数据,可能该节点已被删除");
return;
}
// 获取节点最新的数据
String data = new String(nodeCache.getCurrentData().getData());
System.out.println(nodeCache.getCurrentData().getPath() + " 节点的数据发生变化,最新的数据为:" + data);
}
});
}
/**
* 监听子节点事件,有event标识,可以获取具体的事件类型
*/
public void listenChildNode(String path) throws Exception {
// 为子节点添加watcher
// PathChildrenCache: 监听数据节点的增删改,可以设置触发的事件
PathChildrenCache pathChildrenCache = new PathChildrenCache(curatorFramework, path, true );
/**
* StartMode: 初始化方式
* POST_INITIALIZED_EVENT:异步初始化,初始化之后会触发已有节点的新增和初始化事件
* NORMAL:异步初始化
* BUILD_INITIAL_CACHE:同步初始化,
*/
pathChildrenCache.start(PathChildrenCache.StartMode.BUILD_INITIAL_CACHE);
pathChildrenCache.getListenable().addListener(new PathChildrenCacheListener() {
public void childEvent(CuratorFramework curatorFramework, PathChildrenCacheEvent event) throws Exception {
if (PathChildrenCacheEvent.Type.CHILD_ADDED.equals(event.getType())) {
System.out.println("新增子节点");
System.out.println("\n--------------\n");
System.out.print("子节点:" + event.getData().getPath() + " 添加成功,");
System.out.println("该子节点的数据为:" + new String(event.getData().getData()));
}else if (PathChildrenCacheEvent.Type.CHILD_UPDATED.equals(event.getType())){
System.out.println("更新子节点");
System.out.println("\n--------------\n");
System.out.print("子节点:" + event.getData().getPath() + " 数据更新成功,");
System.out.println("子节点:" + event.getData().getPath() + " 新的数据为:" + new String(event.getData().getData()));
}else if (PathChildrenCacheEvent.Type.CHILD_REMOVED.equals(event.getType())){
System.out.println("删除子节点");
}
}
});
}
public static void main(String args[]) throws Exception {
CuratorConnect connect = new CuratorConnect();
connect.createConnect();
String name = "1:sunmeng";
String [] names = name.split(name,2);
System.out.println(name);
// zookeeper将用户名和密码一起编码作为密码
System.out.println(DigestAuthenticationProvider.generateDigest("sunmeng:sunmen"));
// 获取当前客户端的状态
CuratorFrameworkState isZkCuratorStarted = connect.curatorFramework.getState();
System.out.println("当前客户端的状态:" + isZkCuratorStarted.name() );
String path = "/curator/test1";
connect.createNameSpace("/curator/test1","sunmeng",ZooDefs.Ids.OPEN_ACL_UNSAFE);
connect.modifyNode(path,"modifysunmeng");
System.out.println(connect.exists(path));
System.out.println(new String(connect.getDataOfNode(path).getValue()).toString());
for (String node : connect.getChildNode("/curator")){
System.out.println(node);
}
connect.listenNode("/curator");
connect.listenChildNode(path);
List<ACL> acls = new ArrayList<ACL>();
ACL acl = new ACL(ZooDefs.Perms.CREATE,new Id("digest", DigestAuthenticationProvider.generateDigest("sunmeng:sunmeng")));
// connect.deleteNode(path);
try {
Thread.sleep(100000L);
} catch (InterruptedException e) {
e.printStackTrace();
}
// connect.closeZKClient();
//
//
//
// // 获取当前客户端的状态
// isZkCuratorStarted = connect.curatorFramework.getState();
// System.out.println("当前客户端的状态:" + isZkCuratorStarted.name() );
}
}
| [
"307621564@qq.com"
] | 307621564@qq.com |
86cc07d90ede20f083ef42163c19c9cda7304c0c | d54ab0f2d6389fb458ecc22e9d152afa9213aeaa | /design/src/com/decorator/SweetDecorator.java | 952dd3a2e3aef9acc20b5ec657d6fcdb91f9b707 | [] | no_license | zhaomengfei2007/design | 249e6ba35fb02aab662b9f1e9245d74f4832e4b3 | 51e95c854e9759237615265eab244ce34e9273b4 | refs/heads/master | 2021-08-28T12:17:56.684784 | 2017-12-12T07:32:58 | 2017-12-12T07:41:49 | 113,956,659 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 287 | java | package com.decorator;
public class SweetDecorator extends AbstractBread {
public SweetDecorator(IBread bread) {
super(bread);
}
public void paint(){
System.out.println("添加甜蜜素...");
}
public void kneadFlour(){
this.paint();
super.kneadFlour();
}
}
| [
"zhaomengfei2007@126.com"
] | zhaomengfei2007@126.com |
eac7566d68fdf8e19395a24b4b40dc6f25bc5bea | 4bdde731fc68fae79a3b2742c718e07d70bae1fe | /app/src/androidTest/java/quiz/fake/quiz/coloquiz/ExampleInstrumentedTest.java | 58babb5561e5c33f311821c645f284cf8f7edab8 | [] | no_license | LordFredrick/fakeColorQuiz | 50792716940b3403ba373debd498aaff1c48cc97 | 804c6bef0bb639fa0be1232748c7e870311f8011 | refs/heads/master | 2021-04-27T20:16:23.585643 | 2018-02-21T18:31:14 | 2018-02-21T18:31:14 | 122,376,145 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 747 | java | package quiz.fake.quiz.coloquiz;
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() throws Exception {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();
assertEquals("quiz.fake.quiz.coloquiz", appContext.getPackageName());
}
}
| [
"dMz8288102"
] | dMz8288102 |
9cc949c29dd984366d64a0b86d6d9ecd9c0f38c2 | 0b740331f7beee956e88f99e5dae4d2d9291e4aa | /base/restful/postdelete/jaspring/src/main/java/jersey/jaspring/conf/errorhandling/AppExceptionMapper.java | a21a51f49c4ebef9b5d891869ed25295cb8c935b | [] | no_license | haohangan/util | 51bdad5533499dcb2a364cdaa640cc0bb0c520a5 | 816f9ea28a54899a0be197e9f0612fcd4ea2ad5c | refs/heads/master | 2023-06-23T08:59:55.146295 | 2023-06-14T01:08:08 | 2023-06-14T01:08:08 | 54,837,061 | 5 | 1 | null | 2022-12-09T23:28:25 | 2016-03-27T16:18:06 | Java | UTF-8 | Java | false | false | 433 | java | package jersey.jaspring.conf.errorhandling;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import javax.ws.rs.ext.ExceptionMapper;
public class AppExceptionMapper implements ExceptionMapper<AppException> {
@Override
public Response toResponse(AppException exception) {
return Response.status(exception.getStatus()).entity(new ErrorMessage(exception))
.type(MediaType.APPLICATION_JSON).build();
}
}
| [
"YKSE"
] | YKSE |
301b414c16f880fb0cb117da728d4fab6f448e87 | ffe51120e37c281c0203fba02b61122cc6fafe21 | /src/zamk/lib/runtime/Assembler.java | ca954d80763d79d360a87adfef0f3b3dcee6f31d | [] | no_license | zygote1984/zamk | ccb6f6beb190c1491bae9b68768d8950f4009742 | 97e331b70c31184eeec11f0c4d9c47d7136cd876 | refs/heads/master | 2016-08-06T12:44:34.087964 | 2012-11-30T11:48:00 | 2012-11-30T11:48:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 216 | java | package zamk.lib.runtime;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.Member;
import java.lang.reflect.Method;
/**
* @since 1.0
*/
public class Assembler {
}
| [
"kardelenhatun@gmail.com"
] | kardelenhatun@gmail.com |
0f9e08576da482440aa40f80543965e7417bf58a | a087b7b3c86f7f078e72b20dae10916cbe351107 | /src/com/java/design/patterns/singleton/EagerInitializedSingleton.java | 326ab32b7543cc2d9f1e5df675c43a67358631e2 | [] | no_license | deepakcnct/Java_8 | d94aea92c376a445944ed6b1b23966e8d77baf80 | 0db13a6f0a71df18469b714a60f914f262cb05b2 | refs/heads/master | 2023-07-07T13:24:53.064095 | 2021-07-29T18:27:53 | 2021-07-29T18:27:53 | 377,411,380 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,214 | java | package com.java.design.patterns.singleton;
/**
* @apiNote These type of class have only single instance throughout.
* example :- logging, caching, driver class such as DB driver, thread pool.
*
* 1. Private Constructor to restrict instantiation of the class from outside.
* 2. Private instance variable, which serves as the only instance of the class.
* 3. Public static method, that returns the instance of the class. It serves as the global access point from outside world to the instance of this class.
*
* Different approaches of Singleton class :-
* 1. Eager 2. Lazy 3. Static block 4. Thread Safe Singleton 5. Using Reflection to destroy Singleton class 6. Enum 7. Bill Pugh Singleton implementation 8. Serialization and Singleton.
*
* @author Deepak
*
*
*/
public class EagerInitializedSingleton {
public static final EagerInitializedSingleton eagerInitializedSingleton = new EagerInitializedSingleton();
//private constructor to avoid client applications to use constructor
private EagerInitializedSingleton() {
// TODO Auto-generated constructor stub
}
public static EagerInitializedSingleton getEagerinitializedsingleton() {
return eagerInitializedSingleton;
}
}
| [
"deepak.cnct@gmail.com"
] | deepak.cnct@gmail.com |
df6fe125de70b773a19dcf37086924776e89489b | 43983a1dc99ccb31ea1c8a2eba7e42d9c212ac93 | /src/main/java/com/isb/mobiles/repository/search/MobileSubscriptionSearchRepository.java | d8bb7d4b8a19a29e2ecb92a6aaa7a949de251f94 | [] | no_license | JussV/mobiles | 78b51fbf4f03a09092f3ff142e0fdef28b199055 | f039887c426d61a9f2b8f699a3ad3b5a04b6de2c | refs/heads/master | 2020-04-24T21:29:55.498206 | 2019-02-25T20:56:09 | 2019-02-25T20:56:09 | 172,280,236 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 379 | java | package com.isb.mobiles.repository.search;
import com.isb.mobiles.domain.MobileSubscription;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
/**
* Spring Data Elasticsearch repository for the Mobile Subscription entity.
*/
public interface MobileSubscriptionSearchRepository extends ElasticsearchRepository<MobileSubscription, Integer> {
}
| [
"joana.veljanoska@gmail.com"
] | joana.veljanoska@gmail.com |
e1d3fdd4bdc8aeb5f7b3898e6f20bed38db0a223 | bfc57ab8c76ce59025e3488ec5c0454bd471cb7d | /src/main/java/string/Occurance.java | a80e5c807b5b7872c29254f6ecb75105ebdf9996 | [] | no_license | talentleaf/SelOctBatch | 832b0a873e731af2613b0127f9f60e000bafb758 | 885bf3d2d6a728cd1fbaddeb0956a5c75bf97413 | refs/heads/master | 2021-05-03T08:38:48.393824 | 2017-12-03T15:16:23 | 2017-12-03T15:16:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 687 | java | package string;
import org.testng.annotations.Test;
public class Occurance {
String check = "I am the smart learner";
int count = 0;
//Way1 -> toCharArray() , foreach
@Test(enabled =false)
public void sample(){
char[] ch = check.toCharArray();
for (char c : ch) {
if(c=='e')
count++;
}
System.out.println(count);
count = 0; // reset it to zero
}
//Way2 -> for iteration 0 -> length, charAt
@Test
public void sample2(){
}
//Way3 -> length - length (after replace)
@Test
public void sample3(){
}
//way4 -> split and length -1
@Test
public void sample4(){
}
}
| [
"noreply@github.com"
] | noreply@github.com |
f404b0ba4f8cfc514d0d8228c7d455c87a866aab | 6e0fe0c6b38e4647172259d6c65c2e2c829cdbc5 | /modules/base/dvcs-api/src/main/java/com/intellij/dvcs/push/PushSpec.java | 1dff187d6ad233dce1d8c37fe61881724660cbef | [
"Apache-2.0",
"LicenseRef-scancode-jgraph"
] | permissive | TCROC/consulo | 3f9a6df84e0fbf2b6211457b8a5f5857303b3fa6 | cda24a03912102f916dc06ffce052892a83dd5a7 | refs/heads/master | 2023-01-30T13:19:04.216407 | 2020-12-06T16:57:00 | 2020-12-06T16:57:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,195 | java | /*
* Copyright 2000-2014 JetBrains s.r.o.
*
* 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.intellij.dvcs.push;
import javax.annotation.Nonnull;
/**
* For a single repository, specifies what is pushed and where.
*/
public class PushSpec<S extends PushSource, T extends PushTarget> {
@Nonnull
private S mySource;
@Nonnull
private T myTarget;
public PushSpec(@Nonnull S source, @Nonnull T target) {
mySource = source;
myTarget = target;
}
@Nonnull
public S getSource() {
return mySource;
}
@Nonnull
public T getTarget() {
return myTarget;
}
@Override
public String toString() {
return mySource + "->" + myTarget;
}
}
| [
"vistall.valeriy@gmail.com"
] | vistall.valeriy@gmail.com |
12a0c9b6f5b7259073c8877a53928305adc73814 | 24acba2d6adcf35abd4e7b4a7f4b7bc26c1f8a17 | /ssm/src/main/java/com/shsxt/crm/model/ResultInfo.java | db70c29da0bb419d4148c315d45a930a7b221d18 | [] | no_license | ldz924382407/ssm_backup | e7555e208763b749e1553ed6371703d0a155a54b | b811e505861ca3e6ab99f01892327b5d05df228a | refs/heads/master | 2022-12-22T07:37:43.634655 | 2019-07-13T02:56:07 | 2019-07-13T02:56:07 | 196,669,145 | 0 | 0 | null | 2022-12-16T09:45:18 | 2019-07-13T02:29:26 | CSS | UTF-8 | Java | false | false | 930 | java | package com.shsxt.crm.model;
/**
* Created by xlf on 2019/6/4.
*/
public class ResultInfo {
private Integer code;
private String msg;
private Object result;
public ResultInfo() {
}
public ResultInfo(Integer code, String msg) {
this.code = code;
this.msg = msg;
}
public Integer getCode() {
return code;
}
public void setCode(Integer code) {
this.code = code;
}
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
this.msg = msg;
}
public Object getResult() {
return result;
}
public void setResult(Object result) {
this.result = result;
}
@Override
public String toString() {
return "ResultInfo{" +
"code=" + code +
", msg='" + msg + '\'' +
", result=" + result +
'}';
}
}
| [
"ldz924382407@163.com"
] | ldz924382407@163.com |
90a2bd5a6ca66933d7d80240ce7917daf793d5dc | 2aed9271d01dd3b979234db5df1b0c69ef7828cb | /src/Lab9/ClientInterface.java | 9c33d1f0b8a69e6b9b23119a2b47837b09afc790 | [] | no_license | moimat/Lab10Java | 9c380412fd5625ad0a00b5af93fcf4461e97ac63 | 2cb975b080af52d9f4ac960df794f81514e828e4 | refs/heads/master | 2021-01-01T05:32:51.094215 | 2015-03-31T12:06:26 | 2015-03-31T12:06:26 | 33,183,185 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,167 | java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Lab9;
/**
*
* @author matthieu
*/
import Lab8.Client.ClientInterfaceController;
import Lab8.Client.RunClient;
import java.io.IOException;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.nio.ByteBuffer;
import java.nio.CharBuffer;
import java.nio.channels.SelectionKey;
import java.nio.channels.Selector;
import java.nio.channels.SocketChannel;
import java.nio.charset.Charset;
import java.util.Iterator;
import java.util.Set;
import java.util.logging.Level;
import java.util.logging.Logger;
import javafx.application.Application;
import static javafx.application.Application.launch;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.StackPane;
import javafx.stage.Stage;
import javafx.stage.WindowEvent;
/**
*
* @author user
*/
public class ClientInterface extends Application {
private Stage primaryStage;
private AnchorPane rootLayout;
private InetAddress hostAddress;
private int port;
private ClientInterfaceController controller;
private Client client;
@Override
public void start(Stage primaryStage) throws IOException, Exception {
hostAddress = InetAddress.getLocalHost();
port = 1025;
// channel = this.initiateConnection();
this.primaryStage = primaryStage;
this.primaryStage.setTitle("My Client Chat");
//initRootLayout();
primaryStage.setOnCloseRequest(new EventHandler<WindowEvent>() {
public void handle(WindowEvent we) {
/*try {
} catch (IOException ex) {
Logger.getLogger(ClientInterface.class.getName()).log(Level.SEVERE, null, ex);
}*/
}
});
}
public void initialize(Client client){
this.client=client;
}
/*public void initRootLayout() {
try {
// Load root layout from fxml file.
FXMLLoader loader = new FXMLLoader();
loader.setLocation(ClientInterface.class.getResource("/Lab8.Client/ClientInterface.fxml"));
rootLayout = (AnchorPane) loader.load();
// Show the scene containing the root layout.
Scene scene = new Scene(rootLayout);
primaryStage.setScene(scene);
// Give the controller access to the main app.
controller = loader.getController();
controller.setMain(this);
primaryStage.show();
} catch (IOException e) {
e.printStackTrace();
}
}*/
public void send(String message) throws IOException{
client.sendMessage(message);
}
}
| [
"matthieu.boucon@outlook.com"
] | matthieu.boucon@outlook.com |
341d66ed9677b9c65acf93e7824aa0e599b17a20 | 7882fd47a8379f6a00a8b97debdf145f599c3527 | /app/src/main/java/com/example/android/calgarytourguide/UI/GamesFragment.java | d6c5cbc636d878cff9f743617696ad81aa4a2c02 | [] | no_license | abayri/CalgaryTourGuide | b4ebe41a4b91c4ffffe3d44bba0979209b6b29f6 | 2721880e0f584c63dc09832edcb278c064736a5f | refs/heads/master | 2020-05-23T08:02:12.099996 | 2017-01-31T03:53:48 | 2017-01-31T03:53:48 | 78,598,295 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,155 | java | package com.example.android.calgarytourguide.UI;
import android.content.Intent;
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;
import android.widget.AdapterView;
import android.widget.ListView;
import android.widget.TextView;
import com.example.android.calgarytourguide.Model.Item;
import com.example.android.calgarytourguide.Model.ItemAdapter;
import com.example.android.calgarytourguide.R;
import java.util.ArrayList;
/**
* A simple {@link Fragment} subclass.
*/
public class GamesFragment extends Fragment {
private ArrayList<Item> items = new ArrayList<>();
public GamesFragment() {
// Required empty public constructor
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Prevents repitition in adding items to ArrayList
if (items != null) {
items.clear();
}
View rootView = inflater.inflate(R.layout.word_list, container, false);
items.add(new Item(getContext().getString(R.string.games_activity_1),
getContext().getString(R.string.games_description_1),
getContext().getString(R.string.games_address_1),
getContext().getString(R.string.games_phone_1)));
items.add(new Item(getContext().getString(R.string.games_activity_2),
getContext().getString(R.string.games_description_2),
getContext().getString(R.string.games_address_2),
getContext().getString(R.string.games_phone_2)));
items.add(new Item(getContext().getString(R.string.games_activity_3),
getContext().getString(R.string.games_description_3),
getContext().getString(R.string.games_address_3),
getContext().getString(R.string.games_phone_3)));
items.add(new Item(getContext().getString(R.string.games_activity_4),
getContext().getString(R.string.games_description_4),
getContext().getString(R.string.games_address_4),
getContext().getString(R.string.games_phone_4)));
items.add(new Item(getContext().getString(R.string.games_activity_5),
getContext().getString(R.string.games_description_5),
getContext().getString(R.string.games_address_5),
getContext().getString(R.string.games_phone_5)));
items.add(new Item(getContext().getString(R.string.games_activity_6),
getContext().getString(R.string.games_description_6),
getContext().getString(R.string.games_address_6),
getContext().getString(R.string.games_phone_6)));
items.add(new Item(getContext().getString(R.string.games_activity_7),
getContext().getString(R.string.games_description_7),
getContext().getString(R.string.games_address_7),
getContext().getString(R.string.games_phone_7)));
items.add(new Item(getContext().getString(R.string.games_activity_8),
getContext().getString(R.string.games_description_8),
getContext().getString(R.string.games_address_8),
getContext().getString(R.string.games_phone_8)));
ItemAdapter itemAdapter = new ItemAdapter(getActivity(), items);
ListView listView = (ListView) rootView.findViewById(R.id.list);
listView.setAdapter(itemAdapter);
listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long d) {
Item currentItem = items.get(position);
Uri number = Uri.parse("tel:" + currentItem.getPhone());
Intent callIntent = new Intent(Intent.ACTION_DIAL, number);
startActivity(callIntent);
}
});
return rootView;
}
@Override
public void onStop() {
super.onStop();
}
}
| [
"ayri@ualberta.ca"
] | ayri@ualberta.ca |
e7115ba8a42296fc05a1792b15ddb37bf3203b8c | ef15931d6421b89a520f4ee3c991bf452b708167 | /hw09-orm/src/main/java/ru/otus/DbServiceDemo.java | 695dd3cdb802f3bffab582fa52f4d55124bec914 | [
"MIT"
] | permissive | vv16vv/2020-04-otus-java-shirunova | b7f59451be551cfed24c50374bc3eac45593adea | 93b5e7e14d52221793fd46c39d266a1d77170e32 | refs/heads/master | 2021-05-20T10:01:44.013281 | 2020-09-14T06:27:05 | 2020-09-14T06:27:05 | 252,237,006 | 0 | 4 | MIT | 2020-09-14T06:27:06 | 2020-04-01T17:03:03 | Java | UTF-8 | Java | false | false | 3,214 | java | package ru.otus;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import ru.otus.core.model.User;
import ru.otus.core.service.DBServiceUser;
import ru.otus.core.service.DbServiceUserImpl;
import ru.otus.h2.DataSourceH2;
import ru.otus.jdbc.DbExecutorImpl;
import ru.otus.jdbc.dao.UserDaoJdbc;
import ru.otus.jdbc.sessionmanager.SessionManagerJdbc;
import javax.annotation.Nonnull;
import javax.sql.DataSource;
import java.sql.SQLException;
import java.util.Optional;
/**
* @author sergey
* created on 03.02.19.
*/
@SuppressWarnings("SqlNoDataSourceInspection")
public class DbServiceDemo {
private static final Logger logger = LoggerFactory.getLogger(DbServiceDemo.class);
public static void main(String[] args) throws Exception {
var dataSource = new DataSourceH2();
var demo = new DbServiceDemo();
demo.createTable(dataSource);
logger.info("Test for new user");
var sessionManager = new SessionManagerJdbc(dataSource);
DbExecutorImpl<User> dbExecutor = new DbExecutorImpl<>();
var userDao = UserDaoJdbc.create(sessionManager, dbExecutor);
var dbServiceUser = new DbServiceUserImpl(userDao);
var id = dbServiceUser.newUser(new User(0, "dbServiceUser", 55));
var user = demo.searchById(dbServiceUser, id);
if (user.isPresent()) {
logger.info("Test for edit user");
user.ifPresent(demo::changeUser);
dbServiceUser.editUser(user.get());
Optional<User> user2 = dbServiceUser.getUser(id);
user2.ifPresentOrElse(
crUser -> logger.info("update user, name:{}", crUser.getName()),
() -> logger.info("user was not found")
);
}
logger.info("Test for new or edit user - new part");
var anotherUser = new User(100500, "Mary Sue", 23);
dbServiceUser.saveUser(anotherUser);
demo.searchById(dbServiceUser, anotherUser.getId());
logger.info("Test for new or edit user - edit part");
anotherUser.setAge(18);
dbServiceUser.saveUser(anotherUser);
demo.searchById(dbServiceUser, anotherUser.getId());
logger.info("Test for search unexisting user");
demo.searchById(dbServiceUser, 3L);
}
@Nonnull
private Optional<User> searchById(@Nonnull DBServiceUser dbServiceUser, long id) {
logger.info("Test for get user");
Optional<User> user = dbServiceUser.getUser(id);
user.ifPresentOrElse(
crUser -> logger.info("found user with id #{}: name='{}'", id, crUser.getName()),
() -> logger.info("user with id #{} does not exist", id)
);
return user;
}
private void changeUser(@Nonnull User user) {
user.setName("New name");
user.setAge(33);
}
private void createTable(@Nonnull DataSource dataSource) throws SQLException {
try (var connection = dataSource.getConnection();
var pst = connection.prepareStatement("create table user(id long auto_increment, name varchar(50), age int(3))")) {
pst.executeUpdate();
}
System.out.println("table created");
}
}
| [
"29532514+vv16vv@users.noreply.github.com"
] | 29532514+vv16vv@users.noreply.github.com |
12386c8cf7282258561c5cebc11336e3b08e161c | 36b3d9fcfe86a3381d53d83d6d7365dc2ff58032 | /src/main/java/it/smartcampuslab/epu/storage/PagamentoInfo.java | 9157404b46df1c541052231cc45acce2d9580254 | [] | no_license | smartcommunitylab/service.epu | b11690578e20bd9e2448407ea8ebb99a0e671407 | 6d424a47224d5152f479dcc431017cb95e5df0c3 | refs/heads/master | 2020-04-05T23:32:01.447647 | 2015-06-10T08:13:47 | 2015-06-10T08:13:47 | 20,016,029 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,128 | java | package it.smartcampuslab.epu.storage;
public class PagamentoInfo extends DomandaInfo {
protected String identificativo;
protected String oraEmissione;
protected String giornoEmissione;
protected Boolean esenzione = Boolean.FALSE;
protected String motivo;
public String getIdentificativo() {
return identificativo;
}
public void setIdentificativo(String identificativo) {
this.identificativo = identificativo;
}
public String getOraEmissione() {
return oraEmissione;
}
public void setOraEmissione(String oraEmissione) {
this.oraEmissione = oraEmissione;
}
public String getGiornoEmissione() {
return giornoEmissione;
}
public void setGiornoEmissione(String giornoEmissione) {
this.giornoEmissione = giornoEmissione;
}
public Boolean getEsenzione() {
return esenzione;
}
public void setEsenzione(Boolean esenzione) {
this.esenzione = esenzione;
}
public String getMotivo() {
return motivo;
}
public void setMotivo(String motivo) {
this.motivo = motivo;
}
@Override
public String toString() {
return idDomanda + "." + identificativo + "(" + userIdentity + ")";
}
}
| [
"giordano.adami@gmail.com"
] | giordano.adami@gmail.com |
16c49b37b5bba3a2fd0e7912ce1c11d7809771fe | 4aa47c85f1e2147949310550b0db3b61abe8e9ca | /src/main/java/com/apssouza/mytrade/trading/forex/session/event/OrderCreatedEvent.java | d057397eecbf3704f9cd02d352442509a5e58474 | [] | no_license | jmccar/trading-system | 5049b74664381f05772be3a5ac9c9ff3ad4e6705 | fd56a530d45a98b92e542eb4d16f5f4388caf957 | refs/heads/master | 2020-05-21T01:49:24.642732 | 2018-11-22T17:06:12 | 2018-11-22T17:06:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 620 | java | package com.apssouza.mytrade.trading.forex.session.event;
import com.apssouza.mytrade.feed.price.PriceDto;
import com.apssouza.mytrade.trading.forex.order.OrderDto;
import java.time.LocalDateTime;
import java.util.Map;
public class OrderCreatedEvent extends AbstractEvent {
private final OrderDto order;
public OrderCreatedEvent(
EventType type,
LocalDateTime timestamp,
Map<String, PriceDto> price,
OrderDto order
) {
super(type, timestamp, price);
this.order = order;
}
public OrderDto getOrder() {
return order;
}
}
| [
"alex.souza@coalfacecapital.com"
] | alex.souza@coalfacecapital.com |
097e3bc9d31f73a548ba24297dcf7331f7805cf0 | 20eb62855cb3962c2d36fda4377dfd47d82eb777 | /newEvaluatedBugs/Jsoup_42_buggy/mutated/148/TokeniserState.java | 65b6a12a453ecfaa52acfd95fded5ff3766bef3c | [] | no_license | ozzydong/CapGen | 356746618848065cce4e253e5d3c381baa85044a | 0ba0321b6b1191443276021f1997833342f02515 | refs/heads/master | 2023-03-18T20:12:02.923428 | 2020-08-21T03:08:28 | 2020-08-21T03:08:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 61,195 | java | package org.jsoup.parser;
/**
* States and transition activations for the Tokeniser.
*/
enum TokeniserState {
Data {
// in data state, gather characters until a character reference or tag is found
void read(Tokeniser t, CharacterReader r) {
switch (r.current()) {
case '&':
t.advanceTransition(CharacterReferenceInData);
break;
case '<':
t.advanceTransition(TagOpen);
break;
case nullChar:
t.error(this); // NOT replacement character (oddly?)
t.emit(r.consume());
break;
case eof:
t.emit(new Token.EOF());
break;
default:
String data = r.consumeToAny('&', '<', nullChar);
t.emit(data);
break;
}
}
},
CharacterReferenceInData {
// from & in data
void read(Tokeniser t, CharacterReader r) {
Character c = t.consumeCharacterReference(null, false);
if (c == null)
t.emit('&');
else
t.emit(c);
t.transition(Data);
}
},
Rcdata {
/// handles data in title, textarea etc
void read(Tokeniser t, CharacterReader r) {
switch (r.current()) {
case '&':
t.advanceTransition(CharacterReferenceInRcdata);
break;
case '<':
t.advanceTransition(RcdataLessthanSign);
break;
case nullChar:
t.error(this);
r.advance();
t.emit(replacementChar);
break;
case eof:
t.emit(new Token.EOF());
break;
default:
String data = r.consumeToAny('&', '<', nullChar);
t.emit(data);
break;
}
}
},
CharacterReferenceInRcdata {
void read(Tokeniser t, CharacterReader r) {
Character c = t.consumeCharacterReference(null, false);
if (c == null)
t.emit('&');
else
t.emit(c);
t.transition(Rcdata);
}
},
Rawtext {
void read(Tokeniser t, CharacterReader r) {
switch (r.current()) {
case '<':
t.advanceTransition(RawtextLessthanSign);
break;
case nullChar:
t.error(this);
r.advance();
t.emit(replacementChar);
break;
case eof:
t.emit(new Token.EOF());
break;
default:
String data = r.consumeToAny('<', nullChar);
t.emit(data);
break;
}
}
},
ScriptData {
void read(Tokeniser t, CharacterReader r) {
switch (r.current()) {
case '<':
t.advanceTransition(ScriptDataLessthanSign);
break;
case nullChar:
t.error(this);
r.advance();
t.emit(replacementChar);
break;
case eof:
t.emit(new Token.EOF());
break;
default:
String data = r.consumeToAny('<', nullChar);
t.emit(data);
break;
}
}
},
PLAINTEXT {
void read(Tokeniser t, CharacterReader r) {
switch (r.current()) {
case nullChar:
t.error(this);
r.advance();
t.emit(replacementChar);
break;
case eof:
t.emit(new Token.EOF());
break;
default:
String data = r.consumeTo(nullChar);
t.emit(data);
break;
}
}
},
TagOpen {
// from < in data
void read(Tokeniser t, CharacterReader r) {
switch (r.current()) {
case '!':
t.advanceTransition(MarkupDeclarationOpen);
break;
case '/':
t.advanceTransition(EndTagOpen);
break;
case '?':
t.advanceTransition(BogusComment);
break;
default:
if (r.matchesLetter()) {
t.createTagPending(true);
t.transition(TagName);
} else {
t.error(this);
t.emit('<'); // char that got us here
t.transition(Data);
}
break;
}
}
},
EndTagOpen {
void read(Tokeniser t, CharacterReader r) {
if (r.isEmpty()) {
t.eofError(this);
t.emit("</");
t.transition(Data);
} else if (r.matchesLetter()) {
t.createTagPending(false);
t.transition(TagName);
} else if (r.matches('>')) {
t.error(this);
t.advanceTransition(Data);
} else {
t.error(this);
t.advanceTransition(BogusComment);
}
}
},
TagName {
// from < or </ in data, will have start or end tag pending
void read(Tokeniser t, CharacterReader r) {
// previous TagOpen state did NOT consume, will have a letter char in current
String tagName = r.consumeToAny('\t', '\n', '\f', ' ', '/', '>', nullChar).toLowerCase();
t.tagPending.appendTagName(tagName);
switch (r.consume()) {
case '\t':
case '\n':
case '\f':
case ' ':
t.transition(BeforeAttributeName);
break;
case '/':
t.transition(SelfClosingStartTag);
break;
case '>':
t.emitTagPending();
t.transition(Data);
break;
case nullChar: // replacement
t.tagPending.appendTagName(replacementStr);
break;
case eof: // should emit pending tag?
t.eofError(this);
t.transition(Data);
// no default, as covered with above consumeToAny
}
}
},
RcdataLessthanSign {
// from < in rcdata
void read(Tokeniser t, CharacterReader r) {
if (r.matches('/')) {
t.createTempBuffer();
t.advanceTransition(RCDATAEndTagOpen);
} else if (r.matchesLetter() && !r.containsIgnoreCase("</" + t.appropriateEndTagName())) {
// diverge from spec: got a start tag, but there's no appropriate end tag (</title>), so rather than
// consuming to EOF; break out here
t.tagPending = new Token.EndTag(t.appropriateEndTagName());
t.emitTagPending();
r.unconsume(); // undo "<"
t.transition(Data);
} else {
t.emit("<");
t.transition(Rcdata);
}
}
},
RCDATAEndTagOpen {
void read(Tokeniser t, CharacterReader r) {
if (r.matchesLetter()) {
t.createTagPending(false);
t.tagPending.appendTagName(Character.toLowerCase(r.current()));
t.dataBuffer.append(Character.toLowerCase(r.current()));
t.advanceTransition(RCDATAEndTagName);
} else {
t.emit("</");
t.transition(Rcdata);
}
}
},
RCDATAEndTagName {
void read(Tokeniser t, CharacterReader r) {
if (r.matchesLetter()) {
String name = r.consumeLetterSequence();
t.tagPending.appendTagName(name.toLowerCase());
t.dataBuffer.append(name);
return;
}
char c = r.consume();
switch (c) {
case '\t':
case '\n':
case '\f':
case ' ':
if (t.isAppropriateEndTagToken())
t.transition(BeforeAttributeName);
else
anythingElse(t, r);
break;
case '/':
if (t.isAppropriateEndTagToken())
t.transition(SelfClosingStartTag);
else
anythingElse(t, r);
break;
case '>':
if (t.isAppropriateEndTagToken()) {
t.emitTagPending();
t.transition(Data);
}
else
anythingElse(t, r);
break;
default:
anythingElse(t, r);
}
}
private void anythingElse(Tokeniser t, CharacterReader r) {
t.emit("</" + t.dataBuffer.toString());
t.transition(Rcdata);
}
},
RawtextLessthanSign {
void read(Tokeniser t, CharacterReader r) {
if (r.matches('/')) {
t.createTempBuffer();
t.advanceTransition(RawtextEndTagOpen);
} else {
t.emit('<');
t.transition(Rawtext);
}
}
},
RawtextEndTagOpen {
void read(Tokeniser t, CharacterReader r) {
if (r.matchesLetter()) {
t.createTagPending(false);
t.transition(RawtextEndTagName);
} else {
t.emit("</");
t.transition(Rawtext);
}
}
},
RawtextEndTagName {
void read(Tokeniser t, CharacterReader r) {
if (r.matchesLetter()) {
String name = r.consumeLetterSequence();
t.tagPending.appendTagName(name.toLowerCase());
t.dataBuffer.append(name);
return;
}
if (t.isAppropriateEndTagToken() && !r.isEmpty()) {
char c = r.consume();
switch (c) {
case '\t':
case '\n':
case '\f':
case ' ':
t.transition(BeforeAttributeName);
break;
case '/':
t.transition(SelfClosingStartTag);
break;
case '>':
t.emitTagPending();
t.transition(Data);
break;
default:
t.dataBuffer.append(c);
anythingElse(t, r);
}
} else
anythingElse(t, r);
}
private void anythingElse(Tokeniser t, CharacterReader r) {
t.emit("</" + t.dataBuffer.toString());
t.transition(Rawtext);
}
},
ScriptDataLessthanSign {
void read(Tokeniser t, CharacterReader r) {
switch (r.consume()) {
case '/':
t.createTempBuffer();
t.transition(ScriptDataEndTagOpen);
break;
case '!':
t.emit("<!");
t.transition(ScriptDataEscapeStart);
break;
default:
t.emit("<");
r.unconsume();
t.transition(ScriptData);
}
}
},
ScriptDataEndTagOpen {
void read(Tokeniser t, CharacterReader r) {
if (r.matchesLetter()) {
t.createTagPending(false);
t.transition(ScriptDataEndTagName);
} else {
t.emit("</");
t.transition(ScriptData);
}
}
},
ScriptDataEndTagName {
void read(Tokeniser t, CharacterReader r) {
if (r.matchesLetter()) {
String name = r.consumeLetterSequence();
t.tagPending.appendTagName(name.toLowerCase());
t.dataBuffer.append(name);
return;
}
if (t.isAppropriateEndTagToken() && !r.isEmpty()) {
char c = r.consume();
switch (c) {
case '\t':
case '\n':
case '\f':
case ' ':
t.transition(BeforeAttributeName);
break;
case '/':
t.transition(SelfClosingStartTag);
break;
case '>':
t.emitTagPending();
t.transition(Data);
break;
default:
t.dataBuffer.append(c);
anythingElse(t, r);
}
} else {
anythingElse(t, r);
}
}
private void anythingElse(Tokeniser t, CharacterReader r) {
t.emit("</" + t.dataBuffer.toString());
t.transition(ScriptData);
}
},
ScriptDataEscapeStart {
void read(Tokeniser t, CharacterReader r) {
if (r.matches('-')) {
t.emit('-');
t.advanceTransition(ScriptDataEscapeStartDash);
} else {
t.transition(ScriptData);
}
}
},
ScriptDataEscapeStartDash {
void read(Tokeniser t, CharacterReader r) {
if (r.matches('-')) {
t.emit('-');
t.advanceTransition(ScriptDataEscapedDashDash);
} else {
t.transition(ScriptData);
}
}
},
ScriptDataEscaped {
void read(Tokeniser t, CharacterReader r) {
if (r.isEmpty()) {
t.eofError(this);
t.transition(Data);
return;
}
switch (r.current()) {
case '-':
t.emit('-');
t.advanceTransition(org.jsoup.parser.TokeniserState.ScriptDataDoubleEscaped);
break;
case '<':
t.advanceTransition(ScriptDataEscapedLessthanSign);
break;
case nullChar:
t.error(this);
r.advance();
t.emit(replacementChar);
break;
default:
String data = r.consumeToAny('-', '<', nullChar);
t.emit(data);
}
}
},
ScriptDataEscapedDash {
void read(Tokeniser t, CharacterReader r) {
if (r.isEmpty()) {
t.eofError(this);
t.transition(Data);
return;
}
char c = r.consume();
switch (c) {
case '-':
t.emit(c);
t.transition(ScriptDataEscapedDashDash);
break;
case '<':
t.transition(ScriptDataEscapedLessthanSign);
break;
case nullChar:
t.error(this);
t.emit(replacementChar);
t.transition(ScriptDataEscaped);
break;
default:
t.emit(c);
t.transition(ScriptDataEscaped);
}
}
},
ScriptDataEscapedDashDash {
void read(Tokeniser t, CharacterReader r) {
if (r.isEmpty()) {
t.eofError(this);
t.transition(Data);
return;
}
char c = r.consume();
switch (c) {
case '-':
t.emit(c);
break;
case '<':
t.transition(ScriptDataEscapedLessthanSign);
break;
case '>':
t.emit(c);
t.transition(ScriptData);
break;
case nullChar:
t.error(this);
t.emit(replacementChar);
t.transition(ScriptDataEscaped);
break;
default:
t.emit(c);
t.transition(ScriptDataEscaped);
}
}
},
ScriptDataEscapedLessthanSign {
void read(Tokeniser t, CharacterReader r) {
if (r.matchesLetter()) {
t.createTempBuffer();
t.dataBuffer.append(Character.toLowerCase(r.current()));
t.emit("<" + r.current());
t.advanceTransition(ScriptDataDoubleEscapeStart);
} else if (r.matches('/')) {
t.createTempBuffer();
t.advanceTransition(ScriptDataEscapedEndTagOpen);
} else {
t.emit('<');
t.transition(ScriptDataEscaped);
}
}
},
ScriptDataEscapedEndTagOpen {
void read(Tokeniser t, CharacterReader r) {
if (r.matchesLetter()) {
t.createTagPending(false);
t.tagPending.appendTagName(Character.toLowerCase(r.current()));
t.dataBuffer.append(r.current());
t.advanceTransition(ScriptDataEscapedEndTagName);
} else {
t.emit("</");
t.transition(ScriptDataEscaped);
}
}
},
ScriptDataEscapedEndTagName {
void read(Tokeniser t, CharacterReader r) {
if (r.matchesLetter()) {
String name = r.consumeLetterSequence();
t.tagPending.appendTagName(name.toLowerCase());
t.dataBuffer.append(name);
r.advance();
return;
}
if (t.isAppropriateEndTagToken() && !r.isEmpty()) {
char c = r.consume();
switch (c) {
case '\t':
case '\n':
case '\f':
case ' ':
t.transition(BeforeAttributeName);
break;
case '/':
t.transition(SelfClosingStartTag);
break;
case '>':
t.emitTagPending();
t.transition(Data);
break;
default:
t.dataBuffer.append(c);
anythingElse(t, r);
break;
}
} else {
anythingElse(t, r);
}
}
private void anythingElse(Tokeniser t, CharacterReader r) {
t.emit("</" + t.dataBuffer.toString());
t.transition(ScriptDataEscaped);
}
},
ScriptDataDoubleEscapeStart {
void read(Tokeniser t, CharacterReader r) {
if (r.matchesLetter()) {
String name = r.consumeLetterSequence();
t.dataBuffer.append(name.toLowerCase());
t.emit(name);
return;
}
char c = r.consume();
switch (c) {
case '\t':
case '\n':
case '\f':
case ' ':
case '/':
case '>':
if (t.dataBuffer.toString().equals("script"))
t.transition(ScriptDataDoubleEscaped);
else
t.transition(ScriptDataEscaped);
t.emit(c);
break;
default:
r.unconsume();
t.transition(ScriptDataEscaped);
}
}
},
ScriptDataDoubleEscaped {
void read(Tokeniser t, CharacterReader r) {
char c = r.current();
switch (c) {
case '-':
t.emit(c);
t.advanceTransition(ScriptDataDoubleEscapedDash);
break;
case '<':
t.emit(c);
t.advanceTransition(ScriptDataDoubleEscapedLessthanSign);
break;
case nullChar:
t.error(this);
r.advance();
t.emit(replacementChar);
break;
case eof:
t.eofError(this);
t.transition(Data);
break;
default:
String data = r.consumeToAny('-', '<', nullChar);
t.emit(data);
}
}
},
ScriptDataDoubleEscapedDash {
void read(Tokeniser t, CharacterReader r) {
char c = r.consume();
switch (c) {
case '-':
t.emit(c);
t.transition(ScriptDataDoubleEscapedDashDash);
break;
case '<':
t.emit(c);
t.transition(ScriptDataDoubleEscapedLessthanSign);
break;
case nullChar:
t.error(this);
t.emit(replacementChar);
t.transition(ScriptDataDoubleEscaped);
break;
case eof:
t.eofError(this);
t.transition(Data);
break;
default:
t.emit(c);
t.transition(ScriptDataDoubleEscaped);
}
}
},
ScriptDataDoubleEscapedDashDash {
void read(Tokeniser t, CharacterReader r) {
char c = r.consume();
switch (c) {
case '-':
t.emit(c);
break;
case '<':
t.emit(c);
t.transition(ScriptDataDoubleEscapedLessthanSign);
break;
case '>':
t.emit(c);
t.transition(ScriptData);
break;
case nullChar:
t.error(this);
t.emit(replacementChar);
t.transition(ScriptDataDoubleEscaped);
break;
case eof:
t.eofError(this);
t.transition(Data);
break;
default:
t.emit(c);
t.transition(ScriptDataDoubleEscaped);
}
}
},
ScriptDataDoubleEscapedLessthanSign {
void read(Tokeniser t, CharacterReader r) {
if (r.matches('/')) {
t.emit('/');
t.createTempBuffer();
t.advanceTransition(ScriptDataDoubleEscapeEnd);
} else {
t.transition(ScriptDataDoubleEscaped);
}
}
},
ScriptDataDoubleEscapeEnd {
void read(Tokeniser t, CharacterReader r) {
if (r.matchesLetter()) {
String name = r.consumeLetterSequence();
t.dataBuffer.append(name.toLowerCase());
t.emit(name);
return;
}
char c = r.consume();
switch (c) {
case '\t':
case '\n':
case '\f':
case ' ':
case '/':
case '>':
if (t.dataBuffer.toString().equals("script"))
t.transition(ScriptDataEscaped);
else
t.transition(ScriptDataDoubleEscaped);
t.emit(c);
break;
default:
r.unconsume();
t.transition(ScriptDataDoubleEscaped);
}
}
},
BeforeAttributeName {
// from tagname <xxx
void read(Tokeniser t, CharacterReader r) {
char c = r.consume();
switch (c) {
case '\t':
case '\n':
case '\f':
case ' ':
break; // ignore whitespace
case '/':
t.transition(SelfClosingStartTag);
break;
case '>':
t.emitTagPending();
t.transition(Data);
break;
case nullChar:
t.error(this);
t.tagPending.newAttribute();
r.unconsume();
t.transition(AttributeName);
break;
case eof:
t.eofError(this);
t.transition(Data);
break;
case '"':
case '\'':
case '<':
case '=':
t.error(this);
t.tagPending.newAttribute();
t.tagPending.appendAttributeName(c);
t.transition(AttributeName);
break;
default: // A-Z, anything else
t.tagPending.newAttribute();
r.unconsume();
t.transition(AttributeName);
}
}
},
AttributeName {
// from before attribute name
void read(Tokeniser t, CharacterReader r) {
String name = r.consumeToAny('\t', '\n', '\f', ' ', '/', '=', '>', nullChar, '"', '\'', '<');
t.tagPending.appendAttributeName(name.toLowerCase());
char c = r.consume();
switch (c) {
case '\t':
case '\n':
case '\f':
case ' ':
t.transition(AfterAttributeName);
break;
case '/':
t.transition(SelfClosingStartTag);
break;
case '=':
t.transition(BeforeAttributeValue);
break;
case '>':
t.emitTagPending();
t.transition(Data);
break;
case nullChar:
t.error(this);
t.tagPending.appendAttributeName(replacementChar);
break;
case eof:
t.eofError(this);
t.transition(Data);
break;
case '"':
case '\'':
case '<':
t.error(this);
t.tagPending.appendAttributeName(c);
// no default, as covered in consumeToAny
}
}
},
AfterAttributeName {
void read(Tokeniser t, CharacterReader r) {
char c = r.consume();
switch (c) {
case '\t':
case '\n':
case '\f':
case ' ':
// ignore
break;
case '/':
t.transition(SelfClosingStartTag);
break;
case '=':
t.transition(BeforeAttributeValue);
break;
case '>':
t.emitTagPending();
t.transition(Data);
break;
case nullChar:
t.error(this);
t.tagPending.appendAttributeName(replacementChar);
t.transition(AttributeName);
break;
case eof:
t.eofError(this);
t.transition(Data);
break;
case '"':
case '\'':
case '<':
t.error(this);
t.tagPending.newAttribute();
t.tagPending.appendAttributeName(c);
t.transition(AttributeName);
break;
default: // A-Z, anything else
t.tagPending.newAttribute();
r.unconsume();
t.transition(AttributeName);
}
}
},
BeforeAttributeValue {
void read(Tokeniser t, CharacterReader r) {
char c = r.consume();
switch (c) {
case '\t':
case '\n':
case '\f':
case ' ':
// ignore
break;
case '"':
t.transition(AttributeValue_doubleQuoted);
break;
case '&':
r.unconsume();
t.transition(AttributeValue_unquoted);
break;
case '\'':
t.transition(AttributeValue_singleQuoted);
break;
case nullChar:
t.error(this);
t.tagPending.appendAttributeValue(replacementChar);
t.transition(AttributeValue_unquoted);
break;
case eof:
t.eofError(this);
t.transition(Data);
break;
case '>':
t.error(this);
t.emitTagPending();
t.transition(Data);
break;
case '<':
case '=':
case '`':
t.error(this);
t.tagPending.appendAttributeValue(c);
t.transition(AttributeValue_unquoted);
break;
default:
r.unconsume();
t.transition(AttributeValue_unquoted);
}
}
},
AttributeValue_doubleQuoted {
void read(Tokeniser t, CharacterReader r) {
String value = r.consumeToAny('"', '&', nullChar);
if (value.length() > 0)
t.tagPending.appendAttributeValue(value);
char c = r.consume();
switch (c) {
case '"':
t.transition(AfterAttributeValue_quoted);
break;
case '&':
Character ref = t.consumeCharacterReference('"', true);
if (ref != null)
t.tagPending.appendAttributeValue(ref);
else
t.tagPending.appendAttributeValue('&');
break;
case nullChar:
t.error(this);
t.tagPending.appendAttributeValue(replacementChar);
break;
case eof:
t.eofError(this);
t.transition(Data);
break;
// no default, handled in consume to any above
}
}
},
AttributeValue_singleQuoted {
void read(Tokeniser t, CharacterReader r) {
String value = r.consumeToAny('\'', '&', nullChar);
if (value.length() > 0)
t.tagPending.appendAttributeValue(value);
char c = r.consume();
switch (c) {
case '\'':
t.transition(AfterAttributeValue_quoted);
break;
case '&':
Character ref = t.consumeCharacterReference('\'', true);
if (ref != null)
t.tagPending.appendAttributeValue(ref);
else
t.tagPending.appendAttributeValue('&');
break;
case nullChar:
t.error(this);
t.tagPending.appendAttributeValue(replacementChar);
break;
case eof:
t.eofError(this);
t.transition(Data);
break;
// no default, handled in consume to any above
}
}
},
AttributeValue_unquoted {
void read(Tokeniser t, CharacterReader r) {
String value = r.consumeToAny('\t', '\n', '\f', ' ', '&', '>', nullChar, '"', '\'', '<', '=', '`');
if (value.length() > 0)
t.tagPending.appendAttributeValue(value);
char c = r.consume();
switch (c) {
case '\t':
case '\n':
case '\f':
case ' ':
t.transition(BeforeAttributeName);
break;
case '&':
Character ref = t.consumeCharacterReference('>', true);
if (ref != null)
t.tagPending.appendAttributeValue(ref);
else
t.tagPending.appendAttributeValue('&');
break;
case '>':
t.emitTagPending();
t.transition(Data);
break;
case nullChar:
t.error(this);
t.tagPending.appendAttributeValue(replacementChar);
break;
case eof:
t.eofError(this);
t.transition(Data);
break;
case '"':
case '\'':
case '<':
case '=':
case '`':
t.error(this);
t.tagPending.appendAttributeValue(c);
break;
// no default, handled in consume to any above
}
}
},
// CharacterReferenceInAttributeValue state handled inline
AfterAttributeValue_quoted {
void read(Tokeniser t, CharacterReader r) {
char c = r.consume();
switch (c) {
case '\t':
case '\n':
case '\f':
case ' ':
t.transition(BeforeAttributeName);
break;
case '/':
t.transition(SelfClosingStartTag);
break;
case '>':
t.emitTagPending();
t.transition(Data);
break;
case eof:
t.eofError(this);
t.transition(Data);
break;
default:
t.error(this);
r.unconsume();
t.transition(BeforeAttributeName);
}
}
},
SelfClosingStartTag {
void read(Tokeniser t, CharacterReader r) {
char c = r.consume();
switch (c) {
case '>':
t.tagPending.selfClosing = true;
t.emitTagPending();
t.transition(Data);
break;
case eof:
t.eofError(this);
t.transition(Data);
break;
default:
t.error(this);
t.transition(BeforeAttributeName);
}
}
},
BogusComment {
void read(Tokeniser t, CharacterReader r) {
// todo: handle bogus comment starting from eof. when does that trigger?
// rewind to capture character that lead us here
r.unconsume();
Token.Comment comment = new Token.Comment();
comment.data.append(r.consumeTo('>'));
// todo: replace nullChar with replaceChar
t.emit(comment);
t.advanceTransition(Data);
}
},
MarkupDeclarationOpen {
void read(Tokeniser t, CharacterReader r) {
if (r.matchConsume("--")) {
t.createCommentPending();
t.transition(CommentStart);
} else if (r.matchConsumeIgnoreCase("DOCTYPE")) {
t.transition(Doctype);
} else if (r.matchConsume("[CDATA[")) {
// todo: should actually check current namepspace, and only non-html allows cdata. until namespace
// is implemented properly, keep handling as cdata
//} else if (!t.currentNodeInHtmlNS() && r.matchConsume("[CDATA[")) {
t.transition(CdataSection);
} else {
t.error(this);
t.advanceTransition(BogusComment); // advance so this character gets in bogus comment data's rewind
}
}
},
CommentStart {
void read(Tokeniser t, CharacterReader r) {
char c = r.consume();
switch (c) {
case '-':
t.transition(CommentStartDash);
break;
case nullChar:
t.error(this);
t.commentPending.data.append(replacementChar);
t.transition(Comment);
break;
case '>':
t.error(this);
t.emitCommentPending();
t.transition(Data);
break;
case eof:
t.eofError(this);
t.emitCommentPending();
t.transition(Data);
break;
default:
t.commentPending.data.append(c);
t.transition(Comment);
}
}
},
CommentStartDash {
void read(Tokeniser t, CharacterReader r) {
char c = r.consume();
switch (c) {
case '-':
t.transition(CommentStartDash);
break;
case nullChar:
t.error(this);
t.commentPending.data.append(replacementChar);
t.transition(Comment);
break;
case '>':
t.error(this);
t.emitCommentPending();
t.transition(Data);
break;
case eof:
t.eofError(this);
t.emitCommentPending();
t.transition(Data);
break;
default:
t.commentPending.data.append(c);
t.transition(Comment);
}
}
},
Comment {
void read(Tokeniser t, CharacterReader r) {
char c = r.current();
switch (c) {
case '-':
t.advanceTransition(CommentEndDash);
break;
case nullChar:
t.error(this);
r.advance();
t.commentPending.data.append(replacementChar);
break;
case eof:
t.eofError(this);
t.emitCommentPending();
t.transition(Data);
break;
default:
t.commentPending.data.append(r.consumeToAny('-', nullChar));
}
}
},
CommentEndDash {
void read(Tokeniser t, CharacterReader r) {
char c = r.consume();
switch (c) {
case '-':
t.transition(CommentEnd);
break;
case nullChar:
t.error(this);
t.commentPending.data.append('-').append(replacementChar);
t.transition(Comment);
break;
case eof:
t.eofError(this);
t.emitCommentPending();
t.transition(Data);
break;
default:
t.commentPending.data.append('-').append(c);
t.transition(Comment);
}
}
},
CommentEnd {
void read(Tokeniser t, CharacterReader r) {
char c = r.consume();
switch (c) {
case '>':
t.emitCommentPending();
t.transition(Data);
break;
case nullChar:
t.error(this);
t.commentPending.data.append("--").append(replacementChar);
t.transition(Comment);
break;
case '!':
t.error(this);
t.transition(CommentEndBang);
break;
case '-':
t.error(this);
t.commentPending.data.append('-');
break;
case eof:
t.eofError(this);
t.emitCommentPending();
t.transition(Data);
break;
default:
t.error(this);
t.commentPending.data.append("--").append(c);
t.transition(Comment);
}
}
},
CommentEndBang {
void read(Tokeniser t, CharacterReader r) {
char c = r.consume();
switch (c) {
case '-':
t.commentPending.data.append("--!");
t.transition(CommentEndDash);
break;
case '>':
t.emitCommentPending();
t.transition(Data);
break;
case nullChar:
t.error(this);
t.commentPending.data.append("--!").append(replacementChar);
t.transition(Comment);
break;
case eof:
t.eofError(this);
t.emitCommentPending();
t.transition(Data);
break;
default:
t.commentPending.data.append("--!").append(c);
t.transition(Comment);
}
}
},
Doctype {
void read(Tokeniser t, CharacterReader r) {
char c = r.consume();
switch (c) {
case '\t':
case '\n':
case '\f':
case ' ':
t.transition(BeforeDoctypeName);
break;
case eof:
t.eofError(this);
t.createDoctypePending();
t.doctypePending.forceQuirks = true;
t.emitDoctypePending();
t.transition(Data);
break;
default:
t.error(this);
t.transition(BeforeDoctypeName);
}
}
},
BeforeDoctypeName {
void read(Tokeniser t, CharacterReader r) {
if (r.matchesLetter()) {
t.createDoctypePending();
t.transition(DoctypeName);
return;
}
char c = r.consume();
switch (c) {
case '\t':
case '\n':
case '\f':
case ' ':
break; // ignore whitespace
case nullChar:
t.error(this);
t.doctypePending.name.append(replacementChar);
t.transition(DoctypeName);
break;
case eof:
t.eofError(this);
t.createDoctypePending();
t.doctypePending.forceQuirks = true;
t.emitDoctypePending();
t.transition(Data);
break;
default:
t.createDoctypePending();
t.doctypePending.name.append(c);
t.transition(DoctypeName);
}
}
},
DoctypeName {
void read(Tokeniser t, CharacterReader r) {
if (r.matchesLetter()) {
String name = r.consumeLetterSequence();
t.doctypePending.name.append(name.toLowerCase());
return;
}
char c = r.consume();
switch (c) {
case '>':
t.emitDoctypePending();
t.transition(Data);
break;
case '\t':
case '\n':
case '\f':
case ' ':
t.transition(AfterDoctypeName);
break;
case nullChar:
t.error(this);
t.doctypePending.name.append(replacementChar);
break;
case eof:
t.eofError(this);
t.doctypePending.forceQuirks = true;
t.emitDoctypePending();
t.transition(Data);
break;
default:
t.doctypePending.name.append(c);
}
}
},
AfterDoctypeName {
void read(Tokeniser t, CharacterReader r) {
if (r.isEmpty()) {
t.eofError(this);
t.doctypePending.forceQuirks = true;
t.emitDoctypePending();
t.transition(Data);
return;
}
if (r.matchesAny('\t', '\n', '\f', ' '))
r.advance(); // ignore whitespace
else if (r.matches('>')) {
t.emitDoctypePending();
t.advanceTransition(Data);
} else if (r.matchConsumeIgnoreCase("PUBLIC")) {
t.transition(AfterDoctypePublicKeyword);
} else if (r.matchConsumeIgnoreCase("SYSTEM")) {
t.transition(AfterDoctypeSystemKeyword);
} else {
t.error(this);
t.doctypePending.forceQuirks = true;
t.advanceTransition(BogusDoctype);
}
}
},
AfterDoctypePublicKeyword {
void read(Tokeniser t, CharacterReader r) {
char c = r.consume();
switch (c) {
case '\t':
case '\n':
case '\f':
case ' ':
t.transition(BeforeDoctypePublicIdentifier);
break;
case '"':
t.error(this);
// set public id to empty string
t.transition(DoctypePublicIdentifier_doubleQuoted);
break;
case '\'':
t.error(this);
// set public id to empty string
t.transition(DoctypePublicIdentifier_singleQuoted);
break;
case '>':
t.error(this);
t.doctypePending.forceQuirks = true;
t.emitDoctypePending();
t.transition(Data);
break;
case eof:
t.eofError(this);
t.doctypePending.forceQuirks = true;
t.emitDoctypePending();
t.transition(Data);
break;
default:
t.error(this);
t.doctypePending.forceQuirks = true;
t.transition(BogusDoctype);
}
}
},
BeforeDoctypePublicIdentifier {
void read(Tokeniser t, CharacterReader r) {
char c = r.consume();
switch (c) {
case '\t':
case '\n':
case '\f':
case ' ':
break;
case '"':
// set public id to empty string
t.transition(DoctypePublicIdentifier_doubleQuoted);
break;
case '\'':
// set public id to empty string
t.transition(DoctypePublicIdentifier_singleQuoted);
break;
case '>':
t.error(this);
t.doctypePending.forceQuirks = true;
t.emitDoctypePending();
t.transition(Data);
break;
case eof:
t.eofError(this);
t.doctypePending.forceQuirks = true;
t.emitDoctypePending();
t.transition(Data);
break;
default:
t.error(this);
t.doctypePending.forceQuirks = true;
t.transition(BogusDoctype);
}
}
},
DoctypePublicIdentifier_doubleQuoted {
void read(Tokeniser t, CharacterReader r) {
char c = r.consume();
switch (c) {
case '"':
t.transition(AfterDoctypePublicIdentifier);
break;
case nullChar:
t.error(this);
t.doctypePending.publicIdentifier.append(replacementChar);
break;
case '>':
t.error(this);
t.doctypePending.forceQuirks = true;
t.emitDoctypePending();
t.transition(Data);
break;
case eof:
t.eofError(this);
t.doctypePending.forceQuirks = true;
t.emitDoctypePending();
t.transition(Data);
break;
default:
t.doctypePending.publicIdentifier.append(c);
}
}
},
DoctypePublicIdentifier_singleQuoted {
void read(Tokeniser t, CharacterReader r) {
char c = r.consume();
switch (c) {
case '\'':
t.transition(AfterDoctypePublicIdentifier);
break;
case nullChar:
t.error(this);
t.doctypePending.publicIdentifier.append(replacementChar);
break;
case '>':
t.error(this);
t.doctypePending.forceQuirks = true;
t.emitDoctypePending();
t.transition(Data);
break;
case eof:
t.eofError(this);
t.doctypePending.forceQuirks = true;
t.emitDoctypePending();
t.transition(Data);
break;
default:
t.doctypePending.publicIdentifier.append(c);
}
}
},
AfterDoctypePublicIdentifier {
void read(Tokeniser t, CharacterReader r) {
char c = r.consume();
switch (c) {
case '\t':
case '\n':
case '\f':
case ' ':
t.transition(BetweenDoctypePublicAndSystemIdentifiers);
break;
case '>':
t.emitDoctypePending();
t.transition(Data);
break;
case '"':
t.error(this);
// system id empty
t.transition(DoctypeSystemIdentifier_doubleQuoted);
break;
case '\'':
t.error(this);
// system id empty
t.transition(DoctypeSystemIdentifier_singleQuoted);
break;
case eof:
t.eofError(this);
t.doctypePending.forceQuirks = true;
t.emitDoctypePending();
t.transition(Data);
break;
default:
t.error(this);
t.doctypePending.forceQuirks = true;
t.transition(BogusDoctype);
}
}
},
BetweenDoctypePublicAndSystemIdentifiers {
void read(Tokeniser t, CharacterReader r) {
char c = r.consume();
switch (c) {
case '\t':
case '\n':
case '\f':
case ' ':
break;
case '>':
t.emitDoctypePending();
t.transition(Data);
break;
case '"':
t.error(this);
// system id empty
t.transition(DoctypeSystemIdentifier_doubleQuoted);
break;
case '\'':
t.error(this);
// system id empty
t.transition(DoctypeSystemIdentifier_singleQuoted);
break;
case eof:
t.eofError(this);
t.doctypePending.forceQuirks = true;
t.emitDoctypePending();
t.transition(Data);
break;
default:
t.error(this);
t.doctypePending.forceQuirks = true;
t.transition(BogusDoctype);
}
}
},
AfterDoctypeSystemKeyword {
void read(Tokeniser t, CharacterReader r) {
char c = r.consume();
switch (c) {
case '\t':
case '\n':
case '\f':
case ' ':
t.transition(BeforeDoctypeSystemIdentifier);
break;
case '>':
t.error(this);
t.doctypePending.forceQuirks = true;
t.emitDoctypePending();
t.transition(Data);
break;
case '"':
t.error(this);
// system id empty
t.transition(DoctypeSystemIdentifier_doubleQuoted);
break;
case '\'':
t.error(this);
// system id empty
t.transition(DoctypeSystemIdentifier_singleQuoted);
break;
case eof:
t.eofError(this);
t.doctypePending.forceQuirks = true;
t.emitDoctypePending();
t.transition(Data);
break;
default:
t.error(this);
t.doctypePending.forceQuirks = true;
t.emitDoctypePending();
}
}
},
BeforeDoctypeSystemIdentifier {
void read(Tokeniser t, CharacterReader r) {
char c = r.consume();
switch (c) {
case '\t':
case '\n':
case '\f':
case ' ':
break;
case '"':
// set system id to empty string
t.transition(DoctypeSystemIdentifier_doubleQuoted);
break;
case '\'':
// set public id to empty string
t.transition(DoctypeSystemIdentifier_singleQuoted);
break;
case '>':
t.error(this);
t.doctypePending.forceQuirks = true;
t.emitDoctypePending();
t.transition(Data);
break;
case eof:
t.eofError(this);
t.doctypePending.forceQuirks = true;
t.emitDoctypePending();
t.transition(Data);
break;
default:
t.error(this);
t.doctypePending.forceQuirks = true;
t.transition(BogusDoctype);
}
}
},
DoctypeSystemIdentifier_doubleQuoted {
void read(Tokeniser t, CharacterReader r) {
char c = r.consume();
switch (c) {
case '"':
t.transition(AfterDoctypeSystemIdentifier);
break;
case nullChar:
t.error(this);
t.doctypePending.systemIdentifier.append(replacementChar);
break;
case '>':
t.error(this);
t.doctypePending.forceQuirks = true;
t.emitDoctypePending();
t.transition(Data);
break;
case eof:
t.eofError(this);
t.doctypePending.forceQuirks = true;
t.emitDoctypePending();
t.transition(Data);
break;
default:
t.doctypePending.systemIdentifier.append(c);
}
}
},
DoctypeSystemIdentifier_singleQuoted {
void read(Tokeniser t, CharacterReader r) {
char c = r.consume();
switch (c) {
case '\'':
t.transition(AfterDoctypeSystemIdentifier);
break;
case nullChar:
t.error(this);
t.doctypePending.systemIdentifier.append(replacementChar);
break;
case '>':
t.error(this);
t.doctypePending.forceQuirks = true;
t.emitDoctypePending();
t.transition(Data);
break;
case eof:
t.eofError(this);
t.doctypePending.forceQuirks = true;
t.emitDoctypePending();
t.transition(Data);
break;
default:
t.doctypePending.systemIdentifier.append(c);
}
}
},
AfterDoctypeSystemIdentifier {
void read(Tokeniser t, CharacterReader r) {
char c = r.consume();
switch (c) {
case '\t':
case '\n':
case '\f':
case ' ':
break;
case '>':
t.emitDoctypePending();
t.transition(Data);
break;
case eof:
t.eofError(this);
t.doctypePending.forceQuirks = true;
t.emitDoctypePending();
t.transition(Data);
break;
default:
t.error(this);
t.transition(BogusDoctype);
// NOT force quirks
}
}
},
BogusDoctype {
void read(Tokeniser t, CharacterReader r) {
char c = r.consume();
switch (c) {
case '>':
t.emitDoctypePending();
t.transition(Data);
break;
case eof:
t.emitDoctypePending();
t.transition(Data);
break;
default:
// ignore char
break;
}
}
},
CdataSection {
void read(Tokeniser t, CharacterReader r) {
String data = r.consumeTo("]]>");
t.emit(data);
r.matchConsume("]]>");
t.transition(Data);
}
};
abstract void read(Tokeniser t, CharacterReader r);
private static final char nullChar = '\u0000';
private static final char replacementChar = Tokeniser.replacementChar;
private static final String replacementStr = String.valueOf(Tokeniser.replacementChar);
private static final char eof = CharacterReader.EOF;
}
| [
"justinwm@163.com"
] | justinwm@163.com |
3323d6d5af3beaab2120a0dfdb3289e72ea9cb3e | 9039f76bf16817db32b96b610369b28f25af1832 | /common/src/main/java/com/itshidu/common/web/AjaxResult.java | b80cd453a72abfaf1e0651e12ddecf9c5716d78c | [] | no_license | zhichao19930808/SpringBoot | dffe9f309002b49ee1fa92a24cbda999d2fa3ebf | f5de62153c5a6f4ad92a96073b7932104dde22c3 | refs/heads/master | 2020-03-18T14:11:56.601918 | 2018-05-25T09:36:06 | 2018-05-25T09:36:06 | 134,835,699 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 492 | java | package com.itshidu.common.web;
import java.util.HashMap;
public class AjaxResult extends HashMap {
public static AjaxResult ok(String msg){
AjaxResult a=new AjaxResult();
a.put("msg", msg);
return a;
}
public static AjaxResult ok(){
return ok("success");
}
public static AjaxResult error(){
return ok("error");
}
public AjaxResult put(String key,Object value){
super.put(key, value);
return this;
}
}
| [
"zhichaoglory@163.com"
] | zhichaoglory@163.com |
6e60568440a13bfff07226f09aea9d0347416a7e | ca595eb38e07b2b5576e607ec3ccff358568c648 | /src/main/java/com/rdxer/xxlibrary/Encrypt/EncryptUtils.java | 8ea1a081d0419c5988a81d4801f66ca8dfa156b4 | [
"MIT"
] | permissive | Rdxer/Android-XXLibrary | 76c18882295eac35e90f48b434c1b49b2b7b4c8e | 14c4f44948dbc3d3a8cb229fbf965066c35df5fa | refs/heads/master | 2021-01-09T20:35:39.482122 | 2016-12-06T12:34:26 | 2016-12-06T12:34:26 | 61,267,427 | 2 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,256 | java | package com.rdxer.xxlibrary.Encrypt;
import java.io.UnsupportedEncodingException;
import java.security.InvalidKeyException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.Locale;
import javax.crypto.Mac;
import javax.crypto.spec.SecretKeySpec;
/**
* Created by LXF on 16/6/2.
*/
public class EncryptUtils {
/**
* hmacSHA512
*
* @param data
* 待加密数据
* @param key
* key
* @return 加密字符串
*/
public static String hmacSHA512(String data, String key) {
return hmacDigest(data, key, "HmacSHA512");
}
/**
* 统一加密验证处理
*/
public static String hmacDigest(String msg, String keyString, String algo) {
String digest = null;
try {
SecretKeySpec key = new SecretKeySpec((keyString).getBytes("UTF-8"), algo);
Mac mac = Mac.getInstance(algo);
mac.init(key);
byte[] bytes = mac.doFinal(msg.getBytes("UTF-8"));
StringBuilder hash = new StringBuilder();
for (byte aByte : bytes) {
String hex = Integer.toHexString(0xFF & aByte);
if (hex.length() == 1) {
hash.append('0');
}
hash.append(hex);
}
digest = hash.toString();
} catch (UnsupportedEncodingException ignored) {
} catch (InvalidKeyException ignored) {
} catch (NoSuchAlgorithmException ignored) {
}
return digest;
}
public static String toMD5(String str) {
byte[] source;
try {
source = str.getBytes("ascii");
MessageDigest md;
md = MessageDigest.getInstance("MD5");
md.update(source);
StringBuffer buf = new StringBuffer();
for (byte b : md.digest())
buf.append(String.format("%02x", b & 0xff));// %02x
return buf.toString().toLowerCase(Locale.getDefault());
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
} catch (NoSuchAlgorithmException e) {
e.printStackTrace();
}
return null;
}
}
| [
"rdxer@foxmail.com"
] | rdxer@foxmail.com |
cc7fb9ba367ebcec3801c5c4d9f66a40f2662a02 | 61f379bf31d2f30f07d2cff0a9f11d7ae169d4c7 | /src/main/java/cn/goktech/sports/common/exception/RRException.java | 77b3da0021b08e6b356b683cd5e87e26ebbba3ab | [] | no_license | echoes-yu/SportNewsTest | 2d0c37952279574a0a8835f4d239fa634959d24a | 4d8820b21c48a104922b7ab24488c3677a458626 | refs/heads/master | 2020-08-30T02:18:37.632654 | 2019-10-30T09:21:56 | 2019-10-30T09:21:56 | 218,233,155 | 0 | 0 | null | 2019-10-29T08:08:15 | 2019-10-29T07:58:26 | TSQL | UTF-8 | Java | false | false | 855 | java | package cn.goktech.sports.common.exception;
/**
* 自定义异常
* @author zcl<yczclcn@163.com>
*/
public class RRException extends RuntimeException {
private static final long serialVersionUID = 1L;
private String msg;
private int code = 500;
public RRException(String msg) {
super(msg);
this.msg = msg;
}
public RRException(String msg, Throwable e) {
super(msg, e);
this.msg = msg;
}
public RRException(String msg, int code) {
super(msg);
this.msg = msg;
this.code = code;
}
public RRException(String msg, int code, Throwable e) {
super(msg, e);
this.msg = msg;
this.code = code;
}
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
this.msg = msg;
}
public int getCode() {
return code;
}
public void setCode(int code) {
this.code = code;
}
}
| [
"1055140417@qq.com"
] | 1055140417@qq.com |
9ddb9b84fcdf600eea61dcd2e79b5a99f2f6012b | ee18abb9df49d3da3f13f261032a1a0dacde909c | /src/main/java/serializeJSONintoList/Weather.java | 8cf0fc30ffb20eb8910f468bef5d2682a870248d | [] | no_license | trollcodelord/RestCucumberExample | 318e96ead682ec3d90258ef1380ac5c940aa0416 | c034a2b4a4538a9d625d20e535262ee62b73e8fc | refs/heads/master | 2020-04-27T22:01:57.701544 | 2019-03-12T17:45:30 | 2019-03-12T17:45:30 | 174,720,900 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 629 | java | package serializeJSONintoList;
public class Weather {
private int id;
private String main;
private String description;
private String icon;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getMain() {
return main;
}
public void setMain(String main) {
this.main = main;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getIcon() {
return icon;
}
public void setIcon(String icon) {
this.icon = icon;
}
}
| [
"a_Bhupender1.Kumar@airtel.com"
] | a_Bhupender1.Kumar@airtel.com |
5211814be4f11090620761653f694cbceba82eb7 | a59cf1f829db55fe7432dd24281e92e89e64715d | /LotteryForecast/com/lxy/hibernate/ForecastError.java | b8b17e82e4af8edd03ff200ab2307d637371df77 | [] | no_license | LXYTSOS/Lottery | 3a1df08e2e00df8ae4c1d732e9315b7510502492 | e8b697d2baef61857997f22e5b35291da51be1fe | refs/heads/master | 2021-01-10T18:47:21.845026 | 2015-10-08T10:50:52 | 2015-10-08T10:50:52 | 34,987,485 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,748 | java | package com.lxy.hibernate;
/*
* the error of the forecast
* error = lottery - forecast
*/
public class ForecastError {
private int id; //the id of the error
private String phase; //the phase of the error
private int red_1; //the error of the first red ball
private int red_2; //the error of the second red ball
private int red_3; //the error of the third red ball
private int red_4; //the error of the fourth red ball
private int red_5; //the error of the fifth red ball
private int red_6; //the error of the sixth red ball
private int blue; //the error of the blue ball
private int lucky_blue; //the error of the lucky blue ball
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getPhase() {
return phase;
}
public void setPhase(String phase) {
this.phase = phase;
}
public int getRed_1() {
return red_1;
}
public void setRed_1(int red_1) {
this.red_1 = red_1;
}
public int getRed_2() {
return red_2;
}
public void setRed_2(int red_2) {
this.red_2 = red_2;
}
public int getRed_3() {
return red_3;
}
public void setRed_3(int red_3) {
this.red_3 = red_3;
}
public int getRed_4() {
return red_4;
}
public void setRed_4(int red_4) {
this.red_4 = red_4;
}
public int getRed_5() {
return red_5;
}
public void setRed_5(int red_5) {
this.red_5 = red_5;
}
public int getRed_6() {
return red_6;
}
public void setRed_6(int red_6) {
this.red_6 = red_6;
}
public int getBlue() {
return blue;
}
public void setBlue(int blue) {
this.blue = blue;
}
public int getLucky_blue() {
return lucky_blue;
}
public void setLucky_blue(int lucky_blue) {
this.lucky_blue = lucky_blue;
}
}
| [
"834287447@qq.com"
] | 834287447@qq.com |
2868a161eab8476dda6c892e43eef670f681079f | 23329ff4b47fa5f37642572aab1688b70bf6ca83 | /src/Square.java | 2ad31d3dffb3ed89332d7d41bdf7d9dadb5b70ec | [] | no_license | gansures/Selenium | 909ab607c8e88af569d2e6960a23c40ddd3c49ae | a2215d6d8d866e2f963d6652c9f6a05a51eec2a0 | refs/heads/master | 2020-06-29T11:23:54.136450 | 2019-08-04T17:33:54 | 2019-08-04T17:33:54 | 200,521,376 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 407 | java |
public class Square {
public static void main(String[] args) {
int num= 10;
for (int row=1; row<=num; row++)
{
for(int col=1; col<=num; col++)
{
if (row==1 || row==num)
{
System.out.print("* ");
}
else
{
if (col==1 || col==num)
System.out.print("* ");
else
System.out.print(" ");
}
}
System.out.println();
}
}
}
| [
"gansures@Babu"
] | gansures@Babu |
e184e3aa9350fd3a6bd76c9656040715d4de9935 | f84dea1c185b3ca5f139b8508715dca2a5ba23c8 | /src/main/java/ru/sber/daomodule/Dao.java | c28efc2372fefb0542a5472b479954317b7e9aee | [] | no_license | spiriq/daomodule | c25fd36a20725957c0b33d4c34101c83e6537fcf | dc8e4968ce3d7bb581dcc68399bd4d37ae23624d | refs/heads/master | 2023-06-09T07:09:26.357204 | 2021-06-29T14:27:01 | 2021-06-29T14:27:01 | 381,393,617 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 166 | java | package ru.sber.daomodule;
import java.util.List;
import java.util.Optional;
public interface Dao<T> {
Optional<T> findById(int id);
List<T> findAll();
}
| [
"spiriq@gmail.com"
] | spiriq@gmail.com |
584e6b992a516a3768e8a1e8e73340c12c516f51 | 76b99361db2152603908fc85a0e31033ed3a2cc8 | /app/src/main/java/block/guess/betting/bean/TxhashBean.java | 6a566675573cea7d60233012a7c3a4ee046f756d | [] | no_license | yueqingkong/BG | 653643cc6c2f43a9503df55a3f0e0ad6e7228874 | e8fb1b3e468a15a0dcf6267a8af75276ee8d3b8c | refs/heads/master | 2020-04-25T21:28:21.322710 | 2019-03-15T04:16:42 | 2019-03-15T04:16:42 | 173,080,812 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 171 | java | package block.guess.betting.bean;
public class TxhashBean {
private String tx_hash;
public TxhashBean(String tx_hash) {
this.tx_hash = tx_hash;
}
}
| [
"762396990@qq.com"
] | 762396990@qq.com |
4da0cef2d7fb379f00c5a27c9cb66180d12ec661 | f05a0ac68e73c2d6f37b9e2fe89a58458bb9ffbb | /swagger_demo/src/main/java/com/springboot/demo/swagger_demo/SwaggerDemoApplication.java | 970418ec13df82735d2f2863ba0be54bf15fa9f8 | [
"MIT"
] | permissive | idream68/spring-demo | a126cecc2bdae26042c7649649818b7d50c1f543 | e5da6d8d266445c61cfe20f4ef7494ae5f0d400c | refs/heads/master | 2023-06-26T08:44:31.190528 | 2021-07-23T06:42:22 | 2021-07-23T06:42:22 | 360,522,907 | 2 | 0 | null | null | null | null | UTF-8 | Java | false | false | 335 | java | package com.springboot.demo.swagger_demo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class SwaggerDemoApplication {
public static void main(String[] args) {
SpringApplication.run(SwaggerDemoApplication.class, args);
}
}
| [
"hzj199603@163.com"
] | hzj199603@163.com |
529b408deb0902dd778c5dd9ece3c63c1ac100f6 | 9732150d3dedfc9a580046d80bf852fbb7175804 | /app/src/test/java/org/wikipedia/search/PrefixSearchClientTest.java | fe2a2aa5b1a64e70c1a5ef89c8e05a4d77c00bad | [
"Apache-2.0"
] | permissive | lytellis/test | ea61fd6fb38215725163733657b16ed804b60667 | 8240be244d1bc98a3766d9f5498599eedd166fb0 | refs/heads/master | 2020-04-12T11:41:41.644842 | 2018-12-19T17:24:29 | 2018-12-19T17:24:29 | 162,467,837 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,918 | java | package org.wikipedia.search;
import com.google.gson.stream.MalformedJsonException;
import org.junit.Test;
import org.wikipedia.dataclient.WikiSite;
import org.wikipedia.dataclient.mwapi.MwException;
import org.wikipedia.test.MockRetrofitTest;
import io.reactivex.Observable;
import io.reactivex.observers.TestObserver;
public class PrefixSearchClientTest extends MockRetrofitTest {
private static final WikiSite TESTWIKI = new WikiSite("test.wikimedia.org");
private static final int BATCH_SIZE = 20;
private Observable<SearchResults> getObservable() {
return getApiService().prefixSearch("foo", BATCH_SIZE, "foo")
.map(response -> {
if (response != null && response.success() && response.query().pages() != null) {
// noinspection ConstantConditions
return new SearchResults(response.query().pages(), TESTWIKI, response.continuation(),
response.suggestion());
} else if (response != null && response.hasError()) {
// noinspection ConstantConditions
throw new MwException(response.getError());
}
return new SearchResults();
});
}
@Test public void testRequestSuccess() throws Throwable {
enqueueFromFile("prefix_search_results.json");
TestObserver<SearchResults> observer = new TestObserver<>();
getObservable().subscribe(observer);
observer.assertComplete().assertNoErrors()
.assertValue(result -> result.getResults().get(0).getPageTitle().getDisplayText().equals("Narthecium"));
}
@Test public void testRequestSuccessNoResults() throws Throwable {
enqueueFromFile("prefix_search_results_empty.json");
TestObserver<SearchResults> observer = new TestObserver<>();
getObservable().subscribe(observer);
observer.assertComplete().assertNoErrors()
.assertValue(result -> result.getResults().isEmpty());
}
@Test public void testRequestResponseApiError() throws Throwable {
enqueueFromFile("api_error.json");
TestObserver<SearchResults> observer = new TestObserver<>();
getObservable().subscribe(observer);
observer.assertError(Exception.class);
}
@Test public void testRequestResponseFailure() throws Throwable {
enqueue404();
TestObserver<SearchResults> observer = new TestObserver<>();
getObservable().subscribe(observer);
observer.assertError(Exception.class);
}
@Test public void testRequestResponseMalformed() throws Throwable {
server().enqueue("'");
TestObserver<SearchResults> observer = new TestObserver<>();
getObservable().subscribe(observer);
observer.assertError(MalformedJsonException.class);
}
}
| [
"925946022@qq.com"
] | 925946022@qq.com |
eb390de003d435f92aea03fc31e69a301b810523 | bb9140f335d6dc44be5b7b848c4fe808b9189ba4 | /Extra-DS/Corpus/class/aspectj/1003.java | ad340b3aa110edc34aff705f7d042ff0322ab15e | [] | no_license | masud-technope/EMSE-2019-Replication-Package | 4fc04b7cf1068093f1ccf064f9547634e6357893 | 202188873a350be51c4cdf3f43511caaeb778b1e | refs/heads/master | 2023-01-12T21:32:46.279915 | 2022-12-30T03:22:15 | 2022-12-30T03:22:15 | 186,221,579 | 5 | 3 | null | null | null | null | UTF-8 | Java | false | false | 97 | java | public class B2 {
public static void main(String[] argv) {
B2 b = new B2();
}
}
| [
"masudcseku@gmail.com"
] | masudcseku@gmail.com |
d2936362698622a09601422d362faae9473f47d5 | 02599ecc1b3ea610a3828ba667814f9338373c19 | /app/src/androidTest/java/com/example/projectandthesismanagementsystem/ExampleInstrumentedTest.java | 0e97a648ef3cf2a828a987c7688905a093875213 | [] | no_license | Gaurob/Project-and-Thesis-Management-System | 5cea9359846a7a5d18567b9a3654de3b510d0690 | 880b51d99ea7e679d1cbc9111d084ab0e8cd4b40 | refs/heads/master | 2020-04-29T15:11:58.140295 | 2019-04-10T10:41:26 | 2019-04-10T10:41:26 | 175,840,463 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 772 | java | package com.example.projectandthesismanagementsystem;
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.projectandthesismanagementsystem", appContext.getPackageName());
}
}
| [
"onabilsahagaurob@gmail.com"
] | onabilsahagaurob@gmail.com |
e5b4fbd039070051f954ae3a1dae251d406b03cc | 16878f5521cf1b9d6b7223a9436da3e2b7780b29 | /20200113-최종프로젝트/src/com/sist/dao/MemberDAO.java | 99ad75931b00a15dd797ec2ca36b8f19a56daaca | [] | no_license | hsj304/JavaStudy | 549d78e53dd6209b0fe64d786c145755a6fd2b13 | d6991a2a62d82ffab09340124652353492fd3391 | refs/heads/master | 2023-04-01T16:09:50.032850 | 2020-01-22T03:50:47 | 2020-01-22T03:50:47 | null | 0 | 0 | null | null | null | null | UHC | Java | false | false | 2,807 | java | package com.sist.dao;
import java.sql.*;
public class MemberDAO {
private Connection conn;//오라클 연결 => Socket
private PreparedStatement ps;// BufferedReader,OutputStream
private final String URL="jdbc:oracle:thin:@localhost:1521:XE";
// 오라클 연결 주소
// 1. 드라이버 등록 => 한번 수행 => 생성자
public MemberDAO()
{
try
{
Class.forName("oracle.jdbc.driver.OracleDriver");
}catch(Exception ex)
{
System.out.println(ex.getMessage());
}
}
// 2. 연결
public void getConnection()
{
try
{
conn=DriverManager.getConnection(URL,"hr","happy");
// conn hr/happy
}catch(Exception ex) {}
}
// 3. 연결해제
public void disConnection()
{
try
{
if(ps!=null) ps.close();
if(conn!=null) conn.close();
// exit
}catch(Exception ex) {}
}
// 4. 기능 처리
public String isLogin(String id,String pwd)
{
String result="";
try
{
// 연결
getConnection();
// 오라클에 요청
String sql="SELECT COUNT(*) FROM member WHERE id=?";
ps=conn.prepareStatement(sql); // 오라클로 전송
// ?에 값을 채운다
ps.setString(1, id);
// 실행요청
ResultSet rs=ps.executeQuery();
rs.next(); // 실제 출력위치에 커서를 이동한다
int count=rs.getInt(1);
rs.close();
if(count==0)
{
result="NOID";
}
else
{
// 요청
sql="SELECT * FROM member WHERE id=?";
ps=conn.prepareStatement(sql);// 전송
ps.setString(1, id);// 실행전에 ?에 값을 채운다
rs=ps.executeQuery();// 실행
rs.next();
// 값을 받는다
String mid=rs.getString(1);
String mpwd=rs.getString(2);
String name=rs.getString(3);
String sex=rs.getString(4);
int avata=rs.getInt(5);
System.out.println(name+" "+sex);
rs.close();
if(mpwd.equals(pwd))
{
// 로그인
result=mid+"|"+name+"|"+sex+"|"+avata;
}
else
{
// 비밀번호가 틀리다
result="NOPWD";
}
/*
* String name="";
* String sex="";
* String id="";
* int age=10;
* VARCHAR
* sql="INSERT INTO member VALUES('"+name+"','"+sex
* +"','"+id+"',"+age+")"
* sql="INSERT INTO member VALUES(?,?,?,?)"
*/
}
}catch(Exception ex)
{
System.out.println(ex.getMessage());
}
// CREATE ....(avata NUMBER)
/*
* INSERT INTO ~~ ( '남자',1) m1,m2...
* "C:\\image\\m"+no+".png"
*/
finally
{
// 연결 해제
disConnection();
}
return result;
}
}
| [
"vcandjava@nate.com"
] | vcandjava@nate.com |
35a52cea24bd051792efde630457322583658f65 | 7cc39b1ee93832aed70e14224f8a3d991570cca6 | /aws-java-sdk-backup/src/main/java/com/amazonaws/services/backup/model/DescribeBackupJobResult.java | b56a478201a93408a67b478fd183bc2f3ee7a0b6 | [
"Apache-2.0"
] | permissive | yijiangliu/aws-sdk-java | 74e626e096fe4cee22291809576bb7dc70aef94d | b75779a2ab0fe14c91da1e54be25b770385affac | refs/heads/master | 2022-12-17T10:24:59.549226 | 2020-08-19T23:46:40 | 2020-08-19T23:46:40 | 289,107,793 | 1 | 0 | Apache-2.0 | 2020-08-20T20:49:17 | 2020-08-20T20:49:16 | null | UTF-8 | Java | false | false | 47,728 | java | /*
* Copyright 2015-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.backup.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/DescribeBackupJob" target="_top">AWS API
* Documentation</a>
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DescribeBackupJobResult extends com.amazonaws.AmazonWebServiceResult<com.amazonaws.ResponseMetadata> implements Serializable, Cloneable {
/**
* <p>
* Returns the account ID that owns the backup job.
* </p>
*/
private String accountId;
/**
* <p>
* Uniquely identifies a request to AWS Backup to back up a resource.
* </p>
*/
private String backupJobId;
/**
* <p>
* The name of a logical container where backups are stored. Backup vaults are identified by names that are unique
* to the account used to create them and the AWS Region where they are created. They consist of lowercase letters,
* numbers, and hyphens.
* </p>
*/
private String backupVaultName;
/**
* <p>
* An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example,
* <code>arn:aws:backup:us-east-1:123456789012:vault:aBackupVault</code>.
* </p>
*/
private String backupVaultArn;
/**
* <p>
* An ARN that uniquely identifies a recovery point; for example,
* <code>arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45</code>.
* </p>
*/
private String recoveryPointArn;
/**
* <p>
* An ARN that uniquely identifies a saved resource. The format of the ARN depends on the resource type.
* </p>
*/
private String resourceArn;
/**
* <p>
* The date and time that a backup job is created, in Unix format and Coordinated Universal Time (UTC). The value of
* <code>CreationDate</code> is accurate to milliseconds. For example, the value 1516925490.087 represents Friday,
* January 26, 2018 12:11:30.087 AM.
* </p>
*/
private java.util.Date creationDate;
/**
* <p>
* The date and time that a job to create a backup job is completed, in Unix format and Coordinated Universal Time
* (UTC). The value of <code>CompletionDate</code> is accurate to milliseconds. For example, the value
* 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
* </p>
*/
private java.util.Date completionDate;
/**
* <p>
* The current state of a resource recovery point.
* </p>
*/
private String state;
/**
* <p>
* A detailed message explaining the status of the job to back up a resource.
* </p>
*/
private String statusMessage;
/**
* <p>
* Contains an estimated percentage that is complete of a job at the time the job status was queried.
* </p>
*/
private String percentDone;
/**
* <p>
* The size, in bytes, of a backup.
* </p>
*/
private Long backupSizeInBytes;
/**
* <p>
* Specifies the IAM role ARN used to create the target recovery point; for example,
* <code>arn:aws:iam::123456789012:role/S3Access</code>.
* </p>
*/
private String iamRoleArn;
/**
* <p>
* Contains identifying information about the creation of a backup job, including the <code>BackupPlanArn</code>,
* <code>BackupPlanId</code>, <code>BackupPlanVersion</code>, and <code>BackupRuleId</code> of the backup plan that
* is used to create it.
* </p>
*/
private RecoveryPointCreator createdBy;
/**
* <p>
* The type of AWS resource to be backed up; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an
* Amazon Relational Database Service (Amazon RDS) database.
* </p>
*/
private String resourceType;
/**
* <p>
* The size in bytes transferred to a backup vault at the time that the job status was queried.
* </p>
*/
private Long bytesTransferred;
/**
* <p>
* The date and time that a job to back up resources is expected to be completed, in Unix format and Coordinated
* Universal Time (UTC). The value of <code>ExpectedCompletionDate</code> is accurate to milliseconds. For example,
* the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
* </p>
*/
private java.util.Date expectedCompletionDate;
/**
* <p>
* Specifies the time in Unix format and Coordinated Universal Time (UTC) when a backup job must be started before
* it is canceled. The value is calculated by adding the start window to the scheduled time. So if the scheduled
* time were 6:00 PM and the start window is 2 hours, the <code>StartBy</code> time would be 8:00 PM on the date
* specified. The value of <code>StartBy</code> is accurate to milliseconds. For example, the value 1516925490.087
* represents Friday, January 26, 2018 12:11:30.087 AM.
* </p>
*/
private java.util.Date startBy;
/**
* <p>
* Returns the account ID that owns the backup job.
* </p>
*
* @param accountId
* Returns the account ID that owns the backup job.
*/
public void setAccountId(String accountId) {
this.accountId = accountId;
}
/**
* <p>
* Returns the account ID that owns the backup job.
* </p>
*
* @return Returns the account ID that owns the backup job.
*/
public String getAccountId() {
return this.accountId;
}
/**
* <p>
* Returns the account ID that owns the backup job.
* </p>
*
* @param accountId
* Returns the account ID that owns the backup job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeBackupJobResult withAccountId(String accountId) {
setAccountId(accountId);
return this;
}
/**
* <p>
* Uniquely identifies a request to AWS Backup to back up a resource.
* </p>
*
* @param backupJobId
* Uniquely identifies a request to AWS Backup to back up a resource.
*/
public void setBackupJobId(String backupJobId) {
this.backupJobId = backupJobId;
}
/**
* <p>
* Uniquely identifies a request to AWS Backup to back up a resource.
* </p>
*
* @return Uniquely identifies a request to AWS Backup to back up a resource.
*/
public String getBackupJobId() {
return this.backupJobId;
}
/**
* <p>
* Uniquely identifies a request to AWS Backup to back up a resource.
* </p>
*
* @param backupJobId
* Uniquely identifies a request to AWS Backup to back up a resource.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeBackupJobResult withBackupJobId(String backupJobId) {
setBackupJobId(backupJobId);
return this;
}
/**
* <p>
* The name of a logical container where backups are stored. Backup vaults are identified by names that are unique
* to the account used to create them and the AWS Region where they are created. They consist of lowercase letters,
* numbers, and hyphens.
* </p>
*
* @param backupVaultName
* The name of a logical container where backups are stored. Backup vaults are identified by names that are
* unique to the account used to create them and the AWS Region where they are created. They consist of
* lowercase letters, numbers, and hyphens.
*/
public void setBackupVaultName(String backupVaultName) {
this.backupVaultName = backupVaultName;
}
/**
* <p>
* The name of a logical container where backups are stored. Backup vaults are identified by names that are unique
* to the account used to create them and the AWS Region where they are created. They consist of lowercase letters,
* numbers, and hyphens.
* </p>
*
* @return The name of a logical container where backups are stored. Backup vaults are identified by names that are
* unique to the account used to create them and the AWS Region where they are created. They consist of
* lowercase letters, numbers, and hyphens.
*/
public String getBackupVaultName() {
return this.backupVaultName;
}
/**
* <p>
* The name of a logical container where backups are stored. Backup vaults are identified by names that are unique
* to the account used to create them and the AWS Region where they are created. They consist of lowercase letters,
* numbers, and hyphens.
* </p>
*
* @param backupVaultName
* The name of a logical container where backups are stored. Backup vaults are identified by names that are
* unique to the account used to create them and the AWS Region where they are created. They consist of
* lowercase letters, numbers, and hyphens.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeBackupJobResult withBackupVaultName(String backupVaultName) {
setBackupVaultName(backupVaultName);
return this;
}
/**
* <p>
* An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example,
* <code>arn:aws:backup:us-east-1:123456789012:vault:aBackupVault</code>.
* </p>
*
* @param backupVaultArn
* An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example,
* <code>arn:aws:backup:us-east-1:123456789012:vault:aBackupVault</code>.
*/
public void setBackupVaultArn(String backupVaultArn) {
this.backupVaultArn = backupVaultArn;
}
/**
* <p>
* An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example,
* <code>arn:aws:backup:us-east-1:123456789012:vault:aBackupVault</code>.
* </p>
*
* @return An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example,
* <code>arn:aws:backup:us-east-1:123456789012:vault:aBackupVault</code>.
*/
public String getBackupVaultArn() {
return this.backupVaultArn;
}
/**
* <p>
* An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example,
* <code>arn:aws:backup:us-east-1:123456789012:vault:aBackupVault</code>.
* </p>
*
* @param backupVaultArn
* An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example,
* <code>arn:aws:backup:us-east-1:123456789012:vault:aBackupVault</code>.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeBackupJobResult withBackupVaultArn(String backupVaultArn) {
setBackupVaultArn(backupVaultArn);
return this;
}
/**
* <p>
* An ARN that uniquely identifies a recovery point; for example,
* <code>arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45</code>.
* </p>
*
* @param recoveryPointArn
* An ARN that uniquely identifies a recovery point; for example,
* <code>arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45</code>.
*/
public void setRecoveryPointArn(String recoveryPointArn) {
this.recoveryPointArn = recoveryPointArn;
}
/**
* <p>
* An ARN that uniquely identifies a recovery point; for example,
* <code>arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45</code>.
* </p>
*
* @return An ARN that uniquely identifies a recovery point; for example,
* <code>arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45</code>.
*/
public String getRecoveryPointArn() {
return this.recoveryPointArn;
}
/**
* <p>
* An ARN that uniquely identifies a recovery point; for example,
* <code>arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45</code>.
* </p>
*
* @param recoveryPointArn
* An ARN that uniquely identifies a recovery point; for example,
* <code>arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45</code>.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeBackupJobResult withRecoveryPointArn(String recoveryPointArn) {
setRecoveryPointArn(recoveryPointArn);
return this;
}
/**
* <p>
* An ARN that uniquely identifies a saved resource. The format of the ARN depends on the resource type.
* </p>
*
* @param resourceArn
* An ARN that uniquely identifies a saved resource. The format of the ARN depends on the resource type.
*/
public void setResourceArn(String resourceArn) {
this.resourceArn = resourceArn;
}
/**
* <p>
* An ARN that uniquely identifies a saved resource. The format of the ARN depends on the resource type.
* </p>
*
* @return An ARN that uniquely identifies a saved resource. The format of the ARN depends on the resource type.
*/
public String getResourceArn() {
return this.resourceArn;
}
/**
* <p>
* An ARN that uniquely identifies a saved resource. The format of the ARN depends on the resource type.
* </p>
*
* @param resourceArn
* An ARN that uniquely identifies a saved resource. The format of the ARN depends on the resource type.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeBackupJobResult withResourceArn(String resourceArn) {
setResourceArn(resourceArn);
return this;
}
/**
* <p>
* The date and time that a backup job is created, in Unix format and Coordinated Universal Time (UTC). The value of
* <code>CreationDate</code> is accurate to milliseconds. For example, the value 1516925490.087 represents Friday,
* January 26, 2018 12:11:30.087 AM.
* </p>
*
* @param creationDate
* The date and time that a backup job is created, in Unix format and Coordinated Universal Time (UTC). The
* value of <code>CreationDate</code> is accurate to milliseconds. For example, the value 1516925490.087
* represents Friday, January 26, 2018 12:11:30.087 AM.
*/
public void setCreationDate(java.util.Date creationDate) {
this.creationDate = creationDate;
}
/**
* <p>
* The date and time that a backup job is created, in Unix format and Coordinated Universal Time (UTC). The value of
* <code>CreationDate</code> is accurate to milliseconds. For example, the value 1516925490.087 represents Friday,
* January 26, 2018 12:11:30.087 AM.
* </p>
*
* @return The date and time that a backup job is created, in Unix format and Coordinated Universal Time (UTC). The
* value of <code>CreationDate</code> is accurate to milliseconds. For example, the value 1516925490.087
* represents Friday, January 26, 2018 12:11:30.087 AM.
*/
public java.util.Date getCreationDate() {
return this.creationDate;
}
/**
* <p>
* The date and time that a backup job is created, in Unix format and Coordinated Universal Time (UTC). The value of
* <code>CreationDate</code> is accurate to milliseconds. For example, the value 1516925490.087 represents Friday,
* January 26, 2018 12:11:30.087 AM.
* </p>
*
* @param creationDate
* The date and time that a backup job is created, in Unix format and Coordinated Universal Time (UTC). The
* value of <code>CreationDate</code> is accurate to milliseconds. For example, the value 1516925490.087
* represents Friday, January 26, 2018 12:11:30.087 AM.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeBackupJobResult withCreationDate(java.util.Date creationDate) {
setCreationDate(creationDate);
return this;
}
/**
* <p>
* The date and time that a job to create a backup job is completed, in Unix format and Coordinated Universal Time
* (UTC). The value of <code>CompletionDate</code> is accurate to milliseconds. For example, the value
* 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
* </p>
*
* @param completionDate
* The date and time that a job to create a backup job is completed, in Unix format and Coordinated Universal
* Time (UTC). The value of <code>CompletionDate</code> is accurate to milliseconds. For example, the value
* 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
*/
public void setCompletionDate(java.util.Date completionDate) {
this.completionDate = completionDate;
}
/**
* <p>
* The date and time that a job to create a backup job is completed, in Unix format and Coordinated Universal Time
* (UTC). The value of <code>CompletionDate</code> is accurate to milliseconds. For example, the value
* 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
* </p>
*
* @return The date and time that a job to create a backup job is completed, in Unix format and Coordinated
* Universal Time (UTC). The value of <code>CompletionDate</code> is accurate to milliseconds. For example,
* the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
*/
public java.util.Date getCompletionDate() {
return this.completionDate;
}
/**
* <p>
* The date and time that a job to create a backup job is completed, in Unix format and Coordinated Universal Time
* (UTC). The value of <code>CompletionDate</code> is accurate to milliseconds. For example, the value
* 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
* </p>
*
* @param completionDate
* The date and time that a job to create a backup job is completed, in Unix format and Coordinated Universal
* Time (UTC). The value of <code>CompletionDate</code> is accurate to milliseconds. For example, the value
* 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeBackupJobResult withCompletionDate(java.util.Date completionDate) {
setCompletionDate(completionDate);
return this;
}
/**
* <p>
* The current state of a resource recovery point.
* </p>
*
* @param state
* The current state of a resource recovery point.
* @see BackupJobState
*/
public void setState(String state) {
this.state = state;
}
/**
* <p>
* The current state of a resource recovery point.
* </p>
*
* @return The current state of a resource recovery point.
* @see BackupJobState
*/
public String getState() {
return this.state;
}
/**
* <p>
* The current state of a resource recovery point.
* </p>
*
* @param state
* The current state of a resource recovery point.
* @return Returns a reference to this object so that method calls can be chained together.
* @see BackupJobState
*/
public DescribeBackupJobResult withState(String state) {
setState(state);
return this;
}
/**
* <p>
* The current state of a resource recovery point.
* </p>
*
* @param state
* The current state of a resource recovery point.
* @return Returns a reference to this object so that method calls can be chained together.
* @see BackupJobState
*/
public DescribeBackupJobResult withState(BackupJobState state) {
this.state = state.toString();
return this;
}
/**
* <p>
* A detailed message explaining the status of the job to back up a resource.
* </p>
*
* @param statusMessage
* A detailed message explaining the status of the job to back up a resource.
*/
public void setStatusMessage(String statusMessage) {
this.statusMessage = statusMessage;
}
/**
* <p>
* A detailed message explaining the status of the job to back up a resource.
* </p>
*
* @return A detailed message explaining the status of the job to back up a resource.
*/
public String getStatusMessage() {
return this.statusMessage;
}
/**
* <p>
* A detailed message explaining the status of the job to back up a resource.
* </p>
*
* @param statusMessage
* A detailed message explaining the status of the job to back up a resource.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeBackupJobResult withStatusMessage(String statusMessage) {
setStatusMessage(statusMessage);
return this;
}
/**
* <p>
* Contains an estimated percentage that is complete of a job at the time the job status was queried.
* </p>
*
* @param percentDone
* Contains an estimated percentage that is complete of a job at the time the job status was queried.
*/
public void setPercentDone(String percentDone) {
this.percentDone = percentDone;
}
/**
* <p>
* Contains an estimated percentage that is complete of a job at the time the job status was queried.
* </p>
*
* @return Contains an estimated percentage that is complete of a job at the time the job status was queried.
*/
public String getPercentDone() {
return this.percentDone;
}
/**
* <p>
* Contains an estimated percentage that is complete of a job at the time the job status was queried.
* </p>
*
* @param percentDone
* Contains an estimated percentage that is complete of a job at the time the job status was queried.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeBackupJobResult withPercentDone(String percentDone) {
setPercentDone(percentDone);
return this;
}
/**
* <p>
* The size, in bytes, of a backup.
* </p>
*
* @param backupSizeInBytes
* The size, in bytes, of a backup.
*/
public void setBackupSizeInBytes(Long backupSizeInBytes) {
this.backupSizeInBytes = backupSizeInBytes;
}
/**
* <p>
* The size, in bytes, of a backup.
* </p>
*
* @return The size, in bytes, of a backup.
*/
public Long getBackupSizeInBytes() {
return this.backupSizeInBytes;
}
/**
* <p>
* The size, in bytes, of a backup.
* </p>
*
* @param backupSizeInBytes
* The size, in bytes, of a backup.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeBackupJobResult withBackupSizeInBytes(Long backupSizeInBytes) {
setBackupSizeInBytes(backupSizeInBytes);
return this;
}
/**
* <p>
* Specifies the IAM role ARN used to create the target recovery point; for example,
* <code>arn:aws:iam::123456789012:role/S3Access</code>.
* </p>
*
* @param iamRoleArn
* Specifies the IAM role ARN used to create the target recovery point; for example,
* <code>arn:aws:iam::123456789012:role/S3Access</code>.
*/
public void setIamRoleArn(String iamRoleArn) {
this.iamRoleArn = iamRoleArn;
}
/**
* <p>
* Specifies the IAM role ARN used to create the target recovery point; for example,
* <code>arn:aws:iam::123456789012:role/S3Access</code>.
* </p>
*
* @return Specifies the IAM role ARN used to create the target recovery point; for example,
* <code>arn:aws:iam::123456789012:role/S3Access</code>.
*/
public String getIamRoleArn() {
return this.iamRoleArn;
}
/**
* <p>
* Specifies the IAM role ARN used to create the target recovery point; for example,
* <code>arn:aws:iam::123456789012:role/S3Access</code>.
* </p>
*
* @param iamRoleArn
* Specifies the IAM role ARN used to create the target recovery point; for example,
* <code>arn:aws:iam::123456789012:role/S3Access</code>.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeBackupJobResult withIamRoleArn(String iamRoleArn) {
setIamRoleArn(iamRoleArn);
return this;
}
/**
* <p>
* Contains identifying information about the creation of a backup job, including the <code>BackupPlanArn</code>,
* <code>BackupPlanId</code>, <code>BackupPlanVersion</code>, and <code>BackupRuleId</code> of the backup plan that
* is used to create it.
* </p>
*
* @param createdBy
* Contains identifying information about the creation of a backup job, including the
* <code>BackupPlanArn</code>, <code>BackupPlanId</code>, <code>BackupPlanVersion</code>, and
* <code>BackupRuleId</code> of the backup plan that is used to create it.
*/
public void setCreatedBy(RecoveryPointCreator createdBy) {
this.createdBy = createdBy;
}
/**
* <p>
* Contains identifying information about the creation of a backup job, including the <code>BackupPlanArn</code>,
* <code>BackupPlanId</code>, <code>BackupPlanVersion</code>, and <code>BackupRuleId</code> of the backup plan that
* is used to create it.
* </p>
*
* @return Contains identifying information about the creation of a backup job, including the
* <code>BackupPlanArn</code>, <code>BackupPlanId</code>, <code>BackupPlanVersion</code>, and
* <code>BackupRuleId</code> of the backup plan that is used to create it.
*/
public RecoveryPointCreator getCreatedBy() {
return this.createdBy;
}
/**
* <p>
* Contains identifying information about the creation of a backup job, including the <code>BackupPlanArn</code>,
* <code>BackupPlanId</code>, <code>BackupPlanVersion</code>, and <code>BackupRuleId</code> of the backup plan that
* is used to create it.
* </p>
*
* @param createdBy
* Contains identifying information about the creation of a backup job, including the
* <code>BackupPlanArn</code>, <code>BackupPlanId</code>, <code>BackupPlanVersion</code>, and
* <code>BackupRuleId</code> of the backup plan that is used to create it.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeBackupJobResult withCreatedBy(RecoveryPointCreator createdBy) {
setCreatedBy(createdBy);
return this;
}
/**
* <p>
* The type of AWS resource to be backed up; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an
* Amazon Relational Database Service (Amazon RDS) database.
* </p>
*
* @param resourceType
* The type of AWS resource to be backed up; for example, an Amazon Elastic Block Store (Amazon EBS) volume
* or an Amazon Relational Database Service (Amazon RDS) database.
*/
public void setResourceType(String resourceType) {
this.resourceType = resourceType;
}
/**
* <p>
* The type of AWS resource to be backed up; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an
* Amazon Relational Database Service (Amazon RDS) database.
* </p>
*
* @return The type of AWS resource to be backed up; for example, an Amazon Elastic Block Store (Amazon EBS) volume
* or an Amazon Relational Database Service (Amazon RDS) database.
*/
public String getResourceType() {
return this.resourceType;
}
/**
* <p>
* The type of AWS resource to be backed up; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an
* Amazon Relational Database Service (Amazon RDS) database.
* </p>
*
* @param resourceType
* The type of AWS resource to be backed up; for example, an Amazon Elastic Block Store (Amazon EBS) volume
* or an Amazon Relational Database Service (Amazon RDS) database.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeBackupJobResult withResourceType(String resourceType) {
setResourceType(resourceType);
return this;
}
/**
* <p>
* The size in bytes transferred to a backup vault at the time that the job status was queried.
* </p>
*
* @param bytesTransferred
* The size in bytes transferred to a backup vault at the time that the job status was queried.
*/
public void setBytesTransferred(Long bytesTransferred) {
this.bytesTransferred = bytesTransferred;
}
/**
* <p>
* The size in bytes transferred to a backup vault at the time that the job status was queried.
* </p>
*
* @return The size in bytes transferred to a backup vault at the time that the job status was queried.
*/
public Long getBytesTransferred() {
return this.bytesTransferred;
}
/**
* <p>
* The size in bytes transferred to a backup vault at the time that the job status was queried.
* </p>
*
* @param bytesTransferred
* The size in bytes transferred to a backup vault at the time that the job status was queried.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeBackupJobResult withBytesTransferred(Long bytesTransferred) {
setBytesTransferred(bytesTransferred);
return this;
}
/**
* <p>
* The date and time that a job to back up resources is expected to be completed, in Unix format and Coordinated
* Universal Time (UTC). The value of <code>ExpectedCompletionDate</code> is accurate to milliseconds. For example,
* the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
* </p>
*
* @param expectedCompletionDate
* The date and time that a job to back up resources is expected to be completed, in Unix format and
* Coordinated Universal Time (UTC). The value of <code>ExpectedCompletionDate</code> is accurate to
* milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
*/
public void setExpectedCompletionDate(java.util.Date expectedCompletionDate) {
this.expectedCompletionDate = expectedCompletionDate;
}
/**
* <p>
* The date and time that a job to back up resources is expected to be completed, in Unix format and Coordinated
* Universal Time (UTC). The value of <code>ExpectedCompletionDate</code> is accurate to milliseconds. For example,
* the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
* </p>
*
* @return The date and time that a job to back up resources is expected to be completed, in Unix format and
* Coordinated Universal Time (UTC). The value of <code>ExpectedCompletionDate</code> is accurate to
* milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
*/
public java.util.Date getExpectedCompletionDate() {
return this.expectedCompletionDate;
}
/**
* <p>
* The date and time that a job to back up resources is expected to be completed, in Unix format and Coordinated
* Universal Time (UTC). The value of <code>ExpectedCompletionDate</code> is accurate to milliseconds. For example,
* the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
* </p>
*
* @param expectedCompletionDate
* The date and time that a job to back up resources is expected to be completed, in Unix format and
* Coordinated Universal Time (UTC). The value of <code>ExpectedCompletionDate</code> is accurate to
* milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeBackupJobResult withExpectedCompletionDate(java.util.Date expectedCompletionDate) {
setExpectedCompletionDate(expectedCompletionDate);
return this;
}
/**
* <p>
* Specifies the time in Unix format and Coordinated Universal Time (UTC) when a backup job must be started before
* it is canceled. The value is calculated by adding the start window to the scheduled time. So if the scheduled
* time were 6:00 PM and the start window is 2 hours, the <code>StartBy</code> time would be 8:00 PM on the date
* specified. The value of <code>StartBy</code> is accurate to milliseconds. For example, the value 1516925490.087
* represents Friday, January 26, 2018 12:11:30.087 AM.
* </p>
*
* @param startBy
* Specifies the time in Unix format and Coordinated Universal Time (UTC) when a backup job must be started
* before it is canceled. The value is calculated by adding the start window to the scheduled time. So if the
* scheduled time were 6:00 PM and the start window is 2 hours, the <code>StartBy</code> time would be 8:00
* PM on the date specified. The value of <code>StartBy</code> is accurate to milliseconds. For example, the
* value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
*/
public void setStartBy(java.util.Date startBy) {
this.startBy = startBy;
}
/**
* <p>
* Specifies the time in Unix format and Coordinated Universal Time (UTC) when a backup job must be started before
* it is canceled. The value is calculated by adding the start window to the scheduled time. So if the scheduled
* time were 6:00 PM and the start window is 2 hours, the <code>StartBy</code> time would be 8:00 PM on the date
* specified. The value of <code>StartBy</code> is accurate to milliseconds. For example, the value 1516925490.087
* represents Friday, January 26, 2018 12:11:30.087 AM.
* </p>
*
* @return Specifies the time in Unix format and Coordinated Universal Time (UTC) when a backup job must be started
* before it is canceled. The value is calculated by adding the start window to the scheduled time. So if
* the scheduled time were 6:00 PM and the start window is 2 hours, the <code>StartBy</code> time would be
* 8:00 PM on the date specified. The value of <code>StartBy</code> is accurate to milliseconds. For
* example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
*/
public java.util.Date getStartBy() {
return this.startBy;
}
/**
* <p>
* Specifies the time in Unix format and Coordinated Universal Time (UTC) when a backup job must be started before
* it is canceled. The value is calculated by adding the start window to the scheduled time. So if the scheduled
* time were 6:00 PM and the start window is 2 hours, the <code>StartBy</code> time would be 8:00 PM on the date
* specified. The value of <code>StartBy</code> is accurate to milliseconds. For example, the value 1516925490.087
* represents Friday, January 26, 2018 12:11:30.087 AM.
* </p>
*
* @param startBy
* Specifies the time in Unix format and Coordinated Universal Time (UTC) when a backup job must be started
* before it is canceled. The value is calculated by adding the start window to the scheduled time. So if the
* scheduled time were 6:00 PM and the start window is 2 hours, the <code>StartBy</code> time would be 8:00
* PM on the date specified. The value of <code>StartBy</code> is accurate to milliseconds. For example, the
* value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeBackupJobResult withStartBy(java.util.Date startBy) {
setStartBy(startBy);
return this;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getAccountId() != null)
sb.append("AccountId: ").append(getAccountId()).append(",");
if (getBackupJobId() != null)
sb.append("BackupJobId: ").append(getBackupJobId()).append(",");
if (getBackupVaultName() != null)
sb.append("BackupVaultName: ").append(getBackupVaultName()).append(",");
if (getBackupVaultArn() != null)
sb.append("BackupVaultArn: ").append(getBackupVaultArn()).append(",");
if (getRecoveryPointArn() != null)
sb.append("RecoveryPointArn: ").append(getRecoveryPointArn()).append(",");
if (getResourceArn() != null)
sb.append("ResourceArn: ").append(getResourceArn()).append(",");
if (getCreationDate() != null)
sb.append("CreationDate: ").append(getCreationDate()).append(",");
if (getCompletionDate() != null)
sb.append("CompletionDate: ").append(getCompletionDate()).append(",");
if (getState() != null)
sb.append("State: ").append(getState()).append(",");
if (getStatusMessage() != null)
sb.append("StatusMessage: ").append(getStatusMessage()).append(",");
if (getPercentDone() != null)
sb.append("PercentDone: ").append(getPercentDone()).append(",");
if (getBackupSizeInBytes() != null)
sb.append("BackupSizeInBytes: ").append(getBackupSizeInBytes()).append(",");
if (getIamRoleArn() != null)
sb.append("IamRoleArn: ").append(getIamRoleArn()).append(",");
if (getCreatedBy() != null)
sb.append("CreatedBy: ").append(getCreatedBy()).append(",");
if (getResourceType() != null)
sb.append("ResourceType: ").append(getResourceType()).append(",");
if (getBytesTransferred() != null)
sb.append("BytesTransferred: ").append(getBytesTransferred()).append(",");
if (getExpectedCompletionDate() != null)
sb.append("ExpectedCompletionDate: ").append(getExpectedCompletionDate()).append(",");
if (getStartBy() != null)
sb.append("StartBy: ").append(getStartBy());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DescribeBackupJobResult == false)
return false;
DescribeBackupJobResult other = (DescribeBackupJobResult) obj;
if (other.getAccountId() == null ^ this.getAccountId() == null)
return false;
if (other.getAccountId() != null && other.getAccountId().equals(this.getAccountId()) == false)
return false;
if (other.getBackupJobId() == null ^ this.getBackupJobId() == null)
return false;
if (other.getBackupJobId() != null && other.getBackupJobId().equals(this.getBackupJobId()) == false)
return false;
if (other.getBackupVaultName() == null ^ this.getBackupVaultName() == null)
return false;
if (other.getBackupVaultName() != null && other.getBackupVaultName().equals(this.getBackupVaultName()) == false)
return false;
if (other.getBackupVaultArn() == null ^ this.getBackupVaultArn() == null)
return false;
if (other.getBackupVaultArn() != null && other.getBackupVaultArn().equals(this.getBackupVaultArn()) == false)
return false;
if (other.getRecoveryPointArn() == null ^ this.getRecoveryPointArn() == null)
return false;
if (other.getRecoveryPointArn() != null && other.getRecoveryPointArn().equals(this.getRecoveryPointArn()) == false)
return false;
if (other.getResourceArn() == null ^ this.getResourceArn() == null)
return false;
if (other.getResourceArn() != null && other.getResourceArn().equals(this.getResourceArn()) == false)
return false;
if (other.getCreationDate() == null ^ this.getCreationDate() == null)
return false;
if (other.getCreationDate() != null && other.getCreationDate().equals(this.getCreationDate()) == false)
return false;
if (other.getCompletionDate() == null ^ this.getCompletionDate() == null)
return false;
if (other.getCompletionDate() != null && other.getCompletionDate().equals(this.getCompletionDate()) == false)
return false;
if (other.getState() == null ^ this.getState() == null)
return false;
if (other.getState() != null && other.getState().equals(this.getState()) == false)
return false;
if (other.getStatusMessage() == null ^ this.getStatusMessage() == null)
return false;
if (other.getStatusMessage() != null && other.getStatusMessage().equals(this.getStatusMessage()) == false)
return false;
if (other.getPercentDone() == null ^ this.getPercentDone() == null)
return false;
if (other.getPercentDone() != null && other.getPercentDone().equals(this.getPercentDone()) == false)
return false;
if (other.getBackupSizeInBytes() == null ^ this.getBackupSizeInBytes() == null)
return false;
if (other.getBackupSizeInBytes() != null && other.getBackupSizeInBytes().equals(this.getBackupSizeInBytes()) == false)
return false;
if (other.getIamRoleArn() == null ^ this.getIamRoleArn() == null)
return false;
if (other.getIamRoleArn() != null && other.getIamRoleArn().equals(this.getIamRoleArn()) == false)
return false;
if (other.getCreatedBy() == null ^ this.getCreatedBy() == null)
return false;
if (other.getCreatedBy() != null && other.getCreatedBy().equals(this.getCreatedBy()) == false)
return false;
if (other.getResourceType() == null ^ this.getResourceType() == null)
return false;
if (other.getResourceType() != null && other.getResourceType().equals(this.getResourceType()) == false)
return false;
if (other.getBytesTransferred() == null ^ this.getBytesTransferred() == null)
return false;
if (other.getBytesTransferred() != null && other.getBytesTransferred().equals(this.getBytesTransferred()) == false)
return false;
if (other.getExpectedCompletionDate() == null ^ this.getExpectedCompletionDate() == null)
return false;
if (other.getExpectedCompletionDate() != null && other.getExpectedCompletionDate().equals(this.getExpectedCompletionDate()) == false)
return false;
if (other.getStartBy() == null ^ this.getStartBy() == null)
return false;
if (other.getStartBy() != null && other.getStartBy().equals(this.getStartBy()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getAccountId() == null) ? 0 : getAccountId().hashCode());
hashCode = prime * hashCode + ((getBackupJobId() == null) ? 0 : getBackupJobId().hashCode());
hashCode = prime * hashCode + ((getBackupVaultName() == null) ? 0 : getBackupVaultName().hashCode());
hashCode = prime * hashCode + ((getBackupVaultArn() == null) ? 0 : getBackupVaultArn().hashCode());
hashCode = prime * hashCode + ((getRecoveryPointArn() == null) ? 0 : getRecoveryPointArn().hashCode());
hashCode = prime * hashCode + ((getResourceArn() == null) ? 0 : getResourceArn().hashCode());
hashCode = prime * hashCode + ((getCreationDate() == null) ? 0 : getCreationDate().hashCode());
hashCode = prime * hashCode + ((getCompletionDate() == null) ? 0 : getCompletionDate().hashCode());
hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode());
hashCode = prime * hashCode + ((getStatusMessage() == null) ? 0 : getStatusMessage().hashCode());
hashCode = prime * hashCode + ((getPercentDone() == null) ? 0 : getPercentDone().hashCode());
hashCode = prime * hashCode + ((getBackupSizeInBytes() == null) ? 0 : getBackupSizeInBytes().hashCode());
hashCode = prime * hashCode + ((getIamRoleArn() == null) ? 0 : getIamRoleArn().hashCode());
hashCode = prime * hashCode + ((getCreatedBy() == null) ? 0 : getCreatedBy().hashCode());
hashCode = prime * hashCode + ((getResourceType() == null) ? 0 : getResourceType().hashCode());
hashCode = prime * hashCode + ((getBytesTransferred() == null) ? 0 : getBytesTransferred().hashCode());
hashCode = prime * hashCode + ((getExpectedCompletionDate() == null) ? 0 : getExpectedCompletionDate().hashCode());
hashCode = prime * hashCode + ((getStartBy() == null) ? 0 : getStartBy().hashCode());
return hashCode;
}
@Override
public DescribeBackupJobResult clone() {
try {
return (DescribeBackupJobResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}
| [
""
] | |
039521c7230166e44e28bd8b5746a547ad43e310 | bf0bd28d96b92028ed2f84f998644d362bfacfba | /06-07-2021/MenuOverflow/app/src/main/java/com/example/menuoverflow/MainActivity.java | 169658ee7b63d637967cb1c930b1fa43800ff7c5 | [] | no_license | SebaFarias/DESARROLLO-DE-APLICACIONES-M-VILES-ANDROID-JAVA | 37dc459ccc9d3e7343d63f378ea303c29babef15 | 894f82fcee44fe503cfd8a53fb32d1b7e85b1a30 | refs/heads/master | 2023-08-30T12:25:48.453283 | 2021-11-08T09:27:24 | 2021-11-08T09:27:24 | 378,205,999 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,227 | java | package com.example.menuoverflow;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.Toast;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
public boolean onCreateOptionsMenu(Menu menu){
getMenuInflater().inflate(R.menu.menuoverflow,menu);
return true;
}
public boolean onOptionsItemSelected(MenuItem item){
int itemId = item.getItemId();
if(itemId == R.id.op1){
Toast.makeText(this,"Seleccionaste la opción 1",Toast.LENGTH_SHORT).show();
}else if(itemId == R.id.op2){
Toast.makeText(this,"Seleccionaste la opción 2",Toast.LENGTH_SHORT).show();
}else if(itemId == R.id.op3){
Toast.makeText(this, "Seleccionaste la opción 3",Toast.LENGTH_SHORT).show();
}else if(itemId == R.id.op4){
Toast.makeText(this, "Seleccionaste la opción 4",Toast.LENGTH_SHORT).show();
}
return super.onOptionsItemSelected(item);
}
} | [
"sebastian.fariasb@usach.cl"
] | sebastian.fariasb@usach.cl |
9271efee3f8dffb88284bdb83883065b653efde1 | 72c6ac35f953a267dd42fd852577b5742527f7d7 | /app/src/main/java/com/app1/neil/ca2emoji/SplashScreen.java | 216d9166d74b812e21296d7aa8cf398f3964c3bc | [] | no_license | NGitK/CA2Emoji | 4266e598e771e3c333ac998c4649a3eac6b6214f | d490af413b6d77760ecb840923dc622e5789c42e | refs/heads/master | 2020-06-05T22:07:27.319021 | 2015-05-23T00:12:00 | 2015-05-23T00:12:00 | 33,198,014 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 782 | java | package com.app1.neil.ca2emoji;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
public class SplashScreen extends Activity {
private final int SplashScreenTime = 4000;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.splash_screen);
new Handler().postDelayed(new Runnable() {
public void run() {
Intent intent = new Intent(SplashScreen.this, MainActivity.class);
startActivity(intent);
finish(); //destroy activity
}
}, SplashScreenTime);
}
}
| [
"neillok@hotmail.com"
] | neillok@hotmail.com |
57acfba8d88be7a7c81cc998b46150caacd8a7c4 | f7f9d7fa841e856927e02513ecc74dc00c935f8a | /server/src/main/java/org/codelibs/fesen/gateway/Gateway.java | 61600f59b1d070ddb22ac55c4a2da5e6ce5baf49 | [
"CDDL-1.0",
"MIT",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"LGPL-2.1-only",
"NAIST-2003",
"LicenseRef-scancode-generic-export-compliance",
"ICU",
"SunPro",
"Python-2.0",
"CC-BY-SA-3.0",
"MPL-1.1",
"GPL-2.0-only",
"CPL-1.0",
"LicenseRef-scancode-other-copyleft",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"CC-PDDC",
"BSD-2-Clause",
"LicenseRef-scancode-unicode-mappings",
"LicenseRef-scancode-unicode",
"CC0-1.0",
"Apache-1.1",
"EPL-1.0",
"Classpath-exception-2.0"
] | permissive | codelibs/fesen | 3f949fd3533e8b25afc3d3475010d1b1a0d95c09 | b2440fbda02e32f7abe77d2be95ead6a16c8af06 | refs/heads/main | 2022-07-27T21:14:02.455938 | 2021-12-21T23:54:20 | 2021-12-21T23:54:20 | 330,334,670 | 4 | 0 | Apache-2.0 | 2022-05-17T01:54:31 | 2021-01-17T07:07:56 | Java | UTF-8 | Java | false | false | 6,202 | java | /*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch 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.codelibs.fesen.gateway;
import com.carrotsearch.hppc.ObjectFloatHashMap;
import com.carrotsearch.hppc.cursors.ObjectCursor;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.codelibs.fesen.action.FailedNodeException;
import org.codelibs.fesen.cluster.ClusterState;
import org.codelibs.fesen.cluster.metadata.IndexMetadata;
import org.codelibs.fesen.cluster.metadata.Metadata;
import org.codelibs.fesen.cluster.service.ClusterService;
import org.codelibs.fesen.common.settings.Settings;
import org.codelibs.fesen.discovery.zen.ElectMasterService;
import org.codelibs.fesen.index.Index;
import java.util.Arrays;
import java.util.function.Function;
public class Gateway {
private static final Logger logger = LogManager.getLogger(Gateway.class);
private final ClusterService clusterService;
private final TransportNodesListGatewayMetaState listGatewayMetaState;
private final int minimumMasterNodes;
public Gateway(final Settings settings, final ClusterService clusterService,
final TransportNodesListGatewayMetaState listGatewayMetaState) {
this.clusterService = clusterService;
this.listGatewayMetaState = listGatewayMetaState;
this.minimumMasterNodes = ElectMasterService.DISCOVERY_ZEN_MINIMUM_MASTER_NODES_SETTING.get(settings);
}
public void performStateRecovery(final GatewayStateRecoveredListener listener) throws GatewayException {
final String[] nodesIds = clusterService.state().nodes().getMasterNodes().keys().toArray(String.class);
logger.trace("performing state recovery from {}", Arrays.toString(nodesIds));
final TransportNodesListGatewayMetaState.NodesGatewayMetaState nodesState = listGatewayMetaState.list(nodesIds, null).actionGet();
final int requiredAllocation = Math.max(1, minimumMasterNodes);
if (nodesState.hasFailures()) {
for (final FailedNodeException failedNodeException : nodesState.failures()) {
logger.warn("failed to fetch state from node", failedNodeException);
}
}
final ObjectFloatHashMap<Index> indices = new ObjectFloatHashMap<>();
Metadata electedGlobalState = null;
int found = 0;
for (final TransportNodesListGatewayMetaState.NodeGatewayMetaState nodeState : nodesState.getNodes()) {
if (nodeState.metadata() == null) {
continue;
}
found++;
if (electedGlobalState == null) {
electedGlobalState = nodeState.metadata();
} else if (nodeState.metadata().version() > electedGlobalState.version()) {
electedGlobalState = nodeState.metadata();
}
for (final ObjectCursor<IndexMetadata> cursor : nodeState.metadata().indices().values()) {
indices.addTo(cursor.value.getIndex(), 1);
}
}
if (found < requiredAllocation) {
listener.onFailure("found [" + found + "] metadata states, required [" + requiredAllocation + "]");
return;
}
// update the global state, and clean the indices, we elect them in the next phase
final Metadata.Builder metadataBuilder = Metadata.builder(electedGlobalState).removeAllIndices();
assert !indices.containsKey(null);
final Object[] keys = indices.keys;
for (int i = 0; i < keys.length; i++) {
if (keys[i] != null) {
final Index index = (Index) keys[i];
IndexMetadata electedIndexMetadata = null;
int indexMetadataCount = 0;
for (final TransportNodesListGatewayMetaState.NodeGatewayMetaState nodeState : nodesState.getNodes()) {
if (nodeState.metadata() == null) {
continue;
}
final IndexMetadata indexMetadata = nodeState.metadata().index(index);
if (indexMetadata == null) {
continue;
}
if (electedIndexMetadata == null) {
electedIndexMetadata = indexMetadata;
} else if (indexMetadata.getVersion() > electedIndexMetadata.getVersion()) {
electedIndexMetadata = indexMetadata;
}
indexMetadataCount++;
}
if (electedIndexMetadata != null) {
if (indexMetadataCount < requiredAllocation) {
logger.debug("[{}] found [{}], required [{}], not adding", index, indexMetadataCount, requiredAllocation);
} // TODO if this logging statement is correct then we are missing an else here
metadataBuilder.put(electedIndexMetadata, false);
}
}
}
ClusterState recoveredState = Function.<ClusterState>identity()
.andThen(state -> ClusterStateUpdaters.upgradeAndArchiveUnknownOrInvalidSettings(state, clusterService.getClusterSettings()))
.apply(ClusterState.builder(clusterService.getClusterName()).metadata(metadataBuilder).build());
listener.onSuccess(recoveredState);
}
public interface GatewayStateRecoveredListener {
void onSuccess(ClusterState build);
void onFailure(String s);
}
}
| [
"shinsuke@apache.org"
] | shinsuke@apache.org |
a7211c4b93188958212a52ccbc45d04ba27681c4 | 13a06200240acb01270a7fc3bef0f293dd9cda7c | /src/be/kdg/gameofur/view/tutorial/Tutorial.java | 7c1e10906dd755e470e48fec5a42913372b7e34d | [] | no_license | freefurie/GameOfUr | 795f0c2fec6db94a82a6690eb77d63f3afde9501 | 62ba7be779521944702b74aca37fe749a8939b83 | refs/heads/master | 2020-03-08T10:40:52.630846 | 2018-04-05T14:21:23 | 2018-04-05T14:21:23 | 128,079,029 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,371 | java | package be.kdg.gameofur.view.tutorial;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.layout.*;
import javafx.scene.paint.Color;
import javafx.scene.text.Font;
/**
* This class shows the tutorial of the game with a picture of the board with the two paths and an text explanation under it
*
* @author William Van Bouwel
* @author Anouk As
*/
public class Tutorial extends BorderPane {
//attributes
private Label lblTutorial;
private ImageView ivBordTut;
private VBox vBox;
private Button btnBack;
//background
// private Background background;
//constructor
public Tutorial(){
initialiseNodes();
layoutNodes();
}
//methods
private void initialiseNodes() {
lblTutorial = new Label("tutorial");
Image bordTutorial = new Image("/misc/bordTutorial.png");
ivBordTut = new ImageView(new Image("/misc/bordTutorial.png"));
vBox = new VBox();
btnBack = new Button("Back");
//background
// Image backgroundImage = new Image("/background/");
// BackgroundSize backgroundSize = new BackgroundSize(BackgroundSize.AUTO,BackgroundSize.AUTO,false,false,true,true);
// background = new Background(new BackgroundImage(backgroundImage, BackgroundRepeat.NO_REPEAT,BackgroundRepeat.NO_REPEAT,BackgroundPosition.CENTER,backgroundSize));
}
private void layoutNodes() {
lblTutorial.getStyleClass().add("title");
setTop(lblTutorial);
setAlignment(lblTutorial,Pos.CENTER);
//center: image Bord
setCenter(ivBordTut);
setAlignment(ivBordTut,Pos.CENTER);
ivBordTut.preserveRatioProperty().setValue(true);
ivBordTut.setPreserveRatio(true);
//bottom: back
setAlignment(btnBack, Pos.CENTER);
vBox.setAlignment(Pos.CENTER);
vBox.getChildren().addAll(btnBack);
vBox.setSpacing(5);
setBottom(vBox);
//padding of borderpane
this.setPadding(new Insets(20));
//background
// setBackground(background);
}
Button getBtnBack() {
return btnBack;
}
}
| [
"noreply@github.com"
] | noreply@github.com |
cbca74082553082ad27eda8f768dfcc8916c24e5 | d17f01da2bf20e1cb03c9bb57e775aacbd7d5595 | /coherence-twelve-one-two/src/main/java/com/thegridman/coherence/pof/LinkedListCodec.java | 35585e0ce7cc1ce865069d3d3fe9dc1233abd79f | [] | no_license | thegridman/Coherence-Blog-Stuff | ff4ebbbcfdc9fc657f9332c70f657d722b3a8dd8 | 981495859551270e0a1111d03ace5c56e29813f4 | refs/heads/master | 2022-06-13T00:14:22.558546 | 2021-01-26T11:14:32 | 2021-01-26T11:14:32 | 12,273,562 | 2 | 0 | null | 2023-08-29T21:33:40 | 2013-08-21T15:20:38 | Java | UTF-8 | Java | false | false | 664 | java | package com.thegridman.coherence.pof;
import com.tangosol.io.pof.PofReader;
import com.tangosol.io.pof.PofWriter;
import com.tangosol.io.pof.reflect.Codec;
import java.io.IOException;
import java.util.Collection;
import java.util.LinkedList;
/**
* @author Jonathan Knight
*/
public class LinkedListCodec implements Codec
{
@Override
public Object decode(PofReader pofReader, int i) throws IOException
{
pofReader.readCollection(i, new LinkedList());
return null;
}
@Override
public void encode(PofWriter pofWriter, int i, Object o) throws IOException
{
pofWriter.writeCollection(i, (Collection)o);
}
}
| [
"jk@thegridman.com"
] | jk@thegridman.com |
1c8149b7ff3d94c7d510cfd4eb85673334a34ab0 | 208ba847cec642cdf7b77cff26bdc4f30a97e795 | /ej/ei/src/main/java/org.wp.ei/util/ProfilingUtils.java | 975307a82de542738042ec82e0e103ef9aa67ede | [] | no_license | kageiit/perf-android-large | ec7c291de9cde2f813ed6573f706a8593be7ac88 | 2cbd6e74837a14ae87c1c4d1d62ac3c35df9e6f8 | refs/heads/master | 2021-01-12T14:00:19.468063 | 2016-09-27T13:10:42 | 2016-09-27T13:10:42 | 69,685,305 | 0 | 0 | null | 2016-09-30T16:59:49 | 2016-09-30T16:59:48 | null | UTF-8 | Java | false | false | 2,154 | java | package org.wp.ei.util;
import android.os.SystemClock;
import org.wp.ei.util.AppLog.T;
import java.util.ArrayList;
/**
* forked from android.util.TimingLogger to use AppLog instead of Log + new static interface.
*/
public class ProfilingUtils {
private static ProfilingUtils sInstance;
private String mLabel;
private ArrayList<Long> mSplits;
private ArrayList<String> mSplitLabels;
public static void start(String label) {
getInstance().reset(label);
}
public static void split(String splitLabel) {
getInstance().addSplit(splitLabel);
}
public static void dump() {
getInstance().dumpToLog();
}
public static void stop() {
getInstance().reset(null);
}
private static ProfilingUtils getInstance() {
if (sInstance == null) {
sInstance = new ProfilingUtils();
}
return sInstance;
}
public ProfilingUtils() {
reset("init");
}
public void reset(String label) {
mLabel = label;
reset();
}
public void reset() {
if (mSplits == null) {
mSplits = new ArrayList<Long>();
mSplitLabels = new ArrayList<String>();
} else {
mSplits.clear();
mSplitLabels.clear();
}
addSplit(null);
}
public void addSplit(String splitLabel) {
if (mLabel == null) {
return;
}
long now = SystemClock.elapsedRealtime();
mSplits.add(now);
mSplitLabels.add(splitLabel);
}
public void dumpToLog() {
if (mLabel == null) {
return;
}
AppLog.d(T.PROFILING, mLabel + ": begin");
final long first = mSplits.get(0);
long now = first;
for (int i = 1; i < mSplits.size(); i++) {
now = mSplits.get(i);
final String splitLabel = mSplitLabels.get(i);
final long prev = mSplits.get(i - 1);
AppLog.d(T.PROFILING, mLabel + ": " + (now - prev) + " ms, " + splitLabel);
}
AppLog.d(T.PROFILING, mLabel + ": end, " + (now - first) + " ms");
}
}
| [
"cedric.champeau@gmail.com"
] | cedric.champeau@gmail.com |
e98d095b1736fae944c5b53a11c5c27e2c27d2dd | 1fed6ebb14c5c74693ed4ca41e7637d6a55a78de | /gen/com/vivek/projectvivek/R.java | 1038e5d35cfe3d83ebc58dcdd7c0348a520b93bc | [] | no_license | VivekBhat/Project | 9d7487f7560423226ed464844461ab35d9f6fbfa | a026b299989d812be076bc02ae0bda2b23c73cfe | refs/heads/master | 2021-01-23T07:10:38.233530 | 2014-07-23T19:54:18 | 2014-07-23T19:54:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 165,558 | 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.vivek.projectvivek;
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=0x7f01000b;
/** 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=0x7f01000c;
/** 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=0x7f01000a;
/** 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=0x7f010008;
/** 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=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 actionBarTabBarStyle=0x7f010004;
/** 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=0x7f010003;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></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=0x7f010005;
/** 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=0x7f010009;
/** 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=0x7f010012;
/** 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=0x7f010043;
/** 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=0x7f01004a;
/** 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=0x7f01000d;
/** 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=0x7f01000e;
/** 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=0x7f010038;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeCloseButtonStyle=0x7f010037;
/** 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=0x7f01003a;
/** 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=0x7f01003c;
/** 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=0x7f01003b;
/** 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=0x7f010040;
/** 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=0x7f01003d;
/** 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=0x7f010042;
/** 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=0x7f01003e;
/** 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=0x7f01003f;
/** 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=0x7f010039;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeStyle=0x7f010036;
/** 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=0x7f010041;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionOverflowButtonStyle=0x7f010006;
/** 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=0x7f01004c;
/** 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=0x7f01004b;
/** 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=0x7f010068;
/** 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=0x7f01002b;
/** 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=0x7f01002d;
/** 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=0x7f01002c;
/** 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=0x7f010014;
/** 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=0x7f010013;
/** 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=0x7f01002e;
/** 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=0x7f010050;
/** 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=0x7f010024;
/** 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=0x7f01002a;
/** 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=0x7f010017;
/** 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=0x7f010052;
/** 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=0x7f010016;
/** 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=0x7f01001d;
/** 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=0x7f010044;
/** 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=0x7f010067;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
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=0x7f010022;
/** 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=0x7f01000f;
/** 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=0x7f01002f;
/** 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=0x7f010028;
/** 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=0x7f010056;
/** 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=0x7f010031;
/** 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=0x7f010066;
/** 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=0x7f010055;
/** 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=0x7f010033;
/** 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=0x7f010048;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int listPopupWindowStyle=0x7f01001e;
/** 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=0x7f010018;
/** 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=0x7f01001a;
/** 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=0x7f010019;
/** 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=0x7f01001b;
/** 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=0x7f01001c;
/** 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=0x7f010029;
/** 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=0x7f010023;
/** 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=0x7f010035;
/** 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=0x7f010034;
/** 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=0x7f010047;
/** 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=0x7f010046;
/** 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=0x7f010045;
/** 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=0x7f01004f;
/** 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=0x7f010032;
/** 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=0x7f010030;
/** 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=0x7f01004d;
/** 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=0x7f010057;
/** 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=0x7f010058;
/** 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=0x7f010061;
/** 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=0x7f010065;
/** 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=0x7f010059;
/** 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=0x7f01005d;
/** 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=0x7f01005e;
/** 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=0x7f01005a;
/** 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=0x7f01005b;
/** 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=0x7f01005f;
/** 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=0x7f010060;
/** 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=0x7f01005c;
/** 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=0x7f010015;
/** 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=0x7f010049;
/** 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=0x7f010051;
/** 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=0x7f010054;
/** 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=0x7f01004e;
/** 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=0x7f010053;
/** 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=0x7f010025;
/** 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=0x7f010027;
/** 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=0x7f010069;
/** 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=0x7f010010;
/** 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=0x7f01001f;
/** 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=0x7f010020;
/** 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=0x7f010063;
/** 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=0x7f010062;
/** 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=0x7f010011;
/** 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=0x7f010064;
/** <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=0x7f010021;
/** 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=0x7f010026;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int 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;
/** <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=0x7f070000;
public static final int abc_action_bar_expanded_action_views_exclusive=0x7f070001;
/** 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=0x7f070005;
/** 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=0x7f070004;
public static final int abc_config_showMenuShortcutsWhenKeyboardPresent=0x7f070003;
public static final int abc_split_action_bar_is_narrow=0x7f070002;
}
public static final class color {
public static final int abc_search_url_text_holo=0x7f080003;
public static final int abc_search_url_text_normal=0x7f080000;
public static final int abc_search_url_text_pressed=0x7f080002;
public static final int abc_search_url_text_selected=0x7f080001;
}
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=0x7f090002;
/** 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=0x7f090003;
/** Size of the indeterminate Progress Bar
Size of the indeterminate Progress Bar
*/
public static final int abc_action_bar_progress_bar_size=0x7f09000a;
/** Maximum height for a stacked tab bar as part of an action bar
*/
public static final int abc_action_bar_stacked_max_height=0x7f090009;
/** 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=0x7f090001;
/** 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=0x7f090007;
/** 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=0x7f090005;
/** 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=0x7f090006;
/** 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=0x7f090004;
/** 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=0x7f090008;
/** 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=0x7f090000;
/** Width of the icon in a dropdown list
*/
public static final int abc_dropdownitem_icon_width=0x7f090010;
/** Text padding for dropdown items
*/
public static final int abc_dropdownitem_text_padding_left=0x7f09000e;
public static final int abc_dropdownitem_text_padding_right=0x7f09000f;
public static final int abc_panel_menu_list_width=0x7f09000b;
/** Preferred width of the search view.
*/
public static final int abc_search_view_preferred_width=0x7f09000d;
/** 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=0x7f09000c;
/** 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=0x7f090011;
public static final int activity_vertical_margin=0x7f090012;
}
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 int template=0x7f020058;
}
public static final class id {
public static final int aboutus=0x7f060048;
public static final int action_bar=0x7f06001c;
public static final int action_bar_activity_content=0x7f060015;
public static final int action_bar_container=0x7f06001b;
public static final int action_bar_overlay_layout=0x7f06001f;
public static final int action_bar_root=0x7f06001a;
public static final int action_bar_subtitle=0x7f060023;
public static final int action_bar_title=0x7f060022;
public static final int action_context_bar=0x7f06001d;
public static final int action_menu_divider=0x7f060016;
public static final int action_menu_presenter=0x7f060017;
public static final int action_mode_close_button=0x7f060024;
public static final int action_settings=0x7f06004b;
public static final int activity_chooser_view_content=0x7f060025;
public static final int always=0x7f06000b;
public static final int analogClock1=0x7f060046;
public static final int bSentEmail=0x7f060045;
public static final int beginning=0x7f060011;
public static final int button1=0x7f06003d;
public static final int button2=0x7f06003e;
public static final int checkbox=0x7f06002d;
public static final int collapseActionView=0x7f06000d;
public static final int default_activity_button=0x7f060028;
public static final int dialog=0x7f06000e;
public static final int disableHome=0x7f060008;
public static final int dropdown=0x7f06000f;
public static final int editText1=0x7f060047;
public static final int edit_query=0x7f060030;
public static final int end=0x7f060013;
public static final int etAction=0x7f060043;
public static final int etEmails=0x7f06003f;
public static final int etIntro=0x7f060040;
public static final int etName=0x7f060041;
public static final int etOutro=0x7f060044;
public static final int etThings=0x7f060042;
public static final int exit=0x7f06004a;
public static final int expand_activities_button=0x7f060026;
public static final int expanded_menu=0x7f06002c;
public static final int home=0x7f060014;
public static final int homeAsUp=0x7f060005;
public static final int icon=0x7f06002a;
public static final int ifRoom=0x7f06000a;
public static final int image=0x7f060027;
public static final int listMode=0x7f060001;
public static final int list_item=0x7f060029;
public static final int middle=0x7f060012;
public static final int never=0x7f060009;
public static final int none=0x7f060010;
public static final int normal=0x7f060000;
public static final int preferences=0x7f060049;
public static final int progress_circular=0x7f060018;
public static final int progress_horizontal=0x7f060019;
public static final int radio=0x7f06002f;
public static final int search_badge=0x7f060032;
public static final int search_bar=0x7f060031;
public static final int search_button=0x7f060033;
public static final int search_close_btn=0x7f060038;
public static final int search_edit_frame=0x7f060034;
public static final int search_go_btn=0x7f06003a;
public static final int search_mag_icon=0x7f060035;
public static final int search_plate=0x7f060036;
public static final int search_src_text=0x7f060037;
public static final int search_voice_btn=0x7f06003b;
public static final int shortcut=0x7f06002e;
public static final int showCustom=0x7f060007;
public static final int showHome=0x7f060004;
public static final int showTitle=0x7f060006;
public static final int split_action_bar=0x7f06001e;
public static final int submit_area=0x7f060039;
public static final int tabMode=0x7f060002;
public static final int textView1=0x7f06003c;
public static final int title=0x7f06002b;
public static final int top_action_bar=0x7f060020;
public static final int up=0x7f060021;
public static final int useLogo=0x7f060003;
public static final int withText=0x7f06000c;
}
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=0x7f0a0000;
}
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 add=0x7f030017;
public static final int email=0x7f030018;
public static final int fragment_main=0x7f030019;
public static final int splash=0x7f03001a;
public static final int support_simple_spinner_dropdown_item=0x7f03001b;
public static final int textplay=0x7f03001c;
}
public static final class menu {
public static final int cool_menu=0x7f0d0000;
public static final int main=0x7f0d0001;
}
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=0x7f0b0001;
/** Content description for the action bar "up" affordance. [CHAR LIMIT=NONE]
*/
public static final int abc_action_bar_up_description=0x7f0b0002;
/** Content description for the action menu overflow button. [CHAR LIMIT=NONE]
*/
public static final int abc_action_menu_overflow_description=0x7f0b0003;
/** Label for the "Done" button on the far left of action mode toolbars.
*/
public static final int abc_action_mode_done=0x7f0b0000;
/** 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=0x7f0b000a;
/** 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=0x7f0b0009;
/** SearchView accessibility description for clear button [CHAR LIMIT=NONE]
*/
public static final int abc_searchview_description_clear=0x7f0b0006;
/** SearchView accessibility description for search text field [CHAR LIMIT=NONE]
*/
public static final int abc_searchview_description_query=0x7f0b0005;
/** SearchView accessibility description for search button [CHAR LIMIT=NONE]
*/
public static final int abc_searchview_description_search=0x7f0b0004;
/** SearchView accessibility description for submit button [CHAR LIMIT=NONE]
*/
public static final int abc_searchview_description_submit=0x7f0b0007;
/** SearchView accessibility description for voice button [CHAR LIMIT=NONE]
*/
public static final int abc_searchview_description_voice=0x7f0b0008;
/** Description of the choose target button in a ShareActionProvider (share UI). [CHAR LIMIT=NONE]
*/
public static final int abc_shareactionprovider_share_with=0x7f0b000c;
/** 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=0x7f0b000b;
public static final int action_settings=0x7f0b000f;
public static final int app_name=0x7f0b000d;
public static final int hello_world=0x7f0b000e;
}
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=0x7f0c0083;
/** Application theme.
All customizations that are NOT specific to a particular API-level can go here.
*/
public static final int AppTheme=0x7f0c0084;
/** Mimic text appearance in select_dialog_item.xml
*/
public static final int TextAppearance_AppCompat_Base_CompactMenu_Dialog=0x7f0c0063;
public static final int TextAppearance_AppCompat_Base_SearchResult=0x7f0c006d;
public static final int TextAppearance_AppCompat_Base_SearchResult_Subtitle=0x7f0c006f;
/** Search View result styles
*/
public static final int TextAppearance_AppCompat_Base_SearchResult_Title=0x7f0c006e;
public static final int TextAppearance_AppCompat_Base_Widget_PopupMenu_Large=0x7f0c0069;
public static final int TextAppearance_AppCompat_Base_Widget_PopupMenu_Small=0x7f0c006a;
public static final int TextAppearance_AppCompat_Light_Base_SearchResult=0x7f0c0070;
public static final int TextAppearance_AppCompat_Light_Base_SearchResult_Subtitle=0x7f0c0072;
/**
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=0x7f0c0071;
public static final int TextAppearance_AppCompat_Light_Base_Widget_PopupMenu_Large=0x7f0c006b;
public static final int TextAppearance_AppCompat_Light_Base_Widget_PopupMenu_Small=0x7f0c006c;
public static final int TextAppearance_AppCompat_Light_SearchResult_Subtitle=0x7f0c0035;
public static final int TextAppearance_AppCompat_Light_SearchResult_Title=0x7f0c0034;
public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large=0x7f0c0030;
public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small=0x7f0c0031;
public static final int TextAppearance_AppCompat_SearchResult_Subtitle=0x7f0c0033;
public static final int TextAppearance_AppCompat_SearchResult_Title=0x7f0c0032;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Menu=0x7f0c001a;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle=0x7f0c0006;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse=0x7f0c0008;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Title=0x7f0c0005;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse=0x7f0c0007;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle=0x7f0c001e;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse=0x7f0c0020;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Title=0x7f0c001d;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse=0x7f0c001f;
public static final int TextAppearance_AppCompat_Widget_Base_ActionBar_Menu=0x7f0c0054;
public static final int TextAppearance_AppCompat_Widget_Base_ActionBar_Subtitle=0x7f0c0056;
public static final int TextAppearance_AppCompat_Widget_Base_ActionBar_Subtitle_Inverse=0x7f0c0058;
public static final int TextAppearance_AppCompat_Widget_Base_ActionBar_Title=0x7f0c0055;
public static final int TextAppearance_AppCompat_Widget_Base_ActionBar_Title_Inverse=0x7f0c0057;
public static final int TextAppearance_AppCompat_Widget_Base_ActionMode_Subtitle=0x7f0c0051;
public static final int TextAppearance_AppCompat_Widget_Base_ActionMode_Subtitle_Inverse=0x7f0c0053;
public static final int TextAppearance_AppCompat_Widget_Base_ActionMode_Title=0x7f0c0050;
public static final int TextAppearance_AppCompat_Widget_Base_ActionMode_Title_Inverse=0x7f0c0052;
public static final int TextAppearance_AppCompat_Widget_Base_DropDownItem=0x7f0c0061;
public static final int TextAppearance_AppCompat_Widget_DropDownItem=0x7f0c0021;
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Large=0x7f0c002e;
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Small=0x7f0c002f;
public static final int TextAppearance_Widget_AppCompat_Base_ExpandedMenu_Item=0x7f0c0062;
public static final int TextAppearance_Widget_AppCompat_ExpandedMenu_Item=0x7f0c0028;
/** 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=0x7f0c0077;
/** Menu/item attributes
*/
public static final int Theme_AppCompat_Base_CompactMenu=0x7f0c0081;
public static final int Theme_AppCompat_Base_CompactMenu_Dialog=0x7f0c0082;
/** Menu/item attributes
*/
public static final int Theme_AppCompat_CompactMenu=0x7f0c007a;
public static final int Theme_AppCompat_CompactMenu_Dialog=0x7f0c007b;
/** Platform-independent theme providing an action bar in a light-themed activity.
*/
public static final int Theme_AppCompat_Light=0x7f0c0078;
/** Platform-independent theme providing an action bar in a dark-themed activity.
*/
public static final int Theme_AppCompat_Light_DarkActionBar=0x7f0c0079;
/** Base platform-dependent theme
*/
public static final int Theme_Base=0x7f0c007c;
/** 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=0x7f0c007e;
/** 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=0x7f0c007f;
/** 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=0x7f0c0080;
/** Base platform-dependent theme providing a light-themed activity.
*/
public static final int Theme_Base_Light=0x7f0c007d;
/** 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=0x7f0c0000;
public static final int Widget_AppCompat_ActionBar_Solid=0x7f0c0002;
public static final int Widget_AppCompat_ActionBar_TabBar=0x7f0c0011;
public static final int Widget_AppCompat_ActionBar_TabText=0x7f0c0017;
public static final int Widget_AppCompat_ActionBar_TabView=0x7f0c0014;
public static final int Widget_AppCompat_ActionButton=0x7f0c000b;
public static final int Widget_AppCompat_ActionButton_CloseMode=0x7f0c000d;
public static final int Widget_AppCompat_ActionButton_Overflow=0x7f0c000f;
public static final int Widget_AppCompat_ActionMode=0x7f0c001b;
public static final int Widget_AppCompat_ActivityChooserView=0x7f0c0038;
public static final int Widget_AppCompat_AutoCompleteTextView=0x7f0c0036;
public static final int Widget_AppCompat_Base_ActionBar=0x7f0c003a;
public static final int Widget_AppCompat_Base_ActionBar_Solid=0x7f0c003c;
public static final int Widget_AppCompat_Base_ActionBar_TabBar=0x7f0c0045;
public static final int Widget_AppCompat_Base_ActionBar_TabText=0x7f0c004b;
public static final int Widget_AppCompat_Base_ActionBar_TabView=0x7f0c0048;
/** Action Button Styles
*/
public static final int Widget_AppCompat_Base_ActionButton=0x7f0c003f;
public static final int Widget_AppCompat_Base_ActionButton_CloseMode=0x7f0c0041;
public static final int Widget_AppCompat_Base_ActionButton_Overflow=0x7f0c0043;
public static final int Widget_AppCompat_Base_ActionMode=0x7f0c004e;
public static final int Widget_AppCompat_Base_ActivityChooserView=0x7f0c0075;
/** AutoCompleteTextView styles (for SearchView)
*/
public static final int Widget_AppCompat_Base_AutoCompleteTextView=0x7f0c0073;
public static final int Widget_AppCompat_Base_DropDownItem_Spinner=0x7f0c005d;
/** Popup Menu
*/
public static final int Widget_AppCompat_Base_ListPopupWindow=0x7f0c0065;
/** Spinner Widgets
*/
public static final int Widget_AppCompat_Base_ListView_DropDown=0x7f0c005f;
public static final int Widget_AppCompat_Base_ListView_Menu=0x7f0c0064;
public static final int Widget_AppCompat_Base_PopupMenu=0x7f0c0067;
public static final int Widget_AppCompat_Base_ProgressBar=0x7f0c005a;
/** Progress Bar
*/
public static final int Widget_AppCompat_Base_ProgressBar_Horizontal=0x7f0c0059;
/** Action Bar Spinner Widgets
*/
public static final int Widget_AppCompat_Base_Spinner=0x7f0c005b;
public static final int Widget_AppCompat_DropDownItem_Spinner=0x7f0c0024;
public static final int Widget_AppCompat_Light_ActionBar=0x7f0c0001;
public static final int Widget_AppCompat_Light_ActionBar_Solid=0x7f0c0003;
public static final int Widget_AppCompat_Light_ActionBar_Solid_Inverse=0x7f0c0004;
public static final int Widget_AppCompat_Light_ActionBar_TabBar=0x7f0c0012;
public static final int Widget_AppCompat_Light_ActionBar_TabBar_Inverse=0x7f0c0013;
public static final int Widget_AppCompat_Light_ActionBar_TabText=0x7f0c0018;
public static final int Widget_AppCompat_Light_ActionBar_TabText_Inverse=0x7f0c0019;
public static final int Widget_AppCompat_Light_ActionBar_TabView=0x7f0c0015;
public static final int Widget_AppCompat_Light_ActionBar_TabView_Inverse=0x7f0c0016;
public static final int Widget_AppCompat_Light_ActionButton=0x7f0c000c;
public static final int Widget_AppCompat_Light_ActionButton_CloseMode=0x7f0c000e;
public static final int Widget_AppCompat_Light_ActionButton_Overflow=0x7f0c0010;
public static final int Widget_AppCompat_Light_ActionMode_Inverse=0x7f0c001c;
public static final int Widget_AppCompat_Light_ActivityChooserView=0x7f0c0039;
public static final int Widget_AppCompat_Light_AutoCompleteTextView=0x7f0c0037;
public static final int Widget_AppCompat_Light_Base_ActionBar=0x7f0c003b;
public static final int Widget_AppCompat_Light_Base_ActionBar_Solid=0x7f0c003d;
public static final int Widget_AppCompat_Light_Base_ActionBar_Solid_Inverse=0x7f0c003e;
public static final int Widget_AppCompat_Light_Base_ActionBar_TabBar=0x7f0c0046;
public static final int Widget_AppCompat_Light_Base_ActionBar_TabBar_Inverse=0x7f0c0047;
public static final int Widget_AppCompat_Light_Base_ActionBar_TabText=0x7f0c004c;
public static final int Widget_AppCompat_Light_Base_ActionBar_TabText_Inverse=0x7f0c004d;
public static final int Widget_AppCompat_Light_Base_ActionBar_TabView=0x7f0c0049;
public static final int Widget_AppCompat_Light_Base_ActionBar_TabView_Inverse=0x7f0c004a;
public static final int Widget_AppCompat_Light_Base_ActionButton=0x7f0c0040;
public static final int Widget_AppCompat_Light_Base_ActionButton_CloseMode=0x7f0c0042;
public static final int Widget_AppCompat_Light_Base_ActionButton_Overflow=0x7f0c0044;
public static final int Widget_AppCompat_Light_Base_ActionMode_Inverse=0x7f0c004f;
public static final int Widget_AppCompat_Light_Base_ActivityChooserView=0x7f0c0076;
public static final int Widget_AppCompat_Light_Base_AutoCompleteTextView=0x7f0c0074;
public static final int Widget_AppCompat_Light_Base_DropDownItem_Spinner=0x7f0c005e;
public static final int Widget_AppCompat_Light_Base_ListPopupWindow=0x7f0c0066;
public static final int Widget_AppCompat_Light_Base_ListView_DropDown=0x7f0c0060;
public static final int Widget_AppCompat_Light_Base_PopupMenu=0x7f0c0068;
public static final int Widget_AppCompat_Light_Base_Spinner=0x7f0c005c;
public static final int Widget_AppCompat_Light_DropDownItem_Spinner=0x7f0c0025;
public static final int Widget_AppCompat_Light_ListPopupWindow=0x7f0c002a;
public static final int Widget_AppCompat_Light_ListView_DropDown=0x7f0c0027;
public static final int Widget_AppCompat_Light_PopupMenu=0x7f0c002c;
public static final int Widget_AppCompat_Light_Spinner_DropDown_ActionBar=0x7f0c0023;
public static final int Widget_AppCompat_ListPopupWindow=0x7f0c0029;
public static final int Widget_AppCompat_ListView_DropDown=0x7f0c0026;
public static final int Widget_AppCompat_ListView_Menu=0x7f0c002d;
public static final int Widget_AppCompat_PopupMenu=0x7f0c002b;
public static final int Widget_AppCompat_ProgressBar=0x7f0c000a;
public static final int Widget_AppCompat_ProgressBar_Horizontal=0x7f0c0009;
public static final int Widget_AppCompat_Spinner_DropDown_ActionBar=0x7f0c0022;
}
public static final class xml {
public static final int prefs=0x7f050000;
}
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.vivek.projectvivek:background}</code></td><td> Specifies a background drawable for the action bar.</td></tr>
<tr><td><code>{@link #ActionBar_backgroundSplit com.vivek.projectvivek: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.vivek.projectvivek: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.vivek.projectvivek:customNavigationLayout}</code></td><td> Specifies a layout for custom navigation.</td></tr>
<tr><td><code>{@link #ActionBar_displayOptions com.vivek.projectvivek:displayOptions}</code></td><td> Options affecting how the action bar is displayed.</td></tr>
<tr><td><code>{@link #ActionBar_divider com.vivek.projectvivek:divider}</code></td><td> Specifies the drawable used for item dividers.</td></tr>
<tr><td><code>{@link #ActionBar_height com.vivek.projectvivek:height}</code></td><td> Specifies a fixed height.</td></tr>
<tr><td><code>{@link #ActionBar_homeLayout com.vivek.projectvivek: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.vivek.projectvivek:icon}</code></td><td> Specifies the drawable used for the application icon.</td></tr>
<tr><td><code>{@link #ActionBar_indeterminateProgressStyle com.vivek.projectvivek:indeterminateProgressStyle}</code></td><td> Specifies a style resource to use for an indeterminate progress spinner.</td></tr>
<tr><td><code>{@link #ActionBar_itemPadding com.vivek.projectvivek: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.vivek.projectvivek:logo}</code></td><td> Specifies the drawable used for the application logo.</td></tr>
<tr><td><code>{@link #ActionBar_navigationMode com.vivek.projectvivek:navigationMode}</code></td><td> The type of navigation to use.</td></tr>
<tr><td><code>{@link #ActionBar_progressBarPadding com.vivek.projectvivek: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.vivek.projectvivek:progressBarStyle}</code></td><td> Specifies a style resource to use for an embedded progress bar.</td></tr>
<tr><td><code>{@link #ActionBar_subtitle com.vivek.projectvivek:subtitle}</code></td><td> Specifies subtitle text used for navigationMode="normal" </td></tr>
<tr><td><code>{@link #ActionBar_subtitleTextStyle com.vivek.projectvivek:subtitleTextStyle}</code></td><td> Specifies a style to use for subtitle text.</td></tr>
<tr><td><code>{@link #ActionBar_title com.vivek.projectvivek:title}</code></td><td> Specifies title text used for navigationMode="normal" </td></tr>
<tr><td><code>{@link #ActionBar_titleTextStyle com.vivek.projectvivek: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 = {
0x7f010021, 0x7f010022, 0x7f010023, 0x7f010024,
0x7f010025, 0x7f010026, 0x7f010027, 0x7f010028,
0x7f010029, 0x7f01002a, 0x7f01002b, 0x7f01002c,
0x7f01002d, 0x7f01002e, 0x7f01002f, 0x7f010030,
0x7f010031, 0x7f010032, 0x7f010033
};
/**
<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.vivek.projectvivek: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.vivek.projectvivek: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.vivek.projectvivek: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.vivek.projectvivek: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.vivek.projectvivek: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.vivek.projectvivek: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.vivek.projectvivek: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.vivek.projectvivek: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.vivek.projectvivek: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.vivek.projectvivek: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.vivek.projectvivek: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.vivek.projectvivek: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.vivek.projectvivek: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.vivek.projectvivek: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.vivek.projectvivek: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.vivek.projectvivek: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.vivek.projectvivek: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.vivek.projectvivek: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.vivek.projectvivek: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.vivek.projectvivek:windowActionBar}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBarWindow_windowActionBarOverlay com.vivek.projectvivek:windowActionBarOverlay}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBarWindow_windowSplitActionBar com.vivek.projectvivek:windowSplitActionBar}</code></td><td></td></tr>
</table>
@see #ActionBarWindow_windowActionBar
@see #ActionBarWindow_windowActionBarOverlay
@see #ActionBarWindow_windowSplitActionBar
*/
public static final int[] ActionBarWindow = {
0x7f010000, 0x7f010001, 0x7f010002
};
/**
<p>This symbol is the offset where the {@link com.vivek.projectvivek.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.vivek.projectvivek:windowActionBar
*/
public static final int ActionBarWindow_windowActionBar = 0;
/**
<p>This symbol is the offset where the {@link com.vivek.projectvivek.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.vivek.projectvivek:windowActionBarOverlay
*/
public static final int ActionBarWindow_windowActionBarOverlay = 1;
/**
<p>This symbol is the offset where the {@link com.vivek.projectvivek.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.vivek.projectvivek: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.vivek.projectvivek:background}</code></td><td> Specifies a background for the action mode bar.</td></tr>
<tr><td><code>{@link #ActionMode_backgroundSplit com.vivek.projectvivek:backgroundSplit}</code></td><td> Specifies a background for the split action mode bar.</td></tr>
<tr><td><code>{@link #ActionMode_height com.vivek.projectvivek:height}</code></td><td> Specifies a fixed height for the action mode bar.</td></tr>
<tr><td><code>{@link #ActionMode_subtitleTextStyle com.vivek.projectvivek:subtitleTextStyle}</code></td><td> Specifies a style to use for subtitle text.</td></tr>
<tr><td><code>{@link #ActionMode_titleTextStyle com.vivek.projectvivek: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 = {
0x7f010022, 0x7f010026, 0x7f010027, 0x7f01002b,
0x7f01002d
};
/**
<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.vivek.projectvivek: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.vivek.projectvivek: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.vivek.projectvivek: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.vivek.projectvivek: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.vivek.projectvivek: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.vivek.projectvivek: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.vivek.projectvivek: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 = {
0x7f010066, 0x7f010067
};
/**
<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.vivek.projectvivek: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.vivek.projectvivek: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.vivek.projectvivek:textAllCaps}</code></td><td> Present the text in ALL CAPS.</td></tr>
</table>
@see #CompatTextView_textAllCaps
*/
public static final int[] CompatTextView = {
0x7f010069
};
/**
<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.vivek.projectvivek: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.vivek.projectvivek:divider}</code></td><td> Drawable to use as a vertical divider between buttons.</td></tr>
<tr><td><code>{@link #LinearLayoutICS_dividerPadding com.vivek.projectvivek:dividerPadding}</code></td><td> Size of padding on either end of a divider.</td></tr>
<tr><td><code>{@link #LinearLayoutICS_showDividers com.vivek.projectvivek: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 = {
0x7f01002a, 0x7f010051, 0x7f010052
};
/**
<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.vivek.projectvivek: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.vivek.projectvivek: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.vivek.projectvivek: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.vivek.projectvivek:actionLayout}</code></td><td> An optional layout to be used as an action view.</td></tr>
<tr><td><code>{@link #MenuItem_actionProviderClass com.vivek.projectvivek: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.vivek.projectvivek: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.vivek.projectvivek: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, 0x7f010049, 0x7f01004a, 0x7f01004b,
0x7f01004c
};
/**
<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.vivek.projectvivek: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.vivek.projectvivek: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.vivek.projectvivek: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.vivek.projectvivek: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, 0x01010435
};
/**
<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.vivek.projectvivek:iconifiedByDefault}</code></td><td> The default state of the SearchView.</td></tr>
<tr><td><code>{@link #SearchView_queryHint com.vivek.projectvivek: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, 0x7f010056,
0x7f010057
};
/**
<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.vivek.projectvivek: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.vivek.projectvivek: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.vivek.projectvivek: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.vivek.projectvivek: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.vivek.projectvivek:prompt}</code></td><td> The prompt to display when the spinner's dialog is shown.</td></tr>
<tr><td><code>{@link #Spinner_spinnerMode com.vivek.projectvivek: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, 0x7f01004d, 0x7f01004e,
0x7f01004f, 0x7f010050
};
/**
<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.vivek.projectvivek: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.vivek.projectvivek: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.vivek.projectvivek: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.vivek.projectvivek: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.vivek.projectvivek:actionDropDownStyle}</code></td><td> Default ActionBar dropdown style.</td></tr>
<tr><td><code>{@link #Theme_dropdownListPreferredItemHeight com.vivek.projectvivek:dropdownListPreferredItemHeight}</code></td><td> The preferred item height for dropdown lists.</td></tr>
<tr><td><code>{@link #Theme_listChoiceBackgroundIndicator com.vivek.projectvivek:listChoiceBackgroundIndicator}</code></td><td> Drawable used as a background for selected list items.</td></tr>
<tr><td><code>{@link #Theme_panelMenuListTheme com.vivek.projectvivek:panelMenuListTheme}</code></td><td> Default Panel Menu style.</td></tr>
<tr><td><code>{@link #Theme_panelMenuListWidth com.vivek.projectvivek:panelMenuListWidth}</code></td><td> Default Panel Menu width.</td></tr>
<tr><td><code>{@link #Theme_popupMenuStyle com.vivek.projectvivek: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 = {
0x7f010043, 0x7f010044, 0x7f010045, 0x7f010046,
0x7f010047, 0x7f010048
};
/**
<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.vivek.projectvivek: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.vivek.projectvivek: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.vivek.projectvivek: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.vivek.projectvivek: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.vivek.projectvivek: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.vivek.projectvivek: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.vivek.projectvivek: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.vivek.projectvivek: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, 0x7f010034, 0x7f010035
};
/**
<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.vivek.projectvivek: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.vivek.projectvivek:paddingStart
*/
public static final int View_paddingStart = 1;
};
}
| [
"vivekbhat@live.com"
] | vivekbhat@live.com |
9d668b30ec949857e3287ae3eaf0ac8fdae0da98 | 462dda3225caf5ecb8b8514e6f4d16423d791850 | /src/test/java/app/game/util/api/UserTestClient.java | dd5473e5172be5cd9261725032338cec0062987d | [] | no_license | toztemel/battleship | b78f1da9c46c510e3f1cdd98433a269dab0c5c90 | 2a8b0493538f4a26526bb69eb4ce72ea4c16dbe3 | refs/heads/master | 2020-03-23T03:15:26.180282 | 2018-07-19T19:07:27 | 2018-07-19T19:07:27 | 141,019,840 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,105 | java | package app.game.util.api;
import app.game.api.dto.game.NewGame;
import app.game.api.dto.status.StatusResponse;
import app.game.api.protocol.client.rest.RestClient;
import javax.ws.rs.core.Response;
public class UserTestClient {
private static final String USER_API = "/user/game/";
private static final String NEW_GAME = "/protocol/game/";
private final RestClient client;
public UserTestClient(String uri) {
client = new RestClient(uri);
}
public StatusResponse queryGameStatus(NewGame game) {
Response response = client.get(USER_API.concat(game.getGameId()), game.getGameId());
if (!RestClient.isSuccessful(response)) {
// TODO process error
}
return response.readEntity(StatusResponse.class);
}
public NewGame challangeOpponent(NewGame newGameRequest) {
Response response = client.post(NEW_GAME, newGameRequest, newGameRequest.getGameId());
if (!RestClient.isCreated(response)) {
// TODO process game start error
}
return response.readEntity(NewGame.class);
}
}
| [
"toztemel@gmail.com"
] | toztemel@gmail.com |
6455c1ba7187adb183e3ca2182b505e22b7934b0 | 6466ff31e5eaba13e983fea1b38d4bae850ed289 | /1.JavaSyntax/src/com/javarush/task/task08/task0815/Solution.java | c23e96cd0e897a44fa224334dff0dccce88900b6 | [] | no_license | smjavac/JavaRushTasks | 3cf6438a408a624d6d872dad1e96d3c61791482f | 3ec95bc0be5b3e57a000929932dce971ec03e268 | refs/heads/master | 2020-03-28T16:03:04.692016 | 2019-11-18T06:13:36 | 2019-11-18T06:13:36 | 148,653,734 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 1,816 | java | package com.javarush.task.task08.task0815;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Set;
/*
Перепись населения
*/
public class Solution {
public static HashMap<String, String> createMap() {
HashMap<String, String> map = new HashMap<String, String>();
map.put("Юсупов", "Саид"); //напишите тут ваш код
map.put("Урусханов", "Заур"); //напишите тут ваш код
map.put("Шаипов", "Заур"); //напишите тут ваш код
map.put("Исупов", "Джабраил"); //напишите тут ваш код
map.put("Ясупов", "Сулиман"); //напишите тут ваш код
map.put("Эсупов", "Ибрахим"); //напишите тут ваш код
map.put("Мадагов", "Алихан"); //напишите тут ваш код
map.put("Оморов", "Аднан"); //напишите тут ваш код
map.put("Арусханов", "Джабраил"); //напишите тут ваш код
map.put("Дамбаев", "Саид");
return map;//напишите тут ваш код
}
public static int getCountTheSameFirstName(HashMap<String, String> map, String name) {
//напишите тут ваш код
int a = 0;
for (String s: map.values()){
if (s.equals(name)) a++;
}
return a;
}
public static int getCountTheSameLastName(HashMap<String, String> map, String lastName) {
//напишите тут ваш код
int b = 0;
for (String f: map.keySet()){
if (f.equals(lastName)) b++;
}
return b;
}
public static void main(String[] args) {
}
}
| [
"sm.yusupov@mail.ru"
] | sm.yusupov@mail.ru |
0bdeef2bff6c6c261848de85e7175e5d10fba3c5 | f1429ff2631b7d5a95a0ca95730e642bdff467ce | /t01/src/cn/wang/d05/t02/Fx_test.java | 623446b59fe6aace327afd82f57ffe76368774dd | [] | no_license | Wang-QP/javaSE | 85242aabd0bd2e446027f26e454fd6f27a9414ee | df94ae02e9b1bf7ac6ee58bef650a3ca17007d4e | refs/heads/master | 2020-07-18T10:17:05.064514 | 2019-09-04T04:06:23 | 2019-09-04T04:06:23 | 206,227,884 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 763 | java | package cn.wang.d05.t02;
import java.util.ArrayList;
import java.util.Iterator;
public class Fx_test {
public static void main(String[] args) {
FxImpl1 fx = new FxImpl1();
fx.func("第一种方法");
FxImpl2<String> fx2 = new FxImpl2<>();
fx2.func("第二种方法");
f();
}
private static void f() {
ArrayList<String> s = new ArrayList<>();
s.add("aaa");
s.add("bbb");
ArrayList<Integer> i = new ArrayList<>();
i.add(1);
i.add(2);
print(i);
print(s);
}
private static void print(ArrayList<?> list) {
for (Iterator<?> it = list.iterator();it.hasNext()==true;) {
System.out.println(it.next());
}
}
}
| [
"649537825@qq.com"
] | 649537825@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.