text
stringlengths
7
1.01M
package my.ostrea.controllers; import my.ostrea.Constants; import my.ostrea.exceptions.CanNotFindFileWithSpecifiedName; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.ResponseBody; import java.io.IOException; import java.nio.file.DirectoryStream; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.UUID; @Controller public class FileSearchController { @RequestMapping(value="/search", method= RequestMethod.GET) public @ResponseBody String provideSearchInfo() { return "You can search a file by posting to this same URL."; } @RequestMapping(value="/search", method=RequestMethod.POST) public @ResponseBody String handleFileSearch(@RequestParam("name") String name) { StringBuilder result = new StringBuilder(); int numberOfFiles = 0; try (DirectoryStream<Path> directoryStream = Files.newDirectoryStream( Paths.get(Constants.ROOT_SERVER_FOLDER))) { for (Path currentFile : directoryStream) { if (!Files.isDirectory(currentFile)) { String fileName = currentFile.getFileName().toString(); if (fileName.contains(name) && numberOfFiles < 25) { numberOfFiles++; UUID currentFileUuid = UUID.nameUUIDFromBytes(Files.readAllBytes(currentFile)); result.append("File name: ").append(fileName).append(" UUID: ") .append(currentFileUuid).append('\n'); } } } } catch (IOException e) { e.printStackTrace(); } if (result.length() == 0) { throw new CanNotFindFileWithSpecifiedName(name); } return result.toString(); } }
package com.terapico.utils; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; public class ImageUtil { protected static Map<String, List<String>> SAMPLE_ROOM = new HashMap<>(); protected static String DEFAULT_AVANTAR = "https://doublechain.oss-cn-hangzhou.aliyuncs.com/chainqa/avatar.png"; static { SAMPLE_ROOM.put("animal_small", Arrays.asList( )); SAMPLE_ROOM.put("girl_small", Arrays.asList( )); SAMPLE_ROOM.put("boy_small", Arrays.asList( )); SAMPLE_ROOM.put("plant_small", Arrays.asList( )); SAMPLE_ROOM.put("scenery_small", Arrays.asList( )); } public static String animal() { return getImageFromSampleRoom("animal"); } public static String boy() { return getImageFromSampleRoom("boy"); } public static String girl() { return getImageFromSampleRoom("girl"); } public static String plant() { return getImageFromSampleRoom("plant"); } public static String scenery() { return getImageFromSampleRoom("scenery"); } protected static String getImageFromSampleRoom(String style) { return getImageFromSampleRoom(style, "small"); } protected static String getImageFromSampleRoom(String style, String size) { List<String> list = SAMPLE_ROOM.get(style+"_"+size); if (list == null || list.isEmpty()) { return DEFAULT_AVANTAR; } return list.get(RandomUtil.getRandomInRange(0, list.size())); } }
package no.acntech.project101.company.consumer; import java.net.URI; import org.springframework.boot.web.client.RestTemplateBuilder; import org.springframework.stereotype.Component; import org.springframework.web.client.RestTemplate; import org.springframework.web.util.UriComponentsBuilder; import no.acntech.project101.company.model.BrregRespons; @Component public class BrregRestClient { private final RestTemplate restTemplate; private final String url = "https://webapi.no/api/v1/brreg/{orgnr}"; public BrregRestClient(final RestTemplateBuilder restTemplateBuilder) { this.restTemplate = restTemplateBuilder.build(); } public String lookupOrganizationName(final String organisasjonsnummer) { final URI uri = getUri(organisasjonsnummer); System.out.println(); final BrregRespons brregRespons = restTemplate.getForEntity(uri, BrregRespons.class).getBody(); return brregRespons.getData().getName(); } private URI getUri(String organisasjonsnummer) { return UriComponentsBuilder .fromUriString(url) .buildAndExpand(organisasjonsnummer) .toUri(); } }
package com.fc.v2.course.domain; import java.io.Serializable; import java.util.Date; /** * * * @author whw * @email 1992lcg@163.com * @date 2021-06-01 01:02:54 */ public class WbTeacherDO implements Serializable { private static final long serialVersionUID = 1L; // private Integer id; // private Date addTime; // private Date updateTime; // private String status; // private String name; // private String img; // private Integer age; // private String info; /** * 设置: */ public void setId(Integer id) { this.id = id; } /** * 获取: */ public Integer getId() { return id; } /** * 设置: */ public void setAddTime(Date addTime) { this.addTime = addTime; } /** * 获取: */ public Date getAddTime() { return addTime; } /** * 设置: */ public void setUpdateTime(Date updateTime) { this.updateTime = updateTime; } /** * 获取: */ public Date getUpdateTime() { return updateTime; } /** * 设置: */ public void setStatus(String status) { this.status = status; } /** * 获取: */ public String getStatus() { return status; } /** * 设置: */ public void setName(String name) { this.name = name; } /** * 获取: */ public String getName() { return name; } /** * 设置: */ public void setImg(String img) { this.img = img; } /** * 获取: */ public String getImg() { return img; } /** * 设置: */ public void setAge(Integer age) { this.age = age; } /** * 获取: */ public Integer getAge() { return age; } /** * 设置: */ public void setInfo(String info) { this.info = info; } /** * 获取: */ public String getInfo() { return info; } }
/* * 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.fusesource.insight.log.log4j; import java.io.File; import java.lang.reflect.Method; import java.net.URL; import java.security.CodeSource; import java.util.HashMap; import java.util.Map; import org.fusesource.insight.log.support.Strings; /** * Code modified from log4j to format exceptions */ public class ThrowableFormatter { /** * Throwable.getStackTrace() method. */ private Method getStackTraceMethod; /** * StackTraceElement.getClassName() method. */ private Method getClassNameMethod; /** * Construct new instance. */ public ThrowableFormatter() { try { Class[] noArgs = null; getStackTraceMethod = Throwable.class.getMethod("getStackTrace", noArgs); Class ste = Class.forName("java.lang.StackTraceElement"); getClassNameMethod = ste.getMethod("getClassName", noArgs); } catch (Exception ex) { } } /** * {@inheritDoc} */ public String[] doRender(final Throwable throwable) { if (getStackTraceMethod != null) { try { Object[] noArgs = null; Object[] elements = (Object[])getStackTraceMethod.invoke(throwable, noArgs); String[] lines = new String[elements.length + 1]; lines[0] = throwable.toString(); Map classMap = new HashMap(); for (int i = 0; i < elements.length; i++) { lines[i + 1] = formatElement(elements[i], classMap); } return lines; } catch (Exception ex) { } } return null; } /** * Format one element from stack trace. * * @param element element, may not be null. * @param classMap map of class name to location. * @return string representation of element. */ private String formatElement(final Object element, final Map classMap) { StringBuffer buf = new StringBuffer("\tat "); buf.append(element); try { String className = getClassNameMethod.invoke(element, (Object[])null).toString(); Object classDetails = classMap.get(className); if (classDetails != null) { buf.append(classDetails); } else { Class cls = findClass(className); int detailStart = buf.length(); buf.append('['); String mavenCoordinates = MavenCoordHelper.getMavenCoordinates(cls); if (!Strings.isEmpty(mavenCoordinates)) { buf.append(mavenCoordinates); } else { try { CodeSource source = cls.getProtectionDomain().getCodeSource(); if (source != null) { URL locationURL = source.getLocation(); if (locationURL != null) { // // if a file: URL // if ("file".equals(locationURL.getProtocol())) { String path = locationURL.getPath(); if (path != null) { // // find the last file separator character // int lastSlash = path.lastIndexOf('/'); int lastBack = path.lastIndexOf(File.separatorChar); if (lastBack > lastSlash) { lastSlash = lastBack; } // // if no separator or ends with separator (a directory) // then output the URL, otherwise just the file name. // if (lastSlash <= 0 || lastSlash == path.length() - 1) { buf.append(locationURL); } else { buf.append(path.substring(lastSlash + 1)); } } } else { buf.append(locationURL); } } } } catch (SecurityException ex) { } buf.append(':'); Package pkg = cls.getPackage(); if (pkg != null) { String implVersion = pkg.getImplementationVersion(); if (implVersion != null) { buf.append(implVersion); } } } buf.append(']'); classMap.put(className, buf.substring(detailStart)); } } catch (Exception ex) { } return buf.toString(); } /** * Find class given class name. * * @param className class name, may not be null. * @return class, will not be null. * @throws ClassNotFoundException thrown if class can not be found. */ private Class findClass(final String className) throws ClassNotFoundException { try { return Thread.currentThread().getContextClassLoader().loadClass(className); } catch (ClassNotFoundException e) { try { return Class.forName(className); } catch (ClassNotFoundException e1) { return getClass().getClassLoader().loadClass(className); } } } }
package org.fluentlenium.core.action; import org.openqa.selenium.NoSuchElementException; import org.openqa.selenium.support.ui.Select; import org.fluentlenium.core.domain.FluentList; import org.fluentlenium.core.domain.FluentWebElement; import java.util.function.Consumer; /** * Provides functionality to select values in {@code <select>} elements. * <p> * Documentation can also be found at the FluentLenium website at * <a href="https://fluentlenium.com/docs/locators/#filling-forms">Locators / Filling Forms</a>. * * @param <E> type of element to fill */ public class FillSelect<E extends FluentWebElement> extends BaseFill<E> { /** * Creates a new fill from a list of elements. * * @param list list of elements to fill */ public FillSelect(FluentList<E> list) { super(list); } /** * Creates a new fill from a single element. * * @param element element to fill */ public FillSelect(E element) { super(element); } /** * Excludes elements that don't have a tag name or their tag name is not {@code select}, * so that elements with only {@code select} tags are tried to be filled. */ @Override protected FluentList<E> getElements() { FluentList<E> elements = super.getElements(); elements.removeIf(next -> next.tagName() == null || !next.tagName().equalsIgnoreCase("select")); return elements; } /** * Select an option by its index for the Select element. * * @param index the select index value * @return this FillSelect instance * @throws NoSuchElementException if no select element is found */ public FillSelect withIndex(int index) { boolean noSuchElement = true; for (E element : getElements()) { Select select = new Select(element.getElement()); try { select.selectByIndex(index); noSuchElement = false; } catch (NoSuchElementException e) { // NOPMD EmptyCatchBlock } } if (noSuchElement) { throw new NoSuchElementException("No select element found with option index=" + index); } return this; } /** * Select all options that have a value matching the argument for the Select element. * * @param value the value to select by * @return this FillSelect instance * @throws NoSuchElementException if no select element is found */ public FillSelect withValue(String value) { return doSelect(select -> select.selectByValue(value)); } /** * Select all options that display text matching the argument for the Select element. * * @param text the visible text to select by * @return this FillSelect instance * @throws NoSuchElementException if no select element is found */ public FillSelect withText(String text) { return doSelect(select -> select.selectByVisibleText(text)); } private FillSelect doSelect(Consumer<Select> elementSelector) { FluentList<E> elements = getElements(); if (elements.isEmpty()) { throw new NoSuchElementException("No select element found"); } for (FluentWebElement element : elements) { Select select = new Select(element.getElement()); elementSelector.accept(select); } return this; } }
package com.chengxiaoxiao.lizhiedu.auth.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.chengxiaoxiao.lizhiedu.auth.entity.RoleInfo; import java.util.List; /** * <p> * Mapper 接口 * </p> * * @author Cheng xiaoxiao * @since 2020-06-01 */ public interface RoleMapper extends BaseMapper<RoleInfo> { /** * 根据用户ID获取角色列表 * * @param userId 用户ID * @return */ List<RoleInfo> selectRoleByUserId(String userId); }
/* * Copyright (c) 2010-2014. Axon Framework * * 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.axonframework.commandhandling; import org.axonframework.unitofwork.UnitOfWork; /** * Workflow interface that allows for customized command handler invocation chains. A CommandHandlerInterceptor can add * customized behavior to command handler invocations, both before and after the invocation. * <p/> * * @author Allard Buijze * @since 0.5 */ public interface CommandHandlerInterceptor { /** * The handle method is invoked each time a command is dispatched through the command bus that the * CommandHandlerInterceptor is declared on. The incoming command and contextual information can be found in the * given <code>unitOfWork</code>. * <p/> * The interceptor is responsible for the continuation of the dispatch process by invoking the {@link * org.axonframework.commandhandling.InterceptorChain#proceed(CommandMessage)} method on the given * <code>interceptorChain</code>. * <p/> * Any information gathered by interceptors may be attached to the unitOfWork. This information is made * available to the CommandCallback provided by the dispatching component. * <p/> * Interceptors are highly recommended not to change the type of the command handling result, as the dispatching * component might expect a result of a specific type. * * @param commandMessage The command being dispatched * @param unitOfWork The UnitOfWork in which * @param interceptorChain The interceptor chain that allows this interceptor to proceed the dispatch process * @return the result of the command handler. May have been modified by interceptors. * * @throws Throwable any exception that occurs while handling the command */ Object handle(CommandMessage<?> commandMessage, UnitOfWork unitOfWork, InterceptorChain interceptorChain) throws Throwable; }
/* * See the file LICENSE for redistribution information. * * Copyright (c) 2002, 2014 Oracle and/or its affiliates. All rights reserved. * */ package com.sleepycat.je.rep; import com.sleepycat.je.Database; import com.sleepycat.je.OperationFailureException; /** * Thrown when attempting to use a Database handle that was forcibly closed by * replication. This exception only occurs in a replicated environment and * normally only occurs on a Replica node. In the case of a DPL schema upgrade * where an entity class or secondary key is renamed, it may also occur on a * Master node, as described below. * * <p>This exception occurs when accessing a database or store and one of the * following methods was recently executed on the master node and then replayed * on a replica node: * {@link com.sleepycat.je.Environment#truncateDatabase truncateDatabase}, * {@link com.sleepycat.je.Environment#removeDatabase removeDatabase} and * {@link com.sleepycat.je.Environment#renameDatabase renameDatabase}.</p> * * <p>When using the {@link com.sleepycat.persist DPL}, this occurs only in two * circumstances:</p> * <ol> * <li>This exception is thrown on a Replica node when the {@link * com.sleepycat.persist.EntityStore#truncateClass truncateClass} method has * been called on the Master node.</li> * <li>This exception is thrown on a Replica or Master node when an entity * class or secondary key has been renamed and the application has been * upgraded. See * <a href="../../persist/evolve/package-summary.html#repUpgrade">Upgrading * a Replication Group</a>.</li> * </ol> * * <p>When this exception occurs, the application must close any open cursors * and abort any open transactions that are using the database or store, and * then close the database or store handle. If the application wishes, it may * then reopen the database (if it still exists) or store.</p> * * <p>Some applications may wish to coordinate the Master and Replica sites to * prevent a Replica from accessing a database that is being truncated, removed * or renamed, and thereby prevent this exception. Such coordination is not * directly supported by JE. The DatabasePreemptedException is provided to * allow an application to handle database truncation, removal and renaming * without such coordination between nodes.</p> * * <p>The {@link com.sleepycat.je.Transaction} handle is <em>not</em> * invalidated as a result of this exception.</p> * * @since 4.0 */ public class DatabasePreemptedException extends OperationFailureException { private static final long serialVersionUID = 1; private final String dbName; private final Database dbHandle; /** * For internal use only. * @hidden */ public DatabasePreemptedException(final String message, final String dbName, final Database dbHandle) { super(null /*locker*/, false /*abortOnly*/, message, null /*cause*/); this.dbName = dbName; this.dbHandle = dbHandle; } /** * For internal use only. * @hidden */ private DatabasePreemptedException(String message, DatabasePreemptedException cause) { super(message, cause); dbName = cause.dbName; dbHandle = cause.dbHandle; } /** * Returns the database handle that was forcibly closed. */ public Database getDatabase() { return dbHandle; } /** * Returns the name of the database that was forcibly closed. */ public String getDatabaseName() { return dbName; } /** * For internal use only. * @hidden */ @Override public OperationFailureException wrapSelf(String msg) { return new DatabasePreemptedException(msg, this); } }
package com.yatatsu.autobundle.example; import android.os.Bundle; import androidx.annotation.NonNull; import java.lang.String; import java.util.Date; public final class ExampleFragmentAutoBundle { @NonNull public static ExampleFragmentAutoBundle.Builder builder(@NonNull String title, @NonNull Date targetDate) { return new ExampleFragmentAutoBundle.Builder(title, targetDate); } public static void bind(@NonNull ExampleFragment target) { if (target.getArguments() != null) { bind(target, target.getArguments()); } } public static void bind(@NonNull ExampleFragment target, @NonNull Bundle source) { if (source.containsKey("title")) { target.title = (String) source.getString("title"); } else { throw new IllegalStateException("title is required, but not found in the bundle."); } if (source.containsKey("targetDate")) { ExampleFragment.DateArgConverter targetDateConverter = new ExampleFragment.DateArgConverter(); target.targetDate = (Date) targetDateConverter.original( source.getLong("targetDate") ); } else { throw new IllegalStateException("targetDate is required, but not found in the bundle."); } } public static void pack(@NonNull ExampleFragment source, @NonNull Bundle args) { if (source.title != null) { args.putString("title", source.title); } else { throw new IllegalStateException("title must not be null."); } if (source.targetDate != null) { ExampleFragment.DateArgConverter targetDateConverter = new ExampleFragment.DateArgConverter(); args.putLong("targetDate", targetDateConverter.convert(source.targetDate) ); } else { throw new IllegalStateException("targetDate must not be null."); } } public static final class Builder { private final Bundle args; public Builder(@NonNull String title, @NonNull Date targetDate) { this.args = new Bundle(); this.args.putString("title", title); ExampleFragment.DateArgConverter targetDateConverter = new ExampleFragment.DateArgConverter(); this.args.putLong("targetDate", targetDateConverter.convert(targetDate) ); } @NonNull public ExampleFragment build() { ExampleFragment fragment = new ExampleFragment(); fragment.setArguments(args); return fragment; } @NonNull public ExampleFragment build(@NonNull ExampleFragment fragment) { fragment.setArguments(args); return fragment; } @NonNull public Bundle bundle() { return args; } } }
/* * Copyright (c) 2022, Peter Abeles. All Rights Reserved. * * This file is part of BoofCV (http://boofcv.org). * * 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 boofcv.alg.fiducial.microqr; import boofcv.alg.fiducial.qrcode.EciEncoding; import boofcv.alg.fiducial.qrcode.QrCode; import boofcv.testing.BoofStandardJUnit; import org.junit.jupiter.api.Test; import static boofcv.alg.fiducial.qrcode.QrCodeCodecBitsUtils.flipBits8; import static org.junit.jupiter.api.Assertions.*; public class TestMicroQrCodeEncoder extends BoofStandardJUnit { /** * In the qr code specification an example is given. This compares the computed results to that example */ @Test void numeric_specification_NoMask() { MicroQrCode qr = new MicroQrCodeEncoder().setVersion(2). setError(MicroQrCode.ErrorLevel.L). setMask(MicroQrCodeMaskPattern.NONE). addNumeric("01234567").fixate(); byte[] expected = new byte[]{ (byte)0b0100_0000, 0b0001_1000, (byte)0b1010_1100, (byte)0b1100_0011, 0b0000_0000, (byte)0b1000_0110, 0b0000_1101, (byte)0b0010_0010, (byte)0b1010_1110, 0b0011_0000}; flipBits8(expected, expected.length); assertEquals(qr.rawbits.length, expected.length); for (int i = 0; i < expected.length; i++) { assertEquals(expected[i], qr.rawbits[i], "index=" + i); } } @Test void automatic() { var encoder = new MicroQrCodeEncoder(); var decoder = new MicroQrCodeDecoderBits(null, EciEncoding.ISO8859_1); // used to validate the message MicroQrCode qr = encoder.addAutomatic("142f阿ん鞠≦K").fixate(); assertEquals(qr.message, "142f阿ん鞠≦K"); assertTrue(decoder.applyErrorCorrection(qr)); assertTrue(decoder.decodeMessage(qr)); assertEquals(QrCode.Mode.MIXED, qr.mode); assertEquals("UTF8", qr.byteEncoding); encoder.reset(); qr = encoder.addAutomatic("123ASDdf").fixate(); assertEquals(qr.message, "123ASDdf"); assertTrue(decoder.applyErrorCorrection(qr)); assertTrue(decoder.decodeMessage(qr)); assertEquals(QrCode.Mode.BYTE, qr.mode); assertEquals("UTF8", qr.byteEncoding); encoder.reset(); qr = encoder.addAutomatic("123ASD").fixate(); assertEquals(qr.message, "123ASD"); assertTrue(decoder.applyErrorCorrection(qr)); assertTrue(decoder.decodeMessage(qr)); assertEquals(QrCode.Mode.ALPHANUMERIC, qr.mode); assertEquals("", qr.byteEncoding); encoder.reset(); qr = encoder.addAutomatic("123").fixate(); assertEquals(qr.message, "123"); assertTrue(decoder.applyErrorCorrection(qr)); assertTrue(decoder.decodeMessage(qr)); assertEquals(QrCode.Mode.NUMERIC, qr.mode); assertEquals("", qr.byteEncoding); } @Test void messageTooLong() { assertThrows(IllegalArgumentException.class, () -> new MicroQrCodeEncoder().setVersion(1). setError(MicroQrCode.ErrorLevel.M). setMask(MicroQrCodeMaskPattern.M10). addNumeric("0123123123123123123123").fixate()); } /** * Encodes and then decodes it for several different lengths */ @Test void encodeThenDecode() { for (int length = 1; length < 15; length++) { encodeThenDecodeBytes(length); } for (int length = 1; length < 35; length++) { encodeThenDecodeNumeric(length); } } private void encodeThenDecodeNumeric( int length ) { String message = ""; for (int i = 0; i < length; i++) { message += "" + (rand.nextInt(10)); } MicroQrCode qr = new MicroQrCodeEncoder().setMask(MicroQrCodeMaskPattern.M10).addNumeric(message).fixate(); qr.message = ""; var decoder = new MicroQrCodeDecoderBits(EciEncoding.UTF8, EciEncoding.ISO8859_1); assertTrue(decoder.applyErrorCorrection(qr)); assertTrue(decoder.decodeMessage(qr)); assertEquals(message, qr.message); } private void encodeThenDecodeBytes( int length ) { String message = ""; for (int i = 0; i < length; i++) { message += (char)(0x21 + rand.nextInt(50)); } MicroQrCode qr = new MicroQrCodeEncoder().setMask(MicroQrCodeMaskPattern.M10).addBytes(message).fixate(); qr.message = ""; var decoder = new MicroQrCodeDecoderBits(EciEncoding.UTF8, ""); assertTrue(decoder.applyErrorCorrection(qr)); assertTrue(decoder.decodeMessage(qr)); assertEquals(message, qr.message); } /** * See if it blows up when encoding using multiple encoding methods */ @Test void multipleModes() { MicroQrCode qr = new MicroQrCodeEncoder(). setVersion(4).setError(MicroQrCode.ErrorLevel.L). setMask(MicroQrCodeMaskPattern.M10). addNumeric("1234"). addKanji("阿ん鞠").fixate(); assertEquals("1234阿ん鞠", qr.message); } @Test void tooMuchData() { var encoder = new MicroQrCodeEncoder() .setVersion(2).setError(MicroQrCode.ErrorLevel.M). setMask(MicroQrCodeMaskPattern.M10). addAlphanumeric("ASDASDJASD983405983094580SDF:LOEFLAWEQR"); assertThrows(RuntimeException.class, encoder::fixate); } @Test void autoSelectVersion() { MicroQrCode qr = new MicroQrCodeEncoder(). setMask(MicroQrCodeMaskPattern.M10). addNumeric("12123").fixate(); assertEquals(1, qr.version); qr = new MicroQrCodeEncoder(). setError(MicroQrCode.ErrorLevel.M). setMask(MicroQrCodeMaskPattern.M10). addAlphanumeric("123132123123132122").fixate(); assertEquals(4, qr.version); } @Test void autoSelectErrorCorrection() { MicroQrCode qr = new MicroQrCodeEncoder(). setVersion(2). setMask(MicroQrCodeMaskPattern.M10). addNumeric("1").fixate(); assertEquals(MicroQrCode.ErrorLevel.M, qr.error); qr = new MicroQrCodeEncoder(). setVersion(4). setMask(MicroQrCodeMaskPattern.M10). addNumeric("1231").fixate(); assertEquals(MicroQrCode.ErrorLevel.Q, qr.error); qr = new MicroQrCodeEncoder(). setVersion(4). setMask(MicroQrCodeMaskPattern.M10). addNumeric("123132123123132122983848374923223").fixate(); assertEquals(MicroQrCode.ErrorLevel.L, qr.error); } @Test void autoSelectVersionAndError() { MicroQrCode qr = new MicroQrCodeEncoder(). setMask(MicroQrCodeMaskPattern.M10). addNumeric("123").fixate(); assertEquals(1, qr.version); assertEquals(MicroQrCode.ErrorLevel.DETECT, qr.error); // alphanumeric isn't supported by version 1 qr = new MicroQrCodeEncoder(). setMask(MicroQrCodeMaskPattern.M10). addAlphanumeric("1").fixate(); assertEquals(2, qr.version); assertEquals(MicroQrCode.ErrorLevel.M, qr.error); qr = new MicroQrCodeEncoder(). setMask(MicroQrCodeMaskPattern.M10). addAlphanumeric("123123213AAE324SDASD").fixate(); assertEquals(4, qr.version); assertEquals(MicroQrCode.ErrorLevel.L, qr.error); } /** * Give it random markers and see if it selects different masks */ @Test void autoSelectMask_Random() { int[] histogram = new int[4]; for (int i = 0; i < 100; i++) { var qr = new MicroQrCode(); qr.version = rand.nextInt(4) + 1; qr.error = MicroQrCode.allowedErrorCorrection(qr.version)[0]; int bits = qr.getMaxDataBits() + qr.getNumberOfErrorCodeWords()*8; qr.rawbits = new byte[bits/8 + (bits%8 == 0 ? 0 : 1)]; rand.nextBytes(qr.rawbits); histogram[MicroQrCodeEncoder.autoSelectMask(qr).bits] += 1; } for (int i = 0; i < 4; i++) { assertTrue(histogram[i] > 10); } } }
/* * 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.opensearch.cluster.routing; import org.opensearch.Version; import org.opensearch.cluster.metadata.IndexMetadata; import org.opensearch.cluster.node.DiscoveryNode; import org.opensearch.cluster.routing.TestShardRouting; import org.opensearch.common.transport.TransportAddress; import org.opensearch.index.Index; import org.opensearch.index.shard.ShardId; import org.opensearch.test.OpenSearchTestCase; import org.opensearch.cluster.routing.RoutingNode; import org.opensearch.cluster.routing.ShardRouting; import org.opensearch.cluster.routing.ShardRoutingState; import java.net.InetAddress; import static java.util.Collections.emptyMap; import static java.util.Collections.emptySet; import static org.hamcrest.Matchers.equalTo; import static org.hamcrest.Matchers.is; import static org.hamcrest.Matchers.nullValue; public class RoutingNodeTests extends OpenSearchTestCase { private ShardRouting unassignedShard0 = TestShardRouting.newShardRouting("test", 0, "node-1", false, ShardRoutingState.STARTED); private ShardRouting initializingShard0 = TestShardRouting.newShardRouting("test", 1, "node-1", false, ShardRoutingState.INITIALIZING); private ShardRouting relocatingShard0 = TestShardRouting.newShardRouting("test", 2, "node-1", "node-2", false, ShardRoutingState.RELOCATING); private RoutingNode routingNode; @Override public void setUp() throws Exception { super.setUp(); InetAddress inetAddress = InetAddress.getByAddress("name1", new byte[] { (byte) 192, (byte) 168, (byte) 0, (byte) 1}); TransportAddress transportAddress = new TransportAddress(inetAddress, randomIntBetween(0, 65535)); DiscoveryNode discoveryNode = new DiscoveryNode("name1", "node-1", transportAddress, emptyMap(), emptySet(), Version.CURRENT); routingNode = new RoutingNode("node1", discoveryNode, unassignedShard0, initializingShard0, relocatingShard0); } public void testAdd() { ShardRouting initializingShard1 = TestShardRouting.newShardRouting("test", 3, "node-1", false, ShardRoutingState.INITIALIZING); ShardRouting relocatingShard0 = TestShardRouting.newShardRouting("test", 4, "node-1", "node-2",false, ShardRoutingState.RELOCATING); routingNode.add(initializingShard1); routingNode.add(relocatingShard0); assertThat(routingNode.getByShardId(new ShardId("test", IndexMetadata.INDEX_UUID_NA_VALUE, 3)), equalTo(initializingShard1)); assertThat(routingNode.getByShardId(new ShardId("test", IndexMetadata.INDEX_UUID_NA_VALUE, 4)), equalTo(relocatingShard0)); } public void testUpdate() { ShardRouting startedShard0 = TestShardRouting.newShardRouting("test", 0, "node-1", false, ShardRoutingState.STARTED); ShardRouting startedShard1 = TestShardRouting.newShardRouting("test", 1, "node-1", "node-2",false, ShardRoutingState.RELOCATING); ShardRouting startedShard2 = TestShardRouting.newShardRouting("test", 2, "node-1", false, ShardRoutingState.INITIALIZING); routingNode.update(unassignedShard0, startedShard0); routingNode.update(initializingShard0, startedShard1); routingNode.update(relocatingShard0, startedShard2); assertThat(routingNode.getByShardId(new ShardId("test", IndexMetadata.INDEX_UUID_NA_VALUE, 0)).state(), equalTo(ShardRoutingState.STARTED)); assertThat(routingNode.getByShardId(new ShardId("test", IndexMetadata.INDEX_UUID_NA_VALUE, 1)).state(), equalTo(ShardRoutingState.RELOCATING)); assertThat(routingNode.getByShardId(new ShardId("test", IndexMetadata.INDEX_UUID_NA_VALUE, 2)).state(), equalTo(ShardRoutingState.INITIALIZING)); } public void testRemove() { routingNode.remove(unassignedShard0); routingNode.remove(initializingShard0); routingNode.remove(relocatingShard0); assertThat(routingNode.getByShardId(new ShardId("test", IndexMetadata.INDEX_UUID_NA_VALUE, 0)), is(nullValue())); assertThat(routingNode.getByShardId(new ShardId("test", IndexMetadata.INDEX_UUID_NA_VALUE, 1)), is(nullValue())); assertThat(routingNode.getByShardId(new ShardId("test", IndexMetadata.INDEX_UUID_NA_VALUE, 2)), is(nullValue())); } public void testNumberOfShardsWithState() { assertThat(routingNode.numberOfShardsWithState(ShardRoutingState.INITIALIZING, ShardRoutingState.STARTED), equalTo(2)); assertThat(routingNode.numberOfShardsWithState(ShardRoutingState.STARTED), equalTo(1)); assertThat(routingNode.numberOfShardsWithState(ShardRoutingState.RELOCATING), equalTo(1)); assertThat(routingNode.numberOfShardsWithState(ShardRoutingState.INITIALIZING), equalTo(1)); } public void testShardsWithState() { assertThat(routingNode.shardsWithState(ShardRoutingState.INITIALIZING, ShardRoutingState.STARTED).size(), equalTo(2)); assertThat(routingNode.shardsWithState(ShardRoutingState.STARTED).size(), equalTo(1)); assertThat(routingNode.shardsWithState(ShardRoutingState.RELOCATING).size(), equalTo(1)); assertThat(routingNode.shardsWithState(ShardRoutingState.INITIALIZING).size(), equalTo(1)); } public void testShardsWithStateInIndex() { assertThat(routingNode.shardsWithState("test", ShardRoutingState.INITIALIZING, ShardRoutingState.STARTED).size(), equalTo(2)); assertThat(routingNode.shardsWithState("test", ShardRoutingState.STARTED).size(), equalTo(1)); assertThat(routingNode.shardsWithState("test", ShardRoutingState.RELOCATING).size(), equalTo(1)); assertThat(routingNode.shardsWithState("test", ShardRoutingState.INITIALIZING).size(), equalTo(1)); } public void testNumberOfOwningShards() { assertThat(routingNode.numberOfOwningShards(), equalTo(2)); } public void testNumberOfOwningShardsForIndex() { final ShardRouting test1Shard0 = TestShardRouting.newShardRouting("test1", 0, "node-1", false, ShardRoutingState.STARTED); final ShardRouting test2Shard0 = TestShardRouting.newShardRouting("test2", 0, "node-1", "node-2", false, ShardRoutingState.RELOCATING); routingNode.add(test1Shard0); routingNode.add(test2Shard0); assertThat(routingNode.numberOfOwningShardsForIndex(new Index("test", IndexMetadata.INDEX_UUID_NA_VALUE)), equalTo(2)); assertThat(routingNode.numberOfOwningShardsForIndex(new Index("test1", IndexMetadata.INDEX_UUID_NA_VALUE)), equalTo(1)); assertThat(routingNode.numberOfOwningShardsForIndex(new Index("test2", IndexMetadata.INDEX_UUID_NA_VALUE)), equalTo(0)); assertThat(routingNode.numberOfOwningShardsForIndex(new Index("test3", IndexMetadata.INDEX_UUID_NA_VALUE)), equalTo(0)); } }
/* * Copyright 2000-2014 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.intellij.refactoring.util; import com.intellij.find.FindManager; import com.intellij.find.findUsages.FindUsagesHandler; import com.intellij.find.findUsages.FindUsagesManager; import com.intellij.find.findUsages.FindUsagesUtil; import com.intellij.find.impl.FindManagerImpl; import com.intellij.lang.ASTNode; import com.intellij.lang.LanguageParserDefinitions; import com.intellij.lang.ParserDefinition; import com.intellij.openapi.util.TextRange; import com.intellij.psi.PsiElement; import com.intellij.psi.PsiPolyVariantReference; import com.intellij.psi.PsiReference; import com.intellij.psi.impl.search.PsiSearchHelperImpl; import com.intellij.psi.search.*; import com.intellij.usageView.UsageInfo; import com.intellij.usageView.UsageInfoFactory; import com.intellij.util.PairProcessor; import com.intellij.util.Processor; import org.jetbrains.annotations.NotNull; import java.util.Collection; public class TextOccurrencesUtil { private TextOccurrencesUtil() { } public static void addTextOccurences(@NotNull PsiElement element, @NotNull String stringToSearch, @NotNull GlobalSearchScope searchScope, @NotNull final Collection<UsageInfo> results, @NotNull final UsageInfoFactory factory) { PsiSearchHelperImpl.processTextOccurrences(element, stringToSearch, searchScope, new Processor<UsageInfo>() { @Override public boolean process(UsageInfo t) { results.add(t); return true; } }, factory); } private static boolean processStringLiteralsContainingIdentifier(@NotNull String identifier, @NotNull SearchScope searchScope, PsiSearchHelper helper, final Processor<PsiElement> processor) { TextOccurenceProcessor occurenceProcessor = new TextOccurenceProcessor() { @Override public boolean execute(@NotNull PsiElement element, int offsetInElement) { final ParserDefinition definition = LanguageParserDefinitions.INSTANCE.forLanguage(element.getLanguage()); final ASTNode node = element.getNode(); if (definition != null && node != null && definition.getStringLiteralElements().contains(node.getElementType())) { return processor.process(element); } return true; } }; return helper.processElementsWithWord(occurenceProcessor, searchScope, identifier, UsageSearchContext.IN_STRINGS, true); } public static boolean processUsagesInStringsAndComments(@NotNull final PsiElement element, @NotNull final String stringToSearch, final boolean ignoreReferences, @NotNull final PairProcessor<PsiElement, TextRange> processor) { PsiSearchHelper helper = PsiSearchHelper.SERVICE.getInstance(element.getProject()); SearchScope scope = helper.getUseScope(element); scope = GlobalSearchScope.projectScope(element.getProject()).intersectWith(scope); Processor<PsiElement> commentOrLiteralProcessor = new Processor<PsiElement>() { @Override public boolean process(PsiElement literal) { return processTextIn(literal, stringToSearch, ignoreReferences, processor); } }; return processStringLiteralsContainingIdentifier(stringToSearch, scope, helper, commentOrLiteralProcessor) && helper.processCommentsContainingIdentifier(stringToSearch, scope, commentOrLiteralProcessor); } public static void addUsagesInStringsAndComments(@NotNull PsiElement element, @NotNull String stringToSearch, @NotNull final Collection<UsageInfo> results, @NotNull final UsageInfoFactory factory) { final Object lock = new Object(); processUsagesInStringsAndComments(element, stringToSearch, false, new PairProcessor<PsiElement, TextRange>() { @Override public boolean process(PsiElement commentOrLiteral, TextRange textRange) { UsageInfo usageInfo = factory.createUsageInfo(commentOrLiteral, textRange.getStartOffset(), textRange.getEndOffset()); if (usageInfo != null) { synchronized (lock) { results.add(usageInfo); } } return true; } }); } private static boolean processTextIn(PsiElement scope, String stringToSearch, final boolean ignoreReferences, PairProcessor<PsiElement, TextRange> processor) { String text = scope.getText(); for (int offset = 0; offset < text.length(); offset++) { offset = text.indexOf(stringToSearch, offset); if (offset < 0) break; final PsiReference referenceAt = scope.findReferenceAt(offset); if (!ignoreReferences && referenceAt != null && (referenceAt.resolve() != null || referenceAt instanceof PsiPolyVariantReference && ((PsiPolyVariantReference)referenceAt).multiResolve(true).length > 0)) continue; if (offset > 0) { char c = text.charAt(offset - 1); if (Character.isJavaIdentifierPart(c) && c != '$') { if (offset < 2 || text.charAt(offset - 2) != '\\') continue; //escape sequence } } if (offset + stringToSearch.length() < text.length()) { char c = text.charAt(offset + stringToSearch.length()); if (Character.isJavaIdentifierPart(c) && c != '$') { continue; } } TextRange textRange = new TextRange(offset, offset + stringToSearch.length()); if (!processor.process(scope, textRange)) { return false; } offset += stringToSearch.length(); } return true; } public static boolean isSearchTextOccurencesEnabled(@NotNull PsiElement element) { final FindUsagesManager findUsagesManager = ((FindManagerImpl)FindManager.getInstance(element.getProject())).getFindUsagesManager(); final FindUsagesHandler handler = findUsagesManager.getFindUsagesHandler(element, true); return FindUsagesUtil.isSearchForTextOccurrencesAvailable(element, false, handler); } public static void findNonCodeUsages(PsiElement element, String stringToSearch, boolean searchInStringsAndComments, boolean searchInNonJavaFiles, String newQName, Collection<UsageInfo> results) { if (searchInStringsAndComments || searchInNonJavaFiles) { UsageInfoFactory factory = createUsageInfoFactory(element, newQName); if (searchInStringsAndComments) { addUsagesInStringsAndComments(element, stringToSearch, results, factory); } if (searchInNonJavaFiles) { GlobalSearchScope projectScope = GlobalSearchScope.projectScope(element.getProject()); addTextOccurences(element, stringToSearch, projectScope, results, factory); } } } private static UsageInfoFactory createUsageInfoFactory(final PsiElement element, final String newQName) { return new UsageInfoFactory() { @Override public UsageInfo createUsageInfo(@NotNull PsiElement usage, int startOffset, int endOffset) { int start = usage.getTextRange().getStartOffset(); return NonCodeUsageInfo.create(usage.getContainingFile(), start + startOffset, start + endOffset, element, newQName); } }; } }
package com.atguigu.gulimall.product.service.impl; import com.atguigu.gulimall.common.utils.PageUtils; import com.atguigu.gulimall.common.utils.Query; import com.atguigu.gulimall.product.dao.AttrGroupDao; import com.atguigu.gulimall.product.entity.AttrGroupEntity; import org.springframework.stereotype.Service; import java.util.Map; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.atguigu.gulimall.product.service.AttrGroupService; @Service("attrGroupService") public class AttrGroupServiceImpl extends ServiceImpl<AttrGroupDao, AttrGroupEntity> implements AttrGroupService { @Override public PageUtils queryPage(Map<String, Object> params) { IPage<AttrGroupEntity> page = this.page( new Query<AttrGroupEntity>().getPage(params), new QueryWrapper<AttrGroupEntity>() ); return new PageUtils(page); } }
/* Derby - Class com.pivotal.gemfirexd.internal.client.net.NetStatementRequest 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. */ /* * Changes for GemFireXD distributed data platform (some marked by "GemStone changes") * * Portions Copyright (c) 2010-2015 Pivotal Software, 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. See accompanying * LICENSE file. */ package com.pivotal.gemfirexd.internal.client.net; import com.gemstone.gemfire.internal.shared.ClientSharedUtils; import com.gemstone.gemfire.internal.shared.JdkHelper; import com.pivotal.gemfirexd.internal.client.am.Blob; import com.pivotal.gemfirexd.internal.client.am.ClientMessageId; import com.pivotal.gemfirexd.internal.client.am.Clob; import com.pivotal.gemfirexd.internal.client.am.ColumnMetaData; import com.pivotal.gemfirexd.internal.client.am.Lob; import com.pivotal.gemfirexd.internal.client.am.ResultSet; import com.pivotal.gemfirexd.internal.client.am.Section; import com.pivotal.gemfirexd.internal.client.am.SqlException; import com.pivotal.gemfirexd.internal.client.am.Types; import com.pivotal.gemfirexd.internal.client.am.Utils; import com.pivotal.gemfirexd.internal.iapi.reference.DRDAConstants; import com.pivotal.gemfirexd.internal.iapi.reference.JDBC40Translation; import com.pivotal.gemfirexd.internal.shared.common.reference.SQLState; // GemStone changes BEGIN // For performance, should we worry about the ordering of our DDM command parameters public class NetStatementRequest extends NetPackageRequest implements StatementRequestInterface { java.util.ArrayList extdtaPositions_ = null; // Integers: build EXTDTA for column i int overrideLid_ = FdocaConstants.FIRST_OVERRIDE_LID; // promototed parameters hold parameters that are promotoed to a different // data type because they are too large to represent in PROTOCOL otherwise. // This currently only applies for promotion of (VAR)CHAR -> CLOB and (VAR)BINARY -> BLOB // The key for this structure is the parameter index. Note that having this // collection does not eliminate the need for extdtaPositions_ because that // is still needed for non-promototed LOBs java.util.HashMap promototedParameters_ = new java.util.HashMap(); NetStatementRequest(NetAgent netAgent, CcsidManager ccsidManager, int bufferSize) { super(netAgent, ccsidManager, bufferSize); } //----------------------------- entry points --------------------------------- // Write the message to perform an execute immediate. // The SQL statement sent as command data cannot contain references // to either input variables or output variables. // // preconditions: public void writeExecuteImmediate(NetStatement materialStatement, String sql, Section section) throws SqlException { buildEXCSQLIMM(section, false, //sendQryinsid 0); //qryinsid buildSQLSTTcommandData(sql); // statement follows in sqlstt command data object } // Write the message to preform a prepare into. // Once the SQL statement has been prepared, it is executed until the unit of work, in // which the PRPSQLSTT command was issued, ends. An exception to this is if // Keep Dynamic is being used. // // preconditions: public void writePrepareDescribeOutput(NetStatement materialStatement, String sql, Section section, boolean needStatementUUID) throws SqlException { buildPRPSQLSTT(section, sql, true, //sendRtnsqlda true, //sendTypsqlda // GemStone changes BEGIN materialStatement.statement_.isPreparedStatement_ || materialStatement.statement_.isCallMode(), needStatementUUID, // GemStone changes END ((section != null && section.isSingleHopInfoRequired()) ? CodePoint.TYPSQLDA_X_OUTPUT_AND_SINGLEHOP_INFO : CodePoint.TYPSQLDA_X_OUTPUT)); //typsqlda if (((NetStatement) materialStatement).statement_.cursorAttributesToSendOnPrepare_ != null) { buildSQLATTRcommandData(((NetStatement) materialStatement).statement_.cursorAttributesToSendOnPrepare_); } buildSQLSTTcommandData(sql); // statement follows in sqlstt command data object } public void writeGetStmtUUID(Section section) throws SqlException { buildGETSTMTID(section); } // Write the message to perform a reprepare. // // preconditions: public void writePrepare(NetStatement materialStatement, String sql, Section section) throws SqlException { buildPRPSQLSTT(section, sql, false, //sendRtnsqlda false, //sendTypsqlda // GemStone changes BEGIN materialStatement.statement_.isPreparedStatement_ || materialStatement.statement_.isCallMode(), false, // GemStone changes END 0); //typsqlda if (((NetStatement) materialStatement).statement_.cursorAttributesToSendOnPrepare_ != null) { buildSQLATTRcommandData(((NetStatement) materialStatement).statement_.cursorAttributesToSendOnPrepare_); } buildSQLSTTcommandData(sql); // statement follows in sqlstt command data object } // Write the message to execute prepared sql statement. // // preconditions: public void writeExecute(NetPreparedStatement materialPreparedStatement, Section section, ColumnMetaData parameterMetaData, Object[] inputs, int numInputColumns, boolean outputExpected, boolean chained) throws SqlException // chained flag for blobs only //dupqry { // GemStone changes BEGIN writeExecute(materialPreparedStatement, section, parameterMetaData, inputs, numInputColumns, outputExpected, false, chained); } public void writeExecute(NetPreparedStatement materialPreparedStatement, Section section, ColumnMetaData parameterMetaData, Object[] inputs, int numInputColumns, boolean outputExpected, boolean batchOutput, boolean chained) throws SqlException { // GemStone changes END buildEXCSQLSTT(section, true, // sendOutexp outputExpected, // outexp // GemStone changes BEGIN batchOutput, // batchOutput // GemStone changes END false, // sendPrcnam null, // prcnam false, // sendQryblksz false, // sendMaxrslcnt, 0, // maxrslcnt, false, // sendMaxblkext 0, // maxblkext false, // sendRslsetflg 0, // resultSetFlag false, // sendQryrowset 0); // qryrowset if (numInputColumns > 0) { if ((extdtaPositions_ != null) && (!extdtaPositions_.isEmpty())) { extdtaPositions_.clear(); // reset extdta column position markers } boolean overrideExists = buildSQLDTAcommandData(numInputColumns, parameterMetaData, inputs); // can we eleminate the chain argument needed for lobs buildEXTDTA(parameterMetaData, inputs, chained); } } // Write the message to open a bound or prepared query with input parameters. // Check this -> For open query with input parameters // // preconditions: public void writeOpenQuery(NetPreparedStatement materialPreparedStatement, Section section, int fetchSize, int resultSetType, int numInputColumns, com.pivotal.gemfirexd.internal.client.am.ColumnMetaData parameterMetaData, Object[] inputs) throws SqlException { boolean sendQryrowset = checkSendQryrowset(fetchSize, resultSetType); fetchSize = checkFetchsize(fetchSize, resultSetType); // think about if there is a way we can call build ddm just passing ddm parameters and not passing the material ps object // maybe not, if sometimes we need to set the caches hanging off the ps object during the ddm build // maybe we can extricate conditionals in the build ddm logic outside buildOPNQRY(section, sendQryrowset, fetchSize); // may be able to merge this with firstContinueQuery_ and push above conditional to common ((NetStatement) materialPreparedStatement).qryrowsetSentOnOpnqry_ = sendQryrowset; if (numInputColumns > 0) { if ((extdtaPositions_ != null) && (!extdtaPositions_.isEmpty())) { extdtaPositions_.clear(); // reset extdta column position markers } // is this the best place for this // EXCSQSTT needs this too // think about having this method return a boolean to // indicate the extdta should be built boolean overrideExists = buildSQLDTAcommandData(numInputColumns, parameterMetaData, inputs); // can we eleminate the chain argument needed for lobs // do we chain after Extdta's on open, verify this buildEXTDTA(parameterMetaData, inputs, false); //chained, do we chain after Extdta's on open } } // Write the message to open a bound or prepared query without input parameters. // Check this-> For open query without input parameters public void writeOpenQuery(NetStatement materialStatement, Section section, int fetchSize, int resultSetType) throws SqlException { boolean sendQryrowset = checkSendQryrowset(fetchSize, resultSetType); fetchSize = checkFetchsize(fetchSize, resultSetType); // think about if there is a way we can call build ddm just passing ddm parameters and not passing the material ps object // maybe not, if sometimes we need to set the caches hanging off the ps object during the ddm build // maybe we can extricate conditionals in the build ddm logic outside buildOPNQRY(section, sendQryrowset, fetchSize); // may be able to merge this with firstContinueQuery_ and push above conditional to common ((NetStatement) materialStatement).qryrowsetSentOnOpnqry_ = sendQryrowset; // net-specific event } // Write the message to peform a describe input. // public void writeDescribeInput(NetPreparedStatement materialPreparedStatement, Section section) throws SqlException { int typsqlda = CodePoint.TYPSQLDA_X_INPUT; buildDSCSQLSTT(section, true, //sendTypsqlda typsqlda); } // Write the message to peform a describe output. // // preconditions: public void writeDescribeOutput(NetPreparedStatement materialPreparedStatement, Section section) throws SqlException { // pick standard, light, extended sqlda. possibly push this up even more // right now use SQLAM level as determining factor and go for the most data. // if standard is the only suported option, don't send the typsqlda // and let server default to standard. This prevents accidentally sending // a typsqlda to a downlevel server. typsqlda is only supported at sqlam 6. //KATHEY CHECK buildDSCSQLSTT(section, true, //sendTypsqlda CodePoint.TYPSQLDA_X_OUTPUT); //typsqlda } // Write the message to execute a stored procedure. // // preconditions: public void writeExecuteCall(NetStatement materialStatement, boolean outputExpected, String procedureName, Section section, int fetchSize, boolean suppressResultSets, // for batch updates == true int resultSetType, ColumnMetaData parameterMetaData, Object[] inputs) throws SqlException // chain is for blobs { // always send QRYROWSET on EXCSQLSTT boolean sendQryrowset = true; fetchSize = (fetchSize == 0) ? com.pivotal.gemfirexd.internal.client.am.Configuration.defaultFetchSize : fetchSize; boolean sendPrcnam = (procedureName != null) ? true : false; int numParameters = (parameterMetaData != null) ? parameterMetaData.columns_ : 0; outputExpected = numParameters > 0; // is it right here to send maxblkext (-1) buildEXCSQLSTT(section, true, // sendOutexp outputExpected, // outexp // GemStone changes BEGIN false, // batchOutput // GemStone changes END sendPrcnam, // sendPrcnam procedureName, // prcnam true, // sendQryblksz !suppressResultSets, // sendMaxrslcnt, CodePoint.MAXRSLCNT_NOLIMIT, // maxrslcnt, true, // sendMaxblkext -1, // maxblkext (-1 for AR capable of receiving entire result set) true, // sendRslsetflg calculateResultSetFlags(), // resultSetFlag sendQryrowset, // sendQryrowset fetchSize); // qryrowset if (numParameters > 0) { if ((extdtaPositions_ != null) && (!extdtaPositions_.isEmpty())) { extdtaPositions_.clear(); // reset extdta column position markers } // is this the best place for this (OPNQRY needs this too) // think about having this method return a boolean to // indicate the extdta should be built boolean overrideExists = buildSQLDTAcommandData(numParameters, parameterMetaData, inputs); buildEXTDTA(parameterMetaData, inputs, false); // no chained autocommit for CALLs } ((NetStatement) materialStatement).qryrowsetSentOnOpnqry_ = sendQryrowset; } // Write the message to execute an SQL Set Statement. /* public void writeSetGenericSQLSetInfo (com.pivotal.gemfirexd.internal.client.am.SetGenericSQLSetPiggybackCommand setGenericSQLSetPiggybackCommand, com.pivotal.gemfirexd.internal.client.am.JDBCSection section) throws SqlException { buildEXCSQLSET (section); java.util.List sqlsttList = setGenericSQLSetPiggybackCommand.getList(); for (int i = 0; i < sqlsttList.size(); i++) { String sql = (String)sqlsttList.get(i); // Build SQLSTT only for the SET statement that coming from the server after RLSCONV buildSQLSTTcommandData (sql); } } */ //----------------------helper methods---------------------------------------- // These methods are "private protected", which is not a recognized java privilege, // but means that these methods are private to this class and to subclasses, // and should not be used as package-wide friendly methods. // Build the Open Query Command to open a query to a relational database. // At SQLAM >= 7 we can request the return of a DA, are there // scenarios where this should currently be done (it is not supported now) // // preconditions: // the sqlam and/or prdid must support command and parameters passed to this method, // method will not validate against the connection's level of support // void buildOPNQRY(Section section, boolean sendQueryRowSet, int fetchSize) throws SqlException { createCommand(); markLengthBytes(CodePoint.OPNQRY); buildPKGNAMCSN(section); buildQRYBLKSZ(); // specify a hard coded query block size if (sendQueryRowSet) { buildMAXBLKEXT(-1); buildQRYROWSET(fetchSize); } // Tell the server to close forward-only result sets // implicitly when they are exhausted. The server will ignore // this parameter if the result set is scrollable. if (netAgent_.netConnection_.serverSupportsQryclsimp()) { buildQRYCLSIMP(); } updateLengthBytes(); // opnqry is complete } // Build the Execute Immediate SQL Statement Command to // execute a non-cursor SQL statement sent as command data. // // precondtions: void buildEXCSQLIMM(Section section, boolean sendQryinsid, long qryinsid) throws SqlException { createCommand(); markLengthBytes(CodePoint.EXCSQLIMM); buildPKGNAMCSN(section); buildRDBCMTOK(); if (sendQryinsid) { buildQRYINSID(qryinsid); } updateLengthBytes(); } // Build the Prepare SQL Statement Command to dynamically binds an // SQL statement to a section in an existing relational database (RDB) package. // // preconditions: // the sqlam and/or prdid must support command and parameters passed to this method, // method will not validate against the connection's level of support void buildPRPSQLSTT(Section section, String sql, boolean sendRtnsqlda, boolean sendTypsqlda, // GemStone changes BEGIN boolean isPrepared, boolean needStatementUUID, // GemStone changes END int typsqlda) throws SqlException { createCommand(); markLengthBytes(CodePoint.PRPSQLSTT); buildPKGNAMCSN(section); // GemStone changes BEGIN if (sendRtnsqlda || !isPrepared) { buildRTNSQLDA(sendRtnsqlda, isPrepared); } /* (original code) if (sendRtnsqlda) { buildRTNSQLDA(); } */ // GemStone changes END if (sendTypsqlda) { buildTYPSQLDA(typsqlda); } // GemStone changes BEGIN if (needStatementUUID) { buildGETSTMTID(section); } // GemStone changes END updateLengthBytes(); } // GemStone changes BEGIN void buildGETSTMTID(Section section) throws SqlException { // createCommand(); // markLengthBytes(CodePoint.GETSTMTID); // buildPKGNAMCSN(section); // updateLengthBytes(); writeScalar1Byte(CodePoint.GETSTMTID, 0/*ignored*/); } // GemStone changes END // Build the command to execute an SQL SET Statement. // Called by NETSetClientPiggybackCommand.write() // // preconditions: // the sqlam and/or prdid must support command and parameters passed to this method, // method will not validate against the connection's level of support void buildEXCSQLSET(Section section) throws SqlException { createCommand(); markLengthBytes(CodePoint.EXCSQLSET); buildPKGNAMCSN(section); // is this PKGNAMCSN or PKGNAMCT updateLengthBytes(); } // Build the Execute SQL Statement (EXCSQLSTT) Command // to execute a non-cursor SQL statement previously bound into a named package // of a relational database (RDB). The SQL statement can optionally include // references to input variables, output variables, or both. // // At SQLAM >= 7 we can get a DA back on this, are there times that we want to request it // If so, we probably want to pass a parameter indicating the sqldaLevel requested. // // preconditions: // the sqlam and/or prdid must support command and parameters passed to this method, // method will not validate against the connection's level of support // Here is the preferred codepoint ordering: // PKGNAMCSN // RDBCMTOK // OUTEXP // QRYBLKSZ // MAXBLKEXT // MAXRSLCNT // RSLSETFLG // QRYROWSET // RTNSQLDA // TYPSQLDA // NBRROW // ATMIND // PRCNAM // OUTOVROPT // RDBNAM void buildEXCSQLSTT(Section section, boolean sendOutexp, boolean outexp, // GemStone changes BEGIN boolean batchOutput, // GemStone changes END boolean sendPrcnam, String prcnam, boolean sendQryblksz, boolean sendMaxrslcnt, int maxrslcnt, boolean sendMaxblkext, int maxblkext, boolean sendRslsetflg, int resultSetFlag, boolean sendQryrowset, int qryrowset) throws SqlException { createCommand(); markLengthBytes(CodePoint.EXCSQLSTT); buildPKGNAMCSN(section); buildRDBCMTOK(); if (sendOutexp) { // GemStone changes BEGIN buildOUTEXP(outexp, batchOutput); /* (original code) buildOUTEXP(outexp); */ // GemStone changes END } if (sendQryblksz) { buildQRYBLKSZ(); } if (sendQryrowset && sendMaxblkext) { buildMAXBLKEXT(maxblkext); } if (sendMaxrslcnt) { buildMAXRSLCNT(maxrslcnt); } if (sendRslsetflg) { buildRSLSETFLG(resultSetFlag); } if (sendQryrowset) { buildQRYROWSET(qryrowset); } if (sendPrcnam) { buildPRCNAM(prcnam); } updateLengthBytes(); // command is complete, update the length bytes } // Build the Describe SQL Statement command. // // preconditions: // the sqlam and/or prdid must support command and parameters passed to this method, // method will not validate against the connection's level of support void buildDSCSQLSTT(Section section, boolean sendTypsqlda, int typsqlda) throws SqlException { createCommand(); markLengthBytes(CodePoint.DSCSQLSTT); buildPKGNAMCSN(section); if (sendTypsqlda) { buildTYPSQLDA(typsqlda); } updateLengthBytes(); } // Build the SQL Program Variable Data Command Data Object. // This object contains the input data to an SQL statement // that an RDB is executing. // // preconditions: boolean buildSQLDTAcommandData(int numInputColumns, ColumnMetaData parameterMetaData, Object[] inputRow) throws SqlException { createEncryptedCommandData(); int loc = offset_; markLengthBytes(CodePoint.SQLDTA); int[][] protocolTypesAndLengths = allocateLidAndLengthsArray(parameterMetaData); java.util.Hashtable protocolTypeToOverrideLidMapping = null; java.util.ArrayList mddOverrideArray = null; protocolTypeToOverrideLidMapping = computeProtocolTypesAndLengths(inputRow, parameterMetaData, protocolTypesAndLengths, protocolTypeToOverrideLidMapping); boolean overrideExists = false; buildFDODSC(numInputColumns, protocolTypesAndLengths, overrideExists, protocolTypeToOverrideLidMapping, mddOverrideArray); buildFDODTA(numInputColumns, protocolTypesAndLengths, inputRow, parameterMetaData /* GemStoneAddition */); updateLengthBytes(); // for sqldta if (netAgent_.netConnection_.getSecurityMechanism() == NetConfiguration.SECMEC_EUSRIDDTA || netAgent_.netConnection_.getSecurityMechanism() == NetConfiguration.SECMEC_EUSRPWDDTA) { encryptDataStream(loc); } return overrideExists; } // Build the FDOCA Data Descriptor Scalar whose value is a FDOCA // Descriptor or a segment of an FDOCA Descriptor. // // preconditions: private void buildFDODSC(int numColumns, int[][] protocolTypesAndLengths, boolean overrideExists, java.util.Hashtable overrideMap, java.util.ArrayList overrideArray) throws SqlException { markLengthBytes(CodePoint.FDODSC); buildSQLDTA(numColumns, protocolTypesAndLengths, overrideExists, overrideMap, overrideArray); updateLengthBytes(); } // Build the FDOCA SQLDTA Late Row Descriptor. // // preconditions: protected void buildSQLDTA(int numColumns, int[][] lidAndLengthOverrides, boolean overrideExists, java.util.Hashtable overrideMap, java.util.ArrayList overrideArray) throws SqlException { // mdd overrides need to be built first if any before the descriptors are built. if (overrideExists) { buildMddOverrides(overrideArray); writeBytes(FdocaConstants.MDD_SQLDTAGRP_TOSEND); } buildSQLDTAGRP(numColumns, lidAndLengthOverrides, overrideExists, overrideMap); if (overrideExists) { writeBytes(FdocaConstants.MDD_SQLDTA_TOSEND); } writeBytes(FdocaConstants.SQLDTA_RLO_TOSEND); } // Build the FDOCA SQLDTAGRP Late Group Descriptor. // preconditions: protected void buildSQLDTAGRP(int numVars, int[][] lidAndLengthOverrides, boolean mddRequired, java.util.Hashtable overrideMap) throws SqlException { int n = 0; int offset = 0; n = calculateColumnsInSQLDTAGRPtriplet(numVars); buildTripletHeader(((3 * n) + 3), FdocaConstants.NGDA_TRIPLET_TYPE, FdocaConstants.SQLDTAGRP_LID); do { writeLidAndLengths(lidAndLengthOverrides, n, offset, mddRequired, overrideMap); numVars -= n; if (numVars == 0) { break; } offset += n; n = calculateColumnsInSQLDTAGRPtriplet(numVars); buildTripletHeader(((3 * n) + 3), FdocaConstants.CPT_TRIPLET_TYPE, 0x00); } while (true); } /////////// perf end protected void buildOUTOVR(ResultSet resultSet, ColumnMetaData resultSetMetaData) throws SqlException { createCommandData(); markLengthBytes(CodePoint.OUTOVR); int[][] outputOverrides = calculateOUTOVRLidAndLengthOverrides(resultSet, resultSetMetaData); buildSQLDTARD(resultSetMetaData.columns_, outputOverrides); updateLengthBytes(); } private int[][] calculateOUTOVRLidAndLengthOverrides(ResultSet resultSet, ColumnMetaData resultSetMetaData) { int numVars = resultSetMetaData.columns_; int[][] lidAndLengths = new int[numVars][2]; //everything initialized to "default triplet" for (int i=0; i<numVars; ++i) { switch (resultSetMetaData.types_[i]) { case java.sql.Types.BLOB: lidAndLengths[i][0] = (resultSetMetaData.nullable_[i]) ? DRDAConstants.DRDA_TYPE_NLOBLOC : DRDAConstants.DRDA_TYPE_LOBLOC; lidAndLengths[i][1] = 4; break; case java.sql.Types.CLOB: case JDBC40Translation.JSON: lidAndLengths[i][0] = (resultSetMetaData.nullable_[i]) ? DRDAConstants.DRDA_TYPE_NCLOBLOC : DRDAConstants.DRDA_TYPE_CLOBLOC; lidAndLengths[i][1] = 4; break; } } return lidAndLengths; } protected void buildSQLDTARD(int numColumns, int[][] lidAndLengthOverrides) throws SqlException { buildSQLCADTA(numColumns, lidAndLengthOverrides); writeBytes(FdocaConstants.SQLDTARD_RLO_TOSEND); } protected void buildSQLCADTA(int numColumns, int[][] lidAndLengthOverrides) throws SqlException { buildSQLDTAGRP(numColumns, lidAndLengthOverrides, false, null); // false means no mdd override writeBytes(FdocaConstants.SQLCADTA_RLO_TOSEND); } private void buildFDODTA(int numVars, int[][] protocolTypesAndLengths, Object[] inputs, ColumnMetaData parameterMetaData /* GemStoneAddition */) throws SqlException { try { Object o = null; markLengthBytes(CodePoint.FDODTA); write1Byte(FdocaConstants.NULL_LID); // write the 1-byte row indicator // write data for each input column for (int i = 0; i < numVars; i++) { if (inputs[i] == null) { if ((protocolTypesAndLengths[i][0] % 2) == 1) { write1Byte(FdocaConstants.NULL_DATA); } else { //bug check } } else { if ((protocolTypesAndLengths[i][0] % 2) == 1) { write1Byte(FdocaConstants.INDICATOR_NULLABLE); } switch (protocolTypesAndLengths[i][0] | 0x01) { // mask out null indicator case DRDAConstants.DRDA_TYPE_NVARMIX: case DRDAConstants.DRDA_TYPE_NLONGMIX: // What to do for server that don't understand 1208 (UTF-8) // check for a promototed type, and use that instead if it exists o = retrievePromotedParameterIfExists(i); if (o == null) { writeSingleorMixedCcsidLDString((String) inputs[i], netAgent_.typdef_.getCcsidMbcEncoding(), parameterMetaData.getColumnLabel(i + 1) /* GemStoneAddition */); } else { // use the promototed object instead setFDODTALob(netAgent_.netConnection_.getSecurityMechanism(), (Clob) o, protocolTypesAndLengths, i); } break; case DRDAConstants.DRDA_TYPE_NVARCHAR: case DRDAConstants.DRDA_TYPE_NLONG: o = retrievePromotedParameterIfExists(i); if (o == null) { } else { // use the promototed object instead setFDODTALob(netAgent_.netConnection_.getSecurityMechanism(), (Clob) o, protocolTypesAndLengths, i); } break; case DRDAConstants.DRDA_TYPE_NINTEGER: writeIntFdocaData(((Integer) inputs[i]).intValue()); break; case DRDAConstants.DRDA_TYPE_NSMALL: writeShortFdocaData(((Short) inputs[i]).shortValue()); break; case DRDAConstants.DRDA_TYPE_NFLOAT4: writeFloat(((Float) inputs[i]).floatValue()); break; case DRDAConstants.DRDA_TYPE_NFLOAT8: writeDouble(((Double) inputs[i]).doubleValue()); break; case DRDAConstants.DRDA_TYPE_NDECIMAL: writeBigDecimal((java.math.BigDecimal) inputs[i], (protocolTypesAndLengths[i][1] >> 8) & 0xff, // described precision not actual protocolTypesAndLengths[i][1] & 0xff, // described scale, not actual parameterMetaData.getColumnLabel(i + 1) /* GemStoneAddition */); break; case DRDAConstants.DRDA_TYPE_NDATE: writeDate((java.sql.Date) inputs[i], parameterMetaData.getColumnLabel(i + 1) /* GemStoneAddition */); break; case DRDAConstants.DRDA_TYPE_NTIME: writeTime((java.sql.Time) inputs[i], parameterMetaData.getColumnLabel(i + 1) /* GemStoneAddition */); break; case DRDAConstants.DRDA_TYPE_NTIMESTAMP: writeTimestamp((java.sql.Timestamp) inputs[i], parameterMetaData.getColumnLabel(i + 1) /* GemStoneAddition */); break; case DRDAConstants.DRDA_TYPE_NINTEGER8: writeLongFdocaData(((Long) inputs[i]).longValue()); break; case DRDAConstants.DRDA_TYPE_NVARBYTE: case DRDAConstants.DRDA_TYPE_NLONGVARBYTE: o = retrievePromotedParameterIfExists(i); if (o == null) { writeLDBytes((byte[]) inputs[i]); } else { // use the promototed object instead setFDODTALob(netAgent_.netConnection_.getSecurityMechanism(), (Clob) o, protocolTypesAndLengths, i); } break; case DRDAConstants.DRDA_TYPE_NUDT: writeUDT( inputs[i], parameterMetaData.getColumnLabel(i + 1) /* GemStoneAddition */ ); break; case DRDAConstants.DRDA_TYPE_NLOBCSBCS: case DRDAConstants.DRDA_TYPE_NLOBCDBCS: // check for a promoted Clob o = retrievePromotedParameterIfExists(i); if (o == null) { try { java.sql.Clob c = (java.sql.Clob) inputs[i]; if( c instanceof Clob && ( (Clob) c ).willBeLayerBStreamed() ) { setFDODTALobLengthUnknown( i ); }else{ long dataLength = c.length(); setFDODTALobLength(protocolTypesAndLengths, i, dataLength); } } catch (java.sql.SQLException e) { throw new SqlException(netAgent_.logWriter_, new ClientMessageId(SQLState.NET_ERROR_GETTING_BLOB_LENGTH), e); } } else { setFDODTALob(netAgent_.netConnection_.getSecurityMechanism(), (Clob) o, protocolTypesAndLengths, i); } break; case DRDAConstants.DRDA_TYPE_NLOBBYTES: // check for a promoted Clob o = retrievePromotedParameterIfExists(i); if (o == null) { try { java.sql.Blob b = (java.sql.Blob) inputs[i]; if( b instanceof Blob && ( (Blob) b ).willBeLayerBStreamed() ) { setFDODTALobLengthUnknown( i ); }else{ long dataLength = b.length(); setFDODTALobLength(protocolTypesAndLengths, i, dataLength); } } catch (java.sql.SQLException e) { throw new SqlException(netAgent_.logWriter_, new ClientMessageId(SQLState.NET_ERROR_GETTING_BLOB_LENGTH), e); } } else { // use promoted Blob setFDODTALob(netAgent_.netConnection_.getSecurityMechanism(), (Blob) o, protocolTypesAndLengths, i); } break; case DRDAConstants.DRDA_TYPE_NLOBCMIXED: // check for a promoted Clob o = retrievePromotedParameterIfExists(i); if (o == null) { final Clob c = (Clob) inputs[i]; if (c.isString()) { setFDODTALobLength(protocolTypesAndLengths, i, c.getUTF8Length() ); } else if ( ! c.willBeLayerBStreamed() ){ // must be a Unicode stream setFDODTALobLength(protocolTypesAndLengths, i, c.length() ); } else { setFDODTALobLengthUnknown( i ); } } else { // use promoted Clob setFDODTALob(netAgent_.netConnection_.getSecurityMechanism(), (Clob) o, protocolTypesAndLengths, i); } break; case DRDAConstants.DRDA_TYPE_NLOBLOC: //The FD:OCA data or the FDODTA contains the locator //value corresponding to the LOB. write the integer //value representing the locator here. writeIntFdocaData(((Blob)inputs[i]). getLocator()); break; case DRDAConstants.DRDA_TYPE_NCLOBLOC: //The FD:OCA data or the FDODTA contains the locator //value corresponding to the LOB. write the integer //value representing the locator here. writeIntFdocaData(((Clob)inputs[i]). getLocator()); break; default: throw new SqlException(netAgent_.logWriter_, new ClientMessageId(SQLState.NET_UNRECOGNIZED_JDBC_TYPE), new Integer(protocolTypesAndLengths[i][0]), new Integer(numVars), new Integer(i)); } } } updateLengthBytes(); // for fdodta } catch ( java.sql.SQLException se ) { throw new SqlException(se); } } // preconditions: private void buildEXTDTA(ColumnMetaData parameterMetaData, Object[] inputRow, boolean chained) throws SqlException { try { // build the EXTDTA data, if necessary if (extdtaPositions_ != null) { boolean chainFlag, chainedWithSameCorrelator; for (int i = 0; i < extdtaPositions_.size(); i++) { int index = ((Integer) extdtaPositions_.get(i)).intValue(); // is this the last EXTDTA to be built? if (i != extdtaPositions_.size() - 1) { // no chainFlag = true; chainedWithSameCorrelator = true; } else { // yes chainFlag = chained; chainedWithSameCorrelator = false; } // do we have to write a null byte? boolean writeNullByte = false; if (parameterMetaData.nullable_[index]) { writeNullByte = true; } // Use the type of the input parameter rather than the input // column if possible. int parameterType = parameterMetaData.clientParamtertype_[index]; if (parameterType == 0) { parameterType = parameterMetaData.types_[index]; } // the follow types are possible due to promotion to BLOB if (parameterType == Types.BLOB || parameterType == Types.BINARY || parameterType == Types.VARBINARY || parameterType == Types.LONGVARBINARY) { Blob o = (Blob) retrievePromotedParameterIfExists(index); java.sql.Blob b = (o == null) ? (java.sql.Blob) inputRow[index] : o; boolean isExternalBlob = !(b instanceof com.pivotal.gemfirexd.internal.client.am.Blob); if (isExternalBlob) { try { writeScalarStream(chainFlag, chainedWithSameCorrelator, CodePoint.EXTDTA, (int) b.length(), b.getBinaryStream(), writeNullByte, index + 1); } catch (java.sql.SQLException e) { throw new SqlException(netAgent_.logWriter_, new ClientMessageId(SQLState.NET_ERROR_GETTING_BLOB_LENGTH), e); } } else if ( ( (Blob) b).isBinaryStream()) { if( ( (Blob) b).willBeLayerBStreamed() ){ writeScalarStream(chainFlag, chainedWithSameCorrelator, CodePoint.EXTDTA, ((Blob) b).getBinaryStream(), writeNullByte, index + 1); }else{ writeScalarStream(chainFlag, chainedWithSameCorrelator, CodePoint.EXTDTA, (int) ((Blob) b).length(), ((Blob) b).getBinaryStream(), writeNullByte, index + 1); } } else { // must be a binary string // note: a possible optimization is to use writeScalarLobBytes // when the input is small // use this: if (b.length () < DssConstants.MAX_DSS_LEN - 6 - 4) // writeScalarLobBytes (...) // Yes, this would avoid having to new up a java.io.ByteArrayInputStream writeScalarStream(chainFlag, chainedWithSameCorrelator, CodePoint.EXTDTA, (int) ((Blob) b).length(), ((Blob) b).getBinaryStream(), writeNullByte, index + 1); } } // the follow types are possible due to promotion to CLOB else if ( parameterType == Types.CLOB || parameterType == Types.CHAR || parameterType == Types.VARCHAR || parameterType == Types.LONGVARCHAR) { Clob o = (Clob) retrievePromotedParameterIfExists(index); java.sql.Clob c = (o == null) ? (java.sql.Clob) inputRow[index] : o; boolean isExternalClob = !(c instanceof com.pivotal.gemfirexd.internal.client.am.Clob); if (isExternalClob) { try { writeScalarStream(chainFlag, chainedWithSameCorrelator, CodePoint.EXTDTA, (int) c.length(), c.getCharacterStream(), writeNullByte, index + 1); } catch (java.sql.SQLException e) { throw new SqlException(netAgent_.logWriter_, new ClientMessageId(SQLState.NET_ERROR_GETTING_BLOB_LENGTH), e); } } else if ( ( (Clob) c).isCharacterStream()) { if( ( (Clob) c).willBeLayerBStreamed() ) { writeScalarStream(chainFlag, chainedWithSameCorrelator, CodePoint.EXTDTA, ((Clob) c).getCharacterStream(), writeNullByte, index + 1); }else{ writeScalarStream(chainFlag, chainedWithSameCorrelator, CodePoint.EXTDTA, (int) ((Clob) c).length(), ((Clob) c).getCharacterStream(), writeNullByte, index + 1); } } else if (((Clob) c).isAsciiStream()) { if( ( (Clob) c).willBeLayerBStreamed() ){ writeScalarStream(chainFlag, chainedWithSameCorrelator, CodePoint.EXTDTA, ((Clob) c).getAsciiStream(), writeNullByte, index + 1); }else { writeScalarStream(chainFlag, chainedWithSameCorrelator, CodePoint.EXTDTA, (int) ((Clob) c).length(), ((Clob) c).getAsciiStream(), writeNullByte, index + 1); } } else if (((Clob) c).isUnicodeStream()) { if( ( (Clob) c).willBeLayerBStreamed() ){ writeScalarStream(chainFlag, chainedWithSameCorrelator, CodePoint.EXTDTA, ((Clob) c).getUnicodeStream(), writeNullByte, index + 1); }else{ writeScalarStream(chainFlag, chainedWithSameCorrelator, CodePoint.EXTDTA, (int) ((Clob) c).length(), ((Clob) c).getUnicodeStream(), writeNullByte, index + 1); } } else { // must be a String // note: a possible optimization is to use writeScalarLobBytes // when the input is small. // use this: if (c.length () < DssConstants.MAX_DSS_LEN - 6 - 4) // writeScalarLobBytes (...) writeScalarStream(chainFlag, chainedWithSameCorrelator, CodePoint.EXTDTA, (int) ((Clob) c).getUTF8Length(), new java.io.ByteArrayInputStream(((Clob) c).getUtf8String()), writeNullByte, index + 1); } } } } } catch ( java.sql.SQLException se ) { throw new SqlException(se); } } //-------------------------helper methods------------------------------------- // returns the a promototedParameter object for index or null if it does not exist private Object retrievePromotedParameterIfExists(int index) { // consider using a nonsynchronized container or array if (promototedParameters_.isEmpty()) { return null; } // GemStone changes BEGIN // changed to use Integer.valueOf() if possible return promototedParameters_.get(ClientSharedUtils.getJdkHelper() .newInteger(index)); /* (original code) return promototedParameters_.get(new Integer(index)); */ // GemStone changes END } private int calculateColumnsInSQLDTAGRPtriplet(int numVars) { if (numVars > FdocaConstants.MAX_VARS_IN_NGDA) //rename to MAX_VARS_IN_SQLDTAGRP_TRIPLET { return FdocaConstants.MAX_VARS_IN_NGDA; } return numVars; } // Consider refacctor so that this does not even have to look // at the actual object data, and only uses tags from the meta data // only have to call this once, rather than calling this for every input row // Comment: I don't think that it is possible to send decimal values without looking at the data for // precision and scale (Kathey Marsden 10/11) // backburner: after refactoring this, later on, think about replacing case statements with table lookups private java.util.Hashtable computeProtocolTypesAndLengths(Object[] inputRow, ColumnMetaData parameterMetaData, int[][] lidAndLengths, java.util.Hashtable overrideMap) throws SqlException { try { int numVars = parameterMetaData.columns_; String s = null; if (!promototedParameters_.isEmpty()) { promototedParameters_.clear(); } // GemStone changes BEGIN final JdkHelper helper = ClientSharedUtils.getJdkHelper(); // GemStone changes END for (int i = 0; i < numVars; i++) { int jdbcType; // Send the input type unless it is not available. // (e.g an output parameter) jdbcType = parameterMetaData.clientParamtertype_[i]; if (jdbcType == 0) { jdbcType = parameterMetaData.types_[i]; } // jdbc semantics - This should happen outside of the build methods // if describe input is not supported, we require the user to at least // call setNull() and provide the type information. Otherwise, we won't // be able to guess the right PROTOCOL type to send to the server, and an // exception is thrown. if (jdbcType == 0) { throw new SqlException(netAgent_.logWriter_, new ClientMessageId(SQLState.NET_INVALID_JDBC_TYPE_FOR_PARAM), new Integer(i)); } switch (jdbcType) { case java.sql.Types.CHAR: case java.sql.Types.VARCHAR: // lid: PROTOCOL_TYPE_NVARMIX, length override: 32767 (max) // dataFormat: String // this won't work if 1208 is not supported s = (String) inputRow[i]; // assumes UTF-8 characters at most 3 bytes long // Flow the String as a VARCHAR if (s == null || s.length() <= 32767 / 3) { lidAndLengths[i][0] = DRDAConstants.DRDA_TYPE_NVARMIX; lidAndLengths[i][1] = 32767; } else { // Flow the data as CLOB data if the data too large to for LONGVARCHAR java.io.ByteArrayInputStream bais = null; byte[] ba = null; try { ba = s.getBytes("UTF-8"); bais = new java.io.ByteArrayInputStream(ba); Clob c = new Clob(netAgent_, bais, "UTF-8", ba.length, parameterMetaData.getColumnLabelX(i + 1) /* GemStoneAddition */); // inputRow[i] = c; // Place the new Lob in the promototedParameter_ collection for // NetStatementRequest use // GemStone changes BEGIN // changed to use Integer.valueOf() if possible promototedParameters_.put(helper.newInteger(i), c); /* (original code) promototedParameters_.put(new Integer(i), c); */ // GemStone changes END lidAndLengths[i][0] = DRDAConstants.DRDA_TYPE_NLOBCMIXED; if( c.willBeLayerBStreamed() ){ //Correspond to totalLength 0 as default length for unknown lidAndLengths[i][1] = 0x8002; }else { lidAndLengths[i][1] = buildPlaceholderLength(c.length()); } } catch (java.io.UnsupportedEncodingException e) { throw new SqlException(netAgent_.logWriter_, new ClientMessageId(SQLState.UNSUPPORTED_ENCODING), "byte array", "Clob", parameterMetaData.getColumnLabelX(i + 1) /* GemStoneAddition */, e); } } break; case java.sql.Types.INTEGER: // lid: PROTOCOL_TYPE_NINTEGER, length override: 4 // dataFormat: Integer lidAndLengths[i][0] = DRDAConstants.DRDA_TYPE_NINTEGER; lidAndLengths[i][1] = 4; break; case java.sql.Types.BOOLEAN: case java.sql.Types.SMALLINT: case java.sql.Types.TINYINT: case java.sql.Types.BIT: // lid: PROTOCOL_TYPE_NSMALL, length override: 2 // dataFormat: Short lidAndLengths[i][0] = DRDAConstants.DRDA_TYPE_NSMALL; lidAndLengths[i][1] = 2; break; case java.sql.Types.REAL: // lid: PROTOCOL_TYPE_NFLOAT4, length override: 4 // dataFormat: Float lidAndLengths[i][0] = DRDAConstants.DRDA_TYPE_NFLOAT4; lidAndLengths[i][1] = 4; break; case java.sql.Types.DOUBLE: case java.sql.Types.FLOAT: // lid: PROTOCOL_TYPE_NFLOAT8, length override: 8 // dataFormat: Double lidAndLengths[i][0] = DRDAConstants.DRDA_TYPE_NFLOAT8; lidAndLengths[i][1] = 8; break; case java.sql.Types.NUMERIC: case java.sql.Types.DECIMAL: // lid: PROTOCOL_TYPE_NDECIMAL // dataFormat: java.math.BigDecimal // if null - guess with precision 1, scale 0 // if not null - get scale from data and calculate maximum precision. // DERBY-2073. Get scale and precision from data so we don't lose fractional digits. java.math.BigDecimal bigDecimal = (java.math.BigDecimal) inputRow[i]; int scale; int precision; if (bigDecimal == null) { scale = 0; precision = 1; } else { // adjust scale if it is negative. Packed Decimal cannot handle // negative scale. We don't want to change the original // object so make a new one. if (bigDecimal.scale() < 0) { bigDecimal = bigDecimal.setScale(0); inputRow[i] = bigDecimal; } scale = bigDecimal.scale(); precision = Utils.computeBigDecimalPrecision(bigDecimal); } lidAndLengths[i][0] = DRDAConstants.DRDA_TYPE_NDECIMAL; lidAndLengths[i][1] = (precision << 8) + // use precision above (scale << 0); break; case java.sql.Types.DATE: // for input, output, and inout parameters // lid: PROTOCOL_TYPE_NDATE, length override: 8 // dataFormat: java.sql.Date lidAndLengths[i][0] = DRDAConstants.DRDA_TYPE_NDATE; lidAndLengths[i][1] = 10; break; case java.sql.Types.TIME: // for input, output, and inout parameters // lid: PROTOCOL_TYPE_NTIME, length override: 8 // dataFormat: java.sql.Time lidAndLengths[i][0] = DRDAConstants.DRDA_TYPE_NTIME; lidAndLengths[i][1] = 8; break; case java.sql.Types.TIMESTAMP: // for input, output, and inout parameters // lid: PROTOCOL_TYPE_NTIME, length overrid: 26 // dataFormat: java.sql.Timestamp lidAndLengths[i][0] = DRDAConstants.DRDA_TYPE_NTIMESTAMP; lidAndLengths[i][1] = 26; break; case java.sql.Types.BIGINT: // if SQLAM < 6 this should be mapped to decimal (19,0) in common layer // if SQLAM >=6, lid: PROTOCOL_TYPE_NINTEGER8, length override: 8 // dataFormat: Long lidAndLengths[i][0] = DRDAConstants.DRDA_TYPE_NINTEGER8; lidAndLengths[i][1] = 8; break; case java.sql.Types.LONGVARCHAR: // Is this the right thing to do // should this be 32700 s = (String) inputRow[i]; if (s == null || s.length() <= 32767 / 3) { lidAndLengths[i][0] = DRDAConstants.DRDA_TYPE_NLONGMIX; lidAndLengths[i][1] = 32767; } else { // Flow the data as CLOB data if the data too large to for LONGVARCHAR java.io.ByteArrayInputStream bais = null; byte[] ba = null; try { ba = s.getBytes("UTF-8"); bais = new java.io.ByteArrayInputStream(ba); Clob c = new Clob(netAgent_, bais, "UTF-8", ba.length, parameterMetaData.getColumnLabelX(i + 1) /* GemStoneAddition */); // inputRow[i] = c; // Place the new Lob in the promototedParameter_ collection for // NetStatementRequest use // GemStone changes BEGIN // changed to use Integer.valueOf() if possible promototedParameters_.put(helper.newInteger(i), c); /* (original code) promototedParameters_.put(new Integer(i), c); */ // GemStone changes END lidAndLengths[i][0] = DRDAConstants.DRDA_TYPE_NLOBCMIXED; lidAndLengths[i][1] = buildPlaceholderLength(c.length()); } catch (java.io.UnsupportedEncodingException e) { throw new SqlException(netAgent_.logWriter_, new ClientMessageId(SQLState.UNSUPPORTED_ENCODING), "byte array", "Clob", parameterMetaData.getColumnLabelX(i + 1) /* GemStoneAddition */); } } break; case java.sql.Types.BINARY: case java.sql.Types.VARBINARY: byte[] ba = (byte[]) inputRow[i]; if (ba == null) { lidAndLengths[i][0] = DRDAConstants.DRDA_TYPE_NVARBYTE; lidAndLengths[i][1] = 32767; } else if (ba.length <= 32767) { lidAndLengths[i][0] = DRDAConstants.DRDA_TYPE_NVARBYTE; lidAndLengths[i][1] = 32767; } else { // Promote to a BLOB. Only reach this path in the absence of describe information. Blob b = new Blob(ba, netAgent_, 0, parameterMetaData.getColumnLabelX(i + 1) /* GemStoneAddition */); // inputRow[i] = b; // Place the new Lob in the promototedParameter_ collection for // NetStatementRequest use // GemStone changes BEGIN // changed to use Integer.valueOf() if possible promototedParameters_.put(helper.newInteger(i), b); /* (original code) promototedParameters_.put(new Integer(i), b); */ // GemStone changes END lidAndLengths[i][0] = DRDAConstants.DRDA_TYPE_NLOBBYTES; lidAndLengths[i][1] = buildPlaceholderLength(ba.length); } break; case java.sql.Types.LONGVARBINARY: ba = (byte[]) inputRow[i]; if (ba == null) { lidAndLengths[i][0] = DRDAConstants.DRDA_TYPE_NLONGVARBYTE; lidAndLengths[i][1] = 32767; } else if (ba.length <= 32767) { lidAndLengths[i][0] = DRDAConstants.DRDA_TYPE_NLONGVARBYTE; lidAndLengths[i][1] = 32767; } else { // Promote to a BLOB. Only reach this path in the absensce of describe information. Blob b = new Blob(ba, netAgent_, 0, parameterMetaData.getColumnLabelX(i + 1) /* GemStoneAddition */); // inputRow[i] = b; // Place the new Lob in the promototedParameter_ collection for // NetStatementRequest use // GemStone changes BEGIN // changed to use Integer.valueOf() if possible promototedParameters_.put(helper.newInteger(i), b); /* (original code) promototedParameters_.put(new Integer(i), b); */ // GemStone changes END lidAndLengths[i][0] = DRDAConstants.DRDA_TYPE_NLOBBYTES; lidAndLengths[i][1] = buildPlaceholderLength(ba.length); } break; case java.sql.Types.JAVA_OBJECT: lidAndLengths[i][0] = DRDAConstants.DRDA_TYPE_NUDT; lidAndLengths[i][1] = 32767; break; case java.sql.Types.BLOB: java.sql.Blob b = (java.sql.Blob) inputRow[i]; if (b == null) { lidAndLengths[i][0] = DRDAConstants.DRDA_TYPE_NLOBBYTES; lidAndLengths[i][1] = buildPlaceholderLength(parameterMetaData.sqlLength_[i]); } else if (b instanceof Blob && ((Blob)b).isLocator()){ //we are sending locators. //Here the LID local identifier in the FDODSC //FD:OCA descriptor should be initialized as //to contain a BLOB locator. lidAndLengths[i][0] = DRDAConstants.DRDA_TYPE_NLOBLOC; lidAndLengths[i][1] = 4; } else { lidAndLengths[i][0] = DRDAConstants.DRDA_TYPE_NLOBBYTES; try { if( b instanceof Blob && ( (Blob) b).willBeLayerBStreamed() ){ //Correspond to totalLength 0 as default length for unknown lidAndLengths[i][1] = 0x8002; }else { lidAndLengths[i][1] = buildPlaceholderLength(b.length()); } } catch (java.sql.SQLException e) { throw new SqlException(netAgent_.logWriter_, new ClientMessageId(SQLState.NET_ERROR_GETTING_BLOB_LENGTH), e); } } break; case java.sql.Types.CLOB: case JDBC40Translation.JSON: { // use columnMeta.singleMixedByteOrDouble_ to decide protocolType java.sql.Clob c = (java.sql.Clob) inputRow[i]; boolean isExternalClob = !(c instanceof com.pivotal.gemfirexd.internal.client.am.Clob); long lobLength = 0; boolean doesLayerBStreaming = false; if (c == null) { lobLength = parameterMetaData.sqlLength_[i]; } else if (c instanceof Clob && ((Clob)c).isLocator()) { //The inputRow contains an Integer meaning that //we are sending locators. //Here the LID local identifier in the FDODSC //FD:OCA descriptor should be initialized as //to contain a CLOB locator. lidAndLengths[i][0] = DRDAConstants.DRDA_TYPE_NCLOBLOC; lidAndLengths[i][1] = 4; } else if (isExternalClob) { try { lobLength = c.length(); } catch (java.sql.SQLException e) { throw new SqlException(netAgent_.logWriter_, new ClientMessageId(SQLState.NET_ERROR_GETTING_BLOB_LENGTH), e); } } else { if( ( (Clob) c ).willBeLayerBStreamed() ){ doesLayerBStreaming = true; }else{ lobLength = ((Clob) c).length(); } } if (c == null) { lidAndLengths[i][0] = DRDAConstants.DRDA_TYPE_NLOBCMIXED; lidAndLengths[i][1] = buildPlaceholderLength(lobLength); } else if (isExternalClob) { lidAndLengths[i][0] = DRDAConstants.DRDA_TYPE_NLOBCDBCS; lidAndLengths[i][1] = buildPlaceholderLength(lobLength); } else if (((Clob) c).isCharacterStream()) { lidAndLengths[i][0] = DRDAConstants.DRDA_TYPE_NLOBCDBCS; if( doesLayerBStreaming ) { //Correspond to totalLength 0 as default length for unknown lidAndLengths[i][1] = 0x8002; }else { lidAndLengths[i][1] = buildPlaceholderLength(lobLength); } } else if (((Clob) c).isUnicodeStream()) { lidAndLengths[i][0] = DRDAConstants.DRDA_TYPE_NLOBCMIXED; if( doesLayerBStreaming ) { //Correspond to totalLength 0 as default length for unknown lidAndLengths[i][1] = 0x8002; }else { lidAndLengths[i][1] = buildPlaceholderLength(lobLength); } } else if (((Clob) c).isAsciiStream()) { lidAndLengths[i][0] = DRDAConstants.DRDA_TYPE_NLOBCSBCS; if( doesLayerBStreaming ) { //Correspond to totalLength 0 as default length for unknown lidAndLengths[i][1] = 0x8002; }else { lidAndLengths[i][1] = buildPlaceholderLength(lobLength); } } else if (((Clob) c).isString()) { lidAndLengths[i][0] = DRDAConstants.DRDA_TYPE_NLOBCMIXED; if( doesLayerBStreaming ) { //Correspond to totalLength 0 as default length for unknown lidAndLengths[i][1] = 0x8002; }else { lidAndLengths[i][1] = buildPlaceholderLength(lobLength); } } } break; default : throw new SqlException(netAgent_.logWriter_, new ClientMessageId(SQLState.UNRECOGNIZED_JAVA_SQL_TYPE), new Integer(jdbcType)); } if (!parameterMetaData.nullable_[i]) { lidAndLengths[i][0]--; } } return overrideMap; } catch ( java.sql.SQLException se ) { throw new SqlException(se); } } private int buildPlaceholderLength(long totalLength) { if (totalLength < 0x7fff) { return 0x8002; // need 2 bytes } else if (totalLength < 0x7fffffff) { return 0x8004; // need 4 bytes } else if (totalLength < 0x7fffffffffffL) { return 0x8006; } else { return 0x8008; // need 8 bytes } } // Output Expected indicates wheterh the requester expects the target // SQLAM to return output with an SQLDTARD reply data object // as a result of the execution of the referenced SQL statement. // this is a single byte. // there are two possible enumerated values: // 0x'F1' (CodePoint.TRUE) - for true indicating the requester expects output // 0x'F0' (CodePoint.FALSE) - for false indicating the requeser does not expect output // 0x'F0' is the default. // // preconditions: // sqlam must support this parameter on the command, method will not check. // GemStone changes BEGIN private void buildOUTEXP(boolean outputExpected, boolean batchOutput) throws SqlException { if (!batchOutput) { if (outputExpected) { writeScalar1Byte(CodePoint.OUTEXP, CodePoint.TRUE); } } else { if (!outputExpected) { writeScalar1Byte(CodePoint.OUTEXP, CodePoint.FALSE | CodePoint.OUTEXP_BATCH_OUTPUT); } else { writeScalar1Byte(CodePoint.OUTEXP, CodePoint.TRUE | CodePoint.OUTEXP_BATCH_OUTPUT); } } /* (original code) private void buildOUTEXP(boolean outputExpected) throws SqlException { if (outputExpected) { writeScalar1Byte(CodePoint.OUTEXP, CodePoint.TRUE); } */ // GemStone changes END } // Maximum Number of Extra Blocks specifies a limit on the number of extra // blocks of answer set data per result set that the requester is capable of // receiveing. // this value must be able to be contained in a two byte signed number. // there is a minimum value of 0. // a zero indicates that the requester is not capable of receiving extra // query blocks of answer set data. // there is a SPCVAL of -1. // a value of -1 indicates that the requester is capable of receiving // the entire result set. // // preconditions: // sqlam must support this parameter on the command, method will not check. void buildMAXBLKEXT(int maxNumOfExtraBlocks) throws SqlException { if (maxNumOfExtraBlocks != 0) { writeScalar2Bytes(CodePoint.MAXBLKEXT, maxNumOfExtraBlocks); } } // preconditions: void buildQRYROWSET(int fetchSize) throws SqlException { writeScalar4Bytes(CodePoint.QRYROWSET, fetchSize); } // The Procedure Name. // The default value of PRCNAM is the procedure name value contained // within the section identified by the pkgnamcsn parameter. If that // value is null, then the prcnam parameter must be specified. // it has a max length of 255. // the prcnam is required on commands if the procedure name is // specified by a host variable. // the default value is the procedure name contained in the section // specified by the pkgnamcsn parameter on the EXCSQLSTT command. // // preconditions: // sqlam must support this parameter for the command, method will not check. // prcnam can not be null, SQLException will be thrown // prcnam can not be 0 length or > 255 length, SQLException will be thrown. private void buildPRCNAM(String prcnam) throws SqlException { if (prcnam == null) { throw new SqlException(netAgent_.logWriter_, new ClientMessageId(SQLState.NET_NULL_PROCEDURE_NAME)); } int prcnamLength = prcnam.length(); if ((prcnamLength == 0) || (prcnamLength > 255)) { throw new SqlException(netAgent_.logWriter_, new ClientMessageId(SQLState.NET_PROCEDURE_NAME_LENGTH_OUT_OF_RANGE), new Integer(prcnamLength), new Integer(255)); } writeScalarString(CodePoint.PRCNAM, prcnam); } // Query Block Size specifies the query block size for the reply // data objects and the reply messages being returned from this command. // this is a 4 byte unsigned binary number. // the sqlam 6 min value is 512 and max value is 32767. // this value was increased in later sqlam levels. // until the code is ready to support larger query block sizes, // it will always use DssConstants.MAX_DSS_LEN which is 32767. // // preconditions: // sqlam must support this parameter for the command, method will not check. void buildQRYBLKSZ() throws SqlException { writeScalar4Bytes(CodePoint.QRYBLKSZ, DssConstants.MAX_DSS_LEN); } // Maximum Result Set Count specifies a limit on the number of result sets // the requester is capable of receiving as reply data in response to an ECSQLSTT // command that invokes a stored procedure. If the stored procedure generates // more than MAXRSLCNT result sets, then the target system returns at most, the first // MAXRSLCNT of these result sets. The stored procedure defines the order // in which the target system returns result sets. // this is s two byte signed binary number. // it has a min value of 0 which indicates the requester is not capable // of receiving result sets as reply data in response to the command. // a special value, -1 (CodePoint.MAXRSLCNT_NOLIMIT = 0xffff), indicates the // requester is capable of receiving all result sets in response the EXCSQLSTT. // // preconditions: // sqlam must support this parameter for the command, method will not check. // the value must be in correct range (-1 to 32767), method will not check. private void buildMAXRSLCNT(int maxResultSetCount) throws SqlException { if (maxResultSetCount == 0) { return; } writeScalar2Bytes(CodePoint.MAXRSLCNT, maxResultSetCount); } // RDB Commit Allowed specifies whether an RDB should allow the processing of any // commit or rollback operations that occure during execution of a statement. // True allow the processing of commits and rollbacks private void buildRDBCMTOK() throws SqlException { writeScalar1Byte(CodePoint.RDBCMTOK, CodePoint.TRUE); } // Result Set Flags is a single byte where each bit it a boolean flag. // It specifies wheter the requester desires the server to return name, // label and comment information for the columns of result sets generated by the command. // The default is b'00000000'. // columnNamesRequired // false means the requester does not desire column names returned. // true means the requester desires column names returned. // columnLabelsRequired // false means the requester does not desire column labels returned. // true means the requester desires column labels returned. // columnCommentsRequired // false means the requester does not desire column comments returned. // true means the requester desired column comments returned. // cantProcessAnswerSetData // false means that for each result set, the requester expects the command // to return an FDOCA description of the answer set data and to possibly // return answer set data. the block containing the end of the description // may be completed if room exists with answer set data. additional blocks // of answer set data may also be chained to the block containing the end of the // FDOCA description. up to the maximum number of extra blocks of answer set data // per result set specified in the MAXBLKEXT parameter. // true means that for each result set, the requester expects the command to return // an FDOCA description of the answer set data but does not expect the command to // return any answer set data. // at SQLAM 7, new flags are supported which can be used to return // standard, extended, and light sqlda // // preconditions: // sqlam must support this parameter, method will not check. private void buildRSLSETFLG(int resultSetFlag) throws SqlException { writeScalar1Byte(CodePoint.RSLSETFLG, resultSetFlag); } void buildQRYINSID(long qryinsid) throws SqlException { markLengthBytes(CodePoint.QRYINSID); writeLong(qryinsid); updateLengthBytes(); } // Return SQL Descriptor Area controls whether to return // an SQL descriptor area that applies to the SQL statement this command // identifies. The target SQLAM obtains the SQL descriptor area by performing // an SQL DESCRIBE function on the statement after the statement has been // prepared. // The value TRUE, X'F1' (CodePoint.TRUE), indicates an SQLDA is returned // The value FALSE, X'F0' (CodePoint.FALSE), default, indicates an SQLDA is not returned. // // preconditions: // sqlam must support this parameter for the command, method will not check. // GemStone changes BEGIN private void buildRTNSQLDA(boolean rtnSqlda, boolean isPrepared) throws SqlException { byte flag = rtnSqlda ? CodePoint.TRUE : CodePoint.FALSE; if (!isPrepared) { flag |= CodePoint.RTNSQLDA_UNPREPARED; } if (flag != CodePoint.FALSE) { writeScalar1Byte(CodePoint.RTNSQLDA, flag); } } /* (original code) private void buildRTNSQLDA() throws SqlException { writeScalar1Byte(CodePoint.RTNSQLDA, CodePoint.TRUE); } */ // GemStone changes END // Type of SQL Descriptor Area. // This is a single byte signed number that specifies the type of sqlda to // return for the command. // below sqlam 7 there were two possible enumerated values for this parameter. // 0 (CodePoint.TYPSQLDA_STD_OUTPUT)- the default, indicates return the output sqlda. // 1 (CodePoint.TYPSQLDA_STD_INPUT) - indicates return the input sqlda. // the typsqlda was enhanced at sqlam 7 to support extened describe. // at sqlam 7 the following enumerated values are supported. // 0 (CodePoint.TYPSQLDA_STD_OUTPUT) - the default, standard output sqlda. // 1 (CodePoint.TYPSQLDA_STD_INPUT) - standard input sqlda. // 2 (CodePoint.TYPSQLDA_LIGHT_OUTPUT) - light output sqlda. // 3 (CodePoint.TYPSQLDA_LIGHT_INPUT) - light input sqlda. // 4 (CodePoint.TYPSQLDA_X_OUTPUT) - extended output sqlda. // 5 (CodePoint.TYPSQLDA_X_INPUT) - extended input sqlda. // // preconditions: // sqlam or prdid must support this, method will not check. // valid enumerated type must be passed to method, method will not check. private void buildTYPSQLDA(int typeSqlda) throws SqlException { // possibly inspect typeSqlda value and verify against sqlam level if (typeSqlda != CodePoint.TYPSQLDA_STD_OUTPUT) { writeScalar1Byte(CodePoint.TYPSQLDA, typeSqlda); } } /** * Build QRYCLSIMP (Query Close Implicit). Query Close Implicit * controls whether the target server implicitly closes a * non-scrollable query upon end of data (SQLSTATE 02000). */ private void buildQRYCLSIMP() { writeScalar1Byte(CodePoint.QRYCLSIMP, CodePoint.QRYCLSIMP_YES); } // helper method to buildFDODTA to build the actual data length private void setFDODTALobLength(int[][] protocolTypesAndLengths, int i, long dataLength) throws SqlException { if (protocolTypesAndLengths[i][1] == 0x8002) { writeShort((short) dataLength); } else if (protocolTypesAndLengths[i][1] == 0x8004) { writeInt((int) dataLength); // 4 bytes to encode the length } else if (protocolTypesAndLengths[i][1] == 0x8006)// 6 bytes to encode the length { writeLong(dataLength); } //throw new SqlException (netAgent_.logWriter_, "0x8006 lob place holders not yet supported"); else if (protocolTypesAndLengths[i][1] == 0x8008)// 8 bytes to encode the length { writeLong(dataLength); } if (dataLength != 0) { if (extdtaPositions_ == null) { extdtaPositions_ = new java.util.ArrayList(); } // GemStone changes BEGIN // changed to use Integer.valueOf() if possible extdtaPositions_.add(ClientSharedUtils.getJdkHelper() .newInteger(i)); /* (original code) extdtaPositions_.add(new Integer(i)); */ // GemStone changes END } } private void setFDODTALobLengthUnknown(int i) throws SqlException { short v = 1; writeShort( v <<= 15 ); if (extdtaPositions_ == null) { extdtaPositions_ = new java.util.ArrayList(); } // GemStone changes BEGIN // changed to use Integer.valueOf() if possible extdtaPositions_.add(ClientSharedUtils.getJdkHelper().newInteger(i)); /* (original code) extdtaPositions_.add(new Integer(i)); */ // GemStone changes END } private boolean checkSendQryrowset(int fetchSize, int resultSetType) { // if the cursor is forward_only, ignore the fetchSize and let the server return // as many rows as fit in the query block. // if the cursor is scrollable, send qryrowset if it is supported by the server boolean sendQryrowset = false; if (resultSetType != java.sql.ResultSet.TYPE_FORWARD_ONLY) { sendQryrowset = true; } return sendQryrowset; } private int checkFetchsize(int fetchSize, int resultSetType) { // if fetchSize is not set for scrollable cursors, set it to the default fetchSize if (resultSetType != java.sql.ResultSet.TYPE_FORWARD_ONLY && fetchSize == 0) { fetchSize = com.pivotal.gemfirexd.internal.client.am.Configuration.defaultFetchSize; } return fetchSize; } private int calculateResultSetFlags() { return CodePoint.RSLSETFLG_EXTENDED_SQLDA; } public void writeSetSpecialRegister(Section section, java.util.ArrayList sqlsttList) throws SqlException { buildEXCSQLSET(section); // SQLSTT: for (int i = 0; i < sqlsttList.size(); i++) { buildSQLSTTcommandData((String) sqlsttList.get(i)); } } private int[][] allocateLidAndLengthsArray(ColumnMetaData parameterMetaData) { int numVars = parameterMetaData.columns_; int[][] lidAndLengths = parameterMetaData.protocolTypesCache_; if ((lidAndLengths) == null || (lidAndLengths.length != numVars)) { lidAndLengths = new int[numVars][2]; parameterMetaData.protocolTypesCache_ = lidAndLengths; } return lidAndLengths; } private void buildMddOverrides(java.util.ArrayList sdaOverrides) throws SqlException { byte[] mddBytes; for (int i = 0; i < sdaOverrides.size(); i++) { mddBytes = (byte[]) (sdaOverrides.get(i)); writeBytes(mddBytes); } } private int getNextOverrideLid() { return overrideLid_++; } private void setFDODTALob(int securityMechanism, Lob lob, int[][] protocolTypesAndLengths, int i) throws SqlException, java.sql.SQLException{ if( lob.willBeLayerBStreamed() ) { setFDODTALobLengthUnknown( i ); } else { setFDODTALobLength(protocolTypesAndLengths, i, lob.length() ); } } }
package org.web3j.protocol.core.filters; import java.io.IOException; import java.math.BigInteger; import java.util.List; import java.util.Optional; import org.web3j.protocol.Web3j; import org.web3j.protocol.core.Request; import org.web3j.protocol.core.methods.response.EthFilter; import org.web3j.protocol.core.methods.response.EthLog; /** * Handler for working with transaction filter requests. */ public class PendingTransactionFilter extends Filter<String> { public PendingTransactionFilter(Web3j web3j, Callback<String> callback) { super(web3j, callback); } @Override protected EthFilter sendRequest() throws IOException { return web3j.ethNewPendingTransactionFilter().send(); } @Override protected void process(List<EthLog.LogResult> logResults) { for (EthLog.LogResult logResult : logResults) { if (logResult instanceof EthLog.Hash) { String blockHash = ((EthLog.Hash) logResult).get(); callback.onEvent(blockHash); } else { throw new FilterException( "Unexpected result type: " + logResult.get() + ", required Hash"); } } } /** * Since the pending transaction filter does not support historic filters, * the filterId is ignored and an empty optional is returned * @param filterId * Id of the filter for which the historic log should be retrieved * @return * Optional.empty() */ @Override protected Optional<Request<?, EthLog>> getFilterLogs(BigInteger filterId) { return Optional.empty(); } }
package com.revolsys.record.io.format.json; import java.util.Map; import java.util.TreeMap; public class JsonObjectTree extends TreeMap<String, Object> implements JsonObject { private static final long serialVersionUID = 1L; JsonObjectTree() { super(); } JsonObjectTree(final Map<? extends String, ? extends Object> m) { super(m); } JsonObjectTree(final String key, final Object value) { add(key, value); } @Override public JsonObjectTree clone() { return (JsonObjectTree)new JsonObjectTree()// .addValuesClone(this); } @Override public String toString() { return Json.toString(this, false); } }
package ch.less.infrastructure.info; import ch.less.infrastructure.xps.conf.PrintSettingsService; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.core.Logger; import org.apache.logging.log4j.core.LoggerContext; import org.apache.logging.log4j.core.appender.RollingFileAppender; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.info.BuildProperties; import org.springframework.core.env.Environment; import org.springframework.stereotype.Service; import java.io.File; import java.net.URI; import java.text.ParseException; import java.time.LocalDateTime; import java.time.ZoneOffset; /** * Application information likes paths, versions and build info **/ @Service public class ApplicationInfo { /** * setting keys **/ private static final String FILE_LOG = "lgging.file.key"; // Logger KEY entry @Autowired private PrintSettingsService printSettingsService; @Autowired private Environment environment; @Autowired private BuildProperties buildProperties; /** * returns the base path of the application (useful for logs, templates and configuration) * * @return absolute URI of the application */ public final URI getApplicationURI() { return printSettingsService.getApplicationURI(); // absolute session path } /** * returns Log4J2 File Name * * @return absolute URI of the file */ public final URI getLoggingURI() { // logging context and root logger final LoggerContext loggerContext = (LoggerContext) LogManager.getContext(false); final Logger logger = loggerContext.getRootLogger(); // file appender final RollingFileAppender appender = (RollingFileAppender) logger.getAppenders().get(environment.getProperty(FILE_LOG)); final String fileName = appender.getFileName(); // is this path already absolute? final File logFile = new File(fileName); if (!logFile.isAbsolute()) { return getApplicationURI().resolve(logFile.toURI()); // if not create absolute path } return logFile.toURI(); } /** * latest build version according to gradle * * @return gradle build version for XPS */ public final String getBuildVersion() { return buildProperties.getVersion(); } /** * returns latest build timestamp of the current version * * @return date of the current build */ public final LocalDateTime getBuildDate() throws ParseException { return LocalDateTime.ofInstant(buildProperties.getTime(), ZoneOffset.systemDefault()); // date } }
package org.jeecgframework.web.demo.service.test; import java.util.List; import org.jeecgframework.web.demo.entity.test.JeecgOrderCustomEntity; import org.jeecgframework.web.demo.entity.test.JeecgOrderMainEntity; import org.jeecgframework.web.demo.entity.test.JeecgOrderProductEntity; import org.jeecgframework.core.common.service.CommonService; public interface JeecgOrderMainServiceI extends CommonService{ /** * 添加一对多 * */ public void addMain(JeecgOrderMainEntity jeecgOrderMain,List<JeecgOrderProductEntity> jeecgOrderProducList,List<JeecgOrderCustomEntity> jeecgOrderCustomList) ; /** * 修改一对多 * */ public void updateMain(JeecgOrderMainEntity jeecgOrderMain,List<JeecgOrderProductEntity> jeecgOrderProducList,List<JeecgOrderCustomEntity> jeecgOrderCustomList,boolean jeecgOrderCustomShow) ; public void delMain (JeecgOrderMainEntity jeecgOrderMain); }
/* * The Alluxio Open Foundation licenses this work under the Apache License, version 2.0 * (the "License"). You may not use this work except in compliance with the License, which is * available at www.apache.org/licenses/LICENSE-2.0 * * This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, * either express or implied, as more fully set forth in the License. * * See the NOTICE file distributed with this work for information regarding copyright ownership. */ package alluxio.collections; import alluxio.Constants; import alluxio.concurrent.LockMode; import alluxio.resource.LockResource; import alluxio.resource.RWLockResource; import alluxio.resource.RefCountLockResource; import alluxio.util.ThreadFactoryUtils; import com.google.common.annotations.VisibleForTesting; import com.google.common.base.MoreObjects; import com.google.common.base.Preconditions; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.Closeable; import java.io.IOException; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import java.util.Optional; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.Future; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.locks.Condition; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; import java.util.concurrent.locks.ReentrantReadWriteLock; import java.util.function.Function; /** * A resource pool specifically designed to contain locks and will NOT evict any entries * that are in use. The pool size is unlimited, when the pool size is larger than the configured * max size, a background thread will try to evict locks that are no longer * locked, but if all the locks are locked, none of them will be evicted. * In the worst case (e.g. deadlock), the pool size might keep growing until exhausting system * memories. * * @param <K> key for the locks */ public class LockPool<K> implements Closeable { private static final Logger LOG = LoggerFactory.getLogger(LockPool.class); private static final float DEFAULT_LOAD_FACTOR = 0.75f; private static final String EVICTOR_THREAD_NAME = "LockPool Evictor"; private final Map<K, Resource> mPool; private final Function<? super K, ? extends ReentrantReadWriteLock> mDefaultLoader; private final int mLowWatermark; private final int mHighWatermark; private final Lock mEvictLock = new ReentrantLock(); private final Condition mOverHighWatermark = mEvictLock.newCondition(); private final ExecutorService mEvictor; private final Future<?> mEvictorTask; /** * Constructor for a lock pool. * * @param defaultLoader specify a function to generate a value based on a key * @param initialSize initial size of the pool * @param lowWatermark low watermark of the pool size * @param highWatermark high watermark of the pool size * @param concurrencyLevel concurrency level of the pool */ public LockPool(Function<? super K, ? extends ReentrantReadWriteLock> defaultLoader, int initialSize, int lowWatermark, int highWatermark, int concurrencyLevel) { mDefaultLoader = defaultLoader; mLowWatermark = lowWatermark; mHighWatermark = highWatermark; mPool = new ConcurrentHashMap<>(initialSize, DEFAULT_LOAD_FACTOR, concurrencyLevel); mEvictor = Executors.newSingleThreadExecutor( ThreadFactoryUtils.build(String.format("%s-%s", EVICTOR_THREAD_NAME, toString()), true)); mEvictorTask = mEvictor.submit(new Evictor()); } @Override public void close() throws IOException { mEvictorTask.cancel(true); mEvictor.shutdownNow(); // immediately halt the evictor thread. try { mEvictor.awaitTermination(2, TimeUnit.SECONDS); } catch (InterruptedException e) { Thread.currentThread().interrupt(); throw new IOException("Failed to await LockPool evictor termination", e); } } private final class Evictor implements Runnable { /** * Interval in milliseconds for logging when pool size grows over high watermark. */ private static final long OVER_HIGH_WATERMARK_LOG_INTERVAL = Constants.MINUTE_MS; /** * Eviction happens whenever the evictor thread is signaled, * or is blocked for this period of time in milliseconds. */ private static final int EVICTION_MAX_AWAIT_TIME = 30 * Constants.SECOND_MS; /** * When size is over high watermark, a warning will be logged. * This represents the last time (millisecond) the warning is logged. * This time is used to limit the rate of logging. */ private long mLastSizeWarningTime = 0; /** * Iterator for the pool, used to continue evicting from the previous iterator. */ private Iterator<Map.Entry<K, Resource>> mIterator; /** * Creates a new instance. */ public Evictor() { mIterator = mPool.entrySet().iterator(); } @Override public void run() { try { while (!Thread.interrupted()) { awaitAndEvict(); } } catch (InterruptedException e) { // Allow thread to exit. } } /** * Blocks until the size of the pool exceeds the high watermark, evicts entries with zero * references until pool size decreases below the low watermark or the whole pool is scanned. */ private void awaitAndEvict() throws InterruptedException { try (LockResource l = new LockResource(mEvictLock)) { while (mPool.size() <= mHighWatermark) { mOverHighWatermark.await(EVICTION_MAX_AWAIT_TIME, TimeUnit.MILLISECONDS); } int numToEvict = mPool.size() - mLowWatermark; // The first round of scan uses the mIterator left from last eviction. // Then scan the pool from a new iterator for at most two round: // first round to mark candidate.mIsAccessed as false, // second round to remove the candidate from the pool. int roundToScan = 3; while (numToEvict > 0 && roundToScan > 0) { if (!mIterator.hasNext()) { mIterator = mPool.entrySet().iterator(); roundToScan--; } Map.Entry<K, Resource> candidateMapEntry = mIterator.next(); Resource candidate = candidateMapEntry.getValue(); if (candidate.mIsAccessed) { candidate.mIsAccessed = false; } else { if (candidate.mRefCount.compareAndSet(0, Integer.MIN_VALUE)) { mIterator.remove(); numToEvict--; } } } if (mPool.size() >= mHighWatermark) { if (System.currentTimeMillis() - mLastSizeWarningTime > OVER_HIGH_WATERMARK_LOG_INTERVAL) { LOG.warn("LockPool size grows over high watermark: " + "pool size = {}, low watermark = {}, high watermark = {}", mPool.size(), mLowWatermark, mHighWatermark); mLastSizeWarningTime = System.currentTimeMillis(); } } } } } /** * Locks the specified key in the specified mode, returning the corresponding lock resource. * <p> * Locks the {@code key} using the desired read/write {@link LockMode}). Because {@code useTryLock} here * defaults to {@code false}, this method does not use Java's default {@link Lock#tryLock()} to acquire the * lock, thus using {@link Lock#lock()} instead. * * @param key the key to lock. The key corresponds to any object of type {@code K} and is * always linked to a {@link Resource} in the resource {@link #mPool}. * @param mode the {@link LockMode} to use for locking the {@code key}. The available * {@code mode}s are {@link LockMode#READ} and {@link LockMode#WRITE}. * @return a {@link LockResource} which must be closed to unlock the key */ public LockResource get(K key, LockMode mode) { return get(key, mode, false); } /** * Locks the specified key in the specified mode. * * @param key the key to lock * @param mode the mode to lock in * @param useTryLock Determines whether or not to use {@link Lock#tryLock()} or * {@link Lock#lock()} to acquire the lock. Differs from * {@link #tryGet(Object, LockMode)} in that it will block until the lock has * been acquired. * @return a lock resource which must be closed to unlock the key */ public RWLockResource get(K key, LockMode mode, boolean useTryLock) { Resource resource = getResource(key); return new RefCountLockResource(resource.mLock, mode, true, resource.mRefCount, useTryLock); } /** * Attempts to take a lock on the given key. * * @param key the key to lock * @param mode lockMode to acquire * @return either empty or a lock resource which must be closed to unlock the key */ public Optional<RWLockResource> tryGet(K key, LockMode mode) { Resource resource = getResource(key); ReentrantReadWriteLock lock = resource.mLock; Lock innerLock; switch (mode) { case READ: innerLock = lock.readLock(); break; case WRITE: innerLock = lock.writeLock(); break; default: throw new IllegalStateException("Unknown lock mode: " + mode); } if (!innerLock.tryLock()) { return Optional.empty(); } return Optional.of(new RefCountLockResource(lock, mode, false, resource.mRefCount, false)); } /** * Get the raw readwrite lock from the pool. * * @param key key to look up the value * @return the lock associated with the key */ @VisibleForTesting public ReentrantReadWriteLock getRawReadWriteLock(K key) { return mPool.getOrDefault(key, new Resource(new ReentrantReadWriteLock())).mLock; } /** * Gets the resource corresponding to the given key. * <p> * Returns the {@link Resource} linked to the given {@code key} * in {@link #mPool}. Creates and returns a new {@code Resource} * with the {@link #mDefaultLoader} if none is found. * * @param key the key to find the corresponding {@code Resource} * @return the {@code Resource} for the given {@code key} */ private Resource getResource(K key) { Preconditions.checkNotNull(key, "key can not be null"); Resource resource = mPool.compute(key, (k, v) -> { if (v != null && v.mRefCount.incrementAndGet() > 0) { // If the entry is to be removed, ref count will be INT_MIN, so incrementAndGet will < 0. v.mIsAccessed = true; return v; } return new Resource(mDefaultLoader.apply(k)); }); if (mPool.size() > mHighWatermark) { if (mEvictLock.tryLock()) { try { mOverHighWatermark.signal(); } finally { mEvictLock.unlock(); } } } return resource; } @Override public String toString() { return MoreObjects.toStringHelper(this) .add("lowWatermark", mLowWatermark) .add("highWatermark", mHighWatermark) .add("size", mPool.size()) .toString(); } /** * Returns whether the pool contains a particular key. * * @param key the key to look up in the pool * @return true if the key is contained in the pool */ @VisibleForTesting public boolean containsKey(K key) { Preconditions.checkNotNull(key, "key can not be null"); return mPool.containsKey(key); } /** * @return the size of the pool */ public int size() { return mPool.size(); } /** * @return all entries in the pool, for debugging purposes */ @VisibleForTesting public Map<K, ReentrantReadWriteLock> getEntryMap() { Map<K, ReentrantReadWriteLock> entries = new HashMap<>(); mPool.forEach((key, value) -> entries.put(key, value.mLock)); return entries; } /** * Resource containing the lock and other information to be stored in the pool. */ private static final class Resource { private final ReentrantReadWriteLock mLock; private volatile boolean mIsAccessed; private AtomicInteger mRefCount; private Resource(ReentrantReadWriteLock lock) { mLock = lock; mIsAccessed = false; mRefCount = new AtomicInteger(1); } } }
package cn.hutool.core.text.escape; import cn.hutool.core.text.StrBuilder; import cn.hutool.core.text.replacer.StrReplacer; import cn.hutool.core.util.CharUtil; /** * 形如&#39;的反转义器 * * @author looly * */ public class NumericEntityUnescaper extends StrReplacer { @Override protected int replace(CharSequence str, int pos, StrBuilder out) { final int len = str.length(); // 检查以确保以&#开头 if (str.charAt(pos) == '&' && pos < len - 2 && str.charAt(pos + 1) == '#') { int start = pos + 2; boolean isHex = false; final char firstChar = str.charAt(start); if (firstChar == 'x' || firstChar == 'X') { start++; isHex = true; } // 确保&#后还有数字 if (start == len) { return 0; } int end = start; while (end < len && CharUtil.isHexChar(str.charAt(end))) { end++; } final boolean isSemiNext = (end != len) && (str.charAt(end) == ';'); if (isSemiNext) { int entityValue; try { if (isHex) { entityValue = Integer.parseInt(str.subSequence(start, end).toString(), 16); } else { entityValue = Integer.parseInt(str.subSequence(start, end).toString(), 10); } } catch (final NumberFormatException nfe) { return 0; } out.append((char)entityValue); return 2 + end - start + (isHex ? 1 : 0) + (isSemiNext ? 1 : 0); } } return 0; } }
package com.a4_16; /** * Created by HongWeiPC on 2017/5/2. */ public class Animal { public void eat(){ System.out.println("吃"); } public void sleep(){ System.out.println("睡觉"); } } class Rabbit extends Animal{ public void eat(){ super.eat(); System.out.println("吃草"); } } class Tiger extends Animal{ public void eat(){ super.eat(); System.out.println("吃肉"); } } class TestAnimal { public static void showEat(Rabbit a) { a.eat(); } public static void showEat(Tiger t){ t.eat(); } public static void main(String[] args) { Rabbit rabbit = new Rabbit(); Tiger tiger = new Tiger(); showEat(rabbit); rabbit.sleep(); showEat(tiger); tiger.sleep(); } }
package com.rarchives.ripme.ripper; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import java.util.Collections; import java.util.HashMap; import java.util.Map; import com.rarchives.ripme.ui.RipStatusMessage; import com.rarchives.ripme.ui.RipStatusMessage.STATUS; import com.rarchives.ripme.utils.Utils; // Should this file even exist? It does the same thing as abstractHTML ripper /**' * For ripping delicious albums off the interwebz. */ public abstract class AlbumRipper extends AbstractRipper { private Map<URL, File> itemsPending = Collections.synchronizedMap(new HashMap<URL, File>()); private Map<URL, File> itemsCompleted = Collections.synchronizedMap(new HashMap<URL, File>()); private Map<URL, String> itemsErrored = Collections.synchronizedMap(new HashMap<URL, String>()); protected AlbumRipper(URL url) throws IOException { super(url); } public abstract boolean canRip(URL url); public abstract URL sanitizeURL(URL url) throws MalformedURLException; public abstract void rip() throws IOException; public abstract String getHost(); public abstract String getGID(URL url) throws MalformedURLException; protected boolean allowDuplicates() { return false; } @Override /** * Returns total amount of files attempted. */ public int getCount() { return itemsCompleted.size() + itemsErrored.size(); } @Override /** * Queues multiple URLs of single images to download from a single Album URL */ public boolean addURLToDownload(URL url, File saveAs, String referrer, Map<String,String> cookies, Boolean getFileExtFromMIME) { // Only download one file if this is a test. if (super.isThisATest() && (itemsPending.size() > 0 || itemsCompleted.size() > 0 || itemsErrored.size() > 0)) { stop(); return false; } if (!allowDuplicates() && ( itemsPending.containsKey(url) || itemsCompleted.containsKey(url) || itemsErrored.containsKey(url) )) { // Item is already downloaded/downloading, skip it. logger.info("[!] Skipping " + url + " -- already attempted: " + Utils.removeCWD(saveAs)); return false; } if (Utils.getConfigBoolean("urls_only.save", false)) { // Output URL to file String urlFile = this.workingDir + File.separator + "urls.txt"; try { FileWriter fw = new FileWriter(urlFile, true); fw.write(url.toExternalForm()); fw.write("\n"); fw.close(); RipStatusMessage msg = new RipStatusMessage(STATUS.DOWNLOAD_COMPLETE, urlFile); itemsCompleted.put(url, new File(urlFile)); observer.update(this, msg); } catch (IOException e) { logger.error("Error while writing to " + urlFile, e); } } else { itemsPending.put(url, saveAs); DownloadFileThread dft = new DownloadFileThread(url, saveAs, this, getFileExtFromMIME); if (referrer != null) { dft.setReferrer(referrer); } if (cookies != null) { dft.setCookies(cookies); } threadPool.addThread(dft); } return true; } @Override public boolean addURLToDownload(URL url, File saveAs) { return addURLToDownload(url, saveAs, null, null, false); } /** * Queues image to be downloaded and saved. * Uses filename from URL to decide filename. * @param url * URL to download * @return * True on success */ protected boolean addURLToDownload(URL url) { // Use empty prefix and empty subdirectory return addURLToDownload(url, "", ""); } @Override /** * Cleans up & tells user about successful download */ public void downloadCompleted(URL url, File saveAs) { if (observer == null) { return; } try { String path = Utils.removeCWD(saveAs); RipStatusMessage msg = new RipStatusMessage(STATUS.DOWNLOAD_COMPLETE, path); itemsPending.remove(url); itemsCompleted.put(url, saveAs); observer.update(this, msg); checkIfComplete(); } catch (Exception e) { logger.error("Exception while updating observer: ", e); } } @Override /** * Cleans up & tells user about failed download. */ public void downloadErrored(URL url, String reason) { if (observer == null) { return; } itemsPending.remove(url); itemsErrored.put(url, reason); observer.update(this, new RipStatusMessage(STATUS.DOWNLOAD_ERRORED, url + " : " + reason)); checkIfComplete(); } @Override /** * Tells user that a single file in the album they wish to download has * already been downloaded in the past. */ public void downloadExists(URL url, File file) { if (observer == null) { return; } itemsPending.remove(url); itemsCompleted.put(url, file); observer.update(this, new RipStatusMessage(STATUS.DOWNLOAD_WARN, url + " already saved as " + file.getAbsolutePath())); checkIfComplete(); } /** * Notifies observers and updates state if all files have been ripped. */ @Override protected void checkIfComplete() { if (observer == null) { return; } if (itemsPending.isEmpty()) { super.checkIfComplete(); } } /** * Sets directory to save all ripped files to. * @param url * URL to define how the working directory should be saved. * @throws * IOException */ @Override public void setWorkingDir(URL url) throws IOException { String path = Utils.getWorkingDirectory().getCanonicalPath(); if (!path.endsWith(File.separator)) { path += File.separator; } String title; if (Utils.getConfigBoolean("album_titles.save", true)) { title = getAlbumTitle(this.url); } else { title = super.getAlbumTitle(this.url); } logger.debug("Using album title '" + title + "'"); title = Utils.filesystemSafe(title); path += title; path = Utils.getOriginalDirectory(path) + File.separator; // check for case sensitive (unix only) this.workingDir = new File(path); if (!this.workingDir.exists()) { logger.info("[+] Creating directory: " + Utils.removeCWD(this.workingDir)); this.workingDir.mkdirs(); } logger.debug("Set working directory to: " + this.workingDir); } /** * @return * Integer between 0 and 100 defining the progress of the album rip. */ @Override public int getCompletionPercentage() { double total = itemsPending.size() + itemsErrored.size() + itemsCompleted.size(); return (int) (100 * ( (total - itemsPending.size()) / total)); } /** * @return * Human-readable information on the status of the current rip. */ @Override public String getStatusText() { StringBuilder sb = new StringBuilder(); sb.append(getCompletionPercentage()) .append("% ") .append("- Pending: " ).append(itemsPending.size()) .append(", Completed: ").append(itemsCompleted.size()) .append(", Errored: " ).append(itemsErrored.size()); return sb.toString(); } }
package com.Shop.Model; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.Table; /** * Created by Administrator on 2016/3/25 0025. */ @Entity @Table public class Profit { private int id; private int Area_count; //大区比率 private int Role_count; //角色比率 private float recordPrices; //认证费用 private int dumpingCount; //赠送倾销币 private float countPrices; //倾销币价格 private int level1; //1级人数 private int level1Rate; //1级佣金 private int level2; //2级人数 private int level2Rate; //2级佣金 private int level3Rate; //2级佣金 @Id @GeneratedValue public int getId() { return id; } public void setId(int id) { this.id = id; } public float getRecordPrices() { return recordPrices; } public void setRecordPrices(float recordPrices) { this.recordPrices = recordPrices; } public int getDumpingCount() { return dumpingCount; } public void setDumpingCount(int dumpingCount) { this.dumpingCount = dumpingCount; } public int getArea_count() { return Area_count; } public void setArea_count(int area_count) { Area_count = area_count; } public int getRole_count() { return Role_count; } public void setRole_count(int role_count) { Role_count = role_count; } public float getCountPrices() { return countPrices; } public void setCountPrices(float countPrices) { this.countPrices = countPrices; } public int getLevel1() { return level1; } public void setLevel1(int level1) { this.level1 = level1; } public int getLevel1Rate() { return level1Rate; } public void setLevel1Rate(int level1Rate) { this.level1Rate = level1Rate; } public int getLevel2() { return level2; } public void setLevel2(int level2) { this.level2 = level2; } public int getLevel2Rate() { return level2Rate; } public void setLevel2Rate(int level2Rate) { this.level2Rate = level2Rate; } public int getLevel3Rate() { return level3Rate; } public void setLevel3Rate(int level3Rate) { this.level3Rate = level3Rate; } }
package com.surafel.mvp.ui.movie.Threat; import com.surafel.mvp.R; import com.surafel.mvp.data.DataManager; import com.surafel.mvp.data.db.model.MovieItems; import com.surafel.mvp.ui.base.BasePresenter; import com.surafel.mvp.utils.rx.SchedulerProvider; import java.util.ArrayList; import java.util.List; import javax.inject.Inject; import io.reactivex.disposables.CompositeDisposable; public class ThreatPresenter<V extends ThreatMvpView> extends BasePresenter<V> implements ThreatMvpPresenter<V> { List<MovieItems> mData; @Inject public ThreatPresenter(DataManager dataManager, SchedulerProvider schedulerProvider, CompositeDisposable compositeDisposable) { super(dataManager, schedulerProvider, compositeDisposable); } @Override public void getmData() { mData = new ArrayList<>(); mData.add(new MovieItems("Skyscraper","skyscrapter is a movie i don't know", R.drawable.skyscraper)); mData.add(new MovieItems("Game of Thrones","The best Series movie ever in the history of series movies",R.drawable.gameofthrones)); mData.add(new MovieItems("Xla","Robotic movie in the future... ",R.drawable.xl)); mData.add(new MovieItems("Avengers Infinity War","the collection of super hero",R.drawable.avengersinfinitywar)); mData.add(new MovieItems("The Little mermaid ","is owesome",R.drawable.littlemermaid)); mData.add(new MovieItems("Robin hood ","is owesome",R.drawable.robenhood)); mData.add(new MovieItems("Venom ","The SuperV becomes Super hero",R.drawable.venom)); mData.add(new MovieItems("Scorpion","series movie",R.drawable.image7)); getMvpView().loadMovies(mData); } }
// Copyright 2018 Google LLC // // 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.firebase.functions; import android.content.Context; import android.os.Handler; import android.util.Log; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.annotation.VisibleForTesting; import com.google.android.gms.common.internal.Preconditions; import com.google.android.gms.security.ProviderInstaller; import com.google.android.gms.security.ProviderInstaller.ProviderInstallListener; import com.google.android.gms.tasks.Task; import com.google.android.gms.tasks.TaskCompletionSource; import com.google.android.gms.tasks.Tasks; import com.google.firebase.FirebaseApp; import com.google.firebase.emulators.EmulatedServiceSettings; import com.google.firebase.functions.FirebaseFunctionsException.Code; import java.io.IOException; import java.io.InterruptedIOException; import java.net.MalformedURLException; import java.net.URL; import java.util.HashMap; import java.util.Map; import okhttp3.Call; import okhttp3.Callback; import okhttp3.MediaType; import okhttp3.OkHttpClient; import okhttp3.Request; import okhttp3.RequestBody; import okhttp3.Response; import org.json.JSONException; import org.json.JSONObject; /** FirebaseFunctions lets you call Cloud Functions for Firebase. */ public class FirebaseFunctions { /** A task that will be resolved once ProviderInstaller has installed what it needs to. */ private static final TaskCompletionSource<Void> providerInstalled = new TaskCompletionSource<>(); /** * Whether the ProviderInstaller async task has been started. This is guarded by the * providerInstalled lock. */ private static boolean providerInstallStarted = false; // The FirebaseApp instance private final FirebaseApp app; // The network client to use for HTTPS requests. private final OkHttpClient client; // A serializer to encode/decode parameters and return values. private final Serializer serializer; // A provider of client metadata to include with calls. private final ContextProvider contextProvider; // The projectId to use for all functions references. private final String projectId; // The region to use for all function references. private final String region; // The format to use for constructing urls from region, projectId, and name. private String urlFormat = "https://%1$s-%2$s.cloudfunctions.net/%3$s"; // Emulator settings @Nullable private EmulatedServiceSettings emulatorSettings; FirebaseFunctions( FirebaseApp app, Context context, String projectId, String region, ContextProvider contextProvider) { this.app = app; this.client = new OkHttpClient(); this.serializer = new Serializer(); this.contextProvider = Preconditions.checkNotNull(contextProvider); this.projectId = Preconditions.checkNotNull(projectId); this.region = Preconditions.checkNotNull(region); maybeInstallProviders(context); } /** * Runs ProviderInstaller.installIfNeededAsync once per application instance. * * @param context The application context. */ private static void maybeInstallProviders(Context context) { // Make sure this only runs once. synchronized (providerInstalled) { if (providerInstallStarted) { return; } providerInstallStarted = true; } // Package installIfNeededAsync into a Runnable so it can be run on the main thread. // installIfNeededAsync checks to make sure it is on the main thread, and throws otherwise. Runnable runnable = () -> ProviderInstaller.installIfNeededAsync( context, new ProviderInstallListener() { @Override public void onProviderInstalled() { providerInstalled.setResult(null); } @Override public void onProviderInstallFailed(int i, android.content.Intent intent) { Log.d("FirebaseFunctions", "Failed to update ssl context"); providerInstalled.setResult(null); } }); Handler handler = new Handler(context.getMainLooper()); handler.post(runnable); } /** * Creates a Cloud Functions client with the given app and region. * * @param app The app for the Firebase project. * @param region The region for the HTTPS trigger, such as "us-central1". */ @NonNull public static FirebaseFunctions getInstance(@NonNull FirebaseApp app, @NonNull String region) { Preconditions.checkNotNull(app, "You must call FirebaseApp.initializeApp first."); Preconditions.checkNotNull(region); FunctionsMultiResourceComponent component = app.get(FunctionsMultiResourceComponent.class); Preconditions.checkNotNull(component, "Functions component does not exist."); return component.get(region); } /** * Creates a Cloud Functions client with the given app. * * @param app The app for the Firebase project. */ @NonNull public static FirebaseFunctions getInstance(@NonNull FirebaseApp app) { return getInstance(app, "us-central1"); } /** * Creates a Cloud Functions client with the default app and given region. * * @param region The region for the HTTPS trigger, such as "us-central1". */ @NonNull public static FirebaseFunctions getInstance(@NonNull String region) { return getInstance(FirebaseApp.getInstance(), region); } /** Creates a Cloud Functions client with the default app. */ @NonNull public static FirebaseFunctions getInstance() { return getInstance(FirebaseApp.getInstance(), "us-central1"); } /** Returns a reference to the Callable HTTPS trigger with the given name. */ @NonNull public HttpsCallableReference getHttpsCallable(@NonNull String name) { return new HttpsCallableReference(this, name); } /** * Returns the URL for a particular function. * * @param function The name of the function. * @return The URL. */ @VisibleForTesting URL getURL(String function) { EmulatedServiceSettings emulatorSettings = this.emulatorSettings; if (emulatorSettings != null) { urlFormat = "http://" + emulatorSettings.getHost() + ":" + emulatorSettings.getPort() + "/%2$s/%1$s/%3$s"; } String str = String.format(urlFormat, region, projectId, function); try { return new URL(str); } catch (MalformedURLException mfe) { throw new IllegalStateException(mfe); } } /** @deprecated see {@link #useEmulator(String, int)} */ public void useFunctionsEmulator(@NonNull String origin) { Preconditions.checkNotNull(origin, "origin cannot be null"); urlFormat = origin + "/%2$s/%1$s/%3$s"; } /** * Modify this FirebaseFunctions instance to communicate with the Cloud Functions emulator. * * <p>Note: this must be called before this instance has been used to do any operations. * * @param host the emulator host (ex: 10.0.2.2) * @param port the emulator port (ex: 5001) */ public void useEmulator(@NonNull String host, int port) { this.emulatorSettings = new EmulatedServiceSettings(host, port); } /** * Calls a Callable HTTPS trigger endpoint. * * @param name The name of the HTTPS trigger. * @param data Parameters to pass to the function. Can be anything encodable as JSON. * @return A Task that will be completed when the request is complete. */ Task<HttpsCallableResult> call(String name, @Nullable Object data, HttpsCallOptions options) { return providerInstalled .getTask() .continueWithTask(task -> contextProvider.getContext()) .continueWithTask( task -> { if (!task.isSuccessful()) { return Tasks.forException(task.getException()); } HttpsCallableContext context = task.getResult(); return call(name, data, context, options); }); } /** * Calls a Callable HTTPS trigger endpoint. * * @param name The name of the HTTPS trigger. * @param data Parameters to pass to the function. Can be anything encodable as JSON. * @param context Metadata to supply with the function call. * @return A Task that will be completed when the request is complete. */ private Task<HttpsCallableResult> call( @NonNull String name, @Nullable Object data, HttpsCallableContext context, HttpsCallOptions options) { Preconditions.checkNotNull(name, "name cannot be null"); URL url = getURL(name); Map<String, Object> body = new HashMap<>(); Object encoded = serializer.encode(data); body.put("data", encoded); JSONObject bodyJSON = new JSONObject(body); MediaType contentType = MediaType.parse("application/json"); RequestBody requestBody = RequestBody.create(contentType, bodyJSON.toString()); Request.Builder request = new Request.Builder().url(url).post(requestBody); if (context.getAuthToken() != null) { request = request.header("Authorization", "Bearer " + context.getAuthToken()); } if (context.getInstanceIdToken() != null) { request = request.header("Firebase-Instance-ID-Token", context.getInstanceIdToken()); } OkHttpClient callClient = options.apply(client); Call call = callClient.newCall(request.build()); TaskCompletionSource<HttpsCallableResult> tcs = new TaskCompletionSource<>(); call.enqueue( new Callback() { @Override public void onFailure(Call ignored, IOException e) { if (e instanceof InterruptedIOException) { FirebaseFunctionsException exception = new FirebaseFunctionsException( Code.DEADLINE_EXCEEDED.name(), Code.DEADLINE_EXCEEDED, null, e); tcs.setException(exception); } else { FirebaseFunctionsException exception = new FirebaseFunctionsException(Code.INTERNAL.name(), Code.INTERNAL, null, e); tcs.setException(exception); } } @Override public void onResponse(Call ignored, Response response) throws IOException { Code code = Code.fromHttpStatus(response.code()); String body = response.body().string(); FirebaseFunctionsException exception = FirebaseFunctionsException.fromResponse(code, body, serializer); if (exception != null) { tcs.setException(exception); return; } JSONObject bodyJSON; try { bodyJSON = new JSONObject(body); } catch (JSONException je) { Exception e = new FirebaseFunctionsException( "Response is not valid JSON object.", Code.INTERNAL, null, je); tcs.setException(e); return; } Object dataJSON = bodyJSON.opt("data"); // TODO: Allow "result" instead of "data" for now, for backwards compatibility. if (dataJSON == null) { dataJSON = bodyJSON.opt("result"); } if (dataJSON == null) { Exception e = new FirebaseFunctionsException( "Response is missing data field.", Code.INTERNAL, null); tcs.setException(e); return; } HttpsCallableResult result = new HttpsCallableResult(serializer.decode(dataJSON)); tcs.setResult(result); } }); return tcs.getTask(); } }
package seedu.address.logic.commands; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; import static seedu.address.logic.parser.CliSyntax.PREFIX_ADDRESS; import static seedu.address.logic.parser.CliSyntax.PREFIX_BIRTHDAY; import static seedu.address.logic.parser.CliSyntax.PREFIX_EMAIL; import static seedu.address.logic.parser.CliSyntax.PREFIX_NAME; import static seedu.address.logic.parser.CliSyntax.PREFIX_PHONE; import static seedu.address.logic.parser.CliSyntax.PREFIX_TAG; import static seedu.address.testutil.Assert.assertThrows; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import seedu.address.commons.core.index.Index; import seedu.address.logic.commands.exceptions.CommandException; import seedu.address.model.AddressBook; import seedu.address.model.Model; import seedu.address.model.group.Group; import seedu.address.model.person.NameContainsKeywordsPredicate; import seedu.address.model.person.Person; import seedu.address.testutil.EditPersonDescriptorBuilder; /** * Contains helper methods for testing commands. */ public class CommandTestUtil { public static final String VALID_NAME_AMY = "Amy Bee"; public static final String VALID_NAME_BOB = "Bob Choo"; public static final String VALID_PHONE_AMY = "11111111"; public static final String VALID_PHONE_BOB = "22222222"; public static final String VALID_EMAIL_AMY = "amy@example.com"; public static final String VALID_EMAIL_BOB = "bob@example.com"; public static final String VALID_ADDRESS_AMY = "Block 312, Amy Street 1"; public static final String VALID_ADDRESS_BOB = "Block 123, Bobby Street 3"; public static final String VALID_BIRTHDAY_AMY = "01-01-2000"; public static final String VALID_BIRTHDAY_BOB = "05-05-1980"; public static final String VALID_TAG_HUSBAND = "husband"; public static final String VALID_TAG_FRIEND = "friend"; public static final String NAME_DESC_AMY = " " + PREFIX_NAME + VALID_NAME_AMY; public static final String NAME_DESC_BOB = " " + PREFIX_NAME + VALID_NAME_BOB; public static final String PHONE_DESC_AMY = " " + PREFIX_PHONE + VALID_PHONE_AMY; public static final String PHONE_DESC_BOB = " " + PREFIX_PHONE + VALID_PHONE_BOB; public static final String EMAIL_DESC_AMY = " " + PREFIX_EMAIL + VALID_EMAIL_AMY; public static final String EMAIL_DESC_BOB = " " + PREFIX_EMAIL + VALID_EMAIL_BOB; public static final String ADDRESS_DESC_AMY = " " + PREFIX_ADDRESS + VALID_ADDRESS_AMY; public static final String ADDRESS_DESC_BOB = " " + PREFIX_ADDRESS + VALID_ADDRESS_BOB; public static final String TAG_DESC_FRIEND = " " + PREFIX_TAG + VALID_TAG_FRIEND; public static final String TAG_DESC_HUSBAND = " " + PREFIX_TAG + VALID_TAG_HUSBAND; public static final String BIRTHDAY_DESC_AMY = " " + PREFIX_BIRTHDAY + VALID_BIRTHDAY_AMY; public static final String BIRTHDAY_DESC_BOB = " " + PREFIX_BIRTHDAY + VALID_BIRTHDAY_BOB; public static final String INVALID_NAME_DESC = " " + PREFIX_NAME + "James&"; // '&' not allowed in names public static final String INVALID_PHONE_DESC = " " + PREFIX_PHONE + "911a"; // 'a' not allowed in phones public static final String INVALID_EMAIL_DESC = " " + PREFIX_EMAIL + "bob!yahoo"; // missing '@' symbol public static final String INVALID_ADDRESS_DESC = " " + PREFIX_ADDRESS; // empty string not allowed for addresses public static final String INVALID_TAG_DESC = " " + PREFIX_TAG + "hubby*"; // '*' not allowed in tags public static final String INVALID_BIRTHDAY_DESC = " " + PREFIX_BIRTHDAY + "abc"; // not proper format public static final String PREAMBLE_WHITESPACE = "\t \r \n"; public static final String PREAMBLE_NON_EMPTY = "NonEmptyPreamble"; public static final EditCommand.EditPersonDescriptor DESC_AMY; public static final EditCommand.EditPersonDescriptor DESC_BOB; static { DESC_AMY = new EditPersonDescriptorBuilder().withName(VALID_NAME_AMY) .withPhone(VALID_PHONE_AMY).withEmail(VALID_EMAIL_AMY).withAddress(VALID_ADDRESS_AMY) .withTags(VALID_TAG_FRIEND).build(); DESC_BOB = new EditPersonDescriptorBuilder().withName(VALID_NAME_BOB) .withPhone(VALID_PHONE_BOB).withEmail(VALID_EMAIL_BOB).withAddress(VALID_ADDRESS_BOB) .withTags(VALID_TAG_HUSBAND, VALID_TAG_FRIEND).build(); } /** * Executes the given {@code command}, confirms that <br> * - the returned {@link CommandResult} matches {@code expectedCommandResult} <br> * - the {@code actualModel} matches {@code expectedModel} */ public static void assertCommandSuccess(Command command, Model actualModel, CommandResult expectedCommandResult, Model expectedModel) { try { CommandResult result = command.execute(actualModel); assertEquals(expectedCommandResult, result); assertEquals(expectedModel, actualModel); } catch (CommandException ce) { throw new AssertionError("Execution of command should not fail.", ce); } } /** * Convenience wrapper to {@link #assertCommandSuccess(Command, Model, CommandResult, Model)} * that takes a string {@code expectedMessage}. */ public static void assertCommandSuccess(Command command, Model actualModel, String expectedMessage, Model expectedModel) { CommandResult expectedCommandResult = new CommandResult(expectedMessage); assertCommandSuccess(command, actualModel, expectedCommandResult, expectedModel); } /** * Executes the given {@code command} and confirms that the returned {@link CommandResult} matches * has a message that matches {@code expectedMessage} */ public static void assertCommandSuccess(Command command, Model actualModel, String expectedMessage) { CommandResult expectedCommandResult = new CommandResult(expectedMessage); try { CommandResult result = command.execute(actualModel); assertEquals(expectedCommandResult, result); } catch (CommandException ce) { throw new AssertionError("Execution of command should not fail.", ce); } } /** * Executes the given {@code command}, confirms that <br> * - a {@code CommandException} is thrown <br> * - the CommandException message matches {@code expectedMessage} <br> * - the address book, filtered person list and selected person in {@code actualModel} remain unchanged */ public static void assertCommandFailure(Command command, Model actualModel, String expectedMessage) { // we are unable to defensively copy the model for comparison later, so we can // only do so by copying its components. AddressBook expectedAddressBook = new AddressBook(actualModel.getAddressBook()); List<Person> expectedFilteredList = new ArrayList<>(actualModel.getFilteredPersonList()); assertThrows(CommandException.class, expectedMessage, () -> command.execute(actualModel)); assertEquals(expectedAddressBook, actualModel.getAddressBook()); assertEquals(expectedFilteredList, actualModel.getFilteredPersonList()); } /** * Updates {@code model}'s filtered list to show only the person at the given {@code targetIndex} in the * {@code model}'s address book. */ public static void showPersonAtIndex(Model model, Index targetIndex) { assertTrue(targetIndex.getZeroBased() < model.getFilteredPersonList().size()); Person person = model.getFilteredPersonList().get(targetIndex.getZeroBased()); final String[] splitName = person.getName().fullName.split("\\s+"); model.updateFilteredPersonList(new NameContainsKeywordsPredicate(Arrays.asList(splitName[0]))); assertEquals(1, model.getFilteredPersonList().size()); } /** * Updates {@code model}'s filtered list to show only the persons in the given {@code group} in the * {@code model}'s address book. */ public static void showPersonsWithGroup(Model model, Group group) { assertTrue(model.hasGroup(group)); model.updateFilteredPersonList(p -> group.getPersonNames().contains(p.getName())); } }
/* * Copyright (c) 2008-2022 Haulmont. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package io.jmix.flowui.xml.layout.loader.html.container; import com.vaadin.flow.component.html.Span; public class SpanLoader extends AbstractHtmlContainerLoader<Span> { @Override protected Span createComponent() { return factory.create(Span.class); } }
/* * 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.ignite.internal.processors.rest.protocols.tcp; import java.nio.ByteBuffer; import java.util.function.Consumer; import org.apache.commons.lang3.RandomStringUtils; import org.apache.ignite.internal.processors.rest.client.message.GridClientMessage; import org.apache.ignite.internal.processors.rest.protocols.tcp.redis.GridRedisMessage; import org.junit.Test; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; /** * Test Redis request parser. * @see <a href="https://redis.io/docs/reference/protocol-spec/">Redis protocol specification.</a> */ public class TcpRedisParserSelfTest { /** Test check parser works with the message splitted to several network packets. */ @Test public void testSplitedPacketParse() throws Exception { String cmd = "SET"; String var = "var"; String data = RandomStringUtils.randomAscii(10); String fullMsg = "*3\r\n" + "$" + cmd.length() + "\r\n" + cmd + "\r\n" + "$" + var.length() + "\r\n" + var + "\r\n" + "$" + data.length() + "\r\n" + data + "\r\n"; Consumer<GridClientMessage> checker = m -> { GridRedisMessage msg = (GridRedisMessage)m; assertNotNull(msg); assertEquals(3, msg.fullLength()); assertEquals(3, msg.messageSize()); assertEquals(cmd, msg.aux(0)); assertEquals(var, msg.aux(1)); assertEquals(data, msg.aux(2)); }; for (int i = 1; i < fullMsg.length() - 1; i++) { String packet0 = fullMsg.substring(0, i); String packet1 = fullMsg.substring(i); GridTcpRestParser.ParserState state = new GridTcpRestParser.ParserState(); state.packetType(GridClientPacketType.REDIS); assertNull(GridTcpRestParser.parseRedisPacket(ByteBuffer.wrap(packet0.getBytes()), state)); checker.accept(GridTcpRestParser.parseRedisPacket(ByteBuffer.wrap(packet1.getBytes()), state)); } for (int i = 1; i < fullMsg.length() - 2; i++) { for (int j = i; j < fullMsg.length() - 1; j++) { String packet0 = fullMsg.substring(0, i); String packet1 = fullMsg.substring(i, j); String packet2 = fullMsg.substring(j); GridTcpRestParser.ParserState state = new GridTcpRestParser.ParserState(); state.packetType(GridClientPacketType.REDIS); assertNull(GridTcpRestParser.parseRedisPacket(ByteBuffer.wrap(packet0.getBytes()), state)); assertNull(GridTcpRestParser.parseRedisPacket(ByteBuffer.wrap(packet1.getBytes()), state)); checker.accept(GridTcpRestParser.parseRedisPacket(ByteBuffer.wrap(packet2.getBytes()), state)); } } } }
/* * 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.pets; import android.app.LoaderManager; import android.content.ContentUris; import android.content.CursorLoader; import android.content.Intent; import android.content.Loader; import android.database.Cursor; import android.net.Uri; import android.os.Bundle; import android.support.design.widget.FloatingActionButton; import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.AdapterView; import android.widget.ListView; import com.example.android.pets.data.PetContract.PetEntry; /** * Displays list of pets that were entered and stored in the app. */ public class CatalogActivity extends AppCompatActivity implements LoaderManager.LoaderCallbacks<Cursor> { private static final String LOG_TAG = CatalogActivity.class.getSimpleName(); private static final int PET_LOADER = 0; PetCursorAdapter petCursorAdapter; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_catalog); // Setup FAB to open EditorActivity FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab); fab.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Intent intent = new Intent(CatalogActivity.this, EditorActivity.class); startActivity(intent); } }); ListView petListView = (ListView) findViewById(R.id.list); View emptyView = findViewById(R.id.empty_view); petListView.setEmptyView(emptyView); petCursorAdapter = new PetCursorAdapter(this, null); petListView.setAdapter(petCursorAdapter); petListView.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView<?> adapterView, View view, int position, long id) { Intent intent = new Intent(CatalogActivity.this, EditorActivity.class); Uri currentPetUri = ContentUris.withAppendedId(PetEntry.CONTENT_URI, id); intent.setData(currentPetUri); startActivity(intent); } }); getLoaderManager().initLoader(PET_LOADER, null, this); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu options from the res/menu/menu_catalog.xml file. // This adds menu items to the app bar. getMenuInflater().inflate(R.menu.menu_catalog, menu); return true; } @Override public boolean onOptionsItemSelected(MenuItem item) { // User clicked on a menu option in the app bar overflow menu switch (item.getItemId()) { // Respond to a click on the "Insert dummy data" menu option case R.id.action_insert_dummy_data: return true; // Respond to a click on the "Delete all entries" menu option case R.id.action_delete_all_entries: deleteAllPets(); return true; } return super.onOptionsItemSelected(item); } @Override public Loader<Cursor> onCreateLoader(int id, Bundle bundle) { String[] projection = { PetEntry._ID, PetEntry.COLUMN_PET_NAME, PetEntry.COLUMN_PET_BREED }; return new CursorLoader(this, PetEntry.CONTENT_URI, projection, null, null, null); } @Override public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) { petCursorAdapter.swapCursor(cursor); } @Override public void onLoaderReset(Loader<Cursor> loader) { petCursorAdapter.swapCursor(null); } private void deleteAllPets() { int rowsDeleted = getContentResolver().delete(PetEntry.CONTENT_URI, null, null); Log.v(LOG_TAG, rowsDeleted + " rows deleted from pet database."); } }
package ca.uhn.fhir.jpa.dao; import ca.uhn.fhir.context.*; import ca.uhn.fhir.jpa.dao.data.*; import ca.uhn.fhir.jpa.dao.index.IdHelperService; import ca.uhn.fhir.jpa.dao.index.ResourceIndexedSearchParams; import ca.uhn.fhir.jpa.dao.index.SearchParamExtractorService; import ca.uhn.fhir.jpa.entity.*; import ca.uhn.fhir.jpa.search.ISearchCoordinatorSvc; import ca.uhn.fhir.jpa.search.PersistedJpaBundleProvider; import ca.uhn.fhir.jpa.sp.ISearchParamPresenceSvc; import ca.uhn.fhir.jpa.term.IHapiTerminologySvc; import ca.uhn.fhir.jpa.util.DeleteConflict; import ca.uhn.fhir.jpa.util.ExpungeOptions; import ca.uhn.fhir.jpa.util.ExpungeOutcome; import ca.uhn.fhir.jpa.util.JpaConstants; import ca.uhn.fhir.model.api.IResource; import ca.uhn.fhir.model.api.ResourceMetadataKeyEnum; import ca.uhn.fhir.model.api.Tag; import ca.uhn.fhir.model.api.TagList; import ca.uhn.fhir.model.base.composite.BaseCodingDt; import ca.uhn.fhir.model.base.composite.BaseResourceReferenceDt; import ca.uhn.fhir.model.primitive.IdDt; import ca.uhn.fhir.model.primitive.InstantDt; import ca.uhn.fhir.model.primitive.StringDt; import ca.uhn.fhir.model.valueset.BundleEntryTransactionMethodEnum; import ca.uhn.fhir.parser.DataFormatException; import ca.uhn.fhir.parser.IParser; import ca.uhn.fhir.parser.LenientErrorHandler; import ca.uhn.fhir.rest.api.Constants; import ca.uhn.fhir.rest.api.RestOperationTypeEnum; import ca.uhn.fhir.rest.api.RestSearchParameterTypeEnum; import ca.uhn.fhir.rest.api.server.IBundleProvider; import ca.uhn.fhir.rest.api.server.RequestDetails; import ca.uhn.fhir.rest.server.exceptions.*; import ca.uhn.fhir.rest.server.interceptor.IServerInterceptor; import ca.uhn.fhir.rest.server.interceptor.IServerInterceptor.ActionRequestDetails; import ca.uhn.fhir.rest.server.interceptor.IServerOperationInterceptor; import ca.uhn.fhir.rest.server.servlet.ServletRequestDetails; import ca.uhn.fhir.util.CoverageIgnore; import ca.uhn.fhir.util.OperationOutcomeUtil; import ca.uhn.fhir.util.StopWatch; import ca.uhn.fhir.util.XmlUtil; import com.google.common.annotations.VisibleForTesting; import com.google.common.base.Charsets; import com.google.common.collect.Lists; import com.google.common.collect.Sets; import com.google.common.hash.HashFunction; import com.google.common.hash.Hashing; import org.apache.commons.lang3.NotImplementedException; import org.apache.commons.lang3.Validate; import org.hibernate.Session; import org.hibernate.internal.SessionImpl; import org.hl7.fhir.instance.model.api.*; import org.hl7.fhir.r4.model.Bundle.HTTPVerb; import org.springframework.beans.BeansException; import org.springframework.beans.factory.BeanFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContextAware; import org.springframework.data.domain.PageRequest; import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Slice; import org.springframework.data.domain.SliceImpl; import org.springframework.stereotype.Repository; import org.springframework.transaction.PlatformTransactionManager; import org.springframework.transaction.support.TransactionTemplate; import javax.persistence.*; import javax.persistence.criteria.CriteriaBuilder; import javax.persistence.criteria.CriteriaQuery; import javax.persistence.criteria.Predicate; import javax.persistence.criteria.Root; import javax.xml.stream.events.Characters; import javax.xml.stream.events.XMLEvent; import java.io.CharArrayWriter; import java.text.Normalizer; import java.util.*; import java.util.Map.Entry; import java.util.concurrent.atomic.AtomicInteger; import static org.apache.commons.lang3.StringUtils.*; /* * #%L * HAPI FHIR JPA Server * %% * Copyright (C) 2014 - 2018 University Health Network * %% * 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. * #L% */ @SuppressWarnings("WeakerAccess") @Repository public abstract class BaseHapiFhirDao<T extends IBaseResource> implements IDao, ApplicationContextAware { public static final long INDEX_STATUS_INDEXED = 1L; public static final long INDEX_STATUS_INDEXING_FAILED = 2L; public static final String NS_JPA_PROFILE = "https://github.com/jamesagnew/hapi-fhir/ns/jpa/profile"; public static final String OO_SEVERITY_ERROR = "error"; public static final String OO_SEVERITY_INFO = "information"; public static final String OO_SEVERITY_WARN = "warning"; public static final String UCUM_NS = "http://unitsofmeasure.org"; private static final org.slf4j.Logger ourLog = org.slf4j.LoggerFactory.getLogger(BaseHapiFhirDao.class); private static final Map<FhirVersionEnum, FhirContext> ourRetrievalContexts = new HashMap<FhirVersionEnum, FhirContext>(); private static final String PROCESSING_SUB_REQUEST = "BaseHapiFhirDao.processingSubRequest"; private static boolean ourValidationDisabledForUnitTest; private static boolean ourDisableIncrementOnUpdateForUnitTest = false; @PersistenceContext(type = PersistenceContextType.TRANSACTION) protected EntityManager myEntityManager; @Autowired protected IdHelperService myIdHelperService; @Autowired protected IForcedIdDao myForcedIdDao; @Autowired protected ISearchResultDao mySearchResultDao; @Autowired(required = false) protected IFulltextSearchSvc myFulltextSearchSvc; @Autowired() protected IResourceIndexedSearchParamUriDao myResourceIndexedSearchParamUriDao; @Autowired() protected IResourceIndexedSearchParamStringDao myResourceIndexedSearchParamStringDao; @Autowired() protected IResourceIndexedSearchParamTokenDao myResourceIndexedSearchParamTokenDao; @Autowired protected IResourceLinkDao myResourceLinkDao; @Autowired() protected IResourceIndexedSearchParamDateDao myResourceIndexedSearchParamDateDao; @Autowired() protected IResourceIndexedSearchParamQuantityDao myResourceIndexedSearchParamQuantityDao; @Autowired() protected IResourceIndexedSearchParamCoordsDao myResourceIndexedSearchParamCoordsDao; @Autowired() protected IResourceIndexedSearchParamNumberDao myResourceIndexedSearchParamNumberDao; @Autowired protected ISearchCoordinatorSvc mySearchCoordinatorSvc; @Autowired protected ISearchParamRegistry mySerarchParamRegistry; @Autowired() protected IHapiTerminologySvc myTerminologySvc; @Autowired protected IResourceHistoryTableDao myResourceHistoryTableDao; @Autowired protected IResourceHistoryTagDao myResourceHistoryTagDao; @Autowired protected IResourceTableDao myResourceTableDao; @Autowired protected IResourceTagDao myResourceTagDao; @Autowired protected IResourceSearchViewDao myResourceViewDao; @Autowired protected ISearchParamRegistry mySearchParamRegistry; @Autowired(required = true) private DaoConfig myConfig; private FhirContext myContext; @Autowired private PlatformTransactionManager myPlatformTransactionManager; @Autowired private ISearchDao mySearchDao; @Autowired private ISearchParamExtractor mySearchParamExtractor; @Autowired private ISearchParamPresenceSvc mySearchParamPresenceSvc; //@Autowired //private ISearchResultDao mySearchResultDao; @Autowired private IResourceIndexedCompositeStringUniqueDao myResourceIndexedCompositeStringUniqueDao; @Autowired private BeanFactory beanFactory; @Autowired private DaoRegistry myDaoRegistry; @Autowired private MatchUrlService myMatchUrlService; @Autowired private SearchParamExtractorService mySearchParamExtractorService; private ApplicationContext myApplicationContext; /** * Returns the newly created forced ID. If the entity already had a forced ID, or if * none was created, returns null. */ protected ForcedId createForcedIdIfNeeded(ResourceTable theEntity, IIdType theId, boolean theCreateForPureNumericIds) { if (theId.isEmpty() == false && theId.hasIdPart() && theEntity.getForcedId() == null) { if (!theCreateForPureNumericIds && IdHelperService.isValidPid(theId)) { return null; } ForcedId fid = new ForcedId(); fid.setResourceType(theEntity.getResourceType()); fid.setForcedId(theId.getIdPart()); fid.setResource(theEntity); theEntity.setForcedId(fid); return fid; } return null; } protected ExpungeOutcome doExpunge(String theResourceName, Long theResourceId, Long theVersion, ExpungeOptions theExpungeOptions) { TransactionTemplate txTemplate = new TransactionTemplate(myPlatformTransactionManager); txTemplate.setPropagationBehavior(TransactionTemplate.PROPAGATION_REQUIRES_NEW); ourLog.info("Expunge: ResourceName[{}] Id[{}] Version[{}] Options[{}]", theResourceName, theResourceId, theVersion, theExpungeOptions); if (!getConfig().isExpungeEnabled()) { throw new MethodNotAllowedException("$expunge is not enabled on this server"); } AtomicInteger remainingCount = new AtomicInteger(theExpungeOptions.getLimit()); if (theResourceName == null && theResourceId == null && theVersion == null) { if (theExpungeOptions.isExpungeEverything()) { doExpungeEverything(); } } if (theExpungeOptions.isExpungeDeletedResources() && theVersion == null) { /* * Delete historical versions of deleted resources */ Pageable page = PageRequest.of(0, remainingCount.get()); Slice<Long> resourceIds = txTemplate.execute(t -> { if (theResourceId != null) { Slice<Long> ids = myResourceTableDao.findIdsOfDeletedResourcesOfType(page, theResourceId, theResourceName); ourLog.info("Expunging {} deleted resources of type[{}] and ID[{}]", ids.getNumberOfElements(), theResourceName, theResourceId); return ids; } else { if (theResourceName != null) { Slice<Long> ids = myResourceTableDao.findIdsOfDeletedResourcesOfType(page, theResourceName); ourLog.info("Expunging {} deleted resources of type[{}]", ids.getNumberOfElements(), theResourceName); return ids; } else { Slice<Long> ids = myResourceTableDao.findIdsOfDeletedResources(page); ourLog.info("Expunging {} deleted resources (all types)", ids.getNumberOfElements(), theResourceName); return ids; } } }); /* * Delete any search result cache entries pointing to the given resource. We do * this in batches to avoid sending giant batches of parameters to the DB */ List<List<Long>> partitions = Lists.partition(resourceIds.getContent(), 800); for (List<Long> nextPartition : partitions) { ourLog.info("Expunging any search results pointing to {} resources", nextPartition.size()); txTemplate.execute(t -> { mySearchResultDao.deleteByResourceIds(nextPartition); return null; }); } /* * Delete historical versions */ for (Long next : resourceIds) { txTemplate.execute(t -> { expungeHistoricalVersionsOfId(next, remainingCount); if (remainingCount.get() <= 0) { ourLog.debug("Expunge limit has been hit - Stopping operation"); return toExpungeOutcome(theExpungeOptions, remainingCount); } return null; }); } /* * Delete current versions of deleted resources */ for (Long next : resourceIds) { txTemplate.execute(t -> { expungeCurrentVersionOfResource(next, remainingCount); return null; }); } } if (theExpungeOptions.isExpungeOldVersions()) { /* * Delete historical versions of non-deleted resources */ Pageable page = PageRequest.of(0, remainingCount.get()); Slice<Long> historicalIds = txTemplate.execute(t -> { if (theResourceId != null && theVersion != null) { return toSlice(myResourceHistoryTableDao.findForIdAndVersion(theResourceId, theVersion)); } else { if (theResourceName != null) { return myResourceHistoryTableDao.findIdsOfPreviousVersionsOfResources(page, theResourceName); } else { return myResourceHistoryTableDao.findIdsOfPreviousVersionsOfResources(page); } } }); for (Long next : historicalIds) { txTemplate.execute(t -> { expungeHistoricalVersion(next); if (remainingCount.decrementAndGet() <= 0) { return toExpungeOutcome(theExpungeOptions, remainingCount); } return null; }); } } return toExpungeOutcome(theExpungeOptions, remainingCount); } private void doExpungeEverything() { ourLog.info("** BEGINNING GLOBAL $expunge **"); TransactionTemplate txTemplate = new TransactionTemplate(myPlatformTransactionManager); txTemplate.setPropagationBehavior(TransactionTemplate.PROPAGATION_REQUIRES_NEW); txTemplate.execute(t -> { doExpungeEverythingQuery("UPDATE " + ResourceHistoryTable.class.getSimpleName() + " d SET d.myForcedId = null"); doExpungeEverythingQuery("UPDATE " + ResourceTable.class.getSimpleName() + " d SET d.myForcedId = null"); doExpungeEverythingQuery("UPDATE " + TermCodeSystem.class.getSimpleName() + " d SET d.myCurrentVersion = null"); return null; }); txTemplate.execute(t -> { doExpungeEverythingQuery("DELETE from " + SearchParamPresent.class.getSimpleName() + " d"); doExpungeEverythingQuery("DELETE from " + ForcedId.class.getSimpleName() + " d"); doExpungeEverythingQuery("DELETE from " + ResourceIndexedSearchParamDate.class.getSimpleName() + " d"); doExpungeEverythingQuery("DELETE from " + ResourceIndexedSearchParamNumber.class.getSimpleName() + " d"); doExpungeEverythingQuery("DELETE from " + ResourceIndexedSearchParamQuantity.class.getSimpleName() + " d"); doExpungeEverythingQuery("DELETE from " + ResourceIndexedSearchParamString.class.getSimpleName() + " d"); doExpungeEverythingQuery("DELETE from " + ResourceIndexedSearchParamToken.class.getSimpleName() + " d"); doExpungeEverythingQuery("DELETE from " + ResourceIndexedSearchParamUri.class.getSimpleName() + " d"); doExpungeEverythingQuery("DELETE from " + ResourceIndexedSearchParamCoords.class.getSimpleName() + " d"); doExpungeEverythingQuery("DELETE from " + ResourceIndexedCompositeStringUnique.class.getSimpleName() + " d"); doExpungeEverythingQuery("DELETE from " + ResourceLink.class.getSimpleName() + " d"); doExpungeEverythingQuery("DELETE from " + SearchResult.class.getSimpleName() + " d"); doExpungeEverythingQuery("DELETE from " + SearchInclude.class.getSimpleName() + " d"); doExpungeEverythingQuery("DELETE from " + TermConceptParentChildLink.class.getSimpleName() + " d"); return null; }); txTemplate.execute(t -> { doExpungeEverythingQuery("DELETE from " + TermConceptMapGroupElementTarget.class.getSimpleName() + " d"); doExpungeEverythingQuery("DELETE from " + TermConceptMapGroupElement.class.getSimpleName() + " d"); doExpungeEverythingQuery("DELETE from " + TermConceptMapGroup.class.getSimpleName() + " d"); doExpungeEverythingQuery("DELETE from " + TermConceptMap.class.getSimpleName() + " d"); return null; }); txTemplate.execute(t -> { doExpungeEverythingQuery("DELETE from " + TermConceptProperty.class.getSimpleName() + " d"); doExpungeEverythingQuery("DELETE from " + TermConceptDesignation.class.getSimpleName() + " d"); doExpungeEverythingQuery("DELETE from " + TermConcept.class.getSimpleName() + " d"); for (TermCodeSystem next : myEntityManager.createQuery("SELECT c FROM " + TermCodeSystem.class.getName() + " c", TermCodeSystem.class).getResultList()) { next.setCurrentVersion(null); myEntityManager.merge(next); } return null; }); txTemplate.execute(t -> { doExpungeEverythingQuery("DELETE from " + TermCodeSystemVersion.class.getSimpleName() + " d"); doExpungeEverythingQuery("DELETE from " + TermCodeSystem.class.getSimpleName() + " d"); return null; }); txTemplate.execute(t -> { doExpungeEverythingQuery("DELETE from " + SubscriptionTable.class.getSimpleName() + " d"); doExpungeEverythingQuery("DELETE from " + ResourceHistoryTag.class.getSimpleName() + " d"); doExpungeEverythingQuery("DELETE from " + ResourceTag.class.getSimpleName() + " d"); doExpungeEverythingQuery("DELETE from " + TagDefinition.class.getSimpleName() + " d"); doExpungeEverythingQuery("DELETE from " + ResourceHistoryTable.class.getSimpleName() + " d"); doExpungeEverythingQuery("DELETE from " + ResourceTable.class.getSimpleName() + " d"); doExpungeEverythingQuery("DELETE from " + org.hibernate.search.jpa.Search.class.getSimpleName() + " d"); return null; }); ourLog.info("** COMPLETED GLOBAL $expunge **"); } private void doExpungeEverythingQuery(String theQuery) { StopWatch sw = new StopWatch(); int outcome = myEntityManager.createQuery(theQuery).executeUpdate(); ourLog.info("Query affected {} rows in {}: {}", outcome, sw.toString(), theQuery); } private void expungeCurrentVersionOfResource(Long theResourceId, AtomicInteger theRemainingCount) { ResourceTable resource = myResourceTableDao.findById(theResourceId).orElseThrow(IllegalStateException::new); ResourceHistoryTable currentVersion = myResourceHistoryTableDao.findForIdAndVersion(resource.getId(), resource.getVersion()); if (currentVersion != null) { expungeHistoricalVersion(currentVersion.getId()); } ourLog.info("Expunging current version of resource {}", resource.getIdDt().getValue()); myResourceIndexedSearchParamUriDao.deleteAll(resource.getParamsUri()); myResourceIndexedSearchParamCoordsDao.deleteAll(resource.getParamsCoords()); myResourceIndexedSearchParamDateDao.deleteAll(resource.getParamsDate()); myResourceIndexedSearchParamNumberDao.deleteAll(resource.getParamsNumber()); myResourceIndexedSearchParamQuantityDao.deleteAll(resource.getParamsQuantity()); myResourceIndexedSearchParamStringDao.deleteAll(resource.getParamsString()); myResourceIndexedSearchParamTokenDao.deleteAll(resource.getParamsToken()); myResourceLinkDao.deleteAll(resource.getResourceLinks()); myResourceLinkDao.deleteAll(resource.getResourceLinksAsTarget()); myResourceTagDao.deleteAll(resource.getTags()); resource.getTags().clear(); if (resource.getForcedId() != null) { ForcedId forcedId = resource.getForcedId(); resource.setForcedId(null); myResourceTableDao.saveAndFlush(resource); myIdHelperService.delete(forcedId); } myResourceTableDao.delete(resource); theRemainingCount.decrementAndGet(); } protected void expungeHistoricalVersion(Long theNextVersionId) { ResourceHistoryTable version = myResourceHistoryTableDao.findById(theNextVersionId).orElseThrow(IllegalArgumentException::new); ourLog.info("Deleting resource version {}", version.getIdDt().getValue()); myResourceHistoryTagDao.deleteAll(version.getTags()); myResourceHistoryTableDao.delete(version); } protected void expungeHistoricalVersionsOfId(Long theResourceId, AtomicInteger theRemainingCount) { ResourceTable resource = myResourceTableDao.findById(theResourceId).orElseThrow(IllegalArgumentException::new); Pageable page = PageRequest.of(0, theRemainingCount.get()); Slice<Long> versionIds = myResourceHistoryTableDao.findForResourceId(page, resource.getId(), resource.getVersion()); ourLog.debug("Found {} versions of resource {} to expunge", versionIds.getNumberOfElements(), resource.getIdDt().getValue()); for (Long nextVersionId : versionIds) { expungeHistoricalVersion(nextVersionId); if (theRemainingCount.decrementAndGet() <= 0) { return; } } } private void extractTagsHapi(IResource theResource, ResourceTable theEntity, Set<ResourceTag> allDefs) { TagList tagList = ResourceMetadataKeyEnum.TAG_LIST.get(theResource); if (tagList != null) { for (Tag next : tagList) { TagDefinition def = getTagOrNull(TagTypeEnum.TAG, next.getScheme(), next.getTerm(), next.getLabel()); if (def != null) { ResourceTag tag = theEntity.addTag(def); allDefs.add(tag); theEntity.setHasTags(true); } } } List<BaseCodingDt> securityLabels = ResourceMetadataKeyEnum.SECURITY_LABELS.get(theResource); if (securityLabels != null) { for (BaseCodingDt next : securityLabels) { TagDefinition def = getTagOrNull(TagTypeEnum.SECURITY_LABEL, next.getSystemElement().getValue(), next.getCodeElement().getValue(), next.getDisplayElement().getValue()); if (def != null) { ResourceTag tag = theEntity.addTag(def); allDefs.add(tag); theEntity.setHasTags(true); } } } List<IdDt> profiles = ResourceMetadataKeyEnum.PROFILES.get(theResource); if (profiles != null) { for (IIdType next : profiles) { TagDefinition def = getTagOrNull(TagTypeEnum.PROFILE, NS_JPA_PROFILE, next.getValue(), null); if (def != null) { ResourceTag tag = theEntity.addTag(def); allDefs.add(tag); theEntity.setHasTags(true); } } } } private void extractTagsRi(IAnyResource theResource, ResourceTable theEntity, Set<ResourceTag> theAllTags) { List<? extends IBaseCoding> tagList = theResource.getMeta().getTag(); if (tagList != null) { for (IBaseCoding next : tagList) { TagDefinition def = getTagOrNull(TagTypeEnum.TAG, next.getSystem(), next.getCode(), next.getDisplay()); if (def != null) { ResourceTag tag = theEntity.addTag(def); theAllTags.add(tag); theEntity.setHasTags(true); } } } List<? extends IBaseCoding> securityLabels = theResource.getMeta().getSecurity(); if (securityLabels != null) { for (IBaseCoding next : securityLabels) { TagDefinition def = getTagOrNull(TagTypeEnum.SECURITY_LABEL, next.getSystem(), next.getCode(), next.getDisplay()); if (def != null) { ResourceTag tag = theEntity.addTag(def); theAllTags.add(tag); theEntity.setHasTags(true); } } } List<? extends IPrimitiveType<String>> profiles = theResource.getMeta().getProfile(); if (profiles != null) { for (IPrimitiveType<String> next : profiles) { TagDefinition def = getTagOrNull(TagTypeEnum.PROFILE, NS_JPA_PROFILE, next.getValue(), null); if (def != null) { ResourceTag tag = theEntity.addTag(def); theAllTags.add(tag); theEntity.setHasTags(true); } } } } private void findMatchingTagIds(String theResourceName, IIdType theResourceId, Set<Long> tagIds, Class<? extends BaseTag> entityClass) { { CriteriaBuilder builder = myEntityManager.getCriteriaBuilder(); CriteriaQuery<Tuple> cq = builder.createTupleQuery(); Root<? extends BaseTag> from = cq.from(entityClass); cq.multiselect(from.get("myTagId").as(Long.class)).distinct(true); if (theResourceName != null) { Predicate typePredicate = builder.equal(from.get("myResourceType"), theResourceName); if (theResourceId != null) { cq.where(typePredicate, builder.equal(from.get("myResourceId"), myIdHelperService.translateForcedIdToPid(theResourceName, theResourceId.getIdPart()))); } else { cq.where(typePredicate); } } TypedQuery<Tuple> query = myEntityManager.createQuery(cq); for (Tuple next : query.getResultList()) { tagIds.add(next.get(0, Long.class)); } } } protected void flushJpaSession() { SessionImpl session = (SessionImpl) myEntityManager.unwrap(Session.class); int insertionCount = session.getActionQueue().numberOfInsertions(); int updateCount = session.getActionQueue().numberOfUpdates(); StopWatch sw = new StopWatch(); myEntityManager.flush(); ourLog.debug("Session flush took {}ms for {} inserts and {} updates", sw.getMillis(), insertionCount, updateCount); } private Set<ResourceTag> getAllTagDefinitions(ResourceTable theEntity) { HashSet<ResourceTag> retVal = Sets.newHashSet(); if (theEntity.isHasTags()) { for (ResourceTag next : theEntity.getTags()) { retVal.add(next); } } return retVal; } protected DaoConfig getConfig() { return myConfig; } public void setConfig(DaoConfig theConfig) { myConfig = theConfig; } @Override public FhirContext getContext() { return myContext; } @Autowired public void setContext(FhirContext theContext) { myContext = theContext; } public FhirContext getContext(FhirVersionEnum theVersion) { Validate.notNull(theVersion, "theVersion must not be null"); synchronized (ourRetrievalContexts) { FhirContext retVal = ourRetrievalContexts.get(theVersion); if (retVal == null) { retVal = new FhirContext(theVersion); ourRetrievalContexts.put(theVersion, retVal); } return retVal; } } @SuppressWarnings("unchecked") public <R extends IBaseResource> IFhirResourceDao<R> getDao(Class<R> theType) { return myDaoRegistry.getResourceDaoIfExists(theType); } protected IFhirResourceDao<?> getDaoOrThrowException(Class<? extends IBaseResource> theClass) { return myDaoRegistry.getDaoOrThrowException(theClass); } protected TagDefinition getTagOrNull(TagTypeEnum theTagType, String theScheme, String theTerm, String theLabel) { if (isBlank(theScheme) && isBlank(theTerm) && isBlank(theLabel)) { return null; } CriteriaBuilder builder = myEntityManager.getCriteriaBuilder(); CriteriaQuery<TagDefinition> cq = builder.createQuery(TagDefinition.class); Root<TagDefinition> from = cq.from(TagDefinition.class); if (isNotBlank(theScheme)) { cq.where( builder.and( builder.equal(from.get("myTagType"), theTagType), builder.equal(from.get("mySystem"), theScheme), builder.equal(from.get("myCode"), theTerm))); } else { cq.where( builder.and( builder.equal(from.get("myTagType"), theTagType), builder.isNull(from.get("mySystem")), builder.equal(from.get("myCode"), theTerm))); } TypedQuery<TagDefinition> q = myEntityManager.createQuery(cq); try { return q.getSingleResult(); } catch (NoResultException e) { TagDefinition retVal = new TagDefinition(theTagType, theScheme, theTerm, theLabel); myEntityManager.persist(retVal); return retVal; } } protected TagList getTags(Class<? extends IBaseResource> theResourceType, IIdType theResourceId) { String resourceName = null; if (theResourceType != null) { resourceName = toResourceName(theResourceType); if (theResourceId != null && theResourceId.hasVersionIdPart()) { IFhirResourceDao<? extends IBaseResource> dao = getDao(theResourceType); BaseHasResource entity = dao.readEntity(theResourceId); TagList retVal = new TagList(); for (BaseTag next : entity.getTags()) { retVal.add(next.getTag().toTag()); } return retVal; } } Set<Long> tagIds = new HashSet<>(); findMatchingTagIds(resourceName, theResourceId, tagIds, ResourceTag.class); findMatchingTagIds(resourceName, theResourceId, tagIds, ResourceHistoryTag.class); if (tagIds.isEmpty()) { return new TagList(); } { CriteriaBuilder builder = myEntityManager.getCriteriaBuilder(); CriteriaQuery<TagDefinition> cq = builder.createQuery(TagDefinition.class); Root<TagDefinition> from = cq.from(TagDefinition.class); cq.where(from.get("myId").in(tagIds)); cq.orderBy(builder.asc(from.get("mySystem")), builder.asc(from.get("myCode"))); TypedQuery<TagDefinition> q = myEntityManager.createQuery(cq); q.setMaxResults(getConfig().getHardTagListLimit()); TagList retVal = new TagList(); for (TagDefinition next : q.getResultList()) { retVal.add(next.toTag()); } return retVal; } } protected IBundleProvider history(String theResourceName, Long theId, Date theSince, Date theUntil) { String resourceName = defaultIfBlank(theResourceName, null); Search search = new Search(); search.setDeleted(false); search.setCreated(new Date()); search.setSearchLastReturned(new Date()); search.setLastUpdated(theSince, theUntil); search.setUuid(UUID.randomUUID().toString()); search.setResourceType(resourceName); search.setResourceId(theId); search.setSearchType(SearchTypeEnum.HISTORY); search.setStatus(SearchStatusEnum.FINISHED); if (theSince != null) { if (resourceName == null) { search.setTotalCount(myResourceHistoryTableDao.countForAllResourceTypes(theSince)); } else if (theId == null) { search.setTotalCount(myResourceHistoryTableDao.countForResourceType(resourceName, theSince)); } else { search.setTotalCount(myResourceHistoryTableDao.countForResourceInstance(theId, theSince)); } } else { if (resourceName == null) { search.setTotalCount(myResourceHistoryTableDao.countForAllResourceTypes()); } else if (theId == null) { search.setTotalCount(myResourceHistoryTableDao.countForResourceType(resourceName)); } else { search.setTotalCount(myResourceHistoryTableDao.countForResourceInstance(theId)); } } search = mySearchDao.save(search); return new PersistedJpaBundleProvider(search.getUuid(), this); } void incrementId(T theResource, ResourceTable theSavedEntity, IIdType theResourceId) { String newVersion; long newVersionLong; if (theResourceId == null || theResourceId.getVersionIdPart() == null) { newVersion = "1"; newVersionLong = 1; } else { newVersionLong = theResourceId.getVersionIdPartAsLong() + 1; newVersion = Long.toString(newVersionLong); } IIdType newId = theResourceId.withVersion(newVersion); theResource.getIdElement().setValue(newId.getValue()); theSavedEntity.setVersion(newVersionLong); } @Override public void injectDependenciesIntoBundleProvider(PersistedJpaBundleProvider theProvider) { theProvider.setContext(getContext()); theProvider.setEntityManager(myEntityManager); theProvider.setPlatformTransactionManager(myPlatformTransactionManager); theProvider.setSearchDao(mySearchDao); theProvider.setSearchCoordinatorSvc(mySearchCoordinatorSvc); } public boolean isLogicalReference(IIdType theId) { return LogicalReferenceHelper.isLogicalReference(myConfig, theId); } @Override public SearchBuilder newSearchBuilder() { return beanFactory.getBean(SearchBuilder.class, this); } public void notifyInterceptors(RestOperationTypeEnum theOperationType, ActionRequestDetails theRequestDetails) { if (theRequestDetails.getId() != null && theRequestDetails.getId().hasResourceType() && isNotBlank(theRequestDetails.getResourceType())) { if (theRequestDetails.getId().getResourceType().equals(theRequestDetails.getResourceType()) == false) { throw new InternalErrorException( "Inconsistent server state - Resource types don't match: " + theRequestDetails.getId().getResourceType() + " / " + theRequestDetails.getResourceType()); } } if (theRequestDetails.getUserData().get(PROCESSING_SUB_REQUEST) == Boolean.TRUE) { theRequestDetails.notifyIncomingRequestPreHandled(theOperationType); } List<IServerInterceptor> interceptors = getConfig().getInterceptors(); for (IServerInterceptor next : interceptors) { next.incomingRequestPreHandled(theOperationType, theRequestDetails); } } private void populateResourceIdFromEntity(IBaseResourceEntity theEntity, final IBaseResource theResource) { IIdType id = theEntity.getIdDt(); if (getContext().getVersion().getVersion().isRi()) { id = getContext().getVersion().newIdType().setValue(id.getValue()); } theResource.setId(id); } /** * Returns true if the resource has changed (either the contents or the tags) */ protected EncodedResource populateResourceIntoEntity(RequestDetails theRequest, IBaseResource theResource, ResourceTable theEntity, boolean theUpdateHash) { if (theEntity.getResourceType() == null) { theEntity.setResourceType(toResourceName(theResource)); } if (theResource != null) { List<BaseResourceReferenceDt> refs = myContext.newTerser().getAllPopulatedChildElementsOfType(theResource, BaseResourceReferenceDt.class); for (BaseResourceReferenceDt nextRef : refs) { if (nextRef.getReference().isEmpty() == false) { if (nextRef.getReference().hasVersionIdPart()) { nextRef.setReference(nextRef.getReference().toUnqualifiedVersionless()); } } } } byte[] bytes; ResourceEncodingEnum encoding; boolean changed = false; if (theEntity.getDeleted() == null) { encoding = myConfig.getResourceEncoding(); Set<String> excludeElements = ResourceMetaParams.EXCLUDE_ELEMENTS_IN_ENCODED; theEntity.setFhirVersion(myContext.getVersion().getVersion()); bytes = encodeResource(theResource, encoding, excludeElements, myContext); if (theUpdateHash) { HashFunction sha256 = Hashing.sha256(); String hashSha256 = sha256.hashBytes(bytes).toString(); if (hashSha256.equals(theEntity.getHashSha256()) == false) { changed = true; } theEntity.setHashSha256(hashSha256); } Set<ResourceTag> allDefs = new HashSet<>(); Set<ResourceTag> allTagsOld = getAllTagDefinitions(theEntity); if (theResource instanceof IResource) { extractTagsHapi((IResource) theResource, theEntity, allDefs); } else { extractTagsRi((IAnyResource) theResource, theEntity, allDefs); } RuntimeResourceDefinition def = myContext.getResourceDefinition(theResource); if (def.isStandardType() == false) { String profile = def.getResourceProfile(""); if (isNotBlank(profile)) { TagDefinition profileDef = getTagOrNull(TagTypeEnum.PROFILE, NS_JPA_PROFILE, profile, null); if (def != null) { ResourceTag tag = theEntity.addTag(profileDef); allDefs.add(tag); theEntity.setHasTags(true); } } } Set<ResourceTag> allTagsNew = getAllTagDefinitions(theEntity); Set<TagDefinition> allDefsPresent = new HashSet<>(); allTagsNew.forEach(tag -> { // Don't keep duplicate tags if (!allDefsPresent.add(tag.getTag())) { theEntity.getTags().remove(tag); } // Drop any tags that have been removed if (!allDefs.contains(tag)) { if (shouldDroppedTagBeRemovedOnUpdate(theRequest, tag)) { theEntity.getTags().remove(tag); } } }); if (!allTagsOld.equals(allTagsNew)) { changed = true; } theEntity.setHasTags(!allTagsNew.isEmpty()); } else { theEntity.setHashSha256(null); bytes = null; encoding = ResourceEncodingEnum.DEL; } if (changed == false) { if (theEntity.getId() == null) { changed = true; } else { ResourceHistoryTable currentHistoryVersion = myResourceHistoryTableDao.findForIdAndVersion(theEntity.getId(), theEntity.getVersion()); if (currentHistoryVersion == null || currentHistoryVersion.getResource() == null) { changed = true; } else { changed = !Arrays.equals(currentHistoryVersion.getResource(), bytes); } } } EncodedResource retVal = new EncodedResource(); retVal.setEncoding(encoding); retVal.setResource(bytes); retVal.setChanged(changed); return retVal; } @SuppressWarnings("unchecked") private <R extends IBaseResource> R populateResourceMetadataHapi(Class<R> theResourceType, IBaseResourceEntity theEntity, Collection<? extends BaseTag> theTagList, boolean theForHistoryOperation, IResource res) { R retVal = (R) res; if (theEntity.getDeleted() != null) { res = (IResource) myContext.getResourceDefinition(theResourceType).newInstance(); retVal = (R) res; ResourceMetadataKeyEnum.DELETED_AT.put(res, new InstantDt(theEntity.getDeleted())); if (theForHistoryOperation) { ResourceMetadataKeyEnum.ENTRY_TRANSACTION_METHOD.put(res, BundleEntryTransactionMethodEnum.DELETE); } } else if (theForHistoryOperation) { /* * If the create and update times match, this was when the resource was created so we should mark it as a POST. Otherwise, it's a PUT. */ Date published = theEntity.getPublished().getValue(); Date updated = theEntity.getUpdated().getValue(); if (published.equals(updated)) { ResourceMetadataKeyEnum.ENTRY_TRANSACTION_METHOD.put(res, BundleEntryTransactionMethodEnum.POST); } else { ResourceMetadataKeyEnum.ENTRY_TRANSACTION_METHOD.put(res, BundleEntryTransactionMethodEnum.PUT); } } res.setId(theEntity.getIdDt()); ResourceMetadataKeyEnum.VERSION.put(res, Long.toString(theEntity.getVersion())); ResourceMetadataKeyEnum.PUBLISHED.put(res, theEntity.getPublished()); ResourceMetadataKeyEnum.UPDATED.put(res, theEntity.getUpdated()); IDao.RESOURCE_PID.put(res, theEntity.getId()); Collection<? extends BaseTag> tags = theTagList; if (theEntity.isHasTags()) { TagList tagList = new TagList(); List<IBaseCoding> securityLabels = new ArrayList<>(); List<IdDt> profiles = new ArrayList<>(); for (BaseTag next : tags) { switch (next.getTag().getTagType()) { case PROFILE: profiles.add(new IdDt(next.getTag().getCode())); break; case SECURITY_LABEL: IBaseCoding secLabel = (IBaseCoding) myContext.getVersion().newCodingDt(); secLabel.setSystem(next.getTag().getSystem()); secLabel.setCode(next.getTag().getCode()); secLabel.setDisplay(next.getTag().getDisplay()); securityLabels.add(secLabel); break; case TAG: tagList.add(new Tag(next.getTag().getSystem(), next.getTag().getCode(), next.getTag().getDisplay())); break; } } if (tagList.size() > 0) { ResourceMetadataKeyEnum.TAG_LIST.put(res, tagList); } if (securityLabels.size() > 0) { ResourceMetadataKeyEnum.SECURITY_LABELS.put(res, toBaseCodingList(securityLabels)); } if (profiles.size() > 0) { ResourceMetadataKeyEnum.PROFILES.put(res, profiles); } } return retVal; } @SuppressWarnings("unchecked") private <R extends IBaseResource> R populateResourceMetadataRi(Class<R> theResourceType, IBaseResourceEntity theEntity, Collection<? extends BaseTag> theTagList, boolean theForHistoryOperation, IAnyResource res) { R retVal = (R) res; if (theEntity.getDeleted() != null) { res = (IAnyResource) myContext.getResourceDefinition(theResourceType).newInstance(); retVal = (R) res; ResourceMetadataKeyEnum.DELETED_AT.put(res, new InstantDt(theEntity.getDeleted())); if (theForHistoryOperation) { ResourceMetadataKeyEnum.ENTRY_TRANSACTION_METHOD.put(res, HTTPVerb.DELETE.toCode()); } } else if (theForHistoryOperation) { /* * If the create and update times match, this was when the resource was created so we should mark it as a POST. Otherwise, it's a PUT. */ Date published = theEntity.getPublished().getValue(); Date updated = theEntity.getUpdated().getValue(); if (published.equals(updated)) { ResourceMetadataKeyEnum.ENTRY_TRANSACTION_METHOD.put(res, HTTPVerb.POST.toCode()); } else { ResourceMetadataKeyEnum.ENTRY_TRANSACTION_METHOD.put(res, HTTPVerb.PUT.toCode()); } } res.getMeta().getTag().clear(); res.getMeta().getProfile().clear(); res.getMeta().getSecurity().clear(); res.getMeta().setLastUpdated(null); res.getMeta().setVersionId(null); populateResourceIdFromEntity(theEntity, res); res.getMeta().setLastUpdated(theEntity.getUpdatedDate()); IDao.RESOURCE_PID.put(res, theEntity.getId()); Collection<? extends BaseTag> tags = theTagList; if (theEntity.isHasTags()) { for (BaseTag next : tags) { switch (next.getTag().getTagType()) { case PROFILE: res.getMeta().addProfile(next.getTag().getCode()); break; case SECURITY_LABEL: IBaseCoding sec = res.getMeta().addSecurity(); sec.setSystem(next.getTag().getSystem()); sec.setCode(next.getTag().getCode()); sec.setDisplay(next.getTag().getDisplay()); break; case TAG: IBaseCoding tag = res.getMeta().addTag(); tag.setSystem(next.getTag().getSystem()); tag.setCode(next.getTag().getCode()); tag.setDisplay(next.getTag().getDisplay()); break; } } } return retVal; } /** * Subclasses may override to provide behaviour. Called when a pre-existing resource has been updated in the database * * @param theEntity The resource */ protected void postDelete(ResourceTable theEntity) { // nothing } /** * Subclasses may override to provide behaviour. Called when a resource has been inserted into the database for the first time. * * @param theEntity The entity being updated (Do not modify the entity! Undefined behaviour will occur!) * @param theResource The resource being persisted */ protected void postPersist(ResourceTable theEntity, T theResource) { // nothing } /** * Subclasses may override to provide behaviour. Called when a pre-existing resource has been updated in the database * * @param theEntity The resource * @param theResource The resource being persisted */ protected void postUpdate(ResourceTable theEntity, T theResource) { // nothing } @CoverageIgnore public BaseHasResource readEntity(IIdType theValueId) { throw new NotImplementedException(""); } @Override public void setApplicationContext(ApplicationContext theApplicationContext) throws BeansException { /* * We do a null check here because Smile's module system tries to * initialize the application context twice if two modules depend on * the persistence module. The second time sets the dependency's appctx. */ if (myApplicationContext == null) { myApplicationContext = theApplicationContext; } } /** * This method is called when an update to an existing resource detects that the resource supplied for update is missing a tag/profile/security label that the currently persisted resource holds. * <p> * The default implementation removes any profile declarations, but leaves tags and security labels in place. Subclasses may choose to override and change this behaviour. * </p> * <p> * See <a href="http://hl7.org/fhir/resource.html#tag-updates">Updates to Tags, Profiles, and Security Labels</a> for a description of the logic that the default behaviour folows. * </p> * * @param theTag The tag * @return Returns <code>true</code> if the tag should be removed */ protected boolean shouldDroppedTagBeRemovedOnUpdate(RequestDetails theRequest, ResourceTag theTag) { Set<TagTypeEnum> metaSnapshotModeTokens = null; if (theRequest != null) { List<String> metaSnapshotMode = theRequest.getHeaders(JpaConstants.HEADER_META_SNAPSHOT_MODE); if (metaSnapshotMode != null && !metaSnapshotMode.isEmpty()) { metaSnapshotModeTokens = new HashSet<>(); for (String nextHeaderValue : metaSnapshotMode) { StringTokenizer tok = new StringTokenizer(nextHeaderValue, ","); while (tok.hasMoreTokens()) { switch (trim(tok.nextToken())) { case "TAG": metaSnapshotModeTokens.add(TagTypeEnum.TAG); break; case "PROFILE": metaSnapshotModeTokens.add(TagTypeEnum.PROFILE); break; case "SECURITY_LABEL": metaSnapshotModeTokens.add(TagTypeEnum.SECURITY_LABEL); break; } } } } } if (metaSnapshotModeTokens == null) { metaSnapshotModeTokens = Collections.singleton(TagTypeEnum.PROFILE); } if (metaSnapshotModeTokens.contains(theTag.getTag().getTagType())) { return true; } return false; } private ExpungeOutcome toExpungeOutcome(ExpungeOptions theExpungeOptions, AtomicInteger theRemainingCount) { return new ExpungeOutcome() .setDeletedCount(theExpungeOptions.getLimit() - theRemainingCount.get()); } @Override public IBaseResource toResource(BaseHasResource theEntity, boolean theForHistoryOperation) { RuntimeResourceDefinition type = myContext.getResourceDefinition(theEntity.getResourceType()); Class<? extends IBaseResource> resourceType = type.getImplementingClass(); return toResource(resourceType, theEntity, null, theForHistoryOperation); } @SuppressWarnings("unchecked") @Override public <R extends IBaseResource> R toResource(Class<R> theResourceType, IBaseResourceEntity theEntity, Collection<ResourceTag> theTagList, boolean theForHistoryOperation) { // 1. get resource, it's encoding and the tags if any byte[] resourceBytes = null; ResourceEncodingEnum resourceEncoding = null; Collection<? extends BaseTag> myTagList = null; if (theEntity instanceof ResourceHistoryTable) { ResourceHistoryTable history = (ResourceHistoryTable) theEntity; resourceBytes = history.getResource(); resourceEncoding = history.getEncoding(); myTagList = history.getTags(); } else if (theEntity instanceof ResourceTable) { ResourceTable resource = (ResourceTable) theEntity; ResourceHistoryTable history = myResourceHistoryTableDao.findForIdAndVersion(theEntity.getId(), theEntity.getVersion()); if (history == null) { return null; } resourceBytes = history.getResource(); resourceEncoding = history.getEncoding(); myTagList = resource.getTags(); } else if (theEntity instanceof ResourceSearchView) { // This is the search View ResourceSearchView myView = (ResourceSearchView) theEntity; resourceBytes = myView.getResource(); resourceEncoding = myView.getEncoding(); if (theTagList == null) myTagList = new HashSet<>(); else myTagList = theTagList; } else { // something wrong return null; } // 2. get The text String resourceText = decodeResource(resourceBytes, resourceEncoding); // 3. Use the appropriate custom type if one is specified in the context Class<R> resourceType = theResourceType; if (myContext.hasDefaultTypeForProfile()) { for (BaseTag nextTag : myTagList) { if (nextTag.getTag().getTagType() == TagTypeEnum.PROFILE) { String profile = nextTag.getTag().getCode(); if (isNotBlank(profile)) { Class<? extends IBaseResource> newType = myContext.getDefaultTypeForProfile(profile); if (newType != null && theResourceType.isAssignableFrom(newType)) { ourLog.debug("Using custom type {} for profile: {}", newType.getName(), profile); resourceType = (Class<R>) newType; break; } } } } } // 4. parse the text to FHIR R retVal; if (resourceEncoding != ResourceEncodingEnum.DEL) { IParser parser = resourceEncoding.newParser(getContext(theEntity.getFhirVersion())); parser.setParserErrorHandler(new LenientErrorHandler(false).setErrorOnInvalidValue(false)); try { retVal = parser.parseResource(resourceType, resourceText); } catch (Exception e) { StringBuilder b = new StringBuilder(); b.append("Failed to parse database resource["); b.append(resourceType); b.append("/"); b.append(theEntity.getIdDt().getIdPart()); b.append(" (pid "); b.append(theEntity.getId()); b.append(", version "); b.append(theEntity.getFhirVersion().name()); b.append("): "); b.append(e.getMessage()); String msg = b.toString(); ourLog.error(msg, e); throw new DataFormatException(msg, e); } } else { retVal = (R) myContext.getResourceDefinition(theEntity.getResourceType()).newInstance(); } // 5. fill MetaData if (retVal instanceof IResource) { IResource res = (IResource) retVal; retVal = populateResourceMetadataHapi(resourceType, theEntity, myTagList, theForHistoryOperation, res); } else { IAnyResource res = (IAnyResource) retVal; retVal = populateResourceMetadataRi(resourceType, theEntity, myTagList, theForHistoryOperation, res); } return retVal; } public String toResourceName(Class<? extends IBaseResource> theResourceType) { return myContext.getResourceDefinition(theResourceType).getName(); } String toResourceName(IBaseResource theResource) { return myContext.getResourceDefinition(theResource).getName(); } private Slice<Long> toSlice(ResourceHistoryTable theVersion) { Validate.notNull(theVersion); return new SliceImpl<>(Collections.singletonList(theVersion.getId())); } @SuppressWarnings("unchecked") protected ResourceTable updateEntity(RequestDetails theRequest, final IBaseResource theResource, ResourceTable theEntity, Date theDeletedTimestampOrNull, boolean thePerformIndexing, boolean theUpdateVersion, Date theUpdateTime, boolean theForceUpdate, boolean theCreateNewHistoryEntry) { Validate.notNull(theEntity); Validate.isTrue(theDeletedTimestampOrNull != null || theResource != null, "Must have either a resource[%s] or a deleted timestamp[%s] for resource PID[%s]", theDeletedTimestampOrNull != null, theResource != null, theEntity.getId()); ourLog.debug("Starting entity update"); /* * This should be the very first thing.. */ if (theResource != null) { if (thePerformIndexing) { if (!ourValidationDisabledForUnitTest) { validateResourceForStorage((T) theResource, theEntity); } } String resourceType = myContext.getResourceDefinition(theResource).getName(); if (isNotBlank(theEntity.getResourceType()) && !theEntity.getResourceType().equals(resourceType)) { throw new UnprocessableEntityException( "Existing resource ID[" + theEntity.getIdDt().toUnqualifiedVersionless() + "] is of type[" + theEntity.getResourceType() + "] - Cannot update with [" + resourceType + "]"); } } if (theEntity.getPublished() == null) { ourLog.debug("Entity has published time: {}", new InstantDt(theUpdateTime)); theEntity.setPublished(theUpdateTime); } ResourceIndexedSearchParams existingParams = new ResourceIndexedSearchParams(theEntity); ResourceIndexedSearchParams newParams = null; EncodedResource changed; if (theDeletedTimestampOrNull != null) { newParams = new ResourceIndexedSearchParams(); theEntity.setDeleted(theDeletedTimestampOrNull); theEntity.setUpdated(theDeletedTimestampOrNull); theEntity.setNarrativeTextParsedIntoWords(null); theEntity.setContentTextParsedIntoWords(null); theEntity.setHashSha256(null); theEntity.setIndexStatus(INDEX_STATUS_INDEXED); changed = populateResourceIntoEntity(theRequest, theResource, theEntity, true); } else { theEntity.setDeleted(null); if (thePerformIndexing) { newParams = new ResourceIndexedSearchParams(); mySearchParamExtractorService.populateFromResource(newParams, this, theUpdateTime, theEntity, theResource, existingParams); changed = populateResourceIntoEntity(theRequest, theResource, theEntity, true); theEntity.setUpdated(theUpdateTime); if (theResource instanceof IResource) { theEntity.setLanguage(((IResource) theResource).getLanguage().getValue()); } else { theEntity.setLanguage(((IAnyResource) theResource).getLanguageElement().getValue()); } newParams.setParamsOn(theEntity); theEntity.setIndexStatus(INDEX_STATUS_INDEXED); populateFullTextFields(myContext, theResource, theEntity); } else { changed = populateResourceIntoEntity(theRequest, theResource, theEntity, false); theEntity.setUpdated(theUpdateTime); // theEntity.setLanguage(theResource.getLanguage().getValue()); theEntity.setIndexStatus(null); } } if (!changed.isChanged() && !theForceUpdate && myConfig.isSuppressUpdatesWithNoChange()) { ourLog.debug("Resource {} has not changed", theEntity.getIdDt().toUnqualified().getValue()); if (theResource != null) { populateResourceIdFromEntity(theEntity, theResource); } theEntity.setUnchangedInCurrentOperation(true); return theEntity; } if (theUpdateVersion) { theEntity.setVersion(theEntity.getVersion() + 1); } /* * Save the resource itself */ if (theEntity.getId() == null) { myEntityManager.persist(theEntity); if (theEntity.getForcedId() != null) { myEntityManager.persist(theEntity.getForcedId()); } postPersist(theEntity, (T) theResource); } else if (theEntity.getDeleted() != null) { theEntity = myEntityManager.merge(theEntity); postDelete(theEntity); } else { theEntity = myEntityManager.merge(theEntity); postUpdate(theEntity, (T) theResource); } /* * Create history entry */ if (theCreateNewHistoryEntry) { final ResourceHistoryTable historyEntry = theEntity.toHistory(); historyEntry.setEncoding(changed.getEncoding()); historyEntry.setResource(changed.getResource()); ourLog.debug("Saving history entry {}", historyEntry.getIdDt()); myResourceHistoryTableDao.save(historyEntry); } /* * Update the "search param present" table which is used for the * ?foo:missing=true queries * * Note that we're only populating this for reference params * because the index tables for all other types have a MISSING column * right on them for handling the :missing queries. We can't use the * index table for resource links (reference indexes) because we index * those by path and not by parameter name. */ if (thePerformIndexing) { Map<String, Boolean> presentSearchParams = new HashMap<>(); for (String nextKey : newParams.getPopulatedResourceLinkParameters()) { presentSearchParams.put(nextKey, Boolean.TRUE); } Set<Entry<String, RuntimeSearchParam>> activeSearchParams = mySearchParamRegistry.getActiveSearchParams(theEntity.getResourceType()).entrySet(); for (Entry<String, RuntimeSearchParam> nextSpEntry : activeSearchParams) { if (nextSpEntry.getValue().getParamType() == RestSearchParameterTypeEnum.REFERENCE) { if (!presentSearchParams.containsKey(nextSpEntry.getKey())) { presentSearchParams.put(nextSpEntry.getKey(), Boolean.FALSE); } } } mySearchParamPresenceSvc.updatePresence(theEntity, presentSearchParams); } /* * Indexing */ if (thePerformIndexing) { mySearchParamExtractorService.removeCommon(newParams, theEntity, existingParams); } // if thePerformIndexing if (theResource != null) { populateResourceIdFromEntity(theEntity, theResource); } return theEntity; } protected ResourceTable updateEntity(RequestDetails theRequest, IBaseResource theResource, ResourceTable entity, Date theDeletedTimestampOrNull, Date theUpdateTime) { return updateEntity(theRequest, theResource, entity, theDeletedTimestampOrNull, true, true, theUpdateTime, false, true); } public ResourceTable updateInternal(RequestDetails theRequest, T theResource, boolean thePerformIndexing, boolean theForceUpdateVersion, RequestDetails theRequestDetails, ResourceTable theEntity, IIdType theResourceId, IBaseResource theOldResource) { // Notify interceptors ActionRequestDetails requestDetails; if (theRequestDetails != null) { requestDetails = new ActionRequestDetails(theRequestDetails, theResource, theResourceId.getResourceType(), theResourceId); notifyInterceptors(RestOperationTypeEnum.UPDATE, requestDetails); } // Notify IServerOperationInterceptors about pre-action call if (theRequestDetails != null) { theRequestDetails.getRequestOperationCallback().resourcePreUpdate(theOldResource, theResource); } for (IServerInterceptor next : getConfig().getInterceptors()) { if (next instanceof IServerOperationInterceptor) { ((IServerOperationInterceptor) next).resourcePreUpdate(theRequestDetails, theOldResource, theResource); } } // Perform update ResourceTable savedEntity = updateEntity(theRequest, theResource, theEntity, null, thePerformIndexing, thePerformIndexing, new Date(), theForceUpdateVersion, thePerformIndexing); /* * If we aren't indexing (meaning we're probably executing a sub-operation within a transaction), * we'll manually increase the version. This is important because we want the updated version number * to be reflected in the resource shared with interceptors */ if (!thePerformIndexing && !savedEntity.isUnchangedInCurrentOperation() && !ourDisableIncrementOnUpdateForUnitTest) { if (theResourceId.hasVersionIdPart() == false) { theResourceId = theResourceId.withVersion(Long.toString(savedEntity.getVersion())); } incrementId(theResource, savedEntity, theResourceId); } // Notify interceptors if (!savedEntity.isUnchangedInCurrentOperation()) { if (theRequestDetails != null) { theRequestDetails.getRequestOperationCallback().resourceUpdated(theResource); theRequestDetails.getRequestOperationCallback().resourceUpdated(theOldResource, theResource); } for (IServerInterceptor next : getConfig().getInterceptors()) { if (next instanceof IServerOperationInterceptor) { ((IServerOperationInterceptor) next).resourceUpdated(theRequestDetails, theResource); ((IServerOperationInterceptor) next).resourceUpdated(theRequestDetails, theOldResource, theResource); } } } return savedEntity; } private void validateChildReferences(IBase theElement, String thePath) { if (theElement == null) { return; } BaseRuntimeElementDefinition<?> def = myContext.getElementDefinition(theElement.getClass()); if (!(def instanceof BaseRuntimeElementCompositeDefinition)) { return; } BaseRuntimeElementCompositeDefinition<?> cdef = (BaseRuntimeElementCompositeDefinition<?>) def; for (BaseRuntimeChildDefinition nextChildDef : cdef.getChildren()) { List<IBase> values = nextChildDef.getAccessor().getValues(theElement); if (values == null || values.isEmpty()) { continue; } String newPath = thePath + "." + nextChildDef.getElementName(); for (IBase nextChild : values) { validateChildReferences(nextChild, newPath); } if (nextChildDef instanceof RuntimeChildResourceDefinition) { RuntimeChildResourceDefinition nextChildDefRes = (RuntimeChildResourceDefinition) nextChildDef; Set<String> validTypes = new HashSet<>(); boolean allowAny = false; for (Class<? extends IBaseResource> nextValidType : nextChildDefRes.getResourceTypes()) { if (nextValidType.isInterface()) { allowAny = true; break; } validTypes.add(getContext().getResourceDefinition(nextValidType).getName()); } if (allowAny) { continue; } for (IBase nextChild : values) { IBaseReference nextRef = (IBaseReference) nextChild; IIdType referencedId = nextRef.getReferenceElement(); if (!isBlank(referencedId.getResourceType())) { if (!isLogicalReference(referencedId)) { if (!referencedId.getValue().contains("?")) { if (!validTypes.contains(referencedId.getResourceType())) { throw new UnprocessableEntityException( "Invalid reference found at path '" + newPath + "'. Resource type '" + referencedId.getResourceType() + "' is not valid for this path"); } } } } } } } } public void validateDeleteConflictsEmptyOrThrowException(List<DeleteConflict> theDeleteConflicts) { if (theDeleteConflicts.isEmpty()) { return; } IBaseOperationOutcome oo = OperationOutcomeUtil.newInstance(getContext()); String firstMsg = null; for (DeleteConflict next : theDeleteConflicts) { StringBuilder b = new StringBuilder(); b.append("Unable to delete "); b.append(next.getTargetId().toUnqualifiedVersionless().getValue()); b.append(" because at least one resource has a reference to this resource. First reference found was resource "); b.append(next.getTargetId().toUnqualifiedVersionless().getValue()); b.append(" in path "); b.append(next.getSourcePath()); String msg = b.toString(); if (firstMsg == null) { firstMsg = msg; } OperationOutcomeUtil.addIssue(getContext(), oo, OO_SEVERITY_ERROR, msg, null, "processing"); } throw new ResourceVersionConflictException(firstMsg, oo); } protected void validateMetaCount(int theMetaCount) { if (myConfig.getResourceMetaCountHardLimit() != null) { if (theMetaCount > myConfig.getResourceMetaCountHardLimit()) { throw new UnprocessableEntityException("Resource contains " + theMetaCount + " meta entries (tag/profile/security label), maximum is " + myConfig.getResourceMetaCountHardLimit()); } } } /** * This method is invoked immediately before storing a new resource, or an update to an existing resource to allow the DAO to ensure that it is valid for persistence. By default, checks for the * "subsetted" tag and rejects resources which have it. Subclasses should call the superclass implementation to preserve this check. * * @param theResource The resource that is about to be persisted * @param theEntityToSave TODO */ protected void validateResourceForStorage(T theResource, ResourceTable theEntityToSave) { Object tag = null; int totalMetaCount = 0; if (theResource instanceof IResource) { IResource res = (IResource) theResource; TagList tagList = ResourceMetadataKeyEnum.TAG_LIST.get(res); if (tagList != null) { tag = tagList.getTag(Constants.TAG_SUBSETTED_SYSTEM_DSTU3, Constants.TAG_SUBSETTED_CODE); totalMetaCount += tagList.size(); } List<IdDt> profileList = ResourceMetadataKeyEnum.PROFILES.get(res); if (profileList != null) { totalMetaCount += profileList.size(); } } else { IAnyResource res = (IAnyResource) theResource; tag = res.getMeta().getTag(Constants.TAG_SUBSETTED_SYSTEM_DSTU3, Constants.TAG_SUBSETTED_CODE); totalMetaCount += res.getMeta().getTag().size(); totalMetaCount += res.getMeta().getProfile().size(); totalMetaCount += res.getMeta().getSecurity().size(); } if (tag != null) { throw new UnprocessableEntityException("Resource contains the 'subsetted' tag, and must not be stored as it may contain a subset of available data"); } String resName = getContext().getResourceDefinition(theResource).getName(); validateChildReferences(theResource, resName); validateMetaCount(totalMetaCount); } @Override public ISearchParamRegistry getSearchParamRegistry() { return mySearchParamRegistry; } public static void clearRequestAsProcessingSubRequest(ServletRequestDetails theRequestDetails) { if (theRequestDetails != null) { theRequestDetails.getUserData().remove(PROCESSING_SUB_REQUEST); } } public static void markRequestAsProcessingSubRequest(ServletRequestDetails theRequestDetails) { if (theRequestDetails != null) { theRequestDetails.getUserData().put(PROCESSING_SUB_REQUEST, Boolean.TRUE); } } public static String parseContentTextIntoWords(FhirContext theContext, IBaseResource theResource) { StringBuilder retVal = new StringBuilder(); @SuppressWarnings("rawtypes") List<IPrimitiveType> childElements = theContext.newTerser().getAllPopulatedChildElementsOfType(theResource, IPrimitiveType.class); for (@SuppressWarnings("rawtypes") IPrimitiveType nextType : childElements) { if (nextType instanceof StringDt || nextType.getClass().getSimpleName().equals("StringType")) { String nextValue = nextType.getValueAsString(); if (isNotBlank(nextValue)) { retVal.append(nextValue.replace("\n", " ").replace("\r", " ")); retVal.append("\n"); } } } return retVal.toString(); } public static void populateFullTextFields(final FhirContext theContext, final IBaseResource theResource, ResourceTable theEntity) { if (theEntity.getDeleted() != null) { theEntity.setNarrativeTextParsedIntoWords(null); theEntity.setContentTextParsedIntoWords(null); } else { theEntity.setNarrativeTextParsedIntoWords(parseNarrativeTextIntoWords(theResource)); theEntity.setContentTextParsedIntoWords(parseContentTextIntoWords(theContext, theResource)); } } public static String decodeResource(byte[] theResourceBytes, ResourceEncodingEnum theResourceEncoding) { String resourceText = null; switch (theResourceEncoding) { case JSON: resourceText = new String(theResourceBytes, Charsets.UTF_8); break; case JSONC: resourceText = GZipUtil.decompress(theResourceBytes); break; case DEL: break; } return resourceText; } public static byte[] encodeResource(IBaseResource theResource, ResourceEncodingEnum theEncoding, Set<String> theExcludeElements, FhirContext theContext) { byte[] bytes; IParser parser = theEncoding.newParser(theContext); parser.setDontEncodeElements(theExcludeElements); String encoded = parser.encodeResourceToString(theResource); switch (theEncoding) { case JSON: bytes = encoded.getBytes(Charsets.UTF_8); break; case JSONC: bytes = GZipUtil.compress(encoded); break; default: case DEL: bytes = new byte[0]; break; } ourLog.debug("Encoded {} chars of resource body as {} bytes", encoded.length(), bytes.length); return bytes; } public static String normalizeString(String theString) { CharArrayWriter outBuffer = new CharArrayWriter(theString.length()); /* * The following block of code is used to strip out diacritical marks from latin script * and also convert to upper case. E.g. "j?mes" becomes "JAMES". * * See http://www.unicode.org/charts/PDF/U0300.pdf for the logic * behind stripping 0300-036F * * See #454 for an issue where we were completely stripping non latin characters * See #832 for an issue where we normalize korean characters, which are decomposed */ String string = Normalizer.normalize(theString, Normalizer.Form.NFD); for (int i = 0, n = string.length(); i < n; ++i) { char c = string.charAt(i); if (c >= '\u0300' && c <= '\u036F') { continue; } else { outBuffer.append(c); } } return new String(outBuffer.toCharArray()).toUpperCase(); } private static String parseNarrativeTextIntoWords(IBaseResource theResource) { StringBuilder b = new StringBuilder(); if (theResource instanceof IResource) { IResource resource = (IResource) theResource; List<XMLEvent> xmlEvents = XmlUtil.parse(resource.getText().getDiv().getValue()); if (xmlEvents != null) { for (XMLEvent next : xmlEvents) { if (next.isCharacters()) { Characters characters = next.asCharacters(); b.append(characters.getData()).append(" "); } } } } else if (theResource instanceof IDomainResource) { IDomainResource resource = (IDomainResource) theResource; try { String divAsString = resource.getText().getDivAsString(); List<XMLEvent> xmlEvents = XmlUtil.parse(divAsString); if (xmlEvents != null) { for (XMLEvent next : xmlEvents) { if (next.isCharacters()) { Characters characters = next.asCharacters(); b.append(characters.getData()).append(" "); } } } } catch (Exception e) { throw new DataFormatException("Unable to convert DIV to string", e); } } return b.toString(); } @VisibleForTesting public static void setDisableIncrementOnUpdateForUnitTest(boolean theDisableIncrementOnUpdateForUnitTest) { ourDisableIncrementOnUpdateForUnitTest = theDisableIncrementOnUpdateForUnitTest; } /** * Do not call this method outside of unit tests */ @VisibleForTesting public static void setValidationDisabledForUnitTest(boolean theValidationDisabledForUnitTest) { ourValidationDisabledForUnitTest = theValidationDisabledForUnitTest; } private static List<BaseCodingDt> toBaseCodingList(List<IBaseCoding> theSecurityLabels) { ArrayList<BaseCodingDt> retVal = new ArrayList<>(theSecurityLabels.size()); for (IBaseCoding next : theSecurityLabels) { retVal.add((BaseCodingDt) next); } return retVal; } public static void validateResourceType(BaseHasResource theEntity, String theResourceName) { if (!theResourceName.equals(theEntity.getResourceType())) { throw new ResourceNotFoundException( "Resource with ID " + theEntity.getIdDt().getIdPart() + " exists but it is not of type " + theResourceName + ", found resource of type " + theEntity.getResourceType()); } } }
package module116packageJava0; import java.lang.Integer; public class Foo158 { Integer int0; Integer int1; Integer int2; public void foo0() { new module116packageJava0.Foo157().foo18(); } public void foo1() { foo0(); } public void foo2() { foo1(); } public void foo3() { foo2(); } public void foo4() { foo3(); } public void foo5() { foo4(); } public void foo6() { foo5(); } public void foo7() { foo6(); } public void foo8() { foo7(); } public void foo9() { foo8(); } public void foo10() { foo9(); } public void foo11() { foo10(); } public void foo12() { foo11(); } public void foo13() { foo12(); } public void foo14() { foo13(); } public void foo15() { foo14(); } public void foo16() { foo15(); } public void foo17() { foo16(); } public void foo18() { foo17(); } }
// ********************************************************************** // This file was generated by a TAF parser! // TAF version 3.0.0.34 by WSRD Tencent. // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/taf/upload/noahyang/connServiceInvalid.jce' // ********************************************************************** package com.qq.jce.WCS.cnst; public interface COMMAND_ID_QUERY_UPDATE_INFO_RESPONSE { int value = 3002; }
package com.njupt.qmj.tomatotodo.Activity; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.GridLayoutManager; import android.support.v7.widget.RecyclerView; import android.support.v7.widget.Toolbar; import android.view.MenuItem; import com.njupt.qmj.tomatotodo.Adapter.EditAdapter; import com.njupt.qmj.tomatotodo.Class.Todo; import com.njupt.qmj.tomatotodo.LitePalDataBase.TodoDataBase; import com.njupt.qmj.tomatotodo.R; import java.util.ArrayList; import java.util.List; import static org.litepal.Operator.findAll; public class EditActivity extends AppCompatActivity { Toolbar toolbar; RecyclerView recyclerView; private List<Todo> TodosList = new ArrayList<>(); @Override public void onCreate(Bundle savedInstances){ super.onCreate(savedInstances); setContentView(R.layout.activity_edit); toolbar = findViewById(R.id.toolbar); setSupportActionBar(toolbar); getSupportActionBar().setTitle("编辑"); getSupportActionBar().setDisplayHomeAsUpEnabled(true); recyclerView = findViewById(R.id.edit_recyclerview); GridLayoutManager layoutManager = new GridLayoutManager(this,2); recyclerView.setLayoutManager(layoutManager); iniData(); EditAdapter editAdapter = new EditAdapter(TodosList); recyclerView.setAdapter(editAdapter); } @Override public boolean onOptionsItemSelected(MenuItem item){ switch (item.getItemId()){ case android.R.id.home: finish(); break; } return true; } private void iniData(){ List<TodoDataBase> dataBases = findAll(TodoDataBase.class); TodosList.clear(); for (TodoDataBase todoDataBase: dataBases){ TodosList.add(new Todo(todoDataBase.getName(),todoDataBase.getTime(),todoDataBase.getBackgorund())); } } }
package com.ddogring.auth.controller; import javax.servlet.http.HttpServletRequest; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RestController; import com.ddogring.auth.form.LoginBody; import com.ddogring.auth.form.RegisterBody; import com.ddogring.auth.service.SysLoginService; import com.ddogring.common.core.domain.R; import com.ddogring.common.core.utils.JwtUtils; import com.ddogring.common.core.utils.StringUtils; import com.ddogring.common.security.auth.AuthUtil; import com.ddogring.common.security.service.TokenService; import com.ddogring.common.security.utils.SecurityUtils; import com.ddogring.system.api.model.LoginUser; /** * token 控制 * * @author ddogring */ @RestController public class TokenController { @Autowired private TokenService tokenService; @Autowired private SysLoginService sysLoginService; @PostMapping("login") public R<?> login(@RequestBody LoginBody form) { // 用户登录 LoginUser userInfo = sysLoginService.login(form.getUsername(), form.getPassword()); // 获取登录token return R.ok(tokenService.createToken(userInfo)); } @DeleteMapping("logout") public R<?> logout(HttpServletRequest request) { String token = SecurityUtils.getToken(request); if (StringUtils.isNotEmpty(token)) { String username = JwtUtils.getUserName(token); // 删除用户缓存记录 AuthUtil.logoutByToken(token); // 记录用户退出日志 sysLoginService.logout(username); } return R.ok(); } @PostMapping("refresh") public R<?> refresh(HttpServletRequest request) { LoginUser loginUser = tokenService.getLoginUser(request); if (StringUtils.isNotNull(loginUser)) { // 刷新令牌有效期 tokenService.refreshToken(loginUser); return R.ok(); } return R.ok(); } @PostMapping("register") public R<?> register(@RequestBody RegisterBody registerBody) { // 用户注册 sysLoginService.register(registerBody.getUsername(), registerBody.getPassword()); return R.ok(); } }
/* * 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 peridot.GUI.font; import java.io.InputStream; /** * * @author Pitágoras Alves */ public final class FontStreamer { private FontStreamer(){ throw new AssertionError(); } public static InputStream getFontStream(String name){ return FontStreamer.class.getResourceAsStream("/font/" + name); } }
//给定一个二维平面,平面上有 n 个点,求最多有多少个点在同一条直线上。 // // 示例 1: // // 输入: [[1,1],[2,2],[3,3]] //输出: 3 //解释: //^ //| //|        o //|     o //|  o   //+-------------> //0  1  2  3 4 // // // 示例 2: // // 输入: [[1,1],[3,2],[5,3],[4,1],[2,3],[1,4]] //输出: 4 //解释: //^ //| //| o //|     o   o //|      o //|  o   o //+-------------------> //0  1  2  3  4  5  6 // Related Topics 哈希表 数学 // 👍 234 👎 0 import com.caomu.util.Utils; import java.util.*; import java.util.logging.Logger; /** * create time: 2021-04-17 11:28:55 */ public class _149_MaxPointsOnALine { private static final Logger logger = Logger.getLogger(_149_MaxPointsOnALine.class.toString()); public static void main(String[] args) { long startTimeMillis = System.currentTimeMillis(); Solution solution = new _149_MaxPointsOnALine().new Solution(); assert solution.maxPoints(Utils.stringTo2DArray("[[1,1],[2,2],[3,3]]")) == 3; assert solution.maxPoints(Utils.stringTo2DArray("[[1,1],[3,2],[5,3],[4,1],[2,3],[1,4]]")) == 4; assert solution.maxPoints(Utils.stringTo2DArray("[[0,0]]")) == 1; assert solution.maxPoints(Utils.stringTo2DArray("[[7,3],[19,19],[-16,3],[13,17],[-18,1],[-18,-17],[13,-3]," + "[3,7],[-11,12],[7,19],[19,-12],[20,-18],[-16,-15],[-10,-15]," + "[-16,-18],[-14,-1],[18,10],[-13,8],[7,-5],[-4,-9],[-11,2]," + "[-9,-9],[-5,-16],[10,14],[-3,4],[1,-20],[2,16],[0,14]," + "[-14,5],[15,-11],[3,11],[11,-10],[-1,-7],[16,7],[1,-11]," + "[-8,-3],[1,-6],[19,7],[3,6],[-1,-2],[7,-3],[-6,-8],[7,1]," + "[-15,12],[-17,9],[19,-9],[1,0],[9,-10],[6,20],[-12,-4]," + "[-16,-17],[14,3],[0,-1],[-18,9],[-15,15],[-3,-15],[-5,20]," + "[15,-14],[9,-17],[10,-14],[-7,-11],[14,9],[1,-1],[15,12]," + "[-5,-1],[-17,-5],[15,-2],[-12,11],[19,-18],[8,7],[-5,-3]," + "[-17,-1],[-18,13],[15,-3],[4,18],[-14,-15],[15,8],[-18,-12]," + "[-15,19],[-9,16],[-9,14],[-12,-14],[-2,-20],[-3,-13],[10,-7]," + "[-2,-10],[9,10],[-1,7],[-17,-6],[-15,20],[5,-17],[6,-6]," + "[-11,-8]]")) == 6; logger.info("time cost: [" + (System.currentTimeMillis() - startTimeMillis) + "] ms"); } //leetcode submit region begin(Prohibit modification and deletion) class Solution { public int maxPoints(int[][] points) { if (points.length == 1) { return 1; } int n = points.length; Map<Map.Entry<Double, Double>, Set<Map.Entry<Integer, Integer>>> count = new HashMap<>(); Map<Integer, Set<Map.Entry<Integer, Integer>>> verticalCount = new HashMap<>(); for (int i = 0; i < n; i++) { for (int j = i + 1; j < n; j++) { double d = points[j][0] - points[i][0]; if (d == 0) { Set<Map.Entry<Integer, Integer>> pointsOfLine = verticalCount.getOrDefault(points[i][0], new HashSet<>()); pointsOfLine.add(Map.entry(points[i][0], points[i][1])); pointsOfLine.add(Map.entry(points[j][0], points[j][1])); verticalCount.put(points[i][0], pointsOfLine); } else { double a = (double) (points[j][1] - points[i][1]) / d; double b = (double) (points[i][1] * points[j][0] - points[j][1] * points[i][0]) / d; Map.Entry<Double, Double> line = Map.entry(a, b); Set<Map.Entry<Integer, Integer>> pointsOfLine = count.getOrDefault(line, new HashSet<>()); pointsOfLine.add(Map.entry(points[i][0], points[i][1])); pointsOfLine.add(Map.entry(points[j][0], points[j][1])); count.put(line, pointsOfLine); } } } return Math.max(count.isEmpty() ? 0 : count.values().stream().max(Comparator.comparingInt(Set::size)).get().size(), verticalCount.isEmpty() ? 0 : verticalCount.values().stream().max(Comparator.comparingInt(Set::size)).get().size()); } } //leetcode submit region end(Prohibit modification and deletion) }
package org.intermine.webservice.server.search; /* * Copyright (C) 2002-2021 FlyMine * * This code may be freely distributed and modified under the * terms of the GNU Lesser General Public Licence. This should * be distributed with the code. See the LICENSE file for more * information or http://www.gnu.org/copyleft/lesser.html. * */ import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Map.Entry; import org.intermine.web.search.KeywordSearchResult; /** * A result processor that outputs results as plain text. * @author Alex Kalderimis * */ public class QuickSearchTextProcessor implements QuickSearchResultProcessor { private final String nl; private static final String TAB = " "; /** @param separator The client's line separator **/ public QuickSearchTextProcessor(String separator) { this.nl = separator; } @Override public List<String> formatResult(KeywordSearchResult result, boolean hasNext) { List<String> ret = new ArrayList<String>(); Map<String, Object> data = new HashMap<String, Object>(result.getFieldValues()); StringBuffer sb = new StringBuffer(); sb.append(String.format("# %s:%d (%.3f) - ", result.getType(), result.getId(), result.getScore())); sb.append(nl); for (Entry<String, Object> kv: data.entrySet()) { sb.append(TAB); sb.append(kv.getKey()); sb.append(":").append(TAB); sb.append(kv.getValue()); sb.append(nl); } sb.append(nl); ret.add(sb.toString()); return ret; } }
package org.talend.jpalo; import java.util.ArrayList; import java.util.Arrays; import java.util.Hashtable; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import org.apache.http.HttpEntity; import org.apache.http.message.BasicNameValuePair; import com.talend.csv.CSVReader; public class palodata { public palodata() { alPaloElements = new ArrayList(); htPaloResultData = new Hashtable(); lstDimensionElements = new LinkedList(); } public palodata(paloconnection plConn, palodatabase plDB, palocube paloCube) { alPaloElements = new ArrayList(); htPaloResultData = new Hashtable(); lstDimensionElements = new LinkedList(); this.plConn = plConn; lDatabaseId = plDB.getDatabaseId(); plCube = paloCube; } public palodata(paloconnection plConn, palodatabase plDB, palocube paloCube, ArrayList alPaloElements, String strDimensionElementsArray[][], int iBatchSize) { this.alPaloElements = new ArrayList(); htPaloResultData = new Hashtable(); lstDimensionElements = new LinkedList(); this.plConn = plConn; lDatabaseId = plDB.getDatabaseId(); plCube = paloCube; this.alPaloElements = alPaloElements; this.strDimensionElementsArray = strDimensionElementsArray; this.iBatchSize = iBatchSize; htPaloResultData = new Hashtable(); buildDimElemIteratorFromArray(); } private void buildDimElemIteratorFromArray() { iDimensionElementLength = strDimensionElementsArray.length; for (String[] element : strDimensionElementsArray) { lstDimensionElements.add(Arrays.asList(element)); } itDimensionElements = palohelpers.finiteCartesianProduct(lstDimensionElements).iterator(); } public boolean getResults() throws paloexception { int iRowCounter = 0; List lstDimensionElementArray = new LinkedList(); htPaloResultData = new Hashtable(); for (; itDimensionElements.hasNext() && iRowCounter < iBatchSize; iRowCounter++) { List x = (List) itDimensionElements.next(); for (int i = 0; i < x.size(); i++) { lstDimensionElementArray.add(x.get(i)); } } int iPos = 0; int iCoordPos = 0; StringBuilder sbCoordinates = new StringBuilder(); for (Iterator iterator = lstDimensionElementArray.iterator(); iterator.hasNext();) { String strCoordElement = (String) iterator.next(); if (iPos > 0) { sbCoordinates.append(","); } paloelement plElm = ((paloelements) alPaloElements.get(iCoordPos)).getElement(strCoordElement); if (plElm == null) { sbCoordinates.append("-1"); } else { sbCoordinates.append(plElm.getElementIdentifier()); } iPos++; if (++iCoordPos >= iDimensionElementLength) { iCoordPos = 0; sbCoordinates.append(":"); iPos = 0; } } if (iRowCounter > 0) { List qparams = new ArrayList(); qparams.add(new BasicNameValuePair("sid", plConn.getPaloToken())); qparams.add(new BasicNameValuePair("database", String.valueOf(lDatabaseId))); qparams.add(new BasicNameValuePair("cube", String.valueOf(plCube.getCubeId()))); qparams.add(new BasicNameValuePair("paths", sbCoordinates.toString())); try { HttpEntity entity = plConn.sendToServer(qparams, "/cell/values"); CSVReader csv = new CSVReader(entity.getContent(), ';', "UTF-8"); csv.setQuoteChar('"'); int iCoordElem = 0; while (csv.readNext()) { if(iCoordElem > lstDimensionElementArray.size()-1){ break; } String strArrCoord[] = new String[iDimensionElementLength]; for (int i = 0; i < iDimensionElementLength; i++) { strArrCoord[i] = (String) lstDimensionElementArray.get(iCoordElem++); } if (palohelpers.StringToInt(csv.get(0)) == 1) { if (palohelpers.StringToInt(csv.get(1)) > 0) { htPaloResultData.put(strArrCoord, new palodatavalue(strArrCoord, palohelpers.StringToDouble(csv.get(2)))); } else { htPaloResultData.put(strArrCoord, new palodatavalue(strArrCoord, 0.0D)); } } else if (palohelpers.StringToInt(csv.get(0)) == 0) { htPaloResultData.put(strArrCoord, new palodatavalue(strArrCoord, csv.get(2))); } } csv.close(); entity.consumeContent(); } catch (Exception e) { throw new paloexception(e.getMessage()); } } return iRowCounter <= iBatchSize && iRowCounter > 0; } public Hashtable getResultHashTable() { return htPaloResultData; } public palodatavalue getValue(String strDimensionElementArray[], boolean bRefreshElements) throws paloexception { long lDimensionElementIdentifierArray[] = new long[strDimensionElementArray.length]; if (plDims == null || bRefreshElements) { plDims = plCube.getDimensions(); } for (int i = 0; i < strDimensionElementArray.length; i++) { paloelement plElm = plDims.getDimension(i).getElements(false).getElement(strDimensionElementArray[i]); if (plElm == null) { lDimensionElementIdentifierArray[i] = -1L; } else { lDimensionElementIdentifierArray[i] = plElm.getElementIdentifier(); } } return getValue(lDimensionElementIdentifierArray); } public palodatavalue getValue(long lDimensionElementIdentifierArray[]) throws paloexception { List qparams = new ArrayList(); qparams.add(new BasicNameValuePair("sid", plConn.getPaloToken())); qparams.add(new BasicNameValuePair("database", String.valueOf(lDatabaseId))); qparams.add(new BasicNameValuePair("cube", String.valueOf(plCube.getCubeId()))); StringBuilder sbCoordinates = new StringBuilder(); int iPos = 0; long al[]; int j = (al = lDimensionElementIdentifierArray).length; for (int i = 0; i < j; i++) { long lDimensionElementIdentifier = al[i]; if (iPos > 0) { sbCoordinates.append(","); } sbCoordinates.append(lDimensionElementIdentifier); iPos++; } qparams.add(new BasicNameValuePair("path", sbCoordinates.toString())); palodatavalue rcDataValue = null; try { HttpEntity entity = plConn.sendToServer(qparams, "/cell/value"); CSVReader csv = new CSVReader(entity.getContent(), ';', "UTF-8"); csv.setQuoteChar('"'); while (csv.readNext()) { if (palohelpers.StringToInt(csv.get(0)) == 1) { if (palohelpers.StringToInt(csv.get(1)) > 0) { rcDataValue = new palodatavalue(palohelpers.StringToDouble(csv.get(2))); } else { rcDataValue = new palodatavalue(0.0D); } } else if (palohelpers.StringToInt(csv.get(0)) == 0) { rcDataValue = new palodatavalue(csv.get(2)); } } csv.close(); entity.consumeContent(); return rcDataValue; } catch (Exception e) { throw new paloexception(e.getMessage()); } } public static final int PALO_SPLASH_DISABLE = 0; public static final int PALO_SPLASH_DEFAULT = 1; public static final int PALO_SPLASH_BASE_SET = 3; public static final int PALO_SPLASH_BASE_ADD = 2; private paloconnection plConn; private palodimensions plDims; private long lDatabaseId; private ArrayList alPaloElements; private Hashtable htPaloResultData; private palocube plCube; private String strDimensionElementsArray[][]; private List lstDimensionElements; private Iterator itDimensionElements; private int iBatchSize; private int iDimensionElementLength; }
/** * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package com.xiaomi.infra.galaxy.metrics.thrift; import libthrift091.scheme.IScheme; import libthrift091.scheme.SchemeFactory; import libthrift091.scheme.StandardScheme; import libthrift091.scheme.TupleScheme; import libthrift091.protocol.TTupleProtocol; import libthrift091.protocol.TProtocolException; import libthrift091.EncodingUtils; import libthrift091.TException; import libthrift091.async.AsyncMethodCallback; import libthrift091.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; import java.util.HashMap; import java.util.EnumMap; import java.util.Set; import java.util.HashSet; import java.util.EnumSet; import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) @Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2017-3-2") public class Metric implements libthrift091.TBase<Metric, Metric._Fields>, java.io.Serializable, Cloneable, Comparable<Metric> { private static final libthrift091.protocol.TStruct STRUCT_DESC = new libthrift091.protocol.TStruct("Metric"); private static final libthrift091.protocol.TField METRIC_KEY_FIELD_DESC = new libthrift091.protocol.TField("metricKey", libthrift091.protocol.TType.STRUCT, (short)1); private static final libthrift091.protocol.TField TIMESTAMP_FIELD_DESC = new libthrift091.protocol.TField("timestamp", libthrift091.protocol.TType.I64, (short)2); private static final libthrift091.protocol.TField VALUE_FIELD_DESC = new libthrift091.protocol.TField("value", libthrift091.protocol.TType.DOUBLE, (short)3); private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); static { schemes.put(StandardScheme.class, new MetricStandardSchemeFactory()); schemes.put(TupleScheme.class, new MetricTupleSchemeFactory()); } public MetricKey metricKey; // optional public long timestamp; // optional public double value; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements libthrift091.TFieldIdEnum { METRIC_KEY((short)1, "metricKey"), TIMESTAMP((short)2, "timestamp"), VALUE((short)3, "value"); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // METRIC_KEY return METRIC_KEY; case 2: // TIMESTAMP return TIMESTAMP; case 3: // VALUE return VALUE; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private static final int __VALUE_ISSET_ID = 1; private byte __isset_bitfield = 0; private static final _Fields optionals[] = {_Fields.METRIC_KEY,_Fields.TIMESTAMP,_Fields.VALUE}; public static final Map<_Fields, libthrift091.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, libthrift091.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, libthrift091.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.METRIC_KEY, new libthrift091.meta_data.FieldMetaData("metricKey", libthrift091.TFieldRequirementType.OPTIONAL, new libthrift091.meta_data.StructMetaData(libthrift091.protocol.TType.STRUCT, MetricKey.class))); tmpMap.put(_Fields.TIMESTAMP, new libthrift091.meta_data.FieldMetaData("timestamp", libthrift091.TFieldRequirementType.OPTIONAL, new libthrift091.meta_data.FieldValueMetaData(libthrift091.protocol.TType.I64))); tmpMap.put(_Fields.VALUE, new libthrift091.meta_data.FieldMetaData("value", libthrift091.TFieldRequirementType.OPTIONAL, new libthrift091.meta_data.FieldValueMetaData(libthrift091.protocol.TType.DOUBLE))); metaDataMap = Collections.unmodifiableMap(tmpMap); libthrift091.meta_data.FieldMetaData.addStructMetaDataMap(Metric.class, metaDataMap); } public Metric() { } /** * Performs a deep copy on <i>other</i>. */ public Metric(Metric other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetMetricKey()) { this.metricKey = new MetricKey(other.metricKey); } this.timestamp = other.timestamp; this.value = other.value; } public Metric deepCopy() { return new Metric(this); } @Override public void clear() { this.metricKey = null; setTimestampIsSet(false); this.timestamp = 0; setValueIsSet(false); this.value = 0.0; } public MetricKey getMetricKey() { return this.metricKey; } public Metric setMetricKey(MetricKey metricKey) { this.metricKey = metricKey; return this; } public void unsetMetricKey() { this.metricKey = null; } /** Returns true if field metricKey is set (has been assigned a value) and false otherwise */ public boolean isSetMetricKey() { return this.metricKey != null; } public void setMetricKeyIsSet(boolean value) { if (!value) { this.metricKey = null; } } public long getTimestamp() { return this.timestamp; } public Metric setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public double getValue() { return this.value; } public Metric setValue(double value) { this.value = value; setValueIsSet(true); return this; } public void unsetValue() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __VALUE_ISSET_ID); } /** Returns true if field value is set (has been assigned a value) and false otherwise */ public boolean isSetValue() { return EncodingUtils.testBit(__isset_bitfield, __VALUE_ISSET_ID); } public void setValueIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __VALUE_ISSET_ID, value); } public void setFieldValue(_Fields field, Object value) { switch (field) { case METRIC_KEY: if (value == null) { unsetMetricKey(); } else { setMetricKey((MetricKey)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case VALUE: if (value == null) { unsetValue(); } else { setValue((Double)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case METRIC_KEY: return getMetricKey(); case TIMESTAMP: return Long.valueOf(getTimestamp()); case VALUE: return Double.valueOf(getValue()); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case METRIC_KEY: return isSetMetricKey(); case TIMESTAMP: return isSetTimestamp(); case VALUE: return isSetValue(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof Metric) return this.equals((Metric)that); return false; } public boolean equals(Metric that) { if (that == null) return false; boolean this_present_metricKey = true && this.isSetMetricKey(); boolean that_present_metricKey = true && that.isSetMetricKey(); if (this_present_metricKey || that_present_metricKey) { if (!(this_present_metricKey && that_present_metricKey)) return false; if (!this.metricKey.equals(that.metricKey)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_value = true && this.isSetValue(); boolean that_present_value = true && that.isSetValue(); if (this_present_value || that_present_value) { if (!(this_present_value && that_present_value)) return false; if (this.value != that.value) return false; } return true; } @Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_metricKey = true && (isSetMetricKey()); list.add(present_metricKey); if (present_metricKey) list.add(metricKey); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_value = true && (isSetValue()); list.add(present_value); if (present_value) list.add(value); return list.hashCode(); } @Override public int compareTo(Metric other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetMetricKey()).compareTo(other.isSetMetricKey()); if (lastComparison != 0) { return lastComparison; } if (isSetMetricKey()) { lastComparison = libthrift091.TBaseHelper.compareTo(this.metricKey, other.metricKey); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = libthrift091.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); if (lastComparison != 0) { return lastComparison; } if (isSetValue()) { lastComparison = libthrift091.TBaseHelper.compareTo(this.value, other.value); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(libthrift091.protocol.TProtocol iprot) throws libthrift091.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(libthrift091.protocol.TProtocol oprot) throws libthrift091.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("Metric("); boolean first = true; if (isSetMetricKey()) { sb.append("metricKey:"); if (this.metricKey == null) { sb.append("null"); } else { sb.append(this.metricKey); } first = false; } if (isSetTimestamp()) { if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; } if (isSetValue()) { if (!first) sb.append(", "); sb.append("value:"); sb.append(this.value); first = false; } sb.append(")"); return sb.toString(); } public void validate() throws libthrift091.TException { // check for required fields // check for sub-struct validity if (metricKey != null) { metricKey.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new libthrift091.protocol.TCompactProtocol(new libthrift091.transport.TIOStreamTransport(out))); } catch (libthrift091.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; read(new libthrift091.protocol.TCompactProtocol(new libthrift091.transport.TIOStreamTransport(in))); } catch (libthrift091.TException te) { throw new java.io.IOException(te); } } private static class MetricStandardSchemeFactory implements SchemeFactory { public MetricStandardScheme getScheme() { return new MetricStandardScheme(); } } private static class MetricStandardScheme extends StandardScheme<Metric> { public void read(libthrift091.protocol.TProtocol iprot, Metric struct) throws libthrift091.TException { libthrift091.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == libthrift091.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // METRIC_KEY if (schemeField.type == libthrift091.protocol.TType.STRUCT) { struct.metricKey = new MetricKey(); struct.metricKey.read(iprot); struct.setMetricKeyIsSet(true); } else { libthrift091.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TIMESTAMP if (schemeField.type == libthrift091.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { libthrift091.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // VALUE if (schemeField.type == libthrift091.protocol.TType.DOUBLE) { struct.value = iprot.readDouble(); struct.setValueIsSet(true); } else { libthrift091.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: libthrift091.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(libthrift091.protocol.TProtocol oprot, Metric struct) throws libthrift091.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.metricKey != null) { if (struct.isSetMetricKey()) { oprot.writeFieldBegin(METRIC_KEY_FIELD_DESC); struct.metricKey.write(oprot); oprot.writeFieldEnd(); } } if (struct.isSetTimestamp()) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); } if (struct.isSetValue()) { oprot.writeFieldBegin(VALUE_FIELD_DESC); oprot.writeDouble(struct.value); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class MetricTupleSchemeFactory implements SchemeFactory { public MetricTupleScheme getScheme() { return new MetricTupleScheme(); } } private static class MetricTupleScheme extends TupleScheme<Metric> { @Override public void write(libthrift091.protocol.TProtocol prot, Metric struct) throws libthrift091.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetMetricKey()) { optionals.set(0); } if (struct.isSetTimestamp()) { optionals.set(1); } if (struct.isSetValue()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetMetricKey()) { struct.metricKey.write(oprot); } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetValue()) { oprot.writeDouble(struct.value); } } @Override public void read(libthrift091.protocol.TProtocol prot, Metric struct) throws libthrift091.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.metricKey = new MetricKey(); struct.metricKey.read(iprot); struct.setMetricKeyIsSet(true); } if (incoming.get(1)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(2)) { struct.value = iprot.readDouble(); struct.setValueIsSet(true); } } } }
package com.klinker.android.twitter_l.views.widgets; import android.content.Context; import android.os.Bundle; import android.support.v13.view.inputmethod.EditorInfoCompat; import android.support.v13.view.inputmethod.InputConnectionCompat; import android.support.v13.view.inputmethod.InputContentInfoCompat; import android.support.v4.os.BuildCompat; import android.util.AttributeSet; import android.view.inputmethod.EditorInfo; import android.view.inputmethod.InputConnection; import com.klinker.android.twitter_l.views.widgets.text.FontPrefEditText; public class ImageKeyboardEditText extends FontPrefEditText { private InputConnectionCompat.OnCommitContentListener commitContentListener; public ImageKeyboardEditText(Context context) { super(context); } public ImageKeyboardEditText(Context context, AttributeSet attrs) { super(context, attrs); } public ImageKeyboardEditText(Context context, AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); } public void setCommitContentListener(InputConnectionCompat.OnCommitContentListener listener) { this.commitContentListener = listener; } @Override public InputConnection onCreateInputConnection(EditorInfo outAttrs) { InputConnection con = super.onCreateInputConnection(outAttrs); EditorInfoCompat.setContentMimeTypes(outAttrs, new String[] { "image/gif", "image/png" }); return InputConnectionCompat.createWrapper(con, outAttrs, new InputConnectionCompat.OnCommitContentListener() { @Override public boolean onCommitContent(InputContentInfoCompat inputContentInfo, int flags, Bundle opts) { if (commitContentListener != null) { if (BuildCompat.isAtLeastNMR1() && (flags & InputConnectionCompat.INPUT_CONTENT_GRANT_READ_URI_PERMISSION) != 0) { try { inputContentInfo.requestPermission(); } catch (Exception e) { return false; } } commitContentListener.onCommitContent( inputContentInfo, flags, opts ); return true; } else { return false; } } }); } }
package com.alipay.api.domain; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; /** * 用户详细信息 * * @author auto create * @since 1.0, 2020-11-24 16:37:11 */ public class BuyerInfo extends AlipayObject { private static final long serialVersionUID = 1353153958546859665L; /** * 用户手机号 */ @ApiField("mobile") private String mobile; public String getMobile() { return this.mobile; } public void setMobile(String mobile) { this.mobile = mobile; } }
package edu.mills.cs180a; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; //import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import org.junit.jupiter.api.Test; import org.junit.jupiter.params.*; import org.junit.jupiter.params.provider.*; class StringUtilitiesTester { @Test void isSubstringThrowsExceptionForNullArg() { assertThrows(NullPointerException.class, () -> StringUtilities.isSubstring(null, "foo")); assertThrows(NullPointerException.class, () -> StringUtilities.isSubstring("foo", null)); assertThrows(NullPointerException.class, () -> StringUtilities.isSubstring(null, null)); } @Test void isSubstringReturnsTrueForEmptySubstring() { assertTrue(StringUtilities.isSubstring("", "foo")); } @Test void isSubstringReturnsTrueForLengthOneSubstring() { assertTrue(StringUtilities.isSubstring("A", "ABC")); } @ParameterizedTest @CsvSource({"AQ, AQSRT", "ST, AFGSTAG","HXB, KXMDCBUHXB", "ABC, ABC"}) void isSubstringReturnsTrueForLengthTwoAndHigherSubstring(String substring, String text) { assertTrue(StringUtilities.isSubstring(substring, text)); } @ParameterizedTest @CsvSource({"ST, AQSRT", "EQ, GEHSVQ", "ABCDEF, ABC"}) //fails: ABCDEF, ABC expected false, but returns true void isSubstringReturnsFalseForLengthTwoAndHigherSubstring(String substring, String text) { assertFalse(StringUtilities.isSubstring(substring, text)); } // @ParameterizedTest // @CsvSource({"AQ, AQSRT, true", "ST, AFGSTAG, true","HXB, KXMDCBUHXB, true", "EQ, GEHSVQ, false"}) // void isSubstringReturnsTrueForLengthTwoSubstring(String substring, String text, boolean expected) { // boolean actual = StringUtilities.isSubstring(substring, text); // assertEquals(expected, actual); // } }
import javax.script.ScriptEngineManager; import javax.script.ScriptEngine; public class Main { public static void main(String[] args) throws Exception { ScriptEngineManager mgr = new ScriptEngineManager(); ScriptEngine engine = mgr.getEngineByName("JavaScript"); String foo = "3+4"; System.out.println(engine.eval(foo)); } }
package com.chequer.axboot.admin.security; import com.chequer.axboot.admin.AXBootSecurityConfig; import com.chequer.axboot.admin.code.GlobalConstants; import com.chequer.axboot.core.api.response.ApiResponse; import com.chequer.axboot.core.code.ApiStatus; import com.chequer.axboot.core.utils.*; import org.springframework.security.authentication.BadCredentialsException; import org.springframework.security.core.AuthenticationException; import org.springframework.security.core.userdetails.UsernameNotFoundException; import org.springframework.security.web.authentication.www.BasicAuthenticationEntryPoint; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; public class AXBootAuthenticationEntryPoint extends BasicAuthenticationEntryPoint { @Override public void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException authException) throws IOException, ServletException { CookieUtils.deleteCookie(request, response, GlobalConstants.ADMIN_AUTH_TOKEN_KEY); RequestUtils requestUtils = RequestUtils.of(request); ApiResponse apiResponse; if (authException instanceof BadCredentialsException) { apiResponse = ApiResponse.error(ApiStatus.SYSTEM_ERROR, "비밀번호가 일치하지 않습니다."); } else if (authException instanceof UsernameNotFoundException) { apiResponse = ApiResponse.error(ApiStatus.SYSTEM_ERROR, "존재하지 않는 사용자입니다."); } else { apiResponse = ApiResponse.redirect(ContextUtil.getPagePath(AXBootSecurityConfig.LOGIN_PAGE)); } if (requestUtils.isAjax()) { response.setContentType(HttpUtils.getJsonContentType(request)); response.getWriter().write(JsonUtils.toJson(apiResponse)); response.getWriter().flush(); } else { response.sendRedirect(ContextUtil.getPagePath(AXBootSecurityConfig.LOGIN_PAGE)); } } }
package com.afp.mylawyer.repository; import com.afp.mylawyer.domain.PersistentToken; import com.afp.mylawyer.domain.User; import java.time.LocalDate; import org.springframework.data.jpa.repository.JpaRepository; import java.util.List; /** * Spring Data JPA repository for the {@link PersistentToken} entity. */ public interface PersistentTokenRepository extends JpaRepository<PersistentToken, String> { List<PersistentToken> findByUser(User user); List<PersistentToken> findByTokenDateBefore(LocalDate localDate); }
/** * Copyright (c) 2012-2019 Nikita Koksharov * <p> * 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 * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * 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.github.viviel.socketio; /** * TCP socket configuration contains configuration for main server channel * and client channels * * @see java.net.SocketOptions */ public class SocketConfig { private boolean tcpNoDelay = true; private int tcpSendBufferSize = -1; private int tcpReceiveBufferSize = -1; private boolean tcpKeepAlive = false; private int soLinger = -1; private boolean reuseAddress = false; private int acceptBackLog = 1024; public boolean isTcpNoDelay() { return tcpNoDelay; } public void setTcpNoDelay(boolean tcpNoDelay) { this.tcpNoDelay = tcpNoDelay; } public int getTcpSendBufferSize() { return tcpSendBufferSize; } public void setTcpSendBufferSize(int tcpSendBufferSize) { this.tcpSendBufferSize = tcpSendBufferSize; } public int getTcpReceiveBufferSize() { return tcpReceiveBufferSize; } public void setTcpReceiveBufferSize(int tcpReceiveBufferSize) { this.tcpReceiveBufferSize = tcpReceiveBufferSize; } public boolean isTcpKeepAlive() { return tcpKeepAlive; } public void setTcpKeepAlive(boolean tcpKeepAlive) { this.tcpKeepAlive = tcpKeepAlive; } public int getSoLinger() { return soLinger; } public void setSoLinger(int soLinger) { this.soLinger = soLinger; } public boolean isReuseAddress() { return reuseAddress; } public void setReuseAddress(boolean reuseAddress) { this.reuseAddress = reuseAddress; } public int getAcceptBackLog() { return acceptBackLog; } public void setAcceptBackLog(int acceptBackLog) { this.acceptBackLog = acceptBackLog; } }
import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import java.util.ArrayList; import java.util.LinkedList; import java.util.List; import static org.junit.jupiter.api.Assertions.*; class PeopleQueueTest { private final AdressValue adress = new AdressValue("Vasylkiv", "Dekabtysiv", 14, 3); QueuePerson petya = new QueuePerson(1,"Petya", "Pupkin", "Petich", 6, adress); QueuePerson vasya = new QueuePerson(2,"Vasya", "Pupkin", "Petich", 3, adress); QueuePerson lena = new QueuePerson(3,"Vasya", "Pupkin", "Petich", 2, adress); @Test void get_listOfPerson() { var listOfPeople = new LinkedList<QueuePerson>(); listOfPeople.add(petya); listOfPeople.add(vasya); var peopleQueue = new PeopleQueue(listOfPeople); List<QueuePerson> list = new LinkedList<QueuePerson>(); list.add(vasya); list.add(petya); assertEquals(list.size(), peopleQueue.get_listOfPerson().size()); assertEquals(list, peopleQueue.get_listOfPerson()); } @Test void addToQueue() { var listOfPeople = new LinkedList<QueuePerson>(); listOfPeople.add(petya); listOfPeople.add(vasya); listOfPeople.add(lena); var peopleQueue = new PeopleQueue(listOfPeople); assertEquals(3, peopleQueue.get_listOfPerson().size()); assertEquals(lena, peopleQueue.get_listOfPerson().stream().findFirst().get()); } @Test void removeFromQueue() { var listOfPeople = new LinkedList<QueuePerson>(); listOfPeople.add(petya); var peopleQueue = new PeopleQueue(listOfPeople); peopleQueue.removeFromQueue(1); assertEquals(0, peopleQueue.get_listOfPerson().size()); } @Test void getByid() { var listOfPeople = new LinkedList<QueuePerson>(); listOfPeople.add(petya); var peopleQueue = new PeopleQueue(listOfPeople); assertEquals(petya, peopleQueue.getByid(1)); } @Test void checkIfInQueue() { var listOfPeople = new LinkedList<QueuePerson>(); listOfPeople.add(petya); var peopleQueue = new PeopleQueue(listOfPeople); assertTrue(peopleQueue.checkIfInQueue(1)); } }
package org.wickedsource.budgeteer.web.planning; import org.joda.time.LocalDate; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.Arrays; import java.util.List; class DefaultCalendarSpeedTest { private Logger logger = LoggerFactory.getLogger(DefaultCalendarSpeedTest.class); private static final int TIMES = 50000; /* * Do not run in regular regressions, as speed depends on platform and * parallel jobs */ @Disabled @Test void findsHolidaysInFeasibleTime() { DefaultCalendar calWithoutHolidays = DefaultCalendar.calendarYear(2015); DefaultCalendar calWithHolidays = DefaultCalendar.calendarYear(2015); calWithHolidays.setHolidayManager(new HolidayConfiguration("de", "nw")); List<TimePeriod> periods = Arrays.asList(new TimePeriod(new LocalDate(2015, 3, 1), new LocalDate(2015, 3, 31)), new TimePeriod(new LocalDate(2015, 4, 30), new LocalDate(2015, 4, 30)), new TimePeriod(new LocalDate(2015, 5, 3), new LocalDate(2015, 5, 7)), new TimePeriod(new LocalDate(2015, 7, 19), new LocalDate(2015, 8, 6))); long beforeStart = System.currentTimeMillis(); for (int i = 0; i < TIMES; i++) { calWithoutHolidays.getNumberOfWorkingDays(periods); } long inBetween = System.currentTimeMillis(); for (int i = 0; i < TIMES; i++) { calWithHolidays.getNumberOfWorkingDays(periods); } long after = System.currentTimeMillis(); long millisWith = after - inBetween; logger.warn("to calculate working days with holidays " + TIMES + " times takes " + millisWith + "ms"); long millisWithout = inBetween - beforeStart; logger.warn("to calculate working days without holidays " + TIMES + " times takes " + millisWithout + "ms"); Assertions.assertTrue(Double.compare(millisWithout * 1.2 + 5, millisWith) > 0); } }
/* * 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.flink.test.recovery; import org.apache.flink.api.common.ExecutionMode; import org.apache.flink.api.common.functions.ReduceFunction; import org.apache.flink.api.common.functions.RichMapFunction; import org.apache.flink.api.common.restartstrategy.RestartStrategies; import org.apache.flink.api.java.DataSet; import org.apache.flink.api.java.ExecutionEnvironment; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import java.io.File; import java.util.Arrays; import java.util.Collection; import static org.junit.Assert.assertEquals; /** * Test the recovery of a simple batch program in the case of TaskManager process failure. */ @SuppressWarnings("serial") @RunWith(Parameterized.class) public class TaskManagerProcessFailureBatchRecoveryITCase extends AbstractTaskManagerProcessFailureRecoveryTest { // -------------------------------------------------------------------------------------------- // Parametrization (run pipelined and batch) // -------------------------------------------------------------------------------------------- private final ExecutionMode executionMode; public TaskManagerProcessFailureBatchRecoveryITCase(ExecutionMode executionMode) { this.executionMode = executionMode; } @Parameterized.Parameters public static Collection<Object[]> executionMode() { return Arrays.asList(new Object[][]{ {ExecutionMode.PIPELINED}, {ExecutionMode.BATCH}}); } // -------------------------------------------------------------------------------------------- // Test the program // -------------------------------------------------------------------------------------------- @Override public void testTaskManagerFailure(int jobManagerPort, final File coordinateDir) throws Exception { ExecutionEnvironment env = ExecutionEnvironment.createRemoteEnvironment("localhost", jobManagerPort); env.setParallelism(PARALLELISM); env.setRestartStrategy(RestartStrategies.fixedDelayRestart(1, 10000)); env.getConfig().setExecutionMode(executionMode); env.getConfig().disableSysoutLogging(); final long numElements = 100000L; final DataSet<Long> result = env.generateSequence(1, numElements) // make sure every mapper is involved (no one is skipped because of lazy split assignment) .rebalance() // the majority of the behavior is in the MapFunction .map(new RichMapFunction<Long, Long>() { private final File proceedFile = new File(coordinateDir, PROCEED_MARKER_FILE); private boolean markerCreated = false; private boolean checkForProceedFile = true; @Override public Long map(Long value) throws Exception { if (!markerCreated) { int taskIndex = getRuntimeContext().getIndexOfThisSubtask(); touchFile(new File(coordinateDir, READY_MARKER_FILE_PREFIX + taskIndex)); markerCreated = true; } // check if the proceed file exists if (checkForProceedFile) { if (proceedFile.exists()) { checkForProceedFile = false; } else { // otherwise wait so that we make slow progress Thread.sleep(100); } } return value; } }) .reduce(new ReduceFunction<Long>() { @Override public Long reduce(Long value1, Long value2) { return value1 + value2; } }); long sum = result.collect().get(0); assertEquals(numElements * (numElements + 1L) / 2L, sum); } }
package me.chrisswr1.parroute.util; import java.util.Arrays; /** * defines some utilities to work with arrays * * @version 0.0.1 * @author ChrissW-R1 * @since 0.0.1 */ public class ArrayUtils { /** * private standard constructor, to prevent initialization * * @since 0.0.1 */ private ArrayUtils() { } /** * shift all elements of an array * * @since 0.0.1 * * @param <T> the type of the elements * @param array the array to shift * @param count the count of steps to shift. Use a positive value for right * shift and a negative for shift to left * @return a new array with the shifted elements */ public static <T> T[] shift(T[] array, int count) { int length = array.length; T[] res = Arrays.copyOf(array, length); if (count == 0) { return res; } for (int i = 0; i < length; i++) { int srcIdx = i - count; while (srcIdx < 0) { srcIdx += length; } while (srcIdx > (length - 1)) { srcIdx -= length; } res[i] = array[srcIdx]; } return res; } }
package com.hubspot.dropwizard.guice.objects; import javax.ws.rs.ext.Provider; @Provider public class InjectedProvider { }
package cn.cicoding.service.impl; import cn.cicoding.service.UserService; import cn.cicoding.dao.UserDaoMapper; import cn.cicoding.model.User; import cn.cicoding.model.UserItem; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; @Service public class UserServiceImpl implements UserService { @Autowired private UserDaoMapper userDao; public List<User> list() { List<User> list = userDao.list(); return list; } public Long add(User user) { return userDao.addUser(user); } @Override public User findById(Long id) { return userDao.findById(id); } @Override public User findByName(String name) { return userDao.findByName(name); } @Override public Long clean() { return userDao.clean(); } @Override public Long addUserItem(UserItem userItem) { return userDao.addUserItem(userItem); } }
package com.winsun.fruitmix.Fragment; import android.content.Intent; import android.util.Log; import android.view.LayoutInflater; import android.view.MotionEvent; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.ListView; import android.widget.RelativeLayout; import android.widget.TextView; import com.android.volley.RequestQueue; import com.android.volley.toolbox.ImageLoader; import com.android.volley.toolbox.ImageLruCache; import com.android.volley.toolbox.NetworkImageView; import com.winsun.fruitmix.AlbumPicContentActivity; import com.winsun.fruitmix.NavPagerActivity; import com.winsun.fruitmix.NewAlbumPicChooseActivity; import com.winsun.fruitmix.R; import com.winsun.fruitmix.model.Media; import com.winsun.fruitmix.model.RequestQueueInstance; import com.winsun.fruitmix.model.MediaShare; import com.winsun.fruitmix.util.FNAS; import com.winsun.fruitmix.util.LocalCache; import com.winsun.fruitmix.util.Util; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; import java.util.List; import java.util.Map; /** * Created by Administrator on 2016/4/19. */ public class AlbumList implements NavPagerActivity.Page { public static final String TAG = AlbumList.class.getSimpleName(); NavPagerActivity containerActivity; View view; ImageView ivAdd; LinearLayout mLoadingLayout; LinearLayout mNoContentLayout; private ListView mainListView; List<MediaShare> mediaShareList; private long mDownTime = 0; private double mDiffTimeMilliSecond = 200; private RequestQueue mRequestQueue; private ImageLoader mImageLoader; public AlbumList(NavPagerActivity activity_) { containerActivity = activity_; view = LayoutInflater.from(containerActivity.getApplicationContext()).inflate( R.layout.album_list, null); mRequestQueue = RequestQueueInstance.REQUEST_QUEUE_INSTANCE.getmRequestQueue(); mImageLoader = new ImageLoader(mRequestQueue, ImageLruCache.instance()); Map<String, String> headers = new HashMap<>(); headers.put(Util.KEY_AUTHORIZATION, Util.KEY_JWT_HEAD + FNAS.JWT); Log.i(TAG, FNAS.JWT); mImageLoader.setHeaders(headers); mainListView = (ListView) view.findViewById(R.id.mainList); mainListView.setAdapter(new AlbumListViewAdapter(this)); mLoadingLayout = (LinearLayout) view.findViewById(R.id.loading_layout); mNoContentLayout = (LinearLayout) view.findViewById(R.id.no_content_layout); ivAdd = (ImageView) view.findViewById(R.id.add_album); ivAdd.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Intent intent = new Intent(); intent.setClass(containerActivity, NewAlbumPicChooseActivity.class); containerActivity.startActivityForResult(intent, Util.KEY_CHOOSE_PHOTO_REQUEST_CODE); } }); } public void reloadList() { List<MediaShare> mediaShareList1; mediaShareList1 = new ArrayList<>(); for (MediaShare mediaShare : LocalCache.LocalMediaShareMapKeyIsUUID.values()) { if (mediaShare.isAlbum() && !mediaShare.isArchived()) { mediaShareList1.add(mediaShare); } } for (MediaShare mediaShare : LocalCache.RemoteMediaShareMapKeyIsUUID.values()) { if (mediaShare.isAlbum() && !mediaShare.isArchived()) { mediaShareList1.add(mediaShare); } } Collections.sort(mediaShareList1, new Comparator<MediaShare>() { @Override public int compare(MediaShare lhs, MediaShare rhs) { long mtime1 = Long.parseLong(lhs.getTime()); long mtime2 = Long.parseLong(rhs.getTime()); if (mtime1 < mtime2) return 1; else if (mtime1 > mtime2) return -1; else return 0; } }); mediaShareList = mediaShareList1; } public void refreshView() { mLoadingLayout.setVisibility(View.VISIBLE); reloadList(); mLoadingLayout.setVisibility(View.GONE); ivAdd.setVisibility(View.VISIBLE); if (mediaShareList.size() == 0) { mNoContentLayout.setVisibility(View.VISIBLE); mainListView.setVisibility(View.GONE); } else { mNoContentLayout.setVisibility(View.GONE); mainListView.setVisibility(View.VISIBLE); ((BaseAdapter) (mainListView.getAdapter())).notifyDataSetChanged(); mainListView.setSelection(0); } } public void onDidAppear() { refreshView(); } public View getView() { return view; } private class AlbumListViewAdapter extends BaseAdapter { AlbumList container; RelativeLayout lastMainbar; public static final int LOCAL_ITEM_WITH_NETWORK = 0; public static final int SUCCEED = 1; public static final int REMOTE_ITEM_WITHOUT_NETWORK = 2; public static final int EXCEPTION = 3; AlbumListViewAdapter(AlbumList container_) { container = container_; } @Override public int getCount() { if (container.mediaShareList == null) return 0; return container.mediaShareList.size(); } @Override public View getView(final int position, final View convertView, ViewGroup parent) { View view; final MediaShare currentItem; final RelativeLayout mainBar; NetworkImageView ivMainPic; ImageView ivRecommand, ivCreate, ivLock; TextView lbHot, lbTitle, lbDesc, lbDate, lbOwner, lbPhotoCount; TextView lbDelete, lbShare; Media coverImg; final boolean sLocal; int w, h; if (convertView == null) view = LayoutInflater.from(container.containerActivity).inflate(R.layout.album_list_cell, parent, false); else view = convertView; currentItem = (MediaShare) this.getItem(position); mainBar = (RelativeLayout) view.findViewById(R.id.mainBar); ivMainPic = (NetworkImageView) view.findViewById(R.id.mainPic); ivRecommand = (ImageView) view.findViewById(R.id.recommand); ivCreate = (ImageView) view.findViewById(R.id.create); ivLock = (ImageView) view.findViewById(R.id.lock); lbHot = (TextView) view.findViewById(R.id.hot); lbTitle = (TextView) view.findViewById(R.id.title); lbPhotoCount = (TextView) view.findViewById(R.id.photo_count_tv); lbDesc = (TextView) view.findViewById(R.id.desc); lbDelete = (TextView) view.findViewById(R.id.delete); lbShare = (TextView) view.findViewById(R.id.share); lbDate = (TextView) view.findViewById(R.id.date); lbOwner = (TextView) view.findViewById(R.id.owner); //restore mainbar state mainBar.setTranslationX(0.0f); //check image coverImg = LocalCache.RemoteMediaMapKeyIsUUID.get(currentItem.getCoverImageDigest()); if (coverImg != null) sLocal = false; else { coverImg = LocalCache.LocalMediaMapKeyIsUUID.get(currentItem.getCoverImageDigest()); sLocal = true; } if (coverImg != null) { if (sLocal) { // local bitmap path String url = coverImg.getThumb(); mImageLoader.setShouldCache(false); ivMainPic.setTag(url); ivMainPic.setDefaultImageResId(R.drawable.placeholder_photo); ivMainPic.setImageUrl(url, mImageLoader); } else { w = Integer.parseInt(coverImg.getWidth()); h = Integer.parseInt(coverImg.getHeight()); int[] result = Util.formatPhotoWidthHeight(w, h); String url = String.format(containerActivity.getString(R.string.thumb_photo_url), FNAS.Gateway + Util.MEDIA_PARAMETER + "/" + coverImg.getUuid(), String.valueOf(result[0]), String.valueOf(result[1])); mImageLoader.setShouldCache(true); ivMainPic.setTag(url); ivMainPic.setDefaultImageResId(R.drawable.placeholder_photo); ivMainPic.setImageUrl(url, mImageLoader); } } else { ivMainPic.setDefaultImageResId(R.drawable.placeholder_photo); ivMainPic.setImageUrl(null, mImageLoader); } if (currentItem.getViewer().isEmpty()) { ivLock.setVisibility(View.GONE); lbShare.setText(containerActivity.getString(R.string.public_text)); } else { ivLock.setVisibility(View.VISIBLE); lbShare.setText(containerActivity.getString(R.string.private_text)); } lbTitle.setText(currentItem.getTitle()); lbPhotoCount.setText(String.format(containerActivity.getString(R.string.photo_count), String.valueOf(currentItem.getImageDigests().size()))); lbDesc.setText(currentItem.getDesc()); lbDate.setText(currentItem.getDate().substring(0, 10)); lbOwner.setText(LocalCache.RemoteUserMapKeyIsUUID.get(currentItem.getCreatorUUID()).getUserName()); lbShare.setOnClickListener(new View.OnClickListener() { @Override public void onClick(final View v) { MediaShare cloneMediaShare = currentItem.cloneMyself(); if (cloneMediaShare.getViewer().isEmpty()) { cloneMediaShare.setViewer(new ArrayList<>(LocalCache.RemoteUserMapKeyIsUUID.keySet())); } else { cloneMediaShare.setViewer(Collections.<String>emptyList()); } containerActivity.modifyMediaShare(cloneMediaShare); } }); lbDelete.setOnClickListener(new View.OnClickListener() { @Override public void onClick(final View v) { containerActivity.deleteMediaShare(currentItem); } }); mainBar.setOnTouchListener(new View.OnTouchListener() { float x, y, lastX, lastY, vY, vX; @Override public boolean onTouch(View v, MotionEvent event) { int margin; margin = Util.dip2px(100); switch (event.getAction() & MotionEvent.ACTION_MASK) { case MotionEvent.ACTION_DOWN: if (lastMainbar != null) lastMainbar.setTranslationX(0.0f); lastMainbar = mainBar; x = event.getRawX() - mainBar.getTranslationX(); y = event.getRawY(); lastX = x; lastY = y; mDownTime = System.currentTimeMillis(); Log.d(TAG, "down"); break; case MotionEvent.ACTION_UP: Log.d(TAG, "up X:" + (lastX - x) + " Y:" + (lastY - y)); if (System.currentTimeMillis() - mDownTime < mDiffTimeMilliSecond && (lastX - x) * (lastX - x) + (lastY - y) * (lastY - y) < 100.0) { Intent intent = new Intent(); intent.setClass(containerActivity, AlbumPicContentActivity.class); intent.putExtra(Util.KEY_MEDIASHARE, currentItem); containerActivity.startActivityForResult(intent, Util.KEY_ALBUM_CONTENT_REQUEST_CODE); } case MotionEvent.ACTION_CANCEL: Log.d(TAG, "cancel " + (lastX - x) + " " + (lastY - y)); if (lastX - x > -margin + 0.5 && lastX - x < margin - 0.5) { if (vX > 30.0) mainBar.setTranslationX(margin); else if (vX < -30.0) mainBar.setTranslationX(-margin); else mainBar.setTranslationX(0.0f); } break; case MotionEvent.ACTION_MOVE: vX = event.getRawX() - lastX; vY = event.getRawX() - lastY; lastX = event.getRawX(); lastY = event.getRawY(); if (lastX - x > margin) lastX = x + margin; else if (lastX - x < -margin) lastX = x - margin; mainBar.setTranslationX(lastX - x); break; } return true; } }); return view; } @Override public long getItemId(int position) { return position; } @Override public Object getItem(int position) { return container.mediaShareList.get(position); } } }
package software.sailes.monitoring.infrastructure; import software.amazon.awscdk.core.App; import software.amazon.awscdk.core.Environment; import software.amazon.awscdk.core.StackProps; public class InfrastructureApp { public static void main(final String[] args) { App app = new App(); new InfrastructureStack(app, "QuotaCatcher", StackProps.builder() .env(Environment.builder() .account(System.getenv("CDK_DEFAULT_ACCOUNT")) .region(System.getenv("CDK_DEFAULT_REGION")) .build()) .build()); app.synth(); } }
/* * Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.mq.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListUsers" target="_top">AWS API Documentation</a> */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ListUsersRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** * <p> * The unique ID that Amazon MQ generates for the broker. * </p> */ private String brokerId; /** * <p> * The maximum number of brokers that Amazon MQ can return per page (20 by default). This value must be an integer * from 5 to 100. * </p> */ private Integer maxResults; /** * <p> * The token that specifies the next page of results Amazon MQ should return. To request the first page, leave * nextToken empty. * </p> */ private String nextToken; /** * <p> * The unique ID that Amazon MQ generates for the broker. * </p> * * @param brokerId * The unique ID that Amazon MQ generates for the broker. */ public void setBrokerId(String brokerId) { this.brokerId = brokerId; } /** * <p> * The unique ID that Amazon MQ generates for the broker. * </p> * * @return The unique ID that Amazon MQ generates for the broker. */ public String getBrokerId() { return this.brokerId; } /** * <p> * The unique ID that Amazon MQ generates for the broker. * </p> * * @param brokerId * The unique ID that Amazon MQ generates for the broker. * @return Returns a reference to this object so that method calls can be chained together. */ public ListUsersRequest withBrokerId(String brokerId) { setBrokerId(brokerId); return this; } /** * <p> * The maximum number of brokers that Amazon MQ can return per page (20 by default). This value must be an integer * from 5 to 100. * </p> * * @param maxResults * The maximum number of brokers that Amazon MQ can return per page (20 by default). This value must be an * integer from 5 to 100. */ public void setMaxResults(Integer maxResults) { this.maxResults = maxResults; } /** * <p> * The maximum number of brokers that Amazon MQ can return per page (20 by default). This value must be an integer * from 5 to 100. * </p> * * @return The maximum number of brokers that Amazon MQ can return per page (20 by default). This value must be an * integer from 5 to 100. */ public Integer getMaxResults() { return this.maxResults; } /** * <p> * The maximum number of brokers that Amazon MQ can return per page (20 by default). This value must be an integer * from 5 to 100. * </p> * * @param maxResults * The maximum number of brokers that Amazon MQ can return per page (20 by default). This value must be an * integer from 5 to 100. * @return Returns a reference to this object so that method calls can be chained together. */ public ListUsersRequest withMaxResults(Integer maxResults) { setMaxResults(maxResults); return this; } /** * <p> * The token that specifies the next page of results Amazon MQ should return. To request the first page, leave * nextToken empty. * </p> * * @param nextToken * The token that specifies the next page of results Amazon MQ should return. To request the first page, * leave nextToken empty. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** * <p> * The token that specifies the next page of results Amazon MQ should return. To request the first page, leave * nextToken empty. * </p> * * @return The token that specifies the next page of results Amazon MQ should return. To request the first page, * leave nextToken empty. */ public String getNextToken() { return this.nextToken; } /** * <p> * The token that specifies the next page of results Amazon MQ should return. To request the first page, leave * nextToken empty. * </p> * * @param nextToken * The token that specifies the next page of results Amazon MQ should return. To request the first page, * leave nextToken empty. * @return Returns a reference to this object so that method calls can be chained together. */ public ListUsersRequest withNextToken(String nextToken) { setNextToken(nextToken); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getBrokerId() != null) sb.append("BrokerId: ").append(getBrokerId()).append(","); if (getMaxResults() != null) sb.append("MaxResults: ").append(getMaxResults()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListUsersRequest == false) return false; ListUsersRequest other = (ListUsersRequest) obj; if (other.getBrokerId() == null ^ this.getBrokerId() == null) return false; if (other.getBrokerId() != null && other.getBrokerId().equals(this.getBrokerId()) == false) return false; if (other.getMaxResults() == null ^ this.getMaxResults() == null) return false; if (other.getMaxResults() != null && other.getMaxResults().equals(this.getMaxResults()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBrokerId() == null) ? 0 : getBrokerId().hashCode()); hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); return hashCode; } @Override public ListUsersRequest clone() { return (ListUsersRequest) super.clone(); } }
package com.typemapper.core.fieldMapper; import org.apache.log4j.Logger; public class IntFieldMapper implements FieldMapper { private static final Logger LOG = Logger.getLogger(IntFieldMapper.class); @Override public Object mapField(String string, Class clazz) { if (string == null) { return 0; } try { return Integer.parseInt(string); } catch (NumberFormatException e) { LOG.error("Could not convert " + string + " to int.", e); } return 0; } }
package io.nuls.kernel.type; import io.nuls.kernel.utils.SerializeUtils; import org.junit.Test; import static org.junit.Assert.assertEquals; /** * @author Niels * @date 2018/5/17 */ public class Int48Test { @Test public void test() { long time = -1L; byte[] bytes = SerializeUtils.uint48ToBytes(time); long value = readInt48(bytes); // assertEquals(value, time); } @Test public void testLong() { byte[] bytes = new byte[]{-1,-1,-1,-1,-1,-1,0,0}; long value = SerializeUtils.readInt64LE(bytes,0); System.out.println(value); } private long readInt48(byte[] bytes) { long value = (bytes[0] & 0xffL) | ((bytes[1] & 0xffL) << 8) | ((bytes[2] & 0xffL) << 16) | ((bytes[3] & 0xffL) << 24) | ((bytes[4] & 0xffL) << 32) | ((bytes[5] & 0xffL) << 40) ; return value; } }
package com.doopp.gutty.test.dao; import com.doopp.gutty.test.pojo.User; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; import java.util.List; @Mapper public interface UserDao { @Select({ "<script>", "SELECT * FROM `auth_user`", "</script>" }) List<User> selectAll(); @Select("SELECT * FROM `auth_user` WHERE `id`=#{id}") User selectById(@Param("id") Long id); }
package ca.wescook.microbes.items; import ca.wescook.microbes.Microbes; import ca.wescook.microbes.creativetabs.ModCreativeTabs; import ca.wescook.microbes.entities.EntityMoldyBread; import net.minecraft.client.renderer.block.model.ModelResourceLocation; import net.minecraft.client.resources.I18n; import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.MobEffects; import net.minecraft.item.ItemFood; import net.minecraft.item.ItemStack; import net.minecraft.potion.PotionEffect; import net.minecraft.util.text.TextFormatting; import net.minecraft.world.World; import net.minecraftforge.client.model.ModelLoader; import net.minecraftforge.fml.common.registry.GameRegistry; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; import java.util.List; public class ItemMoldyBread extends ItemFood { ItemMoldyBread(int amount, float saturation, boolean isWolfFood) { super(amount, saturation, isWolfFood); setRegistryName("moldy_bread"); setUnlocalizedName(getRegistryName().toString()); GameRegistry.register(this); setCreativeTab(ModCreativeTabs.microbesTab); } @SideOnly(Side.CLIENT) void render() { // Maps item to blockstate json of same name ModelLoader.setCustomModelResourceLocation(this, 0, new ModelResourceLocation(getRegistryName(), "inventory")); } @Override protected void onFoodEaten(ItemStack stack, World worldIn, EntityPlayer playerIn) { if (!worldIn.isRemote) { // Apply potion effects playerIn.addPotionEffect(new PotionEffect(MobEffects.HUNGER, 400, 3)); } } // Mark the item as having a custom entity when dropped @Override public boolean hasCustomEntity(ItemStack stack) { return true; } // Return a copy of our custom thrown entity @Override public Entity createEntity(World worldIn, Entity entityIn, ItemStack itemStackIn) { return new EntityMoldyBread(worldIn, entityIn, itemStackIn); } // Add tooltips @Override public void addInformation(ItemStack itemStackIn, EntityPlayer playerIn, List<String> tooltip, boolean advanced) { tooltip.add(I18n.format("tooltip." + Microbes.MODID + ":moldy_bread", TextFormatting.DARK_GRAY)); } }
package com.google.api.ads.adwords.jaxws.v201603.o; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; /** * * {@link Attribute} type that contains a list of {@link MonthlySearchVolume} * values. The list contains the past 12 {@link MonthlySearchVolume}s * (excluding the current month). The first item is the data for the most * recent month and the last item is the data for the oldest month. * * * <p>Java class for MonthlySearchVolumeAttribute complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="MonthlySearchVolumeAttribute"> * &lt;complexContent> * &lt;extension base="{https://adwords.google.com/api/adwords/o/v201603}Attribute"> * &lt;sequence> * &lt;element name="value" type="{https://adwords.google.com/api/adwords/o/v201603}MonthlySearchVolume" maxOccurs="unbounded" minOccurs="0"/> * &lt;/sequence> * &lt;/extension> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "MonthlySearchVolumeAttribute", propOrder = { "value" }) public class MonthlySearchVolumeAttribute extends Attribute { protected List<MonthlySearchVolume> value; /** * Gets the value of the value 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 value property. * * <p> * For example, to add a new item, do as follows: * <pre> * getValue().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link MonthlySearchVolume } * * */ public List<MonthlySearchVolume> getValue() { if (value == null) { value = new ArrayList<MonthlySearchVolume>(); } return this.value; } }
package module1564_internal.a; import javax.annotation.processing.*; import javax.lang.model.*; import javax.management.*; /** * Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut * labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. * Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. * * @see java.io.File * @see java.rmi.Remote * @see java.nio.file.FileStore */ @SuppressWarnings("all") public abstract class Foo0<Y> implements module1564_internal.a.IFoo0<Y> { java.sql.Array f0 = null; java.util.logging.Filter f1 = null; java.util.zip.Deflater f2 = null; public Y element; public static Foo0 instance; public static Foo0 getInstance() { return instance; } public static <T> T create(java.util.List<T> input) { return null; } public String getName() { return element.toString(); } public void setName(String string) { return; } public Y get() { return element; } public void set(Object element) { this.element = (Y)element; } public Y call() throws Exception { return (Y)getInstance().call(); } }
/* * Copyright 2019 GridGain Systems, Inc. and Contributors. * * Licensed under the GridGain Community Edition License (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.gridgain.com/products/software/community-edition/gridgain-community-edition-license * * 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.ignite.internal.processors.query.h2.opt; import org.apache.ignite.internal.util.typedef.internal.S; import org.h2.result.Row; import org.h2.value.Value; /** * Single value row. */ public class H2PlainRowSingle extends H2Row { /** */ private Value v; /** * @param v Value. */ public H2PlainRowSingle(Value v) { this.v = v; } /** {@inheritDoc} */ @Override public int getColumnCount() { return 1; } /** {@inheritDoc} */ @Override public Value getValue(int idx) { assert idx == 0 : idx; return v; } /** {@inheritDoc} */ @Override public void setValue(int idx, Value v) { assert idx == 0 : idx; this.v = v; } /** {@inheritDoc} */ @Override public boolean hasSharedData(Row other) { if (other.getClass() == H2PlainRowSingle.class) return v == ((H2PlainRowSingle) other).v; return false; } /** {@inheritDoc} */ @Override public boolean indexSearchRow() { return true; } /** {@inheritDoc} */ @Override public String toString() { return S.toString(H2PlainRowSingle.class, this); } }
/* * Copyright 2002-2014 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 org.springframework.orm.jpa.vendor; import java.sql.Connection; import java.sql.SQLException; import javax.persistence.EntityManager; import javax.persistence.PersistenceException; import org.eclipse.persistence.sessions.UnitOfWork; import org.springframework.jdbc.datasource.ConnectionHandle; import org.springframework.orm.jpa.DefaultJpaDialect; import org.springframework.transaction.TransactionDefinition; import org.springframework.transaction.TransactionException; /** * {@link org.springframework.orm.jpa.JpaDialect} implementation for Eclipse * Persistence Services (EclipseLink). Developed and tested against EclipseLink 2.4. * * <p>By default, this class acquires an early EclipseLink transaction with an early * JDBC Connection for non-read-only transactions. This allows for mixing JDBC and * JPA/EclipseLink operations in the same transaction, with cross visibility of * their impact. If this is not needed, set the "lazyDatabaseTransaction" flag to * {@code true} or consistently declare all affected transactions as read-only. * As of Spring 4.1.2, this will reliably avoid early JDBC Connection retrieval * and therefore keep EclipseLink in shared cache mode. * * @author Juergen Hoeller * @since 2.5.2 * @see #setLazyDatabaseTransaction * @see org.springframework.jdbc.datasource.LazyConnectionDataSourceProxy */ @SuppressWarnings("serial") public class EclipseLinkJpaDialect extends DefaultJpaDialect { private boolean lazyDatabaseTransaction = false; /** * Set whether to lazily start a database resource transaction within a * Spring-managed EclipseLink transaction. * <p>By default, read-only transactions are started lazily but regular * non-read-only transactions are started early. This allows for reusing the * same JDBC Connection throughout an entire EclipseLink transaction, for * enforced isolation and consistent visibility with JDBC access code working * on the same DataSource. * <p>Switch this flag to "true" to enforce a lazy database transaction begin * even for non-read-only transactions, allowing access to EclipseLink's * shared cache and following EclipseLink's connection mode configuration, * assuming that isolation and visibility at the JDBC level are less important. * @see org.eclipse.persistence.sessions.UnitOfWork#beginEarlyTransaction() */ public void setLazyDatabaseTransaction(boolean lazyDatabaseTransaction) { this.lazyDatabaseTransaction = lazyDatabaseTransaction; } @Override public Object beginTransaction(EntityManager entityManager, TransactionDefinition definition) throws PersistenceException, SQLException, TransactionException { if (definition.getIsolationLevel() != TransactionDefinition.ISOLATION_DEFAULT) { // Pass custom isolation level on to EclipseLink's DatabaseLogin configuration // (since Spring 4.1.2) UnitOfWork uow = entityManager.unwrap(UnitOfWork.class); uow.getLogin().setTransactionIsolation(definition.getIsolationLevel()); } entityManager.getTransaction().begin(); if (!definition.isReadOnly() && !this.lazyDatabaseTransaction) { // Begin an early transaction to force EclipseLink to get a JDBC Connection // so that Spring can manage transactions with JDBC as well as EclipseLink. entityManager.unwrap(UnitOfWork.class).beginEarlyTransaction(); } return null; } @Override public ConnectionHandle getJdbcConnection(EntityManager entityManager, boolean readOnly) throws PersistenceException, SQLException { // As of Spring 4.1.2, we're using a custom ConnectionHandle for lazy retrieval // of the underlying Connection (allowing for deferred internal transaction begin // within the EclipseLink EntityManager) return new EclipseLinkConnectionHandle(entityManager); } /** * {@link ConnectionHandle} implementation that lazily fetches an * EclipseLink-provided Connection on the first {@code getConnection} call - * which may never come if no application code requests a JDBC Connection. * This is useful to defer the early transaction begin that obtaining a * JDBC Connection implies within an EclipseLink EntityManager. */ private static class EclipseLinkConnectionHandle implements ConnectionHandle { private final EntityManager entityManager; private Connection connection; public EclipseLinkConnectionHandle(EntityManager entityManager) { this.entityManager = entityManager; } @Override public Connection getConnection() { if (this.connection == null) { this.connection = this.entityManager.unwrap(Connection.class); } return this.connection; } @Override public void releaseConnection(Connection con) { } } }
/* * Copyright 2016 John Grosh (jagrosh). * * 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 fr.svivien.btbot; import com.jagrosh.jdautilities.command.CommandClient; import com.jagrosh.jdautilities.command.CommandClientBuilder; import com.jagrosh.jdautilities.commons.waiter.EventWaiter; import fr.svivien.btbot.blindtest.BlindTest; import fr.svivien.btbot.blindtest.PropositionListener; import fr.svivien.btbot.commands.blindtest.dj.*; import fr.svivien.btbot.commands.blindtest.dm.*; import fr.svivien.btbot.commands.blindtest.pub.PlaylistCmd; import fr.svivien.btbot.commands.blindtest.pub.PoolCmd; import fr.svivien.btbot.commands.blindtest.pub.RulesCmd; import fr.svivien.btbot.commands.blindtest.pub.ScoreboardCmd; import fr.svivien.btbot.commands.owner.*; import fr.svivien.btbot.entities.Prompt; import fr.svivien.btbot.gui.GUI; import fr.svivien.btbot.settings.Settings; import fr.svivien.btbot.settings.SettingsManager; import net.dv8tion.jda.api.JDA; import net.dv8tion.jda.api.JDABuilder; import net.dv8tion.jda.api.OnlineStatus; import net.dv8tion.jda.api.Permission; import net.dv8tion.jda.api.entities.Activity; import net.dv8tion.jda.api.entities.Guild; import net.dv8tion.jda.api.entities.TextChannel; import net.dv8tion.jda.api.requests.GatewayIntent; import net.dv8tion.jda.api.utils.cache.CacheFlag; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javax.security.auth.login.LoginException; import java.util.Arrays; import java.util.List; import java.util.stream.Collectors; /** * @author John Grosh (jagrosh) */ public class BlindTestBot { public final static String PLAY_EMOJI = "\u25B6"; // ▶ public final static String PAUSE_EMOJI = "\u23F8"; // ⏸ public final static String STOP_EMOJI = "\u23F9"; // ⏹ public final static Permission[] RECOMMENDED_PERMS = {Permission.MESSAGE_READ, Permission.MESSAGE_WRITE, Permission.MESSAGE_HISTORY, Permission.MESSAGE_ADD_REACTION, Permission.MESSAGE_EMBED_LINKS, Permission.MESSAGE_ATTACH_FILES, Permission.MESSAGE_MANAGE, Permission.MESSAGE_EXT_EMOJI, Permission.MANAGE_CHANNEL, Permission.VOICE_CONNECT, Permission.VOICE_SPEAK, Permission.NICKNAME_CHANGE}; public final static GatewayIntent[] INTENTS = {GatewayIntent.DIRECT_MESSAGES, GatewayIntent.GUILD_MESSAGES, GatewayIntent.GUILD_MESSAGE_REACTIONS, GatewayIntent.GUILD_VOICE_STATES}; /** * @param args the command line arguments */ public static void main(String[] args) { // startup log Logger log = LoggerFactory.getLogger("Startup"); // create prompt to handle startup Prompt prompt = new Prompt("BlindTestBot", "Switching to nogui mode. You can manually start in nogui mode by including the -Dnogui=true flag.", "true".equalsIgnoreCase(System.getProperty("nogui", "false"))); // check for valid java version if (!System.getProperty("java.vm.name").contains("64")) prompt.alert(Prompt.Level.WARNING, "Java Version", "It appears that you may not be using a supported Java version. Please use 64-bit java."); // load config BotConfig config = new BotConfig(prompt); config.load(); if (!config.isValid()) return; // set up the listener EventWaiter waiter = new EventWaiter(); SettingsManager settings = new SettingsManager(); Bot bot = new Bot(waiter, config, settings); // set up the blind-test instance BlindTest blindTest = new BlindTest(config); PropositionListener propositionListener = new PropositionListener(blindTest); // set up the command client CommandClientBuilder cb = new CommandClientBuilder() .setPrefix(config.getPrefix()) .setListener(propositionListener) .setAlternativePrefix(config.getAltPrefix()) .setOwnerId(Long.toString(config.getOwnerId())) .setEmojis(config.getSuccess(), config.getWarning(), config.getError()) .setHelpWord(config.getHelp()) .setLinkedCacheSize(200) .setGuildSettingsManager(settings) .addCommands( new NextCmd(bot, blindTest), new StopCmd(bot, blindTest), new PlayCmd(bot, blindTest), new PauseCmd(bot, blindTest), new AddPointCmd(bot, blindTest), new LimitCmd(bot, blindTest), new LockPoolCmd(bot, blindTest), new ResetCmd(bot, blindTest), new RestoreCmd(bot, blindTest), new BackupCmd(bot, blindTest), new AddCmd(bot, blindTest), new RemoveCmd(bot, blindTest), new ListCmd(bot, blindTest), new SetCmd(bot, blindTest), new UnsetCmd(bot, blindTest), new TimestampCmd(bot, blindTest), new PoolCmd(bot, blindTest), new ScoreboardCmd(bot, blindTest), new RulesCmd(bot, blindTest, config.getHelp(), config.getMaximumExtrasNumber(), config.getPrefix()), new PlaylistCmd(bot, blindTest), new SetdjCmd(bot), new SettcCmd(bot, blindTest), new DebugCmd(bot), new SetavatarCmd(bot), new SetnameCmd(bot), new ShutdownCmd(bot) ); boolean nogame = false; if (config.getStatus() != OnlineStatus.UNKNOWN) cb.setStatus(config.getStatus()); if (config.getGame() == null) cb.useDefaultGame(); else if (config.getGame().getName().equalsIgnoreCase("none")) { cb.setActivity(null); nogame = true; } else cb.setActivity(config.getGame()); if (!prompt.isNoGUI()) { try { GUI gui = new GUI(bot); bot.setGUI(gui); gui.init(); } catch (Exception e) { log.error("Could not start GUI. If you are " + "running on a server or in a location where you cannot display a " + "window, please run in nogui mode using the -Dnogui=true flag."); } } log.info("Loaded config from " + config.getConfigLocation()); // attempt to log in and start try { CommandClient cmdClient = cb.build(); JDA jda = JDABuilder.create(config.getToken(), Arrays.asList(INTENTS)) .enableCache(CacheFlag.MEMBER_OVERRIDES, CacheFlag.VOICE_STATE) .disableCache(CacheFlag.ACTIVITY, CacheFlag.CLIENT_STATUS, CacheFlag.EMOTE) .setActivity(nogame ? null : Activity.playing("loading...")) .setStatus(config.getStatus() == OnlineStatus.INVISIBLE || config.getStatus() == OnlineStatus.OFFLINE ? OnlineStatus.INVISIBLE : OnlineStatus.DO_NOT_DISTURB) .addEventListeners(cmdClient, waiter, new Listener(bot)) .setBulkDeleteSplittingEnabled(true) .build(); bot.setJDA(jda); // check single-server jda.awaitStatus(JDA.Status.CONNECTED); List<Guild> guilds = jda.getGuilds(); if (guilds.size() != 1) { prompt.alert(Prompt.Level.ERROR, "BlindTestBot", "The bot can not be installed on more than 1 server. It is currently on servers : " + guilds.stream().map(Guild::getName).collect(Collectors.joining(", "))); System.exit(1); } // set up blind-test channel Guild guild = guilds.get(0); Settings s = cmdClient.getSettingsFor(guild); TextChannel textChannel = s.getTextChannel(guild); if (textChannel == null) { List<TextChannel> channels = guild.getTextChannels(); textChannel = channels.get(0); s.setTextChannel(textChannel); textChannel.sendMessage("Blind-Test commands can now only be used in <#" + textChannel.getId() + ">").queue(); } blindTest.setBtChannel(textChannel); } catch (LoginException ex) { prompt.alert(Prompt.Level.ERROR, "BlindTestBot", ex + "\nPlease make sure you are " + "editing the correct config.txt file, and that you have used the " + "correct token (not the 'secret'!)\nConfig Location: " + config.getConfigLocation()); System.exit(1); } catch (IllegalArgumentException ex) { prompt.alert(Prompt.Level.ERROR, "BlindTestBot", "Some aspect of the configuration is " + "invalid: " + ex + "\nConfig Location: " + config.getConfigLocation()); System.exit(1); } catch (InterruptedException e) { prompt.alert(Prompt.Level.ERROR, "BlindTestBot", "Error while awaiting for JDA to connect"); System.exit(1); } blindTest.restoreState("AUTO"); } }
package com.airbnb.epoxy; import com.google.testing.compile.JavaFileObjects; import org.junit.Test; import java.util.Arrays; import javax.tools.JavaFileObject; import static com.airbnb.epoxy.ProcessorTestUtils.processors; import static com.google.common.truth.Truth.assert_; import static com.google.testing.compile.JavaSourcesSubjectFactory.javaSources; public class EpoxyResourceProcessorTest { private static final JavaFileObject R = JavaFileObjects.forSourceString("com.airbnb.epoxy.R", "" + "package com.airbnb.epoxy;\n" + "public final class R {\n" + " public static final class array {\n" + " public static final int res = 0x7f040001;\n" + " }\n" + " public static final class bool {\n" + " public static final int res = 0x7f040002;\n" + " }\n" + " public static final class color {\n" + " public static final int res = 0x7f040003;\n" + " }\n" + " public static final class layout {\n" + " public static final int res = 0x7f040008;\n" + " }\n" + " public static final class integer {\n" + " public static final int res = 0x7f040004;\n" + " }\n" + " public static final class styleable {\n" + " public static final int[] ActionBar = { 0x7f010001, 0x7f010003 };\n" + " }\n" + "}" ); private static final JavaFileObject R_FROM_DIFFERENT_PACKAGE_WITH_SAME_VALUE = JavaFileObjects.forSourceString("com.airbnb.epoxy.othermodule.R", "" + "package com.airbnb.epoxy.othermodule;\n" + "public final class R {\n" + " public static final class layout {\n" + " public static final int res_in_other_module = 0x7f040008;\n" + " }\n" + "}" ); @Test public void testGenerateDefaultLayoutMethod() { JavaFileObject model = JavaFileObjects .forResource(GuavaPatch.patchResource("ModelForRProcessingTest.java")); JavaFileObject generatedModel = JavaFileObjects .forResource(GuavaPatch.patchResource("ModelForRProcessingTest_.java")); assert_().about(javaSources()) .that(Arrays.asList(model, R)) .processedWith(processors()) .compilesWithoutError() .and() .generatesSources(generatedModel); } @Test public void testRFilesWithSameValue() { // These two models use different R classes, but their layout value within each R class is // the same. This tests that the resource processor namespaces the R classes correctly to // avoid collisions between the two identical layout values. JavaFileObject model = JavaFileObjects .forResource(GuavaPatch.patchResource("ModelForRProcessingTest.java")); JavaFileObject modelWithDifferentRClass = JavaFileObjects .forResource(GuavaPatch.patchResource("ModelForTestingDuplicateRValues.java")); JavaFileObject generatedModel = JavaFileObjects .forResource(GuavaPatch.patchResource("ModelForRProcessingTest_.java")); JavaFileObject generatedModelWithDifferentRClass = JavaFileObjects .forResource(GuavaPatch.patchResource("ModelForTestingDuplicateRValues_.java")); assert_().about(javaSources()) .that(Arrays .asList(model, modelWithDifferentRClass, R, R_FROM_DIFFERENT_PACKAGE_WITH_SAME_VALUE)) .processedWith(processors()) .compilesWithoutError() .and() .generatesSources(generatedModel, generatedModelWithDifferentRClass); } }
package com.mijibox.openfin.jjs; import java.util.concurrent.CompletionStage; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; public interface OfUtils { static <T> T runSync(CompletionStage<T> future) { try { return future.toCompletableFuture().exceptionally(e -> { e.printStackTrace(); throw new RuntimeException(e); }).get(30, TimeUnit.SECONDS); } catch (InterruptedException | ExecutionException | TimeoutException e) { throw new RuntimeException(e); } } }
package com.braunster.chatsdk.interfaces; import org.jdeferred.Promise; /** * Created by Erk on 26.07.2016. */ public interface BUploadHandler { public Promise uploadFile(byte[] data, String name, String mimeType); }
package compiler.cstruct; import java.io.File; import java.util.*; /** * User: Javier Isoldi * Date: 4/29/13 * Time: 12:53 PM */ public class Module { // list of modules that must not be considered as part of the project (or the particular system). // This list contain modules that are part of the language (e.g. stdio.h) private static final String[] MODULE_LIST; private File file; // name of the module private List<Module> modulesIncluded; //list of includes defined in the header private List<Function> functions; //list of functions defined and implemented private List<Attribute> atributes; private Map<String, Number> defines; public Module(File moduleFile) { file = moduleFile; functions = new LinkedList<>(); modulesIncluded = new LinkedList<>(); atributes = new ArrayList<>(); defines = new TreeMap<>(); } public void addFunction(Function function) { functions.add(function); } public void addModule(Module module) { modulesIncluded.add(0, module); } static { MODULE_LIST = new String[]{"assert.h", "complex.h", "ctype.h", "errno.h", "fenv.h", "float.h", "inttypes.h", "iso646.h", "limits.h", "locale.h", "math.h", "setjmp.h", //BasicsModules, dont want to analyse these "signal.h", "stdarg.h", "stdbool.h", "stdint.h", "stddef.h", "stdio.h", "stdlib.h", "string.h", "tgmath.h", "time.h", "wchar.h", "wctype.h", "windows.h", "conio.h", "fcntl.h", "unistd.h", "gdk/gdk.h", "gdk.h", "gtk.h", "glib.h"}; } public List<Attribute> getAtributes() { return atributes; } public void setAtributes(List<Attribute> atributes) { this.atributes = atributes; } public void addAttribute(Attribute attribute) { atributes.add(attribute); } public void addDefine(Map.Entry<String, Number> entry) { defines.put(entry.getKey(), entry.getValue()); } public Map<String, Number> getDefines() { return defines; } public void setDefines(Map<String, Number> defines) { this.defines = defines; } public boolean isBasicModule() { boolean aux = false; String module = file.getName(); for (String moduleListItem : MODULE_LIST) { if (module.equals(moduleListItem)) { aux = true; } } return aux; } public List<Module> getModulesIncluded() { return modulesIncluded; } public void setModulesIncluded(List<Module> modulesIncluded) { this.modulesIncluded = modulesIncluded; } public List<Function> getFunctions() { return functions; } public void setFunctions(List<Function> functions) { this.functions = functions; } public String toString() { String modulePrint; if (!isBasicModule()) { modulePrint = "\t\"" + file.getName() + "\"\n\n"; if (functions != null) { if (!functions.isEmpty()) { String intro = "\tThe functions in this module are (" + functions.size() + ") : \n"; modulePrint += intro + printList(functions); } else { String intro = "\tThis module has no functions \n"; modulePrint += intro; } } if (modulesIncluded != null) { if (!modulesIncluded.isEmpty()) { String intro = "\tThe modules of this module are (" + modulesIncluded.size() + ") : \n"; modulePrint += intro + printList(modulesIncluded); } else { String intro = "\tThis module has no modules \n"; modulePrint += intro; } } if (atributes != null) { if (!atributes.isEmpty()) { String intro = "\tThe attributes of this module are (" + atributes.size() + ") : \n"; modulePrint += intro + printList(atributes); } else { String intro = "\tThis module has no attributes \n"; modulePrint += intro; } } } else { modulePrint = "\t\"" + file.getName() + "\"\n\n" + "This is a basic module.\n"; } return modulePrint; } private String printList(List list) { String aux = ""; for (Object o : list) { aux += "\n" + o.toString() + "\n\t ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ \n"; } aux += "\n"; return aux; } public File getFile() { return file; } public void setFile(File file) { this.file = file; } }
/** * This package contains the Application services a Bounded Context’s domain model would require. * <p> * Application services classes serve multiple purposes: * - Act as ports for input interfaces and output repositories * - Commands, Queries, Events, and Saga participants * - Transaction initiation, control, and termination * - Centralized concerns (e.g., Logging, Security, Metrics) for the underlying domain model * - Data transfer object transformation * - Callouts to other Bounded Contexts */ package io.github.bhuwanupadhyay.onlineshop.inventory.application; /* Package structure for Application services application > transform sags internal > commands queries events */
/** * @author hjj * @create 2020/8/17 15:47 */ public class Insertion extends Template { public static void sort(Comparable[] a) { int length = a.length; for (int i = 1; i < length; i++) { // 左边始终保持是有序的 // j 代表当前,如果小于j-1就交换 然后在j-- 此时已经交换 // ex:原 a[j]=4 a[j-1]=9 a[j]=9 a[j-1]=4; j--此时a[j]=4 a[j-1]=xxx // 其实就相当于后一位比较前一位 如果小于就换位 然后将j指向换位后的左边 原j-1 现j 然后在向左边进行比较 直到 j>0 && less(a[j], a[j - 1]) // 然后向左对比 循环结束 跳出该层级 i++ 向右挪位 for (int j = i; j > 0 && less(a[j], a[j - 1]); j--) { // System.out.println("a[j]:" + a[j] + "---》" +"a[j-1]:" + a[j - 1]); exch(a, j, j - 1); // Insertion.show(a); } } } // public static void sort(Comparable[] a) { // int length = a.length; // for (int i = 1; i < length; i++) { // for (int j = i; j > 0 && less(a[j], a[j - 1]); j--) { // exch(a, j, j - 1); // } // } // } public static void main(String[] args) { Integer[] arr = new Integer[]{9, 5, 4, 6, 1}; Insertion.show(arr); Insertion.sort(arr); // Insertion.show(arr); System.out.println(isSorted(arr)); } }
/** * Copyright 2016 Nikita Koksharov * * 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.redisson.api; import java.util.Map; import java.util.Set; import org.reactivestreams.Publisher; /** * map functions * * @author Nikita Koksharov * * @param <K> key * @param <V> value */ public interface RMapReactive<K, V> extends RExpirableReactive { Publisher<Map<K, V>> getAll(Set<K> keys); Publisher<Void> putAll(Map<? extends K, ? extends V> map); Publisher<V> addAndGet(K key, Number value); Publisher<Boolean> containsValue(Object value); Publisher<Boolean> containsKey(Object key); Publisher<Integer> size(); /** * Removes <code>keys</code> from map by one operation in manner * * Works faster than <code>RMap.remove</code> but not returning * the value associated with <code>key</code> * * @param keys - map keys * @return the number of keys that were removed from the hash, not including specified but non existing keys */ Publisher<Long> fastRemove(K ... keys); /** * Associates the specified <code>value</code> with the specified <code>key</code> * in manner. * * Works faster than <code>RMap.put</code> but not returning * the previous value associated with <code>key</code> * * @param key - map key * @param value - map value * @return <code>true</code> if key is a new key in the hash and value was set. * <code>false</code> if key already exists in the hash and the value was updated. */ Publisher<Boolean> fastPut(K key, V value); Publisher<V> get(K key); Publisher<V> put(K key, V value); Publisher<V> remove(K key); Publisher<V> replace(K key, V value); Publisher<Boolean> replace(K key, V oldValue, V newValue); Publisher<Boolean> remove(Object key, Object value); Publisher<V> putIfAbsent(K key, V value); Publisher<Map.Entry<K, V>> entryIterator(); Publisher<V> valueIterator(); Publisher<K> keyIterator(); }
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.codeInspection.deadCode; import com.intellij.ToolExtensionPoints; import com.intellij.analysis.AnalysisScope; import com.intellij.codeInsight.daemon.GroupNames; import com.intellij.codeInsight.daemon.impl.HighlightInfoType; import com.intellij.codeInsight.daemon.impl.analysis.HighlightUtilBase; import com.intellij.codeInspection.*; import com.intellij.codeInspection.ex.EntryPointsManager; import com.intellij.codeInspection.ex.GlobalInspectionContextBase; import com.intellij.codeInspection.ex.JobDescriptor; import com.intellij.codeInspection.reference.*; import com.intellij.codeInspection.unusedSymbol.UnusedSymbolLocalInspectionBase; import com.intellij.codeInspection.util.RefFilter; import com.intellij.ide.highlighter.JavaFileType; import com.intellij.openapi.application.ApplicationManager; import com.intellij.openapi.diagnostic.Logger; import com.intellij.openapi.extensions.ExtensionPoint; import com.intellij.openapi.extensions.Extensions; import com.intellij.openapi.progress.ProgressManager; import com.intellij.openapi.project.Project; import com.intellij.openapi.util.InvalidDataException; import com.intellij.openapi.util.WriteExternalException; import com.intellij.openapi.vfs.VirtualFile; import com.intellij.profile.codeInspection.InspectionProjectProfileManager; import com.intellij.psi.*; import com.intellij.psi.impl.PsiClassImplUtil; import com.intellij.psi.search.DelegatingGlobalSearchScope; import com.intellij.psi.search.GlobalSearchScope; import com.intellij.psi.search.PsiNonJavaFileReferenceProcessor; import com.intellij.psi.search.PsiSearchHelper; import com.intellij.psi.util.PsiMethodUtil; import com.intellij.util.containers.ContainerUtil; import org.jdom.Element; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import org.jetbrains.annotations.TestOnly; import java.util.*; /** * @author max * @since Oct 12, 2001 */ public class UnusedDeclarationInspectionBase extends GlobalInspectionTool { private static final Logger LOG = Logger.getInstance(UnusedDeclarationInspectionBase.class); public boolean ADD_MAINS_TO_ENTRIES = true; public boolean ADD_APPLET_TO_ENTRIES = true; public boolean ADD_SERVLET_TO_ENTRIES = true; public boolean ADD_NONJAVA_TO_ENTRIES = true; private boolean TEST_ENTRY_POINTS = true; public static final String DISPLAY_NAME = InspectionsBundle.message("inspection.dead.code.display.name"); public static final String SHORT_NAME = HighlightInfoType.UNUSED_SYMBOL_SHORT_NAME; public static final String ALTERNATIVE_ID = "UnusedDeclaration"; final List<EntryPoint> myExtensions = ContainerUtil.createLockFreeCopyOnWriteList(); final UnusedSymbolLocalInspectionBase myLocalInspectionBase = createUnusedSymbolLocalInspection(); private Set<RefElement> myProcessedSuspicious; private int myPhase; private final boolean myEnabledInEditor; @SuppressWarnings("TestOnlyProblems") public UnusedDeclarationInspectionBase() { this(!ApplicationManager.getApplication().isUnitTestMode()); } @TestOnly public UnusedDeclarationInspectionBase(boolean enabledInEditor) { ExtensionPoint<EntryPoint> point = Extensions.getRootArea().getExtensionPoint(ToolExtensionPoints.DEAD_CODE_TOOL); EntryPoint[] extensions = point.getExtensions(); List<EntryPoint> deadCodeAddIns = new ArrayList<>(extensions.length); for (EntryPoint entryPoint : extensions) { try { deadCodeAddIns.add(entryPoint.clone()); } catch (Exception e) { LOG.error(e); } } Collections.sort(deadCodeAddIns, (o1, o2) -> o1.getDisplayName().compareToIgnoreCase(o2.getDisplayName())); myExtensions.addAll(deadCodeAddIns); myEnabledInEditor = enabledInEditor; } protected UnusedSymbolLocalInspectionBase createUnusedSymbolLocalInspection() { return new UnusedSymbolLocalInspectionBase(); } @NotNull @Override public UnusedSymbolLocalInspectionBase getSharedLocalInspectionTool() { return myLocalInspectionBase; } private boolean isAddMainsEnabled() { return ADD_MAINS_TO_ENTRIES; } private boolean isAddAppletEnabled() { return ADD_APPLET_TO_ENTRIES; } private boolean isAddServletEnabled() { return ADD_SERVLET_TO_ENTRIES; } private boolean isAddNonJavaUsedEnabled() { return ADD_NONJAVA_TO_ENTRIES; } public boolean isTestEntryPoints() { return TEST_ENTRY_POINTS; } public void setTestEntryPoints(boolean testEntryPoints) { TEST_ENTRY_POINTS = testEntryPoints; } @Override @NotNull public String getDisplayName() { return DISPLAY_NAME; } @Override @NotNull public String getGroupDisplayName() { return GroupNames.DECLARATION_REDUNDANCY; } @Override @NotNull public String getShortName() { return SHORT_NAME; } @Override public void readSettings(@NotNull Element node) throws InvalidDataException { super.readSettings(node); myLocalInspectionBase.readSettings(node); for (EntryPoint extension : myExtensions) { extension.readExternal(node); } final String testEntriesAttr = node.getAttributeValue("test_entries"); TEST_ENTRY_POINTS = testEntriesAttr == null || Boolean.parseBoolean(testEntriesAttr); } @Override public void writeSettings(@NotNull Element node) throws WriteExternalException { myLocalInspectionBase.writeSettings(node); writeUnusedDeclarationSettings(node); if (!TEST_ENTRY_POINTS) { node.setAttribute("test_entries", Boolean.toString(false)); } } protected void writeUnusedDeclarationSettings(Element node) throws WriteExternalException { super.writeSettings(node); for (EntryPoint extension : myExtensions) { extension.writeExternal(node); } } private static boolean isExternalizableNoParameterConstructor(@NotNull PsiMethod method, RefClass refClass) { if (!method.isConstructor()) return false; if (!method.hasModifierProperty(PsiModifier.PUBLIC)) return false; final PsiParameterList parameterList = method.getParameterList(); if (!parameterList.isEmpty()) return false; final PsiClass aClass = method.getContainingClass(); return aClass == null || isExternalizable(aClass, refClass); } private static boolean isSerializationImplicitlyUsedField(@NotNull PsiField field) { final String name = field.getName(); if (!HighlightUtilBase.SERIAL_VERSION_UID_FIELD_NAME.equals(name) && !"serialPersistentFields".equals(name)) return false; if (!field.hasModifierProperty(PsiModifier.STATIC)) return false; PsiClass aClass = field.getContainingClass(); return aClass == null || isSerializable(aClass, null); } private static boolean isWriteObjectMethod(@NotNull PsiMethod method, RefClass refClass) { final String name = method.getName(); if (!"writeObject".equals(name)) return false; PsiParameter[] parameters = method.getParameterList().getParameters(); if (parameters.length != 1) return false; if (!equalsToText(parameters[0].getType(), "java.io.ObjectOutputStream")) return false; if (method.hasModifierProperty(PsiModifier.STATIC)) return false; PsiClass aClass = method.getContainingClass(); return !(aClass != null && !isSerializable(aClass, refClass)); } private static boolean isReadObjectMethod(@NotNull PsiMethod method, RefClass refClass) { final String name = method.getName(); if (!"readObject".equals(name)) return false; PsiParameter[] parameters = method.getParameterList().getParameters(); if (parameters.length != 1) return false; if (!equalsToText(parameters[0].getType(), "java.io.ObjectInputStream")) return false; if (method.hasModifierProperty(PsiModifier.STATIC)) return false; PsiClass aClass = method.getContainingClass(); return !(aClass != null && !isSerializable(aClass, refClass)); } private static boolean isWriteReplaceMethod(@NotNull PsiMethod method, RefClass refClass) { final String name = method.getName(); if (!"writeReplace".equals(name)) return false; PsiParameter[] parameters = method.getParameterList().getParameters(); if (parameters.length != 0) return false; if (!equalsToText(method.getReturnType(), CommonClassNames.JAVA_LANG_OBJECT)) return false; if (method.hasModifierProperty(PsiModifier.STATIC)) return false; PsiClass aClass = method.getContainingClass(); return !(aClass != null && !isSerializable(aClass, refClass)); } private static boolean isReadResolveMethod(@NotNull PsiMethod method, RefClass refClass) { final String name = method.getName(); if (!"readResolve".equals(name)) return false; PsiParameter[] parameters = method.getParameterList().getParameters(); if (parameters.length != 0) return false; if (!equalsToText(method.getReturnType(), CommonClassNames.JAVA_LANG_OBJECT)) return false; if (method.hasModifierProperty(PsiModifier.STATIC)) return false; final PsiClass aClass = method.getContainingClass(); return !(aClass != null && !isSerializable(aClass, refClass)); } private static boolean equalsToText(PsiType type, String text) { return type != null && type.equalsToText(text); } private static boolean isSerializable(PsiClass aClass, @Nullable RefClass refClass) { final PsiClass serializableClass = JavaPsiFacade.getInstance(aClass.getProject()).findClass("java.io.Serializable", aClass.getResolveScope()); return serializableClass != null && isSerializable(aClass, refClass, serializableClass); } private static boolean isExternalizable(@NotNull PsiClass aClass, RefClass refClass) { final GlobalSearchScope scope = aClass.getResolveScope(); final PsiClass externalizableClass = JavaPsiFacade.getInstance(aClass.getProject()).findClass("java.io.Externalizable", scope); return externalizableClass != null && isSerializable(aClass, refClass, externalizableClass); } private static boolean isSerializable(PsiClass aClass, RefClass refClass, PsiClass serializableClass) { if (aClass == null) return false; if (aClass.isInheritor(serializableClass, true)) return true; if (refClass != null) { final Set<RefClass> subClasses = refClass.getSubClasses(); for (RefClass subClass : subClasses) { if (isSerializable(subClass.getElement(), subClass, serializableClass)) return true; } } return false; } @Override public void runInspection(@NotNull final AnalysisScope scope, @NotNull InspectionManager manager, @NotNull final GlobalInspectionContext globalContext, @NotNull ProblemDescriptionsProcessor problemDescriptionsProcessor) { globalContext.getRefManager().iterate(new RefJavaVisitor() { @Override public void visitElement(@NotNull final RefEntity refEntity) { if (refEntity instanceof RefElementImpl) { final RefElementImpl refElement = (RefElementImpl)refEntity; if (!refElement.isSuspicious()) return; PsiFile file = refElement.getContainingFile(); if (file == null) return; final boolean isSuppressed = refElement.isSuppressed(getShortName(), ALTERNATIVE_ID); if (isSuppressed || !((GlobalInspectionContextBase)globalContext).isToCheckFile(file, UnusedDeclarationInspectionBase.this)) { if (isSuppressed || !scope.contains(file)) { getEntryPointsManager(globalContext).addEntryPoint(refElement, false); } } } } }); if (isAddNonJavaUsedEnabled()) { checkForReachableRefs(globalContext); final StrictUnreferencedFilter strictUnreferencedFilter = new StrictUnreferencedFilter(this, globalContext); ProgressManager.getInstance().runProcess(new Runnable() { @Override public void run() { final RefManager refManager = globalContext.getRefManager(); final PsiSearchHelper helper = PsiSearchHelper.getInstance(refManager.getProject()); refManager.iterate(new RefJavaVisitor() { @Override public void visitElement(@NotNull final RefEntity refEntity) { if (refEntity instanceof RefClass && strictUnreferencedFilter.accepts((RefClass)refEntity)) { findExternalClassReferences((RefClass)refEntity); } else if (refEntity instanceof RefMethod) { RefMethod refMethod = (RefMethod)refEntity; if (refMethod.isConstructor() && strictUnreferencedFilter.accepts(refMethod)) { findExternalClassReferences(refMethod.getOwnerClass()); } } } private void findExternalClassReferences(final RefClass refElement) { final PsiClass psiClass = refElement.getElement(); String qualifiedName = psiClass != null ? psiClass.getQualifiedName() : null; if (qualifiedName != null) { final GlobalSearchScope projectScope = GlobalSearchScope.projectScope(globalContext.getProject()); final PsiNonJavaFileReferenceProcessor processor = (file, startOffset, endOffset) -> { getEntryPointsManager(globalContext).addEntryPoint(refElement, false); return false; }; final DelegatingGlobalSearchScope globalSearchScope = new DelegatingGlobalSearchScope(projectScope) { @Override public boolean contains(@NotNull VirtualFile file) { return file.getFileType() != JavaFileType.INSTANCE && super.contains(file); } }; helper.processUsagesInNonJavaFiles(qualifiedName, processor, globalSearchScope); //references from java-like are already in graph or //they would be checked during GlobalJavaInspectionContextImpl.performPostRunActivities for (RefElement element : refElement.getInReferences()) { if (!(element instanceof RefJavaElement)) { getEntryPointsManager(globalContext).addEntryPoint(refElement, false); } } } } }); } }, null); } myProcessedSuspicious = new HashSet<>(); myPhase = 1; } public boolean isEntryPoint(@NotNull RefElement owner) { final PsiElement element = owner.getElement(); if (RefUtil.isImplicitUsage(element)) return true; if (element instanceof PsiModifierListOwner) { final EntryPointsManager entryPointsManager = EntryPointsManager.getInstance(element.getProject()); if (entryPointsManager.isEntryPoint(element)) { return true; } } if (element != null) { for (EntryPoint extension : myExtensions) { if (extension.isSelected() && extension.isEntryPoint(owner, element)) { return true; } } if (isAddMainsEnabled() && owner instanceof RefMethod && ((RefMethod)owner).isAppMain()) { return true; } if (owner instanceof RefClass) { if (isAddAppletEnabled() && ((RefClass)owner).isApplet() || isAddServletEnabled() && ((RefClass)owner).isServlet()) { return true; } } } return false; } public boolean isEntryPoint(@NotNull PsiElement element) { final Project project = element.getProject(); final JavaPsiFacade psiFacade = JavaPsiFacade.getInstance(project); if (element instanceof PsiMethod && isAddMainsEnabled() && PsiClassImplUtil.isMainOrPremainMethod((PsiMethod)element)) { return true; } if (element instanceof PsiClass) { PsiClass aClass = (PsiClass)element; final PsiClass applet = psiFacade.findClass("java.applet.Applet", GlobalSearchScope.allScope(project)); if (isAddAppletEnabled() && applet != null && aClass.isInheritor(applet, true)) { return true; } final PsiClass servlet = psiFacade.findClass("javax.servlet.Servlet", GlobalSearchScope.allScope(project)); if (isAddServletEnabled() && servlet != null && aClass.isInheritor(servlet, true)) { return true; } if (isAddMainsEnabled()) { if (hasMainMethodDeep(aClass)) return true; } } if (element instanceof PsiModifierListOwner) { final EntryPointsManager entryPointsManager = EntryPointsManager.getInstance(project); if (entryPointsManager.isEntryPoint(element)) return true; } for (EntryPoint extension : myExtensions) { if (extension.isSelected() && extension.isEntryPoint(element)) { return true; } } return RefUtil.isImplicitUsage(element); } private static boolean hasMainMethodDeep(PsiClass aClass) { if (PsiMethodUtil.hasMainMethod(aClass)) return true; for (PsiClass innerClass : aClass.getInnerClasses()) { if (innerClass.hasModifierProperty(PsiModifier.STATIC) && PsiMethodUtil.hasMainMethod(innerClass)) { return true; } } return false; } public boolean isGlobalEnabledInEditor() { return myEnabledInEditor; } @NotNull public static UnusedDeclarationInspectionBase findUnusedDeclarationInspection(@NotNull PsiElement element) { InspectionProfile profile = InspectionProjectProfileManager.getInstance(element.getProject()).getCurrentProfile(); UnusedDeclarationInspectionBase tool = (UnusedDeclarationInspectionBase)profile.getUnwrappedTool(SHORT_NAME, element); return tool == null ? new UnusedDeclarationInspectionBase() : tool; } public static boolean isDeclaredAsEntryPoint(@NotNull PsiElement method) { return findUnusedDeclarationInspection(method).isEntryPoint(method); } private static class StrictUnreferencedFilter extends UnreferencedFilter { private StrictUnreferencedFilter(@NotNull UnusedDeclarationInspectionBase tool, @NotNull GlobalInspectionContext context) { super(tool, context); } @Override public int getElementProblemCount(@NotNull RefJavaElement refElement) { final int problemCount = super.getElementProblemCount(refElement); if (problemCount > -1) return problemCount; return refElement.isReferenced() ? 0 : 1; } } @Override public boolean queryExternalUsagesRequests(@NotNull InspectionManager manager, @NotNull GlobalInspectionContext globalContext, @NotNull ProblemDescriptionsProcessor problemDescriptionsProcessor) { checkForReachableRefs(globalContext); final RefFilter filter = myPhase == 1 ? new StrictUnreferencedFilter(this, globalContext) : new RefUnreachableFilter(this, globalContext); LOG.assertTrue(myProcessedSuspicious != null, "phase: " + myPhase); final boolean[] requestAdded = {false}; globalContext.getRefManager().iterate(new RefJavaVisitor() { @Override public void visitElement(@NotNull RefEntity refEntity) { if (!(refEntity instanceof RefJavaElement)) return; if (refEntity instanceof RefClass && ((RefClass)refEntity).isAnonymous()) return; RefJavaElement refElement = (RefJavaElement)refEntity; if (filter.accepts(refElement) && !myProcessedSuspicious.contains(refElement)) { refEntity.accept(new RefJavaVisitor() { @Override public void visitField(@NotNull final RefField refField) { myProcessedSuspicious.add(refField); PsiField psiField = refField.getElement(); if (psiField != null && isSerializationImplicitlyUsedField(psiField)) { getEntryPointsManager(globalContext).addEntryPoint(refField, false); } else { globalContext.getExtension(GlobalJavaInspectionContext.CONTEXT).enqueueFieldUsagesProcessor(refField, psiReference -> { getEntryPointsManager(globalContext).addEntryPoint(refField, false); return false; }); requestAdded[0] = true; } } @Override public void visitMethod(@NotNull final RefMethod refMethod) { myProcessedSuspicious.add(refMethod); if (refMethod instanceof RefImplicitConstructor) { visitClass(refMethod.getOwnerClass()); } else { PsiMethod psiMethod = (PsiMethod)refMethod.getElement(); if (psiMethod != null && isSerializablePatternMethod(psiMethod, refMethod.getOwnerClass())) { getEntryPointsManager(globalContext).addEntryPoint(refMethod, false); } else if (!refMethod.isExternalOverride() && !PsiModifier.PRIVATE.equals(refMethod.getAccessModifier())) { for (final RefMethod derivedMethod : refMethod.getDerivedMethods()) { myProcessedSuspicious.add(derivedMethod); } enqueueMethodUsages(globalContext, refMethod); requestAdded[0] = true; } } } @Override public void visitClass(@NotNull final RefClass refClass) { myProcessedSuspicious.add(refClass); if (!refClass.isAnonymous()) { globalContext.getExtension(GlobalJavaInspectionContext.CONTEXT).enqueueDerivedClassesProcessor(refClass, inheritor -> { getEntryPointsManager(globalContext).addEntryPoint(refClass, false); return false; }); globalContext.getExtension(GlobalJavaInspectionContext.CONTEXT).enqueueClassUsagesProcessor(refClass, psiReference -> { getEntryPointsManager(globalContext).addEntryPoint(refClass, false); return false; }); requestAdded[0] = true; } } }); } } }); if (!requestAdded[0]) { if (myPhase == 2) { myProcessedSuspicious = null; return false; } else { myPhase = 2; } } return true; } private static boolean isSerializablePatternMethod(@NotNull PsiMethod psiMethod, RefClass refClass) { return isReadObjectMethod(psiMethod, refClass) || isWriteObjectMethod(psiMethod, refClass) || isReadResolveMethod(psiMethod, refClass) || isWriteReplaceMethod(psiMethod, refClass) || isExternalizableNoParameterConstructor(psiMethod, refClass); } private static void enqueueMethodUsages(GlobalInspectionContext globalContext, final RefMethod refMethod) { if (refMethod.getSuperMethods().isEmpty()) { globalContext.getExtension(GlobalJavaInspectionContext.CONTEXT).enqueueMethodUsagesProcessor(refMethod, psiReference -> { getEntryPointsManager(globalContext).addEntryPoint(refMethod, false); return false; }); } else { for (RefMethod refSuper : refMethod.getSuperMethods()) { enqueueMethodUsages(globalContext, refSuper); } } } @Nullable @Override public JobDescriptor[] getAdditionalJobs(GlobalInspectionContext context) { return new JobDescriptor[]{context.getStdJobDescriptors().BUILD_GRAPH, context.getStdJobDescriptors().FIND_EXTERNAL_USAGES}; } void checkForReachableRefs(@NotNull final GlobalInspectionContext context) { CodeScanner codeScanner = new CodeScanner(); // Cleanup previous reachability information. context.getRefManager().iterate(new RefJavaVisitor() { @Override public void visitElement(@NotNull RefEntity refEntity) { if (refEntity instanceof RefJavaElementImpl) { final RefJavaElementImpl refElement = (RefJavaElementImpl)refEntity; if (!((GlobalInspectionContextBase)context).isToCheckMember(refElement, UnusedDeclarationInspectionBase.this)) return; refElement.setReachable(false); } } }); for (RefElement entry : getEntryPointsManager(context).getEntryPoints()) { entry.accept(codeScanner); } while (codeScanner.newlyInstantiatedClassesCount() != 0) { codeScanner.cleanInstantiatedClassesCount(); codeScanner.processDelayedMethods(); } } private static EntryPointsManager getEntryPointsManager(final GlobalInspectionContext context) { return context.getExtension(GlobalJavaInspectionContext.CONTEXT).getEntryPointsManager(context.getRefManager()); } private static class CodeScanner extends RefJavaVisitor { private final Map<RefClass, Set<RefMethod>> myClassIDtoMethods = new HashMap<>(); private final Set<RefClass> myInstantiatedClasses = new HashSet<>(); private int myInstantiatedClassesCount; private final Set<RefMethod> myProcessedMethods = new HashSet<>(); @Override public void visitMethod(@NotNull RefMethod method) { if (!myProcessedMethods.contains(method)) { // Process class's static initializers if (method.isStatic() || method.isConstructor()) { if (method.isConstructor()) { addInstantiatedClass(method.getOwnerClass()); } else { ((RefClassImpl)method.getOwnerClass()).setReachable(true); } myProcessedMethods.add(method); makeContentReachable((RefJavaElementImpl)method); makeClassInitializersReachable(method.getOwnerClass()); } else { if (isClassInstantiated(method.getOwnerClass())) { myProcessedMethods.add(method); makeContentReachable((RefJavaElementImpl)method); } else { addDelayedMethod(method); } for (RefMethod refSub : method.getDerivedMethods()) { visitMethod(refSub); } } } } @Override public void visitClass(@NotNull RefClass refClass) { boolean alreadyActive = refClass.isReachable(); ((RefClassImpl)refClass).setReachable(true); if (!alreadyActive) { // Process class's static initializers. makeClassInitializersReachable(refClass); } addInstantiatedClass(refClass); } @Override public void visitField(@NotNull RefField field) { // Process class's static initializers. if (!field.isReachable()) { makeContentReachable((RefJavaElementImpl)field); makeClassInitializersReachable(field.getOwnerClass()); } } private void addInstantiatedClass(RefClass refClass) { if (myInstantiatedClasses.add(refClass)) { ((RefClassImpl)refClass).setReachable(true); myInstantiatedClassesCount++; final List<RefMethod> refMethods = refClass.getLibraryMethods(); for (RefMethod refMethod : refMethods) { refMethod.accept(this); } for (RefClass baseClass : refClass.getBaseClasses()) { addInstantiatedClass(baseClass); } } } private void makeContentReachable(RefJavaElementImpl refElement) { refElement.setReachable(true); for (RefElement refCallee : refElement.getOutReferences()) { refCallee.accept(this); } } private void makeClassInitializersReachable(RefClass refClass) { for (RefElement refCallee : refClass.getOutReferences()) { refCallee.accept(this); } } private void addDelayedMethod(RefMethod refMethod) { Set<RefMethod> methods = myClassIDtoMethods.get(refMethod.getOwnerClass()); if (methods == null) { methods = new HashSet<>(); myClassIDtoMethods.put(refMethod.getOwnerClass(), methods); } methods.add(refMethod); } private boolean isClassInstantiated(RefClass refClass) { return myInstantiatedClasses.contains(refClass); } private int newlyInstantiatedClassesCount() { return myInstantiatedClassesCount; } private void cleanInstantiatedClassesCount() { myInstantiatedClassesCount = 0; } private void processDelayedMethods() { RefClass[] instClasses = myInstantiatedClasses.toArray(new RefClass[0]); for (RefClass refClass : instClasses) { if (isClassInstantiated(refClass)) { Set<RefMethod> methods = myClassIDtoMethods.get(refClass); if (methods != null) { RefMethod[] arMethods = methods.toArray(new RefMethod[0]); for (RefMethod arMethod : arMethods) { arMethod.accept(this); } } } } } } public List<EntryPoint> getExtensions() { return myExtensions; } }
/** * 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.activemq.openwire.v4; import org.apache.activemq.command.BrokerId; import org.apache.activemq.command.ConsumerId; import org.apache.activemq.command.ConsumerInfo; /** * Test case for the OpenWire marshalling for ConsumerInfo * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. */ public class ConsumerInfoTest extends BaseCommandTestSupport { public static ConsumerInfoTest SINGLETON = new ConsumerInfoTest(); @Override public Object createObject() throws Exception { ConsumerInfo info = new ConsumerInfo(); populateObject(info); return info; } @Override protected void populateObject(Object object) throws Exception { super.populateObject(object); ConsumerInfo info = (ConsumerInfo) object; info.setConsumerId(createConsumerId("ConsumerId:1")); info.setBrowser(true); info.setDestination(createActiveMQDestination("Destination:2")); info.setPrefetchSize(1); info.setMaximumPendingMessageLimit(2); info.setDispatchAsync(false); info.setSelector("Selector:3"); info.setSubscriptionName("SubscriptionName:4"); info.setNoLocal(true); info.setExclusive(false); info.setRetroactive(true); info.setPriority((byte) 1); { BrokerId value[] = new BrokerId[2]; for (int i = 0; i < 2; i++) { value[i] = createBrokerId("BrokerPath:5"); } info.setBrokerPath(value); } info.setAdditionalPredicate(createBooleanExpression("AdditionalPredicate:6")); info.setNetworkSubscription(false); info.setOptimizedAcknowledge(true); info.setNoRangeAcks(false); { ConsumerId value[] = new ConsumerId[2]; for (int i = 0; i < 2; i++) { value[i] = createConsumerId("NetworkConsumerPath:7"); } info.setNetworkConsumerPath(value); } } }
package com.codamasters.gameobjects; import com.badlogic.gdx.physics.box2d.Body; import com.badlogic.gdx.physics.box2d.BodyDef; import com.badlogic.gdx.physics.box2d.Fixture; import com.badlogic.gdx.physics.box2d.FixtureDef; import com.badlogic.gdx.physics.box2d.PolygonShape; import com.badlogic.gdx.physics.box2d.World; import com.badlogic.gdx.physics.box2d.BodyDef.BodyType; public class Bin { private Body body; private Fixture fixture; public final float WIDTH, HEIGHT; private World world; private boolean nibolasInside; public Bin(World world, float x, float y, float width, float height) { WIDTH = width; HEIGHT = height; this.world = world; nibolasInside = false; BodyDef bodyDef = new BodyDef(); bodyDef.type = BodyType.StaticBody; bodyDef.position.set(x, y); bodyDef.fixedRotation = true; PolygonShape shape = new PolygonShape(); shape.setAsBox(width / 2, height/2); FixtureDef fixtureDef = new FixtureDef(); fixtureDef.shape = shape; fixtureDef.restitution = 0; fixtureDef.friction = 0; fixtureDef.density = 3; body = world.createBody(bodyDef); fixture = body.createFixture(fixtureDef); shape.dispose(); } public float getRestitution() { return fixture.getRestitution(); } public void setRestitution(float restitution) { fixture.setRestitution(restitution); } public Body getBody() { return body; } public Fixture getFixture() { return fixture; } public void destroy(){ body.destroyFixture(fixture); world.destroyBody(body); } public void setNibolasInside(boolean nibolasInside){ this.nibolasInside = nibolasInside; } public boolean isNibolasInside(){ return nibolasInside; } }
/* AUTO-GENERATED FILE. DO NOT MODIFY. * * This class was automatically generated by the * aapt tool from the resource data it found. It * should not be modified by hand. */ package com.example.android.camera2basic; public final class R { public static final class anim { public static final int abc_fade_in=0x7f010000; public static final int abc_fade_out=0x7f010001; public static final int abc_grow_fade_in_from_bottom=0x7f010002; public static final int abc_popup_enter=0x7f010003; public static final int abc_popup_exit=0x7f010004; public static final int abc_shrink_fade_out_from_bottom=0x7f010005; public static final int abc_slide_in_bottom=0x7f010006; public static final int abc_slide_in_top=0x7f010007; public static final int abc_slide_out_bottom=0x7f010008; public static final int abc_slide_out_top=0x7f010009; } public static final class attr { /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int actionBarDivider=0x7f020000; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int actionBarItemBackground=0x7f020001; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int actionBarPopupTheme=0x7f020002; /** * <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), and * mm (millimeters). * <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>wrap_content</td><td>0</td><td></td></tr> * </table> */ public static final int actionBarSize=0x7f020003; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int actionBarSplitStyle=0x7f020004; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int actionBarStyle=0x7f020005; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int actionBarTabBarStyle=0x7f020006; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int actionBarTabStyle=0x7f020007; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int actionBarTabTextStyle=0x7f020008; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int actionBarTheme=0x7f020009; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int actionBarWidgetTheme=0x7f02000a; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int actionButtonStyle=0x7f02000b; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int actionDropDownStyle=0x7f02000c; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int actionLayout=0x7f02000d; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int actionMenuTextAppearance=0x7f02000e; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or 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=0x7f02000f; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int actionModeBackground=0x7f020010; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int actionModeCloseButtonStyle=0x7f020011; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int actionModeCloseDrawable=0x7f020012; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int actionModeCopyDrawable=0x7f020013; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int actionModeCutDrawable=0x7f020014; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int actionModeFindDrawable=0x7f020015; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int actionModePasteDrawable=0x7f020016; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int actionModePopupWindowStyle=0x7f020017; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int actionModeSelectAllDrawable=0x7f020018; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int actionModeShareDrawable=0x7f020019; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int actionModeSplitBackground=0x7f02001a; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int actionModeStyle=0x7f02001b; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int actionModeWebSearchDrawable=0x7f02001c; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int actionOverflowButtonStyle=0x7f02001d; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int actionOverflowMenuStyle=0x7f02001e; /** * <p>May be a string value, using '\\;' to escape characters such as * '\\n' or '\\uxxxx' for a unicode character; */ public static final int actionProviderClass=0x7f02001f; /** * <p>May be a string value, using '\\;' to escape characters such as * '\\n' or '\\uxxxx' for a unicode character; */ public static final int actionViewClass=0x7f020020; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int activityChooserViewStyle=0x7f020021; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int alertDialogButtonGroupStyle=0x7f020022; /** * <p>May be a boolean value, such as "<code>true</code>" or * "<code>false</code>". */ public static final int alertDialogCenterButtons=0x7f020023; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int alertDialogStyle=0x7f020024; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int alertDialogTheme=0x7f020025; /** * <p>May be a boolean value, such as "<code>true</code>" or * "<code>false</code>". */ public static final int allowStacking=0x7f020026; /** * <p>May be a floating point value, such as "<code>1.2</code>". */ public static final int alpha=0x7f020027; /** * <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), and * mm (millimeters). */ public static final int arrowHeadLength=0x7f020028; /** * <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), and * mm (millimeters). */ public static final int arrowShaftLength=0x7f020029; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int autoCompleteTextViewStyle=0x7f02002a; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int background=0x7f02002b; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or 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=0x7f02002c; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or 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=0x7f02002d; /** * <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 backgroundTint=0x7f02002e; /** * <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>multiply</td><td>e</td><td></td></tr> * <tr><td>screen</td><td>f</td><td></td></tr> * <tr><td>src_atop</td><td>9</td><td></td></tr> * <tr><td>src_in</td><td>5</td><td></td></tr> * <tr><td>src_over</td><td>3</td><td></td></tr> * </table> */ public static final int backgroundTintMode=0x7f02002f; /** * <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), and * mm (millimeters). */ public static final int barLength=0x7f020030; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int borderlessButtonStyle=0x7f020031; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int buttonBarButtonStyle=0x7f020032; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int buttonBarNegativeButtonStyle=0x7f020033; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int buttonBarNeutralButtonStyle=0x7f020034; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int buttonBarPositiveButtonStyle=0x7f020035; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int buttonBarStyle=0x7f020036; /** * <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>bottom</td><td>50</td><td></td></tr> * <tr><td>top</td><td>30</td><td></td></tr> * </table> */ public static final int buttonGravity=0x7f020037; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int buttonPanelSideLayout=0x7f020038; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int buttonStyle=0x7f020039; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int buttonStyleSmall=0x7f02003a; /** * <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 buttonTint=0x7f02003b; /** * <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>multiply</td><td>e</td><td></td></tr> * <tr><td>screen</td><td>f</td><td></td></tr> * <tr><td>src_atop</td><td>9</td><td></td></tr> * <tr><td>src_in</td><td>5</td><td></td></tr> * <tr><td>src_over</td><td>3</td><td></td></tr> * </table> */ public static final int buttonTintMode=0x7f02003c; /** * <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 cardBackgroundColor=0x7f02003d; /** * <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), and * mm (millimeters). */ public static final int cardCornerRadius=0x7f02003e; /** * <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), and * mm (millimeters). */ public static final int cardElevation=0x7f02003f; /** * <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), and * mm (millimeters). */ public static final int cardMaxElevation=0x7f020040; /** * <p>May be a boolean value, such as "<code>true</code>" or * "<code>false</code>". */ public static final int cardPreventCornerOverlap=0x7f020041; /** * <p>May be a boolean value, such as "<code>true</code>" or * "<code>false</code>". */ public static final int cardUseCompatPadding=0x7f020042; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int checkboxStyle=0x7f020043; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int checkedTextViewStyle=0x7f020044; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int closeIcon=0x7f020045; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int closeItemLayout=0x7f020046; /** * <p>May be a string value, using '\\;' to escape characters such as * '\\n' or '\\uxxxx' for a unicode character; */ public static final int collapseContentDescription=0x7f020047; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int collapseIcon=0x7f020048; /** * <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 color=0x7f020049; /** * <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 colorAccent=0x7f02004a; /** * <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 colorBackgroundFloating=0x7f02004b; /** * <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 colorButtonNormal=0x7f02004c; /** * <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 colorControlActivated=0x7f02004d; /** * <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 colorControlHighlight=0x7f02004e; /** * <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 colorControlNormal=0x7f02004f; /** * <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 colorPrimary=0x7f020050; /** * <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 colorPrimaryDark=0x7f020051; /** * <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 colorSwitchThumbNormal=0x7f020052; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int commitIcon=0x7f020053; /** * <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), and * mm (millimeters). */ public static final int contentInsetEnd=0x7f020054; /** * <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), and * mm (millimeters). */ public static final int contentInsetEndWithActions=0x7f020055; /** * <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), and * mm (millimeters). */ public static final int contentInsetLeft=0x7f020056; /** * <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), and * mm (millimeters). */ public static final int contentInsetRight=0x7f020057; /** * <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), and * mm (millimeters). */ public static final int contentInsetStart=0x7f020058; /** * <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), and * mm (millimeters). */ public static final int contentInsetStartWithNavigation=0x7f020059; /** * <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), and * mm (millimeters). */ public static final int contentPadding=0x7f02005a; /** * <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), and * mm (millimeters). */ public static final int contentPaddingBottom=0x7f02005b; /** * <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), and * mm (millimeters). */ public static final int contentPaddingLeft=0x7f02005c; /** * <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), and * mm (millimeters). */ public static final int contentPaddingRight=0x7f02005d; /** * <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), and * mm (millimeters). */ public static final int contentPaddingTop=0x7f02005e; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int controlBackground=0x7f02005f; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int customNavigationLayout=0x7f020060; /** * <p>May be a string value, using '\\;' to escape characters such as * '\\n' or '\\uxxxx' for a unicode character; */ public static final int defaultQueryHint=0x7f020061; /** * <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), and * mm (millimeters). */ public static final int dialogPreferredPadding=0x7f020062; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int dialogTheme=0x7f020063; /** * <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>disableHome</td><td>20</td><td></td></tr> * <tr><td>homeAsUp</td><td>4</td><td></td></tr> * <tr><td>none</td><td>0</td><td></td></tr> * <tr><td>showCustom</td><td>10</td><td></td></tr> * <tr><td>showHome</td><td>2</td><td></td></tr> * <tr><td>showTitle</td><td>8</td><td></td></tr> * <tr><td>useLogo</td><td>1</td><td></td></tr> * </table> */ public static final int displayOptions=0x7f020064; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int divider=0x7f020065; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int dividerHorizontal=0x7f020066; /** * <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), and * mm (millimeters). */ public static final int dividerPadding=0x7f020067; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int dividerVertical=0x7f020068; /** * <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), and * mm (millimeters). */ public static final int drawableSize=0x7f020069; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int drawerArrowStyle=0x7f02006a; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int dropDownListViewStyle=0x7f02006b; /** * <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), and * mm (millimeters). */ public static final int dropdownListPreferredItemHeight=0x7f02006c; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int editTextBackground=0x7f02006d; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or 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=0x7f02006e; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int editTextStyle=0x7f02006f; /** * <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), and * mm (millimeters). */ public static final int elevation=0x7f020070; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int expandActivityOverflowButtonDrawable=0x7f020071; /** * <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), and * mm (millimeters). */ public static final int gapBetweenBars=0x7f020072; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int goIcon=0x7f020073; /** * <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), and * mm (millimeters). */ public static final int height=0x7f020074; /** * <p>May be a boolean value, such as "<code>true</code>" or * "<code>false</code>". */ public static final int hideOnContentScroll=0x7f020075; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int homeAsUpIndicator=0x7f020076; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int homeLayout=0x7f020077; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int icon=0x7f020078; /** * <p>May be a boolean value, such as "<code>true</code>" or * "<code>false</code>". */ public static final int iconifiedByDefault=0x7f020079; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int imageButtonStyle=0x7f02007a; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int indeterminateProgressStyle=0x7f02007b; /** * <p>May be a string value, using '\\;' to escape characters such as * '\\n' or '\\uxxxx' for a unicode character; */ public static final int initialActivityCount=0x7f02007c; /** * <p>May be a boolean value, such as "<code>true</code>" or * "<code>false</code>". */ public static final int isLightTheme=0x7f02007d; /** * <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), and * mm (millimeters). */ public static final int itemPadding=0x7f02007e; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int layout=0x7f02007f; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int listChoiceBackgroundIndicator=0x7f020080; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int listDividerAlertDialog=0x7f020081; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int listItemLayout=0x7f020082; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int listLayout=0x7f020083; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int listMenuViewStyle=0x7f020084; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int listPopupWindowStyle=0x7f020085; /** * <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), and * mm (millimeters). */ public static final int listPreferredItemHeight=0x7f020086; /** * <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), and * mm (millimeters). */ public static final int listPreferredItemHeightLarge=0x7f020087; /** * <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), and * mm (millimeters). */ public static final int listPreferredItemHeightSmall=0x7f020088; /** * <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), and * mm (millimeters). */ public static final int listPreferredItemPaddingLeft=0x7f020089; /** * <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), and * mm (millimeters). */ public static final int listPreferredItemPaddingRight=0x7f02008a; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int logo=0x7f02008b; /** * <p>May be a string value, using '\\;' to escape characters such as * '\\n' or '\\uxxxx' for a unicode character; */ public static final int logoDescription=0x7f02008c; /** * <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), and * mm (millimeters). */ public static final int maxButtonHeight=0x7f02008d; /** * <p>May be a boolean value, such as "<code>true</code>" or * "<code>false</code>". */ public static final int measureWithLargestChild=0x7f02008e; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int multiChoiceItemLayout=0x7f02008f; /** * <p>May be a string value, using '\\;' to escape characters such as * '\\n' or '\\uxxxx' for a unicode character; */ public static final int navigationContentDescription=0x7f020090; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int navigationIcon=0x7f020091; /** * <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>listMode</td><td>1</td><td></td></tr> * <tr><td>normal</td><td>0</td><td></td></tr> * <tr><td>tabMode</td><td>2</td><td></td></tr> * </table> */ public static final int navigationMode=0x7f020092; /** * <p>May be a boolean value, such as "<code>true</code>" or * "<code>false</code>". */ public static final int overlapAnchor=0x7f020093; /** * <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), and * mm (millimeters). */ public static final int paddingEnd=0x7f020094; /** * <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), and * mm (millimeters). */ public static final int paddingStart=0x7f020095; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int panelBackground=0x7f020096; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int panelMenuListTheme=0x7f020097; /** * <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), and * mm (millimeters). */ public static final int panelMenuListWidth=0x7f020098; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int popupMenuStyle=0x7f020099; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int popupTheme=0x7f02009a; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int popupWindowStyle=0x7f02009b; /** * <p>May be a boolean value, such as "<code>true</code>" or * "<code>false</code>". */ public static final int preserveIconSpacing=0x7f02009c; /** * <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), and * mm (millimeters). */ public static final int progressBarPadding=0x7f02009d; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int progressBarStyle=0x7f02009e; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int queryBackground=0x7f02009f; /** * <p>May be a string value, using '\\;' to escape characters such as * '\\n' or '\\uxxxx' for a unicode character; */ public static final int queryHint=0x7f0200a0; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int radioButtonStyle=0x7f0200a1; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int ratingBarStyle=0x7f0200a2; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int ratingBarStyleIndicator=0x7f0200a3; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int ratingBarStyleSmall=0x7f0200a4; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int searchHintIcon=0x7f0200a5; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int searchIcon=0x7f0200a6; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int searchViewStyle=0x7f0200a7; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int seekBarStyle=0x7f0200a8; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int selectableItemBackground=0x7f0200a9; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int selectableItemBackgroundBorderless=0x7f0200aa; /** * <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>always</td><td>2</td><td></td></tr> * <tr><td>collapseActionView</td><td>8</td><td></td></tr> * <tr><td>ifRoom</td><td>1</td><td></td></tr> * <tr><td>never</td><td>0</td><td></td></tr> * <tr><td>withText</td><td>4</td><td></td></tr> * </table> */ public static final int showAsAction=0x7f0200ab; /** * <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>beginning</td><td>1</td><td></td></tr> * <tr><td>end</td><td>4</td><td></td></tr> * <tr><td>middle</td><td>2</td><td></td></tr> * <tr><td>none</td><td>0</td><td></td></tr> * </table> */ public static final int showDividers=0x7f0200ac; /** * <p>May be a boolean value, such as "<code>true</code>" or * "<code>false</code>". */ public static final int showText=0x7f0200ad; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int singleChoiceItemLayout=0x7f0200ae; /** * <p>May be a boolean value, such as "<code>true</code>" or * "<code>false</code>". */ public static final int spinBars=0x7f0200af; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int spinnerDropDownItemStyle=0x7f0200b0; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int spinnerStyle=0x7f0200b1; /** * <p>May be a boolean value, such as "<code>true</code>" or * "<code>false</code>". */ public static final int splitTrack=0x7f0200b2; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int srcCompat=0x7f0200b3; /** * <p>May be a boolean value, such as "<code>true</code>" or * "<code>false</code>". */ public static final int state_above_anchor=0x7f0200b4; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int subMenuArrow=0x7f0200b5; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int submitBackground=0x7f0200b6; /** * <p>May be a string value, using '\\;' to escape characters such as * '\\n' or '\\uxxxx' for a unicode character; */ public static final int subtitle=0x7f0200b7; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int subtitleTextAppearance=0x7f0200b8; /** * <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 subtitleTextColor=0x7f0200b9; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int subtitleTextStyle=0x7f0200ba; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int suggestionRowLayout=0x7f0200bb; /** * <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), and * mm (millimeters). */ public static final int switchMinWidth=0x7f0200bc; /** * <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), and * mm (millimeters). */ public static final int switchPadding=0x7f0200bd; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int switchStyle=0x7f0200be; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int switchTextAppearance=0x7f0200bf; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * <p>May be a boolean value, such as "<code>true</code>" or * "<code>false</code>". */ public static final int textAllCaps=0x7f0200c0; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int textAppearanceLargePopupMenu=0x7f0200c1; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int textAppearanceListItem=0x7f0200c2; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int textAppearanceListItemSmall=0x7f0200c3; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int textAppearancePopupMenuHeader=0x7f0200c4; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int textAppearanceSearchResultSubtitle=0x7f0200c5; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int textAppearanceSearchResultTitle=0x7f0200c6; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int textAppearanceSmallPopupMenu=0x7f0200c7; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or 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=0x7f0200c8; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or 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=0x7f0200c9; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int theme=0x7f0200ca; /** * <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), and * mm (millimeters). */ public static final int thickness=0x7f0200cb; /** * <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), and * mm (millimeters). */ public static final int thumbTextPadding=0x7f0200cc; /** * <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 thumbTint=0x7f0200cd; /** * <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>add</td><td>10</td><td></td></tr> * <tr><td>multiply</td><td>e</td><td></td></tr> * <tr><td>screen</td><td>f</td><td></td></tr> * <tr><td>src_atop</td><td>9</td><td></td></tr> * <tr><td>src_in</td><td>5</td><td></td></tr> * <tr><td>src_over</td><td>3</td><td></td></tr> * </table> */ public static final int thumbTintMode=0x7f0200ce; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int tickMark=0x7f0200cf; /** * <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 tickMarkTint=0x7f0200d0; /** * <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>add</td><td>10</td><td></td></tr> * <tr><td>multiply</td><td>e</td><td></td></tr> * <tr><td>screen</td><td>f</td><td></td></tr> * <tr><td>src_atop</td><td>9</td><td></td></tr> * <tr><td>src_in</td><td>5</td><td></td></tr> * <tr><td>src_over</td><td>3</td><td></td></tr> * </table> */ public static final int tickMarkTintMode=0x7f0200d1; /** * <p>May be a string value, using '\\;' to escape characters such as * '\\n' or '\\uxxxx' for a unicode character; */ public static final int title=0x7f0200d2; /** * <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), and * mm (millimeters). */ public static final int titleMargin=0x7f0200d3; /** * <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), and * mm (millimeters). */ public static final int titleMarginBottom=0x7f0200d4; /** * <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), and * mm (millimeters). */ public static final int titleMarginEnd=0x7f0200d5; /** * <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), and * mm (millimeters). */ public static final int titleMarginStart=0x7f0200d6; /** * <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), and * mm (millimeters). */ public static final int titleMarginTop=0x7f0200d7; /** * <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), and * mm (millimeters). */ public static final int titleMargins=0x7f0200d8; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int titleTextAppearance=0x7f0200d9; /** * <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 titleTextColor=0x7f0200da; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int titleTextStyle=0x7f0200db; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int toolbarNavigationButtonStyle=0x7f0200dc; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int toolbarStyle=0x7f0200dd; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int track=0x7f0200de; /** * <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 trackTint=0x7f0200df; /** * <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>add</td><td>10</td><td></td></tr> * <tr><td>multiply</td><td>e</td><td></td></tr> * <tr><td>screen</td><td>f</td><td></td></tr> * <tr><td>src_atop</td><td>9</td><td></td></tr> * <tr><td>src_in</td><td>5</td><td></td></tr> * <tr><td>src_over</td><td>3</td><td></td></tr> * </table> */ public static final int trackTintMode=0x7f0200e0; /** * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". */ public static final int voiceIcon=0x7f0200e1; /** * <p>May be a boolean value, such as "<code>true</code>" or * "<code>false</code>". */ public static final int windowActionBar=0x7f0200e2; /** * <p>May be a boolean value, such as "<code>true</code>" or * "<code>false</code>". */ public static final int windowActionBarOverlay=0x7f0200e3; /** * <p>May be a boolean value, such as "<code>true</code>" or * "<code>false</code>". */ public static final int windowActionModeOverlay=0x7f0200e4; /** * <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), and * 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. */ public static final int windowFixedHeightMajor=0x7f0200e5; /** * <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), and * 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. */ public static final int windowFixedHeightMinor=0x7f0200e6; /** * <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), and * 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. */ public static final int windowFixedWidthMajor=0x7f0200e7; /** * <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), and * 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. */ public static final int windowFixedWidthMinor=0x7f0200e8; /** * <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), and * 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. */ public static final int windowMinWidthMajor=0x7f0200e9; /** * <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), and * 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. */ public static final int windowMinWidthMinor=0x7f0200ea; /** * <p>May be a boolean value, such as "<code>true</code>" or * "<code>false</code>". */ public static final int windowNoTitle=0x7f0200eb; } public static final class bool { public static final int abc_action_bar_embed_tabs=0x7f030000; public static final int abc_allow_stacked_button_bar=0x7f030001; public static final int abc_config_actionMenuItemAllCaps=0x7f030002; public static final int abc_config_closeDialogWhenTouchOutside=0x7f030003; public static final int abc_config_showMenuShortcutsWhenKeyboardPresent=0x7f030004; } public static final class color { public static final int abc_background_cache_hint_selector_material_dark=0x7f040000; public static final int abc_background_cache_hint_selector_material_light=0x7f040001; public static final int abc_btn_colored_borderless_text_material=0x7f040002; public static final int abc_color_highlight_material=0x7f040003; public static final int abc_hint_foreground_material_dark=0x7f040004; public static final int abc_hint_foreground_material_light=0x7f040005; public static final int abc_input_method_navigation_guard=0x7f040006; public static final int abc_primary_text_disable_only_material_dark=0x7f040007; public static final int abc_primary_text_disable_only_material_light=0x7f040008; public static final int abc_primary_text_material_dark=0x7f040009; public static final int abc_primary_text_material_light=0x7f04000a; public static final int abc_search_url_text=0x7f04000b; public static final int abc_search_url_text_normal=0x7f04000c; public static final int abc_search_url_text_pressed=0x7f04000d; public static final int abc_search_url_text_selected=0x7f04000e; public static final int abc_secondary_text_material_dark=0x7f04000f; public static final int abc_secondary_text_material_light=0x7f040010; public static final int abc_tint_btn_checkable=0x7f040011; public static final int abc_tint_default=0x7f040012; public static final int abc_tint_edittext=0x7f040013; public static final int abc_tint_seek_thumb=0x7f040014; public static final int abc_tint_spinner=0x7f040015; public static final int abc_tint_switch_thumb=0x7f040016; public static final int abc_tint_switch_track=0x7f040017; public static final int accent_material_dark=0x7f040018; public static final int accent_material_light=0x7f040019; public static final int background_floating_material_dark=0x7f04001a; public static final int background_floating_material_light=0x7f04001b; public static final int background_material_dark=0x7f04001c; public static final int background_material_light=0x7f04001d; public static final int bright_foreground_disabled_material_dark=0x7f04001e; public static final int bright_foreground_disabled_material_light=0x7f04001f; public static final int bright_foreground_inverse_material_dark=0x7f040020; public static final int bright_foreground_inverse_material_light=0x7f040021; public static final int bright_foreground_material_dark=0x7f040022; public static final int bright_foreground_material_light=0x7f040023; public static final int button_material_dark=0x7f040024; public static final int button_material_light=0x7f040025; public static final int cardview_dark_background=0x7f040026; public static final int cardview_light_background=0x7f040027; public static final int cardview_shadow_end_color=0x7f040028; public static final int cardview_shadow_start_color=0x7f040029; public static final int control_background=0x7f04002a; public static final int dim_foreground_disabled_material_dark=0x7f04002b; public static final int dim_foreground_disabled_material_light=0x7f04002c; public static final int dim_foreground_material_dark=0x7f04002d; public static final int dim_foreground_material_light=0x7f04002e; public static final int foreground_material_dark=0x7f04002f; public static final int foreground_material_light=0x7f040030; public static final int highlighted_text_material_dark=0x7f040031; public static final int highlighted_text_material_light=0x7f040032; public static final int material_blue_grey_800=0x7f040033; public static final int material_blue_grey_900=0x7f040034; public static final int material_blue_grey_950=0x7f040035; public static final int material_deep_teal_200=0x7f040036; public static final int material_deep_teal_500=0x7f040037; public static final int material_grey_100=0x7f040038; public static final int material_grey_300=0x7f040039; public static final int material_grey_50=0x7f04003a; public static final int material_grey_600=0x7f04003b; public static final int material_grey_800=0x7f04003c; public static final int material_grey_850=0x7f04003d; public static final int material_grey_900=0x7f04003e; public static final int notification_action_color_filter=0x7f04003f; public static final int notification_icon_bg_color=0x7f040040; public static final int notification_material_background_media_default_color=0x7f040041; public static final int primary_dark_material_dark=0x7f040042; public static final int primary_dark_material_light=0x7f040043; public static final int primary_material_dark=0x7f040044; public static final int primary_material_light=0x7f040045; public static final int primary_text_default_material_dark=0x7f040046; public static final int primary_text_default_material_light=0x7f040047; public static final int primary_text_disabled_material_dark=0x7f040048; public static final int primary_text_disabled_material_light=0x7f040049; public static final int ripple_material_dark=0x7f04004a; public static final int ripple_material_light=0x7f04004b; public static final int secondary_text_default_material_dark=0x7f04004c; public static final int secondary_text_default_material_light=0x7f04004d; public static final int secondary_text_disabled_material_dark=0x7f04004e; public static final int secondary_text_disabled_material_light=0x7f04004f; public static final int switch_thumb_disabled_material_dark=0x7f040050; public static final int switch_thumb_disabled_material_light=0x7f040051; public static final int switch_thumb_material_dark=0x7f040052; public static final int switch_thumb_material_light=0x7f040053; public static final int switch_thumb_normal_material_dark=0x7f040054; public static final int switch_thumb_normal_material_light=0x7f040055; } public static final class dimen { public static final int abc_action_bar_content_inset_material=0x7f050000; public static final int abc_action_bar_content_inset_with_nav=0x7f050001; public static final int abc_action_bar_default_height_material=0x7f050002; public static final int abc_action_bar_default_padding_end_material=0x7f050003; public static final int abc_action_bar_default_padding_start_material=0x7f050004; public static final int abc_action_bar_elevation_material=0x7f050005; public static final int abc_action_bar_icon_vertical_padding_material=0x7f050006; public static final int abc_action_bar_overflow_padding_end_material=0x7f050007; public static final int abc_action_bar_overflow_padding_start_material=0x7f050008; public static final int abc_action_bar_progress_bar_size=0x7f050009; public static final int abc_action_bar_stacked_max_height=0x7f05000a; public static final int abc_action_bar_stacked_tab_max_width=0x7f05000b; public static final int abc_action_bar_subtitle_bottom_margin_material=0x7f05000c; public static final int abc_action_bar_subtitle_top_margin_material=0x7f05000d; public static final int abc_action_button_min_height_material=0x7f05000e; public static final int abc_action_button_min_width_material=0x7f05000f; public static final int abc_action_button_min_width_overflow_material=0x7f050010; public static final int abc_alert_dialog_button_bar_height=0x7f050011; public static final int abc_button_inset_horizontal_material=0x7f050012; public static final int abc_button_inset_vertical_material=0x7f050013; public static final int abc_button_padding_horizontal_material=0x7f050014; public static final int abc_button_padding_vertical_material=0x7f050015; public static final int abc_cascading_menus_min_smallest_width=0x7f050016; public static final int abc_config_prefDialogWidth=0x7f050017; public static final int abc_control_corner_material=0x7f050018; public static final int abc_control_inset_material=0x7f050019; public static final int abc_control_padding_material=0x7f05001a; public static final int abc_dialog_fixed_height_major=0x7f05001b; public static final int abc_dialog_fixed_height_minor=0x7f05001c; public static final int abc_dialog_fixed_width_major=0x7f05001d; public static final int abc_dialog_fixed_width_minor=0x7f05001e; public static final int abc_dialog_list_padding_vertical_material=0x7f05001f; public static final int abc_dialog_min_width_major=0x7f050020; public static final int abc_dialog_min_width_minor=0x7f050021; public static final int abc_dialog_padding_material=0x7f050022; public static final int abc_dialog_padding_top_material=0x7f050023; public static final int abc_disabled_alpha_material_dark=0x7f050024; public static final int abc_disabled_alpha_material_light=0x7f050025; public static final int abc_dropdownitem_icon_width=0x7f050026; public static final int abc_dropdownitem_text_padding_left=0x7f050027; public static final int abc_dropdownitem_text_padding_right=0x7f050028; public static final int abc_edit_text_inset_bottom_material=0x7f050029; public static final int abc_edit_text_inset_horizontal_material=0x7f05002a; public static final int abc_edit_text_inset_top_material=0x7f05002b; public static final int abc_floating_window_z=0x7f05002c; public static final int abc_list_item_padding_horizontal_material=0x7f05002d; public static final int abc_panel_menu_list_width=0x7f05002e; public static final int abc_progress_bar_height_material=0x7f05002f; public static final int abc_search_view_preferred_height=0x7f050030; public static final int abc_search_view_preferred_width=0x7f050031; public static final int abc_seekbar_track_background_height_material=0x7f050032; public static final int abc_seekbar_track_progress_height_material=0x7f050033; public static final int abc_select_dialog_padding_start_material=0x7f050034; public static final int abc_switch_padding=0x7f050035; public static final int abc_text_size_body_1_material=0x7f050036; public static final int abc_text_size_body_2_material=0x7f050037; public static final int abc_text_size_button_material=0x7f050038; public static final int abc_text_size_caption_material=0x7f050039; public static final int abc_text_size_display_1_material=0x7f05003a; public static final int abc_text_size_display_2_material=0x7f05003b; public static final int abc_text_size_display_3_material=0x7f05003c; public static final int abc_text_size_display_4_material=0x7f05003d; public static final int abc_text_size_headline_material=0x7f05003e; public static final int abc_text_size_large_material=0x7f05003f; public static final int abc_text_size_medium_material=0x7f050040; public static final int abc_text_size_menu_header_material=0x7f050041; public static final int abc_text_size_menu_material=0x7f050042; public static final int abc_text_size_small_material=0x7f050043; public static final int abc_text_size_subhead_material=0x7f050044; public static final int abc_text_size_subtitle_material_toolbar=0x7f050045; public static final int abc_text_size_title_material=0x7f050046; public static final int abc_text_size_title_material_toolbar=0x7f050047; public static final int cardview_compat_inset_shadow=0x7f050048; public static final int cardview_default_elevation=0x7f050049; public static final int cardview_default_radius=0x7f05004a; public static final int disabled_alpha_material_dark=0x7f05004b; public static final int disabled_alpha_material_light=0x7f05004c; public static final int highlight_alpha_material_colored=0x7f05004d; public static final int highlight_alpha_material_dark=0x7f05004e; public static final int highlight_alpha_material_light=0x7f05004f; public static final int hint_alpha_material_dark=0x7f050050; public static final int hint_alpha_material_light=0x7f050051; public static final int hint_pressed_alpha_material_dark=0x7f050052; public static final int hint_pressed_alpha_material_light=0x7f050053; public static final int horizontal_page_margin=0x7f050054; public static final int margin_huge=0x7f050055; public static final int margin_large=0x7f050056; public static final int margin_medium=0x7f050057; public static final int margin_small=0x7f050058; public static final int margin_tiny=0x7f050059; public static final int notification_action_icon_size=0x7f05005a; public static final int notification_action_text_size=0x7f05005b; public static final int notification_big_circle_margin=0x7f05005c; public static final int notification_content_margin_start=0x7f05005d; public static final int notification_large_icon_height=0x7f05005e; public static final int notification_large_icon_width=0x7f05005f; public static final int notification_main_column_padding_top=0x7f050060; public static final int notification_media_narrow_margin=0x7f050061; public static final int notification_right_icon_size=0x7f050062; public static final int notification_right_side_padding_top=0x7f050063; public static final int notification_small_icon_background_padding=0x7f050064; public static final int notification_small_icon_size_as_large=0x7f050065; public static final int notification_subtext_size=0x7f050066; public static final int notification_top_pad=0x7f050067; public static final int notification_top_pad_large_text=0x7f050068; public static final int vertical_page_margin=0x7f050069; } public static final class drawable { public static final int abc_ab_share_pack_mtrl_alpha=0x7f060000; public static final int abc_action_bar_item_background_material=0x7f060001; public static final int abc_btn_borderless_material=0x7f060002; public static final int abc_btn_check_material=0x7f060003; public static final int abc_btn_check_to_on_mtrl_000=0x7f060004; public static final int abc_btn_check_to_on_mtrl_015=0x7f060005; public static final int abc_btn_colored_material=0x7f060006; public static final int abc_btn_default_mtrl_shape=0x7f060007; public static final int abc_btn_radio_material=0x7f060008; public static final int abc_btn_radio_to_on_mtrl_000=0x7f060009; public static final int abc_btn_radio_to_on_mtrl_015=0x7f06000a; public static final int abc_btn_switch_to_on_mtrl_00001=0x7f06000b; public static final int abc_btn_switch_to_on_mtrl_00012=0x7f06000c; public static final int abc_cab_background_internal_bg=0x7f06000d; public static final int abc_cab_background_top_material=0x7f06000e; public static final int abc_cab_background_top_mtrl_alpha=0x7f06000f; public static final int abc_control_background_material=0x7f060010; public static final int abc_dialog_material_background=0x7f060011; public static final int abc_edit_text_material=0x7f060012; public static final int abc_ic_ab_back_material=0x7f060013; public static final int abc_ic_arrow_drop_right_black_24dp=0x7f060014; public static final int abc_ic_clear_material=0x7f060015; public static final int abc_ic_commit_search_api_mtrl_alpha=0x7f060016; public static final int abc_ic_go_search_api_material=0x7f060017; public static final int abc_ic_menu_copy_mtrl_am_alpha=0x7f060018; public static final int abc_ic_menu_cut_mtrl_alpha=0x7f060019; public static final int abc_ic_menu_overflow_material=0x7f06001a; public static final int abc_ic_menu_paste_mtrl_am_alpha=0x7f06001b; public static final int abc_ic_menu_selectall_mtrl_alpha=0x7f06001c; public static final int abc_ic_menu_share_mtrl_alpha=0x7f06001d; public static final int abc_ic_search_api_material=0x7f06001e; public static final int abc_ic_star_black_16dp=0x7f06001f; public static final int abc_ic_star_black_36dp=0x7f060020; public static final int abc_ic_star_black_48dp=0x7f060021; public static final int abc_ic_star_half_black_16dp=0x7f060022; public static final int abc_ic_star_half_black_36dp=0x7f060023; public static final int abc_ic_star_half_black_48dp=0x7f060024; public static final int abc_ic_voice_search_api_material=0x7f060025; public static final int abc_item_background_holo_dark=0x7f060026; public static final int abc_item_background_holo_light=0x7f060027; public static final int abc_list_divider_mtrl_alpha=0x7f060028; public static final int abc_list_focused_holo=0x7f060029; public static final int abc_list_longpressed_holo=0x7f06002a; public static final int abc_list_pressed_holo_dark=0x7f06002b; public static final int abc_list_pressed_holo_light=0x7f06002c; public static final int abc_list_selector_background_transition_holo_dark=0x7f06002d; public static final int abc_list_selector_background_transition_holo_light=0x7f06002e; public static final int abc_list_selector_disabled_holo_dark=0x7f06002f; public static final int abc_list_selector_disabled_holo_light=0x7f060030; public static final int abc_list_selector_holo_dark=0x7f060031; public static final int abc_list_selector_holo_light=0x7f060032; public static final int abc_menu_hardkey_panel_mtrl_mult=0x7f060033; public static final int abc_popup_background_mtrl_mult=0x7f060034; public static final int abc_ratingbar_indicator_material=0x7f060035; public static final int abc_ratingbar_material=0x7f060036; public static final int abc_ratingbar_small_material=0x7f060037; public static final int abc_scrubber_control_off_mtrl_alpha=0x7f060038; public static final int abc_scrubber_control_to_pressed_mtrl_000=0x7f060039; public static final int abc_scrubber_control_to_pressed_mtrl_005=0x7f06003a; public static final int abc_scrubber_primary_mtrl_alpha=0x7f06003b; public static final int abc_scrubber_track_mtrl_alpha=0x7f06003c; public static final int abc_seekbar_thumb_material=0x7f06003d; public static final int abc_seekbar_tick_mark_material=0x7f06003e; public static final int abc_seekbar_track_material=0x7f06003f; public static final int abc_spinner_mtrl_am_alpha=0x7f060040; public static final int abc_spinner_textfield_background_material=0x7f060041; public static final int abc_switch_thumb_material=0x7f060042; public static final int abc_switch_track_mtrl_alpha=0x7f060043; public static final int abc_tab_indicator_material=0x7f060044; public static final int abc_tab_indicator_mtrl_alpha=0x7f060045; public static final int abc_text_cursor_material=0x7f060046; public static final int abc_text_select_handle_left_mtrl_dark=0x7f060047; public static final int abc_text_select_handle_left_mtrl_light=0x7f060048; public static final int abc_text_select_handle_middle_mtrl_dark=0x7f060049; public static final int abc_text_select_handle_middle_mtrl_light=0x7f06004a; public static final int abc_text_select_handle_right_mtrl_dark=0x7f06004b; public static final int abc_text_select_handle_right_mtrl_light=0x7f06004c; public static final int abc_textfield_activated_mtrl_alpha=0x7f06004d; public static final int abc_textfield_default_mtrl_alpha=0x7f06004e; public static final int abc_textfield_search_activated_mtrl_alpha=0x7f06004f; public static final int abc_textfield_search_default_mtrl_alpha=0x7f060050; public static final int abc_textfield_search_material=0x7f060051; public static final int abc_vector_test=0x7f060052; public static final int ic_action_info=0x7f060053; public static final int ic_launcher=0x7f060054; public static final int notification_action_background=0x7f060055; public static final int notification_bg=0x7f060056; public static final int notification_bg_low=0x7f060057; public static final int notification_bg_low_normal=0x7f060058; public static final int notification_bg_low_pressed=0x7f060059; public static final int notification_bg_normal=0x7f06005a; public static final int notification_bg_normal_pressed=0x7f06005b; public static final int notification_icon_background=0x7f06005c; public static final int notification_template_icon_bg=0x7f06005d; public static final int notification_template_icon_low_bg=0x7f06005e; public static final int notification_tile_bg=0x7f06005f; public static final int notify_panel_notification_icon_bg=0x7f060060; public static final int tile=0x7f060061; } public static final class id { public static final int action0=0x7f070000; public static final int action_bar=0x7f070001; public static final int action_bar_activity_content=0x7f070002; public static final int action_bar_container=0x7f070003; public static final int action_bar_root=0x7f070004; public static final int action_bar_spinner=0x7f070005; public static final int action_bar_subtitle=0x7f070006; public static final int action_bar_title=0x7f070007; public static final int action_container=0x7f070008; public static final int action_context_bar=0x7f070009; public static final int action_divider=0x7f07000a; public static final int action_image=0x7f07000b; public static final int action_menu_divider=0x7f07000c; public static final int action_menu_presenter=0x7f07000d; public static final int action_mode_bar=0x7f07000e; public static final int action_mode_bar_stub=0x7f07000f; public static final int action_mode_close_button=0x7f070010; public static final int action_text=0x7f070011; public static final int actions=0x7f070012; public static final int activity_chooser_view_content=0x7f070013; public static final int add=0x7f070014; public static final int alertTitle=0x7f070015; public static final int always=0x7f070016; public static final int beginning=0x7f070017; public static final int bottom=0x7f070018; public static final int buttonPanel=0x7f070019; public static final int cancel_action=0x7f07001a; public static final int checkbox=0x7f07001b; public static final int chronometer=0x7f07001c; public static final int collapseActionView=0x7f07001d; public static final int container=0x7f07001e; public static final int contentPanel=0x7f07001f; public static final int control=0x7f070020; public static final int custom=0x7f070021; public static final int customPanel=0x7f070022; public static final int decor_content_parent=0x7f070023; public static final int default_activity_button=0x7f070024; public static final int disableHome=0x7f070025; public static final int edit_query=0x7f070026; public static final int end=0x7f070027; public static final int end_padder=0x7f070028; public static final int expand_activities_button=0x7f070029; public static final int expanded_menu=0x7f07002a; public static final int home=0x7f07002b; public static final int homeAsUp=0x7f07002c; public static final int icon=0x7f07002d; public static final int icon_group=0x7f07002e; public static final int ifRoom=0x7f07002f; public static final int image=0x7f070030; public static final int info=0x7f070031; public static final int line1=0x7f070032; public static final int line3=0x7f070033; public static final int listMode=0x7f070034; public static final int list_item=0x7f070035; public static final int media_actions=0x7f070036; public static final int middle=0x7f070037; public static final int multiply=0x7f070038; public static final int never=0x7f070039; public static final int none=0x7f07003a; public static final int normal=0x7f07003b; public static final int notification_background=0x7f07003c; public static final int notification_main_column=0x7f07003d; public static final int notification_main_column_container=0x7f07003e; public static final int parentPanel=0x7f07003f; public static final int picture=0x7f070040; public static final int progress_circular=0x7f070041; public static final int progress_horizontal=0x7f070042; public static final int radio=0x7f070043; public static final int right_icon=0x7f070044; public static final int right_side=0x7f070045; public static final int screen=0x7f070046; public static final int scrollIndicatorDown=0x7f070047; public static final int scrollIndicatorUp=0x7f070048; public static final int scrollView=0x7f070049; public static final int search_badge=0x7f07004a; public static final int search_bar=0x7f07004b; public static final int search_button=0x7f07004c; public static final int search_close_btn=0x7f07004d; public static final int search_edit_frame=0x7f07004e; public static final int search_go_btn=0x7f07004f; public static final int search_mag_icon=0x7f070050; public static final int search_plate=0x7f070051; public static final int search_src_text=0x7f070052; public static final int search_voice_btn=0x7f070053; public static final int select_dialog_listview=0x7f070054; public static final int shortcut=0x7f070055; public static final int showCustom=0x7f070056; public static final int showHome=0x7f070057; public static final int showTitle=0x7f070058; public static final int spacer=0x7f070059; public static final int split_action_bar=0x7f07005a; public static final int src_atop=0x7f07005b; public static final int src_in=0x7f07005c; public static final int src_over=0x7f07005d; public static final int status_bar_latest_event_content=0x7f07005e; public static final int submenuarrow=0x7f07005f; public static final int submit_area=0x7f070060; public static final int tabMode=0x7f070061; public static final int text=0x7f070062; public static final int text2=0x7f070063; public static final int textSpacerNoButtons=0x7f070064; public static final int texture=0x7f070065; public static final int time=0x7f070066; public static final int title=0x7f070067; public static final int title_template=0x7f070068; public static final int top=0x7f070069; public static final int topPanel=0x7f07006a; public static final int up=0x7f07006b; public static final int useLogo=0x7f07006c; public static final int withText=0x7f07006d; public static final int wrap_content=0x7f07006e; } public static final class integer { public static final int abc_config_activityDefaultDur=0x7f080000; public static final int abc_config_activityShortDur=0x7f080001; public static final int cancel_button_image_alpha=0x7f080002; public static final int status_bar_notification_info_maxnum=0x7f080003; } public static final class layout { public static final int abc_action_bar_title_item=0x7f090000; public static final int abc_action_bar_up_container=0x7f090001; public static final int abc_action_bar_view_list_nav_layout=0x7f090002; public static final int abc_action_menu_item_layout=0x7f090003; public static final int abc_action_menu_layout=0x7f090004; public static final int abc_action_mode_bar=0x7f090005; public static final int abc_action_mode_close_item_material=0x7f090006; public static final int abc_activity_chooser_view=0x7f090007; public static final int abc_activity_chooser_view_list_item=0x7f090008; public static final int abc_alert_dialog_button_bar_material=0x7f090009; public static final int abc_alert_dialog_material=0x7f09000a; public static final int abc_dialog_title_material=0x7f09000b; public static final int abc_expanded_menu_layout=0x7f09000c; public static final int abc_list_menu_item_checkbox=0x7f09000d; public static final int abc_list_menu_item_icon=0x7f09000e; public static final int abc_list_menu_item_layout=0x7f09000f; public static final int abc_list_menu_item_radio=0x7f090010; public static final int abc_popup_menu_header_item_layout=0x7f090011; public static final int abc_popup_menu_item_layout=0x7f090012; public static final int abc_screen_content_include=0x7f090013; public static final int abc_screen_simple=0x7f090014; public static final int abc_screen_simple_overlay_action_mode=0x7f090015; public static final int abc_screen_toolbar=0x7f090016; public static final int abc_search_dropdown_item_icons_2line=0x7f090017; public static final int abc_search_view=0x7f090018; public static final int abc_select_dialog_material=0x7f090019; public static final int activity_camera=0x7f09001a; public static final int fragment_camera2_basic=0x7f09001b; public static final int notification_action=0x7f09001c; public static final int notification_action_tombstone=0x7f09001d; public static final int notification_media_action=0x7f09001e; public static final int notification_media_cancel_action=0x7f09001f; public static final int notification_template_big_media=0x7f090020; public static final int notification_template_big_media_custom=0x7f090021; public static final int notification_template_big_media_narrow=0x7f090022; public static final int notification_template_big_media_narrow_custom=0x7f090023; public static final int notification_template_custom_big=0x7f090024; public static final int notification_template_icon_group=0x7f090025; public static final int notification_template_lines_media=0x7f090026; public static final int notification_template_media=0x7f090027; public static final int notification_template_media_custom=0x7f090028; public static final int notification_template_part_chronometer=0x7f090029; public static final int notification_template_part_time=0x7f09002a; public static final int select_dialog_item_material=0x7f09002b; public static final int select_dialog_multichoice_material=0x7f09002c; public static final int select_dialog_singlechoice_material=0x7f09002d; public static final int support_simple_spinner_dropdown_item=0x7f09002e; } public static final class string { public static final int abc_action_bar_home_description=0x7f0a0000; public static final int abc_action_bar_home_description_format=0x7f0a0001; public static final int abc_action_bar_home_subtitle_description_format=0x7f0a0002; public static final int abc_action_bar_up_description=0x7f0a0003; public static final int abc_action_menu_overflow_description=0x7f0a0004; public static final int abc_action_mode_done=0x7f0a0005; public static final int abc_activity_chooser_view_see_all=0x7f0a0006; public static final int abc_activitychooserview_choose_application=0x7f0a0007; public static final int abc_capital_off=0x7f0a0008; public static final int abc_capital_on=0x7f0a0009; public static final int abc_font_family_body_1_material=0x7f0a000a; public static final int abc_font_family_body_2_material=0x7f0a000b; public static final int abc_font_family_button_material=0x7f0a000c; public static final int abc_font_family_caption_material=0x7f0a000d; public static final int abc_font_family_display_1_material=0x7f0a000e; public static final int abc_font_family_display_2_material=0x7f0a000f; public static final int abc_font_family_display_3_material=0x7f0a0010; public static final int abc_font_family_display_4_material=0x7f0a0011; public static final int abc_font_family_headline_material=0x7f0a0012; public static final int abc_font_family_menu_material=0x7f0a0013; public static final int abc_font_family_subhead_material=0x7f0a0014; public static final int abc_font_family_title_material=0x7f0a0015; public static final int abc_search_hint=0x7f0a0016; public static final int abc_searchview_description_clear=0x7f0a0017; public static final int abc_searchview_description_query=0x7f0a0018; public static final int abc_searchview_description_search=0x7f0a0019; public static final int abc_searchview_description_submit=0x7f0a001a; public static final int abc_searchview_description_voice=0x7f0a001b; public static final int abc_shareactionprovider_share_with=0x7f0a001c; public static final int abc_shareactionprovider_share_with_application=0x7f0a001d; public static final int abc_toolbar_collapse_description=0x7f0a001e; public static final int app_name=0x7f0a001f; public static final int camera_error=0x7f0a0020; public static final int description_info=0x7f0a0021; public static final int intro_message=0x7f0a0022; public static final int picture=0x7f0a0023; public static final int request_permission=0x7f0a0024; public static final int search_menu_title=0x7f0a0025; public static final int status_bar_notification_info_overflow=0x7f0a0026; } public static final class style { public static final int AlertDialog_AppCompat=0x7f0b0000; public static final int AlertDialog_AppCompat_Light=0x7f0b0001; public static final int Animation_AppCompat_Dialog=0x7f0b0002; public static final int Animation_AppCompat_DropDownUp=0x7f0b0003; public static final int AppTheme=0x7f0b0004; public static final int Base_AlertDialog_AppCompat=0x7f0b0005; public static final int Base_AlertDialog_AppCompat_Light=0x7f0b0006; public static final int Base_Animation_AppCompat_Dialog=0x7f0b0007; public static final int Base_Animation_AppCompat_DropDownUp=0x7f0b0008; public static final int Base_CardView=0x7f0b0009; public static final int Base_DialogWindowTitle_AppCompat=0x7f0b000a; public static final int Base_DialogWindowTitleBackground_AppCompat=0x7f0b000b; public static final int Base_TextAppearance_AppCompat=0x7f0b000c; public static final int Base_TextAppearance_AppCompat_Body1=0x7f0b000d; public static final int Base_TextAppearance_AppCompat_Body2=0x7f0b000e; public static final int Base_TextAppearance_AppCompat_Button=0x7f0b000f; public static final int Base_TextAppearance_AppCompat_Caption=0x7f0b0010; public static final int Base_TextAppearance_AppCompat_Display1=0x7f0b0011; public static final int Base_TextAppearance_AppCompat_Display2=0x7f0b0012; public static final int Base_TextAppearance_AppCompat_Display3=0x7f0b0013; public static final int Base_TextAppearance_AppCompat_Display4=0x7f0b0014; public static final int Base_TextAppearance_AppCompat_Headline=0x7f0b0015; public static final int Base_TextAppearance_AppCompat_Inverse=0x7f0b0016; public static final int Base_TextAppearance_AppCompat_Large=0x7f0b0017; public static final int Base_TextAppearance_AppCompat_Large_Inverse=0x7f0b0018; public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Large=0x7f0b0019; public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Small=0x7f0b001a; public static final int Base_TextAppearance_AppCompat_Medium=0x7f0b001b; public static final int Base_TextAppearance_AppCompat_Medium_Inverse=0x7f0b001c; public static final int Base_TextAppearance_AppCompat_Menu=0x7f0b001d; public static final int Base_TextAppearance_AppCompat_SearchResult=0x7f0b001e; public static final int Base_TextAppearance_AppCompat_SearchResult_Subtitle=0x7f0b001f; public static final int Base_TextAppearance_AppCompat_SearchResult_Title=0x7f0b0020; public static final int Base_TextAppearance_AppCompat_Small=0x7f0b0021; public static final int Base_TextAppearance_AppCompat_Small_Inverse=0x7f0b0022; public static final int Base_TextAppearance_AppCompat_Subhead=0x7f0b0023; public static final int Base_TextAppearance_AppCompat_Subhead_Inverse=0x7f0b0024; public static final int Base_TextAppearance_AppCompat_Title=0x7f0b0025; public static final int Base_TextAppearance_AppCompat_Title_Inverse=0x7f0b0026; public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Menu=0x7f0b0027; public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle=0x7f0b0028; public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse=0x7f0b0029; public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title=0x7f0b002a; public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse=0x7f0b002b; public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Subtitle=0x7f0b002c; public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Title=0x7f0b002d; public static final int Base_TextAppearance_AppCompat_Widget_Button=0x7f0b002e; public static final int Base_TextAppearance_AppCompat_Widget_Button_Inverse=0x7f0b002f; public static final int Base_TextAppearance_AppCompat_Widget_DropDownItem=0x7f0b0030; public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Header=0x7f0b0031; public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Large=0x7f0b0032; public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Small=0x7f0b0033; public static final int Base_TextAppearance_AppCompat_Widget_Switch=0x7f0b0034; public static final int Base_TextAppearance_AppCompat_Widget_TextView_SpinnerItem=0x7f0b0035; public static final int Base_TextAppearance_Widget_AppCompat_ExpandedMenu_Item=0x7f0b0036; public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Subtitle=0x7f0b0037; public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Title=0x7f0b0038; public static final int Base_Theme_AppCompat=0x7f0b0039; public static final int Base_Theme_AppCompat_CompactMenu=0x7f0b003a; public static final int Base_Theme_AppCompat_Dialog=0x7f0b003b; public static final int Base_Theme_AppCompat_Dialog_Alert=0x7f0b003c; public static final int Base_Theme_AppCompat_Dialog_FixedSize=0x7f0b003d; public static final int Base_Theme_AppCompat_Dialog_MinWidth=0x7f0b003e; public static final int Base_Theme_AppCompat_DialogWhenLarge=0x7f0b003f; public static final int Base_Theme_AppCompat_Light=0x7f0b0040; public static final int Base_Theme_AppCompat_Light_DarkActionBar=0x7f0b0041; public static final int Base_Theme_AppCompat_Light_Dialog=0x7f0b0042; public static final int Base_Theme_AppCompat_Light_Dialog_Alert=0x7f0b0043; public static final int Base_Theme_AppCompat_Light_Dialog_FixedSize=0x7f0b0044; public static final int Base_Theme_AppCompat_Light_Dialog_MinWidth=0x7f0b0045; public static final int Base_Theme_AppCompat_Light_DialogWhenLarge=0x7f0b0046; public static final int Base_ThemeOverlay_AppCompat=0x7f0b0047; public static final int Base_ThemeOverlay_AppCompat_ActionBar=0x7f0b0048; public static final int Base_ThemeOverlay_AppCompat_Dark=0x7f0b0049; public static final int Base_ThemeOverlay_AppCompat_Dark_ActionBar=0x7f0b004a; public static final int Base_ThemeOverlay_AppCompat_Dialog=0x7f0b004b; public static final int Base_ThemeOverlay_AppCompat_Dialog_Alert=0x7f0b004c; public static final int Base_ThemeOverlay_AppCompat_Light=0x7f0b004d; public static final int Base_V11_Theme_AppCompat_Dialog=0x7f0b004e; public static final int Base_V11_Theme_AppCompat_Light_Dialog=0x7f0b004f; public static final int Base_V11_ThemeOverlay_AppCompat_Dialog=0x7f0b0050; public static final int Base_V12_Widget_AppCompat_AutoCompleteTextView=0x7f0b0051; public static final int Base_V12_Widget_AppCompat_EditText=0x7f0b0052; public static final int Base_V21_Theme_AppCompat=0x7f0b0053; public static final int Base_V21_Theme_AppCompat_Dialog=0x7f0b0054; public static final int Base_V21_Theme_AppCompat_Light=0x7f0b0055; public static final int Base_V21_Theme_AppCompat_Light_Dialog=0x7f0b0056; public static final int Base_V21_ThemeOverlay_AppCompat_Dialog=0x7f0b0057; public static final int Base_V22_Theme_AppCompat=0x7f0b0058; public static final int Base_V22_Theme_AppCompat_Light=0x7f0b0059; public static final int Base_V23_Theme_AppCompat=0x7f0b005a; public static final int Base_V23_Theme_AppCompat_Light=0x7f0b005b; public static final int Base_V7_Theme_AppCompat=0x7f0b005c; public static final int Base_V7_Theme_AppCompat_Dialog=0x7f0b005d; public static final int Base_V7_Theme_AppCompat_Light=0x7f0b005e; public static final int Base_V7_Theme_AppCompat_Light_Dialog=0x7f0b005f; public static final int Base_V7_ThemeOverlay_AppCompat_Dialog=0x7f0b0060; public static final int Base_V7_Widget_AppCompat_AutoCompleteTextView=0x7f0b0061; public static final int Base_V7_Widget_AppCompat_EditText=0x7f0b0062; public static final int Base_Widget_AppCompat_ActionBar=0x7f0b0063; public static final int Base_Widget_AppCompat_ActionBar_Solid=0x7f0b0064; public static final int Base_Widget_AppCompat_ActionBar_TabBar=0x7f0b0065; public static final int Base_Widget_AppCompat_ActionBar_TabText=0x7f0b0066; public static final int Base_Widget_AppCompat_ActionBar_TabView=0x7f0b0067; public static final int Base_Widget_AppCompat_ActionButton=0x7f0b0068; public static final int Base_Widget_AppCompat_ActionButton_CloseMode=0x7f0b0069; public static final int Base_Widget_AppCompat_ActionButton_Overflow=0x7f0b006a; public static final int Base_Widget_AppCompat_ActionMode=0x7f0b006b; public static final int Base_Widget_AppCompat_ActivityChooserView=0x7f0b006c; public static final int Base_Widget_AppCompat_AutoCompleteTextView=0x7f0b006d; public static final int Base_Widget_AppCompat_Button=0x7f0b006e; public static final int Base_Widget_AppCompat_Button_Borderless=0x7f0b006f; public static final int Base_Widget_AppCompat_Button_Borderless_Colored=0x7f0b0070; public static final int Base_Widget_AppCompat_Button_ButtonBar_AlertDialog=0x7f0b0071; public static final int Base_Widget_AppCompat_Button_Colored=0x7f0b0072; public static final int Base_Widget_AppCompat_Button_Small=0x7f0b0073; public static final int Base_Widget_AppCompat_ButtonBar=0x7f0b0074; public static final int Base_Widget_AppCompat_ButtonBar_AlertDialog=0x7f0b0075; public static final int Base_Widget_AppCompat_CompoundButton_CheckBox=0x7f0b0076; public static final int Base_Widget_AppCompat_CompoundButton_RadioButton=0x7f0b0077; public static final int Base_Widget_AppCompat_CompoundButton_Switch=0x7f0b0078; public static final int Base_Widget_AppCompat_DrawerArrowToggle=0x7f0b0079; public static final int Base_Widget_AppCompat_DrawerArrowToggle_Common=0x7f0b007a; public static final int Base_Widget_AppCompat_DropDownItem_Spinner=0x7f0b007b; public static final int Base_Widget_AppCompat_EditText=0x7f0b007c; public static final int Base_Widget_AppCompat_ImageButton=0x7f0b007d; public static final int Base_Widget_AppCompat_Light_ActionBar=0x7f0b007e; public static final int Base_Widget_AppCompat_Light_ActionBar_Solid=0x7f0b007f; public static final int Base_Widget_AppCompat_Light_ActionBar_TabBar=0x7f0b0080; public static final int Base_Widget_AppCompat_Light_ActionBar_TabText=0x7f0b0081; public static final int Base_Widget_AppCompat_Light_ActionBar_TabText_Inverse=0x7f0b0082; public static final int Base_Widget_AppCompat_Light_ActionBar_TabView=0x7f0b0083; public static final int Base_Widget_AppCompat_Light_PopupMenu=0x7f0b0084; public static final int Base_Widget_AppCompat_Light_PopupMenu_Overflow=0x7f0b0085; public static final int Base_Widget_AppCompat_ListMenuView=0x7f0b0086; public static final int Base_Widget_AppCompat_ListPopupWindow=0x7f0b0087; public static final int Base_Widget_AppCompat_ListView=0x7f0b0088; public static final int Base_Widget_AppCompat_ListView_DropDown=0x7f0b0089; public static final int Base_Widget_AppCompat_ListView_Menu=0x7f0b008a; public static final int Base_Widget_AppCompat_PopupMenu=0x7f0b008b; public static final int Base_Widget_AppCompat_PopupMenu_Overflow=0x7f0b008c; public static final int Base_Widget_AppCompat_PopupWindow=0x7f0b008d; public static final int Base_Widget_AppCompat_ProgressBar=0x7f0b008e; public static final int Base_Widget_AppCompat_ProgressBar_Horizontal=0x7f0b008f; public static final int Base_Widget_AppCompat_RatingBar=0x7f0b0090; public static final int Base_Widget_AppCompat_RatingBar_Indicator=0x7f0b0091; public static final int Base_Widget_AppCompat_RatingBar_Small=0x7f0b0092; public static final int Base_Widget_AppCompat_SearchView=0x7f0b0093; public static final int Base_Widget_AppCompat_SearchView_ActionBar=0x7f0b0094; public static final int Base_Widget_AppCompat_SeekBar=0x7f0b0095; public static final int Base_Widget_AppCompat_SeekBar_Discrete=0x7f0b0096; public static final int Base_Widget_AppCompat_Spinner=0x7f0b0097; public static final int Base_Widget_AppCompat_Spinner_Underlined=0x7f0b0098; public static final int Base_Widget_AppCompat_TextView_SpinnerItem=0x7f0b0099; public static final int Base_Widget_AppCompat_Toolbar=0x7f0b009a; public static final int Base_Widget_AppCompat_Toolbar_Button_Navigation=0x7f0b009b; public static final int CardView=0x7f0b009c; public static final int CardView_Dark=0x7f0b009d; public static final int CardView_Light=0x7f0b009e; public static final int MaterialTheme=0x7f0b009f; public static final int Platform_AppCompat=0x7f0b00a0; public static final int Platform_AppCompat_Light=0x7f0b00a1; public static final int Platform_ThemeOverlay_AppCompat=0x7f0b00a2; public static final int Platform_ThemeOverlay_AppCompat_Dark=0x7f0b00a3; public static final int Platform_ThemeOverlay_AppCompat_Light=0x7f0b00a4; public static final int Platform_V11_AppCompat=0x7f0b00a5; public static final int Platform_V11_AppCompat_Light=0x7f0b00a6; public static final int Platform_V14_AppCompat=0x7f0b00a7; public static final int Platform_V14_AppCompat_Light=0x7f0b00a8; public static final int Platform_V21_AppCompat=0x7f0b00a9; public static final int Platform_V21_AppCompat_Light=0x7f0b00aa; public static final int Platform_V25_AppCompat=0x7f0b00ab; public static final int Platform_V25_AppCompat_Light=0x7f0b00ac; public static final int Platform_Widget_AppCompat_Spinner=0x7f0b00ad; public static final int RtlOverlay_DialogWindowTitle_AppCompat=0x7f0b00ae; public static final int RtlOverlay_Widget_AppCompat_ActionBar_TitleItem=0x7f0b00af; public static final int RtlOverlay_Widget_AppCompat_DialogTitle_Icon=0x7f0b00b0; public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem=0x7f0b00b1; public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_InternalGroup=0x7f0b00b2; public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_Text=0x7f0b00b3; public static final int RtlOverlay_Widget_AppCompat_Search_DropDown=0x7f0b00b4; public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon1=0x7f0b00b5; public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon2=0x7f0b00b6; public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Query=0x7f0b00b7; public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Text=0x7f0b00b8; public static final int RtlOverlay_Widget_AppCompat_SearchView_MagIcon=0x7f0b00b9; public static final int RtlUnderlay_Widget_AppCompat_ActionButton=0x7f0b00ba; public static final int RtlUnderlay_Widget_AppCompat_ActionButton_Overflow=0x7f0b00bb; public static final int TextAppearance_AppCompat=0x7f0b00bc; public static final int TextAppearance_AppCompat_Body1=0x7f0b00bd; public static final int TextAppearance_AppCompat_Body2=0x7f0b00be; public static final int TextAppearance_AppCompat_Button=0x7f0b00bf; public static final int TextAppearance_AppCompat_Caption=0x7f0b00c0; public static final int TextAppearance_AppCompat_Display1=0x7f0b00c1; public static final int TextAppearance_AppCompat_Display2=0x7f0b00c2; public static final int TextAppearance_AppCompat_Display3=0x7f0b00c3; public static final int TextAppearance_AppCompat_Display4=0x7f0b00c4; public static final int TextAppearance_AppCompat_Headline=0x7f0b00c5; public static final int TextAppearance_AppCompat_Inverse=0x7f0b00c6; public static final int TextAppearance_AppCompat_Large=0x7f0b00c7; public static final int TextAppearance_AppCompat_Large_Inverse=0x7f0b00c8; public static final int TextAppearance_AppCompat_Light_SearchResult_Subtitle=0x7f0b00c9; public static final int TextAppearance_AppCompat_Light_SearchResult_Title=0x7f0b00ca; public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large=0x7f0b00cb; public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small=0x7f0b00cc; public static final int TextAppearance_AppCompat_Medium=0x7f0b00cd; public static final int TextAppearance_AppCompat_Medium_Inverse=0x7f0b00ce; public static final int TextAppearance_AppCompat_Menu=0x7f0b00cf; public static final int TextAppearance_AppCompat_Notification=0x7f0b00d0; public static final int TextAppearance_AppCompat_Notification_Info=0x7f0b00d1; public static final int TextAppearance_AppCompat_Notification_Info_Media=0x7f0b00d2; public static final int TextAppearance_AppCompat_Notification_Line2=0x7f0b00d3; public static final int TextAppearance_AppCompat_Notification_Line2_Media=0x7f0b00d4; public static final int TextAppearance_AppCompat_Notification_Media=0x7f0b00d5; public static final int TextAppearance_AppCompat_Notification_Time=0x7f0b00d6; public static final int TextAppearance_AppCompat_Notification_Time_Media=0x7f0b00d7; public static final int TextAppearance_AppCompat_Notification_Title=0x7f0b00d8; public static final int TextAppearance_AppCompat_Notification_Title_Media=0x7f0b00d9; public static final int TextAppearance_AppCompat_SearchResult_Subtitle=0x7f0b00da; public static final int TextAppearance_AppCompat_SearchResult_Title=0x7f0b00db; public static final int TextAppearance_AppCompat_Small=0x7f0b00dc; public static final int TextAppearance_AppCompat_Small_Inverse=0x7f0b00dd; public static final int TextAppearance_AppCompat_Subhead=0x7f0b00de; public static final int TextAppearance_AppCompat_Subhead_Inverse=0x7f0b00df; public static final int TextAppearance_AppCompat_Title=0x7f0b00e0; public static final int TextAppearance_AppCompat_Title_Inverse=0x7f0b00e1; public static final int TextAppearance_AppCompat_Widget_ActionBar_Menu=0x7f0b00e2; public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle=0x7f0b00e3; public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse=0x7f0b00e4; public static final int TextAppearance_AppCompat_Widget_ActionBar_Title=0x7f0b00e5; public static final int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse=0x7f0b00e6; public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle=0x7f0b00e7; public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse=0x7f0b00e8; public static final int TextAppearance_AppCompat_Widget_ActionMode_Title=0x7f0b00e9; public static final int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse=0x7f0b00ea; public static final int TextAppearance_AppCompat_Widget_Button=0x7f0b00eb; public static final int TextAppearance_AppCompat_Widget_Button_Inverse=0x7f0b00ec; public static final int TextAppearance_AppCompat_Widget_DropDownItem=0x7f0b00ed; public static final int TextAppearance_AppCompat_Widget_PopupMenu_Header=0x7f0b00ee; public static final int TextAppearance_AppCompat_Widget_PopupMenu_Large=0x7f0b00ef; public static final int TextAppearance_AppCompat_Widget_PopupMenu_Small=0x7f0b00f0; public static final int TextAppearance_AppCompat_Widget_Switch=0x7f0b00f1; public static final int TextAppearance_AppCompat_Widget_TextView_SpinnerItem=0x7f0b00f2; public static final int TextAppearance_StatusBar_EventContent=0x7f0b00f3; public static final int TextAppearance_StatusBar_EventContent_Info=0x7f0b00f4; public static final int TextAppearance_StatusBar_EventContent_Line2=0x7f0b00f5; public static final int TextAppearance_StatusBar_EventContent_Time=0x7f0b00f6; public static final int TextAppearance_StatusBar_EventContent_Title=0x7f0b00f7; public static final int TextAppearance_Widget_AppCompat_ExpandedMenu_Item=0x7f0b00f8; public static final int TextAppearance_Widget_AppCompat_Toolbar_Subtitle=0x7f0b00f9; public static final int TextAppearance_Widget_AppCompat_Toolbar_Title=0x7f0b00fa; public static final int Theme_AppCompat=0x7f0b00fb; public static final int Theme_AppCompat_CompactMenu=0x7f0b00fc; public static final int Theme_AppCompat_DayNight=0x7f0b00fd; public static final int Theme_AppCompat_DayNight_DarkActionBar=0x7f0b00fe; public static final int Theme_AppCompat_DayNight_Dialog=0x7f0b00ff; public static final int Theme_AppCompat_DayNight_Dialog_Alert=0x7f0b0100; public static final int Theme_AppCompat_DayNight_Dialog_MinWidth=0x7f0b0101; public static final int Theme_AppCompat_DayNight_DialogWhenLarge=0x7f0b0102; public static final int Theme_AppCompat_DayNight_NoActionBar=0x7f0b0103; public static final int Theme_AppCompat_Dialog=0x7f0b0104; public static final int Theme_AppCompat_Dialog_Alert=0x7f0b0105; public static final int Theme_AppCompat_Dialog_MinWidth=0x7f0b0106; public static final int Theme_AppCompat_DialogWhenLarge=0x7f0b0107; public static final int Theme_AppCompat_Light=0x7f0b0108; public static final int Theme_AppCompat_Light_DarkActionBar=0x7f0b0109; public static final int Theme_AppCompat_Light_Dialog=0x7f0b010a; public static final int Theme_AppCompat_Light_Dialog_Alert=0x7f0b010b; public static final int Theme_AppCompat_Light_Dialog_MinWidth=0x7f0b010c; public static final int Theme_AppCompat_Light_DialogWhenLarge=0x7f0b010d; public static final int Theme_AppCompat_Light_NoActionBar=0x7f0b010e; public static final int Theme_AppCompat_NoActionBar=0x7f0b010f; public static final int Theme_Base=0x7f0b0110; public static final int Theme_Sample=0x7f0b0111; public static final int ThemeOverlay_AppCompat=0x7f0b0112; public static final int ThemeOverlay_AppCompat_ActionBar=0x7f0b0113; public static final int ThemeOverlay_AppCompat_Dark=0x7f0b0114; public static final int ThemeOverlay_AppCompat_Dark_ActionBar=0x7f0b0115; public static final int ThemeOverlay_AppCompat_Dialog=0x7f0b0116; public static final int ThemeOverlay_AppCompat_Dialog_Alert=0x7f0b0117; public static final int ThemeOverlay_AppCompat_Light=0x7f0b0118; public static final int Widget=0x7f0b0119; public static final int Widget_AppCompat_ActionBar=0x7f0b011a; public static final int Widget_AppCompat_ActionBar_Solid=0x7f0b011b; public static final int Widget_AppCompat_ActionBar_TabBar=0x7f0b011c; public static final int Widget_AppCompat_ActionBar_TabText=0x7f0b011d; public static final int Widget_AppCompat_ActionBar_TabView=0x7f0b011e; public static final int Widget_AppCompat_ActionButton=0x7f0b011f; public static final int Widget_AppCompat_ActionButton_CloseMode=0x7f0b0120; public static final int Widget_AppCompat_ActionButton_Overflow=0x7f0b0121; public static final int Widget_AppCompat_ActionMode=0x7f0b0122; public static final int Widget_AppCompat_ActivityChooserView=0x7f0b0123; public static final int Widget_AppCompat_AutoCompleteTextView=0x7f0b0124; public static final int Widget_AppCompat_Button=0x7f0b0125; public static final int Widget_AppCompat_Button_Borderless=0x7f0b0126; public static final int Widget_AppCompat_Button_Borderless_Colored=0x7f0b0127; public static final int Widget_AppCompat_Button_ButtonBar_AlertDialog=0x7f0b0128; public static final int Widget_AppCompat_Button_Colored=0x7f0b0129; public static final int Widget_AppCompat_Button_Small=0x7f0b012a; public static final int Widget_AppCompat_ButtonBar=0x7f0b012b; public static final int Widget_AppCompat_ButtonBar_AlertDialog=0x7f0b012c; public static final int Widget_AppCompat_CompoundButton_CheckBox=0x7f0b012d; public static final int Widget_AppCompat_CompoundButton_RadioButton=0x7f0b012e; public static final int Widget_AppCompat_CompoundButton_Switch=0x7f0b012f; public static final int Widget_AppCompat_DrawerArrowToggle=0x7f0b0130; public static final int Widget_AppCompat_DropDownItem_Spinner=0x7f0b0131; public static final int Widget_AppCompat_EditText=0x7f0b0132; public static final int Widget_AppCompat_ImageButton=0x7f0b0133; public static final int Widget_AppCompat_Light_ActionBar=0x7f0b0134; public static final int Widget_AppCompat_Light_ActionBar_Solid=0x7f0b0135; public static final int Widget_AppCompat_Light_ActionBar_Solid_Inverse=0x7f0b0136; public static final int Widget_AppCompat_Light_ActionBar_TabBar=0x7f0b0137; public static final int Widget_AppCompat_Light_ActionBar_TabBar_Inverse=0x7f0b0138; public static final int Widget_AppCompat_Light_ActionBar_TabText=0x7f0b0139; public static final int Widget_AppCompat_Light_ActionBar_TabText_Inverse=0x7f0b013a; public static final int Widget_AppCompat_Light_ActionBar_TabView=0x7f0b013b; public static final int Widget_AppCompat_Light_ActionBar_TabView_Inverse=0x7f0b013c; public static final int Widget_AppCompat_Light_ActionButton=0x7f0b013d; public static final int Widget_AppCompat_Light_ActionButton_CloseMode=0x7f0b013e; public static final int Widget_AppCompat_Light_ActionButton_Overflow=0x7f0b013f; public static final int Widget_AppCompat_Light_ActionMode_Inverse=0x7f0b0140; public static final int Widget_AppCompat_Light_ActivityChooserView=0x7f0b0141; public static final int Widget_AppCompat_Light_AutoCompleteTextView=0x7f0b0142; public static final int Widget_AppCompat_Light_DropDownItem_Spinner=0x7f0b0143; public static final int Widget_AppCompat_Light_ListPopupWindow=0x7f0b0144; public static final int Widget_AppCompat_Light_ListView_DropDown=0x7f0b0145; public static final int Widget_AppCompat_Light_PopupMenu=0x7f0b0146; public static final int Widget_AppCompat_Light_PopupMenu_Overflow=0x7f0b0147; public static final int Widget_AppCompat_Light_SearchView=0x7f0b0148; public static final int Widget_AppCompat_Light_Spinner_DropDown_ActionBar=0x7f0b0149; public static final int Widget_AppCompat_ListMenuView=0x7f0b014a; public static final int Widget_AppCompat_ListPopupWindow=0x7f0b014b; public static final int Widget_AppCompat_ListView=0x7f0b014c; public static final int Widget_AppCompat_ListView_DropDown=0x7f0b014d; public static final int Widget_AppCompat_ListView_Menu=0x7f0b014e; public static final int Widget_AppCompat_NotificationActionContainer=0x7f0b014f; public static final int Widget_AppCompat_NotificationActionText=0x7f0b0150; public static final int Widget_AppCompat_PopupMenu=0x7f0b0151; public static final int Widget_AppCompat_PopupMenu_Overflow=0x7f0b0152; public static final int Widget_AppCompat_PopupWindow=0x7f0b0153; public static final int Widget_AppCompat_ProgressBar=0x7f0b0154; public static final int Widget_AppCompat_ProgressBar_Horizontal=0x7f0b0155; public static final int Widget_AppCompat_RatingBar=0x7f0b0156; public static final int Widget_AppCompat_RatingBar_Indicator=0x7f0b0157; public static final int Widget_AppCompat_RatingBar_Small=0x7f0b0158; public static final int Widget_AppCompat_SearchView=0x7f0b0159; public static final int Widget_AppCompat_SearchView_ActionBar=0x7f0b015a; public static final int Widget_AppCompat_SeekBar=0x7f0b015b; public static final int Widget_AppCompat_SeekBar_Discrete=0x7f0b015c; public static final int Widget_AppCompat_Spinner=0x7f0b015d; public static final int Widget_AppCompat_Spinner_DropDown=0x7f0b015e; public static final int Widget_AppCompat_Spinner_DropDown_ActionBar=0x7f0b015f; public static final int Widget_AppCompat_Spinner_Underlined=0x7f0b0160; public static final int Widget_AppCompat_TextView_SpinnerItem=0x7f0b0161; public static final int Widget_AppCompat_Toolbar=0x7f0b0162; public static final int Widget_AppCompat_Toolbar_Button_Navigation=0x7f0b0163; public static final int Widget_SampleMessage=0x7f0b0164; public static final int Widget_SampleMessageTile=0x7f0b0165; } 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.example.android.camera2basic:background}</code></td><td></td></tr> * <tr><td><code>{@link #ActionBar_backgroundSplit com.example.android.camera2basic:backgroundSplit}</code></td><td></td></tr> * <tr><td><code>{@link #ActionBar_backgroundStacked com.example.android.camera2basic:backgroundStacked}</code></td><td></td></tr> * <tr><td><code>{@link #ActionBar_contentInsetEnd com.example.android.camera2basic:contentInsetEnd}</code></td><td></td></tr> * <tr><td><code>{@link #ActionBar_contentInsetEndWithActions com.example.android.camera2basic:contentInsetEndWithActions}</code></td><td></td></tr> * <tr><td><code>{@link #ActionBar_contentInsetLeft com.example.android.camera2basic:contentInsetLeft}</code></td><td></td></tr> * <tr><td><code>{@link #ActionBar_contentInsetRight com.example.android.camera2basic:contentInsetRight}</code></td><td></td></tr> * <tr><td><code>{@link #ActionBar_contentInsetStart com.example.android.camera2basic:contentInsetStart}</code></td><td></td></tr> * <tr><td><code>{@link #ActionBar_contentInsetStartWithNavigation com.example.android.camera2basic:contentInsetStartWithNavigation}</code></td><td></td></tr> * <tr><td><code>{@link #ActionBar_customNavigationLayout com.example.android.camera2basic:customNavigationLayout}</code></td><td></td></tr> * <tr><td><code>{@link #ActionBar_displayOptions com.example.android.camera2basic:displayOptions}</code></td><td></td></tr> * <tr><td><code>{@link #ActionBar_divider com.example.android.camera2basic:divider}</code></td><td></td></tr> * <tr><td><code>{@link #ActionBar_elevation com.example.android.camera2basic:elevation}</code></td><td></td></tr> * <tr><td><code>{@link #ActionBar_height com.example.android.camera2basic:height}</code></td><td></td></tr> * <tr><td><code>{@link #ActionBar_hideOnContentScroll com.example.android.camera2basic:hideOnContentScroll}</code></td><td></td></tr> * <tr><td><code>{@link #ActionBar_homeAsUpIndicator com.example.android.camera2basic:homeAsUpIndicator}</code></td><td></td></tr> * <tr><td><code>{@link #ActionBar_homeLayout com.example.android.camera2basic:homeLayout}</code></td><td></td></tr> * <tr><td><code>{@link #ActionBar_icon com.example.android.camera2basic:icon}</code></td><td></td></tr> * <tr><td><code>{@link #ActionBar_indeterminateProgressStyle com.example.android.camera2basic:indeterminateProgressStyle}</code></td><td></td></tr> * <tr><td><code>{@link #ActionBar_itemPadding com.example.android.camera2basic:itemPadding}</code></td><td></td></tr> * <tr><td><code>{@link #ActionBar_logo com.example.android.camera2basic:logo}</code></td><td></td></tr> * <tr><td><code>{@link #ActionBar_navigationMode com.example.android.camera2basic:navigationMode}</code></td><td></td></tr> * <tr><td><code>{@link #ActionBar_popupTheme com.example.android.camera2basic:popupTheme}</code></td><td></td></tr> * <tr><td><code>{@link #ActionBar_progressBarPadding com.example.android.camera2basic:progressBarPadding}</code></td><td></td></tr> * <tr><td><code>{@link #ActionBar_progressBarStyle com.example.android.camera2basic:progressBarStyle}</code></td><td></td></tr> * <tr><td><code>{@link #ActionBar_subtitle com.example.android.camera2basic:subtitle}</code></td><td></td></tr> * <tr><td><code>{@link #ActionBar_subtitleTextStyle com.example.android.camera2basic:subtitleTextStyle}</code></td><td></td></tr> * <tr><td><code>{@link #ActionBar_title com.example.android.camera2basic:title}</code></td><td></td></tr> * <tr><td><code>{@link #ActionBar_titleTextStyle com.example.android.camera2basic: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={ 0x7f02002b, 0x7f02002c, 0x7f02002d, 0x7f020054, 0x7f020055, 0x7f020056, 0x7f020057, 0x7f020058, 0x7f020059, 0x7f020060, 0x7f020064, 0x7f020065, 0x7f020070, 0x7f020074, 0x7f020075, 0x7f020076, 0x7f020077, 0x7f020078, 0x7f02007b, 0x7f02007e, 0x7f02008b, 0x7f020092, 0x7f02009a, 0x7f02009d, 0x7f02009e, 0x7f0200b7, 0x7f0200ba, 0x7f0200d2, 0x7f0200db }; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#background} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:background */ public static final int ActionBar_background=0; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.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 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.example.android.camera2basic:backgroundSplit */ public static final int ActionBar_backgroundSplit=1; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.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 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.example.android.camera2basic:backgroundStacked */ public static final int ActionBar_backgroundStacked=2; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#contentInsetEnd} * attribute's value can be found in the {@link #ActionBar} 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:contentInsetEnd */ public static final int ActionBar_contentInsetEnd=3; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#contentInsetEndWithActions} * attribute's value can be found in the {@link #ActionBar} 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:contentInsetEndWithActions */ public static final int ActionBar_contentInsetEndWithActions=4; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#contentInsetLeft} * attribute's value can be found in the {@link #ActionBar} 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:contentInsetLeft */ public static final int ActionBar_contentInsetLeft=5; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#contentInsetRight} * attribute's value can be found in the {@link #ActionBar} 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:contentInsetRight */ public static final int ActionBar_contentInsetRight=6; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#contentInsetStart} * attribute's value can be found in the {@link #ActionBar} 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:contentInsetStart */ public static final int ActionBar_contentInsetStart=7; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#contentInsetStartWithNavigation} * attribute's value can be found in the {@link #ActionBar} 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:contentInsetStartWithNavigation */ public static final int ActionBar_contentInsetStartWithNavigation=8; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#customNavigationLayout} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:customNavigationLayout */ public static final int ActionBar_customNavigationLayout=9; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.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>disableHome</td><td>20</td><td></td></tr> * <tr><td>homeAsUp</td><td>4</td><td></td></tr> * <tr><td>none</td><td>0</td><td></td></tr> * <tr><td>showCustom</td><td>10</td><td></td></tr> * <tr><td>showHome</td><td>2</td><td></td></tr> * <tr><td>showTitle</td><td>8</td><td></td></tr> * <tr><td>useLogo</td><td>1</td><td></td></tr> * </table> * * @attr name com.example.android.camera2basic:displayOptions */ public static final int ActionBar_displayOptions=10; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#divider} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:divider */ public static final int ActionBar_divider=11; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#elevation} * attribute's value can be found in the {@link #ActionBar} 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:elevation */ public static final int ActionBar_elevation=12; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#height} * attribute's value can be found in the {@link #ActionBar} 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:height */ public static final int ActionBar_height=13; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#hideOnContentScroll} * attribute's value can be found in the {@link #ActionBar} array. * * <p>May be a boolean value, such as "<code>true</code>" or * "<code>false</code>". * * @attr name com.example.android.camera2basic:hideOnContentScroll */ public static final int ActionBar_hideOnContentScroll=14; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#homeAsUpIndicator} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:homeAsUpIndicator */ public static final int ActionBar_homeAsUpIndicator=15; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#homeLayout} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:homeLayout */ public static final int ActionBar_homeLayout=16; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#icon} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:icon */ public static final int ActionBar_icon=17; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#indeterminateProgressStyle} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:indeterminateProgressStyle */ public static final int ActionBar_indeterminateProgressStyle=18; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#itemPadding} * attribute's value can be found in the {@link #ActionBar} 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:itemPadding */ public static final int ActionBar_itemPadding=19; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#logo} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:logo */ public static final int ActionBar_logo=20; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.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>listMode</td><td>1</td><td></td></tr> * <tr><td>normal</td><td>0</td><td></td></tr> * <tr><td>tabMode</td><td>2</td><td></td></tr> * </table> * * @attr name com.example.android.camera2basic:navigationMode */ public static final int ActionBar_navigationMode=21; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#popupTheme} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:popupTheme */ public static final int ActionBar_popupTheme=22; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#progressBarPadding} * attribute's value can be found in the {@link #ActionBar} 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:progressBarPadding */ public static final int ActionBar_progressBarPadding=23; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#progressBarStyle} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:progressBarStyle */ public static final int ActionBar_progressBarStyle=24; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#subtitle} * attribute's value can be found in the {@link #ActionBar} array. * * <p>May be a string value, using '\\;' to escape characters such as * '\\n' or '\\uxxxx' for a unicode character; * * @attr name com.example.android.camera2basic:subtitle */ public static final int ActionBar_subtitle=25; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#subtitleTextStyle} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:subtitleTextStyle */ public static final int ActionBar_subtitleTextStyle=26; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#title} * attribute's value can be found in the {@link #ActionBar} array. * * <p>May be a string value, using '\\;' to escape characters such as * '\\n' or '\\uxxxx' for a unicode character; * * @attr name com.example.android.camera2basic:title */ public static final int ActionBar_title=27; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#titleTextStyle} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:titleTextStyle */ public static final int ActionBar_titleTextStyle=28; /** * 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. * * <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>end</td><td>800005</td><td></td></tr> * <tr><td>start</td><td>800003</td><td></td></tr> * <tr><td>bottom</td><td>50</td><td></td></tr> * <tr><td>center</td><td>11</td><td></td></tr> * <tr><td>center_horizontal</td><td>1</td><td></td></tr> * <tr><td>center_vertical</td><td>10</td><td></td></tr> * <tr><td>clip_horizontal</td><td>8</td><td></td></tr> * <tr><td>clip_vertical</td><td>80</td><td></td></tr> * <tr><td>fill</td><td>77</td><td></td></tr> * <tr><td>fill_horizontal</td><td>7</td><td></td></tr> * <tr><td>fill_vertical</td><td>70</td><td></td></tr> * <tr><td>left</td><td>3</td><td></td></tr> * <tr><td>right</td><td>5</td><td></td></tr> * <tr><td>top</td><td>30</td><td></td></tr> * </table> * * @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. * * <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), and * mm (millimeters). * * @attr name android:minWidth */ public static final int ActionMenuItemView_android_minWidth=0; public static final int[] ActionMenuView={ }; /** * Attributes that can be used with a ActionMode. * <p>Includes the following attributes:</p> * <table> * <colgroup align="left" /> * <colgroup align="left" /> * <tr><th>Attribute</th><th>Description</th></tr> * <tr><td><code>{@link #ActionMode_background com.example.android.camera2basic:background}</code></td><td></td></tr> * <tr><td><code>{@link #ActionMode_backgroundSplit com.example.android.camera2basic:backgroundSplit}</code></td><td></td></tr> * <tr><td><code>{@link #ActionMode_closeItemLayout com.example.android.camera2basic:closeItemLayout}</code></td><td></td></tr> * <tr><td><code>{@link #ActionMode_height com.example.android.camera2basic:height}</code></td><td></td></tr> * <tr><td><code>{@link #ActionMode_subtitleTextStyle com.example.android.camera2basic:subtitleTextStyle}</code></td><td></td></tr> * <tr><td><code>{@link #ActionMode_titleTextStyle com.example.android.camera2basic: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={ 0x7f02002b, 0x7f02002c, 0x7f020046, 0x7f020074, 0x7f0200ba, 0x7f0200db }; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#background} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:background */ public static final int ActionMode_background=0; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.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 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.example.android.camera2basic:backgroundSplit */ public static final int ActionMode_backgroundSplit=1; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#closeItemLayout} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:closeItemLayout */ public static final int ActionMode_closeItemLayout=2; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#height} * attribute's value can be found in the {@link #ActionMode} 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:height */ public static final int ActionMode_height=3; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#subtitleTextStyle} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:subtitleTextStyle */ public static final int ActionMode_subtitleTextStyle=4; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#titleTextStyle} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:titleTextStyle */ public static final int ActionMode_titleTextStyle=5; /** * 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.example.android.camera2basic:expandActivityOverflowButtonDrawable}</code></td><td></td></tr> * <tr><td><code>{@link #ActivityChooserView_initialActivityCount com.example.android.camera2basic:initialActivityCount}</code></td><td></td></tr> * </table> * @see #ActivityChooserView_expandActivityOverflowButtonDrawable * @see #ActivityChooserView_initialActivityCount */ public static final int[] ActivityChooserView={ 0x7f020071, 0x7f02007c }; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#expandActivityOverflowButtonDrawable} * attribute's value can be found in the {@link #ActivityChooserView} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:expandActivityOverflowButtonDrawable */ public static final int ActivityChooserView_expandActivityOverflowButtonDrawable=0; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#initialActivityCount} * attribute's value can be found in the {@link #ActivityChooserView} array. * * <p>May be a string value, using '\\;' to escape characters such as * '\\n' or '\\uxxxx' for a unicode character; * * @attr name com.example.android.camera2basic:initialActivityCount */ public static final int ActivityChooserView_initialActivityCount=1; /** * 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.example.android.camera2basic:buttonPanelSideLayout}</code></td><td></td></tr> * <tr><td><code>{@link #AlertDialog_listItemLayout com.example.android.camera2basic:listItemLayout}</code></td><td></td></tr> * <tr><td><code>{@link #AlertDialog_listLayout com.example.android.camera2basic:listLayout}</code></td><td></td></tr> * <tr><td><code>{@link #AlertDialog_multiChoiceItemLayout com.example.android.camera2basic:multiChoiceItemLayout}</code></td><td></td></tr> * <tr><td><code>{@link #AlertDialog_singleChoiceItemLayout com.example.android.camera2basic: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, 0x7f020038, 0x7f020082, 0x7f020083, 0x7f02008f, 0x7f0200ae }; /** * <p>This symbol is the offset where the {@link android.R.attr#layout} * attribute's value can be found in the {@link #AlertDialog} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name android:layout */ public static final int AlertDialog_android_layout=0; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#buttonPanelSideLayout} * attribute's value can be found in the {@link #AlertDialog} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:buttonPanelSideLayout */ public static final int AlertDialog_buttonPanelSideLayout=1; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#listItemLayout} * attribute's value can be found in the {@link #AlertDialog} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:listItemLayout */ public static final int AlertDialog_listItemLayout=2; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#listLayout} * attribute's value can be found in the {@link #AlertDialog} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:listLayout */ public static final int AlertDialog_listLayout=3; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#multiChoiceItemLayout} * attribute's value can be found in the {@link #AlertDialog} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:multiChoiceItemLayout */ public static final int AlertDialog_multiChoiceItemLayout=4; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#singleChoiceItemLayout} * attribute's value can be found in the {@link #AlertDialog} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:singleChoiceItemLayout */ public static final int AlertDialog_singleChoiceItemLayout=5; /** * 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.example.android.camera2basic:srcCompat}</code></td><td></td></tr> * </table> * @see #AppCompatImageView_android_src * @see #AppCompatImageView_srcCompat */ public static final int[] AppCompatImageView={ 0x01010119, 0x7f0200b3 }; /** * <p>This symbol is the offset where the {@link android.R.attr#src} * attribute's value can be found in the {@link #AppCompatImageView} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or * "<code>#<i>aarrggbb</i></code>". * * @attr name android:src */ public static final int AppCompatImageView_android_src=0; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#srcCompat} * attribute's value can be found in the {@link #AppCompatImageView} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic: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.example.android.camera2basic:tickMark}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatSeekBar_tickMarkTint com.example.android.camera2basic:tickMarkTint}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatSeekBar_tickMarkTintMode com.example.android.camera2basic: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, 0x7f0200cf, 0x7f0200d0, 0x7f0200d1 }; /** * <p>This symbol is the offset where the {@link android.R.attr#thumb} * attribute's value can be found in the {@link #AppCompatSeekBar} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name android:thumb */ public static final int AppCompatSeekBar_android_thumb=0; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#tickMark} * attribute's value can be found in the {@link #AppCompatSeekBar} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:tickMark */ public static final int AppCompatSeekBar_tickMark=1; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#tickMarkTint} * attribute's value can be found in the {@link #AppCompatSeekBar} array. * * <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.example.android.camera2basic:tickMarkTint */ public static final int AppCompatSeekBar_tickMarkTint=2; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.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>add</td><td>10</td><td></td></tr> * <tr><td>multiply</td><td>e</td><td></td></tr> * <tr><td>screen</td><td>f</td><td></td></tr> * <tr><td>src_atop</td><td>9</td><td></td></tr> * <tr><td>src_in</td><td>5</td><td></td></tr> * <tr><td>src_over</td><td>3</td><td></td></tr> * </table> * * @attr name com.example.android.camera2basic: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_textAppearance android:textAppearance}</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_drawableBottom android:drawableBottom}</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_drawableEnd android:drawableEnd}</code></td><td></td></tr> * </table> * @see #AppCompatTextHelper_android_textAppearance * @see #AppCompatTextHelper_android_drawableTop * @see #AppCompatTextHelper_android_drawableBottom * @see #AppCompatTextHelper_android_drawableLeft * @see #AppCompatTextHelper_android_drawableRight * @see #AppCompatTextHelper_android_drawableStart * @see #AppCompatTextHelper_android_drawableEnd */ public static final int[] AppCompatTextHelper={ 0x01010034, 0x0101016d, 0x0101016e, 0x0101016f, 0x01010170, 0x01010392, 0x01010393 }; /** * <p>This symbol is the offset where the {@link android.R.attr#textAppearance} * attribute's value can be found in the {@link #AppCompatTextHelper} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name android:textAppearance */ public static final int AppCompatTextHelper_android_textAppearance=0; /** * <p>This symbol is the offset where the {@link android.R.attr#drawableTop} * attribute's value can be found in the {@link #AppCompatTextHelper} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or * "<code>#<i>aarrggbb</i></code>". * * @attr name android:drawableTop */ public static final int AppCompatTextHelper_android_drawableTop=1; /** * <p>This symbol is the offset where the {@link android.R.attr#drawableBottom} * attribute's value can be found in the {@link #AppCompatTextHelper} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or * "<code>#<i>aarrggbb</i></code>". * * @attr name android:drawableBottom */ public static final int AppCompatTextHelper_android_drawableBottom=2; /** * <p>This symbol is the offset where the {@link android.R.attr#drawableLeft} * attribute's value can be found in the {@link #AppCompatTextHelper} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or * "<code>#<i>aarrggbb</i></code>". * * @attr name android: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. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or * "<code>#<i>aarrggbb</i></code>". * * @attr name android: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. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or * "<code>#<i>aarrggbb</i></code>". * * @attr name android:drawableStart */ public static final int AppCompatTextHelper_android_drawableStart=5; /** * <p>This symbol is the offset where the {@link android.R.attr#drawableEnd} * attribute's value can be found in the {@link #AppCompatTextHelper} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or * "<code>#<i>aarrggbb</i></code>". * * @attr name android:drawableEnd */ public static final int AppCompatTextHelper_android_drawableEnd=6; /** * 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.example.android.camera2basic:textAllCaps}</code></td><td></td></tr> * </table> * @see #AppCompatTextView_android_textAppearance * @see #AppCompatTextView_textAllCaps */ public static final int[] AppCompatTextView={ 0x01010034, 0x7f0200c0 }; /** * <p>This symbol is the offset where the {@link android.R.attr#textAppearance} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name android:textAppearance */ public static final int AppCompatTextView_android_textAppearance=0; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * <p>May be a boolean value, such as "<code>true</code>" or * "<code>false</code>". * * @attr name com.example.android.camera2basic: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_android_windowIsFloating android:windowIsFloating}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_android_windowAnimationStyle android:windowAnimationStyle}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_actionBarDivider com.example.android.camera2basic:actionBarDivider}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_actionBarItemBackground com.example.android.camera2basic:actionBarItemBackground}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_actionBarPopupTheme com.example.android.camera2basic:actionBarPopupTheme}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_actionBarSize com.example.android.camera2basic:actionBarSize}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_actionBarSplitStyle com.example.android.camera2basic:actionBarSplitStyle}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_actionBarStyle com.example.android.camera2basic:actionBarStyle}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_actionBarTabBarStyle com.example.android.camera2basic:actionBarTabBarStyle}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_actionBarTabStyle com.example.android.camera2basic:actionBarTabStyle}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_actionBarTabTextStyle com.example.android.camera2basic:actionBarTabTextStyle}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_actionBarTheme com.example.android.camera2basic:actionBarTheme}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_actionBarWidgetTheme com.example.android.camera2basic:actionBarWidgetTheme}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_actionButtonStyle com.example.android.camera2basic:actionButtonStyle}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_actionDropDownStyle com.example.android.camera2basic:actionDropDownStyle}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_actionMenuTextAppearance com.example.android.camera2basic:actionMenuTextAppearance}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_actionMenuTextColor com.example.android.camera2basic:actionMenuTextColor}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_actionModeBackground com.example.android.camera2basic:actionModeBackground}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_actionModeCloseButtonStyle com.example.android.camera2basic:actionModeCloseButtonStyle}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_actionModeCloseDrawable com.example.android.camera2basic:actionModeCloseDrawable}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_actionModeCopyDrawable com.example.android.camera2basic:actionModeCopyDrawable}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_actionModeCutDrawable com.example.android.camera2basic:actionModeCutDrawable}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_actionModeFindDrawable com.example.android.camera2basic:actionModeFindDrawable}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_actionModePasteDrawable com.example.android.camera2basic:actionModePasteDrawable}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_actionModePopupWindowStyle com.example.android.camera2basic:actionModePopupWindowStyle}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_actionModeSelectAllDrawable com.example.android.camera2basic:actionModeSelectAllDrawable}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_actionModeShareDrawable com.example.android.camera2basic:actionModeShareDrawable}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_actionModeSplitBackground com.example.android.camera2basic:actionModeSplitBackground}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_actionModeStyle com.example.android.camera2basic:actionModeStyle}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_actionModeWebSearchDrawable com.example.android.camera2basic:actionModeWebSearchDrawable}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_actionOverflowButtonStyle com.example.android.camera2basic:actionOverflowButtonStyle}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_actionOverflowMenuStyle com.example.android.camera2basic:actionOverflowMenuStyle}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_activityChooserViewStyle com.example.android.camera2basic:activityChooserViewStyle}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_alertDialogButtonGroupStyle com.example.android.camera2basic:alertDialogButtonGroupStyle}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_alertDialogCenterButtons com.example.android.camera2basic:alertDialogCenterButtons}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_alertDialogStyle com.example.android.camera2basic:alertDialogStyle}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_alertDialogTheme com.example.android.camera2basic:alertDialogTheme}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_autoCompleteTextViewStyle com.example.android.camera2basic:autoCompleteTextViewStyle}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_borderlessButtonStyle com.example.android.camera2basic:borderlessButtonStyle}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_buttonBarButtonStyle com.example.android.camera2basic:buttonBarButtonStyle}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_buttonBarNegativeButtonStyle com.example.android.camera2basic:buttonBarNegativeButtonStyle}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_buttonBarNeutralButtonStyle com.example.android.camera2basic:buttonBarNeutralButtonStyle}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_buttonBarPositiveButtonStyle com.example.android.camera2basic:buttonBarPositiveButtonStyle}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_buttonBarStyle com.example.android.camera2basic:buttonBarStyle}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_buttonStyle com.example.android.camera2basic:buttonStyle}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_buttonStyleSmall com.example.android.camera2basic:buttonStyleSmall}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_checkboxStyle com.example.android.camera2basic:checkboxStyle}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_checkedTextViewStyle com.example.android.camera2basic:checkedTextViewStyle}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_colorAccent com.example.android.camera2basic:colorAccent}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_colorBackgroundFloating com.example.android.camera2basic:colorBackgroundFloating}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_colorButtonNormal com.example.android.camera2basic:colorButtonNormal}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_colorControlActivated com.example.android.camera2basic:colorControlActivated}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_colorControlHighlight com.example.android.camera2basic:colorControlHighlight}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_colorControlNormal com.example.android.camera2basic:colorControlNormal}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_colorPrimary com.example.android.camera2basic:colorPrimary}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_colorPrimaryDark com.example.android.camera2basic:colorPrimaryDark}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_colorSwitchThumbNormal com.example.android.camera2basic:colorSwitchThumbNormal}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_controlBackground com.example.android.camera2basic:controlBackground}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_dialogPreferredPadding com.example.android.camera2basic:dialogPreferredPadding}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_dialogTheme com.example.android.camera2basic:dialogTheme}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_dividerHorizontal com.example.android.camera2basic:dividerHorizontal}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_dividerVertical com.example.android.camera2basic:dividerVertical}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_dropDownListViewStyle com.example.android.camera2basic:dropDownListViewStyle}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_dropdownListPreferredItemHeight com.example.android.camera2basic:dropdownListPreferredItemHeight}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_editTextBackground com.example.android.camera2basic:editTextBackground}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_editTextColor com.example.android.camera2basic:editTextColor}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_editTextStyle com.example.android.camera2basic:editTextStyle}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_homeAsUpIndicator com.example.android.camera2basic:homeAsUpIndicator}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_imageButtonStyle com.example.android.camera2basic:imageButtonStyle}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_listChoiceBackgroundIndicator com.example.android.camera2basic:listChoiceBackgroundIndicator}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_listDividerAlertDialog com.example.android.camera2basic:listDividerAlertDialog}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_listMenuViewStyle com.example.android.camera2basic:listMenuViewStyle}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_listPopupWindowStyle com.example.android.camera2basic:listPopupWindowStyle}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_listPreferredItemHeight com.example.android.camera2basic:listPreferredItemHeight}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_listPreferredItemHeightLarge com.example.android.camera2basic:listPreferredItemHeightLarge}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_listPreferredItemHeightSmall com.example.android.camera2basic:listPreferredItemHeightSmall}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_listPreferredItemPaddingLeft com.example.android.camera2basic:listPreferredItemPaddingLeft}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_listPreferredItemPaddingRight com.example.android.camera2basic:listPreferredItemPaddingRight}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_panelBackground com.example.android.camera2basic:panelBackground}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_panelMenuListTheme com.example.android.camera2basic:panelMenuListTheme}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_panelMenuListWidth com.example.android.camera2basic:panelMenuListWidth}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_popupMenuStyle com.example.android.camera2basic:popupMenuStyle}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_popupWindowStyle com.example.android.camera2basic:popupWindowStyle}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_radioButtonStyle com.example.android.camera2basic:radioButtonStyle}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_ratingBarStyle com.example.android.camera2basic:ratingBarStyle}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_ratingBarStyleIndicator com.example.android.camera2basic:ratingBarStyleIndicator}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_ratingBarStyleSmall com.example.android.camera2basic:ratingBarStyleSmall}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_searchViewStyle com.example.android.camera2basic:searchViewStyle}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_seekBarStyle com.example.android.camera2basic:seekBarStyle}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_selectableItemBackground com.example.android.camera2basic:selectableItemBackground}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_selectableItemBackgroundBorderless com.example.android.camera2basic:selectableItemBackgroundBorderless}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_spinnerDropDownItemStyle com.example.android.camera2basic:spinnerDropDownItemStyle}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_spinnerStyle com.example.android.camera2basic:spinnerStyle}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_switchStyle com.example.android.camera2basic:switchStyle}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_textAppearanceLargePopupMenu com.example.android.camera2basic:textAppearanceLargePopupMenu}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_textAppearanceListItem com.example.android.camera2basic:textAppearanceListItem}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_textAppearanceListItemSmall com.example.android.camera2basic:textAppearanceListItemSmall}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_textAppearancePopupMenuHeader com.example.android.camera2basic:textAppearancePopupMenuHeader}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_textAppearanceSearchResultSubtitle com.example.android.camera2basic:textAppearanceSearchResultSubtitle}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_textAppearanceSearchResultTitle com.example.android.camera2basic:textAppearanceSearchResultTitle}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_textAppearanceSmallPopupMenu com.example.android.camera2basic:textAppearanceSmallPopupMenu}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_textColorAlertDialogListItem com.example.android.camera2basic:textColorAlertDialogListItem}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_textColorSearchUrl com.example.android.camera2basic:textColorSearchUrl}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_toolbarNavigationButtonStyle com.example.android.camera2basic:toolbarNavigationButtonStyle}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_toolbarStyle com.example.android.camera2basic:toolbarStyle}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_windowActionBar com.example.android.camera2basic:windowActionBar}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_windowActionBarOverlay com.example.android.camera2basic:windowActionBarOverlay}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_windowActionModeOverlay com.example.android.camera2basic:windowActionModeOverlay}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_windowFixedHeightMajor com.example.android.camera2basic:windowFixedHeightMajor}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_windowFixedHeightMinor com.example.android.camera2basic:windowFixedHeightMinor}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_windowFixedWidthMajor com.example.android.camera2basic:windowFixedWidthMajor}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_windowFixedWidthMinor com.example.android.camera2basic:windowFixedWidthMinor}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_windowMinWidthMajor com.example.android.camera2basic:windowMinWidthMajor}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_windowMinWidthMinor com.example.android.camera2basic:windowMinWidthMinor}</code></td><td></td></tr> * <tr><td><code>{@link #AppCompatTheme_windowNoTitle com.example.android.camera2basic:windowNoTitle}</code></td><td></td></tr> * </table> * @see #AppCompatTheme_android_windowIsFloating * @see #AppCompatTheme_android_windowAnimationStyle * @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_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, 0x7f020000, 0x7f020001, 0x7f020002, 0x7f020003, 0x7f020004, 0x7f020005, 0x7f020006, 0x7f020007, 0x7f020008, 0x7f020009, 0x7f02000a, 0x7f02000b, 0x7f02000c, 0x7f02000e, 0x7f02000f, 0x7f020010, 0x7f020011, 0x7f020012, 0x7f020013, 0x7f020014, 0x7f020015, 0x7f020016, 0x7f020017, 0x7f020018, 0x7f020019, 0x7f02001a, 0x7f02001b, 0x7f02001c, 0x7f02001d, 0x7f02001e, 0x7f020021, 0x7f020022, 0x7f020023, 0x7f020024, 0x7f020025, 0x7f02002a, 0x7f020031, 0x7f020032, 0x7f020033, 0x7f020034, 0x7f020035, 0x7f020036, 0x7f020039, 0x7f02003a, 0x7f020043, 0x7f020044, 0x7f02004a, 0x7f02004b, 0x7f02004c, 0x7f02004d, 0x7f02004e, 0x7f02004f, 0x7f020050, 0x7f020051, 0x7f020052, 0x7f02005f, 0x7f020062, 0x7f020063, 0x7f020066, 0x7f020068, 0x7f02006b, 0x7f02006c, 0x7f02006d, 0x7f02006e, 0x7f02006f, 0x7f020076, 0x7f02007a, 0x7f020080, 0x7f020081, 0x7f020084, 0x7f020085, 0x7f020086, 0x7f020087, 0x7f020088, 0x7f020089, 0x7f02008a, 0x7f020096, 0x7f020097, 0x7f020098, 0x7f020099, 0x7f02009b, 0x7f0200a1, 0x7f0200a2, 0x7f0200a3, 0x7f0200a4, 0x7f0200a7, 0x7f0200a8, 0x7f0200a9, 0x7f0200aa, 0x7f0200b0, 0x7f0200b1, 0x7f0200be, 0x7f0200c1, 0x7f0200c2, 0x7f0200c3, 0x7f0200c4, 0x7f0200c5, 0x7f0200c6, 0x7f0200c7, 0x7f0200c8, 0x7f0200c9, 0x7f0200dc, 0x7f0200dd, 0x7f0200e2, 0x7f0200e3, 0x7f0200e4, 0x7f0200e5, 0x7f0200e6, 0x7f0200e7, 0x7f0200e8, 0x7f0200e9, 0x7f0200ea, 0x7f0200eb }; /** * <p>This symbol is the offset where the {@link android.R.attr#windowIsFloating} * attribute's value can be found in the {@link #AppCompatTheme} array. * * <p>May be a boolean value, such as "<code>true</code>" or * "<code>false</code>". * * @attr name android:windowIsFloating */ public static final int AppCompatTheme_android_windowIsFloating=0; /** * <p>This symbol is the offset where the {@link android.R.attr#windowAnimationStyle} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name android:windowAnimationStyle */ public static final int AppCompatTheme_android_windowAnimationStyle=1; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#actionBarDivider} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:actionBarDivider */ public static final int AppCompatTheme_actionBarDivider=2; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#actionBarItemBackground} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:actionBarItemBackground */ public static final int AppCompatTheme_actionBarItemBackground=3; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#actionBarPopupTheme} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:actionBarPopupTheme */ public static final int AppCompatTheme_actionBarPopupTheme=4; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.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), and * mm (millimeters). * <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>wrap_content</td><td>0</td><td></td></tr> * </table> * * @attr name com.example.android.camera2basic:actionBarSize */ public static final int AppCompatTheme_actionBarSize=5; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#actionBarSplitStyle} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:actionBarSplitStyle */ public static final int AppCompatTheme_actionBarSplitStyle=6; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#actionBarStyle} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:actionBarStyle */ public static final int AppCompatTheme_actionBarStyle=7; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#actionBarTabBarStyle} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:actionBarTabBarStyle */ public static final int AppCompatTheme_actionBarTabBarStyle=8; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#actionBarTabStyle} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:actionBarTabStyle */ public static final int AppCompatTheme_actionBarTabStyle=9; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#actionBarTabTextStyle} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:actionBarTabTextStyle */ public static final int AppCompatTheme_actionBarTabTextStyle=10; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#actionBarTheme} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:actionBarTheme */ public static final int AppCompatTheme_actionBarTheme=11; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#actionBarWidgetTheme} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:actionBarWidgetTheme */ public static final int AppCompatTheme_actionBarWidgetTheme=12; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#actionButtonStyle} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:actionButtonStyle */ public static final int AppCompatTheme_actionButtonStyle=13; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#actionDropDownStyle} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:actionDropDownStyle */ public static final int AppCompatTheme_actionDropDownStyle=14; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#actionMenuTextAppearance} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:actionMenuTextAppearance */ public static final int AppCompatTheme_actionMenuTextAppearance=15; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.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 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.example.android.camera2basic:actionMenuTextColor */ public static final int AppCompatTheme_actionMenuTextColor=16; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#actionModeBackground} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:actionModeBackground */ public static final int AppCompatTheme_actionModeBackground=17; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#actionModeCloseButtonStyle} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:actionModeCloseButtonStyle */ public static final int AppCompatTheme_actionModeCloseButtonStyle=18; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#actionModeCloseDrawable} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:actionModeCloseDrawable */ public static final int AppCompatTheme_actionModeCloseDrawable=19; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#actionModeCopyDrawable} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:actionModeCopyDrawable */ public static final int AppCompatTheme_actionModeCopyDrawable=20; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#actionModeCutDrawable} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:actionModeCutDrawable */ public static final int AppCompatTheme_actionModeCutDrawable=21; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#actionModeFindDrawable} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:actionModeFindDrawable */ public static final int AppCompatTheme_actionModeFindDrawable=22; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#actionModePasteDrawable} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:actionModePasteDrawable */ public static final int AppCompatTheme_actionModePasteDrawable=23; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#actionModePopupWindowStyle} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:actionModePopupWindowStyle */ public static final int AppCompatTheme_actionModePopupWindowStyle=24; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#actionModeSelectAllDrawable} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:actionModeSelectAllDrawable */ public static final int AppCompatTheme_actionModeSelectAllDrawable=25; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#actionModeShareDrawable} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:actionModeShareDrawable */ public static final int AppCompatTheme_actionModeShareDrawable=26; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#actionModeSplitBackground} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:actionModeSplitBackground */ public static final int AppCompatTheme_actionModeSplitBackground=27; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#actionModeStyle} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:actionModeStyle */ public static final int AppCompatTheme_actionModeStyle=28; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#actionModeWebSearchDrawable} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:actionModeWebSearchDrawable */ public static final int AppCompatTheme_actionModeWebSearchDrawable=29; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#actionOverflowButtonStyle} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:actionOverflowButtonStyle */ public static final int AppCompatTheme_actionOverflowButtonStyle=30; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#actionOverflowMenuStyle} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:actionOverflowMenuStyle */ public static final int AppCompatTheme_actionOverflowMenuStyle=31; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#activityChooserViewStyle} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:activityChooserViewStyle */ public static final int AppCompatTheme_activityChooserViewStyle=32; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#alertDialogButtonGroupStyle} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:alertDialogButtonGroupStyle */ public static final int AppCompatTheme_alertDialogButtonGroupStyle=33; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#alertDialogCenterButtons} * attribute's value can be found in the {@link #AppCompatTheme} array. * * <p>May be a boolean value, such as "<code>true</code>" or * "<code>false</code>". * * @attr name com.example.android.camera2basic:alertDialogCenterButtons */ public static final int AppCompatTheme_alertDialogCenterButtons=34; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#alertDialogStyle} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:alertDialogStyle */ public static final int AppCompatTheme_alertDialogStyle=35; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#alertDialogTheme} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:alertDialogTheme */ public static final int AppCompatTheme_alertDialogTheme=36; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#autoCompleteTextViewStyle} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:autoCompleteTextViewStyle */ public static final int AppCompatTheme_autoCompleteTextViewStyle=37; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#borderlessButtonStyle} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:borderlessButtonStyle */ public static final int AppCompatTheme_borderlessButtonStyle=38; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#buttonBarButtonStyle} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:buttonBarButtonStyle */ public static final int AppCompatTheme_buttonBarButtonStyle=39; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#buttonBarNegativeButtonStyle} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:buttonBarNegativeButtonStyle */ public static final int AppCompatTheme_buttonBarNegativeButtonStyle=40; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#buttonBarNeutralButtonStyle} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:buttonBarNeutralButtonStyle */ public static final int AppCompatTheme_buttonBarNeutralButtonStyle=41; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#buttonBarPositiveButtonStyle} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:buttonBarPositiveButtonStyle */ public static final int AppCompatTheme_buttonBarPositiveButtonStyle=42; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#buttonBarStyle} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:buttonBarStyle */ public static final int AppCompatTheme_buttonBarStyle=43; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#buttonStyle} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:buttonStyle */ public static final int AppCompatTheme_buttonStyle=44; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#buttonStyleSmall} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:buttonStyleSmall */ public static final int AppCompatTheme_buttonStyleSmall=45; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#checkboxStyle} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:checkboxStyle */ public static final int AppCompatTheme_checkboxStyle=46; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#checkedTextViewStyle} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:checkedTextViewStyle */ public static final int AppCompatTheme_checkedTextViewStyle=47; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#colorAccent} * attribute's value can be found in the {@link #AppCompatTheme} array. * * <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.example.android.camera2basic:colorAccent */ public static final int AppCompatTheme_colorAccent=48; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#colorBackgroundFloating} * attribute's value can be found in the {@link #AppCompatTheme} array. * * <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.example.android.camera2basic:colorBackgroundFloating */ public static final int AppCompatTheme_colorBackgroundFloating=49; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#colorButtonNormal} * attribute's value can be found in the {@link #AppCompatTheme} array. * * <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.example.android.camera2basic:colorButtonNormal */ public static final int AppCompatTheme_colorButtonNormal=50; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#colorControlActivated} * attribute's value can be found in the {@link #AppCompatTheme} array. * * <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.example.android.camera2basic:colorControlActivated */ public static final int AppCompatTheme_colorControlActivated=51; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#colorControlHighlight} * attribute's value can be found in the {@link #AppCompatTheme} array. * * <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.example.android.camera2basic:colorControlHighlight */ public static final int AppCompatTheme_colorControlHighlight=52; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#colorControlNormal} * attribute's value can be found in the {@link #AppCompatTheme} array. * * <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.example.android.camera2basic:colorControlNormal */ public static final int AppCompatTheme_colorControlNormal=53; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#colorPrimary} * attribute's value can be found in the {@link #AppCompatTheme} array. * * <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.example.android.camera2basic:colorPrimary */ public static final int AppCompatTheme_colorPrimary=54; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#colorPrimaryDark} * attribute's value can be found in the {@link #AppCompatTheme} array. * * <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.example.android.camera2basic:colorPrimaryDark */ public static final int AppCompatTheme_colorPrimaryDark=55; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#colorSwitchThumbNormal} * attribute's value can be found in the {@link #AppCompatTheme} array. * * <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.example.android.camera2basic:colorSwitchThumbNormal */ public static final int AppCompatTheme_colorSwitchThumbNormal=56; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#controlBackground} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:controlBackground */ public static final int AppCompatTheme_controlBackground=57; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#dialogPreferredPadding} * 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:dialogPreferredPadding */ public static final int AppCompatTheme_dialogPreferredPadding=58; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#dialogTheme} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:dialogTheme */ public static final int AppCompatTheme_dialogTheme=59; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#dividerHorizontal} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:dividerHorizontal */ public static final int AppCompatTheme_dividerHorizontal=60; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#dividerVertical} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:dividerVertical */ public static final int AppCompatTheme_dividerVertical=61; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#dropDownListViewStyle} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:dropDownListViewStyle */ public static final int AppCompatTheme_dropDownListViewStyle=62; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#dropdownListPreferredItemHeight} * 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:dropdownListPreferredItemHeight */ public static final int AppCompatTheme_dropdownListPreferredItemHeight=63; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#editTextBackground} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:editTextBackground */ public static final int AppCompatTheme_editTextBackground=64; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.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 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.example.android.camera2basic:editTextColor */ public static final int AppCompatTheme_editTextColor=65; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#editTextStyle} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:editTextStyle */ public static final int AppCompatTheme_editTextStyle=66; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#homeAsUpIndicator} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:homeAsUpIndicator */ public static final int AppCompatTheme_homeAsUpIndicator=67; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#imageButtonStyle} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:imageButtonStyle */ public static final int AppCompatTheme_imageButtonStyle=68; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#listChoiceBackgroundIndicator} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:listChoiceBackgroundIndicator */ public static final int AppCompatTheme_listChoiceBackgroundIndicator=69; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#listDividerAlertDialog} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:listDividerAlertDialog */ public static final int AppCompatTheme_listDividerAlertDialog=70; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#listMenuViewStyle} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:listMenuViewStyle */ public static final int AppCompatTheme_listMenuViewStyle=71; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#listPopupWindowStyle} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:listPopupWindowStyle */ public static final int AppCompatTheme_listPopupWindowStyle=72; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#listPreferredItemHeight} * 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:listPreferredItemHeight */ public static final int AppCompatTheme_listPreferredItemHeight=73; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#listPreferredItemHeightLarge} * 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:listPreferredItemHeightLarge */ public static final int AppCompatTheme_listPreferredItemHeightLarge=74; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#listPreferredItemHeightSmall} * 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:listPreferredItemHeightSmall */ public static final int AppCompatTheme_listPreferredItemHeightSmall=75; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#listPreferredItemPaddingLeft} * 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:listPreferredItemPaddingLeft */ public static final int AppCompatTheme_listPreferredItemPaddingLeft=76; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#listPreferredItemPaddingRight} * 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:listPreferredItemPaddingRight */ public static final int AppCompatTheme_listPreferredItemPaddingRight=77; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#panelBackground} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:panelBackground */ public static final int AppCompatTheme_panelBackground=78; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#panelMenuListTheme} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:panelMenuListTheme */ public static final int AppCompatTheme_panelMenuListTheme=79; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#panelMenuListWidth} * 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:panelMenuListWidth */ public static final int AppCompatTheme_panelMenuListWidth=80; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#popupMenuStyle} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:popupMenuStyle */ public static final int AppCompatTheme_popupMenuStyle=81; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#popupWindowStyle} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:popupWindowStyle */ public static final int AppCompatTheme_popupWindowStyle=82; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#radioButtonStyle} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:radioButtonStyle */ public static final int AppCompatTheme_radioButtonStyle=83; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#ratingBarStyle} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:ratingBarStyle */ public static final int AppCompatTheme_ratingBarStyle=84; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#ratingBarStyleIndicator} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:ratingBarStyleIndicator */ public static final int AppCompatTheme_ratingBarStyleIndicator=85; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#ratingBarStyleSmall} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:ratingBarStyleSmall */ public static final int AppCompatTheme_ratingBarStyleSmall=86; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#searchViewStyle} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:searchViewStyle */ public static final int AppCompatTheme_searchViewStyle=87; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#seekBarStyle} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:seekBarStyle */ public static final int AppCompatTheme_seekBarStyle=88; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#selectableItemBackground} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:selectableItemBackground */ public static final int AppCompatTheme_selectableItemBackground=89; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#selectableItemBackgroundBorderless} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:selectableItemBackgroundBorderless */ public static final int AppCompatTheme_selectableItemBackgroundBorderless=90; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#spinnerDropDownItemStyle} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:spinnerDropDownItemStyle */ public static final int AppCompatTheme_spinnerDropDownItemStyle=91; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#spinnerStyle} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:spinnerStyle */ public static final int AppCompatTheme_spinnerStyle=92; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#switchStyle} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:switchStyle */ public static final int AppCompatTheme_switchStyle=93; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#textAppearanceLargePopupMenu} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:textAppearanceLargePopupMenu */ public static final int AppCompatTheme_textAppearanceLargePopupMenu=94; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#textAppearanceListItem} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:textAppearanceListItem */ public static final int AppCompatTheme_textAppearanceListItem=95; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#textAppearanceListItemSmall} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:textAppearanceListItemSmall */ public static final int AppCompatTheme_textAppearanceListItemSmall=96; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#textAppearancePopupMenuHeader} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:textAppearancePopupMenuHeader */ public static final int AppCompatTheme_textAppearancePopupMenuHeader=97; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#textAppearanceSearchResultSubtitle} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:textAppearanceSearchResultSubtitle */ public static final int AppCompatTheme_textAppearanceSearchResultSubtitle=98; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#textAppearanceSearchResultTitle} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:textAppearanceSearchResultTitle */ public static final int AppCompatTheme_textAppearanceSearchResultTitle=99; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#textAppearanceSmallPopupMenu} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:textAppearanceSmallPopupMenu */ public static final int AppCompatTheme_textAppearanceSmallPopupMenu=100; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.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 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.example.android.camera2basic:textColorAlertDialogListItem */ public static final int AppCompatTheme_textColorAlertDialogListItem=101; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.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 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.example.android.camera2basic:textColorSearchUrl */ public static final int AppCompatTheme_textColorSearchUrl=102; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#toolbarNavigationButtonStyle} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:toolbarNavigationButtonStyle */ public static final int AppCompatTheme_toolbarNavigationButtonStyle=103; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#toolbarStyle} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:toolbarStyle */ public static final int AppCompatTheme_toolbarStyle=104; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#windowActionBar} * attribute's value can be found in the {@link #AppCompatTheme} array. * * <p>May be a boolean value, such as "<code>true</code>" or * "<code>false</code>". * * @attr name com.example.android.camera2basic:windowActionBar */ public static final int AppCompatTheme_windowActionBar=105; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#windowActionBarOverlay} * attribute's value can be found in the {@link #AppCompatTheme} array. * * <p>May be a boolean value, such as "<code>true</code>" or * "<code>false</code>". * * @attr name com.example.android.camera2basic:windowActionBarOverlay */ public static final int AppCompatTheme_windowActionBarOverlay=106; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#windowActionModeOverlay} * attribute's value can be found in the {@link #AppCompatTheme} array. * * <p>May be a boolean value, such as "<code>true</code>" or * "<code>false</code>". * * @attr name com.example.android.camera2basic:windowActionModeOverlay */ public static final int AppCompatTheme_windowActionModeOverlay=107; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.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), and * 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. * * @attr name com.example.android.camera2basic:windowFixedHeightMajor */ public static final int AppCompatTheme_windowFixedHeightMajor=108; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.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), and * 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. * * @attr name com.example.android.camera2basic:windowFixedHeightMinor */ public static final int AppCompatTheme_windowFixedHeightMinor=109; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.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), and * 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. * * @attr name com.example.android.camera2basic:windowFixedWidthMajor */ public static final int AppCompatTheme_windowFixedWidthMajor=110; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.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), and * 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. * * @attr name com.example.android.camera2basic:windowFixedWidthMinor */ public static final int AppCompatTheme_windowFixedWidthMinor=111; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.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), and * 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. * * @attr name com.example.android.camera2basic:windowMinWidthMajor */ public static final int AppCompatTheme_windowMinWidthMajor=112; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.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), and * 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. * * @attr name com.example.android.camera2basic:windowMinWidthMinor */ public static final int AppCompatTheme_windowMinWidthMinor=113; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#windowNoTitle} * attribute's value can be found in the {@link #AppCompatTheme} array. * * <p>May be a boolean value, such as "<code>true</code>" or * "<code>false</code>". * * @attr name com.example.android.camera2basic:windowNoTitle */ public static final int AppCompatTheme_windowNoTitle=114; /** * 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.example.android.camera2basic:allowStacking}</code></td><td></td></tr> * </table> * @see #ButtonBarLayout_allowStacking */ public static final int[] ButtonBarLayout={ 0x7f020026 }; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#allowStacking} * attribute's value can be found in the {@link #ButtonBarLayout} array. * * <p>May be a boolean value, such as "<code>true</code>" or * "<code>false</code>". * * @attr name com.example.android.camera2basic:allowStacking */ public static final int ButtonBarLayout_allowStacking=0; /** * Attributes that can be used with a CardView. * <p>Includes the following attributes:</p> * <table> * <colgroup align="left" /> * <colgroup align="left" /> * <tr><th>Attribute</th><th>Description</th></tr> * <tr><td><code>{@link #CardView_android_minWidth android:minWidth}</code></td><td></td></tr> * <tr><td><code>{@link #CardView_android_minHeight android:minHeight}</code></td><td></td></tr> * <tr><td><code>{@link #CardView_cardBackgroundColor com.example.android.camera2basic:cardBackgroundColor}</code></td><td></td></tr> * <tr><td><code>{@link #CardView_cardCornerRadius com.example.android.camera2basic:cardCornerRadius}</code></td><td></td></tr> * <tr><td><code>{@link #CardView_cardElevation com.example.android.camera2basic:cardElevation}</code></td><td></td></tr> * <tr><td><code>{@link #CardView_cardMaxElevation com.example.android.camera2basic:cardMaxElevation}</code></td><td></td></tr> * <tr><td><code>{@link #CardView_cardPreventCornerOverlap com.example.android.camera2basic:cardPreventCornerOverlap}</code></td><td></td></tr> * <tr><td><code>{@link #CardView_cardUseCompatPadding com.example.android.camera2basic:cardUseCompatPadding}</code></td><td></td></tr> * <tr><td><code>{@link #CardView_contentPadding com.example.android.camera2basic:contentPadding}</code></td><td></td></tr> * <tr><td><code>{@link #CardView_contentPaddingBottom com.example.android.camera2basic:contentPaddingBottom}</code></td><td></td></tr> * <tr><td><code>{@link #CardView_contentPaddingLeft com.example.android.camera2basic:contentPaddingLeft}</code></td><td></td></tr> * <tr><td><code>{@link #CardView_contentPaddingRight com.example.android.camera2basic:contentPaddingRight}</code></td><td></td></tr> * <tr><td><code>{@link #CardView_contentPaddingTop com.example.android.camera2basic:contentPaddingTop}</code></td><td></td></tr> * </table> * @see #CardView_android_minWidth * @see #CardView_android_minHeight * @see #CardView_cardBackgroundColor * @see #CardView_cardCornerRadius * @see #CardView_cardElevation * @see #CardView_cardMaxElevation * @see #CardView_cardPreventCornerOverlap * @see #CardView_cardUseCompatPadding * @see #CardView_contentPadding * @see #CardView_contentPaddingBottom * @see #CardView_contentPaddingLeft * @see #CardView_contentPaddingRight * @see #CardView_contentPaddingTop */ public static final int[] CardView={ 0x0101013f, 0x01010140, 0x7f02003d, 0x7f02003e, 0x7f02003f, 0x7f020040, 0x7f020041, 0x7f020042, 0x7f02005a, 0x7f02005b, 0x7f02005c, 0x7f02005d, 0x7f02005e }; /** * <p>This symbol is the offset where the {@link android.R.attr#minWidth} * attribute's value can be found in the {@link #CardView} 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), and * mm (millimeters). * * @attr name android:minWidth */ public static final int CardView_android_minWidth=0; /** * <p>This symbol is the offset where the {@link android.R.attr#minHeight} * attribute's value can be found in the {@link #CardView} 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), and * mm (millimeters). * * @attr name android:minHeight */ public static final int CardView_android_minHeight=1; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#cardBackgroundColor} * attribute's value can be found in the {@link #CardView} array. * * <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.example.android.camera2basic:cardBackgroundColor */ public static final int CardView_cardBackgroundColor=2; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#cardCornerRadius} * attribute's value can be found in the {@link #CardView} 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:cardCornerRadius */ public static final int CardView_cardCornerRadius=3; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#cardElevation} * attribute's value can be found in the {@link #CardView} 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:cardElevation */ public static final int CardView_cardElevation=4; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#cardMaxElevation} * attribute's value can be found in the {@link #CardView} 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:cardMaxElevation */ public static final int CardView_cardMaxElevation=5; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#cardPreventCornerOverlap} * attribute's value can be found in the {@link #CardView} array. * * <p>May be a boolean value, such as "<code>true</code>" or * "<code>false</code>". * * @attr name com.example.android.camera2basic:cardPreventCornerOverlap */ public static final int CardView_cardPreventCornerOverlap=6; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#cardUseCompatPadding} * attribute's value can be found in the {@link #CardView} array. * * <p>May be a boolean value, such as "<code>true</code>" or * "<code>false</code>". * * @attr name com.example.android.camera2basic:cardUseCompatPadding */ public static final int CardView_cardUseCompatPadding=7; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#contentPadding} * attribute's value can be found in the {@link #CardView} 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:contentPadding */ public static final int CardView_contentPadding=8; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#contentPaddingBottom} * attribute's value can be found in the {@link #CardView} 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:contentPaddingBottom */ public static final int CardView_contentPaddingBottom=9; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#contentPaddingLeft} * attribute's value can be found in the {@link #CardView} 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:contentPaddingLeft */ public static final int CardView_contentPaddingLeft=10; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#contentPaddingRight} * attribute's value can be found in the {@link #CardView} 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:contentPaddingRight */ public static final int CardView_contentPaddingRight=11; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#contentPaddingTop} * attribute's value can be found in the {@link #CardView} 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:contentPaddingTop */ public static final int CardView_contentPaddingTop=12; /** * 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_android_color android:color}</code></td><td></td></tr> * <tr><td><code>{@link #ColorStateListItem_android_alpha android:alpha}</code></td><td></td></tr> * <tr><td><code>{@link #ColorStateListItem_alpha com.example.android.camera2basic:alpha}</code></td><td></td></tr> * </table> * @see #ColorStateListItem_android_color * @see #ColorStateListItem_android_alpha * @see #ColorStateListItem_alpha */ public static final int[] ColorStateListItem={ 0x010101a5, 0x0101031f, 0x7f020027 }; /** * <p>This symbol is the offset where the {@link android.R.attr#color} * attribute's value can be found in the {@link #ColorStateListItem} array. * * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or * "<code>#<i>aarrggbb</i></code>". * * @attr name android:color */ public static final int ColorStateListItem_android_color=0; /** * <p>This symbol is the offset where the {@link android.R.attr#alpha} * attribute's value can be found in the {@link #ColorStateListItem} array. * * <p>May be a floating point value, such as "<code>1.2</code>". * * @attr name android:alpha */ public static final int ColorStateListItem_android_alpha=1; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#alpha} * attribute's value can be found in the {@link #ColorStateListItem} array. * * <p>May be a floating point value, such as "<code>1.2</code>". * * @attr name com.example.android.camera2basic:alpha */ public static final int ColorStateListItem_alpha=2; /** * 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.example.android.camera2basic:buttonTint}</code></td><td></td></tr> * <tr><td><code>{@link #CompoundButton_buttonTintMode com.example.android.camera2basic:buttonTintMode}</code></td><td></td></tr> * </table> * @see #CompoundButton_android_button * @see #CompoundButton_buttonTint * @see #CompoundButton_buttonTintMode */ public static final int[] CompoundButton={ 0x01010107, 0x7f02003b, 0x7f02003c }; /** * <p>This symbol is the offset where the {@link android.R.attr#button} * attribute's value can be found in the {@link #CompoundButton} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name android:button */ public static final int CompoundButton_android_button=0; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#buttonTint} * attribute's value can be found in the {@link #CompoundButton} array. * * <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.example.android.camera2basic:buttonTint */ public static final int CompoundButton_buttonTint=1; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.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>multiply</td><td>e</td><td></td></tr> * <tr><td>screen</td><td>f</td><td></td></tr> * <tr><td>src_atop</td><td>9</td><td></td></tr> * <tr><td>src_in</td><td>5</td><td></td></tr> * <tr><td>src_over</td><td>3</td><td></td></tr> * </table> * * @attr name com.example.android.camera2basic:buttonTintMode */ public static final int CompoundButton_buttonTintMode=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.example.android.camera2basic:arrowHeadLength}</code></td><td></td></tr> * <tr><td><code>{@link #DrawerArrowToggle_arrowShaftLength com.example.android.camera2basic:arrowShaftLength}</code></td><td></td></tr> * <tr><td><code>{@link #DrawerArrowToggle_barLength com.example.android.camera2basic:barLength}</code></td><td></td></tr> * <tr><td><code>{@link #DrawerArrowToggle_color com.example.android.camera2basic:color}</code></td><td></td></tr> * <tr><td><code>{@link #DrawerArrowToggle_drawableSize com.example.android.camera2basic:drawableSize}</code></td><td></td></tr> * <tr><td><code>{@link #DrawerArrowToggle_gapBetweenBars com.example.android.camera2basic:gapBetweenBars}</code></td><td></td></tr> * <tr><td><code>{@link #DrawerArrowToggle_spinBars com.example.android.camera2basic:spinBars}</code></td><td></td></tr> * <tr><td><code>{@link #DrawerArrowToggle_thickness com.example.android.camera2basic: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={ 0x7f020028, 0x7f020029, 0x7f020030, 0x7f020049, 0x7f020069, 0x7f020072, 0x7f0200af, 0x7f0200cb }; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#arrowHeadLength} * attribute's value can be found in the {@link #DrawerArrowToggle} 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:arrowHeadLength */ public static final int DrawerArrowToggle_arrowHeadLength=0; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#arrowShaftLength} * attribute's value can be found in the {@link #DrawerArrowToggle} 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:arrowShaftLength */ public static final int DrawerArrowToggle_arrowShaftLength=1; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#barLength} * attribute's value can be found in the {@link #DrawerArrowToggle} 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:barLength */ public static final int DrawerArrowToggle_barLength=2; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#color} * attribute's value can be found in the {@link #DrawerArrowToggle} array. * * <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.example.android.camera2basic:color */ public static final int DrawerArrowToggle_color=3; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#drawableSize} * attribute's value can be found in the {@link #DrawerArrowToggle} 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:drawableSize */ public static final int DrawerArrowToggle_drawableSize=4; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#gapBetweenBars} * attribute's value can be found in the {@link #DrawerArrowToggle} 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:gapBetweenBars */ public static final int DrawerArrowToggle_gapBetweenBars=5; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#spinBars} * attribute's value can be found in the {@link #DrawerArrowToggle} array. * * <p>May be a boolean value, such as "<code>true</code>" or * "<code>false</code>". * * @attr name com.example.android.camera2basic:spinBars */ public static final int DrawerArrowToggle_spinBars=6; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#thickness} * attribute's value can be found in the {@link #DrawerArrowToggle} 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:thickness */ public static final int DrawerArrowToggle_thickness=7; /** * 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_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_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_weightSum android:weightSum}</code></td><td></td></tr> * <tr><td><code>{@link #LinearLayoutCompat_divider com.example.android.camera2basic:divider}</code></td><td></td></tr> * <tr><td><code>{@link #LinearLayoutCompat_dividerPadding com.example.android.camera2basic:dividerPadding}</code></td><td></td></tr> * <tr><td><code>{@link #LinearLayoutCompat_measureWithLargestChild com.example.android.camera2basic:measureWithLargestChild}</code></td><td></td></tr> * <tr><td><code>{@link #LinearLayoutCompat_showDividers com.example.android.camera2basic:showDividers}</code></td><td></td></tr> * </table> * @see #LinearLayoutCompat_android_gravity * @see #LinearLayoutCompat_android_orientation * @see #LinearLayoutCompat_android_baselineAligned * @see #LinearLayoutCompat_android_baselineAlignedChildIndex * @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, 0x7f020065, 0x7f020067, 0x7f02008e, 0x7f0200ac }; /** * <p>This symbol is the offset where the {@link android.R.attr#gravity} * 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>end</td><td>800005</td><td></td></tr> * <tr><td>start</td><td>800003</td><td></td></tr> * <tr><td>bottom</td><td>50</td><td></td></tr> * <tr><td>center</td><td>11</td><td></td></tr> * <tr><td>center_horizontal</td><td>1</td><td></td></tr> * <tr><td>center_vertical</td><td>10</td><td></td></tr> * <tr><td>clip_horizontal</td><td>8</td><td></td></tr> * <tr><td>clip_vertical</td><td>80</td><td></td></tr> * <tr><td>fill</td><td>77</td><td></td></tr> * <tr><td>fill_horizontal</td><td>7</td><td></td></tr> * <tr><td>fill_vertical</td><td>70</td><td></td></tr> * <tr><td>left</td><td>3</td><td></td></tr> * <tr><td>right</td><td>5</td><td></td></tr> * <tr><td>top</td><td>30</td><td></td></tr> * </table> * * @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. * * <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>horizontal</td><td>0</td><td></td></tr> * <tr><td>vertical</td><td>1</td><td></td></tr> * </table> * * @attr name android:orientation */ public static final int LinearLayoutCompat_android_orientation=1; /** * <p>This symbol is the offset where the {@link android.R.attr#baselineAligned} * attribute's value can be found in the {@link #LinearLayoutCompat} array. * * <p>May be a boolean value, such as "<code>true</code>" or * "<code>false</code>". * * @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. * * <p>May be an integer value, such as "<code>100</code>". * * @attr name android:baselineAlignedChildIndex */ public static final int LinearLayoutCompat_android_baselineAlignedChildIndex=3; /** * <p>This symbol is the offset where the {@link android.R.attr#weightSum} * attribute's value can be found in the {@link #LinearLayoutCompat} array. * * <p>May be a floating point value, such as "<code>1.2</code>". * * @attr name android:weightSum */ public static final int LinearLayoutCompat_android_weightSum=4; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#divider} * attribute's value can be found in the {@link #LinearLayoutCompat} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:divider */ public static final int LinearLayoutCompat_divider=5; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#dividerPadding} * attribute's value can be found in the {@link #LinearLayoutCompat} 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:dividerPadding */ public static final int LinearLayoutCompat_dividerPadding=6; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#measureWithLargestChild} * attribute's value can be found in the {@link #LinearLayoutCompat} array. * * <p>May be a boolean value, such as "<code>true</code>" or * "<code>false</code>". * * @attr name com.example.android.camera2basic:measureWithLargestChild */ public static final int LinearLayoutCompat_measureWithLargestChild=7; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.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>beginning</td><td>1</td><td></td></tr> * <tr><td>end</td><td>4</td><td></td></tr> * <tr><td>middle</td><td>2</td><td></td></tr> * <tr><td>none</td><td>0</td><td></td></tr> * </table> * * @attr name com.example.android.camera2basic:showDividers */ public static final int LinearLayoutCompat_showDividers=8; /** * 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_width android:layout_width}</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> * </table> * @see #LinearLayoutCompat_Layout_android_layout_gravity * @see #LinearLayoutCompat_Layout_android_layout_width * @see #LinearLayoutCompat_Layout_android_layout_height * @see #LinearLayoutCompat_Layout_android_layout_weight */ 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. * * <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>end</td><td>800005</td><td></td></tr> * <tr><td>start</td><td>800003</td><td></td></tr> * <tr><td>bottom</td><td>50</td><td></td></tr> * <tr><td>center</td><td>11</td><td></td></tr> * <tr><td>center_horizontal</td><td>1</td><td></td></tr> * <tr><td>center_vertical</td><td>10</td><td></td></tr> * <tr><td>clip_horizontal</td><td>8</td><td></td></tr> * <tr><td>clip_vertical</td><td>80</td><td></td></tr> * <tr><td>fill</td><td>77</td><td></td></tr> * <tr><td>fill_horizontal</td><td>7</td><td></td></tr> * <tr><td>fill_vertical</td><td>70</td><td></td></tr> * <tr><td>left</td><td>3</td><td></td></tr> * <tr><td>right</td><td>5</td><td></td></tr> * <tr><td>top</td><td>30</td><td></td></tr> * </table> * * @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_width} * attribute's value can be found in the {@link #LinearLayoutCompat_Layout} 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), and * mm (millimeters). * <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>wrap_content</td><td>fffffffe</td><td></td></tr> * <tr><td>fill_parent</td><td>ffffffff</td><td></td></tr> * <tr><td>match_parent</td><td>ffffffff</td><td></td></tr> * </table> * * @attr name android:layout_width */ public static final int LinearLayoutCompat_Layout_android_layout_width=1; /** * <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. * * <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), and * mm (millimeters). * <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>wrap_content</td><td>fffffffe</td><td></td></tr> * <tr><td>fill_parent</td><td>ffffffff</td><td></td></tr> * <tr><td>match_parent</td><td>ffffffff</td><td></td></tr> * </table> * * @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. * * <p>May be a floating point value, such as "<code>1.2</code>". * * @attr name android:layout_weight */ public static final int LinearLayoutCompat_Layout_android_layout_weight=3; /** * 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. * * <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), and * mm (millimeters). * * @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. * * <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), and * mm (millimeters). * * @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_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_visible android:visible}</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_checkableBehavior android:checkableBehavior}</code></td><td></td></tr> * </table> * @see #MenuGroup_android_enabled * @see #MenuGroup_android_id * @see #MenuGroup_android_visible * @see #MenuGroup_android_menuCategory * @see #MenuGroup_android_orderInCategory * @see #MenuGroup_android_checkableBehavior */ public static final int[] MenuGroup={ 0x0101000e, 0x010100d0, 0x01010194, 0x010101de, 0x010101df, 0x010101e0 }; /** * <p>This symbol is the offset where the {@link android.R.attr#enabled} * attribute's value can be found in the {@link #MenuGroup} array. * * <p>May be a boolean value, such as "<code>true</code>" or * "<code>false</code>". * * @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. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name android:id */ public static final int MenuGroup_android_id=1; /** * <p>This symbol is the offset where the {@link android.R.attr#visible} * attribute's value can be found in the {@link #MenuGroup} array. * * <p>May be a boolean value, such as "<code>true</code>" or * "<code>false</code>". * * @attr name android:visible */ public static final int MenuGroup_android_visible=2; /** * <p>This symbol is the offset where the {@link android.R.attr#menuCategory} * attribute's value can be found in the {@link #MenuGroup} 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>alternative</td><td>40000</td><td></td></tr> * <tr><td>container</td><td>10000</td><td></td></tr> * <tr><td>secondary</td><td>30000</td><td></td></tr> * <tr><td>system</td><td>20000</td><td></td></tr> * </table> * * @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. * * <p>May be an integer value, such as "<code>100</code>". * * @attr name android:orderInCategory */ public static final int MenuGroup_android_orderInCategory=4; /** * <p>This symbol is the offset where the {@link android.R.attr#checkableBehavior} * attribute's value can be found in the {@link #MenuGroup} 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>none</td><td>0</td><td></td></tr> * <tr><td>all</td><td>1</td><td></td></tr> * <tr><td>single</td><td>2</td><td></td></tr> * </table> * * @attr name android:checkableBehavior */ public static final int MenuGroup_android_checkableBehavior=5; /** * 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_android_icon android:icon}</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_id android:id}</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_visible android:visible}</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_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_alphabeticShortcut android:alphabeticShortcut}</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_checkable android:checkable}</code></td><td></td></tr> * <tr><td><code>{@link #MenuItem_android_onClick android:onClick}</code></td><td></td></tr> * <tr><td><code>{@link #MenuItem_actionLayout com.example.android.camera2basic:actionLayout}</code></td><td></td></tr> * <tr><td><code>{@link #MenuItem_actionProviderClass com.example.android.camera2basic:actionProviderClass}</code></td><td></td></tr> * <tr><td><code>{@link #MenuItem_actionViewClass com.example.android.camera2basic:actionViewClass}</code></td><td></td></tr> * <tr><td><code>{@link #MenuItem_showAsAction com.example.android.camera2basic:showAsAction}</code></td><td></td></tr> * </table> * @see #MenuItem_android_icon * @see #MenuItem_android_enabled * @see #MenuItem_android_id * @see #MenuItem_android_checked * @see #MenuItem_android_visible * @see #MenuItem_android_menuCategory * @see #MenuItem_android_orderInCategory * @see #MenuItem_android_title * @see #MenuItem_android_titleCondensed * @see #MenuItem_android_alphabeticShortcut * @see #MenuItem_android_numericShortcut * @see #MenuItem_android_checkable * @see #MenuItem_android_onClick * @see #MenuItem_actionLayout * @see #MenuItem_actionProviderClass * @see #MenuItem_actionViewClass * @see #MenuItem_showAsAction */ public static final int[] MenuItem={ 0x01010002, 0x0101000e, 0x010100d0, 0x01010106, 0x01010194, 0x010101de, 0x010101df, 0x010101e1, 0x010101e2, 0x010101e3, 0x010101e4, 0x010101e5, 0x0101026f, 0x7f02000d, 0x7f02001f, 0x7f020020, 0x7f0200ab }; /** * <p>This symbol is the offset where the {@link android.R.attr#icon} * attribute's value can be found in the {@link #MenuItem} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name android:icon */ public static final int MenuItem_android_icon=0; /** * <p>This symbol is the offset where the {@link android.R.attr#enabled} * attribute's value can be found in the {@link #MenuItem} array. * * <p>May be a boolean value, such as "<code>true</code>" or * "<code>false</code>". * * @attr name android:enabled */ public static final int MenuItem_android_enabled=1; /** * <p>This symbol is the offset where the {@link android.R.attr#id} * attribute's value can be found in the {@link #MenuItem} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name android:id */ public static final int MenuItem_android_id=2; /** * <p>This symbol is the offset where the {@link android.R.attr#checked} * attribute's value can be found in the {@link #MenuItem} array. * * <p>May be a boolean value, such as "<code>true</code>" or * "<code>false</code>". * * @attr name android:checked */ public static final int MenuItem_android_checked=3; /** * <p>This symbol is the offset where the {@link android.R.attr#visible} * attribute's value can be found in the {@link #MenuItem} array. * * <p>May be a boolean value, such as "<code>true</code>" or * "<code>false</code>". * * @attr name android:visible */ public static final int MenuItem_android_visible=4; /** * <p>This symbol is the offset where the {@link android.R.attr#menuCategory} * attribute's value can be found in the {@link #MenuItem} 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>alternative</td><td>40000</td><td></td></tr> * <tr><td>container</td><td>10000</td><td></td></tr> * <tr><td>secondary</td><td>30000</td><td></td></tr> * <tr><td>system</td><td>20000</td><td></td></tr> * </table> * * @attr name android:menuCategory */ public static final int MenuItem_android_menuCategory=5; /** * <p>This symbol is the offset where the {@link android.R.attr#orderInCategory} * attribute's value can be found in the {@link #MenuItem} array. * * <p>May be an integer value, such as "<code>100</code>". * * @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. * * <p>May be a string value, using '\\;' to escape characters such as * '\\n' or '\\uxxxx' for a unicode character; * * @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. * * <p>May be a string value, using '\\;' to escape characters such as * '\\n' or '\\uxxxx' for a unicode character; * * @attr name android:titleCondensed */ public static final int MenuItem_android_titleCondensed=8; /** * <p>This symbol is the offset where the {@link android.R.attr#alphabeticShortcut} * attribute's value can be found in the {@link #MenuItem} array. * * <p>May be a string value, using '\\;' to escape characters such as * '\\n' or '\\uxxxx' for a unicode character; * * @attr name android:alphabeticShortcut */ public static final int MenuItem_android_alphabeticShortcut=9; /** * <p>This symbol is the offset where the {@link android.R.attr#numericShortcut} * attribute's value can be found in the {@link #MenuItem} array. * * <p>May be a string value, using '\\;' to escape characters such as * '\\n' or '\\uxxxx' for a unicode character; * * @attr name android:numericShortcut */ public static final int MenuItem_android_numericShortcut=10; /** * <p>This symbol is the offset where the {@link android.R.attr#checkable} * attribute's value can be found in the {@link #MenuItem} array. * * <p>May be a boolean value, such as "<code>true</code>" or * "<code>false</code>". * * @attr name android:checkable */ public static final int MenuItem_android_checkable=11; /** * <p>This symbol is the offset where the {@link android.R.attr#onClick} * attribute's value can be found in the {@link #MenuItem} array. * * <p>May be a string value, using '\\;' to escape characters such as * '\\n' or '\\uxxxx' for a unicode character; * * @attr name android:onClick */ public static final int MenuItem_android_onClick=12; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#actionLayout} * attribute's value can be found in the {@link #MenuItem} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:actionLayout */ public static final int MenuItem_actionLayout=13; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#actionProviderClass} * attribute's value can be found in the {@link #MenuItem} array. * * <p>May be a string value, using '\\;' to escape characters such as * '\\n' or '\\uxxxx' for a unicode character; * * @attr name com.example.android.camera2basic:actionProviderClass */ public static final int MenuItem_actionProviderClass=14; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#actionViewClass} * attribute's value can be found in the {@link #MenuItem} array. * * <p>May be a string value, using '\\;' to escape characters such as * '\\n' or '\\uxxxx' for a unicode character; * * @attr name com.example.android.camera2basic:actionViewClass */ public static final int MenuItem_actionViewClass=15; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.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>always</td><td>2</td><td></td></tr> * <tr><td>collapseActionView</td><td>8</td><td></td></tr> * <tr><td>ifRoom</td><td>1</td><td></td></tr> * <tr><td>never</td><td>0</td><td></td></tr> * <tr><td>withText</td><td>4</td><td></td></tr> * </table> * * @attr name com.example.android.camera2basic:showAsAction */ public static final int MenuItem_showAsAction=16; /** * 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_windowAnimationStyle android:windowAnimationStyle}</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_horizontalDivider android:horizontalDivider}</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_headerBackground android:headerBackground}</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_preserveIconSpacing com.example.android.camera2basic:preserveIconSpacing}</code></td><td></td></tr> * <tr><td><code>{@link #MenuView_subMenuArrow com.example.android.camera2basic:subMenuArrow}</code></td><td></td></tr> * </table> * @see #MenuView_android_windowAnimationStyle * @see #MenuView_android_itemTextAppearance * @see #MenuView_android_horizontalDivider * @see #MenuView_android_verticalDivider * @see #MenuView_android_headerBackground * @see #MenuView_android_itemBackground * @see #MenuView_android_itemIconDisabledAlpha * @see #MenuView_preserveIconSpacing * @see #MenuView_subMenuArrow */ public static final int[] MenuView={ 0x010100ae, 0x0101012c, 0x0101012d, 0x0101012e, 0x0101012f, 0x01010130, 0x01010131, 0x7f02009c, 0x7f0200b5 }; /** * <p>This symbol is the offset where the {@link android.R.attr#windowAnimationStyle} * attribute's value can be found in the {@link #MenuView} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name android:windowAnimationStyle */ public static final int MenuView_android_windowAnimationStyle=0; /** * <p>This symbol is the offset where the {@link android.R.attr#itemTextAppearance} * attribute's value can be found in the {@link #MenuView} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name android:itemTextAppearance */ public static final int MenuView_android_itemTextAppearance=1; /** * <p>This symbol is the offset where the {@link android.R.attr#horizontalDivider} * attribute's value can be found in the {@link #MenuView} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name android:horizontalDivider */ public static final int MenuView_android_horizontalDivider=2; /** * <p>This symbol is the offset where the {@link android.R.attr#verticalDivider} * attribute's value can be found in the {@link #MenuView} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name android:verticalDivider */ public static final int MenuView_android_verticalDivider=3; /** * <p>This symbol is the offset where the {@link android.R.attr#headerBackground} * attribute's value can be found in the {@link #MenuView} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or * "<code>#<i>aarrggbb</i></code>". * * @attr name android:headerBackground */ public static final int MenuView_android_headerBackground=4; /** * <p>This symbol is the offset where the {@link android.R.attr#itemBackground} * attribute's value can be found in the {@link #MenuView} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or * "<code>#<i>aarrggbb</i></code>". * * @attr name android: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. * * <p>May be a floating point value, such as "<code>1.2</code>". * * @attr name android:itemIconDisabledAlpha */ public static final int MenuView_android_itemIconDisabledAlpha=6; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#preserveIconSpacing} * attribute's value can be found in the {@link #MenuView} array. * * <p>May be a boolean value, such as "<code>true</code>" or * "<code>false</code>". * * @attr name com.example.android.camera2basic:preserveIconSpacing */ public static final int MenuView_preserveIconSpacing=7; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#subMenuArrow} * attribute's value can be found in the {@link #MenuView} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:subMenuArrow */ public static final int MenuView_subMenuArrow=8; /** * Attributes that can be used with a PopupWindow. * <p>Includes the following attributes:</p> * <table> * <colgroup align="left" /> * <colgroup align="left" /> * <tr><th>Attribute</th><th>Description</th></tr> * <tr><td><code>{@link #PopupWindow_android_popupBackground android:popupBackground}</code></td><td></td></tr> * <tr><td><code>{@link #PopupWindow_android_popupAnimationStyle android:popupAnimationStyle}</code></td><td></td></tr> * <tr><td><code>{@link #PopupWindow_overlapAnchor com.example.android.camera2basic:overlapAnchor}</code></td><td></td></tr> * </table> * @see #PopupWindow_android_popupBackground * @see #PopupWindow_android_popupAnimationStyle * @see #PopupWindow_overlapAnchor */ public static final int[] PopupWindow={ 0x01010176, 0x010102c9, 0x7f020093 }; /** * <p>This symbol is the offset where the {@link android.R.attr#popupBackground} * attribute's value can be found in the {@link #PopupWindow} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or * "<code>#<i>aarrggbb</i></code>". * * @attr name android:popupBackground */ public static final int PopupWindow_android_popupBackground=0; /** * <p>This symbol is the offset where the {@link android.R.attr#popupAnimationStyle} * attribute's value can be found in the {@link #PopupWindow} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name android:popupAnimationStyle */ public static final int PopupWindow_android_popupAnimationStyle=1; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#overlapAnchor} * attribute's value can be found in the {@link #PopupWindow} array. * * <p>May be a boolean value, such as "<code>true</code>" or * "<code>false</code>". * * @attr name com.example.android.camera2basic: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.example.android.camera2basic:state_above_anchor}</code></td><td></td></tr> * </table> * @see #PopupWindowBackgroundState_state_above_anchor */ public static final int[] PopupWindowBackgroundState={ 0x7f0200b4 }; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#state_above_anchor} * attribute's value can be found in the {@link #PopupWindowBackgroundState} array. * * <p>May be a boolean value, such as "<code>true</code>" or * "<code>false</code>". * * @attr name com.example.android.camera2basic:state_above_anchor */ public static final int PopupWindowBackgroundState_state_above_anchor=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_maxWidth android:maxWidth}</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_imeOptions android:imeOptions}</code></td><td></td></tr> * <tr><td><code>{@link #SearchView_closeIcon com.example.android.camera2basic:closeIcon}</code></td><td></td></tr> * <tr><td><code>{@link #SearchView_commitIcon com.example.android.camera2basic:commitIcon}</code></td><td></td></tr> * <tr><td><code>{@link #SearchView_defaultQueryHint com.example.android.camera2basic:defaultQueryHint}</code></td><td></td></tr> * <tr><td><code>{@link #SearchView_goIcon com.example.android.camera2basic:goIcon}</code></td><td></td></tr> * <tr><td><code>{@link #SearchView_iconifiedByDefault com.example.android.camera2basic:iconifiedByDefault}</code></td><td></td></tr> * <tr><td><code>{@link #SearchView_layout com.example.android.camera2basic:layout}</code></td><td></td></tr> * <tr><td><code>{@link #SearchView_queryBackground com.example.android.camera2basic:queryBackground}</code></td><td></td></tr> * <tr><td><code>{@link #SearchView_queryHint com.example.android.camera2basic:queryHint}</code></td><td></td></tr> * <tr><td><code>{@link #SearchView_searchHintIcon com.example.android.camera2basic:searchHintIcon}</code></td><td></td></tr> * <tr><td><code>{@link #SearchView_searchIcon com.example.android.camera2basic:searchIcon}</code></td><td></td></tr> * <tr><td><code>{@link #SearchView_submitBackground com.example.android.camera2basic:submitBackground}</code></td><td></td></tr> * <tr><td><code>{@link #SearchView_suggestionRowLayout com.example.android.camera2basic:suggestionRowLayout}</code></td><td></td></tr> * <tr><td><code>{@link #SearchView_voiceIcon com.example.android.camera2basic:voiceIcon}</code></td><td></td></tr> * </table> * @see #SearchView_android_focusable * @see #SearchView_android_maxWidth * @see #SearchView_android_inputType * @see #SearchView_android_imeOptions * @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, 0x7f020045, 0x7f020053, 0x7f020061, 0x7f020073, 0x7f020079, 0x7f02007f, 0x7f02009f, 0x7f0200a0, 0x7f0200a5, 0x7f0200a6, 0x7f0200b6, 0x7f0200bb, 0x7f0200e1 }; /** * <p>This symbol is the offset where the {@link android.R.attr#focusable} * attribute's value can be found in the {@link #SearchView} array. * * <p>May be a boolean value, such as "<code>true</code>" or * "<code>false</code>". * * @attr name android:focusable */ public static final int SearchView_android_focusable=0; /** * <p>This symbol is the offset where the {@link android.R.attr#maxWidth} * attribute's value can be found in the {@link #SearchView} 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), and * mm (millimeters). * * @attr name android:maxWidth */ public static final int SearchView_android_maxWidth=1; /** * <p>This symbol is the offset where the {@link android.R.attr#inputType} * attribute's value can be found in the {@link #SearchView} 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>none</td><td>0</td><td></td></tr> * <tr><td>date</td><td>14</td><td></td></tr> * <tr><td>datetime</td><td>4</td><td></td></tr> * <tr><td>number</td><td>2</td><td></td></tr> * <tr><td>numberDecimal</td><td>2002</td><td></td></tr> * <tr><td>numberPassword</td><td>12</td><td></td></tr> * <tr><td>numberSigned</td><td>1002</td><td></td></tr> * <tr><td>phone</td><td>3</td><td></td></tr> * <tr><td>text</td><td>1</td><td></td></tr> * <tr><td>textAutoComplete</td><td>10001</td><td></td></tr> * <tr><td>textAutoCorrect</td><td>8001</td><td></td></tr> * <tr><td>textCapCharacters</td><td>1001</td><td></td></tr> * <tr><td>textCapSentences</td><td>4001</td><td></td></tr> * <tr><td>textCapWords</td><td>2001</td><td></td></tr> * <tr><td>textEmailAddress</td><td>21</td><td></td></tr> * <tr><td>textEmailSubject</td><td>31</td><td></td></tr> * <tr><td>textFilter</td><td>b1</td><td></td></tr> * <tr><td>textImeMultiLine</td><td>40001</td><td></td></tr> * <tr><td>textLongMessage</td><td>51</td><td></td></tr> * <tr><td>textMultiLine</td><td>20001</td><td></td></tr> * <tr><td>textNoSuggestions</td><td>80001</td><td></td></tr> * <tr><td>textPassword</td><td>81</td><td></td></tr> * <tr><td>textPersonName</td><td>61</td><td></td></tr> * <tr><td>textPhonetic</td><td>c1</td><td></td></tr> * <tr><td>textPostalAddress</td><td>71</td><td></td></tr> * <tr><td>textShortMessage</td><td>41</td><td></td></tr> * <tr><td>textUri</td><td>11</td><td></td></tr> * <tr><td>textVisiblePassword</td><td>91</td><td></td></tr> * <tr><td>textWebEditText</td><td>a1</td><td></td></tr> * <tr><td>textWebEmailAddress</td><td>d1</td><td></td></tr> * <tr><td>textWebPassword</td><td>e1</td><td></td></tr> * <tr><td>time</td><td>24</td><td></td></tr> * </table> * * @attr name android:inputType */ public static final int SearchView_android_inputType=2; /** * <p>This symbol is the offset where the {@link android.R.attr#imeOptions} * attribute's value can be found in the {@link #SearchView} 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>normal</td><td>0</td><td></td></tr> * <tr><td>actionDone</td><td>6</td><td></td></tr> * <tr><td>actionGo</td><td>2</td><td></td></tr> * <tr><td>actionNext</td><td>5</td><td></td></tr> * <tr><td>actionNone</td><td>1</td><td></td></tr> * <tr><td>actionPrevious</td><td>7</td><td></td></tr> * <tr><td>actionSearch</td><td>3</td><td></td></tr> * <tr><td>actionSend</td><td>4</td><td></td></tr> * <tr><td>actionUnspecified</td><td>0</td><td></td></tr> * <tr><td>flagForceAscii</td><td>80000000</td><td></td></tr> * <tr><td>flagNavigateNext</td><td>8000000</td><td></td></tr> * <tr><td>flagNavigatePrevious</td><td>4000000</td><td></td></tr> * <tr><td>flagNoAccessoryAction</td><td>20000000</td><td></td></tr> * <tr><td>flagNoEnterAction</td><td>40000000</td><td></td></tr> * <tr><td>flagNoExtractUi</td><td>10000000</td><td></td></tr> * <tr><td>flagNoFullscreen</td><td>2000000</td><td></td></tr> * </table> * * @attr name android:imeOptions */ public static final int SearchView_android_imeOptions=3; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#closeIcon} * attribute's value can be found in the {@link #SearchView} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:closeIcon */ public static final int SearchView_closeIcon=4; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#commitIcon} * attribute's value can be found in the {@link #SearchView} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:commitIcon */ public static final int SearchView_commitIcon=5; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#defaultQueryHint} * attribute's value can be found in the {@link #SearchView} array. * * <p>May be a string value, using '\\;' to escape characters such as * '\\n' or '\\uxxxx' for a unicode character; * * @attr name com.example.android.camera2basic:defaultQueryHint */ public static final int SearchView_defaultQueryHint=6; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#goIcon} * attribute's value can be found in the {@link #SearchView} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:goIcon */ public static final int SearchView_goIcon=7; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#iconifiedByDefault} * attribute's value can be found in the {@link #SearchView} array. * * <p>May be a boolean value, such as "<code>true</code>" or * "<code>false</code>". * * @attr name com.example.android.camera2basic:iconifiedByDefault */ public static final int SearchView_iconifiedByDefault=8; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#layout} * attribute's value can be found in the {@link #SearchView} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:layout */ public static final int SearchView_layout=9; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#queryBackground} * attribute's value can be found in the {@link #SearchView} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:queryBackground */ public static final int SearchView_queryBackground=10; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#queryHint} * attribute's value can be found in the {@link #SearchView} array. * * <p>May be a string value, using '\\;' to escape characters such as * '\\n' or '\\uxxxx' for a unicode character; * * @attr name com.example.android.camera2basic:queryHint */ public static final int SearchView_queryHint=11; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#searchHintIcon} * attribute's value can be found in the {@link #SearchView} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:searchHintIcon */ public static final int SearchView_searchHintIcon=12; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#searchIcon} * attribute's value can be found in the {@link #SearchView} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:searchIcon */ public static final int SearchView_searchIcon=13; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#submitBackground} * attribute's value can be found in the {@link #SearchView} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:submitBackground */ public static final int SearchView_submitBackground=14; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#suggestionRowLayout} * attribute's value can be found in the {@link #SearchView} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:suggestionRowLayout */ public static final int SearchView_suggestionRowLayout=15; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#voiceIcon} * attribute's value can be found in the {@link #SearchView} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:voiceIcon */ public static final int SearchView_voiceIcon=16; /** * 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_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_android_dropDownWidth android:dropDownWidth}</code></td><td></td></tr> * <tr><td><code>{@link #Spinner_popupTheme com.example.android.camera2basic:popupTheme}</code></td><td></td></tr> * </table> * @see #Spinner_android_entries * @see #Spinner_android_popupBackground * @see #Spinner_android_prompt * @see #Spinner_android_dropDownWidth * @see #Spinner_popupTheme */ public static final int[] Spinner={ 0x010100b2, 0x01010176, 0x0101017b, 0x01010262, 0x7f02009a }; /** * <p>This symbol is the offset where the {@link android.R.attr#entries} * attribute's value can be found in the {@link #Spinner} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @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. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or * "<code>#<i>aarrggbb</i></code>". * * @attr name android: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. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name android:prompt */ public static final int Spinner_android_prompt=2; /** * <p>This symbol is the offset where the {@link android.R.attr#dropDownWidth} * attribute's value can be found in the {@link #Spinner} 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), and * mm (millimeters). * <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>wrap_content</td><td>fffffffe</td><td></td></tr> * <tr><td>fill_parent</td><td>ffffffff</td><td></td></tr> * <tr><td>match_parent</td><td>ffffffff</td><td></td></tr> * </table> * * @attr name android:dropDownWidth */ public static final int Spinner_android_dropDownWidth=3; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#popupTheme} * attribute's value can be found in the {@link #Spinner} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic: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_textOn android:textOn}</code></td><td></td></tr> * <tr><td><code>{@link #SwitchCompat_android_textOff android:textOff}</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.example.android.camera2basic:showText}</code></td><td></td></tr> * <tr><td><code>{@link #SwitchCompat_splitTrack com.example.android.camera2basic:splitTrack}</code></td><td></td></tr> * <tr><td><code>{@link #SwitchCompat_switchMinWidth com.example.android.camera2basic:switchMinWidth}</code></td><td></td></tr> * <tr><td><code>{@link #SwitchCompat_switchPadding com.example.android.camera2basic:switchPadding}</code></td><td></td></tr> * <tr><td><code>{@link #SwitchCompat_switchTextAppearance com.example.android.camera2basic:switchTextAppearance}</code></td><td></td></tr> * <tr><td><code>{@link #SwitchCompat_thumbTextPadding com.example.android.camera2basic:thumbTextPadding}</code></td><td></td></tr> * <tr><td><code>{@link #SwitchCompat_thumbTint com.example.android.camera2basic:thumbTint}</code></td><td></td></tr> * <tr><td><code>{@link #SwitchCompat_thumbTintMode com.example.android.camera2basic:thumbTintMode}</code></td><td></td></tr> * <tr><td><code>{@link #SwitchCompat_track com.example.android.camera2basic:track}</code></td><td></td></tr> * <tr><td><code>{@link #SwitchCompat_trackTint com.example.android.camera2basic:trackTint}</code></td><td></td></tr> * <tr><td><code>{@link #SwitchCompat_trackTintMode com.example.android.camera2basic:trackTintMode}</code></td><td></td></tr> * </table> * @see #SwitchCompat_android_textOn * @see #SwitchCompat_android_textOff * @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, 0x7f0200ad, 0x7f0200b2, 0x7f0200bc, 0x7f0200bd, 0x7f0200bf, 0x7f0200cc, 0x7f0200cd, 0x7f0200ce, 0x7f0200de, 0x7f0200df, 0x7f0200e0 }; /** * <p>This symbol is the offset where the {@link android.R.attr#textOn} * attribute's value can be found in the {@link #SwitchCompat} array. * * <p>May be a string value, using '\\;' to escape characters such as * '\\n' or '\\uxxxx' for a unicode character; * * @attr name android:textOn */ public static final int SwitchCompat_android_textOn=0; /** * <p>This symbol is the offset where the {@link android.R.attr#textOff} * attribute's value can be found in the {@link #SwitchCompat} array. * * <p>May be a string value, using '\\;' to escape characters such as * '\\n' or '\\uxxxx' for a unicode character; * * @attr name android:textOff */ public static final int SwitchCompat_android_textOff=1; /** * <p>This symbol is the offset where the {@link android.R.attr#thumb} * attribute's value can be found in the {@link #SwitchCompat} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name android:thumb */ public static final int SwitchCompat_android_thumb=2; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#showText} * attribute's value can be found in the {@link #SwitchCompat} array. * * <p>May be a boolean value, such as "<code>true</code>" or * "<code>false</code>". * * @attr name com.example.android.camera2basic:showText */ public static final int SwitchCompat_showText=3; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#splitTrack} * attribute's value can be found in the {@link #SwitchCompat} array. * * <p>May be a boolean value, such as "<code>true</code>" or * "<code>false</code>". * * @attr name com.example.android.camera2basic:splitTrack */ public static final int SwitchCompat_splitTrack=4; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#switchMinWidth} * attribute's value can be found in the {@link #SwitchCompat} 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:switchMinWidth */ public static final int SwitchCompat_switchMinWidth=5; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#switchPadding} * attribute's value can be found in the {@link #SwitchCompat} 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:switchPadding */ public static final int SwitchCompat_switchPadding=6; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#switchTextAppearance} * attribute's value can be found in the {@link #SwitchCompat} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:switchTextAppearance */ public static final int SwitchCompat_switchTextAppearance=7; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#thumbTextPadding} * attribute's value can be found in the {@link #SwitchCompat} 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:thumbTextPadding */ public static final int SwitchCompat_thumbTextPadding=8; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#thumbTint} * attribute's value can be found in the {@link #SwitchCompat} array. * * <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.example.android.camera2basic:thumbTint */ public static final int SwitchCompat_thumbTint=9; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.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>add</td><td>10</td><td></td></tr> * <tr><td>multiply</td><td>e</td><td></td></tr> * <tr><td>screen</td><td>f</td><td></td></tr> * <tr><td>src_atop</td><td>9</td><td></td></tr> * <tr><td>src_in</td><td>5</td><td></td></tr> * <tr><td>src_over</td><td>3</td><td></td></tr> * </table> * * @attr name com.example.android.camera2basic:thumbTintMode */ public static final int SwitchCompat_thumbTintMode=10; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#track} * attribute's value can be found in the {@link #SwitchCompat} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:track */ public static final int SwitchCompat_track=11; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#trackTint} * attribute's value can be found in the {@link #SwitchCompat} array. * * <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.example.android.camera2basic:trackTint */ public static final int SwitchCompat_trackTint=12; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.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>add</td><td>10</td><td></td></tr> * <tr><td>multiply</td><td>e</td><td></td></tr> * <tr><td>screen</td><td>f</td><td></td></tr> * <tr><td>src_atop</td><td>9</td><td></td></tr> * <tr><td>src_in</td><td>5</td><td></td></tr> * <tr><td>src_over</td><td>3</td><td></td></tr> * </table> * * @attr name com.example.android.camera2basic:trackTintMode */ public static final int SwitchCompat_trackTintMode=13; /** * 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_textSize android:textSize}</code></td><td></td></tr> * <tr><td><code>{@link #TextAppearance_android_typeface android:typeface}</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_textColor android:textColor}</code></td><td></td></tr> * <tr><td><code>{@link #TextAppearance_android_textColorHint android:textColorHint}</code></td><td></td></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_textAllCaps com.example.android.camera2basic:textAllCaps}</code></td><td></td></tr> * </table> * @see #TextAppearance_android_textSize * @see #TextAppearance_android_typeface * @see #TextAppearance_android_textStyle * @see #TextAppearance_android_textColor * @see #TextAppearance_android_textColorHint * @see #TextAppearance_android_shadowColor * @see #TextAppearance_android_shadowDx * @see #TextAppearance_android_shadowDy * @see #TextAppearance_android_shadowRadius * @see #TextAppearance_textAllCaps */ public static final int[] TextAppearance={ 0x01010095, 0x01010096, 0x01010097, 0x01010098, 0x0101009a, 0x01010161, 0x01010162, 0x01010163, 0x01010164, 0x7f0200c0 }; /** * <p>This symbol is the offset where the {@link android.R.attr#textSize} * attribute's value can be found in the {@link #TextAppearance} 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), and * mm (millimeters). * * @attr name android:textSize */ public static final int TextAppearance_android_textSize=0; /** * <p>This symbol is the offset where the {@link android.R.attr#typeface} * attribute's value can be found in the {@link #TextAppearance} 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>monospace</td><td>3</td><td></td></tr> * <tr><td>normal</td><td>0</td><td></td></tr> * <tr><td>sans</td><td>1</td><td></td></tr> * <tr><td>serif</td><td>2</td><td></td></tr> * </table> * * @attr name android:typeface */ public static final int TextAppearance_android_typeface=1; /** * <p>This symbol is the offset where the {@link android.R.attr#textStyle} * attribute's value can be found in the {@link #TextAppearance} 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>normal</td><td>0</td><td></td></tr> * <tr><td>bold</td><td>1</td><td></td></tr> * <tr><td>italic</td><td>2</td><td></td></tr> * </table> * * @attr name android:textStyle */ public static final int TextAppearance_android_textStyle=2; /** * <p>This symbol is the offset where the {@link android.R.attr#textColor} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or * "<code>#<i>aarrggbb</i></code>". * * @attr name android:textColor */ public static final int TextAppearance_android_textColor=3; /** * <p>This symbol is the offset where the {@link android.R.attr#textColorHint} * 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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or * "<code>#<i>aarrggbb</i></code>". * * @attr name android:textColorHint */ public static final int TextAppearance_android_textColorHint=4; /** * <p>This symbol is the offset where the {@link android.R.attr#shadowColor} * attribute's value can be found in the {@link #TextAppearance} array. * * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or * "<code>#<i>aarrggbb</i></code>". * * @attr name android:shadowColor */ public static final int TextAppearance_android_shadowColor=5; /** * <p>This symbol is the offset where the {@link android.R.attr#shadowDx} * attribute's value can be found in the {@link #TextAppearance} array. * * <p>May be a floating point value, such as "<code>1.2</code>". * * @attr name android:shadowDx */ public static final int TextAppearance_android_shadowDx=6; /** * <p>This symbol is the offset where the {@link android.R.attr#shadowDy} * attribute's value can be found in the {@link #TextAppearance} array. * * <p>May be a floating point value, such as "<code>1.2</code>". * * @attr name android:shadowDy */ public static final int TextAppearance_android_shadowDy=7; /** * <p>This symbol is the offset where the {@link android.R.attr#shadowRadius} * attribute's value can be found in the {@link #TextAppearance} array. * * <p>May be a floating point value, such as "<code>1.2</code>". * * @attr name android:shadowRadius */ public static final int TextAppearance_android_shadowRadius=8; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.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 a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * <p>May be a boolean value, such as "<code>true</code>" or * "<code>false</code>". * * @attr name com.example.android.camera2basic:textAllCaps */ public static final int TextAppearance_textAllCaps=9; /** * 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.example.android.camera2basic:buttonGravity}</code></td><td></td></tr> * <tr><td><code>{@link #Toolbar_collapseContentDescription com.example.android.camera2basic:collapseContentDescription}</code></td><td></td></tr> * <tr><td><code>{@link #Toolbar_collapseIcon com.example.android.camera2basic:collapseIcon}</code></td><td></td></tr> * <tr><td><code>{@link #Toolbar_contentInsetEnd com.example.android.camera2basic:contentInsetEnd}</code></td><td></td></tr> * <tr><td><code>{@link #Toolbar_contentInsetEndWithActions com.example.android.camera2basic:contentInsetEndWithActions}</code></td><td></td></tr> * <tr><td><code>{@link #Toolbar_contentInsetLeft com.example.android.camera2basic:contentInsetLeft}</code></td><td></td></tr> * <tr><td><code>{@link #Toolbar_contentInsetRight com.example.android.camera2basic:contentInsetRight}</code></td><td></td></tr> * <tr><td><code>{@link #Toolbar_contentInsetStart com.example.android.camera2basic:contentInsetStart}</code></td><td></td></tr> * <tr><td><code>{@link #Toolbar_contentInsetStartWithNavigation com.example.android.camera2basic:contentInsetStartWithNavigation}</code></td><td></td></tr> * <tr><td><code>{@link #Toolbar_logo com.example.android.camera2basic:logo}</code></td><td></td></tr> * <tr><td><code>{@link #Toolbar_logoDescription com.example.android.camera2basic:logoDescription}</code></td><td></td></tr> * <tr><td><code>{@link #Toolbar_maxButtonHeight com.example.android.camera2basic:maxButtonHeight}</code></td><td></td></tr> * <tr><td><code>{@link #Toolbar_navigationContentDescription com.example.android.camera2basic:navigationContentDescription}</code></td><td></td></tr> * <tr><td><code>{@link #Toolbar_navigationIcon com.example.android.camera2basic:navigationIcon}</code></td><td></td></tr> * <tr><td><code>{@link #Toolbar_popupTheme com.example.android.camera2basic:popupTheme}</code></td><td></td></tr> * <tr><td><code>{@link #Toolbar_subtitle com.example.android.camera2basic:subtitle}</code></td><td></td></tr> * <tr><td><code>{@link #Toolbar_subtitleTextAppearance com.example.android.camera2basic:subtitleTextAppearance}</code></td><td></td></tr> * <tr><td><code>{@link #Toolbar_subtitleTextColor com.example.android.camera2basic:subtitleTextColor}</code></td><td></td></tr> * <tr><td><code>{@link #Toolbar_title com.example.android.camera2basic:title}</code></td><td></td></tr> * <tr><td><code>{@link #Toolbar_titleMargin com.example.android.camera2basic:titleMargin}</code></td><td></td></tr> * <tr><td><code>{@link #Toolbar_titleMarginBottom com.example.android.camera2basic:titleMarginBottom}</code></td><td></td></tr> * <tr><td><code>{@link #Toolbar_titleMarginEnd com.example.android.camera2basic:titleMarginEnd}</code></td><td></td></tr> * <tr><td><code>{@link #Toolbar_titleMarginStart com.example.android.camera2basic:titleMarginStart}</code></td><td></td></tr> * <tr><td><code>{@link #Toolbar_titleMarginTop com.example.android.camera2basic:titleMarginTop}</code></td><td></td></tr> * <tr><td><code>{@link #Toolbar_titleMargins com.example.android.camera2basic:titleMargins}</code></td><td></td></tr> * <tr><td><code>{@link #Toolbar_titleTextAppearance com.example.android.camera2basic:titleTextAppearance}</code></td><td></td></tr> * <tr><td><code>{@link #Toolbar_titleTextColor com.example.android.camera2basic: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, 0x7f020037, 0x7f020047, 0x7f020048, 0x7f020054, 0x7f020055, 0x7f020056, 0x7f020057, 0x7f020058, 0x7f020059, 0x7f02008b, 0x7f02008c, 0x7f02008d, 0x7f020090, 0x7f020091, 0x7f02009a, 0x7f0200b7, 0x7f0200b8, 0x7f0200b9, 0x7f0200d2, 0x7f0200d3, 0x7f0200d4, 0x7f0200d5, 0x7f0200d6, 0x7f0200d7, 0x7f0200d8, 0x7f0200d9, 0x7f0200da }; /** * <p>This symbol is the offset where the {@link android.R.attr#gravity} * 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>end</td><td>800005</td><td></td></tr> * <tr><td>start</td><td>800003</td><td></td></tr> * <tr><td>bottom</td><td>50</td><td></td></tr> * <tr><td>center</td><td>11</td><td></td></tr> * <tr><td>center_horizontal</td><td>1</td><td></td></tr> * <tr><td>center_vertical</td><td>10</td><td></td></tr> * <tr><td>clip_horizontal</td><td>8</td><td></td></tr> * <tr><td>clip_vertical</td><td>80</td><td></td></tr> * <tr><td>fill</td><td>77</td><td></td></tr> * <tr><td>fill_horizontal</td><td>7</td><td></td></tr> * <tr><td>fill_vertical</td><td>70</td><td></td></tr> * <tr><td>left</td><td>3</td><td></td></tr> * <tr><td>right</td><td>5</td><td></td></tr> * <tr><td>top</td><td>30</td><td></td></tr> * </table> * * @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. * * <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), and * mm (millimeters). * * @attr name android:minHeight */ public static final int Toolbar_android_minHeight=1; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.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>bottom</td><td>50</td><td></td></tr> * <tr><td>top</td><td>30</td><td></td></tr> * </table> * * @attr name com.example.android.camera2basic:buttonGravity */ public static final int Toolbar_buttonGravity=2; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#collapseContentDescription} * attribute's value can be found in the {@link #Toolbar} array. * * <p>May be a string value, using '\\;' to escape characters such as * '\\n' or '\\uxxxx' for a unicode character; * * @attr name com.example.android.camera2basic:collapseContentDescription */ public static final int Toolbar_collapseContentDescription=3; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#collapseIcon} * attribute's value can be found in the {@link #Toolbar} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:collapseIcon */ public static final int Toolbar_collapseIcon=4; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#contentInsetEnd} * attribute's value can be found in the {@link #Toolbar} 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:contentInsetEnd */ public static final int Toolbar_contentInsetEnd=5; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#contentInsetEndWithActions} * attribute's value can be found in the {@link #Toolbar} 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:contentInsetEndWithActions */ public static final int Toolbar_contentInsetEndWithActions=6; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#contentInsetLeft} * attribute's value can be found in the {@link #Toolbar} 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:contentInsetLeft */ public static final int Toolbar_contentInsetLeft=7; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#contentInsetRight} * attribute's value can be found in the {@link #Toolbar} 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:contentInsetRight */ public static final int Toolbar_contentInsetRight=8; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#contentInsetStart} * attribute's value can be found in the {@link #Toolbar} 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:contentInsetStart */ public static final int Toolbar_contentInsetStart=9; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#contentInsetStartWithNavigation} * attribute's value can be found in the {@link #Toolbar} 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:contentInsetStartWithNavigation */ public static final int Toolbar_contentInsetStartWithNavigation=10; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#logo} * attribute's value can be found in the {@link #Toolbar} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:logo */ public static final int Toolbar_logo=11; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#logoDescription} * attribute's value can be found in the {@link #Toolbar} array. * * <p>May be a string value, using '\\;' to escape characters such as * '\\n' or '\\uxxxx' for a unicode character; * * @attr name com.example.android.camera2basic:logoDescription */ public static final int Toolbar_logoDescription=12; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#maxButtonHeight} * attribute's value can be found in the {@link #Toolbar} 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:maxButtonHeight */ public static final int Toolbar_maxButtonHeight=13; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#navigationContentDescription} * attribute's value can be found in the {@link #Toolbar} array. * * <p>May be a string value, using '\\;' to escape characters such as * '\\n' or '\\uxxxx' for a unicode character; * * @attr name com.example.android.camera2basic:navigationContentDescription */ public static final int Toolbar_navigationContentDescription=14; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#navigationIcon} * attribute's value can be found in the {@link #Toolbar} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:navigationIcon */ public static final int Toolbar_navigationIcon=15; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#popupTheme} * attribute's value can be found in the {@link #Toolbar} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:popupTheme */ public static final int Toolbar_popupTheme=16; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#subtitle} * attribute's value can be found in the {@link #Toolbar} array. * * <p>May be a string value, using '\\;' to escape characters such as * '\\n' or '\\uxxxx' for a unicode character; * * @attr name com.example.android.camera2basic:subtitle */ public static final int Toolbar_subtitle=17; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#subtitleTextAppearance} * attribute's value can be found in the {@link #Toolbar} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:subtitleTextAppearance */ public static final int Toolbar_subtitleTextAppearance=18; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#subtitleTextColor} * attribute's value can be found in the {@link #Toolbar} array. * * <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.example.android.camera2basic:subtitleTextColor */ public static final int Toolbar_subtitleTextColor=19; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#title} * attribute's value can be found in the {@link #Toolbar} array. * * <p>May be a string value, using '\\;' to escape characters such as * '\\n' or '\\uxxxx' for a unicode character; * * @attr name com.example.android.camera2basic:title */ public static final int Toolbar_title=20; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#titleMargin} * attribute's value can be found in the {@link #Toolbar} 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:titleMargin */ public static final int Toolbar_titleMargin=21; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#titleMarginBottom} * attribute's value can be found in the {@link #Toolbar} 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:titleMarginBottom */ public static final int Toolbar_titleMarginBottom=22; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#titleMarginEnd} * attribute's value can be found in the {@link #Toolbar} 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:titleMarginEnd */ public static final int Toolbar_titleMarginEnd=23; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#titleMarginStart} * attribute's value can be found in the {@link #Toolbar} 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:titleMarginStart */ public static final int Toolbar_titleMarginStart=24; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#titleMarginTop} * attribute's value can be found in the {@link #Toolbar} 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:titleMarginTop */ public static final int Toolbar_titleMarginTop=25; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#titleMargins} * attribute's value can be found in the {@link #Toolbar} 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:titleMargins */ public static final int Toolbar_titleMargins=26; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#titleTextAppearance} * attribute's value can be found in the {@link #Toolbar} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic:titleTextAppearance */ public static final int Toolbar_titleTextAppearance=27; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#titleTextColor} * attribute's value can be found in the {@link #Toolbar} array. * * <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.example.android.camera2basic:titleTextColor */ public static final int Toolbar_titleTextColor=28; /** * 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_theme android:theme}</code></td><td></td></tr> * <tr><td><code>{@link #View_android_focusable android:focusable}</code></td><td></td></tr> * <tr><td><code>{@link #View_paddingEnd com.example.android.camera2basic:paddingEnd}</code></td><td></td></tr> * <tr><td><code>{@link #View_paddingStart com.example.android.camera2basic:paddingStart}</code></td><td></td></tr> * <tr><td><code>{@link #View_theme com.example.android.camera2basic:theme}</code></td><td></td></tr> * </table> * @see #View_android_theme * @see #View_android_focusable * @see #View_paddingEnd * @see #View_paddingStart * @see #View_theme */ public static final int[] View={ 0x01010000, 0x010100da, 0x7f020094, 0x7f020095, 0x7f0200ca }; /** * <p>This symbol is the offset where the {@link android.R.attr#theme} * attribute's value can be found in the {@link #View} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name android:theme */ public static final int View_android_theme=0; /** * <p>This symbol is the offset where the {@link android.R.attr#focusable} * attribute's value can be found in the {@link #View} array. * * <p>May be a boolean value, such as "<code>true</code>" or * "<code>false</code>". * * @attr name android:focusable */ public static final int View_android_focusable=1; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#paddingEnd} * attribute's value can be found in the {@link #View} 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:paddingEnd */ public static final int View_paddingEnd=2; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#paddingStart} * attribute's value can be found in the {@link #View} 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), and * mm (millimeters). * * @attr name com.example.android.camera2basic:paddingStart */ public static final int View_paddingStart=3; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#theme} * attribute's value can be found in the {@link #View} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name com.example.android.camera2basic: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.example.android.camera2basic:backgroundTint}</code></td><td></td></tr> * <tr><td><code>{@link #ViewBackgroundHelper_backgroundTintMode com.example.android.camera2basic:backgroundTintMode}</code></td><td></td></tr> * </table> * @see #ViewBackgroundHelper_android_background * @see #ViewBackgroundHelper_backgroundTint * @see #ViewBackgroundHelper_backgroundTintMode */ public static final int[] ViewBackgroundHelper={ 0x010100d4, 0x7f02002e, 0x7f02002f }; /** * <p>This symbol is the offset where the {@link android.R.attr#background} * attribute's value can be found in the {@link #ViewBackgroundHelper} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or * "<code>#<i>aarrggbb</i></code>". * * @attr name android:background */ public static final int ViewBackgroundHelper_android_background=0; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.R.attr#backgroundTint} * attribute's value can be found in the {@link #ViewBackgroundHelper} array. * * <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.example.android.camera2basic:backgroundTint */ public static final int ViewBackgroundHelper_backgroundTint=1; /** * <p>This symbol is the offset where the {@link com.example.android.camera2basic.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>multiply</td><td>e</td><td></td></tr> * <tr><td>screen</td><td>f</td><td></td></tr> * <tr><td>src_atop</td><td>9</td><td></td></tr> * <tr><td>src_in</td><td>5</td><td></td></tr> * <tr><td>src_over</td><td>3</td><td></td></tr> * </table> * * @attr name com.example.android.camera2basic: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_layout android:layout}</code></td><td></td></tr> * <tr><td><code>{@link #ViewStubCompat_android_inflatedId android:inflatedId}</code></td><td></td></tr> * </table> * @see #ViewStubCompat_android_id * @see #ViewStubCompat_android_layout * @see #ViewStubCompat_android_inflatedId */ 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. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name android:id */ public static final int ViewStubCompat_android_id=0; /** * <p>This symbol is the offset where the {@link android.R.attr#layout} * attribute's value can be found in the {@link #ViewStubCompat} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name android:layout */ public static final int ViewStubCompat_android_layout=1; /** * <p>This symbol is the offset where the {@link android.R.attr#inflatedId} * attribute's value can be found in the {@link #ViewStubCompat} array. * * <p>May be a reference to another resource, in the form * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme * attribute in the form * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". * * @attr name android:inflatedId */ public static final int ViewStubCompat_android_inflatedId=2; } }
package org.apoorv.ap.cs2020practice; public interface StringChecker { boolean isValid(String string); }
package seedu.address.logic.commands.duties; import static java.util.Objects.requireNonNull; import static seedu.address.logic.parser.CliSyntax.PREFIX_END; import static seedu.address.logic.parser.CliSyntax.PREFIX_ENTRY; import static seedu.address.logic.parser.CliSyntax.PREFIX_START; import seedu.address.logic.commands.common.CommandResult; import seedu.address.logic.commands.common.ReversibleCommand; import seedu.address.logic.commands.exceptions.CommandException; import seedu.address.model.Model; import seedu.address.model.events.Event; import seedu.address.model.events.exceptions.InvalidEventScheduleChangeException; import seedu.address.model.events.predicates.EventMatchesRefIdPredicate; import seedu.address.model.util.SampleAppointmentDataUtil; /** * Changes the details of the duty shift. */ public class ChangeDutyShiftCommand extends ReversibleCommand { public static final String COMMAND_WORD = "editshift"; public static final String MESSAGE_USAGE = COMMAND_WORD + ": changes the details of a duty shift " + "by the index number used in the displayed duty roster.\n" + "Parameters: " + PREFIX_ENTRY + "INDEX (must be a positive integer) " + PREFIX_START + "PREFIX_START " + PREFIX_END + "PREFIX_END\n" + "Example: " + COMMAND_WORD + " " + PREFIX_ENTRY + "1 " + PREFIX_START + SampleAppointmentDataUtil.ONE_MONTH_LATER_AFTERNOON.toString() + " " + PREFIX_END + SampleAppointmentDataUtil.ONE_MONTH_LATER_EVENING.toString() + " "; public static final String MESSAGE_SUCCESS = "The duty shift for [%1$s] %2$s has been changed:\n" + "from %3$s to %4$s"; private final Event eventToEdit; private final Event editedEvent; /** * Creates an ChangeAppCommand to add the specified {@code Person} */ public ChangeDutyShiftCommand(Event eventToEdit, Event editedEvent) { requireNonNull(eventToEdit); requireNonNull(editedEvent); this.eventToEdit = eventToEdit; this.editedEvent = editedEvent; } @Override public CommandResult execute(Model model) throws CommandException { requireNonNull(model); try { model.setDutyShift(eventToEdit, editedEvent); } catch (InvalidEventScheduleChangeException ex) { throw new CommandException(ex.getMessage()); } model.updateFilteredDutyShiftList(new EventMatchesRefIdPredicate(editedEvent.getPersonId())); return new CommandResult(String.format( MESSAGE_SUCCESS, editedEvent.getPersonId(), editedEvent.getPersonName(), eventToEdit.getEventTiming(), editedEvent.getEventTiming())); } @Override public boolean equals(Object other) { return other == this // short circuit if same object || (other instanceof ChangeDutyShiftCommand // instanceof handles nulls && editedEvent.equals(((ChangeDutyShiftCommand) other).editedEvent.getEventTiming())); } }
//@@author A0161247J package seedu.task.logic.parser; import static seedu.task.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT; import seedu.task.commons.util.FileUtil; import seedu.task.logic.commands.Command; import seedu.task.logic.commands.IncorrectCommand; import seedu.task.logic.commands.StoreCommand; /** * Parser class used to parse a store command */ public class StoreParser extends Parser { @Override public Command parseCommand(String args) { args = args.trim(); if (args.isEmpty()) { return new StoreCommand(""); } if (!FileUtil.isDirectory(args)) { return new IncorrectCommand( String.format(MESSAGE_INVALID_COMMAND_FORMAT, StoreCommand.MESSAGE_USAGE)); } return new StoreCommand(args); } }
package com.duy.algorithm.notify; import android.app.Activity; import android.content.ActivityNotFoundException; import android.content.Context; import android.content.Intent; import android.net.Uri; import com.duy.algorithm.R; import com.kobakei.ratethisapp.RateThisApp; /** * Created by DUy on 13-Jan-17. */ public class RateManager { public static void init(Context context) { RateThisApp.Config config = new RateThisApp.Config(3, 15); config.setTitle(R.string.my_own_title); config.setMessage(R.string.my_own_message); config.setYesButtonText(R.string.my_own_rate); config.setNoButtonText(R.string.my_own_thanks); config.setCancelButtonText(R.string.my_own_cancel); RateThisApp.init(config); } /** * create intent go to market play store */ public static void rateApp(Activity activity) { Uri uri = Uri.parse("market://details?id=com.duy.com.duy.calculator.free"); Intent goToMarket = new Intent(Intent.ACTION_VIEW, uri); // To count with Play market backstack, After pressing back button, // to taken back to our application, we need to add following flags to intent. goToMarket.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY | Intent.FLAG_ACTIVITY_MULTIPLE_TASK); try { activity.startActivity(goToMarket); } catch (ActivityNotFoundException e) { activity.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://play.google.com/store/apps/details?id=com.duy.com.duy.calculator.free"))); } } }
// Copyright (c) 2001 Per M.A. Bothner // This is free software; for terms and warranty disclaimer see ./COPYING. package gnu.kawa.lispexpr; import gnu.mapping.*; import gnu.text.*; /** Wrapper for user-supplied reader macro procedure. */ public class ReaderMacro extends ReaderMisc { Procedure procedure; public ReaderMacro(Procedure procedure, boolean nonTerminating) { super(nonTerminating ? ReadTable.NON_TERMINATING_MACRO : ReadTable.TERMINATING_MACRO); this.procedure = procedure; } public ReaderMacro(Procedure procedure) { super(ReadTable.TERMINATING_MACRO); this.procedure = procedure; } public boolean isNonTerminating() { return kind == ReadTable.NON_TERMINATING_MACRO; } public Procedure getProcedure() { return procedure; } public Object read (Lexer in, int ch, int count) throws java.io.IOException, SyntaxException { // java.io.Reader reader = in; java.io.Reader reader = in.getPort(); try { return procedure.apply2(reader, Char.make(ch)); } catch (java.io.IOException ex) { throw ex; } catch (gnu.text.SyntaxException ex) { throw ex; } catch (Throwable ex) { in.fatal("reader macro '"+procedure+"' threw: "+ex); return null; // Never executed. } } }
package com.github.disparter.ddnext.monster; import static org.springframework.http.MediaType.APPLICATION_JSON; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest; import org.springframework.boot.test.mock.mockito.MockBean; import org.springframework.test.context.junit4.SpringRunner; import org.springframework.test.web.servlet.MockMvc; import com.github.disparter.ddnext.monster.controller.ConditionImmunityController; @RunWith(SpringRunner.class) @WebMvcTest(ConditionImmunityController.class) public class ConditionImmunityConstrollerTest { private static final String VERSION = "/v1"; private static final String CONDITIONS = "/conditions"; @Autowired private MockMvc mvc; @MockBean private ConditionImmunityController controller; @Test public void getTypes() throws Exception { mvc.perform(get(VERSION + CONDITIONS ) .contentType(APPLICATION_JSON)) .andExpect(status().isOk()); } }
package com.sendev.databasemanager.grammar.contracts; import com.sendev.databasemanager.contracts.TableGrammar; public abstract class DeleteGrammar extends TableGrammar { public DeleteGrammar() { query = "DELETE FROM "; } }
package br.com.evandropires; import lombok.AllArgsConstructor; import lombok.Getter; @Getter @AllArgsConstructor public class NumberResponse { private String inWords; }
package hu.interconnect.hr.module.personaldata.vacations; import static hu.interconnect.util.DateUtils.azonosHonap; import java.util.function.Predicate; import hu.interconnect.hr.backend.api.enumeration.FelhasznaltSzabadnapJelleg; import hu.interconnect.hr.domain.Szabadsag; import hu.interconnect.util.Month; public class AdottJelleguEsAdottHaviSzabadsagokPredicate implements Predicate<Szabadsag> { private Month honap; private FelhasznaltSzabadnapJelleg jelleg; public AdottJelleguEsAdottHaviSzabadsagokPredicate(Month honap, FelhasznaltSzabadnapJelleg jelleg) { this.honap = honap; this.jelleg = jelleg; } @Override public boolean test(Szabadsag input) { boolean azonosHonap = azonosHonap(honap.getTime(), input.getDatum()); boolean azonosJelleg = jelleg == input.getJelleg(); return azonosHonap && azonosJelleg; } }
package webf.action; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import webf.service.ServiceFactory; import webf.util.HibernateUtil; public abstract class Action { private HttpServletRequest request; private HttpServletResponse response; protected ServiceFactory serviceFactory; protected Action() { this.serviceFactory = ServiceFactory.getInstance(); } public void runAction() throws Exception { try { HibernateUtil.beginTransaction(); process(); HibernateUtil.commitTransaction(); } catch (Exception e) { HibernateUtil.rollbackTransaction(); throw e; } } public abstract void process() throws Exception; protected void forward(String path) throws Exception { request.getRequestDispatcher(path).forward(request, response); } protected void redirect(String path) throws Exception { String contextRoot = request.getContextPath(); response.sendRedirect(contextRoot + "/" + path); } protected HttpSession getSession() { return request.getSession(); } protected HttpServletRequest getRequest() { return request; } public void setRequest(HttpServletRequest request) { this.request = request; } protected HttpServletResponse getResponse() { return response; } public void setResponse(HttpServletResponse response) { this.response = response; } }
package com.dreadblade.lightair.service; import com.dreadblade.lightair.domain.Message; import com.dreadblade.lightair.domain.User; import com.dreadblade.lightair.domain.UserSubscription; import com.dreadblade.lightair.domain.Views; import com.dreadblade.lightair.dto.EventType; import com.dreadblade.lightair.dto.MessagePageDto; import com.dreadblade.lightair.dto.MetaDto; import com.dreadblade.lightair.dto.ObjectType; import com.dreadblade.lightair.repo.MessageRepo; import com.dreadblade.lightair.repo.UserSubscriptionRepo; import com.dreadblade.lightair.util.WsSender; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import org.jsoup.nodes.Element; import org.jsoup.select.Elements; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.stereotype.Service; import java.io.IOException; import java.time.LocalDateTime; import java.util.List; import java.util.function.BiConsumer; import java.util.regex.Matcher; import java.util.regex.Pattern; import java.util.stream.Collectors; @Service public class MessageService { private static String URL_PATTERN = "https?:\\/\\/?[\\w\\d\\._\\-%\\/\\?=&#]+"; private static String IMAGE_PATTERN = "\\.(jpeg|jpg|gif|png)$"; private static Pattern URL_REGEX = Pattern.compile(URL_PATTERN, Pattern.CASE_INSENSITIVE); private static Pattern IMAGE_REGEX = Pattern.compile(IMAGE_PATTERN, Pattern.CASE_INSENSITIVE); private final MessageRepo messageRepo; private final UserSubscriptionRepo userSubscriptionRepo; private final BiConsumer<EventType, Message> wsSender; @Autowired public MessageService(MessageRepo messageRepo, UserSubscriptionRepo userSubscriptionRepo, WsSender wsSender) { this.messageRepo = messageRepo; this.userSubscriptionRepo = userSubscriptionRepo; this.wsSender = wsSender.getSender(ObjectType.MESSAGE, Views.FullMessage.class); } private void fillMeta(Message message) throws IOException { String text = message.getText(); Matcher matcher = URL_REGEX.matcher(text); if (matcher.find()) { String url = text.substring(matcher.start(), matcher.end()); message.setLink(url); matcher = IMAGE_REGEX.matcher(url); if (matcher.find()) { message.setLinkCover(url); } else if (!url.contains("youtu")) { MetaDto meta = getMeta(url); message.setLinkCover(meta.getCover()); message.setLinkTitle(meta.getTitle()); message.setLinkDescription(meta.getDescription()); } } } private MetaDto getMeta(String url) throws IOException { Document doc = Jsoup.connect(url).get(); Elements title = doc.select("meta[name$=title],meta[property$=title]"); Elements description = doc.select("meta[name$=description],meta[property$=description]"); Elements cover = doc.select("meta[name$=image],meta[property$=image]"); return new MetaDto( getContent(title.first()), getContent(description.first()), getContent(cover.first()) ); } private String getContent(Element element) { return element == null ? "" : element.attr("content"); } public void delete(Message message, User user) { if (user.equals(message.getAuthor())) { messageRepo.delete(message); wsSender.accept(EventType.REMOVE, message); } } public Message update(Message messageFromDb, Message message, User user) throws IOException { Message updatedMessage = messageFromDb; if (messageFromDb.getAuthor().equals(user)) { messageFromDb.setText(message.getText()); fillMeta(messageFromDb); updatedMessage = messageRepo.save(messageFromDb); wsSender.accept(EventType.UPDATE, updatedMessage); } return updatedMessage; } public Message create(Message message, User user) throws IOException { message.setCreationDate(LocalDateTime.now()); fillMeta(message); message.setAuthor(user); Message updatedMessage = messageRepo.save(message); wsSender.accept(EventType.CREATE, updatedMessage); return updatedMessage; } public MessagePageDto findForUser(Pageable pageable, User user) { List<User> channels = userSubscriptionRepo.findBySubscriber(user) .stream() .filter(UserSubscription::isActive) .map(UserSubscription::getChannel) .collect(Collectors.toList()); channels.add(user); Page<Message> page = messageRepo.findByAuthorIn(channels, pageable); return new MessagePageDto( page.getContent(), pageable.getPageNumber(), page.getTotalPages() ); } }
package ir.awlrhm.modules.log; import android.content.Context; import android.util.Log; import java.util.List; import ir.awlrhm.modules.log.database.CrashRecord; import ir.awlrhm.modules.log.database.AWLRHMDatabaseHelper; import ir.awlrhm.modules.log.investigation.AppInfoProvider; import ir.awlrhm.modules.log.investigation.Crash; import ir.awlrhm.modules.log.investigation.CrashAnalyzer; import ir.awlrhm.modules.log.investigation.DefaultAppInfoProvider; public class AWLRHMLogger { private static final String TAG = AWLRHMLogger.class.getSimpleName(); private static AWLRHMLogger instance; private final AWLRHMDatabaseHelper database; // private final CrashReporter crashReporter; private AppInfoProvider appInfoProvider; private AWLRHMLogger(Context context) { database = new AWLRHMDatabaseHelper(context); // crashReporter = new CrashReporter(context); appInfoProvider = new DefaultAppInfoProvider(context); } public static void init(final Context context) { Log.d(TAG, "Initializing Sherlock..."); instance = new AWLRHMLogger(context); final Thread.UncaughtExceptionHandler handler = Thread.getDefaultUncaughtExceptionHandler(); Thread.setDefaultUncaughtExceptionHandler((thread, throwable) -> { analyzeAndReportCrash(throwable); handler.uncaughtException(thread, throwable); }); } public static boolean isInitialized() { return instance != null; } public static AWLRHMLogger getInstance() { if (!isInitialized()) { throw new AWLRHMNotInitializedException(); } Log.d(TAG, "Returning existing instance..."); return instance; } public List<Crash> getAllCrashes() { return getInstance().database.getCrashes(); } private static void analyzeAndReportCrash(Throwable throwable) { Log.d(TAG, "Analyzing Crash..."); CrashAnalyzer crashAnalyzer = new CrashAnalyzer(throwable); Crash crash = crashAnalyzer.getAnalysis(); int crashId = instance.database.insertCrash(CrashRecord.createFrom(crash)); crash.setId(crashId); // instance.crashReporter.report(new CrashViewModel(crash)); Log.d(TAG, "Crash analysis completed!"); } public static void setAppInfoProvider(AppInfoProvider appInfoProvider) { getInstance().appInfoProvider = appInfoProvider; } public AppInfoProvider getAppInfoProvider() { return getInstance().appInfoProvider; } }
/* * 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.euphoria.core.testkit; import static org.junit.Assert.assertEquals; import java.io.Serializable; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.List; import java.util.Map; import java.util.Set; import java.util.concurrent.atomic.AtomicInteger; import java.util.stream.Collectors; import java.util.stream.Stream; import org.apache.beam.sdk.coders.Coder; import org.apache.beam.sdk.extensions.euphoria.core.client.io.Collector; import org.apache.beam.sdk.extensions.euphoria.core.client.operator.AssignEventTime; import org.apache.beam.sdk.extensions.euphoria.core.client.operator.ReduceByKey; import org.apache.beam.sdk.extensions.euphoria.core.client.util.Fold; import org.apache.beam.sdk.extensions.euphoria.core.client.util.Sums; import org.apache.beam.sdk.extensions.euphoria.core.testkit.accumulators.SnapshotProvider; import org.apache.beam.sdk.extensions.kryo.KryoCoder; import org.apache.beam.sdk.options.PipelineOptionsFactory; import org.apache.beam.sdk.transforms.windowing.AfterWatermark; import org.apache.beam.sdk.transforms.windowing.BoundedWindow; import org.apache.beam.sdk.transforms.windowing.FixedWindows; import org.apache.beam.sdk.transforms.windowing.GlobalWindow; import org.apache.beam.sdk.transforms.windowing.GlobalWindows; import org.apache.beam.sdk.transforms.windowing.WindowFn; import org.apache.beam.sdk.transforms.windowing.WindowMappingFn; import org.apache.beam.sdk.values.KV; import org.apache.beam.sdk.values.PCollection; import org.apache.beam.sdk.values.TypeDescriptor; import org.apache.beam.sdk.values.TypeDescriptors; import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.Iterables; import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.Lists; import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.Sets; import org.checkerframework.checker.nullness.qual.Nullable; import org.joda.time.Duration; import org.joda.time.Instant; import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; /** Test operator {@code ReduceByKey}. */ @RunWith(JUnit4.class) public class ReduceByKeyTest extends AbstractOperatorTest { /** Validates the output type upon a `.reduceBy` operation on global window. */ @Test public void testReductionType0() { execute( new AbstractTestCase<Integer, KV<Integer, Set<Integer>>>() { @Override protected List<Integer> getInput() { return Arrays.asList(1, 2, 3, 4, 5, 6, 7, 9); } @Override protected TypeDescriptor<Integer> getInputType() { return TypeDescriptors.integers(); } @Override protected PCollection<KV<Integer, Set<Integer>>> getOutput(PCollection<Integer> input) { return ReduceByKey.of(input) .keyBy(e -> e % 2) .valueBy(e -> e) .reduceBy(s -> s.collect(Collectors.toSet())) .windowBy(new GlobalWindows()) .triggeredBy(AfterWatermark.pastEndOfWindow()) .discardingFiredPanes() .output(); } @Override public List<KV<Integer, Set<Integer>>> getUnorderedOutput() { return Arrays.asList( KV.of(0, Sets.newHashSet(2, 4, 6)), KV.of(1, Sets.newHashSet(1, 3, 5, 7, 9))); } }); } /** Validates the output type upon a `.reduceBy` operation on global window. */ @Test public void testReductionType0_outputValues() { execute( new AbstractTestCase<Integer, Set<Integer>>() { @Override protected List<Integer> getInput() { return Arrays.asList(1, 2, 3, 4, 5, 6, 7, 9); } @Override protected TypeDescriptor<Integer> getInputType() { return TypeDescriptors.integers(); } @Override protected PCollection<Set<Integer>> getOutput(PCollection<Integer> input) { return ReduceByKey.of(input) .keyBy(e -> e % 2) .valueBy(e -> e) .reduceBy(s -> s.collect(Collectors.toSet())) .outputValues(); } @Override public List<Set<Integer>> getUnorderedOutput() { return Arrays.asList(Sets.newHashSet(2, 4, 6), Sets.newHashSet(1, 3, 5, 7, 9)); } }); } @Test public void testEventTime() { execute( new AbstractTestCase<KV<Integer, Long>, KV<Integer, Long>>() { @Override protected PCollection<KV<Integer, Long>> getOutput(PCollection<KV<Integer, Long>> input) { input = AssignEventTime.of(input).using(KV::getValue).output(); return ReduceByKey.of(input) .keyBy(KV::getKey) .valueBy(e -> 1L) .combineBy(Sums.ofLongs()) .windowBy(FixedWindows.of(org.joda.time.Duration.standardSeconds(1))) .triggeredBy(AfterWatermark.pastEndOfWindow()) .discardingFiredPanes() .withAllowedLateness(Duration.ZERO) .output(); } @Override protected List<KV<Integer, Long>> getInput() { return Arrays.asList( KV.of(1, 300L), KV.of(2, 600L), KV.of(3, 900L), KV.of(2, 1300L), KV.of(3, 1600L), KV.of(1, 1900L), KV.of(3, 2300L), KV.of(2, 2600L), KV.of(1, 2900L), KV.of(2, 3300L), KV.of(2, 300L), KV.of(4, 600L), KV.of(3, 900L), KV.of(4, 1300L), KV.of(2, 1600L), KV.of(3, 1900L), KV.of(4, 2300L), KV.of(1, 2600L), KV.of(3, 2900L), KV.of(4, 3300L), KV.of(3, 3600L)); } @Override protected TypeDescriptor<KV<Integer, Long>> getInputType() { return TypeDescriptors.kvs(TypeDescriptors.integers(), TypeDescriptors.longs()); } @Override public List<KV<Integer, Long>> getUnorderedOutput() { return Arrays.asList( KV.of(2, 2L), KV.of(4, 1L), // first window KV.of(2, 2L), KV.of(4, 1L), // second window KV.of(2, 1L), KV.of(4, 1L), // third window KV.of(2, 1L), KV.of(4, 1L), // fourth window KV.of(1, 1L), KV.of(3, 2L), // first window KV.of(1, 1L), KV.of(3, 2L), // second window KV.of(1, 2L), KV.of(3, 2L), // third window KV.of(3, 1L)); // fourth window } }); } @Test public void testReduceWithWindowing() { execute( new AbstractTestCase<Integer, KV<Integer, Long>>() { @Override protected PCollection<KV<Integer, Long>> getOutput(PCollection<Integer> input) { @SuppressWarnings("unchecked") final WindowFn<Object, CountWindow> windowFn = (WindowFn) new TestWindowFn(); return ReduceByKey.of(input) .keyBy(e -> e % 3) .valueBy(e -> 1L) .combineBy(Sums.ofLongs()) .windowBy(windowFn) .triggeredBy(AfterWatermark.pastEndOfWindow()) .discardingFiredPanes() .withAllowedLateness(Duration.ZERO) .output(); } @Override protected List<Integer> getInput() { final List<Integer> input = new ArrayList<>(); // first window, keys 1, 2, 0 input.addAll(Arrays.asList(1, 2, 3)); // second window, keys 1, 2, 0, 1 input.addAll(Arrays.asList(4, 5, 6, 7)); // third window, kes 2, 0, 1 input.addAll(Arrays.asList(8, 9, 10)); // second window, keys 2, 0, 1 input.addAll(Arrays.asList(5, 6, 7)); // third window, keys 2, 0, 1, 2 input.addAll(Arrays.asList(8, 9, 10, 11)); // fourth window, keys 0, 1, 2, 0 input.addAll(Arrays.asList(12, 13, 14, 15)); return input; } @Override protected TypeDescriptor<Integer> getInputType() { return TypeDescriptors.integers(); } @Override public List<KV<Integer, Long>> getUnorderedOutput() { final List<KV<Integer, Long>> output = new ArrayList<>(); // first window output.addAll(Arrays.asList(KV.of(0, 1L), KV.of(2, 1L))); // second window output.addAll(Arrays.asList(KV.of(0, 2L), KV.of(2, 2L))); // third window output.addAll(Arrays.asList(KV.of(0, 2L), KV.of(2, 3L))); // fourth window output.addAll(Arrays.asList(KV.of(0, 2L), KV.of(2, 1L))); // first window output.add(KV.of(1, 1L)); // second window output.add(KV.of(1, 3L)); // third window output.add(KV.of(1, 2L)); // fourth window output.add(KV.of(1, 1L)); return output; } }); } @Test public void testReduceWithoutWindowing() { execute( new AbstractTestCase<String, KV<String, Long>>() { @Override protected List<String> getInput() { String[] words = "one two three four one two three four one two three one two one".split(" "); return Arrays.asList(words); } @Override protected TypeDescriptor<String> getInputType() { return TypeDescriptors.strings(); } @Override public List<KV<String, Long>> getUnorderedOutput() { return Arrays.asList( KV.of("one", 5L), KV.of("two", 4L), KV.of("three", 3L), KV.of("four", 2L)); } @Override protected PCollection<KV<String, Long>> getOutput(PCollection<String> input) { return ReduceByKey.of(input) .keyBy(e -> e, TypeDescriptor.of(String.class)) .valueBy(e -> 1L, TypeDescriptor.of(Long.class)) .combineBy(Sums.ofLongs()) .output(); } }); } @Ignore("Sorting of values is not supported yet.") @Test public void testReduceSorted() { execute( new AbstractTestCase<KV<String, Long>, KV<String, List<Long>>>() { @Override protected List<KV<String, Long>> getInput() { return Arrays.asList( KV.of("one", 3L), KV.of("one", 2L), KV.of("one", 1L), KV.of("two", 3L), KV.of("two", 2L), KV.of("two", 1L), KV.of("three", 3L), KV.of("three", 2L), KV.of("three", 1L)); } @Override protected TypeDescriptor<KV<String, Long>> getInputType() { return TypeDescriptors.kvs(TypeDescriptors.strings(), TypeDescriptors.longs()); } @Override public List<KV<String, List<Long>>> getUnorderedOutput() { return Arrays.asList( KV.of("one", Arrays.asList(1L, 2L, 3L)), KV.of("two", Arrays.asList(1L, 2L, 3L)), KV.of("three", Arrays.asList(1L, 2L, 3L))); } @Override protected PCollection<KV<String, List<Long>>> getOutput( PCollection<KV<String, Long>> input) { return ReduceByKey.of(input) .keyBy(KV::getKey) .valueBy(KV::getValue) .reduceBy( (Stream<Long> values, Collector<List<Long>> coll) -> coll.collect(values.collect(Collectors.toList()))) .withSortedValues(Long::compareTo) .output(); } }); } @Ignore("Test adaption to Beam windowing failed so far.") @Test public void testMergingAndTriggering() { execute( new AbstractTestCase<KV<String, Long>, KV<String, Long>>() { @Override protected List<KV<String, Long>> getInput() { return Arrays.asList( KV.of("a", 20L), KV.of("c", 3_000L), KV.of("b", 10L), KV.of("b", 100L), KV.of("a", 4_000L), KV.of("c", 300L), KV.of("b", 1_000L), KV.of("b", 50_000L), KV.of("a", 100_000L), KV.of("a", 800L), KV.of("a", 80L)); } @Override protected TypeDescriptor<KV<String, Long>> getInputType() { return TypeDescriptors.kvs(TypeDescriptors.strings(), TypeDescriptors.longs()); } @Override protected PCollection<KV<String, Long>> getOutput(PCollection<KV<String, Long>> input) { return ReduceByKey.of(input) .keyBy(KV::getKey) .valueBy(KV::getValue) .combineBy(Sums.ofLongs()) .windowBy(new MergingByBucketSizeWindowFn<>(3)) .triggeredBy(AfterWatermark.pastEndOfWindow()) .discardingFiredPanes() .withAllowedLateness(Duration.ZERO) .output(); } @SuppressWarnings("unchecked") @Override public List<KV<String, Long>> getUnorderedOutput() { return Arrays.asList( KV.of("a", 880L), KV.of("a", 104_020L), KV.of("b", 1_110L), KV.of("b", 50_000L), KV.of("c", 3_300L)); } }); } @Test public void testReduceByKeyWithWrongHashCodeImpl() { execute( new AbstractTestCase<KV<Word, Long>, KV<Word, Long>>() { @Override protected PCollection<KV<Word, Long>> getOutput(PCollection<KV<Word, Long>> input) { input = AssignEventTime.of(input).using(KV::getValue).output(); return ReduceByKey.of(input) .keyBy(KV::getKey) .valueBy(e -> 1L) .combineBy(Sums.ofLongs()) .windowBy(FixedWindows.of(org.joda.time.Duration.standardSeconds(1))) .triggeredBy(AfterWatermark.pastEndOfWindow()) .discardingFiredPanes() .withAllowedLateness(Duration.ZERO) .output(); } @Override protected List<KV<Word, Long>> getInput() { return Arrays.asList( KV.of(new Word("euphoria"), 300L), KV.of(new Word("euphoria"), 600L), KV.of(new Word("spark"), 900L), KV.of(new Word("euphoria"), 1300L), KV.of(new Word("flink"), 1600L), KV.of(new Word("spark"), 1900L)); } @Override protected TypeDescriptor<KV<Word, Long>> getInputType() { return TypeDescriptors.kvs(new TypeDescriptor<Word>() {}, TypeDescriptors.longs()); } @Override public List<KV<Word, Long>> getUnorderedOutput() { return Arrays.asList( KV.of(new Word("euphoria"), 2L), KV.of(new Word("spark"), 1L), // first window KV.of(new Word("euphoria"), 1L), KV.of(new Word("spark"), 1L), // second window KV.of(new Word("flink"), 1L)); } }); } @Test public void testAccumulators() { execute( new AbstractTestCase<Integer, KV<Integer, Integer>>() { @Override protected List<Integer> getInput() { return Arrays.asList(1, 2, 3, 4, 5); } @Override protected TypeDescriptor<Integer> getInputType() { return TypeDescriptors.integers(); } @Override protected PCollection<KV<Integer, Integer>> getOutput(PCollection<Integer> input) { return ReduceByKey.named("test") .of(input) .keyBy(e -> e % 2) .valueBy(e -> e) .reduceBy( Fold.of( 0, (Integer a, Integer b, Collector<Integer> ctx) -> { if (b % 2 == 0) { ctx.getCounter("evens").increment(); } else { ctx.getCounter("odds").increment(); } ctx.collect(a + b); })) .windowBy(new GlobalWindows()) .triggeredBy(AfterWatermark.pastEndOfWindow()) .discardingFiredPanes() .output(); } @SuppressWarnings("unchecked") @Override public List<KV<Integer, Integer>> getUnorderedOutput() { return Arrays.asList(KV.of(1, 9), KV.of(0, 6)); } @Override public void validateAccumulators(SnapshotProvider snapshots) { Map<String, Long> counters = snapshots.getCounterSnapshots(); assertEquals(Long.valueOf(2), counters.get("evens")); assertEquals(Long.valueOf(3), counters.get("odds")); } }); } @Test public void testCombineFull() { execute( new AbstractTestCase<Integer, KV<Integer, Integer>>() { @Override protected List<Integer> getInput() { return Arrays.asList(1, 2, 3, 4, 5, 6, 7, 9); } @Override protected TypeDescriptor<Integer> getInputType() { return TypeDescriptors.integers(); } @Override protected PCollection<KV<Integer, Integer>> getOutput(PCollection<Integer> input) { return ReduceByKey.of(input) .keyBy(e -> e % 2) .valueBy(e -> e) .combineBy( () -> new ArrayList<>(), (acc, e) -> { acc.add(e); return acc; }, (l, r) -> Lists.newArrayList(Iterables.concat(l, r)), List::size, TypeDescriptors.lists(TypeDescriptors.integers()), TypeDescriptors.integers()) .windowBy(new GlobalWindows()) .triggeredBy(AfterWatermark.pastEndOfWindow()) .discardingFiredPanes() .output(); } @Override public List<KV<Integer, Integer>> getUnorderedOutput() { return Arrays.asList(KV.of(0, 3), KV.of(1, 5)); } }); } private static class TestWindowFn extends WindowFn<Number, CountWindow> { @Override public Collection<CountWindow> assignWindows(AssignContext c) throws Exception { Number element = c.element(); return Collections.singleton(new CountWindow(element.longValue() / 4)); } @Override public void mergeWindows(MergeContext c) throws Exception {} @Override public boolean isNonMerging() { return true; } /** * @param other * @return * @deprecated deprecated in super class */ @Deprecated @Override public boolean isCompatible(WindowFn<?, ?> other) { return false; } @Override public Coder<CountWindow> windowCoder() { return KryoCoder.of(PipelineOptionsFactory.create()); } @Override public @Nullable WindowMappingFn<CountWindow> getDefaultWindowMappingFn() { return null; } } // ~ ------------------------------------------------------------------------------ private static class CountWindow extends BoundedWindow { private long value; private CountWindow(long value) { this.value = value; } @Override public Instant maxTimestamp() { return GlobalWindow.INSTANCE.maxTimestamp(); } @Override public boolean equals(@Nullable Object other) { if (other instanceof CountWindow) { return value == (((CountWindow) other).value); } return false; } @Override public int hashCode() { return Long.hashCode(value); } } private static class UniqueWindow extends BoundedWindow { private static final AtomicInteger idCounter = new AtomicInteger(); private final int id; private UniqueWindow() { this.id = idCounter.getAndIncrement(); } @Override public Instant maxTimestamp() { return GlobalWindow.INSTANCE.maxTimestamp(); } @Override public int hashCode() { return Integer.hashCode(id); } @Override public boolean equals(@Nullable Object obj) { return obj instanceof UniqueWindow && this.id == ((UniqueWindow) obj).id; } @Override public String toString() { return "UniqueWindow{id=" + id + "}"; } } private static class MergingByBucketSizeWindowFn<T> extends WindowFn<T, UniqueWindow> { private final int bucketSize; private MergingByBucketSizeWindowFn(int bucketSize) { this.bucketSize = bucketSize; } @Override public Collection<UniqueWindow> assignWindows(AssignContext c) throws Exception { return Collections.singleton(new UniqueWindow()); } @Override public void mergeWindows(MergeContext c) throws Exception { // merge windows up to bucket size Collection<UniqueWindow> windows = c.windows(); List<UniqueWindow> merges = new ArrayList<>(); for (UniqueWindow w : windows) { merges.add(w); if (merges.size() == bucketSize) { // time to merge c.merge(merges, w); merges.clear(); } } if (merges.size() > 1) { c.merge(merges, merges.get(merges.size() - 1)); } } /** * @param other * @return * @deprecated deprecated in super class */ @Deprecated @Override public boolean isCompatible(WindowFn<?, ?> other) { return other instanceof MergingByBucketSizeWindowFn && this.bucketSize == ((MergingByBucketSizeWindowFn) other).bucketSize; } @Override public Coder<UniqueWindow> windowCoder() { return KryoCoder.of(PipelineOptionsFactory.create()); } @Override public @Nullable WindowMappingFn<UniqueWindow> getDefaultWindowMappingFn() { return null; } } /** String with invalid hash code implementation returning constant. */ public static class Word implements Serializable { private final String str; Word(String str) { this.str = str; } @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof Word)) { return false; } Word word = (Word) o; return !(str != null ? !str.equals(word.str) : word.str != null); } @Override public int hashCode() { return 42; } @Override public String toString() { return str; } } }
package org.mockito_inside.argument_mathchers; import org.eclipse.jdt.annotation.Nullable; @FunctionalInterface public interface ArgumentMatcher { boolean matches( @Nullable Object actual ); }
/* * Copyright 2014-2018 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 de.codecentric.boot.admin.server.services; import org.springframework.util.Assert; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; import de.codecentric.boot.admin.server.domain.entities.Instance; import de.codecentric.boot.admin.server.domain.entities.InstanceRepository; import de.codecentric.boot.admin.server.domain.values.InstanceId; import de.codecentric.boot.admin.server.domain.values.Registration; /** * Registry for all application instances that should be managed/administrated by the * Spring Boot Admin server. Backed by an InstanceRepository for persistence and an * InstanceIdGenerator for id generation. */ public class InstanceRegistry { private final InstanceRepository repository; private final InstanceIdGenerator generator; public InstanceRegistry(InstanceRepository repository, InstanceIdGenerator generator) { this.repository = repository; this.generator = generator; } /** * Register instance. * @param registration instance to be registered. * @return the id of the registered instance. */ public Mono<InstanceId> register(Registration registration) { Assert.notNull(registration, "'registration' must not be null"); InstanceId id = generator.generateId(registration); Assert.notNull(id, "'id' must not be null"); return repository.compute(id, (key, instance) -> { if (instance == null) { instance = Instance.create(key); } return Mono.just(instance.register(registration)); }).map(Instance::getId); } /** * Get a list of all registered instances. * @return list of all instances. */ public Flux<Instance> getInstances() { return repository.findAll(); } /** * Get a list of all registered application instances. * @param name the name to search for. * @return list of instances for the given application */ public Flux<Instance> getInstances(String name) { return repository.findByName(name); } /** * Get a specific instance * @param id the id * @return a Mono with the Instance. */ public Mono<Instance> getInstance(InstanceId id) { return repository.find(id); } /** * Remove a specific instance from services * @param id the instances id to unregister * @return the id of the unregistered instance */ public Mono<InstanceId> deregister(InstanceId id) { return repository.computeIfPresent(id, (key, instance) -> Mono.just(instance.deregister())) .map(Instance::getId); } }
/* * Copyright 2018 Netflix, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.netflix.titus.federation.service; import com.google.common.base.Preconditions; import com.netflix.titus.common.util.tuple.Either; import io.grpc.stub.AbstractStub; import rx.functions.Func2; interface ResponseMerger<STUB extends AbstractStub<STUB>, T> extends Func2< CellResponse<STUB, T>, CellResponse<STUB, T>, CellResponse<STUB, T>> { // generics sanity /** * Merge results by returning the first non-error value encountered. Otherwise merge all error results with a * fallback merger. * * @param errorMerger fallback merger for errors */ static <STUB extends AbstractStub<STUB>, T> ResponseMerger<STUB, Either<T, Throwable>> singleValue(ErrorMerger<STUB, T> errorMerger) { return (one, other) -> { if (isEmptyResponseMarker(one)) { return other; } if (isEmptyResponseMarker(other)) { return one; } boolean bothHaveValues = one.getResult().hasValue() && other.getResult().hasValue(); Preconditions.checkArgument(!bothHaveValues, "expecting a single non-error response"); if (one.getResult().hasValue()) { return one; } if (other.getResult().hasValue()) { return other; } return errorMerger.call(one, other); }; } final CellResponse<?, ?> EMPTY_RESPONSE_MARKER = new CellResponse<>(null, null, null); /** * Marker to be used with {@link rx.Observable#reduce(Object, Func2)} and {@link rx.Observable#reduce(Func2)} on * empty Observables. By design, <tt>reduce</tt> emits an error for empty Observables. This marker can be used as * the initial seed, and will be passed through in case the <tt>Observable</tt> is empty, and can be filtered out * later with {@link ResponseMerger#isNotEmptyResponseMarker(CellResponse)}. Merger functions _must_ ignore the * empty marker with {@link ResponseMerger#isEmptyResponseMarker(CellResponse)}. * <p> * See https://github.com/ReactiveX/RxJava/pull/474 */ @SuppressWarnings("unchecked") static <STUB extends AbstractStub<STUB>, T> CellResponse<STUB, T> emptyResponseMarker() { return (CellResponse<STUB, T>) EMPTY_RESPONSE_MARKER; } static <STUB extends AbstractStub<STUB>, T> boolean isEmptyResponseMarker(CellResponse<STUB, T> response) { return response == EMPTY_RESPONSE_MARKER; } static <STUB extends AbstractStub<STUB>, T> boolean isNotEmptyResponseMarker(CellResponse<STUB, T> response) { return response != EMPTY_RESPONSE_MARKER; } static <STUB extends AbstractStub<STUB>, T> ResponseMerger<STUB, Either<T, Throwable>> singleValue() { return singleValue(ErrorMerger.<STUB, T>grpcWithDefaultPriorities()); } }
package com.easytoolsoft.easyreport.engine.util; import com.easytoolsoft.easyreport.engine.data.ReportDataSource; import com.easytoolsoft.easyreport.engine.dbpool.DataSourcePoolFactory; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javax.sql.DataSource; import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; /** * Jdbc工具类. */ public class JdbcUtils { private static final Logger logger = LoggerFactory.getLogger(JdbcUtils.class); private static Map<String, DataSource> dataSourceMap = new ConcurrentHashMap<>(100); public static DataSource getDataSource(ReportDataSource rptDs) { //用数据源用户名,密码,jdbcUrl做为key String key = String.format("%s|%s|%s", rptDs.getUser(), rptDs.getPassword(), rptDs.getJdbcUrl()).toLowerCase(); DataSource dataSource = dataSourceMap.get(key); if (dataSource == null) { dataSource = DataSourcePoolFactory.create(rptDs.getDbPoolClass()).wrap(rptDs); dataSourceMap.put(key, dataSource); } return dataSource; } public static void releaseJdbcResource(Connection conn, Statement stmt, ResultSet rs) { try { if (stmt != null) stmt.close(); if (rs != null) rs.close(); if (conn != null) conn.close(); } catch (SQLException ex) { logger.error("数据库资源释放异常", ex); throw new RuntimeException("数据库资源释放异常", ex); } } }
package org.ob.api; import org.neo4j.ogm.cypher.ComparisonOperator; import org.neo4j.ogm.cypher.Filter; import org.neo4j.ogm.cypher.Filters; import org.neo4j.ogm.cypher.query.Pagination; import org.neo4j.ogm.session.SessionFactory; import org.ob.data.model.accounts.Account; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javax.inject.Inject; import javax.ws.rs.*; import javax.ws.rs.core.Context; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.UriInfo; import java.util.ArrayList; import java.util.List; @Path( "/ob/accounts" ) public class Accounts { private static final Logger logger = LoggerFactory.getLogger( Accounts.class ); @Inject SessionFactory sessions; @GET @Produces( MediaType.APPLICATION_JSON ) public List<Account> fetchAccounts(@Context UriInfo uri, @QueryParam( "open-status" ) String status, @DefaultValue( "1" ) @QueryParam( "page" ) int page, @DefaultValue( "10" ) @QueryParam( "page-size" ) int size){ var pagination = new Pagination( page - 1, size ); var filters = new Filters(); if ( status != null ) { filters.and( new Filter( "status", ComparisonOperator.EQUALS, status ) ); } var accounts = new ArrayList<>(sessions.openSession().loadAll(Account.class, filters, pagination)); return accounts; } }
package at.fhjoanneum.ippr.processengine.akka.actors.user; import java.util.List; import java.util.Optional; import java.util.stream.Collectors; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Component; import org.springframework.transaction.annotation.Isolation; import org.springframework.transaction.annotation.Transactional; import com.google.common.collect.Lists; import akka.actor.ActorRef; import akka.actor.UntypedActor; import at.fhjoanneum.ippr.persistence.objects.engine.process.ProcessInstance; import at.fhjoanneum.ippr.processengine.akka.AkkaSelector; import at.fhjoanneum.ippr.processengine.akka.config.SpringExtension; import at.fhjoanneum.ippr.processengine.akka.messages.process.info.TasksOfUserMessage; import at.fhjoanneum.ippr.processengine.akka.messages.process.initialize.ActorInitializeMessage; import at.fhjoanneum.ippr.processengine.akka.messages.process.stop.ProcessStopMessage; import at.fhjoanneum.ippr.processengine.akka.messages.process.timeout.TimeoutScheduleStartMessage; import at.fhjoanneum.ippr.processengine.akka.messages.process.wakeup.UserActorWakeUpMessage; import at.fhjoanneum.ippr.processengine.akka.messages.process.workflow.AssignUsersMessage; import at.fhjoanneum.ippr.processengine.akka.messages.process.workflow.MessagesSendMessage; import at.fhjoanneum.ippr.processengine.akka.messages.process.workflow.StateObjectChangeMessage; import at.fhjoanneum.ippr.processengine.akka.messages.process.workflow.StateObjectMessage; import at.fhjoanneum.ippr.processengine.akka.tasks.TaskAllocation; import at.fhjoanneum.ippr.processengine.akka.tasks.TaskManager; import at.fhjoanneum.ippr.processengine.repositories.ProcessInstanceRepository; @Transactional(isolation = Isolation.READ_COMMITTED) @Component("UserSupervisorActor") @Scope("prototype") public class UserSupervisorActor extends UntypedActor { private final static Logger LOG = LoggerFactory.getLogger(UserSupervisorActor.class); @Autowired private AkkaSelector akkaSelector; @Autowired private TaskManager taskManager; @Autowired private ProcessInstanceRepository processInstanceRepository; @Autowired private SpringExtension springExtension; @Override public void onReceive(final Object obj) throws Throwable { if (obj instanceof ActorInitializeMessage.Request) { handleActorInitializeMessage(obj); } else if (obj instanceof UserActorWakeUpMessage.Request) { handleUserWakeUpMessage(obj); } else if (obj instanceof ProcessStopMessage.Request) { handleProcessStopMessage(obj); } else if (obj instanceof TasksOfUserMessage.Request) { handleTasksOfUserMessage(obj); } else if (obj instanceof StateObjectMessage.Request) { handleStateObjectMessage(obj); } else if (obj instanceof StateObjectChangeMessage.Request) { handleStateObjectChangeMessage(obj); } else if (obj instanceof MessagesSendMessage.Request) { handleSendMessages(obj); } else if (obj instanceof AssignUsersMessage.Request) { handleAssignUsersMessage(obj); } else if (obj instanceof TimeoutScheduleStartMessage) { handleTimeoutScheduleStartMessage(obj); } else { LOG.warn("Unhandled message: {}", obj); unhandled(obj); } } private void handleActorInitializeMessage(final Object obj) { taskManager.executeTaskInContext(TaskAllocation.PROCESS_INITIALIZE_TASK, getContext(), obj); } private String getUserId(final Long userId) { return "ProcessUser-" + userId; } private void handleUserWakeUpMessage(final Object obj) { final UserActorWakeUpMessage.Request msg = (UserActorWakeUpMessage.Request) obj; final String userId = getUserId(msg.getUserId()); final Optional<ActorRef> actorOpt = akkaSelector.findActor(getContext(), userId); ActorRef actor = null; if (!actorOpt.isPresent()) { actor = getContext().actorOf(springExtension.props("UserActor", msg.getUserId()), userId); } else { actor = actorOpt.get(); } actor.forward(msg, getContext()); } private void handleProcessStopMessage(final Object obj) { final ProcessStopMessage.Request msg = (ProcessStopMessage.Request) obj; final Optional<ProcessInstance> processOpt = Optional.ofNullable(processInstanceRepository.findOne(msg.getPiId())); if (processOpt.isPresent()) { final ProcessInstance process = processOpt.get(); if (process.isStopped()) { final List<String> userIds = process.getSubjects().stream().filter(subject -> subject.getUser() != null) .map(subject -> "ProcessUser-" + subject.getUser()).collect(Collectors.toList()); userIds.forEach(userId -> { final Optional<ActorRef> actorOpt = akkaSelector.findActor(getContext(), userId); if (actorOpt.isPresent()) { actorOpt.get().forward(msg, getContext()); } }); } } } private void handleTasksOfUserMessage(final Object obj) { final TasksOfUserMessage.Request msg = (TasksOfUserMessage.Request) obj; final String userId = getUserId(msg.getUserId()); final Optional<ActorRef> actorOpt = akkaSelector.findActor(getContext(), userId); if (!actorOpt.isPresent()) { getSender().tell(new TasksOfUserMessage.Response(Lists.newArrayList()), getSelf()); return; } actorOpt.get().forward(msg, getContext()); } private void handleStateObjectMessage(final Object obj) { final StateObjectMessage.Request request = (StateObjectMessage.Request) obj; LOG.info("Handle state object message of USER_ID [{}] in PI_ID [{}]", request.getUserId(), request.getPiId()); forwardToUserActor(request.getUserId(), request); } private <T> void forwardToUserActor(final Long userId, final T msg) { final String actorUserId = getUserId(userId); final Optional<ActorRef> actorOpt = akkaSelector.findActor(getContext(), actorUserId); if (actorOpt.isPresent()) { LOG.debug("Found user actor and will forward message"); actorOpt.get().forward(msg, getContext()); } else { getSender().tell( new akka.actor.Status.Failure( new IllegalArgumentException("Could not find actor for user: " + actorUserId)), getSelf()); return; } } private void handleStateObjectChangeMessage(final Object obj) { final StateObjectChangeMessage.Request request = (StateObjectChangeMessage.Request) obj; forwardToUserActor(request.getUserId(), request); } private void handleSendMessages(final Object obj) { taskManager.executeTaskInContext(TaskAllocation.SEND_MESSAGES_TASK, getContext(), obj); } private void handleAssignUsersMessage(final Object obj) { taskManager.executeTask(TaskAllocation.ASSIGN_USERS_TASK, getContext(), obj); } private void handleTimeoutScheduleStartMessage(final Object obj) { final TimeoutScheduleStartMessage msg = (TimeoutScheduleStartMessage) obj; forwardToUserActor(msg.getUserId(), msg); } }
/* * Copyright 2013-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.config.model.transform; import java.math.*; import javax.annotation.Generated; import com.amazonaws.services.config.model.*; import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; import com.amazonaws.transform.*; import com.fasterxml.jackson.core.JsonToken; import static com.fasterxml.jackson.core.JsonToken.*; /** * GetComplianceDetailsByResourceResult JSON Unmarshaller */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class GetComplianceDetailsByResourceResultJsonUnmarshaller implements Unmarshaller<GetComplianceDetailsByResourceResult, JsonUnmarshallerContext> { public GetComplianceDetailsByResourceResult unmarshall(JsonUnmarshallerContext context) throws Exception { GetComplianceDetailsByResourceResult getComplianceDetailsByResourceResult = new GetComplianceDetailsByResourceResult(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (token == VALUE_NULL) { return getComplianceDetailsByResourceResult; } while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("EvaluationResults", targetDepth)) { context.nextToken(); getComplianceDetailsByResourceResult.setEvaluationResults(new ListUnmarshaller<EvaluationResult>(EvaluationResultJsonUnmarshaller .getInstance()).unmarshall(context)); } if (context.testExpression("NextToken", targetDepth)) { context.nextToken(); getComplianceDetailsByResourceResult.setNextToken(context.getUnmarshaller(String.class).unmarshall(context)); } } else if (token == END_ARRAY || token == END_OBJECT) { if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; } } token = context.nextToken(); } return getComplianceDetailsByResourceResult; } private static GetComplianceDetailsByResourceResultJsonUnmarshaller instance; public static GetComplianceDetailsByResourceResultJsonUnmarshaller getInstance() { if (instance == null) instance = new GetComplianceDetailsByResourceResultJsonUnmarshaller(); return instance; } }
package io.katharsis.repository.annotations; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * <p> * Method annotated with this annotation will be used to provide meta information for a set of resources. The method * must be defined in a class annotated with {@link JsonApiResourceRepository} or * {@link JsonApiRelationshipRepository}. * </p> * <p> * The requirements for the method parameters are as follows: * </p> * <ol> * <li>A list of resources</li> * </ol> * <p> * The return value must be an instance of {@link io.katharsis.response.MetaInformation} type. * </p> * * @see io.katharsis.repository.MetaRepository */ @Documented @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) public @interface JsonApiMeta { }
/* * Copyright (C) 2008-2010 Wayne Meissner * * This file is part of the JNR 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 jnr.ffi.mapper; import jnr.ffi.Pointer; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; public interface ToNativeConverter<J, N> { public N toNative(J value, ToNativeContext context); public Class<N> nativeType(); /** * Used to reload a parameter converted to a native type via a custom {@link jnr.ffi.mapper.ToNativeConverter} */ public static interface PostInvocation<J,N> extends ToNativeConverter<J, N> { public void postInvoke(J j, N n, ToNativeContext context); } @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.TYPE, ElementType.METHOD}) public static @interface NoContext { } @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.TYPE) public static @interface Cacheable { } @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) @interface ToNative { Class nativeType(); } }
package com.mall.order.add.service.impl; import com.alibaba.fastjson.JSONObject; import com.fasterxml.jackson.databind.ObjectMapper; import com.mall.common.pojo.CartItem; import com.mall.common.pojo.Order; import com.mall.common.pojo.OrderItem; import com.mall.order.add.dao.OrderAddDAO; import com.mall.order.add.service.OrderAddService; import org.redisson.api.RLock; import org.redisson.api.RedissonClient; import org.springframework.data.redis.core.StringRedisTemplate; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Isolation; import org.springframework.transaction.annotation.Propagation; import org.springframework.transaction.annotation.Transactional; import javax.annotation.Resource; import java.util.*; @Service public class OrderAddServiceImpl implements OrderAddService { @Resource private OrderAddDAO orderAddDAO; @Resource private StringRedisTemplate stringRedisTemplate; @Resource private RedissonClient redissonClient; private ObjectMapper mapper = new ObjectMapper(); @Override @Transactional(isolation = Isolation.REPEATABLE_READ, propagation = Propagation.REQUIRED) public boolean addOrder(JSONObject order,String memberId) { String orderId = UUID.randomUUID().toString().replace("-", ""); String addressId1 = order.getString("addressId"); String money = order.getString("money"); double money1 = Double.parseDouble(money); String num = order.getString("num"); int num1 = Integer.parseInt(num); List<CartItem> jsonStrList = Arrays.asList( order.getObject("jsonStrList",CartItem[].class)); List<OrderItem> orderItems = new ArrayList<>(); String productId = ""; for (CartItem cartItem : jsonStrList) { OrderItem orderItem=new OrderItem(); orderItem.setOrderId(orderId); orderItem.setProductId(cartItem.getProductId()); orderItem.setProductPic(cartItem.getProductPic()); orderItem.setProductName(cartItem.getProductName()); orderItem.setProductPrice(cartItem.getPrice()); orderItem.setProductQuantity(cartItem.getQuantity()); orderItem.setProductSkuId(cartItem.getProductSkuId()); productId = cartItem.getProductId(); String lockKey = cartItem.getProductId() + "-LOCK"; RLock lock = redissonClient.getLock(lockKey); lock.lock(); try { int stock = orderAddDAO.getStock(cartItem.getProductSkuId()); if (stock > cartItem.getQuantity()) { int i = orderAddDAO.addOrderItem(orderItem); if (i > 0) { int j = orderAddDAO.updateStock(cartItem.getProductSkuId()); } } } finally { lock.unlock(); } } String companyId = orderAddDAO.getCompanyId(productId); int i = orderAddDAO.addOrder(new Order(0,orderId,memberId,new Date(),"lisi",money1,money1,0,0,0,0,addressId1,7,null,null,0,null,null,null,null,companyId)); if (i > 0) { stringRedisTemplate.delete("listOrderByCompanyId"); stringRedisTemplate.delete("getOrderListByMemberId"); stringRedisTemplate.delete("getOrderByOrderId"); stringRedisTemplate.delete("getOrderItemByOrderId"); return true; } return false; } }
package pabix.chickens.una; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; public class SearchView extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_search_view); } }