blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 4 410 | content_id stringlengths 40 40 | detected_licenses listlengths 0 51 | license_type stringclasses 2 values | repo_name stringlengths 5 132 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 80 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 5.85k 689M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22 values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 131 values | src_encoding stringclasses 34 values | language stringclasses 1 value | is_vendor bool 1 class | is_generated bool 2 classes | length_bytes int64 3 9.45M | extension stringclasses 32 values | content stringlengths 3 9.45M | authors listlengths 1 1 | author_id stringlengths 0 313 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
91dabe81058e0f8b274d1cb73ca1c716cd8b6755 | e906d5d0cd2438ea3e26bc43a899bac8f2e87844 | /app/build/generated/source/buildConfig/debug/android/androidVNC/BuildConfig.java | fcc56ff895f5fef718828e5e76e373a0cb05f7d6 | [] | no_license | ksandom/androidVNC | 0da40a2129272e4a10937e2c350710c5a46efae2 | 18f97e807a43a7071163e2274cbdf0d6d12a63b6 | refs/heads/master | 2020-04-12T00:50:33.789477 | 2016-01-04T18:26:45 | 2016-01-04T18:26:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 446 | java | /**
* Automatically generated file. DO NOT MODIFY
*/
package android.androidVNC;
public final class BuildConfig {
public static final boolean DEBUG = Boolean.parseBoolean("true");
public static final String APPLICATION_ID = "android.androidVNC";
public static final String BUILD_TYPE = "debug";
public static final String FLAVOR = "";
public static final int VERSION_CODE = 13;
public static final String VERSION_NAME = "0.5.0";
}
| [
"binkybear@nethunter.com"
] | binkybear@nethunter.com |
5d9ec30543cafeb8e58e09ac14c3e005c252ffba | 83ec53285d2f805876665d70cd48cdaddb95047c | /aws-java-sdk-cloudhsm/src/main/java/com/amazonaws/services/cloudhsm/model/transform/CreateHsmRequestMarshaller.java | 04c46e865b08251b544b450f51d9d87cb0445ad2 | [
"Apache-2.0",
"JSON"
] | permissive | sarvex/aws-sdk-java | 58d1d2094a689ab20925ad9b208a46008af5efb4 | 8cd1cfb947a419914ebf477ede050fe320d9ca71 | refs/heads/master | 2023-05-13T16:53:16.261624 | 2023-05-01T06:35:34 | 2023-05-01T06:35:34 | 32,573,530 | 0 | 0 | Apache-2.0 | 2023-05-01T06:35:35 | 2015-03-20T08:59:36 | Java | UTF-8 | Java | false | false | 4,132 | java | /*
* Copyright 2010-2015 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.cloudhsm.model.transform;
import static com.amazonaws.util.StringUtils.UTF8;
import static com.amazonaws.util.StringUtils.COMMA_SEPARATOR;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.OutputStreamWriter;
import java.io.StringWriter;
import java.io.Writer;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.List;
import java.util.regex.Pattern;
import com.amazonaws.AmazonClientException;
import com.amazonaws.Request;
import com.amazonaws.DefaultRequest;
import com.amazonaws.http.HttpMethodName;
import com.amazonaws.services.cloudhsm.model.*;
import com.amazonaws.transform.Marshaller;
import com.amazonaws.util.BinaryUtils;
import com.amazonaws.util.StringUtils;
import com.amazonaws.util.StringInputStream;
import com.amazonaws.util.json.*;
/**
* Create Hsm Request Marshaller
*/
public class CreateHsmRequestMarshaller implements Marshaller<Request<CreateHsmRequest>, CreateHsmRequest> {
public Request<CreateHsmRequest> marshall(CreateHsmRequest createHsmRequest) {
if (createHsmRequest == null) {
throw new AmazonClientException("Invalid argument passed to marshall(...)");
}
Request<CreateHsmRequest> request = new DefaultRequest<CreateHsmRequest>(createHsmRequest, "AWSCloudHSM");
String target = "CloudHsmFrontendService.CreateHsm";
request.addHeader("X-Amz-Target", target);
request.setHttpMethod(HttpMethodName.POST);
request.setResourcePath("");
try {
StringWriter stringWriter = new StringWriter();
JSONWriter jsonWriter = new JSONWriter(stringWriter);
jsonWriter.object();
if (createHsmRequest.getSubnetId() != null) {
jsonWriter.key("SubnetId").value(createHsmRequest.getSubnetId());
}
if (createHsmRequest.getSshKey() != null) {
jsonWriter.key("SshKey").value(createHsmRequest.getSshKey());
}
if (createHsmRequest.getEniIp() != null) {
jsonWriter.key("EniIp").value(createHsmRequest.getEniIp());
}
if (createHsmRequest.getIamRoleArn() != null) {
jsonWriter.key("IamRoleArn").value(createHsmRequest.getIamRoleArn());
}
if (createHsmRequest.getExternalId() != null) {
jsonWriter.key("ExternalId").value(createHsmRequest.getExternalId());
}
if (createHsmRequest.getSubscriptionType() != null) {
jsonWriter.key("SubscriptionType").value(createHsmRequest.getSubscriptionType());
}
if (createHsmRequest.getClientToken() != null) {
jsonWriter.key("ClientToken").value(createHsmRequest.getClientToken());
}
if (createHsmRequest.getSyslogIp() != null) {
jsonWriter.key("SyslogIp").value(createHsmRequest.getSyslogIp());
}
jsonWriter.endObject();
String snippet = stringWriter.toString();
byte[] content = snippet.getBytes(UTF8);
request.setContent(new StringInputStream(snippet));
request.addHeader("Content-Length", Integer.toString(content.length));
request.addHeader("Content-Type", "application/x-amz-json-1.1");
} catch(Throwable t) {
throw new AmazonClientException("Unable to marshall request to JSON: " + t.getMessage(), t);
}
return request;
}
}
| [
"aws@amazon.com"
] | aws@amazon.com |
5ad95ec08ae8fe3fd9d2c41e4b5d7b70385a097f | 579754f6e08362fda5689d7b411e30b6391ad39e | /src/main/java/ohtu/actions/Action.java | 2bfb547d1a1d377e2093e5d13bd8a3a7982f1e45 | [
"MIT"
] | permissive | gotonode/ohtu | 7b841e56a676e21de655e30539144312ba13e30b | 89146c6f3712557527b3c431a09a004b3356aa1d | refs/heads/master | 2020-04-05T09:18:19.645804 | 2018-12-14T16:03:48 | 2018-12-14T16:03:48 | 156,749,923 | 1 | 2 | MIT | 2018-12-13T15:23:09 | 2018-11-08T18:18:49 | Java | UTF-8 | Java | false | false | 288 | java | package ohtu.actions;
import ohtu.io.IO;
/**
* All commands that the user can give are to be handled by these Action classes.
*/
public abstract class Action {
private IO io;
Action(IO io) {
this.io = io;
}
public IO getIo() {
return io;
}
public abstract void act();
}
| [
"5214152+gotonode@users.noreply.github.com"
] | 5214152+gotonode@users.noreply.github.com |
6508e7bb56a762f39500ec397f328665f8f41870 | 863acb02a064a0fc66811688a67ce3511f1b81af | /sources/p005cm/aptoide/p006pt/store/view/C4948E.java | 8836b2c6fe29b482519738de7f4604006d812f78 | [
"MIT"
] | permissive | Game-Designing/Custom-Football-Game | 98d33eb0c04ca2c48620aa4a763b91bc9c1b7915 | 47283462b2066ad5c53b3c901182e7ae62a34fc8 | refs/heads/master | 2020-08-04T00:02:04.876780 | 2019-10-06T06:55:08 | 2019-10-06T06:55:08 | 211,914,568 | 1 | 1 | null | null | null | null | UTF-8 | Java | false | false | 731 | java | package p005cm.aptoide.p006pt.store.view;
import java.util.concurrent.Callable;
import p005cm.aptoide.p006pt.dataprovider.model.p009v7.store.ListStores;
/* renamed from: cm.aptoide.pt.store.view.E */
/* compiled from: lambda */
public final /* synthetic */ class C4948E implements Callable {
/* renamed from: a */
private final /* synthetic */ FragmentTopStores f8598a;
/* renamed from: b */
private final /* synthetic */ ListStores f8599b;
public /* synthetic */ C4948E(FragmentTopStores fragmentTopStores, ListStores listStores) {
this.f8598a = fragmentTopStores;
this.f8599b = listStores;
}
public final Object call() {
return this.f8598a.mo16486b(this.f8599b);
}
}
| [
"tusharchoudhary0003@gmail.com"
] | tusharchoudhary0003@gmail.com |
0dcb9700535496f0cb8a29aa1efb87f4432b7be4 | 201d7e46f4abdac5b414e5b48155b45495ae94f5 | /java2/ByteBank-composto/src/Conta.java | 15cc5c52c0e6ed41e3854a045e21624e7132b0fc | [] | no_license | DeiseClaudino/Java | ff3caa0a4c7c8384d8c10ea139bf120de338ccc2 | 90e7f2ee786d04b9fa74069bc64a7b791e49e77c | refs/heads/master | 2020-03-14T14:04:25.726875 | 2018-05-11T21:38:53 | 2018-05-11T21:38:53 | 131,645,849 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,000 | java | public class Conta {
private double saldo;
int agencia =42;
int numero;
Cliente titular;
/*Cliente titular = new Cliente(); já inicializa a classe cliente a partir
do momento que é inicializada a classe Conta */
public void deposita(double valor) {
//saldo = saldo + valor
this.saldo += valor;
}
//this é opcional
public boolean saca(double valor) {
if(this.saldo>= valor) {
this.saldo-= valor;
return true;
}else {
System.out.println("Saldo menor que o solicitado no saque");
return false;
}
}
// boolean sucessoTransferencia = contaDaMarcela.transfere(300, contaDoPaulo);
public boolean transfere(double valor, Conta destino) {
if(this.saldo>= valor) {
this.saldo-= valor;
destino.deposita(valor);
System.out.println("Transferido com sucesso!");
return true;
}else {
System.out.println("Saldo menor que o solicitado na transferência");
return false;
}
}
public double getSaldo() {
return this.saldo;
}
} | [
"deise.claudino@gmail.com"
] | deise.claudino@gmail.com |
b4591415c1ee4536a25cf9b29ad581fe560ffbe1 | 83201ee88b22ce44728a79dbe6acf4f757b99482 | /src/com/abc/settings/VolumeRockerSettings.java | 2a8d07b8422969c956866902bff8ac347be2db97 | [] | no_license | ezio84/abc_packages_apps_AbcSettings | e6f952700b4ba536c4915ddd2f6142cc3e8b81ec | 05dffb02814dcf663099570d8ab41dac8c99080f | refs/heads/o2 | 2021-06-07T07:20:22.916684 | 2019-03-30T17:59:34 | 2019-03-30T17:59:34 | 75,744,770 | 1 | 18 | null | 2018-06-14T19:37:08 | 2016-12-06T15:32:10 | Java | UTF-8 | Java | false | false | 3,000 | java | /*
* Copyright (C) 2017 The ABC rom
*
* 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.abc.settings;
import android.content.ContentResolver;
import android.os.Bundle;
import android.os.UserHandle;
import android.provider.Settings;
import android.support.v7.preference.ListPreference;
import android.support.v7.preference.Preference;
import com.android.internal.logging.nano.MetricsProto;
import com.android.settings.R;
import com.android.settings.SettingsPreferenceFragment;
public class VolumeRockerSettings extends SettingsPreferenceFragment implements
Preference.OnPreferenceChangeListener {
private static final String HEADSET_CONNECT_PLAYER = "headset_connect_player";
private ListPreference mLaunchPlayerHeadsetConnection;
private ListPreference mHeadsetRingtoneFocus;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
addPreferencesFromResource(R.xml.abc_volumerocker_settings);
ContentResolver resolver = getActivity().getContentResolver();
mLaunchPlayerHeadsetConnection = (ListPreference) findPreference(HEADSET_CONNECT_PLAYER);
int mLaunchPlayerHeadsetConnectionValue = Settings.System.getIntForUser(resolver,
Settings.System.HEADSET_CONNECT_PLAYER, 4, UserHandle.USER_CURRENT);
mLaunchPlayerHeadsetConnection.setValue(Integer.toString(mLaunchPlayerHeadsetConnectionValue));
mLaunchPlayerHeadsetConnection.setSummary(mLaunchPlayerHeadsetConnection.getEntry());
mLaunchPlayerHeadsetConnection.setOnPreferenceChangeListener(this);
}
@Override
public int getMetricsCategory() {
return MetricsProto.MetricsEvent.ABC;
}
public boolean onPreferenceChange(Preference preference, Object newValue) {
ContentResolver resolver = getActivity().getContentResolver();
if (preference == mLaunchPlayerHeadsetConnection) {
int mLaunchPlayerHeadsetConnectionValue = Integer.valueOf((String) newValue);
int index = mLaunchPlayerHeadsetConnection.findIndexOfValue((String) newValue);
mLaunchPlayerHeadsetConnection.setSummary(
mLaunchPlayerHeadsetConnection.getEntries()[index]);
Settings.System.putIntForUser(resolver, Settings.System.HEADSET_CONNECT_PLAYER,
mLaunchPlayerHeadsetConnectionValue, UserHandle.USER_CURRENT);
return true;
}
return false;
}
}
| [
"brabus84@gmail.com"
] | brabus84@gmail.com |
9b637b31f8511fa333b7dbf06eb48e8ae9987f25 | 75b93e9d7ec420dc8eeaa45a0a9cfee1c505363a | /app/src/test/java/com/example/josuegramajo/infinitywarpresalescanner/ExampleUnitTest.java | 82ede320c2eb479bc17cc48d4d9bb842e78aa668 | [] | no_license | JosueGramajo/ScannerAndroid | d17ad49f88faf9c4f10ac34cde0c3596c00dfbcc | c1884a81443f19951bde5ec97d5ef49b9a8d9a02 | refs/heads/master | 2021-04-15T11:18:03.952574 | 2018-03-23T22:54:24 | 2018-03-23T22:54:24 | 126,546,485 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 428 | java | package com.example.josuegramajo.infinitywarpresalescanner;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() throws Exception {
assertEquals(4, 2 + 2);
}
} | [
"jgramajo1997@gmail.com"
] | jgramajo1997@gmail.com |
30004509fe786f63b3c572f2b051ef80d1e33cf3 | 9fc550ab4762a301a78a285d16db369aee9d892a | /analisadorlexico/src/analisadorlexico/Analisadorlexico.java | 786d4c609e6be767d19494ab168fd3afac7ba0cd | [] | no_license | ArthurMonteforte/Github | 89397e8dd94c7e308bb634e8f34f1fff10d22cf8 | c017cefb83590209d6e27b0881458c5edfee679b | refs/heads/master | 2021-01-23T12:05:07.614891 | 2015-03-31T23:41:21 | 2015-03-31T23:41:21 | 33,216,001 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 366 | java | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package analisadorlexico;
/**
*
* @author Artur
*/
public class Analisadorlexico {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
}
}
| [
"arthur.monteforte@hotmail.com"
] | arthur.monteforte@hotmail.com |
865589bb64a7fc579ec3751629e38ac4586d92cc | 407a5a94092e23be91303b15fa8be687bb657cdd | /app/src/main/java/com/example/e_softwarica/RegisterActivity.java | 09c6c11e5e4a051dda7fafac93d048e8799184e9 | [] | no_license | Gobinda3134/Test-master-master | 4236e8562b18fd4d606eb7ebebd6015b076f5cd9 | ca89a75213ca9687e1b4ce818b44d59372e35546 | refs/heads/master | 2021-01-04T08:33:38.905225 | 2020-02-24T15:50:44 | 2020-02-24T15:50:44 | 240,467,789 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,348 | java | package com.example.e_softwarica;
import android.content.Intent;
import android.nfc.tech.NfcA;
import android.os.Handler;
import android.support.design.widget.Snackbar;
import android.support.design.widget.TextInputLayout;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.Editable;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
import com.activeandroid.ActiveAndroid;
import com.example.e_softwarica.model.RegisterReceiveParams;
import java.util.ArrayList;
import java.util.List;
public class RegisterActivity extends AppCompatActivity {
TextView link_login;
Button btnregister;
TextInputLayout textInputLayoutName;
TextInputLayout textInputLayoutEmail;
TextInputLayout textInputLayoutPassword;
List<RegisterReceiveParams> photo_list = new ArrayList<>();
List<RegisterReceiveParams> userResultBeanList = new ArrayList<>();
EditText name,email,password;
DbHelper dbHelper;
Editable strname,stremail,strpassword;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_register);
dbHelper = new DbHelper(this);
initViews();
initTextViewLogin();
btnregister.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if (validate()) {
String Name = name.getText().toString();
String Email = email.getText().toString();
String Password = password.getText().toString();
//Check in the database is there any user associated with this email
if (!dbHelper.isEmailExists(Email)) {
//Email does not exist now add new user to database
dbHelper.addUser(new RegisterReceiveParams(null, Name, Email, Password));
Toast.makeText(getApplicationContext(),"User Registered Successfully",Toast.LENGTH_LONG).show();
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
finish();
}
}, Snackbar.LENGTH_LONG);
}else {
//Email exists with email input provided so show error user already exist
Toast.makeText(getApplicationContext(),"User already exists with same email",Toast.LENGTH_LONG).show();
// Snackbar.make(btnregister, " ", Snackbar.LENGTH_LONG).show();
}
}
}
});
}
private void initTextViewLogin() {
link_login =(TextView) findViewById(R.id.link_login);
link_login.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
finish();
startActivity(new Intent(RegisterActivity.this,LoginActivity.class));
}
});
}
private void initViews() {
name = findViewById(R.id.input_name);
email = findViewById(R.id.input_email);
password = findViewById(R.id.input_password);
textInputLayoutEmail = (TextInputLayout) findViewById(R.id.textInputLayoutEmail);
textInputLayoutPassword = (TextInputLayout) findViewById(R.id.textInputLayoutPassword);
textInputLayoutName = (TextInputLayout) findViewById(R.id.textInputLayoutName);
btnregister = (Button) findViewById(R.id.btnregister);
}
public boolean validate() {
boolean valid = false;
//Get values from EditText fields
String UserName = name.getText().toString();
String Email = email.getText().toString();
String Password = password.getText().toString();
//Handling validation for UserName field
if (UserName.isEmpty()) {
valid = false;
textInputLayoutName.setError("Please enter valid username!");
} else {
if (UserName.length() > 5) {
valid = true;
textInputLayoutName.setError(null);
} else {
valid = false;
textInputLayoutName.setError("Username is to short!");
}
}
//Handling validation for Email field
if (!android.util.Patterns.EMAIL_ADDRESS.matcher(Email).matches()) {
valid = false;
textInputLayoutEmail.setError("Please enter valid email!");
} else {
valid = true;
textInputLayoutEmail.setError(null);
}
//Handling validation for Password field
if (Password.isEmpty()) {
valid = false;
textInputLayoutPassword.setError("Please enter valid password!");
} else {
if (Password.length() > 5) {
valid = true;
textInputLayoutPassword.setError(null);
} else {
valid = false;
textInputLayoutPassword.setError("Password is to short!");
}
}
return valid;
}
}
| [
"bprajwol10@gmail.com"
] | bprajwol10@gmail.com |
df8dd465e6ef48e6fcf360e5596aeb0398daa6d7 | 8d2125b342ff4a12950a40288689fafe9b2928f9 | /app/src/main/java/com/holike/crm/base/FragmentHelper.java | 546827b3eff1976310c76f2b01f53cdc27a0da1a | [] | no_license | gallopmark/HolikeCRM_Old | 8a63e5c76683890246a5a0482a9114d2a894d629 | cd5ad354df58b1defa68f71f1f20250c2fb38c4a | refs/heads/master | 2020-07-12T20:28:33.955839 | 2019-11-13T09:22:20 | 2019-11-13T09:22:20 | 204,900,694 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,310 | java | package com.holike.crm.base;
import android.content.Context;
import android.view.View;
import android.widget.TextView;
import androidx.annotation.ColorRes;
import androidx.annotation.IdRes;
import androidx.annotation.StringRes;
/**
* Created by pony on 2019/9/20.
* Copyright holike possess 2019.
*/
public abstract class FragmentHelper extends HelperWrapper implements BaseHelper {
protected Context mContext;
protected BaseFragment<?, ?> mFragment;
protected View mFragmentView;
public FragmentHelper(BaseFragment<?, ?> fragment) {
this.mFragment = fragment;
this.mContext = fragment.getContext();
this.mFragmentView = fragment.getContentView();
}
protected <T extends View> T obtainView(@IdRes int id) {
return mFragmentView.findViewById(id);
}
protected void setText(@IdRes int id, @StringRes int resId) {
setText(id, getString(mContext, resId));
}
protected TextView obtainTextView(@IdRes int id) {
return obtainView(mFragmentView, id);
}
protected void setText(@IdRes int id, CharSequence text) {
obtainTextView(id).setText(text);
}
protected void setTextColor(@IdRes int id, @ColorRes int colorId) {
obtainTextView(id).setTextColor(getColor(mContext, colorId));
}
}
| [
"i23xiaoyan@qq.com"
] | i23xiaoyan@qq.com |
00906d5c63347f6ce82715d692f8831ba2d91e6d | 558de0b6489d09305743c785e4c743a5aa9fa10f | /src/nuc/edu/dao/admin/TeacherDao.java | ca139f2d45c143c03e0bbae8d32479e8375b5da2 | [] | no_license | claa/online_edu | b797e79f42e5dc20f69adcccfbadeb2e675ec708 | c11d8564b0057285242d1a0e3259eb5b81b7e017 | refs/heads/master | 2020-03-19T04:26:21.209795 | 2018-06-02T15:17:46 | 2018-06-02T15:17:46 | 135,828,191 | 1 | 0 | null | null | null | null | GB18030 | Java | false | false | 3,997 | java | /**
*
*/
package nuc.edu.dao.admin;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import nuc.edu.coon.DBUtil;
import nuc.edu.entity.Major;
import nuc.edu.entity.Teacher;
/**实现管理员对老师的处理
* @author TaoXu
*
*/
public class TeacherDao implements AdminDaoImpl<Teacher> {
private Connection coon = DBUtil.getCoon();
private PreparedStatement pst = null;
String sql = null;
//添加老师 通过字符到major表中获的major_id
public int Insert(Teacher obj,Major obj2) {
// TODO Auto-generated method stub
int rs = 0;
sql="insert into teacher (t_username,t_no,t_Email,t_introduce,t_major) values (?,?,?,?,?)";
try {
pst = coon.prepareStatement(sql);
pst.setString(1, obj.getT_username());
pst.setString(2, obj.getT_no());
pst.setString(3, obj.getT_Email());
pst.setString(4, obj.getT_introduce());
pst.setInt(5, obj2.getMajor_id());
rs = pst.executeUpdate();
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return rs;
}
//删除老师
public int Delete(Teacher obj) {
// TODO Auto-generated method stub
int rs = 0;
sql = "delete from teacher where t_id = ?";
try {
pst = coon.prepareStatement(sql);
pst.setInt(1, obj.getT_id());
rs = pst.executeUpdate();
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return rs;
}
//查看老师信息
public List<Teacher> findAll(int start) {
// TODO Auto-generated method stub
List<Teacher> teachers = new ArrayList<Teacher>();
ResultSet rs =null;
sql = "select * from teacher limit ?,?";
try {
pst =coon.prepareStatement(sql);
pst.setInt(1, (start-1)*10);
pst.setInt(2, 10);
rs = pst.executeQuery();
Teacher teacher = null;
while(rs.next()) {
teacher = new Teacher();
teacher.setT_id(rs.getInt(1));
teacher.setT_username(rs.getString(2));
teacher.setT_Email(rs.getString(5));
teacher.setT_introduce(rs.getString(6));
teachers.add(teacher);
}
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return teachers;
}
//根据id查找老师
public Teacher findById(Teacher obj) {
// TODO Auto-generated method stub
ResultSet rs =null;
Teacher teacher = null;
sql = " select * from teacher where t_id = ?";
try {
pst = coon.prepareStatement(sql);
pst.setInt(1, obj.getT_id());
rs = pst.executeQuery();
if(rs.next()) {
teacher = new Teacher();
teacher.setT_id(rs.getInt(1));
teacher.setT_username(rs.getString(2));
teacher.setT_no(rs.getString(3));
teacher.setT_Email(rs.getString(5));
teacher.setT_introduce(rs.getString(6));
teacher.setT_major(rs.getInt(8));
}
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return teacher;
}
public int Update(Teacher obj,Major obj2) {
// TODO Auto-generated method stub
int rs = 0;
sql="update teacher set t_username=? , t_no = ?, t_Email = ? ,t_introduce = ? ,t_major = ? where t_id = ?";
try {
pst = coon.prepareStatement(sql);
pst.setString(1, obj.getT_username());
pst.setString(2, obj.getT_no());
pst.setString(3, obj.getT_Email());
pst.setString(4, obj.getT_introduce());
pst.setInt(5, obj2.getMajor_id());
pst.setInt(6, obj.getT_id());
rs = pst.executeUpdate();
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return rs;
}
public List<Teacher> findOrder() {
// TODO Auto-generated method stub
return null;
}
public List<Teacher> findTopPost() {
// TODO Auto-generated method stub
return null;
}
public int Insert(Teacher obj) {
// TODO Auto-generated method stub
return 0;
}
public Teacher Update(Teacher obj) {
// TODO Auto-generated method stub
return null;
}
}
| [
"736238785@qq.com"
] | 736238785@qq.com |
71fecc2f0d050d2f057c7bf171f9e233f0f47acf | 368c0c806f01b2ce79244f085eb89708387ff866 | /samples/simple/src/test/java/com/shipdream/lib/android/mvc/samples/simple/controller/internal/TestCounterController.java | b8bff38db219763511336ac7da023ddfdc6f1f17 | [
"Apache-2.0"
] | permissive | venkatesh3007/AndroidMvc | 014a678152cc53fa8c4a1989050bfb0f37f35113 | 45bdb05bf347a42bf93d289808db4751ebae0f94 | refs/heads/master | 2021-01-20T17:29:46.005118 | 2015-10-06T05:50:41 | 2015-10-06T05:50:41 | 42,567,594 | 0 | 1 | null | 2015-09-16T05:56:16 | 2015-09-16T05:56:16 | null | UTF-8 | Java | false | false | 5,834 | java | /*
* Copyright 2015 Kejun Xia
*
* 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.shipdream.lib.android.mvc.samples.simple.controller.internal;
import com.shipdream.lib.android.mvc.MvcGraph;
import com.shipdream.lib.android.mvc.controller.NavigationController;
import com.shipdream.lib.android.mvc.event.bus.EventBus;
import com.shipdream.lib.android.mvc.event.bus.internal.EventBusImpl;
import com.shipdream.lib.android.mvc.samples.simple.controller.CounterController;
import com.shipdream.lib.android.mvc.samples.simple.model.CounterModel;
import org.apache.log4j.ConsoleAppender;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.apache.log4j.PatternLayout;
import org.junit.Assert;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.mockito.ArgumentCaptor;
import java.util.Random;
import java.util.concurrent.ExecutorService;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
public class TestCounterController {
@BeforeClass
public static void beforeClass() {
ConsoleAppender console = new ConsoleAppender(); //create appender
//configure the appender
String PATTERN = "%d [%p] %C{1}: %m%n";
console.setLayout(new PatternLayout(PATTERN));
console.setThreshold(Level.DEBUG);
console.activateOptions();
//add appender to any Logger (here is root)
Logger.getRootLogger().addAppender(console);
}
//Dependencies of base controllers
protected EventBus eventBusC2C;
protected EventBus eventBusC2V;
protected ExecutorService executorService;
//The graph used to inject
private MvcGraph mvcGraph;
private CounterController counterController;
@Before
public void setUp() throws Exception {
//create instance of CounterController
counterController = new CounterControllerImpl();
//Prepare dependencies for injection
eventBusC2C = new EventBusImpl();
eventBusC2V = new EventBusImpl();
mvcGraph = new MvcGraph(new MvcGraph.BaseDependencies() {
@Override
public EventBus createEventBusC2C() {
return eventBusC2C;
}
@Override
public EventBus createEventBusC2V() {
return eventBusC2V;
}
@Override
public ExecutorService createExecutorService() {
return executorService;
}
});
executorService = mock(ExecutorService.class);
//inject dependencies into controller
mvcGraph.inject(counterController);
//init controller
counterController.init();
}
@Test
public void increment_should_post_counter_update_event_with_incremented_value() {
//1. Prepare
//prepare event monitor
class Monitor {
void onEvent(CounterController.EventC2V.OnCounterUpdated event) {
}
}
Monitor monitor = mock(Monitor.class);
eventBusC2V.register(monitor);
//mock controller model for count value
int value = new Random().nextInt();
CounterModel counterModel = mock(CounterModel.class);
when(counterModel.getCount()).thenReturn(value);
//Bind the mock model to the controller
counterController.bindModel(this, counterModel);
//2. Act
counterController.increment(this);
//3. Verify
ArgumentCaptor<CounterController.EventC2V.OnCounterUpdated> updateEvent
= ArgumentCaptor.forClass(CounterController.EventC2V.OnCounterUpdated.class);
//event should be fired once
verify(monitor, times(1)).onEvent(updateEvent.capture());
//event should carry incremented value
Assert.assertEquals(value + 1, updateEvent.getValue().getCount());
}
@Test
public void should_navigate_to_locationB_when_go_to_advance_view_and_back_to_locationA_after_go_to_basic_view() {
//Prepare
NavigationController navigationController = ((CounterControllerImpl) counterController).navigationController;
NavigationController.Model navModel = navigationController.getModel();
//App has not navigated to anywhere, current location should be null
Assert.assertNull(navModel.getCurrentLocation());
//Simulate navigating to location A
navigationController.navigateTo(this, "LocationA");
//Verify: location should be changed to LocationA
Assert.assertEquals(navModel.getCurrentLocation().getLocationId(), "LocationA");
//Act: CounterController now goes to advanced view underlining logic is navigating to locationB
counterController.goToAdvancedView(this);
//Verify: Current location should be LocationB
Assert.assertEquals(navModel.getCurrentLocation().getLocationId(), "LocationB");
//Act: CounterController now goes back to basic view underlining logic is navigating back to locationA
counterController.goBackToBasicView(this);
//Verify: Current location should be back to LocationA
Assert.assertEquals(navModel.getCurrentLocation().getLocationId(), "LocationA");
}
}
| [
"ideablast@gmail.com"
] | ideablast@gmail.com |
bbc3484303c371691d7537a0d576d03d602771f5 | 86b8081f1c37161dc30e9c2221f55d3535b0508e | /MMS/app/src/main/java/com/theateamiu/mms/dao/MessDAOImpl.java | 8e0a6e22b71601b128f710af7cd1b8c0a90c7ae9 | [
"Apache-2.0"
] | permissive | theateamiu/messManagementSoftware | 5d25423985d3b4610a9509b3b032ef0d436e840d | 003622a212f24bc189cb4289e4ffe3848bd063a1 | refs/heads/master | 2021-01-10T20:07:16.182384 | 2014-12-10T13:56:32 | 2014-12-10T13:56:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,764 | java | package com.theateamiu.mms.dao;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import com.theateamiu.mms.db.Column;
import com.theateamiu.mms.db.DatabaseHelper;
import com.theateamiu.mms.db.Table;
import com.theateamiu.mms.models.Mess;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
public class MessDAOImpl implements MessDAO{
private Context context;
public MessDAOImpl(Context context){
this.context = context;
}
@Override
public Mess getMessFromDB(long id) {
return null;
}
@Override
public void setMessToDB(Mess mess) {
ContentValues cv = new ContentValues(10);
DatabaseHelper databaseHelper = new DatabaseHelper(context);
try {
SQLiteDatabase db = databaseHelper.open();
cv.put(Column.NAME, mess.getName());
cv.put(Column.IMAGE_URI, mess.getImageURL());
cv.put(Column.POSTAL_ADDRESS, mess.getPostalAddress());
cv.put(Column.DISTRICT, mess.getDistrict());
cv.put(Column.REGION, mess.getRegion());
cv.put(Column.DATE_START, mess.getStartDate());
cv.put(Column.DATE_END, mess.getEndDate());
cv.put(Column.RANK_IN_DIST, mess.getDistrictRank());
cv.put(Column.RANK_IN_COUNTRY, mess.getCountryRank());
cv.put(Column.EMAIL_MANAGER, mess.getManagerEmail());
db.insert(Table.MESS, Column.NAME, cv);
db.close();
//System.out.println(mess);
//Toast.makeText(MessRegistrationActivity.this,mess.toString(),Toast.LENGTH_LONG).show();
} catch (SQLException e) {
e.printStackTrace();
} finally {
databaseHelper.close();
}
}
@Override
public boolean updateMessOnDB(long id) {
return false;
}
@Override
public Mess deleteMessFromDB(long id) {
return null;
}
@Override
public List<Mess> getMessListFromDB() {
List<Mess> messList = new ArrayList<Mess>();
DatabaseHelper databaseHelper = new DatabaseHelper(context);
try {
SQLiteDatabase db = databaseHelper.open();
Cursor cursor = db.rawQuery("select * from " + Table.MESS, null);
for (cursor.moveToFirst(); !cursor.isAfterLast(); cursor.moveToNext()) {
Mess mess = new Mess();
messList.add(mess);
}
cursor.close();
db.close();
} catch (SQLException e) {
e.printStackTrace();
} finally {
databaseHelper.close();
}
return messList;
}
}
| [
"air.cse.pbn@gmail.com"
] | air.cse.pbn@gmail.com |
15b480fe70d614c80fd829fe78eadb68fd955c39 | 7cfbcbc0b47722b535a94785826032abc8ca011f | /application.db.modules/events.system/src/main/java/events/system/model/UserContactsAllowedContactmethods.java | cbde7adeeb351e79f2aa9b9a4653bb718f372c68 | [] | no_license | jimmyMaci/turbo-sansa | 2838ebb021d319a7c4e3ac7ae2bcdeb69ba8f274 | 23416d1d267edd847247f7213f2f7583e1b990f1 | refs/heads/master | 2022-07-14T00:14:31.628055 | 2022-06-30T11:25:20 | 2022-06-30T11:25:20 | 26,208,979 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,758 | java | package events.system.model;
import hbm.entity.BaseEntity;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.ForeignKey;
import org.hibernate.annotations.Index;
import user.management.model.Contactmethods;
import user.management.model.Users;
/**
* The Entity class {@UserContactsAllowedContactmethods
*
*
* } is holding the information for the
* allowed contactmethods that the user can see from his contact person.
*/
@Entity
@Table(name = "user_contacts_allowed_contactmethods")
public class UserContactsAllowedContactmethods extends BaseEntity<Integer>
implements Cloneable {
/** The serial Version UID */
private static final long serialVersionUID = 1L;
/**
* The userContact attribute that references to the Entity class
* {@UserContacts} and is the contact from the user.
*/
private Users userContact;
/**
* The userContactmethod attribute that references to the Entity class
* {@UserContactmethods} and is the allowed contact
* method from the user.
*/
private Contactmethods userContactmethod;
/**
* Default constructor, mainly for hibernate use
*/
public UserContactsAllowedContactmethods() {
// Default constructor
}
/**
* Return the value associated with the column: userContact
*
* @return A UserContacts object (this.userContact)
*/
@ManyToOne(cascade = CascadeType.ALL)
@JoinColumn(name = "user_contact_id", nullable = true, referencedColumnName = "id")
@Index(name = "IDX_USER_CONTACT_ID")
@ForeignKey(name = "FK_ALLOWED_CONTACTMETHODS_USER_CONTACT_ID")
public Users getUserContact() {
return this.userContact;
}
/**
* Set the value related to the column: userContact
*
* @param userContact
* the userContact value you wish to set
*/
public void setUserContact(final Users userContact) {
this.userContact = userContact;
}
/**
* Return the value associated with the column: userContactmethod
*
* @return A UserContactmethods object (this.userContactmethod)
*/
@ManyToOne(cascade = CascadeType.ALL)
@JoinColumn(name = "user_contactmethod_id", nullable = true, referencedColumnName = "id")
@Index(name = "IDX_USER_CONTACTMETHOD_ID")
@ForeignKey(name = "FK_ALLOWED_CONTACTMETHODS_USER_CONTACTMETHOD_ID")
public Contactmethods getUserContactmethod() {
return this.userContactmethod;
}
/**
* Set the value related to the column: userContactmethod
*
* @param userContactmethod
* the userContactmethod value you wish to set
*/
public void setUserContactmethod(final Contactmethods userContactmethod) {
this.userContactmethod = userContactmethod;
}
}
| [
"asterios.raptis@gmx.net"
] | asterios.raptis@gmx.net |
91169fb3ba528dd1daded5b1a1c38c03ef2c112f | 5e501e7046fee423432a14bcc8de416f36a57649 | /TeamCode/src/main/java/org/firstinspires/ftc/teamcode/JellyfishAutoModeSoloBlue.java | 028e59a200b63415f85759ceed21e56c14cc5367 | [
"BSD-3-Clause"
] | permissive | shsvbjv/jellyfish_ftc_app_2016 | b27878febd2b773e55c3ad0b1e55550c9af79549 | 2a6c285e9ff17cee415d023c7cc63febc1bee040 | refs/heads/master | 2021-06-14T12:55:15.668976 | 2017-05-21T02:56:46 | 2017-05-21T02:56:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,866 | java |
package org.firstinspires.ftc.teamcode;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.qualcomm.robotcore.hardware.DcMotor;
@Autonomous(name="Mode Solo Blue ", group="Jellyfish")
public class JellyfishAutoModeSoloBlue extends JellyfishAutoBase {
/* Declare OpMode members. */
@Override
public void runOpMode() throws InterruptedException {
/*
* Initialize the drive system variables.
* The init() method of the hardware class does all the work here
*/
robot.init(hardwareMap, telemetry);
// Send telemetry message to signify robot waiting;
telemetry.addData("Status", "Resetting Encoders"); //
telemetry.update();
robot.frontLeftMotor.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);
robot.frontRightMotor.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);
robot.backLeftMotor.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);
robot.backRightMotor.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);
idle();
robot.frontLeftMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);
robot.frontRightMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);
robot.backLeftMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);
robot.backRightMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);
// Send telemetry message to indicate successful Encoder reset
telemetry.addData("Path0", "Starting at %7d :%7d :%7d :%7d",
robot.frontLeftMotor.getCurrentPosition(),
robot.frontRightMotor.getCurrentPosition(),
robot.backLeftMotor.getCurrentPosition(),
robot.backRightMotor.getCurrentPosition());
telemetry.update();
// Wait for the game to start (driver presses PLAY)
waitForStart();
// Step through each leg of the path,
// Note: Reverse movement is obtained by setting a negative distance (not speed)
encoderDrive(DRIVE_SPEED, -41, 0, 4.0);
encoderDrive(DRIVE_SPEED, 0, 50, 4.0);
encoderDriverange(.1, 0, 20, 4, 4.0);
encoderDriveWithODSLeft(.1, -24, 0, 4.0);
encoderDrive(DRIVE_SPEED, 3, 0, 4.0);
sleep(500);
if(robot.colorSensor.blue() > robot.colorSensor.red()) {
encoderDrive(DRIVE_SPEED, 0, 7, 4.0);
encoderDrive(DRIVE_SPEED, 0, -3, 4.0);
encoderDrive(DRIVE_SPEED, -40, 0, 6.0);
if(robot.gyro.getHeading() > 4) {
gyroTurn(TURN_SPEED, -360, 4.0);
}
encoderDriverange(.1, 0, 20, 6, 4.0);
encoderDriveWithODSLeft(.1, -15, 0, 4.0);
encoderDriverange(.1, 0, 20, 4, 4.0);
encoderDrive(DRIVE_SPEED, 3, 0, 4.0);
if(robot.colorSensor.blue() > robot.colorSensor.red()) {
encoderDrive(DRIVE_SPEED, 0, 7, 4.0);
encoderDrive(DRIVE_SPEED, 0, -3, 4.0);
}
else {
encoderDrive(DRIVE_SPEED, -8, 0, 4.0);
if(robot.gyro.getHeading() > 4) {
gyroTurn(TURN_SPEED, -360, 4.0);
}
encoderDriverange(.1, 0, 20, 4, 2.0);
encoderDrive(DRIVE_SPEED, 0, 7, 4.0);
encoderDrive(DRIVE_SPEED, 0, -3, 4.0);
}
}
else{
encoderDrive(DRIVE_SPEED, -8, 0, 4.0);
if(robot.gyro.getHeading() > 4) {
gyroTurn(TURN_SPEED, -360, 4.0);
}
encoderDrive(DRIVE_SPEED, -1, 0, 4.0);
encoderDriverange(.1, 0, 5, 5, 2.0);
encoderDrive(DRIVE_SPEED, 0, 5, 4.0);
encoderDrive(DRIVE_SPEED, 0, -3, 4.0);
encoderDrive(DRIVE_SPEED, -35, 0, 6.0);
if(robot.gyro.getHeading() > 4) {
gyroTurn(TURN_SPEED, -360, 4.0);
}
encoderDriverange(.1, 0, 20, 6, 4.0);
encoderDriveWithODSLeft(.1, -20, 0, 4.0);
encoderDriverange(.1, 0, 20, 4, 4.0);
encoderDrive(DRIVE_SPEED, 3, 0, 4.0);
if(robot.gyro.getHeading() > 4 && robot.gyro.getHeading() < 25) {
gyroTurn(TURN_SPEED, -180, 4.0);
}
if(robot.colorSensor.blue() > robot.colorSensor.red()) {
encoderDrive(DRIVE_SPEED, 0, 5, 4.0);
encoderDrive(DRIVE_SPEED, 0, -3, 4.0);
}
else {
encoderDrive(DRIVE_SPEED, -9, 0, 4.0);
if(robot.gyro.getHeading() > 4) {
gyroTurn(TURN_SPEED, -180, 4.0);
}
encoderDriverange(.1, 0, 5, 5, 2.0);
encoderDrive(DRIVE_SPEED, 0, 5, 4.0);
encoderDrive(DRIVE_SPEED, 0, -3, 4.0);
}
}
robot.flywheelLeftMotor.setPower(.70);
robot.intakeBeltMotor.setPower(1);
robot.conveyorbelt.setPower(-1);
encoderDrive(DRIVE_SPEED, 0, -6, 6.0);
encoderTurn(TURN_SPEED, 65, 3.0);
encoderDrive(DRIVE_SPEED, 0, -33, 4.0);
sleep(1000);
robot.conveyorbelt.setPower(0);
robot.intakeBeltMotor.setPower(0);
robot.servo.setPosition(1);
sleep(2000);
robot.servo.setPosition(.55);
robot.flywheelLeftMotor.setPower(0);
encoderDrive(DRIVE_SPEED, 0, -20, 4.0);
sleep(1000); // pause for servos to move
telemetry.addData("Path", "Complete");
telemetry.update();
}
/*
* Method to perform a relative move, based on encoder counts.
* Encoders are not reset as the move is based on the current position.
* Move will stop if any of three conditions occur:
* 1) Move gets to the desired position
* 2) Move runs out of time
* 3) Driver stops the opmode running.
*/
} | [
"nandini.s.thakur@gmail.com"
] | nandini.s.thakur@gmail.com |
b23592202f8cd06f2303f1bd18081534c2f551b1 | 3322ed23c4ddd209e9edd5a6064edddea4c979fb | /src/lab1/IntroToProgrammingCourse.java | 34a74f25643f5b56d917083ee2b8cba1f6f6c197 | [] | no_license | cperera11/InterfaceAbstractLab2 | 367661008272fac9a2ae72d52d94c09cd6eb724c | 717833f867ad6e7deec85f3c13cc44ef43e14b18 | refs/heads/master | 2021-01-19T11:12:16.955923 | 2017-02-19T05:19:04 | 2017-02-19T05:19:04 | 82,233,790 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 906 | java | package lab1;
/**
* Describe responsibilities here. NOTE: this class has NO PREREQUISITES! Do not
* change this fact.
*
* @author Chathuri Perera
* @version 1.00
*/
public class IntroToProgrammingCourse extends ObjectOrientedProgramming {
private int numberOfExams;
public IntroToProgrammingCourse(String courseName, String courseNumber, String credit, String prereqs) {
setCourseName(courseName);
setCourseNumber(courseNumber);
setCredits(credit);
setPrerequisites(prereqs);
}
@Override
public void setPrerequisites(String prerequisites) {
}
@Override
public String getPrerequisites() {
return ("No Prerequisites");
}
public int getNumberOfExams() {
return numberOfExams;
}
public void setNumberOfExams(int numberOfExams) {
this.numberOfExams = numberOfExams;
}
}
| [
"CPere@10.30.23.46"
] | CPere@10.30.23.46 |
34f0872a3d53b7f267d7cd428ca15608dd690939 | 41fdf47cb2579246ff7d57153c9d92f50ccfd52e | /els-romenext-rev2-api/src/main/java/com/els/romenext/api/edge/req/CreateEdgeRequest.java | 344f4315f33a4cabd1e88aacada44d2e99687c7f | [] | no_license | RamyaSubash/romenext | 9b7206962d6d6db57769ec4f44088930e7ca8867 | e1ea3b305cf34e8966d012e822a9c61099652e41 | refs/heads/main | 2023-04-22T16:57:12.849414 | 2021-05-05T17:26:37 | 2021-05-05T17:26:37 | 364,650,368 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,386 | java | package com.els.romenext.api.edge.req;
import java.util.ArrayList;
import java.util.List;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.Response.ResponseBuilder;
import org.apache.log4j.Logger;
import org.json.JSONException;
import org.json.JSONObject;
import com.els.romenext.api.errors.ApiResponseState;
import com.els.romenext.api.errors.ErrorResponse;
import com.els.romenext.api.errors.RomeNextResponseCodeEnum;
import com.els.romenext.api.utils.PropertyJSONUtils;
import com.els.romenext.api.utils.RomeJSONUtils;
import com.els.romenext.core.db.neo4j.enums.Neo4jPropertyTypeEnum;
import com.els.romenext.core.entity.flatstyle.Property;
public class CreateEdgeRequest {
private static Logger log = Logger.getLogger(CreateEdgeRequest.class);
private Long connection;
private String originType;
private String destinationType;
private List<Property> edgeProperties;
private List<Property> originProperties;
private List<Property> destinationProperties;
public Long getConnection() {
return connection;
}
public String getOriginType() {
return originType;
}
public String getDestinationType() {
return destinationType;
}
public List<Property> getEdgeProperties() {
return edgeProperties;
}
public List<Property> getOriginProperties() {
return originProperties;
}
public List<Property> getDestinationProperties() {
return destinationProperties;
}
public String validateRequest(JSONObject json) {
String empty = null;
empty = RomeJSONUtils.findEmptyJson(json, "connection", "originType", "destinationType", "originNodeUuid", "destinationNodeUuid");
if (empty != null) {
return empty;
}
return empty;
}
public Response preprocessor() {
// currently, I just checked if there is any duplicate property name
ResponseBuilder responseBuilder;
// if (PropertyUtils.containsDuplication(edgeProperties)) {
// responseBuilder = ErrorResponse.build(ApiResponseState.FAILURE, RomeNextResponseCodeEnum.DUPLICATE_EDGE_PROPERTY, null).getResponseBuilder();
// return responseBuilder.build();
// }
if (PropertyJSONUtils.containsDuplicationPropertyId(edgeProperties)) {
responseBuilder = ErrorResponse.build(ApiResponseState.FAILURE, RomeNextResponseCodeEnum.DUPLICATE_EDGE_PROPERTY, null).getResponseBuilder();
return responseBuilder.build();
}
return null;
}
public void parseRequest(JSONObject json) throws JSONException {
connection = Long.parseLong(json.getString("connection"));
originType = json.getString("originType");
destinationType = json.getString("destinationType");
originProperties = new ArrayList<Property>();
destinationProperties = new ArrayList<Property>();
Property originProperty = Property.buildNodeProperty("uuid", "STRING", json.getString("originNodeUuid"));
originProperty.setName("uuid");
Property destinationProperty = Property.buildNodeProperty("uuid", "STRING", json.getString("destinationNodeUuid"));
destinationProperty.setName("uuid");
originProperties.add(originProperty);
destinationProperties.add(destinationProperty);
if (json.has("edgeProperties")) {
edgeProperties = PropertyJSONUtils.parseProperties(json.getJSONArray("edgeProperties"), Neo4jPropertyTypeEnum.RULE);
}
}
}
| [
"="
] | = |
c40333429fd961a7ac6979e4549d5035077410c9 | 3fc6378e5262ce091cebb706b84e44ebb6c06dad | /springbee-distributed-leader/src/main/java/org/springbee/distributed/leader/event/LeaderChanged.java | 43bb1f0f4868ac5f9137c3a40d3bd71b2532d1b5 | [] | no_license | coderwls/spring-bee | fae0298928342ee8b8ea51ad1a8f372edaf2a902 | 349a82586476451b6e938999f7443fb075e82357 | refs/heads/master | 2022-10-16T14:01:08.222996 | 2020-06-11T00:50:46 | 2020-06-11T00:50:46 | 270,954,359 | 0 | 0 | null | 2020-06-09T09:07:10 | 2020-06-09T09:07:09 | null | UTF-8 | Java | false | false | 302 | java | package org.springbee.distributed.leader.event;
import akka.cluster.ClusterEvent;
public class LeaderChanged implements Event {
public final ClusterEvent.LeaderChanged leaderChanged;
public LeaderChanged(ClusterEvent.LeaderChanged leaderChanged) {
this.leaderChanged = leaderChanged;
}
}
| [
"zhanglei@apache.org"
] | zhanglei@apache.org |
466ef4fa1ba1982967e9b9b478e0fbca85360fbb | bda670c810463308c59ebc68f0380e307f595f3f | /ProjetoCUFS/compilador/node/PCondComandoCasos.java | 1f3accda0837a5d609ee51f5cf64c1354235288d | [] | no_license | pablorodrigo52/compiladorUFS | 99fe0c27fa4459b5501e3ee24605e2e40489bc9e | 5a463de28cffc811a447ef66fb9dbc28762691ba | refs/heads/master | 2020-03-17T23:41:45.247288 | 2018-09-07T19:19:03 | 2018-09-07T19:19:03 | 134,056,015 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 170 | java | /* This file was generated by SableCC (http://www.sablecc.org/). */
package compilador.node;
public abstract class PCondComandoCasos extends Node
{
// Empty body
}
| [
"prlsantos@dcomp.ufs.br"
] | prlsantos@dcomp.ufs.br |
5da2e65bb6eab60f3800077fe9d8c3d4a2384f1f | c200302405bde4e5eaaf164f12f2f42317481c9e | /Java/Study/src/BinarySearchTrees/Node.java | a9e4ef92cd4082bf741cb01b5ffa76547ee70c69 | [
"MIT"
] | permissive | blakfeld/Data-Structures-and-Algoritms-Practice | cd94b67a78460a99cedba34ff40df18c9046ba15 | 6c3d76bc0220cf7e06c4c1746cd1df547dbf1b38 | refs/heads/master | 2021-01-17T17:10:47.113436 | 2017-03-08T14:38:46 | 2017-03-08T14:38:46 | 60,920,613 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,481 | java | package BinarySearchTrees;
/**
* Created by blakfeld on 2/17/16.
*/
public class Node<T extends Comparable<T>> {
private T data;
private Node<T> leftChild;
private Node<T> rightChild;
public Node(T data) {
this.data = data;
}
public void insert(T newData) {
if (newData.compareTo(data) < 0) {
if (this.leftChild != null) {
this.leftChild.insert(newData);
} else {
this.leftChild = new Node<T>(newData);
}
} else {
if (this.rightChild != null) {
this.rightChild.insert(newData);
} else {
this.rightChild = new Node<T>(newData);
}
}
}
public void traverseInOrder() {
if (this.leftChild != null) {
this.leftChild.traverseInOrder();
}
System.out.print(this + "-");
if (this.rightChild != null) {
this.rightChild.traverseInOrder();
}
}
public Node<T> remove(T data, Node<T> root) {
// Base Case
if (root == null) return root;
// Search to left: Data we're searching for is smaller
if (data.compareTo(root.getData()) < 0) {
Node<T> tempNode = remove(data, root.getLeftChild());
root.setLeftChild(tempNode);
// Search to the right: Data we're searching for is larger.
} else if (data.compareTo(root.getData()) > 0) {
Node<T> tempNode = remove(data, root.getRightChild());
root.setRightChild(tempNode);
// We've found the node we're searching for
} else {
// Node with one child or no children at all
if (root.getLeftChild() == null) {
Node<T> tempNode = root.getRightChild();
root = null;
return tempNode;
} else if (root.getRightChild() == null) {
Node<T> tempNode = root.getLeftChild();
root = null;
return tempNode;
}
// Node has two children. We must get a successor -- the node with the smallest value in the right subtree
Node<T> tempNode = this.getMinValue(root.getRightChild());
root.setData(tempNode.getData());
// We have to remove the in order successor
root.setRightChild(remove(tempNode.getData(), root.getRightChild()));
}
return root;
}
public Node<T> getMinValue(Node<T> node) {
Node<T> currentNode = node;
while(currentNode.getLeftChild() != null) {
currentNode = currentNode.getLeftChild();
}
return currentNode;
}
public Node<T> getMaxValue(Node<T> node) {
Node<T> currentNode = node;
while(currentNode.getRightChild() != null) {
currentNode = currentNode.getRightChild();
}
return currentNode;
}
@Override
public String toString() {
return "" + this.data;
}
public T getData() {
return data;
}
public void setData(T data) {
this.data = data;
}
public Node<T> getLeftChild() {
return leftChild;
}
public void setLeftChild(Node<T> leftChild) {
this.leftChild = leftChild;
}
public Node<T> getRightChild() {
return rightChild;
}
public void setRightChild(Node<T> rightChild) {
this.rightChild = rightChild;
}
}
| [
"Corwin.Brown@rackspace.com"
] | Corwin.Brown@rackspace.com |
4ec2e9e1b902b5da673ce928dec61bf7ff0eae09 | a885959b366e21e607858f65a90bcd043f0d8226 | /Pavel Kashuk/src/Lesson7/fihter/Fighter.java | 814ec32f80757c2ed5db1a57ed700b8bc0119265 | [] | no_license | Alexey79cs50/java-elementary-0804 | 3bb69214f2fb51305a86eb2192d7b3b072eaad0d | 11e06b1badc34e2581344ab5b9eb216a1270dcac | refs/heads/master | 2023-05-08T06:45:07.345561 | 2021-05-30T17:07:15 | 2021-05-30T17:07:15 | 255,117,522 | 1 | 0 | null | 2021-05-30T17:07:16 | 2020-04-12T15:53:44 | Java | UTF-8 | Java | false | false | 3,849 | java | package Lesson7.fihter;
/*
2) Придумайте еще 2 каких-нибудь объекта из реальной жизни и реализуйте это с помощью класса.
*/
public class Fighter {
private String name;
private int age;
private int power;
private int stamina;
private String skill;
public Fighter() {
power = 0;
stamina = 0;
skill = "Beginner";
}
public void setName(String name) {
this.name = name;
}
public String getName() {
return name;
}
public void setAge(int age) {
this.age = age;
}
public int getAge() {
return age;
}
public int getPower() {
return power;
}
public int getStamina() {
return stamina;
}
public boolean checkAge (int age) {
if (age < 15 && age != 0) {
System.out.println("You're too young. For start training\n" +
"Need permission from parents");
return false;
}
else if (age > 15 && age < 50) {
System.out.println("Everything is fine. Let's start");
return true;
}
else if (age > 50 && age < 80) {
System.out.println("You're too old. For start training\n" +
"Need permission from doctor");
return false;
}
else {
System.out.println("Show passport");
return false;
}
}
private void addPowerAndStamina(int power, int stamina) {
if (power < 100 && stamina < 100) {
this.power += power;
this.stamina += stamina;
} else {
System.out.println("You are very strong now. Go fight!");
}
}
public void checkSkill() {
if (stamina < 30 && power < 30) {
this.skill = "Beginner";
System.out.printf("You are %s, need more training\n",skill);
}
else if (stamina < 70 && power < 70) {
this.skill = "Amateur";
System.out.printf("You are %s, need a little training\n",skill);
}
else if (stamina <= 100 && power <= 100) {
this.skill = "Professional";
System.out.printf("You are %s, go fight\n",skill);
}
}
public void showResult() {
System.out.printf("%s have %s power, and %s stamina.\n" +
"%s skill is %s\n",name,power,stamina,name,skill);
}
public void showInfo() {
System.out.println("Name is " + name + ", age is " + age);
}
public void running() {
if (checkAge(age)) {
System.out.println(name + " is running");
addPowerAndStamina(5, 10);
} else {
System.out.println("Sorry, we're closed!");
}
}
public void swimming() {
if (checkAge(age)) {
System.out.println(name + " is swimming");
addPowerAndStamina(5, 10);
} else {
System.out.println("Sorry, we're closed!");
}
}
public void visitGym() {
if (checkAge(age)) {
System.out.println(name + " is training in the gym");
addPowerAndStamina(30, 15);
} else {
System.out.println("Sorry, we're closed!");
}
}
public void sparring() {
if (checkAge(age)) {
System.out.println(name + " is participate in the training fight");
addPowerAndStamina(20, 25);
} else {
System.out.println("Sorry, we're closed!");
}
}
public void rest() {
if (checkAge(age)) {
System.out.println(name + " need some rest after training");
addPowerAndStamina(10, 10);
} else {
System.out.println("Sorry, we're closed!");
}
}
}
| [
"pavel.kashuk@gmail.com"
] | pavel.kashuk@gmail.com |
daa632db28ba3bca448af2443ac4186000b1a9b0 | b89d87bed7b731a38a7e067b418d4326e929b2a3 | /src/com/online/dao/Impl/ExamGradeDaoImp.java | 999fddcefb7a69ccfda35525ae9f6a84bcf5de17 | [] | no_license | xuxianda/TestOnline | 7452cd1860682920b1d1219d8839d4d06055437c | 1a463f11c39978870ea2d4b6d7f343e0f5ece062 | refs/heads/master | 2022-04-16T02:23:43.950670 | 2020-04-14T06:42:54 | 2020-04-14T06:42:54 | 255,530,617 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,629 | java | package com.online.dao.Impl;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.LinkedList;
import java.util.List;
import org.nutz.dao.Cnd;
import org.nutz.dao.Sqls;
import org.nutz.dao.impl.NutDao;
import org.nutz.dao.pager.Pager;
import org.nutz.dao.sql.Sql;
import org.nutz.dao.sql.SqlCallback;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import com.online.dao.ExamGradeDao;
import com.online.domain.Page;
import com.online.domain.UserDomain;
import com.online.domain.UserQuestionsDomain;
import com.online.domain.UserTestDomain;
import com.online.domain.UserTestRecordDomain;
/**
* 试卷批阅dao层实现类
*
* @author zjp
*
*/
@Repository
public class ExamGradeDaoImp implements ExamGradeDao {
@Autowired
private NutDao nutDao;
/**
* 自动批阅选择题
*
* @param testid
* 考试编号
* @return
*/
@Override
public boolean ExamAuto(int testid) {
UserTestRecordDomain p = testCheck(testid);
if (p != null) {
Sql sql = Sqls.create("SELECT SUM(score) score FROM \r\n"
+ " (SELECT uqid,uid,a.`qid`,qkey,testid FROM (SELECT a.uqid,uid,qid,qkey,testid FROM user_questions_db a JOIN userquest_usertest_db b WHERE testid=@testid AND a.uqid=b.uqid) a JOIN questions_questionstype_db b WHERE a.qid = b.`qid` AND b.`tyid` IN (1,2))\r\n"
+ " c JOIN (SELECT * FROM questions_db) d WHERE c.`qid` =d.qid AND c.qkey = d.qkey");
sql.params().set("testid", testid);
sql.setCallback(Sqls.callback.entities());
sql.setEntity(nutDao.getEntity(UserTestRecordDomain.class));
nutDao.execute(sql);
List<UserTestRecordDomain> list = sql.getList(UserTestRecordDomain.class);
int score = list.get(0).getScore();
p.setScore(score);
nutDao.update(p);
return true;
}
return false;
}
@Override
public UserTestRecordDomain testCheck(int testid) {
UserTestRecordDomain p = nutDao.fetch(UserTestRecordDomain.class, Cnd.where("testid", "=", testid));
return p;
}
/**
* 查询所有未批阅试卷
*/
@Override
public Page<UserTestRecordDomain> getTest(int page, int rows) {
Pager pager = nutDao.createPager(page, rows);
Page<UserTestRecordDomain> pages = new Page<>();
pages.setTotal(nutDao.query(UserTestRecordDomain.class, Cnd.where("0", "=", 0)).size());
pages.setRows(nutDao.query(UserTestRecordDomain.class, Cnd.where("0", "=", 0), pager));
return pages;
}
/**
* 模糊查询未批阅试卷
*
* @param tname
* 试卷名称
* @param uname
* 用户名称
* @param page
* @param rows
* @return
*/
@Override
public Page<UserTestRecordDomain> getTest(String tname, String uname, int page, int rows) {
Pager pager = nutDao.createPager(page, rows);
Page<UserTestRecordDomain> pages = new Page<>();
pages.setTotal(nutDao.query(UserTestRecordDomain.class,
Cnd.wrap("tname like '%" + tname + "%' and uname like '%" + uname + "%'")).size());
pages.setRows(nutDao.query(UserTestRecordDomain.class,
Cnd.wrap("tname like '%" + tname + "%' and uname like '%" + uname + "%'"), pager));
return pages;
}
/**
* 根据考试Id获取答题卡等题目信息
*
* @param testid
* 考试ID
* @param page
* @param rows
* @return
*/
@Override
public Page<UserQuestionsDomain> getStudentKey(int testid, int page, int rows) {
Pager pager = nutDao.createPager(page, rows);
Page<UserQuestionsDomain> pages = new Page<>();
pages.setTotal(nutDao.query(UserQuestionsDomain.class, Cnd.where("testid", "=", testid)).size());
pages.setRows(nutDao.query(UserQuestionsDomain.class, Cnd.where("testid", "=", testid), pager));
return pages;
}
/**
* 按题目类型获取答题卡题目
*
* @param testid
* @param tyid
* 题目类型
* @param page
* @param rows
* @return
*/
@Override
public Page<UserQuestionsDomain> getJ(int testid, int tyid, int page, int rows) {
Pager pager = nutDao.createPager(page, rows);
Page<UserQuestionsDomain> pages = new Page<>();
pages.setTotal(nutDao.query(UserQuestionsDomain.class, Cnd.where("testid", "=", testid).and("tyid", "=", tyid))
.size());
pages.setRows(nutDao.query(UserQuestionsDomain.class, Cnd.where("testid", "=", testid).and("tyid", "=", tyid),
pager));
return pages;
}
@Override
public boolean update(int testid, int score) {
Sql sql = Sqls.create("update usertest_db set score = @score,state = 1 where testid = @testid");
sql.setParam("score", score);
sql.setParam("testid", testid);
nutDao.execute(sql);
return true;
}
}
| [
"834290920@qq.com"
] | 834290920@qq.com |
4eef17601d43f89035c8c08aa9ba8893d3bb797f | f89ff07086fb12360ba54af0c682df8f710bec40 | /myProjectWebApp/src/main/java/com/learning/spring/boot/web/myProject/controller/ErrorController.java | bbf8992249a3b9dbe6a8447fe29434840ea637cf | [] | no_license | iamfurukawa/LearningSpringBoot | 2b9b2df5f7fd8ceb4ca276409e01ba4c4b4c2f47 | fab06b244d6ff88f709753e76141d4de6180a13b | refs/heads/master | 2021-05-19T17:43:57.106797 | 2020-04-18T15:45:04 | 2020-04-18T15:45:04 | 252,050,764 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 766 | java | package com.learning.spring.boot.web.myProject.controller;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.servlet.ModelAndView;
@Controller("error")
public class ErrorController {
@ExceptionHandler(Exception.class)
public ModelAndView handleException(HttpServletRequest httpServletRequest, Exception exception) {
ModelAndView modelAndView = new ModelAndView();
modelAndView.addObject("exception", exception.getStackTrace());
modelAndView.addObject("url", httpServletRequest.getRequestURL());
modelAndView.setViewName("error");
return modelAndView;
}
}
| [
"vinicius.furukawa@dcomp.sor.ufscar.br"
] | vinicius.furukawa@dcomp.sor.ufscar.br |
591a5ccd83f6dc816714e4674d0a9e219631d88a | cf2ac1e480ff208a13e594d97062b9e168101f2d | /app/src/main/java/com/example/splace/splace2.java | 463112bf6e3d1cfd3f7dcb4f81f5867c0e0641ba | [] | no_license | pedroto30/splace | 0f9d8bbdba4b3e0d7f3c75513924937e8116ff4b | 7ce20bd47614ab400fe1e850c2b33b90ac5e5ee9 | refs/heads/master | 2023-05-03T18:20:17.273397 | 2021-05-18T17:36:47 | 2021-05-18T17:36:47 | 368,616,679 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 820 | java | package com.example.splace;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import java.util.Timer;
import java.util.TimerTask;
public class splace2 extends AppCompatActivity {
public static final long SPLASH_SCREEN_DELAY=5000;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_splace2);
TimerTask time =new TimerTask() {
@Override
public void run() {
Intent intent= new Intent().setClass(splace2.this,splace3.class);
startActivity(intent);
finish();
}
};
Timer timer = new Timer();
timer.schedule(time,SPLASH_SCREEN_DELAY);
}
} | [
"84160207+pedroto30@users.noreply.github.com"
] | 84160207+pedroto30@users.noreply.github.com |
4cb607484106ca59e0e77a8b146c72f137e148ff | bb88a552ca2cbea5a8c293bbdab1067ba0b898ae | /study-common/src/main/java/com/study/utils/WebJson.java | 74fdd6505c520cf66e372d19d972e3714c24539a | [] | no_license | hexiaowenAdmin/study | 55fde5ae5a24d2e8c7c3ece55492d5852ac912e3 | 7ab293dc2f4e0b674cb0163a3019ef3523b955c9 | refs/heads/master | 2020-03-18T02:56:16.144282 | 2018-11-07T05:38:52 | 2018-11-07T05:38:52 | 134,214,501 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 896 | java | package com.study.utils;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
import com.alibaba.fastjson.JSON;
/**
* webJson写工具
* @author 何小文
*/
public class WebJson {
public static void writeJson(Object object,HttpServletResponse response) {
try {
String json = JSON.toJSONStringWithDateFormat(object, "yyyy-MM-dd HH:mm:ss");
response.setContentType("text/html;charset=utf-8");
response.getWriter().write(json);
response.getWriter().flush();
response.getWriter().close();
} catch (IOException e) {
e.printStackTrace();
}
}
public static void writeString(String str,HttpServletResponse response) {
try {
response.setContentType("text/html;charset=utf-8");
response.getWriter().write(str);
response.getWriter().flush();
response.getWriter().close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
| [
"1215617945@qq.com"
] | 1215617945@qq.com |
1d714e1daf5a318c22965fe84946adac69df2881 | 8976e917c85c975c3943a61c2d175dd42a6c615e | /src/com/alpha/util/FileSearch.java | 18468421ef40a5245cad575e318525869f28d272 | [] | no_license | AppantasyArthur/AGS-Android | 8c4fa992d8f55765918940319fc106e288aecf54 | 74182cbbe4a6130e75dcd6546a4d6d8d62295087 | refs/heads/master | 2021-01-23T18:49:10.873451 | 2013-11-05T05:49:46 | 2013-11-05T05:49:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,871 | java | package com.alpha.util;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
public class FileSearch {
private String fileNameToSearch;
private List<String> result = new ArrayList<String>();
public String getFileNameToSearch() {
return fileNameToSearch;
}
public void setFileNameToSearch(String fileNameToSearch) {
this.fileNameToSearch = fileNameToSearch;
}
public List<String> getResult() {
return result;
}
public static void main(String[] args) {
FileSearch fileSearch = new FileSearch();
//try different directory and filename :)
fileSearch.searchDirectory(new File("/Users/mkyong/websites"), "post.php");
int count = fileSearch.getResult().size();
if(count ==0){
System.out.println("\nNo result found!");
}else{
System.out.println("\nFound " + count + " result!\n");
for (String matched : fileSearch.getResult()){
System.out.println("Found : " + matched);
}
}
}
public void searchDirectory(File directory, String fileNameToSearch) {
setFileNameToSearch(fileNameToSearch);
if (directory.isDirectory()) {
search(directory);
} else {
System.out.println(directory.getAbsoluteFile() + " is not a directory!");
}
}
private void search(File file) {
if (file.isDirectory()) {
System.out.println("Searching directory ... " + file.getAbsoluteFile());
//do you have permission to read this directory?
if (file.canRead()) {
for (File temp : file.listFiles()) {
if (temp.isDirectory()) {
search(temp);
} else {
if (getFileNameToSearch().equals(temp.getName().toLowerCase())) {
result.add(temp.getAbsoluteFile().toString());
}
}
}
} else {
System.out.println(file.getAbsoluteFile() + "Permission Denied");
}
}
}
}
| [
"appantasyarthur@hotmail.com"
] | appantasyarthur@hotmail.com |
dc9a25d6bd755e62e7b156b6d7226b0d7571c03e | fee07509619ca10be0b08059720886f9a1f2048d | /bdnav-provider/school-provider/src/main/java/com/bdxh/school/persistence/SchoolPermissionMapper.java | 58a6dca6510d0ac52c9d64678b0f6c97a444c207 | [
"Apache-2.0"
] | permissive | jiageh08/tea-springboot | 70a68c7518f2470268ad8fa03ea7dfa48dff948c | 91892209a70b93e90eaee0a01a4f71e188f4a61a | refs/heads/master | 2022-12-05T13:10:06.654077 | 2020-08-07T01:29:56 | 2020-08-07T01:29:56 | 285,574,085 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 809 | java | package com.bdxh.school.persistence;
import com.bdxh.school.entity.SchoolPermission;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;
import java.util.List;
@Repository
public interface SchoolPermissionMapper extends Mapper<SchoolPermission> {
//角色id查询父节点
List<SchoolPermission> findPermissionByRoleId(@Param("roleIds") List<Long> roleId, @Param("type") Byte type, @Param("schoolId") Long schoolId);
//批量删除
Integer batchDelPermissionInIds(@Param("ids") List<Long> ids);
//角色id所有权限
List<SchoolPermission> findPermission(@Param("roleId") Long roleId);
//用户id查询节点
List<SchoolPermission> findPermissionByUserId(@Param("userId") Long userId);
} | [
"wangjp@wehgc.com"
] | wangjp@wehgc.com |
442bd510966bc9458d39e7fdf63d77fdcebd6931 | d5a1d75bf3c7d8cc8a4c489a9a14af19e7297133 | /src/test/java/de/jeha/s3srv/common/security/AuthorizationUtilsTest.java | 1bde33be485afc429ddee81c9a66326fced900ab | [
"MIT"
] | permissive | jenshadlich/s3srv | 42a6513ff4213c100d8007dccff6d6637d8791b1 | 34342a6a7b311114ce3c0c3078fe2a740c5289f6 | refs/heads/master | 2023-04-14T02:22:56.993491 | 2023-04-06T20:20:40 | 2023-04-06T20:20:40 | 61,786,809 | 10 | 4 | null | null | null | null | UTF-8 | Java | false | false | 774 | java | package de.jeha.s3srv.common.security;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
public class AuthorizationUtilsTest {
@Test
public void testCheckAuthorization() {
assertTrue(AuthorizationUtils.checkAuthorization(
"AWS foo:opnPRxWyGAkna6soKrR8OhGRfxQ=",
new Credentials("foo", "bar"),
"PUT",
null,
null,
"Wed, 06 Jul 2016 15:53:17 GMT",
"/test-bucket/"));
}
@Test
public void testExtractAccessKey() {
assertEquals("foo", AuthorizationUtils.extractAccessKey("AWS foo:opnPRxWyGAkna6soKrR8OhGRfxQ="));
}
}
| [
"jenshadlich@googlemail.com"
] | jenshadlich@googlemail.com |
7165034f265b77ac4317a05f0645c36979364010 | abeccc0f9832c8a3d42becad96b7435d423e0d6b | /focp1/dataType/src/relational.java | 86f18378462e934417597cc8135ddbbdb24952ca | [] | no_license | bhupeshyadav14/bhupeshyadav_18csu099 | 7638edb5ec466575491ef50dfbb917350fc8f6b0 | 16e379b26e4d4d5631a3782935fde6f5164712f7 | refs/heads/master | 2020-04-15T09:54:06.453563 | 2019-02-04T05:59:54 | 2019-02-04T05:59:54 | 164,570,809 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 618 | java | import java.util.*;
class RelationalOperator
{
public static void main(String[] args)
{
int num1 = 12;
short num2 = 10;
boolean check1 ;
boolean check2 ;
check1 = num1>0?true:false;
check2= num1<0?true:false;
boolean check3 = (!check1 == check2);
boolean check4 = (check1 != check2 && false);
boolean check5 = (check1 || check2);
System.out.println("check1 : " + check1);
System.out.println("check2 : " + check2);
System.out.println("check3 : " + check3);
System.out.println("check4 : " + check4);
System.out.println("check5 : " + check5);
}
}
| [
"bhupeshyadav0106@gmail.com"
] | bhupeshyadav0106@gmail.com |
2b3af7d7a097518b8d2710a8074863bb397e6f40 | 951a2cebfb3b742a0b9da0dee787f4610505292c | /toq/Misc/JavaSrc/com/qualcomm/toq/smartwatch/ui/adapter/WeatherListAdapter.java | 1a610c88d8e3d31c69e7b874c77dbb689553dd99 | [] | no_license | marciallus/mytoqmanager | eca30683508878b712e9c1c6642f39f34c2e257b | 65fe1d54e8593900262d5b263d75feb646c015e6 | refs/heads/master | 2020-05-17T01:03:44.121469 | 2014-12-10T07:22:14 | 2014-12-10T07:22:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 7,749 | java | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) fieldsfirst noctor space
package com.qualcomm.toq.smartwatch.ui.adapter;
import android.content.Context;
import android.view.*;
import android.widget.*;
import com.qualcomm.toq.base.utils.Log;
import com.qualcomm.toq.base.utils.ToqData;
import java.util.ArrayList;
public class WeatherListAdapter extends BaseAdapter
{
public static interface AdapterInterface
{
public abstract void deleteCity(int i);
public abstract void refreshList();
}
private class ViewHolder
{
Button delete;
public View divider;
ImageView dragImage;
View emptyView;
LinearLayout layout;
final WeatherListAdapter this$0;
TextView tvName1;
TextView tvName2;
ImageView view;
private ViewHolder()
{
this$0 = WeatherListAdapter.this;
super();
}
}
private static final String TAG = "AmbientListAdapter";
final String CLICKED = "clicked";
final String UNCLICKED = "unclicked";
private AdapterInterface activityRef;
private ArrayList ambientList;
int deleteSelectedPosition;
boolean isDeleteVisible;
private LayoutInflater mInflater;
public WeatherListAdapter(Context context, AdapterInterface adapterinterface)
{
activityRef = null;
deleteSelectedPosition = 100;
isDeleteVisible = false;
mInflater = LayoutInflater.from(context);
activityRef = adapterinterface;
}
public int getCount()
{
if (ambientList == null)
return 0;
else
return ambientList.size();
}
public Object getItem(int i)
{
return Integer.valueOf(i);
}
public long getItemId(int i)
{
return (long)i;
}
public String getStringAtPosition(int i)
{
return (String)ambientList.get(i);
}
public View getView(final int city_position, View view, ViewGroup viewgroup)
{
Log.i("AmbientListAdapter", "-----------------AmbientListAdapter----------");
final ViewHolder holder;
if (view == null)
{
view = mInflater.inflate(0x7f030010, null);
holder = new ViewHolder();
holder.tvName1 = (TextView)view.findViewById(0x7f090099);
holder.tvName2 = (TextView)view.findViewById(0x7f09009a);
holder.view = (ImageView)view.findViewById(0x7f090086);
holder.dragImage = (ImageView)view.findViewById(0x7f09008a);
holder.divider = view.findViewById(0x7f090043);
holder.delete = (Button)view.findViewById(0x7f090089);
holder.layout = (LinearLayout)view.findViewById(0x7f090098);
holder.emptyView = view.findViewById(0x7f09009c);
view.setTag(holder);
} else
{
holder = (ViewHolder)view.getTag();
}
if (ToqData.getInstance().getRegularTypeFace() != null)
holder.delete.setTypeface(ToqData.getInstance().getRegularTypeFace());
isDeleteVisible = false;
String as[] = ((String)ambientList.get(city_position)).split(",");
Log.d("AmbientListAdapter", (new StringBuilder()).append("Name of the entries: ").append(as[0]).append(as[1]).append(": ").append(as[2]).toString());
if (as.length >= 1 && as[0] != null)
holder.tvName1.setText(as[0]);
if (as.length == 2 && as[1] != null)
holder.tvName2.setText(as[1]);
else
if (as.length == 3 && as[1] != null && as[2] != null)
holder.tvName2.setText((new StringBuilder()).append(as[1]).append(",").append(as[2]).toString());
holder.view.setOnClickListener(new android.view.View.OnClickListener() {
final WeatherListAdapter this$0;
final ViewHolder val$holder;
public void onClick(View view1)
{
Log.i("AmbientListAdapter", "X button got clicked");
if (!isDeleteVisible)
{
Log.i("AmbientListAdapter", "Enabling Delete");
isDeleteVisible = true;
holder.delete.setVisibility(0);
holder.dragImage.setVisibility(8);
} else
{
isDeleteVisible = false;
activityRef.refreshList();
}
Log.i("AmbientListAdapter", (new StringBuilder()).append("After click: ").append(isDeleteVisible).toString());
}
{
this$0 = WeatherListAdapter.this;
holder = viewholder;
super();
}
}
);
holder.delete.setOnClickListener(new android.view.View.OnClickListener() {
final WeatherListAdapter this$0;
final int val$city_position;
public void onClick(View view1)
{
Log.i("AmbientListAdapter", " DELETE BUTTON clicked");
Log.i("AmbientListAdapter", (new StringBuilder()).append("----- city position is ").append(city_position).toString());
isDeleteVisible = false;
activityRef.deleteCity(city_position);
}
{
this$0 = WeatherListAdapter.this;
city_position = i;
super();
}
}
);
holder.layout.setOnClickListener(new android.view.View.OnClickListener() {
final WeatherListAdapter this$0;
public void onClick(View view1)
{
Log.i("AmbientListAdapter", (new StringBuilder()).append("Layout got clicked: ").append(isDeleteVisible).toString());
if (isDeleteVisible)
{
isDeleteVisible = false;
activityRef.refreshList();
}
}
{
this$0 = WeatherListAdapter.this;
super();
}
}
);
holder.divider.setOnClickListener(new android.view.View.OnClickListener() {
final WeatherListAdapter this$0;
public void onClick(View view1)
{
Log.i("AmbientListAdapter", (new StringBuilder()).append("Divider got clicked: ").append(isDeleteVisible).toString());
if (isDeleteVisible)
{
isDeleteVisible = false;
activityRef.refreshList();
}
}
{
this$0 = WeatherListAdapter.this;
super();
}
}
);
holder.emptyView.setOnClickListener(new android.view.View.OnClickListener() {
final WeatherListAdapter this$0;
public void onClick(View view1)
{
Log.i("AmbientListAdapter", (new StringBuilder()).append("Empty got clicked: ").append(isDeleteVisible).toString());
if (isDeleteVisible)
{
isDeleteVisible = false;
activityRef.refreshList();
}
}
{
this$0 = WeatherListAdapter.this;
super();
}
}
);
holder.dragImage.setVisibility(0);
holder.delete.setVisibility(8);
return view;
}
public void setLists(ArrayList arraylist)
{
ambientList = arraylist;
}
public void setUpdateList(ArrayList arraylist)
{
ambientList = arraylist;
}
}
| [
"marc.lanouiller@gmail.com"
] | marc.lanouiller@gmail.com |
66f9ca386382807605b90c304ea1318ca5432825 | b31927ce81228084f9db1caf2ec948e53110da3e | /PracticoJsp/src/com/practicoJSP/servlet/servletMDB.java | b2b76f4bedfb4debc2f6ed258e2a59845f08f7e8 | [] | no_license | dbarreto22/practicoJsp | 5af2471cbb72b4d006344506dd7cc7e333ea79da | 1d00e0e37dcccf66accf0aa90ac7db4f7ff1df73 | refs/heads/master | 2020-05-17T12:45:35.559391 | 2019-04-29T23:07:54 | 2019-04-29T23:07:54 | 183,718,524 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,164 | java | package com.practicoJSP.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.codehaus.plexus.logging.Logger;
import com.practicoJSP.clases.NoticiaJsp;
import com.practicoJsp.MDB.NoticiaQUEUE;
import javax.jms.Queue;
import javax.annotation.Resource;
import javax.inject.Inject;
import javax.jms.Destination;
import javax.jms.JMSContext;
import javax.jms.JMSDestinationDefinition;
import javax.jms.JMSDestinationDefinitions;
/**
* Servlet implementation class servletJsp
*/
/*
@JMSDestinationDefinitions(
value = {
@JMSDestinationDefinition(
name = "java:/queue/NOTICIAQueue",
interfaceName = "javax.jms.Queue",
destinationName = "NoticiaQueue"
)
}
)*/
@WebServlet("/mdb")
public class servletMDB extends HttpServlet {
/* private static final long serialVersionUID = -8314035702649252239L;
private static final int MSG_COUNT = 5;
@Inject
private JMSContext context;
@Resource(lookup = "java:/queue/NOTICIAQueue")
private Queue queue;*/
/**
* @see HttpServlet#HttpServlet()
*/
public servletMDB() {
super();
// TODO Auto-generated constructor stub
}
/**
* @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
*/
@Override
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
/* response.setContentType("text/html");
String mensaje = request.getParameter("mensaje");
// mensaje.split(regex)
PrintWriter out = response.getWriter();
out.write("<h1>Quickstart: Example demonstrates the use of <strong>JMS 2.0</strong> and <strong>EJB 3.2 Message-Driven Bean</strong> in JBoss EAP.</h1>");
try {
final Destination destination = queue;
out.write("<p>Sending messages to <em>" + destination + "</em></p>");
out.write("<h2>The following messages will be sent to the destination:</h2>");
for (int i = 0; i < MSG_COUNT; i++) {
String text = "This is message " + (i + 1);
context.createProducer().send(destination, text);
out.write("Message (" + i + "): " + text + "</br>");
}
out.write("<p><i>Go to your JBoss EAP server console or server log to see the result of messages processing.</i></p>");
} finally {
if (out != null) {
out.close();
}
}*/
}
/**
* @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
*/
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
doGet(request, response);
}
}
| [
"ddiegob2212@gmail.com"
] | ddiegob2212@gmail.com |
0946ede7e43c6bdc08f8914b981854006be1f319 | c14bbd6f31cabb9e364055baa743a09dd91284f9 | /mylibrary/src/main/java/com/mylibrary/http/cookie/CookieInterceptor.java | f7b56c2ee1a4f9ea5aa0448c6f157b578816cbac | [] | no_license | yangguanshuai/splb | d578eeb405a44a77ba8feb525a4c331706c4fcd8 | aea643aa74d4f098377d1dcb3f4dfd0a42f46f9a | refs/heads/master | 2020-03-21T07:27:21.551885 | 2018-06-22T09:08:04 | 2018-06-22T09:08:04 | 136,793,476 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,931 | java | package com.mylibrary.http.cookie;
import android.util.Log;
import com.mylibrary.utils.CookieDbUtil;
import java.io.IOException;
import java.nio.charset.Charset;
import okhttp3.Interceptor;
import okhttp3.MediaType;
import okhttp3.Request;
import okhttp3.Response;
import okhttp3.ResponseBody;
import okio.Buffer;
import okio.BufferedSource;
public class CookieInterceptor implements Interceptor{
private boolean mCache;
private String mUrl;
private CookieDbUtil mCookieDbUtil;
public CookieInterceptor( boolean pCache, String pUrl) {
mCookieDbUtil = CookieDbUtil.getInstance();
mCache = pCache;
mUrl = pUrl;
}
@Override
public Response intercept(Chain chain) throws IOException {
Request request = chain.request();
Response response = chain.proceed(request);
if(mCache){
ResponseBody body = response.body();
BufferedSource source = body.source();
source.request(Long.MAX_VALUE); // Buffer the entire body.
Buffer buffer = source.buffer();
Charset charset = Charset.defaultCharset();
MediaType contentType = body.contentType();
if (contentType != null) {
charset = contentType.charset(charset);
}
String bodyString = buffer.clone().readString(charset);
Log.d("cookie",bodyString);
CookieResulte resulte = mCookieDbUtil.queryCookieBy(mUrl);
long time=System.currentTimeMillis();
/*保存和更新本地数据*/
if(resulte==null){
resulte =new CookieResulte(mUrl,bodyString,time);
mCookieDbUtil.saveCookie(resulte);
}else{
resulte.setResult(bodyString);
resulte.setTime(time);
mCookieDbUtil.updateCookie(resulte);
}
}
return response;
}
}
| [
"424128873@qq.com"
] | 424128873@qq.com |
6696f8b37d3adb8a16a598080680104e03c2db13 | 89cf819950dfa6504dfb8c21389d609da7be95a4 | /app/src/main/java/com/example/contactssampleapp/models/ContactDao.java | 9cf2cd3085f47c445b88cfa39bcba8979a714ae4 | [] | no_license | JoseMarrima/ContactsApp | 556a20799649e3dc8ce2ab4fe9352b8549e6443c | 23aaac29cfd03d7cab466dbfff8b65946ae3d89f | refs/heads/master | 2020-06-19T20:51:07.702520 | 2019-07-17T22:20:20 | 2019-07-17T22:20:20 | 196,867,003 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 452 | java | package com.example.contactssampleapp.models;
import androidx.lifecycle.LiveData;
import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Query;
import java.util.List;
@Dao
public interface ContactDao {
@Insert(onConflict = OnConflictStrategy.REPLACE)
void insertContact(Contact contact);
@Query("SELECT * from contact_table")
LiveData<List<Contact>> getAllContacts();
}
| [
"benderspor@gmail.com"
] | benderspor@gmail.com |
9fcd6b503f78bf35c9696f6c5c7175b3c7cb90a4 | 70b5ab181271fae1cba51f3e6c08a8c5b07badec | /src/MyEliza.java | a9f12cb7d61ebfaeff40a9c6bfba4d5ee033ec1d | [] | no_license | JasmineJans/ElizaChatBotPsychiatrist | 6b8e8368f2cfa6c15743ecb2ea31f6c332423178 | e90b3aee9305f68b9bf0f10dc81d703a4780d7ef | refs/heads/master | 2021-01-23T08:21:08.340693 | 2017-03-28T20:21:21 | 2017-03-28T20:21:21 | 86,503,662 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,786 | java | import java.io.File;
import java.io.FileNotFoundException;
import java.util.*;
/**
* @author Jasmine Jans
* @version HW 2: My Eliza
* date 2/09/2016
* class CPSC 224 02
* professor Worobec
*
* This program takes 2 files and loads them into 3 different String arrays.
* One array holds default prompts, one holds terms that would possibly be entered
* by a user, and the third holds prompts that would match these terms. Then this
* program takes user input and attempts to match it with a value in the terms array
* and find the correlating prompt to the term and print that out. This continues in a loop
* until the user enters exit and then the program ends.
*/
public class MyEliza {
//String array of the possible terms in an Eliza script
private String[] terms;
//String array of the possible prompts in an Eliza script
private String[] prompts;
//String array of the default prompts in an Eliza script
private String[] defaults;
//integer to track the matches of terms in a file and user input
private int matches;
//integer to track the responses to terms given throughout the program
private int responses;
/**
* This method initializes the defaults array by taking in a
* file and loading the strings into the array.
*
* @param defaultsFile, a file to load into the defaults array
* @throws FileNotFoundException if a file is not found
*/
public void initializeDefaults(File defaultsFile) throws FileNotFoundException{
Scanner defaultsIn = new Scanner(defaultsFile);
defaults = new String[(int) fileLineCount(defaultsFile)];
int i = 0;
while(defaultsIn.hasNextLine()){
defaults[i] = defaultsIn.nextLine();
i++;
}
}
/**
* This method initializes the prompts and terms arrays by taking in a
* file and loading the strings into the arrays where each line alternates
* starting with terms at line 0 and then prompts line 1 etc.
*
* @param termsFile a file to load into the terms and prompts file
* @throws FileNotFoundException if a file is not found
*/
public void initializeTerms(File termsFile) throws FileNotFoundException{
Scanner termsIn = new Scanner(termsFile);
int oddOrEven = 0;
prompts = new String [fileLineCount(termsFile)/2];
terms = new String[fileLineCount(termsFile)/2];
while(termsIn.hasNextLine()){
terms[oddOrEven] = termsIn.nextLine();
prompts[oddOrEven] = termsIn.nextLine();
oddOrEven++;
}
}
/**
* This method returns the correlating prompt to a matched
* term from the user and in the terms array.
*
* @param term a String that takes the terms given through
* the scanner to compare to the terms array.
*/
public void getPrompt(String term){
Random random = new Random();
String[] newTerm = term.split("\\s+");
int currentMatch = 0;
for(int i = 0; i < newTerm.length; i++){
for(int j=0; j < terms.length; j++){
if(terms[j]==null){
j = terms.length;
}
else if (terms[j].equalsIgnoreCase(newTerm[i])){
System.out.println(prompts[j]);
currentMatch ++;
matches++;
responses++;
j = terms.length;
i = newTerm.length;
}
}
}
if(currentMatch == 0){
//System.out.println(random.nextInt(defaults.length));
if(defaults[random.nextInt(defaults.length)]!= null){
System.out.println(defaults[random.nextInt(defaults.length)]);
}
else{
System.out.println(defaults[1]);
}
responses++;
}
}
//Extra Methods
/**
* This method gets the number of lines in a given file
*
* @param a File to have its lines counted
* @return an integer that represents the number of lines in a file
* @throws FileNotFoundException if file not found
*/
private int fileLineCount(File inFile) throws FileNotFoundException{
int lineCount = 0;
Scanner in = new Scanner(inFile);
while(in.hasNextLine()){
in.nextLine();
lineCount++;
}
return lineCount;
}
/**
* This method gets the amount of responses made throughout the
* users interaction with MyEliza
*
* @return an integer that represents the number of responses
*/
public int getResponses(){
return responses;
}
/**
* This method gets the amount of matches made throughout the
* users interaction with MyEliza
*
* @return an integer that represents the number of matches
*/
public int getMatches(){
return matches;
}
/**
* Main function that creates a MyEliza object and tests its
* function.
* @param args two files to be loaded into arrays Default, Prompts and Terms
* @throws FileNotFoundException if the files are not found
*/
public static void main(String[] args) throws FileNotFoundException {
// TODO Auto-generated method stub
//WILL PRODUCE ERROR IN ECLIPSE: only if running in main
///*
if(args.length < 2){
System.out.println("You did not provide enough parameters! We need two parameters here!");
System.exit(1);
}
//*/
MyEliza eliza1 = new MyEliza();
String termsFileName = "terms.txt";
String defaultsFileName = "defaults.txt";
File defaultsFile = new File (defaultsFileName);
eliza1.initializeDefaults(defaultsFile);
File termsFile = new File(termsFileName);
eliza1.initializeTerms(termsFile);
System.out.println("Hello, I am the psychotherapist. Tell me your problems!");
System.out.println("Hit return after each entry and no punctuation please.");
boolean loop = true;
Scanner in = new Scanner(System.in);
while(loop){
String line = in.nextLine();
if(line.equalsIgnoreCase("exit")){
loop = false;
System.out.println("Thanks for listening to my " + eliza1.getResponses() + " response(s)");
System.out.println("that came from our " + eliza1.matches + " match(es)!");
}
else{
eliza1.getPrompt(line);
}
}
in.close();
}
}
| [
"jasminejans@Jasmines-MacBook-Pro-2.local"
] | jasminejans@Jasmines-MacBook-Pro-2.local |
50c5269b59c868395e2296e65ff61591d71e4ac2 | aa68bd7ebe3f2620c4c87ca0c3f087b2376646fd | /org.jage.services-address/src/test/java/org/jage/address/selector/AnycastSelectorTest.java | 0139cfb3d76e6033bce95a55a2e294c3090680ee | [] | no_license | agh-miss/ResourceMonitor | 274374cf69647cd0f9a711d36e3990f22ea8bcdf | 105238010b84af11231e2033a37bb9793b48a06c | refs/heads/master | 2021-01-25T07:39:35.760487 | 2012-06-04T21:49:33 | 2012-06-04T21:49:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,364 | java | /**
* Copyright (C) 2006 - 2010
* Pawel Kedzior
* Tomasz Kmiecik
* Kamil Pietak
* Krzysztof Sikora
* Adam Wos
* and other students of AGH University of Science and Technology
* as indicated in each file separately.
*
* This file is part of jAgE.
*
* jAgE 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 3 of the License, or
* (at your option) any later version.
*
* jAgE 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 jAgE. If not, see http://www.gnu.org/licenses/
*/
/*
* File: AnycastSelectorTest.java
* Created: 2009-04-21
* Author: kpietak
* $Id: AnycastSelectorTest.java 4 2011-12-22 15:10:04Z faber $
*/
package org.jage.address.selector;
import java.util.Collections;
import org.junit.Before;
import org.junit.Test;
import org.jage.address.IAgentAddress;
public class AnycastSelectorTest extends AbstractAddressSelectorTest {
private AnycastSelector<IAgentAddress> selector;
@Before
public void setUp() {
selector = new AnycastSelector<IAgentAddress>();
selector.random = random;
}
@Test
public void testAddresses() {
testAddressesOneOf(all);
}
@Test
public void testSelected() {
testSelectedOneOf(all);
}
@Test
@SuppressWarnings("unchecked")
public void testSelectedWithEmptyUsedSet() {
testSelectedOneOf(all, Collections.EMPTY_SET, all);
}
/**
* Overridden method because anycast should ignore used set, therefore no exception should be thrown.
*/
@Test
@Override
public void testInitializeWithNullUsed() {
super.testInitializeWithNullUsed();
}
/**
* Overridden method because broadcast should ignore used set, therefore no exception should be thrown.
*/
@Test
@Override
public void testInitializeWithInconsistentSets() {
super.testInitializeWithInconsistentSets();
}
@Override
protected IAddressSelector<IAgentAddress> getSelectorUnderTest() {
return selector;
}
}
| [
"Radzio@Radzio-Lapek"
] | Radzio@Radzio-Lapek |
bd7bbdb2b07a355a38f0ee3f3cd659d7779e74ac | 01cc28a76274ffd7721b660314e6023e5bdaee8f | /app/src/test/java/com/android/marvelapp/ExampleUnitTest.java | 6fddf0c8d97279ac9427aa05f77522d0b7180210 | [] | no_license | nickand/Marvel-Test | db3d0b864ed872c3bc3abc43c39998c8221ecda8 | 6d588e420d361a6d06b0c2ee638733372a2fe2b1 | refs/heads/master | 2021-01-12T07:44:11.248044 | 2017-05-08T02:50:21 | 2017-05-08T02:50:21 | 77,004,912 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 399 | java | package com.android.marvelapp;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() throws Exception {
assertEquals(4, 2 + 2);
}
} | [
"gonzalezn775@gmail.com"
] | gonzalezn775@gmail.com |
7015ff4f1fce8214f88658c6f3a3f928563873c4 | c9f703936c274395ed91d3f7be362cc34fbdd178 | /src/java/lesson5/Cat.java | eb6d6000961767434978d75c0d3fc0d26ca2ec40 | [] | no_license | MarkoTolochko/elementary | f2a3b835f39f7f1a2ea97d22b03a3465fd427c4b | 9717decb0773539496e4469738c98aafd3cdd12c | refs/heads/main | 2023-03-31T16:02:05.148257 | 2021-04-07T07:27:05 | 2021-04-07T07:27:05 | 354,755,646 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 133 | java | package lesson5;
public class Cat extends Pet {
@Override
public void voice() {
System.out.println("Meow");
}
}
| [
"t.marko.tolochko@gmail.com"
] | t.marko.tolochko@gmail.com |
cc2c9450b99fc10c1001a7fd0e4f9f3d57eea09a | 4f87fcdb20964eb5f17146341221d4127f2e6cf8 | /mini-pr/src/main/java/org/apcffl/mini/pr/service/PatientRetrievalService.java | e2cce8af7a21ad5066e027ceecbc4ec0862cd412 | [] | no_license | niuhuskies91/mini-pr | 0a5d4f6094c0dacd7a34afb7c059a0cef538ebab | 2b46d4a30b975df169f7fd15b8d181d3863162f5 | refs/heads/master | 2020-04-11T01:54:08.685089 | 2019-01-04T02:33:19 | 2019-01-04T02:33:19 | 161,429,251 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 205 | java | package org.apcffl.mini.pr.service;
import org.apcffl.mini.pr.dto.PdqResponse;
public interface PatientRetrievalService {
public PdqResponse getPatientDemographics(String sourceSystem, String mrn);
}
| [
"daniel.kamp@drivindealer.com"
] | daniel.kamp@drivindealer.com |
c35e581aee3e6222508e7e9f0529b9dbefa66fe0 | affe223efe18ba4d5e676f685c1a5e73caac73eb | /clients/webservice/src/main/java/com/vmware/vim25/DvsFault.java | 1bc6b133780457036d57d9f5f4754239f26bc852 | [] | no_license | RohithEngu/VM27 | 486f6093e0af2f6df1196115950b0d978389a985 | f0f4f177210fd25415c2e058ec10deb13b7c9247 | refs/heads/master | 2021-01-16T00:42:30.971054 | 2009-08-14T19:58:16 | 2009-08-14T19:58:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,604 | java | /**
* DvsFault.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.vmware.vim25;
public class DvsFault extends com.vmware.vim25.VimFault implements
java.io.Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
public DvsFault() {
}
public DvsFault(java.lang.String dynamicType,
com.vmware.vim25.DynamicProperty[] dynamicProperty,
com.vmware.vim25.LocalizedMethodFault faultCause,
com.vmware.vim25.LocalizableMessage[] faultMessage) {
super(dynamicType, dynamicProperty, faultCause, faultMessage);
}
private java.lang.Object __equalsCalc = null;
@Override
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof DvsFault)) {
return false;
}
DvsFault other = (DvsFault) obj;
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = super.equals(obj);
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
@Override
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = super.hashCode();
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
DvsFault.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("urn:vim25",
"DvsFault"));
}
/**
* 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);
}
/**
* Writes the exception data to the faultDetails
*/
@Override
public void writeDetails(javax.xml.namespace.QName qname,
org.apache.axis.encoding.SerializationContext context)
throws java.io.IOException {
context.serialize(qname, null, this);
}
}
| [
"sankarachary@intalio.com"
] | sankarachary@intalio.com |
490bbdf4b148ca8b2deeec660c12d58ffb366e97 | b14d39b11a138d233dcec5bb9817a16c58880eb5 | /geronimo-mail_2.1/geronimo-mail_2.1_provider/src/main/java/org/apache/geronimo/mail/store/pop3/connection/POP3Response.java | ee6883956ee4dc490ba9ec412c7f535b8131cf18 | [
"Apache-2.0"
] | permissive | apache/geronimo-javamail | 91434eee18104436eaa34361115f41899717cbf0 | eb04d2d6b293d3c41cedc0352c96090e85d1422d | refs/heads/trunk | 2023-08-22T08:15:41.742351 | 2022-06-20T11:05:31 | 2022-06-20T11:05:31 | 240,472 | 5 | 21 | null | 2021-08-31T06:50:50 | 2009-07-01T08:15:28 | Java | UTF-8 | Java | false | false | 2,263 | java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.geronimo.mail.store.pop3.connection;
import java.io.ByteArrayInputStream;
import org.apache.geronimo.mail.store.pop3.POP3Constants;
import org.apache.geronimo.mail.util.Base64;
/**
* This class provides the basic implementation for the POP3Response.
*
* @see org.apache.geronimo.mail.store.pop3.POP3Response
* @version $Rev$ $Date$
*/
public class POP3Response implements POP3Constants {
private int status = ERR;
private String firstLine;
private byte[] data;
POP3Response(int status, String firstLine, byte []data) {
this.status = status;
this.firstLine = firstLine;
this.data = data;
}
public int getStatus() {
return status;
}
public byte[] getData() {
return data;
}
public ByteArrayInputStream getContentStream() {
return new ByteArrayInputStream(data);
}
public String getFirstLine() {
return firstLine;
}
public boolean isError() {
return status == ERR;
}
public boolean isChallenge() {
return status == CHALLENGE;
}
/**
* Decode the message portion of a continuation challenge response.
*
* @return The byte array containing the decoded data.
*/
public byte[] decodeChallengeResponse()
{
// the challenge response is a base64 encoded string...
return Base64.decode(firstLine.trim());
}
}
| [
"jlmonteiro@tomitribe.com"
] | jlmonteiro@tomitribe.com |
369bf2246253d17388c960f19fa8091a148108ff | f97729d2d32883bd35aa7697ebe9c063ff60b274 | /src/main/java/com/listagem/veiculos/repository/VeiculoRepository.java | 2425173f8f1d3c82c0a9f5d8e42ac4c3a6f70f47 | [] | no_license | davansep/controle-veiculos | b7d47c4aec3ee337586e3db63d0908c1a23f8687 | d2f59ad31399e3694b43747117345c0b3b601d2b | refs/heads/main | 2023-06-18T03:16:07.596002 | 2021-06-21T22:54:00 | 2021-06-21T22:54:00 | 379,076,303 | 0 | 0 | null | 2021-06-21T22:54:01 | 2021-06-21T22:16:12 | null | UTF-8 | Java | false | false | 582 | java | package com.listagem.veiculos.repository;
import java.util.List;
import javax.transaction.Transactional;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import com.listagem.veiculos.models.Veiculo;
public interface VeiculoRepository extends JpaRepository<Veiculo,Long> {
//Veiculo findById(Long id);
@Transactional
@Modifying
@Query("SELECT v from Veiculo v WHERE v.usuario.id = ?1")
List<Veiculo> findByUsuarioId(Long usuarioId);
}
| [
"priscila.davanse@gmail.com"
] | priscila.davanse@gmail.com |
b879901e785ba1c3440ef12d7adf48d90e548511 | 8079a7fde72244d0c6f48965934696935c1357d1 | /app/src/main/java/com/tpbluesky/bookpavilion/http/HttpUtils.java | ad43cba9f424a3d822198dcf3d01641a0bf13893 | [] | no_license | tpbluesky/BookPavilion | dd2e9107f3145eefa4394c1fb43d6c565439a907 | c5df2e2a74a0a93120b86d2181b1e202107aef48 | refs/heads/master | 2021-01-19T20:33:33.598341 | 2017-04-17T15:07:04 | 2017-04-17T15:07:05 | 88,518,784 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 6,525 | java | package com.tpbluesky.bookpavilion.http;
import android.content.Context;
import android.util.Log;
import com.tpbluesky.bookpavilion.application.Config;
import org.json.JSONException;
import org.json.JSONObject;
import org.xutils.common.Callback;
import org.xutils.ex.HttpException;
import org.xutils.http.RequestParams;
import org.xutils.x;
import java.net.ConnectException;
import java.net.SocketTimeoutException;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
/**
* 这个Http请求工具类是基于Xutils3
* Created by tpbluesky on 2017/2/16.
*/
public class HttpUtils {
private static final String TAG = "HttpUtils";
private static final boolean DEBUG = Config._DEBUG_;
private HttpUtils() {
throw new UnsupportedOperationException("HttpUtils工具类不允许被实例化");
}
public static Callback.Cancelable httpGet(HashMap<String, String> urlParams, final HttpCallback callback) {
RequestParams requestParams = new RequestParams(Config.SERVER_URL);
Set<Map.Entry<String, String>> set = urlParams.entrySet();
for (Map.Entry<String, String> entry : set) {
requestParams.addQueryStringParameter(entry.getKey(), entry.getValue());
}
Callback.Cancelable cancelable = x.http().get(requestParams, new Callback.CommonCallback<String>() {
@Override
public void onSuccess(String result) {
if (DEBUG) {
Log.e(TAG, "onSuccess: " + result);
}
try {
JSONObject obj = new JSONObject(result);
int ret = obj.getInt("ret");
switch (ret / 100) {
case 2:
if (callback != null) {
callback.onSuccess(obj.getJSONObject("data").toString());
}
break;
case 4:
if (DEBUG) {
Log.e(TAG, "客户端请求错误:" + obj.getString("msg"));
}
break;
case 5:
if (DEBUG) {
Log.e(TAG, "服务端运行错误:" + obj.getString("msg"));
}
break;
}
} catch (JSONException e) {
e.printStackTrace();
}
}
@Override
public void onError(Throwable ex, boolean isOnCallback) {
if (ex instanceof HttpException) {
if (DEBUG) {
Log.e(TAG, "onError: " + "网络错误");
}
if (callback != null) {
callback.onFail("无法连接到服务器,情检查您的网络连接是否正常");
}
} else {
if (DEBUG) {
Log.e(TAG, "onError: " + "数据解析错误");
}
}
}
@Override
public void onCancelled(CancelledException cex) {
}
@Override
public void onFinished() {
}
});
return cancelable;
}
public static Callback.Cancelable httpPost(Context context, Map<String, String> urlParams, final HttpCallback callback) {
RequestParams requestParams = new RequestParams(Config.SERVER_URL);
Set<Map.Entry<String, String>> set = urlParams.entrySet();
for (Map.Entry<String, String> entry : set) {
requestParams.addBodyParameter(entry.getKey(), entry.getValue());
}
requestParams.setConnectTimeout(5000);
requestParams.setCacheMaxAge(60 * 1000);
Callback.Cancelable cancelable = x.http().post(requestParams, new Callback.CommonCallback<String>() {
@Override
public void onSuccess(String result) {
if (DEBUG) {
Log.e(TAG, "onSuccess: " + result);
}
try {
JSONObject obj = new JSONObject(result);
int ret = obj.getInt("ret");
switch (ret / 100) {
case 2:
if (callback != null) {
callback.onSuccess(obj.getJSONObject("data").toString());
}
break;
case 4:
if (DEBUG) {
Log.e(TAG, "客户端请求错误:" + obj.getString("msg"));
}
break;
case 5:
if (DEBUG) {
Log.e(TAG, "服务端运行错误:" + obj.getString("msg"));
}
break;
}
} catch (JSONException e) {
e.printStackTrace();
}
}
@Override
public void onError(Throwable ex, boolean isOnCallback) {
if (ex instanceof ConnectException) {
if (DEBUG) {
Log.e(TAG, "onError: " + "网络错误");
}
if (callback != null) {
callback.onFail("无法连接到服务器,情检查您的网络连接是否正常");
}
} else if (ex instanceof SocketTimeoutException) {
if (DEBUG) {
Log.e(TAG, "onError: " + "连接超时");
}
if (callback != null) {
callback.onFail("连接到服务器超时,请稍后重试");
}
} else {
if (DEBUG) {
Log.e(TAG, "onError: " + "数据解析错误");
}
}
}
@Override
public void onCancelled(CancelledException cex) {
}
@Override
public void onFinished() {
}
});
return cancelable;
}
public interface HttpCallback {
void onSuccess(String result);
void onFail(String error);
}
}
| [
"ganying1996@gmail.com"
] | ganying1996@gmail.com |
77ff8e8df67f1e9da0bfa6f358dc3bb054a8de61 | 5d17d17c6845e07af2da87d59b148cce9d4f7f24 | /src/C_335_B.java | d2cd6e6d8d5eab3b87aada493abfbc61bb388ab8 | [] | no_license | hitarthk/Algorithms | f08f73ad9912d81c0214e6bca5e1aaa9f114cf23 | 404262b354037e45189bce6de0f3a40d59003356 | refs/heads/master | 2021-01-10T10:00:27.828341 | 2016-01-07T09:41:02 | 2016-01-07T09:41:02 | 49,090,963 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,322 | java |
import java.util.Scanner;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author hitarthk
*/
public class C_335_B {
public static void main(String[] args) {
Scanner in=new Scanner(System.in);
int x=in.nextInt();
int y=in.nextInt();
boolean[][] f=new boolean[x+2][y+2];
int x0=in.nextInt();
int y0=in.nextInt();
int nextx=x0;
int nexty=y0;
int count=0;
in.nextLine();
String s=in.nextLine();
for(int i=0;i<s.length();i++){
if(!f[nextx][nexty]){
System.out.print("1 ");
f[nextx][nexty]=true;
count++;
}
else{
System.out.print("0 ");
}
if(s.charAt(i)=='D'){
nextx=Math.min(x, nextx+1);
}
if(s.charAt(i)=='U'){
nextx=Math.max(1, nextx-1);
}
if(s.charAt(i)=='L'){
nexty=Math.max(1, nexty-1);
}
if(s.charAt(i)=='R'){
nexty=Math.min(y, nexty+1);
}
}
System.out.println(x*y-count);
}
}
| [
"hitarthk@gmail.com"
] | hitarthk@gmail.com |
2b8a45d60a71d41a0d12114e3facc71188723929 | 6c420bfd8502ace0caf47dc5392188d7c20b1d1c | /src/academy/exercise33/Floor.java | 97c814cdadc7898f0ab089e3181ed538a1835667 | [] | no_license | vls2693/CodingExercises | e03364415bfafbab27f44d4a97893f7e323f4dec | 5a400484731f153fd07c1fe4ea3420f9ef229bac | refs/heads/master | 2023-07-31T13:14:52.415959 | 2021-09-13T22:18:33 | 2021-09-13T22:18:33 | 406,144,948 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 504 | java | package academy.exercise33;
public class Floor {
private double width;
private double length;
// constructors
public Floor(double width, double length) {
if (width < 0) {
this.width = 0;
}
else {
this.width = width;
}
if (length < 0) {
this.length = 0;
}
else {
this.length = length;
}
}
// method
public double getArea() {
return width * length;
}
}
| [
"belyakov38@gmail.com"
] | belyakov38@gmail.com |
4750fa04d76b5b99f6bc041ee3049f18654d501a | 824548b82c45af738989c3337f28ad0c3bbe68ce | /java/com/example/saturn/appdatainfo/AppAdapter.java | ed1a5118a97a33574eb3d47bb33f99b3b3b3f8fc | [] | no_license | Tekula-Hemanth-Reddy/SATURN | 27f10dbddfbc0eff08831efd2d35d1580cb1d3d0 | 070cafcc5492753f63fbb91887fda7c890708619 | refs/heads/master | 2022-11-19T14:08:35.231867 | 2020-07-21T11:10:00 | 2020-07-21T11:10:00 | 281,315,965 | 2 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,411 | java | package com.example.saturn.appdatainfo;
import android.content.Context;
import android.content.DialogInterface;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.graphics.drawable.Drawable;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AlertDialog;
import com.example.saturn.R;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.List;
public class AppAdapter extends ArrayAdapter<AppInfo>
{
LayoutInflater layoutInflater;
PackageManager packageManager;
List<AppInfo> myapps;
Context ctx;
public AppAdapter(Context context, List<AppInfo> appInfos)
{
super(context, R.layout.apps_include_items,appInfos);
ctx=context;
layoutInflater=LayoutInflater.from(context);
packageManager=context.getPackageManager();
myapps=appInfos;
}
@NonNull
@Override
public View getView(int position, @Nullable View convertView, @NonNull ViewGroup parent) {
final AppInfo current=myapps.get(position);
View view=convertView;
if(view==null)
{
view=layoutInflater.inflate(R.layout.apps_include_items,parent,false);
}
TextView title = (TextView)view.findViewById(R.id.appnamelauncher);
title.setText(current.lable);
ImageView imv = (ImageView)view.findViewById(R.id.appiconlauncher);
Drawable background = current.info.loadIcon(packageManager);
imv.setImageDrawable(background);
Button btn=view.findViewById(R.id.showappinfo);
btn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
creatdialogtoshowinfo(current);
}
});
return view;
}
private void creatdialogtoshowinfo(AppInfo current) {
String versioninfo = null;
String firstinstalltime=null;
DateFormat formatter= new SimpleDateFormat("dd/mm/yyyy");
Calendar cal=Calendar.getInstance();
try {
PackageInfo packageInfo=packageManager.getPackageInfo(current.info.packageName,0);
if(!TextUtils.isEmpty(packageInfo.versionName))
{
versioninfo= String.format("%s",packageInfo.versionName);
firstinstalltime=String.format("%s", packageInfo.packageName);
}
} catch (PackageManager.NameNotFoundException e) {
e.printStackTrace();
}
AlertDialog.Builder builder= new AlertDialog.Builder(ctx);
builder.setTitle("App detatils");
builder.setMessage("Version : "+versioninfo+"\nPackage Name : "+firstinstalltime);
builder.setPositiveButton("Close", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
}
});
AlertDialog alertDialog=builder.create();
alertDialog.show();
}
}
| [
"noreply@github.com"
] | Tekula-Hemanth-Reddy.noreply@github.com |
dfd42cf6c666ac0ef4efb72e27ea9a97c122ebe5 | 7f52c1414ee44a3efa9fae60308e4ae0128d9906 | /core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSubmitJobStatement.java | 57a8a625e12ca50d92786770f141570ef51eaee7 | [
"Apache-2.0"
] | permissive | luoyongsir/druid | 1f6ba7c7c5cabab2879a76ef699205f484f2cac7 | 37552f849a52cf0f2784fb7849007e4656851402 | refs/heads/master | 2022-11-19T21:01:41.141853 | 2022-11-19T13:21:51 | 2022-11-19T13:21:51 | 474,518,936 | 0 | 1 | Apache-2.0 | 2022-03-27T02:51:11 | 2022-03-27T02:51:10 | null | UTF-8 | Java | false | false | 1,923 | java | /*
* Copyright 1999-2017 Alibaba Group Holding Ltd.
*
* 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.alibaba.druid.sql.ast.statement;
import com.alibaba.druid.sql.ast.SQLObject;
import com.alibaba.druid.sql.ast.SQLStatement;
import com.alibaba.druid.sql.ast.SQLStatementImpl;
import com.alibaba.druid.sql.visitor.SQLASTVisitor;
import java.util.ArrayList;
import java.util.List;
public class SQLSubmitJobStatement extends SQLStatementImpl {
private boolean await;
private SQLStatement statment;
public void accept0(SQLASTVisitor visitor) {
if (visitor.visit(this)) {
acceptChild(visitor, statment);
}
visitor.endVisit(this);
}
@Override
public List<SQLObject> getChildren() {
ArrayList<SQLObject> children = new ArrayList<SQLObject>();
children.add(statment);
return children;
}
public boolean isAwait() {
return await;
}
public void setAwait(boolean await) {
this.await = await;
}
public SQLStatement getStatment() {
return statment;
}
public void setStatment(SQLStatement statment) {
this.statment = statment;
}
public SQLSubmitJobStatement clone() {
SQLSubmitJobStatement x = new SQLSubmitJobStatement();
if (statment != null) {
x.setStatment(statment.clone());
}
return x;
}
}
| [
"shaojin.wensj@alibaba-inc.com"
] | shaojin.wensj@alibaba-inc.com |
0dc8d00a4bbaa41f907b1ac43298c59d5fad368d | 003020535b2d2b6bb7e83bda9b8ea7dd074d7efc | /src/test2/UtilizeCellPhones.java | b10e36fcd364e84e038f5ed778b4984619e53a13 | [] | no_license | HackLikePro/COMP_248_Assignment_4 | c3e99a7b4c8346c2127926a72c9fcfba4f2195a6 | 552e881e43f0cd025f8b381b7feebe698fbca62e | refs/heads/master | 2016-08-04T22:41:17.630598 | 2015-03-13T20:05:44 | 2015-03-13T20:05:44 | 32,178,192 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,763 | java | package test2;
import java.util.Scanner;
class CellPhone {
private String brand;
private long serial;
private double price;
public CellPhone()
{
brand = "apple";
serial = 00000000;
price = 500.00;
}
public CellPhone(String x, long y, double z)
{
brand = x;
serial = y;
price = z;
}
public String getbrand()
{
return brand;
}
public long getserial()
{
return serial;
}
public double getprice()
{
return price;
}
public boolean changevalue(int input)
{
Scanner kb = new Scanner(System.in);
while(true)
{
switch (input)
{
case 1:
System.out.println("please input the brand you want:");
brand = kb.next();
break;
case 2:
System.out.println("please input the serial you want:");
serial = kb.nextLong();
break;
case 3:
System.out.println("please input the price you want:");
price = kb.nextDouble();
break;
default:
System.out.println("The input is not between 1 - 3");
}
}
}
}
public class UtilizeCellPhones
{
public static void main (String agrs [])
{
CellPhone c1 = new CellPhone("nexus 7", 999999999, 500.00);
CellPhone c2 = new CellPhone("nexus 7", 999999999, 500.00);
CellPhone c3 = new CellPhone("nexus 7", 999999999, 500.00);
System.out.println(c1);
System.out.println(c2);
System.out.println(c3);
c1.changevalue(1);
c2.changevalue(1);
c2.changevalue(2);
c3.changevalue(3);
c1.getbrand();
c2.getbrand();
c2.getprice();
c3.getserial();
c1.equals(c2);
c2.equals(c3);
c3.equals(c1);
}
}
| [
"ctosmtl@gmail.com"
] | ctosmtl@gmail.com |
f58b1e495af8805eab6a83d37c11f7addf398a0b | 914267f66a449feefa505e56c690f8b653f6415d | /app/src/main/java/com/yhx/loan/adapter/ImagePickerAdapter.java | f6d5d78e67d0c718e6a006b60038703824cf7f52 | [] | no_license | sai251716795/HY_Loan | a91ebc80ca9af8003a0dc0c3455064b2843536aa | 3a3325073a8eb3ebb681611aa785c9a06ba5ada4 | refs/heads/master | 2020-03-15T10:40:09.655220 | 2018-08-06T02:11:33 | 2018-08-06T02:11:33 | 132,104,262 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,769 | java | package com.yhx.loan.adapter;
import android.app.Activity;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import com.lzy.imagepicker.ImagePicker;
import com.lzy.imagepicker.bean.ImageItem;
import com.yhx.loan.R;
import java.util.ArrayList;
import java.util.List;
import static com.yhx.loan.activity.main.FeedbackActivity.IMAGE_ITEM_ADD;
/**
* ================================================
* 作 者:ikkong (ikkong@163.com),修改 jeasonlzy(廖子尧)
* 版 本:1.0
* 创建日期:2016/5/19
* 描 述:
* 修订历史:微信图片选择的Adapter, 感谢 ikkong 的提交
* ================================================
*/
public class ImagePickerAdapter extends RecyclerView.Adapter<ImagePickerAdapter.SelectedPicViewHolder> {
private int maxImgCount;
private Context mContext;
private List<ImageItem> mData;
private LayoutInflater mInflater;
private OnRecyclerViewItemClickListener listener;
private boolean isAdded; //是否额外添加了最后一个图片
public interface OnRecyclerViewItemClickListener {
void onItemClick(View view, int position);
}
public void setOnItemClickListener(OnRecyclerViewItemClickListener listener) {
this.listener = listener;
}
public void setImages(List<ImageItem> data) {
mData = new ArrayList<>(data);
if (getItemCount() < maxImgCount) {
mData.add(new ImageItem());
isAdded = true;
} else {
isAdded = false;
}
notifyDataSetChanged();
}
public List<ImageItem> getImages() {
//由于图片未选满时,最后一张显示添加图片,因此这个方法返回真正的已选图片
if (isAdded) return new ArrayList<>(mData.subList(0, mData.size() - 1));
else return mData;
}
public ImagePickerAdapter(Context mContext, List<ImageItem> data, int maxImgCount) {
this.mContext = mContext;
this.maxImgCount = maxImgCount;
this.mInflater = LayoutInflater.from(mContext);
setImages(data);
}
@Override
public SelectedPicViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
return new SelectedPicViewHolder(mInflater.inflate(R.layout.list_item_image, parent, false));
}
@Override
public void onBindViewHolder(SelectedPicViewHolder holder, int position) {
holder.bind(position);
}
@Override
public int getItemCount() {
return mData.size();
}
public class SelectedPicViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener {
private ImageView iv_img;
private int clickPosition;
public SelectedPicViewHolder(View itemView) {
super(itemView);
iv_img = (ImageView) itemView.findViewById(R.id.iv_img);
}
public void bind(int position) {
//设置条目的点击事件
itemView.setOnClickListener(this);
//根据条目位置设置图片
ImageItem item = mData.get(position);
if (isAdded && position == getItemCount() - 1) {
iv_img.setImageResource(R.drawable.selector_image_add);
clickPosition = IMAGE_ITEM_ADD;
} else {
ImagePicker.getInstance().getImageLoader().displayImage((Activity) mContext, item.path, iv_img, 0, 0);
clickPosition = position;
}
}
@Override
public void onClick(View v) {
if (listener != null) listener.onItemClick(v, clickPosition);
}
}
} | [
"942011355@qq.com"
] | 942011355@qq.com |
b04c90f65effc922c64aa0f3dbdf8a2f81d62d5d | 6bfd7ded89cb000a36208a2727dcbdf1772db4b4 | /jServletUnit/test/ngpanwei/jServletTest/FormatterTest.java | 7d4066c880de63c2b7b5315e9f192795ce23664f | [] | no_license | ngpanwei/jtools | 672ab91e86d4896d8f21b7e9af22eb88bed6749b | df8b51cc7ea6ea5d97f0244fe1d6caae19630805 | refs/heads/master | 2021-05-15T01:39:08.572800 | 2018-12-30T08:37:32 | 2018-12-30T08:37:32 | 19,488,138 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,776 | java | /**
* Copyright (c) 2014 Ng Pan Wei
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation files
* (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modify, merge,
* publish, distribute, sublicense, and/or sell copies of the Software,
* and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package ngpanwei.jServletTest;
import static org.junit.Assert.assertEquals;
import ngpanwei.jServletTest.example.ExampleTestSuite;
import ngpanwei.jServletTest.example.MoneyTest;
import org.junit.Test;
public class FormatterTest {
@Test
public void testSuiteView() {
assertEquals("Check Suite Class",true,testIsSuiteClass(ExampleTestSuite.class)) ;
}
@Test
public void testClassView() {
assertEquals("Check Suite Class",false,testIsSuiteClass(MoneyTest.class)) ;
}
public boolean testIsSuiteClass(Class<?> testClass) {
return SubjectTraversal.isSuite(testClass) ;
}
}
| [
"dev@ngpanwei.com"
] | dev@ngpanwei.com |
fecb2746ea5630fee9058b7a45b03d1e2e9d3f79 | 2b76714a4e09582a6a1edbbd3ccd8dec8d3ca44b | /app/src/androidTest/java/com/khilman/www/learngoogleapi/ExampleInstrumentedTest.java | 8460411f36c11d973f9fc9967855f23beedb7b04 | [] | no_license | andihoerudin24/PSO_ADNROID | c325284a22a1e608b35a2f205c394a431444d930 | 4a47c5443d083b8b9fa8d4c4c85f190025668b10 | refs/heads/master | 2020-09-27T07:09:03.043796 | 2019-12-08T09:53:45 | 2019-12-08T09:53:45 | 226,460,077 | 1 | 1 | null | 2019-12-07T18:34:54 | 2019-12-07T05:19:32 | Java | UTF-8 | Java | false | false | 761 | java | package com.khilman.www.learngoogleapi;
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("com.khilman.www.learngoogleapi", appContext.getPackageName());
}
}
| [
"andihoerudin24@gmail.com"
] | andihoerudin24@gmail.com |
9ede9acb14d4deadf975e7edce7bf50873ff8707 | 71d1b80aff69df74d1ded155ac386214235d18cf | /src/com/company/KeepGuessing.java | c3c65ba76b8106eff345e1dfab7f51fe326c55b4 | [] | no_license | thebeardedgreek/bootcamp-repository-2 | 2e70008de42347226caa7d4d3333739dc3d9594b | 86294e25705400f855eee45d89614c8321ad85b5 | refs/heads/master | 2020-03-19T02:23:32.658975 | 2018-06-05T13:29:48 | 2018-06-05T13:29:48 | 135,624,787 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 808 | java | package com.company;
import java.util.Scanner;
public class KeepGuessing {
public static void main(String[] args) {
Scanner keyboard = new Scanner(System.in);
int secretNumber, secretNumber2, guess = 0;//guess is initialized to 0
secretNumber = 123;
secretNumber2 = 5;
System.out.println("I'm thinking of a number between 1 and 1000");
System.out.print("Enter the number:");
guess = keyboard.nextInt();
while ( guess != secretNumber && guess != secretNumber2)
{
System.out.println("\nYou are wrong. Try again.");
System.out.println("Enter the number: ");
guess = keyboard.nextInt();
}
System.out.println("You are correct. You win a prize!");
keyboard.close();
}
} | [
"tasso.stamboulis@gmail.com"
] | tasso.stamboulis@gmail.com |
44da2695c1b370ccfd53f80d42785ddac2a072e8 | 884ffe90c0c65c8dd5c5211264c878760f5613c8 | /封裝/Coke.java | 0a292ab5906c7829e28120603ee57eb3ae52c8e4 | [] | no_license | LIOU2021/other | 467bfb849ab49f492b35ad42e2975bbc5f2f82f1 | 921354945b03cdffd618fb2a985b2d61d3b2b4d9 | refs/heads/main | 2023-06-24T15:14:19.964334 | 2021-07-20T16:53:51 | 2021-07-20T16:53:51 | 338,016,998 | 1 | 1 | null | null | null | null | UTF-8 | Java | false | false | 135 | java | package day6_3;
public class Coke {
public int 飲料含量;//change public into private
//other object wil return error
}
| [
"noreply@github.com"
] | LIOU2021.noreply@github.com |
688c6f03e969f64e09de77c66597a1433b81d665 | 1d7fc9b0b919d6cd0632ca31595e605ff1e976ce | /src/main/java/com/ken/simple/IntegerJoinProvider.java | 16c4bc39392ebb4507b42c69b6c296b2fa80c7d1 | [] | no_license | l3303/AdvancedStringEncoding | f74a003ab83fae16ac80ac155f11290d54c0a697 | c0f7c658137c36fafd12c9b319655b22ac1f33d4 | refs/heads/master | 2021-05-14T14:04:09.156974 | 2018-01-30T07:06:03 | 2018-01-30T07:06:03 | 115,963,133 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,561 | java | package com.ken.simple;
import com.ken.ValueJoinFormat;
import com.ken.exception.ValueCountNotMatchException;
import com.ken.exception.ValueJoinException;
import com.ken.exception.ValueJoinOutOfRangeException;
public class IntegerJoinProvider {
private static final int DIGITS_LIMIT = Integer.SIZE;
public static boolean validate(ValueJoinFormat format) {
if (format == null) {
return false;
}
int totalDigits = 0;
for (int digits : format.encodeDigitList()) {
totalDigits += digits;
if (totalDigits > DIGITS_LIMIT) {
return false;
}
}
return true;
}
public static int join (ValueJoinFormat format, int... valueList) throws ValueJoinException {
if (format == null || valueList ==null || valueList.length == 0) {
return 0;
}
int elementCount = valueList.length;
if (format.getElementCount() != elementCount) {
throw new ValueCountNotMatchException(format.getElementCount(), valueList.length);
}
int[] encodeDigitList = format.encodeDigitList();
int result = 0;
for (int i = 0; i < elementCount; i++) {
result = join(result, encodeDigitList[i], valueList[i]);
}
return result;
}
public static int[] split(ValueJoinFormat format, int value) {
if (format == null) {
return null;
}
int[] digitList = format.encodeDigitList();
int[] list = new int[digitList.length];
for (int i = digitList.length; i > 0; i--) {
int digits = digitList[i - 1];
list[i - 1] = value & ((1 << digits) - 1);
value >>>= digits;
}
return list;
}
private static int join(int origin, int digits, int value) throws ValueJoinOutOfRangeException {
int limit = (1 << digits) - 1;
if (value > limit) {
throw new ValueJoinOutOfRangeException(limit, value);
}
origin <<= digits;
origin += value;
return origin;
}
public static class Builder {
private int result = 0;
private int usedDigits = 0;
public int append(int digits, int value) throws ValueJoinException {
usedDigits += digits;
if (usedDigits > DIGITS_LIMIT) {
throw new ValueJoinOutOfRangeException(DIGITS_LIMIT, usedDigits);
}
result = join(result, digits, value);
return result;
}
}
}
| [
"xc_liu@Ctrip.com"
] | xc_liu@Ctrip.com |
9f481152b4f0576d46bd074250b952bc7be6ccf9 | b1fbae2ffb9415e6977f9c7511511777a4ddc279 | /DineOut/src/main/java/com/spring/dineout/controller/ReviewController.java | b9fb891290baf716b5f5f07d662d826860e0e6da | [] | no_license | NikhilHole10/dine-out | 6310db0dca8fd6277da69521cd7f14d29f72bcbe | 633c43fde00a40a50faa689509e0b3476b4473bb | refs/heads/master | 2023-06-02T02:41:38.638185 | 2021-06-12T15:49:12 | 2021-06-12T15:49:12 | 374,277,309 | 0 | 0 | null | 2021-06-12T15:49:13 | 2021-06-06T05:38:35 | Java | UTF-8 | Java | false | false | 1,498 | java | package com.spring.dineout.controller;
import java.util.List;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.spring.dineout.dto.ReviewRequest;
import com.spring.dineout.dto.ReviewResponse;
import com.spring.dineout.service.ReviewService;
import lombok.AllArgsConstructor;
@RequestMapping("/api/review/")
@RestController
@AllArgsConstructor
public class ReviewController {
private final ReviewService reviewService;
@PostMapping
@PreAuthorize("hasAuthority('USER')")
public ResponseEntity<Void> addComment(@RequestBody ReviewRequest reviewRequest) {
reviewService.createReview(reviewRequest);
return new ResponseEntity<>(HttpStatus.CREATED);
}
@GetMapping("by-restaurant/{restoId}")
@PreAuthorize("hasAuthority('USER')")
public ResponseEntity<List<ReviewResponse>> getAllReviewsForRestaurant(@PathVariable Long restoId ) {
return ResponseEntity.status(HttpStatus.OK).body(reviewService.getReviewsByRestaurant(restoId));
}
}
| [
"hole.nikhil@outlook.com"
] | hole.nikhil@outlook.com |
f7f7669a5190a7c78bfb7501109754fd9c132994 | abcdc5cf2fab1c950be9edbd70ea273bfa098e5e | /android/FoxReactNativeExtensionAndroid/src/main/java/co/cyberz/fox/support/reactnative/FoxEventModule.java | f8754fd067536b36a4b311200e0613c3c29ce775 | [] | no_license | forceoperationx/fox-reactnative-sdk | 5e1125252f23e0d138e8f3900cd77ddd350a7033 | ef5219541f0a8140eca67dfa07123c4d3e48ae3b | refs/heads/master | 2021-09-12T17:40:23.461685 | 2018-04-19T10:16:23 | 2018-04-19T10:16:23 | 109,089,506 | 1 | 2 | null | 2018-04-19T10:06:28 | 2017-11-01T05:09:51 | Java | UTF-8 | Java | false | false | 3,613 | java | package co.cyberz.fox.support.reactnative;
import android.util.Log;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridge.ReactContextBaseJavaModule;
import com.facebook.react.bridge.ReactMethod;
import com.facebook.react.bridge.ReadableMap;
import org.json.JSONObject;
import java.util.HashMap;
import co.cyberz.fox.Fox;
import co.cyberz.fox.service.FoxEvent;
/**
* FoxEventを作るクラス
* Created by Garhira on 2017/10/24.
*/
public class FoxEventModule extends ReactContextBaseJavaModule {
private static final String NAME = "eventName";
private static final String ID = "ltvId";
private static final String PRICE = "price";
private static final String SKU = "sku";
private static final String CURRENCY = "currency";
private static final String BUID = "buid";
private static final String VALUE = "value";
private static final String ORDER_ID = "orderId";
private static final String ITEM_NAME = "itemName";
private static final String QUANTITY = "quantity";
private static final String EXTRA_INFO = "extraInfo";
private static final String EVENT_INFO = "eventInfo";
public FoxEventModule(ReactApplicationContext reactContext) {
super(reactContext);
}
@Override
public String getName() {
return "CYZFoxEvent";
}
/**
* イベント計測の必須情報をセット
* @param map
*/
@ReactMethod
public void track(ReadableMap map) {
if (map == null) {
Log.e("FOX-Event", "Event description must be not null!!!");
return;
} else if (!map.hasKey(NAME)) {
Log.e("FOX-Event", "Event name is require parameter!!");
return;
}
ReactFoxEvent event;
if (map.hasKey(ID)) {
event = new ReactFoxEvent(map.getString(NAME), map.getInt(ID));
} else {
event = new ReactFoxEvent(map.getString(NAME));
}
if (map.hasKey(PRICE)) event.price = map.getDouble(PRICE);
if (map.hasKey(SKU)) event.sku = map.getString(SKU);
if (map.hasKey(CURRENCY)) event.currency = map.getString(CURRENCY);
if (map.hasKey(BUID)) event.buid = map.getString(BUID);
if (map.hasKey(VALUE)) event.value = map.getInt(VALUE);
if (map.hasKey(ORDER_ID)) event.orderId = map.getString(ORDER_ID);
if (map.hasKey(ITEM_NAME)) event.itemName = map.getString(ITEM_NAME);
if (map.hasKey(QUANTITY)) event.quantity = map.getInt(QUANTITY);
if (map.hasKey(EXTRA_INFO)) event.addExtraInfo(map.getMap(EXTRA_INFO));
if (map.hasKey(EVENT_INFO)) {
try {
HashMap<String, Object> eventInfoHashMap = map.getMap(EVENT_INFO).toHashMap();
if (eventInfoHashMap != null && 0 < eventInfoHashMap.size())
event.eventInfo = new JSONObject(eventInfoHashMap);
} catch (Throwable t) {
Log.e("FOX-Event", "setEventInfo", t);
}
}
Fox.trackEvent(event);
}
private class ReactFoxEvent extends FoxEvent {
public ReactFoxEvent(String eventName) {
super(eventName);
}
public ReactFoxEvent(String eventName, int ltvId) {
super(eventName, ltvId);
}
public void addExtraInfo(ReadableMap extraInfoMap) {
if (extraInfo == null) {
extraInfo = new HashMap<String, String>();
}
extraInfo.putAll(FoxReactUtil.toHashMap(extraInfoMap));
}
}
}
| [
"hiraga@cyber-z.co.jp"
] | hiraga@cyber-z.co.jp |
287fa77a491d8bb214f6474d95f85ca2b84b5b32 | 863acb02a064a0fc66811688a67ce3511f1b81af | /sources/p005cm/aptoide/p006pt/account/view/user/C1562H.java | 2562f87a6d856f3ef042bcaab13945e29089de5a | [
"MIT"
] | permissive | Game-Designing/Custom-Football-Game | 98d33eb0c04ca2c48620aa4a763b91bc9c1b7915 | 47283462b2066ad5c53b3c901182e7ae62a34fc8 | refs/heads/master | 2020-08-04T00:02:04.876780 | 2019-10-06T06:55:08 | 2019-10-06T06:55:08 | 211,914,568 | 1 | 1 | null | null | null | null | UTF-8 | Java | false | false | 510 | java | package p005cm.aptoide.p006pt.account.view.user;
import p026rx.p027b.C0128a;
/* renamed from: cm.aptoide.pt.account.view.user.H */
/* compiled from: lambda */
public final /* synthetic */ class C1562H implements C0128a {
/* renamed from: a */
private final /* synthetic */ ManageUserPresenter f4503a;
public /* synthetic */ C1562H(ManageUserPresenter manageUserPresenter) {
this.f4503a = manageUserPresenter;
}
public final void call() {
this.f4503a.mo9926b();
}
}
| [
"tusharchoudhary0003@gmail.com"
] | tusharchoudhary0003@gmail.com |
746f0b085f84ce1767d607d73f1dc837c36c98b1 | a22a3ad5c28c849361f935d74294ae1ea9cd749b | /app/src/main/java/com/apkglobal/retrofitir/retrofit_fetch/FetchActivity.java | 469630516067cf4d05aedc808919697f7c0c7810 | [] | no_license | bikramsingh1/RetrofitRecyclerView | 4a361623fdffd95b0e33dcaa28efaba12c6ead75 | 6cc3ac4c0527e64074ba5878cc3299041d895bef | refs/heads/master | 2021-05-13T13:03:59.744087 | 2018-01-08T15:51:56 | 2018-01-08T15:51:56 | 116,693,334 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,450 | java | package com.apkglobal.retrofitir.retrofit_fetch;
import android.support.v4.view.MenuItemCompat;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.SearchView;
import android.support.v7.widget.Toolbar;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import java.util.ArrayList;
import java.util.Arrays;
import com.apkglobal.retrofitir.R;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
public class FetchActivity extends AppCompatActivity {
private RecyclerView recyclerView;
private ArrayList<Pojo> mArrayList;
private DataAdapter adapter;
private static final String URL="http://example.com/";//in this http address your server's Root directory address
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_fetch);
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
initViews();
}
private void initViews() {
recyclerView = (RecyclerView) findViewById(R.id.recyclerview);
recyclerView.setHasFixedSize(true);
RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(getApplicationContext());
recyclerView.setLayoutManager(layoutManager);
loadJSON();
}
private void loadJSON() {
Retrofit retrofit = new Retrofit.Builder()
.baseUrl(URL)
.addConverterFactory(GsonConverterFactory.create())
.build();
RequestInterface request = retrofit.create(RequestInterface.class);
Call<JSONResponse> call = request.getJSON();
call.enqueue(new Callback<JSONResponse>() {
@Override
public void onResponse(Call<JSONResponse> call, Response<JSONResponse> response) {
JSONResponse jsonResponse = response.body();
mArrayList = new ArrayList<>(Arrays.asList(jsonResponse.getServer()));
adapter = new DataAdapter(mArrayList);
recyclerView.setAdapter(adapter);
}
@Override
public void onFailure(Call<JSONResponse> call, Throwable t) {
Log.d("Error", t.getMessage());
}
});
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.menu_main,menu);
MenuItem search=menu.findItem(R.id.search);
SearchView searchView=(SearchView) MenuItemCompat.getActionView(search);
search(searchView);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
return super.onOptionsItemSelected(item);
}
private void search(SearchView searchView) {
searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {
@Override
public boolean onQueryTextSubmit(String query) {
return false;
}
@Override
public boolean onQueryTextChange(String newText) {
adapter.getFilter().filter(newText);
return true;
}
});
}
}
| [
"30457817+bikramsingh1@users.noreply.github.com"
] | 30457817+bikramsingh1@users.noreply.github.com |
a12b863de4051768dce77d8260ec40ce47c52162 | 7b6076dac34c43e4b7d2f86f9a866620c5691f9a | /src/main/java/digital/and/telecomprovider/TelecomProviderApplication.java | d92e8d90fc9523ba2cc7959a16e0e704a9506fa6 | [] | no_license | jkgriesser/telecomprovider | b1e9181caa487f2054f6a0867a9bb69ea2c566e2 | d01b3c92d7d9959ab5c4248efc61a43e6ee06d3a | refs/heads/master | 2020-03-30T17:59:55.526525 | 2018-10-03T20:49:51 | 2018-10-03T20:50:43 | 151,478,700 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 337 | java | package digital.and.telecomprovider;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class TelecomProviderApplication {
public static void main(String[] args) {
SpringApplication.run(TelecomProviderApplication.class, args);
}
}
| [
"jkgriesser@gmail.com"
] | jkgriesser@gmail.com |
7181f28d8af9400eec0f596aa4c6ee55311f4484 | 9a7de247102bc5972a1e6644af734a979480ae46 | /app/src/main/java/day3of100days/app/abdccassiano/com/day3of100days/MainActivity.java | 283f2313f46882b907e524de2606cd08361b99ba | [] | no_license | abdccassiano/Day3of100days | 60eeade060dbc8bba752f372705dee71c168232a | baadaf6bff30d9122aae68d0853d106aab4fc528 | refs/heads/master | 2021-01-12T03:49:47.260026 | 2017-01-07T09:26:44 | 2017-01-07T09:26:44 | 78,270,196 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,538 | java | package day3of100days.app.abdccassiano.com.day3of100days;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.Spinner;
import android.widget.TextView;
import android.widget.Toast;
public class MainActivity extends AppCompatActivity implements View.OnClickListener {
private Spinner sprLeng;
private Button btnLeng;
private TextView tvSelect;
private ImageView imgIcon;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
sprLeng = (Spinner)findViewById(R.id.spinner1);
btnLeng = (Button)findViewById(R.id.btnLeng);
tvSelect = (TextView)findViewById(R.id.tvSelect);
imgIcon = (ImageView)findViewById(R.id.imgIcon);
btnLeng.setOnClickListener(this);
}
@Override
public void onClick(View v) {
switch (v.getId()){
case R.id.btnLeng:
String option = sprLeng.getSelectedItem().toString();
if (option.equals("SELECT LENGUAGE")){
Toast.makeText(getApplication(),"Select One Option Please!", Toast.LENGTH_SHORT).show();
}else{
tvSelect.setText(option);
switch (option){
case "PHP":
imgIcon.setImageResource(R.drawable.php);
break;
case "JAVASCRIPT":
imgIcon.setImageResource(R.drawable.js);
break;
case "PYTHON":
imgIcon.setImageResource(R.drawable.py);
break;
case "JAVA":
imgIcon.setImageResource(R.drawable.java);
break;
case "RUBY":
imgIcon.setImageResource(R.drawable.ruby);
break;
case "PERL":
imgIcon.setImageResource(R.drawable.perl);
break;
case "C++":
imgIcon.setImageResource(R.drawable.cmas);
break;
case "C#":
imgIcon.setImageResource(R.drawable.cchar);
break;
case "PASCAL":
imgIcon.setImageResource(R.drawable.pascal);
break;
case "C":
imgIcon.setImageResource(R.drawable.c);
break;
default:
break;
}
//Toast.makeText(getApplication(),"Contenido "+ v.getId(), Toast.LENGTH_SHORT).show();
}
//Toast.makeText(getApplication(),"Contenido "+ option, Toast.LENGTH_SHORT).show();
break;
default:
break;
}
}
/*@Override
public boolean onCreateOptionsMenu(Menu menu){
//Inflate the menu, this adds items to the action bar if it is present
getMenuInflater().inflate(R.menu.spinner_ex1, menu);
return true;
}*/
}
| [
"buenos_tiempos@outlook.com"
] | buenos_tiempos@outlook.com |
a10a32ddcf17d322807c7cd6090a1c828defb62e | cf2e98b4e19fb1ce56d2b773125b78c4e11bdfc5 | /资料全2019/Java程序考试资料/Java程序考试收集资料/ProjectNew/绘图/src/DrawPanel.java | 524f7266003fe53b866ab1beef4b9401c1259e2b | [] | no_license | qiao1025566574/Programming-Exam | 42e5279bbfe6f1d4d0ecf49a3d970f50ed055a05 | 8ce4251efa442169f3b0a074d61fc25e8a974b28 | refs/heads/master | 2020-04-16T23:55:13.140370 | 2019-01-16T01:57:56 | 2019-01-16T01:57:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 6,583 | java | import java.awt.*;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionListener;
import javax.swing.*;
import java.awt.Graphics2D;
public class DrawPanel extends JPanel {
private MyShape myshape[];//保存所有图形
private int shapeCount;//图形个数
private int shapeType;//图形类型
private MyShape currentShape;//当前图形形状
private MyShape midShape;
private boolean ifmidShape=false;
private Color currentColor;//图形颜色
private boolean filledShape;//空心实心图形判断
private boolean linedashed;//实线虚线判断
private boolean mousedraw;//是否用鼠标画线
private float linestick;
private JLabel statusLabel;
private Point pre=new Point();
private Point last=new Point();//直线
private Polygon mypolygon;//用鼠标画线,设置多边形
private boolean mousepressed=false;
//画曲线的参数
/* private boolean iscurve=false;
private boolean isinline=false;//判断此时的鼠标是否在直线上
private int pressedcount=0; //鼠标点击的次数
private Point[] curvepoint=new Point[3];//存储曲线的三个参数
private Point secondpoint=new Point(0,0);//鼠标松开后第二次点击的时候的点的坐标*/
public DrawPanel(JLabel label)
{
statusLabel=label;
myshape=new MyShape[100];
shapeCount=0;
shapeType=1;//line
currentShape=null;
midShape=null;
currentColor=Color.BLACK;
this.setBackground(Color.WHITE);
this.addMouseListener(new MouseHandler());
this.addMouseMotionListener(new MouseHandler());
}
public void Set(int shapetype,Color current,boolean iffill,boolean dashed,float stick,boolean mousedraw)
{
shapeType=shapetype;
currentColor=current;
filledShape=iffill;
linedashed=dashed;
linestick=stick;
this.mousedraw=mousedraw;
}
public void clearLastShape()
{
shapeCount--;
if(shapeCount<0)
shapeCount=0;
repaint();
}
public void clearDrawing()
{
shapeCount=0;
repaint();
}
public void paintComponent(Graphics g)
{
super.paintComponent(g);
Graphics2D g2d=(Graphics2D)g;
for(int i=0;i<shapeCount;i++)
myshape[i].Draw(g2d);
if(mousepressed&&mousedraw)
g2d.drawPolyline(mypolygon.xpoints, mypolygon.ypoints, mypolygon.npoints);
if(ifmidShape&&!mousedraw)
midShape.Draw(g2d);
}
private class MouseHandler extends MouseAdapter
{
public void mousePressed(MouseEvent event)
{
pre.x=event.getX();
pre.y=event.getY();
last.x=event.getX();
last.y=event.getY();
/*if(pressedcount==0)
{
curvepoint[0].x=event.getX();
curvepoint[0].y=event.getY();
}
else
{
secondpoint.x=event.getX();
secondpoint.y=event.getY();
}*/
mypolygon=new Polygon();
mousepressed=true;
mypolygon.addPoint(event.getX(), event.getY());
}
public void mouseReleased(MouseEvent event)
{
mousepressed=false;
ifmidShape=false;
/*pressedcount++;
if(pressedcount==1)
{
curvepoint[1].x=event.getX();
curvepoint[1].y=event.getY();
}
else
{
curvepoint[2].x=event.getX();
curvepoint[2].y=event.getY();
}*/
if(!mousedraw)
{
switch(shapeType)
{
case 1:
currentShape=midShape;
myshape[shapeCount]=currentShape;
shapeCount++;
//pressedcount=0;
break;
case 2:
currentShape=midShape;
myshape[shapeCount]=currentShape;
shapeCount++;
//pressedcount=0;
break;
case 3:
currentShape=midShape;
myshape[shapeCount]=currentShape;
shapeCount++;
// pressedcount=0;
break;
}
/* if(shapeType==4)
{
if(pressedcount>1)
{ currentShape=midShape;
myshape[shapeCount]=currentShape;
shapeCount++;
}
}*/
}
else
{
PolegonLine line=new PolegonLine(mypolygon,currentColor,linestick);
currentShape=line;
//pressedcount=0;
myshape[shapeCount]=currentShape;
shapeCount++;
}
currentShape=null;
repaint();
}
public void mouseDragged(MouseEvent e)
{
ifmidShape=true;
statusLabel.setText(String.format("(%d,%d)",e.getX(),e.getY()));
last.x=e.getX();
last.y=e.getY();
Point p=new Point();
p.x=pre.x<last.x? pre.x:last.x;
p.y=pre.y<last.y? pre.y:last.y;
int width=Math.abs(pre.x-last.x);
int height=Math.abs(pre.y-last.y);
mypolygon.addPoint(e.getX(), e.getY());
switch(shapeType)
{
case 1:
Line line=new Line(pre.x,pre.y,last.x,last.y,currentColor,linestick);
line.setDashed(linedashed);
midShape=line;
break;
case 2:
Rectangle rec=new Rectangle(p.x,p.y,width,height,currentColor,linestick);
rec.setFilled(filledShape);
rec.setDashed(linedashed);
midShape=rec;
break;
case 3:
Oval oval=new Oval(p.x,p.y,width,height,currentColor,linestick);
oval.setFilled(filledShape);
oval.setDashed(linedashed);
midShape=oval;
break;
}
/*if(shapeType==4)
{
Curve curve;
if(pressedcount==0)
{
curve=new Curve(pre.x,pre.y,(pre.x+last.x)/2,(pre.y+last.y)/2,last.x,last.y,currentColor,linestick);
curve.setDashed(linedashed);
midShape=curve;
}
else
{
if(isonline())
{
curve=new Curve(curvepoint[0].x,curvepoint[0].y,curvepoint[2].x,curvepoint[2].y,curvepoint[1].x,curvepoint[1].y,currentColor,linestick);
curve.setDashed(linedashed);
midShape=curve;
}
}
}*/
repaint();
}
public void mouseMoved(MouseEvent e)
{
statusLabel.setText(String.format("(%d,%d)",e.getX(),e.getY()));
}
}
/*public boolean isonline()
{
if(curvepoint[0].x==curvepoint[1].x)
{
if(secondpoint.x==curvepoint[0].x)
isinline=true;
}
else if(curvepoint[0].y==curvepoint[0].y)
{
if(secondpoint.y==curvepoint[0].y)
isinline=true;
}
else
{
if((secondpoint.y-curvepoint[0].y)/(secondpoint.x-curvepoint[0].x)==(curvepoint[1].y-secondpoint.y)/(curvepoint[1].x-secondpoint.x))
{
isinline=true;
}
}
isinline=false;
return isinline;
}*/
}
| [
"qidanrui@gmail.com"
] | qidanrui@gmail.com |
b28b91eae0981220433556ffc8290223aa862bc5 | 3f6d75544d7023a892999cb79cd9c207a62cb3f4 | /src/com/j1/w11/HomeTheaterTestDrive.java | 38619790e77334a6169fd99e338cfef7c6b809e9 | [] | no_license | sungyejin/j1_201511114 | 502af9fc45382c829b10fb15415dd517895acb66 | 04602c81163f19ae96ceec5ec1a071aefa3e3069 | refs/heads/master | 2021-01-21T04:48:26.101415 | 2016-06-15T03:03:19 | 2016-06-15T03:03:19 | 54,562,199 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 442 | java | package com.j1.w11;
public class HomeTheaterTestDrive {
public static void main(String[] args) {
Amplifier amp =new Amplifier("My Amplifier");
Tuner tuner=new Tuner("My AM/FM Tuner",amp);
DvdPlayer dvd=new DvdPlayer("My DVD Player",amp);
Projector projector=new Projector("My Projector",dvd);
HTFacade ht=new HTFacade(amp,tuner,dvd,projector);
ht.watchMovie("My Movie Watching...");
ht.endMovie();
}
}
| [
"you@example.com"
] | you@example.com |
83c8bde781728c43582cb1aa1a17e42737146ef2 | 180e78725121de49801e34de358c32cf7148b0a2 | /dataset/protocol1/commons-lang/learning/7699/MutableTriple.java | 7966793b807b57dd2658a41d42cb8694507ca8eb | [] | no_license | ASSERT-KTH/synthetic-checkstyle-error-dataset | 40e8d1e0a7ebe7f7711def96a390891a6922f7bd | 40c057e1669584bfc6fecf789b5b2854660222f3 | refs/heads/master | 2023-03-18T12:50:55.410343 | 2019-01-25T09:54:39 | 2019-01-25T09:54:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,655 | java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.lang3.tuple;
/**
* <p>A mutable triple consisting of three {@code Object} elements.</p>
*
* <p>Not #ThreadSafe#</p>
*
* @param <L> the left element type
* @param <M> the middle element type
* @param <R> the right element type
*
* @since 3.2
*/
public class MutableTriple<L, M, R> extends Triple<L, M, R> {
/** Serialization version */
private static final long serialVersionUID = 1L;
/** Left object */
public L left;
/** Middle object */
public M middle;
/** Right object */
public R right;
/**
* <p>Obtains a mutable triple of three objects inferring the generic types.</p>
*
* <p>This factory allows the triple to be created using inference to
* obtain the generic types.</p>
*
* @param <L> the left element type
* @param <M> the middle element type
* @param <R> the right element type
* @param left the left element, may be null
* @param middle the middle element, may be null
* @param right the right element, may be null
* @return a triple formed from the three parameters, not null
*/
public static <L, M, R> MutableTriple<L, M, R> of(final L left, final M middle, final R right) {
return new MutableTriple<>(left, middle, right);
}
/**
* Create a new triple instance of three nulls.
*/
public MutableTriple() {
super();
}
/**
* Create a new triple instance.
*
* @param left the left value, may be null
* @param middle the middle value, may be null
* @param right the right value, may be null
*/
public MutableTriple(final L left, final M middle, final R right) {
super();
this.left = left;
this.middle = middle;
this.right = right;
}
//-----------------------------------------------------------------------
/**
* {@inheritDoc}
*/
@Override
public L getLeft() {
return left;
}
/**
* Sets the left element of the triple.
*
* @param left the new value of the left element, may be null
*/
public void setLeft(final L left) {
this.left = left;
}
/**
* {@inheritDoc}
*/
@Override
public M getMiddle() {
return middle;
}
/**
* Sets the middle element of the triple.
*
* @param middle the new value of the middle element, may be null
*/
public void setMiddle(final M middle) { this.middle = middle;
}
/**
* {@inheritDoc}
*/
@Override
public R getRight() {
return right;
}
/**
* Sets the right element of the triple.
*
* @param right the new value of the right element, may be null
*/
public void setRight(final R right) {
this.right = right;
}
}
| [
"bloriot97@gmail.com"
] | bloriot97@gmail.com |
e91919a2f5a655eca6e1117060eaafc39cb9f651 | c7d915893ddad2da392a96f6da21d273c4d5f2e6 | /src/结构型/享元模式/ShapeFactory.java | ac8911be4512fbb5093290ac727d03ebb8c44242 | [] | no_license | xuqm/DesignPattern | 2fc7f489fc03b76379d42faddbc63af592de40f4 | ce9ef3a2b82349a49b273191074ebab4209814b4 | refs/heads/master | 2021-03-17T14:18:08.673062 | 2020-05-20T08:56:34 | 2020-05-20T08:56:34 | 246,997,019 | 2 | 0 | null | null | null | null | UTF-8 | Java | false | false | 484 | java | package 结构型.享元模式;
import java.util.HashMap;
public class ShapeFactory {
private static final HashMap<String, Shape> circleMap = new HashMap<>();
public static Shape getCircle(String color) {
Shape circle = circleMap.get(color);
if (null == circle) {
circle = new Circle(color);
circleMap.put(color, circle);
System.out.printf("新建一个%s颜色的圆%n", color);
}
return circle;
}
}
| [
"xuqinmin12@sina.com"
] | xuqinmin12@sina.com |
0d6b1df82f2906c83d7c31d40e6bd3348e34b32f | 62e16d7a95b6d2c4800d39a5f897ba431628fd06 | /src/StringAssignment/Pattern1.java | c40750f377e9749de4f3913d73412f5c5bfc0dae | [] | no_license | sushildoiphode/Java-Project | cfb61769548e280ec57577e55d602586f8057f2a | 0011bcf5060b71bbebd1b3ce6b1c3fd5713f30b9 | refs/heads/master | 2022-12-19T09:38:44.140736 | 2020-09-21T05:13:36 | 2020-09-21T05:13:36 | 297,234,373 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 262 | java | package StringAssignment;
public class Pattern1 {
public static void main(String[] args)
{
int num=1;
for (int i = 1; i < 6; i++)
{
for(int j=1;j<=i;j++)
{
System.out.print(num+" ");
}
System.out.println();
num=num+i;
}
}
}
| [
"sushildoiphode@gmail.com"
] | sushildoiphode@gmail.com |
dbc66dcc59caa9028b7185e751194a5053f35d9d | dcfeedffb2b2419e85425de3c8dbcccb99516aec | /src/test/java/shiroTest/LoginLogoutTest.java | ecbe171934f7a8136bdfb0862e8508c9c3712c73 | [] | no_license | oueikou/shiro_l | 19043f922a0858054ccd1e94a356bfc62d90fd3a | 4ecf7b5b78465ef1f35d3ca1fcbc749377d1a16e | refs/heads/master | 2020-06-11T09:59:25.685468 | 2016-12-21T08:18:43 | 2016-12-21T08:18:43 | 75,685,449 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,075 | java | package shiroTest;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.authc.AuthenticationException;
import org.apache.shiro.authc.UsernamePasswordToken;
import org.apache.shiro.config.IniSecurityManagerFactory;
import org.apache.shiro.mgt.SecurityManager;
import org.apache.shiro.subject.Subject;
import org.apache.shiro.util.Assert;
import org.apache.shiro.util.Factory;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import shiro_l.utils.ShiroUtil;
public class LoginLogoutTest {
/**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(LoginLogoutTest.class);
/**
* 测试登录登出
*/
@Test
public void testHelloWord(){
// 1.获取SecurityManager工厂
Factory<SecurityManager> factory = new IniSecurityManagerFactory("classpath:shiro.ini");
// 2.得到SecurityManager实例
SecurityManager securityManager = factory.getInstance();
// 3.绑定到SecurityUtils
SecurityUtils.setSecurityManager(securityManager);
// 4.得到subject
Subject subject = SecurityUtils.getSubject();
// 5.创建用户名/密码身份验证Token(即用户身份/凭证)
UsernamePasswordToken token = new UsernamePasswordToken("zhang", "123");
try {
// 6.登录
subject.login(token);
} catch (AuthenticationException e) {
logger.error("shiro登录异常!", e);
}
// 7.断言用户已登录
Assert.isTrue(subject.isAuthenticated(), "用户登录失败");
// 8.退出登录
subject.logout();
}
/**
* 测试单realm
*/
@Test
public void testCustomRealm(){
Factory<SecurityManager> factory = new IniSecurityManagerFactory("classpath:shiro-realm.ini");
SecurityManager securityManager = factory.getInstance();
SecurityUtils.setSecurityManager(securityManager);
Subject subject = SecurityUtils.getSubject();
UsernamePasswordToken token = new UsernamePasswordToken("zhangsan", "1234");
try {
subject.login(token);
if(subject.isAuthenticated()){
logger.info("登录成功!");
}
logger.info("开始登出。。。");
subject.logout();
if(!subject.isAuthenticated()){
logger.info("登出成功!");
}
} catch (AuthenticationException e) {
logger.error("shiro登录异常!"+e.getMessage(), e);
}
}
/**
* 测试多realm
*/
@Test
public void testCustomMultiRealm(){
Factory<SecurityManager> factory = new IniSecurityManagerFactory("classpath:shiro-multi-realm.ini");
SecurityManager securityManager = factory.getInstance();
SecurityUtils.setSecurityManager(securityManager);
Subject subject = SecurityUtils.getSubject();
UsernamePasswordToken token = new UsernamePasswordToken("wang", "123");
try {
subject.login(token);
if(subject.isAuthenticated()){
logger.info("登录成功!");
}
logger.info("开始登出。。。");
subject.logout();
if(!subject.isAuthenticated()){
logger.info("登出成功!");
}
} catch (AuthenticationException e) {
logger.error("shiro登录异常!"+e.getMessage(), e);
}
}
/**
* 测试jdbc realm
*/
@Test
public void testJDBCRealm(){
Factory<SecurityManager> factory = new IniSecurityManagerFactory("classpath:shiro-jdbc-realm.ini");
SecurityManager securityManager = factory.getInstance();
SecurityUtils.setSecurityManager(securityManager);
Subject subject = SecurityUtils.getSubject();
UsernamePasswordToken token = new UsernamePasswordToken("zhang", "123");
try {
subject.login(token);
if(subject.isAuthenticated()){
logger.info("登录成功!");
}
logger.info("开始登出。。。");
subject.logout();
if(!subject.isAuthenticated()){
logger.info("登出成功!");
}
} catch (AuthenticationException e) {
logger.error("shiro登录异常!"+e.getMessage(), e);
}
}
@Test
public void testShiroUtil(){
Subject subject = ShiroUtil.doLogin("classpath:shiro.ini", "zhang", "123");
if (subject.isAuthenticated()) {
logger.info("====已成功登录");
subject.logout();
} else {
logger.info("====未成功登录");
}
}
}
| [
"yongheng@yongheng-PC"
] | yongheng@yongheng-PC |
9564227b9a83001c469110405f5738abc76e36b3 | 24bc4990e9d0bef6a42a6f86dc783785b10dbd42 | /chrome/android/features/tab_ui/junit/src/org/chromium/chrome/browser/tasks/tab_management/TabListMediatorUnitTest.java | 0601cfbff99231436a83a9ed953aaa9636e7b541 | [
"BSD-3-Clause"
] | permissive | nwjs/chromium.src | 7736ce86a9a0b810449a3b80a4af15de9ef9115d | 454f26d09b2f6204c096b47f778705eab1e3ba46 | refs/heads/nw75 | 2023-08-31T08:01:39.796085 | 2023-04-19T17:25:53 | 2023-04-19T17:25:53 | 50,512,158 | 161 | 201 | BSD-3-Clause | 2023-05-08T03:19:09 | 2016-01-27T14:17:03 | null | UTF-8 | Java | false | false | 201,501 | java | // Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.tasks.tab_management;
import static androidx.core.view.accessibility.AccessibilityNodeInfoCompat.ACTION_CLICK;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.instanceOf;
import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.anyBoolean;
import static org.mockito.ArgumentMatchers.anyInt;
import static org.mockito.ArgumentMatchers.anyLong;
import static org.mockito.ArgumentMatchers.anyString;
import static org.mockito.ArgumentMatchers.contains;
import static org.mockito.ArgumentMatchers.eq;
import static org.mockito.Mockito.doAnswer;
import static org.mockito.Mockito.doNothing;
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.never;
import static org.mockito.Mockito.spy;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import static org.chromium.chrome.browser.flags.ChromeFeatureList.GRID_TAB_SWITCHER_FOR_TABLETS;
import static org.chromium.chrome.browser.flags.ChromeFeatureList.START_SURFACE_ANDROID;
import static org.chromium.chrome.browser.flags.ChromeFeatureList.TAB_GROUPS_ANDROID;
import static org.chromium.chrome.browser.flags.ChromeFeatureList.TAB_GROUPS_CONTINUATION_ANDROID;
import static org.chromium.chrome.browser.tasks.tab_management.MessageCardViewProperties.MESSAGE_TYPE;
import static org.chromium.chrome.browser.tasks.tab_management.MessageService.MessageType.FOR_TESTING;
import static org.chromium.chrome.browser.tasks.tab_management.MessageService.MessageType.PRICE_MESSAGE;
import static org.chromium.chrome.browser.tasks.tab_management.MessageService.MessageType.TAB_SUGGESTION;
import static org.chromium.chrome.browser.tasks.tab_management.TabListModel.CardProperties.CARD_TYPE;
import static org.chromium.chrome.browser.tasks.tab_management.TabListModel.CardProperties.ModelType.MESSAGE;
import static org.chromium.chrome.browser.tasks.tab_management.TabListModel.CardProperties.ModelType.OTHERS;
import static org.chromium.chrome.browser.tasks.tab_management.TabListModel.CardProperties.ModelType.TAB;
import android.app.Activity;
import android.content.ComponentCallbacks;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.util.Pair;
import android.view.View;
import android.view.accessibility.AccessibilityNodeInfo;
import android.view.accessibility.AccessibilityNodeInfo.AccessibilityAction;
import androidx.annotation.IntDef;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.ItemTouchHelper;
import androidx.recyclerview.widget.RecyclerView;
import com.google.protobuf.ByteString;
import org.junit.After;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TestRule;
import org.junit.runner.RunWith;
import org.mockito.ArgumentCaptor;
import org.mockito.Captor;
import org.mockito.InOrder;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.MockitoAnnotations;
import org.mockito.invocation.InvocationOnMock;
import org.mockito.stubbing.Answer;
import org.robolectric.annotation.Config;
import org.robolectric.annotation.LooperMode;
import org.chromium.base.Callback;
import org.chromium.base.ContextUtils;
import org.chromium.base.FeatureList;
import org.chromium.base.metrics.RecordHistogram;
import org.chromium.base.metrics.UmaRecorderHolder;
import org.chromium.base.test.BaseRobolectricTestRunner;
import org.chromium.base.test.util.JniMocker;
import org.chromium.build.BuildConfig;
import org.chromium.chrome.browser.compositor.layouts.content.TabContentManager;
import org.chromium.chrome.browser.endpoint_fetcher.EndpointFetcher;
import org.chromium.chrome.browser.endpoint_fetcher.EndpointFetcherJni;
import org.chromium.chrome.browser.endpoint_fetcher.EndpointResponse;
import org.chromium.chrome.browser.feature_engagement.TrackerFactory;
import org.chromium.chrome.browser.flags.CachedFeatureFlags;
import org.chromium.chrome.browser.flags.ChromeFeatureList;
import org.chromium.chrome.browser.multiwindow.MultiWindowUtils;
import org.chromium.chrome.browser.optimization_guide.OptimizationGuideBridge;
import org.chromium.chrome.browser.optimization_guide.OptimizationGuideBridge.OptimizationGuideCallback;
import org.chromium.chrome.browser.optimization_guide.OptimizationGuideBridgeJni;
import org.chromium.chrome.browser.preferences.ChromePreferenceKeys;
import org.chromium.chrome.browser.preferences.SharedPreferencesManager;
import org.chromium.chrome.browser.price_tracking.PriceTrackingFeatures;
import org.chromium.chrome.browser.price_tracking.PriceTrackingUtilities;
import org.chromium.chrome.browser.profiles.Profile;
import org.chromium.chrome.browser.search_engines.TemplateUrlServiceFactory;
import org.chromium.chrome.browser.tab.MockTab;
import org.chromium.chrome.browser.tab.Tab;
import org.chromium.chrome.browser.tab.TabCreationState;
import org.chromium.chrome.browser.tab.TabImpl;
import org.chromium.chrome.browser.tab.TabLaunchType;
import org.chromium.chrome.browser.tab.TabObserver;
import org.chromium.chrome.browser.tab.TabSelectionType;
import org.chromium.chrome.browser.tab.state.CriticalPersistedTabData;
import org.chromium.chrome.browser.tab.state.PersistedTabDataConfiguration;
import org.chromium.chrome.browser.tab.state.ShoppingPersistedTabData;
import org.chromium.chrome.browser.tab.state.ShoppingPersistedTabData.PriceDrop;
import org.chromium.chrome.browser.tabmodel.EmptyTabModelFilter;
import org.chromium.chrome.browser.tabmodel.TabModel;
import org.chromium.chrome.browser.tabmodel.TabModelFilter;
import org.chromium.chrome.browser.tabmodel.TabModelFilterProvider;
import org.chromium.chrome.browser.tabmodel.TabModelObserver;
import org.chromium.chrome.browser.tabmodel.TabModelSelectorImpl;
import org.chromium.chrome.browser.tasks.pseudotab.PseudoTab;
import org.chromium.chrome.browser.tasks.pseudotab.TabAttributeCache;
import org.chromium.chrome.browser.tasks.tab_groups.TabGroupModelFilter;
import org.chromium.chrome.browser.tasks.tab_management.PriceMessageService.PriceTabData;
import org.chromium.chrome.browser.tasks.tab_management.TabListCoordinator.TabListMode;
import org.chromium.chrome.browser.tasks.tab_management.TabListFaviconProvider.TabFavicon;
import org.chromium.chrome.browser.tasks.tab_management.TabListMediator.ShoppingPersistedTabDataFetcher;
import org.chromium.chrome.browser.tasks.tab_management.TabListMediator.ThumbnailFetcher;
import org.chromium.chrome.browser.tasks.tab_management.TabProperties.UiType;
import org.chromium.chrome.features.start_surface.StartSurfaceConfiguration;
import org.chromium.chrome.tab_ui.R;
import org.chromium.chrome.test.util.browser.Features;
import org.chromium.components.browser_ui.widget.selectable_list.SelectionDelegate;
import org.chromium.components.commerce.PriceTracking.BuyableProduct;
import org.chromium.components.commerce.PriceTracking.PriceTrackingData;
import org.chromium.components.commerce.PriceTracking.ProductPrice;
import org.chromium.components.embedder_support.util.UrlUtilities;
import org.chromium.components.embedder_support.util.UrlUtilitiesJni;
import org.chromium.components.feature_engagement.EventConstants;
import org.chromium.components.feature_engagement.Tracker;
import org.chromium.components.optimization_guide.OptimizationGuideDecision;
import org.chromium.components.optimization_guide.proto.CommonTypesProto.Any;
import org.chromium.components.search_engines.TemplateUrlService;
import org.chromium.content_public.browser.NavigationHandle;
import org.chromium.ui.modelutil.PropertyModel;
import org.chromium.ui.modelutil.SimpleRecyclerViewAdapter;
import org.chromium.url.GURL;
import org.chromium.url.JUnitTestGURLs;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
/**
* Tests for {@link TabListMediator}.
*/
@SuppressWarnings(
{"ArraysAsListWithZeroOrOneArgument", "ResultOfMethodCallIgnored", "ConstantConditions"})
@RunWith(BaseRobolectricTestRunner.class)
@Config(manifest = Config.NONE,
instrumentedPackages =
{
"androidx.recyclerview.widget.RecyclerView" // required to mock final
})
@LooperMode(LooperMode.Mode.LEGACY)
// clang-format off
@Features.EnableFeatures(ChromeFeatureList.TAB_TO_GTS_ANIMATION)
@Features.DisableFeatures({
TAB_GROUPS_ANDROID, TAB_GROUPS_CONTINUATION_ANDROID, START_SURFACE_ANDROID})
public class TabListMediatorUnitTest {
// clang-format on
@Rule
public TestRule mProcessor = new Features.JUnitProcessor();
@Rule
public JniMocker mMocker = new JniMocker();
private static final String TAB1_TITLE = "Tab1";
private static final String TAB2_TITLE = "Tab2";
private static final String TAB3_TITLE = "Tab3";
private static final String TAB4_TITLE = "Tab4";
private static final String NEW_TITLE = "New title";
private static final String CUSTOMIZED_DIALOG_TITLE1 = "Cool Tabs";
private static final String TAB_GROUP_TITLES_FILE_NAME = "tab_group_titles";
private static final GURL TAB1_URL = JUnitTestGURLs.getGURL(JUnitTestGURLs.URL_1);
private static final GURL TAB2_URL = JUnitTestGURLs.getGURL(JUnitTestGURLs.URL_2);
private static final GURL TAB3_URL = JUnitTestGURLs.getGURL(JUnitTestGURLs.URL_3);
private static final GURL TAB4_URL = JUnitTestGURLs.getGURL(JUnitTestGURLs.RED_1);
private static final String NEW_URL = JUnitTestGURLs.EXAMPLE_URL;
private static final int TAB1_ID = 456;
private static final int TAB2_ID = 789;
private static final int TAB3_ID = 123;
private static final int TAB4_ID = 290;
private static final int POSITION1 = 0;
private static final int POSITION2 = 1;
private static final BuyableProduct BUYABLE_PRODUCT_PROTO_INITIAL =
BuyableProduct.newBuilder()
.setCurrentPrice(createProductPrice(123456789012345L, "USD"))
.build();
private static ProductPrice createProductPrice(long amountMicros, String currencyCode) {
return ProductPrice.newBuilder()
.setCurrencyCode(currencyCode)
.setAmountMicros(amountMicros)
.build();
}
private static final PriceTrackingData PRICE_TRACKING_BUYABLE_PRODUCT_INITIAL =
PriceTrackingData.newBuilder().setBuyableProduct(BUYABLE_PRODUCT_PROTO_INITIAL).build();
private static final Any ANY_BUYABLE_PRODUCT_INITIAL =
Any.newBuilder()
.setValue(ByteString.copyFrom(
PRICE_TRACKING_BUYABLE_PRODUCT_INITIAL.toByteArray()))
.build();
private static final Any ANY_EMPTY = Any.newBuilder().build();
@IntDef({TabListMediatorType.TAB_SWITCHER, TabListMediatorType.TAB_STRIP,
TabListMediatorType.TAB_GRID_DIALOG})
@Retention(RetentionPolicy.SOURCE)
public @interface TabListMediatorType {
int TAB_SWITCHER = 0;
int TAB_STRIP = 1;
int TAB_GRID_DIALOG = 2;
int NUM_ENTRIES = 3;
}
@Mock
TabContentManager mTabContentManager;
@Mock
TabModelSelectorImpl mTabModelSelector;
@Mock
TabModelFilterProvider mTabModelFilterProvider;
@Mock
TabModelFilter mTabModelFilter;
@Mock
TabModel mTabModel;
@Mock
TabListFaviconProvider mTabListFaviconProvider;
@Mock
TabListFaviconProvider.TabFaviconFetcher mTabFaviconFetcher;
@Mock
RecyclerView mRecyclerView;
@Mock
TabListRecyclerView mTabListRecyclerView;
@Mock
RecyclerView.Adapter mAdapter;
@Mock
TabGroupModelFilter mTabGroupModelFilter;
@Mock
EmptyTabModelFilter mEmptyTabModelFilter;
@Mock
TabListMediator.TabGridDialogHandler mTabGridDialogHandler;
@Mock
TabListMediator.GridCardOnClickListenerProvider mGridCardOnClickListenerProvider;
@Mock
TabFavicon mFavicon;
@Mock
Bitmap mFaviconBitmap;
@Mock
Activity mActivity;
@Mock
TabListMediator.TabActionListener mOpenGroupActionListener;
@Mock
GridLayoutManager mGridLayoutManager;
@Mock
GridLayoutManager.SpanSizeLookup mSpanSizeLookup;
@Mock
Profile mProfile;
@Mock
Tracker mTracker;
@Mock
PseudoTab.TitleProvider mTitleProvider;
@Mock
UrlUtilities.Natives mUrlUtilitiesJniMock;
@Mock
OptimizationGuideBridge.Natives mOptimizationGuideBridgeJniMock;
@Mock
TabListMediator.TabGridAccessibilityHelper mTabGridAccessibilityHelper;
@Mock
TemplateUrlService mTemplateUrlService;
@Mock
TabSwitcherMediator.PriceWelcomeMessageController mPriceWelcomeMessageController;
@Mock
ShoppingPersistedTabData mShoppingPersistedTabData;
@Mock
SelectionDelegate<Integer> mSelectionDelegate;
@Captor
ArgumentCaptor<TabModelObserver> mTabModelObserverCaptor;
@Captor
ArgumentCaptor<TabObserver> mTabObserverCaptor;
@Captor
ArgumentCaptor<Callback<TabFavicon>> mCallbackCaptor;
@Captor
ArgumentCaptor<TabGroupModelFilter.Observer> mTabGroupModelFilterObserverCaptor;
@Captor
ArgumentCaptor<ComponentCallbacks> mComponentCallbacksCaptor;
@Captor
ArgumentCaptor<TemplateUrlService.TemplateUrlServiceObserver> mTemplateUrlServiceObserver;
@Captor
ArgumentCaptor<RecyclerView.OnScrollListener> mOnScrollListenerCaptor;
@Mock
EndpointFetcher.Natives mEndpointFetcherJniMock;
@Mock
private Resources mResources;
private TabImpl mTab1;
private TabImpl mTab2;
private TabListMediator mMediator;
private TabListModel mModel;
private SimpleRecyclerViewAdapter.ViewHolder mViewHolder1;
private SimpleRecyclerViewAdapter.ViewHolder mViewHolder2;
private RecyclerView.ViewHolder mDummyViewHolder1;
private RecyclerView.ViewHolder mDummyViewHolder2;
private View mItemView1 = mock(View.class);
private View mItemView2 = mock(View.class);
private TabModelObserver mMediatorTabModelObserver;
private TabGroupModelFilter.Observer mMediatorTabGroupModelFilterObserver;
private PriceDrop mPriceDrop;
private PriceTabData mPriceTabData;
private String mTab1Domain;
private String mTab2Domain;
private String mTab3Domain;
private String mNewDomain;
private GURL mFaviconUrl;
@Before
public void setUp() {
MockitoAnnotations.initMocks(this);
mMocker.mock(UrlUtilitiesJni.TEST_HOOKS, mUrlUtilitiesJniMock);
mMocker.mock(EndpointFetcherJni.TEST_HOOKS, mEndpointFetcherJniMock);
mMocker.mock(OptimizationGuideBridgeJni.TEST_HOOKS, mOptimizationGuideBridgeJniMock);
// Ensure native pointer is initialized
doReturn(1L).when(mOptimizationGuideBridgeJniMock).init();
when(mActivity.getResources()).thenReturn(mResources);
when(mResources.getInteger(org.chromium.ui.R.integer.min_screen_width_bucket))
.thenReturn(1);
mTab1Domain = TAB1_URL.getHost().replace("www.", "");
mTab2Domain = TAB2_URL.getHost().replace("www.", "");
mTab3Domain = TAB3_URL.getHost().replace("www.", "");
mNewDomain = JUnitTestGURLs.getGURL(NEW_URL).getHost().replace("www.", "");
mFaviconUrl = JUnitTestGURLs.getGURL(JUnitTestGURLs.RED_1);
mTab1 = prepareTab(TAB1_ID, TAB1_TITLE, TAB1_URL);
mTab2 = prepareTab(TAB2_ID, TAB2_TITLE, TAB2_URL);
mViewHolder1 = prepareViewHolder(TAB1_ID, POSITION1);
mViewHolder2 = prepareViewHolder(TAB2_ID, POSITION2);
mDummyViewHolder1 = prepareDummyViewHolder(mItemView1, POSITION1);
mDummyViewHolder2 = prepareDummyViewHolder(mItemView2, POSITION2);
List<Tab> tabs1 = new ArrayList<>(Arrays.asList(mTab1));
List<Tab> tabs2 = new ArrayList<>(Arrays.asList(mTab2));
List<TabModel> tabModelList = new ArrayList<>();
tabModelList.add(mTabModel);
doNothing()
.when(mTabContentManager)
.getTabThumbnailWithCallback(anyInt(), any(), any(), anyBoolean(), anyBoolean());
doReturn(mTabModel).when(mTabModelSelector).getCurrentModel();
// Incognito is unused. Mock the same profile for simplified test.
doReturn(mTabModel).when(mTabModelSelector).getModel(false);
doReturn(mTabModel).when(mTabModelSelector).getModel(true);
doReturn(mProfile).when(mTabModel).getProfile();
doReturn(tabModelList).when(mTabModelSelector).getModels();
doReturn(mTabModelFilterProvider).when(mTabModelSelector).getTabModelFilterProvider();
doReturn(mTabModelFilter).when(mTabModelFilterProvider).getCurrentTabModelFilter();
doReturn(2).when(mTabModelFilter).getCount();
doReturn(mTab1).when(mTabModelFilter).getTabAt(POSITION1);
doReturn(mTab2).when(mTabModelFilter).getTabAt(POSITION2);
doReturn(tabs1).when(mTabModelFilter).getRelatedTabList(TAB1_ID);
doReturn(tabs2).when(mTabModelFilter).getRelatedTabList(TAB2_ID);
doReturn(mTab1).when(mTabModelSelector).getCurrentTab();
doReturn(TAB1_ID).when(mTabModelSelector).getCurrentTabId();
doNothing()
.when(mTabModelFilterProvider)
.addTabModelFilterObserver(mTabModelObserverCaptor.capture());
doReturn(mTab1).when(mTabModel).getTabAt(POSITION1);
doReturn(mTab2).when(mTabModel).getTabAt(POSITION2);
doReturn(POSITION1).when(mTabModel).indexOf(mTab1);
doReturn(POSITION2).when(mTabModel).indexOf(mTab2);
doNothing().when(mTab1).addObserver(mTabObserverCaptor.capture());
doReturn(0).when(mTabModel).index();
doReturn(2).when(mTabModel).getCount();
doNothing()
.when(mTabListFaviconProvider)
.getFaviconForUrlAsync(any(GURL.class), anyBoolean(), mCallbackCaptor.capture());
doReturn(mFavicon)
.when(mTabListFaviconProvider)
.getFaviconFromBitmap(any(Bitmap.class), any(GURL.class));
doNothing().when(mTabFaviconFetcher).fetch(mCallbackCaptor.capture());
doReturn(mTabFaviconFetcher)
.when(mTabListFaviconProvider)
.getDefaultFaviconFetcher(anyBoolean());
doReturn(mTabFaviconFetcher)
.when(mTabListFaviconProvider)
.getFaviconForUrlFetcher(any(GURL.class), anyBoolean());
doReturn(mTabFaviconFetcher)
.when(mTabListFaviconProvider)
.getFaviconFromBitmapFetcher(any(Bitmap.class), any(GURL.class));
doReturn(mTabFaviconFetcher)
.when(mTabListFaviconProvider)
.getComposedFaviconImageFetcher(any(), anyBoolean());
doReturn(mTab1).when(mTabModelSelector).getTabById(TAB1_ID);
doReturn(mTab2).when(mTabModelSelector).getTabById(TAB2_ID);
doReturn(tabs1).when(mTabGroupModelFilter).getRelatedTabList(TAB1_ID);
doReturn(tabs2).when(mTabGroupModelFilter).getRelatedTabList(TAB2_ID);
doReturn(POSITION1).when(mTabGroupModelFilter).indexOf(mTab1);
doReturn(POSITION2).when(mTabGroupModelFilter).indexOf(mTab2);
doReturn(mTab1).when(mTabGroupModelFilter).getTabAt(POSITION1);
doReturn(mTab2).when(mTabGroupModelFilter).getTabAt(POSITION2);
doReturn(mOpenGroupActionListener)
.when(mGridCardOnClickListenerProvider)
.openTabGridDialog(any(Tab.class));
doNothing().when(mActivity).registerComponentCallbacks(mComponentCallbacksCaptor.capture());
doReturn(mGridLayoutManager).when(mRecyclerView).getLayoutManager();
doReturn(TabListCoordinator.GRID_LAYOUT_SPAN_COUNT_COMPACT)
.when(mGridLayoutManager)
.getSpanCount();
doReturn(mSpanSizeLookup).when(mGridLayoutManager).getSpanSizeLookup();
doReturn(mTab1Domain)
.when(mUrlUtilitiesJniMock)
.getDomainAndRegistry(eq(TAB1_URL.getSpec()), anyBoolean());
doReturn(mTab2Domain)
.when(mUrlUtilitiesJniMock)
.getDomainAndRegistry(eq(TAB2_URL.getSpec()), anyBoolean());
doReturn(mTab3Domain)
.when(mUrlUtilitiesJniMock)
.getDomainAndRegistry(eq(TAB3_URL.getSpec()), anyBoolean());
doNothing().when(mTemplateUrlService).addObserver(mTemplateUrlServiceObserver.capture());
doReturn(true).when(mTabListFaviconProvider).isInitialized();
mModel = new TabListModel();
TemplateUrlServiceFactory.setInstanceForTesting(mTemplateUrlService);
mMediator = new TabListMediator(mActivity, mModel, TabListMode.GRID, mTabModelSelector,
getTabThumbnailCallback(), mTitleProvider, mTabListFaviconProvider, false, null,
mGridCardOnClickListenerProvider, null, null, getClass().getSimpleName(),
UiType.CLOSABLE, null);
mMediator.registerOrientationListener(mGridLayoutManager);
TrackerFactory.setTrackerForTests(mTracker);
// TabModelObserver is registered when native is ready.
assertThat(mTabModelObserverCaptor.getAllValues().isEmpty(), equalTo(true));
mMediator.initWithNative();
assertThat(mTabModelObserverCaptor.getAllValues().isEmpty(), equalTo(false));
doAnswer(invocation -> {
int position = invocation.getArgument(0);
int itemType = mModel.get(position).type;
if (itemType == UiType.MESSAGE || itemType == UiType.LARGE_MESSAGE) {
return mGridLayoutManager.getSpanCount();
}
return 1;
})
.when(mSpanSizeLookup)
.getSpanSize(anyInt());
}
@After
public void tearDown() {
CachedFeatureFlags.resetFlagsForTesting();
PseudoTab.clearForTesting();
TabAttributeCache.clearAllForTesting();
getGroupTitleSharedPreferences().edit().clear();
}
private static SharedPreferences getGroupTitleSharedPreferences() {
return ContextUtils.getApplicationContext().getSharedPreferences(
TAB_GROUP_TITLES_FILE_NAME, Context.MODE_PRIVATE);
}
@Test
public void initializesWithCurrentTabs() {
initAndAssertAllProperties();
}
@Test
public void updatesTitle_WithoutStoredTitle() {
initAndAssertAllProperties();
assertThat(mModel.get(0).model.get(TabProperties.TITLE), equalTo(TAB1_TITLE));
when(mTitleProvider.getTitle(mActivity, PseudoTab.fromTab(mTab1))).thenReturn(NEW_TITLE);
mTabObserverCaptor.getValue().onTitleUpdated(mTab1);
assertThat(mModel.get(0).model.get(TabProperties.TITLE), equalTo(NEW_TITLE));
}
@Test
@Features.EnableFeatures(TAB_GROUPS_CONTINUATION_ANDROID)
public void updatesTitle_WithStoredTitle_TabGroup() {
setUpForTabGroupOperation(TabListMediatorType.TAB_SWITCHER, TabListMode.GRID);
// Mock that tab1 and new tab are in the same group with root ID as TAB1_ID.
TabImpl newTab = prepareTab(TAB3_ID, TAB3_TITLE, TAB3_URL);
List<Tab> tabs = new ArrayList<>(Arrays.asList(mTab1, newTab));
createTabGroup(tabs, TAB1_ID);
// Mock that we have a stored title stored with reference to root ID of tab1.
getGroupTitleSharedPreferences()
.edit()
.putString(String.valueOf(CriticalPersistedTabData.from(mTab1).getRootId()),
CUSTOMIZED_DIALOG_TITLE1)
.apply();
assertThat(mModel.get(0).model.get(TabProperties.TITLE), equalTo(TAB1_TITLE));
mTabObserverCaptor.getValue().onTitleUpdated(mTab1);
assertThat(mModel.get(0).model.get(TabProperties.TITLE), equalTo(CUSTOMIZED_DIALOG_TITLE1));
}
@Test
public void updatesFavicon_SingleTab_GTS() {
initAndAssertAllProperties();
mMediator.setActionOnAllRelatedTabsForTesting(true);
mModel.get(0).model.set(TabProperties.FAVICON, null);
assertNull(mModel.get(0).model.get(TabProperties.FAVICON));
mTabObserverCaptor.getValue().onFaviconUpdated(mTab1, mFaviconBitmap, mFaviconUrl);
assertNotNull(mModel.get(0).model.get(TabProperties.FAVICON));
}
@Test
public void updatesFavicon_SingleTab_NonGTS() {
initAndAssertAllProperties();
mModel.get(0).model.set(TabProperties.FAVICON, null);
assertNull(mModel.get(0).model.get(TabProperties.FAVICON));
mTabObserverCaptor.getValue().onFaviconUpdated(mTab1, mFaviconBitmap, mFaviconUrl);
assertNotNull(mModel.get(0).model.get(TabProperties.FAVICON));
}
@Test
public void updatesFavicon_TabGroup_GTS() {
initAndAssertAllProperties();
mMediator.setActionOnAllRelatedTabsForTesting(true);
assertNotNull(mModel.get(0).model.get(TabProperties.FAVICON));
// Assert that tab1 is in a group.
TabImpl newTab = prepareTab(TAB3_ID, TAB3_TITLE, TAB3_URL);
doReturn(Arrays.asList(mTab1, newTab)).when(mTabModelFilter).getRelatedTabList(eq(TAB1_ID));
mTabObserverCaptor.getValue().onFaviconUpdated(mTab1, mFaviconBitmap, mFaviconUrl);
assertNull(mModel.get(0).model.get(TabProperties.FAVICON));
}
@Test
public void updateFavicon_StaleIndex() {
initAndAssertAllProperties();
mModel.get(0).model.set(TabProperties.FAVICON, null);
mModel.get(1).model.set(TabProperties.FAVICON, null);
mMediator.updateFaviconForTab(PseudoTab.fromTab(mTab2), null, null);
assertThat(mModel.indexFromId(TAB2_ID), equalTo(1));
// Before executing callback, there is a deletion in tab list model which makes the index
// stale.
mModel.removeAt(0);
assertThat(mModel.indexFromId(TAB2_ID), equalTo(0));
// Start to execute callback.
mCallbackCaptor.getValue().onResult(mFavicon);
assertThat(mModel.get(0).model.get(TabProperties.FAVICON), equalTo(mFavicon));
}
@Test
public void updatesFavicon_Navigation_NoOpSameDocument() {
initAndAssertAllProperties();
mMediator.setActionOnAllRelatedTabsForTesting(true);
doReturn(true).when(mTabModelSelector).isTabStateInitialized();
doReturn(mFavicon).when(mTabListFaviconProvider).getDefaultFavicon(anyBoolean());
mModel.get(0).model.set(TabProperties.FAVICON, null);
assertNull(mModel.get(0).model.get(TabProperties.FAVICON));
NavigationHandle navigationHandle = mock(NavigationHandle.class);
when(navigationHandle.getUrl()).thenReturn(TAB2_URL);
when(navigationHandle.isSameDocument()).thenReturn(true);
mTabObserverCaptor.getValue().onDidStartNavigationInPrimaryMainFrame(
mTab1, navigationHandle);
assertNull(mModel.get(0).model.get(TabProperties.FAVICON));
}
@Test
public void updatesFavicon_Navigation_NoOpSameUrl() {
initAndAssertAllProperties();
mMediator.setActionOnAllRelatedTabsForTesting(true);
doReturn(true).when(mTabModelSelector).isTabStateInitialized();
doReturn(mFavicon).when(mTabListFaviconProvider).getDefaultFavicon(anyBoolean());
mModel.get(0).model.set(TabProperties.FAVICON, null);
assertNull(mModel.get(0).model.get(TabProperties.FAVICON));
NavigationHandle navigationHandle = mock(NavigationHandle.class);
when(navigationHandle.getUrl()).thenReturn(TAB1_URL);
when(navigationHandle.isSameDocument()).thenReturn(false);
mTabObserverCaptor.getValue().onDidStartNavigationInPrimaryMainFrame(
mTab1, navigationHandle);
assertNull(mModel.get(0).model.get(TabProperties.FAVICON));
}
@Test
public void updatesFavicon_Navigation_NoOpNtpUrl() {
initAndAssertAllProperties();
mMediator.setActionOnAllRelatedTabsForTesting(true);
doReturn(true).when(mTabModelSelector).isTabStateInitialized();
doReturn(mFavicon).when(mTabListFaviconProvider).getDefaultFavicon(anyBoolean());
NavigationHandle navigationHandle = mock(NavigationHandle.class);
when(navigationHandle.getUrl()).thenReturn(TAB2_URL);
when(navigationHandle.isSameDocument()).thenReturn(false);
TabImpl newTab =
prepareTab(TAB3_ID, TAB3_TITLE, JUnitTestGURLs.getGURL(JUnitTestGURLs.NTP_URL));
doReturn(mTab1).when(mTabModelFilter).getTabAt(0);
doReturn(mTab2).when(mTabModelFilter).getTabAt(1);
doReturn(newTab).when(mTabModelFilter).getTabAt(2);
doReturn(3).when(mTabModelFilter).getCount();
doReturn(Arrays.asList(newTab)).when(mTabModelFilter).getRelatedTabList(eq(TAB3_ID));
assertThat(mModel.size(), equalTo(2));
mTabModelObserverCaptor.getValue().didAddTab(
newTab, TabLaunchType.FROM_CHROME_UI, TabCreationState.LIVE_IN_FOREGROUND, false);
assertThat(mModel.size(), equalTo(3));
assertThat(mModel.get(2).model.get(TabProperties.TAB_ID), equalTo(TAB3_ID));
assertThat(mModel.get(2).model.get(TabProperties.TITLE), equalTo(TAB3_TITLE));
mModel.get(2).model.set(TabProperties.FAVICON, null);
assertNull(mModel.get(2).model.get(TabProperties.FAVICON));
mTabObserverCaptor.getValue().onDidStartNavigationInPrimaryMainFrame(
newTab, navigationHandle);
assertNull(mModel.get(2).model.get(TabProperties.FAVICON));
}
@Test
public void updatesFavicon_Navigation() {
initAndAssertAllProperties();
mMediator.setActionOnAllRelatedTabsForTesting(true);
doReturn(mFavicon).when(mTabListFaviconProvider).getDefaultFavicon(anyBoolean());
mModel.get(0).model.set(TabProperties.FAVICON, null);
assertNull(mModel.get(0).model.get(TabProperties.FAVICON));
NavigationHandle navigationHandle = mock(NavigationHandle.class);
when(navigationHandle.isSameDocument()).thenReturn(false);
when(navigationHandle.getUrl()).thenReturn(TAB2_URL);
mTabObserverCaptor.getValue().onDidStartNavigationInPrimaryMainFrame(
mTab1, navigationHandle);
assertNotNull(mModel.get(0).model.get(TabProperties.FAVICON));
}
@Test
@Features.EnableFeatures(TAB_GROUPS_CONTINUATION_ANDROID)
public void updatesFaviconFetcher_SingleTab_GTS() {
TabUiFeatureUtilities.ENABLE_DEFERRED_FAVICON.setForTesting(true);
initAndAssertAllProperties();
mMediator.setActionOnAllRelatedTabsForTesting(true);
mModel.get(0).model.set(TabProperties.FAVICON_FETCHER, null);
assertNull(mModel.get(0).model.get(TabProperties.FAVICON_FETCHER));
mTabObserverCaptor.getValue().onFaviconUpdated(mTab1, mFaviconBitmap, mFaviconUrl);
assertNotNull(mModel.get(0).model.get(TabProperties.FAVICON_FETCHER));
TabListFaviconProvider.TabFavicon[] favicon = new TabListFaviconProvider.TabFavicon[1];
mModel.get(0).model.get(TabProperties.FAVICON_FETCHER).fetch(tabFavicon -> {
favicon[0] = tabFavicon;
});
mCallbackCaptor.getValue().onResult(mFavicon);
assertEquals(favicon[0], mFavicon);
}
@Test
@Features.EnableFeatures(TAB_GROUPS_CONTINUATION_ANDROID)
public void updatesFaviconFetcher_SingleTab_NonGTS() {
TabUiFeatureUtilities.ENABLE_DEFERRED_FAVICON.setForTesting(true);
initAndAssertAllProperties();
mModel.get(0).model.set(TabProperties.FAVICON_FETCHER, null);
assertNull(mModel.get(0).model.get(TabProperties.FAVICON_FETCHER));
mTabObserverCaptor.getValue().onFaviconUpdated(mTab1, mFaviconBitmap, mFaviconUrl);
assertNotNull(mModel.get(0).model.get(TabProperties.FAVICON_FETCHER));
TabListFaviconProvider.TabFavicon[] favicon = new TabListFaviconProvider.TabFavicon[1];
mModel.get(0).model.get(TabProperties.FAVICON_FETCHER).fetch(tabFavicon -> {
favicon[0] = tabFavicon;
});
mCallbackCaptor.getValue().onResult(mFavicon);
assertEquals(favicon[0], mFavicon);
}
@Test
@Features.EnableFeatures(TAB_GROUPS_CONTINUATION_ANDROID)
public void updatesFaviconFetcher_TabGroup_GTS() {
TabUiFeatureUtilities.ENABLE_DEFERRED_FAVICON.setForTesting(true);
initAndAssertAllProperties();
mMediator.setActionOnAllRelatedTabsForTesting(true);
assertNotNull(mModel.get(0).model.get(TabProperties.FAVICON_FETCHER));
// Assert that tab1 is in a group.
TabImpl newTab = prepareTab(TAB3_ID, TAB3_TITLE, TAB3_URL);
doReturn(Arrays.asList(mTab1, newTab)).when(mTabModelFilter).getRelatedTabList(eq(TAB1_ID));
mTabObserverCaptor.getValue().onFaviconUpdated(mTab1, mFaviconBitmap, mFaviconUrl);
assertNull(mModel.get(0).model.get(TabProperties.FAVICON_FETCHER));
}
@Test
@Features.EnableFeatures(TAB_GROUPS_CONTINUATION_ANDROID)
public void updatesFaviconFetcher_Navigation_NoOpSameDocument() {
TabUiFeatureUtilities.ENABLE_DEFERRED_FAVICON.setForTesting(true);
initAndAssertAllProperties();
mMediator.setActionOnAllRelatedTabsForTesting(true);
doReturn(true).when(mTabModelSelector).isTabStateInitialized();
doReturn(mFavicon).when(mTabListFaviconProvider).getDefaultFavicon(anyBoolean());
mModel.get(0).model.set(TabProperties.FAVICON_FETCHER, null);
assertNull(mModel.get(0).model.get(TabProperties.FAVICON_FETCHER));
NavigationHandle navigationHandle = mock(NavigationHandle.class);
when(navigationHandle.getUrl()).thenReturn(TAB2_URL);
when(navigationHandle.isSameDocument()).thenReturn(true);
mTabObserverCaptor.getValue().onDidStartNavigationInPrimaryMainFrame(
mTab1, navigationHandle);
assertNull(mModel.get(0).model.get(TabProperties.FAVICON_FETCHER));
}
@Test
@Features.EnableFeatures(TAB_GROUPS_CONTINUATION_ANDROID)
public void updatesFaviconFetcher_Navigation_NoOpSameUrl() {
TabUiFeatureUtilities.ENABLE_DEFERRED_FAVICON.setForTesting(true);
initAndAssertAllProperties();
mMediator.setActionOnAllRelatedTabsForTesting(true);
doReturn(true).when(mTabModelSelector).isTabStateInitialized();
doReturn(mFavicon).when(mTabListFaviconProvider).getDefaultFavicon(anyBoolean());
mModel.get(0).model.set(TabProperties.FAVICON_FETCHER, null);
assertNull(mModel.get(0).model.get(TabProperties.FAVICON_FETCHER));
NavigationHandle navigationHandle = mock(NavigationHandle.class);
when(navigationHandle.getUrl()).thenReturn(TAB1_URL);
when(navigationHandle.isSameDocument()).thenReturn(false);
mTabObserverCaptor.getValue().onDidStartNavigationInPrimaryMainFrame(
mTab1, navigationHandle);
assertNull(mModel.get(0).model.get(TabProperties.FAVICON_FETCHER));
}
@Test
@Features.EnableFeatures(TAB_GROUPS_CONTINUATION_ANDROID)
public void updatesFaviconFetcher_Navigation_NoOpNtpUrl() {
TabUiFeatureUtilities.ENABLE_DEFERRED_FAVICON.setForTesting(true);
initAndAssertAllProperties();
mMediator.setActionOnAllRelatedTabsForTesting(true);
doReturn(true).when(mTabModelSelector).isTabStateInitialized();
doReturn(mFavicon).when(mTabListFaviconProvider).getDefaultFavicon(anyBoolean());
NavigationHandle navigationHandle = mock(NavigationHandle.class);
when(navigationHandle.getUrl()).thenReturn(TAB2_URL);
when(navigationHandle.isSameDocument()).thenReturn(false);
TabImpl newTab =
prepareTab(TAB3_ID, TAB3_TITLE, JUnitTestGURLs.getGURL(JUnitTestGURLs.NTP_URL));
doReturn(mTab1).when(mTabModelFilter).getTabAt(0);
doReturn(mTab2).when(mTabModelFilter).getTabAt(1);
doReturn(newTab).when(mTabModelFilter).getTabAt(2);
doReturn(3).when(mTabModelFilter).getCount();
doReturn(Arrays.asList(newTab)).when(mTabModelFilter).getRelatedTabList(eq(TAB3_ID));
assertThat(mModel.size(), equalTo(2));
mTabModelObserverCaptor.getValue().didAddTab(
newTab, TabLaunchType.FROM_CHROME_UI, TabCreationState.LIVE_IN_FOREGROUND, false);
assertThat(mModel.size(), equalTo(3));
assertThat(mModel.get(2).model.get(TabProperties.TAB_ID), equalTo(TAB3_ID));
assertThat(mModel.get(2).model.get(TabProperties.TITLE), equalTo(TAB3_TITLE));
mModel.get(2).model.set(TabProperties.FAVICON_FETCHER, null);
assertNull(mModel.get(2).model.get(TabProperties.FAVICON_FETCHER));
mTabObserverCaptor.getValue().onDidStartNavigationInPrimaryMainFrame(
newTab, navigationHandle);
assertNull(mModel.get(2).model.get(TabProperties.FAVICON_FETCHER));
}
@Test
@Features.EnableFeatures(TAB_GROUPS_CONTINUATION_ANDROID)
public void updatesFaviconFetcher_Navigation() {
TabUiFeatureUtilities.ENABLE_DEFERRED_FAVICON.setForTesting(true);
initAndAssertAllProperties();
mMediator.setActionOnAllRelatedTabsForTesting(true);
mModel.get(0).model.set(TabProperties.FAVICON_FETCHER, null);
assertNull(mModel.get(0).model.get(TabProperties.FAVICON_FETCHER));
NavigationHandle navigationHandle = mock(NavigationHandle.class);
when(navigationHandle.isSameDocument()).thenReturn(false);
when(navigationHandle.getUrl()).thenReturn(TAB2_URL);
mTabObserverCaptor.getValue().onDidStartNavigationInPrimaryMainFrame(
mTab1, navigationHandle);
assertNotNull(mModel.get(0).model.get(TabProperties.FAVICON_FETCHER));
}
@Test
public void sendsSelectSignalCorrectly() {
initAndAssertAllProperties();
mModel.get(1)
.model.get(TabProperties.TAB_SELECTED_LISTENER)
.run(mModel.get(1).model.get(TabProperties.TAB_ID));
verify(mGridCardOnClickListenerProvider)
.onTabSelecting(mModel.get(1).model.get(TabProperties.TAB_ID), true);
}
@Test
public void sendsCloseSignalCorrectly() {
initAndAssertAllProperties();
mModel.get(1)
.model.get(TabProperties.TAB_CLOSED_LISTENER)
.run(mModel.get(1).model.get(TabProperties.TAB_ID));
verify(mTabModel).closeTab(eq(mTab2), eq(null), eq(false), eq(false), eq(true));
}
@Test
public void sendsMoveTabSignalCorrectlyWithoutGroup() {
initAndAssertAllProperties();
TabGridItemTouchHelperCallback itemTouchHelperCallback = getItemTouchHelperCallback();
doReturn(mEmptyTabModelFilter).when(mTabModelFilterProvider).getCurrentTabModelFilter();
itemTouchHelperCallback.onMove(mRecyclerView, mViewHolder1, mViewHolder2);
verify(mTabModel).moveTab(eq(TAB1_ID), eq(2));
}
@Test
public void sendsMoveTabSignalCorrectlyWithGroup() {
setUpForTabGroupOperation(TabListMediatorType.TAB_SWITCHER, TabListMode.GRID);
TabGridItemTouchHelperCallback itemTouchHelperCallback = getItemTouchHelperCallback();
itemTouchHelperCallback.setActionsOnAllRelatedTabsForTesting(true);
doReturn(mTabGroupModelFilter).when(mTabModelFilterProvider).getCurrentTabModelFilter();
itemTouchHelperCallback.onMove(mRecyclerView, mViewHolder1, mViewHolder2);
verify(mTabGroupModelFilter).moveRelatedTabs(eq(TAB1_ID), eq(2));
}
@Test
public void sendsMoveTabSignalCorrectlyWithinGroup() {
setUpForTabGroupOperation(TabListMediatorType.TAB_GRID_DIALOG, TabListMode.GRID);
getItemTouchHelperCallback().onMove(mRecyclerView, mViewHolder1, mViewHolder2);
verify(mTabModel).moveTab(eq(TAB1_ID), eq(2));
}
@Test
public void sendsMergeTabSignalCorrectly() {
setUpForTabGroupOperation(TabListMediatorType.TAB_SWITCHER, TabListMode.GRID);
TabGridItemTouchHelperCallback itemTouchHelperCallback = getItemTouchHelperCallback();
itemTouchHelperCallback.setActionsOnAllRelatedTabsForTesting(true);
itemTouchHelperCallback.setHoveredTabIndexForTesting(POSITION1);
itemTouchHelperCallback.setSelectedTabIndexForTesting(POSITION2);
itemTouchHelperCallback.getMovementFlags(mRecyclerView, mDummyViewHolder1);
doReturn(mAdapter).when(mRecyclerView).getAdapter();
// Simulate the drop action.
itemTouchHelperCallback.onSelectedChanged(
mDummyViewHolder2, ItemTouchHelper.ACTION_STATE_IDLE);
verify(mTabGroupModelFilter).mergeTabsToGroup(eq(TAB2_ID), eq(TAB1_ID));
verify(mGridLayoutManager).removeView(mItemView2);
verify(mTracker).notifyEvent(eq(EventConstants.TAB_DRAG_AND_DROP_TO_GROUP));
}
// Regression test for https://crbug.com/1372487
@Test
public void handlesGroupMergeCorrectly_InOrder() {
setUpForTabGroupOperation(TabListMediatorType.TAB_SWITCHER, TabListMode.GRID);
Tab tab3 = prepareTab(TAB3_ID, TAB3_TITLE, TAB3_URL);
Tab tab4 = prepareTab(TAB4_ID, TAB4_TITLE, TAB4_URL);
when(mTabModel.getTabAt(2)).thenReturn(tab3);
when(mTabModel.getTabAt(3)).thenReturn(tab4);
SimpleRecyclerViewAdapter.ViewHolder viewHolder3 = prepareViewHolder(TAB3_ID, POSITION1);
SimpleRecyclerViewAdapter.ViewHolder viewHolder4 = prepareViewHolder(TAB4_ID, POSITION2);
View itemView3 = mock(View.class);
View itemView4 = mock(View.class);
RecyclerView.ViewHolder dummyViewHolder3 = prepareDummyViewHolder(itemView3, 2);
RecyclerView.ViewHolder dummyViewHolder4 = prepareDummyViewHolder(itemView4, 3);
List<Tab> tabs = new ArrayList<>(Arrays.asList(mTab1, mTab2, tab3, tab4));
mMediator.resetWithListOfTabs(PseudoTab.getListOfPseudoTab(tabs), false, false);
assertThat(mModel.size(), equalTo(4));
// Merge 2 to 1.
TabGridItemTouchHelperCallback itemTouchHelperCallback = getItemTouchHelperCallback();
itemTouchHelperCallback.setActionsOnAllRelatedTabsForTesting(true);
itemTouchHelperCallback.setHoveredTabIndexForTesting(POSITION1);
itemTouchHelperCallback.setSelectedTabIndexForTesting(POSITION2);
itemTouchHelperCallback.getMovementFlags(mRecyclerView, mDummyViewHolder1);
doReturn(mAdapter).when(mRecyclerView).getAdapter();
itemTouchHelperCallback.onSelectedChanged(
mDummyViewHolder2, ItemTouchHelper.ACTION_STATE_IDLE);
verify(mTabGroupModelFilter).mergeTabsToGroup(eq(TAB2_ID), eq(TAB1_ID));
verify(mGridLayoutManager).removeView(mItemView2);
verify(mTracker).notifyEvent(eq(EventConstants.TAB_DRAG_AND_DROP_TO_GROUP));
when(mTabGroupModelFilter.getRelatedTabList(TAB2_ID))
.thenReturn(Arrays.asList(mTab1, mTab2));
when(mTabModel.indexOf(mTab1)).thenReturn(POSITION1);
when(mTabModel.indexOf(mTab2)).thenReturn(POSITION2);
mTabGroupModelFilterObserverCaptor.getValue().didMergeTabToGroup(mTab2, TAB1_ID);
assertThat(mModel.size(), equalTo(3));
mDummyViewHolder1 = prepareDummyViewHolder(mItemView1, 0);
dummyViewHolder3 = prepareDummyViewHolder(itemView3, 1);
dummyViewHolder4 = prepareDummyViewHolder(itemView4, 2);
// Merge 4 to 3.
when(mTabGroupModelFilter.getTabAt(1)).thenReturn(tab3);
when(mTabGroupModelFilter.getTabAt(2)).thenReturn(tab4);
itemTouchHelperCallback.setHoveredTabIndexForTesting(1);
itemTouchHelperCallback.setSelectedTabIndexForTesting(2);
itemTouchHelperCallback.getMovementFlags(mRecyclerView, dummyViewHolder3);
itemTouchHelperCallback.onSelectedChanged(
dummyViewHolder4, ItemTouchHelper.ACTION_STATE_IDLE);
verify(mTabGroupModelFilter).mergeTabsToGroup(eq(TAB4_ID), eq(TAB3_ID));
verify(mGridLayoutManager).removeView(itemView4);
verify(mTracker, times(2)).notifyEvent(eq(EventConstants.TAB_DRAG_AND_DROP_TO_GROUP));
when(mTabGroupModelFilter.getRelatedTabList(TAB4_ID)).thenReturn(Arrays.asList(tab3, tab4));
when(mTabModel.indexOf(tab3)).thenReturn(2);
when(mTabModel.indexOf(tab4)).thenReturn(3);
mTabGroupModelFilterObserverCaptor.getValue().didMergeTabToGroup(tab4, TAB3_ID);
assertThat(mModel.size(), equalTo(2));
mDummyViewHolder1 = prepareDummyViewHolder(mItemView1, 0);
dummyViewHolder3 = prepareDummyViewHolder(itemView3, 1);
// Merge 3 to 1.
when(mTabGroupModelFilter.getTabAt(0)).thenReturn(mTab1);
when(mTabGroupModelFilter.getTabAt(1)).thenReturn(tab3);
itemTouchHelperCallback.setHoveredTabIndexForTesting(0);
itemTouchHelperCallback.setSelectedTabIndexForTesting(1);
itemTouchHelperCallback.getMovementFlags(mRecyclerView, mDummyViewHolder1);
itemTouchHelperCallback.onSelectedChanged(
dummyViewHolder3, ItemTouchHelper.ACTION_STATE_IDLE);
verify(mTabGroupModelFilter).mergeTabsToGroup(eq(TAB3_ID), eq(TAB1_ID));
verify(mGridLayoutManager).removeView(itemView3);
verify(mTracker, times(3)).notifyEvent(eq(EventConstants.TAB_DRAG_AND_DROP_TO_GROUP));
when(mTabGroupModelFilter.getRelatedTabList(TAB3_ID))
.thenReturn(Arrays.asList(mTab1, mTab2, tab3, tab4));
mTabGroupModelFilterObserverCaptor.getValue().didMergeTabToGroup(tab3, TAB1_ID);
assertThat(mModel.size(), equalTo(1));
}
@Test
public void neverSendsMergeTabSignal_Without_Group() {
initAndAssertAllProperties();
mMediator.setActionOnAllRelatedTabsForTesting(true);
TabGridItemTouchHelperCallback itemTouchHelperCallback = getItemTouchHelperCallback();
itemTouchHelperCallback.setActionsOnAllRelatedTabsForTesting(true);
itemTouchHelperCallback.setHoveredTabIndexForTesting(POSITION1);
itemTouchHelperCallback.setSelectedTabIndexForTesting(POSITION2);
itemTouchHelperCallback.getMovementFlags(mRecyclerView, mDummyViewHolder1);
doReturn(mAdapter).when(mRecyclerView).getAdapter();
// Simulate the drop action.
itemTouchHelperCallback.onSelectedChanged(
mDummyViewHolder1, ItemTouchHelper.ACTION_STATE_IDLE);
verify(mGridLayoutManager, never()).removeView(any(View.class));
}
@Test
public void sendsUngroupSignalCorrectly() {
setUpForTabGroupOperation(TabListMediatorType.TAB_GRID_DIALOG, TabListMode.GRID);
TabGridItemTouchHelperCallback itemTouchHelperCallback = getItemTouchHelperCallback();
itemTouchHelperCallback.setActionsOnAllRelatedTabsForTesting(false);
itemTouchHelperCallback.setUnGroupTabIndexForTesting(POSITION1);
itemTouchHelperCallback.getMovementFlags(mRecyclerView, mDummyViewHolder1);
doReturn(mAdapter).when(mRecyclerView).getAdapter();
doReturn(1).when(mAdapter).getItemCount();
// Simulate the ungroup action.
itemTouchHelperCallback.onSelectedChanged(
mDummyViewHolder1, ItemTouchHelper.ACTION_STATE_IDLE);
verify(mTabGroupModelFilter).moveTabOutOfGroup(eq(TAB1_ID));
verify(mGridLayoutManager).removeView(mItemView1);
}
@Test
public void tabClosure() {
initAndAssertAllProperties();
assertThat(mModel.size(), equalTo(2));
mTabModelObserverCaptor.getValue().willCloseTab(mTab2, false, true);
assertThat(mModel.size(), equalTo(1));
assertThat(mModel.get(0).model.get(TabProperties.TAB_ID), equalTo(TAB1_ID));
}
@Test
public void tabClosure_IgnoresUpdatesForTabsOutsideOfModel() {
initAndAssertAllProperties();
mTabModelObserverCaptor.getValue().willCloseTab(
prepareTab(TAB3_ID, TAB3_TITLE, TAB3_URL), false, true);
assertThat(mModel.size(), equalTo(2));
}
@Test
public void tabAddition_RestoreNotComplete() {
initAndAssertAllProperties();
mMediator.setActionOnAllRelatedTabsForTesting(true);
TabImpl newTab = prepareTab(TAB3_ID, TAB3_TITLE, TAB3_URL);
doReturn(mTab1).when(mTabModelFilter).getTabAt(0);
doReturn(mTab2).when(mTabModelFilter).getTabAt(1);
doReturn(newTab).when(mTabModelFilter).getTabAt(2);
doReturn(3).when(mTabModelFilter).getCount();
doReturn(Arrays.asList(newTab)).when(mTabModelFilter).getRelatedTabList(eq(TAB3_ID));
assertThat(mModel.size(), equalTo(2));
mTabModelObserverCaptor.getValue().didAddTab(
newTab, TabLaunchType.FROM_RESTORE, TabCreationState.LIVE_IN_FOREGROUND, false);
// When tab restoring stage is not yet finished, this tab info should not be added to
// property model.
assertThat(mModel.size(), equalTo(2));
}
@Test
public void tabAddition_Restore() {
initAndAssertAllProperties();
mMediator.setActionOnAllRelatedTabsForTesting(true);
// Mock that tab restoring stage is over.
doReturn(true).when(mTabModelSelector).isTabStateInitialized();
TabListMediator.TabActionListener actionListenerBeforeUpdate =
mModel.get(1).model.get(TabProperties.TAB_SELECTED_LISTENER);
// Mock that newTab was in the same group with tab, and now it is restored.
TabImpl newTab = prepareTab(TAB3_ID, TAB3_TITLE, TAB3_URL);
List<Tab> tabs = Arrays.asList(mTab2, newTab);
doReturn(mTab1).when(mTabModelFilter).getTabAt(0);
doReturn(mTab2).when(mTabModelFilter).getTabAt(1);
doReturn(2).when(mTabModelFilter).getCount();
doReturn(1).when(mTabModelFilter).indexOf(newTab);
doReturn(tabs).when(mTabModelFilter).getRelatedTabList(eq(TAB3_ID));
doReturn(tabs).when(mTabModelFilter).getRelatedTabList(eq(TAB2_ID));
assertThat(mModel.size(), equalTo(2));
mTabModelObserverCaptor.getValue().didAddTab(
newTab, TabLaunchType.FROM_RESTORE, TabCreationState.LIVE_IN_FOREGROUND, false);
TabListMediator.TabActionListener actionListenerAfterUpdate =
mModel.get(1).model.get(TabProperties.TAB_SELECTED_LISTENER);
// The selection listener should be updated which indicates that corresponding property
// model is updated.
assertThat(actionListenerBeforeUpdate, not(actionListenerAfterUpdate));
assertThat(mModel.size(), equalTo(2));
}
@Test
public void tabAddition_Restore_SyncingTabListModelWithTabModel() {
setUpForTabGroupOperation(TabListMediatorType.TAB_SWITCHER, TabListMode.GRID);
// Mock that tab restoring stage is over.
doReturn(true).when(mTabModelSelector).isTabStateInitialized();
// Mock that tab1 and tab2 are in the same group, and they are being restored. The
// TabListModel has been cleaned out before the restoring happens. This case could happen
// within a incognito tab group when user switches between light/dark mode.
createTabGroup(new ArrayList<>(Arrays.asList(mTab1, mTab2)), TAB1_ID);
doReturn(POSITION1).when(mTabGroupModelFilter).indexOf(mTab1);
doReturn(POSITION1).when(mTabGroupModelFilter).indexOf(mTab2);
doReturn(mTab1).when(mTabGroupModelFilter).getTabAt(POSITION1);
doReturn(1).when(mTabGroupModelFilter).getCount();
mModel.clear();
mMediatorTabModelObserver.didAddTab(
mTab2, TabLaunchType.FROM_RESTORE, TabCreationState.LIVE_IN_FOREGROUND, false);
assertThat(mModel.size(), equalTo(0));
mMediatorTabModelObserver.didAddTab(
mTab1, TabLaunchType.FROM_RESTORE, TabCreationState.LIVE_IN_FOREGROUND, false);
assertThat(mModel.size(), equalTo(1));
}
@Test
public void tabAddition_GTS() {
initAndAssertAllProperties();
mMediator.setActionOnAllRelatedTabsForTesting(true);
doReturn(true).when(mTabModelSelector).isTabStateInitialized();
TabImpl newTab = prepareTab(TAB3_ID, TAB3_TITLE, TAB3_URL);
doReturn(mTab1).when(mTabModelFilter).getTabAt(0);
doReturn(mTab2).when(mTabModelFilter).getTabAt(1);
doReturn(newTab).when(mTabModelFilter).getTabAt(2);
doReturn(3).when(mTabModelFilter).getCount();
doReturn(Arrays.asList(newTab)).when(mTabModelFilter).getRelatedTabList(eq(TAB3_ID));
assertThat(mModel.size(), equalTo(2));
mTabModelObserverCaptor.getValue().didAddTab(newTab, TabLaunchType.FROM_TAB_SWITCHER_UI,
TabCreationState.LIVE_IN_FOREGROUND, false);
assertThat(mModel.size(), equalTo(3));
assertThat(mModel.get(2).model.get(TabProperties.TAB_ID), equalTo(TAB3_ID));
assertThat(mModel.get(2).model.get(TabProperties.TITLE), equalTo(TAB3_TITLE));
}
@Test
public void tabAddition_GTS_delayAdd() {
mMediator.setComponentNameForTesting(TabSwitcherCoordinator.COMPONENT_NAME);
initAndAssertAllProperties();
doReturn(true).when(mTabModelSelector).isTabStateInitialized();
TabImpl newTab = prepareTab(TAB3_ID, TAB3_TITLE, TAB3_URL);
doReturn(mTab1).when(mTabModelFilter).getTabAt(0);
doReturn(mTab2).when(mTabModelFilter).getTabAt(1);
doReturn(newTab).when(mTabModelFilter).getTabAt(2);
doReturn(Arrays.asList(mTab1, mTab2, newTab))
.when(mTabModelFilter)
.getRelatedTabList(TAB1_ID);
doReturn(3).when(mTabModelFilter).getCount();
doReturn(Arrays.asList(newTab)).when(mTabModelFilter).getRelatedTabList(eq(TAB3_ID));
assertThat(mModel.size(), equalTo(2));
TabModelObserver tabModelObserver = mTabModelObserverCaptor.getValue();
// Add tab marked as delayed
tabModelObserver.didAddTab(newTab, TabLaunchType.FROM_TAB_SWITCHER_UI,
TabCreationState.LIVE_IN_FOREGROUND, true);
// Verify tab did not get added and delayed tab is captured.
assertThat(mModel.size(), equalTo(2));
assertThat(mMediator.getTabToAddDelayedForTesting(), equalTo(newTab));
// Select delayed tab
tabModelObserver.didSelectTab(newTab, TabSelectionType.FROM_USER, mTab1.getId());
// Assert old tab is still marked as selected
assertThat(mModel.get(0).model.get(TabProperties.IS_SELECTED), equalTo(true));
// Hide GTS to complete tab addition and selection
mMediator.postHiding();
// Assert tab added and selected. Assert old tab is de-selected.
assertThat(mModel.size(), equalTo(3));
assertThat(mModel.get(0).model.get(TabProperties.IS_SELECTED), equalTo(false));
assertThat(mModel.get(2).model.get(TabProperties.IS_SELECTED), equalTo(true));
assertNull(mMediator.getTabToAddDelayedForTesting());
}
@Test
public void tabAddition_GTS_Skip() {
initAndAssertAllProperties();
mMediator.setActionOnAllRelatedTabsForTesting(true);
doReturn(true).when(mTabModelSelector).isTabStateInitialized();
// Add a new tab to the group with mTab2.
TabImpl newTab = prepareTab(TAB3_ID, TAB3_TITLE, TAB3_URL);
doReturn(mTab1).when(mTabModelFilter).getTabAt(0);
doReturn(mTab2).when(mTabModelFilter).getTabAt(1);
doReturn(2).when(mTabModelFilter).getCount();
doReturn(Arrays.asList(mTab2, newTab)).when(mTabModelFilter).getRelatedTabList(eq(TAB3_ID));
assertThat(mModel.size(), equalTo(2));
mTabModelObserverCaptor.getValue().didAddTab(newTab, TabLaunchType.FROM_TAB_SWITCHER_UI,
TabCreationState.LIVE_IN_FOREGROUND, false);
assertThat(mModel.size(), equalTo(2));
}
@Test
public void tabAddition_GTS_Middle() {
initAndAssertAllProperties();
mMediator.setActionOnAllRelatedTabsForTesting(true);
doReturn(true).when(mTabModelSelector).isTabStateInitialized();
TabImpl newTab = prepareTab(TAB3_ID, TAB3_TITLE, TAB3_URL);
doReturn(mTab1).when(mTabModelFilter).getTabAt(0);
doReturn(newTab).when(mTabModelFilter).getTabAt(1);
doReturn(mTab2).when(mTabModelFilter).getTabAt(2);
doReturn(3).when(mTabModelFilter).getCount();
doReturn(Arrays.asList(newTab)).when(mTabModelFilter).getRelatedTabList(eq(TAB3_ID));
assertThat(mModel.size(), equalTo(2));
mTabModelObserverCaptor.getValue().didAddTab(
newTab, TabLaunchType.FROM_CHROME_UI, TabCreationState.LIVE_IN_FOREGROUND, false);
assertThat(mModel.size(), equalTo(3));
assertThat(mModel.get(1).model.get(TabProperties.TAB_ID), equalTo(TAB3_ID));
assertThat(mModel.get(1).model.get(TabProperties.TITLE), equalTo(TAB3_TITLE));
}
@Test
public void tabAddition_Dialog_End() {
initAndAssertAllProperties();
doReturn(true).when(mTabModelSelector).isTabStateInitialized();
TabImpl newTab = prepareTab(TAB3_ID, TAB3_TITLE, TAB3_URL);
doReturn(3).when(mTabModel).getCount();
doReturn(Arrays.asList(mTab1, mTab2, newTab))
.when(mTabModelFilter)
.getRelatedTabList(eq(TAB1_ID));
assertThat(mModel.size(), equalTo(2));
mTabModelObserverCaptor.getValue().didAddTab(
newTab, TabLaunchType.FROM_CHROME_UI, TabCreationState.LIVE_IN_FOREGROUND, false);
assertThat(mModel.size(), equalTo(3));
assertThat(mModel.get(2).model.get(TabProperties.TAB_ID), equalTo(TAB3_ID));
assertThat(mModel.get(2).model.get(TabProperties.TITLE), equalTo(TAB3_TITLE));
}
@Test
public void tabAddition_Dialog_Middle() {
initAndAssertAllProperties();
doReturn(true).when(mTabModelSelector).isTabStateInitialized();
TabImpl newTab = prepareTab(TAB3_ID, TAB3_TITLE, TAB3_URL);
doReturn(3).when(mTabModel).getCount();
doReturn(Arrays.asList(mTab1, newTab, mTab2))
.when(mTabModelFilter)
.getRelatedTabList(eq(TAB1_ID));
assertThat(mModel.size(), equalTo(2));
mTabModelObserverCaptor.getValue().didAddTab(
newTab, TabLaunchType.FROM_CHROME_UI, TabCreationState.LIVE_IN_FOREGROUND, false);
assertThat(mModel.size(), equalTo(3));
assertThat(mModel.get(1).model.get(TabProperties.TAB_ID), equalTo(TAB3_ID));
assertThat(mModel.get(1).model.get(TabProperties.TITLE), equalTo(TAB3_TITLE));
}
@Test
public void tabAddition_Dialog_Skip() {
initAndAssertAllProperties();
doReturn(true).when(mTabModelSelector).isTabStateInitialized();
TabImpl newTab = prepareTab(TAB3_ID, TAB3_TITLE, TAB3_URL);
// newTab is of another group.
doReturn(Arrays.asList(mTab1, mTab2)).when(mTabModelFilter).getRelatedTabList(eq(TAB1_ID));
assertThat(mModel.size(), equalTo(2));
mTabModelObserverCaptor.getValue().didAddTab(
newTab, TabLaunchType.FROM_CHROME_UI, TabCreationState.LIVE_IN_FOREGROUND, false);
assertThat(mModel.size(), equalTo(2));
}
@Test
@Features.DisableFeatures({TAB_GROUPS_CONTINUATION_ANDROID})
public void tabAddition_Redundant() {
initAndAssertAllProperties();
doReturn(true).when(mTabModelSelector).isTabStateInitialized();
assertThat(mModel.size(), equalTo(2));
doReturn(Arrays.asList(mTab1, mTab2)).when(mTabModelFilter).getRelatedTabList(eq(TAB1_ID));
// Try to do a redundant addition by adding the PropertyModel of an existing tab to the
// TabListModel.
mTabModelObserverCaptor.getValue().didAddTab(
mTab1, TabLaunchType.FROM_CHROME_UI, TabCreationState.LIVE_IN_FOREGROUND, false);
assertThat(mModel.size(), equalTo(2));
}
@Test
public void tabSelection() {
initAndAssertAllProperties();
ThumbnailFetcher tab1Fetcher = mModel.get(0).model.get(TabProperties.THUMBNAIL_FETCHER);
ThumbnailFetcher tab2Fetcher = mModel.get(1).model.get(TabProperties.THUMBNAIL_FETCHER);
mTabModelObserverCaptor.getValue().didSelectTab(
mTab2, TabLaunchType.FROM_CHROME_UI, TAB1_ID);
assertThat(mModel.size(), equalTo(2));
assertThat(mModel.get(0).model.get(TabProperties.IS_SELECTED), equalTo(false));
assertThat(mModel.get(0).model.get(TabProperties.THUMBNAIL_FETCHER), equalTo(tab1Fetcher));
assertThat(mModel.get(1).model.get(TabProperties.IS_SELECTED), equalTo(true));
assertNotEquals(tab2Fetcher, mModel.get(1).model.get(TabProperties.THUMBNAIL_FETCHER));
}
@Test
public void tabSelection_updatePreviousSelectedTabThumbnailFetcher() {
mMediator = new TabListMediator(mActivity, mModel, TabListMode.GRID, mTabModelSelector,
getTabThumbnailCallback(), mTitleProvider, mTabListFaviconProvider, true, null,
mGridCardOnClickListenerProvider, null, null, getClass().getSimpleName(),
UiType.CLOSABLE, null);
mMediator.initWithNative();
// mTabModelObserverCaptor captures on every initWithNative calls. There is one
// initWithNative call in the setup already.
verify(mTabModelFilterProvider, times(2))
.addTabModelFilterObserver(mTabModelObserverCaptor.capture());
initAndAssertAllProperties();
ThumbnailFetcher tab1Fetcher = mModel.get(0).model.get(TabProperties.THUMBNAIL_FETCHER);
ThumbnailFetcher tab2Fetcher = mModel.get(1).model.get(TabProperties.THUMBNAIL_FETCHER);
mTabModelObserverCaptor.getValue().didSelectTab(
mTab2, TabLaunchType.FROM_CHROME_UI, TAB1_ID);
assertThat(mModel.size(), equalTo(2));
assertThat(mModel.get(0).model.get(TabProperties.IS_SELECTED), equalTo(false));
assertNotEquals(tab1Fetcher, mModel.get(0).model.get(TabProperties.THUMBNAIL_FETCHER));
assertThat(mModel.get(1).model.get(TabProperties.IS_SELECTED), equalTo(true));
assertNotEquals(tab2Fetcher, mModel.get(1).model.get(TabProperties.THUMBNAIL_FETCHER));
}
@Test
public void tabClosureUndone() {
initAndAssertAllProperties();
TabImpl newTab = prepareTab(TAB3_ID, TAB3_TITLE, TAB3_URL);
doReturn(3).when(mTabModel).getCount();
doReturn(Arrays.asList(mTab1, mTab2, newTab))
.when(mTabModelFilter)
.getRelatedTabList(eq(TAB1_ID));
mTabModelObserverCaptor.getValue().tabClosureUndone(newTab);
assertThat(mModel.size(), equalTo(3));
assertThat(mModel.get(2).model.get(TabProperties.TAB_ID), equalTo(TAB3_ID));
assertThat(mModel.get(2).model.get(TabProperties.TITLE), equalTo(TAB3_TITLE));
}
@Test
public void tabMergeIntoGroup() {
setUpForTabGroupOperation(TabListMediatorType.TAB_SWITCHER, TabListMode.GRID);
// Assume that moveTab in TabModel is finished. Selected tab in the group becomes mTab1.
doReturn(true).when(mTabModelSelector).isTabStateInitialized();
doReturn(mTab1).when(mTabModel).getTabAt(POSITION2);
doReturn(mTab2).when(mTabModel).getTabAt(POSITION1);
doReturn(mTab1).when(mTabGroupModelFilter).getTabAt(POSITION1);
// Assume that reset in TabGroupModelFilter is finished.
doReturn(new ArrayList<>(Arrays.asList(mTab1, mTab2)))
.when(mTabGroupModelFilter)
.getRelatedTabList(TAB1_ID);
assertThat(mModel.size(), equalTo(2));
assertThat(mModel.get(1).model.get(TabProperties.TAB_ID), equalTo(TAB2_ID));
assertThat(mModel.get(1).model.get(TabProperties.TITLE), equalTo(TAB2_TITLE));
assertThat(mModel.indexFromId(TAB1_ID), equalTo(POSITION1));
assertThat(mModel.indexFromId(TAB2_ID), equalTo(POSITION2));
assertNotNull(mModel.get(0).model.get(TabProperties.FAVICON));
assertNotNull(mModel.get(1).model.get(TabProperties.FAVICON));
mMediatorTabGroupModelFilterObserver.didMergeTabToGroup(mTab1, TAB2_ID);
assertThat(mModel.size(), equalTo(1));
assertThat(mModel.get(0).model.get(TabProperties.TAB_ID), equalTo(TAB1_ID));
assertThat(mModel.get(0).model.get(TabProperties.TITLE), equalTo(TAB1_TITLE));
assertNull(mModel.get(0).model.get(TabProperties.FAVICON));
}
@Test
public void tabMoveOutOfGroup_GTS_Moved_Tab_Selected() {
setUpForTabGroupOperation(TabListMediatorType.TAB_SWITCHER, TabListMode.GRID);
// Assume that two tabs are in the same group before ungroup.
List<Tab> tabs = new ArrayList<>(Arrays.asList(mTab2));
mMediator.resetWithListOfTabs(PseudoTab.getListOfPseudoTab(tabs), false, false);
assertThat(mModel.size(), equalTo(1));
assertThat(mModel.get(0).model.get(TabProperties.TAB_ID), equalTo(TAB2_ID));
assertThat(mModel.get(0).model.get(TabProperties.TITLE), equalTo(TAB2_TITLE));
// Assume that TabGroupModelFilter is already updated.
doReturn(mTab2).when(mTabGroupModelFilter).getTabAt(POSITION1);
doReturn(POSITION1).when(mTabGroupModelFilter).indexOf(mTab2);
doReturn(mTab1).when(mTabGroupModelFilter).getTabAt(POSITION2);
doReturn(POSITION2).when(mTabGroupModelFilter).indexOf(mTab1);
doReturn(false).when(mTabGroupModelFilter).hasOtherRelatedTabs(mTab1);
doReturn(2).when(mTabGroupModelFilter).getCount();
mMediatorTabGroupModelFilterObserver.didMoveTabOutOfGroup(mTab1, POSITION1);
assertThat(mModel.size(), equalTo(2));
assertThat(mModel.get(0).model.get(TabProperties.TAB_ID), equalTo(TAB2_ID));
assertThat(mModel.get(0).model.get(TabProperties.TITLE), equalTo(TAB2_TITLE));
assertThat(mModel.get(0).model.get(TabProperties.IS_SELECTED), equalTo(false));
assertThat(mModel.get(1).model.get(TabProperties.TAB_ID), equalTo(TAB1_ID));
assertThat(mModel.get(1).model.get(TabProperties.TITLE), equalTo(TAB1_TITLE));
assertThat(mModel.get(1).model.get(TabProperties.IS_SELECTED), equalTo(true));
}
@Test
public void tabMoveOutOfGroup_GTS_Origin_Tab_Selected() {
setUpForTabGroupOperation(TabListMediatorType.TAB_SWITCHER, TabListMode.GRID);
// Assume that two tabs are in the same group before ungroup.
List<Tab> tabs = new ArrayList<>(Arrays.asList(mTab1));
mMediator.resetWithListOfTabs(PseudoTab.getListOfPseudoTab(tabs), false, false);
assertThat(mModel.size(), equalTo(1));
assertThat(mModel.get(0).model.get(TabProperties.TAB_ID), equalTo(TAB1_ID));
assertThat(mModel.get(0).model.get(TabProperties.TITLE), equalTo(TAB1_TITLE));
// Assume that TabGroupModelFilter is already updated.
doReturn(mTab1).when(mTabGroupModelFilter).getTabAt(POSITION1);
doReturn(mTab2).when(mTabGroupModelFilter).getTabAt(POSITION2);
doReturn(2).when(mTabGroupModelFilter).getCount();
mMediatorTabGroupModelFilterObserver.didMoveTabOutOfGroup(mTab2, POSITION1);
assertThat(mModel.size(), equalTo(2));
assertThat(mModel.get(0).model.get(TabProperties.TAB_ID), equalTo(TAB1_ID));
assertThat(mModel.get(0).model.get(TabProperties.TITLE), equalTo(TAB1_TITLE));
assertThat(mModel.get(0).model.get(TabProperties.IS_SELECTED), equalTo(true));
assertThat(mModel.get(1).model.get(TabProperties.TAB_ID), equalTo(TAB2_ID));
assertThat(mModel.get(1).model.get(TabProperties.TITLE), equalTo(TAB2_TITLE));
assertThat(mModel.get(1).model.get(TabProperties.IS_SELECTED), equalTo(false));
}
@Test
public void tabMoveOutOfGroup_GTS_LastTab() {
setUpForTabGroupOperation(TabListMediatorType.TAB_SWITCHER, TabListMode.GRID);
// Assume that tab1 is a single tab.
List<Tab> tabs = new ArrayList<>(Arrays.asList(mTab1));
mMediator.resetWithListOfTabs(PseudoTab.getListOfPseudoTab(tabs), false, false);
doReturn(1).when(mTabGroupModelFilter).getCount();
doReturn(mTab1).when(mTabGroupModelFilter).getTabAt(POSITION1);
doReturn(tabs).when(mTabGroupModelFilter).getRelatedTabList(TAB1_ID);
// Ungroup the single tab.
mMediatorTabGroupModelFilterObserver.didMoveTabOutOfGroup(mTab1, POSITION1);
assertThat(mModel.size(), equalTo(1));
assertThat(mModel.get(0).model.get(TabProperties.TAB_ID), equalTo(TAB1_ID));
assertThat(mModel.get(0).model.get(TabProperties.TITLE), equalTo(TAB1_TITLE));
}
@Test
public void tabMoveOutOfGroup_GTS_TabAdditionWithSameId() {
setUpForTabGroupOperation(TabListMediatorType.TAB_SWITCHER, TabListMode.GRID);
// Assume that two tabs are in the same group before ungroup.
List<Tab> tabs = new ArrayList<>(Arrays.asList(mTab1));
mMediator.resetWithListOfTabs(PseudoTab.getListOfPseudoTab(tabs), false, false);
assertThat(mModel.size(), equalTo(1));
assertThat(mModel.get(0).model.get(TabProperties.TAB_ID), equalTo(TAB1_ID));
assertThat(mModel.get(0).model.get(TabProperties.TITLE), equalTo(TAB1_TITLE));
// Assume that TabGroupModelFilter is already updated.
doReturn(true).when(mTabModelSelector).isTabStateInitialized();
doReturn(mTab1).when(mTabGroupModelFilter).getTabAt(POSITION1);
doReturn(mTab2).when(mTabGroupModelFilter).getTabAt(POSITION2);
doReturn(2).when(mTabGroupModelFilter).getCount();
// The ungroup will add tab1 to the TabListModel at index 0. Note that before this addition,
// there is the PropertyModel represents the group with the same id at the same index. The
// addition should still take effect in this case.
mMediatorTabGroupModelFilterObserver.didMoveTabOutOfGroup(mTab1, POSITION2);
assertThat(mModel.size(), equalTo(2));
assertThat(mModel.get(0).model.get(TabProperties.TAB_ID), equalTo(TAB1_ID));
assertThat(mModel.get(0).model.get(TabProperties.TITLE), equalTo(TAB1_TITLE));
assertThat(mModel.get(0).model.get(TabProperties.IS_SELECTED), equalTo(true));
assertThat(mModel.get(1).model.get(TabProperties.TAB_ID), equalTo(TAB2_ID));
assertThat(mModel.get(1).model.get(TabProperties.TITLE), equalTo(TAB2_TITLE));
assertThat(mModel.get(1).model.get(TabProperties.IS_SELECTED), equalTo(false));
}
@Test
public void testShoppingFetcherActiveForForUngroupedTabs() {
prepareForPriceDrop();
resetWithRegularTabs(false);
assertThat(mModel.size(), equalTo(2));
assertThat(mModel.get(0).model.get(TabProperties.SHOPPING_PERSISTED_TAB_DATA_FETCHER),
instanceOf(TabListMediator.ShoppingPersistedTabDataFetcher.class));
assertThat(mModel.get(1).model.get(TabProperties.SHOPPING_PERSISTED_TAB_DATA_FETCHER),
instanceOf(TabListMediator.ShoppingPersistedTabDataFetcher.class));
}
@Test
public void testShoppingFetcherInactiveForForGroupedTabs() {
prepareForPriceDrop();
resetWithRegularTabs(true);
assertThat(mModel.size(), equalTo(2));
assertNull(mModel.get(0).model.get(TabProperties.SHOPPING_PERSISTED_TAB_DATA_FETCHER));
assertNull(mModel.get(1).model.get(TabProperties.SHOPPING_PERSISTED_TAB_DATA_FETCHER));
}
@Test
public void testShoppingFetcherGroupedThenUngrouped() {
prepareForPriceDrop();
resetWithRegularTabs(true);
assertThat(mModel.size(), equalTo(2));
assertNull(mModel.get(0).model.get(TabProperties.SHOPPING_PERSISTED_TAB_DATA_FETCHER));
assertNull(mModel.get(1).model.get(TabProperties.SHOPPING_PERSISTED_TAB_DATA_FETCHER));
resetWithRegularTabs(false);
assertThat(mModel.size(), equalTo(2));
assertThat(mModel.get(0).model.get(TabProperties.SHOPPING_PERSISTED_TAB_DATA_FETCHER),
instanceOf(TabListMediator.ShoppingPersistedTabDataFetcher.class));
assertThat(mModel.get(1).model.get(TabProperties.SHOPPING_PERSISTED_TAB_DATA_FETCHER),
instanceOf(TabListMediator.ShoppingPersistedTabDataFetcher.class));
}
@Test
public void testShoppingFetcherUngroupedThenGrouped() {
prepareForPriceDrop();
resetWithRegularTabs(false);
assertThat(mModel.size(), equalTo(2));
assertThat(mModel.get(0).model.get(TabProperties.SHOPPING_PERSISTED_TAB_DATA_FETCHER),
instanceOf(TabListMediator.ShoppingPersistedTabDataFetcher.class));
assertThat(mModel.get(1).model.get(TabProperties.SHOPPING_PERSISTED_TAB_DATA_FETCHER),
instanceOf(TabListMediator.ShoppingPersistedTabDataFetcher.class));
resetWithRegularTabs(true);
assertThat(mModel.size(), equalTo(2));
assertNull(mModel.get(0).model.get(TabProperties.SHOPPING_PERSISTED_TAB_DATA_FETCHER));
assertNull(mModel.get(1).model.get(TabProperties.SHOPPING_PERSISTED_TAB_DATA_FETCHER));
}
/**
* Set flags and initialize for verifying price drop behavior
*/
private void prepareForPriceDrop() {
setPriceTrackingEnabledForTesting(true);
PriceTrackingFeatures.setIsSignedInAndSyncEnabledForTesting(true);
PersistedTabDataConfiguration.setUseTestConfig(true);
initAndAssertAllProperties();
setUpForTabGroupOperation(TabListMediatorType.TAB_SWITCHER, TabListMode.GRID);
}
@Test
public void testCouponFetcherActiveForForUngroupedTabs() {
prepareForCoupon();
resetWithRegularTabs(false);
assertThat(mModel.size(), equalTo(2));
assertThat(mModel.get(0).model.get(TabProperties.COUPON_PERSISTED_TAB_DATA_FETCHER),
instanceOf(TabListMediator.CouponPersistedTabDataFetcher.class));
assertThat(mModel.get(1).model.get(TabProperties.COUPON_PERSISTED_TAB_DATA_FETCHER),
instanceOf(TabListMediator.CouponPersistedTabDataFetcher.class));
}
@Test
public void testCouponFetcherInactiveForForGroupedTabs() {
prepareForCoupon();
resetWithRegularTabs(true);
assertThat(mModel.size(), equalTo(2));
assertNull(mModel.get(0).model.get(TabProperties.COUPON_PERSISTED_TAB_DATA_FETCHER));
assertNull(mModel.get(1).model.get(TabProperties.COUPON_PERSISTED_TAB_DATA_FETCHER));
}
@Test
public void testCouponFetcherGroupedThenUngrouped() {
prepareForCoupon();
resetWithRegularTabs(true);
assertThat(mModel.size(), equalTo(2));
assertNull(mModel.get(0).model.get(TabProperties.COUPON_PERSISTED_TAB_DATA_FETCHER));
assertNull(mModel.get(1).model.get(TabProperties.COUPON_PERSISTED_TAB_DATA_FETCHER));
resetWithRegularTabs(false);
assertThat(mModel.size(), equalTo(2));
assertThat(mModel.get(0).model.get(TabProperties.COUPON_PERSISTED_TAB_DATA_FETCHER),
instanceOf(TabListMediator.CouponPersistedTabDataFetcher.class));
assertThat(mModel.get(1).model.get(TabProperties.COUPON_PERSISTED_TAB_DATA_FETCHER),
instanceOf(TabListMediator.CouponPersistedTabDataFetcher.class));
}
@Test
public void testCouponFetcherUngroupedThenGrouped() {
prepareForCoupon();
resetWithRegularTabs(false);
assertThat(mModel.size(), equalTo(2));
assertThat(mModel.get(0).model.get(TabProperties.COUPON_PERSISTED_TAB_DATA_FETCHER),
instanceOf(TabListMediator.CouponPersistedTabDataFetcher.class));
assertThat(mModel.get(1).model.get(TabProperties.COUPON_PERSISTED_TAB_DATA_FETCHER),
instanceOf(TabListMediator.CouponPersistedTabDataFetcher.class));
resetWithRegularTabs(true);
assertThat(mModel.size(), equalTo(2));
assertNull(mModel.get(0).model.get(TabProperties.COUPON_PERSISTED_TAB_DATA_FETCHER));
assertNull(mModel.get(1).model.get(TabProperties.COUPON_PERSISTED_TAB_DATA_FETCHER));
}
/**
* Set flags and initialize for verifying coupon annotations behavior
*/
private void prepareForCoupon() {
ChromeFeatureList.sCommerceCoupons.setForTesting(true);
PriceTrackingFeatures.setIsSignedInAndSyncEnabledForTesting(true);
PersistedTabDataConfiguration.setUseTestConfig(true);
initAndAssertAllProperties();
setUpForTabGroupOperation(TabListMediatorType.TAB_SWITCHER, TabListMode.GRID);
}
/**
* Reset mediator with non-incognito tabs which are optionally grouped
* @param isGrouped true if the tabs should be grouped
*/
private void resetWithRegularTabs(boolean isGrouped) {
doReturn(mTab1).when(mTabModelFilter).getTabAt(0);
doReturn(mTab2).when(mTabModelFilter).getTabAt(1);
doReturn(2).when(mTabModelFilter).getCount();
doReturn(mTabModelFilter).when(mTabModelFilterProvider).getCurrentTabModelFilter();
if (isGrouped) {
doReturn(Arrays.asList(mTab1, mTab2))
.when(mTabModelFilter)
.getRelatedTabList(eq(TAB1_ID));
doReturn(Arrays.asList(mTab1, mTab2))
.when(mTabModelFilter)
.getRelatedTabList(eq(TAB2_ID));
} else {
doReturn(Arrays.asList(mTab1)).when(mTabModelFilter).getRelatedTabList(eq(TAB1_ID));
doReturn(Arrays.asList(mTab2)).when(mTabModelFilter).getRelatedTabList(eq(TAB2_ID));
}
List<Tab> tabs = new ArrayList<>(Arrays.asList(mTab1, mTab2));
doReturn(false).when(mTab1).isIncognito();
doReturn(false).when(mTab2).isIncognito();
mMediator.resetWithListOfTabs(PseudoTab.getListOfPseudoTab(tabs), false, false);
}
@Test
public void tabMoveOutOfGroup_Dialog() {
setUpForTabGroupOperation(TabListMediatorType.TAB_GRID_DIALOG, TabListMode.GRID);
// Assume that filter is already updated.
doReturn(mTab2).when(mTabGroupModelFilter).getTabAt(POSITION1);
assertThat(mModel.size(), equalTo(2));
assertThat(mModel.get(0).model.get(TabProperties.TAB_ID), equalTo(TAB1_ID));
assertThat(mModel.get(0).model.get(TabProperties.TITLE), equalTo(TAB1_TITLE));
assertThat(mModel.get(1).model.get(TabProperties.TAB_ID), equalTo(TAB2_ID));
assertThat(mModel.get(1).model.get(TabProperties.TITLE), equalTo(TAB2_TITLE));
mMediatorTabGroupModelFilterObserver.didMoveTabOutOfGroup(mTab1, POSITION1);
assertThat(mModel.size(), equalTo(1));
assertThat(mModel.get(0).model.get(TabProperties.TAB_ID), equalTo(TAB2_ID));
assertThat(mModel.get(0).model.get(TabProperties.TITLE), equalTo(TAB2_TITLE));
verify(mTabGridDialogHandler).updateDialogContent(TAB2_ID);
}
@Test
public void tabMoveOutOfGroup_Dialog_LastTab() {
setUpForTabGroupOperation(TabListMediatorType.TAB_GRID_DIALOG, TabListMode.GRID);
// Assume that tab1 is a single tab.
List<Tab> tabs = new ArrayList<>(Arrays.asList(mTab1));
mMediator.resetWithListOfTabs(PseudoTab.getListOfPseudoTab(tabs), false, false);
doReturn(1).when(mTabGroupModelFilter).getCount();
doReturn(mTab1).when(mTabGroupModelFilter).getTabAt(POSITION1);
doReturn(tabs).when(mTabGroupModelFilter).getRelatedTabList(TAB1_ID);
// Ungroup the single tab.
mMediatorTabGroupModelFilterObserver.didMoveTabOutOfGroup(mTab1, POSITION1);
verify(mTabGridDialogHandler).updateDialogContent(Tab.INVALID_TAB_ID);
}
@Test
public void tabMoveOutOfGroup_Strip() {
setUpForTabGroupOperation(TabListMediatorType.TAB_STRIP, TabListMode.GRID);
// Assume that filter is already updated.
doReturn(mTab2).when(mTabGroupModelFilter).getTabAt(POSITION1);
assertThat(mModel.size(), equalTo(2));
assertThat(mModel.get(0).model.get(TabProperties.TAB_ID), equalTo(TAB1_ID));
assertThat(mModel.get(0).model.get(TabProperties.TITLE), equalTo(TAB1_TITLE));
assertThat(mModel.get(1).model.get(TabProperties.TAB_ID), equalTo(TAB2_ID));
assertThat(mModel.get(1).model.get(TabProperties.TITLE), equalTo(TAB2_TITLE));
mMediatorTabGroupModelFilterObserver.didMoveTabOutOfGroup(mTab1, POSITION1);
assertThat(mModel.size(), equalTo(1));
assertThat(mModel.get(0).model.get(TabProperties.TAB_ID), equalTo(TAB2_ID));
assertThat(mModel.get(0).model.get(TabProperties.TITLE), equalTo(TAB2_TITLE));
verify(mTabGridDialogHandler, never()).updateDialogContent(anyInt());
}
@Test
public void tabMovementWithoutGroup_Forward() {
initAndAssertAllProperties();
doReturn(mEmptyTabModelFilter).when(mTabModelFilterProvider).getCurrentTabModelFilter();
assertThat(mModel.size(), equalTo(2));
assertThat(mModel.get(1).model.get(TabProperties.TAB_ID), equalTo(TAB2_ID));
assertThat(mModel.get(1).model.get(TabProperties.TITLE), equalTo(TAB2_TITLE));
mTabModelObserverCaptor.getValue().didMoveTab(mTab2, POSITION1, POSITION2);
assertThat(mModel.size(), equalTo(2));
assertThat(mModel.get(0).model.get(TabProperties.TAB_ID), equalTo(TAB2_ID));
assertThat(mModel.get(0).model.get(TabProperties.TITLE), equalTo(TAB2_TITLE));
}
@Test
public void tabMovementWithoutGroup_Backward() {
initAndAssertAllProperties();
doReturn(mEmptyTabModelFilter).when(mTabModelFilterProvider).getCurrentTabModelFilter();
assertThat(mModel.size(), equalTo(2));
assertThat(mModel.get(1).model.get(TabProperties.TAB_ID), equalTo(TAB2_ID));
assertThat(mModel.get(1).model.get(TabProperties.TITLE), equalTo(TAB2_TITLE));
mTabModelObserverCaptor.getValue().didMoveTab(mTab1, POSITION2, POSITION1);
assertThat(mModel.size(), equalTo(2));
assertThat(mModel.get(0).model.get(TabProperties.TAB_ID), equalTo(TAB2_ID));
assertThat(mModel.get(0).model.get(TabProperties.TITLE), equalTo(TAB2_TITLE));
}
@Test
public void tabMovementWithGroup_Forward() {
setUpForTabGroupOperation(TabListMediatorType.TAB_SWITCHER, TabListMode.GRID);
// Assume that moveTab in TabModel is finished.
doReturn(mTab1).when(mTabModel).getTabAt(POSITION2);
doReturn(mTab2).when(mTabModel).getTabAt(POSITION1);
doReturn(mTabGroupModelFilter).when(mTabModelFilterProvider).getCurrentTabModelFilter();
assertThat(mModel.size(), equalTo(2));
assertThat(mModel.get(1).model.get(TabProperties.TAB_ID), equalTo(TAB2_ID));
assertThat(mModel.get(1).model.get(TabProperties.TITLE), equalTo(TAB2_TITLE));
mMediatorTabGroupModelFilterObserver.didMoveTabGroup(mTab2, POSITION2, POSITION1);
assertThat(mModel.size(), equalTo(2));
assertThat(mModel.get(0).model.get(TabProperties.TAB_ID), equalTo(TAB2_ID));
assertThat(mModel.get(0).model.get(TabProperties.TITLE), equalTo(TAB2_TITLE));
}
@Test
public void tabMovementWithGroup_Backward() {
setUpForTabGroupOperation(TabListMediatorType.TAB_SWITCHER, TabListMode.GRID);
// Assume that moveTab in TabModel is finished.
doReturn(mTab1).when(mTabModel).getTabAt(POSITION2);
doReturn(mTab2).when(mTabModel).getTabAt(POSITION1);
doReturn(mTabGroupModelFilter).when(mTabModelFilterProvider).getCurrentTabModelFilter();
assertThat(mModel.size(), equalTo(2));
assertThat(mModel.get(1).model.get(TabProperties.TAB_ID), equalTo(TAB2_ID));
assertThat(mModel.get(1).model.get(TabProperties.TITLE), equalTo(TAB2_TITLE));
mMediatorTabGroupModelFilterObserver.didMoveTabGroup(mTab1, POSITION1, POSITION2);
assertThat(mModel.size(), equalTo(2));
assertThat(mModel.get(0).model.get(TabProperties.TAB_ID), equalTo(TAB2_ID));
assertThat(mModel.get(0).model.get(TabProperties.TITLE), equalTo(TAB2_TITLE));
}
@Test
public void tabMovementWithinGroup_TabGridDialong_Forward() {
setUpForTabGroupOperation(TabListMediatorType.TAB_GRID_DIALOG, TabListMode.GRID);
// Assume that moveTab in TabModel is finished.
doReturn(mTab1).when(mTabModel).getTabAt(POSITION2);
doReturn(mTab2).when(mTabModel).getTabAt(POSITION1);
doReturn(mTabGroupModelFilter).when(mTabModelFilterProvider).getCurrentTabModelFilter();
CriticalPersistedTabData criticalPersistedTabData1 = CriticalPersistedTabData.from(mTab1);
CriticalPersistedTabData criticalPersistedTabData2 = CriticalPersistedTabData.from(mTab2);
doReturn(TAB1_ID).when(criticalPersistedTabData1).getRootId();
doReturn(TAB1_ID).when(criticalPersistedTabData2).getRootId();
assertThat(mModel.size(), equalTo(2));
assertThat(mModel.get(1).model.get(TabProperties.TAB_ID), equalTo(TAB2_ID));
assertThat(mModel.get(1).model.get(TabProperties.TITLE), equalTo(TAB2_TITLE));
mMediatorTabGroupModelFilterObserver.didMoveWithinGroup(mTab2, POSITION2, POSITION1);
assertThat(mModel.size(), equalTo(2));
assertThat(mModel.get(0).model.get(TabProperties.TAB_ID), equalTo(TAB2_ID));
assertThat(mModel.get(0).model.get(TabProperties.TITLE), equalTo(TAB2_TITLE));
}
@Test
public void tabMovementWithinGroup_TabGridDialog_Backward() {
setUpForTabGroupOperation(TabListMediatorType.TAB_GRID_DIALOG, TabListMode.GRID);
// Assume that moveTab in TabModel is finished.
doReturn(mTab1).when(mTabModel).getTabAt(POSITION2);
doReturn(mTab2).when(mTabModel).getTabAt(POSITION1);
doReturn(mTabGroupModelFilter).when(mTabModelFilterProvider).getCurrentTabModelFilter();
CriticalPersistedTabData criticalPersistedTabData1 = CriticalPersistedTabData.from(mTab1);
CriticalPersistedTabData criticalPersistedTabData2 = CriticalPersistedTabData.from(mTab2);
doReturn(TAB1_ID).when(criticalPersistedTabData1).getRootId();
doReturn(TAB1_ID).when(criticalPersistedTabData2).getRootId();
assertThat(mModel.size(), equalTo(2));
assertThat(mModel.get(1).model.get(TabProperties.TAB_ID), equalTo(TAB2_ID));
assertThat(mModel.get(1).model.get(TabProperties.TITLE), equalTo(TAB2_TITLE));
mMediatorTabGroupModelFilterObserver.didMoveWithinGroup(mTab1, POSITION1, POSITION2);
assertThat(mModel.size(), equalTo(2));
assertThat(mModel.get(0).model.get(TabProperties.TAB_ID), equalTo(TAB2_ID));
assertThat(mModel.get(0).model.get(TabProperties.TITLE), equalTo(TAB2_TITLE));
}
@Test
public void tabMovementWithinGroup_TabSwitcher_Forward() {
setUpForTabGroupOperation(TabListMediatorType.TAB_SWITCHER, TabListMode.GRID);
Tab tab3 = prepareTab(TAB3_ID, TAB3_TITLE, TAB3_URL);
// Setup three tabs with groups (mTab1, mTab2) and tab3.
List<Tab> group = new ArrayList<>(Arrays.asList(mTab1, mTab2));
List<Integer> groupTabIds = new ArrayList<>(Arrays.asList(TAB1_ID, TAB2_ID));
doReturn(group).when(mTabGroupModelFilter).getRelatedTabList(TAB1_ID);
doReturn(group).when(mTabGroupModelFilter).getRelatedTabList(TAB2_ID);
doReturn(groupTabIds).when(mTabGroupModelFilter).getRelatedTabIds(TAB1_ID);
doReturn(groupTabIds).when(mTabGroupModelFilter).getRelatedTabIds(TAB2_ID);
doReturn(mTab1).when(mTabGroupModelFilter).getTabAt(POSITION1);
doReturn(tab3).when(mTabGroupModelFilter).getTabAt(POSITION2);
doReturn(POSITION1).when(mTabGroupModelFilter).indexOf(mTab1);
doReturn(POSITION1).when(mTabGroupModelFilter).indexOf(mTab2);
doReturn(POSITION2).when(mTabGroupModelFilter).indexOf(tab3);
doReturn(mTab1).when(mTabModel).getTabAt(POSITION1);
doReturn(mTab2).when(mTabModel).getTabAt(POSITION2);
doReturn(tab3).when(mTabModel).getTabAt(2);
doReturn(mTabGroupModelFilter).when(mTabModelFilterProvider).getCurrentTabModelFilter();
CriticalPersistedTabData criticalPersistedTabData1 = CriticalPersistedTabData.from(mTab1);
CriticalPersistedTabData criticalPersistedTabData2 = CriticalPersistedTabData.from(mTab2);
CriticalPersistedTabData criticalPersistedTabData3 = CriticalPersistedTabData.from(tab3);
doReturn(TAB1_ID).when(criticalPersistedTabData1).getRootId();
doReturn(TAB1_ID).when(criticalPersistedTabData2).getRootId();
doReturn(TAB3_ID).when(criticalPersistedTabData3).getRootId();
List<Tab> tabs = new ArrayList<>(Arrays.asList(mTab1, tab3));
mMediator.resetWithListOfTabs(PseudoTab.getListOfPseudoTab(tabs), false, false);
assertThat(mModel.size(), equalTo(2));
// Select tab3 so the group doesn't have the selected tab.
doReturn(2).when(mTabModel).index();
mTabModelObserverCaptor.getValue().didSelectTab(
tab3, TabLaunchType.FROM_CHROME_UI, TAB1_ID);
assertThat(mModel.size(), equalTo(2));
assertThat(mModel.get(0).model.get(TabProperties.TAB_ID), equalTo(TAB1_ID));
assertThat(mModel.get(0).model.get(TabProperties.IS_SELECTED), equalTo(false));
assertThat(mModel.get(1).model.get(TabProperties.TAB_ID), equalTo(TAB3_ID));
assertThat(mModel.get(1).model.get(TabProperties.IS_SELECTED), equalTo(true));
// Assume that moveTab in TabModel is finished (swap mTab1 and mTab2).
group = new ArrayList<>(Arrays.asList(mTab2, mTab1));
groupTabIds = new ArrayList<>(Arrays.asList(TAB2_ID, TAB1_ID));
doReturn(group).when(mTabGroupModelFilter).getRelatedTabList(TAB1_ID);
doReturn(group).when(mTabGroupModelFilter).getRelatedTabList(TAB2_ID);
doReturn(groupTabIds).when(mTabGroupModelFilter).getRelatedTabIds(TAB1_ID);
doReturn(groupTabIds).when(mTabGroupModelFilter).getRelatedTabIds(TAB2_ID);
doReturn(mTab1).when(mTabModel).getTabAt(POSITION2);
doReturn(mTab2).when(mTabModel).getTabAt(POSITION1);
// mTab1 is first in group before the move.
assertThat(mModel.size(), equalTo(2));
assertThat(mModel.get(0).model.get(TabProperties.TAB_ID), equalTo(TAB1_ID));
assertThat(mModel.get(0).model.get(TabProperties.IS_SELECTED), equalTo(false));
ThumbnailFetcher tab1Fetcher = mModel.get(0).model.get(TabProperties.THUMBNAIL_FETCHER);
mMediatorTabGroupModelFilterObserver.didMoveWithinGroup(mTab2, POSITION2, POSITION1);
// mTab1 is still first in group after the move (last selected), but the thumbnail updated.
assertThat(mModel.size(), equalTo(2));
assertThat(mModel.get(0).model.get(TabProperties.TAB_ID), equalTo(TAB1_ID));
assertThat(mModel.get(0).model.get(TabProperties.IS_SELECTED), equalTo(false));
// TODO(crbug/1374361): Make this an assertion and don't update.
// Thumbnail order was: tab1, tab2, tab3. Now: tab1, tab2, tab3. Update is precautionary.
assertNotEquals(tab1Fetcher, mModel.get(0).model.get(TabProperties.THUMBNAIL_FETCHER));
}
@Test
public void tabMovementWithinGroup_TabSwitcher_Backward() {
setUpForTabGroupOperation(TabListMediatorType.TAB_SWITCHER, TabListMode.GRID);
Tab tab3 = prepareTab(TAB3_ID, TAB3_TITLE, TAB3_URL);
// Setup three tabs with groups (mTab1, mTab2) and tab3.
List<Tab> group = new ArrayList<>(Arrays.asList(mTab1, mTab2));
List<Integer> groupTabIds = new ArrayList<>(Arrays.asList(TAB1_ID, TAB2_ID));
doReturn(group).when(mTabGroupModelFilter).getRelatedTabList(TAB1_ID);
doReturn(group).when(mTabGroupModelFilter).getRelatedTabList(TAB2_ID);
doReturn(groupTabIds).when(mTabGroupModelFilter).getRelatedTabIds(TAB1_ID);
doReturn(groupTabIds).when(mTabGroupModelFilter).getRelatedTabIds(TAB2_ID);
doReturn(mTab1).when(mTabGroupModelFilter).getTabAt(POSITION1);
doReturn(tab3).when(mTabGroupModelFilter).getTabAt(POSITION2);
doReturn(POSITION1).when(mTabGroupModelFilter).indexOf(mTab1);
doReturn(POSITION1).when(mTabGroupModelFilter).indexOf(mTab2);
doReturn(POSITION2).when(mTabGroupModelFilter).indexOf(tab3);
doReturn(mTab1).when(mTabModel).getTabAt(POSITION1);
doReturn(mTab2).when(mTabModel).getTabAt(POSITION2);
doReturn(tab3).when(mTabModel).getTabAt(2);
doReturn(mTabGroupModelFilter).when(mTabModelFilterProvider).getCurrentTabModelFilter();
CriticalPersistedTabData criticalPersistedTabData1 = CriticalPersistedTabData.from(mTab1);
CriticalPersistedTabData criticalPersistedTabData2 = CriticalPersistedTabData.from(mTab2);
CriticalPersistedTabData criticalPersistedTabData3 = CriticalPersistedTabData.from(tab3);
doReturn(TAB1_ID).when(criticalPersistedTabData1).getRootId();
doReturn(TAB1_ID).when(criticalPersistedTabData2).getRootId();
doReturn(TAB3_ID).when(criticalPersistedTabData3).getRootId();
// Select tab3 so the group doesn't have the selected tab.
List<Tab> tabs = new ArrayList<>(Arrays.asList(mTab1, tab3));
mMediator.resetWithListOfTabs(PseudoTab.getListOfPseudoTab(tabs), false, false);
assertThat(mModel.size(), equalTo(2));
doReturn(2).when(mTabModel).index();
mTabModelObserverCaptor.getValue().didSelectTab(
tab3, TabLaunchType.FROM_CHROME_UI, TAB1_ID);
assertThat(mModel.size(), equalTo(2));
assertThat(mModel.get(0).model.get(TabProperties.TAB_ID), equalTo(TAB1_ID));
assertThat(mModel.get(0).model.get(TabProperties.IS_SELECTED), equalTo(false));
assertThat(mModel.get(1).model.get(TabProperties.TAB_ID), equalTo(TAB3_ID));
assertThat(mModel.get(1).model.get(TabProperties.IS_SELECTED), equalTo(true));
// Assume that moveTab in TabModel is finished (swap mTab1 and mTab2).
group = new ArrayList<>(Arrays.asList(mTab2, mTab1));
groupTabIds = new ArrayList<>(Arrays.asList(TAB2_ID, TAB1_ID));
doReturn(group).when(mTabGroupModelFilter).getRelatedTabList(TAB1_ID);
doReturn(group).when(mTabGroupModelFilter).getRelatedTabList(TAB2_ID);
doReturn(groupTabIds).when(mTabGroupModelFilter).getRelatedTabIds(TAB1_ID);
doReturn(groupTabIds).when(mTabGroupModelFilter).getRelatedTabIds(TAB2_ID);
doReturn(mTab1).when(mTabModel).getTabAt(POSITION2);
doReturn(mTab2).when(mTabModel).getTabAt(POSITION1);
// mTab1 is first in group before the move.
assertThat(mModel.size(), equalTo(2));
assertThat(mModel.get(0).model.get(TabProperties.TAB_ID), equalTo(TAB1_ID));
assertThat(mModel.get(0).model.get(TabProperties.IS_SELECTED), equalTo(false));
ThumbnailFetcher tab1Fetcher = mModel.get(0).model.get(TabProperties.THUMBNAIL_FETCHER);
mMediatorTabGroupModelFilterObserver.didMoveWithinGroup(mTab1, POSITION1, POSITION2);
// mTab1 is first in group after the move (last selected), but the thumbnail updated.
assertThat(mModel.size(), equalTo(2));
assertThat(mModel.get(0).model.get(TabProperties.TAB_ID), equalTo(TAB1_ID));
assertThat(mModel.get(0).model.get(TabProperties.IS_SELECTED), equalTo(false));
// TODO(crbug/1374361): Make this an assertion and don't update.
// Thumbnail order was: tab1, tab2, tab3. Now: tab1, tab2, tab3. Update is precautionary.
assertNotEquals(tab1Fetcher, mModel.get(0).model.get(TabProperties.THUMBNAIL_FETCHER));
}
@Test
public void tabMovementWithinGroup_TabSwitcher_SelectedNotMoved() {
setUpForTabGroupOperation(TabListMediatorType.TAB_SWITCHER, TabListMode.GRID);
Tab tab3 = prepareTab(TAB3_ID, TAB3_TITLE, TAB3_URL);
// Setup three tabs grouped together.
List<Tab> group = new ArrayList<>(Arrays.asList(mTab1, mTab2, tab3));
List<Integer> groupTabIds = new ArrayList<>(Arrays.asList(TAB1_ID, TAB2_ID, TAB3_ID));
doReturn(group).when(mTabGroupModelFilter).getRelatedTabList(TAB1_ID);
doReturn(group).when(mTabGroupModelFilter).getRelatedTabList(TAB2_ID);
doReturn(group).when(mTabGroupModelFilter).getRelatedTabList(TAB3_ID);
doReturn(groupTabIds).when(mTabGroupModelFilter).getRelatedTabIds(TAB1_ID);
doReturn(groupTabIds).when(mTabGroupModelFilter).getRelatedTabIds(TAB2_ID);
doReturn(groupTabIds).when(mTabGroupModelFilter).getRelatedTabIds(TAB3_ID);
doReturn(mTab1).when(mTabGroupModelFilter).getTabAt(POSITION1);
doReturn(POSITION1).when(mTabGroupModelFilter).indexOf(mTab1);
doReturn(POSITION1).when(mTabGroupModelFilter).indexOf(mTab2);
doReturn(POSITION1).when(mTabGroupModelFilter).indexOf(tab3);
doReturn(mTab1).when(mTabModel).getTabAt(POSITION1);
doReturn(mTab2).when(mTabModel).getTabAt(POSITION2);
doReturn(tab3).when(mTabModel).getTabAt(2);
doReturn(mTabGroupModelFilter).when(mTabModelFilterProvider).getCurrentTabModelFilter();
CriticalPersistedTabData criticalPersistedTabData1 = CriticalPersistedTabData.from(mTab1);
CriticalPersistedTabData criticalPersistedTabData2 = CriticalPersistedTabData.from(mTab2);
CriticalPersistedTabData criticalPersistedTabData3 = CriticalPersistedTabData.from(tab3);
doReturn(TAB1_ID).when(criticalPersistedTabData1).getRootId();
doReturn(TAB1_ID).when(criticalPersistedTabData2).getRootId();
doReturn(TAB1_ID).when(criticalPersistedTabData3).getRootId();
List<Tab> tabs = new ArrayList<>(Arrays.asList(mTab1));
mMediator.resetWithListOfTabs(PseudoTab.getListOfPseudoTab(tabs), false, false);
assertThat(mModel.size(), equalTo(1));
// Assume that moveTab in TabModel is finished.
// mTab1 selected.
doReturn(POSITION1).when(mTabModel).index();
mTabModelObserverCaptor.getValue().didSelectTab(
mTab1, TabLaunchType.FROM_CHROME_UI, TAB1_ID);
// Swap mTab2 and tab3.
doReturn(mTab2).when(mTabModel).getTabAt(2);
doReturn(tab3).when(mTabModel).getTabAt(POSITION2);
group = new ArrayList<>(Arrays.asList(mTab1, tab3, mTab2));
groupTabIds = new ArrayList<>(Arrays.asList(TAB1_ID, TAB3_ID, TAB2_ID));
doReturn(group).when(mTabGroupModelFilter).getRelatedTabList(TAB1_ID);
doReturn(group).when(mTabGroupModelFilter).getRelatedTabList(TAB2_ID);
doReturn(group).when(mTabGroupModelFilter).getRelatedTabList(TAB3_ID);
doReturn(groupTabIds).when(mTabGroupModelFilter).getRelatedTabIds(TAB1_ID);
doReturn(groupTabIds).when(mTabGroupModelFilter).getRelatedTabIds(TAB2_ID);
doReturn(groupTabIds).when(mTabGroupModelFilter).getRelatedTabIds(TAB3_ID);
// mTab1 selected before update.
assertThat(mModel.size(), equalTo(1));
assertThat(mModel.get(0).model.get(TabProperties.TAB_ID), equalTo(TAB1_ID));
assertThat(mModel.get(0).model.get(TabProperties.IS_SELECTED), equalTo(true));
ThumbnailFetcher tab1Fetcher = mModel.get(0).model.get(TabProperties.THUMBNAIL_FETCHER);
mMediatorTabGroupModelFilterObserver.didMoveWithinGroup(mTab2, POSITION2, 2);
// mTab1 still selected after the move (last selected), but the thumbnail updated.
assertThat(mModel.size(), equalTo(1));
assertThat(mModel.get(0).model.get(TabProperties.TAB_ID), equalTo(TAB1_ID));
assertThat(mModel.get(0).model.get(TabProperties.IS_SELECTED), equalTo(true));
// TODO(crbug/1374361): Make this an assertion.
// Thumbnail order was: tab1, tab2, tab3. Now: tab1, tab3, tab2.
assertNotEquals(tab1Fetcher, mModel.get(0).model.get(TabProperties.THUMBNAIL_FETCHER));
}
@Test
public void tabMovementWithinGroup_TabSwitcher_SelectedMoved() {
setUpForTabGroupOperation(TabListMediatorType.TAB_SWITCHER, TabListMode.GRID);
Tab tab3 = prepareTab(TAB3_ID, TAB3_TITLE, TAB3_URL);
// Setup three tabs grouped together.
List<Tab> group = new ArrayList<>(Arrays.asList(mTab1, mTab2, tab3));
List<Integer> groupTabIds = new ArrayList<>(Arrays.asList(TAB1_ID, TAB2_ID, TAB3_ID));
doReturn(group).when(mTabGroupModelFilter).getRelatedTabList(TAB1_ID);
doReturn(group).when(mTabGroupModelFilter).getRelatedTabList(TAB2_ID);
doReturn(group).when(mTabGroupModelFilter).getRelatedTabList(TAB3_ID);
doReturn(groupTabIds).when(mTabGroupModelFilter).getRelatedTabIds(TAB1_ID);
doReturn(groupTabIds).when(mTabGroupModelFilter).getRelatedTabIds(TAB2_ID);
doReturn(groupTabIds).when(mTabGroupModelFilter).getRelatedTabIds(TAB3_ID);
doReturn(mTab1).when(mTabGroupModelFilter).getTabAt(POSITION1);
doReturn(POSITION1).when(mTabGroupModelFilter).indexOf(mTab1);
doReturn(POSITION1).when(mTabGroupModelFilter).indexOf(mTab2);
doReturn(POSITION1).when(mTabGroupModelFilter).indexOf(tab3);
doReturn(mTab1).when(mTabModel).getTabAt(POSITION1);
doReturn(mTab2).when(mTabModel).getTabAt(POSITION2);
doReturn(tab3).when(mTabModel).getTabAt(2);
doReturn(mTabGroupModelFilter).when(mTabModelFilterProvider).getCurrentTabModelFilter();
CriticalPersistedTabData criticalPersistedTabData1 = CriticalPersistedTabData.from(mTab1);
CriticalPersistedTabData criticalPersistedTabData2 = CriticalPersistedTabData.from(mTab2);
CriticalPersistedTabData criticalPersistedTabData3 = CriticalPersistedTabData.from(tab3);
doReturn(TAB1_ID).when(criticalPersistedTabData1).getRootId();
doReturn(TAB1_ID).when(criticalPersistedTabData2).getRootId();
doReturn(TAB1_ID).when(criticalPersistedTabData3).getRootId();
List<Tab> tabs = new ArrayList<>(Arrays.asList(mTab1));
mMediator.resetWithListOfTabs(PseudoTab.getListOfPseudoTab(tabs), false, false);
assertThat(mModel.size(), equalTo(1));
// Assume that moveTab in TabModel is finished.
// mTab1 selected (at new position).
doReturn(2).when(mTabModel).index();
mTabModelObserverCaptor.getValue().didSelectTab(
mTab1, TabLaunchType.FROM_CHROME_UI, TAB1_ID);
// Swap mTab1 and mTab3.
doReturn(mTab1).when(mTabModel).getTabAt(2);
doReturn(tab3).when(mTabModel).getTabAt(POSITION1);
group = new ArrayList<>(Arrays.asList(tab3, mTab2, mTab1));
groupTabIds = new ArrayList<>(Arrays.asList(TAB3_ID, TAB2_ID, TAB1_ID));
doReturn(group).when(mTabGroupModelFilter).getRelatedTabList(TAB1_ID);
doReturn(group).when(mTabGroupModelFilter).getRelatedTabList(TAB2_ID);
doReturn(group).when(mTabGroupModelFilter).getRelatedTabList(TAB3_ID);
doReturn(groupTabIds).when(mTabGroupModelFilter).getRelatedTabIds(TAB1_ID);
doReturn(groupTabIds).when(mTabGroupModelFilter).getRelatedTabIds(TAB2_ID);
doReturn(groupTabIds).when(mTabGroupModelFilter).getRelatedTabIds(TAB3_ID);
// mTab1 selected before update.
assertThat(mModel.size(), equalTo(1));
assertThat(mModel.get(0).model.get(TabProperties.TAB_ID), equalTo(TAB1_ID));
assertThat(mModel.get(0).model.get(TabProperties.IS_SELECTED), equalTo(true));
ThumbnailFetcher tab1Fetcher = mModel.get(0).model.get(TabProperties.THUMBNAIL_FETCHER);
mMediatorTabGroupModelFilterObserver.didMoveWithinGroup(mTab1, 2, POSITION1);
// mTab1 still selected after the move (last selected), but the thumbnail updated.
assertThat(mModel.size(), equalTo(1));
assertThat(mModel.get(0).model.get(TabProperties.TAB_ID), equalTo(TAB1_ID));
assertThat(mModel.get(0).model.get(TabProperties.IS_SELECTED), equalTo(true));
// TODO(crbug/1374361): Make this an assertion.
// Thumbnail order was: tab1, tab2, tab3. Now: tab1, tab3, tab2.
assertNotEquals(tab1Fetcher, mModel.get(0).model.get(TabProperties.THUMBNAIL_FETCHER));
}
@Test
public void undoGrouped_One_Adjacent_Tab() {
setUpForTabGroupOperation(TabListMediatorType.TAB_SWITCHER, TabListMode.GRID);
// Assume there are 3 tabs in TabModel, mTab2 just grouped with mTab1;
Tab tab3 = prepareTab(TAB3_ID, TAB3_TITLE, TAB3_URL);
List<Tab> tabs = new ArrayList<>(Arrays.asList(mTab1, tab3));
mMediator.resetWithListOfTabs(PseudoTab.getListOfPseudoTab(tabs), false, false);
assertThat(mModel.size(), equalTo(2));
// Assume undo grouping mTab2 with mTab1.
doReturn(3).when(mTabGroupModelFilter).getCount();
doReturn(mTab1).when(mTabGroupModelFilter).getTabAt(POSITION1);
doReturn(mTab2).when(mTabGroupModelFilter).getTabAt(POSITION2);
doReturn(tab3).when(mTabGroupModelFilter).getTabAt(2);
mMediatorTabGroupModelFilterObserver.didMoveTabOutOfGroup(mTab2, POSITION1);
assertThat(mModel.size(), equalTo(3));
assertThat(mModel.indexFromId(TAB1_ID), equalTo(0));
assertThat(mModel.indexFromId(TAB2_ID), equalTo(1));
assertThat(mModel.indexFromId(TAB3_ID), equalTo(2));
}
@Test
public void undoForwardGrouped_One_Tab() {
setUpForTabGroupOperation(TabListMediatorType.TAB_SWITCHER, TabListMode.GRID);
// Assume there are 3 tabs in TabModel, tab3 just grouped with mTab1;
Tab tab3 = prepareTab(TAB3_ID, TAB3_TITLE, TAB3_URL);
List<Tab> tabs = new ArrayList<>(Arrays.asList(mTab1, mTab2));
mMediator.resetWithListOfTabs(PseudoTab.getListOfPseudoTab(tabs), false, false);
assertThat(mModel.size(), equalTo(2));
// Assume undo grouping tab3 with mTab1.
doReturn(3).when(mTabGroupModelFilter).getCount();
doReturn(POSITION1).when(mTabGroupModelFilter).indexOf(mTab1);
doReturn(mTab1).when(mTabGroupModelFilter).getTabAt(POSITION1);
doReturn(POSITION2).when(mTabGroupModelFilter).indexOf(mTab2);
doReturn(mTab2).when(mTabGroupModelFilter).getTabAt(POSITION2);
doReturn(2).when(mTabGroupModelFilter).indexOf(tab3);
doReturn(tab3).when(mTabGroupModelFilter).getTabAt(2);
doReturn(false).when(mTabGroupModelFilter).hasOtherRelatedTabs(tab3);
mMediatorTabGroupModelFilterObserver.didMoveTabOutOfGroup(tab3, POSITION1);
assertThat(mModel.size(), equalTo(3));
assertThat(mModel.indexFromId(TAB1_ID), equalTo(0));
assertThat(mModel.indexFromId(TAB2_ID), equalTo(1));
assertThat(mModel.indexFromId(TAB3_ID), equalTo(2));
}
@Test
public void undoBackwardGrouped_One_Tab() {
setUpForTabGroupOperation(TabListMediatorType.TAB_SWITCHER, TabListMode.GRID);
// Assume there are 3 tabs in TabModel, mTab1 just grouped with mTab2;
Tab tab3 = prepareTab(TAB3_ID, TAB3_TITLE, TAB3_URL);
List<Tab> tabs = new ArrayList<>(Arrays.asList(mTab2, tab3));
mMediator.resetWithListOfTabs(PseudoTab.getListOfPseudoTab(tabs), false, false);
assertThat(mModel.size(), equalTo(2));
// Assume undo grouping mTab1 from mTab2.
doReturn(3).when(mTabGroupModelFilter).getCount();
doReturn(mTab1).when(mTabGroupModelFilter).getTabAt(POSITION1);
doReturn(POSITION1).when(mTabGroupModelFilter).indexOf(mTab1);
doReturn(mTab2).when(mTabGroupModelFilter).getTabAt(POSITION2);
doReturn(POSITION2).when(mTabGroupModelFilter).indexOf(mTab2);
doReturn(tab3).when(mTabGroupModelFilter).getTabAt(2);
doReturn(2).when(mTabGroupModelFilter).indexOf(tab3);
doReturn(false).when(mTabGroupModelFilter).hasOtherRelatedTabs(mTab1);
mMediatorTabGroupModelFilterObserver.didMoveTabOutOfGroup(mTab1, POSITION2);
assertThat(mModel.size(), equalTo(3));
assertThat(mModel.indexFromId(TAB1_ID), equalTo(0));
assertThat(mModel.indexFromId(TAB2_ID), equalTo(1));
assertThat(mModel.indexFromId(TAB3_ID), equalTo(2));
}
@Test
public void undoForwardGrouped_BetweenGroups() {
setUpForTabGroupOperation(TabListMediatorType.TAB_SWITCHER, TabListMode.GRID);
// Assume there are 3 tabs in TabModel, tab3, tab4, just grouped with mTab1;
Tab tab3 = prepareTab(TAB3_ID, TAB3_TITLE, TAB3_URL);
Tab tab4 = prepareTab(TAB4_ID, TAB4_TITLE, TAB4_URL);
List<Tab> tabs = new ArrayList<>(Arrays.asList(mTab1));
mMediator.resetWithListOfTabs(PseudoTab.getListOfPseudoTab(tabs), false, false);
assertThat(mModel.size(), equalTo(1));
// Assume undo grouping tab3 with mTab1.
doReturn(2).when(mTabGroupModelFilter).getCount();
// Undo tab 3.
List<Tab> relatedTabs = Arrays.asList(tab3);
doReturn(mTab1).when(mTabGroupModelFilter).getTabAt(POSITION1);
doReturn(mTab1).when(mTabModel).getTabAt(0);
doReturn(mTab2).when(mTabModel).getTabAt(1);
doReturn(tab4).when(mTabModel).getTabAt(2);
doReturn(tab3).when(mTabModel).getTabAt(3);
doReturn(POSITION1).when(mTabGroupModelFilter).indexOf(mTab1);
doReturn(POSITION1).when(mTabGroupModelFilter).indexOf(mTab2);
doReturn(POSITION1).when(mTabGroupModelFilter).indexOf(tab4);
doReturn(0).when(mTabModel).indexOf(mTab1);
doReturn(1).when(mTabModel).indexOf(mTab2);
doReturn(2).when(mTabModel).indexOf(tab4);
doReturn(tab3).when(mTabGroupModelFilter).getTabAt(POSITION2);
doReturn(POSITION2).when(mTabGroupModelFilter).indexOf(tab3);
doReturn(3).when(mTabModel).indexOf(tab3);
doReturn(false).when(mTabGroupModelFilter).hasOtherRelatedTabs(tab3);
doReturn(true).when(mTabGroupModelFilter).hasOtherRelatedTabs(tab4);
doReturn(relatedTabs).when(mTabGroupModelFilter).getRelatedTabList(TAB3_ID);
mMediatorTabGroupModelFilterObserver.didMoveTabOutOfGroup(tab3, POSITION1);
assertThat(mModel.size(), equalTo(2));
assertThat(mModel.indexFromId(TAB1_ID), equalTo(0));
assertThat(mModel.indexFromId(TAB2_ID), equalTo(-1));
assertThat(mModel.indexFromId(TAB3_ID), equalTo(1));
assertThat(mModel.indexFromId(TAB4_ID), equalTo(-1));
// Undo tab 4
relatedTabs = Arrays.asList(tab3, tab4);
doReturn(POSITION2).when(mTabGroupModelFilter).indexOf(tab4);
doReturn(2).when(mTabModel).indexOf(tab3);
doReturn(3).when(mTabModel).indexOf(tab4);
doReturn(true).when(mTabGroupModelFilter).hasOtherRelatedTabs(tab3);
doReturn(true).when(mTabGroupModelFilter).hasOtherRelatedTabs(tab4);
doReturn(tab3).when(mTabGroupModelFilter).getTabAt(POSITION2);
doReturn(tab3).when(mTabModel).getTabAt(2);
doReturn(tab4).when(mTabModel).getTabAt(3);
doReturn(relatedTabs).when(mTabGroupModelFilter).getRelatedTabList(TAB3_ID);
doReturn(relatedTabs).when(mTabGroupModelFilter).getRelatedTabList(TAB4_ID);
mMediatorTabGroupModelFilterObserver.didMoveTabOutOfGroup(tab4, POSITION1);
assertThat(mModel.size(), equalTo(2));
mMediatorTabGroupModelFilterObserver.didMergeTabToGroup(tab4, TAB4_ID);
assertThat(mModel.size(), equalTo(2));
assertThat(mModel.indexFromId(TAB1_ID), equalTo(0));
assertThat(mModel.indexFromId(TAB2_ID), equalTo(-1));
assertThat(mModel.indexFromId(TAB3_ID), equalTo(1));
assertThat(mModel.indexFromId(TAB4_ID), equalTo(-1));
}
@Test
public void updateSpanCount_Portrait_SingleWindow() {
initAndAssertAllProperties();
// Mock that we are switching to portrait mode.
Configuration configuration = new Configuration();
configuration.orientation = Configuration.ORIENTATION_PORTRAIT;
configuration.screenWidthDp = TabListCoordinator.MAX_SCREEN_WIDTH_COMPACT_DP - 1;
// Mock that we are in single window mode.
MultiWindowUtils.getInstance().setIsInMultiWindowModeForTesting(false);
mComponentCallbacksCaptor.getValue().onConfigurationChanged(configuration);
verify(mGridLayoutManager).setSpanCount(TabListCoordinator.GRID_LAYOUT_SPAN_COUNT_COMPACT);
}
@Test
public void updateSpanCount_Landscape_SingleWindow() {
initAndAssertAllProperties();
// Mock that we are switching to landscape mode.
Configuration configuration = new Configuration();
configuration.orientation = Configuration.ORIENTATION_LANDSCAPE;
configuration.screenWidthDp = TabListCoordinator.MAX_SCREEN_WIDTH_COMPACT_DP - 1;
// Mock that we are in single window mode.
MultiWindowUtils.getInstance().setIsInMultiWindowModeForTesting(false);
mComponentCallbacksCaptor.getValue().onConfigurationChanged(configuration);
verify(mGridLayoutManager).setSpanCount(TabListCoordinator.GRID_LAYOUT_SPAN_COUNT_MEDIUM);
}
@Test
public void updateSpanCount_MultiWindow() {
initAndAssertAllProperties();
Configuration portraitConfiguration = new Configuration();
portraitConfiguration.screenWidthDp = TabListCoordinator.MAX_SCREEN_WIDTH_COMPACT_DP - 1;
portraitConfiguration.orientation = Configuration.ORIENTATION_PORTRAIT;
Configuration landscapeConfiguration = new Configuration();
landscapeConfiguration.orientation = Configuration.ORIENTATION_LANDSCAPE;
landscapeConfiguration.screenWidthDp = TabListCoordinator.MAX_SCREEN_WIDTH_COMPACT_DP - 1;
// Mock that we are in multi window mode.
MultiWindowUtils.getInstance().setIsInMultiWindowModeForTesting(true);
mComponentCallbacksCaptor.getValue().onConfigurationChanged(landscapeConfiguration);
mComponentCallbacksCaptor.getValue().onConfigurationChanged(portraitConfiguration);
mComponentCallbacksCaptor.getValue().onConfigurationChanged(landscapeConfiguration);
// The span count is fixed to 2 for multi window mode regardless of the orientation change.
verify(mGridLayoutManager, times(3))
.setSpanCount(TabListCoordinator.GRID_LAYOUT_SPAN_COUNT_COMPACT);
}
@Test
@Features.EnableFeatures(GRID_TAB_SWITCHER_FOR_TABLETS)
public void updateSpanCount_onTablet_multipleScreenWidths() {
initAndAssertAllProperties(3);
// Mock tablet
when(mResources.getInteger(R.integer.min_screen_width_bucket))
.thenReturn(TabListCoordinator.MAX_SCREEN_WIDTH_MEDIUM_DP + 1);
Configuration portraitConfiguration = new Configuration();
portraitConfiguration.orientation = Configuration.ORIENTATION_LANDSCAPE;
// Mock that we are in single window mode.
MultiWindowUtils.getInstance().setIsInMultiWindowModeForTesting(false);
// Compact width
portraitConfiguration.screenWidthDp = TabListCoordinator.MAX_SCREEN_WIDTH_COMPACT_DP - 1;
mComponentCallbacksCaptor.getValue().onConfigurationChanged(portraitConfiguration);
verify(mGridLayoutManager).setSpanCount(TabListCoordinator.GRID_LAYOUT_SPAN_COUNT_COMPACT);
// Medium width
portraitConfiguration.screenWidthDp = TabListCoordinator.MAX_SCREEN_WIDTH_MEDIUM_DP - 1;
mComponentCallbacksCaptor.getValue().onConfigurationChanged(portraitConfiguration);
verify(mGridLayoutManager).setSpanCount(TabListCoordinator.GRID_LAYOUT_SPAN_COUNT_MEDIUM);
// Large width
portraitConfiguration.screenWidthDp = TabListCoordinator.MAX_SCREEN_WIDTH_MEDIUM_DP + 1;
mComponentCallbacksCaptor.getValue().onConfigurationChanged(portraitConfiguration);
verify(mGridLayoutManager).setSpanCount(TabListCoordinator.GRID_LAYOUT_SPAN_COUNT_LARGE);
}
@Test
public void resetWithListOfTabs_MruOrder() {
List<Tab> tabs = new ArrayList<>();
for (int i = 0; i < mTabModel.getCount(); i++) {
tabs.add(mTabModel.getTabAt(i));
}
assertThat(tabs.size(), equalTo(2));
long timestamp1 = 1;
long timestamp2 = 2;
CriticalPersistedTabData criticalPersistedTabData1 = CriticalPersistedTabData.from(mTab1);
CriticalPersistedTabData criticalPersistedTabData2 = CriticalPersistedTabData.from(mTab2);
doReturn(timestamp1).when(criticalPersistedTabData1).getTimestampMillis();
doReturn(timestamp2).when(criticalPersistedTabData2).getTimestampMillis();
mMediator.resetWithListOfTabs(
PseudoTab.getListOfPseudoTab(tabs), /*quickMode =*/false, /*mruMode =*/true);
assertThat(mModel.size(), equalTo(2));
assertThat(mModel.get(0).model.get(TabProperties.TAB_ID), equalTo(TAB2_ID));
assertThat(mModel.get(1).model.get(TabProperties.TAB_ID), equalTo(TAB1_ID));
assertThat(mMediator.indexOfTab(TAB1_ID), equalTo(1));
assertThat(mMediator.indexOfTab(TAB2_ID), equalTo(0));
doReturn(timestamp2).when(criticalPersistedTabData1).getTimestampMillis();
doReturn(timestamp1).when(criticalPersistedTabData2).getTimestampMillis();
mMediator.resetWithListOfTabs(
PseudoTab.getListOfPseudoTab(tabs), /*quickMode =*/false, /*mruMode =*/true);
assertThat(mModel.size(), equalTo(2));
assertThat(mModel.get(0).model.get(TabProperties.TAB_ID), equalTo(TAB1_ID));
assertThat(mModel.get(1).model.get(TabProperties.TAB_ID), equalTo(TAB2_ID));
assertThat(mMediator.indexOfTab(TAB1_ID), equalTo(0));
assertThat(mMediator.indexOfTab(TAB2_ID), equalTo(1));
}
@Test
public void groupAndUngroupSelectedTabsInMRUOrder() {
StartSurfaceConfiguration.SHOW_TABS_IN_MRU_ORDER.setForTesting(true);
// A new mediator with mode equals TabListMode.CAROUSEL will be created.
setUpForTabGroupOperation(TabListMediatorType.TAB_SWITCHER, TabListMode.CAROUSEL);
List<Tab> tabs = new ArrayList<>();
for (int i = 0; i < mTabModel.getCount(); i++) {
tabs.add(mTabModel.getTabAt(i));
}
assertThat(tabs.size(), equalTo(2));
TabImpl tab3 = prepareTab(TAB3_ID, TAB3_TITLE, TAB3_URL);
tabs.add(tab3);
int position3 = 2;
doReturn(true).when(mTabModelSelector).isTabStateInitialized();
doReturn(tab3).when(mTabModel).getTabAt(position3);
doReturn(position3).when(mTabModel).indexOf(tab3);
doReturn(3).when(mTabModel).getCount();
long timestamp1 = 1;
long timestamp2 = 2;
long timestamp3 = 3;
CriticalPersistedTabData criticalPersistedTabData1 = CriticalPersistedTabData.from(mTab1);
CriticalPersistedTabData criticalPersistedTabData2 = CriticalPersistedTabData.from(mTab2);
CriticalPersistedTabData criticalPersistedTabData3 = CriticalPersistedTabData.from(tab3);
doReturn(timestamp1).when(criticalPersistedTabData1).getTimestampMillis();
doReturn(timestamp2).when(criticalPersistedTabData2).getTimestampMillis();
doReturn(timestamp3).when(criticalPersistedTabData3).getTimestampMillis();
mMediator.resetWithListOfTabs(
PseudoTab.getListOfPseudoTab(tabs), /*quickMode =*/false, /*mruMode =*/true);
assertThat(mModel.size(), equalTo(3));
assertThat(mModel.get(0).model.get(TabProperties.TAB_ID), equalTo(TAB3_ID));
assertThat(mModel.get(1).model.get(TabProperties.TAB_ID), equalTo(TAB2_ID));
assertThat(mModel.get(2).model.get(TabProperties.TAB_ID), equalTo(TAB1_ID));
assertThat(mMediator.indexOfTab(TAB1_ID), equalTo(2));
assertThat(mMediator.indexOfTab(TAB2_ID), equalTo(1));
assertThat(mMediator.indexOfTab(TAB3_ID), equalTo(0));
// Group Tab3 to Tab1, and create a new group with id equals to TAB1_ID. Tab3 is the current
// Tab. Assume that TabGroupModelFilter is already updated.
doReturn(tab3).when(mTabModelSelector).getCurrentTab();
doReturn(TAB3_ID).when(mTabModelSelector).getCurrentTabId();
List<Tab> group = new ArrayList<>(Arrays.asList(mTab1, tab3));
createTabGroup(group, TAB1_ID);
// In TabModel, it becomes {Tab1, Tab3}, Tab2 from Tab1, Tab2, Tab3.
doReturn(POSITION2).when(mTabModel).indexOf(tab3);
doReturn(mTab1).when(mTabModel).getTabAt(POSITION1);
doReturn(tab3).when(mTabModel).getTabAt(POSITION2);
doReturn(mTab2).when(mTabModel).getTabAt(position3);
Pair<Integer, Integer> positions = mModel.getIndexesForMergeToGroup(mTabModel, group);
// On the mModel (MRU order), moving Tab3 to Tab1 is to move scrIndex 0 to desIndex 2.
assertEquals(2, positions.first.intValue()); // desIndex
assertEquals(0, positions.second.intValue()); // scrIndex
// The TabGroupModelFilter.getTabAt() returns the last selected Tab for each group, which
// could be only has a single Tab.
doReturn(POSITION1).when(mTabGroupModelFilter).indexOf(mTab1);
doReturn(POSITION1).when(mTabGroupModelFilter).indexOf(tab3);
doReturn(POSITION2).when(mTabGroupModelFilter).indexOf(mTab2);
doReturn(tab3).when(mTabGroupModelFilter).getTabAt(POSITION1);
doReturn(mTab2).when(mTabGroupModelFilter).getTabAt(POSITION2);
mMediatorTabGroupModelFilterObserver.didMergeTabToGroup(tab3, TAB3_ID);
assertEquals(2, mModel.size());
// Verifies that the new group {Tab1, Tab3} is moved to the location of Tab3 and updated
// with Tab3's id.
assertThat(mModel.get(0).model.get(TabProperties.TAB_ID), equalTo(TAB3_ID));
assertThat(mModel.get(1).model.get(TabProperties.TAB_ID), equalTo(TAB2_ID));
// Move Tab3 out of the group. In TabModel, it becomes: Tab1, Tab3, Tab2 from {Tab1, Tab3},
// Tab2.
doReturn(mTab1).when(mTabGroupModelFilter).getTabAt(POSITION1);
doReturn(tab3).when(mTabGroupModelFilter).getTabAt(POSITION2);
doReturn(mTab2).when(mTabGroupModelFilter).getTabAt(position3);
mMediatorTabGroupModelFilterObserver.didMoveTabOutOfGroup(tab3, POSITION1);
assertEquals(mModel.size(), 3);
assertThat(mModel.get(0).model.get(TabProperties.TAB_ID), equalTo(TAB3_ID));
assertThat(mModel.get(1).model.get(TabProperties.TAB_ID), equalTo(TAB2_ID));
assertThat(mModel.get(2).model.get(TabProperties.TAB_ID), equalTo(TAB1_ID));
StartSurfaceConfiguration.SHOW_TABS_IN_MRU_ORDER.setForTesting(false);
}
@Test
public void mergeNoneSelectedToGroupBackwardsAndUngroup() {
StartSurfaceConfiguration.SHOW_TABS_IN_MRU_ORDER.setForTesting(true);
// A new mediator with mode equals TabListMode.CAROUSEL will be created.
setUpForTabGroupOperation(TabListMediatorType.TAB_SWITCHER, TabListMode.CAROUSEL);
List<Tab> tabs = new ArrayList<>();
for (int i = 0; i < mTabModel.getCount(); i++) {
tabs.add(mTabModel.getTabAt(i));
}
assertThat(tabs.size(), equalTo(2));
TabImpl tab3 = prepareTab(TAB3_ID, TAB3_TITLE, TAB3_URL);
int tab4Id = 0;
TabImpl tab4 = prepareTab(tab4Id, "tab 4", TAB2_URL);
tabs.add(tab3);
tabs.add(tab4);
int position3 = 2;
int position4 = 3;
doReturn(tab3).when(mTabModel).getTabAt(POSITION2);
doReturn(tab4).when(mTabModel).getTabAt(position4);
doReturn(position3).when(mTabModel).indexOf(tab3);
doReturn(position4).when(mTabModel).indexOf(tab4);
doReturn(4).when(mTabModel).getCount();
long timestamp1 = 1;
long timestamp2 = 2;
long timestamp3 = 3;
long timestamp4 = 4;
CriticalPersistedTabData criticalPersistedTabData1 = CriticalPersistedTabData.from(mTab1);
CriticalPersistedTabData criticalPersistedTabData2 = CriticalPersistedTabData.from(mTab2);
CriticalPersistedTabData criticalPersistedTabData3 = CriticalPersistedTabData.from(tab3);
CriticalPersistedTabData criticalPersistedTabData4 = CriticalPersistedTabData.from(tab4);
doReturn(timestamp1).when(criticalPersistedTabData1).getTimestampMillis();
doReturn(timestamp2).when(criticalPersistedTabData2).getTimestampMillis();
doReturn(timestamp3).when(criticalPersistedTabData3).getTimestampMillis();
doReturn(timestamp4).when(criticalPersistedTabData4).getTimestampMillis();
mMediator.resetWithListOfTabs(
PseudoTab.getListOfPseudoTab(tabs), /*quickMode =*/false, /*mruMode =*/true);
assertThat(mModel.size(), equalTo(4));
assertThat(mModel.get(0).model.get(TabProperties.TAB_ID), equalTo(tab4Id));
assertThat(mModel.get(1).model.get(TabProperties.TAB_ID), equalTo(TAB3_ID));
assertThat(mModel.get(2).model.get(TabProperties.TAB_ID), equalTo(TAB2_ID));
assertThat(mModel.get(3).model.get(TabProperties.TAB_ID), equalTo(TAB1_ID));
assertThat(mMediator.indexOfTab(TAB1_ID), equalTo(3));
assertThat(mMediator.indexOfTab(TAB2_ID), equalTo(2));
assertThat(mMediator.indexOfTab(TAB3_ID), equalTo(1));
assertThat(mMediator.indexOfTab(tab4Id), equalTo(0));
// Group Tab1 to Tab3, and create a new group {Tab3, Tab1} with id equals to TAB3_ID. Tab4
// is the current Tab. Assume that TabGroupModelFilter is already updated.
doReturn(tab4).when(mTabModelSelector).getCurrentTab();
doReturn(tab4Id).when(mTabModelSelector).getCurrentTabId();
List<Tab> group = new ArrayList<>(Arrays.asList(tab3, mTab1));
createTabGroup(group, TAB3_ID);
// In TabModel, it becomes Tab2, {Tab3, Tab1}, Tab4 from Tab1, Tab2, Tab3, Tab4.
doReturn(POSITION1).when(mTabModel).indexOf(mTab2);
doReturn(POSITION2).when(mTabModel).indexOf(tab3);
doReturn(position3).when(mTabModel).indexOf(mTab1);
doReturn(position4).when(mTabModel).indexOf(tab4);
doReturn(mTab2).when(mTabModel).getTabAt(POSITION1);
doReturn(tab3).when(mTabModel).getTabAt(POSITION2);
doReturn(mTab1).when(mTabModel).getTabAt(position3);
doReturn(tab4).when(mTabModel).getTabAt(position4);
// The TabGroupModelFilter.getTabAt() returns the last selected Tab for each group, which
// could be only has a single Tab.
doReturn(POSITION1).when(mTabGroupModelFilter).indexOf(mTab2);
doReturn(POSITION2).when(mTabGroupModelFilter).indexOf(mTab1);
doReturn(POSITION2).when(mTabGroupModelFilter).indexOf(tab3);
doReturn(position3).when(mTabGroupModelFilter).indexOf(tab4);
doReturn(mTab2).when(mTabGroupModelFilter).getTabAt(POSITION1);
doReturn(tab3).when(mTabGroupModelFilter).getTabAt(POSITION2);
doReturn(tab4).when(mTabGroupModelFilter).getTabAt(position3);
Pair<Integer, Integer> positions = mModel.getIndexesForMergeToGroup(mTabModel, group);
// On the mModel (MRU order), moving Tab1 to Tab3 is to move srcIndex 3 to desIndex 1.
assertEquals(1, positions.first.intValue()); // desIndex
assertEquals(3, positions.second.intValue()); // srcIndex
mMediatorTabGroupModelFilterObserver.didMergeTabToGroup(mTab1, TAB3_ID);
assertEquals(3, mModel.size());
// Verifies that the new group {Tab3, Tab1} is moved to the location of Tab3 and updated
// with Tab3's id.
assertThat(mModel.get(0).model.get(TabProperties.TAB_ID), equalTo(tab4Id));
assertThat(mModel.get(1).model.get(TabProperties.TAB_ID), equalTo(TAB3_ID));
assertThat(mModel.get(2).model.get(TabProperties.TAB_ID), equalTo(TAB2_ID));
// Move Tab3 out of the group. In TabModel, it becomes: Tab2, Tab1, Tab3, Tab4 from Tab2,
// {Tab3, Tab1}, Tab4.
doReturn(mTab2).when(mTabGroupModelFilter).getTabAt(POSITION1);
doReturn(mTab1).when(mTabGroupModelFilter).getTabAt(POSITION2);
doReturn(tab3).when(mTabGroupModelFilter).getTabAt(position3);
doReturn(tab4).when(mTabGroupModelFilter).getTabAt(position4);
mMediatorTabGroupModelFilterObserver.didMoveTabOutOfGroup(tab3, POSITION2);
assertEquals(mModel.size(), 4);
assertThat(mModel.get(0).model.get(TabProperties.TAB_ID), equalTo(tab4Id));
assertThat(mModel.get(1).model.get(TabProperties.TAB_ID), equalTo(TAB3_ID));
assertThat(mModel.get(2).model.get(TabProperties.TAB_ID), equalTo(TAB2_ID));
assertThat(mModel.get(3).model.get(TabProperties.TAB_ID), equalTo(TAB1_ID));
StartSurfaceConfiguration.SHOW_TABS_IN_MRU_ORDER.setForTesting(false);
}
@Test
@Features.EnableFeatures({TAB_GROUPS_CONTINUATION_ANDROID})
public void getLatestTitle_NotGTS() {
setUpForTabGroupOperation(TabListMediatorType.TAB_GRID_DIALOG, TabListMode.GRID);
// Mock that we have a stored title stored with reference to root ID of tab1.
getGroupTitleSharedPreferences()
.edit()
.putString(String.valueOf(CriticalPersistedTabData.from(mTab1).getRootId()),
CUSTOMIZED_DIALOG_TITLE1)
.apply();
assertThat(mMediator.getTabGroupTitleEditor().getTabGroupTitle(
CriticalPersistedTabData.from(mTab1).getRootId()),
equalTo(CUSTOMIZED_DIALOG_TITLE1));
// Mock that tab1 and tab2 are in the same group and group root id is TAB1_ID.
List<Tab> tabs = new ArrayList<>(Arrays.asList(mTab1, mTab2));
createTabGroup(tabs, TAB1_ID);
// Even if we have a stored title, we only show it in tab switcher.
assertThat(mMediator.getLatestTitleForTab(PseudoTab.fromTab(mTab1)), equalTo(TAB1_TITLE));
}
@Test
@Features.EnableFeatures({TAB_GROUPS_CONTINUATION_ANDROID})
public void getLatestTitle_SingleTab_GTS() {
setUpForTabGroupOperation(TabListMediatorType.TAB_SWITCHER, TabListMode.GRID);
// Mock that we have a stored title stored with reference to root ID of tab1.
getGroupTitleSharedPreferences()
.edit()
.putString(String.valueOf(CriticalPersistedTabData.from(mTab1).getRootId()),
CUSTOMIZED_DIALOG_TITLE1)
.apply();
assertThat(mMediator.getTabGroupTitleEditor().getTabGroupTitle(
CriticalPersistedTabData.from(mTab1).getRootId()),
equalTo(CUSTOMIZED_DIALOG_TITLE1));
// Mock that tab1 is a single tab.
List<Tab> tabs = new ArrayList<>(Arrays.asList(mTab1));
createTabGroup(tabs, TAB1_ID);
// We never show stored title for single tab.
assertThat(mMediator.getLatestTitleForTab(PseudoTab.fromTab(mTab1)), equalTo(TAB1_TITLE));
}
@Test
@Features.EnableFeatures({TAB_GROUPS_CONTINUATION_ANDROID})
public void getLatestTitle_Stored_GTS() {
setUpForTabGroupOperation(TabListMediatorType.TAB_SWITCHER, TabListMode.GRID);
// Mock that we have a stored title stored with reference to root ID of tab1.
getGroupTitleSharedPreferences()
.edit()
.putString(String.valueOf(CriticalPersistedTabData.from(mTab1).getRootId()),
CUSTOMIZED_DIALOG_TITLE1)
.apply();
assertThat(mMediator.getTabGroupTitleEditor().getTabGroupTitle(
CriticalPersistedTabData.from(mTab1).getRootId()),
equalTo(CUSTOMIZED_DIALOG_TITLE1));
// Mock that tab1 and tab2 are in the same group and group root id is TAB1_ID.
List<Tab> tabs = new ArrayList<>(Arrays.asList(mTab1, mTab2));
createTabGroup(tabs, TAB1_ID);
assertThat(mMediator.getLatestTitleForTab(PseudoTab.fromTab(mTab1)),
equalTo(CUSTOMIZED_DIALOG_TITLE1));
}
@Test
@Features.EnableFeatures({TAB_GROUPS_CONTINUATION_ANDROID})
public void updateTabGroupTitle_GTS() {
setUpForTabGroupOperation(TabListMediatorType.TAB_SWITCHER, TabListMode.GRID);
setUpTabGroupCardDescriptionString();
String targetString = "Expand tab group with 2 tabs.";
assertThat(mModel.get(POSITION1).model.get(TabProperties.TITLE), equalTo(TAB1_TITLE));
// Mock that tab1 and newTab are in the same group and group root id is TAB1_ID.
TabImpl newTab = prepareTab(TAB3_ID, TAB3_TITLE, TAB3_URL);
List<Tab> tabs = new ArrayList<>(Arrays.asList(mTab1, newTab));
createTabGroup(tabs, TAB1_ID);
doReturn(mTab1).when(mTabGroupModelFilter).getTabAt(POSITION1);
doReturn(POSITION1).when(mTabGroupModelFilter).indexOf(mTab1);
mMediator.getTabGroupTitleEditor().updateTabGroupTitle(mTab1, CUSTOMIZED_DIALOG_TITLE1);
assertThat(mModel.get(POSITION1).model.get(TabProperties.TITLE),
equalTo(CUSTOMIZED_DIALOG_TITLE1));
assertThat(mModel.get(POSITION1).model.get(TabProperties.CONTENT_DESCRIPTION_STRING),
equalTo(targetString));
}
@Test
@Features.EnableFeatures({TAB_GROUPS_CONTINUATION_ANDROID})
public void tabGroupTitleEditor_storeTitle() {
setUpForTabGroupOperation(TabListMediatorType.TAB_SWITCHER, TabListMode.GRID);
TabGroupTitleEditor tabGroupTitleEditor = mMediator.getTabGroupTitleEditor();
assertNull(getGroupTitleSharedPreferences().getString(
String.valueOf(CriticalPersistedTabData.from(mTab1).getRootId()), null));
tabGroupTitleEditor.storeTabGroupTitle(
CriticalPersistedTabData.from(mTab1).getRootId(), CUSTOMIZED_DIALOG_TITLE1);
assertEquals(CUSTOMIZED_DIALOG_TITLE1,
getGroupTitleSharedPreferences().getString(
String.valueOf(CriticalPersistedTabData.from(mTab1).getRootId()), null));
}
@Test
@Features.EnableFeatures({TAB_GROUPS_CONTINUATION_ANDROID})
public void tabGroupTitleEditor_deleteTitle() {
setUpForTabGroupOperation(TabListMediatorType.TAB_SWITCHER, TabListMode.GRID);
TabGroupTitleEditor tabGroupTitleEditor = mMediator.getTabGroupTitleEditor();
getGroupTitleSharedPreferences()
.edit()
.putString(String.valueOf(CriticalPersistedTabData.from(mTab1).getRootId()),
CUSTOMIZED_DIALOG_TITLE1)
.apply();
assertEquals(CUSTOMIZED_DIALOG_TITLE1,
getGroupTitleSharedPreferences().getString(
String.valueOf(CriticalPersistedTabData.from(mTab1).getRootId()), null));
tabGroupTitleEditor.deleteTabGroupTitle(CriticalPersistedTabData.from(mTab1).getRootId());
assertNull(getGroupTitleSharedPreferences().getString(
String.valueOf(CriticalPersistedTabData.from(mTab1).getRootId()), null));
}
@Test
public void addSpecialItem() {
PropertyModel model = mock(PropertyModel.class);
when(model.get(CARD_TYPE)).thenReturn(MESSAGE);
mMediator.addSpecialItemToModel(0, TabProperties.UiType.DIVIDER, model);
assertTrue(mModel.size() > 0);
assertEquals(TabProperties.UiType.DIVIDER, mModel.get(0).type);
}
@Test
public void addSpecialItem_notPersistOnReset() {
PropertyModel model = mock(PropertyModel.class);
when(model.get(CARD_TYPE)).thenReturn(MESSAGE);
mMediator.addSpecialItemToModel(0, TabProperties.UiType.DIVIDER, model);
assertEquals(TabProperties.UiType.DIVIDER, mModel.get(0).type);
List<Tab> tabs = new ArrayList<>(Arrays.asList(mTab1, mTab2));
mMediator.resetWithListOfTabs(
PseudoTab.getListOfPseudoTab(tabs), /*quickMode =*/false, /*mruMode =*/false);
assertThat(mModel.size(), equalTo(2));
assertNotEquals(TabProperties.UiType.DIVIDER, mModel.get(0).type);
assertNotEquals(TabProperties.UiType.DIVIDER, mModel.get(1).type);
mMediator.addSpecialItemToModel(1, TabProperties.UiType.DIVIDER, model);
assertThat(mModel.size(), equalTo(3));
assertEquals(TabProperties.UiType.DIVIDER, mModel.get(1).type);
}
@Test
public void addSpecialItem_withoutTabListModelProperties() {
if (!BuildConfig.ENABLE_ASSERTS) return;
try {
mMediator.addSpecialItemToModel(0, TabProperties.UiType.DIVIDER, new PropertyModel());
} catch (AssertionError e) {
return;
}
fail("PropertyModel#validateKey() assert should have failed.");
}
@Test
public void removeSpecialItem_Message() {
PropertyModel model = mock(PropertyModel.class);
int expectedMessageType = FOR_TESTING;
int wrongMessageType = TAB_SUGGESTION;
when(model.get(CARD_TYPE)).thenReturn(MESSAGE);
when(model.get(MESSAGE_TYPE)).thenReturn(expectedMessageType);
mMediator.addSpecialItemToModel(0, TabProperties.UiType.MESSAGE, model);
assertEquals(1, mModel.size());
mMediator.removeSpecialItemFromModel(TabProperties.UiType.MESSAGE, wrongMessageType);
assertEquals(1, mModel.size());
mMediator.removeSpecialItemFromModel(TabProperties.UiType.MESSAGE, expectedMessageType);
assertEquals(0, mModel.size());
}
@Test
public void removeSpecialItem_Message_PriceMessage() {
PropertyModel model = mock(PropertyModel.class);
int expectedMessageType = PRICE_MESSAGE;
int wrongMessageType = TAB_SUGGESTION;
when(model.get(CARD_TYPE)).thenReturn(MESSAGE);
when(model.get(MESSAGE_TYPE)).thenReturn(expectedMessageType);
mMediator.addSpecialItemToModel(0, TabProperties.UiType.LARGE_MESSAGE, model);
assertEquals(1, mModel.size());
mMediator.removeSpecialItemFromModel(TabProperties.UiType.MESSAGE, wrongMessageType);
assertEquals(1, mModel.size());
mMediator.removeSpecialItemFromModel(
TabProperties.UiType.LARGE_MESSAGE, expectedMessageType);
assertEquals(0, mModel.size());
}
@Test
@Features.DisableFeatures({TAB_GROUPS_ANDROID})
public void testUrlUpdated_forSingleTab_GTS_GroupNotEnabled() {
initAndAssertAllProperties();
assertNotEquals(mNewDomain, mModel.get(POSITION1).model.get(TabProperties.URL_DOMAIN));
doReturn(JUnitTestGURLs.getGURL(NEW_URL)).when(mTab1).getUrl();
mTabObserverCaptor.getValue().onUrlUpdated(mTab1);
// TabProperties.URL_DOMAIN is empty string if TabGroupsAndroidContinuationEnabled is false.
assertEquals("", mModel.get(POSITION1).model.get(TabProperties.URL_DOMAIN));
assertEquals("", mModel.get(POSITION2).model.get(TabProperties.URL_DOMAIN));
}
@Test
@Features.EnableFeatures({TAB_GROUPS_CONTINUATION_ANDROID})
public void testUrlUpdated_forSingleTab_GTS() {
setUpForTabGroupOperation(TabListMediatorType.TAB_SWITCHER, TabListMode.GRID);
assertNotEquals(mNewDomain, mModel.get(POSITION1).model.get(TabProperties.URL_DOMAIN));
doReturn(mNewDomain)
.when(mUrlUtilitiesJniMock)
.getDomainAndRegistry(eq(NEW_URL), anyBoolean());
doReturn(JUnitTestGURLs.getGURL(NEW_URL)).when(mTab1).getUrl();
mTabObserverCaptor.getValue().onUrlUpdated(mTab1);
assertEquals(mNewDomain, mModel.get(POSITION1).model.get(TabProperties.URL_DOMAIN));
assertEquals(mTab2Domain, mModel.get(POSITION2).model.get(TabProperties.URL_DOMAIN));
}
@Test
@Features.EnableFeatures({TAB_GROUPS_CONTINUATION_ANDROID})
public void testUrlUpdated_forGroup_GTS() {
setUpForTabGroupOperation(TabListMediatorType.TAB_SWITCHER, TabListMode.GRID);
List<Tab> tabs = new ArrayList<>(Arrays.asList(mTab1, mTab2));
createTabGroup(tabs, TAB1_ID);
doReturn(POSITION1).when(mTabGroupModelFilter).indexOf(mTab1);
doReturn(POSITION1).when(mTabGroupModelFilter).indexOf(mTab2);
mMediatorTabGroupModelFilterObserver.didMergeTabToGroup(mTab2, TAB1_ID);
assertEquals(mTab1Domain + ", " + mTab2Domain,
mModel.get(POSITION1).model.get(TabProperties.URL_DOMAIN));
doReturn(mNewDomain)
.when(mUrlUtilitiesJniMock)
.getDomainAndRegistry(eq(NEW_URL), anyBoolean());
// Update URL_DOMAIN for mTab1.
doReturn(JUnitTestGURLs.getGURL(NEW_URL)).when(mTab1).getUrl();
mTabObserverCaptor.getValue().onUrlUpdated(mTab1);
assertEquals(mNewDomain + ", " + mTab2Domain,
mModel.get(POSITION1).model.get(TabProperties.URL_DOMAIN));
// Update URL_DOMAIN for mTab2.
doReturn(JUnitTestGURLs.getGURL(NEW_URL)).when(mTab2).getUrl();
mTabObserverCaptor.getValue().onUrlUpdated(mTab2);
assertEquals(mNewDomain + ", " + mNewDomain,
mModel.get(POSITION1).model.get(TabProperties.URL_DOMAIN));
}
@Test
@Features.EnableFeatures({TAB_GROUPS_CONTINUATION_ANDROID})
public void testUrlUpdated_forGroup_Dialog() {
setUpForTabGroupOperation(TabListMediatorType.TAB_GRID_DIALOG, TabListMode.GRID);
List<Tab> tabs = new ArrayList<>(Arrays.asList(mTab1, mTab2));
createTabGroup(tabs, TAB1_ID);
doReturn(POSITION1).when(mTabGroupModelFilter).indexOf(mTab1);
doReturn(POSITION1).when(mTabGroupModelFilter).indexOf(mTab2);
mMediatorTabGroupModelFilterObserver.didMergeTabToGroup(mTab2, TAB1_ID);
assertEquals(mTab1Domain, mModel.get(POSITION1).model.get(TabProperties.URL_DOMAIN));
assertEquals(mTab2Domain, mModel.get(POSITION2).model.get(TabProperties.URL_DOMAIN));
doReturn(mNewDomain)
.when(mUrlUtilitiesJniMock)
.getDomainAndRegistry(eq(NEW_URL), anyBoolean());
// Update URL_DOMAIN for mTab1.
doReturn(JUnitTestGURLs.getGURL(NEW_URL)).when(mTab1).getUrl();
mTabObserverCaptor.getValue().onUrlUpdated(mTab1);
assertEquals(mNewDomain, mModel.get(POSITION1).model.get(TabProperties.URL_DOMAIN));
assertEquals(mTab2Domain, mModel.get(POSITION2).model.get(TabProperties.URL_DOMAIN));
// Update URL_DOMAIN for mTab2.
doReturn(JUnitTestGURLs.getGURL(NEW_URL)).when(mTab2).getUrl();
mTabObserverCaptor.getValue().onUrlUpdated(mTab2);
assertEquals(mNewDomain, mModel.get(POSITION1).model.get(TabProperties.URL_DOMAIN));
assertEquals(mNewDomain, mModel.get(POSITION2).model.get(TabProperties.URL_DOMAIN));
}
@Test
@Features.EnableFeatures({TAB_GROUPS_CONTINUATION_ANDROID})
public void testUrlUpdated_forUnGroup() {
setUpForTabGroupOperation(TabListMediatorType.TAB_SWITCHER, TabListMode.GRID);
List<Tab> tabs = new ArrayList<>(Arrays.asList(mTab1, mTab2));
createTabGroup(tabs, TAB1_ID);
mMediatorTabGroupModelFilterObserver.didMergeTabToGroup(mTab2, TAB1_ID);
assertEquals(mTab1Domain + ", " + mTab2Domain,
mModel.get(POSITION1).model.get(TabProperties.URL_DOMAIN));
// Assume that TabGroupModelFilter is already updated.
when(mTabGroupModelFilter.getRelatedTabList(TAB1_ID)).thenReturn(Arrays.asList(mTab1));
when(mTabGroupModelFilter.getRelatedTabList(TAB2_ID)).thenReturn(Arrays.asList(mTab2));
doReturn(mTab1).when(mTabGroupModelFilter).getTabAt(POSITION1);
doReturn(mTab2).when(mTabGroupModelFilter).getTabAt(POSITION2);
doReturn(2).when(mTabGroupModelFilter).getCount();
mMediatorTabGroupModelFilterObserver.didMoveTabOutOfGroup(mTab2, POSITION1);
assertEquals(mTab1Domain, mModel.get(POSITION1).model.get(TabProperties.URL_DOMAIN));
assertEquals(mTab2Domain, mModel.get(POSITION2).model.get(TabProperties.URL_DOMAIN));
}
@Test
@Features.EnableFeatures({TAB_GROUPS_CONTINUATION_ANDROID})
public void testOnInitializeAccessibilityNodeInfo() {
setUpForTabGroupOperation(TabListMediatorType.TAB_SWITCHER, TabListMode.GRID);
// Setup related mocks and initialize needed components.
AccessibilityNodeInfo accessibilityNodeInfo = mock(AccessibilityNodeInfo.class);
AccessibilityAction action1 = new AccessibilityAction(R.id.move_tab_left, "left");
AccessibilityAction action2 = new AccessibilityAction(R.id.move_tab_right, "right");
AccessibilityAction action3 = new AccessibilityAction(R.id.move_tab_up, "up");
doReturn(new ArrayList<>(Arrays.asList(action1, action2, action3)))
.when(mTabGridAccessibilityHelper)
.getPotentialActionsForView(mItemView1);
InOrder accessibilityNodeInfoInOrder = Mockito.inOrder(accessibilityNodeInfo);
assertNull(mMediator.getAccessibilityDelegateForTesting());
mMediator.setupAccessibilityDelegate(mTabGridAccessibilityHelper);
View.AccessibilityDelegate delegate = mMediator.getAccessibilityDelegateForTesting();
assertNotNull(delegate);
delegate.onInitializeAccessibilityNodeInfo(mItemView1, accessibilityNodeInfo);
accessibilityNodeInfoInOrder.verify(accessibilityNodeInfo).addAction(eq(action1));
accessibilityNodeInfoInOrder.verify(accessibilityNodeInfo).addAction(eq(action2));
accessibilityNodeInfoInOrder.verify(accessibilityNodeInfo).addAction(eq(action3));
}
@Test
@Features.EnableFeatures({TAB_GROUPS_CONTINUATION_ANDROID})
public void testPerformAccessibilityAction() {
setUpForTabGroupOperation(TabListMediatorType.TAB_SWITCHER, TabListMode.GRID);
assertThat(mModel.get(0).model.get(TabProperties.TAB_ID), equalTo(TAB1_ID));
assertThat(mModel.get(1).model.get(TabProperties.TAB_ID), equalTo(TAB2_ID));
// Setup related mocks and initialize needed components.
Bundle args = mock(Bundle.class);
int action = R.id.move_tab_left;
// Mock that the action indicates that tab2 will move left and thus tab2 and tab1 should
// switch positions.
doReturn(new Pair<>(1, 0))
.when(mTabGridAccessibilityHelper)
.getPositionsOfReorderAction(mItemView1, action);
doReturn(true).when(mTabGridAccessibilityHelper).isReorderAction(action);
assertNull(mMediator.getAccessibilityDelegateForTesting());
mMediator.setupAccessibilityDelegate(mTabGridAccessibilityHelper);
View.AccessibilityDelegate delegate = mMediator.getAccessibilityDelegateForTesting();
assertNotNull(delegate);
delegate.performAccessibilityAction(mItemView1, action, args);
assertThat(mModel.get(1).model.get(TabProperties.TAB_ID), equalTo(TAB1_ID));
assertThat(mModel.get(0).model.get(TabProperties.TAB_ID), equalTo(TAB2_ID));
}
@Test
@Features.EnableFeatures({TAB_GROUPS_CONTINUATION_ANDROID})
public void testPerformAccessibilityAction_defaultAccessibilityAction() {
setUpForTabGroupOperation(TabListMediatorType.TAB_SWITCHER, TabListMode.GRID);
assertThat(mModel.get(0).model.get(TabProperties.TAB_ID), equalTo(TAB1_ID));
assertThat(mModel.get(1).model.get(TabProperties.TAB_ID), equalTo(TAB2_ID));
// Setup related mocks and initialize needed components.
Bundle args = mock(Bundle.class);
int action = ACTION_CLICK;
// Mock that the action indicates that tab2 will move to position 2 which is invalid.
doReturn(false).when(mTabGridAccessibilityHelper).isReorderAction(action);
assertNull(mMediator.getAccessibilityDelegateForTesting());
mMediator.setupAccessibilityDelegate(mTabGridAccessibilityHelper);
View.AccessibilityDelegate delegate = mMediator.getAccessibilityDelegateForTesting();
assertNotNull(delegate);
delegate.performAccessibilityAction(mItemView1, action, args);
verify(mTabGridAccessibilityHelper, never())
.getPositionsOfReorderAction(mItemView1, action);
}
@Test
@Features.EnableFeatures({TAB_GROUPS_CONTINUATION_ANDROID})
public void testPerformAccessibilityAction_InvalidIndex() {
setUpForTabGroupOperation(TabListMediatorType.TAB_SWITCHER, TabListMode.GRID);
assertThat(mModel.get(0).model.get(TabProperties.TAB_ID), equalTo(TAB1_ID));
assertThat(mModel.get(1).model.get(TabProperties.TAB_ID), equalTo(TAB2_ID));
// Setup related mocks and initialize needed components.
Bundle args = mock(Bundle.class);
int action = R.id.move_tab_left;
// Mock that the action indicates that tab2 will move to position 2 which is invalid.
doReturn(new Pair<>(1, 2))
.when(mTabGridAccessibilityHelper)
.getPositionsOfReorderAction(mItemView1, action);
assertNull(mMediator.getAccessibilityDelegateForTesting());
mMediator.setupAccessibilityDelegate(mTabGridAccessibilityHelper);
View.AccessibilityDelegate delegate = mMediator.getAccessibilityDelegateForTesting();
assertNotNull(delegate);
delegate.performAccessibilityAction(mItemView1, action, args);
assertThat(mModel.get(0).model.get(TabProperties.TAB_ID), equalTo(TAB1_ID));
assertThat(mModel.get(1).model.get(TabProperties.TAB_ID), equalTo(TAB2_ID));
}
@Test
public void testTabObserverRemovedFromClosedTab() {
initAndAssertAllProperties();
mMediator.setActionOnAllRelatedTabsForTesting(true);
assertThat(mModel.size(), equalTo(2));
mTabModelObserverCaptor.getValue().willCloseTab(mTab2, false, true);
verify(mTab2).removeObserver(mTabObserverCaptor.getValue());
assertThat(mModel.size(), equalTo(1));
assertThat(mModel.get(0).model.get(TabProperties.TAB_ID), equalTo(TAB1_ID));
}
@Test
public void testTabObserverReattachToUndoClosedTab() {
initAndAssertAllProperties();
mMediator.setActionOnAllRelatedTabsForTesting(true);
assertThat(mModel.size(), equalTo(2));
mTabModelObserverCaptor.getValue().willCloseTab(mTab2, false, true);
assertThat(mModel.size(), equalTo(1));
// Assume that TabModelFilter is already updated to reflect closed tab is undone.
doReturn(2).when(mTabModelFilter).getCount();
doReturn(mTab1).when(mTabModelFilter).getTabAt(POSITION1);
doReturn(mTab2).when(mTabModelFilter).getTabAt(POSITION2);
when(mTabModelFilter.getRelatedTabList(TAB1_ID)).thenReturn(Arrays.asList(mTab1));
when(mTabModelFilter.getRelatedTabList(TAB2_ID)).thenReturn(Arrays.asList(mTab2));
mTabModelObserverCaptor.getValue().tabClosureUndone(mTab2);
assertThat(mModel.size(), equalTo(2));
// First time is when mTab2 initially added to mModel; second time is when mTab2 added back
// to mModel because of undo action.
verify(mTab2, times(2)).addObserver(mTabObserverCaptor.getValue());
}
@Test
public void testUnchangeCheckIgnoreNonTabs() {
initAndAssertAllProperties();
List<Tab> tabs = new ArrayList<>();
for (int i = 0; i < mTabModel.getCount(); i++) {
tabs.add(mTabModel.getTabAt(i));
}
boolean showQuickly = mMediator.resetWithListOfTabs(
PseudoTab.getListOfPseudoTab(tabs), /*quickMode =*/false, /*mruMode =*/false);
assertThat(showQuickly, equalTo(true));
// Create a PropertyModel that is not a tab and add it to the existing TabListModel.
PropertyModel propertyModel = mock(PropertyModel.class);
when(propertyModel.get(CARD_TYPE)).thenReturn(OTHERS);
mMediator.addSpecialItemToModel(mModel.size(), TabProperties.UiType.MESSAGE, propertyModel);
assertThat(mModel.size(), equalTo(tabs.size() + 1));
// TabListModel unchange check should ignore the non-Tab item.
showQuickly = mMediator.resetWithListOfTabs(
PseudoTab.getListOfPseudoTab(tabs), /*quickMode =*/false, /*mruMode =*/false);
assertThat(showQuickly, equalTo(true));
}
// TODO(crbug.com/1177036): the assertThat in fetch callback is never reached.
@Test
public void testPriceTrackingProperty() {
setPriceTrackingEnabledForTesting(true);
for (boolean signedInAndSyncEnabled : new boolean[] {false, true}) {
for (boolean priceTrackingEnabled : new boolean[] {false, true}) {
for (boolean incognito : new boolean[] {false, true}) {
TabListMediator mMediatorSpy = spy(mMediator);
doReturn(true).when(mMediatorSpy).isUngroupedTab(anyInt());
PriceTrackingFeatures.setIsSignedInAndSyncEnabledForTesting(
signedInAndSyncEnabled);
PriceTrackingUtilities.SHARED_PREFERENCES_MANAGER.writeBoolean(
PriceTrackingUtilities.TRACK_PRICES_ON_TABS, priceTrackingEnabled);
Profile.setLastUsedProfileForTesting(mProfile);
Map<GURL, Any> responses = new HashMap<>();
responses.put(TAB1_URL, ANY_BUYABLE_PRODUCT_INITIAL);
responses.put(TAB2_URL, ANY_EMPTY);
mockOptimizationGuideResponse(OptimizationGuideDecision.TRUE, responses);
PersistedTabDataConfiguration.setUseTestConfig(true);
initAndAssertAllProperties(mMediatorSpy);
List<Tab> tabs = new ArrayList<>();
doReturn(incognito).when(mTab1).isIncognito();
doReturn(incognito).when(mTab2).isIncognito();
for (int i = 0; i < 2; i++) {
CriticalPersistedTabData criticalPersistedTabData =
mock(CriticalPersistedTabData.class);
doReturn(System.currentTimeMillis())
.when(criticalPersistedTabData)
.getTimestampMillis();
mTabModel.getTabAt(i).getUserDataHost().setUserData(
CriticalPersistedTabData.class, criticalPersistedTabData);
}
tabs.add(mTabModel.getTabAt(0));
tabs.add(mTabModel.getTabAt(1));
mMediatorSpy.resetWithListOfTabs(PseudoTab.getListOfPseudoTab(tabs),
/*quickMode =*/false, /*mruMode =*/false);
if (signedInAndSyncEnabled && priceTrackingEnabled && !incognito) {
mModel.get(0)
.model.get(TabProperties.SHOPPING_PERSISTED_TAB_DATA_FETCHER)
.fetch((shoppingPersistedTabData) -> {
assertThat(shoppingPersistedTabData.getPriceMicros(),
equalTo(123456789012345L));
});
mModel.get(1)
.model.get(TabProperties.SHOPPING_PERSISTED_TAB_DATA_FETCHER)
.fetch((shoppingPersistedTabData) -> {
assertThat(shoppingPersistedTabData.getPriceMicros(),
equalTo(ShoppingPersistedTabData.NO_PRICE_KNOWN));
});
} else {
assertNull(mModel.get(0).model.get(
TabProperties.SHOPPING_PERSISTED_TAB_DATA_FETCHER));
assertNull(mModel.get(1).model.get(
TabProperties.SHOPPING_PERSISTED_TAB_DATA_FETCHER));
}
}
}
}
// Set incognito status back to how it was
doReturn(true).when(mTab1).isIncognito();
doReturn(true).when(mTab2).isIncognito();
}
@Test
public void testGetPriceWelcomeMessageInsertionIndex() {
initWithThreeTabs();
doReturn(TabListCoordinator.GRID_LAYOUT_SPAN_COUNT_COMPACT)
.when(mGridLayoutManager)
.getSpanCount();
assertThat(mMediator.getPriceWelcomeMessageInsertionIndex(), equalTo(2));
doReturn(TabListCoordinator.GRID_LAYOUT_SPAN_COUNT_MEDIUM)
.when(mGridLayoutManager)
.getSpanCount();
assertThat(mMediator.getPriceWelcomeMessageInsertionIndex(), equalTo(3));
}
@Test
public void testUpdateLayout_PriceMessage() {
initAndAssertAllProperties();
addSpecialItem(1, TabProperties.UiType.LARGE_MESSAGE, PRICE_MESSAGE);
assertThat(mModel.lastIndexForMessageItemFromType(PRICE_MESSAGE), equalTo(1));
doAnswer(invocation -> {
int position = invocation.getArgument(0);
int itemType = mModel.get(position).type;
if (itemType == TabProperties.UiType.LARGE_MESSAGE) {
return mGridLayoutManager.getSpanCount();
}
return 1;
})
.when(mSpanSizeLookup)
.getSpanSize(anyInt());
mMediator.updateLayout();
assertThat(mModel.lastIndexForMessageItemFromType(PRICE_MESSAGE), equalTo(1));
setPriceTrackingEnabledForTesting(true);
PriceTrackingFeatures.setIsSignedInAndSyncEnabledForTesting(true);
PriceTrackingUtilities.SHARED_PREFERENCES_MANAGER.writeBoolean(
PriceTrackingUtilities.PRICE_WELCOME_MESSAGE_CARD, true);
mMediator.updateLayout();
assertThat(mModel.lastIndexForMessageItemFromType(PRICE_MESSAGE), equalTo(2));
}
@Test
public void testUpdateLayout_Divider() {
initAndAssertAllProperties();
addSpecialItem(1, TabProperties.UiType.DIVIDER, 0);
assertThat(mModel.get(1).type, equalTo(TabProperties.UiType.DIVIDER));
doAnswer(invocation -> {
int position = invocation.getArgument(0);
int itemType = mModel.get(position).type;
if (itemType == TabProperties.UiType.DIVIDER) {
return mGridLayoutManager.getSpanCount();
}
return 1;
})
.when(mSpanSizeLookup)
.getSpanSize(anyInt());
PriceTrackingUtilities.SHARED_PREFERENCES_MANAGER.writeBoolean(
PriceTrackingUtilities.PRICE_WELCOME_MESSAGE_CARD, true);
mMediator.updateLayout();
assertThat(mModel.get(1).type, equalTo(TabProperties.UiType.DIVIDER));
}
@Test
public void testIndexOfNthTabCard() {
initAndAssertAllProperties();
addSpecialItem(1, TabProperties.UiType.LARGE_MESSAGE, PRICE_MESSAGE);
assertThat(mModel.lastIndexForMessageItemFromType(PRICE_MESSAGE), equalTo(1));
assertThat(mModel.indexOfNthTabCard(-1), equalTo(TabModel.INVALID_TAB_INDEX));
assertThat(mModel.indexOfNthTabCard(0), equalTo(0));
assertThat(mModel.indexOfNthTabCard(1), equalTo(2));
assertThat(mModel.indexOfNthTabCard(2), equalTo(3));
}
@Test
public void testGetTabCardCountsBefore() {
initAndAssertAllProperties();
addSpecialItem(1, TabProperties.UiType.LARGE_MESSAGE, PRICE_MESSAGE);
assertThat(mModel.lastIndexForMessageItemFromType(PRICE_MESSAGE), equalTo(1));
assertThat(mModel.getTabCardCountsBefore(-1), equalTo(TabModel.INVALID_TAB_INDEX));
assertThat(mModel.getTabCardCountsBefore(0), equalTo(0));
assertThat(mModel.getTabCardCountsBefore(1), equalTo(1));
assertThat(mModel.getTabCardCountsBefore(2), equalTo(1));
assertThat(mModel.getTabCardCountsBefore(3), equalTo(2));
}
@Test
public void testGetTabIndexBefore() {
initAndAssertAllProperties();
addSpecialItem(1, TabProperties.UiType.LARGE_MESSAGE, PRICE_MESSAGE);
assertThat(mModel.lastIndexForMessageItemFromType(PRICE_MESSAGE), equalTo(1));
assertThat(mModel.getTabIndexBefore(2), equalTo(0));
assertThat(mModel.getTabIndexBefore(0), equalTo(TabModel.INVALID_TAB_INDEX));
}
@Test
public void testGetTabIndexAfter() {
initAndAssertAllProperties();
addSpecialItem(1, TabProperties.UiType.LARGE_MESSAGE, PRICE_MESSAGE);
assertThat(mModel.lastIndexForMessageItemFromType(PRICE_MESSAGE), equalTo(1));
assertThat(mModel.getTabIndexAfter(0), equalTo(2));
assertThat(mModel.getTabIndexAfter(2), equalTo(TabModel.INVALID_TAB_INDEX));
}
@Test
public void testListObserver_OnItemRangeInserted() {
setPriceTrackingEnabledForTesting(true);
mMediator = new TabListMediator(mActivity, mModel, TabListMode.GRID, mTabModelSelector,
getTabThumbnailCallback(), mTitleProvider, mTabListFaviconProvider, true, null,
null, null, null, getClass().getSimpleName(), TabProperties.UiType.CLOSABLE, null);
mMediator.registerOrientationListener(mGridLayoutManager);
mMediator.initWithNative();
initAndAssertAllProperties();
PropertyModel model = mock(PropertyModel.class);
when(model.get(CARD_TYPE)).thenReturn(MESSAGE);
when(model.get(MESSAGE_TYPE)).thenReturn(PRICE_MESSAGE);
mMediator.addSpecialItemToModel(1, TabProperties.UiType.LARGE_MESSAGE, model);
assertThat(mModel.lastIndexForMessageItemFromType(PRICE_MESSAGE), equalTo(2));
}
@Test
public void testListObserver_OnItemRangeRemoved() {
setPriceTrackingEnabledForTesting(true);
mMediator = new TabListMediator(mActivity, mModel, TabListMode.GRID, mTabModelSelector,
getTabThumbnailCallback(), mTitleProvider, mTabListFaviconProvider, true, null,
null, null, null, getClass().getSimpleName(), TabProperties.UiType.CLOSABLE, null);
mMediator.registerOrientationListener(mGridLayoutManager);
mMediator.initWithNative();
initWithThreeTabs();
PropertyModel model = mock(PropertyModel.class);
when(model.get(CARD_TYPE)).thenReturn(MESSAGE);
when(model.get(MESSAGE_TYPE)).thenReturn(PRICE_MESSAGE);
mMediator.addSpecialItemToModel(2, TabProperties.UiType.LARGE_MESSAGE, model);
assertThat(mModel.lastIndexForMessageItemFromType(PRICE_MESSAGE), equalTo(2));
mModel.removeAt(0);
assertThat(mModel.lastIndexForMessageItemFromType(PRICE_MESSAGE), equalTo(2));
}
@Test
public void testMaybeShowPriceWelcomeMessage() {
prepareTestMaybeShowPriceWelcomeMessage();
ShoppingPersistedTabDataFetcher fetcher =
new ShoppingPersistedTabDataFetcher(mTab1, mPriceWelcomeMessageController);
fetcher.maybeShowPriceWelcomeMessage(mShoppingPersistedTabData);
verify(mPriceWelcomeMessageController, times(1)).showPriceWelcomeMessage(mPriceTabData);
}
@Test
public void testMaybeShowPriceWelcomeMessage_MessageDisabled() {
prepareTestMaybeShowPriceWelcomeMessage();
ShoppingPersistedTabDataFetcher fetcher =
new ShoppingPersistedTabDataFetcher(mTab1, mPriceWelcomeMessageController);
PriceTrackingUtilities.SHARED_PREFERENCES_MANAGER.writeBoolean(
PriceTrackingUtilities.PRICE_WELCOME_MESSAGE_CARD, false);
assertThat(PriceTrackingUtilities.isPriceWelcomeMessageCardEnabled(), equalTo(false));
fetcher.maybeShowPriceWelcomeMessage(mShoppingPersistedTabData);
verify(mPriceWelcomeMessageController, times(0)).showPriceWelcomeMessage(mPriceTabData);
}
@Test
public void testMaybeShowPriceWelcomeMessage_NullParameter() {
prepareTestMaybeShowPriceWelcomeMessage();
new ShoppingPersistedTabDataFetcher(mTab1, null)
.maybeShowPriceWelcomeMessage(mShoppingPersistedTabData);
verify(mPriceWelcomeMessageController, times(0)).showPriceWelcomeMessage(mPriceTabData);
}
@Test
public void testMaybeShowPriceWelcomeMessage_NoPriceDrop() {
prepareTestMaybeShowPriceWelcomeMessage();
ShoppingPersistedTabDataFetcher fetcher =
new ShoppingPersistedTabDataFetcher(mTab1, mPriceWelcomeMessageController);
fetcher.maybeShowPriceWelcomeMessage(null);
verify(mPriceWelcomeMessageController, times(0)).showPriceWelcomeMessage(mPriceTabData);
doReturn(null).when(mShoppingPersistedTabData).getPriceDrop();
fetcher.maybeShowPriceWelcomeMessage(mShoppingPersistedTabData);
verify(mPriceWelcomeMessageController, times(0)).showPriceWelcomeMessage(mPriceTabData);
}
@Test
@Features.EnableFeatures({TAB_GROUPS_CONTINUATION_ANDROID})
public void testUpdateFaviconForGroup() {
setUpForTabGroupOperation(TabListMediatorType.TAB_SWITCHER, TabListMode.GRID);
mMediator.setActionOnAllRelatedTabsForTesting(true);
mModel.get(0).model.set(TabProperties.FAVICON, null);
doNothing()
.when(mTabListFaviconProvider)
.getComposedFaviconImageAsync(any(), anyBoolean(), mCallbackCaptor.capture());
// Test a group of three.
TabImpl tab3 = prepareTab(TAB3_ID, TAB3_TITLE, TAB3_URL);
List<Tab> tabs = new ArrayList<>(Arrays.asList(mTab1, mTab2, tab3));
createTabGroup(tabs, TAB1_ID);
mTabObserverCaptor.getValue().onFaviconUpdated(mTab1, mFaviconBitmap, mFaviconUrl);
List<GURL> urls = new ArrayList<>(Arrays.asList(TAB1_URL, TAB2_URL, TAB3_URL));
verify(mTabListFaviconProvider).getComposedFaviconImageAsync(eq(urls), anyBoolean(), any());
mCallbackCaptor.getValue().onResult(mFavicon);
assertThat(mModel.get(0).model.get(TabProperties.FAVICON), equalTo(mFavicon));
// Test a group of five.
mModel.get(1).model.set(TabProperties.FAVICON, null);
TabImpl tab4 = prepareTab(0, "tab 4", TAB2_URL);
TabImpl tab5 = prepareTab(1, "tab 5", JUnitTestGURLs.getGURL(JUnitTestGURLs.EXAMPLE_URL));
tabs.addAll(Arrays.asList(tab4, tab5));
createTabGroup(tabs, TAB2_ID);
mTabObserverCaptor.getValue().onFaviconUpdated(mTab2, mFaviconBitmap, mFaviconUrl);
urls = new ArrayList<>(Arrays.asList(TAB2_URL, TAB1_URL, TAB3_URL, TAB2_URL));
verify(mTabListFaviconProvider).getComposedFaviconImageAsync(eq(urls), anyBoolean(), any());
mCallbackCaptor.getValue().onResult(mFavicon);
assertThat(mModel.get(1).model.get(TabProperties.FAVICON), equalTo(mFavicon));
}
@Test
@Features.EnableFeatures({TAB_GROUPS_CONTINUATION_ANDROID})
public void testUpdateFaviconFetcherForGroup() {
TabUiFeatureUtilities.ENABLE_DEFERRED_FAVICON.setForTesting(true);
setUpForTabGroupOperation(TabListMediatorType.TAB_SWITCHER, TabListMode.GRID);
mMediator.setActionOnAllRelatedTabsForTesting(true);
mModel.get(0).model.set(TabProperties.FAVICON, null);
doNothing()
.when(mTabListFaviconProvider)
.getComposedFaviconImageAsync(any(), anyBoolean(), mCallbackCaptor.capture());
// Test a group of three.
TabImpl tab3 = prepareTab(TAB3_ID, TAB3_TITLE, TAB3_URL);
List<Tab> tabs = new ArrayList<>(Arrays.asList(mTab1, mTab2, tab3));
createTabGroup(tabs, TAB1_ID);
mTabObserverCaptor.getValue().onFaviconUpdated(mTab1, mFaviconBitmap, mFaviconUrl);
List<GURL> urls = new ArrayList<>(Arrays.asList(TAB1_URL, TAB2_URL, TAB3_URL));
verify(mTabListFaviconProvider).getComposedFaviconImageFetcher(eq(urls), anyBoolean());
// Test a group of five.
mModel.get(1).model.set(TabProperties.FAVICON, null);
TabImpl tab4 = prepareTab(0, "tab 4", TAB2_URL);
TabImpl tab5 = prepareTab(1, "tab 5", JUnitTestGURLs.getGURL(JUnitTestGURLs.EXAMPLE_URL));
tabs.addAll(Arrays.asList(tab4, tab5));
createTabGroup(tabs, TAB2_ID);
mTabObserverCaptor.getValue().onFaviconUpdated(mTab2, mFaviconBitmap, mFaviconUrl);
urls = new ArrayList<>(Arrays.asList(TAB2_URL, TAB1_URL, TAB3_URL, TAB2_URL));
verify(mTabListFaviconProvider).getComposedFaviconImageFetcher(eq(urls), anyBoolean());
}
@Test
@Features.EnableFeatures({TAB_GROUPS_CONTINUATION_ANDROID})
public void testUpdateFaviconForGroup_StaleIndex_SelectAnotherTabWithinGroup() {
setUpForTabGroupOperation(TabListMediatorType.TAB_SWITCHER, TabListMode.GRID);
mMediator.setActionOnAllRelatedTabsForTesting(true);
mModel.get(0).model.set(TabProperties.FAVICON, null);
mModel.get(1).model.set(TabProperties.FAVICON, null);
doNothing()
.when(mTabListFaviconProvider)
.getComposedFaviconImageAsync(any(), anyBoolean(), mCallbackCaptor.capture());
TabImpl tab3 = prepareTab(TAB3_ID, TAB3_TITLE, TAB3_URL);
List<Tab> group1 = new ArrayList<>(Arrays.asList(mTab2, tab3));
createTabGroup(group1, TAB2_ID);
assertEquals(1, mModel.indexFromId(TAB2_ID));
mTabObserverCaptor.getValue().onFaviconUpdated(mTab2, mFaviconBitmap, mFaviconUrl);
// Simulate selecting another Tab within TabGroup before callback in
// getComposedFaviconImageAsync triggers
mModel.get(1).model.set(TabProperties.TAB_ID, TAB3_ID);
mCallbackCaptor.getValue().onResult(mFavicon);
assertNotEquals(1, mModel.indexFromId(TAB2_ID));
assertNull(mModel.get(1).model.get(TabProperties.FAVICON));
}
@Test
@Features.EnableFeatures({TAB_GROUPS_CONTINUATION_ANDROID})
public void testUpdateFaviconForGroup_StaleIndex_CloseTab() {
setUpForTabGroupOperation(TabListMediatorType.TAB_SWITCHER, TabListMode.GRID);
mMediator.setActionOnAllRelatedTabsForTesting(true);
mModel.get(0).model.set(TabProperties.FAVICON, null);
mModel.get(1).model.set(TabProperties.FAVICON, null);
doNothing()
.when(mTabListFaviconProvider)
.getComposedFaviconImageAsync(any(), anyBoolean(), mCallbackCaptor.capture());
TabImpl tab3 = prepareTab(TAB3_ID, TAB3_TITLE, TAB3_URL);
List<Tab> group1 = new ArrayList<>(Arrays.asList(mTab2, tab3));
createTabGroup(group1, TAB2_ID);
assertEquals(1, mModel.indexFromId(TAB2_ID));
mTabObserverCaptor.getValue().onFaviconUpdated(mTab2, mFaviconBitmap, mFaviconUrl);
// Simulate closing mTab1 at index 0 before callback in getComposedFaviconImageAsync
// triggers.
mModel.removeAt(0);
mCallbackCaptor.getValue().onResult(mFavicon);
assertEquals(0, mModel.indexFromId(TAB2_ID));
assertEquals(mFavicon, mModel.get(0).model.get(TabProperties.FAVICON));
}
@Test
@Features.EnableFeatures({TAB_GROUPS_CONTINUATION_ANDROID})
public void testUpdateFaviconForGroup_StaleIndex_Reset() {
setUpForTabGroupOperation(TabListMediatorType.TAB_SWITCHER, TabListMode.GRID);
mMediator.setActionOnAllRelatedTabsForTesting(true);
mModel.get(0).model.set(TabProperties.FAVICON, null);
mModel.get(1).model.set(TabProperties.FAVICON, null);
doNothing()
.when(mTabListFaviconProvider)
.getComposedFaviconImageAsync(any(), anyBoolean(), mCallbackCaptor.capture());
TabImpl tab3 = prepareTab(TAB3_ID, TAB3_TITLE, TAB3_URL);
List<Tab> group1 = new ArrayList<>(Arrays.asList(mTab2, tab3));
createTabGroup(group1, TAB2_ID);
assertEquals(1, mModel.indexFromId(TAB2_ID));
mTabObserverCaptor.getValue().onFaviconUpdated(mTab2, mFaviconBitmap, mFaviconUrl);
// Simulate TabListMediator reset with null before callback in getComposedFaviconImageAsync
// triggers.
mModel.set(new ArrayList<>());
mCallbackCaptor.getValue().onResult(mFavicon);
}
@Test(expected = AssertionError.class)
public void testGetDomainOnDestroyedTab() {
Tab tab = new MockTab(TAB1_ID, false);
tab.destroy();
TabListMediator.getDomain(tab);
}
@Test
@Features.EnableFeatures({TAB_GROUPS_CONTINUATION_ANDROID})
public void testTabDescriptionStringSetup() {
setUpForTabGroupOperation(TabListMediatorType.TAB_SWITCHER, TabListMode.GRID);
// Setup the string template.
setUpTabGroupCardDescriptionString();
String targetString = "Expand tab group with 2 tabs.";
// Setup a tab group with {tab2, tab3}.
List<Tab> tabs = new ArrayList<>();
for (int i = 0; i < mTabModel.getCount(); i++) {
tabs.add(mTabModel.getTabAt(i));
}
TabImpl tab3 = prepareTab(TAB3_ID, TAB3_TITLE, TAB3_URL);
List<Tab> group1 = new ArrayList<>(Arrays.asList(mTab2, tab3));
createTabGroup(group1, TAB2_ID);
// Reset with show quickly.
assertThat(mMediator.resetWithListOfTabs(PseudoTab.getListOfPseudoTab(tabs), false, false),
equalTo(true));
assertThat(mModel.get(POSITION2).model.get(TabProperties.CONTENT_DESCRIPTION_STRING),
equalTo(targetString));
// Reset without show quickly.
mModel.clear();
assertThat(mMediator.resetWithListOfTabs(PseudoTab.getListOfPseudoTab(tabs), false, false),
equalTo(false));
assertThat(mModel.get(POSITION2).model.get(TabProperties.CONTENT_DESCRIPTION_STRING),
equalTo(targetString));
// Set group name.
targetString = String.format("Expand %s tab group with 2 tabs.", CUSTOMIZED_DIALOG_TITLE1);
mMediator.getTabGroupTitleEditor().storeTabGroupTitle(TAB2_ID, CUSTOMIZED_DIALOG_TITLE1);
mMediator.getTabGroupTitleEditor().updateTabGroupTitle(mTab2, CUSTOMIZED_DIALOG_TITLE1);
assertThat(mModel.get(POSITION2).model.get(TabProperties.CONTENT_DESCRIPTION_STRING),
equalTo(targetString));
}
@Test
@Features.EnableFeatures({TAB_GROUPS_CONTINUATION_ANDROID})
public void testCloseButtonDescriptionStringSetup_TabSwitcher() {
TabUiFeatureUtilities.ENABLE_LAUNCH_POLISH.setForTesting(true);
setUpForTabGroupOperation(TabListMediatorType.TAB_SWITCHER, TabListMode.GRID);
setUpCloseButtonDescriptionString(false);
String targetString = "Close Tab1 tab";
List<Tab> tabs = new ArrayList<>();
for (int i = 0; i < mTabModel.getCount(); i++) {
tabs.add(mTabModel.getTabAt(i));
}
mMediator.resetWithListOfTabs(PseudoTab.getListOfPseudoTab(tabs), false, false);
assertThat(mModel.get(POSITION1).model.get(TabProperties.CLOSE_BUTTON_DESCRIPTION_STRING),
equalTo(targetString));
// Create tab group.
TabImpl tab3 = prepareTab(TAB3_ID, TAB3_TITLE, TAB3_URL);
List<Tab> group1 = new ArrayList<>(Arrays.asList(mTab1, tab3));
createTabGroup(group1, TAB1_ID);
setUpCloseButtonDescriptionString(true);
targetString = "Close tab group with 2 tabs";
mMediator.resetWithListOfTabs(PseudoTab.getListOfPseudoTab(tabs), false, false);
assertThat(mModel.get(POSITION1).model.get(TabProperties.CLOSE_BUTTON_DESCRIPTION_STRING),
equalTo(targetString));
// Set group name.
targetString = String.format("Close %s group with 2 tabs", CUSTOMIZED_DIALOG_TITLE1);
mMediator.getTabGroupTitleEditor().storeTabGroupTitle(TAB1_ID, CUSTOMIZED_DIALOG_TITLE1);
mMediator.getTabGroupTitleEditor().updateTabGroupTitle(mTab1, CUSTOMIZED_DIALOG_TITLE1);
assertThat(mModel.get(POSITION1).model.get(TabProperties.CLOSE_BUTTON_DESCRIPTION_STRING),
equalTo(targetString));
TabUiFeatureUtilities.ENABLE_LAUNCH_POLISH.setForTesting(false);
}
@Test
public void testRecordPriceAnnotationsEnabledMetrics() {
UmaRecorderHolder.resetForTesting();
setPriceTrackingEnabledForTesting(true);
PriceTrackingFeatures.setIsSignedInAndSyncEnabledForTesting(true);
mMediator.setActionOnAllRelatedTabsForTesting(true);
String histogramName = "Commerce.PriceDrop.AnnotationsEnabled";
SharedPreferencesManager preferencesManager = SharedPreferencesManager.getInstance();
long presetTime = System.currentTimeMillis() - TimeUnit.DAYS.toMillis(1);
preferencesManager.writeLong(
ChromePreferenceKeys.PRICE_TRACKING_ANNOTATIONS_ENABLED_METRICS_TIMESTAMP,
presetTime);
mMediator.recordPriceAnnotationsEnabledMetrics();
assertThat(RecordHistogram.getHistogramTotalCountForTesting(histogramName), equalTo(1));
long updatedTime = preferencesManager.readLong(
ChromePreferenceKeys.PRICE_TRACKING_ANNOTATIONS_ENABLED_METRICS_TIMESTAMP,
presetTime);
assertNotEquals(presetTime, updatedTime);
// This metrics should only be recorded once within one day.
mMediator.recordPriceAnnotationsEnabledMetrics();
assertThat(RecordHistogram.getHistogramTotalCountForTesting(histogramName), equalTo(1));
assertEquals(updatedTime,
preferencesManager.readLong(
ChromePreferenceKeys.PRICE_TRACKING_ANNOTATIONS_ENABLED_METRICS_TIMESTAMP,
-1));
}
@Test
public void testPriceDropSeen() throws TimeoutException {
setPriceTrackingEnabledForTesting(true);
PriceTrackingFeatures.setIsSignedInAndSyncEnabledForTesting(true);
PriceTrackingUtilities.SHARED_PREFERENCES_MANAGER.writeBoolean(
PriceTrackingUtilities.TRACK_PRICES_ON_TABS, true);
doReturn(false).when(mTab1).isIncognito();
doReturn(false).when(mTab2).isIncognito();
List<Tab> tabs = new ArrayList<>();
tabs.add(mTabModel.getTabAt(0));
tabs.add(mTabModel.getTabAt(1));
mMediator.resetWithListOfTabs(PseudoTab.getListOfPseudoTab(tabs),
/*quickMode =*/false, /*mruMode =*/false);
prepareRecyclerViewForScroll();
mMediator.registerOnScrolledListener(mRecyclerView);
verify(mRecyclerView).addOnScrollListener(mOnScrollListenerCaptor.capture());
mOnScrollListenerCaptor.getValue().onScrolled(
mRecyclerView, /*dx =*/mTabModel.getCount(), /*dy =*/0);
assertEquals(2, mMediator.getViewedTabIdsForTesting().size());
}
@Test
public void testSelectableUpdates_withoutRelated() {
doReturn(mTabGroupModelFilter).when(mTabModelFilterProvider).getCurrentTabModelFilter();
doReturn(mTabGroupModelFilter).when(mTabModelFilterProvider).getTabModelFilter(false);
doReturn(mTabGroupModelFilter).when(mTabModelFilterProvider).getTabModelFilter(true);
when(mSelectionDelegate.isItemSelected(TAB1_ID)).thenReturn(true);
when(mSelectionDelegate.isItemSelected(TAB2_ID)).thenReturn(false);
when(mSelectionDelegate.isItemSelected(TAB3_ID)).thenReturn(false);
when(mTabModelSelector.isTabStateInitialized()).thenReturn(true);
mMediator = new TabListMediator(mActivity, mModel, TabListMode.GRID, mTabModelSelector,
getTabThumbnailCallback(), mTitleProvider, mTabListFaviconProvider, true,
()
-> { return mSelectionDelegate; },
null, null, null, getClass().getSimpleName(), TabProperties.UiType.SELECTABLE,
null);
mMediator.registerOrientationListener(mGridLayoutManager);
mMediator.initWithNative();
initAndAssertAllProperties();
when(mSelectionDelegate.isItemSelected(TAB1_ID)).thenReturn(false);
Tab tab3 = prepareTab(TAB3_ID, TAB3_TITLE, TAB3_URL);
List<Tab> tabs = new ArrayList<>(Arrays.asList(mTab1, mTab2, tab3));
mMediator.resetWithListOfTabs(PseudoTab.getListOfPseudoTab(tabs), false, false);
assertThat(mModel.size(), equalTo(3));
assertThat(mModel.get(0).model.get(TabProperties.IS_SELECTED), equalTo(false));
assertThat(mModel.get(1).model.get(TabProperties.IS_SELECTED), equalTo(false));
assertThat(mModel.get(2).model.get(TabProperties.IS_SELECTED), equalTo(false));
when(mTabModelSelector.getTabById(TAB2_ID)).thenReturn(mTab2);
when(mTabGroupModelFilter.hasOtherRelatedTabs(mTab2)).thenReturn(false);
ThumbnailFetcher fetcher2 = mModel.get(1).model.get(TabProperties.THUMBNAIL_FETCHER);
mModel.get(1).model.get(TabProperties.SELECTABLE_TAB_CLICKED_LISTENER).run(TAB2_ID);
assertThat(mModel.get(1).model.get(TabProperties.IS_SELECTED), equalTo(true));
assertEquals(fetcher2, mModel.get(1).model.get(TabProperties.THUMBNAIL_FETCHER));
}
@Test
public void testSelectableUpdates_withRelated() {
doReturn(mTabGroupModelFilter).when(mTabModelFilterProvider).getCurrentTabModelFilter();
doReturn(mTabGroupModelFilter).when(mTabModelFilterProvider).getTabModelFilter(false);
doReturn(mTabGroupModelFilter).when(mTabModelFilterProvider).getTabModelFilter(true);
when(mSelectionDelegate.isItemSelected(TAB1_ID)).thenReturn(true);
when(mSelectionDelegate.isItemSelected(TAB2_ID)).thenReturn(false);
when(mSelectionDelegate.isItemSelected(TAB3_ID)).thenReturn(false);
when(mTabModelSelector.isTabStateInitialized()).thenReturn(true);
mMediator = new TabListMediator(mActivity, mModel, TabListMode.GRID, mTabModelSelector,
getTabThumbnailCallback(), mTitleProvider, mTabListFaviconProvider, true,
()
-> { return mSelectionDelegate; },
null, null, null, getClass().getSimpleName(), TabProperties.UiType.SELECTABLE,
null);
mMediator.registerOrientationListener(mGridLayoutManager);
mMediator.initWithNative();
initAndAssertAllProperties();
Tab tab3 = prepareTab(TAB3_ID, TAB3_TITLE, TAB3_URL);
when(mSelectionDelegate.isItemSelected(TAB1_ID)).thenReturn(false);
List<Tab> tabs = new ArrayList<>(Arrays.asList(mTab1, mTab2, tab3));
mMediator.resetWithListOfTabs(PseudoTab.getListOfPseudoTab(tabs), false, false);
assertThat(mModel.size(), equalTo(3));
assertThat(mModel.get(0).model.get(TabProperties.IS_SELECTED), equalTo(false));
assertThat(mModel.get(1).model.get(TabProperties.IS_SELECTED), equalTo(false));
assertThat(mModel.get(2).model.get(TabProperties.IS_SELECTED), equalTo(false));
when(mTabModelSelector.getTabById(TAB2_ID)).thenReturn(mTab2);
when(mTabGroupModelFilter.hasOtherRelatedTabs(mTab2)).thenReturn(true);
ThumbnailFetcher fetcher2 = mModel.get(1).model.get(TabProperties.THUMBNAIL_FETCHER);
mModel.get(1).model.get(TabProperties.SELECTABLE_TAB_CLICKED_LISTENER).run(TAB2_ID);
assertThat(mModel.get(1).model.get(TabProperties.IS_SELECTED), equalTo(true));
assertNotEquals(fetcher2, mModel.get(1).model.get(TabProperties.THUMBNAIL_FETCHER));
}
@Test
public void testSelectableUpdates_onReset() {
doReturn(mTabGroupModelFilter).when(mTabModelFilterProvider).getCurrentTabModelFilter();
doReturn(mTabGroupModelFilter).when(mTabModelFilterProvider).getTabModelFilter(false);
doReturn(mTabGroupModelFilter).when(mTabModelFilterProvider).getTabModelFilter(true);
when(mSelectionDelegate.isItemSelected(TAB1_ID)).thenReturn(true);
when(mSelectionDelegate.isItemSelected(TAB2_ID)).thenReturn(false);
when(mSelectionDelegate.isItemSelected(TAB3_ID)).thenReturn(false);
when(mTabModelSelector.isTabStateInitialized()).thenReturn(true);
mMediator = new TabListMediator(mActivity, mModel, TabListMode.GRID, mTabModelSelector,
getTabThumbnailCallback(), mTitleProvider, mTabListFaviconProvider, true,
()
-> { return mSelectionDelegate; },
null, null, null, getClass().getSimpleName(), TabProperties.UiType.SELECTABLE,
null);
mMediator.registerOrientationListener(mGridLayoutManager);
mMediator.initWithNative();
initAndAssertAllProperties();
Tab tab3 = prepareTab(TAB3_ID, TAB3_TITLE, TAB3_URL);
Tab tab4 = prepareTab(TAB3_ID, TAB3_TITLE, TAB3_URL);
when(mTabGroupModelFilter.getRelatedTabList(TAB1_ID)).thenReturn(Arrays.asList(mTab1));
when(mTabGroupModelFilter.getRelatedTabList(TAB2_ID))
.thenReturn(Arrays.asList(mTab2, tab4));
List<Tab> tabs = new ArrayList<>(Arrays.asList(mTab1, mTab2, tab3));
when(mSelectionDelegate.isItemSelected(TAB1_ID)).thenReturn(false);
mMediator.resetWithListOfTabs(PseudoTab.getListOfPseudoTab(tabs), false, false);
assertThat(mModel.size(), equalTo(3));
assertThat(mModel.get(0).model.get(TabProperties.IS_SELECTED), equalTo(false));
assertThat(mModel.get(1).model.get(TabProperties.IS_SELECTED), equalTo(false));
assertThat(mModel.get(2).model.get(TabProperties.IS_SELECTED), equalTo(false));
when(mSelectionDelegate.isItemSelected(TAB1_ID)).thenReturn(true);
when(mSelectionDelegate.isItemSelected(TAB2_ID)).thenReturn(true);
when(mSelectionDelegate.isItemSelected(TAB3_ID)).thenReturn(false);
ThumbnailFetcher fetcher1 = mModel.get(0).model.get(TabProperties.THUMBNAIL_FETCHER);
ThumbnailFetcher fetcher2 = mModel.get(1).model.get(TabProperties.THUMBNAIL_FETCHER);
ThumbnailFetcher fetcher3 = mModel.get(2).model.get(TabProperties.THUMBNAIL_FETCHER);
mMediator.resetWithListOfTabs(PseudoTab.getListOfPseudoTab(tabs), true, false);
assertThat(mModel.get(0).model.get(TabProperties.IS_SELECTED), equalTo(true));
assertThat(mModel.get(1).model.get(TabProperties.IS_SELECTED), equalTo(true));
assertThat(mModel.get(2).model.get(TabProperties.IS_SELECTED), equalTo(false));
assertEquals(fetcher1, mModel.get(0).model.get(TabProperties.THUMBNAIL_FETCHER));
assertNotEquals(fetcher2, mModel.get(1).model.get(TabProperties.THUMBNAIL_FETCHER));
assertEquals(fetcher3, mModel.get(2).model.get(TabProperties.THUMBNAIL_FETCHER));
}
private void setUpCloseButtonDescriptionString(boolean isGroup) {
if (isGroup) {
doAnswer(invocation -> {
String title = invocation.getArgument(1);
String num = invocation.getArgument(2);
return String.format("Close %s group with %s tabs", title, num);
})
.when(mActivity)
.getString(anyInt(), anyString(), anyString());
doAnswer(invocation -> {
String num = invocation.getArgument(1);
return String.format("Close tab group with %s tabs", num);
})
.when(mActivity)
.getString(anyInt(), anyString());
} else {
doAnswer(invocation -> {
String title = invocation.getArgument(1);
return String.format("Close %s tab", title);
})
.when(mActivity)
.getString(anyInt(), anyString());
}
}
private void setUpTabGroupCardDescriptionString() {
doAnswer(invocation -> {
String title = invocation.getArgument(1);
String num = invocation.getArgument(2);
return String.format("Expand %s tab group with %s tabs.", title, num);
})
.when(mActivity)
.getString(anyInt(), anyString(), anyString());
doAnswer(invocation -> {
String num = invocation.getArgument(1);
return String.format("Expand tab group with %s tabs.", num);
})
.when(mActivity)
.getString(anyInt(), anyString());
}
// initAndAssertAllProperties called with regular mMediator
private void initAndAssertAllProperties() {
initAndAssertAllProperties(mMediator);
}
// initAndAssertAllProperties called with regular mMediator
private void initAndAssertAllProperties(int extraTabCount) {
int index = mTabModel.getCount();
int totalCount = mTabModel.getCount() + extraTabCount;
while (index < totalCount) {
Tab tab = prepareTab(index, TAB1_TITLE, TAB1_URL);
doReturn(tab).when(mTabModel).getTabAt(index);
doReturn(index).when(mTabModel).indexOf(tab);
index++;
}
doReturn(totalCount).when(mTabModel).getCount();
initAndAssertAllProperties(mMediator);
}
// initAndAssertAllProperties called with custom mMediator (e.g. if spy needs to be used)
private void initAndAssertAllProperties(TabListMediator mediator) {
List<Tab> tabs = new ArrayList<>();
for (int i = 0; i < mTabModel.getCount(); i++) {
tabs.add(mTabModel.getTabAt(i));
}
mediator.resetWithListOfTabs(PseudoTab.getListOfPseudoTab(tabs), false, false);
for (Callback<TabFavicon> callback : mCallbackCaptor.getAllValues()) {
callback.onResult(mFavicon);
}
assertThat(mModel.size(), equalTo(mTabModel.getCount()));
assertThat(mModel.get(0).model.get(TabProperties.TAB_ID), equalTo(TAB1_ID));
assertThat(mModel.get(1).model.get(TabProperties.TAB_ID), equalTo(TAB2_ID));
assertThat(mModel.get(0).model.get(TabProperties.TITLE), equalTo(TAB1_TITLE));
assertThat(mModel.get(1).model.get(TabProperties.TITLE), equalTo(TAB2_TITLE));
if (TabUiFeatureUtilities.ENABLE_DEFERRED_FAVICON.getValue()) {
assertNull(mModel.get(0).model.get(TabProperties.FAVICON));
assertNull(mModel.get(1).model.get(TabProperties.FAVICON));
assertNotNull(mModel.get(0).model.get(TabProperties.FAVICON_FETCHER));
assertNotNull(mModel.get(1).model.get(TabProperties.FAVICON_FETCHER));
} else {
assertThat(
mModel.get(0).model.get(TabProperties.FAVICON), instanceOf(TabFavicon.class));
assertThat(
mModel.get(1).model.get(TabProperties.FAVICON), instanceOf(TabFavicon.class));
assertNull(mModel.get(0).model.get(TabProperties.FAVICON_FETCHER));
assertNull(mModel.get(1).model.get(TabProperties.FAVICON_FETCHER));
}
assertThat(mModel.get(0).model.get(TabProperties.IS_SELECTED), equalTo(true));
assertThat(mModel.get(1).model.get(TabProperties.IS_SELECTED), equalTo(false));
assertThat(mModel.get(0).model.get(TabProperties.THUMBNAIL_FETCHER),
instanceOf(TabListMediator.ThumbnailFetcher.class));
assertThat(mModel.get(1).model.get(TabProperties.THUMBNAIL_FETCHER),
instanceOf(TabListMediator.ThumbnailFetcher.class));
if (mModel.get(0).model.get(TabProperties.SELECTABLE_TAB_CLICKED_LISTENER) != null) return;
assertThat(mModel.get(0).model.get(TabProperties.TAB_SELECTED_LISTENER),
instanceOf(TabListMediator.TabActionListener.class));
assertThat(mModel.get(1).model.get(TabProperties.TAB_SELECTED_LISTENER),
instanceOf(TabListMediator.TabActionListener.class));
assertThat(mModel.get(0).model.get(TabProperties.TAB_CLOSED_LISTENER),
instanceOf(TabListMediator.TabActionListener.class));
assertThat(mModel.get(1).model.get(TabProperties.TAB_CLOSED_LISTENER),
instanceOf(TabListMediator.TabActionListener.class));
}
private TabImpl prepareTab(int id, String title, GURL url) {
TabImpl tab = TabUiUnitTestUtils.prepareTab(id, title, url);
when(tab.getView()).thenReturn(mock(View.class));
doReturn(true).when(tab).isIncognito();
when(mTitleProvider.getTitle(mActivity, PseudoTab.fromTab(tab))).thenReturn(title);
doReturn(tab).when(mTabModelSelector).getTabById(id);
return tab;
}
private SimpleRecyclerViewAdapter.ViewHolder prepareViewHolder(int id, int position) {
SimpleRecyclerViewAdapter.ViewHolder viewHolder =
mock(SimpleRecyclerViewAdapter.ViewHolder.class);
viewHolder.model = new PropertyModel.Builder(TabProperties.ALL_KEYS_TAB_GRID)
.with(TabProperties.TAB_ID, id)
.with(CARD_TYPE, TAB)
.build();
doReturn(position).when(viewHolder).getAdapterPosition();
return viewHolder;
}
private RecyclerView.ViewHolder prepareDummyViewHolder(View itemView, int index) {
RecyclerView.ViewHolder viewHolder = new RecyclerView.ViewHolder(itemView) {};
when(mRecyclerView.findViewHolderForAdapterPosition(index)).thenReturn(viewHolder);
return viewHolder;
}
private TabGridItemTouchHelperCallback getItemTouchHelperCallback() {
return (TabGridItemTouchHelperCallback) mMediator.getItemTouchHelperCallback(0f, 0f, 0f);
}
private void setUpForTabGroupOperation(@TabListMediatorType int type, @TabListMode int mode) {
doReturn(mTabGroupModelFilter).when(mTabModelFilterProvider).getCurrentTabModelFilter();
doReturn(mTabGroupModelFilter).when(mTabModelFilterProvider).getTabModelFilter(true);
doReturn(mTabGroupModelFilter).when(mTabModelFilterProvider).getTabModelFilter(false);
doNothing()
.when(mTabGroupModelFilter)
.addTabGroupObserver(mTabGroupModelFilterObserverCaptor.capture());
doNothing()
.when(mTabModelFilterProvider)
.addTabModelFilterObserver(mTabModelObserverCaptor.capture());
TabListMediator.TabGridDialogHandler handler =
type == TabListMediatorType.TAB_GRID_DIALOG ? mTabGridDialogHandler : null;
boolean actionOnRelatedTabs = type == TabListMediatorType.TAB_SWITCHER;
int uiType = 0;
if (type == TabListMediatorType.TAB_SWITCHER
|| type == TabListMediatorType.TAB_GRID_DIALOG) {
uiType = TabProperties.UiType.CLOSABLE;
} else if (type == TabListMediatorType.TAB_STRIP) {
uiType = TabProperties.UiType.STRIP;
}
// TODO(crbug.com/1058196): avoid re-instanciate TabListMediator by using annotation.
ChromeFeatureList.sTabGroupsAndroid.setForTesting(true);
mMediator = new TabListMediator(mActivity, mModel, mode, mTabModelSelector,
getTabThumbnailCallback(), mTitleProvider, mTabListFaviconProvider,
actionOnRelatedTabs, null, null, handler, null, getClass().getSimpleName(), uiType,
null);
mMediator.registerOrientationListener(mGridLayoutManager);
// TabGroupModelFilterObserver is registered when native is ready.
assertThat(mTabGroupModelFilterObserverCaptor.getAllValues().isEmpty(), equalTo(true));
mMediator.initWithNative();
assertThat(mTabGroupModelFilterObserverCaptor.getAllValues().isEmpty(), equalTo(false));
// There are two TabModelObserver and two TabGroupModelFilter.Observer added when
// initializing TabListMediator, one set from TabListMediator and the other from
// TabGroupTitleEditor. Here we only test the ones from TabListMediator.
mMediatorTabModelObserver = mTabModelObserverCaptor.getAllValues().get(1);
mMediatorTabGroupModelFilterObserver =
mTabGroupModelFilterObserverCaptor.getAllValues().get(0);
initAndAssertAllProperties();
}
private void createTabGroup(List<Tab> tabs, int rootId) {
for (Tab tab : tabs) {
when(mTabGroupModelFilter.getRelatedTabList(tab.getId())).thenReturn(tabs);
CriticalPersistedTabData criticalPersistedTabData = CriticalPersistedTabData.from(tab);
doReturn(rootId).when(criticalPersistedTabData).getRootId();
}
}
private void mockEndpointResponse(Map<String, String> responses) {
for (Map.Entry<String, String> entry : responses.entrySet()) {
doAnswer(new Answer<Void>() {
@Override
public Void answer(InvocationOnMock invocation) {
Callback callback = (Callback) invocation.getArguments()[8];
callback.onResult(new EndpointResponse(entry.getValue()));
return null;
}
})
.when(mEndpointFetcherJniMock)
.nativeFetchOAuth(any(Profile.class), anyString(), contains(entry.getKey()),
anyString(), anyString(), any(String[].class), anyString(), anyLong(),
anyInt(), any(Callback.class));
}
}
private void mockOptimizationGuideResponse(
@OptimizationGuideDecision int decision, Map<GURL, Any> responses) {
for (Map.Entry<GURL, Any> responseEntry : responses.entrySet()) {
doAnswer(new Answer<Void>() {
@Override
public Void answer(InvocationOnMock invocation) {
OptimizationGuideCallback callback =
(OptimizationGuideCallback) invocation.getArguments()[3];
callback.onOptimizationGuideDecision(decision, responseEntry.getValue());
return null;
}
})
.when(mOptimizationGuideBridgeJniMock)
.canApplyOptimization(anyLong(), eq(responseEntry.getKey()), anyInt(),
any(OptimizationGuideCallback.class));
}
}
private void initWithThreeTabs() {
Tab tab3 = prepareTab(TAB3_ID, TAB3_TITLE, TAB3_URL);
List<Tab> tabs = new ArrayList<>(Arrays.asList(mTab1, mTab2, tab3));
mMediator.resetWithListOfTabs(PseudoTab.getListOfPseudoTab(tabs), false, false);
assertThat(mModel.size(), equalTo(3));
assertThat(mModel.get(0).model.get(TabProperties.IS_SELECTED), equalTo(true));
assertThat(mModel.get(1).model.get(TabProperties.IS_SELECTED), equalTo(false));
assertThat(mModel.get(2).model.get(TabProperties.IS_SELECTED), equalTo(false));
}
private void addSpecialItem(int index, @UiType int uiType, int itemIdentifier) {
PropertyModel model = mock(PropertyModel.class);
when(model.get(CARD_TYPE)).thenReturn(MESSAGE);
if (uiType == TabProperties.UiType.MESSAGE
|| uiType == TabProperties.UiType.LARGE_MESSAGE) {
when(model.get(MESSAGE_TYPE)).thenReturn(itemIdentifier);
}
// Avoid auto-updating the layout when inserting the special card.
doReturn(1).when(mSpanSizeLookup).getSpanSize(anyInt());
mMediator.addSpecialItemToModel(index, uiType, model);
}
private void prepareTestMaybeShowPriceWelcomeMessage() {
initAndAssertAllProperties();
setPriceTrackingEnabledForTesting(true);
PriceTrackingFeatures.setIsSignedInAndSyncEnabledForTesting(true);
PriceTrackingUtilities.SHARED_PREFERENCES_MANAGER.writeBoolean(
PriceTrackingUtilities.PRICE_WELCOME_MESSAGE_CARD, true);
mPriceDrop = new PriceDrop("1", "2");
mPriceTabData = new PriceTabData(TAB1_ID, mPriceDrop);
doReturn(mPriceDrop).when(mShoppingPersistedTabData).getPriceDrop();
}
private void prepareRecyclerViewForScroll() {
View seenView = mock(View.class);
for (int i = 0; i < mTabModel.getCount(); i++) {
when(mRecyclerView.getChildAt(i)).thenReturn(seenView);
}
doReturn(true).when(mGridLayoutManager).isViewPartiallyVisible(seenView, false, true);
doReturn(mTabModel.getCount()).when(mRecyclerView).getChildCount();
}
private TabListMediator.ThumbnailProvider getTabThumbnailCallback() {
return (tabId, thumbnailSize, callback, forceUpdate, writeToCache, isSelected) -> {
mTabContentManager.getTabThumbnailWithCallback(
tabId, thumbnailSize, callback, forceUpdate, writeToCache);
};
}
private static void setPriceTrackingEnabledForTesting(boolean value) {
FeatureList.TestValues testValues = new FeatureList.TestValues();
testValues.addFeatureFlagOverride(ChromeFeatureList.COMMERCE_PRICE_TRACKING, true);
testValues.addFieldTrialParamOverride(ChromeFeatureList.COMMERCE_PRICE_TRACKING,
PriceTrackingFeatures.PRICE_TRACKING_PARAM, String.valueOf(value));
testValues.addFieldTrialParamOverride(ChromeFeatureList.COMMERCE_PRICE_TRACKING,
PriceTrackingFeatures.PRICE_DROP_IPH_ENABLED_PARAM, String.valueOf(value));
FeatureList.setTestValues(testValues);
}
}
| [
"roger@nwjs.io"
] | roger@nwjs.io |
f7641c048555bf5d3b09c33fb41baab199c97372 | f8d379ba820a1bd8990c245d68d8cd84b981873e | /BankWithOracle/src/main/java/com/bank/beans/MoneyTransfer.java | f7dbea454602355a52e532461d2d9efbf8f9a447 | [] | no_license | DevaCharwaka/Bank-With-JDBC-Oracle- | c2a243077ac4476d49ed7533838027d59bab14fe | af2ac6c13fb19a0c5e8adfe9358d6b85b0777bae | refs/heads/master | 2020-05-17T01:39:49.377860 | 2019-04-25T12:52:44 | 2019-04-25T12:52:44 | 183,432,182 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 991 | java | package com.bank.beans;
public class MoneyTransfer {
private int transactionId;
private long fromAccNo;
private long toAccNo;
private int amtTransfered;
public MoneyTransfer(int transactionId, long fromAccNo, long toAccNo, int amtTransfered) {
this.transactionId = transactionId;
this.fromAccNo = fromAccNo;
this.toAccNo = toAccNo;
this.amtTransfered = amtTransfered;
}
public int getTransactionId() {
return transactionId;
}
public void setTransactionId(int transactionId) {
this.transactionId = transactionId;
}
public long getFromAccNo() {
return fromAccNo;
}
public void setFromAccNo(long fromAccNo) {
this.fromAccNo = fromAccNo;
}
public long getToAccNo() {
return toAccNo;
}
public void setToAccNo(long toAccNo) {
this.toAccNo = toAccNo;
}
public int getAmtTransfered() {
return amtTransfered;
}
public void setAmtTransfered(int amtTransfered) {
this.amtTransfered = amtTransfered;
}
public MoneyTransfer() {
}
}
| [
"noreply@github.com"
] | DevaCharwaka.noreply@github.com |
4efa01cbd76f4b21177379a50c9b80f5ebbc6d87 | c5608905743d4ee9491e588cdd1319699ae79615 | /app/src/test/java/com/example/dietplanner/ExampleUnitTest.java | 30921bc7859f144313e579be2e556a3125623ab6 | [] | no_license | marijagj/DietPlanner | 164b89504056a5ba3c62b40eb958ba0d7238b4b7 | 4686a97f57366225b00fed5d21eab7febf3025fb | refs/heads/master | 2023-03-26T14:28:34.498895 | 2021-03-18T13:09:32 | 2021-03-18T13:09:32 | 337,518,222 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 384 | java | package com.example.dietplanner;
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);
}
} | [
"marijagjosheva@yahoo.com"
] | marijagjosheva@yahoo.com |
de494cebd61ba4ea4ab54eb834bef6ff8efafed8 | f6b9f9ef94c1b1e708ea06c1f3f1262feafb3e59 | /app/src/main/java/com/example/rohanjuneja_jaikunwarsidhu_comp304_lab4/Models/PatientDao.java | 1ab24178496431490e9056880bc76821cc42dd0f | [] | no_license | rjuneja3/Hospital-System-Android-App | 6d02b53ba7fbfb0f6acc179469f4767b4efadd71 | dbce95a0a7cc15a5a386c5f9dfd2e6fcacae972d | refs/heads/main | 2023-05-11T19:01:15.498707 | 2021-05-09T20:15:30 | 2021-05-09T20:15:30 | 365,839,843 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 596 | java | package com.example.rohanjuneja_jaikunwarsidhu_comp304_lab4.Models;
import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.Query;
import androidx.room.Update;
import java.util.List;
@Dao
public interface PatientDao {
@Update
void update(Patient patient);
@Delete
void delete(Patient patient);
@Insert
void insert(Patient patient);
@Query("select * from Patient")
List<Patient> getAllPatients();
@Query("select * from Patient where patientId = :patientId")
Patient getPatientById(int patientId);
}
| [
"rjuneja3@my.centennialcollege.ca"
] | rjuneja3@my.centennialcollege.ca |
ac47a0d8c175287ef6f44061c642673cd554b653 | 6d424e555fec200a3788d4fa32e728894812a0bb | /app/src/main/java/com/example/kitesurfingapp/JSONManager.java | cb62e3821c233a7b38f2f4aaa2fe30d96072f86f | [] | no_license | hututuiandrei/KiteSurfingApp | 5e5f578d697b3be12df028ef6f2dd42f4dfeefb3 | bef98d79b4c0fef57d4b9c58f5c5e90e291ed938 | refs/heads/master | 2020-09-15T12:39:34.001960 | 2019-11-22T16:57:32 | 2019-11-22T16:57:32 | 223,447,541 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,955 | java | package com.example.kitesurfingapp;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.ArrayList;
import java.util.List;
//Managerul nostru JSON se va ocupa de parsarea unui String intr-un obiect/array
//json si apoi intr-un obiect sau o lista de tip KitePlace
public class JSONManager {
public List<KitePlace> JSONArrayToObjArray (String payload) throws JSONException {
JSONObject jsonResp = new JSONObject(payload);
JSONArray jsonArr = jsonResp.getJSONArray("result");
List<KitePlace> places = new ArrayList<>();
for(int i = 0; i < jsonArr.length(); i++) {
JSONObject jsonObj = jsonArr.getJSONObject(i);
String id = jsonObj.getString("id");
String name = jsonObj.getString("name");
String country = jsonObj.getString("country");
String whenToGo = jsonObj.getString("whenToGo");
boolean isFavorite = jsonObj.getBoolean("isFavorite");
places.add(new KitePlace(id, name, country, whenToGo, isFavorite));
}
return places;
}
public KitePlace JSONObjToObj(String payload) throws JSONException {
JSONObject jsonResp = new JSONObject(payload);
JSONObject jsonObj = jsonResp.getJSONObject("result");
String id = jsonObj.getString("id");
String name = jsonObj.getString("name");
double latitute = jsonObj.getDouble("latitude");
double longitude = jsonObj.getDouble("longitude");
double windProbability = jsonObj.getDouble("windProbability");
String country = jsonObj.getString("country");
String whenToGo = jsonObj.getString("whenToGo");
boolean isFavorite = jsonObj.getBoolean("isFavorite");
return new KitePlace(id, name, latitute, longitude, windProbability,
country, whenToGo, isFavorite);
}
}
| [
"ahututui@gmail.com"
] | ahututui@gmail.com |
5ec1d1d44c52aa0b9d9069555a33d51712a70a51 | 1e052aea2e5dee45d39e71f2ee9b02cbd64d0009 | /src/main/java/threads/utils/ForkJoin/examples/usage/MyRecursiveAction.java | a2ae4a28b742158453d629b06d00d6840275d13d | [] | no_license | ArekLopus/Threads | 12412a6cb68b058daf349c63c0e34fe10b69cd86 | e75b8e7f8054d6c8a99cefa60e880179ee1a7d17 | refs/heads/master | 2021-08-17T17:16:51.194807 | 2017-11-21T12:54:39 | 2017-11-21T12:54:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,930 | java | package threads.utils.ForkJoin.examples.usage;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ForkJoinPool;
import java.util.concurrent.RecursiveAction;
import java.util.concurrent.RecursiveTask;
public class MyRecursiveAction extends RecursiveAction {
private static final long serialVersionUID = 1L;
static int counter = 0;
int workLoad = 0;
public MyRecursiveAction(int workLoad) {
this.workLoad = workLoad;
}
protected void compute() {
if( workLoad > 1) {
List<MyRecursiveAction> subtasks = new ArrayList<MyRecursiveAction>();
subtasks.addAll(createSubtasks());
RecursiveTask.invokeAll(subtasks);
} else {
doIt(100);
}
}
private List<MyRecursiveAction> createSubtasks() {
List<MyRecursiveAction> subtasks = new ArrayList<MyRecursiveAction>();
int middle = workLoad / 2;
int low = middle;
int high = workLoad - middle;
MyRecursiveAction subtask1 = new MyRecursiveAction(low);
MyRecursiveAction subtask2 = new MyRecursiveAction(high);
subtasks.add(subtask1);
subtasks.add(subtask2);
return subtasks;
}
public static void main(String[] args) {
ForkJoinPool forkJoinPool = new ForkJoinPool(4*400);
long start = System.nanoTime();
MyRecursiveAction myRecursiveTask = new MyRecursiveAction(400);
forkJoinPool.invoke(myRecursiveTask);
System.out.println("Done in "+((System.nanoTime() - start) / 1_000_000)+" ms");
System.out.println("Counter: "+counter);
}
private Integer doIt(int sleep) {
try {
Thread.sleep(sleep);
} catch (InterruptedException e) {
e.printStackTrace();
}
//System.out.println("Sleeps: "+sleep+", "+Thread.currentThread().getName());
counter++;
return sleep;
}
}
| [
"Ark@RuleZ.com"
] | Ark@RuleZ.com |
b6c4d6601f94f397cee9e07a64f4159fbbcfed92 | bae939594e7b148a1a1923d7c4a7b4ef80014fd5 | /app/src/main/java/com/wzy/scheduleshare/Setting/modle/Advice.java | e30272f8f2c8cf37df0f24a86f52cbaa4ef911a1 | [] | no_license | Wzy65/ScheduleShare | 749a9a8caa44db13ec4a205e3227543182cc974f | a147f1ee3114a20640050528d8f067153ff5608c | refs/heads/master | 2022-04-09T23:40:12.091457 | 2020-03-15T18:09:36 | 2020-03-15T18:09:36 | 245,615,746 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 595 | java | package com.wzy.scheduleshare.Setting.modle;
import com.wzy.scheduleshare.base.modle.User;
import cn.bmob.v3.BmobObject;
/**
* @ClassName Advice
* @Author Wei Zhouye
* @Date 2020/3/12
* @Version 1.0
*/
/*用户留言*/
public class Advice extends BmobObject{
private User user;
private String content;
public User getUser() {
return user;
}
public void setUser(User user) {
this.user = user;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
}
| [
"953759887@qq.com"
] | 953759887@qq.com |
3f6a218c325667f865b60387967aed9f0bf32365 | dd182cc9fdca346d5049fed5b3484dad868bd3af | /talks/2018-01-10-vertx-loves-openapi/web-demo/src/main/java/io/slinkydeveloper/MainVerticle.java | 2cac7d374ee4f1aad7a8f40a53928cd841a1b50b | [
"MIT",
"Apache-2.0"
] | permissive | vert-x3/conf-schedule | 656dd4f264b512ad40e48392c985b3c1aeb75d45 | 5ab560988ad237c5b62853554ca42f04a0516567 | refs/heads/master | 2023-06-19T19:38:37.596981 | 2018-09-13T14:19:58 | 2018-09-13T14:19:58 | 117,149,047 | 8 | 5 | Apache-2.0 | 2018-07-20T07:03:23 | 2018-01-11T20:21:06 | Java | UTF-8 | Java | false | false | 1,720 | java | package io.slinkydeveloper;
import io.vertx.core.AbstractVerticle;
import io.vertx.core.Vertx;
import io.vertx.core.http.HttpServer;
import io.vertx.core.http.HttpServerOptions;
import io.vertx.core.json.Json;
import io.vertx.core.json.JsonObject;
import io.vertx.ext.web.Router;
import io.vertx.ext.web.handler.StaticHandler;
import java.text.MessageFormat;
public class MainVerticle extends AbstractVerticle {
@Override
public void start() {
Router router = Router.router(vertx);
router.get("/api/hello")
.handler(routingContext -> vertx.eventBus().send("pageloader", "", messageAsyncResult -> {
JsonObject object = (JsonObject) messageAsyncResult.result().body();
object.put("text", MessageFormat.format("Total characters: {0}. Computation time: {1}", object.getInteger("result"), object.getLong("time")));
routingContext.response()
.setStatusCode(200)
.putHeader("content-type", "application/json; charset=utf-8")
.end(Json.encodePrettily(object));
}));
router.route().handler(StaticHandler.create());
HttpServer server = vertx.createHttpServer(
new HttpServerOptions()
.setPort(config().getInteger("http.port", 3000))
.setHost(config().getString("http.host", "localhost")));
server.requestHandler(router::accept).listen();
}
public static void main(String[] args) {
Vertx vertx = Vertx.vertx();
vertx.deployVerticle(new DataProvider());
vertx.deployVerticle(new MainVerticle());
}
}
| [
"francescoguard@gmail.com"
] | francescoguard@gmail.com |
b2c452539fef7dbeb07bdadc776e2d626156c4a7 | 7be7e73bf871bfc942af63a9a9a9738878727944 | /src/test/thosttraderapi/CThostFtdcFrontStatusField.java | cc034a88b624af93a6246a0168956b85db5aa16d | [] | no_license | androidGG/jquant2 | ae8353b843320999070ad980a32c39a93a7687f3 | e8594c43fad770ac2c67a11b7aa85b4642ae9d5c | refs/heads/master | 2020-09-11T01:41:10.198217 | 2017-09-05T06:07:49 | 2017-09-05T06:07:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,185 | java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.11
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package test.thosttraderapi;
public class CThostFtdcFrontStatusField {
private long swigCPtr;
protected boolean swigCMemOwn;
protected CThostFtdcFrontStatusField(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(CThostFtdcFrontStatusField obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
thosttradeapiJNI.delete_CThostFtdcFrontStatusField(swigCPtr);
}
swigCPtr = 0;
}
}
public void setFrontID(int value) {
thosttradeapiJNI.CThostFtdcFrontStatusField_FrontID_set(swigCPtr, this, value);
}
public int getFrontID() {
return thosttradeapiJNI.CThostFtdcFrontStatusField_FrontID_get(swigCPtr, this);
}
public void setLastReportDate(String value) {
thosttradeapiJNI.CThostFtdcFrontStatusField_LastReportDate_set(swigCPtr, this, value);
}
public String getLastReportDate() {
return thosttradeapiJNI.CThostFtdcFrontStatusField_LastReportDate_get(swigCPtr, this);
}
public void setLastReportTime(String value) {
thosttradeapiJNI.CThostFtdcFrontStatusField_LastReportTime_set(swigCPtr, this, value);
}
public String getLastReportTime() {
return thosttradeapiJNI.CThostFtdcFrontStatusField_LastReportTime_get(swigCPtr, this);
}
public void setIsActive(int value) {
thosttradeapiJNI.CThostFtdcFrontStatusField_IsActive_set(swigCPtr, this, value);
}
public int getIsActive() {
return thosttradeapiJNI.CThostFtdcFrontStatusField_IsActive_get(swigCPtr, this);
}
public CThostFtdcFrontStatusField() {
this(thosttradeapiJNI.new_CThostFtdcFrontStatusField(), true);
}
}
| [
"qutterr@foxmail.com"
] | qutterr@foxmail.com |
743eba3013e7581c3694a5416e292ae5e5f7629d | 3d57e8d5e67c2be7f24f8c77b71df8a6fecf7fd4 | /ZigzagConversion.java | 0276546eaa0266d12b225725364ce7d4ea4ed2c0 | [] | no_license | dbshane/Leetcode-in-Java | 00f803f370ff5615e86ab7ec2dc174180e1df5ed | 7b51195489a783b1e7651af1af7259fdfd979e0c | refs/heads/master | 2021-01-01T18:11:35.077462 | 2015-09-15T03:06:15 | 2015-09-15T03:06:30 | 31,466,248 | 0 | 0 | null | null | null | null | WINDOWS-1252 | Java | false | false | 1,041 | java | public class ZigzagConversion {
public String convert(String s, int nRows) {
if (nRows == 1) return s;
int length = s.length();
char[][] zigzag = new char[length/2 + 1][nRows];
int x = 0, y = 0;
for (int i = 0; i < s.length(); i++)
{
zigzag[y][x] = s.charAt(i);
if (y % (nRows - 1) != 0 || x == nRows - 1)
{
x--;
y++;
}
else
{
x++;
}
}
StringBuilder sb = new StringBuilder();
for (int i = 0; i < nRows; i++)
{
for (int j = 0; j < length/2 + 1; j++)
{
if (zigzag[j][i] != '\u0000')
sb.append(zigzag[j][i]);
}
}
String result = sb.toString();
return result;
}
public static void main(String[] args)
{
ZigzagConversion a = new ZigzagConversion();
System.out.println(a.convert("ab°¢ÈøµÂ·É", 2));
}
}
| [
"noworry@gmail.com"
] | noworry@gmail.com |
b307966bbb3d8db3485f9ec9f46c1f01c20cf84d | 880e7461f0046cab628a00ffa79e460a1242a8a2 | /XaDemo/XaDemo.Droid/obj/Release/android/src/android/support/v7/mediarouter/R.java | e602943b24320a3f48b2a3fa83a2d3382a445eb1 | [] | no_license | obodeh/FoodPon | 0462620c89692f65c1b78c297e8bdaa296b938b6 | e7bac6a73862ed60b8ccfa179509d94d2d2cad04 | refs/heads/master | 2021-04-09T14:21:04.475160 | 2017-03-02T13:06:54 | 2017-03-02T13:06:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 546,749 | 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 android.support.v7.mediarouter;
public final class R {
public static final class anim {
public static int abc_fade_in=0x7f040000;
public static int abc_fade_out=0x7f040001;
public static int abc_grow_fade_in_from_bottom=0x7f040002;
public static int abc_popup_enter=0x7f040003;
public static int abc_popup_exit=0x7f040004;
public static int abc_shrink_fade_out_from_bottom=0x7f040005;
public static int abc_slide_in_bottom=0x7f040006;
public static int abc_slide_in_top=0x7f040007;
public static int abc_slide_out_bottom=0x7f040008;
public static int abc_slide_out_top=0x7f040009;
public static int design_bottom_sheet_slide_in=0x7f04000a;
public static int design_bottom_sheet_slide_out=0x7f04000b;
public static int design_fab_in=0x7f04000c;
public static int design_fab_out=0x7f04000d;
public static int design_snackbar_in=0x7f04000e;
public static int design_snackbar_out=0x7f04000f;
}
public static final class attr {
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int MediaRouteControllerWindowBackground=0x7f010004;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionBarDivider=0x7f010061;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionBarItemBackground=0x7f010062;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionBarPopupTheme=0x7f01005b;
/** <p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>May be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>wrap_content</code></td><td>0</td><td></td></tr>
</table>
*/
public static int actionBarSize=0x7f010060;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionBarSplitStyle=0x7f01005d;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionBarStyle=0x7f01005c;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionBarTabBarStyle=0x7f010057;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionBarTabStyle=0x7f010056;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionBarTabTextStyle=0x7f010058;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionBarTheme=0x7f01005e;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionBarWidgetTheme=0x7f01005f;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionButtonStyle=0x7f01007b;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionDropDownStyle=0x7f010077;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionLayout=0x7f0100c9;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionMenuTextAppearance=0x7f010063;
/** <p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
*/
public static int actionMenuTextColor=0x7f010064;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionModeBackground=0x7f010067;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionModeCloseButtonStyle=0x7f010066;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionModeCloseDrawable=0x7f010069;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionModeCopyDrawable=0x7f01006b;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionModeCutDrawable=0x7f01006a;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionModeFindDrawable=0x7f01006f;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionModePasteDrawable=0x7f01006c;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionModePopupWindowStyle=0x7f010071;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionModeSelectAllDrawable=0x7f01006d;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionModeShareDrawable=0x7f01006e;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionModeSplitBackground=0x7f010068;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionModeStyle=0x7f010065;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionModeWebSearchDrawable=0x7f010070;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionOverflowButtonStyle=0x7f010059;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionOverflowMenuStyle=0x7f01005a;
/** <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 int actionProviderClass=0x7f0100cb;
/** <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 int actionViewClass=0x7f0100ca;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int activityChooserViewStyle=0x7f010083;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int alertDialogButtonGroupStyle=0x7f0100a6;
/** <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 int alertDialogCenterButtons=0x7f0100a7;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int alertDialogStyle=0x7f0100a5;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int alertDialogTheme=0x7f0100a8;
/** <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 int allowStacking=0x7f0100ba;
/** <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 int arrowHeadLength=0x7f0100c1;
/** <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 int arrowShaftLength=0x7f0100c2;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int autoCompleteTextViewStyle=0x7f0100ad;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int background=0x7f010032;
/** <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 int backgroundSplit=0x7f010034;
/** <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 int backgroundStacked=0x7f010033;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int backgroundTint=0x7f0100f5;
/** <p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>src_over</code></td><td>3</td><td></td></tr>
<tr><td><code>src_in</code></td><td>5</td><td></td></tr>
<tr><td><code>src_atop</code></td><td>9</td><td></td></tr>
<tr><td><code>multiply</code></td><td>14</td><td></td></tr>
<tr><td><code>screen</code></td><td>15</td><td></td></tr>
</table>
*/
public static int backgroundTintMode=0x7f0100f6;
/** <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 int barLength=0x7f0100c3;
/** <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 int behavior_hideable=0x7f0100fb;
/** <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 int behavior_overlapTop=0x7f010121;
/** <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 int behavior_peekHeight=0x7f0100fa;
/** <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 int borderWidth=0x7f010117;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int borderlessButtonStyle=0x7f010080;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int bottomSheetDialogTheme=0x7f010111;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int bottomSheetStyle=0x7f010112;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int buttonBarButtonStyle=0x7f01007d;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int buttonBarNegativeButtonStyle=0x7f0100ab;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int buttonBarNeutralButtonStyle=0x7f0100ac;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int buttonBarPositiveButtonStyle=0x7f0100aa;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int buttonBarStyle=0x7f01007c;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int buttonPanelSideLayout=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 int buttonStyle=0x7f0100ae;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int buttonStyleSmall=0x7f0100af;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int buttonTint=0x7f0100bb;
/** <p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>src_over</code></td><td>3</td><td></td></tr>
<tr><td><code>src_in</code></td><td>5</td><td></td></tr>
<tr><td><code>src_atop</code></td><td>9</td><td></td></tr>
<tr><td><code>multiply</code></td><td>14</td><td></td></tr>
<tr><td><code>screen</code></td><td>15</td><td></td></tr>
</table>
*/
public static int buttonTintMode=0x7f0100bc;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int cardBackgroundColor=0x7f01001b;
/** <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 int cardCornerRadius=0x7f01001c;
/** <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 int cardElevation=0x7f01001d;
/** <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 int cardMaxElevation=0x7f01001e;
/** <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 int cardPreventCornerOverlap=0x7f010020;
/** <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 int cardUseCompatPadding=0x7f01001f;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int checkboxStyle=0x7f0100b0;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int checkedTextViewStyle=0x7f0100b1;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int closeIcon=0x7f0100d3;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int closeItemLayout=0x7f010042;
/** <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 int collapseContentDescription=0x7f0100ec;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int collapseIcon=0x7f0100eb;
/** <p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>top</code></td><td>0x30</td><td></td></tr>
<tr><td><code>bottom</code></td><td>0x50</td><td></td></tr>
<tr><td><code>left</code></td><td>0x03</td><td></td></tr>
<tr><td><code>right</code></td><td>0x05</td><td></td></tr>
<tr><td><code>center_vertical</code></td><td>0x10</td><td></td></tr>
<tr><td><code>fill_vertical</code></td><td>0x70</td><td></td></tr>
<tr><td><code>center_horizontal</code></td><td>0x01</td><td></td></tr>
<tr><td><code>center</code></td><td>0x11</td><td></td></tr>
<tr><td><code>start</code></td><td>0x00800003</td><td></td></tr>
<tr><td><code>end</code></td><td>0x00800005</td><td></td></tr>
</table>
*/
public static int collapsedTitleGravity=0x7f010108;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int collapsedTitleTextAppearance=0x7f010104;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int color=0x7f0100bd;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int colorAccent=0x7f01009e;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int colorButtonNormal=0x7f0100a2;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int colorControlActivated=0x7f0100a0;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int colorControlHighlight=0x7f0100a1;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int colorControlNormal=0x7f01009f;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int colorPrimary=0x7f01009c;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int colorPrimaryDark=0x7f01009d;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int colorSwitchThumbNormal=0x7f0100a3;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int commitIcon=0x7f0100d8;
/** <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 int contentInsetEnd=0x7f01003d;
/** <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 int contentInsetLeft=0x7f01003e;
/** <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 int contentInsetRight=0x7f01003f;
/** <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 int contentInsetStart=0x7f01003c;
/** <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 int contentPadding=0x7f010021;
/** <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 int contentPaddingBottom=0x7f010025;
/** <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 int contentPaddingLeft=0x7f010022;
/** <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 int contentPaddingRight=0x7f010023;
/** <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 int contentPaddingTop=0x7f010024;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int contentScrim=0x7f010105;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int controlBackground=0x7f0100a4;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int counterEnabled=0x7f010137;
/** <p>Must be an integer value, such as "<code>100</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int counterMaxLength=0x7f010138;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int counterOverflowTextAppearance=0x7f01013a;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int counterTextAppearance=0x7f010139;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int customNavigationLayout=0x7f010035;
/** <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 int defaultQueryHint=0x7f0100d2;
/** <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 int dialogPreferredPadding=0x7f010075;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int dialogTheme=0x7f010074;
/** <p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>none</code></td><td>0</td><td></td></tr>
<tr><td><code>useLogo</code></td><td>0x1</td><td></td></tr>
<tr><td><code>showHome</code></td><td>0x2</td><td></td></tr>
<tr><td><code>homeAsUp</code></td><td>0x4</td><td></td></tr>
<tr><td><code>showTitle</code></td><td>0x8</td><td></td></tr>
<tr><td><code>showCustom</code></td><td>0x10</td><td></td></tr>
<tr><td><code>disableHome</code></td><td>0x20</td><td></td></tr>
</table>
*/
public static int displayOptions=0x7f01002b;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int divider=0x7f010031;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int dividerHorizontal=0x7f010082;
/** <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 int dividerPadding=0x7f0100c7;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int dividerVertical=0x7f010081;
/** <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 int drawableSize=0x7f0100bf;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int drawerArrowStyle=0x7f010026;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int dropDownListViewStyle=0x7f010094;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int dropdownListPreferredItemHeight=0x7f010078;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int editTextBackground=0x7f010089;
/** <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 int editTextColor=0x7f010088;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int editTextStyle=0x7f0100b2;
/** <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 int elevation=0x7f010040;
/** <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 int errorEnabled=0x7f010135;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int errorTextAppearance=0x7f010136;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int expandActivityOverflowButtonDrawable=0x7f010044;
/** <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 int expanded=0x7f0100f7;
/** <p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>top</code></td><td>0x30</td><td></td></tr>
<tr><td><code>bottom</code></td><td>0x50</td><td></td></tr>
<tr><td><code>left</code></td><td>0x03</td><td></td></tr>
<tr><td><code>right</code></td><td>0x05</td><td></td></tr>
<tr><td><code>center_vertical</code></td><td>0x10</td><td></td></tr>
<tr><td><code>fill_vertical</code></td><td>0x70</td><td></td></tr>
<tr><td><code>center_horizontal</code></td><td>0x01</td><td></td></tr>
<tr><td><code>center</code></td><td>0x11</td><td></td></tr>
<tr><td><code>start</code></td><td>0x00800003</td><td></td></tr>
<tr><td><code>end</code></td><td>0x00800005</td><td></td></tr>
</table>
*/
public static int expandedTitleGravity=0x7f010109;
/** <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 int expandedTitleMargin=0x7f0100fe;
/** <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 int expandedTitleMarginBottom=0x7f010102;
/** <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 int expandedTitleMarginEnd=0x7f010101;
/** <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 int expandedTitleMarginStart=0x7f0100ff;
/** <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 int expandedTitleMarginTop=0x7f010100;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int expandedTitleTextAppearance=0x7f010103;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int externalRouteEnabledDrawable=0x7f01001a;
/** <p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>normal</code></td><td>0</td><td></td></tr>
<tr><td><code>mini</code></td><td>1</td><td></td></tr>
</table>
*/
public static int fabSize=0x7f010115;
/** <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 int foregroundInsidePadding=0x7f010119;
/** <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 int gapBetweenBars=0x7f0100c0;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int goIcon=0x7f0100d4;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int headerLayout=0x7f01011f;
/** <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 int height=0x7f010027;
/** <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 int hideOnContentScroll=0x7f01003b;
/** <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 int hintAnimationEnabled=0x7f01013b;
/** <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 int hintEnabled=0x7f010134;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int hintTextAppearance=0x7f010133;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int homeAsUpIndicator=0x7f01007a;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int homeLayout=0x7f010036;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int icon=0x7f01002f;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int iconifiedByDefault=0x7f0100d0;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int imageButtonStyle=0x7f01008a;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int indeterminateProgressStyle=0x7f010038;
/** <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 int initialActivityCount=0x7f010043;
/** <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 int insetForeground=0x7f010120;
/** <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 int isLightTheme=0x7f010028;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int itemBackground=0x7f01011d;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int itemIconTint=0x7f01011b;
/** <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 int itemPadding=0x7f01003a;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int itemTextAppearance=0x7f01011e;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int itemTextColor=0x7f01011c;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int keylines=0x7f01010b;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int layout=0x7f0100cf;
/** <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 int layoutManager=0x7f010000;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int layout_anchor=0x7f01010e;
/** <p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>top</code></td><td>0x30</td><td></td></tr>
<tr><td><code>bottom</code></td><td>0x50</td><td></td></tr>
<tr><td><code>left</code></td><td>0x03</td><td></td></tr>
<tr><td><code>right</code></td><td>0x05</td><td></td></tr>
<tr><td><code>center_vertical</code></td><td>0x10</td><td></td></tr>
<tr><td><code>fill_vertical</code></td><td>0x70</td><td></td></tr>
<tr><td><code>center_horizontal</code></td><td>0x01</td><td></td></tr>
<tr><td><code>fill_horizontal</code></td><td>0x07</td><td></td></tr>
<tr><td><code>center</code></td><td>0x11</td><td></td></tr>
<tr><td><code>fill</code></td><td>0x77</td><td></td></tr>
<tr><td><code>clip_vertical</code></td><td>0x80</td><td></td></tr>
<tr><td><code>clip_horizontal</code></td><td>0x08</td><td></td></tr>
<tr><td><code>start</code></td><td>0x00800003</td><td></td></tr>
<tr><td><code>end</code></td><td>0x00800005</td><td></td></tr>
</table>
*/
public static int layout_anchorGravity=0x7f010110;
/** <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 int layout_behavior=0x7f01010d;
/** <p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>none</code></td><td>0</td><td></td></tr>
<tr><td><code>pin</code></td><td>1</td><td></td></tr>
<tr><td><code>parallax</code></td><td>2</td><td></td></tr>
</table>
*/
public static int layout_collapseMode=0x7f0100fc;
/** <p>Must be a floating point value, such as "<code>1.2</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int layout_collapseParallaxMultiplier=0x7f0100fd;
/** <p>Must be an integer value, such as "<code>100</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int layout_keyline=0x7f01010f;
/** <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>scroll</code></td><td>0x1</td><td></td></tr>
<tr><td><code>exitUntilCollapsed</code></td><td>0x2</td><td></td></tr>
<tr><td><code>enterAlways</code></td><td>0x4</td><td></td></tr>
<tr><td><code>enterAlwaysCollapsed</code></td><td>0x8</td><td></td></tr>
<tr><td><code>snap</code></td><td>0x10</td><td></td></tr>
</table>
*/
public static int layout_scrollFlags=0x7f0100f8;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int layout_scrollInterpolator=0x7f0100f9;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int listChoiceBackgroundIndicator=0x7f01009b;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int listDividerAlertDialog=0x7f010076;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int listItemLayout=0x7f010049;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int listLayout=0x7f010046;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int listPopupWindowStyle=0x7f010095;
/** <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 int listPreferredItemHeight=0x7f01008f;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int listPreferredItemHeightLarge=0x7f010091;
/** <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 int listPreferredItemHeightSmall=0x7f010090;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int listPreferredItemPaddingLeft=0x7f010092;
/** <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 int listPreferredItemPaddingRight=0x7f010093;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int logo=0x7f010030;
/** <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 int logoDescription=0x7f0100ef;
/** <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 int maxActionInlineWidth=0x7f010122;
/** <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 int maxButtonHeight=0x7f0100ea;
/** <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 int measureWithLargestChild=0x7f0100c5;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int mediaRouteAudioTrackDrawable=0x7f010005;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int mediaRouteBluetoothIconDrawable=0x7f010006;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int mediaRouteButtonStyle=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 int mediaRouteCastDrawable=0x7f010008;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int mediaRouteChooserPrimaryTextStyle=0x7f010009;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int mediaRouteChooserSecondaryTextStyle=0x7f01000a;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int mediaRouteCloseDrawable=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 int mediaRouteCollapseGroupDrawable=0x7f01000c;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int mediaRouteConnectingDrawable=0x7f01000d;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int mediaRouteControllerPrimaryTextStyle=0x7f01000e;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int mediaRouteControllerSecondaryTextStyle=0x7f01000f;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int mediaRouteControllerTitleTextStyle=0x7f010010;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int mediaRouteDefaultIconDrawable=0x7f010011;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int mediaRouteExpandGroupDrawable=0x7f010012;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int mediaRouteOffDrawable=0x7f010013;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int mediaRouteOnDrawable=0x7f010014;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int mediaRoutePauseDrawable=0x7f010015;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int mediaRoutePlayDrawable=0x7f010016;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int mediaRouteSpeakerGroupIconDrawable=0x7f010017;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int mediaRouteSpeakerIconDrawable=0x7f010018;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int mediaRouteTvIconDrawable=0x7f010019;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int menu=0x7f01011a;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int multiChoiceItemLayout=0x7f010047;
/** <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 int navigationContentDescription=0x7f0100ee;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int navigationIcon=0x7f0100ed;
/** <p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>normal</code></td><td>0</td><td></td></tr>
<tr><td><code>listMode</code></td><td>1</td><td></td></tr>
<tr><td><code>tabMode</code></td><td>2</td><td></td></tr>
</table>
*/
public static int navigationMode=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 int overlapAnchor=0x7f0100cd;
/** <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 int paddingEnd=0x7f0100f3;
/** <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 int paddingStart=0x7f0100f2;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int panelBackground=0x7f010098;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int panelMenuListTheme=0x7f01009a;
/** <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 int panelMenuListWidth=0x7f010099;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int popupMenuStyle=0x7f010086;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int popupTheme=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 int popupWindowStyle=0x7f010087;
/** <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 int preserveIconSpacing=0x7f0100cc;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int pressedTranslationZ=0x7f010116;
/** <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 int progressBarPadding=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 int progressBarStyle=0x7f010037;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int queryBackground=0x7f0100da;
/** <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 int queryHint=0x7f0100d1;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int radioButtonStyle=0x7f0100b3;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int ratingBarStyle=0x7f0100b4;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int ratingBarStyleIndicator=0x7f0100b5;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int ratingBarStyleSmall=0x7f0100b6;
/** <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 int reverseLayout=0x7f010002;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int rippleColor=0x7f010114;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int searchHintIcon=0x7f0100d6;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int searchIcon=0x7f0100d5;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int searchViewStyle=0x7f01008e;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int seekBarStyle=0x7f0100b7;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int selectableItemBackground=0x7f01007e;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int selectableItemBackgroundBorderless=0x7f01007f;
/** <p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>never</code></td><td>0</td><td></td></tr>
<tr><td><code>ifRoom</code></td><td>1</td><td></td></tr>
<tr><td><code>always</code></td><td>2</td><td></td></tr>
<tr><td><code>withText</code></td><td>4</td><td></td></tr>
<tr><td><code>collapseActionView</code></td><td>8</td><td></td></tr>
</table>
*/
public static int showAsAction=0x7f0100c8;
/** <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 int showDividers=0x7f0100c6;
/** <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 int showText=0x7f0100e2;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int singleChoiceItemLayout=0x7f010048;
/** <p>Must be an integer value, such as "<code>100</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int spanCount=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 int spinBars=0x7f0100be;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int spinnerDropDownItemStyle=0x7f010079;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int spinnerStyle=0x7f0100b8;
/** <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 int splitTrack=0x7f0100e1;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int srcCompat=0x7f01004a;
/** <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 int stackFromEnd=0x7f010003;
/** <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 int state_above_anchor=0x7f0100ce;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int statusBarBackground=0x7f01010c;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int statusBarScrim=0x7f010106;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int submitBackground=0x7f0100db;
/** <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 int subtitle=0x7f01002c;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int subtitleTextAppearance=0x7f0100e4;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int subtitleTextColor=0x7f0100f1;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int subtitleTextStyle=0x7f01002e;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int suggestionRowLayout=0x7f0100d9;
/** <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 int switchMinWidth=0x7f0100df;
/** <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 int switchPadding=0x7f0100e0;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int switchStyle=0x7f0100b9;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int switchTextAppearance=0x7f0100de;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int tabBackground=0x7f010126;
/** <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 int tabContentStart=0x7f010125;
/** <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>fill</code></td><td>0</td><td></td></tr>
<tr><td><code>center</code></td><td>1</td><td></td></tr>
</table>
*/
public static int tabGravity=0x7f010128;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int tabIndicatorColor=0x7f010123;
/** <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 int tabIndicatorHeight=0x7f010124;
/** <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 int tabMaxWidth=0x7f01012a;
/** <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 int tabMinWidth=0x7f010129;
/** <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>scrollable</code></td><td>0</td><td></td></tr>
<tr><td><code>fixed</code></td><td>1</td><td></td></tr>
</table>
*/
public static int tabMode=0x7f010127;
/** <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 int tabPadding=0x7f010132;
/** <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 int tabPaddingBottom=0x7f010131;
/** <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 int tabPaddingEnd=0x7f010130;
/** <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 int tabPaddingStart=0x7f01012e;
/** <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 int tabPaddingTop=0x7f01012f;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int tabSelectedTextColor=0x7f01012d;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int tabTextAppearance=0x7f01012b;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int tabTextColor=0x7f01012c;
/** <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 int textAllCaps=0x7f01004b;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int textAppearanceLargePopupMenu=0x7f010072;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int textAppearanceListItem=0x7f010096;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int textAppearanceListItemSmall=0x7f010097;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int textAppearanceSearchResultSubtitle=0x7f01008c;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int textAppearanceSearchResultTitle=0x7f01008b;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int textAppearanceSmallPopupMenu=0x7f010073;
/** <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 int textColorAlertDialogListItem=0x7f0100a9;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int textColorError=0x7f010113;
/** <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 int textColorSearchUrl=0x7f01008d;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int theme=0x7f0100f4;
/** <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 int thickness=0x7f0100c4;
/** <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 int thumbTextPadding=0x7f0100dd;
/** <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 int title=0x7f010029;
/** <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 int titleEnabled=0x7f01010a;
/** <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 int titleMarginBottom=0x7f0100e9;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int titleMarginEnd=0x7f0100e7;
/** <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 int titleMarginStart=0x7f0100e6;
/** <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 int titleMarginTop=0x7f0100e8;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int titleMargins=0x7f0100e5;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int titleTextAppearance=0x7f0100e3;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int titleTextColor=0x7f0100f0;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int titleTextStyle=0x7f01002d;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int toolbarId=0x7f010107;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int toolbarNavigationButtonStyle=0x7f010085;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int toolbarStyle=0x7f010084;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int track=0x7f0100dc;
/** <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 int useCompatPadding=0x7f010118;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int voiceIcon=0x7f0100d7;
/** <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 int windowActionBar=0x7f01004c;
/** <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 int windowActionBarOverlay=0x7f01004e;
/** <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 int windowActionModeOverlay=0x7f01004f;
/** <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 int windowFixedHeightMajor=0x7f010053;
/** <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 int windowFixedHeightMinor=0x7f010051;
/** <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 int windowFixedWidthMajor=0x7f010050;
/** <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 int windowFixedWidthMinor=0x7f010052;
/** <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 int windowMinWidthMajor=0x7f010054;
/** <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 int windowMinWidthMinor=0x7f010055;
/** <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 int windowNoTitle=0x7f01004d;
}
public static final class bool {
public static int abc_action_bar_embed_tabs=0x7f0c0003;
public static int abc_action_bar_embed_tabs_pre_jb=0x7f0c0001;
public static int abc_action_bar_expanded_action_views_exclusive=0x7f0c0004;
public static int abc_allow_stacked_button_bar=0x7f0c0000;
public static int abc_config_actionMenuItemAllCaps=0x7f0c0005;
public static int abc_config_allowActionMenuItemTextWithIcon=0x7f0c0002;
public static int abc_config_closeDialogWhenTouchOutside=0x7f0c0006;
public static int abc_config_showMenuShortcutsWhenKeyboardPresent=0x7f0c0007;
}
public static final class color {
public static int abc_background_cache_hint_selector_material_dark=0x7f0b0048;
public static int abc_background_cache_hint_selector_material_light=0x7f0b0049;
public static int abc_color_highlight_material=0x7f0b004a;
public static int abc_input_method_navigation_guard=0x7f0b0004;
public static int abc_primary_text_disable_only_material_dark=0x7f0b004b;
public static int abc_primary_text_disable_only_material_light=0x7f0b004c;
public static int abc_primary_text_material_dark=0x7f0b004d;
public static int abc_primary_text_material_light=0x7f0b004e;
public static int abc_search_url_text=0x7f0b004f;
public static int abc_search_url_text_normal=0x7f0b0005;
public static int abc_search_url_text_pressed=0x7f0b0006;
public static int abc_search_url_text_selected=0x7f0b0007;
public static int abc_secondary_text_material_dark=0x7f0b0050;
public static int abc_secondary_text_material_light=0x7f0b0051;
public static int accent_material_dark=0x7f0b0008;
public static int accent_material_light=0x7f0b0009;
public static int background_floating_material_dark=0x7f0b000a;
public static int background_floating_material_light=0x7f0b000b;
public static int background_material_dark=0x7f0b000c;
public static int background_material_light=0x7f0b000d;
public static int bright_foreground_disabled_material_dark=0x7f0b000e;
public static int bright_foreground_disabled_material_light=0x7f0b000f;
public static int bright_foreground_inverse_material_dark=0x7f0b0010;
public static int bright_foreground_inverse_material_light=0x7f0b0011;
public static int bright_foreground_material_dark=0x7f0b0012;
public static int bright_foreground_material_light=0x7f0b0013;
public static int button_material_dark=0x7f0b0014;
public static int button_material_light=0x7f0b0015;
public static int cardview_dark_background=0x7f0b0000;
public static int cardview_light_background=0x7f0b0001;
public static int cardview_shadow_end_color=0x7f0b0002;
public static int cardview_shadow_start_color=0x7f0b0003;
public static int design_fab_shadow_end_color=0x7f0b003e;
public static int design_fab_shadow_mid_color=0x7f0b003f;
public static int design_fab_shadow_start_color=0x7f0b0040;
public static int design_fab_stroke_end_inner_color=0x7f0b0041;
public static int design_fab_stroke_end_outer_color=0x7f0b0042;
public static int design_fab_stroke_top_inner_color=0x7f0b0043;
public static int design_fab_stroke_top_outer_color=0x7f0b0044;
public static int design_snackbar_background_color=0x7f0b0045;
public static int design_textinput_error_color_dark=0x7f0b0046;
public static int design_textinput_error_color_light=0x7f0b0047;
public static int dim_foreground_disabled_material_dark=0x7f0b0016;
public static int dim_foreground_disabled_material_light=0x7f0b0017;
public static int dim_foreground_material_dark=0x7f0b0018;
public static int dim_foreground_material_light=0x7f0b0019;
public static int foreground_material_dark=0x7f0b001a;
public static int foreground_material_light=0x7f0b001b;
public static int highlighted_text_material_dark=0x7f0b001c;
public static int highlighted_text_material_light=0x7f0b001d;
public static int hint_foreground_material_dark=0x7f0b001e;
public static int hint_foreground_material_light=0x7f0b001f;
public static int material_blue_grey_800=0x7f0b0020;
public static int material_blue_grey_900=0x7f0b0021;
public static int material_blue_grey_950=0x7f0b0022;
public static int material_deep_teal_200=0x7f0b0023;
public static int material_deep_teal_500=0x7f0b0024;
public static int material_grey_100=0x7f0b0025;
public static int material_grey_300=0x7f0b0026;
public static int material_grey_50=0x7f0b0027;
public static int material_grey_600=0x7f0b0028;
public static int material_grey_800=0x7f0b0029;
public static int material_grey_850=0x7f0b002a;
public static int material_grey_900=0x7f0b002b;
public static int primary_dark_material_dark=0x7f0b002c;
public static int primary_dark_material_light=0x7f0b002d;
public static int primary_material_dark=0x7f0b002e;
public static int primary_material_light=0x7f0b002f;
public static int primary_text_default_material_dark=0x7f0b0030;
public static int primary_text_default_material_light=0x7f0b0031;
public static int primary_text_disabled_material_dark=0x7f0b0032;
public static int primary_text_disabled_material_light=0x7f0b0033;
public static int ripple_material_dark=0x7f0b0034;
public static int ripple_material_light=0x7f0b0035;
public static int secondary_text_default_material_dark=0x7f0b0036;
public static int secondary_text_default_material_light=0x7f0b0037;
public static int secondary_text_disabled_material_dark=0x7f0b0038;
public static int secondary_text_disabled_material_light=0x7f0b0039;
public static int switch_thumb_disabled_material_dark=0x7f0b003a;
public static int switch_thumb_disabled_material_light=0x7f0b003b;
public static int switch_thumb_material_dark=0x7f0b0052;
public static int switch_thumb_material_light=0x7f0b0053;
public static int switch_thumb_normal_material_dark=0x7f0b003c;
public static int switch_thumb_normal_material_light=0x7f0b003d;
}
public static final class dimen {
public static int abc_action_bar_content_inset_material=0x7f060019;
public static int abc_action_bar_default_height_material=0x7f06000d;
public static int abc_action_bar_default_padding_end_material=0x7f06001a;
public static int abc_action_bar_default_padding_start_material=0x7f06001b;
public static int abc_action_bar_icon_vertical_padding_material=0x7f06001d;
public static int abc_action_bar_overflow_padding_end_material=0x7f06001e;
public static int abc_action_bar_overflow_padding_start_material=0x7f06001f;
public static int abc_action_bar_progress_bar_size=0x7f06000e;
public static int abc_action_bar_stacked_max_height=0x7f060020;
public static int abc_action_bar_stacked_tab_max_width=0x7f060021;
public static int abc_action_bar_subtitle_bottom_margin_material=0x7f060022;
public static int abc_action_bar_subtitle_top_margin_material=0x7f060023;
public static int abc_action_button_min_height_material=0x7f060024;
public static int abc_action_button_min_width_material=0x7f060025;
public static int abc_action_button_min_width_overflow_material=0x7f060026;
public static int abc_alert_dialog_button_bar_height=0x7f06000c;
public static int abc_button_inset_horizontal_material=0x7f060027;
public static int abc_button_inset_vertical_material=0x7f060028;
public static int abc_button_padding_horizontal_material=0x7f060029;
public static int abc_button_padding_vertical_material=0x7f06002a;
public static int abc_config_prefDialogWidth=0x7f060011;
public static int abc_control_corner_material=0x7f06002b;
public static int abc_control_inset_material=0x7f06002c;
public static int abc_control_padding_material=0x7f06002d;
public static int abc_dialog_fixed_height_major=0x7f060012;
public static int abc_dialog_fixed_height_minor=0x7f060013;
public static int abc_dialog_fixed_width_major=0x7f060014;
public static int abc_dialog_fixed_width_minor=0x7f060015;
public static int abc_dialog_list_padding_vertical_material=0x7f06002e;
public static int abc_dialog_min_width_major=0x7f060016;
public static int abc_dialog_min_width_minor=0x7f060017;
public static int abc_dialog_padding_material=0x7f06002f;
public static int abc_dialog_padding_top_material=0x7f060030;
public static int abc_disabled_alpha_material_dark=0x7f060031;
public static int abc_disabled_alpha_material_light=0x7f060032;
public static int abc_dropdownitem_icon_width=0x7f060033;
public static int abc_dropdownitem_text_padding_left=0x7f060034;
public static int abc_dropdownitem_text_padding_right=0x7f060035;
public static int abc_edit_text_inset_bottom_material=0x7f060036;
public static int abc_edit_text_inset_horizontal_material=0x7f060037;
public static int abc_edit_text_inset_top_material=0x7f060038;
public static int abc_floating_window_z=0x7f060039;
public static int abc_list_item_padding_horizontal_material=0x7f06003a;
public static int abc_panel_menu_list_width=0x7f06003b;
public static int abc_search_view_preferred_width=0x7f06003c;
public static int abc_search_view_text_min_width=0x7f060018;
public static int abc_seekbar_track_background_height_material=0x7f06003d;
public static int abc_seekbar_track_progress_height_material=0x7f06003e;
public static int abc_select_dialog_padding_start_material=0x7f06003f;
public static int abc_switch_padding=0x7f06001c;
public static int abc_text_size_body_1_material=0x7f060040;
public static int abc_text_size_body_2_material=0x7f060041;
public static int abc_text_size_button_material=0x7f060042;
public static int abc_text_size_caption_material=0x7f060043;
public static int abc_text_size_display_1_material=0x7f060044;
public static int abc_text_size_display_2_material=0x7f060045;
public static int abc_text_size_display_3_material=0x7f060046;
public static int abc_text_size_display_4_material=0x7f060047;
public static int abc_text_size_headline_material=0x7f060048;
public static int abc_text_size_large_material=0x7f060049;
public static int abc_text_size_medium_material=0x7f06004a;
public static int abc_text_size_menu_material=0x7f06004b;
public static int abc_text_size_small_material=0x7f06004c;
public static int abc_text_size_subhead_material=0x7f06004d;
public static int abc_text_size_subtitle_material_toolbar=0x7f06000f;
public static int abc_text_size_title_material=0x7f06004e;
public static int abc_text_size_title_material_toolbar=0x7f060010;
public static int cardview_compat_inset_shadow=0x7f060009;
public static int cardview_default_elevation=0x7f06000a;
public static int cardview_default_radius=0x7f06000b;
public static int design_appbar_elevation=0x7f06005f;
public static int design_bottom_sheet_modal_elevation=0x7f060060;
public static int design_bottom_sheet_modal_peek_height=0x7f060061;
public static int design_fab_border_width=0x7f060062;
public static int design_fab_elevation=0x7f060063;
public static int design_fab_image_size=0x7f060064;
public static int design_fab_size_mini=0x7f060065;
public static int design_fab_size_normal=0x7f060066;
public static int design_fab_translation_z_pressed=0x7f060067;
public static int design_navigation_elevation=0x7f060068;
public static int design_navigation_icon_padding=0x7f060069;
public static int design_navigation_icon_size=0x7f06006a;
public static int design_navigation_max_width=0x7f060057;
public static int design_navigation_padding_bottom=0x7f06006b;
public static int design_navigation_separator_vertical_padding=0x7f06006c;
public static int design_snackbar_action_inline_max_width=0x7f060058;
public static int design_snackbar_background_corner_radius=0x7f060059;
public static int design_snackbar_elevation=0x7f06006d;
public static int design_snackbar_extra_spacing_horizontal=0x7f06005a;
public static int design_snackbar_max_width=0x7f06005b;
public static int design_snackbar_min_width=0x7f06005c;
public static int design_snackbar_padding_horizontal=0x7f06006e;
public static int design_snackbar_padding_vertical=0x7f06006f;
public static int design_snackbar_padding_vertical_2lines=0x7f06005d;
public static int design_snackbar_text_size=0x7f060070;
public static int design_tab_max_width=0x7f060071;
public static int design_tab_scrollable_min_width=0x7f06005e;
public static int design_tab_text_size=0x7f060072;
public static int design_tab_text_size_2line=0x7f060073;
public static int disabled_alpha_material_dark=0x7f06004f;
public static int disabled_alpha_material_light=0x7f060050;
public static int highlight_alpha_material_colored=0x7f060051;
public static int highlight_alpha_material_dark=0x7f060052;
public static int highlight_alpha_material_light=0x7f060053;
public static int item_touch_helper_max_drag_scroll_per_frame=0x7f060000;
public static int item_touch_helper_swipe_escape_max_velocity=0x7f060001;
public static int item_touch_helper_swipe_escape_velocity=0x7f060002;
public static int mr_controller_volume_group_list_item_height=0x7f060003;
public static int mr_controller_volume_group_list_item_icon_size=0x7f060004;
public static int mr_controller_volume_group_list_max_height=0x7f060005;
public static int mr_controller_volume_group_list_padding_top=0x7f060008;
public static int mr_dialog_fixed_width_major=0x7f060006;
public static int mr_dialog_fixed_width_minor=0x7f060007;
public static int notification_large_icon_height=0x7f060054;
public static int notification_large_icon_width=0x7f060055;
public static int notification_subtext_size=0x7f060056;
}
public static final class drawable {
public static int abc_ab_share_pack_mtrl_alpha=0x7f020000;
public static int abc_action_bar_item_background_material=0x7f020001;
public static int abc_btn_borderless_material=0x7f020002;
public static int abc_btn_check_material=0x7f020003;
public static int abc_btn_check_to_on_mtrl_000=0x7f020004;
public static int abc_btn_check_to_on_mtrl_015=0x7f020005;
public static int abc_btn_colored_material=0x7f020006;
public static int abc_btn_default_mtrl_shape=0x7f020007;
public static int abc_btn_radio_material=0x7f020008;
public static int abc_btn_radio_to_on_mtrl_000=0x7f020009;
public static int abc_btn_radio_to_on_mtrl_015=0x7f02000a;
public static int abc_btn_rating_star_off_mtrl_alpha=0x7f02000b;
public static int abc_btn_rating_star_on_mtrl_alpha=0x7f02000c;
public static int abc_btn_switch_to_on_mtrl_00001=0x7f02000d;
public static int abc_btn_switch_to_on_mtrl_00012=0x7f02000e;
public static int abc_cab_background_internal_bg=0x7f02000f;
public static int abc_cab_background_top_material=0x7f020010;
public static int abc_cab_background_top_mtrl_alpha=0x7f020011;
public static int abc_control_background_material=0x7f020012;
public static int abc_dialog_material_background_dark=0x7f020013;
public static int abc_dialog_material_background_light=0x7f020014;
public static int abc_edit_text_material=0x7f020015;
public static int abc_ic_ab_back_mtrl_am_alpha=0x7f020016;
public static int abc_ic_clear_mtrl_alpha=0x7f020017;
public static int abc_ic_commit_search_api_mtrl_alpha=0x7f020018;
public static int abc_ic_go_search_api_mtrl_alpha=0x7f020019;
public static int abc_ic_menu_copy_mtrl_am_alpha=0x7f02001a;
public static int abc_ic_menu_cut_mtrl_alpha=0x7f02001b;
public static int abc_ic_menu_moreoverflow_mtrl_alpha=0x7f02001c;
public static int abc_ic_menu_paste_mtrl_am_alpha=0x7f02001d;
public static int abc_ic_menu_selectall_mtrl_alpha=0x7f02001e;
public static int abc_ic_menu_share_mtrl_alpha=0x7f02001f;
public static int abc_ic_search_api_mtrl_alpha=0x7f020020;
public static int abc_ic_star_black_16dp=0x7f020021;
public static int abc_ic_star_black_36dp=0x7f020022;
public static int abc_ic_star_half_black_16dp=0x7f020023;
public static int abc_ic_star_half_black_36dp=0x7f020024;
public static int abc_ic_voice_search_api_mtrl_alpha=0x7f020025;
public static int abc_item_background_holo_dark=0x7f020026;
public static int abc_item_background_holo_light=0x7f020027;
public static int abc_list_divider_mtrl_alpha=0x7f020028;
public static int abc_list_focused_holo=0x7f020029;
public static int abc_list_longpressed_holo=0x7f02002a;
public static int abc_list_pressed_holo_dark=0x7f02002b;
public static int abc_list_pressed_holo_light=0x7f02002c;
public static int abc_list_selector_background_transition_holo_dark=0x7f02002d;
public static int abc_list_selector_background_transition_holo_light=0x7f02002e;
public static int abc_list_selector_disabled_holo_dark=0x7f02002f;
public static int abc_list_selector_disabled_holo_light=0x7f020030;
public static int abc_list_selector_holo_dark=0x7f020031;
public static int abc_list_selector_holo_light=0x7f020032;
public static int abc_menu_hardkey_panel_mtrl_mult=0x7f020033;
public static int abc_popup_background_mtrl_mult=0x7f020034;
public static int abc_ratingbar_full_material=0x7f020035;
public static int abc_ratingbar_indicator_material=0x7f020036;
public static int abc_ratingbar_small_material=0x7f020037;
public static int abc_scrubber_control_off_mtrl_alpha=0x7f020038;
public static int abc_scrubber_control_to_pressed_mtrl_000=0x7f020039;
public static int abc_scrubber_control_to_pressed_mtrl_005=0x7f02003a;
public static int abc_scrubber_primary_mtrl_alpha=0x7f02003b;
public static int abc_scrubber_track_mtrl_alpha=0x7f02003c;
public static int abc_seekbar_thumb_material=0x7f02003d;
public static int abc_seekbar_track_material=0x7f02003e;
public static int abc_spinner_mtrl_am_alpha=0x7f02003f;
public static int abc_spinner_textfield_background_material=0x7f020040;
public static int abc_switch_thumb_material=0x7f020041;
public static int abc_switch_track_mtrl_alpha=0x7f020042;
public static int abc_tab_indicator_material=0x7f020043;
public static int abc_tab_indicator_mtrl_alpha=0x7f020044;
public static int abc_text_cursor_material=0x7f020045;
public static int abc_textfield_activated_mtrl_alpha=0x7f020046;
public static int abc_textfield_default_mtrl_alpha=0x7f020047;
public static int abc_textfield_search_activated_mtrl_alpha=0x7f020048;
public static int abc_textfield_search_default_mtrl_alpha=0x7f020049;
public static int abc_textfield_search_material=0x7f02004a;
public static int assignment=0x7f02004b;
public static int design_fab_background=0x7f02004c;
public static int design_snackbar_background=0x7f02004d;
public static int hourglass=0x7f02004e;
public static int ic_audiotrack=0x7f02004f;
public static int ic_audiotrack_light=0x7f020050;
public static int ic_bluetooth_grey=0x7f020051;
public static int ic_bluetooth_white=0x7f020052;
public static int ic_cast_dark=0x7f020053;
public static int ic_cast_disabled_light=0x7f020054;
public static int ic_cast_grey=0x7f020055;
public static int ic_cast_light=0x7f020056;
public static int ic_cast_off_light=0x7f020057;
public static int ic_cast_on_0_light=0x7f020058;
public static int ic_cast_on_1_light=0x7f020059;
public static int ic_cast_on_2_light=0x7f02005a;
public static int ic_cast_on_light=0x7f02005b;
public static int ic_cast_white=0x7f02005c;
public static int ic_close_dark=0x7f02005d;
public static int ic_close_light=0x7f02005e;
public static int ic_collapse=0x7f02005f;
public static int ic_collapse_00000=0x7f020060;
public static int ic_collapse_00001=0x7f020061;
public static int ic_collapse_00002=0x7f020062;
public static int ic_collapse_00003=0x7f020063;
public static int ic_collapse_00004=0x7f020064;
public static int ic_collapse_00005=0x7f020065;
public static int ic_collapse_00006=0x7f020066;
public static int ic_collapse_00007=0x7f020067;
public static int ic_collapse_00008=0x7f020068;
public static int ic_collapse_00009=0x7f020069;
public static int ic_collapse_00010=0x7f02006a;
public static int ic_collapse_00011=0x7f02006b;
public static int ic_collapse_00012=0x7f02006c;
public static int ic_collapse_00013=0x7f02006d;
public static int ic_collapse_00014=0x7f02006e;
public static int ic_collapse_00015=0x7f02006f;
public static int ic_expand=0x7f020070;
public static int ic_expand_00000=0x7f020071;
public static int ic_expand_00001=0x7f020072;
public static int ic_expand_00002=0x7f020073;
public static int ic_expand_00003=0x7f020074;
public static int ic_expand_00004=0x7f020075;
public static int ic_expand_00005=0x7f020076;
public static int ic_expand_00006=0x7f020077;
public static int ic_expand_00007=0x7f020078;
public static int ic_expand_00008=0x7f020079;
public static int ic_expand_00009=0x7f02007a;
public static int ic_expand_00010=0x7f02007b;
public static int ic_expand_00011=0x7f02007c;
public static int ic_expand_00012=0x7f02007d;
public static int ic_expand_00013=0x7f02007e;
public static int ic_expand_00014=0x7f02007f;
public static int ic_expand_00015=0x7f020080;
public static int ic_media_pause=0x7f020081;
public static int ic_media_play=0x7f020082;
public static int ic_media_route_disabled_mono_dark=0x7f020083;
public static int ic_media_route_off_mono_dark=0x7f020084;
public static int ic_media_route_on_0_mono_dark=0x7f020085;
public static int ic_media_route_on_1_mono_dark=0x7f020086;
public static int ic_media_route_on_2_mono_dark=0x7f020087;
public static int ic_media_route_on_mono_dark=0x7f020088;
public static int ic_pause_dark=0x7f020089;
public static int ic_pause_light=0x7f02008a;
public static int ic_play_dark=0x7f02008b;
public static int ic_play_light=0x7f02008c;
public static int ic_speaker_dark=0x7f02008d;
public static int ic_speaker_group_dark=0x7f02008e;
public static int ic_speaker_group_light=0x7f02008f;
public static int ic_speaker_light=0x7f020090;
public static int ic_tv_dark=0x7f020091;
public static int ic_tv_light=0x7f020092;
public static int icon=0x7f020093;
public static int label=0x7f020094;
public static int location=0x7f020095;
public static int mr_dialog_material_background_dark=0x7f020096;
public static int mr_dialog_material_background_light=0x7f020097;
public static int mr_ic_audiotrack_light=0x7f020098;
public static int mr_ic_cast_dark=0x7f020099;
public static int mr_ic_cast_light=0x7f02009a;
public static int mr_ic_close_dark=0x7f02009b;
public static int mr_ic_close_light=0x7f02009c;
public static int mr_ic_media_route_connecting_mono_dark=0x7f02009d;
public static int mr_ic_media_route_connecting_mono_light=0x7f02009e;
public static int mr_ic_media_route_mono_dark=0x7f02009f;
public static int mr_ic_media_route_mono_light=0x7f0200a0;
public static int mr_ic_pause_dark=0x7f0200a1;
public static int mr_ic_pause_light=0x7f0200a2;
public static int mr_ic_play_dark=0x7f0200a3;
public static int mr_ic_play_light=0x7f0200a4;
public static int note=0x7f0200a5;
public static int notification_template_icon_bg=0x7f0200a8;
public static int restaurant50=0x7f0200a6;
public static int test=0x7f0200a7;
}
public static final class id {
public static int action0=0x7f07008b;
public static int action_bar=0x7f07005a;
public static int action_bar_activity_content=0x7f070001;
public static int action_bar_container=0x7f070059;
public static int action_bar_root=0x7f070055;
public static int action_bar_spinner=0x7f070002;
public static int action_bar_subtitle=0x7f07003b;
public static int action_bar_title=0x7f07003a;
public static int action_context_bar=0x7f07005b;
public static int action_divider=0x7f07008f;
public static int action_menu_divider=0x7f070003;
public static int action_menu_presenter=0x7f070004;
public static int action_mode_bar=0x7f070057;
public static int action_mode_bar_stub=0x7f070056;
public static int action_mode_close_button=0x7f07003c;
public static int activity_chooser_view_content=0x7f07003d;
public static int alertTitle=0x7f070049;
public static int always=0x7f07001e;
public static int beginning=0x7f07001b;
public static int bottom=0x7f07002a;
public static int buttonPanel=0x7f070044;
public static int cancel_action=0x7f07008c;
public static int center=0x7f07002b;
public static int center_horizontal=0x7f07002c;
public static int center_vertical=0x7f07002d;
public static int checkbox=0x7f070052;
public static int chronometer=0x7f070092;
public static int clip_horizontal=0x7f070033;
public static int clip_vertical=0x7f070034;
public static int collapseActionView=0x7f07001f;
public static int contentPanel=0x7f07004a;
public static int custom=0x7f070050;
public static int customPanel=0x7f07004f;
public static int decor_content_parent=0x7f070058;
public static int default_activity_button=0x7f070040;
public static int design_bottom_sheet=0x7f07006a;
public static int design_menu_item_action_area=0x7f070071;
public static int design_menu_item_action_area_stub=0x7f070070;
public static int design_menu_item_text=0x7f07006f;
public static int design_navigation_view=0x7f07006e;
public static int disableHome=0x7f07000e;
public static int edit_query=0x7f07005c;
public static int end=0x7f07001c;
public static int end_padder=0x7f070097;
public static int enterAlways=0x7f070023;
public static int enterAlwaysCollapsed=0x7f070024;
public static int exitUntilCollapsed=0x7f070025;
public static int expand_activities_button=0x7f07003e;
public static int expanded_menu=0x7f070051;
public static int fill=0x7f070035;
public static int fill_horizontal=0x7f070036;
public static int fill_vertical=0x7f07002e;
public static int fixed=0x7f070038;
public static int home=0x7f070005;
public static int homeAsUp=0x7f07000f;
public static int icon=0x7f070042;
public static int ifRoom=0x7f070020;
public static int image=0x7f07003f;
public static int info=0x7f070096;
public static int item_touch_helper_previous_elevation=0x7f070000;
public static int left=0x7f07002f;
public static int line1=0x7f070090;
public static int line3=0x7f070094;
public static int listMode=0x7f07000b;
public static int list_item=0x7f070041;
public static int media_actions=0x7f07008e;
public static int middle=0x7f07001d;
public static int mini=0x7f070037;
public static int mr_art=0x7f07007d;
public static int mr_chooser_list=0x7f070072;
public static int mr_chooser_route_desc=0x7f070075;
public static int mr_chooser_route_icon=0x7f070073;
public static int mr_chooser_route_name=0x7f070074;
public static int mr_close=0x7f07007a;
public static int mr_control_divider=0x7f070080;
public static int mr_control_play_pause=0x7f070086;
public static int mr_control_subtitle=0x7f070089;
public static int mr_control_title=0x7f070088;
public static int mr_control_title_container=0x7f070087;
public static int mr_custom_control=0x7f07007b;
public static int mr_default_control=0x7f07007c;
public static int mr_dialog_area=0x7f070077;
public static int mr_expandable_area=0x7f070076;
public static int mr_group_expand_collapse=0x7f07008a;
public static int mr_media_main_control=0x7f07007e;
public static int mr_name=0x7f070079;
public static int mr_playback_control=0x7f07007f;
public static int mr_title_bar=0x7f070078;
public static int mr_volume_control=0x7f070081;
public static int mr_volume_group_list=0x7f070082;
public static int mr_volume_item_icon=0x7f070084;
public static int mr_volume_slider=0x7f070085;
public static int multiply=0x7f070016;
public static int navigation_header_container=0x7f07006d;
public static int never=0x7f070021;
public static int none=0x7f070010;
public static int normal=0x7f07000c;
public static int parallax=0x7f070028;
public static int parentPanel=0x7f070046;
public static int pin=0x7f070029;
public static int progress_circular=0x7f070006;
public static int progress_horizontal=0x7f070007;
public static int radio=0x7f070054;
public static int right=0x7f070030;
public static int screen=0x7f070017;
public static int scroll=0x7f070026;
public static int scrollIndicatorDown=0x7f07004e;
public static int scrollIndicatorUp=0x7f07004b;
public static int scrollView=0x7f07004c;
public static int scrollable=0x7f070039;
public static int search_badge=0x7f07005e;
public static int search_bar=0x7f07005d;
public static int search_button=0x7f07005f;
public static int search_close_btn=0x7f070064;
public static int search_edit_frame=0x7f070060;
public static int search_go_btn=0x7f070066;
public static int search_mag_icon=0x7f070061;
public static int search_plate=0x7f070062;
public static int search_src_text=0x7f070063;
public static int search_voice_btn=0x7f070067;
public static int select_dialog_listview=0x7f070068;
public static int shortcut=0x7f070053;
public static int showCustom=0x7f070011;
public static int showHome=0x7f070012;
public static int showTitle=0x7f070013;
public static int snackbar_action=0x7f07006c;
public static int snackbar_text=0x7f07006b;
public static int snap=0x7f070027;
public static int spacer=0x7f070045;
public static int split_action_bar=0x7f070008;
public static int src_atop=0x7f070018;
public static int src_in=0x7f070019;
public static int src_over=0x7f07001a;
public static int start=0x7f070031;
public static int status_bar_latest_event_content=0x7f07008d;
public static int submit_area=0x7f070065;
public static int tabMode=0x7f07000d;
public static int text=0x7f070095;
public static int text2=0x7f070093;
public static int textSpacerNoButtons=0x7f07004d;
public static int time=0x7f070091;
public static int title=0x7f070043;
public static int title_template=0x7f070048;
public static int top=0x7f070032;
public static int topPanel=0x7f070047;
public static int touch_outside=0x7f070069;
public static int up=0x7f070009;
public static int useLogo=0x7f070014;
public static int view_offset_helper=0x7f07000a;
public static int volume_item_container=0x7f070083;
public static int withText=0x7f070022;
public static int wrap_content=0x7f070015;
}
public static final class integer {
public static int abc_config_activityDefaultDur=0x7f090004;
public static int abc_config_activityShortDur=0x7f090005;
public static int abc_max_action_buttons=0x7f090003;
public static int bottom_sheet_slide_duration=0x7f090009;
public static int cancel_button_image_alpha=0x7f090006;
public static int design_snackbar_text_max_lines=0x7f090008;
public static int mr_controller_volume_group_list_animation_duration_ms=0x7f090000;
public static int mr_controller_volume_group_list_fade_in_duration_ms=0x7f090001;
public static int mr_controller_volume_group_list_fade_out_duration_ms=0x7f090002;
public static int status_bar_notification_info_maxnum=0x7f090007;
}
public static final class interpolator {
public static int mr_fast_out_slow_in=0x7f050000;
public static int mr_linear_out_slow_in=0x7f050001;
}
public static final class layout {
public static int abc_action_bar_title_item=0x7f030000;
public static int abc_action_bar_up_container=0x7f030001;
public static int abc_action_bar_view_list_nav_layout=0x7f030002;
public static int abc_action_menu_item_layout=0x7f030003;
public static int abc_action_menu_layout=0x7f030004;
public static int abc_action_mode_bar=0x7f030005;
public static int abc_action_mode_close_item_material=0x7f030006;
public static int abc_activity_chooser_view=0x7f030007;
public static int abc_activity_chooser_view_list_item=0x7f030008;
public static int abc_alert_dialog_button_bar_material=0x7f030009;
public static int abc_alert_dialog_material=0x7f03000a;
public static int abc_dialog_title_material=0x7f03000b;
public static int abc_expanded_menu_layout=0x7f03000c;
public static int abc_list_menu_item_checkbox=0x7f03000d;
public static int abc_list_menu_item_icon=0x7f03000e;
public static int abc_list_menu_item_layout=0x7f03000f;
public static int abc_list_menu_item_radio=0x7f030010;
public static int abc_popup_menu_item_layout=0x7f030011;
public static int abc_screen_content_include=0x7f030012;
public static int abc_screen_simple=0x7f030013;
public static int abc_screen_simple_overlay_action_mode=0x7f030014;
public static int abc_screen_toolbar=0x7f030015;
public static int abc_search_dropdown_item_icons_2line=0x7f030016;
public static int abc_search_view=0x7f030017;
public static int abc_select_dialog_material=0x7f030018;
public static int design_bottom_sheet_dialog=0x7f030019;
public static int design_layout_snackbar=0x7f03001a;
public static int design_layout_snackbar_include=0x7f03001b;
public static int design_layout_tab_icon=0x7f03001c;
public static int design_layout_tab_text=0x7f03001d;
public static int design_menu_item_action_area=0x7f03001e;
public static int design_navigation_item=0x7f03001f;
public static int design_navigation_item_header=0x7f030020;
public static int design_navigation_item_separator=0x7f030021;
public static int design_navigation_item_subheader=0x7f030022;
public static int design_navigation_menu=0x7f030023;
public static int design_navigation_menu_item=0x7f030024;
public static int mr_chooser_dialog=0x7f030025;
public static int mr_chooser_list_item=0x7f030026;
public static int mr_controller_material_dialog_b=0x7f030027;
public static int mr_controller_volume_item=0x7f030028;
public static int mr_playback_control=0x7f030029;
public static int mr_volume_control=0x7f03002a;
public static int notification_media_action=0x7f03002b;
public static int notification_media_cancel_action=0x7f03002c;
public static int notification_template_big_media=0x7f03002d;
public static int notification_template_big_media_narrow=0x7f03002e;
public static int notification_template_lines=0x7f03002f;
public static int notification_template_media=0x7f030030;
public static int notification_template_part_chronometer=0x7f030031;
public static int notification_template_part_time=0x7f030032;
public static int select_dialog_item_material=0x7f030033;
public static int select_dialog_multichoice_material=0x7f030034;
public static int select_dialog_singlechoice_material=0x7f030035;
public static int support_simple_spinner_dropdown_item=0x7f030036;
}
public static final class string {
public static int abc_action_bar_home_description=0x7f08000f;
public static int abc_action_bar_home_description_format=0x7f080010;
public static int abc_action_bar_home_subtitle_description_format=0x7f080011;
public static int abc_action_bar_up_description=0x7f080012;
public static int abc_action_menu_overflow_description=0x7f080013;
public static int abc_action_mode_done=0x7f080014;
public static int abc_activity_chooser_view_see_all=0x7f080015;
public static int abc_activitychooserview_choose_application=0x7f080016;
public static int abc_capital_off=0x7f080017;
public static int abc_capital_on=0x7f080018;
public static int abc_search_hint=0x7f080019;
public static int abc_searchview_description_clear=0x7f08001a;
public static int abc_searchview_description_query=0x7f08001b;
public static int abc_searchview_description_search=0x7f08001c;
public static int abc_searchview_description_submit=0x7f08001d;
public static int abc_searchview_description_voice=0x7f08001e;
public static int abc_shareactionprovider_share_with=0x7f08001f;
public static int abc_shareactionprovider_share_with_application=0x7f080020;
public static int abc_toolbar_collapse_description=0x7f080021;
public static int appbar_scrolling_view_behavior=0x7f080023;
public static int bottom_sheet_behavior=0x7f080024;
public static int character_counter_pattern=0x7f080025;
public static int mr_button_content_description=0x7f080000;
public static int mr_chooser_searching=0x7f080001;
public static int mr_chooser_title=0x7f080002;
public static int mr_controller_casting_screen=0x7f080003;
public static int mr_controller_close_description=0x7f080004;
public static int mr_controller_collapse_group=0x7f080005;
public static int mr_controller_disconnect=0x7f080006;
public static int mr_controller_expand_group=0x7f080007;
public static int mr_controller_no_info_available=0x7f080008;
public static int mr_controller_no_media_selected=0x7f080009;
public static int mr_controller_pause=0x7f08000a;
public static int mr_controller_play=0x7f08000b;
public static int mr_controller_stop=0x7f08000c;
public static int mr_system_route_name=0x7f08000d;
public static int mr_user_route_category_name=0x7f08000e;
public static int status_bar_notification_info_overflow=0x7f080022;
}
public static final class style {
public static int AlertDialog_AppCompat=0x7f0a00a1;
public static int AlertDialog_AppCompat_Light=0x7f0a00a2;
public static int Animation_AppCompat_Dialog=0x7f0a00a3;
public static int Animation_AppCompat_DropDownUp=0x7f0a00a4;
public static int Animation_Design_BottomSheetDialog=0x7f0a015a;
public static int Base_AlertDialog_AppCompat=0x7f0a00a5;
public static int Base_AlertDialog_AppCompat_Light=0x7f0a00a6;
public static int Base_Animation_AppCompat_Dialog=0x7f0a00a7;
public static int Base_Animation_AppCompat_DropDownUp=0x7f0a00a8;
public static int Base_CardView=0x7f0a0018;
public static int Base_DialogWindowTitle_AppCompat=0x7f0a00a9;
public static int Base_DialogWindowTitleBackground_AppCompat=0x7f0a00aa;
public static int Base_TextAppearance_AppCompat=0x7f0a0051;
public static int Base_TextAppearance_AppCompat_Body1=0x7f0a0052;
public static int Base_TextAppearance_AppCompat_Body2=0x7f0a0053;
public static int Base_TextAppearance_AppCompat_Button=0x7f0a003b;
public static int Base_TextAppearance_AppCompat_Caption=0x7f0a0054;
public static int Base_TextAppearance_AppCompat_Display1=0x7f0a0055;
public static int Base_TextAppearance_AppCompat_Display2=0x7f0a0056;
public static int Base_TextAppearance_AppCompat_Display3=0x7f0a0057;
public static int Base_TextAppearance_AppCompat_Display4=0x7f0a0058;
public static int Base_TextAppearance_AppCompat_Headline=0x7f0a0059;
public static int Base_TextAppearance_AppCompat_Inverse=0x7f0a0026;
public static int Base_TextAppearance_AppCompat_Large=0x7f0a005a;
public static int Base_TextAppearance_AppCompat_Large_Inverse=0x7f0a0027;
public static int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Large=0x7f0a005b;
public static int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Small=0x7f0a005c;
public static int Base_TextAppearance_AppCompat_Medium=0x7f0a005d;
public static int Base_TextAppearance_AppCompat_Medium_Inverse=0x7f0a0028;
public static int Base_TextAppearance_AppCompat_Menu=0x7f0a005e;
public static int Base_TextAppearance_AppCompat_SearchResult=0x7f0a00ab;
public static int Base_TextAppearance_AppCompat_SearchResult_Subtitle=0x7f0a005f;
public static int Base_TextAppearance_AppCompat_SearchResult_Title=0x7f0a0060;
public static int Base_TextAppearance_AppCompat_Small=0x7f0a0061;
public static int Base_TextAppearance_AppCompat_Small_Inverse=0x7f0a0029;
public static int Base_TextAppearance_AppCompat_Subhead=0x7f0a0062;
public static int Base_TextAppearance_AppCompat_Subhead_Inverse=0x7f0a002a;
public static int Base_TextAppearance_AppCompat_Title=0x7f0a0063;
public static int Base_TextAppearance_AppCompat_Title_Inverse=0x7f0a002b;
public static int Base_TextAppearance_AppCompat_Widget_ActionBar_Menu=0x7f0a009a;
public static int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle=0x7f0a0064;
public static int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse=0x7f0a0065;
public static int Base_TextAppearance_AppCompat_Widget_ActionBar_Title=0x7f0a0066;
public static int Base_TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse=0x7f0a0067;
public static int Base_TextAppearance_AppCompat_Widget_ActionMode_Subtitle=0x7f0a0068;
public static int Base_TextAppearance_AppCompat_Widget_ActionMode_Title=0x7f0a0069;
public static int Base_TextAppearance_AppCompat_Widget_Button=0x7f0a006a;
public static int Base_TextAppearance_AppCompat_Widget_Button_Inverse=0x7f0a009b;
public static int Base_TextAppearance_AppCompat_Widget_DropDownItem=0x7f0a00ac;
public static int Base_TextAppearance_AppCompat_Widget_PopupMenu_Large=0x7f0a006b;
public static int Base_TextAppearance_AppCompat_Widget_PopupMenu_Small=0x7f0a006c;
public static int Base_TextAppearance_AppCompat_Widget_Switch=0x7f0a006d;
public static int Base_TextAppearance_AppCompat_Widget_TextView_SpinnerItem=0x7f0a006e;
public static int Base_TextAppearance_Widget_AppCompat_ExpandedMenu_Item=0x7f0a00ad;
public static int Base_TextAppearance_Widget_AppCompat_Toolbar_Subtitle=0x7f0a006f;
public static int Base_TextAppearance_Widget_AppCompat_Toolbar_Title=0x7f0a0070;
public static int Base_Theme_AppCompat=0x7f0a0071;
public static int Base_Theme_AppCompat_CompactMenu=0x7f0a00ae;
public static int Base_Theme_AppCompat_Dialog=0x7f0a002c;
public static int Base_Theme_AppCompat_Dialog_Alert=0x7f0a00af;
public static int Base_Theme_AppCompat_Dialog_FixedSize=0x7f0a00b0;
public static int Base_Theme_AppCompat_Dialog_MinWidth=0x7f0a00b1;
public static int Base_Theme_AppCompat_DialogWhenLarge=0x7f0a001c;
public static int Base_Theme_AppCompat_Light=0x7f0a0072;
public static int Base_Theme_AppCompat_Light_DarkActionBar=0x7f0a00b2;
public static int Base_Theme_AppCompat_Light_Dialog=0x7f0a002d;
public static int Base_Theme_AppCompat_Light_Dialog_Alert=0x7f0a00b3;
public static int Base_Theme_AppCompat_Light_Dialog_FixedSize=0x7f0a00b4;
public static int Base_Theme_AppCompat_Light_Dialog_MinWidth=0x7f0a00b5;
public static int Base_Theme_AppCompat_Light_DialogWhenLarge=0x7f0a001d;
public static int Base_ThemeOverlay_AppCompat=0x7f0a00b6;
public static int Base_ThemeOverlay_AppCompat_ActionBar=0x7f0a00b7;
public static int Base_ThemeOverlay_AppCompat_Dark=0x7f0a00b8;
public static int Base_ThemeOverlay_AppCompat_Dark_ActionBar=0x7f0a00b9;
public static int Base_ThemeOverlay_AppCompat_Light=0x7f0a00ba;
public static int Base_V11_Theme_AppCompat_Dialog=0x7f0a002e;
public static int Base_V11_Theme_AppCompat_Light_Dialog=0x7f0a002f;
public static int Base_V12_Widget_AppCompat_AutoCompleteTextView=0x7f0a0037;
public static int Base_V12_Widget_AppCompat_EditText=0x7f0a0038;
public static int Base_V21_Theme_AppCompat=0x7f0a0073;
public static int Base_V21_Theme_AppCompat_Dialog=0x7f0a0074;
public static int Base_V21_Theme_AppCompat_Light=0x7f0a0075;
public static int Base_V21_Theme_AppCompat_Light_Dialog=0x7f0a0076;
public static int Base_V22_Theme_AppCompat=0x7f0a0098;
public static int Base_V22_Theme_AppCompat_Light=0x7f0a0099;
public static int Base_V23_Theme_AppCompat=0x7f0a009c;
public static int Base_V23_Theme_AppCompat_Light=0x7f0a009d;
public static int Base_V7_Theme_AppCompat=0x7f0a00bb;
public static int Base_V7_Theme_AppCompat_Dialog=0x7f0a00bc;
public static int Base_V7_Theme_AppCompat_Light=0x7f0a00bd;
public static int Base_V7_Theme_AppCompat_Light_Dialog=0x7f0a00be;
public static int Base_V7_Widget_AppCompat_AutoCompleteTextView=0x7f0a00bf;
public static int Base_V7_Widget_AppCompat_EditText=0x7f0a00c0;
public static int Base_Widget_AppCompat_ActionBar=0x7f0a00c1;
public static int Base_Widget_AppCompat_ActionBar_Solid=0x7f0a00c2;
public static int Base_Widget_AppCompat_ActionBar_TabBar=0x7f0a00c3;
public static int Base_Widget_AppCompat_ActionBar_TabText=0x7f0a0077;
public static int Base_Widget_AppCompat_ActionBar_TabView=0x7f0a0078;
public static int Base_Widget_AppCompat_ActionButton=0x7f0a0079;
public static int Base_Widget_AppCompat_ActionButton_CloseMode=0x7f0a007a;
public static int Base_Widget_AppCompat_ActionButton_Overflow=0x7f0a007b;
public static int Base_Widget_AppCompat_ActionMode=0x7f0a00c4;
public static int Base_Widget_AppCompat_ActivityChooserView=0x7f0a00c5;
public static int Base_Widget_AppCompat_AutoCompleteTextView=0x7f0a0039;
public static int Base_Widget_AppCompat_Button=0x7f0a007c;
public static int Base_Widget_AppCompat_Button_Borderless=0x7f0a007d;
public static int Base_Widget_AppCompat_Button_Borderless_Colored=0x7f0a007e;
public static int Base_Widget_AppCompat_Button_ButtonBar_AlertDialog=0x7f0a00c6;
public static int Base_Widget_AppCompat_Button_Colored=0x7f0a009e;
public static int Base_Widget_AppCompat_Button_Small=0x7f0a007f;
public static int Base_Widget_AppCompat_ButtonBar=0x7f0a0080;
public static int Base_Widget_AppCompat_ButtonBar_AlertDialog=0x7f0a00c7;
public static int Base_Widget_AppCompat_CompoundButton_CheckBox=0x7f0a0081;
public static int Base_Widget_AppCompat_CompoundButton_RadioButton=0x7f0a0082;
public static int Base_Widget_AppCompat_CompoundButton_Switch=0x7f0a00c8;
public static int Base_Widget_AppCompat_DrawerArrowToggle=0x7f0a001b;
public static int Base_Widget_AppCompat_DrawerArrowToggle_Common=0x7f0a00c9;
public static int Base_Widget_AppCompat_DropDownItem_Spinner=0x7f0a0083;
public static int Base_Widget_AppCompat_EditText=0x7f0a003a;
public static int Base_Widget_AppCompat_ImageButton=0x7f0a0084;
public static int Base_Widget_AppCompat_Light_ActionBar=0x7f0a00ca;
public static int Base_Widget_AppCompat_Light_ActionBar_Solid=0x7f0a00cb;
public static int Base_Widget_AppCompat_Light_ActionBar_TabBar=0x7f0a00cc;
public static int Base_Widget_AppCompat_Light_ActionBar_TabText=0x7f0a0085;
public static int Base_Widget_AppCompat_Light_ActionBar_TabText_Inverse=0x7f0a0086;
public static int Base_Widget_AppCompat_Light_ActionBar_TabView=0x7f0a0087;
public static int Base_Widget_AppCompat_Light_PopupMenu=0x7f0a0088;
public static int Base_Widget_AppCompat_Light_PopupMenu_Overflow=0x7f0a0089;
public static int Base_Widget_AppCompat_ListPopupWindow=0x7f0a008a;
public static int Base_Widget_AppCompat_ListView=0x7f0a008b;
public static int Base_Widget_AppCompat_ListView_DropDown=0x7f0a008c;
public static int Base_Widget_AppCompat_ListView_Menu=0x7f0a008d;
public static int Base_Widget_AppCompat_PopupMenu=0x7f0a008e;
public static int Base_Widget_AppCompat_PopupMenu_Overflow=0x7f0a008f;
public static int Base_Widget_AppCompat_PopupWindow=0x7f0a00cd;
public static int Base_Widget_AppCompat_ProgressBar=0x7f0a0030;
public static int Base_Widget_AppCompat_ProgressBar_Horizontal=0x7f0a0031;
public static int Base_Widget_AppCompat_RatingBar=0x7f0a0090;
public static int Base_Widget_AppCompat_RatingBar_Indicator=0x7f0a009f;
public static int Base_Widget_AppCompat_RatingBar_Small=0x7f0a00a0;
public static int Base_Widget_AppCompat_SearchView=0x7f0a00ce;
public static int Base_Widget_AppCompat_SearchView_ActionBar=0x7f0a00cf;
public static int Base_Widget_AppCompat_SeekBar=0x7f0a0091;
public static int Base_Widget_AppCompat_Spinner=0x7f0a0092;
public static int Base_Widget_AppCompat_Spinner_Underlined=0x7f0a001e;
public static int Base_Widget_AppCompat_TextView_SpinnerItem=0x7f0a0093;
public static int Base_Widget_AppCompat_Toolbar=0x7f0a00d0;
public static int Base_Widget_AppCompat_Toolbar_Button_Navigation=0x7f0a0094;
public static int Base_Widget_Design_TabLayout=0x7f0a015b;
public static int CardView=0x7f0a0017;
public static int CardView_Dark=0x7f0a0019;
public static int CardView_Light=0x7f0a001a;
public static int Platform_AppCompat=0x7f0a0032;
public static int Platform_AppCompat_Light=0x7f0a0033;
public static int Platform_ThemeOverlay_AppCompat=0x7f0a0095;
public static int Platform_ThemeOverlay_AppCompat_Dark=0x7f0a0096;
public static int Platform_ThemeOverlay_AppCompat_Light=0x7f0a0097;
public static int Platform_V11_AppCompat=0x7f0a0034;
public static int Platform_V11_AppCompat_Light=0x7f0a0035;
public static int Platform_V14_AppCompat=0x7f0a003c;
public static int Platform_V14_AppCompat_Light=0x7f0a003d;
public static int Platform_Widget_AppCompat_Spinner=0x7f0a0036;
public static int RtlOverlay_DialogWindowTitle_AppCompat=0x7f0a0043;
public static int RtlOverlay_Widget_AppCompat_ActionBar_TitleItem=0x7f0a0044;
public static int RtlOverlay_Widget_AppCompat_DialogTitle_Icon=0x7f0a0045;
public static int RtlOverlay_Widget_AppCompat_PopupMenuItem=0x7f0a0046;
public static int RtlOverlay_Widget_AppCompat_PopupMenuItem_InternalGroup=0x7f0a0047;
public static int RtlOverlay_Widget_AppCompat_PopupMenuItem_Text=0x7f0a0048;
public static int RtlOverlay_Widget_AppCompat_Search_DropDown=0x7f0a0049;
public static int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon1=0x7f0a004a;
public static int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon2=0x7f0a004b;
public static int RtlOverlay_Widget_AppCompat_Search_DropDown_Query=0x7f0a004c;
public static int RtlOverlay_Widget_AppCompat_Search_DropDown_Text=0x7f0a004d;
public static int RtlOverlay_Widget_AppCompat_SearchView_MagIcon=0x7f0a004e;
public static int RtlUnderlay_Widget_AppCompat_ActionButton=0x7f0a004f;
public static int RtlUnderlay_Widget_AppCompat_ActionButton_Overflow=0x7f0a0050;
public static int TextAppearance_AppCompat=0x7f0a00d1;
public static int TextAppearance_AppCompat_Body1=0x7f0a00d2;
public static int TextAppearance_AppCompat_Body2=0x7f0a00d3;
public static int TextAppearance_AppCompat_Button=0x7f0a00d4;
public static int TextAppearance_AppCompat_Caption=0x7f0a00d5;
public static int TextAppearance_AppCompat_Display1=0x7f0a00d6;
public static int TextAppearance_AppCompat_Display2=0x7f0a00d7;
public static int TextAppearance_AppCompat_Display3=0x7f0a00d8;
public static int TextAppearance_AppCompat_Display4=0x7f0a00d9;
public static int TextAppearance_AppCompat_Headline=0x7f0a00da;
public static int TextAppearance_AppCompat_Inverse=0x7f0a00db;
public static int TextAppearance_AppCompat_Large=0x7f0a00dc;
public static int TextAppearance_AppCompat_Large_Inverse=0x7f0a00dd;
public static int TextAppearance_AppCompat_Light_SearchResult_Subtitle=0x7f0a00de;
public static int TextAppearance_AppCompat_Light_SearchResult_Title=0x7f0a00df;
public static int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large=0x7f0a00e0;
public static int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small=0x7f0a00e1;
public static int TextAppearance_AppCompat_Medium=0x7f0a00e2;
public static int TextAppearance_AppCompat_Medium_Inverse=0x7f0a00e3;
public static int TextAppearance_AppCompat_Menu=0x7f0a00e4;
public static int TextAppearance_AppCompat_SearchResult_Subtitle=0x7f0a00e5;
public static int TextAppearance_AppCompat_SearchResult_Title=0x7f0a00e6;
public static int TextAppearance_AppCompat_Small=0x7f0a00e7;
public static int TextAppearance_AppCompat_Small_Inverse=0x7f0a00e8;
public static int TextAppearance_AppCompat_Subhead=0x7f0a00e9;
public static int TextAppearance_AppCompat_Subhead_Inverse=0x7f0a00ea;
public static int TextAppearance_AppCompat_Title=0x7f0a00eb;
public static int TextAppearance_AppCompat_Title_Inverse=0x7f0a00ec;
public static int TextAppearance_AppCompat_Widget_ActionBar_Menu=0x7f0a00ed;
public static int TextAppearance_AppCompat_Widget_ActionBar_Subtitle=0x7f0a00ee;
public static int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse=0x7f0a00ef;
public static int TextAppearance_AppCompat_Widget_ActionBar_Title=0x7f0a00f0;
public static int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse=0x7f0a00f1;
public static int TextAppearance_AppCompat_Widget_ActionMode_Subtitle=0x7f0a00f2;
public static int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse=0x7f0a00f3;
public static int TextAppearance_AppCompat_Widget_ActionMode_Title=0x7f0a00f4;
public static int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse=0x7f0a00f5;
public static int TextAppearance_AppCompat_Widget_Button=0x7f0a00f6;
public static int TextAppearance_AppCompat_Widget_Button_Inverse=0x7f0a00f7;
public static int TextAppearance_AppCompat_Widget_DropDownItem=0x7f0a00f8;
public static int TextAppearance_AppCompat_Widget_PopupMenu_Large=0x7f0a00f9;
public static int TextAppearance_AppCompat_Widget_PopupMenu_Small=0x7f0a00fa;
public static int TextAppearance_AppCompat_Widget_Switch=0x7f0a00fb;
public static int TextAppearance_AppCompat_Widget_TextView_SpinnerItem=0x7f0a00fc;
public static int TextAppearance_Design_CollapsingToolbar_Expanded=0x7f0a015c;
public static int TextAppearance_Design_Counter=0x7f0a015d;
public static int TextAppearance_Design_Counter_Overflow=0x7f0a015e;
public static int TextAppearance_Design_Error=0x7f0a015f;
public static int TextAppearance_Design_Hint=0x7f0a0160;
public static int TextAppearance_Design_Snackbar_Message=0x7f0a0161;
public static int TextAppearance_Design_Tab=0x7f0a0162;
public static int TextAppearance_StatusBar_EventContent=0x7f0a003e;
public static int TextAppearance_StatusBar_EventContent_Info=0x7f0a003f;
public static int TextAppearance_StatusBar_EventContent_Line2=0x7f0a0040;
public static int TextAppearance_StatusBar_EventContent_Time=0x7f0a0041;
public static int TextAppearance_StatusBar_EventContent_Title=0x7f0a0042;
public static int TextAppearance_Widget_AppCompat_ExpandedMenu_Item=0x7f0a00fd;
public static int TextAppearance_Widget_AppCompat_Toolbar_Subtitle=0x7f0a00fe;
public static int TextAppearance_Widget_AppCompat_Toolbar_Title=0x7f0a00ff;
public static int Theme_AppCompat=0x7f0a0100;
public static int Theme_AppCompat_CompactMenu=0x7f0a0101;
public static int Theme_AppCompat_DayNight=0x7f0a001f;
public static int Theme_AppCompat_DayNight_DarkActionBar=0x7f0a0020;
public static int Theme_AppCompat_DayNight_Dialog=0x7f0a0021;
public static int Theme_AppCompat_DayNight_Dialog_Alert=0x7f0a0022;
public static int Theme_AppCompat_DayNight_Dialog_MinWidth=0x7f0a0023;
public static int Theme_AppCompat_DayNight_DialogWhenLarge=0x7f0a0024;
public static int Theme_AppCompat_DayNight_NoActionBar=0x7f0a0025;
public static int Theme_AppCompat_Dialog=0x7f0a0102;
public static int Theme_AppCompat_Dialog_Alert=0x7f0a0103;
public static int Theme_AppCompat_Dialog_MinWidth=0x7f0a0104;
public static int Theme_AppCompat_DialogWhenLarge=0x7f0a0105;
public static int Theme_AppCompat_Light=0x7f0a0106;
public static int Theme_AppCompat_Light_DarkActionBar=0x7f0a0107;
public static int Theme_AppCompat_Light_Dialog=0x7f0a0108;
public static int Theme_AppCompat_Light_Dialog_Alert=0x7f0a0109;
public static int Theme_AppCompat_Light_Dialog_MinWidth=0x7f0a010a;
public static int Theme_AppCompat_Light_DialogWhenLarge=0x7f0a010b;
public static int Theme_AppCompat_Light_NoActionBar=0x7f0a010c;
public static int Theme_AppCompat_NoActionBar=0x7f0a010d;
public static int Theme_Design=0x7f0a0163;
public static int Theme_Design_BottomSheetDialog=0x7f0a0164;
public static int Theme_Design_Light=0x7f0a0165;
public static int Theme_Design_Light_BottomSheetDialog=0x7f0a0166;
public static int Theme_Design_Light_NoActionBar=0x7f0a0167;
public static int Theme_Design_NoActionBar=0x7f0a0168;
public static int Theme_MediaRouter=0x7f0a0000;
public static int Theme_MediaRouter_Light=0x7f0a0001;
public static int Theme_MediaRouter_Light_DarkControlPanel=0x7f0a0002;
public static int Theme_MediaRouter_LightControlPanel=0x7f0a0003;
public static int ThemeOverlay_AppCompat=0x7f0a010e;
public static int ThemeOverlay_AppCompat_ActionBar=0x7f0a010f;
public static int ThemeOverlay_AppCompat_Dark=0x7f0a0110;
public static int ThemeOverlay_AppCompat_Dark_ActionBar=0x7f0a0111;
public static int ThemeOverlay_AppCompat_Light=0x7f0a0112;
public static int Widget_AppCompat_ActionBar=0x7f0a0113;
public static int Widget_AppCompat_ActionBar_Solid=0x7f0a0114;
public static int Widget_AppCompat_ActionBar_TabBar=0x7f0a0115;
public static int Widget_AppCompat_ActionBar_TabText=0x7f0a0116;
public static int Widget_AppCompat_ActionBar_TabView=0x7f0a0117;
public static int Widget_AppCompat_ActionButton=0x7f0a0118;
public static int Widget_AppCompat_ActionButton_CloseMode=0x7f0a0119;
public static int Widget_AppCompat_ActionButton_Overflow=0x7f0a011a;
public static int Widget_AppCompat_ActionMode=0x7f0a011b;
public static int Widget_AppCompat_ActivityChooserView=0x7f0a011c;
public static int Widget_AppCompat_AutoCompleteTextView=0x7f0a011d;
public static int Widget_AppCompat_Button=0x7f0a011e;
public static int Widget_AppCompat_Button_Borderless=0x7f0a011f;
public static int Widget_AppCompat_Button_Borderless_Colored=0x7f0a0120;
public static int Widget_AppCompat_Button_ButtonBar_AlertDialog=0x7f0a0121;
public static int Widget_AppCompat_Button_Colored=0x7f0a0122;
public static int Widget_AppCompat_Button_Small=0x7f0a0123;
public static int Widget_AppCompat_ButtonBar=0x7f0a0124;
public static int Widget_AppCompat_ButtonBar_AlertDialog=0x7f0a0125;
public static int Widget_AppCompat_CompoundButton_CheckBox=0x7f0a0126;
public static int Widget_AppCompat_CompoundButton_RadioButton=0x7f0a0127;
public static int Widget_AppCompat_CompoundButton_Switch=0x7f0a0128;
public static int Widget_AppCompat_DrawerArrowToggle=0x7f0a0129;
public static int Widget_AppCompat_DropDownItem_Spinner=0x7f0a012a;
public static int Widget_AppCompat_EditText=0x7f0a012b;
public static int Widget_AppCompat_ImageButton=0x7f0a012c;
public static int Widget_AppCompat_Light_ActionBar=0x7f0a012d;
public static int Widget_AppCompat_Light_ActionBar_Solid=0x7f0a012e;
public static int Widget_AppCompat_Light_ActionBar_Solid_Inverse=0x7f0a012f;
public static int Widget_AppCompat_Light_ActionBar_TabBar=0x7f0a0130;
public static int Widget_AppCompat_Light_ActionBar_TabBar_Inverse=0x7f0a0131;
public static int Widget_AppCompat_Light_ActionBar_TabText=0x7f0a0132;
public static int Widget_AppCompat_Light_ActionBar_TabText_Inverse=0x7f0a0133;
public static int Widget_AppCompat_Light_ActionBar_TabView=0x7f0a0134;
public static int Widget_AppCompat_Light_ActionBar_TabView_Inverse=0x7f0a0135;
public static int Widget_AppCompat_Light_ActionButton=0x7f0a0136;
public static int Widget_AppCompat_Light_ActionButton_CloseMode=0x7f0a0137;
public static int Widget_AppCompat_Light_ActionButton_Overflow=0x7f0a0138;
public static int Widget_AppCompat_Light_ActionMode_Inverse=0x7f0a0139;
public static int Widget_AppCompat_Light_ActivityChooserView=0x7f0a013a;
public static int Widget_AppCompat_Light_AutoCompleteTextView=0x7f0a013b;
public static int Widget_AppCompat_Light_DropDownItem_Spinner=0x7f0a013c;
public static int Widget_AppCompat_Light_ListPopupWindow=0x7f0a013d;
public static int Widget_AppCompat_Light_ListView_DropDown=0x7f0a013e;
public static int Widget_AppCompat_Light_PopupMenu=0x7f0a013f;
public static int Widget_AppCompat_Light_PopupMenu_Overflow=0x7f0a0140;
public static int Widget_AppCompat_Light_SearchView=0x7f0a0141;
public static int Widget_AppCompat_Light_Spinner_DropDown_ActionBar=0x7f0a0142;
public static int Widget_AppCompat_ListPopupWindow=0x7f0a0143;
public static int Widget_AppCompat_ListView=0x7f0a0144;
public static int Widget_AppCompat_ListView_DropDown=0x7f0a0145;
public static int Widget_AppCompat_ListView_Menu=0x7f0a0146;
public static int Widget_AppCompat_PopupMenu=0x7f0a0147;
public static int Widget_AppCompat_PopupMenu_Overflow=0x7f0a0148;
public static int Widget_AppCompat_PopupWindow=0x7f0a0149;
public static int Widget_AppCompat_ProgressBar=0x7f0a014a;
public static int Widget_AppCompat_ProgressBar_Horizontal=0x7f0a014b;
public static int Widget_AppCompat_RatingBar=0x7f0a014c;
public static int Widget_AppCompat_RatingBar_Indicator=0x7f0a014d;
public static int Widget_AppCompat_RatingBar_Small=0x7f0a014e;
public static int Widget_AppCompat_SearchView=0x7f0a014f;
public static int Widget_AppCompat_SearchView_ActionBar=0x7f0a0150;
public static int Widget_AppCompat_SeekBar=0x7f0a0151;
public static int Widget_AppCompat_Spinner=0x7f0a0152;
public static int Widget_AppCompat_Spinner_DropDown=0x7f0a0153;
public static int Widget_AppCompat_Spinner_DropDown_ActionBar=0x7f0a0154;
public static int Widget_AppCompat_Spinner_Underlined=0x7f0a0155;
public static int Widget_AppCompat_TextView_SpinnerItem=0x7f0a0156;
public static int Widget_AppCompat_Toolbar=0x7f0a0157;
public static int Widget_AppCompat_Toolbar_Button_Navigation=0x7f0a0158;
public static int Widget_Design_AppBarLayout=0x7f0a0169;
public static int Widget_Design_BottomSheet_Modal=0x7f0a016a;
public static int Widget_Design_CollapsingToolbar=0x7f0a016b;
public static int Widget_Design_CoordinatorLayout=0x7f0a016c;
public static int Widget_Design_FloatingActionButton=0x7f0a016d;
public static int Widget_Design_NavigationView=0x7f0a016e;
public static int Widget_Design_ScrimInsetsFrameLayout=0x7f0a016f;
public static int Widget_Design_Snackbar=0x7f0a0170;
public static int Widget_Design_TabLayout=0x7f0a0159;
public static int Widget_Design_TextInputLayout=0x7f0a0171;
public static int Widget_MediaRouter_ChooserText=0x7f0a0004;
public static int Widget_MediaRouter_ChooserText_Primary=0x7f0a0005;
public static int Widget_MediaRouter_ChooserText_Primary_Dark=0x7f0a0006;
public static int Widget_MediaRouter_ChooserText_Primary_Light=0x7f0a0007;
public static int Widget_MediaRouter_ChooserText_Secondary=0x7f0a0008;
public static int Widget_MediaRouter_ChooserText_Secondary_Dark=0x7f0a0009;
public static int Widget_MediaRouter_ChooserText_Secondary_Light=0x7f0a000a;
public static int Widget_MediaRouter_ControllerText=0x7f0a000b;
public static int Widget_MediaRouter_ControllerText_Primary=0x7f0a000c;
public static int Widget_MediaRouter_ControllerText_Primary_Dark=0x7f0a000d;
public static int Widget_MediaRouter_ControllerText_Primary_Light=0x7f0a000e;
public static int Widget_MediaRouter_ControllerText_Secondary=0x7f0a000f;
public static int Widget_MediaRouter_ControllerText_Secondary_Dark=0x7f0a0010;
public static int Widget_MediaRouter_ControllerText_Secondary_Light=0x7f0a0011;
public static int Widget_MediaRouter_ControllerText_Title=0x7f0a0012;
public static int Widget_MediaRouter_ControllerText_Title_Dark=0x7f0a0013;
public static int Widget_MediaRouter_ControllerText_Title_Light=0x7f0a0014;
public static int Widget_MediaRouter_Light_MediaRouteButton=0x7f0a0015;
public static int Widget_MediaRouter_MediaRouteButton=0x7f0a0016;
}
public static final class styleable {
/** Attributes that can be used with a ActionBar.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ActionBar_background android.support.v7.mediarouter:background}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_backgroundSplit android.support.v7.mediarouter:backgroundSplit}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_backgroundStacked android.support.v7.mediarouter:backgroundStacked}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_contentInsetEnd android.support.v7.mediarouter:contentInsetEnd}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_contentInsetLeft android.support.v7.mediarouter:contentInsetLeft}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_contentInsetRight android.support.v7.mediarouter:contentInsetRight}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_contentInsetStart android.support.v7.mediarouter:contentInsetStart}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_customNavigationLayout android.support.v7.mediarouter:customNavigationLayout}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_displayOptions android.support.v7.mediarouter:displayOptions}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_divider android.support.v7.mediarouter:divider}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_elevation android.support.v7.mediarouter:elevation}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_height android.support.v7.mediarouter:height}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_hideOnContentScroll android.support.v7.mediarouter:hideOnContentScroll}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_homeAsUpIndicator android.support.v7.mediarouter:homeAsUpIndicator}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_homeLayout android.support.v7.mediarouter:homeLayout}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_icon android.support.v7.mediarouter:icon}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_indeterminateProgressStyle android.support.v7.mediarouter:indeterminateProgressStyle}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_itemPadding android.support.v7.mediarouter:itemPadding}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_logo android.support.v7.mediarouter:logo}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_navigationMode android.support.v7.mediarouter:navigationMode}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_popupTheme android.support.v7.mediarouter:popupTheme}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_progressBarPadding android.support.v7.mediarouter:progressBarPadding}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_progressBarStyle android.support.v7.mediarouter:progressBarStyle}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_subtitle android.support.v7.mediarouter:subtitle}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_subtitleTextStyle android.support.v7.mediarouter:subtitleTextStyle}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_title android.support.v7.mediarouter:title}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_titleTextStyle android.support.v7.mediarouter:titleTextStyle}</code></td><td></td></tr>
</table>
@see #ActionBar_background
@see #ActionBar_backgroundSplit
@see #ActionBar_backgroundStacked
@see #ActionBar_contentInsetEnd
@see #ActionBar_contentInsetLeft
@see #ActionBar_contentInsetRight
@see #ActionBar_contentInsetStart
@see #ActionBar_customNavigationLayout
@see #ActionBar_displayOptions
@see #ActionBar_divider
@see #ActionBar_elevation
@see #ActionBar_height
@see #ActionBar_hideOnContentScroll
@see #ActionBar_homeAsUpIndicator
@see #ActionBar_homeLayout
@see #ActionBar_icon
@see #ActionBar_indeterminateProgressStyle
@see #ActionBar_itemPadding
@see #ActionBar_logo
@see #ActionBar_navigationMode
@see #ActionBar_popupTheme
@see #ActionBar_progressBarPadding
@see #ActionBar_progressBarStyle
@see #ActionBar_subtitle
@see #ActionBar_subtitleTextStyle
@see #ActionBar_title
@see #ActionBar_titleTextStyle
*/
public static final int[] ActionBar = {
0x7f010027, 0x7f010029, 0x7f01002a, 0x7f01002b,
0x7f01002c, 0x7f01002d, 0x7f01002e, 0x7f01002f,
0x7f010030, 0x7f010031, 0x7f010032, 0x7f010033,
0x7f010034, 0x7f010035, 0x7f010036, 0x7f010037,
0x7f010038, 0x7f010039, 0x7f01003a, 0x7f01003b,
0x7f01003c, 0x7f01003d, 0x7f01003e, 0x7f01003f,
0x7f010040, 0x7f010041, 0x7f01007a
};
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#background}
attribute's value can be found in the {@link #ActionBar} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:background
*/
public static int ActionBar_background = 10;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#backgroundSplit}
attribute's value can be found in the {@link #ActionBar} array.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
@attr name android.support.v7.mediarouter:backgroundSplit
*/
public static int ActionBar_backgroundSplit = 12;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#backgroundStacked}
attribute's value can be found in the {@link #ActionBar} array.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
@attr name android.support.v7.mediarouter:backgroundStacked
*/
public static int ActionBar_backgroundStacked = 11;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#contentInsetEnd}
attribute's value can be found in the {@link #ActionBar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:contentInsetEnd
*/
public static int ActionBar_contentInsetEnd = 21;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#contentInsetLeft}
attribute's value can be found in the {@link #ActionBar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:contentInsetLeft
*/
public static int ActionBar_contentInsetLeft = 22;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#contentInsetRight}
attribute's value can be found in the {@link #ActionBar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:contentInsetRight
*/
public static int ActionBar_contentInsetRight = 23;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#contentInsetStart}
attribute's value can be found in the {@link #ActionBar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:contentInsetStart
*/
public static int ActionBar_contentInsetStart = 20;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#customNavigationLayout}
attribute's value can be found in the {@link #ActionBar} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:customNavigationLayout
*/
public static int ActionBar_customNavigationLayout = 13;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#displayOptions}
attribute's value can be found in the {@link #ActionBar} array.
<p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>none</code></td><td>0</td><td></td></tr>
<tr><td><code>useLogo</code></td><td>0x1</td><td></td></tr>
<tr><td><code>showHome</code></td><td>0x2</td><td></td></tr>
<tr><td><code>homeAsUp</code></td><td>0x4</td><td></td></tr>
<tr><td><code>showTitle</code></td><td>0x8</td><td></td></tr>
<tr><td><code>showCustom</code></td><td>0x10</td><td></td></tr>
<tr><td><code>disableHome</code></td><td>0x20</td><td></td></tr>
</table>
@attr name android.support.v7.mediarouter:displayOptions
*/
public static int ActionBar_displayOptions = 3;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#divider}
attribute's value can be found in the {@link #ActionBar} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:divider
*/
public static int ActionBar_divider = 9;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#elevation}
attribute's value can be found in the {@link #ActionBar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:elevation
*/
public static int ActionBar_elevation = 24;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#height}
attribute's value can be found in the {@link #ActionBar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:height
*/
public static int ActionBar_height = 0;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#hideOnContentScroll}
attribute's value can be found in the {@link #ActionBar} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:hideOnContentScroll
*/
public static int ActionBar_hideOnContentScroll = 19;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#homeAsUpIndicator}
attribute's value can be found in the {@link #ActionBar} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:homeAsUpIndicator
*/
public static int ActionBar_homeAsUpIndicator = 26;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#homeLayout}
attribute's value can be found in the {@link #ActionBar} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:homeLayout
*/
public static int ActionBar_homeLayout = 14;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#icon}
attribute's value can be found in the {@link #ActionBar} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:icon
*/
public static int ActionBar_icon = 7;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#indeterminateProgressStyle}
attribute's value can be found in the {@link #ActionBar} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:indeterminateProgressStyle
*/
public static int ActionBar_indeterminateProgressStyle = 16;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#itemPadding}
attribute's value can be found in the {@link #ActionBar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:itemPadding
*/
public static int ActionBar_itemPadding = 18;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#logo}
attribute's value can be found in the {@link #ActionBar} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:logo
*/
public static int ActionBar_logo = 8;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#navigationMode}
attribute's value can be found in the {@link #ActionBar} array.
<p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>normal</code></td><td>0</td><td></td></tr>
<tr><td><code>listMode</code></td><td>1</td><td></td></tr>
<tr><td><code>tabMode</code></td><td>2</td><td></td></tr>
</table>
@attr name android.support.v7.mediarouter:navigationMode
*/
public static int ActionBar_navigationMode = 2;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#popupTheme}
attribute's value can be found in the {@link #ActionBar} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:popupTheme
*/
public static int ActionBar_popupTheme = 25;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#progressBarPadding}
attribute's value can be found in the {@link #ActionBar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:progressBarPadding
*/
public static int ActionBar_progressBarPadding = 17;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#progressBarStyle}
attribute's value can be found in the {@link #ActionBar} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:progressBarStyle
*/
public static int ActionBar_progressBarStyle = 15;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#subtitle}
attribute's value can be found in the {@link #ActionBar} array.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:subtitle
*/
public static int ActionBar_subtitle = 4;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#subtitleTextStyle}
attribute's value can be found in the {@link #ActionBar} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:subtitleTextStyle
*/
public static int ActionBar_subtitleTextStyle = 6;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#title}
attribute's value can be found in the {@link #ActionBar} array.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:title
*/
public static int ActionBar_title = 1;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#titleTextStyle}
attribute's value can be found in the {@link #ActionBar} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:titleTextStyle
*/
public static int ActionBar_titleTextStyle = 5;
/** Attributes that can be used with a ActionBarLayout.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ActionBarLayout_android_layout_gravity android:layout_gravity}</code></td><td></td></tr>
</table>
@see #ActionBarLayout_android_layout_gravity
*/
public static final int[] ActionBarLayout = {
0x010100b3
};
/**
<p>This symbol is the offset where the {@link android.R.attr#layout_gravity}
attribute's value can be found in the {@link #ActionBarLayout} array.
@attr name android:layout_gravity
*/
public static int ActionBarLayout_android_layout_gravity = 0;
/** Attributes that can be used with a ActionMenuItemView.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ActionMenuItemView_android_minWidth android:minWidth}</code></td><td></td></tr>
</table>
@see #ActionMenuItemView_android_minWidth
*/
public static final int[] ActionMenuItemView = {
0x0101013f
};
/**
<p>This symbol is the offset where the {@link android.R.attr#minWidth}
attribute's value can be found in the {@link #ActionMenuItemView} array.
@attr name android:minWidth
*/
public static int ActionMenuItemView_android_minWidth = 0;
/** Attributes that can be used with a ActionMenuView.
*/
public static final int[] ActionMenuView = {
};
/** Attributes that can be used with a ActionMode.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ActionMode_background android.support.v7.mediarouter:background}</code></td><td></td></tr>
<tr><td><code>{@link #ActionMode_backgroundSplit android.support.v7.mediarouter:backgroundSplit}</code></td><td></td></tr>
<tr><td><code>{@link #ActionMode_closeItemLayout android.support.v7.mediarouter:closeItemLayout}</code></td><td></td></tr>
<tr><td><code>{@link #ActionMode_height android.support.v7.mediarouter:height}</code></td><td></td></tr>
<tr><td><code>{@link #ActionMode_subtitleTextStyle android.support.v7.mediarouter:subtitleTextStyle}</code></td><td></td></tr>
<tr><td><code>{@link #ActionMode_titleTextStyle android.support.v7.mediarouter:titleTextStyle}</code></td><td></td></tr>
</table>
@see #ActionMode_background
@see #ActionMode_backgroundSplit
@see #ActionMode_closeItemLayout
@see #ActionMode_height
@see #ActionMode_subtitleTextStyle
@see #ActionMode_titleTextStyle
*/
public static final int[] ActionMode = {
0x7f010027, 0x7f01002d, 0x7f01002e, 0x7f010032,
0x7f010034, 0x7f010042
};
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#background}
attribute's value can be found in the {@link #ActionMode} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:background
*/
public static int ActionMode_background = 3;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#backgroundSplit}
attribute's value can be found in the {@link #ActionMode} array.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
@attr name android.support.v7.mediarouter:backgroundSplit
*/
public static int ActionMode_backgroundSplit = 4;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#closeItemLayout}
attribute's value can be found in the {@link #ActionMode} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:closeItemLayout
*/
public static int ActionMode_closeItemLayout = 5;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#height}
attribute's value can be found in the {@link #ActionMode} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:height
*/
public static int ActionMode_height = 0;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#subtitleTextStyle}
attribute's value can be found in the {@link #ActionMode} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:subtitleTextStyle
*/
public static int ActionMode_subtitleTextStyle = 2;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#titleTextStyle}
attribute's value can be found in the {@link #ActionMode} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:titleTextStyle
*/
public static int ActionMode_titleTextStyle = 1;
/** Attributes that can be used with a ActivityChooserView.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ActivityChooserView_expandActivityOverflowButtonDrawable android.support.v7.mediarouter:expandActivityOverflowButtonDrawable}</code></td><td></td></tr>
<tr><td><code>{@link #ActivityChooserView_initialActivityCount android.support.v7.mediarouter:initialActivityCount}</code></td><td></td></tr>
</table>
@see #ActivityChooserView_expandActivityOverflowButtonDrawable
@see #ActivityChooserView_initialActivityCount
*/
public static final int[] ActivityChooserView = {
0x7f010043, 0x7f010044
};
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#expandActivityOverflowButtonDrawable}
attribute's value can be found in the {@link #ActivityChooserView} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:expandActivityOverflowButtonDrawable
*/
public static int ActivityChooserView_expandActivityOverflowButtonDrawable = 1;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#initialActivityCount}
attribute's value can be found in the {@link #ActivityChooserView} array.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:initialActivityCount
*/
public static int ActivityChooserView_initialActivityCount = 0;
/** Attributes that can be used with a AlertDialog.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #AlertDialog_android_layout android:layout}</code></td><td></td></tr>
<tr><td><code>{@link #AlertDialog_buttonPanelSideLayout android.support.v7.mediarouter:buttonPanelSideLayout}</code></td><td></td></tr>
<tr><td><code>{@link #AlertDialog_listItemLayout android.support.v7.mediarouter:listItemLayout}</code></td><td></td></tr>
<tr><td><code>{@link #AlertDialog_listLayout android.support.v7.mediarouter:listLayout}</code></td><td></td></tr>
<tr><td><code>{@link #AlertDialog_multiChoiceItemLayout android.support.v7.mediarouter:multiChoiceItemLayout}</code></td><td></td></tr>
<tr><td><code>{@link #AlertDialog_singleChoiceItemLayout android.support.v7.mediarouter:singleChoiceItemLayout}</code></td><td></td></tr>
</table>
@see #AlertDialog_android_layout
@see #AlertDialog_buttonPanelSideLayout
@see #AlertDialog_listItemLayout
@see #AlertDialog_listLayout
@see #AlertDialog_multiChoiceItemLayout
@see #AlertDialog_singleChoiceItemLayout
*/
public static final int[] AlertDialog = {
0x010100f2, 0x7f010045, 0x7f010046, 0x7f010047,
0x7f010048, 0x7f010049
};
/**
<p>This symbol is the offset where the {@link android.R.attr#layout}
attribute's value can be found in the {@link #AlertDialog} array.
@attr name android:layout
*/
public static int AlertDialog_android_layout = 0;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#buttonPanelSideLayout}
attribute's value can be found in the {@link #AlertDialog} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:buttonPanelSideLayout
*/
public static int AlertDialog_buttonPanelSideLayout = 1;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#listItemLayout}
attribute's value can be found in the {@link #AlertDialog} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:listItemLayout
*/
public static int AlertDialog_listItemLayout = 5;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#listLayout}
attribute's value can be found in the {@link #AlertDialog} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:listLayout
*/
public static int AlertDialog_listLayout = 2;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#multiChoiceItemLayout}
attribute's value can be found in the {@link #AlertDialog} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:multiChoiceItemLayout
*/
public static int AlertDialog_multiChoiceItemLayout = 3;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#singleChoiceItemLayout}
attribute's value can be found in the {@link #AlertDialog} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:singleChoiceItemLayout
*/
public static int AlertDialog_singleChoiceItemLayout = 4;
/** Attributes that can be used with a AppBarLayout.
<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 #AppBarLayout_android_background android:background}</code></td><td></td></tr>
<tr><td><code>{@link #AppBarLayout_elevation android.support.v7.mediarouter:elevation}</code></td><td></td></tr>
<tr><td><code>{@link #AppBarLayout_expanded android.support.v7.mediarouter:expanded}</code></td><td></td></tr>
</table>
@see #AppBarLayout_android_background
@see #AppBarLayout_elevation
@see #AppBarLayout_expanded
*/
public static final int[] AppBarLayout = {
0x010100d4, 0x7f010040, 0x7f0100f7
};
/**
<p>This symbol is the offset where the {@link android.R.attr#background}
attribute's value can be found in the {@link #AppBarLayout} array.
@attr name android:background
*/
public static int AppBarLayout_android_background = 0;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#elevation}
attribute's value can be found in the {@link #AppBarLayout} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:elevation
*/
public static int AppBarLayout_elevation = 1;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#expanded}
attribute's value can be found in the {@link #AppBarLayout} 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 android.support.v7.mediarouter:expanded
*/
public static int AppBarLayout_expanded = 2;
/** Attributes that can be used with a AppBarLayout_LayoutParams.
<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 #AppBarLayout_LayoutParams_layout_scrollFlags android.support.v7.mediarouter:layout_scrollFlags}</code></td><td></td></tr>
<tr><td><code>{@link #AppBarLayout_LayoutParams_layout_scrollInterpolator android.support.v7.mediarouter:layout_scrollInterpolator}</code></td><td></td></tr>
</table>
@see #AppBarLayout_LayoutParams_layout_scrollFlags
@see #AppBarLayout_LayoutParams_layout_scrollInterpolator
*/
public static final int[] AppBarLayout_LayoutParams = {
0x7f0100f8, 0x7f0100f9
};
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#layout_scrollFlags}
attribute's value can be found in the {@link #AppBarLayout_LayoutParams} array.
<p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>scroll</code></td><td>0x1</td><td></td></tr>
<tr><td><code>exitUntilCollapsed</code></td><td>0x2</td><td></td></tr>
<tr><td><code>enterAlways</code></td><td>0x4</td><td></td></tr>
<tr><td><code>enterAlwaysCollapsed</code></td><td>0x8</td><td></td></tr>
<tr><td><code>snap</code></td><td>0x10</td><td></td></tr>
</table>
@attr name android.support.v7.mediarouter:layout_scrollFlags
*/
public static int AppBarLayout_LayoutParams_layout_scrollFlags = 0;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#layout_scrollInterpolator}
attribute's value can be found in the {@link #AppBarLayout_LayoutParams} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:layout_scrollInterpolator
*/
public static int AppBarLayout_LayoutParams_layout_scrollInterpolator = 1;
/** Attributes that can be used with a AppCompatImageView.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #AppCompatImageView_android_src android:src}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatImageView_srcCompat android.support.v7.mediarouter:srcCompat}</code></td><td></td></tr>
</table>
@see #AppCompatImageView_android_src
@see #AppCompatImageView_srcCompat
*/
public static final int[] AppCompatImageView = {
0x01010119, 0x7f01004a
};
/**
<p>This symbol is the offset where the {@link android.R.attr#src}
attribute's value can be found in the {@link #AppCompatImageView} array.
@attr name android:src
*/
public static int AppCompatImageView_android_src = 0;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#srcCompat}
attribute's value can be found in the {@link #AppCompatImageView} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:srcCompat
*/
public static int AppCompatImageView_srcCompat = 1;
/** Attributes that can be used with a AppCompatTextView.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #AppCompatTextView_android_textAppearance android:textAppearance}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTextView_textAllCaps android.support.v7.mediarouter:textAllCaps}</code></td><td></td></tr>
</table>
@see #AppCompatTextView_android_textAppearance
@see #AppCompatTextView_textAllCaps
*/
public static final int[] AppCompatTextView = {
0x01010034, 0x7f01004b
};
/**
<p>This symbol is the offset where the {@link android.R.attr#textAppearance}
attribute's value can be found in the {@link #AppCompatTextView} array.
@attr name android:textAppearance
*/
public static int AppCompatTextView_android_textAppearance = 0;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#textAllCaps}
attribute's value can be found in the {@link #AppCompatTextView} array.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a boolean value, either "<code>true</code>" or "<code>false</code>".
@attr name android.support.v7.mediarouter:textAllCaps
*/
public static int AppCompatTextView_textAllCaps = 1;
/** Attributes that can be used with a AppCompatTheme.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #AppCompatTheme_actionBarDivider android.support.v7.mediarouter:actionBarDivider}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionBarItemBackground android.support.v7.mediarouter:actionBarItemBackground}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionBarPopupTheme android.support.v7.mediarouter:actionBarPopupTheme}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionBarSize android.support.v7.mediarouter:actionBarSize}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionBarSplitStyle android.support.v7.mediarouter:actionBarSplitStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionBarStyle android.support.v7.mediarouter:actionBarStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionBarTabBarStyle android.support.v7.mediarouter:actionBarTabBarStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionBarTabStyle android.support.v7.mediarouter:actionBarTabStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionBarTabTextStyle android.support.v7.mediarouter:actionBarTabTextStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionBarTheme android.support.v7.mediarouter:actionBarTheme}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionBarWidgetTheme android.support.v7.mediarouter:actionBarWidgetTheme}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionButtonStyle android.support.v7.mediarouter:actionButtonStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionDropDownStyle android.support.v7.mediarouter:actionDropDownStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionMenuTextAppearance android.support.v7.mediarouter:actionMenuTextAppearance}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionMenuTextColor android.support.v7.mediarouter:actionMenuTextColor}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionModeBackground android.support.v7.mediarouter:actionModeBackground}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionModeCloseButtonStyle android.support.v7.mediarouter:actionModeCloseButtonStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionModeCloseDrawable android.support.v7.mediarouter:actionModeCloseDrawable}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionModeCopyDrawable android.support.v7.mediarouter:actionModeCopyDrawable}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionModeCutDrawable android.support.v7.mediarouter:actionModeCutDrawable}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionModeFindDrawable android.support.v7.mediarouter:actionModeFindDrawable}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionModePasteDrawable android.support.v7.mediarouter:actionModePasteDrawable}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionModePopupWindowStyle android.support.v7.mediarouter:actionModePopupWindowStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionModeSelectAllDrawable android.support.v7.mediarouter:actionModeSelectAllDrawable}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionModeShareDrawable android.support.v7.mediarouter:actionModeShareDrawable}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionModeSplitBackground android.support.v7.mediarouter:actionModeSplitBackground}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionModeStyle android.support.v7.mediarouter:actionModeStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionModeWebSearchDrawable android.support.v7.mediarouter:actionModeWebSearchDrawable}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionOverflowButtonStyle android.support.v7.mediarouter:actionOverflowButtonStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionOverflowMenuStyle android.support.v7.mediarouter:actionOverflowMenuStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_activityChooserViewStyle android.support.v7.mediarouter:activityChooserViewStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_alertDialogButtonGroupStyle android.support.v7.mediarouter:alertDialogButtonGroupStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_alertDialogCenterButtons android.support.v7.mediarouter:alertDialogCenterButtons}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_alertDialogStyle android.support.v7.mediarouter:alertDialogStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_alertDialogTheme android.support.v7.mediarouter:alertDialogTheme}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_android_windowAnimationStyle android:windowAnimationStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_android_windowIsFloating android:windowIsFloating}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_autoCompleteTextViewStyle android.support.v7.mediarouter:autoCompleteTextViewStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_borderlessButtonStyle android.support.v7.mediarouter:borderlessButtonStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_buttonBarButtonStyle android.support.v7.mediarouter:buttonBarButtonStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_buttonBarNegativeButtonStyle android.support.v7.mediarouter:buttonBarNegativeButtonStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_buttonBarNeutralButtonStyle android.support.v7.mediarouter:buttonBarNeutralButtonStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_buttonBarPositiveButtonStyle android.support.v7.mediarouter:buttonBarPositiveButtonStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_buttonBarStyle android.support.v7.mediarouter:buttonBarStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_buttonStyle android.support.v7.mediarouter:buttonStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_buttonStyleSmall android.support.v7.mediarouter:buttonStyleSmall}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_checkboxStyle android.support.v7.mediarouter:checkboxStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_checkedTextViewStyle android.support.v7.mediarouter:checkedTextViewStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_colorAccent android.support.v7.mediarouter:colorAccent}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_colorButtonNormal android.support.v7.mediarouter:colorButtonNormal}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_colorControlActivated android.support.v7.mediarouter:colorControlActivated}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_colorControlHighlight android.support.v7.mediarouter:colorControlHighlight}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_colorControlNormal android.support.v7.mediarouter:colorControlNormal}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_colorPrimary android.support.v7.mediarouter:colorPrimary}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_colorPrimaryDark android.support.v7.mediarouter:colorPrimaryDark}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_colorSwitchThumbNormal android.support.v7.mediarouter:colorSwitchThumbNormal}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_controlBackground android.support.v7.mediarouter:controlBackground}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_dialogPreferredPadding android.support.v7.mediarouter:dialogPreferredPadding}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_dialogTheme android.support.v7.mediarouter:dialogTheme}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_dividerHorizontal android.support.v7.mediarouter:dividerHorizontal}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_dividerVertical android.support.v7.mediarouter:dividerVertical}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_dropDownListViewStyle android.support.v7.mediarouter:dropDownListViewStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_dropdownListPreferredItemHeight android.support.v7.mediarouter:dropdownListPreferredItemHeight}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_editTextBackground android.support.v7.mediarouter:editTextBackground}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_editTextColor android.support.v7.mediarouter:editTextColor}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_editTextStyle android.support.v7.mediarouter:editTextStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_homeAsUpIndicator android.support.v7.mediarouter:homeAsUpIndicator}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_imageButtonStyle android.support.v7.mediarouter:imageButtonStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_listChoiceBackgroundIndicator android.support.v7.mediarouter:listChoiceBackgroundIndicator}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_listDividerAlertDialog android.support.v7.mediarouter:listDividerAlertDialog}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_listPopupWindowStyle android.support.v7.mediarouter:listPopupWindowStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_listPreferredItemHeight android.support.v7.mediarouter:listPreferredItemHeight}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_listPreferredItemHeightLarge android.support.v7.mediarouter:listPreferredItemHeightLarge}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_listPreferredItemHeightSmall android.support.v7.mediarouter:listPreferredItemHeightSmall}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_listPreferredItemPaddingLeft android.support.v7.mediarouter:listPreferredItemPaddingLeft}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_listPreferredItemPaddingRight android.support.v7.mediarouter:listPreferredItemPaddingRight}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_panelBackground android.support.v7.mediarouter:panelBackground}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_panelMenuListTheme android.support.v7.mediarouter:panelMenuListTheme}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_panelMenuListWidth android.support.v7.mediarouter:panelMenuListWidth}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_popupMenuStyle android.support.v7.mediarouter:popupMenuStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_popupWindowStyle android.support.v7.mediarouter:popupWindowStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_radioButtonStyle android.support.v7.mediarouter:radioButtonStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_ratingBarStyle android.support.v7.mediarouter:ratingBarStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_ratingBarStyleIndicator android.support.v7.mediarouter:ratingBarStyleIndicator}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_ratingBarStyleSmall android.support.v7.mediarouter:ratingBarStyleSmall}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_searchViewStyle android.support.v7.mediarouter:searchViewStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_seekBarStyle android.support.v7.mediarouter:seekBarStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_selectableItemBackground android.support.v7.mediarouter:selectableItemBackground}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_selectableItemBackgroundBorderless android.support.v7.mediarouter:selectableItemBackgroundBorderless}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_spinnerDropDownItemStyle android.support.v7.mediarouter:spinnerDropDownItemStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_spinnerStyle android.support.v7.mediarouter:spinnerStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_switchStyle android.support.v7.mediarouter:switchStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_textAppearanceLargePopupMenu android.support.v7.mediarouter:textAppearanceLargePopupMenu}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_textAppearanceListItem android.support.v7.mediarouter:textAppearanceListItem}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_textAppearanceListItemSmall android.support.v7.mediarouter:textAppearanceListItemSmall}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_textAppearanceSearchResultSubtitle android.support.v7.mediarouter:textAppearanceSearchResultSubtitle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_textAppearanceSearchResultTitle android.support.v7.mediarouter:textAppearanceSearchResultTitle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_textAppearanceSmallPopupMenu android.support.v7.mediarouter:textAppearanceSmallPopupMenu}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_textColorAlertDialogListItem android.support.v7.mediarouter:textColorAlertDialogListItem}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_textColorSearchUrl android.support.v7.mediarouter:textColorSearchUrl}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_toolbarNavigationButtonStyle android.support.v7.mediarouter:toolbarNavigationButtonStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_toolbarStyle android.support.v7.mediarouter:toolbarStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_windowActionBar android.support.v7.mediarouter:windowActionBar}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_windowActionBarOverlay android.support.v7.mediarouter:windowActionBarOverlay}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_windowActionModeOverlay android.support.v7.mediarouter:windowActionModeOverlay}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_windowFixedHeightMajor android.support.v7.mediarouter:windowFixedHeightMajor}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_windowFixedHeightMinor android.support.v7.mediarouter:windowFixedHeightMinor}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_windowFixedWidthMajor android.support.v7.mediarouter:windowFixedWidthMajor}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_windowFixedWidthMinor android.support.v7.mediarouter:windowFixedWidthMinor}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_windowMinWidthMajor android.support.v7.mediarouter:windowMinWidthMajor}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_windowMinWidthMinor android.support.v7.mediarouter:windowMinWidthMinor}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_windowNoTitle android.support.v7.mediarouter:windowNoTitle}</code></td><td></td></tr>
</table>
@see #AppCompatTheme_actionBarDivider
@see #AppCompatTheme_actionBarItemBackground
@see #AppCompatTheme_actionBarPopupTheme
@see #AppCompatTheme_actionBarSize
@see #AppCompatTheme_actionBarSplitStyle
@see #AppCompatTheme_actionBarStyle
@see #AppCompatTheme_actionBarTabBarStyle
@see #AppCompatTheme_actionBarTabStyle
@see #AppCompatTheme_actionBarTabTextStyle
@see #AppCompatTheme_actionBarTheme
@see #AppCompatTheme_actionBarWidgetTheme
@see #AppCompatTheme_actionButtonStyle
@see #AppCompatTheme_actionDropDownStyle
@see #AppCompatTheme_actionMenuTextAppearance
@see #AppCompatTheme_actionMenuTextColor
@see #AppCompatTheme_actionModeBackground
@see #AppCompatTheme_actionModeCloseButtonStyle
@see #AppCompatTheme_actionModeCloseDrawable
@see #AppCompatTheme_actionModeCopyDrawable
@see #AppCompatTheme_actionModeCutDrawable
@see #AppCompatTheme_actionModeFindDrawable
@see #AppCompatTheme_actionModePasteDrawable
@see #AppCompatTheme_actionModePopupWindowStyle
@see #AppCompatTheme_actionModeSelectAllDrawable
@see #AppCompatTheme_actionModeShareDrawable
@see #AppCompatTheme_actionModeSplitBackground
@see #AppCompatTheme_actionModeStyle
@see #AppCompatTheme_actionModeWebSearchDrawable
@see #AppCompatTheme_actionOverflowButtonStyle
@see #AppCompatTheme_actionOverflowMenuStyle
@see #AppCompatTheme_activityChooserViewStyle
@see #AppCompatTheme_alertDialogButtonGroupStyle
@see #AppCompatTheme_alertDialogCenterButtons
@see #AppCompatTheme_alertDialogStyle
@see #AppCompatTheme_alertDialogTheme
@see #AppCompatTheme_android_windowAnimationStyle
@see #AppCompatTheme_android_windowIsFloating
@see #AppCompatTheme_autoCompleteTextViewStyle
@see #AppCompatTheme_borderlessButtonStyle
@see #AppCompatTheme_buttonBarButtonStyle
@see #AppCompatTheme_buttonBarNegativeButtonStyle
@see #AppCompatTheme_buttonBarNeutralButtonStyle
@see #AppCompatTheme_buttonBarPositiveButtonStyle
@see #AppCompatTheme_buttonBarStyle
@see #AppCompatTheme_buttonStyle
@see #AppCompatTheme_buttonStyleSmall
@see #AppCompatTheme_checkboxStyle
@see #AppCompatTheme_checkedTextViewStyle
@see #AppCompatTheme_colorAccent
@see #AppCompatTheme_colorButtonNormal
@see #AppCompatTheme_colorControlActivated
@see #AppCompatTheme_colorControlHighlight
@see #AppCompatTheme_colorControlNormal
@see #AppCompatTheme_colorPrimary
@see #AppCompatTheme_colorPrimaryDark
@see #AppCompatTheme_colorSwitchThumbNormal
@see #AppCompatTheme_controlBackground
@see #AppCompatTheme_dialogPreferredPadding
@see #AppCompatTheme_dialogTheme
@see #AppCompatTheme_dividerHorizontal
@see #AppCompatTheme_dividerVertical
@see #AppCompatTheme_dropDownListViewStyle
@see #AppCompatTheme_dropdownListPreferredItemHeight
@see #AppCompatTheme_editTextBackground
@see #AppCompatTheme_editTextColor
@see #AppCompatTheme_editTextStyle
@see #AppCompatTheme_homeAsUpIndicator
@see #AppCompatTheme_imageButtonStyle
@see #AppCompatTheme_listChoiceBackgroundIndicator
@see #AppCompatTheme_listDividerAlertDialog
@see #AppCompatTheme_listPopupWindowStyle
@see #AppCompatTheme_listPreferredItemHeight
@see #AppCompatTheme_listPreferredItemHeightLarge
@see #AppCompatTheme_listPreferredItemHeightSmall
@see #AppCompatTheme_listPreferredItemPaddingLeft
@see #AppCompatTheme_listPreferredItemPaddingRight
@see #AppCompatTheme_panelBackground
@see #AppCompatTheme_panelMenuListTheme
@see #AppCompatTheme_panelMenuListWidth
@see #AppCompatTheme_popupMenuStyle
@see #AppCompatTheme_popupWindowStyle
@see #AppCompatTheme_radioButtonStyle
@see #AppCompatTheme_ratingBarStyle
@see #AppCompatTheme_ratingBarStyleIndicator
@see #AppCompatTheme_ratingBarStyleSmall
@see #AppCompatTheme_searchViewStyle
@see #AppCompatTheme_seekBarStyle
@see #AppCompatTheme_selectableItemBackground
@see #AppCompatTheme_selectableItemBackgroundBorderless
@see #AppCompatTheme_spinnerDropDownItemStyle
@see #AppCompatTheme_spinnerStyle
@see #AppCompatTheme_switchStyle
@see #AppCompatTheme_textAppearanceLargePopupMenu
@see #AppCompatTheme_textAppearanceListItem
@see #AppCompatTheme_textAppearanceListItemSmall
@see #AppCompatTheme_textAppearanceSearchResultSubtitle
@see #AppCompatTheme_textAppearanceSearchResultTitle
@see #AppCompatTheme_textAppearanceSmallPopupMenu
@see #AppCompatTheme_textColorAlertDialogListItem
@see #AppCompatTheme_textColorSearchUrl
@see #AppCompatTheme_toolbarNavigationButtonStyle
@see #AppCompatTheme_toolbarStyle
@see #AppCompatTheme_windowActionBar
@see #AppCompatTheme_windowActionBarOverlay
@see #AppCompatTheme_windowActionModeOverlay
@see #AppCompatTheme_windowFixedHeightMajor
@see #AppCompatTheme_windowFixedHeightMinor
@see #AppCompatTheme_windowFixedWidthMajor
@see #AppCompatTheme_windowFixedWidthMinor
@see #AppCompatTheme_windowMinWidthMajor
@see #AppCompatTheme_windowMinWidthMinor
@see #AppCompatTheme_windowNoTitle
*/
public static final int[] AppCompatTheme = {
0x01010057, 0x010100ae, 0x7f01004c, 0x7f01004d,
0x7f01004e, 0x7f01004f, 0x7f010050, 0x7f010051,
0x7f010052, 0x7f010053, 0x7f010054, 0x7f010055,
0x7f010056, 0x7f010057, 0x7f010058, 0x7f010059,
0x7f01005a, 0x7f01005b, 0x7f01005c, 0x7f01005d,
0x7f01005e, 0x7f01005f, 0x7f010060, 0x7f010061,
0x7f010062, 0x7f010063, 0x7f010064, 0x7f010065,
0x7f010066, 0x7f010067, 0x7f010068, 0x7f010069,
0x7f01006a, 0x7f01006b, 0x7f01006c, 0x7f01006d,
0x7f01006e, 0x7f01006f, 0x7f010070, 0x7f010071,
0x7f010072, 0x7f010073, 0x7f010074, 0x7f010075,
0x7f010076, 0x7f010077, 0x7f010078, 0x7f010079,
0x7f01007a, 0x7f01007b, 0x7f01007c, 0x7f01007d,
0x7f01007e, 0x7f01007f, 0x7f010080, 0x7f010081,
0x7f010082, 0x7f010083, 0x7f010084, 0x7f010085,
0x7f010086, 0x7f010087, 0x7f010088, 0x7f010089,
0x7f01008a, 0x7f01008b, 0x7f01008c, 0x7f01008d,
0x7f01008e, 0x7f01008f, 0x7f010090, 0x7f010091,
0x7f010092, 0x7f010093, 0x7f010094, 0x7f010095,
0x7f010096, 0x7f010097, 0x7f010098, 0x7f010099,
0x7f01009a, 0x7f01009b, 0x7f01009c, 0x7f01009d,
0x7f01009e, 0x7f01009f, 0x7f0100a0, 0x7f0100a1,
0x7f0100a2, 0x7f0100a3, 0x7f0100a4, 0x7f0100a5,
0x7f0100a6, 0x7f0100a7, 0x7f0100a8, 0x7f0100a9,
0x7f0100aa, 0x7f0100ab, 0x7f0100ac, 0x7f0100ad,
0x7f0100ae, 0x7f0100af, 0x7f0100b0, 0x7f0100b1,
0x7f0100b2, 0x7f0100b3, 0x7f0100b4, 0x7f0100b5,
0x7f0100b6, 0x7f0100b7, 0x7f0100b8, 0x7f0100b9
};
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#actionBarDivider}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:actionBarDivider
*/
public static int AppCompatTheme_actionBarDivider = 23;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#actionBarItemBackground}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:actionBarItemBackground
*/
public static int AppCompatTheme_actionBarItemBackground = 24;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#actionBarPopupTheme}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:actionBarPopupTheme
*/
public static int AppCompatTheme_actionBarPopupTheme = 17;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#actionBarSize}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>May be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>wrap_content</code></td><td>0</td><td></td></tr>
</table>
@attr name android.support.v7.mediarouter:actionBarSize
*/
public static int AppCompatTheme_actionBarSize = 22;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#actionBarSplitStyle}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:actionBarSplitStyle
*/
public static int AppCompatTheme_actionBarSplitStyle = 19;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#actionBarStyle}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:actionBarStyle
*/
public static int AppCompatTheme_actionBarStyle = 18;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#actionBarTabBarStyle}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:actionBarTabBarStyle
*/
public static int AppCompatTheme_actionBarTabBarStyle = 13;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#actionBarTabStyle}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:actionBarTabStyle
*/
public static int AppCompatTheme_actionBarTabStyle = 12;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#actionBarTabTextStyle}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:actionBarTabTextStyle
*/
public static int AppCompatTheme_actionBarTabTextStyle = 14;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#actionBarTheme}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:actionBarTheme
*/
public static int AppCompatTheme_actionBarTheme = 20;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#actionBarWidgetTheme}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:actionBarWidgetTheme
*/
public static int AppCompatTheme_actionBarWidgetTheme = 21;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#actionButtonStyle}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:actionButtonStyle
*/
public static int AppCompatTheme_actionButtonStyle = 49;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#actionDropDownStyle}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:actionDropDownStyle
*/
public static int AppCompatTheme_actionDropDownStyle = 45;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#actionMenuTextAppearance}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:actionMenuTextAppearance
*/
public static int AppCompatTheme_actionMenuTextAppearance = 25;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#actionMenuTextColor}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
@attr name android.support.v7.mediarouter:actionMenuTextColor
*/
public static int AppCompatTheme_actionMenuTextColor = 26;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#actionModeBackground}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:actionModeBackground
*/
public static int AppCompatTheme_actionModeBackground = 29;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#actionModeCloseButtonStyle}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:actionModeCloseButtonStyle
*/
public static int AppCompatTheme_actionModeCloseButtonStyle = 28;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#actionModeCloseDrawable}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:actionModeCloseDrawable
*/
public static int AppCompatTheme_actionModeCloseDrawable = 31;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#actionModeCopyDrawable}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:actionModeCopyDrawable
*/
public static int AppCompatTheme_actionModeCopyDrawable = 33;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#actionModeCutDrawable}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:actionModeCutDrawable
*/
public static int AppCompatTheme_actionModeCutDrawable = 32;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#actionModeFindDrawable}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:actionModeFindDrawable
*/
public static int AppCompatTheme_actionModeFindDrawable = 37;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#actionModePasteDrawable}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:actionModePasteDrawable
*/
public static int AppCompatTheme_actionModePasteDrawable = 34;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#actionModePopupWindowStyle}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:actionModePopupWindowStyle
*/
public static int AppCompatTheme_actionModePopupWindowStyle = 39;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#actionModeSelectAllDrawable}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:actionModeSelectAllDrawable
*/
public static int AppCompatTheme_actionModeSelectAllDrawable = 35;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#actionModeShareDrawable}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:actionModeShareDrawable
*/
public static int AppCompatTheme_actionModeShareDrawable = 36;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#actionModeSplitBackground}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:actionModeSplitBackground
*/
public static int AppCompatTheme_actionModeSplitBackground = 30;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#actionModeStyle}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:actionModeStyle
*/
public static int AppCompatTheme_actionModeStyle = 27;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#actionModeWebSearchDrawable}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:actionModeWebSearchDrawable
*/
public static int AppCompatTheme_actionModeWebSearchDrawable = 38;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#actionOverflowButtonStyle}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:actionOverflowButtonStyle
*/
public static int AppCompatTheme_actionOverflowButtonStyle = 15;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#actionOverflowMenuStyle}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:actionOverflowMenuStyle
*/
public static int AppCompatTheme_actionOverflowMenuStyle = 16;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#activityChooserViewStyle}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:activityChooserViewStyle
*/
public static int AppCompatTheme_activityChooserViewStyle = 57;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#alertDialogButtonGroupStyle}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:alertDialogButtonGroupStyle
*/
public static int AppCompatTheme_alertDialogButtonGroupStyle = 92;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#alertDialogCenterButtons}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:alertDialogCenterButtons
*/
public static int AppCompatTheme_alertDialogCenterButtons = 93;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#alertDialogStyle}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:alertDialogStyle
*/
public static int AppCompatTheme_alertDialogStyle = 91;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#alertDialogTheme}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:alertDialogTheme
*/
public static int AppCompatTheme_alertDialogTheme = 94;
/**
<p>This symbol is the offset where the {@link android.R.attr#windowAnimationStyle}
attribute's value can be found in the {@link #AppCompatTheme} array.
@attr name android:windowAnimationStyle
*/
public static int AppCompatTheme_android_windowAnimationStyle = 1;
/**
<p>This symbol is the offset where the {@link android.R.attr#windowIsFloating}
attribute's value can be found in the {@link #AppCompatTheme} array.
@attr name android:windowIsFloating
*/
public static int AppCompatTheme_android_windowIsFloating = 0;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#autoCompleteTextViewStyle}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:autoCompleteTextViewStyle
*/
public static int AppCompatTheme_autoCompleteTextViewStyle = 99;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#borderlessButtonStyle}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:borderlessButtonStyle
*/
public static int AppCompatTheme_borderlessButtonStyle = 54;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#buttonBarButtonStyle}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:buttonBarButtonStyle
*/
public static int AppCompatTheme_buttonBarButtonStyle = 51;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#buttonBarNegativeButtonStyle}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:buttonBarNegativeButtonStyle
*/
public static int AppCompatTheme_buttonBarNegativeButtonStyle = 97;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#buttonBarNeutralButtonStyle}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:buttonBarNeutralButtonStyle
*/
public static int AppCompatTheme_buttonBarNeutralButtonStyle = 98;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#buttonBarPositiveButtonStyle}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:buttonBarPositiveButtonStyle
*/
public static int AppCompatTheme_buttonBarPositiveButtonStyle = 96;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#buttonBarStyle}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:buttonBarStyle
*/
public static int AppCompatTheme_buttonBarStyle = 50;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#buttonStyle}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:buttonStyle
*/
public static int AppCompatTheme_buttonStyle = 100;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#buttonStyleSmall}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:buttonStyleSmall
*/
public static int AppCompatTheme_buttonStyleSmall = 101;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#checkboxStyle}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:checkboxStyle
*/
public static int AppCompatTheme_checkboxStyle = 102;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#checkedTextViewStyle}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:checkedTextViewStyle
*/
public static int AppCompatTheme_checkedTextViewStyle = 103;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#colorAccent}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:colorAccent
*/
public static int AppCompatTheme_colorAccent = 84;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#colorButtonNormal}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:colorButtonNormal
*/
public static int AppCompatTheme_colorButtonNormal = 88;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#colorControlActivated}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:colorControlActivated
*/
public static int AppCompatTheme_colorControlActivated = 86;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#colorControlHighlight}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:colorControlHighlight
*/
public static int AppCompatTheme_colorControlHighlight = 87;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#colorControlNormal}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:colorControlNormal
*/
public static int AppCompatTheme_colorControlNormal = 85;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#colorPrimary}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:colorPrimary
*/
public static int AppCompatTheme_colorPrimary = 82;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#colorPrimaryDark}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:colorPrimaryDark
*/
public static int AppCompatTheme_colorPrimaryDark = 83;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#colorSwitchThumbNormal}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:colorSwitchThumbNormal
*/
public static int AppCompatTheme_colorSwitchThumbNormal = 89;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#controlBackground}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:controlBackground
*/
public static int AppCompatTheme_controlBackground = 90;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#dialogPreferredPadding}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:dialogPreferredPadding
*/
public static int AppCompatTheme_dialogPreferredPadding = 43;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#dialogTheme}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:dialogTheme
*/
public static int AppCompatTheme_dialogTheme = 42;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#dividerHorizontal}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:dividerHorizontal
*/
public static int AppCompatTheme_dividerHorizontal = 56;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#dividerVertical}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:dividerVertical
*/
public static int AppCompatTheme_dividerVertical = 55;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#dropDownListViewStyle}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:dropDownListViewStyle
*/
public static int AppCompatTheme_dropDownListViewStyle = 74;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#dropdownListPreferredItemHeight}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:dropdownListPreferredItemHeight
*/
public static int AppCompatTheme_dropdownListPreferredItemHeight = 46;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#editTextBackground}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:editTextBackground
*/
public static int AppCompatTheme_editTextBackground = 63;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#editTextColor}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
@attr name android.support.v7.mediarouter:editTextColor
*/
public static int AppCompatTheme_editTextColor = 62;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#editTextStyle}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:editTextStyle
*/
public static int AppCompatTheme_editTextStyle = 104;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#homeAsUpIndicator}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:homeAsUpIndicator
*/
public static int AppCompatTheme_homeAsUpIndicator = 48;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#imageButtonStyle}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:imageButtonStyle
*/
public static int AppCompatTheme_imageButtonStyle = 64;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#listChoiceBackgroundIndicator}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:listChoiceBackgroundIndicator
*/
public static int AppCompatTheme_listChoiceBackgroundIndicator = 81;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#listDividerAlertDialog}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:listDividerAlertDialog
*/
public static int AppCompatTheme_listDividerAlertDialog = 44;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#listPopupWindowStyle}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:listPopupWindowStyle
*/
public static int AppCompatTheme_listPopupWindowStyle = 75;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#listPreferredItemHeight}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:listPreferredItemHeight
*/
public static int AppCompatTheme_listPreferredItemHeight = 69;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#listPreferredItemHeightLarge}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:listPreferredItemHeightLarge
*/
public static int AppCompatTheme_listPreferredItemHeightLarge = 71;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#listPreferredItemHeightSmall}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:listPreferredItemHeightSmall
*/
public static int AppCompatTheme_listPreferredItemHeightSmall = 70;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#listPreferredItemPaddingLeft}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:listPreferredItemPaddingLeft
*/
public static int AppCompatTheme_listPreferredItemPaddingLeft = 72;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#listPreferredItemPaddingRight}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:listPreferredItemPaddingRight
*/
public static int AppCompatTheme_listPreferredItemPaddingRight = 73;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#panelBackground}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:panelBackground
*/
public static int AppCompatTheme_panelBackground = 78;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#panelMenuListTheme}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:panelMenuListTheme
*/
public static int AppCompatTheme_panelMenuListTheme = 80;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#panelMenuListWidth}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:panelMenuListWidth
*/
public static int AppCompatTheme_panelMenuListWidth = 79;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#popupMenuStyle}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:popupMenuStyle
*/
public static int AppCompatTheme_popupMenuStyle = 60;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#popupWindowStyle}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:popupWindowStyle
*/
public static int AppCompatTheme_popupWindowStyle = 61;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#radioButtonStyle}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:radioButtonStyle
*/
public static int AppCompatTheme_radioButtonStyle = 105;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#ratingBarStyle}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:ratingBarStyle
*/
public static int AppCompatTheme_ratingBarStyle = 106;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#ratingBarStyleIndicator}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:ratingBarStyleIndicator
*/
public static int AppCompatTheme_ratingBarStyleIndicator = 107;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#ratingBarStyleSmall}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:ratingBarStyleSmall
*/
public static int AppCompatTheme_ratingBarStyleSmall = 108;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#searchViewStyle}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:searchViewStyle
*/
public static int AppCompatTheme_searchViewStyle = 68;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#seekBarStyle}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:seekBarStyle
*/
public static int AppCompatTheme_seekBarStyle = 109;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#selectableItemBackground}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:selectableItemBackground
*/
public static int AppCompatTheme_selectableItemBackground = 52;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#selectableItemBackgroundBorderless}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:selectableItemBackgroundBorderless
*/
public static int AppCompatTheme_selectableItemBackgroundBorderless = 53;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#spinnerDropDownItemStyle}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:spinnerDropDownItemStyle
*/
public static int AppCompatTheme_spinnerDropDownItemStyle = 47;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#spinnerStyle}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:spinnerStyle
*/
public static int AppCompatTheme_spinnerStyle = 110;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#switchStyle}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:switchStyle
*/
public static int AppCompatTheme_switchStyle = 111;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#textAppearanceLargePopupMenu}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:textAppearanceLargePopupMenu
*/
public static int AppCompatTheme_textAppearanceLargePopupMenu = 40;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#textAppearanceListItem}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:textAppearanceListItem
*/
public static int AppCompatTheme_textAppearanceListItem = 76;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#textAppearanceListItemSmall}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:textAppearanceListItemSmall
*/
public static int AppCompatTheme_textAppearanceListItemSmall = 77;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#textAppearanceSearchResultSubtitle}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:textAppearanceSearchResultSubtitle
*/
public static int AppCompatTheme_textAppearanceSearchResultSubtitle = 66;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#textAppearanceSearchResultTitle}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:textAppearanceSearchResultTitle
*/
public static int AppCompatTheme_textAppearanceSearchResultTitle = 65;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#textAppearanceSmallPopupMenu}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:textAppearanceSmallPopupMenu
*/
public static int AppCompatTheme_textAppearanceSmallPopupMenu = 41;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#textColorAlertDialogListItem}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
@attr name android.support.v7.mediarouter:textColorAlertDialogListItem
*/
public static int AppCompatTheme_textColorAlertDialogListItem = 95;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#textColorSearchUrl}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
@attr name android.support.v7.mediarouter:textColorSearchUrl
*/
public static int AppCompatTheme_textColorSearchUrl = 67;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#toolbarNavigationButtonStyle}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:toolbarNavigationButtonStyle
*/
public static int AppCompatTheme_toolbarNavigationButtonStyle = 59;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#toolbarStyle}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:toolbarStyle
*/
public static int AppCompatTheme_toolbarStyle = 58;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#windowActionBar}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:windowActionBar
*/
public static int AppCompatTheme_windowActionBar = 2;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#windowActionBarOverlay}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:windowActionBarOverlay
*/
public static int AppCompatTheme_windowActionBarOverlay = 4;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#windowActionModeOverlay}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:windowActionModeOverlay
*/
public static int AppCompatTheme_windowActionModeOverlay = 5;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#windowFixedHeightMajor}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:windowFixedHeightMajor
*/
public static int AppCompatTheme_windowFixedHeightMajor = 9;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#windowFixedHeightMinor}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:windowFixedHeightMinor
*/
public static int AppCompatTheme_windowFixedHeightMinor = 7;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#windowFixedWidthMajor}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:windowFixedWidthMajor
*/
public static int AppCompatTheme_windowFixedWidthMajor = 6;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#windowFixedWidthMinor}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:windowFixedWidthMinor
*/
public static int AppCompatTheme_windowFixedWidthMinor = 8;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#windowMinWidthMajor}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:windowMinWidthMajor
*/
public static int AppCompatTheme_windowMinWidthMajor = 10;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#windowMinWidthMinor}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:windowMinWidthMinor
*/
public static int AppCompatTheme_windowMinWidthMinor = 11;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#windowNoTitle}
attribute's value can be found in the {@link #AppCompatTheme} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:windowNoTitle
*/
public static int AppCompatTheme_windowNoTitle = 3;
/** Attributes that can be used with a BottomSheetBehavior_Params.
<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 #BottomSheetBehavior_Params_behavior_hideable android.support.v7.mediarouter:behavior_hideable}</code></td><td></td></tr>
<tr><td><code>{@link #BottomSheetBehavior_Params_behavior_peekHeight android.support.v7.mediarouter:behavior_peekHeight}</code></td><td></td></tr>
</table>
@see #BottomSheetBehavior_Params_behavior_hideable
@see #BottomSheetBehavior_Params_behavior_peekHeight
*/
public static final int[] BottomSheetBehavior_Params = {
0x7f0100fa, 0x7f0100fb
};
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#behavior_hideable}
attribute's value can be found in the {@link #BottomSheetBehavior_Params} 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 android.support.v7.mediarouter:behavior_hideable
*/
public static int BottomSheetBehavior_Params_behavior_hideable = 1;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#behavior_peekHeight}
attribute's value can be found in the {@link #BottomSheetBehavior_Params} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:behavior_peekHeight
*/
public static int BottomSheetBehavior_Params_behavior_peekHeight = 0;
/** Attributes that can be used with a ButtonBarLayout.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ButtonBarLayout_allowStacking android.support.v7.mediarouter:allowStacking}</code></td><td></td></tr>
</table>
@see #ButtonBarLayout_allowStacking
*/
public static final int[] ButtonBarLayout = {
0x7f0100ba
};
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#allowStacking}
attribute's value can be found in the {@link #ButtonBarLayout} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:allowStacking
*/
public static int ButtonBarLayout_allowStacking = 0;
/** Attributes that can be used with a CardView.
<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 #CardView_android_minHeight android:minHeight}</code></td><td></td></tr>
<tr><td><code>{@link #CardView_android_minWidth android:minWidth}</code></td><td></td></tr>
<tr><td><code>{@link #CardView_cardBackgroundColor android.support.v7.mediarouter:cardBackgroundColor}</code></td><td></td></tr>
<tr><td><code>{@link #CardView_cardCornerRadius android.support.v7.mediarouter:cardCornerRadius}</code></td><td></td></tr>
<tr><td><code>{@link #CardView_cardElevation android.support.v7.mediarouter:cardElevation}</code></td><td></td></tr>
<tr><td><code>{@link #CardView_cardMaxElevation android.support.v7.mediarouter:cardMaxElevation}</code></td><td></td></tr>
<tr><td><code>{@link #CardView_cardPreventCornerOverlap android.support.v7.mediarouter:cardPreventCornerOverlap}</code></td><td></td></tr>
<tr><td><code>{@link #CardView_cardUseCompatPadding android.support.v7.mediarouter:cardUseCompatPadding}</code></td><td></td></tr>
<tr><td><code>{@link #CardView_contentPadding android.support.v7.mediarouter:contentPadding}</code></td><td></td></tr>
<tr><td><code>{@link #CardView_contentPaddingBottom android.support.v7.mediarouter:contentPaddingBottom}</code></td><td></td></tr>
<tr><td><code>{@link #CardView_contentPaddingLeft android.support.v7.mediarouter:contentPaddingLeft}</code></td><td></td></tr>
<tr><td><code>{@link #CardView_contentPaddingRight android.support.v7.mediarouter:contentPaddingRight}</code></td><td></td></tr>
<tr><td><code>{@link #CardView_contentPaddingTop android.support.v7.mediarouter:contentPaddingTop}</code></td><td></td></tr>
</table>
@see #CardView_android_minHeight
@see #CardView_android_minWidth
@see #CardView_cardBackgroundColor
@see #CardView_cardCornerRadius
@see #CardView_cardElevation
@see #CardView_cardMaxElevation
@see #CardView_cardPreventCornerOverlap
@see #CardView_cardUseCompatPadding
@see #CardView_contentPadding
@see #CardView_contentPaddingBottom
@see #CardView_contentPaddingLeft
@see #CardView_contentPaddingRight
@see #CardView_contentPaddingTop
*/
public static final int[] CardView = {
0x0101013f, 0x01010140, 0x7f01001b, 0x7f01001c,
0x7f01001d, 0x7f01001e, 0x7f01001f, 0x7f010020,
0x7f010021, 0x7f010022, 0x7f010023, 0x7f010024,
0x7f010025
};
/**
<p>This symbol is the offset where the {@link android.R.attr#minHeight}
attribute's value can be found in the {@link #CardView} array.
@attr name android:minHeight
*/
public static int CardView_android_minHeight = 1;
/**
<p>This symbol is the offset where the {@link android.R.attr#minWidth}
attribute's value can be found in the {@link #CardView} array.
@attr name android:minWidth
*/
public static int CardView_android_minWidth = 0;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#cardBackgroundColor}
attribute's value can be found in the {@link #CardView} array.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:cardBackgroundColor
*/
public static int CardView_cardBackgroundColor = 2;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#cardCornerRadius}
attribute's value can be found in the {@link #CardView} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:cardCornerRadius
*/
public static int CardView_cardCornerRadius = 3;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#cardElevation}
attribute's value can be found in the {@link #CardView} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:cardElevation
*/
public static int CardView_cardElevation = 4;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#cardMaxElevation}
attribute's value can be found in the {@link #CardView} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:cardMaxElevation
*/
public static int CardView_cardMaxElevation = 5;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#cardPreventCornerOverlap}
attribute's value can be found in the {@link #CardView} 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 android.support.v7.mediarouter:cardPreventCornerOverlap
*/
public static int CardView_cardPreventCornerOverlap = 7;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#cardUseCompatPadding}
attribute's value can be found in the {@link #CardView} 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 android.support.v7.mediarouter:cardUseCompatPadding
*/
public static int CardView_cardUseCompatPadding = 6;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#contentPadding}
attribute's value can be found in the {@link #CardView} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:contentPadding
*/
public static int CardView_contentPadding = 8;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#contentPaddingBottom}
attribute's value can be found in the {@link #CardView} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:contentPaddingBottom
*/
public static int CardView_contentPaddingBottom = 12;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#contentPaddingLeft}
attribute's value can be found in the {@link #CardView} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:contentPaddingLeft
*/
public static int CardView_contentPaddingLeft = 9;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#contentPaddingRight}
attribute's value can be found in the {@link #CardView} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:contentPaddingRight
*/
public static int CardView_contentPaddingRight = 10;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#contentPaddingTop}
attribute's value can be found in the {@link #CardView} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:contentPaddingTop
*/
public static int CardView_contentPaddingTop = 11;
/** Attributes that can be used with a CollapsingAppBarLayout_LayoutParams.
<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 #CollapsingAppBarLayout_LayoutParams_layout_collapseMode android.support.v7.mediarouter:layout_collapseMode}</code></td><td></td></tr>
<tr><td><code>{@link #CollapsingAppBarLayout_LayoutParams_layout_collapseParallaxMultiplier android.support.v7.mediarouter:layout_collapseParallaxMultiplier}</code></td><td></td></tr>
</table>
@see #CollapsingAppBarLayout_LayoutParams_layout_collapseMode
@see #CollapsingAppBarLayout_LayoutParams_layout_collapseParallaxMultiplier
*/
public static final int[] CollapsingAppBarLayout_LayoutParams = {
0x7f0100fc, 0x7f0100fd
};
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#layout_collapseMode}
attribute's value can be found in the {@link #CollapsingAppBarLayout_LayoutParams} array.
<p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>none</code></td><td>0</td><td></td></tr>
<tr><td><code>pin</code></td><td>1</td><td></td></tr>
<tr><td><code>parallax</code></td><td>2</td><td></td></tr>
</table>
@attr name android.support.v7.mediarouter:layout_collapseMode
*/
public static int CollapsingAppBarLayout_LayoutParams_layout_collapseMode = 0;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#layout_collapseParallaxMultiplier}
attribute's value can be found in the {@link #CollapsingAppBarLayout_LayoutParams} array.
<p>Must be a floating point value, such as "<code>1.2</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:layout_collapseParallaxMultiplier
*/
public static int CollapsingAppBarLayout_LayoutParams_layout_collapseParallaxMultiplier = 1;
/** Attributes that can be used with a CollapsingToolbarLayout.
<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 #CollapsingToolbarLayout_collapsedTitleGravity android.support.v7.mediarouter:collapsedTitleGravity}</code></td><td></td></tr>
<tr><td><code>{@link #CollapsingToolbarLayout_collapsedTitleTextAppearance android.support.v7.mediarouter:collapsedTitleTextAppearance}</code></td><td></td></tr>
<tr><td><code>{@link #CollapsingToolbarLayout_contentScrim android.support.v7.mediarouter:contentScrim}</code></td><td></td></tr>
<tr><td><code>{@link #CollapsingToolbarLayout_expandedTitleGravity android.support.v7.mediarouter:expandedTitleGravity}</code></td><td></td></tr>
<tr><td><code>{@link #CollapsingToolbarLayout_expandedTitleMargin android.support.v7.mediarouter:expandedTitleMargin}</code></td><td></td></tr>
<tr><td><code>{@link #CollapsingToolbarLayout_expandedTitleMarginBottom android.support.v7.mediarouter:expandedTitleMarginBottom}</code></td><td></td></tr>
<tr><td><code>{@link #CollapsingToolbarLayout_expandedTitleMarginEnd android.support.v7.mediarouter:expandedTitleMarginEnd}</code></td><td></td></tr>
<tr><td><code>{@link #CollapsingToolbarLayout_expandedTitleMarginStart android.support.v7.mediarouter:expandedTitleMarginStart}</code></td><td></td></tr>
<tr><td><code>{@link #CollapsingToolbarLayout_expandedTitleMarginTop android.support.v7.mediarouter:expandedTitleMarginTop}</code></td><td></td></tr>
<tr><td><code>{@link #CollapsingToolbarLayout_expandedTitleTextAppearance android.support.v7.mediarouter:expandedTitleTextAppearance}</code></td><td></td></tr>
<tr><td><code>{@link #CollapsingToolbarLayout_statusBarScrim android.support.v7.mediarouter:statusBarScrim}</code></td><td></td></tr>
<tr><td><code>{@link #CollapsingToolbarLayout_title android.support.v7.mediarouter:title}</code></td><td></td></tr>
<tr><td><code>{@link #CollapsingToolbarLayout_titleEnabled android.support.v7.mediarouter:titleEnabled}</code></td><td></td></tr>
<tr><td><code>{@link #CollapsingToolbarLayout_toolbarId android.support.v7.mediarouter:toolbarId}</code></td><td></td></tr>
</table>
@see #CollapsingToolbarLayout_collapsedTitleGravity
@see #CollapsingToolbarLayout_collapsedTitleTextAppearance
@see #CollapsingToolbarLayout_contentScrim
@see #CollapsingToolbarLayout_expandedTitleGravity
@see #CollapsingToolbarLayout_expandedTitleMargin
@see #CollapsingToolbarLayout_expandedTitleMarginBottom
@see #CollapsingToolbarLayout_expandedTitleMarginEnd
@see #CollapsingToolbarLayout_expandedTitleMarginStart
@see #CollapsingToolbarLayout_expandedTitleMarginTop
@see #CollapsingToolbarLayout_expandedTitleTextAppearance
@see #CollapsingToolbarLayout_statusBarScrim
@see #CollapsingToolbarLayout_title
@see #CollapsingToolbarLayout_titleEnabled
@see #CollapsingToolbarLayout_toolbarId
*/
public static final int[] CollapsingToolbarLayout = {
0x7f010029, 0x7f0100fe, 0x7f0100ff, 0x7f010100,
0x7f010101, 0x7f010102, 0x7f010103, 0x7f010104,
0x7f010105, 0x7f010106, 0x7f010107, 0x7f010108,
0x7f010109, 0x7f01010a
};
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#collapsedTitleGravity}
attribute's value can be found in the {@link #CollapsingToolbarLayout} array.
<p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>top</code></td><td>0x30</td><td></td></tr>
<tr><td><code>bottom</code></td><td>0x50</td><td></td></tr>
<tr><td><code>left</code></td><td>0x03</td><td></td></tr>
<tr><td><code>right</code></td><td>0x05</td><td></td></tr>
<tr><td><code>center_vertical</code></td><td>0x10</td><td></td></tr>
<tr><td><code>fill_vertical</code></td><td>0x70</td><td></td></tr>
<tr><td><code>center_horizontal</code></td><td>0x01</td><td></td></tr>
<tr><td><code>center</code></td><td>0x11</td><td></td></tr>
<tr><td><code>start</code></td><td>0x00800003</td><td></td></tr>
<tr><td><code>end</code></td><td>0x00800005</td><td></td></tr>
</table>
@attr name android.support.v7.mediarouter:collapsedTitleGravity
*/
public static int CollapsingToolbarLayout_collapsedTitleGravity = 11;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#collapsedTitleTextAppearance}
attribute's value can be found in the {@link #CollapsingToolbarLayout} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:collapsedTitleTextAppearance
*/
public static int CollapsingToolbarLayout_collapsedTitleTextAppearance = 7;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#contentScrim}
attribute's value can be found in the {@link #CollapsingToolbarLayout} array.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:contentScrim
*/
public static int CollapsingToolbarLayout_contentScrim = 8;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#expandedTitleGravity}
attribute's value can be found in the {@link #CollapsingToolbarLayout} array.
<p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>top</code></td><td>0x30</td><td></td></tr>
<tr><td><code>bottom</code></td><td>0x50</td><td></td></tr>
<tr><td><code>left</code></td><td>0x03</td><td></td></tr>
<tr><td><code>right</code></td><td>0x05</td><td></td></tr>
<tr><td><code>center_vertical</code></td><td>0x10</td><td></td></tr>
<tr><td><code>fill_vertical</code></td><td>0x70</td><td></td></tr>
<tr><td><code>center_horizontal</code></td><td>0x01</td><td></td></tr>
<tr><td><code>center</code></td><td>0x11</td><td></td></tr>
<tr><td><code>start</code></td><td>0x00800003</td><td></td></tr>
<tr><td><code>end</code></td><td>0x00800005</td><td></td></tr>
</table>
@attr name android.support.v7.mediarouter:expandedTitleGravity
*/
public static int CollapsingToolbarLayout_expandedTitleGravity = 12;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#expandedTitleMargin}
attribute's value can be found in the {@link #CollapsingToolbarLayout} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:expandedTitleMargin
*/
public static int CollapsingToolbarLayout_expandedTitleMargin = 1;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#expandedTitleMarginBottom}
attribute's value can be found in the {@link #CollapsingToolbarLayout} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:expandedTitleMarginBottom
*/
public static int CollapsingToolbarLayout_expandedTitleMarginBottom = 5;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#expandedTitleMarginEnd}
attribute's value can be found in the {@link #CollapsingToolbarLayout} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:expandedTitleMarginEnd
*/
public static int CollapsingToolbarLayout_expandedTitleMarginEnd = 4;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#expandedTitleMarginStart}
attribute's value can be found in the {@link #CollapsingToolbarLayout} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:expandedTitleMarginStart
*/
public static int CollapsingToolbarLayout_expandedTitleMarginStart = 2;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#expandedTitleMarginTop}
attribute's value can be found in the {@link #CollapsingToolbarLayout} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:expandedTitleMarginTop
*/
public static int CollapsingToolbarLayout_expandedTitleMarginTop = 3;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#expandedTitleTextAppearance}
attribute's value can be found in the {@link #CollapsingToolbarLayout} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:expandedTitleTextAppearance
*/
public static int CollapsingToolbarLayout_expandedTitleTextAppearance = 6;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#statusBarScrim}
attribute's value can be found in the {@link #CollapsingToolbarLayout} array.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:statusBarScrim
*/
public static int CollapsingToolbarLayout_statusBarScrim = 9;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#title}
attribute's value can be found in the {@link #CollapsingToolbarLayout} array.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:title
*/
public static int CollapsingToolbarLayout_title = 0;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#titleEnabled}
attribute's value can be found in the {@link #CollapsingToolbarLayout} 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 android.support.v7.mediarouter:titleEnabled
*/
public static int CollapsingToolbarLayout_titleEnabled = 13;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#toolbarId}
attribute's value can be found in the {@link #CollapsingToolbarLayout} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:toolbarId
*/
public static int CollapsingToolbarLayout_toolbarId = 10;
/** Attributes that can be used with a CompoundButton.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #CompoundButton_android_button android:button}</code></td><td></td></tr>
<tr><td><code>{@link #CompoundButton_buttonTint android.support.v7.mediarouter:buttonTint}</code></td><td></td></tr>
<tr><td><code>{@link #CompoundButton_buttonTintMode android.support.v7.mediarouter:buttonTintMode}</code></td><td></td></tr>
</table>
@see #CompoundButton_android_button
@see #CompoundButton_buttonTint
@see #CompoundButton_buttonTintMode
*/
public static final int[] CompoundButton = {
0x01010107, 0x7f0100bb, 0x7f0100bc
};
/**
<p>This symbol is the offset where the {@link android.R.attr#button}
attribute's value can be found in the {@link #CompoundButton} array.
@attr name android:button
*/
public static int CompoundButton_android_button = 0;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#buttonTint}
attribute's value can be found in the {@link #CompoundButton} array.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:buttonTint
*/
public static int CompoundButton_buttonTint = 1;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#buttonTintMode}
attribute's value can be found in the {@link #CompoundButton} array.
<p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>src_over</code></td><td>3</td><td></td></tr>
<tr><td><code>src_in</code></td><td>5</td><td></td></tr>
<tr><td><code>src_atop</code></td><td>9</td><td></td></tr>
<tr><td><code>multiply</code></td><td>14</td><td></td></tr>
<tr><td><code>screen</code></td><td>15</td><td></td></tr>
</table>
@attr name android.support.v7.mediarouter:buttonTintMode
*/
public static int CompoundButton_buttonTintMode = 2;
/** Attributes that can be used with a CoordinatorLayout.
<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 #CoordinatorLayout_keylines android.support.v7.mediarouter:keylines}</code></td><td></td></tr>
<tr><td><code>{@link #CoordinatorLayout_statusBarBackground android.support.v7.mediarouter:statusBarBackground}</code></td><td></td></tr>
</table>
@see #CoordinatorLayout_keylines
@see #CoordinatorLayout_statusBarBackground
*/
public static final int[] CoordinatorLayout = {
0x7f01010b, 0x7f01010c
};
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#keylines}
attribute's value can be found in the {@link #CoordinatorLayout} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:keylines
*/
public static int CoordinatorLayout_keylines = 0;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#statusBarBackground}
attribute's value can be found in the {@link #CoordinatorLayout} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:statusBarBackground
*/
public static int CoordinatorLayout_statusBarBackground = 1;
/** Attributes that can be used with a CoordinatorLayout_LayoutParams.
<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 #CoordinatorLayout_LayoutParams_android_layout_gravity android:layout_gravity}</code></td><td></td></tr>
<tr><td><code>{@link #CoordinatorLayout_LayoutParams_layout_anchor android.support.v7.mediarouter:layout_anchor}</code></td><td></td></tr>
<tr><td><code>{@link #CoordinatorLayout_LayoutParams_layout_anchorGravity android.support.v7.mediarouter:layout_anchorGravity}</code></td><td></td></tr>
<tr><td><code>{@link #CoordinatorLayout_LayoutParams_layout_behavior android.support.v7.mediarouter:layout_behavior}</code></td><td></td></tr>
<tr><td><code>{@link #CoordinatorLayout_LayoutParams_layout_keyline android.support.v7.mediarouter:layout_keyline}</code></td><td></td></tr>
</table>
@see #CoordinatorLayout_LayoutParams_android_layout_gravity
@see #CoordinatorLayout_LayoutParams_layout_anchor
@see #CoordinatorLayout_LayoutParams_layout_anchorGravity
@see #CoordinatorLayout_LayoutParams_layout_behavior
@see #CoordinatorLayout_LayoutParams_layout_keyline
*/
public static final int[] CoordinatorLayout_LayoutParams = {
0x010100b3, 0x7f01010d, 0x7f01010e, 0x7f01010f,
0x7f010110
};
/**
<p>This symbol is the offset where the {@link android.R.attr#layout_gravity}
attribute's value can be found in the {@link #CoordinatorLayout_LayoutParams} array.
@attr name android:layout_gravity
*/
public static int CoordinatorLayout_LayoutParams_android_layout_gravity = 0;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#layout_anchor}
attribute's value can be found in the {@link #CoordinatorLayout_LayoutParams} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:layout_anchor
*/
public static int CoordinatorLayout_LayoutParams_layout_anchor = 2;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#layout_anchorGravity}
attribute's value can be found in the {@link #CoordinatorLayout_LayoutParams} array.
<p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>top</code></td><td>0x30</td><td></td></tr>
<tr><td><code>bottom</code></td><td>0x50</td><td></td></tr>
<tr><td><code>left</code></td><td>0x03</td><td></td></tr>
<tr><td><code>right</code></td><td>0x05</td><td></td></tr>
<tr><td><code>center_vertical</code></td><td>0x10</td><td></td></tr>
<tr><td><code>fill_vertical</code></td><td>0x70</td><td></td></tr>
<tr><td><code>center_horizontal</code></td><td>0x01</td><td></td></tr>
<tr><td><code>fill_horizontal</code></td><td>0x07</td><td></td></tr>
<tr><td><code>center</code></td><td>0x11</td><td></td></tr>
<tr><td><code>fill</code></td><td>0x77</td><td></td></tr>
<tr><td><code>clip_vertical</code></td><td>0x80</td><td></td></tr>
<tr><td><code>clip_horizontal</code></td><td>0x08</td><td></td></tr>
<tr><td><code>start</code></td><td>0x00800003</td><td></td></tr>
<tr><td><code>end</code></td><td>0x00800005</td><td></td></tr>
</table>
@attr name android.support.v7.mediarouter:layout_anchorGravity
*/
public static int CoordinatorLayout_LayoutParams_layout_anchorGravity = 4;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#layout_behavior}
attribute's value can be found in the {@link #CoordinatorLayout_LayoutParams} array.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:layout_behavior
*/
public static int CoordinatorLayout_LayoutParams_layout_behavior = 1;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#layout_keyline}
attribute's value can be found in the {@link #CoordinatorLayout_LayoutParams} array.
<p>Must be an integer value, such as "<code>100</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:layout_keyline
*/
public static int CoordinatorLayout_LayoutParams_layout_keyline = 3;
/** Attributes that can be used with a DesignTheme.
<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 #DesignTheme_bottomSheetDialogTheme android.support.v7.mediarouter:bottomSheetDialogTheme}</code></td><td></td></tr>
<tr><td><code>{@link #DesignTheme_bottomSheetStyle android.support.v7.mediarouter:bottomSheetStyle}</code></td><td></td></tr>
<tr><td><code>{@link #DesignTheme_textColorError android.support.v7.mediarouter:textColorError}</code></td><td></td></tr>
</table>
@see #DesignTheme_bottomSheetDialogTheme
@see #DesignTheme_bottomSheetStyle
@see #DesignTheme_textColorError
*/
public static final int[] DesignTheme = {
0x7f010111, 0x7f010112, 0x7f010113
};
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#bottomSheetDialogTheme}
attribute's value can be found in the {@link #DesignTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:bottomSheetDialogTheme
*/
public static int DesignTheme_bottomSheetDialogTheme = 0;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#bottomSheetStyle}
attribute's value can be found in the {@link #DesignTheme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:bottomSheetStyle
*/
public static int DesignTheme_bottomSheetStyle = 1;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#textColorError}
attribute's value can be found in the {@link #DesignTheme} array.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:textColorError
*/
public static int DesignTheme_textColorError = 2;
/** Attributes that can be used with a DrawerArrowToggle.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #DrawerArrowToggle_arrowHeadLength android.support.v7.mediarouter:arrowHeadLength}</code></td><td></td></tr>
<tr><td><code>{@link #DrawerArrowToggle_arrowShaftLength android.support.v7.mediarouter:arrowShaftLength}</code></td><td></td></tr>
<tr><td><code>{@link #DrawerArrowToggle_barLength android.support.v7.mediarouter:barLength}</code></td><td></td></tr>
<tr><td><code>{@link #DrawerArrowToggle_color android.support.v7.mediarouter:color}</code></td><td></td></tr>
<tr><td><code>{@link #DrawerArrowToggle_drawableSize android.support.v7.mediarouter:drawableSize}</code></td><td></td></tr>
<tr><td><code>{@link #DrawerArrowToggle_gapBetweenBars android.support.v7.mediarouter:gapBetweenBars}</code></td><td></td></tr>
<tr><td><code>{@link #DrawerArrowToggle_spinBars android.support.v7.mediarouter:spinBars}</code></td><td></td></tr>
<tr><td><code>{@link #DrawerArrowToggle_thickness android.support.v7.mediarouter:thickness}</code></td><td></td></tr>
</table>
@see #DrawerArrowToggle_arrowHeadLength
@see #DrawerArrowToggle_arrowShaftLength
@see #DrawerArrowToggle_barLength
@see #DrawerArrowToggle_color
@see #DrawerArrowToggle_drawableSize
@see #DrawerArrowToggle_gapBetweenBars
@see #DrawerArrowToggle_spinBars
@see #DrawerArrowToggle_thickness
*/
public static final int[] DrawerArrowToggle = {
0x7f0100bd, 0x7f0100be, 0x7f0100bf, 0x7f0100c0,
0x7f0100c1, 0x7f0100c2, 0x7f0100c3, 0x7f0100c4
};
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#arrowHeadLength}
attribute's value can be found in the {@link #DrawerArrowToggle} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:arrowHeadLength
*/
public static int DrawerArrowToggle_arrowHeadLength = 4;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#arrowShaftLength}
attribute's value can be found in the {@link #DrawerArrowToggle} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:arrowShaftLength
*/
public static int DrawerArrowToggle_arrowShaftLength = 5;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#barLength}
attribute's value can be found in the {@link #DrawerArrowToggle} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:barLength
*/
public static int DrawerArrowToggle_barLength = 6;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#color}
attribute's value can be found in the {@link #DrawerArrowToggle} array.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:color
*/
public static int DrawerArrowToggle_color = 0;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#drawableSize}
attribute's value can be found in the {@link #DrawerArrowToggle} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:drawableSize
*/
public static int DrawerArrowToggle_drawableSize = 2;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#gapBetweenBars}
attribute's value can be found in the {@link #DrawerArrowToggle} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:gapBetweenBars
*/
public static int DrawerArrowToggle_gapBetweenBars = 3;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#spinBars}
attribute's value can be found in the {@link #DrawerArrowToggle} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:spinBars
*/
public static int DrawerArrowToggle_spinBars = 1;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#thickness}
attribute's value can be found in the {@link #DrawerArrowToggle} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:thickness
*/
public static int DrawerArrowToggle_thickness = 7;
/** Attributes that can be used with a FloatingActionButton.
<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 #FloatingActionButton_backgroundTint android.support.v7.mediarouter:backgroundTint}</code></td><td></td></tr>
<tr><td><code>{@link #FloatingActionButton_backgroundTintMode android.support.v7.mediarouter:backgroundTintMode}</code></td><td></td></tr>
<tr><td><code>{@link #FloatingActionButton_borderWidth android.support.v7.mediarouter:borderWidth}</code></td><td></td></tr>
<tr><td><code>{@link #FloatingActionButton_elevation android.support.v7.mediarouter:elevation}</code></td><td></td></tr>
<tr><td><code>{@link #FloatingActionButton_fabSize android.support.v7.mediarouter:fabSize}</code></td><td></td></tr>
<tr><td><code>{@link #FloatingActionButton_pressedTranslationZ android.support.v7.mediarouter:pressedTranslationZ}</code></td><td></td></tr>
<tr><td><code>{@link #FloatingActionButton_rippleColor android.support.v7.mediarouter:rippleColor}</code></td><td></td></tr>
<tr><td><code>{@link #FloatingActionButton_useCompatPadding android.support.v7.mediarouter:useCompatPadding}</code></td><td></td></tr>
</table>
@see #FloatingActionButton_backgroundTint
@see #FloatingActionButton_backgroundTintMode
@see #FloatingActionButton_borderWidth
@see #FloatingActionButton_elevation
@see #FloatingActionButton_fabSize
@see #FloatingActionButton_pressedTranslationZ
@see #FloatingActionButton_rippleColor
@see #FloatingActionButton_useCompatPadding
*/
public static final int[] FloatingActionButton = {
0x7f010040, 0x7f0100f5, 0x7f0100f6, 0x7f010114,
0x7f010115, 0x7f010116, 0x7f010117, 0x7f010118
};
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#backgroundTint}
attribute's value can be found in the {@link #FloatingActionButton} array.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:backgroundTint
*/
public static int FloatingActionButton_backgroundTint = 1;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#backgroundTintMode}
attribute's value can be found in the {@link #FloatingActionButton} array.
<p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>src_over</code></td><td>3</td><td></td></tr>
<tr><td><code>src_in</code></td><td>5</td><td></td></tr>
<tr><td><code>src_atop</code></td><td>9</td><td></td></tr>
<tr><td><code>multiply</code></td><td>14</td><td></td></tr>
<tr><td><code>screen</code></td><td>15</td><td></td></tr>
</table>
@attr name android.support.v7.mediarouter:backgroundTintMode
*/
public static int FloatingActionButton_backgroundTintMode = 2;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#borderWidth}
attribute's value can be found in the {@link #FloatingActionButton} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:borderWidth
*/
public static int FloatingActionButton_borderWidth = 6;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#elevation}
attribute's value can be found in the {@link #FloatingActionButton} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:elevation
*/
public static int FloatingActionButton_elevation = 0;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#fabSize}
attribute's value can be found in the {@link #FloatingActionButton} array.
<p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>normal</code></td><td>0</td><td></td></tr>
<tr><td><code>mini</code></td><td>1</td><td></td></tr>
</table>
@attr name android.support.v7.mediarouter:fabSize
*/
public static int FloatingActionButton_fabSize = 4;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#pressedTranslationZ}
attribute's value can be found in the {@link #FloatingActionButton} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:pressedTranslationZ
*/
public static int FloatingActionButton_pressedTranslationZ = 5;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#rippleColor}
attribute's value can be found in the {@link #FloatingActionButton} array.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:rippleColor
*/
public static int FloatingActionButton_rippleColor = 3;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#useCompatPadding}
attribute's value can be found in the {@link #FloatingActionButton} 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 android.support.v7.mediarouter:useCompatPadding
*/
public static int FloatingActionButton_useCompatPadding = 7;
/** Attributes that can be used with a ForegroundLinearLayout.
<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 #ForegroundLinearLayout_android_foreground android:foreground}</code></td><td></td></tr>
<tr><td><code>{@link #ForegroundLinearLayout_android_foregroundGravity android:foregroundGravity}</code></td><td></td></tr>
<tr><td><code>{@link #ForegroundLinearLayout_foregroundInsidePadding android.support.v7.mediarouter:foregroundInsidePadding}</code></td><td></td></tr>
</table>
@see #ForegroundLinearLayout_android_foreground
@see #ForegroundLinearLayout_android_foregroundGravity
@see #ForegroundLinearLayout_foregroundInsidePadding
*/
public static final int[] ForegroundLinearLayout = {
0x01010109, 0x01010200, 0x7f010119
};
/**
<p>This symbol is the offset where the {@link android.R.attr#foreground}
attribute's value can be found in the {@link #ForegroundLinearLayout} array.
@attr name android:foreground
*/
public static int ForegroundLinearLayout_android_foreground = 0;
/**
<p>This symbol is the offset where the {@link android.R.attr#foregroundGravity}
attribute's value can be found in the {@link #ForegroundLinearLayout} array.
@attr name android:foregroundGravity
*/
public static int ForegroundLinearLayout_android_foregroundGravity = 1;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#foregroundInsidePadding}
attribute's value can be found in the {@link #ForegroundLinearLayout} 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 android.support.v7.mediarouter:foregroundInsidePadding
*/
public static int ForegroundLinearLayout_foregroundInsidePadding = 2;
/** Attributes that can be used with a LinearLayoutCompat.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #LinearLayoutCompat_android_baselineAligned android:baselineAligned}</code></td><td></td></tr>
<tr><td><code>{@link #LinearLayoutCompat_android_baselineAlignedChildIndex android:baselineAlignedChildIndex}</code></td><td></td></tr>
<tr><td><code>{@link #LinearLayoutCompat_android_gravity android:gravity}</code></td><td></td></tr>
<tr><td><code>{@link #LinearLayoutCompat_android_orientation android:orientation}</code></td><td></td></tr>
<tr><td><code>{@link #LinearLayoutCompat_android_weightSum android:weightSum}</code></td><td></td></tr>
<tr><td><code>{@link #LinearLayoutCompat_divider android.support.v7.mediarouter:divider}</code></td><td></td></tr>
<tr><td><code>{@link #LinearLayoutCompat_dividerPadding android.support.v7.mediarouter:dividerPadding}</code></td><td></td></tr>
<tr><td><code>{@link #LinearLayoutCompat_measureWithLargestChild android.support.v7.mediarouter:measureWithLargestChild}</code></td><td></td></tr>
<tr><td><code>{@link #LinearLayoutCompat_showDividers android.support.v7.mediarouter:showDividers}</code></td><td></td></tr>
</table>
@see #LinearLayoutCompat_android_baselineAligned
@see #LinearLayoutCompat_android_baselineAlignedChildIndex
@see #LinearLayoutCompat_android_gravity
@see #LinearLayoutCompat_android_orientation
@see #LinearLayoutCompat_android_weightSum
@see #LinearLayoutCompat_divider
@see #LinearLayoutCompat_dividerPadding
@see #LinearLayoutCompat_measureWithLargestChild
@see #LinearLayoutCompat_showDividers
*/
public static final int[] LinearLayoutCompat = {
0x010100af, 0x010100c4, 0x01010126, 0x01010127,
0x01010128, 0x7f010031, 0x7f0100c5, 0x7f0100c6,
0x7f0100c7
};
/**
<p>This symbol is the offset where the {@link android.R.attr#baselineAligned}
attribute's value can be found in the {@link #LinearLayoutCompat} array.
@attr name android:baselineAligned
*/
public static int LinearLayoutCompat_android_baselineAligned = 2;
/**
<p>This symbol is the offset where the {@link android.R.attr#baselineAlignedChildIndex}
attribute's value can be found in the {@link #LinearLayoutCompat} array.
@attr name android:baselineAlignedChildIndex
*/
public static int LinearLayoutCompat_android_baselineAlignedChildIndex = 3;
/**
<p>This symbol is the offset where the {@link android.R.attr#gravity}
attribute's value can be found in the {@link #LinearLayoutCompat} array.
@attr name android:gravity
*/
public static int LinearLayoutCompat_android_gravity = 0;
/**
<p>This symbol is the offset where the {@link android.R.attr#orientation}
attribute's value can be found in the {@link #LinearLayoutCompat} array.
@attr name android:orientation
*/
public static int LinearLayoutCompat_android_orientation = 1;
/**
<p>This symbol is the offset where the {@link android.R.attr#weightSum}
attribute's value can be found in the {@link #LinearLayoutCompat} array.
@attr name android:weightSum
*/
public static int LinearLayoutCompat_android_weightSum = 4;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#divider}
attribute's value can be found in the {@link #LinearLayoutCompat} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:divider
*/
public static int LinearLayoutCompat_divider = 5;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#dividerPadding}
attribute's value can be found in the {@link #LinearLayoutCompat} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:dividerPadding
*/
public static int LinearLayoutCompat_dividerPadding = 8;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#measureWithLargestChild}
attribute's value can be found in the {@link #LinearLayoutCompat} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:measureWithLargestChild
*/
public static int LinearLayoutCompat_measureWithLargestChild = 6;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#showDividers}
attribute's value can be found in the {@link #LinearLayoutCompat} array.
<p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>none</code></td><td>0</td><td></td></tr>
<tr><td><code>beginning</code></td><td>1</td><td></td></tr>
<tr><td><code>middle</code></td><td>2</td><td></td></tr>
<tr><td><code>end</code></td><td>4</td><td></td></tr>
</table>
@attr name android.support.v7.mediarouter:showDividers
*/
public static int LinearLayoutCompat_showDividers = 7;
/** Attributes that can be used with a LinearLayoutCompat_Layout.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #LinearLayoutCompat_Layout_android_layout_gravity android:layout_gravity}</code></td><td></td></tr>
<tr><td><code>{@link #LinearLayoutCompat_Layout_android_layout_height android:layout_height}</code></td><td></td></tr>
<tr><td><code>{@link #LinearLayoutCompat_Layout_android_layout_weight android:layout_weight}</code></td><td></td></tr>
<tr><td><code>{@link #LinearLayoutCompat_Layout_android_layout_width android:layout_width}</code></td><td></td></tr>
</table>
@see #LinearLayoutCompat_Layout_android_layout_gravity
@see #LinearLayoutCompat_Layout_android_layout_height
@see #LinearLayoutCompat_Layout_android_layout_weight
@see #LinearLayoutCompat_Layout_android_layout_width
*/
public static final int[] LinearLayoutCompat_Layout = {
0x010100b3, 0x010100f4, 0x010100f5, 0x01010181
};
/**
<p>This symbol is the offset where the {@link android.R.attr#layout_gravity}
attribute's value can be found in the {@link #LinearLayoutCompat_Layout} array.
@attr name android:layout_gravity
*/
public static int LinearLayoutCompat_Layout_android_layout_gravity = 0;
/**
<p>This symbol is the offset where the {@link android.R.attr#layout_height}
attribute's value can be found in the {@link #LinearLayoutCompat_Layout} array.
@attr name android:layout_height
*/
public static int LinearLayoutCompat_Layout_android_layout_height = 2;
/**
<p>This symbol is the offset where the {@link android.R.attr#layout_weight}
attribute's value can be found in the {@link #LinearLayoutCompat_Layout} array.
@attr name android:layout_weight
*/
public static int LinearLayoutCompat_Layout_android_layout_weight = 3;
/**
<p>This symbol is the offset where the {@link android.R.attr#layout_width}
attribute's value can be found in the {@link #LinearLayoutCompat_Layout} array.
@attr name android:layout_width
*/
public static int LinearLayoutCompat_Layout_android_layout_width = 1;
/** Attributes that can be used with a ListPopupWindow.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ListPopupWindow_android_dropDownHorizontalOffset android:dropDownHorizontalOffset}</code></td><td></td></tr>
<tr><td><code>{@link #ListPopupWindow_android_dropDownVerticalOffset android:dropDownVerticalOffset}</code></td><td></td></tr>
</table>
@see #ListPopupWindow_android_dropDownHorizontalOffset
@see #ListPopupWindow_android_dropDownVerticalOffset
*/
public static final int[] ListPopupWindow = {
0x010102ac, 0x010102ad
};
/**
<p>This symbol is the offset where the {@link android.R.attr#dropDownHorizontalOffset}
attribute's value can be found in the {@link #ListPopupWindow} array.
@attr name android:dropDownHorizontalOffset
*/
public static int ListPopupWindow_android_dropDownHorizontalOffset = 0;
/**
<p>This symbol is the offset where the {@link android.R.attr#dropDownVerticalOffset}
attribute's value can be found in the {@link #ListPopupWindow} array.
@attr name android:dropDownVerticalOffset
*/
public static int ListPopupWindow_android_dropDownVerticalOffset = 1;
/** Attributes that can be used with a MediaRouteButton.
<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 #MediaRouteButton_android_minHeight android:minHeight}</code></td><td></td></tr>
<tr><td><code>{@link #MediaRouteButton_android_minWidth android:minWidth}</code></td><td></td></tr>
<tr><td><code>{@link #MediaRouteButton_externalRouteEnabledDrawable android.support.v7.mediarouter:externalRouteEnabledDrawable}</code></td><td></td></tr>
</table>
@see #MediaRouteButton_android_minHeight
@see #MediaRouteButton_android_minWidth
@see #MediaRouteButton_externalRouteEnabledDrawable
*/
public static final int[] MediaRouteButton = {
0x0101013f, 0x01010140, 0x7f01001a
};
/**
<p>This symbol is the offset where the {@link android.R.attr#minHeight}
attribute's value can be found in the {@link #MediaRouteButton} array.
@attr name android:minHeight
*/
public static int MediaRouteButton_android_minHeight = 1;
/**
<p>This symbol is the offset where the {@link android.R.attr#minWidth}
attribute's value can be found in the {@link #MediaRouteButton} array.
@attr name android:minWidth
*/
public static int MediaRouteButton_android_minWidth = 0;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#externalRouteEnabledDrawable}
attribute's value can be found in the {@link #MediaRouteButton} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:externalRouteEnabledDrawable
*/
public static int MediaRouteButton_externalRouteEnabledDrawable = 2;
/** Attributes that can be used with a MenuGroup.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #MenuGroup_android_checkableBehavior android:checkableBehavior}</code></td><td></td></tr>
<tr><td><code>{@link #MenuGroup_android_enabled android:enabled}</code></td><td></td></tr>
<tr><td><code>{@link #MenuGroup_android_id android:id}</code></td><td></td></tr>
<tr><td><code>{@link #MenuGroup_android_menuCategory android:menuCategory}</code></td><td></td></tr>
<tr><td><code>{@link #MenuGroup_android_orderInCategory android:orderInCategory}</code></td><td></td></tr>
<tr><td><code>{@link #MenuGroup_android_visible android:visible}</code></td><td></td></tr>
</table>
@see #MenuGroup_android_checkableBehavior
@see #MenuGroup_android_enabled
@see #MenuGroup_android_id
@see #MenuGroup_android_menuCategory
@see #MenuGroup_android_orderInCategory
@see #MenuGroup_android_visible
*/
public static final int[] MenuGroup = {
0x0101000e, 0x010100d0, 0x01010194, 0x010101de,
0x010101df, 0x010101e0
};
/**
<p>This symbol is the offset where the {@link android.R.attr#checkableBehavior}
attribute's value can be found in the {@link #MenuGroup} array.
@attr name android:checkableBehavior
*/
public static int MenuGroup_android_checkableBehavior = 5;
/**
<p>This symbol is the offset where the {@link android.R.attr#enabled}
attribute's value can be found in the {@link #MenuGroup} array.
@attr name android:enabled
*/
public static int MenuGroup_android_enabled = 0;
/**
<p>This symbol is the offset where the {@link android.R.attr#id}
attribute's value can be found in the {@link #MenuGroup} array.
@attr name android:id
*/
public static int MenuGroup_android_id = 1;
/**
<p>This symbol is the offset where the {@link android.R.attr#menuCategory}
attribute's value can be found in the {@link #MenuGroup} array.
@attr name android:menuCategory
*/
public static int MenuGroup_android_menuCategory = 3;
/**
<p>This symbol is the offset where the {@link android.R.attr#orderInCategory}
attribute's value can be found in the {@link #MenuGroup} array.
@attr name android:orderInCategory
*/
public static int MenuGroup_android_orderInCategory = 4;
/**
<p>This symbol is the offset where the {@link android.R.attr#visible}
attribute's value can be found in the {@link #MenuGroup} array.
@attr name android:visible
*/
public static int MenuGroup_android_visible = 2;
/** Attributes that can be used with a MenuItem.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #MenuItem_actionLayout android.support.v7.mediarouter:actionLayout}</code></td><td></td></tr>
<tr><td><code>{@link #MenuItem_actionProviderClass android.support.v7.mediarouter:actionProviderClass}</code></td><td></td></tr>
<tr><td><code>{@link #MenuItem_actionViewClass android.support.v7.mediarouter:actionViewClass}</code></td><td></td></tr>
<tr><td><code>{@link #MenuItem_android_alphabeticShortcut android:alphabeticShortcut}</code></td><td></td></tr>
<tr><td><code>{@link #MenuItem_android_checkable android:checkable}</code></td><td></td></tr>
<tr><td><code>{@link #MenuItem_android_checked android:checked}</code></td><td></td></tr>
<tr><td><code>{@link #MenuItem_android_enabled android:enabled}</code></td><td></td></tr>
<tr><td><code>{@link #MenuItem_android_icon android:icon}</code></td><td></td></tr>
<tr><td><code>{@link #MenuItem_android_id android:id}</code></td><td></td></tr>
<tr><td><code>{@link #MenuItem_android_menuCategory android:menuCategory}</code></td><td></td></tr>
<tr><td><code>{@link #MenuItem_android_numericShortcut android:numericShortcut}</code></td><td></td></tr>
<tr><td><code>{@link #MenuItem_android_onClick android:onClick}</code></td><td></td></tr>
<tr><td><code>{@link #MenuItem_android_orderInCategory android:orderInCategory}</code></td><td></td></tr>
<tr><td><code>{@link #MenuItem_android_title android:title}</code></td><td></td></tr>
<tr><td><code>{@link #MenuItem_android_titleCondensed android:titleCondensed}</code></td><td></td></tr>
<tr><td><code>{@link #MenuItem_android_visible android:visible}</code></td><td></td></tr>
<tr><td><code>{@link #MenuItem_showAsAction android.support.v7.mediarouter:showAsAction}</code></td><td></td></tr>
</table>
@see #MenuItem_actionLayout
@see #MenuItem_actionProviderClass
@see #MenuItem_actionViewClass
@see #MenuItem_android_alphabeticShortcut
@see #MenuItem_android_checkable
@see #MenuItem_android_checked
@see #MenuItem_android_enabled
@see #MenuItem_android_icon
@see #MenuItem_android_id
@see #MenuItem_android_menuCategory
@see #MenuItem_android_numericShortcut
@see #MenuItem_android_onClick
@see #MenuItem_android_orderInCategory
@see #MenuItem_android_title
@see #MenuItem_android_titleCondensed
@see #MenuItem_android_visible
@see #MenuItem_showAsAction
*/
public static final int[] MenuItem = {
0x01010002, 0x0101000e, 0x010100d0, 0x01010106,
0x01010194, 0x010101de, 0x010101df, 0x010101e1,
0x010101e2, 0x010101e3, 0x010101e4, 0x010101e5,
0x0101026f, 0x7f0100c8, 0x7f0100c9, 0x7f0100ca,
0x7f0100cb
};
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#actionLayout}
attribute's value can be found in the {@link #MenuItem} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:actionLayout
*/
public static int MenuItem_actionLayout = 14;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#actionProviderClass}
attribute's value can be found in the {@link #MenuItem} array.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:actionProviderClass
*/
public static int MenuItem_actionProviderClass = 16;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#actionViewClass}
attribute's value can be found in the {@link #MenuItem} array.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:actionViewClass
*/
public static int MenuItem_actionViewClass = 15;
/**
<p>This symbol is the offset where the {@link android.R.attr#alphabeticShortcut}
attribute's value can be found in the {@link #MenuItem} array.
@attr name android:alphabeticShortcut
*/
public static int MenuItem_android_alphabeticShortcut = 9;
/**
<p>This symbol is the offset where the {@link android.R.attr#checkable}
attribute's value can be found in the {@link #MenuItem} array.
@attr name android:checkable
*/
public static int MenuItem_android_checkable = 11;
/**
<p>This symbol is the offset where the {@link android.R.attr#checked}
attribute's value can be found in the {@link #MenuItem} array.
@attr name android:checked
*/
public static int MenuItem_android_checked = 3;
/**
<p>This symbol is the offset where the {@link android.R.attr#enabled}
attribute's value can be found in the {@link #MenuItem} array.
@attr name android:enabled
*/
public static int MenuItem_android_enabled = 1;
/**
<p>This symbol is the offset where the {@link android.R.attr#icon}
attribute's value can be found in the {@link #MenuItem} array.
@attr name android:icon
*/
public static int MenuItem_android_icon = 0;
/**
<p>This symbol is the offset where the {@link android.R.attr#id}
attribute's value can be found in the {@link #MenuItem} array.
@attr name android:id
*/
public static int MenuItem_android_id = 2;
/**
<p>This symbol is the offset where the {@link android.R.attr#menuCategory}
attribute's value can be found in the {@link #MenuItem} array.
@attr name android:menuCategory
*/
public static int MenuItem_android_menuCategory = 5;
/**
<p>This symbol is the offset where the {@link android.R.attr#numericShortcut}
attribute's value can be found in the {@link #MenuItem} array.
@attr name android:numericShortcut
*/
public static int MenuItem_android_numericShortcut = 10;
/**
<p>This symbol is the offset where the {@link android.R.attr#onClick}
attribute's value can be found in the {@link #MenuItem} array.
@attr name android:onClick
*/
public static int MenuItem_android_onClick = 12;
/**
<p>This symbol is the offset where the {@link android.R.attr#orderInCategory}
attribute's value can be found in the {@link #MenuItem} array.
@attr name android:orderInCategory
*/
public static int MenuItem_android_orderInCategory = 6;
/**
<p>This symbol is the offset where the {@link android.R.attr#title}
attribute's value can be found in the {@link #MenuItem} array.
@attr name android:title
*/
public static int MenuItem_android_title = 7;
/**
<p>This symbol is the offset where the {@link android.R.attr#titleCondensed}
attribute's value can be found in the {@link #MenuItem} array.
@attr name android:titleCondensed
*/
public static int MenuItem_android_titleCondensed = 8;
/**
<p>This symbol is the offset where the {@link android.R.attr#visible}
attribute's value can be found in the {@link #MenuItem} array.
@attr name android:visible
*/
public static int MenuItem_android_visible = 4;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#showAsAction}
attribute's value can be found in the {@link #MenuItem} array.
<p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>never</code></td><td>0</td><td></td></tr>
<tr><td><code>ifRoom</code></td><td>1</td><td></td></tr>
<tr><td><code>always</code></td><td>2</td><td></td></tr>
<tr><td><code>withText</code></td><td>4</td><td></td></tr>
<tr><td><code>collapseActionView</code></td><td>8</td><td></td></tr>
</table>
@attr name android.support.v7.mediarouter:showAsAction
*/
public static int MenuItem_showAsAction = 13;
/** Attributes that can be used with a MenuView.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #MenuView_android_headerBackground android:headerBackground}</code></td><td></td></tr>
<tr><td><code>{@link #MenuView_android_horizontalDivider android:horizontalDivider}</code></td><td></td></tr>
<tr><td><code>{@link #MenuView_android_itemBackground android:itemBackground}</code></td><td></td></tr>
<tr><td><code>{@link #MenuView_android_itemIconDisabledAlpha android:itemIconDisabledAlpha}</code></td><td></td></tr>
<tr><td><code>{@link #MenuView_android_itemTextAppearance android:itemTextAppearance}</code></td><td></td></tr>
<tr><td><code>{@link #MenuView_android_verticalDivider android:verticalDivider}</code></td><td></td></tr>
<tr><td><code>{@link #MenuView_android_windowAnimationStyle android:windowAnimationStyle}</code></td><td></td></tr>
<tr><td><code>{@link #MenuView_preserveIconSpacing android.support.v7.mediarouter:preserveIconSpacing}</code></td><td></td></tr>
</table>
@see #MenuView_android_headerBackground
@see #MenuView_android_horizontalDivider
@see #MenuView_android_itemBackground
@see #MenuView_android_itemIconDisabledAlpha
@see #MenuView_android_itemTextAppearance
@see #MenuView_android_verticalDivider
@see #MenuView_android_windowAnimationStyle
@see #MenuView_preserveIconSpacing
*/
public static final int[] MenuView = {
0x010100ae, 0x0101012c, 0x0101012d, 0x0101012e,
0x0101012f, 0x01010130, 0x01010131, 0x7f0100cc
};
/**
<p>This symbol is the offset where the {@link android.R.attr#headerBackground}
attribute's value can be found in the {@link #MenuView} array.
@attr name android:headerBackground
*/
public static int MenuView_android_headerBackground = 4;
/**
<p>This symbol is the offset where the {@link android.R.attr#horizontalDivider}
attribute's value can be found in the {@link #MenuView} array.
@attr name android:horizontalDivider
*/
public static int MenuView_android_horizontalDivider = 2;
/**
<p>This symbol is the offset where the {@link android.R.attr#itemBackground}
attribute's value can be found in the {@link #MenuView} array.
@attr name android:itemBackground
*/
public static int MenuView_android_itemBackground = 5;
/**
<p>This symbol is the offset where the {@link android.R.attr#itemIconDisabledAlpha}
attribute's value can be found in the {@link #MenuView} array.
@attr name android:itemIconDisabledAlpha
*/
public static int MenuView_android_itemIconDisabledAlpha = 6;
/**
<p>This symbol is the offset where the {@link android.R.attr#itemTextAppearance}
attribute's value can be found in the {@link #MenuView} array.
@attr name android:itemTextAppearance
*/
public static int MenuView_android_itemTextAppearance = 1;
/**
<p>This symbol is the offset where the {@link android.R.attr#verticalDivider}
attribute's value can be found in the {@link #MenuView} array.
@attr name android:verticalDivider
*/
public static int MenuView_android_verticalDivider = 3;
/**
<p>This symbol is the offset where the {@link android.R.attr#windowAnimationStyle}
attribute's value can be found in the {@link #MenuView} array.
@attr name android:windowAnimationStyle
*/
public static int MenuView_android_windowAnimationStyle = 0;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#preserveIconSpacing}
attribute's value can be found in the {@link #MenuView} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:preserveIconSpacing
*/
public static int MenuView_preserveIconSpacing = 7;
/** Attributes that can be used with a NavigationView.
<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 #NavigationView_android_background android:background}</code></td><td></td></tr>
<tr><td><code>{@link #NavigationView_android_fitsSystemWindows android:fitsSystemWindows}</code></td><td></td></tr>
<tr><td><code>{@link #NavigationView_android_maxWidth android:maxWidth}</code></td><td></td></tr>
<tr><td><code>{@link #NavigationView_elevation android.support.v7.mediarouter:elevation}</code></td><td></td></tr>
<tr><td><code>{@link #NavigationView_headerLayout android.support.v7.mediarouter:headerLayout}</code></td><td></td></tr>
<tr><td><code>{@link #NavigationView_itemBackground android.support.v7.mediarouter:itemBackground}</code></td><td></td></tr>
<tr><td><code>{@link #NavigationView_itemIconTint android.support.v7.mediarouter:itemIconTint}</code></td><td></td></tr>
<tr><td><code>{@link #NavigationView_itemTextAppearance android.support.v7.mediarouter:itemTextAppearance}</code></td><td></td></tr>
<tr><td><code>{@link #NavigationView_itemTextColor android.support.v7.mediarouter:itemTextColor}</code></td><td></td></tr>
<tr><td><code>{@link #NavigationView_menu android.support.v7.mediarouter:menu}</code></td><td></td></tr>
</table>
@see #NavigationView_android_background
@see #NavigationView_android_fitsSystemWindows
@see #NavigationView_android_maxWidth
@see #NavigationView_elevation
@see #NavigationView_headerLayout
@see #NavigationView_itemBackground
@see #NavigationView_itemIconTint
@see #NavigationView_itemTextAppearance
@see #NavigationView_itemTextColor
@see #NavigationView_menu
*/
public static final int[] NavigationView = {
0x010100d4, 0x010100dd, 0x0101011f, 0x7f010040,
0x7f01011a, 0x7f01011b, 0x7f01011c, 0x7f01011d,
0x7f01011e, 0x7f01011f
};
/**
<p>This symbol is the offset where the {@link android.R.attr#background}
attribute's value can be found in the {@link #NavigationView} array.
@attr name android:background
*/
public static int NavigationView_android_background = 0;
/**
<p>This symbol is the offset where the {@link android.R.attr#fitsSystemWindows}
attribute's value can be found in the {@link #NavigationView} array.
@attr name android:fitsSystemWindows
*/
public static int NavigationView_android_fitsSystemWindows = 1;
/**
<p>This symbol is the offset where the {@link android.R.attr#maxWidth}
attribute's value can be found in the {@link #NavigationView} array.
@attr name android:maxWidth
*/
public static int NavigationView_android_maxWidth = 2;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#elevation}
attribute's value can be found in the {@link #NavigationView} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:elevation
*/
public static int NavigationView_elevation = 3;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#headerLayout}
attribute's value can be found in the {@link #NavigationView} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:headerLayout
*/
public static int NavigationView_headerLayout = 9;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#itemBackground}
attribute's value can be found in the {@link #NavigationView} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:itemBackground
*/
public static int NavigationView_itemBackground = 7;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#itemIconTint}
attribute's value can be found in the {@link #NavigationView} array.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:itemIconTint
*/
public static int NavigationView_itemIconTint = 5;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#itemTextAppearance}
attribute's value can be found in the {@link #NavigationView} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:itemTextAppearance
*/
public static int NavigationView_itemTextAppearance = 8;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#itemTextColor}
attribute's value can be found in the {@link #NavigationView} array.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:itemTextColor
*/
public static int NavigationView_itemTextColor = 6;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#menu}
attribute's value can be found in the {@link #NavigationView} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:menu
*/
public static int NavigationView_menu = 4;
/** Attributes that can be used with a PopupWindow.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #PopupWindow_android_popupBackground android:popupBackground}</code></td><td></td></tr>
<tr><td><code>{@link #PopupWindow_overlapAnchor android.support.v7.mediarouter:overlapAnchor}</code></td><td></td></tr>
</table>
@see #PopupWindow_android_popupBackground
@see #PopupWindow_overlapAnchor
*/
public static final int[] PopupWindow = {
0x01010176, 0x7f0100cd
};
/**
<p>This symbol is the offset where the {@link android.R.attr#popupBackground}
attribute's value can be found in the {@link #PopupWindow} array.
@attr name android:popupBackground
*/
public static int PopupWindow_android_popupBackground = 0;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#overlapAnchor}
attribute's value can be found in the {@link #PopupWindow} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:overlapAnchor
*/
public static int PopupWindow_overlapAnchor = 1;
/** Attributes that can be used with a PopupWindowBackgroundState.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #PopupWindowBackgroundState_state_above_anchor android.support.v7.mediarouter:state_above_anchor}</code></td><td></td></tr>
</table>
@see #PopupWindowBackgroundState_state_above_anchor
*/
public static final int[] PopupWindowBackgroundState = {
0x7f0100ce
};
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#state_above_anchor}
attribute's value can be found in the {@link #PopupWindowBackgroundState} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:state_above_anchor
*/
public static int PopupWindowBackgroundState_state_above_anchor = 0;
/** Attributes that can be used with a RecyclerView.
<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 #RecyclerView_android_orientation android:orientation}</code></td><td></td></tr>
<tr><td><code>{@link #RecyclerView_layoutManager android.support.v7.mediarouter:layoutManager}</code></td><td></td></tr>
<tr><td><code>{@link #RecyclerView_reverseLayout android.support.v7.mediarouter:reverseLayout}</code></td><td></td></tr>
<tr><td><code>{@link #RecyclerView_spanCount android.support.v7.mediarouter:spanCount}</code></td><td></td></tr>
<tr><td><code>{@link #RecyclerView_stackFromEnd android.support.v7.mediarouter:stackFromEnd}</code></td><td></td></tr>
</table>
@see #RecyclerView_android_orientation
@see #RecyclerView_layoutManager
@see #RecyclerView_reverseLayout
@see #RecyclerView_spanCount
@see #RecyclerView_stackFromEnd
*/
public static final int[] RecyclerView = {
0x010100c4, 0x7f010000, 0x7f010001, 0x7f010002,
0x7f010003
};
/**
<p>This symbol is the offset where the {@link android.R.attr#orientation}
attribute's value can be found in the {@link #RecyclerView} array.
@attr name android:orientation
*/
public static int RecyclerView_android_orientation = 0;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#layoutManager}
attribute's value can be found in the {@link #RecyclerView} array.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:layoutManager
*/
public static int RecyclerView_layoutManager = 1;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#reverseLayout}
attribute's value can be found in the {@link #RecyclerView} 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 android.support.v7.mediarouter:reverseLayout
*/
public static int RecyclerView_reverseLayout = 3;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#spanCount}
attribute's value can be found in the {@link #RecyclerView} array.
<p>Must be an integer value, such as "<code>100</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:spanCount
*/
public static int RecyclerView_spanCount = 2;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#stackFromEnd}
attribute's value can be found in the {@link #RecyclerView} 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 android.support.v7.mediarouter:stackFromEnd
*/
public static int RecyclerView_stackFromEnd = 4;
/** Attributes that can be used with a ScrimInsetsFrameLayout.
<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 #ScrimInsetsFrameLayout_insetForeground android.support.v7.mediarouter:insetForeground}</code></td><td></td></tr>
</table>
@see #ScrimInsetsFrameLayout_insetForeground
*/
public static final int[] ScrimInsetsFrameLayout = {
0x7f010120
};
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#insetForeground}
attribute's value can be found in the {@link #ScrimInsetsFrameLayout} array.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
@attr name android.support.v7.mediarouter:insetForeground
*/
public static int ScrimInsetsFrameLayout_insetForeground = 0;
/** Attributes that can be used with a ScrollingViewBehavior_Params.
<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 #ScrollingViewBehavior_Params_behavior_overlapTop android.support.v7.mediarouter:behavior_overlapTop}</code></td><td></td></tr>
</table>
@see #ScrollingViewBehavior_Params_behavior_overlapTop
*/
public static final int[] ScrollingViewBehavior_Params = {
0x7f010121
};
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#behavior_overlapTop}
attribute's value can be found in the {@link #ScrollingViewBehavior_Params} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:behavior_overlapTop
*/
public static int ScrollingViewBehavior_Params_behavior_overlapTop = 0;
/** Attributes that can be used with a SearchView.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #SearchView_android_focusable android:focusable}</code></td><td></td></tr>
<tr><td><code>{@link #SearchView_android_imeOptions android:imeOptions}</code></td><td></td></tr>
<tr><td><code>{@link #SearchView_android_inputType android:inputType}</code></td><td></td></tr>
<tr><td><code>{@link #SearchView_android_maxWidth android:maxWidth}</code></td><td></td></tr>
<tr><td><code>{@link #SearchView_closeIcon android.support.v7.mediarouter:closeIcon}</code></td><td></td></tr>
<tr><td><code>{@link #SearchView_commitIcon android.support.v7.mediarouter:commitIcon}</code></td><td></td></tr>
<tr><td><code>{@link #SearchView_defaultQueryHint android.support.v7.mediarouter:defaultQueryHint}</code></td><td></td></tr>
<tr><td><code>{@link #SearchView_goIcon android.support.v7.mediarouter:goIcon}</code></td><td></td></tr>
<tr><td><code>{@link #SearchView_iconifiedByDefault android.support.v7.mediarouter:iconifiedByDefault}</code></td><td></td></tr>
<tr><td><code>{@link #SearchView_layout android.support.v7.mediarouter:layout}</code></td><td></td></tr>
<tr><td><code>{@link #SearchView_queryBackground android.support.v7.mediarouter:queryBackground}</code></td><td></td></tr>
<tr><td><code>{@link #SearchView_queryHint android.support.v7.mediarouter:queryHint}</code></td><td></td></tr>
<tr><td><code>{@link #SearchView_searchHintIcon android.support.v7.mediarouter:searchHintIcon}</code></td><td></td></tr>
<tr><td><code>{@link #SearchView_searchIcon android.support.v7.mediarouter:searchIcon}</code></td><td></td></tr>
<tr><td><code>{@link #SearchView_submitBackground android.support.v7.mediarouter:submitBackground}</code></td><td></td></tr>
<tr><td><code>{@link #SearchView_suggestionRowLayout android.support.v7.mediarouter:suggestionRowLayout}</code></td><td></td></tr>
<tr><td><code>{@link #SearchView_voiceIcon android.support.v7.mediarouter:voiceIcon}</code></td><td></td></tr>
</table>
@see #SearchView_android_focusable
@see #SearchView_android_imeOptions
@see #SearchView_android_inputType
@see #SearchView_android_maxWidth
@see #SearchView_closeIcon
@see #SearchView_commitIcon
@see #SearchView_defaultQueryHint
@see #SearchView_goIcon
@see #SearchView_iconifiedByDefault
@see #SearchView_layout
@see #SearchView_queryBackground
@see #SearchView_queryHint
@see #SearchView_searchHintIcon
@see #SearchView_searchIcon
@see #SearchView_submitBackground
@see #SearchView_suggestionRowLayout
@see #SearchView_voiceIcon
*/
public static final int[] SearchView = {
0x010100da, 0x0101011f, 0x01010220, 0x01010264,
0x7f0100cf, 0x7f0100d0, 0x7f0100d1, 0x7f0100d2,
0x7f0100d3, 0x7f0100d4, 0x7f0100d5, 0x7f0100d6,
0x7f0100d7, 0x7f0100d8, 0x7f0100d9, 0x7f0100da,
0x7f0100db
};
/**
<p>This symbol is the offset where the {@link android.R.attr#focusable}
attribute's value can be found in the {@link #SearchView} array.
@attr name android:focusable
*/
public static int SearchView_android_focusable = 0;
/**
<p>This symbol is the offset where the {@link android.R.attr#imeOptions}
attribute's value can be found in the {@link #SearchView} array.
@attr name android:imeOptions
*/
public static int SearchView_android_imeOptions = 3;
/**
<p>This symbol is the offset where the {@link android.R.attr#inputType}
attribute's value can be found in the {@link #SearchView} array.
@attr name android:inputType
*/
public static int SearchView_android_inputType = 2;
/**
<p>This symbol is the offset where the {@link android.R.attr#maxWidth}
attribute's value can be found in the {@link #SearchView} array.
@attr name android:maxWidth
*/
public static int SearchView_android_maxWidth = 1;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#closeIcon}
attribute's value can be found in the {@link #SearchView} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:closeIcon
*/
public static int SearchView_closeIcon = 8;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#commitIcon}
attribute's value can be found in the {@link #SearchView} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:commitIcon
*/
public static int SearchView_commitIcon = 13;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#defaultQueryHint}
attribute's value can be found in the {@link #SearchView} array.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:defaultQueryHint
*/
public static int SearchView_defaultQueryHint = 7;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#goIcon}
attribute's value can be found in the {@link #SearchView} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:goIcon
*/
public static int SearchView_goIcon = 9;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#iconifiedByDefault}
attribute's value can be found in the {@link #SearchView} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:iconifiedByDefault
*/
public static int SearchView_iconifiedByDefault = 5;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#layout}
attribute's value can be found in the {@link #SearchView} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:layout
*/
public static int SearchView_layout = 4;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#queryBackground}
attribute's value can be found in the {@link #SearchView} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:queryBackground
*/
public static int SearchView_queryBackground = 15;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#queryHint}
attribute's value can be found in the {@link #SearchView} array.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:queryHint
*/
public static int SearchView_queryHint = 6;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#searchHintIcon}
attribute's value can be found in the {@link #SearchView} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:searchHintIcon
*/
public static int SearchView_searchHintIcon = 11;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#searchIcon}
attribute's value can be found in the {@link #SearchView} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:searchIcon
*/
public static int SearchView_searchIcon = 10;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#submitBackground}
attribute's value can be found in the {@link #SearchView} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:submitBackground
*/
public static int SearchView_submitBackground = 16;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#suggestionRowLayout}
attribute's value can be found in the {@link #SearchView} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:suggestionRowLayout
*/
public static int SearchView_suggestionRowLayout = 14;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#voiceIcon}
attribute's value can be found in the {@link #SearchView} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:voiceIcon
*/
public static int SearchView_voiceIcon = 12;
/** Attributes that can be used with a SnackbarLayout.
<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 #SnackbarLayout_android_maxWidth android:maxWidth}</code></td><td></td></tr>
<tr><td><code>{@link #SnackbarLayout_elevation android.support.v7.mediarouter:elevation}</code></td><td></td></tr>
<tr><td><code>{@link #SnackbarLayout_maxActionInlineWidth android.support.v7.mediarouter:maxActionInlineWidth}</code></td><td></td></tr>
</table>
@see #SnackbarLayout_android_maxWidth
@see #SnackbarLayout_elevation
@see #SnackbarLayout_maxActionInlineWidth
*/
public static final int[] SnackbarLayout = {
0x0101011f, 0x7f010040, 0x7f010122
};
/**
<p>This symbol is the offset where the {@link android.R.attr#maxWidth}
attribute's value can be found in the {@link #SnackbarLayout} array.
@attr name android:maxWidth
*/
public static int SnackbarLayout_android_maxWidth = 0;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#elevation}
attribute's value can be found in the {@link #SnackbarLayout} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:elevation
*/
public static int SnackbarLayout_elevation = 1;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#maxActionInlineWidth}
attribute's value can be found in the {@link #SnackbarLayout} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:maxActionInlineWidth
*/
public static int SnackbarLayout_maxActionInlineWidth = 2;
/** Attributes that can be used with a Spinner.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #Spinner_android_dropDownWidth android:dropDownWidth}</code></td><td></td></tr>
<tr><td><code>{@link #Spinner_android_entries android:entries}</code></td><td></td></tr>
<tr><td><code>{@link #Spinner_android_popupBackground android:popupBackground}</code></td><td></td></tr>
<tr><td><code>{@link #Spinner_android_prompt android:prompt}</code></td><td></td></tr>
<tr><td><code>{@link #Spinner_popupTheme android.support.v7.mediarouter:popupTheme}</code></td><td></td></tr>
</table>
@see #Spinner_android_dropDownWidth
@see #Spinner_android_entries
@see #Spinner_android_popupBackground
@see #Spinner_android_prompt
@see #Spinner_popupTheme
*/
public static final int[] Spinner = {
0x010100b2, 0x01010176, 0x0101017b, 0x01010262,
0x7f010041
};
/**
<p>This symbol is the offset where the {@link android.R.attr#dropDownWidth}
attribute's value can be found in the {@link #Spinner} array.
@attr name android:dropDownWidth
*/
public static int Spinner_android_dropDownWidth = 3;
/**
<p>This symbol is the offset where the {@link android.R.attr#entries}
attribute's value can be found in the {@link #Spinner} array.
@attr name android:entries
*/
public static int Spinner_android_entries = 0;
/**
<p>This symbol is the offset where the {@link android.R.attr#popupBackground}
attribute's value can be found in the {@link #Spinner} array.
@attr name android:popupBackground
*/
public static int Spinner_android_popupBackground = 1;
/**
<p>This symbol is the offset where the {@link android.R.attr#prompt}
attribute's value can be found in the {@link #Spinner} array.
@attr name android:prompt
*/
public static int Spinner_android_prompt = 2;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#popupTheme}
attribute's value can be found in the {@link #Spinner} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:popupTheme
*/
public static int Spinner_popupTheme = 4;
/** Attributes that can be used with a SwitchCompat.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #SwitchCompat_android_textOff android:textOff}</code></td><td></td></tr>
<tr><td><code>{@link #SwitchCompat_android_textOn android:textOn}</code></td><td></td></tr>
<tr><td><code>{@link #SwitchCompat_android_thumb android:thumb}</code></td><td></td></tr>
<tr><td><code>{@link #SwitchCompat_showText android.support.v7.mediarouter:showText}</code></td><td></td></tr>
<tr><td><code>{@link #SwitchCompat_splitTrack android.support.v7.mediarouter:splitTrack}</code></td><td></td></tr>
<tr><td><code>{@link #SwitchCompat_switchMinWidth android.support.v7.mediarouter:switchMinWidth}</code></td><td></td></tr>
<tr><td><code>{@link #SwitchCompat_switchPadding android.support.v7.mediarouter:switchPadding}</code></td><td></td></tr>
<tr><td><code>{@link #SwitchCompat_switchTextAppearance android.support.v7.mediarouter:switchTextAppearance}</code></td><td></td></tr>
<tr><td><code>{@link #SwitchCompat_thumbTextPadding android.support.v7.mediarouter:thumbTextPadding}</code></td><td></td></tr>
<tr><td><code>{@link #SwitchCompat_track android.support.v7.mediarouter:track}</code></td><td></td></tr>
</table>
@see #SwitchCompat_android_textOff
@see #SwitchCompat_android_textOn
@see #SwitchCompat_android_thumb
@see #SwitchCompat_showText
@see #SwitchCompat_splitTrack
@see #SwitchCompat_switchMinWidth
@see #SwitchCompat_switchPadding
@see #SwitchCompat_switchTextAppearance
@see #SwitchCompat_thumbTextPadding
@see #SwitchCompat_track
*/
public static final int[] SwitchCompat = {
0x01010124, 0x01010125, 0x01010142, 0x7f0100dc,
0x7f0100dd, 0x7f0100de, 0x7f0100df, 0x7f0100e0,
0x7f0100e1, 0x7f0100e2
};
/**
<p>This symbol is the offset where the {@link android.R.attr#textOff}
attribute's value can be found in the {@link #SwitchCompat} array.
@attr name android:textOff
*/
public static int SwitchCompat_android_textOff = 1;
/**
<p>This symbol is the offset where the {@link android.R.attr#textOn}
attribute's value can be found in the {@link #SwitchCompat} array.
@attr name android:textOn
*/
public static int SwitchCompat_android_textOn = 0;
/**
<p>This symbol is the offset where the {@link android.R.attr#thumb}
attribute's value can be found in the {@link #SwitchCompat} array.
@attr name android:thumb
*/
public static int SwitchCompat_android_thumb = 2;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#showText}
attribute's value can be found in the {@link #SwitchCompat} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:showText
*/
public static int SwitchCompat_showText = 9;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#splitTrack}
attribute's value can be found in the {@link #SwitchCompat} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:splitTrack
*/
public static int SwitchCompat_splitTrack = 8;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#switchMinWidth}
attribute's value can be found in the {@link #SwitchCompat} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:switchMinWidth
*/
public static int SwitchCompat_switchMinWidth = 6;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#switchPadding}
attribute's value can be found in the {@link #SwitchCompat} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:switchPadding
*/
public static int SwitchCompat_switchPadding = 7;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#switchTextAppearance}
attribute's value can be found in the {@link #SwitchCompat} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:switchTextAppearance
*/
public static int SwitchCompat_switchTextAppearance = 5;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#thumbTextPadding}
attribute's value can be found in the {@link #SwitchCompat} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:thumbTextPadding
*/
public static int SwitchCompat_thumbTextPadding = 4;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#track}
attribute's value can be found in the {@link #SwitchCompat} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:track
*/
public static int SwitchCompat_track = 3;
/** Attributes that can be used with a TabItem.
<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 #TabItem_android_icon android:icon}</code></td><td></td></tr>
<tr><td><code>{@link #TabItem_android_layout android:layout}</code></td><td></td></tr>
<tr><td><code>{@link #TabItem_android_text android:text}</code></td><td></td></tr>
</table>
@see #TabItem_android_icon
@see #TabItem_android_layout
@see #TabItem_android_text
*/
public static final int[] TabItem = {
0x01010002, 0x010100f2, 0x0101014f
};
/**
<p>This symbol is the offset where the {@link android.R.attr#icon}
attribute's value can be found in the {@link #TabItem} array.
@attr name android:icon
*/
public static int TabItem_android_icon = 0;
/**
<p>This symbol is the offset where the {@link android.R.attr#layout}
attribute's value can be found in the {@link #TabItem} array.
@attr name android:layout
*/
public static int TabItem_android_layout = 1;
/**
<p>This symbol is the offset where the {@link android.R.attr#text}
attribute's value can be found in the {@link #TabItem} array.
@attr name android:text
*/
public static int TabItem_android_text = 2;
/** Attributes that can be used with a TabLayout.
<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 #TabLayout_tabBackground android.support.v7.mediarouter:tabBackground}</code></td><td></td></tr>
<tr><td><code>{@link #TabLayout_tabContentStart android.support.v7.mediarouter:tabContentStart}</code></td><td></td></tr>
<tr><td><code>{@link #TabLayout_tabGravity android.support.v7.mediarouter:tabGravity}</code></td><td></td></tr>
<tr><td><code>{@link #TabLayout_tabIndicatorColor android.support.v7.mediarouter:tabIndicatorColor}</code></td><td></td></tr>
<tr><td><code>{@link #TabLayout_tabIndicatorHeight android.support.v7.mediarouter:tabIndicatorHeight}</code></td><td></td></tr>
<tr><td><code>{@link #TabLayout_tabMaxWidth android.support.v7.mediarouter:tabMaxWidth}</code></td><td></td></tr>
<tr><td><code>{@link #TabLayout_tabMinWidth android.support.v7.mediarouter:tabMinWidth}</code></td><td></td></tr>
<tr><td><code>{@link #TabLayout_tabMode android.support.v7.mediarouter:tabMode}</code></td><td></td></tr>
<tr><td><code>{@link #TabLayout_tabPadding android.support.v7.mediarouter:tabPadding}</code></td><td></td></tr>
<tr><td><code>{@link #TabLayout_tabPaddingBottom android.support.v7.mediarouter:tabPaddingBottom}</code></td><td></td></tr>
<tr><td><code>{@link #TabLayout_tabPaddingEnd android.support.v7.mediarouter:tabPaddingEnd}</code></td><td></td></tr>
<tr><td><code>{@link #TabLayout_tabPaddingStart android.support.v7.mediarouter:tabPaddingStart}</code></td><td></td></tr>
<tr><td><code>{@link #TabLayout_tabPaddingTop android.support.v7.mediarouter:tabPaddingTop}</code></td><td></td></tr>
<tr><td><code>{@link #TabLayout_tabSelectedTextColor android.support.v7.mediarouter:tabSelectedTextColor}</code></td><td></td></tr>
<tr><td><code>{@link #TabLayout_tabTextAppearance android.support.v7.mediarouter:tabTextAppearance}</code></td><td></td></tr>
<tr><td><code>{@link #TabLayout_tabTextColor android.support.v7.mediarouter:tabTextColor}</code></td><td></td></tr>
</table>
@see #TabLayout_tabBackground
@see #TabLayout_tabContentStart
@see #TabLayout_tabGravity
@see #TabLayout_tabIndicatorColor
@see #TabLayout_tabIndicatorHeight
@see #TabLayout_tabMaxWidth
@see #TabLayout_tabMinWidth
@see #TabLayout_tabMode
@see #TabLayout_tabPadding
@see #TabLayout_tabPaddingBottom
@see #TabLayout_tabPaddingEnd
@see #TabLayout_tabPaddingStart
@see #TabLayout_tabPaddingTop
@see #TabLayout_tabSelectedTextColor
@see #TabLayout_tabTextAppearance
@see #TabLayout_tabTextColor
*/
public static final int[] TabLayout = {
0x7f010123, 0x7f010124, 0x7f010125, 0x7f010126,
0x7f010127, 0x7f010128, 0x7f010129, 0x7f01012a,
0x7f01012b, 0x7f01012c, 0x7f01012d, 0x7f01012e,
0x7f01012f, 0x7f010130, 0x7f010131, 0x7f010132
};
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#tabBackground}
attribute's value can be found in the {@link #TabLayout} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:tabBackground
*/
public static int TabLayout_tabBackground = 3;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#tabContentStart}
attribute's value can be found in the {@link #TabLayout} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:tabContentStart
*/
public static int TabLayout_tabContentStart = 2;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#tabGravity}
attribute's value can be found in the {@link #TabLayout} array.
<p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>fill</code></td><td>0</td><td></td></tr>
<tr><td><code>center</code></td><td>1</td><td></td></tr>
</table>
@attr name android.support.v7.mediarouter:tabGravity
*/
public static int TabLayout_tabGravity = 5;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#tabIndicatorColor}
attribute's value can be found in the {@link #TabLayout} array.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:tabIndicatorColor
*/
public static int TabLayout_tabIndicatorColor = 0;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#tabIndicatorHeight}
attribute's value can be found in the {@link #TabLayout} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:tabIndicatorHeight
*/
public static int TabLayout_tabIndicatorHeight = 1;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#tabMaxWidth}
attribute's value can be found in the {@link #TabLayout} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:tabMaxWidth
*/
public static int TabLayout_tabMaxWidth = 7;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#tabMinWidth}
attribute's value can be found in the {@link #TabLayout} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:tabMinWidth
*/
public static int TabLayout_tabMinWidth = 6;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#tabMode}
attribute's value can be found in the {@link #TabLayout} array.
<p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>scrollable</code></td><td>0</td><td></td></tr>
<tr><td><code>fixed</code></td><td>1</td><td></td></tr>
</table>
@attr name android.support.v7.mediarouter:tabMode
*/
public static int TabLayout_tabMode = 4;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#tabPadding}
attribute's value can be found in the {@link #TabLayout} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:tabPadding
*/
public static int TabLayout_tabPadding = 15;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#tabPaddingBottom}
attribute's value can be found in the {@link #TabLayout} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:tabPaddingBottom
*/
public static int TabLayout_tabPaddingBottom = 14;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#tabPaddingEnd}
attribute's value can be found in the {@link #TabLayout} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:tabPaddingEnd
*/
public static int TabLayout_tabPaddingEnd = 13;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#tabPaddingStart}
attribute's value can be found in the {@link #TabLayout} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:tabPaddingStart
*/
public static int TabLayout_tabPaddingStart = 11;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#tabPaddingTop}
attribute's value can be found in the {@link #TabLayout} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:tabPaddingTop
*/
public static int TabLayout_tabPaddingTop = 12;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#tabSelectedTextColor}
attribute's value can be found in the {@link #TabLayout} array.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:tabSelectedTextColor
*/
public static int TabLayout_tabSelectedTextColor = 10;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#tabTextAppearance}
attribute's value can be found in the {@link #TabLayout} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:tabTextAppearance
*/
public static int TabLayout_tabTextAppearance = 8;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#tabTextColor}
attribute's value can be found in the {@link #TabLayout} array.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:tabTextColor
*/
public static int TabLayout_tabTextColor = 9;
/** Attributes that can be used with a TextAppearance.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #TextAppearance_android_shadowColor android:shadowColor}</code></td><td></td></tr>
<tr><td><code>{@link #TextAppearance_android_shadowDx android:shadowDx}</code></td><td></td></tr>
<tr><td><code>{@link #TextAppearance_android_shadowDy android:shadowDy}</code></td><td></td></tr>
<tr><td><code>{@link #TextAppearance_android_shadowRadius android:shadowRadius}</code></td><td></td></tr>
<tr><td><code>{@link #TextAppearance_android_textColor android:textColor}</code></td><td></td></tr>
<tr><td><code>{@link #TextAppearance_android_textSize android:textSize}</code></td><td></td></tr>
<tr><td><code>{@link #TextAppearance_android_textStyle android:textStyle}</code></td><td></td></tr>
<tr><td><code>{@link #TextAppearance_android_typeface android:typeface}</code></td><td></td></tr>
<tr><td><code>{@link #TextAppearance_textAllCaps android.support.v7.mediarouter:textAllCaps}</code></td><td></td></tr>
</table>
@see #TextAppearance_android_shadowColor
@see #TextAppearance_android_shadowDx
@see #TextAppearance_android_shadowDy
@see #TextAppearance_android_shadowRadius
@see #TextAppearance_android_textColor
@see #TextAppearance_android_textSize
@see #TextAppearance_android_textStyle
@see #TextAppearance_android_typeface
@see #TextAppearance_textAllCaps
*/
public static final int[] TextAppearance = {
0x01010095, 0x01010096, 0x01010097, 0x01010098,
0x01010161, 0x01010162, 0x01010163, 0x01010164,
0x7f01004b
};
/**
<p>This symbol is the offset where the {@link android.R.attr#shadowColor}
attribute's value can be found in the {@link #TextAppearance} array.
@attr name android:shadowColor
*/
public static int TextAppearance_android_shadowColor = 4;
/**
<p>This symbol is the offset where the {@link android.R.attr#shadowDx}
attribute's value can be found in the {@link #TextAppearance} array.
@attr name android:shadowDx
*/
public static int TextAppearance_android_shadowDx = 5;
/**
<p>This symbol is the offset where the {@link android.R.attr#shadowDy}
attribute's value can be found in the {@link #TextAppearance} array.
@attr name android:shadowDy
*/
public static int TextAppearance_android_shadowDy = 6;
/**
<p>This symbol is the offset where the {@link android.R.attr#shadowRadius}
attribute's value can be found in the {@link #TextAppearance} array.
@attr name android:shadowRadius
*/
public static int TextAppearance_android_shadowRadius = 7;
/**
<p>This symbol is the offset where the {@link android.R.attr#textColor}
attribute's value can be found in the {@link #TextAppearance} array.
@attr name android:textColor
*/
public static int TextAppearance_android_textColor = 3;
/**
<p>This symbol is the offset where the {@link android.R.attr#textSize}
attribute's value can be found in the {@link #TextAppearance} array.
@attr name android:textSize
*/
public static int TextAppearance_android_textSize = 0;
/**
<p>This symbol is the offset where the {@link android.R.attr#textStyle}
attribute's value can be found in the {@link #TextAppearance} array.
@attr name android:textStyle
*/
public static int TextAppearance_android_textStyle = 2;
/**
<p>This symbol is the offset where the {@link android.R.attr#typeface}
attribute's value can be found in the {@link #TextAppearance} array.
@attr name android:typeface
*/
public static int TextAppearance_android_typeface = 1;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#textAllCaps}
attribute's value can be found in the {@link #TextAppearance} array.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a boolean value, either "<code>true</code>" or "<code>false</code>".
@attr name android.support.v7.mediarouter:textAllCaps
*/
public static int TextAppearance_textAllCaps = 8;
/** Attributes that can be used with a TextInputLayout.
<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 #TextInputLayout_android_hint android:hint}</code></td><td></td></tr>
<tr><td><code>{@link #TextInputLayout_android_textColorHint android:textColorHint}</code></td><td></td></tr>
<tr><td><code>{@link #TextInputLayout_counterEnabled android.support.v7.mediarouter:counterEnabled}</code></td><td></td></tr>
<tr><td><code>{@link #TextInputLayout_counterMaxLength android.support.v7.mediarouter:counterMaxLength}</code></td><td></td></tr>
<tr><td><code>{@link #TextInputLayout_counterOverflowTextAppearance android.support.v7.mediarouter:counterOverflowTextAppearance}</code></td><td></td></tr>
<tr><td><code>{@link #TextInputLayout_counterTextAppearance android.support.v7.mediarouter:counterTextAppearance}</code></td><td></td></tr>
<tr><td><code>{@link #TextInputLayout_errorEnabled android.support.v7.mediarouter:errorEnabled}</code></td><td></td></tr>
<tr><td><code>{@link #TextInputLayout_errorTextAppearance android.support.v7.mediarouter:errorTextAppearance}</code></td><td></td></tr>
<tr><td><code>{@link #TextInputLayout_hintAnimationEnabled android.support.v7.mediarouter:hintAnimationEnabled}</code></td><td></td></tr>
<tr><td><code>{@link #TextInputLayout_hintEnabled android.support.v7.mediarouter:hintEnabled}</code></td><td></td></tr>
<tr><td><code>{@link #TextInputLayout_hintTextAppearance android.support.v7.mediarouter:hintTextAppearance}</code></td><td></td></tr>
</table>
@see #TextInputLayout_android_hint
@see #TextInputLayout_android_textColorHint
@see #TextInputLayout_counterEnabled
@see #TextInputLayout_counterMaxLength
@see #TextInputLayout_counterOverflowTextAppearance
@see #TextInputLayout_counterTextAppearance
@see #TextInputLayout_errorEnabled
@see #TextInputLayout_errorTextAppearance
@see #TextInputLayout_hintAnimationEnabled
@see #TextInputLayout_hintEnabled
@see #TextInputLayout_hintTextAppearance
*/
public static final int[] TextInputLayout = {
0x0101009a, 0x01010150, 0x7f010133, 0x7f010134,
0x7f010135, 0x7f010136, 0x7f010137, 0x7f010138,
0x7f010139, 0x7f01013a, 0x7f01013b
};
/**
<p>This symbol is the offset where the {@link android.R.attr#hint}
attribute's value can be found in the {@link #TextInputLayout} array.
@attr name android:hint
*/
public static int TextInputLayout_android_hint = 1;
/**
<p>This symbol is the offset where the {@link android.R.attr#textColorHint}
attribute's value can be found in the {@link #TextInputLayout} array.
@attr name android:textColorHint
*/
public static int TextInputLayout_android_textColorHint = 0;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#counterEnabled}
attribute's value can be found in the {@link #TextInputLayout} 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 android.support.v7.mediarouter:counterEnabled
*/
public static int TextInputLayout_counterEnabled = 6;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#counterMaxLength}
attribute's value can be found in the {@link #TextInputLayout} array.
<p>Must be an integer value, such as "<code>100</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:counterMaxLength
*/
public static int TextInputLayout_counterMaxLength = 7;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#counterOverflowTextAppearance}
attribute's value can be found in the {@link #TextInputLayout} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:counterOverflowTextAppearance
*/
public static int TextInputLayout_counterOverflowTextAppearance = 9;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#counterTextAppearance}
attribute's value can be found in the {@link #TextInputLayout} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:counterTextAppearance
*/
public static int TextInputLayout_counterTextAppearance = 8;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#errorEnabled}
attribute's value can be found in the {@link #TextInputLayout} 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 android.support.v7.mediarouter:errorEnabled
*/
public static int TextInputLayout_errorEnabled = 4;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#errorTextAppearance}
attribute's value can be found in the {@link #TextInputLayout} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:errorTextAppearance
*/
public static int TextInputLayout_errorTextAppearance = 5;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#hintAnimationEnabled}
attribute's value can be found in the {@link #TextInputLayout} 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 android.support.v7.mediarouter:hintAnimationEnabled
*/
public static int TextInputLayout_hintAnimationEnabled = 10;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#hintEnabled}
attribute's value can be found in the {@link #TextInputLayout} 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 android.support.v7.mediarouter:hintEnabled
*/
public static int TextInputLayout_hintEnabled = 3;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#hintTextAppearance}
attribute's value can be found in the {@link #TextInputLayout} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:hintTextAppearance
*/
public static int TextInputLayout_hintTextAppearance = 2;
/** Attributes that can be used with a Toolbar.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #Toolbar_android_gravity android:gravity}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_android_minHeight android:minHeight}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_collapseContentDescription android.support.v7.mediarouter:collapseContentDescription}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_collapseIcon android.support.v7.mediarouter:collapseIcon}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_contentInsetEnd android.support.v7.mediarouter:contentInsetEnd}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_contentInsetLeft android.support.v7.mediarouter:contentInsetLeft}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_contentInsetRight android.support.v7.mediarouter:contentInsetRight}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_contentInsetStart android.support.v7.mediarouter:contentInsetStart}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_logo android.support.v7.mediarouter:logo}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_logoDescription android.support.v7.mediarouter:logoDescription}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_maxButtonHeight android.support.v7.mediarouter:maxButtonHeight}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_navigationContentDescription android.support.v7.mediarouter:navigationContentDescription}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_navigationIcon android.support.v7.mediarouter:navigationIcon}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_popupTheme android.support.v7.mediarouter:popupTheme}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_subtitle android.support.v7.mediarouter:subtitle}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_subtitleTextAppearance android.support.v7.mediarouter:subtitleTextAppearance}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_subtitleTextColor android.support.v7.mediarouter:subtitleTextColor}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_title android.support.v7.mediarouter:title}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_titleMarginBottom android.support.v7.mediarouter:titleMarginBottom}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_titleMarginEnd android.support.v7.mediarouter:titleMarginEnd}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_titleMarginStart android.support.v7.mediarouter:titleMarginStart}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_titleMarginTop android.support.v7.mediarouter:titleMarginTop}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_titleMargins android.support.v7.mediarouter:titleMargins}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_titleTextAppearance android.support.v7.mediarouter:titleTextAppearance}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_titleTextColor android.support.v7.mediarouter:titleTextColor}</code></td><td></td></tr>
</table>
@see #Toolbar_android_gravity
@see #Toolbar_android_minHeight
@see #Toolbar_collapseContentDescription
@see #Toolbar_collapseIcon
@see #Toolbar_contentInsetEnd
@see #Toolbar_contentInsetLeft
@see #Toolbar_contentInsetRight
@see #Toolbar_contentInsetStart
@see #Toolbar_logo
@see #Toolbar_logoDescription
@see #Toolbar_maxButtonHeight
@see #Toolbar_navigationContentDescription
@see #Toolbar_navigationIcon
@see #Toolbar_popupTheme
@see #Toolbar_subtitle
@see #Toolbar_subtitleTextAppearance
@see #Toolbar_subtitleTextColor
@see #Toolbar_title
@see #Toolbar_titleMarginBottom
@see #Toolbar_titleMarginEnd
@see #Toolbar_titleMarginStart
@see #Toolbar_titleMarginTop
@see #Toolbar_titleMargins
@see #Toolbar_titleTextAppearance
@see #Toolbar_titleTextColor
*/
public static final int[] Toolbar = {
0x010100af, 0x01010140, 0x7f010029, 0x7f01002c,
0x7f010030, 0x7f01003c, 0x7f01003d, 0x7f01003e,
0x7f01003f, 0x7f010041, 0x7f0100e3, 0x7f0100e4,
0x7f0100e5, 0x7f0100e6, 0x7f0100e7, 0x7f0100e8,
0x7f0100e9, 0x7f0100ea, 0x7f0100eb, 0x7f0100ec,
0x7f0100ed, 0x7f0100ee, 0x7f0100ef, 0x7f0100f0,
0x7f0100f1
};
/**
<p>This symbol is the offset where the {@link android.R.attr#gravity}
attribute's value can be found in the {@link #Toolbar} array.
@attr name android:gravity
*/
public static int Toolbar_android_gravity = 0;
/**
<p>This symbol is the offset where the {@link android.R.attr#minHeight}
attribute's value can be found in the {@link #Toolbar} array.
@attr name android:minHeight
*/
public static int Toolbar_android_minHeight = 1;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#collapseContentDescription}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:collapseContentDescription
*/
public static int Toolbar_collapseContentDescription = 19;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#collapseIcon}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:collapseIcon
*/
public static int Toolbar_collapseIcon = 18;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#contentInsetEnd}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:contentInsetEnd
*/
public static int Toolbar_contentInsetEnd = 6;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#contentInsetLeft}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:contentInsetLeft
*/
public static int Toolbar_contentInsetLeft = 7;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#contentInsetRight}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:contentInsetRight
*/
public static int Toolbar_contentInsetRight = 8;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#contentInsetStart}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:contentInsetStart
*/
public static int Toolbar_contentInsetStart = 5;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#logo}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:logo
*/
public static int Toolbar_logo = 4;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#logoDescription}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:logoDescription
*/
public static int Toolbar_logoDescription = 22;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#maxButtonHeight}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:maxButtonHeight
*/
public static int Toolbar_maxButtonHeight = 17;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#navigationContentDescription}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:navigationContentDescription
*/
public static int Toolbar_navigationContentDescription = 21;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#navigationIcon}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:navigationIcon
*/
public static int Toolbar_navigationIcon = 20;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#popupTheme}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:popupTheme
*/
public static int Toolbar_popupTheme = 9;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#subtitle}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:subtitle
*/
public static int Toolbar_subtitle = 3;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#subtitleTextAppearance}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:subtitleTextAppearance
*/
public static int Toolbar_subtitleTextAppearance = 11;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#subtitleTextColor}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:subtitleTextColor
*/
public static int Toolbar_subtitleTextColor = 24;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#title}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:title
*/
public static int Toolbar_title = 2;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#titleMarginBottom}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:titleMarginBottom
*/
public static int Toolbar_titleMarginBottom = 16;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#titleMarginEnd}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:titleMarginEnd
*/
public static int Toolbar_titleMarginEnd = 14;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#titleMarginStart}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:titleMarginStart
*/
public static int Toolbar_titleMarginStart = 13;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#titleMarginTop}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:titleMarginTop
*/
public static int Toolbar_titleMarginTop = 15;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#titleMargins}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:titleMargins
*/
public static int Toolbar_titleMargins = 12;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#titleTextAppearance}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:titleTextAppearance
*/
public static int Toolbar_titleTextAppearance = 10;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#titleTextColor}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:titleTextColor
*/
public static int Toolbar_titleTextColor = 23;
/** Attributes that can be used with a View.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #View_android_focusable android:focusable}</code></td><td></td></tr>
<tr><td><code>{@link #View_android_theme android:theme}</code></td><td></td></tr>
<tr><td><code>{@link #View_paddingEnd android.support.v7.mediarouter:paddingEnd}</code></td><td></td></tr>
<tr><td><code>{@link #View_paddingStart android.support.v7.mediarouter:paddingStart}</code></td><td></td></tr>
<tr><td><code>{@link #View_theme android.support.v7.mediarouter:theme}</code></td><td></td></tr>
</table>
@see #View_android_focusable
@see #View_android_theme
@see #View_paddingEnd
@see #View_paddingStart
@see #View_theme
*/
public static final int[] View = {
0x01010000, 0x010100da, 0x7f0100f2, 0x7f0100f3,
0x7f0100f4
};
/**
<p>This symbol is the offset where the {@link android.R.attr#focusable}
attribute's value can be found in the {@link #View} array.
@attr name android:focusable
*/
public static int View_android_focusable = 1;
/**
<p>This symbol is the offset where the {@link android.R.attr#theme}
attribute's value can be found in the {@link #View} array.
@attr name android:theme
*/
public static int View_android_theme = 0;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#paddingEnd}
attribute's value can be found in the {@link #View} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:paddingEnd
*/
public static int View_paddingEnd = 3;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#paddingStart}
attribute's value can be found in the {@link #View} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:paddingStart
*/
public static int View_paddingStart = 2;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#theme}
attribute's value can be found in the {@link #View} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name android.support.v7.mediarouter:theme
*/
public static int View_theme = 4;
/** Attributes that can be used with a ViewBackgroundHelper.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ViewBackgroundHelper_android_background android:background}</code></td><td></td></tr>
<tr><td><code>{@link #ViewBackgroundHelper_backgroundTint android.support.v7.mediarouter:backgroundTint}</code></td><td></td></tr>
<tr><td><code>{@link #ViewBackgroundHelper_backgroundTintMode android.support.v7.mediarouter:backgroundTintMode}</code></td><td></td></tr>
</table>
@see #ViewBackgroundHelper_android_background
@see #ViewBackgroundHelper_backgroundTint
@see #ViewBackgroundHelper_backgroundTintMode
*/
public static final int[] ViewBackgroundHelper = {
0x010100d4, 0x7f0100f5, 0x7f0100f6
};
/**
<p>This symbol is the offset where the {@link android.R.attr#background}
attribute's value can be found in the {@link #ViewBackgroundHelper} array.
@attr name android:background
*/
public static int ViewBackgroundHelper_android_background = 0;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#backgroundTint}
attribute's value can be found in the {@link #ViewBackgroundHelper} array.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name android.support.v7.mediarouter:backgroundTint
*/
public static int ViewBackgroundHelper_backgroundTint = 1;
/**
<p>This symbol is the offset where the {@link android.support.v7.mediarouter.R.attr#backgroundTintMode}
attribute's value can be found in the {@link #ViewBackgroundHelper} array.
<p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>src_over</code></td><td>3</td><td></td></tr>
<tr><td><code>src_in</code></td><td>5</td><td></td></tr>
<tr><td><code>src_atop</code></td><td>9</td><td></td></tr>
<tr><td><code>multiply</code></td><td>14</td><td></td></tr>
<tr><td><code>screen</code></td><td>15</td><td></td></tr>
</table>
@attr name android.support.v7.mediarouter:backgroundTintMode
*/
public static int ViewBackgroundHelper_backgroundTintMode = 2;
/** Attributes that can be used with a ViewStubCompat.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ViewStubCompat_android_id android:id}</code></td><td></td></tr>
<tr><td><code>{@link #ViewStubCompat_android_inflatedId android:inflatedId}</code></td><td></td></tr>
<tr><td><code>{@link #ViewStubCompat_android_layout android:layout}</code></td><td></td></tr>
</table>
@see #ViewStubCompat_android_id
@see #ViewStubCompat_android_inflatedId
@see #ViewStubCompat_android_layout
*/
public static final int[] ViewStubCompat = {
0x010100d0, 0x010100f2, 0x010100f3
};
/**
<p>This symbol is the offset where the {@link android.R.attr#id}
attribute's value can be found in the {@link #ViewStubCompat} array.
@attr name android:id
*/
public static int ViewStubCompat_android_id = 0;
/**
<p>This symbol is the offset where the {@link android.R.attr#inflatedId}
attribute's value can be found in the {@link #ViewStubCompat} array.
@attr name android:inflatedId
*/
public static int ViewStubCompat_android_inflatedId = 2;
/**
<p>This symbol is the offset where the {@link android.R.attr#layout}
attribute's value can be found in the {@link #ViewStubCompat} array.
@attr name android:layout
*/
public static int ViewStubCompat_android_layout = 1;
};
}
| [
"richard85014@hotmail.com"
] | richard85014@hotmail.com |
2d3f79133e30222b87bf878538c6623718d33556 | 0a3405214d17a24685b149e96847de9cd9eb235d | /java20/src/java20/Man.java | ffe883da82557ea305f4db223a6d7cdec40e01c7 | [] | no_license | jwlove0928/birdatajava | f43fc29ab05c3bd7759937f60ec86a069e1c652d | b165537570ee39adcf3433caa57b582aadf5d3ae | refs/heads/master | 2020-05-14T13:29:54.323222 | 2019-05-31T06:19:36 | 2019-05-31T06:19:36 | 181,813,278 | 0 | 0 | null | null | null | null | WINDOWS-1252 | Java | false | false | 237 | java | package java20;
public class Man {
String weak;
int weight;
public Man() {
System.out.println("³²ÀÚ...");
}
public Man(String weak, int weight) {
super();
this.weak = weak;
this.weight = weight;
}
}
| [
"noreply@github.com"
] | jwlove0928.noreply@github.com |
8f783cb7487721d99a96c0f3eba4628556c4c081 | 871f08d6f74b92ce162ffa9972d8993529d88dd2 | /chapter2/src/main/java/com/mengyu/jpa_study/chapter2/repository/impl/CustomizedUserRepositoryImpl.java | 5d9f9e8070c9ced9e1b34a9d3af4535b91fd06e1 | [] | no_license | bufengmobuganhuo/jpa-study | 5693b79863071d0251c8b4ce36f7e99b25fd7d29 | 707a6a801447cf86590660954867b01aa012ee30 | refs/heads/main | 2023-02-10T07:51:10.548451 | 2021-01-10T06:50:31 | 2021-01-10T06:50:31 | 312,726,497 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 759 | java | package com.mengyu.jpa_study.chapter2.repository.impl;
import com.mengyu.jpa_study.chapter2.entity.User;
import com.mengyu.jpa_study.chapter2.repository.CustomizedUserRepository;
import javax.persistence.EntityManager;
/**
* @author yuzhang
* @date 2020/12/8 下午8:09
* TODO
*/
public class CustomizedUserRepositoryImpl<T> implements CustomizedUserRepository<T>{
// 通过构造函数注入
private final EntityManager entityManager;
public CustomizedUserRepositoryImpl(EntityManager entityManager) {
this.entityManager = entityManager;
}
@Override
public void actualUpdateName(T user) {
if (user instanceof User){
entityManager.merge(user);
entityManager.flush();
}
}
}
| [
"18681820448@163.com"
] | 18681820448@163.com |
143f796df2432c6dcd6dcefddf6521589b099fa5 | a7a0632311809af12ff1681cb5132ace3bf4a15c | /Java/UC9/src/lecture10/CategoriaCRUD.java | 359caad42f053f80b84663114d3af2cd91866eca | [] | no_license | marinaymone/Projeto-Integrador | fe84cffaaa7c2d94a7220c3e5d69f8702c74534f | f7b7e185e229855ec5817cec9ef127501774b93d | refs/heads/main | 2023-06-13T08:01:04.237716 | 2021-07-08T14:46:32 | 2021-07-08T14:46:32 | 384,126,845 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,213 | java | package lecture11;
import java.sql.*;
public class CategoriaCRUD {
public static void main(String[] args) throws SQLException {
(new CategoriaCRUD()).run();
}
public void run() throws SQLException {
try(Connection connection = createConnection()) {
int id = -1;
String insertSQL = "INSERT INTO Categoria(nome) VALUES ('Example Brand')";
try(Statement statement = connection.createStatement()) {
statement.executeUpdate(insertSQL, Statement.RETURN_GENERATED_KEYS);
try (ResultSet keys = statement.getGeneratedKeys()) {
keys.next();
id = keys.getInt(1);
}
String updateSQL = "UPDATE Categoria SET nome='Example Brand (Updated)' WHERE id = 999999";
statement.executeUpdate(updateSQL);
String deleteSQL = "DELETE FROM Categoria WHERE nome = 'Example Brand'";
statement.executeUpdate(deleteSQL);
}
}
}
private Connection createConnection() throws SQLException {
return DriverManager.getConnection("jdbc:mariadb://localhost/pi17", "root", null);
}
}
| [
"camilagaertner754@gmail.com"
] | camilagaertner754@gmail.com |
1f6fa95caf0fdb484a065d088b0609c381eb980a | 34a3a0199bab5029dbbdb9f1a9fcf8ce4e4ee081 | /JAVA/JavaSourceCode/Chapter06/src/Ex06_03.java | cafaf7749f4cf1389bb3889da8bbeeb3d93fbc8a | [] | no_license | Seunghwan0828/University_assignment | f5e181fa930c7adc53af7dcba44a7be5d0947370 | 39c16817df452f6d4e4c7ad5f960ddab5eacb724 | refs/heads/master | 2023-05-05T13:07:02.536557 | 2021-06-01T08:08:09 | 2021-06-01T08:08:09 | 360,202,074 | 0 | 0 | null | null | null | null | UHC | Java | false | false | 383 | java | public class Ex06_03 {
public static void main(String[] args) {
int i;
for (i = 0; i < 3; i++)
{
System.out.printf("안녕하세요? \n");
System.out.printf("##또 안녕하세요?## \n");
}
System.out.printf("\n\n");
for (i = 0; i < 3; i++)
System.out.printf("안녕하세요? \n");
System.out.printf("##또 안녕하세요?## \n");
}
} | [
"jshwan0828@naver.com"
] | jshwan0828@naver.com |
be79e3093ee12eafb666e0748eb7c2361917d9e0 | 7ab7c6967eb6b01d0278b4f73ed0840c93f8c750 | /WorkFlowWebServices/src/main/java/com/gs/photos/web/assembler/KeywordsAssembler.java | a4dc7cfd9b3fc898f1de55b508087b8aff200a06 | [] | no_license | foozy74/sony-WorkflowGs | 58d6c5c607532ce9d346cc7efac54a7fa646f6a9 | db337c012f71aaa6ee4c621002992944c75dfacc | refs/heads/master | 2023-02-03T08:46:54.269527 | 2020-12-21T15:28:21 | 2020-12-21T15:28:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,389 | java | package com.gs.photos.web.assembler;
import java.io.IOException;
import java.util.Arrays;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.data.domain.Sort;
import org.springframework.data.web.HateoasPageableHandlerMethodArgumentResolver;
import org.springframework.hateoas.EntityModel;
import org.springframework.hateoas.Link;
import org.springframework.hateoas.LinkRelation;
import org.springframework.hateoas.server.mvc.RepresentationModelAssemblerSupport;
import org.springframework.hateoas.server.mvc.WebMvcLinkBuilder;
import org.springframework.hateoas.server.mvc.WebMvcLinkBuilderFactory;
import org.springframework.stereotype.Component;
import com.gs.photos.controllers.GsPageRequest;
import com.gs.photos.controllers.ImageController;;
@Component
public class KeywordsAssembler extends RepresentationModelAssemblerSupport<String, EntityModel<String>> {
static Class<EntityModel<String>> getClassForConstructor() {
EntityModel<String> retValue = new EntityModel<String>(new String(), new Link[] {});
Class<EntityModel<String>> classA = (Class<EntityModel<String>>) retValue.getClass();
return classA;
}
private static final WebMvcLinkBuilderFactory FACTORY = new WebMvcLinkBuilderFactory();
@Autowired
@Qualifier("GsHateoasPageableResolver")
protected HateoasPageableHandlerMethodArgumentResolver pageableResolver;
// = this .pageableResolver();
public KeywordsAssembler() { super(ImageController.class,
KeywordsAssembler.getClassForConstructor()); }
@Override
public EntityModel<String> toModel(String entity) {
KeywordsAssembler.FACTORY.setUriComponentsContributors(Arrays.asList(this.pageableResolver));
GsPageRequest p = GsPageRequest.builder()
.withPage(1)
.withSort(Sort.by("creationTime"))
.withPageSize(100)
.build();
try {
return new EntityModel<String>(entity,
KeywordsAssembler.FACTORY.linkTo(
WebMvcLinkBuilder.methodOn(ImageController.class)
.getImagesByKeyword(p, null, entity))
.withRel(LinkRelation.of("_page")));
} catch (IOException e) {
throw new RuntimeException(e);
}
}
} | [
"hdeslandes@granadasolutions.com"
] | hdeslandes@granadasolutions.com |
700f35e83ff35d306754d8fc784506f097ff5f9d | a7647f6548b57ab45d374d7b697e8096558e236d | /src/main/java/com/trip/controller/AddressController.java | 6cf0d2169b976255ea9858218ffb4d9fb6800924 | [] | no_license | gzmlovecat/atripcode | 213cd31526106b85182321126e09d18d6a0b2f31 | 7b40021a9e44b0471e6a3336a923a1252a326dd3 | refs/heads/master | 2020-04-25T07:26:10.085733 | 2019-02-27T05:23:45 | 2019-02-27T05:23:45 | 172,613,799 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,361 | java | package com.trip.controller;
import com.trip.entity.LogTypeEnum;
import com.trip.entity.OperateTypeEnum;
import com.trip.entity.ResultEntity;
import com.trip.entity.UserInfoEntity;
import com.trip.service.AddressService;
import com.trip.service.EmployeeService;
import com.trip.service.LogAopAnnotation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.servlet.http.HttpServletRequest;
@Controller
public class AddressController {
@Autowired
private AddressService addressService;
/**
* 新增地址
* @param addressDetail
* @param addressType
* @param request
* @return
*/
@RequestMapping(value="/address/add",method = RequestMethod.POST)
@ResponseBody
@LogAopAnnotation(logType = LogTypeEnum.ADDRESS,operateType = OperateTypeEnum.ADD)
public String addSupplier(@RequestParam(value="addressType",required=false)String addressType,
@RequestParam(value="addressDetail",required=true)String addressDetail,
HttpServletRequest request) throws Exception{
Long currentUserId = UserInfoEntity.getUserId(request);
ResultEntity resultEntity = addressService.addAddress(addressType,addressDetail,
currentUserId);
return resultEntity.toString();
}
@RequestMapping(value="/address/list",method = RequestMethod.GET,produces="application/json;charset=UTF-8")
@ResponseBody
public String queryAccount(@RequestParam(name="addressDetail",required = false)String addressDetail,
@RequestParam(name="addressType",required = false)String addressType,
@RequestParam(value="pageNum", required=false) String pageNum, // 页数
@RequestParam(value="pageSize", required=false) String pageSize // 条数
){
ResultEntity resultEntity = addressService.queryAddressList(addressType,addressDetail,pageNum,pageSize);
return resultEntity.toString();
}
}
| [
"2000104932@PC50500202500.domain.ocj.com.cn"
] | 2000104932@PC50500202500.domain.ocj.com.cn |
2b535b277789380bc6db776c12bf538c3e83774e | a55cde0a499b0b3fab0e94cb6a81d12b24da3c9c | /SistemaEducativo2026/src/Servlet/ServletObservaciones.java | 4a245c8b98461e56ed112607299d22251ee2464b | [] | no_license | JuanGabino/ProyII | a0b6445a334f8efde1f3319d80a976ff1637a016 | ce7eb07926ea664b4fe9ebc904fdc08217acf082 | refs/heads/master | 2020-04-28T13:30:15.441510 | 2019-03-12T23:08:59 | 2019-03-12T23:08:59 | 175,308,745 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,662 | java | package Servlet;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import Beans.DetalleObservacion;
import Beans.Observaciones;
import Jdbc.ComunicadoJDBC;
import Jdbc.ObservacionesJDBC;
@WebServlet({"/RegistrarObservaciones", "/BuscarObservacion", "/RegistrarDetalleObservacion", "/EliminarObservacion"})
public class ServletObservaciones extends HttpServlet {
private static final long serialVersionUID = 1L;
public ServletObservaciones() {
super();
}
protected void service(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
try {
switch (request.getServletPath()) { //jala el nombre del ervlet
case "/RegistrarObservaciones":
registrarObservaciones(request, response);
break;
case "/BuscarObservacion":
listarObservaciones(request, response);
break;
case "/RegistrarDetalleObservacion":
registrarDetalleObservacion(request, response);
break;
case "/EliminarObservacion":
eliminarObservacion(request, response);
}
} catch (Exception e) {
System.out.println("error :" + e.getMessage());
e.printStackTrace();
}
}
private void registrarObservaciones(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException, JSONException {
boolean prueba = false;
String respuesta = "0";
String jsonData = request.getParameter("objetojson");
JSONObject obj = new JSONObject(jsonData);
JSONArray arr = obj.getJSONArray("linea");
String alumno = "";
String descripcion = "";
String fecha = "";
String seccion = "";
String docente = "";
String curso = "";
Observaciones bean = new Observaciones();
try
{
ObservacionesJDBC dao = new ObservacionesJDBC();
for (int i = 0; i < arr.length(); i++) {
alumno = arr.getJSONObject(i).getString("alumno");
descripcion = arr.getJSONObject(i).getString("texto");
fecha = arr.getJSONObject(i).getString("fecha");
seccion = arr.getJSONObject(i).getString("selectSeccion");
curso = arr.getJSONObject(i).getString("idcurso");
docente = arr.getJSONObject(i).getString("txtdni");
bean.setObervaciones(descripcion);
bean.setAlumno(alumno);
bean.setFecha(fecha);
bean.setSeccion(seccion);
bean.setCurso(curso);
bean.setDocente(docente);
prueba = dao.registrarObservacion(bean);
}
respuesta = prueba == true ? "1" : "0";
System.out.println("respuesta: " + respuesta);
System.out.println("Se realizo el Servlet registro obs correctamente");
response.setContentType("text/plain");
response.getWriter().write(respuesta);
} catch(Exception e) {
System.out.println("Error : "+e.getMessage());
e.printStackTrace();
}
}
private void registrarDetalleObservacion(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException, JSONException {
boolean prueba = false;
String respuesta = "0";
String jsonData = request.getParameter("objetojson");
JSONObject obj = new JSONObject(jsonData);
JSONArray arr = obj.getJSONArray("linea");
String idAlumno = "";
String idObservacion = "";
DetalleObservacion bean = new DetalleObservacion();
try
{
ObservacionesJDBC dao = new ObservacionesJDBC();
for (int i = 0; i < arr.length(); i++) {
idAlumno = arr.getJSONObject(i).getString("idAlumno");
idObservacion = arr.getJSONObject(i).getString("idObservacion");
bean.setIdalumno(idAlumno);
bean.setIdobservacion(idObservacion);
prueba = dao.registrarDetalleObservaciones(bean);
}
respuesta = prueba == true ? "1" : "0";
System.out.println("respuesta: " + respuesta);
System.out.println("Se realizo el Servlet correctamente");
response.setContentType("text/plain");
response.getWriter().write(respuesta);
} catch(Exception e) {
System.out.println("Error : "+e.getMessage());
e.printStackTrace();
}
}
private void listarObservaciones(HttpServletRequest request, HttpServletResponse response) throws Exception {
String dni= request.getParameter("dni");
String seccion = request.getParameter("seccion");
StringBuilder sb = new StringBuilder("");
try {
ObservacionesJDBC dao = new ObservacionesJDBC();
sb = dao.buscarObservacion(dni, seccion);
} catch (Exception e) {
e.printStackTrace();
}
response.setContentType("text/plain");
response.getWriter().write(sb.toString());
}
private void eliminarObservacion(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
String id = request.getParameter("idobservacion");
System.out.println("ID DE la OBSERVACION ES: " + id);
int respuesta = 0;
try {
ObservacionesJDBC dao = new ObservacionesJDBC();
respuesta = dao.eliminarObservacion(id) == true ? 1 : 0;
} catch (Exception e) {
System.out.println("Error : " + e.getMessage());
e.printStackTrace();
}
response.setContentType("text/plain");
response.getWriter().write(respuesta);
}
}
| [
"user@192.168.1.39"
] | user@192.168.1.39 |
b3104b99f23365d028ef7ed8e5386f94e861199b | aa0e9d94d3db5a65c3fe9a608ced6a45cad32acd | /app/src/main/java/com/gh/nimbus2020/Id_Value.java | 6142bbceaeced02a119bf091fa87be3f97a82774 | [] | no_license | SushantChandla/nimbus202 | bcd70b23132d5b5f4c4b5e49fe8ca5f8f67546d5 | 0491668aca3ccac190e29739fb1c21cfb09e1e0c | refs/heads/master | 2020-12-23T21:01:21.934821 | 2020-01-30T18:06:45 | 2020-01-30T18:06:45 | 237,273,493 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 321 | java | package com.gh.nimbus2020;
public class Id_Value {
private String value;
private String id;
public Id_Value(String value, String id) {
this.value = value;
this.id = id;
}
public String getValue() {
return value;
}
public String getId() {
return id;
}
}
| [
"sushantchandla@gmail.com"
] | sushantchandla@gmail.com |
4799aef9dffbd03c86f59d885cbf7e3b61b3ad05 | fd42e77cd3c9e2a1af6a96d22eb46f2d3bd603f4 | /ChatSystemG4/src/org/insa/java/view/JavaStandardMessageBar.java | b73d66f8a0d14691784906eb1a19514f3a6e52cb | [] | no_license | aaodiall/chatsystem-4ir-2013-b1 | 11505d926cb29de048cb500329e608abf157dca9 | 6ffb08ffcf77cfa9fff7303860592824bcd67b68 | refs/heads/master | 2021-01-13T01:26:59.530714 | 2013-12-20T17:01:31 | 2013-12-20T17:01:31 | 33,658,429 | 0 | 0 | null | null | null | null | ISO-8859-13 | Java | false | false | 438 | java | package org.insa.java.view;
/**
* Generic graphic class for java-based message bar.
* @author thomas thiebaud
* @author unaļ sanchez
*/
public abstract class JavaStandardMessageBar {
/**
* Set message bar text.
* @param s New text.
*/
public abstract void setText(String s);
/**
* Get message bar container.
* @return container MessageBar container.
*/
public abstract Object getContainer();
}
| [
"thiebaud.tom@gmail.com@36bdba98-47b0-9e5b-5b9c-1307c8c31073"
] | thiebaud.tom@gmail.com@36bdba98-47b0-9e5b-5b9c-1307c8c31073 |
c8cd04355fdebef29e711b4d5ab2d8abd49e10f1 | d95977a93b071bce15c8467e18f24f4517030ea3 | /src/main/java/in/pool/server/utils/EmailCheck.java | af0a836c95a1d154485792ebe53fc4eda35c48cf | [] | no_license | choryDev/poolin | 098184c608ac0d8d838f3532d1d5469bc61060dc | 3daf8e004b3d7e85b977d4e22c00a93359175471 | refs/heads/master | 2022-07-22T06:51:36.254109 | 2019-06-22T04:50:52 | 2019-06-22T04:50:52 | 236,904,072 | 2 | 0 | null | 2022-05-20T21:23:38 | 2020-01-29T04:40:35 | JavaScript | UTF-8 | Java | false | false | 466 | java | package in.pool.server.utils;
import javax.mail.internet.AddressException;
import javax.mail.internet.InternetAddress;
public class EmailCheck {
public static boolean isValidEmailAddress(String email) {
boolean result = true;
try {
InternetAddress emailAddr = new InternetAddress(email);
emailAddr.validate();
} catch (AddressException ex) {
result = false;
}
return result;
}
}
| [
"ijunc2@gmail.com"
] | ijunc2@gmail.com |
748a2b238078b4641587b1a75d4e7547fc625061 | b0bc160329e0df64511c47651b6dd8b84adcd58e | /src/net/ruready/port/xml/content_1_3/CountryHelper.java | 266dc99c1ebb564f4bd6c4b3c498863fe1ad4a9e | [] | no_license | Shantanu28/ruready | 80bc4727af120e77df1aaf9cfc52217287e2088b | bc113a55290e7732464b31bb3462862bb20fd38f | refs/heads/master | 2021-03-16T09:44:43.739386 | 2016-01-22T13:26:35 | 2016-01-22T13:26:35 | 50,182,589 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 8,860 | java | /*****************************************************************************************
* Source File: CountryHelper.java
****************************************************************************************/
package net.ruready.port.xml.content_1_3;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import net.ruready.business.common.tree.entity.Node;
import net.ruready.business.content.item.entity.ItemType;
import net.ruready.business.content.rl.ContentNames;
import net.ruready.business.content.world.entity.City;
import net.ruready.business.content.world.entity.Country;
import net.ruready.business.content.world.entity.CountryFactory;
import net.ruready.business.content.world.entity.School;
import net.ruready.business.content.world.entity.State;
import net.ruready.common.parser.xml.TagAttachment;
import net.ruready.common.parser.xml.XmlBodyElement;
import net.ruready.common.parser.xml.helper.GriddyHelper;
import net.ruready.common.rl.CommonNames;
import net.ruready.common.stack.AbstractStack;
import net.ruready.port.xml.content.WorldDataTarget;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.xml.sax.Attributes;
/**
* A helper that constructs a {@link Country} object from a corresponding XML
* element.
* <p>
* -------------------------------------------------------------------------<br>
* (c) 2006-2007 Continuing Education, University of Utah<br>
* All copyrights reserved. U.S. Patent Pending DOCKET NO. 00846 25702.PROV
* <p>
* This file is part of the RUReady Program software.<br>
* Contact: Nava L. Livne <code><nlivne@aoce.utah.edu></code><br>
* Academic Outreach and Continuing Education (AOCE)<br>
* 1901 East South Campus Dr., Room 2197-E<br>
* University of Utah, Salt Lake City, UT 84112-9359<br>
* U.S.A.<br>
* Day Phone: 1-801-587-5835, Fax: 1-801-585-5414<br>
* <br>
* Please contact these numbers immediately if you receive this file without
* permission from the authors. Thank you.<br>
* -------------------------------------------------------------------------
*
* @author Oren E. Livne <code><olivne@aoce.utah.edu></code>
* @version Jul 19, 2007
*/
class CountryHelper extends GriddyHelper
{
// ========================= CONSTANTS =================================
/**
* A logger that helps identify this class' printouts.
*/
@SuppressWarnings("unused")
private static final Log logger = LogFactory.getLog(CountryHelper.class);
/**
* Fence for this XML block.
*/
private static final TagAttachment FENCE = new XmlBodyElement(
CommonNames.PARSER.FENCE.PREFIX + CountryHelper.class.toString(), null);
/**
* Tag's attributes.
*/
private static final String ATTRIBUTES_NAME = "ATTRIBUTES"
+ CommonNames.MISC.SEPARATOR + CountryHelper.class.toString();
/**
* Convert a <country> tag xsi:type attribute to an item ID.
*/
private static final Map<String, ItemType> attribute2ItemType = new HashMap<String, ItemType>();
static
{
attribute2ItemType.put("unified", ItemType.COUNTRY);
attribute2ItemType.put("federation", ItemType.FEDERATION);
}
// ========================= FIELDS ====================================
// ========================= CONSTRUCTORS ==============================
/**
* Construct a helper that applies a function or operation to its operands.
*
* @param tagName
* final String tagName
*/
public CountryHelper(final String tagName)
{
super(tagName);
}
// ========================= IMPLEMENTATION: Helper ====================
/**
* Stack a fence signifying that a function application block is starting.
* This fence is retrieved by {@link #endElement(Object)}.
*
* @param atts
* the attributes attached to the element
* @param target
* @see net.ruready.parser.core.xml.Helper#startElement(java.lang.Object)
*/
@SuppressWarnings("unchecked")
@Override
public void processStartElement(final Attributes atts, final Object target)
{
// Cast to a friendlier version
AbstractStack<Object> myTarget = (AbstractStack<Object>) target;
// Stack the country type attribute, to be used by processEndElement().
ItemType type = attribute2ItemType.get(atts.getValue("xsi:type"));
myTarget.push(new XmlBodyElement(CountryHelper.ATTRIBUTES_NAME, type));
// Stack the fence
myTarget.push(CountryHelper.FENCE);
}
/**
* Create a country and add all states under it.
*
* @see net.ruready.parser.core.xml.Helper#endElement(java.lang.Object)
*/
@Override
public void processEndElement(Object target)
{
// Cast to a friendlier version
WorldDataTarget myTarget = (WorldDataTarget) target;
// Pop all state elements above the fence
List<TagAttachment> elements = myTarget.elementsAbove(CountryHelper.FENCE);
// Pop the tag's attributes
ItemType type = (ItemType) ((XmlBodyElement) myTarget.pop()).getValue();
// Create a new country object from required nested tags. If a country
// with this name already exists in the target, use it instead so that
// we end up merging the XML data into it.
// Country and <country> are polymorphic. Use the type to instantiate
// the correct country type.
XmlBodyElement nameElement = WorldDataTarget.findElementByTagName(elements,
"name");
String name = (String) nameElement.getValue();
XmlBodyElement phoneCodeElement = WorldDataTarget.findElementByTagName(elements,
"phone-code");
int phoneCode = (Integer) phoneCodeElement.getValue();
Country country = new CountryFactory().createType(type, name, null, phoneCode);
logger.debug("Found country, type " + type + " phoneCode '" + phoneCode + "'");
country = myTarget.getWorld().findOrAddItem(country);
// Loop over nested elements and add them to the country
for (TagAttachment element : elements)
{
String elementTagName = element.getTagName();
if ("name".equals(elementTagName))
{
XmlBodyElement bodyElement = (XmlBodyElement) element;
country.setName((String) bodyElement.getValue());
}
else if ("comment".equals(elementTagName))
{
XmlBodyElement bodyElement = (XmlBodyElement) element;
country.setComment((String) bodyElement.getValue());
}
else if ("city-string".equals(elementTagName))
{
XmlBodyElement bodyElement = (XmlBodyElement) element;
country.setCountyString((String) bodyElement.getValue());
}
else if ("state".equals(elementTagName))
{
// Country is a federation
XmlBodyElement stateElement = (XmlBodyElement) element;
State state = (State) stateElement.getValue();
country.findOrAddItem(state);
}
else if ("school".equals(elementTagName))
{
// In version 1.3. the city is a property of School, not its
// parent.
// Therefore, read the school, read its city, and add the city
// under the state object and the school under the city.
XmlBodyElement childElement = (XmlBodyElement) element;
School school = (School) childElement.getValue();
String cityName = school.getCity();
if (cityName == null)
{
myTarget.incrementNumErrors();
logger.warn("Missing city for school '" + school.getName()
+ "', using default city");
cityName = ContentNames.BASE_NAME.CITY;
}
City city = new City(cityName, null);
// Transfer county property from school to city. If an existing
// city is
// found with the same name and county, rename both cities to
// include
// the county name.
String county = school.getCounty();
city.setCounty(county);
String suffix = (country.getCountyString() == null) ? CommonNames.MISC.EMPTY_STRING
: country.getCountyString();
if (county != null)
{
for (Node childRaw : country.getChildren())
{
City child = (City) childRaw;
String childName = child.getName();
String childCounty = child.getCounty();
if (cityName.equals(childName) && (childCounty != null)
&& county.equals(childCounty))
{
// We decided not to rename, just warn for now
myTarget.incrementNumErrors();
logger.warn("Found duplicate city: " + school.getName()
+ " city '" + city.getName() + "' in counties "
+ childCounty + ", " + county + " ==> renaming");
child.setName(childName + ", " + county + suffix);
city.setName(cityName + ", " + county + suffix);
}
}
}
// logger.debug("Added school '" + school.getName() + "'" + "
// city '"
// + city.getName() + "'");
city = country.findOrAddItem(city);
School existing = (School) country.findChild(school);
if ((existing != null) && (existing.getParent() == city))
{
logger.warn("Found duplicate school: " + school.getName() + " city '"
+ city.getName() + "'");
}
school = city.findOrAddItem(school);
}
}
}
}
| [
"shantanu.rautela@gmail.com"
] | shantanu.rautela@gmail.com |
c4a39743e1f083327dcb0b01a08bbab83df36685 | a9b468b487affcb30976084c725e8f44e880fcfa | /src/main/java/jpabook/jpashop/repository/ItemRepository.java | dcbb1f6b16745b9fe97e803820ffc1835fb39382 | [] | no_license | baekboys/jpashop | 4af21c628f8e36bf5636315e61ca1845377747b4 | ca9bf3e64d424b52767f881836381ceca72a8985 | refs/heads/master | 2023-03-11T01:12:47.666125 | 2021-02-25T17:03:04 | 2021-02-25T17:03:04 | 333,503,016 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 722 | java | package jpabook.jpashop.repository;
import jpabook.jpashop.domain.item.Item;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Repository;
import javax.persistence.EntityManager;
import java.util.List;
@Repository
@RequiredArgsConstructor
public class ItemRepository {
private final EntityManager em;
public void save(Item item) {
if (item.getId() == null) {
em.persist(item);
} else {
em.merge(item);
}
}
public Item findOne(Long id) {
return em.find(Item.class, id);
}
public List<Item> findAll() {
return em.createQuery("select i from Item i", Item.class)
.getResultList();
}
}
| [
"baekboys@naver.com"
] | baekboys@naver.com |
ab39cf029a6dd287bf48fa701606af9286a67332 | d8cc40718b7af0193479a233a21ea2f03c792764 | /aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/AmazonPinpointAsyncClient.java | 5845c6dc51efe8327eb62df31c8a2e9d1512ec72 | [
"Apache-2.0"
] | permissive | chaoweimt/aws-sdk-java | 1de8c0aeb9aa52931681268cd250ca2af59a83d9 | f11d648b62f2615858e2f0c2e5dd69e77a91abd3 | refs/heads/master | 2021-01-22T03:18:33.038352 | 2017-05-24T22:40:24 | 2017-05-24T22:40:24 | 92,371,194 | 1 | 0 | null | 2017-05-25T06:13:36 | 2017-05-25T06:13:35 | null | UTF-8 | Java | false | false | 54,926 | java | /*
* Copyright 2012-2017 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.pinpoint;
import static java.util.concurrent.Executors.newFixedThreadPool;
import javax.annotation.Generated;
import com.amazonaws.services.pinpoint.model.*;
import com.amazonaws.client.AwsAsyncClientParams;
import com.amazonaws.annotation.ThreadSafe;
import com.amazonaws.ClientConfiguration;
import com.amazonaws.auth.AWSCredentials;
import com.amazonaws.auth.AWSCredentialsProvider;
import java.util.concurrent.ExecutorService;
import com.amazonaws.auth.DefaultAWSCredentialsProviderChain;
/**
* Client for accessing Amazon Pinpoint asynchronously. Each asynchronous method will return a Java Future object
* representing the asynchronous operation; overloads which accept an {@code AsyncHandler} can be used to receive
* notification when an asynchronous operation completes.
*/
@ThreadSafe
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class AmazonPinpointAsyncClient extends AmazonPinpointClient implements AmazonPinpointAsync {
private static final int DEFAULT_THREAD_POOL_SIZE = 50;
private final java.util.concurrent.ExecutorService executorService;
/**
* Constructs a new asynchronous client to invoke service methods on Amazon Pinpoint. A credentials provider chain
* will be used that searches for credentials in this order:
* <ul>
* <li>Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY</li>
* <li>Java System Properties - aws.accessKeyId and aws.secretKey</li>
* <li>Credential profiles file at the default location (~/.aws/credentials) shared by all AWS SDKs and the AWS CLI</li>
* <li>Instance profile credentials delivered through the Amazon EC2 metadata service</li>
* </ul>
* <p>
* Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default
* maximum number of concurrent connections to the service).
*
* @see com.amazonaws.auth.DefaultAWSCredentialsProviderChain
* @see java.util.concurrent.Executors#newFixedThreadPool(int)
* @deprecated use {@link AmazonPinpointAsyncClientBuilder#defaultClient()}
*/
@Deprecated
public AmazonPinpointAsyncClient() {
this(DefaultAWSCredentialsProviderChain.getInstance());
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon Pinpoint. A credentials provider chain
* will be used that searches for credentials in this order:
* <ul>
* <li>Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY</li>
* <li>Java System Properties - aws.accessKeyId and aws.secretKey</li>
* <li>Credential profiles file at the default location (~/.aws/credentials) shared by all AWS SDKs and the AWS CLI</li>
* <li>Instance profile credentials delivered through the Amazon EC2 metadata service</li>
* </ul>
* <p>
* Asynchronous methods are delegated to a fixed-size thread pool containing a number of threads equal to the
* maximum number of concurrent connections configured via {@code ClientConfiguration.getMaxConnections()}.
*
* @param clientConfiguration
* The client configuration options controlling how this client connects to Amazon Pinpoint (ex: proxy
* settings, retry counts, etc).
*
* @see com.amazonaws.auth.DefaultAWSCredentialsProviderChain
* @see java.util.concurrent.Executors#newFixedThreadPool(int)
* @deprecated use {@link AmazonPinpointAsyncClientBuilder#withClientConfiguration(ClientConfiguration)}
*/
@Deprecated
public AmazonPinpointAsyncClient(ClientConfiguration clientConfiguration) {
this(DefaultAWSCredentialsProviderChain.getInstance(), clientConfiguration, newFixedThreadPool(clientConfiguration.getMaxConnections()));
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon Pinpoint using the specified AWS account
* credentials.
* <p>
* Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default
* maximum number of concurrent connections to the service).
*
* @param awsCredentials
* The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
* @see java.util.concurrent.Executors#newFixedThreadPool(int)
* @deprecated use {@link AmazonPinpointAsyncClientBuilder#withCredentials(AWSCredentialsProvider)}
*/
@Deprecated
public AmazonPinpointAsyncClient(AWSCredentials awsCredentials) {
this(awsCredentials, newFixedThreadPool(DEFAULT_THREAD_POOL_SIZE));
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon Pinpoint using the specified AWS account
* credentials and executor service. Default client settings will be used.
*
* @param awsCredentials
* The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
* @param executorService
* The executor service by which all asynchronous requests will be executed.
* @deprecated use {@link AmazonPinpointAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AmazonPinpointAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)}
*/
@Deprecated
public AmazonPinpointAsyncClient(AWSCredentials awsCredentials, ExecutorService executorService) {
this(awsCredentials, configFactory.getConfig(), executorService);
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon Pinpoint using the specified AWS account
* credentials, executor service, and client configuration options.
*
* @param awsCredentials
* The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
* @param clientConfiguration
* Client configuration options (ex: max retry limit, proxy settings, etc).
* @param executorService
* The executor service by which all asynchronous requests will be executed.
* @deprecated use {@link AmazonPinpointAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AmazonPinpointAsyncClientBuilder#withClientConfiguration(ClientConfiguration)} and
* {@link AmazonPinpointAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)}
*/
@Deprecated
public AmazonPinpointAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService) {
super(awsCredentials, clientConfiguration);
this.executorService = executorService;
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon Pinpoint using the specified AWS account
* credentials provider. Default client settings will be used.
* <p>
* Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default
* maximum number of concurrent connections to the service).
*
* @param awsCredentialsProvider
* The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
* @see java.util.concurrent.Executors#newFixedThreadPool(int)
* @deprecated use {@link AmazonPinpointAsyncClientBuilder#withCredentials(AWSCredentialsProvider)}
*/
@Deprecated
public AmazonPinpointAsyncClient(AWSCredentialsProvider awsCredentialsProvider) {
this(awsCredentialsProvider, newFixedThreadPool(DEFAULT_THREAD_POOL_SIZE));
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon Pinpoint using the provided AWS account
* credentials provider and client configuration options.
* <p>
* Asynchronous methods are delegated to a fixed-size thread pool containing a number of threads equal to the
* maximum number of concurrent connections configured via {@code ClientConfiguration.getMaxConnections()}.
*
* @param awsCredentialsProvider
* The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
* @param clientConfiguration
* Client configuration options (ex: max retry limit, proxy settings, etc).
*
* @see com.amazonaws.auth.DefaultAWSCredentialsProviderChain
* @see java.util.concurrent.Executors#newFixedThreadPool(int)
* @deprecated use {@link AmazonPinpointAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AmazonPinpointAsyncClientBuilder#withClientConfiguration(ClientConfiguration)}
*/
@Deprecated
public AmazonPinpointAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration) {
this(awsCredentialsProvider, clientConfiguration, newFixedThreadPool(clientConfiguration.getMaxConnections()));
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon Pinpoint using the specified AWS account
* credentials provider and executor service. Default client settings will be used.
*
* @param awsCredentialsProvider
* The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
* @param executorService
* The executor service by which all asynchronous requests will be executed.
* @deprecated use {@link AmazonPinpointAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AmazonPinpointAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)}
*/
@Deprecated
public AmazonPinpointAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService) {
this(awsCredentialsProvider, configFactory.getConfig(), executorService);
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon Pinpoint using the specified AWS account
* credentials provider, executor service, and client configuration options.
*
* @param awsCredentialsProvider
* The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
* @param clientConfiguration
* Client configuration options (ex: max retry limit, proxy settings, etc).
* @param executorService
* The executor service by which all asynchronous requests will be executed.
* @deprecated use {@link AmazonPinpointAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AmazonPinpointAsyncClientBuilder#withClientConfiguration(ClientConfiguration)} and
* {@link AmazonPinpointAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)}
*/
@Deprecated
public AmazonPinpointAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, ExecutorService executorService) {
super(awsCredentialsProvider, clientConfiguration);
this.executorService = executorService;
}
public static AmazonPinpointAsyncClientBuilder asyncBuilder() {
return AmazonPinpointAsyncClientBuilder.standard();
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon Pinpoint using the specified parameters.
*
* @param asyncClientParams
* Object providing client parameters.
*/
AmazonPinpointAsyncClient(AwsAsyncClientParams asyncClientParams) {
super(asyncClientParams);
this.executorService = asyncClientParams.getExecutor();
}
/**
* Returns the executor service used by this client to execute async requests.
*
* @return The executor service used by this client to execute async requests.
*/
public ExecutorService getExecutorService() {
return executorService;
}
@Override
public java.util.concurrent.Future<CreateCampaignResult> createCampaignAsync(CreateCampaignRequest request) {
return createCampaignAsync(request, null);
}
@Override
public java.util.concurrent.Future<CreateCampaignResult> createCampaignAsync(final CreateCampaignRequest request,
final com.amazonaws.handlers.AsyncHandler<CreateCampaignRequest, CreateCampaignResult> asyncHandler) {
final CreateCampaignRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable<CreateCampaignResult>() {
@Override
public CreateCampaignResult call() throws Exception {
CreateCampaignResult result = null;
try {
result = executeCreateCampaign(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future<CreateImportJobResult> createImportJobAsync(CreateImportJobRequest request) {
return createImportJobAsync(request, null);
}
@Override
public java.util.concurrent.Future<CreateImportJobResult> createImportJobAsync(final CreateImportJobRequest request,
final com.amazonaws.handlers.AsyncHandler<CreateImportJobRequest, CreateImportJobResult> asyncHandler) {
final CreateImportJobRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable<CreateImportJobResult>() {
@Override
public CreateImportJobResult call() throws Exception {
CreateImportJobResult result = null;
try {
result = executeCreateImportJob(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future<CreateSegmentResult> createSegmentAsync(CreateSegmentRequest request) {
return createSegmentAsync(request, null);
}
@Override
public java.util.concurrent.Future<CreateSegmentResult> createSegmentAsync(final CreateSegmentRequest request,
final com.amazonaws.handlers.AsyncHandler<CreateSegmentRequest, CreateSegmentResult> asyncHandler) {
final CreateSegmentRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable<CreateSegmentResult>() {
@Override
public CreateSegmentResult call() throws Exception {
CreateSegmentResult result = null;
try {
result = executeCreateSegment(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future<DeleteApnsChannelResult> deleteApnsChannelAsync(DeleteApnsChannelRequest request) {
return deleteApnsChannelAsync(request, null);
}
@Override
public java.util.concurrent.Future<DeleteApnsChannelResult> deleteApnsChannelAsync(final DeleteApnsChannelRequest request,
final com.amazonaws.handlers.AsyncHandler<DeleteApnsChannelRequest, DeleteApnsChannelResult> asyncHandler) {
final DeleteApnsChannelRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable<DeleteApnsChannelResult>() {
@Override
public DeleteApnsChannelResult call() throws Exception {
DeleteApnsChannelResult result = null;
try {
result = executeDeleteApnsChannel(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future<DeleteCampaignResult> deleteCampaignAsync(DeleteCampaignRequest request) {
return deleteCampaignAsync(request, null);
}
@Override
public java.util.concurrent.Future<DeleteCampaignResult> deleteCampaignAsync(final DeleteCampaignRequest request,
final com.amazonaws.handlers.AsyncHandler<DeleteCampaignRequest, DeleteCampaignResult> asyncHandler) {
final DeleteCampaignRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable<DeleteCampaignResult>() {
@Override
public DeleteCampaignResult call() throws Exception {
DeleteCampaignResult result = null;
try {
result = executeDeleteCampaign(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future<DeleteEventStreamResult> deleteEventStreamAsync(DeleteEventStreamRequest request) {
return deleteEventStreamAsync(request, null);
}
@Override
public java.util.concurrent.Future<DeleteEventStreamResult> deleteEventStreamAsync(final DeleteEventStreamRequest request,
final com.amazonaws.handlers.AsyncHandler<DeleteEventStreamRequest, DeleteEventStreamResult> asyncHandler) {
final DeleteEventStreamRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable<DeleteEventStreamResult>() {
@Override
public DeleteEventStreamResult call() throws Exception {
DeleteEventStreamResult result = null;
try {
result = executeDeleteEventStream(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future<DeleteGcmChannelResult> deleteGcmChannelAsync(DeleteGcmChannelRequest request) {
return deleteGcmChannelAsync(request, null);
}
@Override
public java.util.concurrent.Future<DeleteGcmChannelResult> deleteGcmChannelAsync(final DeleteGcmChannelRequest request,
final com.amazonaws.handlers.AsyncHandler<DeleteGcmChannelRequest, DeleteGcmChannelResult> asyncHandler) {
final DeleteGcmChannelRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable<DeleteGcmChannelResult>() {
@Override
public DeleteGcmChannelResult call() throws Exception {
DeleteGcmChannelResult result = null;
try {
result = executeDeleteGcmChannel(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future<DeleteSegmentResult> deleteSegmentAsync(DeleteSegmentRequest request) {
return deleteSegmentAsync(request, null);
}
@Override
public java.util.concurrent.Future<DeleteSegmentResult> deleteSegmentAsync(final DeleteSegmentRequest request,
final com.amazonaws.handlers.AsyncHandler<DeleteSegmentRequest, DeleteSegmentResult> asyncHandler) {
final DeleteSegmentRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable<DeleteSegmentResult>() {
@Override
public DeleteSegmentResult call() throws Exception {
DeleteSegmentResult result = null;
try {
result = executeDeleteSegment(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future<GetApnsChannelResult> getApnsChannelAsync(GetApnsChannelRequest request) {
return getApnsChannelAsync(request, null);
}
@Override
public java.util.concurrent.Future<GetApnsChannelResult> getApnsChannelAsync(final GetApnsChannelRequest request,
final com.amazonaws.handlers.AsyncHandler<GetApnsChannelRequest, GetApnsChannelResult> asyncHandler) {
final GetApnsChannelRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable<GetApnsChannelResult>() {
@Override
public GetApnsChannelResult call() throws Exception {
GetApnsChannelResult result = null;
try {
result = executeGetApnsChannel(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future<GetApplicationSettingsResult> getApplicationSettingsAsync(GetApplicationSettingsRequest request) {
return getApplicationSettingsAsync(request, null);
}
@Override
public java.util.concurrent.Future<GetApplicationSettingsResult> getApplicationSettingsAsync(final GetApplicationSettingsRequest request,
final com.amazonaws.handlers.AsyncHandler<GetApplicationSettingsRequest, GetApplicationSettingsResult> asyncHandler) {
final GetApplicationSettingsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable<GetApplicationSettingsResult>() {
@Override
public GetApplicationSettingsResult call() throws Exception {
GetApplicationSettingsResult result = null;
try {
result = executeGetApplicationSettings(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future<GetCampaignResult> getCampaignAsync(GetCampaignRequest request) {
return getCampaignAsync(request, null);
}
@Override
public java.util.concurrent.Future<GetCampaignResult> getCampaignAsync(final GetCampaignRequest request,
final com.amazonaws.handlers.AsyncHandler<GetCampaignRequest, GetCampaignResult> asyncHandler) {
final GetCampaignRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable<GetCampaignResult>() {
@Override
public GetCampaignResult call() throws Exception {
GetCampaignResult result = null;
try {
result = executeGetCampaign(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future<GetCampaignActivitiesResult> getCampaignActivitiesAsync(GetCampaignActivitiesRequest request) {
return getCampaignActivitiesAsync(request, null);
}
@Override
public java.util.concurrent.Future<GetCampaignActivitiesResult> getCampaignActivitiesAsync(final GetCampaignActivitiesRequest request,
final com.amazonaws.handlers.AsyncHandler<GetCampaignActivitiesRequest, GetCampaignActivitiesResult> asyncHandler) {
final GetCampaignActivitiesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable<GetCampaignActivitiesResult>() {
@Override
public GetCampaignActivitiesResult call() throws Exception {
GetCampaignActivitiesResult result = null;
try {
result = executeGetCampaignActivities(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future<GetCampaignVersionResult> getCampaignVersionAsync(GetCampaignVersionRequest request) {
return getCampaignVersionAsync(request, null);
}
@Override
public java.util.concurrent.Future<GetCampaignVersionResult> getCampaignVersionAsync(final GetCampaignVersionRequest request,
final com.amazonaws.handlers.AsyncHandler<GetCampaignVersionRequest, GetCampaignVersionResult> asyncHandler) {
final GetCampaignVersionRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable<GetCampaignVersionResult>() {
@Override
public GetCampaignVersionResult call() throws Exception {
GetCampaignVersionResult result = null;
try {
result = executeGetCampaignVersion(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future<GetCampaignVersionsResult> getCampaignVersionsAsync(GetCampaignVersionsRequest request) {
return getCampaignVersionsAsync(request, null);
}
@Override
public java.util.concurrent.Future<GetCampaignVersionsResult> getCampaignVersionsAsync(final GetCampaignVersionsRequest request,
final com.amazonaws.handlers.AsyncHandler<GetCampaignVersionsRequest, GetCampaignVersionsResult> asyncHandler) {
final GetCampaignVersionsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable<GetCampaignVersionsResult>() {
@Override
public GetCampaignVersionsResult call() throws Exception {
GetCampaignVersionsResult result = null;
try {
result = executeGetCampaignVersions(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future<GetCampaignsResult> getCampaignsAsync(GetCampaignsRequest request) {
return getCampaignsAsync(request, null);
}
@Override
public java.util.concurrent.Future<GetCampaignsResult> getCampaignsAsync(final GetCampaignsRequest request,
final com.amazonaws.handlers.AsyncHandler<GetCampaignsRequest, GetCampaignsResult> asyncHandler) {
final GetCampaignsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable<GetCampaignsResult>() {
@Override
public GetCampaignsResult call() throws Exception {
GetCampaignsResult result = null;
try {
result = executeGetCampaigns(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future<GetEndpointResult> getEndpointAsync(GetEndpointRequest request) {
return getEndpointAsync(request, null);
}
@Override
public java.util.concurrent.Future<GetEndpointResult> getEndpointAsync(final GetEndpointRequest request,
final com.amazonaws.handlers.AsyncHandler<GetEndpointRequest, GetEndpointResult> asyncHandler) {
final GetEndpointRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable<GetEndpointResult>() {
@Override
public GetEndpointResult call() throws Exception {
GetEndpointResult result = null;
try {
result = executeGetEndpoint(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future<GetEventStreamResult> getEventStreamAsync(GetEventStreamRequest request) {
return getEventStreamAsync(request, null);
}
@Override
public java.util.concurrent.Future<GetEventStreamResult> getEventStreamAsync(final GetEventStreamRequest request,
final com.amazonaws.handlers.AsyncHandler<GetEventStreamRequest, GetEventStreamResult> asyncHandler) {
final GetEventStreamRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable<GetEventStreamResult>() {
@Override
public GetEventStreamResult call() throws Exception {
GetEventStreamResult result = null;
try {
result = executeGetEventStream(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future<GetGcmChannelResult> getGcmChannelAsync(GetGcmChannelRequest request) {
return getGcmChannelAsync(request, null);
}
@Override
public java.util.concurrent.Future<GetGcmChannelResult> getGcmChannelAsync(final GetGcmChannelRequest request,
final com.amazonaws.handlers.AsyncHandler<GetGcmChannelRequest, GetGcmChannelResult> asyncHandler) {
final GetGcmChannelRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable<GetGcmChannelResult>() {
@Override
public GetGcmChannelResult call() throws Exception {
GetGcmChannelResult result = null;
try {
result = executeGetGcmChannel(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future<GetImportJobResult> getImportJobAsync(GetImportJobRequest request) {
return getImportJobAsync(request, null);
}
@Override
public java.util.concurrent.Future<GetImportJobResult> getImportJobAsync(final GetImportJobRequest request,
final com.amazonaws.handlers.AsyncHandler<GetImportJobRequest, GetImportJobResult> asyncHandler) {
final GetImportJobRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable<GetImportJobResult>() {
@Override
public GetImportJobResult call() throws Exception {
GetImportJobResult result = null;
try {
result = executeGetImportJob(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future<GetImportJobsResult> getImportJobsAsync(GetImportJobsRequest request) {
return getImportJobsAsync(request, null);
}
@Override
public java.util.concurrent.Future<GetImportJobsResult> getImportJobsAsync(final GetImportJobsRequest request,
final com.amazonaws.handlers.AsyncHandler<GetImportJobsRequest, GetImportJobsResult> asyncHandler) {
final GetImportJobsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable<GetImportJobsResult>() {
@Override
public GetImportJobsResult call() throws Exception {
GetImportJobsResult result = null;
try {
result = executeGetImportJobs(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future<GetSegmentResult> getSegmentAsync(GetSegmentRequest request) {
return getSegmentAsync(request, null);
}
@Override
public java.util.concurrent.Future<GetSegmentResult> getSegmentAsync(final GetSegmentRequest request,
final com.amazonaws.handlers.AsyncHandler<GetSegmentRequest, GetSegmentResult> asyncHandler) {
final GetSegmentRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable<GetSegmentResult>() {
@Override
public GetSegmentResult call() throws Exception {
GetSegmentResult result = null;
try {
result = executeGetSegment(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future<GetSegmentImportJobsResult> getSegmentImportJobsAsync(GetSegmentImportJobsRequest request) {
return getSegmentImportJobsAsync(request, null);
}
@Override
public java.util.concurrent.Future<GetSegmentImportJobsResult> getSegmentImportJobsAsync(final GetSegmentImportJobsRequest request,
final com.amazonaws.handlers.AsyncHandler<GetSegmentImportJobsRequest, GetSegmentImportJobsResult> asyncHandler) {
final GetSegmentImportJobsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable<GetSegmentImportJobsResult>() {
@Override
public GetSegmentImportJobsResult call() throws Exception {
GetSegmentImportJobsResult result = null;
try {
result = executeGetSegmentImportJobs(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future<GetSegmentVersionResult> getSegmentVersionAsync(GetSegmentVersionRequest request) {
return getSegmentVersionAsync(request, null);
}
@Override
public java.util.concurrent.Future<GetSegmentVersionResult> getSegmentVersionAsync(final GetSegmentVersionRequest request,
final com.amazonaws.handlers.AsyncHandler<GetSegmentVersionRequest, GetSegmentVersionResult> asyncHandler) {
final GetSegmentVersionRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable<GetSegmentVersionResult>() {
@Override
public GetSegmentVersionResult call() throws Exception {
GetSegmentVersionResult result = null;
try {
result = executeGetSegmentVersion(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future<GetSegmentVersionsResult> getSegmentVersionsAsync(GetSegmentVersionsRequest request) {
return getSegmentVersionsAsync(request, null);
}
@Override
public java.util.concurrent.Future<GetSegmentVersionsResult> getSegmentVersionsAsync(final GetSegmentVersionsRequest request,
final com.amazonaws.handlers.AsyncHandler<GetSegmentVersionsRequest, GetSegmentVersionsResult> asyncHandler) {
final GetSegmentVersionsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable<GetSegmentVersionsResult>() {
@Override
public GetSegmentVersionsResult call() throws Exception {
GetSegmentVersionsResult result = null;
try {
result = executeGetSegmentVersions(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future<GetSegmentsResult> getSegmentsAsync(GetSegmentsRequest request) {
return getSegmentsAsync(request, null);
}
@Override
public java.util.concurrent.Future<GetSegmentsResult> getSegmentsAsync(final GetSegmentsRequest request,
final com.amazonaws.handlers.AsyncHandler<GetSegmentsRequest, GetSegmentsResult> asyncHandler) {
final GetSegmentsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable<GetSegmentsResult>() {
@Override
public GetSegmentsResult call() throws Exception {
GetSegmentsResult result = null;
try {
result = executeGetSegments(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future<PutEventStreamResult> putEventStreamAsync(PutEventStreamRequest request) {
return putEventStreamAsync(request, null);
}
@Override
public java.util.concurrent.Future<PutEventStreamResult> putEventStreamAsync(final PutEventStreamRequest request,
final com.amazonaws.handlers.AsyncHandler<PutEventStreamRequest, PutEventStreamResult> asyncHandler) {
final PutEventStreamRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable<PutEventStreamResult>() {
@Override
public PutEventStreamResult call() throws Exception {
PutEventStreamResult result = null;
try {
result = executePutEventStream(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future<UpdateApnsChannelResult> updateApnsChannelAsync(UpdateApnsChannelRequest request) {
return updateApnsChannelAsync(request, null);
}
@Override
public java.util.concurrent.Future<UpdateApnsChannelResult> updateApnsChannelAsync(final UpdateApnsChannelRequest request,
final com.amazonaws.handlers.AsyncHandler<UpdateApnsChannelRequest, UpdateApnsChannelResult> asyncHandler) {
final UpdateApnsChannelRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable<UpdateApnsChannelResult>() {
@Override
public UpdateApnsChannelResult call() throws Exception {
UpdateApnsChannelResult result = null;
try {
result = executeUpdateApnsChannel(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future<UpdateApplicationSettingsResult> updateApplicationSettingsAsync(UpdateApplicationSettingsRequest request) {
return updateApplicationSettingsAsync(request, null);
}
@Override
public java.util.concurrent.Future<UpdateApplicationSettingsResult> updateApplicationSettingsAsync(final UpdateApplicationSettingsRequest request,
final com.amazonaws.handlers.AsyncHandler<UpdateApplicationSettingsRequest, UpdateApplicationSettingsResult> asyncHandler) {
final UpdateApplicationSettingsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable<UpdateApplicationSettingsResult>() {
@Override
public UpdateApplicationSettingsResult call() throws Exception {
UpdateApplicationSettingsResult result = null;
try {
result = executeUpdateApplicationSettings(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future<UpdateCampaignResult> updateCampaignAsync(UpdateCampaignRequest request) {
return updateCampaignAsync(request, null);
}
@Override
public java.util.concurrent.Future<UpdateCampaignResult> updateCampaignAsync(final UpdateCampaignRequest request,
final com.amazonaws.handlers.AsyncHandler<UpdateCampaignRequest, UpdateCampaignResult> asyncHandler) {
final UpdateCampaignRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable<UpdateCampaignResult>() {
@Override
public UpdateCampaignResult call() throws Exception {
UpdateCampaignResult result = null;
try {
result = executeUpdateCampaign(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future<UpdateEndpointResult> updateEndpointAsync(UpdateEndpointRequest request) {
return updateEndpointAsync(request, null);
}
@Override
public java.util.concurrent.Future<UpdateEndpointResult> updateEndpointAsync(final UpdateEndpointRequest request,
final com.amazonaws.handlers.AsyncHandler<UpdateEndpointRequest, UpdateEndpointResult> asyncHandler) {
final UpdateEndpointRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable<UpdateEndpointResult>() {
@Override
public UpdateEndpointResult call() throws Exception {
UpdateEndpointResult result = null;
try {
result = executeUpdateEndpoint(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future<UpdateEndpointsBatchResult> updateEndpointsBatchAsync(UpdateEndpointsBatchRequest request) {
return updateEndpointsBatchAsync(request, null);
}
@Override
public java.util.concurrent.Future<UpdateEndpointsBatchResult> updateEndpointsBatchAsync(final UpdateEndpointsBatchRequest request,
final com.amazonaws.handlers.AsyncHandler<UpdateEndpointsBatchRequest, UpdateEndpointsBatchResult> asyncHandler) {
final UpdateEndpointsBatchRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable<UpdateEndpointsBatchResult>() {
@Override
public UpdateEndpointsBatchResult call() throws Exception {
UpdateEndpointsBatchResult result = null;
try {
result = executeUpdateEndpointsBatch(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future<UpdateGcmChannelResult> updateGcmChannelAsync(UpdateGcmChannelRequest request) {
return updateGcmChannelAsync(request, null);
}
@Override
public java.util.concurrent.Future<UpdateGcmChannelResult> updateGcmChannelAsync(final UpdateGcmChannelRequest request,
final com.amazonaws.handlers.AsyncHandler<UpdateGcmChannelRequest, UpdateGcmChannelResult> asyncHandler) {
final UpdateGcmChannelRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable<UpdateGcmChannelResult>() {
@Override
public UpdateGcmChannelResult call() throws Exception {
UpdateGcmChannelResult result = null;
try {
result = executeUpdateGcmChannel(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future<UpdateSegmentResult> updateSegmentAsync(UpdateSegmentRequest request) {
return updateSegmentAsync(request, null);
}
@Override
public java.util.concurrent.Future<UpdateSegmentResult> updateSegmentAsync(final UpdateSegmentRequest request,
final com.amazonaws.handlers.AsyncHandler<UpdateSegmentRequest, UpdateSegmentResult> asyncHandler) {
final UpdateSegmentRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable<UpdateSegmentResult>() {
@Override
public UpdateSegmentResult call() throws Exception {
UpdateSegmentResult result = null;
try {
result = executeUpdateSegment(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
/**
* Shuts down the client, releasing all managed resources. This includes forcibly terminating all pending
* asynchronous service calls. Clients who wish to give pending asynchronous service calls time to complete should
* call {@code getExecutorService().shutdown()} followed by {@code getExecutorService().awaitTermination()} prior to
* calling this method.
*/
@Override
public void shutdown() {
super.shutdown();
executorService.shutdownNow();
}
}
| [
""
] | |
277b6a5837887be7a75ee2023dacf1265e01a736 | 154933f13f557632cac0c42218fdbc11f36cbee2 | /pension/src/com/roominfo/RoomDTO.java | f5c8baf149438f0b30fb54f8df64fc73e6cec703 | [] | no_license | akfekd/pension | 3868884c0855da7adc9e2241485a53a0a74a9f44 | 2dfe9d419ce9201954c8752e3ea8822e9a7dd4d4 | refs/heads/master | 2023-02-12T11:26:12.959771 | 2021-01-07T06:08:33 | 2021-01-07T06:08:33 | 309,923,910 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 1,606 | java | package com.roominfo;
//김다현
public class RoomDTO {
private String userId;
private String roomId;
private String content;
private String roomName;
private String created;
private String saveFilename;
private String price;
private int guestnum;
private String ment;
private String keyword;
public String getPrice() {
return price;
}
public void setPrice(String price) {
this.price = price;
}
public int getGuestnum() {
return guestnum;
}
public void setGuestnum(int guestnum) {
this.guestnum = guestnum;
}
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
public String getRoomId() {
return roomId;
}
public void setRoomId(String roomId) {
this.roomId = roomId;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public String getRoomName() {
return roomName;
}
public void setRoomName(String roomName) {
this.roomName = roomName;
}
public String getCreated() {
return created;
}
public void setCreated(String created) {
this.created = created;
}
public String getSaveFilename() {
return saveFilename;
}
public void setSaveFilename(String saveFilename) {
this.saveFilename = saveFilename;
}
public String getMent() {
return ment;
}
public void setMent(String ment) {
this.ment = ment;
}
public String getKeyword() {
return keyword;
}
public void setKeyword(String keyword) {
this.keyword = keyword;
}
}
| [
"SIST@DESKTOP-EC2R420"
] | SIST@DESKTOP-EC2R420 |
a990482095a33d35c65e7e6229c70195359f68bc | de02d41e585cd96a78261ef84816d69fef04101d | /LinkedList/SwapTwoNode.java | 46f03c6aff0de8462f1695337331fddd9535396b | [] | no_license | Ritik008/data-structure | f3029ba552f07900d17d2f98fe0ee7bc9fb87775 | 4af0d5d7b47c5f3e76c298b816dde090014091fc | refs/heads/master | 2022-12-20T23:02:15.173387 | 2020-10-06T10:21:10 | 2020-10-06T10:21:10 | 270,971,875 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,008 | java | public class SwapTwoNode {
public static Node head;
public static void main(String[] args) {
SwapTwoNode list = new SwapTwoNode();
list.insertLast(10);
list.insertLast(20);
list.insertLast(30);
list.insertLast(40);
list.insertLast(50);
list.insertLast(60);
list.search(10, 40);
list.printLinkedList();
}
public class Node {
int data;
Node next;
}
public void insertLast(int data) {
Node current = head;
Node node = new Node();
node.data = data;
if(current == null) {
head = node;
return;
}
while(current.next != null) {
current = current.next;
}
current.next = node;
}
public void printLinkedList() {
Node current = head;
while(current != null) {
System.out.print(current.data+" -> ");
current = current.next;
}
System.out.println();
}
public void search(int data1, int data2) {
Node current, prev;
current = head;
prev = null;
while(current != null && current.data != data1) {
prev = current;
current = current.next;
}
Node currentData1 = current;
Node previousData1 = prev;
current = head;
prev = null;
while(current != null && current.data != data2) {
prev = current;
current = current.next;
}
Node currentData2 = current;
Node previousData2 = prev;
Node temp;
temp = currentData2.next;
currentData2.next = currentData1.next;
currentData1.next = temp;
if(previousData1 == null) {
currentData1 = head;
previousData2.next = currentData1;
}
if(previousData2 == null) {
currentData1 = head;
previousData1.next = previousData2;
}
}
} | [
"ritikthakur27rt@gmail.com"
] | ritikthakur27rt@gmail.com |
9c4b95e749f23d34ca5ba9cae48020b3ca401e39 | 9049eabb2562cd3e854781dea6bd0a5e395812d3 | /sources/com/google/android/gms/cast/firstparty/CastReceiver.java | d507ae677c0da8ed7dfcab474f7a20f57b21a0bb | [] | no_license | Romern/gms_decompiled | 4c75449feab97321da23ecbaac054c2303150076 | a9c245404f65b8af456b7b3440f48d49313600ba | refs/heads/master | 2022-07-17T23:22:00.441901 | 2020-05-17T18:26:16 | 2020-05-17T18:26:16 | 264,227,100 | 2 | 5 | null | null | null | null | UTF-8 | Java | false | false | 3,654 | java | package com.google.android.gms.cast.firstparty;
import android.os.Parcel;
import android.os.Parcelable;
import android.text.TextUtils;
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Locale;
/* compiled from: :com.google.android.gms@201515033@20.15.15 (120300-306758586) */
public class CastReceiver extends AbstractSafeParcelable {
public static final Parcelable.Creator CREATOR = new pqq();
/* renamed from: a */
public final String f29880a;
/* renamed from: b */
public final String f29881b;
/* renamed from: c */
public final String f29882c;
/* renamed from: d */
private final List f29883d;
public CastReceiver(String str, List list, String str2, String str3) {
this.f29880a = str;
this.f29883d = list;
this.f29881b = str2;
this.f29882c = str3;
}
/* renamed from: a */
public final ArrayList mo17584a() {
return new ArrayList(this.f29883d);
}
public final boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj instanceof CastReceiver) {
CastReceiver castReceiver = (CastReceiver) obj;
return ptk.m31236a(this.f29880a, castReceiver.f29880a) && ptk.m31236a(this.f29883d, castReceiver.f29883d) && ptk.m31236a(this.f29881b, castReceiver.f29881b) && ptk.m31236a(this.f29882c, castReceiver.f29882c);
}
}
public final int hashCode() {
return Arrays.hashCode(new Object[]{this.f29880a, this.f29883d, this.f29881b, this.f29882c});
}
public final String toString() {
String str;
Locale locale = Locale.ROOT;
Object[] objArr = new Object[4];
objArr[0] = this.f29880a;
objArr[1] = this.f29881b;
objArr[2] = this.f29882c;
List list = this.f29883d;
if (list != null) {
str = TextUtils.join(",", list);
} else {
str = "NULL";
}
objArr[3] = str;
return String.format(locale, "Device Cert: %s\n\tMessage: %s\n\tSignature: %s\n\t ICA:%s", objArr);
}
/* JADX DEBUG: Failed to find minimal casts for resolve overloaded methods, cast all args instead
method: see.a(android.os.Parcel, int, java.lang.String, boolean):void
arg types: [android.os.Parcel, int, java.lang.String, int]
candidates:
see.a(android.os.Parcel, int, android.os.Bundle, boolean):void
see.a(android.os.Parcel, int, android.os.Parcel, boolean):void
see.a(android.os.Parcel, int, java.math.BigDecimal, boolean):void
see.a(android.os.Parcel, int, java.util.List, boolean):void
see.a(android.os.Parcel, int, byte[], boolean):void
see.a(android.os.Parcel, int, double[], boolean):void
see.a(android.os.Parcel, int, float[], boolean):void
see.a(android.os.Parcel, int, int[], boolean):void
see.a(android.os.Parcel, int, long[], boolean):void
see.a(android.os.Parcel, int, android.os.Parcelable[], int):void
see.a(android.os.Parcel, int, java.lang.String[], boolean):void
see.a(android.os.Parcel, int, boolean[], boolean):void
see.a(android.os.Parcel, int, java.lang.String, boolean):void */
public final void writeToParcel(Parcel parcel, int i) {
int a = see.m35030a(parcel);
see.m35046a(parcel, 2, this.f29880a, false);
see.m35065b(parcel, 3, mo17584a(), false);
see.m35046a(parcel, 4, this.f29881b, false);
see.m35046a(parcel, 5, this.f29882c, false);
see.m35062b(parcel, a);
}
}
| [
"roman.karwacik@rwth-aachen.de"
] | roman.karwacik@rwth-aachen.de |
547ae43977f50d4fb8c1e7312c47abe048651d5b | 9c3fed62ad208887e585fb41e0dd248c9bea9af3 | /src/SimpleArr/SimpleArray.java | b6f615b57cbbc8c9bc733398a1da6a57f4ea7343 | [] | no_license | mayconwiner/Exame3P | e16b07dff0511ff169b64033a16a8072aeb9f853 | de461f366db23611048f166f15fe03a21bfd3536 | refs/heads/master | 2021-01-24T07:46:56.508453 | 2017-06-06T21:14:22 | 2017-06-06T21:14:22 | 93,357,467 | 0 | 0 | null | null | null | null | ISO-8859-1 | Java | false | false | 1,328 | java | package SimpleArr;
import java.util.Arrays;
import java.util.Random;
public class SimpleArray // Atenção Não é seguro para Threads
{
private final int[] array; // o array de inteiros compartilhados
private int writeIndex = 0; // o indice do proximo elemento a ser gravado
public final static Random generator = new Random();
// constroi um SimpleArray de um dado tamanho
public SimpleArray(int size) {
array = new int[size];
}// fim do construtor
// adiciona um valor ao array compartilhado
public synchronized void add(int value) {
int position = writeIndex; // armazena o indice de gravação
try { // coloca a Thread para dormir por 0-99 milissegundos
Thread.sleep(generator.nextInt(500));
} // fim do try
catch (InterruptedException e) {
e.printStackTrace();
} // fim do catch
// Coloca valor no elemento correto
array[position] = value;
System.out.printf("%s wrote %2d to element %d \n", Thread.currentThread().getName(), value, position);
++writeIndex;// incrementa indice do elemento a ser gravado depois
System.out.printf("Next write index: %d \n", writeIndex);
}// fim do metodo add
// utilizado para gerar saida do conteudo do array de inteiros
// compartilhado
public String toString() {
return "\n Conteudos do simplearray: \n" + Arrays.toString(array);
}
}
| [
"mayconwiner@gmail.com"
] | mayconwiner@gmail.com |
49419a251ddf4bd8aa520dc684542cca29240e67 | f0571fe00230fd929b0811a4eae409c4755060b6 | /app/src/main/java/com/cc/rd/mvp/contract/login/SendCodeContract.java | 7d4bfc3b01384b7be69c3ab29e34152832f81b8d | [] | no_license | c2576130539/rd-android | 223b135e7f2976b67f16c44049114a825bae3f50 | 54d1ab28b3dc1d0969db6b430a203cf28ff863e7 | refs/heads/master | 2020-05-17T16:52:25.388348 | 2019-06-02T10:38:00 | 2019-06-02T10:38:00 | 183,831,006 | 2 | 0 | null | null | null | null | UTF-8 | Java | false | false | 991 | java | package com.cc.rd.mvp.contract.login;
import com.cc.rd.base.BaseView;
import com.cc.rd.bean.request.user.TelphoneCodeRequest;
import com.cc.rd.util.Result;
import io.reactivex.Flowable;
public interface SendCodeContract {
interface Model {
Flowable<Result> sendNewCode(String telphone);
Flowable<Result> sendOldCode(String telphone);
Flowable<Result> checkSms(TelphoneCodeRequest telphoneCodeRequest);
}
interface View extends BaseView {
@Override
void showLoading();
@Override
void hideLoading();
@Override
void onError(Throwable throwable);
void onSuccess(Result bean);
}
interface Presenter {
/**
* 给新用户发送验证码
*/
void sendNewCode(String telphone);
/**
* 给老用户发送验证码
*/
void sendOldCode(String telphone);
void checkSms(TelphoneCodeRequest telphoneCodeRequest);
}
}
| [
"cchen@dfocuspace.com"
] | cchen@dfocuspace.com |
9f4191c51bc80eb13d624a348336c8f39280993b | 4ec91fe5abdd4345524159b9c4a6b66f2941ec2e | /gws-client-gmp-3572/src/main/java/ru/roskazna/smevunifoservice/package-info.java | 52af04351b7afe224811848f45bd39a918a2dd3c | [] | no_license | antonschelokov/siu | 3cbfa40e79a81c087ee62bd7b9d4b79083ecf2c0 | 788d67c0181a10bf34a52417243ec2d4a0603619 | refs/heads/master | 2021-06-07T04:45:27.672278 | 2015-09-08T08:40:11 | 2015-09-08T08:40:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 464 | java | /*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
* Copyright (c) 2013, MPL CodeInside http://codeinside.ru
*/
@javax.xml.bind.annotation.XmlSchema(namespace = "http://roskazna.ru/SmevUnifoService/", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
package ru.roskazna.smevunifoservice;
| [
"maxim.zaytsev@codeinside.ru"
] | maxim.zaytsev@codeinside.ru |
9249e2cbfc5277ea67ff7c2023d53f1c6532961c | e409eb39103421fb8dd3b13347ff26b07503c2ce | /javaee/mdb-cmt-tx-not-supported/src/main/java/org/hornetq/javaee/example/server/MDB_CMT_TxNotSupported.java | 8561d65415f116d6de2a4892f6f551cf0fdcf39d | [] | no_license | gtully/activemq-arquillian | 1c17b006c05bc6ec619b9ac14c1258f2d419b074 | dc1253b1e6e308ad5dd5695ec23a08fb0dc7879b | refs/heads/master | 2021-01-20T07:48:41.502591 | 2014-08-07T11:39:57 | 2014-08-07T11:39:57 | 16,918,496 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,869 | java | /*
* Copyright 2009 Red Hat, Inc.
* Red Hat 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.hornetq.javaee.example.server;
import javax.annotation.Resource;
import javax.ejb.ActivationConfigProperty;
import javax.ejb.MessageDriven;
import javax.ejb.TransactionAttribute;
import javax.ejb.TransactionAttributeType;
import javax.ejb.TransactionManagement;
import javax.ejb.TransactionManagementType;
import javax.jms.Message;
import javax.jms.MessageListener;
import javax.jms.TextMessage;
import javax.transaction.Transaction;
import javax.transaction.TransactionManager;
import org.jboss.ejb3.annotation.ResourceAdapter;
/**
* @author <a href="mailto:andy.taylor@jboss.org">Andy Taylor</a>
*/
@MessageDriven(name = "MDB_CMT_TxNotSupported", activationConfig = { @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
@ActivationConfigProperty(propertyName = "destination", propertyValue = "queue/testQueue"),
@ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge") })
@TransactionManagement(value = TransactionManagementType.CONTAINER)
@TransactionAttribute(value = TransactionAttributeType.NOT_SUPPORTED)
@ResourceAdapter("activemq-rar.rar")
public class MDB_CMT_TxNotSupported implements MessageListener
{
@Resource(mappedName = "java:/TransactionManager")
private TransactionManager tm;
public void onMessage(final Message message)
{
try
{
// Step 9. We know the client is sending a text message so we cast
TextMessage textMessage = (TextMessage)message;
// Step 10. get the text from the message.
String text = textMessage.getText();
System.out.println("message " + text + " received");
// Step 11. lets look at the transaction to make sure there isn't one.
Transaction tx = tm.getTransaction();
if (tx == null)
{
System.out.println("tx is null, just as expected");
}
else
{
System.out.println("something is wrong, I wasn't expecting a transaction");
}
}
catch (Exception e)
{
e.printStackTrace();
}
}
} | [
"gary.tully@gmail.com"
] | gary.tully@gmail.com |
1641f41c1ffb033fbc472b11e0f1afbe553f290f | 6cfc9fea89a79cccbbbbd549a7998af151b3e542 | /app/src/main/java/com/ak/shixun/server/UpdateService.java | 108d2720fe809ab7c8b268b5813813746b90a1bf | [] | no_license | romii88/Shixun | d49411e41d70f59bf3b0f80b9d3aed8ab02c886f | 5d6130af836dca341a8e0b60198c5d2cbf849b6f | refs/heads/master | 2021-01-11T23:49:48.436217 | 2017-01-11T11:42:48 | 2017-01-11T11:42:48 | 78,633,587 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 21,587 | java | package com.ak.shixun.server;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import android.graphics.BitmapFactory;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.Binder;
import android.os.Environment;
import android.os.IBinder;
import android.support.annotation.Nullable;
import android.support.v4.app.NotificationCompat;
import android.support.v4.content.LocalBroadcastManager;
import android.text.TextUtils;
import android.util.Log;
import com.ak.shixun.R;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.lang.ref.WeakReference;
import java.net.HttpURLConnection;
import java.net.URL;
public class UpdateService extends Service {
public static final String TAG = "UpdateService";
public static final String ACTION = "me.shenfan.UPDATE_APP";
public static final String STATUS = "status";
public static final String PROGRESS = "progress";
public static boolean DEBUG = false;
//下载大小通知频率
public static final int UPDATE_NUMBER_SIZE = 4;
public static final int DEFAULT_RES_ID = -1;
public static final int UPDATE_PROGRESS_STATUS = 0;
public static final int UPDATE_ERROR_STATUS = -1;
public static final int UPDATE_SUCCESS_STATUS = 1;
//params
private static final String URL = "downloadUrl";
private static final String ICO_RES_ID = "icoResId";
private static final String ICO_SMALL_RES_ID = "icoSmallResId";
private static final String UPDATE_PROGRESS = "updateProgress";
private static final String STORE_DIR = "storeDir";
private static final String DOWNLOAD_NOTIFICATION_FLAG = "downloadNotificationFlag";
private static final String DOWNLOAD_SUCCESS_NOTIFICATION_FLAG = "downloadSuccessNotificationFlag";
private static final String DOWNLOAD_ERROR_NOTIFICATION_FLAG = "downloadErrorNotificationFlag";
private static final String IS_SEND_BROADCAST = "isSendBroadcast";
private String downloadUrl;
private int icoResId; //default app ico
private int icoSmallResId;
private int updateProgress; //update notification progress when it add number
private String storeDir; //default sdcard/Android/package/update
private int downloadNotificationFlag;
private int downloadSuccessNotificationFlag;
private int downloadErrorNotificationFlag;
private boolean isSendBroadcast;
private UpdateProgressListener updateProgressListener;
private LocalBinder localBinder = new LocalBinder();
/**
* Class used for the client Binder.
*/
public class LocalBinder extends Binder {
/**
* set update progress call back
* @param listener
*/
public void setUpdateProgressListener(UpdateProgressListener listener) {
UpdateService.this.setUpdateProgressListener(listener);
}
}
private boolean startDownload;//开始下载
private int lastProgressNumber;
private NotificationCompat.Builder builder;
private NotificationManager manager;
private int notifyId;
private String appName;
private LocalBroadcastManager localBroadcastManager;
private Intent localIntent;
private DownloadApk downloadApkTask;
/**
* whether debug
*/
public static void debug() {
DEBUG = true;
}
private static Intent installIntent(String path) {
Uri uri = Uri.fromFile(new File(path));
Intent installIntent = new Intent(Intent.ACTION_VIEW);
installIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
installIntent.setDataAndType(uri, "application/vnd.android.package-archive");
return installIntent;
}
private static Intent webLauncher(String downloadUrl) {
Uri download = Uri.parse(downloadUrl);
Intent intent = new Intent(Intent.ACTION_VIEW, download);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
return intent;
}
private static String getSaveFileName(String downloadUrl) {
if (downloadUrl == null || TextUtils.isEmpty(downloadUrl)) {
return "noName.apk";
}
return downloadUrl.substring(downloadUrl.lastIndexOf("/"));
}
private static File getDownloadDir(UpdateService service) {
File downloadDir = null;
if (Environment.getExternalStorageState().equals(
Environment.MEDIA_MOUNTED)) {
if (service.storeDir != null) {
downloadDir = new File(Environment.getExternalStorageDirectory(), service.storeDir);
} else {
downloadDir = new File(service.getExternalCacheDir(), "update");
}
} else {
downloadDir = new File(service.getCacheDir(), "update");
}
if (!downloadDir.exists()) {
downloadDir.mkdirs();
}
return downloadDir;
}
@Override
public void onCreate() {
super.onCreate();
appName = getApplicationName();
}
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
if (!startDownload && intent != null) {
startDownload = true;
downloadUrl = intent.getStringExtra(URL);
icoResId = intent.getIntExtra(ICO_RES_ID, DEFAULT_RES_ID);
icoSmallResId = intent.getIntExtra(ICO_SMALL_RES_ID, DEFAULT_RES_ID);
storeDir = intent.getStringExtra(STORE_DIR);
updateProgress = intent.getIntExtra(UPDATE_PROGRESS, UPDATE_NUMBER_SIZE);
downloadNotificationFlag = intent.getIntExtra(DOWNLOAD_NOTIFICATION_FLAG, 0);
downloadErrorNotificationFlag = intent.getIntExtra(DOWNLOAD_ERROR_NOTIFICATION_FLAG, 0);
downloadSuccessNotificationFlag = intent.getIntExtra(DOWNLOAD_SUCCESS_NOTIFICATION_FLAG, 0);
isSendBroadcast = intent.getBooleanExtra(IS_SEND_BROADCAST, false);
if (DEBUG) {
Log.d(TAG, "downloadUrl: " + downloadUrl);
Log.d(TAG, "icoResId: " + icoResId);
Log.d(TAG, "icoSmallResId: " + icoSmallResId);
Log.d(TAG, "storeDir: " + storeDir);
Log.d(TAG, "updateProgress: " + updateProgress);
Log.d(TAG, "downloadNotificationFlag: " + downloadNotificationFlag);
Log.d(TAG, "downloadErrorNotificationFlag: " + downloadErrorNotificationFlag);
Log.d(TAG, "downloadSuccessNotificationFlag: " + downloadSuccessNotificationFlag);
Log.d(TAG, "isSendBroadcast: " + isSendBroadcast);
}
notifyId = startId;
buildNotification();
buildBroadcast();
downloadApkTask = new DownloadApk(this);
downloadApkTask.execute(downloadUrl);
}
return super.onStartCommand(intent, flags, startId);
}
@Nullable
@Override
public IBinder onBind(Intent intent) {
return localBinder;
}
@Override
public boolean onUnbind(Intent intent) {
return true;
}
public void setUpdateProgressListener(UpdateProgressListener updateProgressListener) {
this.updateProgressListener = updateProgressListener;
}
@Override
public void onDestroy() {
if (downloadApkTask != null) {
downloadApkTask.cancel(true);
}
if (updateProgressListener != null) {
updateProgressListener = null;
}
localIntent = null;
builder = null;
super.onDestroy();
}
public String getApplicationName() {
PackageManager packageManager = null;
ApplicationInfo applicationInfo = null;
try {
packageManager = getApplicationContext().getPackageManager();
applicationInfo = packageManager.getApplicationInfo(getPackageName(), 0);
} catch (PackageManager.NameNotFoundException e) {
applicationInfo = null;
}
String applicationName =
(String) packageManager.getApplicationLabel(applicationInfo);
return applicationName;
}
private void buildBroadcast() {
if (!isSendBroadcast) {
return;
}
localBroadcastManager = LocalBroadcastManager.getInstance(this);
localIntent = new Intent(ACTION);
}
private void sendLocalBroadcast(int status, int progress) {
if (!isSendBroadcast || localIntent == null) {
return;
}
localIntent.putExtra(STATUS, status);
localIntent.putExtra(PROGRESS, progress);
localBroadcastManager.sendBroadcast(localIntent);
}
private void buildNotification() {
boolean isLollipop = (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP);
int smallIcon = getResources().getIdentifier("notification_small_icon", "drawable", getPackageName());
if (smallIcon <= 0 || !isLollipop) {
smallIcon = getApplicationInfo().icon;
}
manager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
builder = new NotificationCompat.Builder(this);
builder.setContentTitle(getString(R.string.update_app_model_prepare))
.setWhen(System.currentTimeMillis())
.setProgress(100, 1, false)
.setSmallIcon(smallIcon)
.setLargeIcon(BitmapFactory.decodeResource(
getResources(), icoResId))
.setDefaults(downloadNotificationFlag);
manager.notify(notifyId, builder.build());
}
private void start() {
builder.setContentTitle(appName);
builder.setContentText(getString(R.string.update_app_model_prepare));
manager.notify(notifyId, builder.build());
sendLocalBroadcast(UPDATE_PROGRESS_STATUS, 1);
if (updateProgressListener != null) {
updateProgressListener.start();
}
}
/**
*
* @param progress download percent , max 100
*/
private void update(int progress) {
if (progress - lastProgressNumber > updateProgress) {
lastProgressNumber = progress;
builder.setProgress(100, progress, false);
builder.setContentText(getString(R.string.update_app_model_progress, progress, "%"));
manager.notify(notifyId, builder.build());
sendLocalBroadcast(UPDATE_PROGRESS_STATUS, progress);
if (updateProgressListener != null) {
updateProgressListener.update(progress);
}
}
}
private void success(String path) {
builder.setProgress(0, 0, false);
builder.setContentText(getString(R.string.update_app_model_success));
Intent i = installIntent(path);
PendingIntent intent = PendingIntent.getActivity(this, 0, i, PendingIntent.FLAG_UPDATE_CURRENT);
builder.setContentIntent(intent);
builder.setDefaults(downloadSuccessNotificationFlag);
Notification n = builder.build();
n.contentIntent = intent;
manager.notify(notifyId, n);
sendLocalBroadcast(UPDATE_SUCCESS_STATUS, 100);
if (updateProgressListener != null) {
updateProgressListener.success();
}
startActivity(i);
stopSelf();
}
private void error() {
Intent i = webLauncher(downloadUrl);
PendingIntent intent = PendingIntent.getActivity(this, 0, i,
PendingIntent.FLAG_UPDATE_CURRENT);
builder.setContentText(getString(R.string.update_app_model_error));
builder.setContentIntent(intent);
builder.setProgress(0, 0, false);
builder.setDefaults(downloadErrorNotificationFlag);
Notification n = builder.build();
n.contentIntent = intent;
manager.notify(notifyId, n);
sendLocalBroadcast(UPDATE_ERROR_STATUS, -1);
if (updateProgressListener != null) {
updateProgressListener.error();
}
stopSelf();
}
private static class DownloadApk extends AsyncTask<String, Integer, String> {
private WeakReference<UpdateService> updateServiceWeakReference;
public DownloadApk(UpdateService service) {
updateServiceWeakReference = new WeakReference<>(service);
}
@Override
protected void onPreExecute() {
super.onPreExecute();
UpdateService service = updateServiceWeakReference.get();
if (service != null) {
service.start();
}
}
@Override
protected String doInBackground(String... params) {
final String downloadUrl = params[0];
final File file = new File(UpdateService.getDownloadDir(updateServiceWeakReference.get()),
UpdateService.getSaveFileName(downloadUrl));
if (DEBUG) {
Log.d(TAG, "download url is " + downloadUrl);
Log.d(TAG, "download apk cache at " + file.getAbsolutePath());
}
File dir = file.getParentFile();
if (!dir.exists()) {
dir.mkdirs();
}
HttpURLConnection httpConnection = null;
InputStream is = null;
FileOutputStream fos = null;
int updateTotalSize = 0;
URL url;
try {
url = new URL(downloadUrl);
httpConnection = (HttpURLConnection) url.openConnection();
httpConnection.setConnectTimeout(20000);
httpConnection.setReadTimeout(20000);
if (DEBUG) {
Log.d(TAG, "download status code: " + httpConnection.getResponseCode());
}
if (httpConnection.getResponseCode() != 200) {
return null;
}
updateTotalSize = httpConnection.getContentLength();
if (file.exists()) {
if (updateTotalSize == file.length()) {
// 下载完成
return file.getAbsolutePath();
} else {
file.delete();
}
}
file.createNewFile();
is = httpConnection.getInputStream();
fos = new FileOutputStream(file, false);
byte buffer[] = new byte[4096];
int readSize = 0;
int currentSize = 0;
while ((readSize = is.read(buffer)) > 0) {
fos.write(buffer, 0, readSize);
currentSize += readSize;
publishProgress((currentSize * 100 / updateTotalSize));
}
// download success
} catch (Exception e) {
e.printStackTrace();
return null;
} finally {
if (httpConnection != null) {
httpConnection.disconnect();
}
if (is != null) {
try {
is.close();
} catch (IOException e) {
e.printStackTrace();
}
}
if (fos != null) {
try {
fos.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
return file.getAbsolutePath();
}
@Override
protected void onProgressUpdate(Integer... values) {
super.onProgressUpdate(values);
if (DEBUG) {
Log.d(TAG, "current progress is " + values[0]);
}
UpdateService service = updateServiceWeakReference.get();
if (service != null) {
service.update(values[0]);
}
}
@Override
protected void onPostExecute(String s) {
super.onPostExecute(s);
UpdateService service = updateServiceWeakReference.get();
if (service != null) {
if (s != null) {
service.success(s);
} else {
service.error();
}
}
}
}
/**
* a builder class helper use UpdateService
*/
public static class Builder {
private String downloadUrl;
private int icoResId = DEFAULT_RES_ID; //default app ico
private int icoSmallResId = DEFAULT_RES_ID;
private int updateProgress = UPDATE_NUMBER_SIZE; //update notification progress when it add number
private String storeDir; //default sdcard/Android/package/update
private int downloadNotificationFlag;
private int downloadSuccessNotificationFlag;
private int downloadErrorNotificationFlag;
private boolean isSendBroadcast;
protected Builder(String downloadUrl) {
this.downloadUrl = downloadUrl;
}
public static Builder create(String downloadUrl) {
if (downloadUrl == null) {
throw new NullPointerException("downloadUrl == null");
}
return new Builder(downloadUrl);
}
public String getDownloadUrl() {
return downloadUrl;
}
public int getIcoResId() {
return icoResId;
}
public Builder setIcoResId(int icoResId) {
this.icoResId = icoResId;
return this;
}
public int getIcoSmallResId() {
return icoSmallResId;
}
public Builder setIcoSmallResId(int icoSmallResId) {
this.icoSmallResId = icoSmallResId;
return this;
}
public int getUpdateProgress() {
return updateProgress;
}
public Builder setUpdateProgress(int updateProgress) {
if (updateProgress < 1) {
throw new IllegalArgumentException("updateProgress < 1");
}
this.updateProgress = updateProgress;
return this;
}
public String getStoreDir() {
return storeDir;
}
public Builder setStoreDir(String storeDir) {
this.storeDir = storeDir;
return this;
}
public int getDownloadNotificationFlag() {
return downloadNotificationFlag;
}
public Builder setDownloadNotificationFlag(int downloadNotificationFlag) {
this.downloadNotificationFlag = downloadNotificationFlag;
return this;
}
public int getDownloadSuccessNotificationFlag() {
return downloadSuccessNotificationFlag;
}
public Builder setDownloadSuccessNotificationFlag(int downloadSuccessNotificationFlag) {
this.downloadSuccessNotificationFlag = downloadSuccessNotificationFlag;
return this;
}
public int getDownloadErrorNotificationFlag() {
return downloadErrorNotificationFlag;
}
public Builder setDownloadErrorNotificationFlag(int downloadErrorNotificationFlag) {
this.downloadErrorNotificationFlag = downloadErrorNotificationFlag;
return this;
}
public boolean isSendBroadcast() {
return isSendBroadcast;
}
public Builder setIsSendBroadcast(boolean isSendBroadcast) {
this.isSendBroadcast = isSendBroadcast;
return this;
}
public Builder build(Context context) {
if (context == null) {
throw new NullPointerException("context == null");
}
Intent intent = new Intent();
intent.setClass(context, UpdateService.class);
intent.putExtra(URL, downloadUrl);
if (icoResId == DEFAULT_RES_ID) {
icoResId = getIcon(context);
}
if (icoSmallResId == DEFAULT_RES_ID) {
icoSmallResId = icoResId;
}
intent.putExtra(ICO_RES_ID, icoResId);
intent.putExtra(STORE_DIR, storeDir);
intent.putExtra(ICO_SMALL_RES_ID, icoSmallResId);
intent.putExtra(UPDATE_PROGRESS, updateProgress);
intent.putExtra(DOWNLOAD_NOTIFICATION_FLAG, downloadNotificationFlag);
intent.putExtra(DOWNLOAD_SUCCESS_NOTIFICATION_FLAG, downloadSuccessNotificationFlag);
intent.putExtra(DOWNLOAD_ERROR_NOTIFICATION_FLAG, downloadErrorNotificationFlag);
intent.putExtra(IS_SEND_BROADCAST, isSendBroadcast);
context.startService(intent);
return this;
}
private int getIcon(Context context) {
final PackageManager packageManager = context.getPackageManager();
ApplicationInfo appInfo = null;
try {
appInfo = packageManager.getApplicationInfo(context.getPackageName(), PackageManager.GET_META_DATA);
} catch (PackageManager.NameNotFoundException e) {
e.printStackTrace();
}
if (appInfo != null) {
return appInfo.icon;
}
return 0;
}
}
}
| [
"hanbinyang@basestonedata.com"
] | hanbinyang@basestonedata.com |
57f170f6be699718e53606710c9ab7c4f339e521 | fa91450deb625cda070e82d5c31770be5ca1dec6 | /Diff-Raw-Data/2/2_b18657cf72a33dad2fd36efdb4bfe0fecb1d72ed/AccelListener/2_b18657cf72a33dad2fd36efdb4bfe0fecb1d72ed_AccelListener_s.java | 5989d44d048f12afb2afa07a2d07dd053b710f54 | [] | 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 | 1,988 | java | package com.phonegap;
import java.util.List;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
import android.content.Context;
import android.webkit.WebView;
public class AccelListener implements SensorEventListener{
WebView mAppView;
Context mCtx;
String mKey;
Sensor mSensor;
int mTime = 10000;
boolean started = false;
private SensorManager sensorManager;
private long lastUpdate = -1;
public AccelListener(String key, int freq, Context ctx, WebView appView)
{
mCtx = ctx;
mAppView = appView;
mKey = key;
mTime = freq;
sensorManager = (SensorManager) mCtx.getSystemService(Context.SENSOR_SERVICE);
}
public void start(int time)
{
mTime = time;
List<Sensor> list = this.sensorManager.getSensorList(Sensor.TYPE_ACCELEROMETER);
if (list.size() > 0)
{
this.mSensor = list.get(0);
this.sensorManager.registerListener(this, this.mSensor, SensorManager.SENSOR_DELAY_FASTEST);
}
else
{
mAppView.loadUrl("javascript:navigator.accelerometer.epicFail(" + mKey + ", 'Failed to start')");
}
}
public void stop()
{
if(started)
sensorManager.unregisterListener(this);
}
public void onAccuracyChanged(Sensor sensor, int accuracy) {
// TODO Auto-generated method stub
}
public void onSensorChanged(SensorEvent event) {
if (event.sensor.getType() != Sensor.TYPE_ACCELEROMETER)
return;
long curTime = System.currentTimeMillis();
if (lastUpdate == -1 || (curTime - lastUpdate) > mTime) {
lastUpdate = curTime;
float x = event.values[0];
float y = event.values[1];
float z = event.values[2];
//mAppView.loadUrl("javascript:gotAccel(" + x + ", " + y + "," + z + " )");
mAppView.loadUrl("javascript:navigator.accelerometer.gotAccel(" + mKey + "," + x + "," + y + "," + z + ")");
}
}
}
| [
"yuzhongxing88@gmail.com"
] | yuzhongxing88@gmail.com |
fa0c373c61d42a089577ce2ef24b274475173a69 | 0234e0ed2e8b3a37ec1fe5bb31ca65493341996e | /wanshu-api-demo-java/src/main/java/com/chuanglan/wanshu/api/demo/RenZhengHeYan/HuoTiJianCeApi.java | 81a08ca58e22bbbac4f790b43398214c9383cd26 | [
"Apache-2.0"
] | permissive | a123zyy/wanshu-api-demo | e7ad21e34f3a14397f6f9289dce132457ab1a136 | 7d6f0c891bf4eebb9850c350d8c2586eae0d1185 | refs/heads/master | 2022-02-07T07:40:05.590199 | 2019-05-13T07:59:41 | 2019-05-13T07:59:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,097 | java | package com.chuanglan.wanshu.api.demo.RenZhengHeYan;
import com.chuanglan.wanshu.api.demo.HttpUtils;
import com.chuanglan.wanshu.api.demo.KonghaoApi;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import java.util.HashMap;
import java.util.Map;
/**
* 活体检测
*/
public class HuoTiJianCeApi {
private static String APP_ID = "qqqqqqqq";
private static String APP_KEY = "qqqqqqqq";
private static String API_URL = "https://api.253.com/open/i/witness/face-check";
private static JsonParser jsonParser = new JsonParser();
public static void main(String[] args) {
// 1.调用api
JsonObject jsonObject = invokeChangeRecord();
// 2.处理返回结果
if (jsonObject != null) {
//响应code码。200000:成功,其他失败
String code = jsonObject.get("code").getAsString();
if ("200000".equals(code) && jsonObject.get("data") != null) {
String data = jsonObject.get("data").toString();
System.out.println("查询成功,返回数据:" + data);
} else {
// 记录错误日志,正式项目中请换成log打印
System.out.println("查询失败,code:" + code + ",msg:" + jsonObject.get("message").getAsString());
}
}
}
private static JsonObject invokeChangeRecord() {
Map<String, String> params = new HashMap<String, String>();
params.put("appId", APP_ID);
params.put("appKey", APP_KEY);
//imageType为URL时,传入照片的网络URL地址, 支持jpg/png/bmp格式;
//imageType为BASE64时,传入照片的base64字符编码,base64编码不包含data:image前缀,且图片大小不能大于2M
params.put("image", "http://***.***.***/download/pic/live-demo.jpg");
params.put("imageType", "URL"); //图片类型(图片类型:URL或BASE64)
String result = HttpUtils.post(API_URL, params);
// 解析json,并返回结果
return jsonParser.parse(result).getAsJsonObject();
}
}
| [
"huanghe@253.com"
] | huanghe@253.com |
8c9f0be79af092bd29a0340dc4ed5e5f891b04d5 | 2fac25248a4dd0184b335b8a4cf52decf06f6262 | /src/main/java/arrayofarrays/ArrayOfArraysMain.java | b53c04019d7f7685026a84e7180705079c811e3e | [] | no_license | Rolderek/training-solutions | a1314a5c147b04531ed5d7909bb33fa85dd2605a | f87b5269e8499f54deb89bcebd4f3b5a765f67e3 | refs/heads/master | 2023-04-14T08:21:59.930872 | 2021-04-28T08:44:49 | 2021-04-28T08:44:49 | 308,072,642 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,163 | java | package arrayofarrays;
public class ArrayOfArraysMain {
/*
public int[] mutilicationTable(int size) {
for (int i = 0; i < size; i++) {
}
*/
//puskából kinézve a kommentesek
/*
public void printArrayOfArrays(int[][] a) {
for (int i[] : a) {
for (int j : i) {
if (j < 10) {
System.out.print(" ");
} else if (j < 100) {
System.out.print(" ");
}
System.out.print(j);
System.out.print(" ");
}
System.out.println();
}
}
public int[][] multiplicationTable(int size) {
int[][] multiplicationTable = new int[size][size];
for (int i = 0; i < size; i++) {
for (int j = 0; j < size; j++) {
multiplicationTable[i][j] = (i + 1) * (j + 1);
}
}
return multiplicationTable;
}
public int[][] triangularMatrix(int size) {
int[][] triangularMatrix = new int[size][];
for (int i = 0; i < triangularMatrix.length; i++) {
triangularMatrix[i] = new int[i + 1];
for (int j = 0; j < i + 1; j++) {
triangularMatrix[i][j] = i;
}
}
return triangularMatrix;
}
public int[][] getValues() {
int[][] values = new int[12][];
int[] numberOfDays = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
for (int i = 0; i < numberOfDays.length; i++) {
values[i] = new int[numberOfDays[i]];
}
return values;
}
public static void main(String[] args) {
ArrayOfArraysMain arrayOfArraysMain = new ArrayOfArraysMain();
System.out.println("Multiplication table");
arrayOfArraysMain.printArrayOfArrays(arrayOfArraysMain.multiplicationTable(10));
System.out.println("Triangular matrix");
arrayOfArraysMain.printArrayOfArrays(arrayOfArraysMain.triangularMatrix(3));
System.out.println("Values per days");
arrayOfArraysMain.printArrayOfArrays(arrayOfArraysMain.getValues());
}
*/
} | [
"restaslaci@gmail.com"
] | restaslaci@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.